@spw-ds/spw-stencil-library 1.19.0 → 1.20.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 +297 -21
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-accordion_4.cjs.entry.js +137 -16
- package/dist/cjs/spw-avatar.cjs.entry.js +1 -1
- package/dist/cjs/spw-block-content.cjs.entry.js +3 -2
- package/dist/cjs/spw-box.cjs.entry.js +5 -6
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +5 -3
- package/dist/cjs/spw-card-subtags.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +1 -1
- package/dist/cjs/spw-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/spw-date-picker.cjs.entry.js +1 -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 +51 -9
- 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 +63 -15
- package/dist/cjs/spw-hero.cjs.entry.js +3 -3
- package/dist/cjs/spw-input-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +11 -2
- package/dist/cjs/spw-lightbox.cjs.entry.js +53 -5
- 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-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 +1 -1
- package/dist/cjs/spw-pagination.cjs.entry.js +6 -6
- package/dist/cjs/spw-scrolltop.cjs.entry.js +1 -1
- package/dist/cjs/spw-search-field.cjs.entry.js +20 -2
- 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 +8 -5
- package/dist/cjs/spw-sidenav.cjs.entry.js +2 -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 +3 -3
- 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 +1 -1
- package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +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 +76 -2
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.css +16 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +21 -1
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +3 -0
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +98 -3
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +14 -0
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +23 -1
- package/dist/collection/components/spw-accordion/spw-accordion.css +1 -0
- package/dist/collection/components/spw-accordion/spw-accordion.js +11 -7
- package/dist/collection/components/spw-avatar/spw-avatar.js +1 -1
- package/dist/collection/components/spw-block-content/spw-block-content.css +13 -0
- package/dist/collection/components/spw-block-content/spw-block-content.js +2 -1
- package/dist/collection/components/spw-box/spw-box.css +0 -4
- package/dist/collection/components/spw-box/spw-box.js +5 -7
- 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.js +1 -1
- 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.css +1 -0
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +4 -2
- 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.css +2 -2
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +5 -5
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +1 -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.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.css +9 -0
- package/dist/collection/components/spw-group/spw-group.js +129 -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 +80 -15
- package/dist/collection/components/spw-hero/spw-hero.js +3 -3
- 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 +2 -2
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +15 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox.css +11 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +134 -25
- 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-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.js +40 -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-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +6 -2
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +84 -4
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +2 -2
- 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.css +4 -0
- 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 +1 -1
- package/dist/collection/components/spw-textarea/spw-textarea.js +1 -1
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.css +3 -0
- package/dist/collection/components/spw-wizard/spw-wizard.js +86 -1
- package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +99 -70
- package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +159 -2
- package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +69 -0
- package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +1 -160
- package/dist/collection/stories/organisms/spw-sidenav/spw-sidenav.stories.js +64 -0
- package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +3 -3
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/{p-BCuU5Ywh.js → p-BTTY1Aoh.js} +1 -1
- package/dist/components/p-CZ233jUc.js +1 -0
- package/dist/components/p-CzRB_COv.js +1 -0
- package/dist/components/{p-D9JMaCxL.js → p-D7kEk_Bq.js} +1 -1
- package/dist/components/{p-DfbLlF27.js → p-D9yobKiX.js} +1 -1
- package/dist/components/{p-B68Myli4.js → p-DFkINEAb.js} +1 -1
- package/dist/components/{p-CdYKps3q.js → p-DNh7jzbV.js} +1 -1
- package/dist/components/p-DmD0U8OW.js +1 -0
- package/dist/components/p-DxQ74GK8.js +1 -0
- package/dist/components/{p-CMrHIi6V.js → p-EnUTqnRk.js} +1 -1
- package/dist/components/p-N9GtuZLt.js +1 -0
- package/dist/components/{p-BrrQs_CF.js → p-_nYzjIHU.js} +1 -1
- package/dist/components/{p-Cjd09L60.js → p-ijn7X7l6.js} +1 -1
- package/dist/components/{p-oohA0YBK.js → p-qWBjG9IQ.js} +1 -1
- package/dist/components/{p-VmfmCYD6.js → p-rooGoPru.js} +1 -1
- package/dist/{spw-stencil-library/p-ce07c9cd.entry.js → components/p-yXpAcpXR.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-alert.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.js +1 -1
- 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-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-icon.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 +4 -4
- package/dist/components/spw-pagination.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-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 +446 -29
- package/dist/components_vscode.json +75 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-accordion_4.entry.js +137 -16
- package/dist/esm/spw-avatar.entry.js +1 -1
- package/dist/esm/spw-block-content.entry.js +3 -2
- package/dist/esm/spw-box.entry.js +5 -6
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +1 -1
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +1 -1
- package/dist/esm/spw-card-subtag-item.entry.js +5 -3
- package/dist/esm/spw-card-subtags.entry.js +1 -1
- package/dist/esm/spw-card-title.entry.js +1 -1
- package/dist/esm/spw-card.entry.js +1 -1
- package/dist/esm/spw-checkbox.entry.js +6 -6
- package/dist/esm/spw-date-picker.entry.js +1 -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 +51 -9
- 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 +63 -15
- package/dist/esm/spw-hero.entry.js +3 -3
- package/dist/esm/spw-input-slider.entry.js +1 -1
- package/dist/esm/spw-lightbox-item.entry.js +11 -2
- package/dist/esm/spw-lightbox.entry.js +53 -5
- 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-modal.entry.js +3 -3
- package/dist/esm/spw-mosaic-item.entry.js +1 -1
- package/dist/esm/spw-mosaic.entry.js +1 -1
- package/dist/esm/spw-pagination.entry.js +6 -6
- package/dist/esm/spw-scrolltop.entry.js +1 -1
- package/dist/esm/spw-search-field.entry.js +20 -2
- 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 +8 -5
- package/dist/esm/spw-sidenav.entry.js +2 -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 +3 -3
- 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 +1 -1
- package/dist/esm/spw-textarea.entry.js +1 -1
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +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 +76 -2
- package/dist/spw-stencil-library/{p-10f42f45.entry.js → p-00eb3fc6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7e704f32.entry.js → p-030f69b3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a89eaabb.entry.js → p-074c9eb4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1dc8918c.entry.js → p-0db31b24.entry.js} +1 -1
- package/dist/spw-stencil-library/p-0dba5faf.entry.js +1 -0
- package/dist/spw-stencil-library/{p-455036fe.entry.js → p-105b9fc6.entry.js} +1 -1
- package/dist/spw-stencil-library/p-12052c7f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b835ebc5.entry.js → p-13b5e2e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2417cbbb.entry.js → p-13d1d1a1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4774338c.entry.js → p-1428b28a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1bdf3e61.entry.js → p-15cc6506.entry.js} +1 -1
- package/dist/spw-stencil-library/p-16a60b1b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-50588fc5.entry.js → p-1c021756.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6e52eb6a.entry.js → p-1f91c68f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e8f6b76c.entry.js → p-1fe079d1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6cc0b5f5.entry.js → p-27769aed.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a8bd7ac4.entry.js → p-2b9ffd95.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-95062710.entry.js → p-31830ac7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2b1e084f.entry.js → p-32587b59.entry.js} +1 -1
- package/dist/spw-stencil-library/p-348f1398.entry.js +1 -0
- package/dist/spw-stencil-library/{p-a6ffe0b7.entry.js → p-36ef809d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3ad5c457.entry.js → p-37894ae0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e2898a5f.entry.js → p-3e0a3cbd.entry.js} +2 -2
- package/dist/spw-stencil-library/p-40f40ab3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-bfde8a3a.entry.js → p-4667f645.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fb604e35.entry.js → p-4fa02be3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-90100e0c.entry.js → p-514d03e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-70947adf.entry.js → p-54a965f4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-698c0030.entry.js → p-5f4a8aaf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9ee7a00a.entry.js → p-605e3722.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-932bee0e.entry.js → p-68674b0f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b6678091.entry.js → p-68883d0b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f2714773.entry.js → p-6c85ba9a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-39643956.entry.js → p-6db83ee1.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7168b693.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1e4878b8.entry.js → p-7a927b3d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4b0db9bd.entry.js → p-7fb7c421.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8f1513ad.entry.js → p-816980dc.entry.js} +1 -1
- package/dist/spw-stencil-library/p-85660075.entry.js +1 -0
- package/dist/spw-stencil-library/{p-dad0c8fa.entry.js → p-89e7e9ed.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0696997f.entry.js → p-8ce39569.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2cbb997d.entry.js → p-911379c9.entry.js} +1 -1
- package/dist/spw-stencil-library/p-91f21a93.entry.js +1 -0
- package/dist/spw-stencil-library/{p-bda30c93.entry.js → p-9900c3e8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5e8a5a23.entry.js → p-9a0ccce8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4a06e37f.entry.js → p-9ac75aa3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fabba2d4.entry.js → p-a0027de0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a7b71644.entry.js → p-a28732e3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3f1f7fbb.entry.js → p-a292c806.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a527d245.entry.js +1 -0
- package/dist/spw-stencil-library/{p-ddc867bd.entry.js → p-ab310621.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6c9bc0df.entry.js → p-ab7d74f0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e1926d22.entry.js → p-b0b2f9ce.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9964d952.entry.js → p-b32a76cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0c33cd7d.entry.js → p-b45175b2.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b5716911.entry.js +1 -0
- package/dist/spw-stencil-library/p-b969ceba.entry.js +1 -0
- package/dist/spw-stencil-library/{p-c374d0ff.entry.js → p-c0fb3674.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9f6d4141.entry.js → p-c5dbb538.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0e4056ba.entry.js → p-c93bf39b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fc1e3eb6.entry.js → p-ca38f08f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f1b2d02e.entry.js → p-ca439c3b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-cadcb419.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f98ff9fd.entry.js → p-cd7eef16.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b28c7677.entry.js → p-ce583729.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bdcd9e24.entry.js → p-d3e4ff9e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0647a776.entry.js → p-d87aaef9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eb0c9f5d.entry.js → p-df0a11b9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3777bccc.entry.js → p-e1b3f417.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1da399ed.entry.js → p-e6beadc2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-361f6350.entry.js → p-ea11c40b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ecc49c2e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-57cd2788.entry.js → p-ed4747f2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-243061e9.entry.js → p-ed53f129.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5a697628.entry.js → p-ee625904.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-adbcce82.entry.js → p-f11412df.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3ad6d6f0.entry.js → p-f214f8e4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-af9ea059.entry.js → p-f4046756.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3f83cca0.entry.js → p-f9e5eaf8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f9f9c695.entry.js +1 -0
- package/dist/spw-stencil-library/{p-00bbd54f.entry.js → p-fc10235a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-39add31f.entry.js → p-fc1ccbf0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-93d33de7.entry.js → p-fe41767f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-89931481.entry.js → p-ffa41886.entry.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +1334 -495
- package/dist/types/components/spw-accordion/spw-accordion-content/spw-accordion-content.d.ts +3 -0
- package/dist/types/components/spw-accordion/spw-accordion-item/spw-accordion-item.d.ts +13 -0
- package/dist/types/components/spw-accordion/spw-accordion-title/spw-accordion-title.d.ts +2 -0
- package/dist/types/components/spw-accordion/spw-accordion.d.ts +1 -1
- package/dist/types/components/spw-box/spw-box.d.ts +0 -1
- package/dist/types/components/spw-group/spw-group.d.ts +18 -0
- package/dist/types/components/spw-header/spw-header.d.ts +12 -0
- package/dist/types/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.d.ts +4 -0
- package/dist/types/components/spw-lightbox/spw-lightbox.d.ts +13 -2
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +4 -0
- package/dist/types/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.d.ts +8 -0
- package/dist/types/components/spw-wizard/spw-wizard.d.ts +22 -0
- package/dist/types/components.d.ts +152 -11
- package/dist/types/stories/organisms/spw-accordion/spw-accordion.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-group/spw-group.stories.d.ts +2 -0
- package/dist/types/stories/organisms/spw-sidenav/spw-sidenav.stories.d.ts +2 -1
- package/hydrate/index.js +564 -175
- package/hydrate/index.mjs +564 -175
- package/package.json +1 -1
- package/dist/components/p-C2YutT5r.js +0 -1
- package/dist/components/p-CZa7267G.js +0 -1
- package/dist/components/p-Ci0r8I9g.js +0 -1
- package/dist/components/p-CqWtzvF4.js +0 -1
- package/dist/components/p-DVxJ3wRZ.js +0 -1
- package/dist/components/p-DaUZrpCq.js +0 -1
- package/dist/spw-stencil-library/p-0a0b5695.entry.js +0 -1
- package/dist/spw-stencil-library/p-235a9a01.entry.js +0 -1
- package/dist/spw-stencil-library/p-55f21ebb.entry.js +0 -1
- package/dist/spw-stencil-library/p-655a0920.entry.js +0 -1
- package/dist/spw-stencil-library/p-7f04e78e.entry.js +0 -1
- package/dist/spw-stencil-library/p-acd17168.entry.js +0 -1
- package/dist/spw-stencil-library/p-ade0b4ca.entry.js +0 -1
- package/dist/spw-stencil-library/p-bde71818.entry.js +0 -1
- package/dist/spw-stencil-library/p-c36db9e3.entry.js +0 -1
- package/dist/spw-stencil-library/p-c7480955.entry.js +0 -1
- package/dist/spw-stencil-library/p-e286f138.entry.js +0 -1
- package/dist/spw-stencil-library/p-e7e8a60a.entry.js +0 -1
- package/dist/spw-stencil-library/p-f473aba1.entry.js +0 -1
|
@@ -8,6 +8,14 @@ export class SpwLightbox {
|
|
|
8
8
|
this.closeOnBackdropClick = true;
|
|
9
9
|
/** Affiche ou masque la galerie de miniatures sous l'image principale */
|
|
10
10
|
this.showThumbnails = true;
|
|
11
|
+
/** Sous 1024px, limite le nombre de vignettes visibles et affiche un bouton d'ouverture */
|
|
12
|
+
this.limitOnMobile = true;
|
|
13
|
+
/** Nombre de vignettes visibles sous 1024px quand limitOnMobile est actif */
|
|
14
|
+
this.mobileLimit = 3;
|
|
15
|
+
/** Texte du bouton d'ouverture affiché sous 1024px */
|
|
16
|
+
this.showGalleryText = 'Afficher la galerie';
|
|
17
|
+
/** Type de déclencheur d'ouverture affiché sous 1024px : bouton (défaut) ou lien */
|
|
18
|
+
this.showGalleryTrigger = 'button';
|
|
11
19
|
// Textes customisables
|
|
12
20
|
/** Label aria de la dialog */
|
|
13
21
|
this.textDialogLabel = "Galerie d'images";
|
|
@@ -17,17 +25,31 @@ export class SpwLightbox {
|
|
|
17
25
|
this.textNext = 'Image suivante';
|
|
18
26
|
/** Label aria de la liste de miniatures */
|
|
19
27
|
this.textThumbnailsLabel = 'Miniatures';
|
|
20
|
-
/** Label aria d'une miniature (utiliser {index} comme placeholder) */
|
|
21
|
-
this.textThumbnailItem = 'Image {index}';
|
|
22
28
|
this.opened = false;
|
|
23
29
|
this.activeIndex = 0;
|
|
24
30
|
this.items = [];
|
|
31
|
+
this.hasMobileOverflow = false;
|
|
25
32
|
this.previouslyFocusedElement = null;
|
|
26
33
|
this.currentAnimation = null;
|
|
27
34
|
this.swipeStartX = 0;
|
|
28
35
|
this.swipeStartY = 0;
|
|
29
36
|
this.isSwiping = false;
|
|
30
37
|
this.SWIPE_THRESHOLD = 50;
|
|
38
|
+
this.markMobileOverflow = () => {
|
|
39
|
+
const items = Array.from(this.hostElement.querySelectorAll('spw-lightbox-item'));
|
|
40
|
+
const hasOverflow = this.limitOnMobile && this.mobileLimit < items.length;
|
|
41
|
+
items.forEach((item, index) => {
|
|
42
|
+
var _a;
|
|
43
|
+
const target = (_a = item.closest('spw-grid-item')) !== null && _a !== void 0 ? _a : item;
|
|
44
|
+
if (hasOverflow && index >= this.mobileLimit) {
|
|
45
|
+
target.setAttribute('data-spw-lb-overflow', '');
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
target.removeAttribute('data-spw-lb-overflow');
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
this.hasMobileOverflow = hasOverflow;
|
|
52
|
+
};
|
|
31
53
|
this.handleItemClick = (event) => {
|
|
32
54
|
var _a;
|
|
33
55
|
this.collectItems();
|
|
@@ -77,12 +99,23 @@ export class SpwLightbox {
|
|
|
77
99
|
this.isSwiping = false;
|
|
78
100
|
};
|
|
79
101
|
}
|
|
102
|
+
static ensureOverflowStyles() {
|
|
103
|
+
if (SpwLightbox.overflowStylesInjected || typeof document === 'undefined')
|
|
104
|
+
return;
|
|
105
|
+
const style = document.createElement('style');
|
|
106
|
+
style.setAttribute('data-spw-lightbox-overflow', '');
|
|
107
|
+
style.textContent = '@media (max-width:1023px){spw-lightbox.spw-lightbox--limit-mobile [data-spw-lb-overflow]{display:none !important;}}';
|
|
108
|
+
document.head.appendChild(style);
|
|
109
|
+
SpwLightbox.overflowStylesInjected = true;
|
|
110
|
+
}
|
|
80
111
|
componentDidLoad() {
|
|
81
112
|
window.addEventListener('keydown', this.handleKeydown);
|
|
82
113
|
this.hostElement.addEventListener('spwLightboxItemClick', this.handleItemClick);
|
|
83
114
|
this.imageWrapperEl.addEventListener('touchstart', this.handleTouchStart, { passive: true });
|
|
84
115
|
this.imageWrapperEl.addEventListener('touchmove', this.handleTouchMove, { passive: false });
|
|
85
116
|
this.imageWrapperEl.addEventListener('touchend', this.handleTouchEnd);
|
|
117
|
+
SpwLightbox.ensureOverflowStyles();
|
|
118
|
+
this.markMobileOverflow();
|
|
86
119
|
}
|
|
87
120
|
disconnectedCallback() {
|
|
88
121
|
var _a, _b, _c;
|
|
@@ -93,6 +126,9 @@ export class SpwLightbox {
|
|
|
93
126
|
(_c = this.imageWrapperEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('touchend', this.handleTouchEnd);
|
|
94
127
|
document.body.style.overflow = '';
|
|
95
128
|
}
|
|
129
|
+
onLimitPropsChange() {
|
|
130
|
+
this.markMobileOverflow();
|
|
131
|
+
}
|
|
96
132
|
async open(index = 0) {
|
|
97
133
|
this.collectItems();
|
|
98
134
|
this.activeIndex = index;
|
|
@@ -221,10 +257,15 @@ export class SpwLightbox {
|
|
|
221
257
|
}
|
|
222
258
|
render() {
|
|
223
259
|
const { opened, activeItem, items, activeIndex } = this;
|
|
224
|
-
return (h(Host, { key: '
|
|
260
|
+
return (h(Host, { key: 'fc882fae18f6bb8c52a8624a8f9ca1f3c8752120', class: { 'spw-lightbox--limit-mobile': this.hasMobileOverflow } }, h("div", { key: 'e67f81c2d1d04f8322ba1c29cde376411aade9a1', inert: opened || undefined }, h("slot", { key: '2b59692671ca399fc77d01ffba706e8a7d7ae02e' }), this.hasMobileOverflow && (h("div", { key: '2d0e85ff554bbd5ba80ab714bab57063ea547417', class: "spw-lightbox__show-gallery" }, this.showGalleryTrigger === 'link' ? (h("spw-link", { icon: "fa-images", "icon-position": "left", role: "button", tabindex: "0", onClick: () => this.open(0), onKeyDown: (e) => {
|
|
261
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
262
|
+
e.preventDefault();
|
|
263
|
+
this.open(0);
|
|
264
|
+
}
|
|
265
|
+
} }, this.showGalleryText)) : (h("spw-button", { icon: "fa-images", "icon-position": "left", onClick: () => this.open(0) }, this.showGalleryText))))), h("div", { key: '02ded76f5a4d76b97a58e0d0ea28af6b7b86da8e', ref: el => (this.lightboxContainer = el), class: { 'spw-lightbox': true, 'spw-lightbox--opened': opened }, role: "dialog", "aria-modal": "true", "aria-label": this.textDialogLabel }, h("div", { key: '7a069e3f6d64040b1b9afd5fa34e72c650d4f172', class: "spw-lightbox__backdrop", onClick: () => this.handleBackdropClick(), "aria-hidden": "true" }), h("div", { key: '97a0c94f9d1dfb48d4aefb0dd49d42903802868e', class: "spw-lightbox__container" }, h("div", { key: '3db76875855c17689f52f178f76263b2eff0569f', class: "spw-lightbox__toolbar" }, h("span", { key: '0d1e5d864a2f4c233ebf5b901d73cf4ecb0b4778', class: "spw-lightbox__counter", "aria-live": "polite" }, items.length > 0 ? `${activeIndex + 1} / ${items.length}` : ''), h("div", { key: '5e986567fe2559201310eb63d2ac1f3785a64fe6', ref: el => (this.closeButtonEl = el), class: "spw-lightbox__close", tabIndex: 0, role: "button", onClick: () => this.doClose(), onKeyDown: (e) => {
|
|
225
266
|
if (e.key === 'Enter' || e.key === ' ')
|
|
226
267
|
this.doClose();
|
|
227
|
-
} }, h("spw-link", { key: '
|
|
268
|
+
} }, h("spw-link", { key: 'dfb799961776ec8569a5c4836b2f5690e74e4811', "icon-position": "right", icon: "fa-xmark" }, this.closeButtonText))), h("div", { key: '18e2526c16f7651228d1a0a46e22f5927314c5fc', class: "spw-lightbox__stage" }, items.length > 1 && (h("spw-button", { key: '3d6096dba914c42c5d42366526a24d82e9e51bc1', class: "spw-lightbox__nav spw-lightbox__nav--prev", "is-icon-only": true, icon: "fa-chevron-left", "acc-aria-label": this.textPrevious, variant: "secondary", onClick: () => this.navigate(-1) })), h("div", { key: '2880a266401eebc0e0d611923889e0d3f8107272', class: "spw-lightbox__image-wrapper", ref: el => (this.imageWrapperEl = el) }, activeItem && (h("div", { key: 'ac5a3f27bf60147409af5e014ac523aecc86c761', class: "spw-lightbox__image-frame" }, h("img", { class: "spw-lightbox__image", src: activeItem.src, alt: activeItem.alt || '', key: activeItem.src }), ((activeItem === null || activeItem === void 0 ? void 0 : activeItem.captionTitle) || (activeItem === null || activeItem === void 0 ? void 0 : activeItem.captionText) || (activeItem === null || activeItem === void 0 ? void 0 : activeItem.copyrightText)) && (h("div", { key: '192b0229b206dcd2b78a084afdd19ce0debdaed0', class: "spw-lightbox__caption", "aria-live": "polite" }, h("div", { key: '28419fdd76e3583fbca7abf8ee10468d1b4ace50', class: "spw-lightbox__caption-content" }, activeItem.captionTitle && h("strong", { key: 'ca1853b7ab2a49c8484897a6a1632dedd7b475e2', class: "spw-lightbox__caption-title" }, activeItem.captionTitle), activeItem.captionText && h("span", { key: 'fd7a4366841c9335ae25205a329d3dba17fa630a', class: "spw-lightbox__caption-text" }, activeItem.captionText)), activeItem.copyrightText && (h("spw-tag", { key: '3643d0c570f1f813fcb205b4cf20fa4a4722813e', size: "small", "icon-variant": activeItem.copyrightIconVariant, class: "spw-lightbox__copyright", icon: activeItem.copyrightIcon, href: activeItem.copyrightHref || undefined, target: activeItem.copyrightHref ? activeItem.copyrightTarget : undefined }, activeItem.copyrightText))))))), items.length > 1 && (h("spw-button", { key: '99985efab292f4ccf1400b60ba4694b35449f829', class: "spw-lightbox__nav spw-lightbox__nav--next", "is-icon-only": true, icon: "fa-chevron-right", "acc-aria-label": this.textNext, variant: "secondary", onClick: () => this.navigate(1) }))), this.showThumbnails && items.length > 1 && (h("div", { key: 'b7f0aac537c525e08a72e23e4c4b011cb1620880', class: "spw-lightbox__thumbnails", role: "tablist", "aria-label": this.textThumbnailsLabel, ref: el => (this.thumbnailsEl = el) }, items.map((item, index) => (h("button", { key: item.src, role: "tab", class: { 'spw-lightbox__thumb': true, 'spw-lightbox__thumb--active': index === activeIndex }, onClick: () => (this.activeIndex = index), "aria-selected": String(index === activeIndex), "aria-label": item.alt || 'Image ' + (index + 1) }, h("img", { src: item.src, alt: item.alt || '', loading: "lazy" }))))))))));
|
|
228
269
|
}
|
|
229
270
|
static get is() { return "spw-lightbox"; }
|
|
230
271
|
static get encapsulation() { return "shadow"; }
|
|
@@ -319,7 +360,47 @@ export class SpwLightbox {
|
|
|
319
360
|
"attribute": "show-thumbnails",
|
|
320
361
|
"defaultValue": "true"
|
|
321
362
|
},
|
|
322
|
-
"
|
|
363
|
+
"limitOnMobile": {
|
|
364
|
+
"type": "boolean",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "boolean",
|
|
368
|
+
"resolved": "boolean",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": false,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "Sous 1024px, limite le nombre de vignettes visibles et affiche un bouton d'ouverture"
|
|
376
|
+
},
|
|
377
|
+
"getter": false,
|
|
378
|
+
"setter": false,
|
|
379
|
+
"reflect": false,
|
|
380
|
+
"attribute": "limit-on-mobile",
|
|
381
|
+
"defaultValue": "true"
|
|
382
|
+
},
|
|
383
|
+
"mobileLimit": {
|
|
384
|
+
"type": "number",
|
|
385
|
+
"mutable": false,
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "number",
|
|
388
|
+
"resolved": "number",
|
|
389
|
+
"references": {}
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"optional": false,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Nombre de vignettes visibles sous 1024px quand limitOnMobile est actif"
|
|
396
|
+
},
|
|
397
|
+
"getter": false,
|
|
398
|
+
"setter": false,
|
|
399
|
+
"reflect": false,
|
|
400
|
+
"attribute": "mobile-limit",
|
|
401
|
+
"defaultValue": "3"
|
|
402
|
+
},
|
|
403
|
+
"showGalleryText": {
|
|
323
404
|
"type": "string",
|
|
324
405
|
"mutable": false,
|
|
325
406
|
"complexType": {
|
|
@@ -331,15 +412,35 @@ export class SpwLightbox {
|
|
|
331
412
|
"optional": false,
|
|
332
413
|
"docs": {
|
|
333
414
|
"tags": [],
|
|
334
|
-
"text": "
|
|
415
|
+
"text": "Texte du bouton d'ouverture affich\u00E9 sous 1024px"
|
|
335
416
|
},
|
|
336
417
|
"getter": false,
|
|
337
418
|
"setter": false,
|
|
338
419
|
"reflect": false,
|
|
339
|
-
"attribute": "
|
|
340
|
-
"defaultValue": "
|
|
420
|
+
"attribute": "show-gallery-text",
|
|
421
|
+
"defaultValue": "'Afficher la galerie'"
|
|
341
422
|
},
|
|
342
|
-
"
|
|
423
|
+
"showGalleryTrigger": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"mutable": false,
|
|
426
|
+
"complexType": {
|
|
427
|
+
"original": "'button' | 'link'",
|
|
428
|
+
"resolved": "\"button\" | \"link\"",
|
|
429
|
+
"references": {}
|
|
430
|
+
},
|
|
431
|
+
"required": false,
|
|
432
|
+
"optional": false,
|
|
433
|
+
"docs": {
|
|
434
|
+
"tags": [],
|
|
435
|
+
"text": "Type de d\u00E9clencheur d'ouverture affich\u00E9 sous 1024px : bouton (d\u00E9faut) ou lien"
|
|
436
|
+
},
|
|
437
|
+
"getter": false,
|
|
438
|
+
"setter": false,
|
|
439
|
+
"reflect": false,
|
|
440
|
+
"attribute": "show-gallery-trigger",
|
|
441
|
+
"defaultValue": "'button'"
|
|
442
|
+
},
|
|
443
|
+
"textDialogLabel": {
|
|
343
444
|
"type": "string",
|
|
344
445
|
"mutable": false,
|
|
345
446
|
"complexType": {
|
|
@@ -351,15 +452,15 @@ export class SpwLightbox {
|
|
|
351
452
|
"optional": false,
|
|
352
453
|
"docs": {
|
|
353
454
|
"tags": [],
|
|
354
|
-
"text": "Label aria
|
|
455
|
+
"text": "Label aria de la dialog"
|
|
355
456
|
},
|
|
356
457
|
"getter": false,
|
|
357
458
|
"setter": false,
|
|
358
459
|
"reflect": false,
|
|
359
|
-
"attribute": "text-
|
|
360
|
-
"defaultValue": "'
|
|
460
|
+
"attribute": "text-dialog-label",
|
|
461
|
+
"defaultValue": "\"Galerie d'images\""
|
|
361
462
|
},
|
|
362
|
-
"
|
|
463
|
+
"textPrevious": {
|
|
363
464
|
"type": "string",
|
|
364
465
|
"mutable": false,
|
|
365
466
|
"complexType": {
|
|
@@ -371,15 +472,15 @@ export class SpwLightbox {
|
|
|
371
472
|
"optional": false,
|
|
372
473
|
"docs": {
|
|
373
474
|
"tags": [],
|
|
374
|
-
"text": "Label aria du bouton image
|
|
475
|
+
"text": "Label aria du bouton image pr\u00E9c\u00E9dente"
|
|
375
476
|
},
|
|
376
477
|
"getter": false,
|
|
377
478
|
"setter": false,
|
|
378
479
|
"reflect": false,
|
|
379
|
-
"attribute": "text-
|
|
380
|
-
"defaultValue": "'Image
|
|
480
|
+
"attribute": "text-previous",
|
|
481
|
+
"defaultValue": "'Image pr\u00E9c\u00E9dente'"
|
|
381
482
|
},
|
|
382
|
-
"
|
|
483
|
+
"textNext": {
|
|
383
484
|
"type": "string",
|
|
384
485
|
"mutable": false,
|
|
385
486
|
"complexType": {
|
|
@@ -391,15 +492,15 @@ export class SpwLightbox {
|
|
|
391
492
|
"optional": false,
|
|
392
493
|
"docs": {
|
|
393
494
|
"tags": [],
|
|
394
|
-
"text": "Label aria
|
|
495
|
+
"text": "Label aria du bouton image suivante"
|
|
395
496
|
},
|
|
396
497
|
"getter": false,
|
|
397
498
|
"setter": false,
|
|
398
499
|
"reflect": false,
|
|
399
|
-
"attribute": "text-
|
|
400
|
-
"defaultValue": "'
|
|
500
|
+
"attribute": "text-next",
|
|
501
|
+
"defaultValue": "'Image suivante'"
|
|
401
502
|
},
|
|
402
|
-
"
|
|
503
|
+
"textThumbnailsLabel": {
|
|
403
504
|
"type": "string",
|
|
404
505
|
"mutable": false,
|
|
405
506
|
"complexType": {
|
|
@@ -411,13 +512,13 @@ export class SpwLightbox {
|
|
|
411
512
|
"optional": false,
|
|
412
513
|
"docs": {
|
|
413
514
|
"tags": [],
|
|
414
|
-
"text": "Label aria
|
|
515
|
+
"text": "Label aria de la liste de miniatures"
|
|
415
516
|
},
|
|
416
517
|
"getter": false,
|
|
417
518
|
"setter": false,
|
|
418
519
|
"reflect": false,
|
|
419
|
-
"attribute": "text-
|
|
420
|
-
"defaultValue": "'
|
|
520
|
+
"attribute": "text-thumbnails-label",
|
|
521
|
+
"defaultValue": "'Miniatures'"
|
|
421
522
|
}
|
|
422
523
|
};
|
|
423
524
|
}
|
|
@@ -425,7 +526,8 @@ export class SpwLightbox {
|
|
|
425
526
|
return {
|
|
426
527
|
"opened": {},
|
|
427
528
|
"activeIndex": {},
|
|
428
|
-
"items": {}
|
|
529
|
+
"items": {},
|
|
530
|
+
"hasMobileOverflow": {}
|
|
429
531
|
};
|
|
430
532
|
}
|
|
431
533
|
static get events() {
|
|
@@ -506,6 +608,12 @@ export class SpwLightbox {
|
|
|
506
608
|
static get elementRef() { return "hostElement"; }
|
|
507
609
|
static get watchers() {
|
|
508
610
|
return [{
|
|
611
|
+
"propName": "limitOnMobile",
|
|
612
|
+
"methodName": "onLimitPropsChange"
|
|
613
|
+
}, {
|
|
614
|
+
"propName": "mobileLimit",
|
|
615
|
+
"methodName": "onLimitPropsChange"
|
|
616
|
+
}, {
|
|
509
617
|
"propName": "opened",
|
|
510
618
|
"methodName": "onOpenedChange"
|
|
511
619
|
}, {
|
|
@@ -523,3 +631,4 @@ export class SpwLightbox {
|
|
|
523
631
|
}];
|
|
524
632
|
}
|
|
525
633
|
}
|
|
634
|
+
SpwLightbox.overflowStylesInjected = false;
|
|
@@ -34,7 +34,7 @@ export class SpwLink {
|
|
|
34
34
|
};
|
|
35
35
|
const iconClass = `spw-icon--${iconPosition}`;
|
|
36
36
|
const iconElement = icon ? h("spw-icon", { class: iconClass, icon: icon }) : null;
|
|
37
|
-
return (h("a", Object.assign({ key: '
|
|
37
|
+
return (h("a", Object.assign({ key: '31fe43ec816a5e9f95898f2aca558fb1268888b0', href: disabled ? undefined : href, rel: rel, download: download, target: target, class: this.elementClass, onClick: this.onClick }, ariaAttributes), iconPosition === 'left' && iconElement, h("div", { key: 'd695a99bdd24a0cd31e5004d9e3a33b74f47f975', class: "spw-link__inner" }, h("slot", { key: '7df2f39756fdce5441eedf9c4ff90ada73f1dc34' })), iconPosition === 'right' && iconElement));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "spw-link"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class SpwListDescription {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '82cc428d16223c26a6d66765219b917ee7b78318' }, h("div", { key: '8b66fd5bb14cd22498f9c4d7977f7ff714f96411', class: this.elementClass }, h("slot", { key: '15f4c88c6f3aae348df630d0f8ae174607b9ba83' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "spw-list-description"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -106,7 +106,7 @@ export class SpwListItem {
|
|
|
106
106
|
href,
|
|
107
107
|
target,
|
|
108
108
|
};
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: '385f931f7fd23a8f352c8c32c444a8610afc2b38' }, h("li", { key: '303c1084ffbc19a8e60180a2eac56401432ed93a', role: "listitem", class: this.elementClass }, this.category && (h("span", { key: '5dd2447b1d03a63912fba8390151c3ac29350255', class: this.elementCatClass, onClick: () => this.handleClick() }, this.categoryIcon && h("spw-icon", { key: '6845172f35c7143bed3f8176724a5a226ffffcc4', icon: this.categoryIcon }), " ", this.category)), h(TagType, Object.assign({ key: '20b1f9ac28bf85b3a2ea7710085539a328d4ea16' }, attrs), h("slot", { key: 'c31ab3e9ea772450672082c19136c99ae887861c' })), h("slot", { key: '4d80a2e533d6a471a9c8c0ba9dc5bec973c28a98', name: "buttons" }))));
|
|
110
110
|
}
|
|
111
111
|
static get is() { return "spw-list-item"; }
|
|
112
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class SpwListTitle {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '64d87efc60191140b81da29a83f2a3bf98de07b5' }, h("div", { key: '54ce768f876336e45ff8ecd6c798efb5cb299d11', class: this.elementClass }, this.icon && h("spw-icon", { key: '06509a76e51902706b68b59b4cf11de0ac3f3e51', icon: this.icon }), h("div", { key: '2914c946796778954ab244698cd0215d22f495ab', class: "spw-list-title__content" }, h("div", { key: 'bae437a87e78f283b78b08966d8dbd11708cdc7b', class: "spw-list-title__content-text" }, h("slot", { key: '163ce664adc6158415cdd9599d825118a4cf9250' }))))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "spw-list-title"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,7 +29,7 @@ export class SpwList {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '7638cbf0ee2ff02b62c0cad996bc6cc844786f9a' }, h("ul", { key: '91f6eb7f74bd438acf9610a31f8500e63e8ce9c6', role: "list", class: this.elementClass }, h("slot", { key: 'c4fe0623956394514b9abd7091f876725ad47e86' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "spw-list"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class SpwLoading {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'b063f0c6ea680341f450e3549b148c3b3b002673' }, h("div", { key: '385d0fa8fed8cf47d4f8d2fdbdb5e5ed09801cb9', class: this.loadingClasses }, h("div", { key: '91d8c19a62af34e67c360f6fb37a5e4e833b6049', class: "spw-loading__spinner" }), this.text && h("p", { key: 'efc441ae4369baee3af03dc7dd6423dff288b2c8', class: "spw-loading__text" }, this.text))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "spw-loading"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -172,13 +172,13 @@ export class SpwModal {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: '4e39ab2a819420663d6c896692d6747a38bdc9bf' }, h("div", { key: '70240dff5a4daac1ae51281e8120727be9fd4f28', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: '8573eb196bdfe202b5992d28e9f723e35eebc934', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: 'cd633862e527fc4406cc9358734670bacd4a5fb2', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: 'd3acf1c948c8ef5b3b855073b3cbed2acf1930c8', class: "spw-modal__content", ref: el => (this.modalContent = el), onScroll: this.handleContentScroll }, h("div", { key: 'c7de183e7157259f8725d02d60821faac65bd46e', class: "spw-modal__header" }, h("div", { key: '0df3389aab840ce2ec2ce05012e810d915395b56', class: "spw-modal__title-container" }, this.alertIcon && h("spw-icon", { key: 'fb753be84ebeef80b6a0c9b3ac0d83e260c694e8', class: "spw-modal__alert-icon", icon: this.alertIcon }), h("h2", { key: 'cd4ad8c424b6d6e9416a1761ecf3b3331a82578b', class: "spw-modal__caption" }, this.caption)), this.showCloseButton && (h("div", { key: '01950c032d5a86454b534c84a7d0b6554dcb5582', 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: '2bb330846c77be0f386dc30aa4655e7b5d979646', "icon-position": "right", icon: "fa-xmark" }, this.closeButtonText)))), h("div", { key: '8061bf5f6f75ed5289d5cccd353096abb88101a2', class: "spw-modal__body" }, h("slot", { key: '40ddf4803dace6d8c2aeaa4f0a176f76252d61fd', name: "content" })), h("div", { key: 'f2e684e3086c1ef09e1561af7733ac97c1b7bc24', class: { 'spw-modal__buttons': true, 'spw-modal__footer--buttons-present': this.slotButtonsPresent } }, h("slot", { key: '930aed1625a7d889f14ed95b3207da28f44f8058', 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: 'c0a5470f40f3e4ba8e5a7de063798508876e082a', "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: '78f2e84f84d208076fac405f2d4a092af466f66b' }, h("slot", { key: '192fd3f7aa0afb9b9e7558f7ab2410ff13761b38' })));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "spw-mosaic-item"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -162,7 +162,7 @@ export class SpwMosaic {
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '05cffea33db037e50062d44fcb31a4b7919bbbec' }, h("div", { key: '1b796deb9713df7bc400f3ec9848f0c6d4ec50ab', class: this.elementClass }, h("slot", { key: '3b79a88276ec2e94543b6a9d0440597193a35fb9' }))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "spw-mosaic"; }
|
|
168
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: 'ad484248c5a3c7be31932b4f399e34e061a5e560', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '02e92c5d90c133f54d541fcec4c4033734488295', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '1f5ff34612a3cbbc7a18916e018c6d502694bbeb', icon: "fa-chevron-left" }), " ", h("span", { key: '716134a13b15483b4f6f0b809067c1420453749f', class: "spw-pagination__item-arrow-text" }, this.previousButtonText))));
|
|
171
|
+
const nextArrow = showNextArrow && (h("li", { key: '4e88395b0804998cf01ca6c03b0d4597509f0e47', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: 'ed5295b68e7be94421c6c0fe3a46ea8fcd58a897', onClick: () => this.goToPage(this.currentPage + 1) }, h("span", { key: '78f0dd744f01f230abd579580a180b4896e47bf9', class: "spw-pagination__item-arrow-text" }, this.nextButtonText), " ", h("spw-icon", { key: 'b45f280ef34958d96be2cafed359af6e6d3757d9', icon: "fa-chevron-right" }))));
|
|
172
|
+
const prevArrowMobile = this.currentPage > 1 && (h("li", { key: '2b0e2dbac658e3618a367e3ec019c08d3a11d755', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '12125554833c7bd869d8d9c29d700b5b479b824d', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: 'fc958c421ea12d702021c3eb5462da27372e1692', icon: "fa-chevron-left" }), " ", h("span", { key: 'f9aec7bc7fd601d18905e8f24e462620688f777f' }, this.previousButtonText))));
|
|
173
|
+
const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '2e386c8ab28bc380c7cba089e6d577d9be9aaa55', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '06bbb7513f7cc79123f1de56fa9c0ee6a18ffebc', onClick: () => this.goToPage(this.currentPage + 1), disabled: this.currentPage >= this.totalPages }, h("span", { key: 'b141d2ffd813e815d1434b05ad4c45e3e8ae4261' }, this.nextButtonText), " ", h("spw-icon", { key: 'dd445a7c086ca40463d0ff1a9b9db9589e4e32bf', icon: "fa-chevron-right" }))));
|
|
174
|
+
const mobileArrows = (h("ul", { key: '085f311953ccea350254ab984100b2e18c2aebe8', class: "spw-pagination__mobile-arrows" }, prevArrowMobile, nextArrowMobile));
|
|
175
|
+
return (h(Host, { key: '3d0c6ad857bacf48bf14bc321907117350b5a9a7' }, h("div", { key: '22acdc457a311a4d7c36901d083e0360a3ac1f6c', class: this.getPaginationClass() }, this.variant === 'input' && (h(Fragment, { key: 'd7585869841b7e128c54d8463f510326b3feb7e6' }, h("ul", { key: 'fbb854ddc944d1f4f2f29510cf8278e8a7143044' }, prevArrow, h("li", { key: 'fad19532ee8f61bf2c01714544916d3c6ec95fe4', class: "spw-pagination__input" }, h("spw-text-field", { key: 'c80ad96deb83746fe2d835ec105aa7270c64c0a8', value: this.inputPageValue, type: "text", name: "pagination-input", onInput: event => this.handleInputChange(event), onKeyDown: event => this.handleKeyDown(event), disabled: this.isDisabled })), h("li", { key: '8a979d565dcd80f1adb02a2f75b6c16de2a6e850', class: "spw-pagination__total-pages" }, "sur ", this.totalPages, " ", this.totalPages === 1 ? 'page' : 'pages'), nextArrow), mobileArrows)), this.variant === 'numbers' && (h(Fragment, { key: '757968fa829d0061142c204eb4522ae8b4c1898d' }, h("ul", { key: '75837caa6887184add6763fb3fd659c2f580b1a5' }, 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
|
}
|
|
@@ -73,7 +73,7 @@ export class SpwScrolltop {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '8e1529531f3aba8f009df7fdb8b11cec89eba1a2', class: this.hostClass }, h("spw-button", { key: '59afd1c7b1cf8a5e4c37b082368c3a905336e13f', "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"; }
|
|
@@ -29,6 +29,9 @@ export class SpwSearchField {
|
|
|
29
29
|
this.isLoading = false;
|
|
30
30
|
/** Indique si le dropdown de résultats doit être affiché */
|
|
31
31
|
this.showDropdown = true;
|
|
32
|
+
/** Sur tablette et mobile (< 1024px), au clic sur le champ, ouvre la recherche overlay du
|
|
33
|
+
spw-header. Sans effet en desktop. */
|
|
34
|
+
this.opensHeaderSearchOnMobile = false;
|
|
32
35
|
/** Positionnement du tooltip */
|
|
33
36
|
this.tooltipDirection = 'top';
|
|
34
37
|
/** Curseur du tooltip */
|
|
@@ -52,6 +55,21 @@ export class SpwSearchField {
|
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
};
|
|
58
|
+
// Sur tablette et mobile, si opensHeaderSearchOnMobile est actif : au lieu de saisir dans
|
|
59
|
+
// ce champ, on ouvre la recherche overlay du spw-header de la page (meilleure UX tactile).
|
|
60
|
+
this.handleContainerPointerDown = (event) => {
|
|
61
|
+
if (!this.opensHeaderSearchOnMobile)
|
|
62
|
+
return;
|
|
63
|
+
if (typeof window === 'undefined' || !window.matchMedia('(max-width: 1023px)').matches)
|
|
64
|
+
return;
|
|
65
|
+
const header = document.querySelector('spw-header');
|
|
66
|
+
if (!(header === null || header === void 0 ? void 0 : header.openSearch))
|
|
67
|
+
return;
|
|
68
|
+
// On empêche le focus/ouverture du dropdown local, puis on délègue au header.
|
|
69
|
+
// Le focus sur le champ de recherche est géré par spw-header au toggle de la recherche.
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
header.openSearch();
|
|
72
|
+
};
|
|
55
73
|
this.handleValueChanged = (event) => {
|
|
56
74
|
const newValue = String(event.detail);
|
|
57
75
|
if (this.isSelectingItem) {
|
|
@@ -356,10 +374,10 @@ export class SpwSearchField {
|
|
|
356
374
|
}
|
|
357
375
|
render() {
|
|
358
376
|
this.optionElements = [];
|
|
359
|
-
return (h("div", { key: '
|
|
377
|
+
return (h("div", { key: '567706bcacd30e4d153df89e8444314932380046', ref: el => (this.hostElement = el), class: this.elementClass }, this.label && (h("spw-field-label", { key: '44033c9f209ad799139f7cd7f52344218687f90c', 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: 'db1018bbfaa6d2f6328ae2cce0975a77782c0a05', class: "spw-search-field__container", onPointerDown: this.handleContainerPointerDown }, h("spw-text-field", { key: '809d06a874388de4e39a8fcbd4cb5b6ed478d63d', ref: el => (this.textFieldElement = el), placeholder: this.placeholder, name: this.name, autocomplete: this.autocomplete, 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: '3563f686491d801cb74a7ad1b5066966014543a1', type: "button", class: "spw-search-field__submit", onClick: this.handleSubmit, "aria-label": "Rechercher" })), this.showDropdown && this.isOpen && !!this.items && (h("div", { key: '2bfbca42bad7c63f53c9cad64b51f928905b5b9a', class: `spw-search-field__options spw-search-field__options--${this.dropdownDirection}` }, !!this.filteredItems.length && (h("ul", { key: '1b4f152fb4d40d8830bdb06b7c0c810339911775' }, this.filteredItems.map((item, index) => (h("li", { ref: el => (this.optionElements[index] = el), class: {
|
|
360
378
|
'spw-search-field__option': true,
|
|
361
379
|
'spw-search-field__option--focused': index === this.focusedItemIndex,
|
|
362
|
-
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: '
|
|
380
|
+
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: 'f9d3161feebc6142dfbfec50d52f669bd90991ec', class: "spw-search-field__loading" }, h("spw-loading", { key: '2186be9cec4d3102ed13e89a5152733dc5545027', text: this.loadingText }))), !this.isLoading && !this.filteredItems.length && h("p", { key: '8473c51cb23a59bd22579077746092df396a78d7', class: "spw-search-field__no-results" }, this.noResults), !!this.filteredItems.length && this.viewAllResults && this.showViewAll && (h("p", { key: 'b38ca4493baef1cb96e206bc1e43cbfb6db034ec', class: "spw-search-field__view-all" }, h("a", { key: '5ec0d9041716b69b5a6950910b87e4d5657b9d2c', href: this.viewAllResultsLink, onClick: this.viewAllResultsSubmit ? this.handleSubmit : undefined }, this.viewAllResults, " ", h("spw-icon", { key: '0459604f9e83a1c529c5935b46d4e77e86c8f067', icon: "fa-arrow-right" }))))))));
|
|
363
381
|
}
|
|
364
382
|
static get is() { return "spw-search-field"; }
|
|
365
383
|
static get encapsulation() { return "shadow"; }
|
|
@@ -794,6 +812,26 @@ export class SpwSearchField {
|
|
|
794
812
|
"attribute": "show-dropdown",
|
|
795
813
|
"defaultValue": "true"
|
|
796
814
|
},
|
|
815
|
+
"opensHeaderSearchOnMobile": {
|
|
816
|
+
"type": "boolean",
|
|
817
|
+
"mutable": false,
|
|
818
|
+
"complexType": {
|
|
819
|
+
"original": "boolean",
|
|
820
|
+
"resolved": "boolean",
|
|
821
|
+
"references": {}
|
|
822
|
+
},
|
|
823
|
+
"required": false,
|
|
824
|
+
"optional": true,
|
|
825
|
+
"docs": {
|
|
826
|
+
"tags": [],
|
|
827
|
+
"text": "Sur tablette et mobile (< 1024px), au clic sur le champ, ouvre la recherche overlay du\nspw-header. Sans effet en desktop."
|
|
828
|
+
},
|
|
829
|
+
"getter": false,
|
|
830
|
+
"setter": false,
|
|
831
|
+
"reflect": false,
|
|
832
|
+
"attribute": "opens-header-search-on-mobile",
|
|
833
|
+
"defaultValue": "false"
|
|
834
|
+
},
|
|
797
835
|
"tooltipTitle": {
|
|
798
836
|
"type": "string",
|
|
799
837
|
"mutable": false,
|
|
@@ -27,7 +27,7 @@ export class SpwSeparator {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return h("div", { key: '
|
|
30
|
+
return h("div", { key: '32e9cac3951ddf363d97896d65845fc39bb85bd9', 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: 'ab82ad8ea0daa6ccc5fd191c09f9a1d1b6c4a9b4', class: this.classes }, h("div", { key: '70494c30974df3c487d876ffd463ec9c8f909390', class: "spw-sidebar-navigation-dropdown__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: '0ccb58b187dffcb12a7007fb3ebcde29a85b1c11' }))));
|
|
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: '226ce105dbb0845fccbcec5998f0752b2de4e505', variant: this.iconVariant, icon: this.icon });
|
|
173
|
+
const iconDiv = (h("div", { key: 'bcdbe4ade2169121a6637689bce19884aaa2df00', class: "spw-sidebar-navigation-item__icon" }, this.bubble && h("span", { key: 'aee1783aee98f24f4e7d7ee1158587d821e1394f', 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: 'fd4188e55247ef86d58dd7018ff71f85f113e607', 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: 'c76985c1e295539dda01e0488544500806ea371e', class: "spw-sidebar-navigation-item__content" }, h("div", { key: 'bebaac33c276acba6239accbf3855adacd7e36bc', class: "spw-sidebar-navigation-item__content-label" }, h("slot", { key: 'e4e1348bd5ec150029924fdaa9d1db7dc5c69f93' })), this.hasDropdown && (h("div", { key: '05093bf29532f84f752bfe5291bfe960140d36f4', class: toggleClasses, onClick: this.handleDropdownToggle, tabIndex: this.disabled ? -1 : 0 }, h("spw-icon", { key: '521ddd1a7a1a8ceb66e859bd3390e370283528b5', icon: "fa-chevron-down" }))), h("slot", { key: 'eaa09b74c2e9cf635e72befe86fe22331afdd310', 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: 'bb54d5ae99903cafe5b5e1baad95e5f34005fa4f' }, h("spw-separator", { key: 'b7cf9de97b95ec9d5ed20dac90715dd38b607a73', class: "spw-sidebar-navigation-separator" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-sidebar-navigation-separator"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|