@spw-ds/spw-stencil-library 1.17.2 → 1.17.3
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 +167 -0
- package/dist/cjs/index-D3lyhQSW.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/spw-alert.cjs.entry.js +55 -0
- package/dist/cjs/spw-avatar.cjs.entry.js +1 -1
- package/dist/cjs/spw-block-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-box.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtags.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +1 -1
- package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-date-picker.cjs.entry.js +6 -3
- package/dist/cjs/spw-drawer.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-field-label_8.cjs.entry.js +15 -20
- package/dist/cjs/spw-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-lang.cjs.entry.js +15 -6
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +127 -2
- package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-persona.cjs.entry.js +16 -7
- package/dist/cjs/spw-header.cjs.entry.js +1 -1
- package/dist/cjs/spw-hero.cjs.entry.js +1 -1
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-list.cjs.entry.js +1 -1
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic.cjs.entry.js +1 -1
- package/dist/cjs/spw-pagination.cjs.entry.js +1 -1
- package/dist/cjs/spw-radio.cjs.entry.js +1 -1
- package/dist/cjs/spw-scrolltop.cjs.entry.js +1 -1
- package/dist/cjs/spw-search-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav-group.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav.cjs.entry.js +1 -1
- package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-socials.cjs.entry.js +1 -1
- package/dist/cjs/spw-stencil-library.cjs.js +1 -1
- package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-header.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
- package/dist/cjs/spw-tag.cjs.entry.js +1 -1
- package/dist/cjs/spw-text-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +1 -1
- package/dist/cjs/spw-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-timeline.cjs.entry.js +1 -1
- package/dist/cjs/spw-toast-controller.cjs.entry.js +1 -1
- package/dist/cjs/spw-toast.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc.cjs.entry.js +1 -1
- package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.css +35 -35
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +35 -35
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +35 -35
- package/dist/collection/components/spw-accordion/spw-accordion.css +35 -35
- package/dist/collection/components/spw-alert/spw-alert.css +446 -0
- package/dist/collection/components/spw-alert/spw-alert.js +202 -0
- package/dist/collection/components/spw-avatar/spw-avatar.css +35 -35
- package/dist/collection/components/spw-block-content/spw-block-content.css +35 -35
- package/dist/collection/components/spw-box/spw-box.css +35 -35
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.css +35 -35
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.css +35 -35
- package/dist/collection/components/spw-button/spw-button.css +35 -35
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +35 -35
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +35 -35
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +35 -35
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +35 -35
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +258 -256
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +35 -35
- package/dist/collection/components/spw-card/spw-card.css +35 -35
- package/dist/collection/components/spw-checkbox/spw-checkbox.css +35 -35
- package/dist/collection/components/spw-cookies/spw-cookies.css +35 -35
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +35 -35
- package/dist/collection/components/spw-date-picker/spw-date-picker.css +37 -37
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +5 -2
- package/dist/collection/components/spw-drawer/spw-drawer.css +35 -35
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.css +35 -35
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.css +258 -256
- package/dist/collection/components/spw-dropdown/spw-dropdown.css +35 -35
- package/dist/collection/components/spw-field-label/spw-field-label.css +35 -35
- package/dist/collection/components/spw-field-message/spw-field-message.css +258 -256
- package/dist/collection/components/spw-file-upload/spw-file-upload.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer.css +35 -35
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.css +35 -35
- package/dist/collection/components/spw-grid/spw-grid.css +35 -35
- package/dist/collection/components/spw-group/spw-group.css +258 -256
- package/dist/collection/components/spw-group/spw-group.js +8 -13
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.css +35 -35
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +14 -5
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.css +35 -35
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.css +35 -35
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +43 -43
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +128 -2
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.css +44 -40
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +15 -6
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.css +35 -35
- package/dist/collection/components/spw-header/spw-header.css +35 -35
- package/dist/collection/components/spw-hero/spw-hero.css +35 -35
- package/dist/collection/components/spw-icon/spw-icon.css +35 -35
- package/dist/collection/components/spw-illustration/spw-illustration.css +35 -35
- package/dist/collection/components/spw-input-slider/spw-input-slider.css +35 -35
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +35 -35
- package/dist/collection/components/spw-lightbox/spw-lightbox.css +35 -35
- package/dist/collection/components/spw-link/spw-link.css +35 -35
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.css +35 -35
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.css +35 -35
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.css +35 -35
- package/dist/collection/components/spw-list/spw-list.css +35 -35
- package/dist/collection/components/spw-loading/spw-loading.css +35 -35
- package/dist/collection/components/spw-message/spw-message.css +35 -35
- package/dist/collection/components/spw-modal/spw-modal.css +35 -35
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.css +35 -35
- package/dist/collection/components/spw-mosaic/spw-mosaic.css +35 -35
- package/dist/collection/components/spw-pagination/spw-pagination.css +35 -35
- package/dist/collection/components/spw-radio/spw-radio.css +35 -35
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.css +35 -35
- package/dist/collection/components/spw-search-field/spw-search-field.css +38 -36
- package/dist/collection/components/spw-select/spw-select.css +35 -35
- package/dist/collection/components/spw-separator/spw-separator.css +35 -35
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.css +258 -256
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.css +258 -256
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.css +35 -35
- package/dist/collection/components/spw-sidebar/spw-sidebar.css +35 -35
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.css +258 -256
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +258 -256
- package/dist/collection/components/spw-sidenav/spw-sidenav.css +35 -35
- package/dist/collection/components/spw-skeleton/spw-skeleton.css +35 -35
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.css +35 -35
- package/dist/collection/components/spw-slider/spw-slider.css +35 -35
- package/dist/collection/components/spw-socials/spw-socials.css +258 -256
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.css +35 -35
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.css +35 -35
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.css +35 -35
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.css +35 -35
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.css +35 -35
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.css +35 -35
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.css +35 -35
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.css +35 -35
- package/dist/collection/components/spw-table/spw-table.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs-content/spw-tabs-content.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs.css +35 -35
- package/dist/collection/components/spw-tag/spw-tag.css +35 -35
- package/dist/collection/components/spw-text-field/spw-text-field.css +35 -35
- package/dist/collection/components/spw-textarea/spw-textarea.css +35 -35
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.css +35 -35
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +35 -35
- package/dist/collection/components/spw-tile/spw-tile.css +35 -35
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.css +35 -35
- package/dist/collection/components/spw-timeline/spw-timeline.css +35 -35
- package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.css +35 -35
- package/dist/collection/components/spw-toast/spw-toast.css +35 -35
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.css +258 -256
- package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.css +258 -256
- package/dist/collection/components/spw-toc/spw-toc.css +258 -256
- package/dist/collection/components/spw-tooltip/spw-tooltip.css +35 -35
- package/dist/collection/components/spw-topbar/spw-topbar.css +35 -35
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.css +35 -35
- package/dist/collection/components/spw-wizard/spw-wizard.css +35 -35
- package/dist/collection/stories/organisms/spw-alert/spw-alert.stories.js +187 -0
- package/dist/components/{p-DhbrY43Y.js → p-10usqMv_.js} +1 -1
- package/dist/components/{p-Bd6Pj1em.js → p-4jNBpzmg.js} +1 -1
- package/dist/components/p-BD9dpai3.js +1 -0
- package/dist/components/{p-Bi15ObnP.js → p-BpHhLSNA.js} +1 -1
- package/dist/components/{p-C1V6TSMJ.js → p-BvJ60OkW.js} +1 -1
- package/dist/components/p-C-XK7DW-.js +1 -0
- package/dist/components/{p-C0ziLgAI.js → p-C2YutT5r.js} +1 -1
- package/dist/components/p-C5H3D_hy.js +1 -0
- package/dist/components/p-Ci0r8I9g.js +1 -0
- package/dist/components/{p-DPIrlkN8.js → p-D9JMaCxL.js} +1 -1
- package/dist/components/p-DVxJ3wRZ.js +1 -0
- package/dist/components/{p-BG8eSnGj.js → p-DaITe5yi.js} +1 -1
- package/dist/components/p-DfbLlF27.js +1 -0
- package/dist/components/{p-XOK-JXlE.js → p-hfJhpq7W.js} +1 -1
- package/dist/components/{p-DUN_1kk8.js → p-jLNjkOd-.js} +1 -1
- package/dist/components/p-m6pRrrVB.js +1 -0
- package/dist/components/spw-accordion-content.js +1 -1
- package/dist/components/spw-accordion-item.js +1 -1
- package/dist/components/spw-accordion-title.js +1 -1
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-alert.d.ts +11 -0
- package/dist/components/spw-alert.js +1 -0
- package/dist/components/spw-avatar.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-box.js +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-breadcrumb.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-drawer.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-icon.js +1 -1
- package/dist/components/spw-illustration.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.js +1 -1
- package/dist/components/spw-lightbox.js +1 -1
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +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-sidenav-group.js +1 -1
- package/dist/components/spw-sidenav-item.js +1 -1
- package/dist/components/spw-sidenav.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-table.js +1 -1
- package/dist/components/spw-tabs-content.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-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-navigation.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 +223 -2
- package/dist/components_vscode.json +25 -0
- package/dist/esm/index-DkNryMko.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-accordion_4.entry.js +4 -4
- package/dist/esm/spw-alert.entry.js +53 -0
- package/dist/esm/spw-avatar.entry.js +1 -1
- package/dist/esm/spw-block-content.entry.js +1 -1
- package/dist/esm/spw-box.entry.js +1 -1
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +1 -1
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +1 -1
- package/dist/esm/spw-card-subtag-item.entry.js +1 -1
- package/dist/esm/spw-card-subtags.entry.js +1 -1
- package/dist/esm/spw-card-title.entry.js +1 -1
- package/dist/esm/spw-card.entry.js +1 -1
- package/dist/esm/spw-checkbox.entry.js +1 -1
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +1 -1
- package/dist/esm/spw-date-picker.entry.js +6 -3
- package/dist/esm/spw-drawer.entry.js +1 -1
- package/dist/esm/spw-dropdown-container.entry.js +1 -1
- package/dist/esm/spw-dropdown-item.entry.js +1 -1
- package/dist/esm/spw-dropdown.entry.js +1 -1
- package/dist/esm/spw-field-label_8.entry.js +15 -20
- package/dist/esm/spw-file-upload.entry.js +1 -1
- package/dist/esm/spw-footer-bottom.entry.js +1 -1
- package/dist/esm/spw-footer-content-col.entry.js +1 -1
- package/dist/esm/spw-footer-content.entry.js +1 -1
- package/dist/esm/spw-footer-link.entry.js +1 -1
- package/dist/esm/spw-footer.entry.js +1 -1
- package/dist/esm/spw-grid-item.entry.js +1 -1
- package/dist/esm/spw-grid.entry.js +1 -1
- package/dist/esm/spw-header-lang.entry.js +15 -6
- package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-header-navigation-item.entry.js +127 -2
- package/dist/esm/spw-header-navigation.entry.js +1 -1
- package/dist/esm/spw-header-persona-item.entry.js +1 -1
- package/dist/esm/spw-header-persona.entry.js +16 -7
- package/dist/esm/spw-header.entry.js +1 -1
- package/dist/esm/spw-hero.entry.js +1 -1
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +1 -1
- package/dist/esm/spw-lightbox-item.entry.js +1 -1
- package/dist/esm/spw-lightbox.entry.js +1 -1
- package/dist/esm/spw-list-description.entry.js +1 -1
- package/dist/esm/spw-list-item.entry.js +1 -1
- package/dist/esm/spw-list-title.entry.js +1 -1
- package/dist/esm/spw-list.entry.js +1 -1
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +1 -1
- package/dist/esm/spw-mosaic-item.entry.js +1 -1
- package/dist/esm/spw-mosaic.entry.js +1 -1
- package/dist/esm/spw-pagination.entry.js +1 -1
- package/dist/esm/spw-radio.entry.js +1 -1
- package/dist/esm/spw-scrolltop.entry.js +1 -1
- package/dist/esm/spw-search-field.entry.js +1 -1
- package/dist/esm/spw-select.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-item.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
- package/dist/esm/spw-sidebar.entry.js +1 -1
- package/dist/esm/spw-sidenav-group.entry.js +1 -1
- package/dist/esm/spw-sidenav-item.entry.js +1 -1
- package/dist/esm/spw-sidenav.entry.js +1 -1
- package/dist/esm/spw-skeleton.entry.js +1 -1
- package/dist/esm/spw-slider-item.entry.js +1 -1
- package/dist/esm/spw-slider.entry.js +1 -1
- package/dist/esm/spw-socials.entry.js +1 -1
- package/dist/esm/spw-stencil-library.js +1 -1
- package/dist/esm/spw-table-body.entry.js +1 -1
- package/dist/esm/spw-table-cell.entry.js +1 -1
- package/dist/esm/spw-table-container.entry.js +1 -1
- package/dist/esm/spw-table-footer.entry.js +1 -1
- package/dist/esm/spw-table-head.entry.js +1 -1
- package/dist/esm/spw-table-header.entry.js +1 -1
- package/dist/esm/spw-table-row.entry.js +1 -1
- package/dist/esm/spw-table-sidebar.entry.js +1 -1
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation.entry.js +1 -1
- package/dist/esm/spw-tabs.entry.js +1 -1
- package/dist/esm/spw-tag.entry.js +1 -1
- package/dist/esm/spw-text-field.entry.js +1 -1
- package/dist/esm/spw-textarea.entry.js +1 -1
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +1 -1
- package/dist/esm/spw-timeline-item.entry.js +1 -1
- package/dist/esm/spw-timeline.entry.js +1 -1
- package/dist/esm/spw-toast-controller.entry.js +1 -1
- package/dist/esm/spw-toast.entry.js +1 -1
- package/dist/esm/spw-toc-container.entry.js +1 -1
- package/dist/esm/spw-toc-navigation.entry.js +1 -1
- package/dist/esm/spw-toc.entry.js +1 -1
- package/dist/esm/spw-topbar.entry.js +1 -1
- package/dist/esm/spw-wizard-item.entry.js +1 -1
- package/dist/esm/spw-wizard.entry.js +1 -1
- package/dist/spw-stencil-library/{p-60274467.entry.js → p-00e913ab.entry.js} +1 -1
- package/dist/spw-stencil-library/p-021fc983.entry.js +1 -0
- package/dist/spw-stencil-library/{p-24e1371c.entry.js → p-03c76e20.entry.js} +1 -1
- package/dist/spw-stencil-library/p-07c59244.entry.js +1 -0
- package/dist/spw-stencil-library/{p-88e84f99.entry.js → p-1156e45c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4e5ac719.entry.js → p-15714574.entry.js} +1 -1
- package/dist/spw-stencil-library/p-15fcedc4.entry.js +1 -0
- package/dist/spw-stencil-library/p-18563d7b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-10caa54a.entry.js → p-1b2219c5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1dcb81d3.entry.js → p-1d57cc99.entry.js} +1 -1
- package/dist/spw-stencil-library/p-226bf7b7.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4f57bff5.entry.js → p-264d68af.entry.js} +1 -1
- package/dist/spw-stencil-library/p-29f4d921.entry.js +1 -0
- package/dist/spw-stencil-library/p-2a6388d4.entry.js +1 -0
- package/dist/spw-stencil-library/p-2b2908f6.entry.js +1 -0
- package/dist/spw-stencil-library/p-30f7cb1e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d38ec8b1.entry.js → p-32f90343.entry.js} +1 -1
- package/dist/spw-stencil-library/p-33a767a3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d2005b6a.entry.js → p-35c26140.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-66253e1e.entry.js → p-3bcafcbf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ff626bc0.entry.js → p-3ef82674.entry.js} +1 -1
- package/dist/spw-stencil-library/p-42c5ae2b.entry.js +1 -0
- package/dist/spw-stencil-library/p-435c6572.entry.js +1 -0
- package/dist/spw-stencil-library/p-43ac8164.entry.js +1 -0
- package/dist/spw-stencil-library/p-4898b89b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-86f8bae3.entry.js → p-4b49ce46.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8341ae45.entry.js → p-4e15e0c1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3a6c6557.entry.js → p-53d34813.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eb01ac29.entry.js → p-54d3bb05.entry.js} +1 -1
- package/dist/spw-stencil-library/p-58eddc91.entry.js +1 -0
- package/dist/spw-stencil-library/p-5a55e5c5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-588d1ab8.entry.js → p-5c50027b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0726f68f.entry.js → p-5e7ca2e4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-609873b3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-6c8fdc24.entry.js → p-62442334.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-71b07920.entry.js → p-6278d28f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-382a5109.entry.js → p-646c04fa.entry.js} +1 -1
- package/dist/spw-stencil-library/p-6a6b2237.entry.js +1 -0
- package/dist/spw-stencil-library/p-6aef58f4.entry.js +1 -0
- package/dist/spw-stencil-library/p-70b7b977.entry.js +1 -0
- package/dist/spw-stencil-library/p-70d3f435.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8c9d3e7e.entry.js → p-71ef7b30.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-09818d2e.entry.js → p-77802474.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-114d6e1e.entry.js → p-77a95d12.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7a47432f.entry.js +1 -0
- package/dist/spw-stencil-library/p-82ccac76.entry.js +1 -0
- package/dist/spw-stencil-library/p-83017509.entry.js +1 -0
- package/dist/spw-stencil-library/p-836800d9.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9707cb79.entry.js → p-837ac8f1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-17616d66.entry.js → p-8488c882.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-887d35a3.entry.js → p-85fd474d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8a0cf2d4.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f44b0932.entry.js → p-8b631b5d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8ee5de40.entry.js +1 -0
- package/dist/spw-stencil-library/p-958dadb3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-604af44e.entry.js → p-98f14c76.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-21e998ba.entry.js → p-9a839525.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-19c15bfc.entry.js → p-9ac3913a.entry.js} +1 -1
- package/dist/spw-stencil-library/p-9baceb97.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1fca6b4f.entry.js → p-9c747e12.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-005e895a.entry.js → p-a13fadc5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d9556465.entry.js → p-a19386d3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11e3ba7c.entry.js → p-a36010c0.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a4532a5f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-2d2711ca.entry.js → p-a4a4c3b3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a8aef45b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-80a3d802.entry.js → p-a9c3f05b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6cfcab87.entry.js → p-aecc5c7b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b2be5886.entry.js +1 -0
- package/dist/spw-stencil-library/{p-5a34e9a1.entry.js → p-b6b496d2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-17c96d6e.entry.js → p-b98b556b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-bbd74c62.entry.js +1 -0
- package/dist/spw-stencil-library/{p-0e1e2cae.entry.js → p-bdce1731.entry.js} +1 -1
- package/dist/spw-stencil-library/p-bdea1755.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d29e6f62.entry.js → p-c02151d3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5c754331.entry.js → p-c20c15d5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-910d0c1b.entry.js → p-c6298162.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-adaa48d1.entry.js → p-c8185d55.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-80c90bfb.entry.js → p-c9cca975.entry.js} +1 -1
- package/dist/spw-stencil-library/p-cab00494.entry.js +1 -0
- package/dist/spw-stencil-library/p-ccbe0d67.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9ad927ac.entry.js → p-d302a2b5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3dab5cac.entry.js → p-db281173.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a2e3cc07.entry.js → p-e2592a5e.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e27e96a2.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8597c4d2.entry.js → p-e2f667f7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cfc510f9.entry.js → p-e6546573.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2e819c63.entry.js → p-e67a2ab2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2e0e0459.entry.js → p-e684eb0a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-756050b1.entry.js → p-e68ac654.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-50a45386.entry.js → p-e76535ee.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e9262506.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f2e65640.entry.js → p-ec9b89b8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ee69af5f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-eca88327.entry.js → p-efab43e2.entry.js} +1 -1
- package/dist/{components/p-YvGDRmTV.js → spw-stencil-library/p-faa20925.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fb4b6547.entry.js +1 -0
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +1047 -461
- package/dist/types/components/spw-alert/spw-alert.d.ts +31 -0
- package/dist/types/components/spw-group/spw-group.d.ts +2 -0
- package/dist/types/components/spw-header/spw-header-lang/spw-header-lang.d.ts +1 -0
- package/dist/types/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.d.ts +14 -0
- package/dist/types/components/spw-header/spw-header-persona/spw-header-persona.d.ts +1 -0
- package/dist/types/components.d.ts +84 -0
- package/dist/types/stories/organisms/spw-alert/spw-alert.stories.d.ts +7 -0
- package/hydrate/index.js +344 -134
- package/hydrate/index.mjs +344 -134
- package/package.json +1 -1
- package/dist/components/p-BdLq2Z-z.js +0 -1
- package/dist/components/p-BmDBeXas.js +0 -1
- package/dist/components/p-DLlEwOHN.js +0 -1
- package/dist/components/p-DyP6vchn.js +0 -1
- package/dist/components/p-GqBctcHU.js +0 -1
- package/dist/components/p-_Np7i1O2.js +0 -1
- package/dist/spw-stencil-library/p-0043c2f4.entry.js +0 -1
- package/dist/spw-stencil-library/p-03c6b8d1.entry.js +0 -1
- package/dist/spw-stencil-library/p-0bced661.entry.js +0 -1
- package/dist/spw-stencil-library/p-0c7de0dc.entry.js +0 -1
- package/dist/spw-stencil-library/p-1034937d.entry.js +0 -1
- package/dist/spw-stencil-library/p-3c08dd3a.entry.js +0 -1
- package/dist/spw-stencil-library/p-3e21d004.entry.js +0 -1
- package/dist/spw-stencil-library/p-3f4aef0b.entry.js +0 -1
- package/dist/spw-stencil-library/p-42b0e820.entry.js +0 -1
- package/dist/spw-stencil-library/p-42f14e44.entry.js +0 -1
- package/dist/spw-stencil-library/p-4305fe28.entry.js +0 -1
- package/dist/spw-stencil-library/p-43add8a1.entry.js +0 -1
- package/dist/spw-stencil-library/p-5fba88ab.entry.js +0 -1
- package/dist/spw-stencil-library/p-66a5ccc3.entry.js +0 -1
- package/dist/spw-stencil-library/p-6df3645e.entry.js +0 -1
- package/dist/spw-stencil-library/p-7e2bf8ad.entry.js +0 -1
- package/dist/spw-stencil-library/p-7e49020e.entry.js +0 -1
- package/dist/spw-stencil-library/p-841ed3e2.entry.js +0 -1
- package/dist/spw-stencil-library/p-86da34a4.entry.js +0 -1
- package/dist/spw-stencil-library/p-87c52460.entry.js +0 -1
- package/dist/spw-stencil-library/p-8a8faafd.entry.js +0 -1
- package/dist/spw-stencil-library/p-9c94a953.entry.js +0 -1
- package/dist/spw-stencil-library/p-a2c5fa8a.entry.js +0 -1
- package/dist/spw-stencil-library/p-a6a1956b.entry.js +0 -1
- package/dist/spw-stencil-library/p-aab25099.entry.js +0 -1
- package/dist/spw-stencil-library/p-afa2f53d.entry.js +0 -1
- package/dist/spw-stencil-library/p-b0da8df5.entry.js +0 -1
- package/dist/spw-stencil-library/p-b4c51969.entry.js +0 -1
- package/dist/spw-stencil-library/p-ba0206b4.entry.js +0 -1
- package/dist/spw-stencil-library/p-c4ec0044.entry.js +0 -1
- package/dist/spw-stencil-library/p-c76e8e18.entry.js +0 -1
- package/dist/spw-stencil-library/p-c94fb0ec.entry.js +0 -1
- package/dist/spw-stencil-library/p-caba8c80.entry.js +0 -1
- package/dist/spw-stencil-library/p-cade9057.entry.js +0 -1
- package/dist/spw-stencil-library/p-da1e18c0.entry.js +0 -1
- package/dist/spw-stencil-library/p-e56f73bd.entry.js +0 -1
- package/dist/spw-stencil-library/p-e81a123f.entry.js +0 -1
- package/dist/spw-stencil-library/p-ef90d734.entry.js +0 -1
- package/dist/spw-stencil-library/p-f940ab99.entry.js +0 -1
- package/dist/spw-stencil-library/p-feca6945.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,a as s,t as n}from"./index.js";import{d as o}from"./p-
|
|
1
|
+
import{p as t,H as e,h as i,a as s,t as n}from"./index.js";import{d as o}from"./p-DfbLlF27.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.mobileBackLabel="Retour",this.focusedItem=null,this.isMobile=!1,this.showRoot=!1,this.mediaListener=()=>this.updateBreakpoint(),this.handleBack=()=>{const t=this.getCurrentTarget();if(!t)return;const e=this.getParentItem(t);this.clearFocus(),e?this.setFocus(e):this.showRoot=!0}}componentDidLoad(){this.mediaQuery=window.matchMedia("(max-width: 767px)"),this.mediaQuery.addEventListener("change",this.mediaListener),this.updateBreakpoint()}disconnectedCallback(){var t;null===(t=this.mediaQuery)||void 0===t||t.removeEventListener("change",this.mediaListener)}updateBreakpoint(){this.isMobile=this.mediaQuery.matches,this.isMobile||(this.clearFocus(),this.showRoot=!1)}handleFocusRequest(t){this.showRoot=!1,this.setFocus(t.detail.item)}clearFocus(){var t,e;this.focusedItem&&(null===(e=(t=this.focusedItem).setMobileFocus)||void 0===e||e.call(t,!1),this.focusedItem=null)}setFocus(t){var e,i;this.clearFocus(),null===(i=(e=t).setMobileFocus)||void 0===i||i.call(e,!0),this.focusedItem=t}getParentItem(t){var e;return null===(e=t.parentElement)||void 0===e?void 0:e.closest("spw-sidenav-item")}getItemLabel(t){var e,i;const s=t.querySelector(":scope > .spw-sidenav-item .spw-sidenav-item__text");return null!==(i=null===(e=null==s?void 0:s.textContent)||void 0===e?void 0:e.trim())&&void 0!==i?i:""}findLeafActive(){const t=Array.from(this.el.querySelectorAll("spw-sidenav-item"));for(const e of t){const t=e.getAttribute("active");if(""===t||"true"===t)return e}return null}getCurrentTarget(){if(this.focusedItem)return this.focusedItem;const t=this.findLeafActive();return t?this.getParentItem(t):null}async closeAll(){this.el.querySelectorAll("spw-sidenav-item").forEach((t=>{var e;return null===(e=t.close)||void 0===e?void 0:e.call(t)}))}get backLabel(){if(this.showRoot)return null;const t=this.getCurrentTarget();if(!t)return null;const e=this.getParentItem(t);return e&&this.getItemLabel(e)||this.mobileBackLabel}get sectionTitle(){if(this.showRoot)return null;const t=this.getCurrentTarget();return t&&this.getItemLabel(t)||null}render(){let t=!1,e=null;return this.isMobile&&!this.showRoot&&(t=!!this.getCurrentTarget(),e=this.sectionTitle),i(s,{key:"80179702fc9f29cd2d726088dddad70c69d2b3f4","data-show-root":this.showRoot?"true":null},i("nav",{key:"deeac3068ee9778b42089251ab9afcc8089b0d3e",class:{"spw-sidenav":!0,"spw-sidenav--show-root":this.showRoot}},t&&i("button",{key:"973111df63183b6ce527c01e1faeca6d850f87ad",class:"spw-sidenav__back",type:"button",onClick:this.handleBack},i("spw-icon",{key:"619044487e610cc2811d9b2ebe5cb4b6219f0c5f",icon:"fa-arrow-left"}),i("span",{key:"755b42e03bbb43567825ab0ab8da57051ebf8600"},this.backLabel)),e&&i("div",{key:"8e7365578ac94e27a448e4eaea3b6086864da726",class:"spw-sidenav__section-title"},e),i("slot",{key:"a9a048e2367bc1f49f39206d8ada5e030a4f8796"})))}get el(){return this}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block}.spw-sidenav{display:flex;flex-direction:column}.spw-sidenav__back{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:8px 0;margin-bottom:4px;border:none;background:none;cursor:pointer;font-size:14px;font-family:inherit;color:var(--spw-colors-support-grey-grey-600);transition:color 0.15s ease}.spw-sidenav__back:hover{color:var(--spw-ds-primary)}.spw-sidenav__back:focus-visible{outline:3px solid black;outline-offset:2px;border-radius:4px}.spw-sidenav__back spw-icon{font-size:12px}.spw-sidenav__section-title{font-size:18px;font-weight:700;color:var(--spw-colors-support-grey-grey-900);padding:8px 0;margin-bottom:4px}"}},[257,"spw-sidenav",{mobileBackLabel:[1,"mobile-back-label"],focusedItem:[32],isMobile:[32],showRoot:[32],closeAll:[64]},[[0,"spwMobileFocusRequest","handleFocusRequest"]]]),r=a,l=function(){"undefined"!=typeof customElements&&["spw-sidenav","spw-icon"].forEach((t=>{switch(t){case"spw-sidenav":customElements.get(n(t))||customElements.define(n(t),a);break;case"spw-icon":customElements.get(n(t))||o()}}))};export{r as SpwSidenav,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as n,a as s,t as i}from"./index.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.blocks=1,this.variant="lines"}renderLines(){return Array.from({length:this.blocks},((e,t)=>{const s=t===this.blocks-1,i=1===this.blocks;return n("div",{class:{"spw-skeleton__line":!0,"spw-skeleton__line--only":i,"spw-skeleton__line--last":!i&&s,"spw-skeleton__line--even":!s&&t%2==1,"spw-skeleton__line--odd":!s&&t%2==0}})}))}renderText(){return n("div",{class:"spw-skeleton__text"},n("spw-skeleton",{variant:"lines",blocks:5}),n("div",{class:"spw-skeleton__text-block"}),n("spw-skeleton",{variant:"lines",blocks:2}))}renderArticle(){return n("div",{class:"spw-skeleton__article"},n("div",{class:"spw-skeleton__article-image"}),n("spw-skeleton",{variant:"lines",blocks:7}))}renderTextButtons(){return n("div",{class:"spw-skeleton__text-buttons"},n("spw-skeleton",{variant:"lines",blocks:3}),n("div",{class:"spw-skeleton__buttons"},n("div",{class:"spw-skeleton__button"}),n("div",{class:"spw-skeleton__button"})))}renderVariant(){switch(this.variant){case"text":return this.renderText();case"article":return this.renderArticle();case"layout":return this.renderTextButtons();default:return this.renderLines()}}render(){return n(s,{key:"c0081c6335e2b8f7c58da3fbc28a1e8166dc065d"},n("div",{key:"59093cd70fce923494968ff580398d58e69baf96",class:"spw-skeleton"},this.renderVariant(),n("slot",{key:"3d26afa7ccbac19fcdb0314530b245ca0a91ff95"})))}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as e,H as t,h as n,a as s,t as i}from"./index.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.blocks=1,this.variant="lines"}renderLines(){return Array.from({length:this.blocks},((e,t)=>{const s=t===this.blocks-1,i=1===this.blocks;return n("div",{class:{"spw-skeleton__line":!0,"spw-skeleton__line--only":i,"spw-skeleton__line--last":!i&&s,"spw-skeleton__line--even":!s&&t%2==1,"spw-skeleton__line--odd":!s&&t%2==0}})}))}renderText(){return n("div",{class:"spw-skeleton__text"},n("spw-skeleton",{variant:"lines",blocks:5}),n("div",{class:"spw-skeleton__text-block"}),n("spw-skeleton",{variant:"lines",blocks:2}))}renderArticle(){return n("div",{class:"spw-skeleton__article"},n("div",{class:"spw-skeleton__article-image"}),n("spw-skeleton",{variant:"lines",blocks:7}))}renderTextButtons(){return n("div",{class:"spw-skeleton__text-buttons"},n("spw-skeleton",{variant:"lines",blocks:3}),n("div",{class:"spw-skeleton__buttons"},n("div",{class:"spw-skeleton__button"}),n("div",{class:"spw-skeleton__button"})))}renderVariant(){switch(this.variant){case"text":return this.renderText();case"article":return this.renderArticle();case"layout":return this.renderTextButtons();default:return this.renderLines()}}render(){return n(s,{key:"c0081c6335e2b8f7c58da3fbc28a1e8166dc065d"},n("div",{key:"59093cd70fce923494968ff580398d58e69baf96",class:"spw-skeleton"},this.renderVariant(),n("slot",{key:"3d26afa7ccbac19fcdb0314530b245ca0a91ff95"})))}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block}.spw-skeleton__text-block,.spw-skeleton__article-image,.spw-skeleton__button,.spw-skeleton__line{background:linear-gradient(90deg, white 0%, var(--spw-color-themes-grey-grey-300) 50%, white 100%);background-size:200% 100%;animation:shimmer 5s infinite linear}.spw-skeleton{display:flex;flex-direction:column;gap:1rem}.spw-skeleton__line{height:1rem;width:100%;border-radius:4px}.spw-skeleton__line--even{width:85%}.spw-skeleton__line--last{width:50% !important}.spw-skeleton__buttons{display:flex;align-items:center;justify-content:center;margin-top:24px;gap:24px}.spw-skeleton__button{width:200px;height:40px;border-radius:40px}.spw-skeleton__article-image{margin-bottom:24px;border-radius:8px;height:170px}.spw-skeleton__text-block{margin:24px 0;border-radius:4px;height:60px}@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}"}},[257,"spw-skeleton",{blocks:[2],variant:[1]}]),r=o,a=function e(){"undefined"!=typeof customElements&&["spw-skeleton","spw-skeleton"].forEach((t=>{switch(t){case"spw-skeleton":customElements.get(i(t))||customElements.define(i(t),o);break;case"spw-skeleton":customElements.get(i(t))||e()}}))};export{r as SpwSkeleton,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as i,a as n,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return i(n,{key:"bb9fabad09dbef4637b0b6e975df5ff82fc120eb"},i("div",{key:"274a2c2b319f586439a8262f459d630ecf75338e",class:"spw-slider-item"},i("slot",{key:"b8aa7ff95b65a51ca1a89cad7e52a2589e3286e9"})))}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as e,H as t,h as i,a as n,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return i(n,{key:"bb9fabad09dbef4637b0b6e975df5ff82fc120eb"},i("div",{key:"274a2c2b319f586439a8262f459d630ecf75338e",class:"spw-slider-item"},i("slot",{key:"b8aa7ff95b65a51ca1a89cad7e52a2589e3286e9"})))}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{position:absolute;top:0;left:0;width:100%;display:block}.spw-slider-item{width:100%;display:block}"}},[257,"spw-slider-item"]),a=s,r=function(){"undefined"!=typeof customElements&&["spw-slider-item"].forEach((e=>{"spw-slider-item"===e&&(customElements.get(o(e))||customElements.define(o(e),s))}))};export{a as SpwSliderItem,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as e,h as s,a as o,t as n}from"./index.js";import{d as a}from"./p-DUN_1kk8.js";import{d as r}from"./p-YvGDRmTV.js";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.spwSliderChange=e(this,"spwSliderChange",7),this.spwSliderNext=e(this,"spwSliderNext",7),this.spwSliderPrevious=e(this,"spwSliderPrevious",7),this.showArrows=!0,this.showDots=!0,this.showAutoplayToggle=!1,this.autoplayInterval=5e3,this.autoplayEnabled=!1,this.autoplayText="Défilement automatique",this.arrowsPosition="inside",this.dotsPosition="inside",this.nextSlideText="Slide suivante",this.accAriaLabel="Slider de contenu",this.previousSlideText="Slide précédente",this.hasFixedHeight=!1,this.activeIndex=0,this.totalSlides=0,this.currentHeight=0,this.isAutoplayActive=!1,this.startX=0,this.startY=0,this.currentX=0,this.isDragging=!1,this.slides=[],this.handleSlotChange=()=>{this.updateSlides(),this.scheduleHeightUpdate(50)},this.handleResize=()=>{this.scheduleHeightUpdate(50)},this.handlePrevious=()=>{this.activeIndex>0&&this.goToSlide(this.activeIndex-1,"previous")},this.handleNext=()=>{this.activeIndex<this.totalSlides-1&&this.goToSlide(this.activeIndex+1,"next")},this.handleDotClick=t=>{this.goToSlide(t)},this.startAutoplay=()=>{this.stopAutoplay(),this.autoplayTimer=window.setInterval((()=>{this.goToSlide(this.activeIndex<this.totalSlides-1?this.activeIndex+1:0,"next")}),this.autoplayInterval)},this.stopAutoplay=()=>{this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null)},this.handleAutoplayToggle=t=>{this.isAutoplayActive=t.detail,this.isAutoplayActive?this.startAutoplay():this.stopAutoplay()}}componentDidLoad(){this.initializeSlider();const t=this.el.shadowRoot.querySelector("slot");t&&t.addEventListener("slotchange",this.handleSlotChange),window.addEventListener("resize",this.handleResize),this.setupResizeObserver(),this.isAutoplayActive=this.autoplayEnabled,this.isAutoplayActive&&this.startAutoplay()}disconnectedCallback(){var t;window.removeEventListener("resize",this.handleResize);const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");i&&i.removeEventListener("slotchange",this.handleSlotChange),this.resizeObserver&&this.resizeObserver.disconnect(),this.heightUpdateTimeout&&clearTimeout(this.heightUpdateTimeout),this.stopAutoplay()}initializeSlider(){this.updateSlides(),this.scheduleHeightUpdate(200),this.scheduleHeightUpdate(500)}setupResizeObserver(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{this.scheduleHeightUpdate(50)})),this.slides.forEach((t=>{var i,e;this.resizeObserver.observe(t);const s=null===(e=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if(s&&(this.resizeObserver.observe(s),s.shadowRoot)){const t=s.shadowRoot.firstElementChild;t&&this.resizeObserver.observe(t)}})))}scheduleHeightUpdate(t=0){this.heightUpdateTimeout&&clearTimeout(this.heightUpdateTimeout),this.heightUpdateTimeout=window.setTimeout((()=>{this.updateHeight()}),t)}updateSlides(){const t=this.el.shadowRoot.querySelector("slot");if(t){const i=t.assignedElements();this.resizeObserver&&this.slides.forEach((t=>{this.resizeObserver.unobserve(t)})),this.slides=i,this.totalSlides=this.slides.length,this.slides.forEach(((t,i)=>{t.style.transform=`translateX(${100*i}%)`,i===this.activeIndex?t.removeAttribute("inert"):t.setAttribute("inert","")})),this.resizeObserver&&this.slides.forEach((t=>{this.resizeObserver.observe(t)}))}}async updateHeight(){this.hasFixedHeight?await this.updateFixedHeight():await this.updateActiveSlideHeight()}async updateFixedHeight(){let t=0;for(const i of this.slides){const e=await this.getSlideHeight(i);e>t&&(t=e)}t>0&&(this.currentHeight=t,this.applyFixedHeightToHeroes(t))}applyFixedHeightToHeroes(t){var i,e,s;for(const o of this.slides){const n=null===(e=null===(i=o.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if("spw-hero"===(null==n?void 0:n.tagName.toLowerCase())){const i=null===(s=n.shadowRoot)||void 0===s?void 0:s.querySelector(".spw-hero");i&&(i.style.height=t+"px")}}}async updateActiveSlideHeight(){if(this.slides[this.activeIndex]){const t=this.slides[this.activeIndex],i=await this.getSlideHeight(t);i>50?this.currentHeight=i:this.retryHeightCalculation(0)}}async getSlideHeight(t){var i,e;const s=null===(e=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if(s){const t=s.tagName.toLowerCase();if(t.includes("-"))try{await customElements.whenDefined(t),await new Promise((t=>setTimeout(t,50)))}catch(t){}let i=s.offsetHeight||s.scrollHeight;if(s.shadowRoot){const t=s.shadowRoot.firstElementChild;t&&(i=t.offsetHeight||t.scrollHeight)}if(i>0)return i}return t.offsetHeight||t.scrollHeight}retryHeightCalculation(t){t>=15||setTimeout((()=>{var i,e;const s=this.slides[this.activeIndex];if(!s)return;const o=null===(e=null===(i=s.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if(o){let t=o.offsetHeight||o.scrollHeight;if(o.shadowRoot){const i=o.shadowRoot.firstElementChild;i&&(t=i.offsetHeight||i.scrollHeight)}if(t>50)return void(this.currentHeight=t)}const n=s.offsetHeight||s.scrollHeight;n>50?this.currentHeight=n:this.retryHeightCalculation(t+1)}),100*(t+1))}goToSlide(t,i){if(t<0||t>=this.totalSlides)return;const e=this.activeIndex;this.activeIndex=t,this.spwSliderChange.emit({index:t,previousIndex:e}),"next"===i&&this.spwSliderNext.emit({index:t}),"previous"===i&&this.spwSliderPrevious.emit({index:t}),this.slides.forEach(((t,i)=>{const e=100*(i-this.activeIndex);t.style.transition="transform 0.3s ease-in-out",t.style.transform=`translateX(${e}%)`,i===this.activeIndex?t.removeAttribute("inert"):t.setAttribute("inert","")})),this.scheduleHeightUpdate(0),this.scheduleHeightUpdate(320),this.isAutoplayActive&&(this.stopAutoplay(),this.startAutoplay())}handleTouchStart(t){this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY,this.currentX=this.startX,this.isDragging=!0,this.isAutoplayActive&&this.stopAutoplay()}handleMouseDown(t){this.startX=t.clientX,this.currentX=this.startX,this.isDragging=!0,t.preventDefault(),this.isAutoplayActive&&this.stopAutoplay()}handleTouchMove(t){if(!this.isDragging)return;const i=t.touches[0].clientY-this.startY;Math.abs(t.touches[0].clientX-this.startX)>Math.abs(i)&&t.preventDefault(),this.currentX=t.touches[0].clientX}handleMouseMove(t){this.isDragging&&(this.currentX=t.clientX)}handleTouchEnd(){this.handleDragEnd()}handleMouseUp(){this.handleDragEnd()}handleMouseLeave(){this.isDragging&&this.handleDragEnd()}handleKeyDown(t){"ArrowLeft"===t.key?(t.preventDefault(),this.handlePrevious()):"ArrowRight"===t.key&&(t.preventDefault(),this.handleNext())}handleDragEnd(){if(!this.isDragging)return;const t=this.startX-this.currentX;Math.abs(t)>50&&(t>0?this.handleNext():this.handlePrevious()),this.isDragging=!1,this.startX=0,this.currentX=0,this.isAutoplayActive&&this.startAutoplay()}get elementClass(){return{"spw-slider":!0,["spw-slider--arrows-"+this.arrowsPosition]:!0,["spw-slider--dots-"+this.dotsPosition]:!0}}renderDots(){return!this.showDots||this.totalSlides<=1?null:s("div",{class:{"spw-slider__dots":!0,"spw-slider__dots--outside":"outside"===this.dotsPosition}},Array.from({length:this.totalSlides},((t,i)=>s("button",{class:{"spw-slider__dot":!0,"spw-slider__dot--active":i===this.activeIndex},onClick:()=>this.handleDotClick(i),"aria-label":"Slide "+(i+1),"aria-current":i===this.activeIndex?"true":"false"}))))}render(){return s(o,{key:"810d6ced5403729fe79bf67b4d15c5d96c4820a1"},s("div",{key:"310490c3eea1c9d0dfad08d27c388a09146f0a93",class:this.elementClass,style:{height:this.currentHeight+"px"},tabindex:"0",role:"region","aria-label":this.accAriaLabel},s("div",{key:"bfbbfca201769cf621344f8ff4e2a0ea3edbd5e7",class:"spw-slider__track"},s("slot",{key:"e949abbe0597a7cc0558289cc589d5b1194e9884"})),this.showArrows&&s("div",{key:"306025c5d2390d822d75ae8d9403e265c0e66e0c",class:"spw-slider__navigation"},s("button",{key:"ca0fe952b5b0f260388fe26296b51a13d640d359",class:"spw-slider__arrow spw-slider__arrow--prev",onClick:this.handlePrevious,disabled:0===this.activeIndex,"aria-label":this.previousSlideText},s("spw-icon",{key:"c5ea592b78fcf804b66b13100fc0156765e26c04",icon:"fa-chevron-left"})),s("button",{key:"7785a31662e2b50be80e875f69f0c31b67a01042",class:"spw-slider__arrow spw-slider__arrow--next",onClick:this.handleNext,disabled:this.activeIndex===this.totalSlides-1,"aria-label":this.nextSlideText},s("spw-icon",{key:"5247463977a24a0222cb6a60748a347ffd67b18e",icon:"fa-chevron-right"}))),"inside"===this.dotsPosition&&this.renderDots()),"outside"===this.dotsPosition&&s("div",{key:"2f588f7082732c04c335827baae6e56bd3db8225",class:"spw-slider__dots-container"},this.renderDots()),this.showAutoplayToggle&&s("div",{key:"44460cd1672181221038ef4bfc593f8beb49c851",class:"spw-slider__autoplay-toggle"},s("spw-checkbox",{key:"0b10eaa228500b753b7608bf2bab8d263721d772",variant:"toggle",checked:this.isAutoplayActive,onSpwChange:this.handleAutoplayToggle},this.autoplayText)))}get el(){return this}static get style(){return'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);letter-spacing:-0.18px}body{margin: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:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-slider{position:relative;width:100%;transition:height 0.3s ease-in-out;min-height:100px}.spw-slider[style*="height: 0px"]{min-height:200px}.spw-slider--arrows-outside{padding:0 56px}.spw-slider:focus-visible{outline:2px solid black;outline-offset:2px}.spw-slider__track{position:relative;width:100%;height:100%;overflow:hidden;cursor:grab;user-select:none}.spw-slider__track:active{cursor:grabbing}.spw-slider__navigation{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 12px;pointer-events:none;width:calc(100% + 64px);margin-left:-32px}@media (min-width: 1024px){.spw-slider__navigation{width:100%;margin-left:0}}.spw-slider--arrows-outside .spw-slider__navigation{width:100%;padding:0;margin-left:0}.spw-slider__arrow{pointer-events:all;width:40px;height:40px;border-radius:50%;border:none;background-color:var(--spw-ds-primary);color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;font-size:1.25rem}.spw-slider__arrow:hover:not(:disabled){transform:scale(0.9)}.spw-slider__arrow:disabled{cursor:not-allowed;background-color:var(--spw-color-themes-grey-grey-300);color:var(--spw-color-themes-grey-grey-400)}.spw-slider__arrow:focus-visible{outline:2px solid black;outline-offset:2px}.spw-slider__dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:0.5rem;z-index:10;background:white;box-shadow:var(--spw-effect-elevation-5);padding:8px;border-radius:999px}.spw-slider__dots--outside{position:relative;bottom:auto;left:auto;transform:none;box-shadow:none;display:inline-flex;border:1px solid var(--spw-color-themes-grey-grey-300)}.spw-slider__dot{width:12px;height:12px;border-radius:50%;background:var(--spw-color-themes-grey-grey-300);cursor:pointer;border:none;transition:all 0.2s ease;padding:0}.spw-slider__dot:hover{transform:scale(1.2)}.spw-slider__dot--active{background-color:var(--spw-ds-primary)}.spw-slider__dot:focus-visible{outline:2px solid black;outline-offset:2px}.spw-slider__dots-container{display:flex;justify-content:center;margin-top:12px}.spw-slider__autoplay-toggle{margin-top:12px}'}},[257,"spw-slider",{showArrows:[4,"show-arrows"],showDots:[4,"show-dots"],showAutoplayToggle:[4,"show-autoplay-toggle"],autoplayInterval:[2,"autoplay-interval"],autoplayEnabled:[4,"autoplay-enabled"],autoplayText:[1,"autoplay-text"],arrowsPosition:[1,"arrows-position"],dotsPosition:[1,"dots-position"],nextSlideText:[1,"next-slide-text"],accAriaLabel:[1,"acc-aria-label"],previousSlideText:[1,"previous-slide-text"],hasFixedHeight:[4,"has-fixed-height"],activeIndex:[32],totalSlides:[32],currentHeight:[32],isAutoplayActive:[32]},[[1,"touchstart","handleTouchStart"],[0,"mousedown","handleMouseDown"],[0,"touchmove","handleTouchMove"],[1,"mousemove","handleMouseMove"],[1,"touchend","handleTouchEnd"],[1,"mouseup","handleMouseUp"],[1,"mouseleave","handleMouseLeave"],[0,"keydown","handleKeyDown"]]]),d=h,l=function(){"undefined"!=typeof customElements&&["spw-slider","spw-checkbox","spw-icon"].forEach((t=>{switch(t){case"spw-slider":customElements.get(n(t))||customElements.define(n(t),h);break;case"spw-checkbox":customElements.get(n(t))||a();break;case"spw-icon":customElements.get(n(t))||r()}}))};export{d as SpwSlider,l as defineCustomElement}
|
|
1
|
+
import{p as t,H as i,c as e,h as s,a as o,t as n}from"./index.js";import{d as a}from"./p-jLNjkOd-.js";import{d as r}from"./p-DfbLlF27.js";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.spwSliderChange=e(this,"spwSliderChange",7),this.spwSliderNext=e(this,"spwSliderNext",7),this.spwSliderPrevious=e(this,"spwSliderPrevious",7),this.showArrows=!0,this.showDots=!0,this.showAutoplayToggle=!1,this.autoplayInterval=5e3,this.autoplayEnabled=!1,this.autoplayText="Défilement automatique",this.arrowsPosition="inside",this.dotsPosition="inside",this.nextSlideText="Slide suivante",this.accAriaLabel="Slider de contenu",this.previousSlideText="Slide précédente",this.hasFixedHeight=!1,this.activeIndex=0,this.totalSlides=0,this.currentHeight=0,this.isAutoplayActive=!1,this.startX=0,this.startY=0,this.currentX=0,this.isDragging=!1,this.slides=[],this.handleSlotChange=()=>{this.updateSlides(),this.scheduleHeightUpdate(50)},this.handleResize=()=>{this.scheduleHeightUpdate(50)},this.handlePrevious=()=>{this.activeIndex>0&&this.goToSlide(this.activeIndex-1,"previous")},this.handleNext=()=>{this.activeIndex<this.totalSlides-1&&this.goToSlide(this.activeIndex+1,"next")},this.handleDotClick=t=>{this.goToSlide(t)},this.startAutoplay=()=>{this.stopAutoplay(),this.autoplayTimer=window.setInterval((()=>{this.goToSlide(this.activeIndex<this.totalSlides-1?this.activeIndex+1:0,"next")}),this.autoplayInterval)},this.stopAutoplay=()=>{this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null)},this.handleAutoplayToggle=t=>{this.isAutoplayActive=t.detail,this.isAutoplayActive?this.startAutoplay():this.stopAutoplay()}}componentDidLoad(){this.initializeSlider();const t=this.el.shadowRoot.querySelector("slot");t&&t.addEventListener("slotchange",this.handleSlotChange),window.addEventListener("resize",this.handleResize),this.setupResizeObserver(),this.isAutoplayActive=this.autoplayEnabled,this.isAutoplayActive&&this.startAutoplay()}disconnectedCallback(){var t;window.removeEventListener("resize",this.handleResize);const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");i&&i.removeEventListener("slotchange",this.handleSlotChange),this.resizeObserver&&this.resizeObserver.disconnect(),this.heightUpdateTimeout&&clearTimeout(this.heightUpdateTimeout),this.stopAutoplay()}initializeSlider(){this.updateSlides(),this.scheduleHeightUpdate(200),this.scheduleHeightUpdate(500)}setupResizeObserver(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{this.scheduleHeightUpdate(50)})),this.slides.forEach((t=>{var i,e;this.resizeObserver.observe(t);const s=null===(e=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if(s&&(this.resizeObserver.observe(s),s.shadowRoot)){const t=s.shadowRoot.firstElementChild;t&&this.resizeObserver.observe(t)}})))}scheduleHeightUpdate(t=0){this.heightUpdateTimeout&&clearTimeout(this.heightUpdateTimeout),this.heightUpdateTimeout=window.setTimeout((()=>{this.updateHeight()}),t)}updateSlides(){const t=this.el.shadowRoot.querySelector("slot");if(t){const i=t.assignedElements();this.resizeObserver&&this.slides.forEach((t=>{this.resizeObserver.unobserve(t)})),this.slides=i,this.totalSlides=this.slides.length,this.slides.forEach(((t,i)=>{t.style.transform=`translateX(${100*i}%)`,i===this.activeIndex?t.removeAttribute("inert"):t.setAttribute("inert","")})),this.resizeObserver&&this.slides.forEach((t=>{this.resizeObserver.observe(t)}))}}async updateHeight(){this.hasFixedHeight?await this.updateFixedHeight():await this.updateActiveSlideHeight()}async updateFixedHeight(){let t=0;for(const i of this.slides){const e=await this.getSlideHeight(i);e>t&&(t=e)}t>0&&(this.currentHeight=t,this.applyFixedHeightToHeroes(t))}applyFixedHeightToHeroes(t){var i,e,s;for(const o of this.slides){const n=null===(e=null===(i=o.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if("spw-hero"===(null==n?void 0:n.tagName.toLowerCase())){const i=null===(s=n.shadowRoot)||void 0===s?void 0:s.querySelector(".spw-hero");i&&(i.style.height=t+"px")}}}async updateActiveSlideHeight(){if(this.slides[this.activeIndex]){const t=this.slides[this.activeIndex],i=await this.getSlideHeight(t);i>50?this.currentHeight=i:this.retryHeightCalculation(0)}}async getSlideHeight(t){var i,e;const s=null===(e=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if(s){const t=s.tagName.toLowerCase();if(t.includes("-"))try{await customElements.whenDefined(t),await new Promise((t=>setTimeout(t,50)))}catch(t){}let i=s.offsetHeight||s.scrollHeight;if(s.shadowRoot){const t=s.shadowRoot.firstElementChild;t&&(i=t.offsetHeight||t.scrollHeight)}if(i>0)return i}return t.offsetHeight||t.scrollHeight}retryHeightCalculation(t){t>=15||setTimeout((()=>{var i,e;const s=this.slides[this.activeIndex];if(!s)return;const o=null===(e=null===(i=s.shadowRoot)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.assignedElements()[0];if(o){let t=o.offsetHeight||o.scrollHeight;if(o.shadowRoot){const i=o.shadowRoot.firstElementChild;i&&(t=i.offsetHeight||i.scrollHeight)}if(t>50)return void(this.currentHeight=t)}const n=s.offsetHeight||s.scrollHeight;n>50?this.currentHeight=n:this.retryHeightCalculation(t+1)}),100*(t+1))}goToSlide(t,i){if(t<0||t>=this.totalSlides)return;const e=this.activeIndex;this.activeIndex=t,this.spwSliderChange.emit({index:t,previousIndex:e}),"next"===i&&this.spwSliderNext.emit({index:t}),"previous"===i&&this.spwSliderPrevious.emit({index:t}),this.slides.forEach(((t,i)=>{const e=100*(i-this.activeIndex);t.style.transition="transform 0.3s ease-in-out",t.style.transform=`translateX(${e}%)`,i===this.activeIndex?t.removeAttribute("inert"):t.setAttribute("inert","")})),this.scheduleHeightUpdate(0),this.scheduleHeightUpdate(320),this.isAutoplayActive&&(this.stopAutoplay(),this.startAutoplay())}handleTouchStart(t){this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY,this.currentX=this.startX,this.isDragging=!0,this.isAutoplayActive&&this.stopAutoplay()}handleMouseDown(t){this.startX=t.clientX,this.currentX=this.startX,this.isDragging=!0,t.preventDefault(),this.isAutoplayActive&&this.stopAutoplay()}handleTouchMove(t){if(!this.isDragging)return;const i=t.touches[0].clientY-this.startY;Math.abs(t.touches[0].clientX-this.startX)>Math.abs(i)&&t.preventDefault(),this.currentX=t.touches[0].clientX}handleMouseMove(t){this.isDragging&&(this.currentX=t.clientX)}handleTouchEnd(){this.handleDragEnd()}handleMouseUp(){this.handleDragEnd()}handleMouseLeave(){this.isDragging&&this.handleDragEnd()}handleKeyDown(t){"ArrowLeft"===t.key?(t.preventDefault(),this.handlePrevious()):"ArrowRight"===t.key&&(t.preventDefault(),this.handleNext())}handleDragEnd(){if(!this.isDragging)return;const t=this.startX-this.currentX;Math.abs(t)>50&&(t>0?this.handleNext():this.handlePrevious()),this.isDragging=!1,this.startX=0,this.currentX=0,this.isAutoplayActive&&this.startAutoplay()}get elementClass(){return{"spw-slider":!0,["spw-slider--arrows-"+this.arrowsPosition]:!0,["spw-slider--dots-"+this.dotsPosition]:!0}}renderDots(){return!this.showDots||this.totalSlides<=1?null:s("div",{class:{"spw-slider__dots":!0,"spw-slider__dots--outside":"outside"===this.dotsPosition}},Array.from({length:this.totalSlides},((t,i)=>s("button",{class:{"spw-slider__dot":!0,"spw-slider__dot--active":i===this.activeIndex},onClick:()=>this.handleDotClick(i),"aria-label":"Slide "+(i+1),"aria-current":i===this.activeIndex?"true":"false"}))))}render(){return s(o,{key:"810d6ced5403729fe79bf67b4d15c5d96c4820a1"},s("div",{key:"310490c3eea1c9d0dfad08d27c388a09146f0a93",class:this.elementClass,style:{height:this.currentHeight+"px"},tabindex:"0",role:"region","aria-label":this.accAriaLabel},s("div",{key:"bfbbfca201769cf621344f8ff4e2a0ea3edbd5e7",class:"spw-slider__track"},s("slot",{key:"e949abbe0597a7cc0558289cc589d5b1194e9884"})),this.showArrows&&s("div",{key:"306025c5d2390d822d75ae8d9403e265c0e66e0c",class:"spw-slider__navigation"},s("button",{key:"ca0fe952b5b0f260388fe26296b51a13d640d359",class:"spw-slider__arrow spw-slider__arrow--prev",onClick:this.handlePrevious,disabled:0===this.activeIndex,"aria-label":this.previousSlideText},s("spw-icon",{key:"c5ea592b78fcf804b66b13100fc0156765e26c04",icon:"fa-chevron-left"})),s("button",{key:"7785a31662e2b50be80e875f69f0c31b67a01042",class:"spw-slider__arrow spw-slider__arrow--next",onClick:this.handleNext,disabled:this.activeIndex===this.totalSlides-1,"aria-label":this.nextSlideText},s("spw-icon",{key:"5247463977a24a0222cb6a60748a347ffd67b18e",icon:"fa-chevron-right"}))),"inside"===this.dotsPosition&&this.renderDots()),"outside"===this.dotsPosition&&s("div",{key:"2f588f7082732c04c335827baae6e56bd3db8225",class:"spw-slider__dots-container"},this.renderDots()),this.showAutoplayToggle&&s("div",{key:"44460cd1672181221038ef4bfc593f8beb49c851",class:"spw-slider__autoplay-toggle"},s("spw-checkbox",{key:"0b10eaa228500b753b7608bf2bab8d263721d772",variant:"toggle",checked:this.isAutoplayActive,onSpwChange:this.handleAutoplayToggle},this.autoplayText)))}get el(){return this}static get style(){return':root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block}.spw-slider{position:relative;width:100%;transition:height 0.3s ease-in-out;min-height:100px}.spw-slider[style*="height: 0px"]{min-height:200px}.spw-slider--arrows-outside{padding:0 56px}.spw-slider:focus-visible{outline:2px solid black;outline-offset:2px}.spw-slider__track{position:relative;width:100%;height:100%;overflow:hidden;cursor:grab;user-select:none}.spw-slider__track:active{cursor:grabbing}.spw-slider__navigation{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 12px;pointer-events:none;width:calc(100% + 64px);margin-left:-32px}@media (min-width: 1024px){.spw-slider__navigation{width:100%;margin-left:0}}.spw-slider--arrows-outside .spw-slider__navigation{width:100%;padding:0;margin-left:0}.spw-slider__arrow{pointer-events:all;width:40px;height:40px;border-radius:50%;border:none;background-color:var(--spw-ds-primary);color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;font-size:1.25rem}.spw-slider__arrow:hover:not(:disabled){transform:scale(0.9)}.spw-slider__arrow:disabled{cursor:not-allowed;background-color:var(--spw-color-themes-grey-grey-300);color:var(--spw-color-themes-grey-grey-400)}.spw-slider__arrow:focus-visible{outline:2px solid black;outline-offset:2px}.spw-slider__dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:0.5rem;z-index:10;background:white;box-shadow:var(--spw-effect-elevation-5);padding:8px;border-radius:999px}.spw-slider__dots--outside{position:relative;bottom:auto;left:auto;transform:none;box-shadow:none;display:inline-flex;border:1px solid var(--spw-color-themes-grey-grey-300)}.spw-slider__dot{width:12px;height:12px;border-radius:50%;background:var(--spw-color-themes-grey-grey-300);cursor:pointer;border:none;transition:all 0.2s ease;padding:0}.spw-slider__dot:hover{transform:scale(1.2)}.spw-slider__dot--active{background-color:var(--spw-ds-primary)}.spw-slider__dot:focus-visible{outline:2px solid black;outline-offset:2px}.spw-slider__dots-container{display:flex;justify-content:center;margin-top:12px}.spw-slider__autoplay-toggle{margin-top:12px}'}},[257,"spw-slider",{showArrows:[4,"show-arrows"],showDots:[4,"show-dots"],showAutoplayToggle:[4,"show-autoplay-toggle"],autoplayInterval:[2,"autoplay-interval"],autoplayEnabled:[4,"autoplay-enabled"],autoplayText:[1,"autoplay-text"],arrowsPosition:[1,"arrows-position"],dotsPosition:[1,"dots-position"],nextSlideText:[1,"next-slide-text"],accAriaLabel:[1,"acc-aria-label"],previousSlideText:[1,"previous-slide-text"],hasFixedHeight:[4,"has-fixed-height"],activeIndex:[32],totalSlides:[32],currentHeight:[32],isAutoplayActive:[32]},[[1,"touchstart","handleTouchStart"],[0,"mousedown","handleMouseDown"],[0,"touchmove","handleTouchMove"],[1,"mousemove","handleMouseMove"],[1,"touchend","handleTouchEnd"],[1,"mouseup","handleMouseUp"],[1,"mouseleave","handleMouseLeave"],[0,"keydown","handleKeyDown"]]]),d=h,l=function(){"undefined"!=typeof customElements&&["spw-slider","spw-checkbox","spw-icon"].forEach((t=>{switch(t){case"spw-slider":customElements.get(n(t))||customElements.define(n(t),h);break;case"spw-checkbox":customElements.get(n(t))||a();break;case"spw-icon":customElements.get(n(t))||r()}}))};export{d as SpwSlider,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as s,H as o,h as i,a,t as e}from"./index.js";const t=s(class extends o{constructor(s){super(),!1!==s&&this.__registerHost(),this.mainTitle="Restez connecté"}render(){return i(a,{key:"9232f1bb0c4ac41dd7c227a05935466d25f023cf"},i("div",{key:"853e59cccd49fecd77058906001e4c3480553531",class:"spw-socials"},i("div",{key:"397e29d74fbba61b9b993ad4bd698cefd5cdbc38",class:"spw-ds-container"},i("h2",{key:"8cd8ad03c82ab02450e24c9a93ad5c68ebe15b05",class:"spw-socials__title"},this.mainTitle),i("div",{key:"87c8eb820205eda3437e624686fb7d87d6043594",class:"spw-socials__content"},i("slot",{key:"a091898deac463dabcf02852343edeecb653be20"})))))}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}spw-socials{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}spw-socials h1,spw-socials h2,spw-socials h3,spw-socials h4,spw-socials h5,spw-socials h6,spw-socials p,spw-socials ul,spw-socials li{padding:0;margin:0}spw-socials ul{list-style:none}spw-socials *,spw-socials *::before,spw-socials *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}spw-socials{}spw-socials hr{box-sizing:content-box;height:0;overflow:visible;}spw-socials{}spw-socials pre{font-family:monospace, monospace;font-size:1em;}spw-socials{}spw-socials a{background-color:transparent}spw-socials{}spw-socials abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}spw-socials{}spw-socials b,spw-socials strong{font-weight:bolder}spw-socials{}spw-socials code,spw-socials kbd,spw-socials samp{font-family:monospace, monospace;font-size:1em;}spw-socials{}spw-socials small{font-size:80%}spw-socials{}spw-socials sub,spw-socials sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}spw-socials sub{bottom:-0.25em}spw-socials sup{top:-0.5em}spw-socials{}spw-socials img{border-style:none}spw-socials{}spw-socials button,spw-socials input,spw-socials optgroup,spw-socials select,spw-socials textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}spw-socials{}spw-socials button,spw-socials input{overflow:visible}spw-socials{}spw-socials button,spw-socials select{text-transform:none}spw-socials{}spw-socials button,spw-socials [type=button],spw-socials [type=reset],spw-socials [type=submit]{-webkit-appearance:button}spw-socials{}spw-socials button::-moz-focus-inner,spw-socials [type=button]::-moz-focus-inner,spw-socials [type=reset]::-moz-focus-inner,spw-socials [type=submit]::-moz-focus-inner{border-style:none;padding:0}spw-socials{}spw-socials button:-moz-focusring,spw-socials [type=button]:-moz-focusring,spw-socials [type=reset]:-moz-focusring,spw-socials [type=submit]:-moz-focusring{outline:1px dotted ButtonText}spw-socials{}spw-socials fieldset{padding:0.35em 0.75em 0.625em}spw-socials{}spw-socials legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}spw-socials{}spw-socials progress{vertical-align:baseline}spw-socials{}spw-socials textarea{overflow:auto}spw-socials{}spw-socials [type=checkbox],spw-socials [type=radio]{box-sizing:border-box;padding:0;}spw-socials{}spw-socials [type=number]::-webkit-inner-spin-button,spw-socials [type=number]::-webkit-outer-spin-button{height:auto}spw-socials{}spw-socials [type=search]{-webkit-appearance:textfield;outline-offset:-2px;}spw-socials{}spw-socials [type=search]::-webkit-search-decoration{-webkit-appearance:none}spw-socials{}spw-socials ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}spw-socials{}spw-socials details{display:block}spw-socials{}spw-socials summary{display:list-item}spw-socials{}spw-socials template{display:none}spw-socials{}spw-socials [hidden]{display:none}:host{display:block}.spw-socials{padding:32px 0;text-align:center;border-top:1px solid var(--spw-colors-support-grey-grey-300);background:white}.spw-socials__title{font-size:20px;font-weight:700;margin-bottom:16px;color:var(--spw-color-shades-base-black)}.spw-socials__content{justify-content:center;display:flex;gap:24px}.spw-socials__content a{font-size:24px;color:var(--spw-color-shades-base-black)}.spw-socials__content a:hover{opacity:0.7;color:var(--spw-color-shades-base-black) !important}.spw-socials__content a:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black}.spw-socials__content a:active{opacity:0.9;color:var(--spw-color-shades-base-black) !important}"}},[260,"spw-socials",{mainTitle:[1,"main-title"]}]),p=t,c=function(){"undefined"!=typeof customElements&&["spw-socials"].forEach((s=>{"spw-socials"===s&&(customElements.get(e(s))||customElements.define(e(s),t))}))};export{p as SpwSocials,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as n,t as i}from"./index.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isZebra=!1,this.zebraRange=2}componentDidLoad(){this.updateZebraStyles(),this.setupSlotListener()}setupSlotListener(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",(()=>{this.updateZebraStyles()}))}async updateZebraStyles(){var t;const e=this.el.shadowRoot.querySelector("slot");if(!e)return;const n=e.assignedElements({flatten:!0}),i=Math.max(2,null!==(t=this.zebraRange)&&void 0!==t?t:2);let o=0;n.forEach((t=>{"spw-table-row"===t.tagName.toLowerCase()&&(this.isZebra?t.setAttribute("data-row-style",o%i==i-1?"odd":"even"):t.removeAttribute("data-row-style"),o++)}))}render(){return n("tbody",{key:"57860772f3d82ecb09d5f34dbff8feb7dfd753aa",part:"tbody"},n("slot",{key:"70d459a644d1a885442757e3ba5f93ce8d1c7330"}))}get el(){return this}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as t,H as e,h as n,t as i}from"./index.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isZebra=!1,this.zebraRange=2}componentDidLoad(){this.updateZebraStyles(),this.setupSlotListener()}setupSlotListener(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",(()=>{this.updateZebraStyles()}))}async updateZebraStyles(){var t;const e=this.el.shadowRoot.querySelector("slot");if(!e)return;const n=e.assignedElements({flatten:!0}),i=Math.max(2,null!==(t=this.zebraRange)&&void 0!==t?t:2);let o=0;n.forEach((t=>{"spw-table-row"===t.tagName.toLowerCase()&&(this.isZebra?t.setAttribute("data-row-style",o%i==i-1?"odd":"even"):t.removeAttribute("data-row-style"),o++)}))}render(){return n("tbody",{key:"57860772f3d82ecb09d5f34dbff8feb7dfd753aa",part:"tbody"},n("slot",{key:"70d459a644d1a885442757e3ba5f93ce8d1c7330"}))}get el(){return this}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:contents}@media (max-width: 767px){tbody{display:block}}"}},[257,"spw-table-body",{isZebra:[516,"is-zebra"],zebraRange:[514,"zebra-range"],updateZebraStyles:[64]}]),s=o,a=function(){"undefined"!=typeof customElements&&["spw-table-body"].forEach((t=>{"spw-table-body"===t&&(customElements.get(i(t))||customElements.define(i(t),o))}))};export{s as SpwTableBody,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,t as i}from"./index.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isHighlighted=!1,this.textAlign="left",this.verticalAlign="middle",this.width="auto",this.padding="medium",this.state="default",this.sticky=!1,this.stickyPosition="start",this.stickyOffset=0,this.isFirst=!1}componentDidLoad(){this.checkIfFirst(),this.observeRowSlot(),this.el.hasAttribute("padding")&&this.el.setAttribute("data-has-explicit-padding","true")}disconnectedCallback(){var t;null===(t=this.slotObserver)||void 0===t||t.disconnect()}checkIfFirst(){const t=this.el.closest("spw-table-row");if(!t)return void(this.isFirst=!1);const e=Array.from(t.children).filter((t=>"SPW-TABLE-CELL"===t.tagName||"SPW-TABLE-HEADER"===t.tagName||"TD"===t.tagName||"TH"===t.tagName));this.isFirst=e[0]===this.el}observeRowSlot(){const t=this.el.closest("spw-table-row");t&&(this.slotObserver=new MutationObserver((()=>this.checkIfFirst())),this.slotObserver.observe(t,{childList:!0,subtree:!1}))}get elementClass(){return{"spw-table-cell":!0,"spw-table-cell--is-highlighted":this.isHighlighted,["spw-table-cell--text-align-"+this.textAlign]:!0,["spw-table-cell--padding-"+this.padding]:!0,["spw-table-cell--vertical-align-"+this.verticalAlign]:!0,["spw-table-cell--"+this.state]:!0,"spw-table-cell--first-in-row":this.isFirst,"spw-table-cell--sticky":this.sticky,["spw-table-cell--sticky-"+this.stickyPosition]:this.sticky}}render(){const t={width:this.width,class:this.elementClass,part:"cell"};if(void 0!==this.colspan&&(t.colSpan=this.colspan),void 0!==this.rowspan&&(t.rowSpan=this.rowspan),void 0!==this.headers&&(t.headers=this.headers),this.sticky){const e={position:"sticky",zIndex:"10"};"start"===this.stickyPosition?e.left=this.stickyOffset+"px":e.right=this.stickyOffset+"px",t.style=e}return s("td",Object.assign({key:"ad31c3a4d7ba2f2312bd3c90e37fba456ceec9e0"},t),s("slot",{key:"6df8c9362a46980e6c7c1616db35a7c387c82eb4"}))}get el(){return this}static get style(){return'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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as t,H as e,h as s,t as i}from"./index.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isHighlighted=!1,this.textAlign="left",this.verticalAlign="middle",this.width="auto",this.padding="medium",this.state="default",this.sticky=!1,this.stickyPosition="start",this.stickyOffset=0,this.isFirst=!1}componentDidLoad(){this.checkIfFirst(),this.observeRowSlot(),this.el.hasAttribute("padding")&&this.el.setAttribute("data-has-explicit-padding","true")}disconnectedCallback(){var t;null===(t=this.slotObserver)||void 0===t||t.disconnect()}checkIfFirst(){const t=this.el.closest("spw-table-row");if(!t)return void(this.isFirst=!1);const e=Array.from(t.children).filter((t=>"SPW-TABLE-CELL"===t.tagName||"SPW-TABLE-HEADER"===t.tagName||"TD"===t.tagName||"TH"===t.tagName));this.isFirst=e[0]===this.el}observeRowSlot(){const t=this.el.closest("spw-table-row");t&&(this.slotObserver=new MutationObserver((()=>this.checkIfFirst())),this.slotObserver.observe(t,{childList:!0,subtree:!1}))}get elementClass(){return{"spw-table-cell":!0,"spw-table-cell--is-highlighted":this.isHighlighted,["spw-table-cell--text-align-"+this.textAlign]:!0,["spw-table-cell--padding-"+this.padding]:!0,["spw-table-cell--vertical-align-"+this.verticalAlign]:!0,["spw-table-cell--"+this.state]:!0,"spw-table-cell--first-in-row":this.isFirst,"spw-table-cell--sticky":this.sticky,["spw-table-cell--sticky-"+this.stickyPosition]:this.sticky}}render(){const t={width:this.width,class:this.elementClass,part:"cell"};if(void 0!==this.colspan&&(t.colSpan=this.colspan),void 0!==this.rowspan&&(t.rowSpan=this.rowspan),void 0!==this.headers&&(t.headers=this.headers),this.sticky){const e={position:"sticky",zIndex:"10"};"start"===this.stickyPosition?e.left=this.stickyOffset+"px":e.right=this.stickyOffset+"px",t.style=e}return s("td",Object.assign({key:"ad31c3a4d7ba2f2312bd3c90e37fba456ceec9e0"},t),s("slot",{key:"6df8c9362a46980e6c7c1616db35a7c387c82eb4"}))}get el(){return this}static get style(){return':root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:contents}:host(.--selected) .spw-table-cell{background-color:var(--spw-color-themes-blue-blue-50)}@media (min-width: 768px){:host(.--selected) .spw-table-cell.spw-table-cell--first-in-row{box-shadow:inset 3px 0 0 var(--spw-color-themes-blue-blue-500)}}:host(.--disabled) .spw-table-cell--sticky,:host(.--disabled) .spw-table-cell{position:relative}:host(.--disabled) .spw-table-cell--sticky:before,:host(.--disabled) .spw-table-cell:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;background:var(--spw-ds-white);opacity:0.7;cursor:not-allowed;z-index:8}.spw-table-cell{border:1px solid var(--spw-color-themes-grey-grey-300);color:var(--spw-color-themes-grey-grey-800);font-size:14px;text-align:left;border-top:0}.spw-table-cell--is-highlighted{font-weight:700;background:var(--spw-color-themes-grey-grey-100)}.spw-table-cell--text-align-left{text-align:left}.spw-table-cell--text-align-center{text-align:center}.spw-table-cell--text-align-right{text-align:right}.spw-table-cell--vertical-align-top{vertical-align:top}.spw-table-cell--vertical-align-bottom{vertical-align:bottom}.spw-table-cell--vertical-align-middle{vertical-align:middle}.spw-table-cell--padding-small{padding:8px}.spw-table-cell--padding-medium{padding:16px}.spw-table-cell--disabled{opacity:0.3;pointer-events:none;cursor:not-allowed}.spw-table-cell--selected{background-color:var(--spw-color-themes-blue-blue-50)}.spw-table-cell--selected.spw-table-cell--first-in-row{box-shadow:inset 3px 0 0 var(--spw-color-themes-blue-blue-500)}.spw-table-cell ::slotted(spw-checkbox){--spw-ds-checkbox-checked-color:#000}.spw-table-cell--sticky{position:sticky;background-color:var(--spw-color-themes-grey-grey-50)}.spw-table-cell--sticky::after{content:"";position:absolute;top:0;bottom:-1px;width:8px;pointer-events:none;transition:opacity 0.2s}.spw-table-cell--sticky-start::after{right:-8px;box-shadow:inset 8px 0 8px -8px rgba(0, 0, 0, 0.15)}.spw-table-cell--sticky-end::after{left:-8px;box-shadow:inset -8px 0 8px -8px rgba(0, 0, 0, 0.15)}.spw-table-cell--sticky.spw-table-cell--selected{background-color:var(--spw-color-themes-blue-blue-50)}.spw-table-cell--sticky.spw-table-cell--is-highlighted{background-color:var(--spw-color-themes-grey-grey-100)}:host(.--selected) .spw-table-cell--sticky{background-color:var(--spw-color-themes-blue-blue-50)}@media (max-width: 767px){:host{display:block}.spw-table-cell{display:block;width:100%;border:none;border-bottom:1px solid var(--spw-color-themes-grey-grey-200);padding:6px 12px !important;text-align:left !important}.spw-table-cell:last-child{border-bottom:none}.spw-table-cell::before{content:attr(data-label);font-weight:700;color:var(--spw-color-themes-grey-grey-700);font-size:13px;text-align:left;padding-top:2px}.spw-table-cell--first-in-row{box-shadow:none}.spw-table-cell--selected{background-color:transparent;box-shadow:none}.spw-table-cell--selected.spw-table-cell--first-in-row{box-shadow:none}.spw-table-cell--is-highlighted{background:transparent;font-weight:600}:host(.--selected) .spw-table-cell{background-color:transparent}.spw-table-cell--sticky{position:static;width:100%;background-color:transparent}.spw-table-cell--sticky::after{display:none}}'}},[257,"spw-table-cell",{colspan:[2],headers:[1],rowspan:[2],isHighlighted:[4,"is-highlighted"],textAlign:[1,"text-align"],verticalAlign:[1,"vertical-align"],width:[1],padding:[1],state:[1],sticky:[4],stickyPosition:[1,"sticky-position"],stickyOffset:[2,"sticky-offset"],isFirst:[32]}]),o=l,a=function(){"undefined"!=typeof customElements&&["spw-table-cell"].forEach((t=>{"spw-table-cell"===t&&(customElements.get(i(t))||customElements.define(i(t),l))}))};export{o as SpwTableCell,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as n,a as i,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(i,{key:"7dbd1ad143075eebfeb4f5f79de8209587d97bda"},n("div",{key:"b3fe851f5350acf7c63c1125762cc22cd0f68516",class:"spw-table-container"},n("slot",{key:"7f17896678141cac3d9e454c4aa49c842fc3fdcd"})))}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as e,H as t,h as n,a as i,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(i,{key:"7dbd1ad143075eebfeb4f5f79de8209587d97bda"},n("div",{key:"b3fe851f5350acf7c63c1125762cc22cd0f68516",class:"spw-table-container"},n("slot",{key:"7f17896678141cac3d9e454c4aa49c842fc3fdcd"})))}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block}.spw-table-container{display:flex}"}},[257,"spw-table-container"]),a=s,r=function(){"undefined"!=typeof customElements&&["spw-table-container"].forEach((e=>{"spw-table-container"===e&&(customElements.get(o(e))||customElements.define(o(e),s))}))};export{a as SpwTableContainer,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as o,t as n}from"./index.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return o("div",{key:"e6c18565c097105656ab7c853441b12fe5c850bc",class:"spw-table-footer"},o("slot",{key:"d423fd366aee7d1d56b5194fcf13485edec97eae",name:"left"}),o("slot",{key:"a187d0077f0b58259ad3dc456c68ec13d92211c8",name:"center"}),o("slot",{key:"b54461a15008f994b471e1e5df5dc0620c283d28",name:"right"}))}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as e,H as t,h as o,t as n}from"./index.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return o("div",{key:"e6c18565c097105656ab7c853441b12fe5c850bc",class:"spw-table-footer"},o("slot",{key:"d423fd366aee7d1d56b5194fcf13485edec97eae",name:"left"}),o("slot",{key:"a187d0077f0b58259ad3dc456c68ec13d92211c8",name:"center"}),o("slot",{key:"b54461a15008f994b471e1e5df5dc0620c283d28",name:"right"}))}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block}.spw-table-footer{z-index:333;background:var(--spw-ds-white);border:1px solid var(--spw-color-themes-grey-grey-300);border-top:0;width:100%;padding:16px 24px;caption-side:bottom;font-size:14px;color:var(--spw-color-themes-grey-grey-900);display:flex;justify-content:space-between;align-items:center;gap:16px;flex-direction:column}@media (min-width: 1024px){.spw-table-footer{flex-direction:row}}.spw-table-footer ::slotted([slot=right]){display:inline-flex;gap:8px;align-items:center}"}},[257,"spw-table-footer"]),s=i,a=function(){"undefined"!=typeof customElements&&["spw-table-footer"].forEach((e=>{"spw-table-footer"===e&&(customElements.get(n(e))||customElements.define(n(e),i))}))};export{s as SpwTableFooter,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as n,t as i}from"./index.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n("thead",{key:"ecbb1e80938c86b94ec294349e10d627f465fda4",part:"thead"},n("slot",{key:"681208c60068c67e584a8d731973e23419517059"}))}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as e,H as t,h as n,t as i}from"./index.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n("thead",{key:"ecbb1e80938c86b94ec294349e10d627f465fda4",part:"thead"},n("slot",{key:"681208c60068c67e584a8d731973e23419517059"}))}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:contents}@media (max-width: 767px){:host{display:none}}"}},[257,"spw-table-head"]),s=o,a=function(){"undefined"!=typeof customElements&&["spw-table-head"].forEach((e=>{"spw-table-head"===e&&(customElements.get(i(e))||customElements.define(i(e),o))}))};export{s as SpwTableHead,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as s,h as i,t as o}from"./index.js";import{d as a}from"./p-
|
|
1
|
+
import{p as e,H as t,c as s,h as i,t as o}from"./index.js";import{d as a}from"./p-DfbLlF27.js";import{d as r}from"./p-hfJhpq7W.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.spwHeaderClick=s(this,"spwHeaderClick",7),this.isHighlighted=!1,this.textAlign="left",this.verticalAlign="top",this.padding="medium",this.sortable=!1,this.isSorted=!1,this.sticky=!1,this.stickyPosition="start",this.stickyOffset=0,this.handleClick=e=>{e.target.closest('[slot="filters"]')?e.stopPropagation():this.sortable&&this.spwHeaderClick.emit(this.columnId)}}get elementClass(){return{"spw-table-header":!0,"spw-table-header--sortable":this.sortable,"spw-table-header--is-sorted":this.isSorted,"spw-table-header--has-tooltip":!(!this.tooltipTitle&&!this.tooltipText),["spw-table-header--padding-"+this.padding]:!0,["spw-table-header--text-align-"+this.textAlign]:!0,["spw-table-header--vertical-align-"+this.verticalAlign]:!0,"spw-table-header--sticky":this.sticky,["spw-table-header--sticky-"+this.stickyPosition]:this.sticky}}render(){const e={"aria-sort":this.isSorted?this.sortDirection:"none",onClick:this.handleClick,class:this.elementClass,colSpan:this.colspan,headers:this.headers,part:"cell",rowSpan:this.rowspan};if(this.sticky){const t={position:"sticky",zIndex:"60"};"start"===this.stickyPosition?t.left=this.stickyOffset+"px":t.right=this.stickyOffset+"px",e.style=t}return i("th",Object.assign({key:"7e68726c07921d70ba9f0fa922e4372eb3e6dde9"},e),i("div",{key:"cd6ac42c6ce4dce455c9940d0074cc7fb627a841",class:{"spw-table-header__content":!0,"spw-table-header__content--is-sorted":this.isSorted}},i("slot",{key:"9c1412d2300be8304e03d29cdc171d7e6481b958"}),i("div",{key:"1e51cb0b7c586d66a453ba244989e553b83a8c72",class:"spw-table-header__icons"},i("slot",{key:"28903d1feb862ee661c588bc4259a7f188b259dd",name:"filters"}),(this.tooltipTitle||this.tooltipText)&&i("spw-tooltip",{key:"c2d855b8c0eb6e5aed239d65b50a24f78f21ff5d","tooltip-title":this.tooltipTitle,"tooltip-text":this.tooltipText},i("spw-icon",{key:"9b0a49086dd675e4a9ba413cf7ed1dc533482077",variant:"fa-regular",icon:"fa-circle-question"})),this.sortable&&i("spw-icon",{key:"326659f7c951d4bbb3fc70f247f18da7dd51b6b5",class:"spw-table-header__sort-icon",icon:this.isSorted?"asc"===this.sortDirection?"fa-arrow-up-short-wide":"fa-arrow-down-wide-short":"fa-arrow-up-arrow-down"}))))}static get style(){return':root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:contents}:host(.--is-sticky) .spw-table-header{position:sticky;top:0;z-index:50}.spw-table-header{border:1px solid var(--spw-color-themes-grey-grey-300);color:var(--spw-color-themes-grey-grey-800);font-size:14px;text-align:left;font-weight:700;transition:all 0.2s linear;background:var(--spw-color-themes-grey-grey-200);white-space:nowrap;border-top:none !important;border-bottom:none !important;box-shadow:inset 0 1px 0 var(--spw-color-themes-grey-grey-300), inset 0 -1px 0 var(--spw-color-themes-grey-grey-300);background-clip:padding-box}.spw-table-header--text-align-left{text-align:left}.spw-table-header--text-align-center{text-align:center}.spw-table-header--text-align-right{text-align:right}.spw-table-header--vertical-align-top{vertical-align:top}.spw-table-header--vertical-align-bottom{vertical-align:bottom}.spw-table-header--vertical-align-middle{vertical-align:middle}.spw-table-header--sortable{user-select:none;cursor:pointer}.spw-table-header--sortable:hover{background:var(--spw-color-themes-grey-grey-300)}.spw-table-header__content{display:flex;justify-content:space-between;align-items:center;gap:8px}.spw-table-header__content spw-icon{color:var(--spw-color-themes-grey-grey-500)}.spw-table-header__content spw-icon:hover{color:var(--spw-color-themes-grey-grey-900)}.spw-table-header__content--is-sorted .spw-table-header__sort-icon{color:var(--spw-color-themes-grey-grey-900)}.spw-table-header__sort-icons{display:flex;gap:0}.spw-table-header--padding-small{padding:8px}.spw-table-header--padding-medium{padding:16px}.spw-table-header__icons{display:flex;gap:8px;align-items:center;color:var(--spw-color-themes-grey-grey-500)}.spw-table-header ::slotted(spw-checkbox){--spw-ds-checkbox-checked-color:#000}.spw-table-header--sticky{position:sticky;background-color:var(--spw-color-themes-grey-grey-200)}.spw-table-header--sticky::after{content:"";position:absolute;top:0;bottom:-1px;width:8px;pointer-events:none;transition:opacity 0.2s}.spw-table-header--sticky-start::after{right:-8px;box-shadow:inset 8px 0 8px -8px rgba(0, 0, 0, 0.15)}.spw-table-header--sticky-end::after{left:-8px;box-shadow:inset -8px 0 8px -8px rgba(0, 0, 0, 0.15)}@media (max-width: 767px){:host{display:none}}'}},[257,"spw-table-header",{colspan:[2],headers:[1],rowspan:[2],isHighlighted:[4,"is-highlighted"],textAlign:[1,"text-align"],verticalAlign:[1,"vertical-align"],padding:[1],columnId:[1,"column-id"],sortable:[4],sortDirection:[1,"sort-direction"],isSorted:[4,"is-sorted"],tooltipTitle:[1,"tooltip-title"],tooltipText:[1,"tooltip-text"],sticky:[4],stickyPosition:[1,"sticky-position"],stickyOffset:[2,"sticky-offset"]}]),p=n,l=function(){"undefined"!=typeof customElements&&["spw-table-header","spw-icon","spw-tooltip"].forEach((e=>{switch(e){case"spw-table-header":customElements.get(o(e))||customElements.define(o(e),n);break;case"spw-icon":customElements.get(o(e))||a();break;case"spw-tooltip":customElements.get(o(e))||r()}}))};export{p as SpwTableHeader,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as o,a as n,t as i}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.state="default"}componentDidLoad(){this.applyPropsToChildren(),this.setupMutationObserver()}disconnectedCallback(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}setupMutationObserver(){this.mutationObserver=new MutationObserver((()=>{this.applyPropsToChildren()})),this.mutationObserver.observe(this.el,{childList:!0,subtree:!1})}slotChanged(){this.applyPropsToChildren()}onStateChange(){this.applyPropsToChildren()}onPaddingChange(){this.applyPropsToChildren()}applyPropsToChildren(){requestAnimationFrame((()=>{const e=this.el.querySelectorAll("spw-table-cell, spw-table-header"),t="--"+this.state;e.forEach((e=>{e.classList.remove("--default","--selected","--disabled"),"default"!==this.state&&e.classList.add(t),this.padding&&!e.hasAttribute("data-has-explicit-padding")&&(e.padding=this.padding)}))}))}get elementClass(){return{"spw-table-row":!0,["spw-table-row--"+this.state]:!0}}render(){return o(n,{key:"8d69dfe04b76585e8d0bc94e25e79ac62d65b765",part:"row"},o("tr",{key:"be436e9588e55464d9ed3778721542a1e160d904",class:this.elementClass,part:"row"},o("slot",{key:"4bdbfd73d1dd01ac4a0e51f8908cde39ada7c573"})))}get el(){return this}static get watchers(){return{state:[{onStateChange:0}],padding:[{onPaddingChange:0}]}}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as e,H as t,h as o,a as n,t as i}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.state="default"}componentDidLoad(){this.applyPropsToChildren(),this.setupMutationObserver()}disconnectedCallback(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}setupMutationObserver(){this.mutationObserver=new MutationObserver((()=>{this.applyPropsToChildren()})),this.mutationObserver.observe(this.el,{childList:!0,subtree:!1})}slotChanged(){this.applyPropsToChildren()}onStateChange(){this.applyPropsToChildren()}onPaddingChange(){this.applyPropsToChildren()}applyPropsToChildren(){requestAnimationFrame((()=>{const e=this.el.querySelectorAll("spw-table-cell, spw-table-header"),t="--"+this.state;e.forEach((e=>{e.classList.remove("--default","--selected","--disabled"),"default"!==this.state&&e.classList.add(t),this.padding&&!e.hasAttribute("data-has-explicit-padding")&&(e.padding=this.padding)}))}))}get elementClass(){return{"spw-table-row":!0,["spw-table-row--"+this.state]:!0}}render(){return o(n,{key:"8d69dfe04b76585e8d0bc94e25e79ac62d65b765",part:"row"},o("tr",{key:"be436e9588e55464d9ed3778721542a1e160d904",class:this.elementClass,part:"row"},o("slot",{key:"4bdbfd73d1dd01ac4a0e51f8908cde39ada7c573"})))}get el(){return this}static get watchers(){return{state:[{onStateChange:0}],padding:[{onPaddingChange:0}]}}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:contents}:host([data-row-style=odd]) .spw-table-row{background-color:var(--spw-color-themes-grey-grey-50)}.spw-table-row--disabled{background:white}.spw-table-row--selected{background-color:var(--spw-color-themes-blue-blue-50);box-shadow:inset 3px 0 0 var(--spw-color-themes-blue-blue-500)}@media (max-width: 767px){:host{display:block;margin:6px 0}.spw-table-row{display:flex;flex-direction:column;border:1px solid var(--spw-color-themes-grey-grey-300);border-radius:8px;background:white;overflow:hidden;padding:6px 0}.spw-table-row--selected{background-color:var(--spw-color-themes-blue-blue-50)}.spw-table-row--disabled{opacity:0.6}:host([data-row-style=odd]) .spw-table-row{background-color:white}}"}},[257,"spw-table-row",{state:[1],padding:[1]},[[0,"slotchange","slotChanged"]],{state:[{onStateChange:0}],padding:[{onPaddingChange:0}]}]),a=s,r=function(){"undefined"!=typeof customElements&&["spw-table-row"].forEach((e=>{"spw-table-row"===e&&(customElements.get(i(e))||customElements.define(i(e),s))}))};export{a as SpwTableRow,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as s,h as i,a,t as o}from"./index.js";import{d as r}from"./p-
|
|
1
|
+
import{p as e,H as t,c as s,h as i,a,t as o}from"./index.js";import{d as r}from"./p-4jNBpzmg.js";import{d as n}from"./p-DfbLlF27.js";import{d}from"./p-BvJ60OkW.js";const l=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.sidebarReset=s(this,"sidebarReset",7),this.defaultExpanded=!0,this.sidebarTitle="Filtres",this.sidebarIcon="fa-filter",this.sidebarWidth=260,this.hasReset=!0,this.resetIcon="fa-arrow-rotate-left",this.toggleSidebar=()=>{this.expanded=!this.expanded},this.handleReset=e=>{e.stopPropagation(),this.sidebarReset.emit()}}componentWillLoad(){this.expanded=this.defaultExpanded}componentDidLoad(){setTimeout((()=>{this.observeTableHeight()}),0)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),this.debounceTimer&&clearTimeout(this.debounceTimer)}calculateTotalHeight(){const e=this.findSpwTable();if(!e)return 0;const s=e.shadowRoot;if(!s)return e.offsetHeight;const i=s.querySelector(".spw-table-container");let a=i?i.offsetHeight:0;const o=s.querySelector(".spw-table-resize-handle");o&&(a+=o.offsetHeight);const r=e.querySelector('[slot="table-footer"]');return r&&r instanceof t&&(a+=r.offsetHeight),a}observeTableHeight(){const e=this.findSpwTable();if(!e)return;const t=()=>{const e=this.calculateTotalHeight();e>0&&(this.observedHeight=e)};this.resizeObserver=new ResizeObserver((()=>{t()})),this.resizeObserver.observe(e),this.mutationObserver=new MutationObserver((()=>{this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>{t()}),50)})),this.mutationObserver.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),e.shadowRoot&&new MutationObserver((()=>{t()})).observe(e.shadowRoot,{childList:!0,subtree:!0,attributes:!0}),t()}findSpwTable(){const e=this.el.parentElement;return e&&"spw-table-container"===e.tagName.toLowerCase()?e.querySelector("spw-table"):null}get hostClass(){return{"--expanded":this.expanded,"--collapsed":!this.expanded}}get elementClass(){return{"spw-table-sidebar":!0,"spw-table-sidebar--expanded":this.expanded,"spw-table-sidebar--collapsed":!this.expanded}}render(){const e=Object.assign(Object.assign({},void 0!==this.observedHeight&&{height:this.observedHeight+"px"}),{"--spw-table-sidebar-width":this.sidebarWidth+"px"});return i(a,{key:"bf46e0ac1a574e7cde87c5180757de5a8aa35d20",style:e,class:this.hostClass},i("nav",{key:"3ac9b2b53a0a3691beb22a51450da8ba63ba7d78",class:this.elementClass},i("span",{key:"7df68f6f5d3d786405f6d32f99bcb65f429715bd",class:"spw-table-sidebar__toggle",onClick:this.toggleSidebar,"aria-expanded":""+this.expanded},i("spw-icon",{key:"90b7363ea7d6c4392bf3016ddaa13afeb0739fc5",icon:"fa-chevron-left"})),i("div",{key:"371794226c3e41bcd0bb95ec8e0d4b99df422647",class:"spw-table-sidebar__mini",onClick:this.toggleSidebar},i("spw-icon",{key:"4d7a7e875f9d7f24993f9d83a9f72c64af901ef0",icon:this.sidebarIcon,variant:"fa-regular"})),i("div",{key:"871795a1e854e0287f8ab302eb01144b27a96cc7",class:"spw-table-sidebar__content"},i("div",{key:"0d2863e30efc30dcbfbca6d254265ba8fe6f11bc",class:"spw-table-sidebar__header"},i("span",{key:"2b2838b91d6ef047c92da8574dc15c9e05f97ef3",class:"spw-table-sidebar__header-title"},i("spw-icon",{key:"dedbbd5cda9b16f9773a606021f4ae8adfecb9d1",icon:this.sidebarIcon,variant:"fa-regular"})," ",this.sidebarTitle),this.hasReset&&i("spw-button",{key:"703faf02f488d355628d1b2fc8b9a9622291910b",class:"spw-table-sidebar__header-reset",onClick:this.handleReset,type:"button",variant:"secondary",size:"small",isIconOnly:!0,icon:this.resetIcon})),i("div",{key:"2149257798fc16bc0317e7b00ca9054f749f3b00",class:"spw-table-sidebar__scrollable-content"},i("slot",{key:"e48fc661a93d82945c39a31e240d36db422e54ac"})),i("div",{key:"9583206959f55bafc57fc245c68cf4d09536fb97",class:"spw-table-sidebar__footer"},i("slot",{key:"141342f7a9ee0e9ec1f56b442e87ef7874ae157e",name:"sidebar-footer"})))))}get el(){return this}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block;position:relative}.spw-table-sidebar{width:200px;height:100%;background:white;border:1px solid var(--spw-color-themes-grey-grey-300);border-right:0;z-index:99;transition:width 0.2s ease;display:flex;flex-direction:column;position:relative}.spw-table-sidebar__toggle{position:absolute;right:0;top:36px;width:20px;padding:6px 0;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;box-shadow:var(--spw-effect-elevation-6);border:1px solid var(--spw-colors-support-grey-grey-300);cursor:pointer;font-size:13px;z-index:20;transform:translateX(50%);background:white;line-height:1}.spw-table-sidebar__toggle spw-icon{position:relative;transition:transform 0.15s 0.2s ease}.spw-table-sidebar--expanded .spw-table-sidebar__toggle spw-icon{transform:rotate(0deg)}.spw-table-sidebar--collapsed .spw-table-sidebar__toggle spw-icon{transform:rotate(180deg)}.spw-table-sidebar__content{overflow:hidden;flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column}.spw-table-sidebar__content::-webkit-scrollbar{width:14px;height:14px}.spw-table-sidebar__content::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-table-sidebar__content::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-table-sidebar__content{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-table-sidebar--collapsed .spw-table-sidebar__content{display:none}.spw-table-sidebar__mini{padding:16px 0;text-align:center;display:none}.spw-table-sidebar--collapsed .spw-table-sidebar__mini{display:block}.spw-table-sidebar__mini spw-icon{cursor:pointer}.spw-table-sidebar--expanded{width:var(--spw-table-sidebar-width)}.spw-table-sidebar--collapsed{width:50px}.spw-table-sidebar__header,.spw-table-sidebar__footer{padding:16px;position:sticky;background:var(--spw-ds-white);z-index:10}.spw-table-sidebar__header{top:0;padding-bottom:16px;border-bottom:1px solid var(--spw-color-themes-grey-grey-200);display:flex;align-items:center;justify-content:space-between;gap:8px}.spw-table-sidebar__header-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.spw-table-sidebar__header-reset{flex-shrink:0}.spw-table-sidebar__footer{bottom:0;padding-top:16px;border-top:1px solid var(--spw-color-themes-grey-grey-200)}.spw-table-sidebar__scrollable-content{padding:16px;flex:1}"}},[257,"spw-table-sidebar",{defaultExpanded:[4,"default-expanded"],sidebarTitle:[1,"sidebar-title"],sidebarIcon:[1,"sidebar-icon"],sidebarWidth:[2,"sidebar-width"],hasReset:[4,"has-reset"],resetIcon:[1,"reset-icon"],observedHeight:[32],expanded:[32]}]),b=l,p=function(){"undefined"!=typeof customElements&&["spw-table-sidebar","spw-button","spw-icon","spw-loading"].forEach((e=>{switch(e){case"spw-table-sidebar":customElements.get(o(e))||customElements.define(o(e),l);break;case"spw-button":customElements.get(o(e))||r();break;case"spw-icon":customElements.get(o(e))||n();break;case"spw-loading":customElements.get(o(e))||d()}}))};export{b as SpwTableSidebar,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as s,h as i,a,t as o}from"./index.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.spwSort=s(this,"spwSort",7),this.spwResize=s(this,"spwResize",7),this.isSticky=!1,this.minWidth="600",this.tableLayout="auto",this.isZebra=!1,this.zebraRange=2,this.disableSort=!1,this.resizable=!1,this.minHeight=200,this.isResizing=!1,this.startY=0,this.startHeight=0,this.handleResizeStart=e=>{var t;e.preventDefault(),this.isResizing=!0,this.startY=e.clientY;const s=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-table-wrapper");s&&(this.containerElement=s,this.startHeight=s.offsetHeight),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),document.body.style.cursor="ns-resize",document.body.style.userSelect="none"},this.handleMouseMove=e=>{if(!this.isResizing||!this.containerElement)return;const t=Math.max(this.minHeight,this.startHeight+(e.clientY-this.startY));this.currentHeight=t,this.spwResize.emit({height:t})},this.handleMouseUp=()=>{this.isResizing&&(this.isResizing=!1,this.cleanupResizeListeners(),document.body.style.cursor="",document.body.style.userSelect="")},this.checkboxChangeHandler=()=>this.updateMasterCheckboxState()}onCurrentSortChange(e){e&&this.updateHeadersSortState(e)}onIsStickyChange(){this.applyStickyToChildren()}onZebraChange(){this.updateZebra()}componentDidLoad(){var e;this.updateZebra(),this.applyStickyToChildren();const t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");t&&t.addEventListener("slotchange",(()=>{this.setupHeaderCheckboxListener(),this.updateMasterCheckboxState(),this.applyStickyToChildren()})),this.setupHeaderCheckboxListener(),this.setupBodyCheckboxListener(),this.setupTableBodyObserver(),this.setupHeaderObserver(),setTimeout((()=>{this.updateMasterCheckboxState()}),0),this.resizable&&this.maxHeight&&(this.currentHeight=parseInt(this.maxHeight,10))}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),this.headerMutationObserver&&this.headerMutationObserver.disconnect(),this.cleanupResizeListeners()}cleanupResizeListeners(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}setupTableBodyObserver(){const e=Array.from(this.el.children).find((e=>"spw-table-body"===e.tagName.toLowerCase()));e&&(this.mutationObserver=new MutationObserver((()=>{this.setupBodyCheckboxListener(),setTimeout((()=>{this.updateMasterCheckboxState()}),0)})),this.mutationObserver.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["checked","disabled"]}))}setupHeaderObserver(){const e=Array.from(this.el.children).find((e=>"spw-table-head"===e.tagName.toLowerCase()));e&&(this.headerMutationObserver=new MutationObserver((()=>{this.applyStickyToChildren()})),this.headerMutationObserver.observe(e,{childList:!0,subtree:!0}))}getMasterCheckboxColumnIndex(){var e;const t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");if(!t)return null;const s=t.assignedElements({flatten:!0}).find((e=>"spw-table-head"===e.tagName.toLowerCase()));if(!s)return null;const i=s.querySelector("spw-table-row");if(!i)return null;const a=Array.from(i.querySelectorAll("spw-table-header"));for(let e=0;e<a.length;e++)if(a[e].querySelector("spw-checkbox"))return e;return null}isCheckboxDisabled(e){return!0===(null==e?void 0:e.disabled)||"true"===(null==e?void 0:e.getAttribute("disabled"))||""===(null==e?void 0:e.getAttribute("disabled"))}updateMasterCheckboxState(){var e;const t=this.getMasterCheckboxColumnIndex();if(null===t)return;const s=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])"),i=null==s?void 0:s.assignedElements({flatten:!0});if(!i)return;const a=i.find((e=>"spw-table-head"===e.tagName.toLowerCase())),o=i.find((e=>"spw-table-body"===e.tagName.toLowerCase()));if(!a||!o)return;const r=a.querySelector("spw-table-row"),n=null==r?void 0:r.querySelectorAll("spw-table-header")[t],l=null==n?void 0:n.querySelector("spw-checkbox"),h=o.querySelectorAll("spw-table-row"),d=Array.from(h).map((e=>{const s=e.querySelectorAll("spw-table-cell")[t],i=null==s?void 0:s.querySelector("spw-checkbox");return{checked:!0===(null==i?void 0:i.checked)||"true"===(null==i?void 0:i.getAttribute("checked")),disabled:this.isCheckboxDisabled(i)}})).filter((e=>!e.disabled));if(0===d.length)return;const b=d.every((e=>e.checked)),c=d.every((e=>!e.checked));l&&(b?(l.checked=!0,l.setAttribute("checked","true"),l.setAttribute("icon","fa-check")):c?(l.checked=!1,l.setAttribute("checked","false"),l.setAttribute("icon","fa-check")):(l.checked=!0,l.setAttribute("checked","true"),l.setAttribute("icon","fa-minus")))}setupHeaderCheckboxListener(){var e;const t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])"),s=null==t?void 0:t.assignedElements({flatten:!0});if(!s)return;const i=s.find((e=>"spw-table-head"===e.tagName.toLowerCase()));i&&i.querySelectorAll("spw-table-row").forEach((e=>{e.querySelectorAll("spw-checkbox").forEach((e=>{e.addEventListener("spwChange",(e=>{this.toggleAllRowCheckboxes(e.detail)}))}))}))}setupBodyCheckboxListener(){const e=Array.from(this.el.children).find((e=>"spw-table-body"===e.tagName.toLowerCase()));e&&e.querySelectorAll("spw-table-row").forEach((e=>{e.querySelectorAll("spw-checkbox").forEach((e=>{e.removeEventListener("spwChange",this.checkboxChangeHandler),e.addEventListener("spwChange",this.checkboxChangeHandler)}))}))}toggleAllRowCheckboxes(e){var t;const s=this.getMasterCheckboxColumnIndex();if(null===s)return;const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot:not([name])"),a=null==i?void 0:i.assignedElements({flatten:!0});if(!a)return;const o=a.find((e=>"spw-table-body"===e.tagName.toLowerCase()));o&&(o.querySelectorAll("spw-table-row").forEach((t=>{const i=Array.from(t.querySelectorAll("spw-table-cell"))[s],a=null==i?void 0:i.querySelector("spw-checkbox");a&&!this.isCheckboxDisabled(a)&&(a.checked=e,a.setAttribute("checked",""+e))})),setTimeout((()=>{this.updateMasterCheckboxState()}),0))}handleHeaderClick(e){const t=e.detail,s=this.currentSort,i={column:t,direction:(null==s?void 0:s.column)===t&&"asc"===s.direction?"desc":"asc"};this.currentSort=i,this.spwSort.emit(i),this.disableSort||this.sortRows(i.column,i.direction),this.updateHeadersSortState(i),this.updateZebra()}updateZebra(){var e;const t=this.el.shadowRoot.querySelector("slot:not([name])");if(!t)return;const s=t.assignedElements({flatten:!0}).find((e=>"spw-table-body"===e.tagName.toLowerCase()));s&&(this.isZebra?(s.setAttribute("is-zebra","true"),s.setAttribute("zebra-range",(null!==(e=this.zebraRange)&&void 0!==e?e:2)+"")):(s.removeAttribute("is-zebra"),s.removeAttribute("zebra-range")),"function"==typeof s.updateZebraStyles&&s.updateZebraStyles())}applyStickyToChildren(){requestAnimationFrame((()=>{const e="--is-sticky",t=this.el.querySelectorAll("spw-table-header"),s=this.el.querySelectorAll("spw-table-cell"),i=this.el.querySelector("spw-table-footer");this.isSticky?(t.forEach((t=>t.classList.add(e))),null==i||i.classList.add(e)):(t.forEach((t=>t.classList.remove(e))),s.forEach((t=>t.classList.remove(e))),null==i||i.classList.remove(e))}))}sortRows(e,t){var s;const i=null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector("slot:not([name])"),a=null==i?void 0:i.assignedElements().find((e=>"spw-table-body"===e.tagName.toLowerCase()));if(!a)return;const o=Array.from(a.querySelectorAll("spw-table-row")),r=Array.from(this.el.querySelectorAll("spw-table-header")).findIndex((t=>t.columnId===e));if(-1===r)return;o.sort(((e,s)=>{const i=e.querySelectorAll("spw-table-cell")[r],a=s.querySelectorAll("spw-table-cell")[r];if(!i||!a)return 0;const o=i.textContent.trim(),n=a.textContent.trim();return isNaN(Number(o))||isNaN(Number(n))?"asc"===t?o.localeCompare(n):n.localeCompare(o):"asc"===t?+o-+n:+n-+o})),o.forEach((e=>a.appendChild(e)));(null==a?void 0:a.updateZebraStyles)&&a.updateZebraStyles()}updateHeadersSortState(e){this.el.querySelectorAll("spw-table-header").forEach((t=>{const s=t.columnId===e.column;t.isSorted=s,t.sortDirection=s?e.direction:void 0}))}formatSize(e){return null==e?"auto":e+"px"}get elementClass(){return{"spw-table":!0,"spw-table--is-sticky":this.isSticky,"spw-table--resizable":this.resizable,["spw-table--layout-"+this.tableLayout]:!0}}get containerClass(){return{"spw-table-container":!0,"spw-table-container--resizable":this.resizable}}getMaxHeight(){return this.resizable&&this.currentHeight?this.currentHeight+"px":this.formatSize(this.maxHeight)}render(){return i(a,{key:"dabbc707f80267376120ba9d863fd1cd2b8bd7cc",style:{"--spw-table-max-height":this.getMaxHeight(),"--spw-table-min-width":this.formatSize(this.minWidth)}},i("div",{key:"1f906cfd810477870696afccba757493f74f5869",class:this.containerClass},i("slot",{key:"685aa7323c83cfd5a6ea6b2b6889873b8c26fd80",name:"table-sidebar"}," "),i("div",{key:"98797e8924da9322c84eeff86922686efeba97fe",class:"spw-table-wrapper"},i("table",{key:"336ccc54b04e9b320c4ece0783eae9bb6e1a93f5",part:"table",class:this.elementClass,role:"table","aria-label":this.accAriaLabel},i("slot",{key:"cee7064cd1ff45b80c70cf5f5a4259fd277bb3d2"})))),this.resizable&&i("div",{key:"ed79ba8e555d2dbe1abbdf4ef1863102dfccb221",class:"spw-table-resize-handle",onMouseDown:this.handleResizeStart,role:"separator","aria-orientation":"horizontal","aria-label":"Redimensionner le tableau"},i("div",{key:"47c677fa9d9e337d9c7d442975d9f537d7fd3c8e",class:"spw-table-resize-handle__bar"})),i("slot",{key:"3a8e64500c5844d9a3c438248f8afb5c6d0636d7",name:"table-footer"}))}get el(){return this}static get watchers(){return{currentSort:[{onCurrentSortChange:0}],isSticky:[{onIsStickyChange:0}],isZebra:[{onZebraChange:0}],zebraRange:[{onZebraChange:0}]}}static get style(){return"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);letter-spacing:-0.18px}body{margin: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:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;position:relative;flex:1;min-width:0}.spw-table-container{display:flex;width:100%;max-height:var(--spw-table-max-height);outline:1px solid var(--spw-color-themes-grey-grey-300);outline-offset:-1px;position:relative;overflow:hidden}.spw-table-container--resizable{border-bottom-left-radius:0;border-bottom-right-radius:0}.spw-table-wrapper{flex:1;min-width:0;overflow-x:auto;overflow-y:auto}.spw-table-wrapper::-webkit-scrollbar{width:14px;height:14px}.spw-table-wrapper::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-table-wrapper::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-table-wrapper{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-table{width:100%;border-collapse:collapse;min-width:var(--spw-table-min-width);border-radius:4px;position:relative}.spw-table--layout-fixed{table-layout:fixed}.spw-table--layout-auto{table-layout:auto}@media (max-width: 767px){.spw-table{display:block;min-width:0;border-collapse:separate;border:none;outline:none;padding:6px 12px}}.spw-table-resize-handle{position:relative;height:12px;width:100%;cursor:ns-resize;display:flex;align-items:center;justify-content:center;background:var(--spw-color-themes-grey-grey-100);border:1px solid var(--spw-color-themes-grey-grey-300);border-top:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px;transition:background-color 0.2s ease;user-select:none}.spw-table-resize-handle:hover{background:var(--spw-color-themes-grey-grey-200)}.spw-table-resize-handle:active{background:var(--spw-color-themes-grey-grey-300)}.spw-table-resize-handle__bar{width:40px;height:3px;background:var(--spw-color-themes-grey-grey-400);border-radius:2px;pointer-events:none}.spw-table-resize-handle:hover .spw-table-resize-handle__bar{background:var(--spw-color-themes-grey-grey-500)}"}},[257,"spw-table",{accAriaLabel:[1,"acc-aria-label"],isSticky:[4,"is-sticky"],maxHeight:[1,"max-height"],minWidth:[1,"min-width"],tableLayout:[1,"table-layout"],isZebra:[4,"is-zebra"],zebraRange:[2,"zebra-range"],disableSort:[4,"disable-sort"],currentSort:[1040],resizable:[4],minHeight:[2,"min-height"],currentHeight:[32]},[[0,"spwHeaderClick","handleHeaderClick"]],{currentSort:[{onCurrentSortChange:0}],isSticky:[{onIsStickyChange:0}],isZebra:[{onZebraChange:0}],zebraRange:[{onZebraChange:0}]}]),n=r,l=function(){"undefined"!=typeof customElements&&["spw-table"].forEach((e=>{"spw-table"===e&&(customElements.get(o(e))||customElements.define(o(e),r))}))};export{n as SpwTable,l as defineCustomElement}
|
|
1
|
+
import{p as e,H as t,c as s,h as i,a,t as o}from"./index.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.spwSort=s(this,"spwSort",7),this.spwResize=s(this,"spwResize",7),this.isSticky=!1,this.minWidth="600",this.tableLayout="auto",this.isZebra=!1,this.zebraRange=2,this.disableSort=!1,this.resizable=!1,this.minHeight=200,this.isResizing=!1,this.startY=0,this.startHeight=0,this.handleResizeStart=e=>{var t;e.preventDefault(),this.isResizing=!0,this.startY=e.clientY;const s=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-table-wrapper");s&&(this.containerElement=s,this.startHeight=s.offsetHeight),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),document.body.style.cursor="ns-resize",document.body.style.userSelect="none"},this.handleMouseMove=e=>{if(!this.isResizing||!this.containerElement)return;const t=Math.max(this.minHeight,this.startHeight+(e.clientY-this.startY));this.currentHeight=t,this.spwResize.emit({height:t})},this.handleMouseUp=()=>{this.isResizing&&(this.isResizing=!1,this.cleanupResizeListeners(),document.body.style.cursor="",document.body.style.userSelect="")},this.checkboxChangeHandler=()=>this.updateMasterCheckboxState()}onCurrentSortChange(e){e&&this.updateHeadersSortState(e)}onIsStickyChange(){this.applyStickyToChildren()}onZebraChange(){this.updateZebra()}componentDidLoad(){var e;this.updateZebra(),this.applyStickyToChildren();const t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");t&&t.addEventListener("slotchange",(()=>{this.setupHeaderCheckboxListener(),this.updateMasterCheckboxState(),this.applyStickyToChildren()})),this.setupHeaderCheckboxListener(),this.setupBodyCheckboxListener(),this.setupTableBodyObserver(),this.setupHeaderObserver(),setTimeout((()=>{this.updateMasterCheckboxState()}),0),this.resizable&&this.maxHeight&&(this.currentHeight=parseInt(this.maxHeight,10))}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),this.headerMutationObserver&&this.headerMutationObserver.disconnect(),this.cleanupResizeListeners()}cleanupResizeListeners(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}setupTableBodyObserver(){const e=Array.from(this.el.children).find((e=>"spw-table-body"===e.tagName.toLowerCase()));e&&(this.mutationObserver=new MutationObserver((()=>{this.setupBodyCheckboxListener(),setTimeout((()=>{this.updateMasterCheckboxState()}),0)})),this.mutationObserver.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["checked","disabled"]}))}setupHeaderObserver(){const e=Array.from(this.el.children).find((e=>"spw-table-head"===e.tagName.toLowerCase()));e&&(this.headerMutationObserver=new MutationObserver((()=>{this.applyStickyToChildren()})),this.headerMutationObserver.observe(e,{childList:!0,subtree:!0}))}getMasterCheckboxColumnIndex(){var e;const t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");if(!t)return null;const s=t.assignedElements({flatten:!0}).find((e=>"spw-table-head"===e.tagName.toLowerCase()));if(!s)return null;const i=s.querySelector("spw-table-row");if(!i)return null;const a=Array.from(i.querySelectorAll("spw-table-header"));for(let e=0;e<a.length;e++)if(a[e].querySelector("spw-checkbox"))return e;return null}isCheckboxDisabled(e){return!0===(null==e?void 0:e.disabled)||"true"===(null==e?void 0:e.getAttribute("disabled"))||""===(null==e?void 0:e.getAttribute("disabled"))}updateMasterCheckboxState(){var e;const t=this.getMasterCheckboxColumnIndex();if(null===t)return;const s=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])"),i=null==s?void 0:s.assignedElements({flatten:!0});if(!i)return;const a=i.find((e=>"spw-table-head"===e.tagName.toLowerCase())),o=i.find((e=>"spw-table-body"===e.tagName.toLowerCase()));if(!a||!o)return;const r=a.querySelector("spw-table-row"),n=null==r?void 0:r.querySelectorAll("spw-table-header")[t],l=null==n?void 0:n.querySelector("spw-checkbox"),h=o.querySelectorAll("spw-table-row"),d=Array.from(h).map((e=>{const s=e.querySelectorAll("spw-table-cell")[t],i=null==s?void 0:s.querySelector("spw-checkbox");return{checked:!0===(null==i?void 0:i.checked)||"true"===(null==i?void 0:i.getAttribute("checked")),disabled:this.isCheckboxDisabled(i)}})).filter((e=>!e.disabled));if(0===d.length)return;const b=d.every((e=>e.checked)),c=d.every((e=>!e.checked));l&&(b?(l.checked=!0,l.setAttribute("checked","true"),l.setAttribute("icon","fa-check")):c?(l.checked=!1,l.setAttribute("checked","false"),l.setAttribute("icon","fa-check")):(l.checked=!0,l.setAttribute("checked","true"),l.setAttribute("icon","fa-minus")))}setupHeaderCheckboxListener(){var e;const t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])"),s=null==t?void 0:t.assignedElements({flatten:!0});if(!s)return;const i=s.find((e=>"spw-table-head"===e.tagName.toLowerCase()));i&&i.querySelectorAll("spw-table-row").forEach((e=>{e.querySelectorAll("spw-checkbox").forEach((e=>{e.addEventListener("spwChange",(e=>{this.toggleAllRowCheckboxes(e.detail)}))}))}))}setupBodyCheckboxListener(){const e=Array.from(this.el.children).find((e=>"spw-table-body"===e.tagName.toLowerCase()));e&&e.querySelectorAll("spw-table-row").forEach((e=>{e.querySelectorAll("spw-checkbox").forEach((e=>{e.removeEventListener("spwChange",this.checkboxChangeHandler),e.addEventListener("spwChange",this.checkboxChangeHandler)}))}))}toggleAllRowCheckboxes(e){var t;const s=this.getMasterCheckboxColumnIndex();if(null===s)return;const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot:not([name])"),a=null==i?void 0:i.assignedElements({flatten:!0});if(!a)return;const o=a.find((e=>"spw-table-body"===e.tagName.toLowerCase()));o&&(o.querySelectorAll("spw-table-row").forEach((t=>{const i=Array.from(t.querySelectorAll("spw-table-cell"))[s],a=null==i?void 0:i.querySelector("spw-checkbox");a&&!this.isCheckboxDisabled(a)&&(a.checked=e,a.setAttribute("checked",""+e))})),setTimeout((()=>{this.updateMasterCheckboxState()}),0))}handleHeaderClick(e){const t=e.detail,s=this.currentSort,i={column:t,direction:(null==s?void 0:s.column)===t&&"asc"===s.direction?"desc":"asc"};this.currentSort=i,this.spwSort.emit(i),this.disableSort||this.sortRows(i.column,i.direction),this.updateHeadersSortState(i),this.updateZebra()}updateZebra(){var e;const t=this.el.shadowRoot.querySelector("slot:not([name])");if(!t)return;const s=t.assignedElements({flatten:!0}).find((e=>"spw-table-body"===e.tagName.toLowerCase()));s&&(this.isZebra?(s.setAttribute("is-zebra","true"),s.setAttribute("zebra-range",(null!==(e=this.zebraRange)&&void 0!==e?e:2)+"")):(s.removeAttribute("is-zebra"),s.removeAttribute("zebra-range")),"function"==typeof s.updateZebraStyles&&s.updateZebraStyles())}applyStickyToChildren(){requestAnimationFrame((()=>{const e="--is-sticky",t=this.el.querySelectorAll("spw-table-header"),s=this.el.querySelectorAll("spw-table-cell"),i=this.el.querySelector("spw-table-footer");this.isSticky?(t.forEach((t=>t.classList.add(e))),null==i||i.classList.add(e)):(t.forEach((t=>t.classList.remove(e))),s.forEach((t=>t.classList.remove(e))),null==i||i.classList.remove(e))}))}sortRows(e,t){var s;const i=null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector("slot:not([name])"),a=null==i?void 0:i.assignedElements().find((e=>"spw-table-body"===e.tagName.toLowerCase()));if(!a)return;const o=Array.from(a.querySelectorAll("spw-table-row")),r=Array.from(this.el.querySelectorAll("spw-table-header")).findIndex((t=>t.columnId===e));if(-1===r)return;o.sort(((e,s)=>{const i=e.querySelectorAll("spw-table-cell")[r],a=s.querySelectorAll("spw-table-cell")[r];if(!i||!a)return 0;const o=i.textContent.trim(),n=a.textContent.trim();return isNaN(Number(o))||isNaN(Number(n))?"asc"===t?o.localeCompare(n):n.localeCompare(o):"asc"===t?+o-+n:+n-+o})),o.forEach((e=>a.appendChild(e)));(null==a?void 0:a.updateZebraStyles)&&a.updateZebraStyles()}updateHeadersSortState(e){this.el.querySelectorAll("spw-table-header").forEach((t=>{const s=t.columnId===e.column;t.isSorted=s,t.sortDirection=s?e.direction:void 0}))}formatSize(e){return null==e?"auto":e+"px"}get elementClass(){return{"spw-table":!0,"spw-table--is-sticky":this.isSticky,"spw-table--resizable":this.resizable,["spw-table--layout-"+this.tableLayout]:!0}}get containerClass(){return{"spw-table-container":!0,"spw-table-container--resizable":this.resizable}}getMaxHeight(){return this.resizable&&this.currentHeight?this.currentHeight+"px":this.formatSize(this.maxHeight)}render(){return i(a,{key:"dabbc707f80267376120ba9d863fd1cd2b8bd7cc",style:{"--spw-table-max-height":this.getMaxHeight(),"--spw-table-min-width":this.formatSize(this.minWidth)}},i("div",{key:"1f906cfd810477870696afccba757493f74f5869",class:this.containerClass},i("slot",{key:"685aa7323c83cfd5a6ea6b2b6889873b8c26fd80",name:"table-sidebar"}," "),i("div",{key:"98797e8924da9322c84eeff86922686efeba97fe",class:"spw-table-wrapper"},i("table",{key:"336ccc54b04e9b320c4ece0783eae9bb6e1a93f5",part:"table",class:this.elementClass,role:"table","aria-label":this.accAriaLabel},i("slot",{key:"cee7064cd1ff45b80c70cf5f5a4259fd277bb3d2"})))),this.resizable&&i("div",{key:"ed79ba8e555d2dbe1abbdf4ef1863102dfccb221",class:"spw-table-resize-handle",onMouseDown:this.handleResizeStart,role:"separator","aria-orientation":"horizontal","aria-label":"Redimensionner le tableau"},i("div",{key:"47c677fa9d9e337d9c7d442975d9f537d7fd3c8e",class:"spw-table-resize-handle__bar"})),i("slot",{key:"3a8e64500c5844d9a3c438248f8afb5c6d0636d7",name:"table-footer"}))}get el(){return this}static get watchers(){return{currentSort:[{onCurrentSortChange:0}],isSticky:[{onIsStickyChange:0}],isZebra:[{onZebraChange:0}],zebraRange:[{onZebraChange:0}]}}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block;position:relative;flex:1;min-width:0}.spw-table-container{display:flex;width:100%;max-height:var(--spw-table-max-height);outline:1px solid var(--spw-color-themes-grey-grey-300);outline-offset:-1px;position:relative;overflow:hidden}.spw-table-container--resizable{border-bottom-left-radius:0;border-bottom-right-radius:0}.spw-table-wrapper{flex:1;min-width:0;overflow-x:auto;overflow-y:auto}.spw-table-wrapper::-webkit-scrollbar{width:14px;height:14px}.spw-table-wrapper::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-table-wrapper::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-table-wrapper{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-table{width:100%;border-collapse:collapse;min-width:var(--spw-table-min-width);border-radius:4px;position:relative}.spw-table--layout-fixed{table-layout:fixed}.spw-table--layout-auto{table-layout:auto}@media (max-width: 767px){.spw-table{display:block;min-width:0;border-collapse:separate;border:none;outline:none;padding:6px 12px}}.spw-table-resize-handle{position:relative;height:12px;width:100%;cursor:ns-resize;display:flex;align-items:center;justify-content:center;background:var(--spw-color-themes-grey-grey-100);border:1px solid var(--spw-color-themes-grey-grey-300);border-top:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px;transition:background-color 0.2s ease;user-select:none}.spw-table-resize-handle:hover{background:var(--spw-color-themes-grey-grey-200)}.spw-table-resize-handle:active{background:var(--spw-color-themes-grey-grey-300)}.spw-table-resize-handle__bar{width:40px;height:3px;background:var(--spw-color-themes-grey-grey-400);border-radius:2px;pointer-events:none}.spw-table-resize-handle:hover .spw-table-resize-handle__bar{background:var(--spw-color-themes-grey-grey-500)}"}},[257,"spw-table",{accAriaLabel:[1,"acc-aria-label"],isSticky:[4,"is-sticky"],maxHeight:[1,"max-height"],minWidth:[1,"min-width"],tableLayout:[1,"table-layout"],isZebra:[4,"is-zebra"],zebraRange:[2,"zebra-range"],disableSort:[4,"disable-sort"],currentSort:[1040],resizable:[4],minHeight:[2,"min-height"],currentHeight:[32]},[[0,"spwHeaderClick","handleHeaderClick"]],{currentSort:[{onCurrentSortChange:0}],isSticky:[{onIsStickyChange:0}],isZebra:[{onZebraChange:0}],zebraRange:[{onZebraChange:0}]}]),n=r,l=function(){"undefined"!=typeof customElements&&["spw-table"].forEach((e=>{"spw-table"===e&&(customElements.get(o(e))||customElements.define(o(e),r))}))};export{n as SpwTable,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as n,t as i}from"./index.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.active=!1}render(){return this.active?n("div",{class:"spw-tabs-content",role:"tabpanel",id:"panel-"+this.tabId,"aria-labelledby":"tab-"+this.tabId,"aria-hidden":this.active?"false":"true"},n("slot",null)):null}static get style(){return"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);letter-spacing:-0.18px}body{margin: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}:
|
|
1
|
+
import{p as t,H as e,h as n,t as i}from"./index.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.active=!1}render(){return this.active?n("div",{class:"spw-tabs-content",role:"tabpanel",id:"panel-"+this.tabId,"aria-labelledby":"tab-"+this.tabId,"aria-hidden":this.active?"false":"true"},n("slot",null)):null}static get style(){return":root{--spw-ds-container-xl:1200px;--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: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}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);letter-spacing:-0.18px}body{margin: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}:host{display:block}:host(.--box) .spw-tabs-content{border:1px solid var(--spw-colors-support-grey-grey-300);border-radius:0 0 4px 4px;background:white}"}},[257,"spw-tabs-content",{tabId:[1,"tab-id"],active:[4]}]),s=o,a=function(){"undefined"!=typeof customElements&&["spw-tabs-content"].forEach((t=>{"spw-tabs-content"===t&&(customElements.get(i(t))||customElements.define(i(t),o))}))};export{s as SpwTabsContent,a as defineCustomElement}
|