@spw-ds/spw-stencil-library 1.10.2 → 1.12.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 +1207 -160
- package/dist/cjs/{animation-DMuoVGnA.js → animation-tH5DQHbp.js} +7 -2
- package/dist/cjs/index-id_AkABS.js +3187 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +5 -5
- package/dist/cjs/spw-avatar.cjs.entry.js +2 -2
- package/dist/cjs/spw-block-content.cjs.entry.js +3 -3
- package/dist/cjs/spw-box.cjs.entry.js +62 -0
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/spw-button_2.cjs.entry.js +4 -4
- package/dist/cjs/spw-card-content.cjs.entry.js +3 -3
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-image.cjs.entry.js +5 -3
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-subtags.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-card.cjs.entry.js +3 -3
- package/dist/cjs/spw-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +65 -6
- package/dist/cjs/spw-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-field-label_7.cjs.entry.js +18 -18
- package/dist/cjs/spw-field-message.cjs.entry.js +2 -2
- package/dist/cjs/spw-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +3 -3
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +7 -3
- package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/spw-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-grid-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-grid.cjs.entry.js +6 -4
- package/dist/cjs/spw-header-lang.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-header-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona.cjs.entry.js +3 -3
- package/dist/cjs/spw-header.cjs.entry.js +16 -3
- package/dist/cjs/spw-hero.cjs.entry.js +21 -5
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +2 -2
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +55 -0
- package/dist/cjs/spw-lightbox.cjs.entry.js +249 -0
- package/dist/cjs/spw-list-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-list.cjs.entry.js +2 -2
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +5 -5
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
- package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
- package/dist/cjs/spw-radio.cjs.entry.js +2 -2
- package/dist/cjs/spw-scrolltop.cjs.entry.js +2 -2
- package/dist/cjs/spw-search-field.cjs.entry.js +12 -6
- package/dist/cjs/spw-select.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider.cjs.entry.js +26 -9
- package/dist/cjs/spw-socials.cjs.entry.js +2 -2
- package/dist/cjs/spw-stencil-library.cjs.js +2 -2
- package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-header.cjs.entry.js +3 -3
- package/dist/cjs/spw-table-row.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-table.cjs.entry.js +3 -3
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +3 -3
- package/dist/cjs/spw-tabs.cjs.entry.js +2 -2
- package/dist/cjs/spw-tag.cjs.entry.js +2 -2
- package/dist/cjs/spw-text-field.cjs.entry.js +69 -10
- package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-timeline.cjs.entry.js +3 -3
- package/dist/cjs/spw-toast-controller.cjs.entry.js +2 -2
- package/dist/cjs/spw-toast.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc.cjs.entry.js +2 -2
- package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion.js +1 -1
- package/dist/collection/components/spw-avatar/spw-avatar.js +1 -1
- package/dist/collection/components/spw-block-content/spw-block-content.css +6 -6
- package/dist/collection/components/spw-block-content/spw-block-content.js +1 -1
- package/dist/collection/components/spw-box/spw-box.css +507 -0
- package/dist/collection/components/spw-box/spw-box.js +213 -0
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
- package/dist/collection/components/spw-button/spw-button.css +2 -2
- package/dist/collection/components/spw-button/spw-button.js +2 -2
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +15 -0
- 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.css +17 -0
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +25 -1
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
- package/dist/collection/components/spw-card/spw-card.css +12 -0
- package/dist/collection/components/spw-card/spw-card.js +3 -3
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +61 -3
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +124 -5
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +2 -2
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
- package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +3 -1
- 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.css +35 -0
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +12 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.css +3 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer.js +1 -1
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
- package/dist/collection/components/spw-grid/spw-grid.css +18 -1
- package/dist/collection/components/spw-grid/spw-grid.js +24 -2
- package/dist/collection/components/spw-group/spw-group.js +1 -1
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +10 -0
- 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.css +19 -4
- 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 +5 -0
- package/dist/collection/components/spw-header/spw-header.js +34 -1
- package/dist/collection/components/spw-hero/spw-hero.css +37 -0
- package/dist/collection/components/spw-hero/spw-hero.js +97 -5
- package/dist/collection/components/spw-icon/spw-icon.js +1 -1
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +462 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +314 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox.css +614 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +525 -0
- package/dist/collection/components/spw-link/spw-link.js +1 -1
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
- package/dist/collection/components/spw-list/spw-list.js +1 -1
- package/dist/collection/components/spw-loading/spw-loading.js +1 -1
- package/dist/collection/components/spw-modal/spw-modal.js +3 -3
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.js +1 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.css +6 -3
- package/dist/collection/components/spw-search-field/spw-search-field.js +51 -5
- package/dist/collection/components/spw-select/spw-select.js +2 -2
- package/dist/collection/components/spw-separator/spw-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
- package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider.css +15 -0
- package/dist/collection/components/spw-slider/spw-slider.js +89 -7
- package/dist/collection/components/spw-socials/spw-socials.js +1 -1
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
- package/dist/collection/components/spw-table/spw-table.js +2 -2
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +4 -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 +88 -10
- package/dist/collection/components/spw-textarea/spw-textarea.js +2 -2
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.js +1 -1
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +1 -1
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +312 -0
- package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +23 -2
- package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +58 -1
- package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +61 -0
- package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +623 -0
- package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +142 -6
- package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +40 -34
- package/dist/collection/utils/animation.js +7 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DwCnnHgn.js → p-26TmvHEb.js} +1 -1
- package/dist/components/{p-CMLl0RMI.js → p-B3wy-a7G.js} +1 -1
- package/dist/components/{p-D6LWZKvR.js → p-BAbzUkqV.js} +1 -1
- package/dist/components/{p-LSa_rZXb.js → p-BNsbxGcj.js} +1 -1
- package/dist/components/p-BRFNx2DL.js +1 -0
- package/dist/components/{p-BhdoYDTm.js → p-BRlLi9Ar.js} +1 -1
- package/dist/components/{p-DbSA5Qg5.js → p-Bu_U3_Ez.js} +1 -1
- package/dist/components/{p-BjLZzV7o.js → p-C8Vf9QlU.js} +1 -1
- package/dist/components/{p-CDlTW4jP.js → p-CLCgZYzK.js} +1 -1
- package/dist/components/p-CwQbV4MW.js +1 -0
- package/dist/components/{p-BxRsJDtg.js → p-DBIs7bbJ.js} +1 -1
- package/dist/components/{p-JuqrTYPp.js → p-DdZeGXq7.js} +1 -1
- package/dist/components/{p-DJvzArBD.js → p-Dv3JuDht.js} +1 -1
- package/dist/components/p-FB4itEEQ.js +1 -0
- package/dist/components/{p-BlIs4luv.js → p-HzgF73Oa.js} +1 -1
- package/dist/components/{p-DiO72wMf.js → p-oVOlDrOp.js} +1 -1
- package/dist/components/{p-D8N138f1.js → p-w411zfAm.js} +1 -1
- package/dist/components/spw-accordion-content.js +1 -1
- package/dist/components/spw-accordion-item.js +1 -1
- package/dist/components/spw-accordion-title.js +1 -1
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-avatar.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-box.d.ts +11 -0
- package/dist/components/spw-box.js +1 -0
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-breadcrumb.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-icon.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.d.ts +11 -0
- package/dist/components/spw-lightbox-item.js +1 -0
- package/dist/components/spw-lightbox.d.ts +11 -0
- package/dist/components/spw-lightbox.js +1 -0
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +1 -1
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components/spw-select.js +1 -1
- package/dist/components/spw-separator.js +1 -1
- package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/components/spw-sidebar-navigation-item.js +1 -1
- package/dist/components/spw-sidebar-navigation-separator.js +1 -1
- package/dist/components/spw-sidebar.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-table.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toast-controller.js +1 -1
- package/dist/components/spw-toast.js +1 -1
- package/dist/components/spw-toc-container.js +1 -1
- package/dist/components/spw-toc.js +1 -1
- package/dist/components/spw-tooltip.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +1675 -121
- package/dist/esm/{animation-BO7xVlWo.js → animation-BRFNx2DL.js} +7 -2
- package/dist/esm/index-BvJ4Kko5.js +3158 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +5 -5
- package/dist/esm/spw-avatar.entry.js +2 -2
- package/dist/esm/spw-block-content.entry.js +3 -3
- package/dist/esm/spw-box.entry.js +60 -0
- package/dist/esm/spw-breadcrumb-item.entry.js +2 -2
- package/dist/esm/spw-breadcrumb.entry.js +2 -2
- package/dist/esm/spw-button_2.entry.js +4 -4
- package/dist/esm/spw-card-content.entry.js +3 -3
- package/dist/esm/spw-card-excerpt.entry.js +2 -2
- package/dist/esm/spw-card-image.entry.js +5 -3
- package/dist/esm/spw-card-subtag-item.entry.js +2 -2
- package/dist/esm/spw-card-subtags.entry.js +2 -2
- package/dist/esm/spw-card-title.entry.js +2 -2
- package/dist/esm/spw-card.entry.js +3 -3
- package/dist/esm/spw-checkbox.entry.js +2 -2
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +65 -6
- package/dist/esm/spw-date-picker.entry.js +2 -2
- package/dist/esm/spw-dropdown-container.entry.js +2 -2
- package/dist/esm/spw-dropdown-item.entry.js +2 -2
- package/dist/esm/spw-dropdown.entry.js +2 -2
- package/dist/esm/spw-field-label_7.entry.js +18 -18
- package/dist/esm/spw-field-message.entry.js +2 -2
- package/dist/esm/spw-file-upload.entry.js +3 -3
- package/dist/esm/spw-footer-bottom.entry.js +3 -3
- package/dist/esm/spw-footer-content-col.entry.js +7 -3
- package/dist/esm/spw-footer-content.entry.js +2 -2
- package/dist/esm/spw-footer-link.entry.js +3 -3
- package/dist/esm/spw-footer.entry.js +2 -2
- package/dist/esm/spw-grid-item.entry.js +3 -3
- package/dist/esm/spw-grid.entry.js +6 -4
- package/dist/esm/spw-header-lang.entry.js +2 -2
- package/dist/esm/spw-header-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-header-navigation-item.entry.js +3 -3
- package/dist/esm/spw-header-navigation.entry.js +2 -2
- package/dist/esm/spw-header-persona-item.entry.js +2 -2
- package/dist/esm/spw-header-persona.entry.js +3 -3
- package/dist/esm/spw-header.entry.js +16 -3
- package/dist/esm/spw-hero.entry.js +21 -5
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +2 -2
- package/dist/esm/spw-lightbox-item.entry.js +53 -0
- package/dist/esm/spw-lightbox.entry.js +247 -0
- package/dist/esm/spw-list-description.entry.js +2 -2
- package/dist/esm/spw-list-item.entry.js +2 -2
- package/dist/esm/spw-list-title.entry.js +2 -2
- package/dist/esm/spw-list.entry.js +2 -2
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +5 -5
- package/dist/esm/spw-mosaic-item.entry.js +2 -2
- package/dist/esm/spw-mosaic.entry.js +2 -2
- package/dist/esm/spw-pagination.entry.js +7 -7
- package/dist/esm/spw-radio.entry.js +2 -2
- package/dist/esm/spw-scrolltop.entry.js +2 -2
- package/dist/esm/spw-search-field.entry.js +12 -6
- package/dist/esm/spw-select.entry.js +2 -2
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-sidebar-navigation-item.entry.js +4 -4
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
- package/dist/esm/spw-sidebar.entry.js +2 -2
- package/dist/esm/spw-skeleton.entry.js +2 -2
- package/dist/esm/spw-slider-item.entry.js +2 -2
- package/dist/esm/spw-slider.entry.js +26 -9
- package/dist/esm/spw-socials.entry.js +2 -2
- package/dist/esm/spw-stencil-library.js +3 -3
- package/dist/esm/spw-table-body.entry.js +2 -2
- package/dist/esm/spw-table-cell.entry.js +2 -2
- package/dist/esm/spw-table-container.entry.js +2 -2
- package/dist/esm/spw-table-footer.entry.js +2 -2
- package/dist/esm/spw-table-head.entry.js +2 -2
- package/dist/esm/spw-table-header.entry.js +3 -3
- package/dist/esm/spw-table-row.entry.js +2 -2
- package/dist/esm/spw-table-sidebar.entry.js +2 -2
- package/dist/esm/spw-table.entry.js +3 -3
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
- package/dist/esm/spw-tabs-navigation.entry.js +3 -3
- package/dist/esm/spw-tabs.entry.js +2 -2
- package/dist/esm/spw-tag.entry.js +2 -2
- package/dist/esm/spw-text-field.entry.js +69 -10
- package/dist/esm/spw-textarea.entry.js +2 -2
- package/dist/esm/spw-tile-description.entry.js +2 -2
- package/dist/esm/spw-tile-title.entry.js +2 -2
- package/dist/esm/spw-tile.entry.js +2 -2
- package/dist/esm/spw-timeline-item.entry.js +3 -3
- package/dist/esm/spw-timeline.entry.js +3 -3
- package/dist/esm/spw-toast-controller.entry.js +2 -2
- package/dist/esm/spw-toast.entry.js +2 -2
- package/dist/esm/spw-toc-container.entry.js +2 -2
- package/dist/esm/spw-toc-navigation.entry.js +1 -1
- package/dist/esm/spw-toc.entry.js +2 -2
- package/dist/esm/spw-topbar.entry.js +2 -2
- package/dist/esm/spw-wizard-item.entry.js +2 -2
- package/dist/esm/spw-wizard.entry.js +2 -2
- package/dist/spw-stencil-library/{p-3049cc60.entry.js → p-02de5468.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-72d6b4cb.entry.js → p-049c5159.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eb71cf55.entry.js → p-05819904.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4aa5759c.entry.js → p-0a9288b5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c195597b.entry.js → p-0b4fd80e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d21b0833.entry.js → p-0cf5aadc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a4336c0c.entry.js → p-153a026f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b460afdc.entry.js → p-1875874e.entry.js} +1 -1
- package/dist/spw-stencil-library/p-19c01c71.entry.js +1 -0
- package/dist/spw-stencil-library/{p-92b69e67.entry.js → p-1fa367e7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eba031ea.entry.js → p-2298be7a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-06e9e52e.entry.js → p-242e2de6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a574c1f7.entry.js → p-28a5d0bf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1e21eb78.entry.js → p-28e49d02.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2ef62013.entry.js → p-2b182fc8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-935f19f8.entry.js → p-2dda4dfe.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-77c9e985.entry.js → p-34cc819b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-46256b79.entry.js → p-35b865cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8cfe9a5c.entry.js → p-38a53864.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fc3463d2.entry.js → p-3ccb9c03.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f413fe3a.entry.js → p-3e7b44af.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8fc73ffb.entry.js → p-450306c5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-937eeeeb.entry.js → p-47478c37.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5b6d907b.entry.js → p-474cbbca.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11039299.entry.js → p-47a23440.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-584f8ba5.entry.js → p-48b4e11f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9eeeb874.entry.js → p-4c59112a.entry.js} +1 -1
- package/dist/spw-stencil-library/p-4dd215d6.entry.js +1 -0
- package/dist/spw-stencil-library/{p-12878c95.entry.js → p-4eda33d4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-12e209dc.entry.js → p-50ccad8a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5c58ca89.entry.js → p-52731c22.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-536082bb.entry.js → p-58393ab6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-72e7b957.entry.js → p-59925808.entry.js} +1 -1
- package/dist/spw-stencil-library/p-61b5224c.entry.js +1 -0
- package/dist/spw-stencil-library/{p-017e66d3.entry.js → p-661d7e73.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-231fbcc9.entry.js → p-661fcef1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9bcade02.entry.js → p-6676fc1b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-04208e52.entry.js → p-66da29be.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-862ebaf0.entry.js → p-6cf39777.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-989fa86f.entry.js → p-7107ed7f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-dd9a9e15.entry.js → p-7177a4f7.entry.js} +2 -2
- package/dist/spw-stencil-library/{p-ed5c4229.entry.js → p-732b2f4c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1c25df2f.entry.js → p-7ccef87e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9f3abef5.entry.js → p-7db10e21.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e88d700b.entry.js → p-7dd7816b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3ad3b8d1.entry.js → p-8063aa58.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-68c8ab55.entry.js → p-822b0a4b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d8967e7d.entry.js → p-82aa983b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-862856bf.entry.js → p-85e3a088.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-899045e0.entry.js → p-862fdbdb.entry.js} +1 -1
- package/dist/spw-stencil-library/p-873c504b.entry.js +1 -0
- package/dist/spw-stencil-library/p-8a65a845.entry.js +1 -0
- package/dist/spw-stencil-library/{p-461f9d48.entry.js → p-8c750816.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d9b44e31.entry.js → p-95710898.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c84743b7.entry.js → p-97c81dd9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-218ae66c.entry.js → p-9eef1265.entry.js} +1 -1
- package/dist/spw-stencil-library/p-BRFNx2DL.js +1 -0
- package/dist/spw-stencil-library/p-BvJ4Kko5.js +2 -0
- package/dist/spw-stencil-library/p-a3176800.entry.js +1 -0
- package/dist/spw-stencil-library/{p-21ac7e70.entry.js → p-a3c881c8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6ac1cfdb.entry.js → p-a3ee7134.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a6250c87.entry.js +1 -0
- package/dist/spw-stencil-library/{p-ef377fc3.entry.js → p-a6fb9fd7.entry.js} +1 -1
- package/dist/spw-stencil-library/p-aba5a50e.entry.js +1 -0
- package/dist/spw-stencil-library/p-ada5d5c1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fb0820ba.entry.js → p-ae28e3c0.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b02ea898.entry.js +1 -0
- package/dist/spw-stencil-library/{p-bef41011.entry.js → p-b04edce9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-335b9ec2.entry.js → p-b106fb83.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9911694d.entry.js → p-bc45cc77.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6b8ad6ec.entry.js → p-c319b12a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ce6499ac.entry.js → p-c3fcebbb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fd8ae317.entry.js → p-c44b2b7a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bc6051f9.entry.js → p-c8b2eba5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-428c33de.entry.js → p-cf452afb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-326f87ff.entry.js → p-d9d9f6e6.entry.js} +1 -1
- package/dist/spw-stencil-library/p-da114b29.entry.js +1 -0
- package/dist/spw-stencil-library/p-de825095.entry.js +1 -0
- package/dist/spw-stencil-library/{p-a77de6f3.entry.js → p-e0ce83c2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c9cb2441.entry.js → p-e838ba61.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-acd69768.entry.js → p-ecf926b0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1a85816b.entry.js → p-eeacd7b2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bb50f1c6.entry.js → p-f194ab4b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e53ff9dd.entry.js → p-f1baf303.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f1ecd17e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b82b3af6.entry.js → p-f20b2da0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7d0fb1fc.entry.js → p-f2b58e55.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-53b60fa8.entry.js → p-f5d2d168.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f69182ff.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f5b3255d.entry.js → p-f898a06d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6c67f42e.entry.js → p-fab8c92f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-33b37c7f.entry.js → p-fc96be97.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3694301c.entry.js → p-fd564976.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-39cae775.entry.js → p-ff289cc8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c7f64bb6.entry.js → p-ffe7898a.entry.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.css +4 -4
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +12396 -9103
- package/dist/types/components/spw-box/spw-box.d.ts +25 -0
- package/dist/types/components/spw-card/spw-card-image/spw-card-image.d.ts +2 -0
- package/dist/types/components/spw-card/spw-card.d.ts +1 -1
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +12 -1
- package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +1 -1
- package/dist/types/components/spw-footer/spw-footer-content-col/spw-footer-content-col.d.ts +2 -0
- package/dist/types/components/spw-grid/spw-grid.d.ts +2 -0
- package/dist/types/components/spw-header/spw-header.d.ts +2 -0
- package/dist/types/components/spw-hero/spw-hero.d.ts +9 -1
- package/dist/types/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.d.ts +39 -0
- package/dist/types/components/spw-lightbox/spw-lightbox.d.ts +72 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +7 -1
- package/dist/types/components/spw-select/spw-select.d.ts +1 -1
- package/dist/types/components/spw-slider/spw-slider.d.ts +17 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +6 -1
- package/dist/types/components/spw-textarea/spw-textarea.d.ts +1 -1
- package/dist/types/components.d.ts +554 -18
- package/dist/types/stories/components/spw-box/spw-box.stories.d.ts +10 -0
- package/dist/types/stories/components/spw-custom-select/spw-custom-select.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-card/spw-card.stories.d.ts +2 -1
- package/dist/types/stories/organisms/spw-hero/spw-hero.stories.d.ts +3 -0
- package/dist/types/stories/organisms/spw-lightbox/spw-lightbox.stories.d.ts +16 -0
- package/dist/types/stories/organisms/spw-slider/spw-slider.stories.d.ts +8 -1
- package/hydrate/index.js +798 -188
- package/hydrate/index.mjs +798 -188
- package/package.json +1 -1
- package/dist/cjs/index-CX9is0m-.js +0 -3175
- package/dist/components/p-BO7xVlWo.js +0 -1
- package/dist/components/p-CANbQKSH.js +0 -1
- package/dist/components/p-D4YZDvw0.js +0 -1
- package/dist/components_vscode.json +0 -4824
- package/dist/esm/index-Dk6w7kAO.js +0 -3146
- package/dist/spw-stencil-library/p-17891524.entry.js +0 -1
- package/dist/spw-stencil-library/p-438fedef.entry.js +0 -1
- package/dist/spw-stencil-library/p-5779ce33.entry.js +0 -1
- package/dist/spw-stencil-library/p-9397da21.entry.js +0 -1
- package/dist/spw-stencil-library/p-9e73b259.entry.js +0 -1
- package/dist/spw-stencil-library/p-BO7xVlWo.js +0 -1
- package/dist/spw-stencil-library/p-Dk6w7kAO.js +0 -2
- package/dist/spw-stencil-library/p-b4391972.entry.js +0 -1
- package/dist/spw-stencil-library/p-c452d5b0.entry.js +0 -1
- package/dist/spw-stencil-library/p-c8800fc9.entry.js +0 -1
- package/dist/spw-stencil-library/p-ce6317dd.entry.js +0 -1
- package/dist/spw-stencil-library/p-dd4fe0fb.entry.js +0 -1
- package/dist/spw-stencil-library/p-e1b7565b.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
|
-
const spwHeroCss = () => `@charset "UTF-8";html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;--spw-hero-content-max-width:578px;--spw-hero-ratio-picture:initial;--spw-hero-shadow:var(--spw-effect-elevation-5);--spw-hero-radius:12px}.spw-hero{position:relative;overflow:hidden}.spw-hero--has-shadow{box-shadow:var(--spw-hero-shadow)}.spw-hero--has-radius{border-radius:var(--spw-hero-radius)}.spw-hero--surface-dark{color:white}.spw-hero--surface-light{color:var(--spw-color-themes-grey-grey-900)}.spw-hero--grey{background:var(--spw-color-themes-grey-grey-100)}.spw-hero--white{background:white}.spw-hero--grey,.spw-hero--white{display:flex;flex-direction:column;padding:24px;gap:24px}@media (min-width: 1024px){.spw-hero--grey,.spw-hero--white{padding:64px;gap:48px;flex-direction:row;align-items:center}}.spw-hero--has-picture-full{padding:0;gap:0}.spw-hero.spw-hero--grey.spw-hero--left,.spw-hero.spw-hero--white.spw-hero--left{flex-direction:column}@media (min-width: 1024px){.spw-hero.spw-hero--grey.spw-hero--left,.spw-hero.spw-hero--white.spw-hero--left{flex-direction:row-reverse}}.spw-hero__container{display:flex;position:relative;margin:0 auto;z-index:3;padding-left:0;padding-right:0}.spw-hero--photo .spw-hero__container{padding:48px 24px}@media (min-width: 1024px){.spw-hero--photo .spw-hero__container{padding:64px}}.spw-hero--has-picture-full .spw-hero__container{padding:24px}@media (min-width: 1024px){.spw-hero--has-picture-full .spw-hero__container{padding:80px 48px}}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--left .spw-hero__container{padding-left:calc(50% + 48px)}}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--right .spw-hero__container{padding-right:calc(50% + 48px)}}.spw-hero--maxi .spw-hero__container{padding:80px 24px}@media (min-width: 1024px){.spw-hero--maxi .spw-hero__container{padding:148px 24px}}.spw-hero--left .spw-hero__container{justify-content:flex-start}.spw-hero--center .spw-hero__container{justify-content:center}.spw-hero--right .spw-hero__container{justify-content:flex-end}.spw-hero__overlay,.spw-hero__image{position:absolute;width:100%;height:100%;left:0;top:0}.spw-hero__overlay{z-index:2;pointer-events:none}.spw-hero--surface-dark .spw-hero__overlay{background:var(--spw-color-themes-grey-grey-900)}.spw-hero--surface-light .spw-hero__overlay{background:white}.spw-hero__image-play{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:white;color:var(--spw-ds-primary);box-shadow:var(--spw-effect-elevation-5);width:64px;height:64px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:24px;transition:all 0.3s ease;cursor:pointer}.spw-hero__image-play:hover{transform:translate(-50%, -50%) scale(1.1)}.spw-hero__image{z-index:1;overflow:hidden}.spw-hero__image img{width:100%;height:100%;object-fit:cover;display:block}.spw-hero--has-video .spw-hero__image{z-index:4}.spw-hero--white .spw-hero__image,.spw-hero--grey .spw-hero__image{display:block;position:relative;aspect-ratio:var(--spw-hero-ratio-picture);width:100%;border-radius:6px}@media (min-width: 1024px){.spw-hero--white .spw-hero__image,.spw-hero--grey .spw-hero__image{max-width:435px}}.spw-hero--has-picture-full .spw-hero__image{display:block;position:relative;aspect-ratio:var(--spw-hero-ratio-picture);width:100%;border-radius:6px}@media (min-width: 1024px){.spw-hero--has-picture-full .spw-hero__image{position:absolute;max-width:50%}}.spw-hero--has-picture-full.spw-hero--right .spw-hero__image{border-radius:0}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--right .spw-hero__image{right:0;left:auto}}.spw-hero--has-picture-full.spw-hero--left .spw-hero__image{border-radius:0}.spw-hero--has-picture-full.spw-hero--right.spw-hero--has-radius .spw-hero__image{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--right.spw-hero--has-radius .spw-hero__image{border-top-left-radius:0;border-bottom-left-radius:0}}.spw-hero--has-picture-full.spw-hero--left.spw-hero--has-radius .spw-hero__image{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--left.spw-hero--has-radius .spw-hero__image{border-top-right-radius:0;border-bottom-right-radius:0}}.spw-hero__copyright{position:absolute;bottom:8px;right:8px;z-index:3}.spw-hero__content{width:100%}@media (min-width: 1024px){.spw-hero__content{max-width:var(--spw-hero-content-max-width)}}.spw-hero--maxi .spw-hero__content{--spw-hero-content-max-width:784px;margin:0 auto;text-align:center}.spw-hero--photo .spw-hero__content{padding:32px;background-color:var(--spw-ds-white);border-radius:8px;box-shadow:var(--spw-effect-elevation-8)}.spw-hero--mini.spw-hero--surface-light .spw-hero__content,.spw-hero--mini.spw-hero--surface-light .spw-hero__image{background-color:var(--spw-color-themes-grey-grey-100)}.spw-hero--mini.spw-hero--surface-dark .spw-hero__content,.spw-hero--mini.spw-hero--surface-dark .spw-hero__image{background-color:var(--spw-ds-primary)}.spw-hero--mini .spw-hero__image{width:calc(100% - 280px);left:280px;height:100%}@media (min-width: 768px){.spw-hero--mini .spw-hero__image{width:calc(100% - 400px);left:400px}}.spw-hero--mini .spw-hero__image img{border-top-left-radius:900px}.spw-hero--mini .spw-hero__content{position:relative;z-index:3;width:280px;padding:24px;padding-top:48px;border-radius:0}@media (min-width: 768px){.spw-hero--mini .spw-hero__content{padding:32px;padding-top:64px;width:400px}}.spw-hero--mini.spw-hero--no-picture .spw-hero__content{width:100%;max-width:100%}`;
|
|
3
|
+
const spwHeroCss = () => `@charset "UTF-8";html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;--spw-hero-content-max-width:578px;--spw-hero-ratio-picture:initial;--spw-hero-shadow:var(--spw-effect-elevation-5);--spw-hero-radius:12px;--spw-hero-featured-ratio-mobile:initial;--spw-hero-featured-ratio-tablet:initial;--spw-hero-featured-ratio-desktop:initial}.spw-hero{position:relative;overflow:hidden}.spw-hero--has-shadow{box-shadow:var(--spw-hero-shadow)}.spw-hero--has-radius{border-radius:var(--spw-hero-radius)}.spw-hero--surface-dark{color:white}.spw-hero--surface-light{color:var(--spw-color-themes-grey-grey-900)}.spw-hero--grey{background:var(--spw-color-themes-grey-grey-100)}.spw-hero--white{background:white}.spw-hero--grey,.spw-hero--white{display:flex;flex-direction:column;padding:24px;gap:24px}@media (min-width: 1024px){.spw-hero--grey,.spw-hero--white{padding:64px;gap:48px;flex-direction:row;align-items:center}}.spw-hero--has-picture-full{padding:0;gap:0}.spw-hero.spw-hero--grey.spw-hero--left,.spw-hero.spw-hero--white.spw-hero--left{flex-direction:column}@media (min-width: 1024px){.spw-hero.spw-hero--grey.spw-hero--left,.spw-hero.spw-hero--white.spw-hero--left{flex-direction:row-reverse}}.spw-hero__container{display:flex;position:relative;margin:0 auto;z-index:3;padding-left:0;padding-right:0}.spw-hero--photo .spw-hero__container{padding:48px 24px}@media (min-width: 1024px){.spw-hero--photo .spw-hero__container{padding:64px}}.spw-hero--has-picture-full .spw-hero__container{padding:24px}@media (min-width: 1024px){.spw-hero--has-picture-full .spw-hero__container{padding:80px 48px}}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--left .spw-hero__container{padding-left:calc(50% + 48px)}}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--right .spw-hero__container{padding-right:calc(50% + 48px)}}.spw-hero--maxi .spw-hero__container{padding:80px 24px}@media (min-width: 1024px){.spw-hero--maxi .spw-hero__container{padding:148px 24px}}.spw-hero--left .spw-hero__container{justify-content:flex-start}.spw-hero--center .spw-hero__container{justify-content:center}.spw-hero--right .spw-hero__container{justify-content:flex-end}.spw-hero__overlay,.spw-hero__image{position:absolute;width:100%;height:100%;left:0;top:0}.spw-hero__overlay{z-index:2;pointer-events:none}.spw-hero--surface-dark .spw-hero__overlay{background:var(--spw-color-themes-grey-grey-900)}.spw-hero--surface-light .spw-hero__overlay{background:white}.spw-hero__image-play{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:white;color:var(--spw-ds-primary);box-shadow:var(--spw-effect-elevation-5);width:64px;height:64px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:24px;transition:all 0.3s ease;cursor:pointer}.spw-hero__image-play:hover{transform:translate(-50%, -50%) scale(1.1)}.spw-hero__image{z-index:1;overflow:hidden}.spw-hero__image img{width:100%;height:100%;object-fit:cover;display:block}.spw-hero--has-video .spw-hero__image{z-index:4}.spw-hero--white .spw-hero__image,.spw-hero--grey .spw-hero__image{display:block;position:relative;aspect-ratio:var(--spw-hero-ratio-picture);width:100%;border-radius:6px}@media (min-width: 1024px){.spw-hero--white .spw-hero__image,.spw-hero--grey .spw-hero__image{max-width:435px}}.spw-hero--has-picture-full .spw-hero__image{display:block;position:relative;aspect-ratio:var(--spw-hero-ratio-picture);width:100%;border-radius:6px}@media (min-width: 1024px){.spw-hero--has-picture-full .spw-hero__image{position:absolute;max-width:50%}}.spw-hero--has-picture-full.spw-hero--right .spw-hero__image{border-radius:0}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--right .spw-hero__image{right:0;left:auto}}.spw-hero--has-picture-full.spw-hero--left .spw-hero__image{border-radius:0}.spw-hero--has-picture-full.spw-hero--right.spw-hero--has-radius .spw-hero__image{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--right.spw-hero--has-radius .spw-hero__image{border-top-left-radius:0;border-bottom-left-radius:0}}.spw-hero--has-picture-full.spw-hero--left.spw-hero--has-radius .spw-hero__image{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width: 1024px){.spw-hero--has-picture-full.spw-hero--left.spw-hero--has-radius .spw-hero__image{border-top-right-radius:0;border-bottom-right-radius:0}}.spw-hero__copyright{position:absolute;bottom:8px;right:8px;z-index:3}.spw-hero__content{width:100%}@media (min-width: 1024px){.spw-hero__content{max-width:var(--spw-hero-content-max-width)}}.spw-hero--maxi .spw-hero__content{--spw-hero-content-max-width:784px;margin:0 auto;text-align:center}.spw-hero--photo .spw-hero__content{padding:32px;background-color:var(--spw-ds-white);border-radius:8px;box-shadow:var(--spw-effect-elevation-8)}.spw-hero--featured .spw-hero__image{position:relative;width:100%;height:auto}.spw-hero--featured .spw-hero__image img{width:100%;height:auto;display:block}.spw-hero--featured.spw-hero--featured-ratio .spw-hero__image{aspect-ratio:var(--spw-hero-featured-ratio-mobile)}@media (min-width: 768px){.spw-hero--featured.spw-hero--featured-ratio .spw-hero__image{aspect-ratio:var(--spw-hero-featured-ratio-tablet)}}@media (min-width: 1024px){.spw-hero--featured.spw-hero--featured-ratio .spw-hero__image{aspect-ratio:var(--spw-hero-featured-ratio-desktop)}}.spw-hero--featured.spw-hero--featured-ratio .spw-hero__image img{position:absolute;top:0;left:0;height:100%;object-fit:cover}.spw-hero--mini.spw-hero--surface-light .spw-hero__content,.spw-hero--mini.spw-hero--surface-light .spw-hero__image{background-color:var(--spw-color-themes-grey-grey-100)}.spw-hero--mini.spw-hero--surface-dark .spw-hero__content,.spw-hero--mini.spw-hero--surface-dark .spw-hero__image{background-color:var(--spw-ds-primary)}.spw-hero--mini .spw-hero__image{width:calc(100% - 280px);left:280px;height:100%}@media (min-width: 768px){.spw-hero--mini .spw-hero__image{width:calc(100% - 400px);left:400px}}.spw-hero--mini .spw-hero__image img{border-top-left-radius:900px}.spw-hero--mini .spw-hero__content{position:relative;z-index:3;width:280px;padding:24px;padding-top:48px;border-radius:0}@media (min-width: 768px){.spw-hero--mini .spw-hero__content{padding:32px;padding-top:64px;width:400px}}.spw-hero--mini.spw-hero--no-picture .spw-hero__content{width:100%;max-width:100%}`;
|
|
4
4
|
|
|
5
5
|
const SpwHero = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -55,6 +55,7 @@ const SpwHero = class {
|
|
|
55
55
|
[`spw-hero--has-shadow`]: this.hasShadow,
|
|
56
56
|
[`spw-hero--has-radius`]: this.hasRadius,
|
|
57
57
|
[`spw-hero--${this.variant}`]: true,
|
|
58
|
+
[`spw-hero--featured-ratio`]: this.variant === 'featured' && !!(this.featuredRatio || this.featuredRatioMobile || this.featuredRatioTablet || this.featuredRatioDesktop),
|
|
58
59
|
[`spw-hero--${this.alignment}`]: this.variant !== 'mini' ? true : this.alignment === 'left',
|
|
59
60
|
};
|
|
60
61
|
}
|
|
@@ -65,10 +66,25 @@ const SpwHero = class {
|
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
render() {
|
|
68
|
-
const contentSlot = (h("div", { key: '
|
|
69
|
-
const copyrightTag = this.copyrightText && (h("spw-tag", { key: '
|
|
69
|
+
const contentSlot = (h("div", { key: '3d71b0adb42273714affbb6f8461900d529e231a', class: "spw-hero__content" }, h("slot", { key: '866fca9afc61622c34e6efbbe99cd98e3ee7058f' })));
|
|
70
|
+
const copyrightTag = this.copyrightText && (h("spw-tag", { key: 'e2d987fb30ce11300fa353da115004c3a5d07ce6', size: "small", "icon-variant": this.copyrightIconVariant, class: "spw-hero__copyright", icon: this.copyrightIcon, href: this.copyrightHref || undefined, target: this.copyrightHref ? this.copyrightTarget : undefined }, this.copyrightText));
|
|
70
71
|
const isImageVariant = this.variant === 'grey' || this.variant === 'white';
|
|
71
|
-
|
|
72
|
+
const isFeatured = this.variant === 'featured';
|
|
73
|
+
const featuredStyle = {};
|
|
74
|
+
if (isFeatured) {
|
|
75
|
+
if (this.featuredRatio) {
|
|
76
|
+
featuredStyle['--spw-hero-featured-ratio-mobile'] = this.featuredRatio;
|
|
77
|
+
featuredStyle['--spw-hero-featured-ratio-tablet'] = this.featuredRatio;
|
|
78
|
+
featuredStyle['--spw-hero-featured-ratio-desktop'] = this.featuredRatio;
|
|
79
|
+
}
|
|
80
|
+
if (this.featuredRatioMobile)
|
|
81
|
+
featuredStyle['--spw-hero-featured-ratio-mobile'] = this.featuredRatioMobile;
|
|
82
|
+
if (this.featuredRatioTablet)
|
|
83
|
+
featuredStyle['--spw-hero-featured-ratio-tablet'] = this.featuredRatioTablet;
|
|
84
|
+
if (this.featuredRatioDesktop)
|
|
85
|
+
featuredStyle['--spw-hero-featured-ratio-desktop'] = this.featuredRatioDesktop;
|
|
86
|
+
}
|
|
87
|
+
return (h(Host, { key: 'f4ce920d19685d2f38f04268e22403080497b437', style: featuredStyle }, h("div", { key: '1822787f342842d14fea4d8282e2e40e462bc91d', class: this.elementClass }, this.imageSrc && (h("div", { key: 'cc3175ecff1485f901616b9381c5717c819f7b10', class: "spw-hero__image" }, this.hasVideo && this.variant !== 'maxi' && this.variant !== 'photo' && !isFeatured && (h("div", { key: '0124f42b0589fcecbd51f25ba1bf45e98fbec6a8', class: "spw-hero__image-play", onClick: this.triggerModal, onKeyDown: this.handleKeyDown, tabIndex: 0, role: "button", "aria-label": this.accPlayButtonAriaLabel }, h("spw-icon", { key: '96ce095788e5579c77368d5a5a45b3a0ac3b7b33', icon: "fa-play" }))), h("div", { key: '8d09824419f7d0231a03e9a65687b69aaef7a649', class: "spw-hero__overlay", style: this.overlayStyle }), h("img", { key: '9ca04bbf44e4b9be7a05f9a1f9c95596ccf4588c', src: this.imageSrc, alt: this.imageAlt, style: this.imagePosition ? { objectPosition: this.imagePosition } : undefined }), (isImageVariant || isFeatured) && copyrightTag)), !isFeatured && (this.variant === 'mini' ? contentSlot : h("div", { class: "spw-ds-container spw-hero__container" }, contentSlot)), !isImageVariant && !isFeatured && copyrightTag)));
|
|
72
88
|
}
|
|
73
89
|
};
|
|
74
90
|
SpwHero.style = spwHeroCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const spwIllustrationCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;--spw-ds-illustration-max-width:400px;--spw-ds-illustration-max-height:100%;--spw-ds-illustration-width:100%;--spw-ds-illustration-height:100%}.spw-illustration svg{height:var(--spw-ds-illustration-height);width:var(--spw-ds-illustration-width);max-width:var(--spw-ds-illustration-max-width);max-height:var(--spw-ds-illustration-max-height);margin:0 auto;display:block}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const spwInputSliderCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-input-slider{position:relative}.spw-input-slider__field-message{margin-bottom:8px;margin-top:-4px}.spw-input-slider__container{padding:10px 0;position:relative}.spw-input-slider--horizontal .spw-input-slider__container{width:100%;height:20px}.spw-input-slider--vertical .spw-input-slider__container{width:20px;height:300px}.spw-input-slider--disabled{opacity:0.5;cursor:not-allowed}.spw-input-slider--disabled .spw-input-slider__track,.spw-input-slider--disabled .spw-input-slider__handle{cursor:not-allowed}.spw-input-slider__track{position:relative;background-color:#d1d5db;border-radius:4px;cursor:pointer}.spw-input-slider--horizontal .spw-input-slider__track{height:4px;width:100%}.spw-input-slider--vertical .spw-input-slider__track{width:4px;height:100%}.spw-input-slider__range{position:absolute;background-color:var(--spw-ds-primary);border-radius:4px}.spw-input-slider--horizontal .spw-input-slider__range{height:100%}.spw-input-slider--vertical .spw-input-slider__range{width:100%}.spw-input-slider--is-error .spw-input-slider__range{background-color:var(--spw-colors-states-error-error-300)}.spw-input-slider__handle{position:absolute;width:20px;height:20px;background-color:white;border:3px solid var(--spw-ds-primary);border-radius:50%;cursor:grab;transition:transform 0.1s ease, box-shadow 0.2s ease;z-index:2}.spw-input-slider--is-error .spw-input-slider__handle{border-color:var(--spw-colors-states-error-error-300)}.spw-input-slider--horizontal .spw-input-slider__handle{top:50%;transform:translate(-50%, -50%)}.spw-input-slider--vertical .spw-input-slider__handle{left:50%;transform:translate(-50%, 50%)}.spw-input-slider__handle:hover{transform:translate(-50%, -50%) scale(1.1);box-shadow:0 0 0 8px rgba(var(--spw-ds-primary-rgb, 219, 0, 118), 0.1)}.spw-input-slider__handle:active,.spw-input-slider--dragging .spw-input-slider__handle{cursor:grabbing;transform:translate(-50%, -50%) scale(1.15);box-shadow:0 0 0 12px rgba(var(--spw-ds-primary-rgb, 219, 0, 118), 0.15)}.spw-input-slider--vertical .spw-input-slider__handle:hover{transform:translate(-50%, 50%) scale(1.1)}.spw-input-slider--vertical .spw-input-slider__handle:active,.spw-input-slider--vertical.spw-input-slider--dragging .spw-input-slider__handle{transform:translate(-50%, 50%) scale(1.15)}.spw-input-slider__tooltip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background-color:var(--spw-ds-primary);color:white;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none;z-index:10}.spw-input-slider--is-error .spw-input-slider__tooltip{background-color:var(--spw-colors-states-error-error-300)}.spw-input-slider__tooltip::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--spw-ds-primary)}.spw-input-slider--is-error .spw-input-slider__tooltip::after{border-top-color:var(--spw-colors-states-error-error-300)}.spw-input-slider--vertical .spw-input-slider__tooltip{bottom:auto;left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.spw-input-slider--vertical .spw-input-slider__tooltip::after{top:50%;left:auto;right:100%;transform:translateY(-50%);border-left:none;border-top:4px solid transparent;border-bottom:4px solid transparent;border-right:4px solid var(--spw-ds-primary)}.spw-input-slider--is-error .spw-input-slider--vertical .spw-input-slider__tooltip::after{border-right-color:var(--spw-colors-states-error-error-300)}`;
|
|
4
4
|
|
|
@@ -268,7 +268,7 @@ const SpwInputSlider = class {
|
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
270
|
const rangeStyle = this.getRangeStyle();
|
|
271
|
-
return (h(Host, { key: '
|
|
271
|
+
return (h(Host, { key: 'ce7a1bac0112208635812f23c6250263993074ce' }, h("div", { key: 'fae370516945b3a706f71617aa1fd5ab98b885ea', class: this.elementClass }, this.label && (h("spw-field-label", { key: 'c7d5edaeb63d8cb81ee93c44f63071a17d2e8172', 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: '86b2260f7c3b63f312ee77b23cc4f77e01b483cb', class: "spw-input-slider__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '3ab5eb9c2c60e94e33287dbced5de608bf21ba55', class: "spw-input-slider__container" }, h("div", { key: 'cafcd3db377896465676910cffa2f6a12207cbfe', class: "spw-input-slider__track", ref: el => (this.sliderRef = el), onMouseDown: e => this.handleMouseDown(e, null), onTouchStart: e => this.handleMouseDown(e, null), "aria-label": this.accAriaLabel || this.name || this.label, role: "slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": typeof this.internalValue === 'number' ? this.internalValue : undefined, "aria-disabled": this.disabled }, h("div", { key: '9aedd9b66a22fce636efacb0aba514c1cad755af', class: "spw-input-slider__range", style: rangeStyle }), this.range && Array.isArray(this.internalValue) ? ([
|
|
272
272
|
h("div", { key: "handle-min", class: "spw-input-slider__handle spw-input-slider__handle--min", style: this.orientation === 'horizontal'
|
|
273
273
|
? { left: `${this.getHandlePosition(this.internalValue[0])}%` }
|
|
274
274
|
: { bottom: `${this.getHandlePosition(this.internalValue[0])}%` }, onMouseDown: e => this.handleMouseDown(e, 'min'), onTouchStart: e => this.handleMouseDown(e, 'min') }, this.hasTooltip && h("div", { class: "spw-input-slider__tooltip" }, this.internalValue[0])),
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
|
+
|
|
3
|
+
const spwLightboxItemCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;cursor:pointer;border-radius:4px;outline:none;height:100%}.spw-lightbox-item__wrapper{position:relative;width:100%;height:100%;overflow:hidden;border-radius:4px}.spw-lightbox-item__wrapper:focus-visible{outline:3px solid #fff;outline-offset:-1px;box-shadow:0 0 0 5px #000}.spw-lightbox-item__img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity 0.15s}::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.spw-lightbox-item__wrapper--hoverable{transition:box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out}.spw-lightbox-item__wrapper--hoverable:hover{box-shadow:var(--spw-effect-elevation-4);transform:translateY(-5px)}.spw-lightbox-item__hover-overlay{position:absolute;z-index:2;display:flex;visibility:hidden;top:0;left:0;width:100%;height:100%;color:white;justify-content:center;align-items:center;opacity:0;transition:all 0.3s ease}.spw-lightbox-item__hover-overlay:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:0.4}.spw-lightbox-item__hover-overlay spw-icon{position:relative;z-index:1;font-size:30px;font-weight:300;transform:scale(1.5);transition:all 0.3s ease}:host(:hover) .spw-lightbox-item__hover-overlay{visibility:visible;opacity:1}:host(:hover) .spw-lightbox-item__hover-overlay spw-icon{transform:scale(1)}`;
|
|
4
|
+
|
|
5
|
+
const SpwLightboxItem = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.spwLightboxItemClick = createEvent(this, "spwLightboxItemClick", 7);
|
|
9
|
+
/** Texte alternatif de l'image */
|
|
10
|
+
this.alt = '';
|
|
11
|
+
/** Icône Font Awesome du copyright */
|
|
12
|
+
this.copyrightIcon = 'fa-copyright';
|
|
13
|
+
/** Permet de spécifier une variante de Font Awesome pour l'icône de copyright */
|
|
14
|
+
this.copyrightIconVariant = 'fa-light';
|
|
15
|
+
/** Target du lien du copyright */
|
|
16
|
+
this.copyrightTarget = '_blank';
|
|
17
|
+
/** Texte du label aria du bouton déclencheur */
|
|
18
|
+
this.textOpenImage = "Ouvrir l'image";
|
|
19
|
+
/** Affiche une icône de loupe en superposition au survol */
|
|
20
|
+
this.isHover = true;
|
|
21
|
+
/** Icône affichée au survol de l'image (référence Font Awesome) */
|
|
22
|
+
this.hoverIcon = 'fa-magnifying-glass';
|
|
23
|
+
}
|
|
24
|
+
getIndex() {
|
|
25
|
+
const parent = this.hostElement.closest('spw-lightbox');
|
|
26
|
+
if (!parent)
|
|
27
|
+
return 0;
|
|
28
|
+
const siblings = Array.from(parent.querySelectorAll('spw-lightbox-item'));
|
|
29
|
+
return siblings.indexOf(this.hostElement);
|
|
30
|
+
}
|
|
31
|
+
handleClick() {
|
|
32
|
+
this.spwLightboxItemClick.emit({
|
|
33
|
+
src: this.src,
|
|
34
|
+
alt: this.alt,
|
|
35
|
+
captionTitle: this.captionTitle || '',
|
|
36
|
+
captionText: this.captionText || '',
|
|
37
|
+
index: this.getIndex(),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
handleKeydown(event) {
|
|
41
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
this.handleClick();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return (h(Host, { key: 'a1485280ce1d717a812436f5d224c47d318e82dc' }, h("div", { key: '808d96afeecc8dac7f25653eafda50ecac1eada3', class: { 'spw-lightbox-item__wrapper': true, 'spw-lightbox-item__wrapper--hoverable': this.isHover }, role: "button", tabindex: "0", "aria-label": this.alt || this.textOpenImage, onClick: () => this.handleClick(), onKeyDown: (e) => this.handleKeydown(e) }, h("slot", { key: 'eba2c8bfa1597e4cb48cd444840448c7e1389913' }, h("img", { key: '62b551ff93e925616db814771c778ae532c6a8e3', class: "spw-lightbox-item__img", src: this.src, alt: this.alt, loading: "lazy" })), this.isHover && (h("div", { key: '15639999fb71f18bbb728ae3a8245db9a9b495cd', class: "spw-lightbox-item__hover-overlay" }, h("spw-icon", { key: '21e91249bfa31456acdfd6756a27dce43014fec3', icon: this.hoverIcon }))))));
|
|
48
|
+
}
|
|
49
|
+
get hostElement() { return getElement(this); }
|
|
50
|
+
};
|
|
51
|
+
SpwLightboxItem.style = spwLightboxItemCss();
|
|
52
|
+
|
|
53
|
+
export { SpwLightboxItem as spw_lightbox_item };
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
|
+
import { a as animationTo, K as KEYFRAMES } from './animation-BRFNx2DL.js';
|
|
3
|
+
|
|
4
|
+
const spwLightboxCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:contents}:host>div:first-child{display:contents}.spw-lightbox{display:none;position:fixed;inset:0;z-index:1070;align-items:center;justify-content:center}.spw-lightbox--opened{display:flex}.spw-lightbox__backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.68);backdrop-filter:blur(9.5px);cursor:pointer}.spw-lightbox__container{position:relative;z-index:1;display:flex;flex-direction:column;width:100%;max-width:1200px;height:100dvh;padding:0 16px 16px;box-sizing:border-box;gap:12px;pointer-events:none}.spw-lightbox__container>*{pointer-events:auto}.spw-lightbox__toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0 0;color:#fff;pointer-events:none}.spw-lightbox__toolbar>*{pointer-events:auto}.spw-lightbox__counter{font-size:14px;opacity:0.8}.spw-lightbox__close{cursor:pointer;font-size:14px;display:inline-flex;align-items:center;flex-wrap:nowrap;justify-content:center;padding:3px 6px;border-radius:4px;outline:3px solid transparent}.spw-lightbox__close:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 5px #000}.spw-lightbox__close spw-link{--spw-link-color:#fff;--spw-link-hover-color:#fff;--spw-link-active-color:#fff;--spw-link-wrap:nowrap;pointer-events:none}.spw-lightbox__stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;gap:12px;pointer-events:none}.spw-lightbox__stage>*{pointer-events:auto}@media (min-width: 1024px){.spw-lightbox__stage{gap:36px}}.spw-lightbox__image-wrapper{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;overflow:hidden}.spw-lightbox__image-frame{position:relative;display:inline-flex;max-width:100%;max-height:80vh;border-radius:16px;overflow:hidden}.spw-lightbox__image{display:block;min-width:0;min-height:0;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:cover;border-radius:16px}.spw-lightbox__nav{flex-shrink:0}@media (max-width: 767px){.spw-lightbox__nav{display:none}}.spw-lightbox__caption{position:absolute;bottom:0;left:0;width:100%;padding:24px;padding-top:10%;box-sizing:border-box;background:linear-gradient(to bottom, transparent, rgb(0, 0, 0));display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:16px;pointer-events:none;border-radius:0 0 4px 4px}.spw-lightbox__caption-content{display:flex;flex-direction:column;gap:4px;min-width:0}.spw-lightbox__caption-title{display:block;color:#fff;font-size:16px;font-weight:700;line-height:1.3}.spw-lightbox__caption-text{display:block;color:rgba(255, 255, 255, 0.85);font-size:14px;line-height:1.5}.spw-lightbox__copyright{flex-shrink:0;pointer-events:all}.spw-lightbox__thumbnails{display:flex;justify-content:safe center;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:4px;scrollbar-width:none;pointer-events:none}.spw-lightbox__thumbnails>*{pointer-events:auto}.spw-lightbox__thumbnails::-webkit-scrollbar{display:none}.spw-lightbox__thumb{width:56px;height:56px;padding:0;border:2px solid transparent;border-radius:4px;overflow:hidden;cursor:pointer;background:none;transition:border-color 0.15s, opacity 0.15s;opacity:0.5;flex-shrink:0}.spw-lightbox__thumb img{width:100%;height:100%;object-fit:cover;display:block}.spw-lightbox__thumb--active{border-color:#fff;opacity:1}.spw-lightbox__thumb:hover{opacity:0.85}.spw-lightbox__thumb:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 5px #000}`;
|
|
5
|
+
|
|
6
|
+
const SpwLightbox = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.spwLightboxOpen = createEvent(this, "spwLightboxOpen", 7);
|
|
10
|
+
this.spwLightboxClose = createEvent(this, "spwLightboxClose", 7);
|
|
11
|
+
/** Texte du bouton de fermeture */
|
|
12
|
+
this.closeButtonText = 'Fermer';
|
|
13
|
+
/** Indique si la fermeture est possible en cliquant sur le backdrop */
|
|
14
|
+
this.closeOnBackdropClick = true;
|
|
15
|
+
/** Affiche ou masque la galerie de miniatures sous l'image principale */
|
|
16
|
+
this.showThumbnails = true;
|
|
17
|
+
// Textes customisables
|
|
18
|
+
/** Label aria de la dialog */
|
|
19
|
+
this.textDialogLabel = "Galerie d'images";
|
|
20
|
+
/** Label aria du bouton image précédente */
|
|
21
|
+
this.textPrevious = 'Image précédente';
|
|
22
|
+
/** Label aria du bouton image suivante */
|
|
23
|
+
this.textNext = 'Image suivante';
|
|
24
|
+
/** Label aria de la liste de miniatures */
|
|
25
|
+
this.textThumbnailsLabel = 'Miniatures';
|
|
26
|
+
/** Label aria d'une miniature (utiliser {index} comme placeholder) */
|
|
27
|
+
this.textThumbnailItem = 'Image {index}';
|
|
28
|
+
this.opened = false;
|
|
29
|
+
this.activeIndex = 0;
|
|
30
|
+
this.items = [];
|
|
31
|
+
this.previouslyFocusedElement = null;
|
|
32
|
+
this.currentAnimation = null;
|
|
33
|
+
this.swipeStartX = 0;
|
|
34
|
+
this.swipeStartY = 0;
|
|
35
|
+
this.isSwiping = false;
|
|
36
|
+
this.SWIPE_THRESHOLD = 50;
|
|
37
|
+
this.handleItemClick = (event) => {
|
|
38
|
+
var _a;
|
|
39
|
+
this.collectItems();
|
|
40
|
+
this.activeIndex = (_a = event.detail.index) !== null && _a !== void 0 ? _a : 0;
|
|
41
|
+
this.opened = true;
|
|
42
|
+
};
|
|
43
|
+
this.handleKeydown = (event) => {
|
|
44
|
+
if (!this.opened)
|
|
45
|
+
return;
|
|
46
|
+
switch (event.key) {
|
|
47
|
+
case 'Escape':
|
|
48
|
+
this.doClose();
|
|
49
|
+
break;
|
|
50
|
+
case 'ArrowRight':
|
|
51
|
+
case 'ArrowDown':
|
|
52
|
+
event.preventDefault();
|
|
53
|
+
this.navigate(1);
|
|
54
|
+
break;
|
|
55
|
+
case 'ArrowLeft':
|
|
56
|
+
case 'ArrowUp':
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
this.navigate(-1);
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
this.handleTouchStart = (event) => {
|
|
63
|
+
this.swipeStartX = event.touches[0].clientX;
|
|
64
|
+
this.swipeStartY = event.touches[0].clientY;
|
|
65
|
+
this.isSwiping = true;
|
|
66
|
+
};
|
|
67
|
+
this.handleTouchMove = (event) => {
|
|
68
|
+
if (!this.isSwiping)
|
|
69
|
+
return;
|
|
70
|
+
const dx = event.touches[0].clientX - this.swipeStartX;
|
|
71
|
+
const dy = event.touches[0].clientY - this.swipeStartY;
|
|
72
|
+
if (Math.abs(dx) > Math.abs(dy)) {
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
this.handleTouchEnd = (event) => {
|
|
77
|
+
if (!this.isSwiping)
|
|
78
|
+
return;
|
|
79
|
+
const dx = this.swipeStartX - event.changedTouches[0].clientX;
|
|
80
|
+
if (Math.abs(dx) >= this.SWIPE_THRESHOLD) {
|
|
81
|
+
this.navigate(dx > 0 ? 1 : -1);
|
|
82
|
+
}
|
|
83
|
+
this.isSwiping = false;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
componentDidLoad() {
|
|
87
|
+
window.addEventListener('keydown', this.handleKeydown);
|
|
88
|
+
this.hostElement.addEventListener('spwLightboxItemClick', this.handleItemClick);
|
|
89
|
+
this.imageWrapperEl.addEventListener('touchstart', this.handleTouchStart, { passive: true });
|
|
90
|
+
this.imageWrapperEl.addEventListener('touchmove', this.handleTouchMove, { passive: false });
|
|
91
|
+
this.imageWrapperEl.addEventListener('touchend', this.handleTouchEnd);
|
|
92
|
+
}
|
|
93
|
+
disconnectedCallback() {
|
|
94
|
+
var _a, _b, _c;
|
|
95
|
+
window.removeEventListener('keydown', this.handleKeydown);
|
|
96
|
+
this.hostElement.removeEventListener('spwLightboxItemClick', this.handleItemClick);
|
|
97
|
+
(_a = this.imageWrapperEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('touchstart', this.handleTouchStart);
|
|
98
|
+
(_b = this.imageWrapperEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('touchmove', this.handleTouchMove);
|
|
99
|
+
(_c = this.imageWrapperEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('touchend', this.handleTouchEnd);
|
|
100
|
+
document.body.style.overflow = '';
|
|
101
|
+
}
|
|
102
|
+
async open(index = 0) {
|
|
103
|
+
this.collectItems();
|
|
104
|
+
this.activeIndex = index;
|
|
105
|
+
this.opened = true;
|
|
106
|
+
}
|
|
107
|
+
async close() {
|
|
108
|
+
this.doClose();
|
|
109
|
+
}
|
|
110
|
+
onOpenedChange(newValue) {
|
|
111
|
+
if (newValue) {
|
|
112
|
+
this.onOpen();
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
this.onClose();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
collectItems() {
|
|
119
|
+
const lightboxItems = this.hostElement.querySelectorAll(`spw-lightbox-item`);
|
|
120
|
+
this.items = Array.from(lightboxItems).map(el => ({
|
|
121
|
+
src: el.getAttribute('src') || '',
|
|
122
|
+
alt: el.getAttribute('alt') || '',
|
|
123
|
+
captionTitle: el.getAttribute('caption-title') || '',
|
|
124
|
+
captionText: el.getAttribute('caption-text') || '',
|
|
125
|
+
copyrightText: el.getAttribute('copyright-text') || '',
|
|
126
|
+
copyrightIcon: el.getAttribute('copyright-icon') || 'fa-copyright',
|
|
127
|
+
copyrightIconVariant: el.getAttribute('copyright-icon-variant') || 'fa-light',
|
|
128
|
+
copyrightHref: el.getAttribute('copyright-href') || '',
|
|
129
|
+
copyrightTarget: el.getAttribute('copyright-target') || '_blank',
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
cancelCurrentAnimation() {
|
|
133
|
+
if (this.currentAnimation) {
|
|
134
|
+
this.currentAnimation.cancel();
|
|
135
|
+
this.currentAnimation = null;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
scrollToActiveThumbnail() {
|
|
139
|
+
if (!this.thumbnailsEl)
|
|
140
|
+
return;
|
|
141
|
+
const thumb = this.thumbnailsEl.querySelectorAll('.spw-lightbox__thumb')[this.activeIndex];
|
|
142
|
+
thumb === null || thumb === void 0 ? void 0 : thumb.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' });
|
|
143
|
+
}
|
|
144
|
+
onOpen() {
|
|
145
|
+
var _a;
|
|
146
|
+
this.cancelCurrentAnimation();
|
|
147
|
+
this.previouslyFocusedElement = document.activeElement;
|
|
148
|
+
document.body.style.overflow = 'hidden';
|
|
149
|
+
try {
|
|
150
|
+
this.currentAnimation = animationTo(this.lightboxContainer, KEYFRAMES.fadeIn, { duration: 200 });
|
|
151
|
+
this.currentAnimation.addEventListener('finish', () => {
|
|
152
|
+
var _a;
|
|
153
|
+
this.currentAnimation = null;
|
|
154
|
+
(_a = this.closeButtonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
155
|
+
this.scrollToActiveThumbnail();
|
|
156
|
+
this.spwLightboxOpen.emit({ index: this.activeIndex });
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
catch (_b) {
|
|
160
|
+
this.currentAnimation = null;
|
|
161
|
+
(_a = this.closeButtonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
162
|
+
this.scrollToActiveThumbnail();
|
|
163
|
+
this.spwLightboxOpen.emit({ index: this.activeIndex });
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
onClose() {
|
|
167
|
+
var _a;
|
|
168
|
+
this.cancelCurrentAnimation();
|
|
169
|
+
document.body.style.overflow = '';
|
|
170
|
+
try {
|
|
171
|
+
this.currentAnimation = animationTo(this.lightboxContainer, KEYFRAMES.fadeOut, { duration: 200 });
|
|
172
|
+
this.currentAnimation.addEventListener('finish', () => {
|
|
173
|
+
var _a;
|
|
174
|
+
this.currentAnimation = null;
|
|
175
|
+
(_a = this.previouslyFocusedElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
176
|
+
this.spwLightboxClose.emit();
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
catch (_b) {
|
|
180
|
+
this.currentAnimation = null;
|
|
181
|
+
(_a = this.previouslyFocusedElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
182
|
+
this.spwLightboxClose.emit();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
doClose() {
|
|
186
|
+
this.opened = false;
|
|
187
|
+
}
|
|
188
|
+
handleFocusTrap(event) {
|
|
189
|
+
var _a, _b;
|
|
190
|
+
if (!this.opened || event.key !== 'Tab')
|
|
191
|
+
return;
|
|
192
|
+
const focusable = (_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button:not([disabled]), [tabindex]:not([tabindex="-1"])');
|
|
193
|
+
if (!focusable || focusable.length === 0)
|
|
194
|
+
return;
|
|
195
|
+
const first = focusable[0];
|
|
196
|
+
const last = focusable[focusable.length - 1];
|
|
197
|
+
const active = (_b = this.hostElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement;
|
|
198
|
+
if (event.shiftKey) {
|
|
199
|
+
if (active === first) {
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
last === null || last === void 0 ? void 0 : last.focus();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
if (active === last) {
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
first === null || first === void 0 ? void 0 : first.focus();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
navigate(direction) {
|
|
212
|
+
if (this.items.length <= 1)
|
|
213
|
+
return;
|
|
214
|
+
this.activeIndex = (this.activeIndex + direction + this.items.length) % this.items.length;
|
|
215
|
+
}
|
|
216
|
+
onActiveIndexChange() {
|
|
217
|
+
this.scrollToActiveThumbnail();
|
|
218
|
+
}
|
|
219
|
+
handleBackdropClick() {
|
|
220
|
+
if (this.closeOnBackdropClick) {
|
|
221
|
+
this.doClose();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
get activeItem() {
|
|
225
|
+
var _a;
|
|
226
|
+
return (_a = this.items[this.activeIndex]) !== null && _a !== void 0 ? _a : null;
|
|
227
|
+
}
|
|
228
|
+
render() {
|
|
229
|
+
const { opened, activeItem, items, activeIndex } = this;
|
|
230
|
+
return (h(Host, { key: '82f09859f985e2ced84a3c23a6d9556d23fdfac3' }, h("div", { key: '07ccb0969c57164634b593244e7bdbbd77624118', inert: opened || undefined }, h("slot", { key: '703697fe06bb4e35233b45af1440333ed2907eef' })), h("div", { key: '83f8fc36eff6467eb93bfff20c7a985e8707fe20', 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: '010c22cfc2d327f22e939ddf64927f4e9d080c2b', class: "spw-lightbox__backdrop", onClick: () => this.handleBackdropClick(), "aria-hidden": "true" }), h("div", { key: '7bb393d0aac7d026fd67846ce70eef245de6d62f', class: "spw-lightbox__container" }, h("div", { key: '3cfad6891f1f3dbf61ac3873bbb59b0539e017c2', class: "spw-lightbox__toolbar" }, h("span", { key: 'a629606363df7d34e622f66fea4c9c4f3b540360', class: "spw-lightbox__counter", "aria-live": "polite" }, items.length > 0 ? `${activeIndex + 1} / ${items.length}` : ''), h("div", { key: '6f7dccb6fc628d76469b2acd370d15a78cecf91d', ref: el => (this.closeButtonEl = el), class: "spw-lightbox__close", tabIndex: 0, role: "button", onClick: () => this.doClose(), onKeyDown: (e) => {
|
|
231
|
+
if (e.key === 'Enter' || e.key === ' ')
|
|
232
|
+
this.doClose();
|
|
233
|
+
} }, h("spw-link", { key: 'eec6d31fb305140765ef0c6642072b6908b9f847', "icon-position": "right", icon: "fa-xmark" }, this.closeButtonText))), h("div", { key: '82ee2aad1c7cb153ca077bf83c00c8684bd54314', class: "spw-lightbox__stage" }, items.length > 1 && (h("spw-button", { key: '726defc5d1930802c24c94cbc0aa6cd659426e1d', 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: '6f7582b0733bd3091cbafd9a0c07c1d86184668c', class: "spw-lightbox__image-wrapper", ref: el => (this.imageWrapperEl = el) }, activeItem && (h("div", { key: 'be5aa3822872fab8608a225ebd526c71f52e7c37', 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: '6bf0226b1ff9741ffb15d0981f17ba61db257e55', class: "spw-lightbox__caption", "aria-live": "polite" }, h("div", { key: '23f6a32908f30dcbd024283013e08760d58a0507', class: "spw-lightbox__caption-content" }, activeItem.captionTitle && h("strong", { key: '90500406e8fefe23f013d581670005d287c00ea6', class: "spw-lightbox__caption-title" }, activeItem.captionTitle), activeItem.captionText && h("span", { key: '5be08c1459ee6c6fa3be9fe8a854d0fc6967288b', class: "spw-lightbox__caption-text" }, activeItem.captionText)), activeItem.copyrightText && (h("spw-tag", { key: '3e1b3bff55708e34ba97a502ac4a65fe5bdd0448', 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: 'c94feeca844f367c141bb48e23bbdb96f41e9566', 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: 'c06cf2a19b7b64702180ef0303b1cc32bf85151c', 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 || this.textThumbnailItem.replace('{index}', String(index + 1)) }, h("img", { src: item.src, alt: item.alt || '', loading: "lazy" }))))))))));
|
|
234
|
+
}
|
|
235
|
+
get hostElement() { return getElement(this); }
|
|
236
|
+
static get watchers() { return {
|
|
237
|
+
"opened": [{
|
|
238
|
+
"onOpenedChange": 0
|
|
239
|
+
}],
|
|
240
|
+
"activeIndex": [{
|
|
241
|
+
"onActiveIndexChange": 0
|
|
242
|
+
}]
|
|
243
|
+
}; }
|
|
244
|
+
};
|
|
245
|
+
SpwLightbox.style = spwLightboxCss();
|
|
246
|
+
|
|
247
|
+
export { SpwLightbox as spw_lightbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const spwListDescriptionCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-list-description{margin-top:6px;color:var(--spw-color-themes-grey-grey-800);font-size:16px;line-height:1.25}.spw-list-description--has-clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}.spw-list-description--clamp-1{-webkit-line-clamp:1;line-clamp:1}.spw-list-description--clamp-2{-webkit-line-clamp:2;line-clamp:2}.spw-list-description--clamp-3{-webkit-line-clamp:3;line-clamp:3}.spw-list-description--clamp-4{-webkit-line-clamp:4;line-clamp:4}.spw-list-description--clamp-5{-webkit-line-clamp:5;line-clamp:5}.spw-list-description--clamp-6{-webkit-line-clamp:6;line-clamp:6}.spw-list-description--clamp-7{-webkit-line-clamp:7;line-clamp:7}.spw-list-description--clamp-8{-webkit-line-clamp:8;line-clamp:8}.spw-list-description--clamp-9{-webkit-line-clamp:9;line-clamp:9}.spw-list-description--clamp-10{-webkit-line-clamp:10;line-clamp:10}`;
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ const SpwListDescription = class {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'b4b72cc7427baab592a63fa96d94648916e15194' }, h("div", { key: '64b8ba560fb842051c84266a987e5784bc69e5a0', class: this.elementClass }, h("slot", { key: 'c104a9a85823c9a6f5d7526f2dd3594816895c16' }))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
SpwListDescription.style = spwListDescriptionCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const spwListItemCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:contents}.spw-list-item{position:relative;color:var(--spw-color-themes-grey-grey-900);transition:all 0.3s ease-in-out;text-decoration:none}:host(.--dark) .spw-list-item{color:var(--spw-ds-white)}.spw-list-item a{text-decoration:none}.spw-list-item--icon{padding-left:28px}.spw-list-item__category{display:inline-block;position:relative;margin-bottom:6px;color:var(--spw-ds-primary);font-weight:700;font-size:16px;line-height:1.5}.spw-list-item__category spw-icon{position:absolute;top:2px;left:-28px}.spw-list-item__category--hoverable{cursor:pointer}.spw-list-item__category--hoverable:hover{text-decoration:underline}.spw-list-item ::slotted([slot=buttons]){display:block;margin-top:12px}`;
|
|
4
4
|
|
|
@@ -110,7 +110,7 @@ const SpwListItem = class {
|
|
|
110
110
|
href,
|
|
111
111
|
target,
|
|
112
112
|
};
|
|
113
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '8c807f37bef2f056b0e5e33031c36e99ee74b3a3' }, h("li", { key: '203903edb02ba2d244b9d9375f24428e459e3a47', role: "listitem", class: this.elementClass }, this.category && (h("span", { key: '80e567a90fe0a06ac2523d74731d0fc607592045', class: this.elementCatClass, onClick: () => this.handleClick() }, this.categoryIcon && h("spw-icon", { key: '2ecb923c0fed03840648777d480f66aea1291fdf', icon: this.categoryIcon }), " ", this.category)), h(TagType, Object.assign({ key: 'e86f4f394260b3a396b1f04a34df4abbc28e55ea' }, attrs), h("slot", { key: '577415c2ea250cad41364c018cbadb192954d994' })), h("slot", { key: '9b1be1bfae9fcd009c8769eb504b2208e7ab82fe', name: "buttons" }))));
|
|
114
114
|
}
|
|
115
115
|
get el() { return getElement(this); }
|
|
116
116
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const spwListTitleCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-ds-typography,[class*=spw-ds-typography-]{font-family:var(--spw-ds-font-main)}.spw-ds-typography-display-1{font-size:56px;line-height:1.2;font-weight:400}@media (min-width: 1024px){.spw-ds-typography-display-1{font-size:68px;line-height:1.1;font-weight:400}}.spw-ds-typography-display-2{font-size:40px;line-height:1.25;font-weight:400}@media (min-width: 1024px){.spw-ds-typography-display-2{font-size:56px;line-height:1.2;font-weight:400}}.spw-ds-typography-display-3{font-size:32px;line-height:1.4;font-weight:400}@media (min-width: 1024px){.spw-ds-typography-display-3{font-size:48px;line-height:1.2;font-weight:400}}.spw-ds-typography-heading-01{font-size:28px;font-weight:700;line-height:1.4}@media (min-width: 1024px){.spw-ds-typography-heading-01{font-size:32px;font-weight:700;line-height:1.25}}.spw-ds-typography-heading-02{font-size:24px;font-weight:700;line-height:1.4}@media (min-width: 1024px){.spw-ds-typography-heading-02{font-size:28px;font-weight:700;line-height:1.3}}.spw-ds-typography-heading-03{font-size:20px;font-weight:700;line-height:1.4}@media (min-width: 1024px){.spw-ds-typography-heading-03{font-size:20px;font-weight:700;line-height:1.4}}.spw-ds-typography-heading-04,:host(.--default) .spw-list-title{font-size:18px;font-weight:700;line-height:1.5}@media (min-width: 1024px){.spw-ds-typography-heading-04,:host(.--default) .spw-list-title{font-size:18px;font-weight:700;line-height:1.5}}.spw-ds-typography-heading-05,:host(.--shortcut) .spw-list-title{font-size:16px;font-weight:700;line-height:1.5}@media (min-width: 1024px){.spw-ds-typography-heading-05,:host(.--shortcut) .spw-list-title{font-size:16px;font-weight:700;line-height:1.6}}.spw-ds-typography-heading-06{font-size:14px;font-weight:700;line-height:1.7}@media (min-width: 1024px){.spw-ds-typography-heading-06{font-size:14px;font-weight:700;line-height:1.6}}.spw-ds-typography-lead-body{font-size:20px !important;line-height:1.6;font-weight:400}@media (min-width: 1024px){.spw-ds-typography-lead-body{font-size:20px;line-height:1.5;font-weight:400}}.spw-ds-typography-lead-body-compact{font-size:20px;line-height:1.5;font-weight:400}@media (min-width: 1024px){.spw-ds-typography-lead-body-compact{font-size:20px;line-height:1.25;font-weight:400}}.spw-ds-typography-body-1{font-size:18px;font-weight:400;line-height:1.6}@media (min-width: 1024px){.spw-ds-typography-body-1{font-size:18px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-1{font-size:18px;font-weight:400;line-height:1.5}@media (min-width: 1024px){.spw-ds-typography-body-compact-1{font-size:18px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-2{font-size:16px;font-weight:400;line-height:1.6}@media (min-width: 1024px){.spw-ds-typography-body-2{font-size:16px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-2{font-size:16px;font-weight:400;line-height:1.5}@media (min-width: 1024px){.spw-ds-typography-body-compact-2{font-size:16px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-3{font-size:14px;font-weight:400;line-height:1.6}@media (min-width: 1024px){.spw-ds-typography-body-3{font-size:14px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-3{font-size:14px;font-weight:400;line-height:1.5}@media (min-width: 1024px){.spw-ds-typography-body-compact-3{font-size:14px;font-weight:400;line-height:1.25}}.spw-ds-typography-tag{font-weight:700;font-size:14px;line-height:1.2}.spw-ds-typography-label{font-weight:600;font-size:16px;line-height:1.2}.spw-ds-typography-date{font-size:16px;line-height:1;font-weight:300}.spw-ds-typography-caption{font-size:14px;font-style:italic;line-height:1;font-weight:300}.spw-ds-typography-link{font-weight:700;font-size:inherit;line-height:1.2;color:var(--spw-ds-primary);text-decoration:underline;text-underline-offset:2px}.spw-ds-typography-link:hover{color:var(--spw-ds-variant)}.spw-ds-typography-link:active{color:var(--spw-ds-active)}.spw-ds-typography-link:hover,.spw-ds-typography-link:active{text-decoration-thickness:2px}.spw-ds-typography-hint{font-size:14px;font-weight:400;line-height:1.5}.spw-ds-typography-code{font-size:14px;font-weight:400;line-height:1.2;font-family:monospace}.spw-ds-typography-overline{font-size:10px;font-weight:800;line-height:1;text-transform:uppercase}:host{display:block}.spw-list-title{position:relative;display:inline-flex;line-height:1.35}.spw-list-title spw-icon{position:absolute;top:4px;left:-28px;color:var(--spw-ds-primary)}:host(.--active) .spw-list-title spw-icon{color:var(--spw-ds-active)}:host(.--dark) .spw-list-title spw-icon{color:var(--spw-ds-white)}.spw-list-title__content-text{display:inline;text-decoration:none;text-underline-offset:2px}:host(.--hovered) .spw-list-title__content-text{text-decoration:underline}:host(.--active) .spw-list-title__content-text{text-decoration:underline}:host(.--default) .spw-list-title{color:var(--spw-color-themes-grey-grey-900)}:host(.--shortcut) .spw-list-title{color:var(--spw-ds-primary)}:host(.--hovered) .spw-list-title{color:var(--spw-ds-primary)}:host(.--active) .spw-list-title{color:var(--spw-ds-active)}:host(.--dark) .spw-list-title{color:var(--spw-ds-white)}.spw-list-title--has-clamp .spw-list-title__content{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}.spw-list-title--clamp-1 .spw-list-title__content{-webkit-line-clamp:1;line-clamp:1}.spw-list-title--clamp-2 .spw-list-title__content{-webkit-line-clamp:2;line-clamp:2}.spw-list-title--clamp-3 .spw-list-title__content{-webkit-line-clamp:3;line-clamp:3}.spw-list-title--clamp-4 .spw-list-title__content{-webkit-line-clamp:4;line-clamp:4}.spw-list-title--clamp-5 .spw-list-title__content{-webkit-line-clamp:5;line-clamp:5}.spw-list-title--clamp-6 .spw-list-title__content{-webkit-line-clamp:6;line-clamp:6}.spw-list-title--clamp-7 .spw-list-title__content{-webkit-line-clamp:7;line-clamp:7}.spw-list-title--clamp-8 .spw-list-title__content{-webkit-line-clamp:8;line-clamp:8}.spw-list-title--clamp-9 .spw-list-title__content{-webkit-line-clamp:9;line-clamp:9}.spw-list-title--clamp-10 .spw-list-title__content{-webkit-line-clamp:10;line-clamp:10}`;
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ const SpwListTitle = class {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '96b5bac8e6721db88297b4881fe67424415c0227' }, h("div", { key: '719182fd51fb67dd24915bd5a8b612e1b63dd112', class: this.elementClass }, this.icon && h("spw-icon", { key: '6f96398057f175024fbdb512a8f81bfa5fc4e6ac', icon: this.icon }), h("div", { key: '27fe08ce105bcd6f80f25bcee410cc44f685a06d', class: "spw-list-title__content" }, h("div", { key: '1fda7233de36d1b92ce9abfbf8768ffab64eac20', class: "spw-list-title__content-text" }, h("slot", { key: '6a47e207887b8d60619f31ad17a3353ae85cbf4c' }))))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
SpwListTitle.style = spwListTitleCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const spwListCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-list{display:flex;flex-direction:column}.spw-list--small{gap:12px}.spw-list--medium{gap:24px}.spw-list--large{gap:32px}`;
|
|
4
4
|
|
|
@@ -33,7 +33,7 @@ const SpwList = class {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '437fb36977c9791f1c64020a28b56fa57127509e' }, h("ul", { key: '8c117fa57f2f8ccaaaf4fc4c7247bc57910979fe', role: "list", class: this.elementClass }, h("slot", { key: '400e532fbece3f626b96c8bf44701c583cfb0784' }))));
|
|
37
37
|
}
|
|
38
38
|
get el() { return getElement(this); }
|
|
39
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
2
|
|
|
3
3
|
const getIcon = variant => {
|
|
4
4
|
const icons = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
2
|
-
import { a as animationTo, K as KEYFRAMES } from './animation-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvJ4Kko5.js';
|
|
2
|
+
import { a as animationTo, K as KEYFRAMES } from './animation-BRFNx2DL.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Copy/pasted from https://github.com/andreasbm/focus-trap
|
|
@@ -284,13 +284,13 @@ const SpwModal = class {
|
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
render() {
|
|
287
|
-
return (h(Host, { key: '
|
|
287
|
+
return (h(Host, { key: 'c157646646bcdc2336f4b91b657f20bec00df4dc' }, h("div", { key: 'ecd8f315db80d19e433391a9ffe7deefc9736bd5', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: '519205765483e2739404bbe70e2e59b6c2f28b75', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: '4b3c34065c64c272ef71ede849cdf5987ebd5453', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: '7bcc2f2747f6fcc70249de6913f9751e97e12a6b', class: "spw-modal__content", ref: el => (this.modalContent = el), onScroll: this.handleContentScroll }, h("div", { key: '80ece3a351c1e0a6eb1345b70478edf1f4c7cab7', class: "spw-modal__header" }, h("div", { key: '64cb2a0695bf11a1295fae8350a62fa9ca355eff', class: "spw-modal__title-container" }, this.alertIcon && h("spw-icon", { key: 'adb258fbcba9dd8c3659dc47ef51f7c2b41e8b72', class: "spw-modal__alert-icon", icon: this.alertIcon }), h("h2", { key: '778b74582a8660dec60e345fb0136a06aa5aa1a2', class: "spw-modal__caption" }, this.caption)), this.showCloseButton && (h("div", { key: 'da8ea051072980ff579caa2556fd73bcf59ed221', class: {
|
|
288
288
|
'spw-modal__close-button': true,
|
|
289
289
|
'spw-modal__close-button--sticky': this.isCloseButtonSticky,
|
|
290
|
-
}, ref: el => (this.closeButton = el), onClick: () => this.doBeforeClose('CLOSE_BUTTON') }, h("spw-link", { key: '
|
|
290
|
+
}, ref: el => (this.closeButton = el), onClick: () => this.doBeforeClose('CLOSE_BUTTON') }, h("spw-link", { key: 'd9a440db7d4d25fbea422f4138695bc709894233', "icon-position": "right", icon: "fa-xmark" }, this.closeButtonText)))), h("div", { key: 'fc1f867b109b5e9d34a40141a0d063ad530aadac', class: "spw-modal__body" }, h("slot", { key: '6a048196c218df1d3e0145f2c27695853b5e6178', name: "content" })), h("div", { key: '57c9a3144e2c27c1e90a556c423faa230aa1bd60', class: { 'spw-modal__buttons': true, 'spw-modal__footer--buttons-present': this.slotButtonsPresent } }, h("slot", { key: 'b8c04462cae8435332af8769650c0bd58f950bb3', name: "buttons", onSlotchange: (e) => {
|
|
291
291
|
const slot = e.target;
|
|
292
292
|
this.slotButtonsPresent = slot.assignedNodes({ flatten: true }).length > 0;
|
|
293
|
-
} })))), h("div", { key: '
|
|
293
|
+
} })))), h("div", { key: '07522150f05d312d3773f3dd3497e41cab4015bd', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabindex: "0" }))));
|
|
294
294
|
}
|
|
295
295
|
get hostElement() { return getElement(this); }
|
|
296
296
|
static get watchers() { return {
|