@spw-ds/spw-stencil-library 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cem.json +483 -31
- package/dist/cjs/{index-D3lyhQSW.js → index-CfCTfMKB.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +138 -17
- package/dist/cjs/spw-alert.cjs.entry.js +5 -12
- package/dist/cjs/spw-avatar.cjs.entry.js +2 -2
- package/dist/cjs/spw-block-content.cjs.entry.js +4 -3
- package/dist/cjs/spw-box.cjs.entry.js +6 -7
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/spw-button_2.cjs.entry.js +3 -3
- package/dist/cjs/spw-card-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-image.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +6 -4
- package/dist/cjs/spw-card-subtags.cjs.entry.js +3 -3
- package/dist/cjs/spw-card-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-card.cjs.entry.js +2 -2
- package/dist/cjs/spw-checkbox.cjs.entry.js +25 -3
- 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 +2 -2
- package/dist/cjs/spw-drawer.cjs.entry.js +5 -5
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-field-label_8.cjs.entry.js +55 -13
- package/dist/cjs/spw-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-grid-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-grid.cjs.entry.js +3 -3
- package/dist/cjs/spw-header-lang.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-header-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona.cjs.entry.js +2 -2
- package/dist/cjs/spw-header.cjs.entry.js +65 -17
- package/dist/cjs/spw-hero.cjs.entry.js +4 -4
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +2 -2
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +12 -3
- package/dist/cjs/spw-lightbox.cjs.entry.js +54 -6
- package/dist/cjs/spw-list-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-list.cjs.entry.js +2 -2
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +4 -4
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
- package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
- package/dist/cjs/spw-radio.cjs.entry.js +27 -3
- package/dist/cjs/spw-scrolltop.cjs.entry.js +2 -2
- package/dist/cjs/spw-search-field.cjs.entry.js +52 -3
- package/dist/cjs/spw-select.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidenav-group.cjs.entry.js +4 -4
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +9 -6
- package/dist/cjs/spw-sidenav.cjs.entry.js +3 -3
- package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider.cjs.entry.js +2 -2
- package/dist/cjs/spw-socials.cjs.entry.js +3 -3
- package/dist/cjs/spw-stencil-library.cjs.js +2 -2
- package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-header.cjs.entry.js +4 -4
- package/dist/cjs/spw-table-row.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs.cjs.entry.js +2 -2
- package/dist/cjs/spw-tag.cjs.entry.js +2 -2
- package/dist/cjs/spw-text-field.cjs.entry.js +2 -2
- package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-timeline.cjs.entry.js +3 -3
- package/dist/cjs/spw-toast-controller.cjs.entry.js +3 -3
- package/dist/cjs/spw-toast.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-container.cjs.entry.js +7 -3
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc.cjs.entry.js +3 -3
- package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard.cjs.entry.js +77 -3
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.css +16 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +21 -1
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +3 -0
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +98 -3
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +14 -0
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +23 -1
- package/dist/collection/components/spw-accordion/spw-accordion.css +1 -0
- package/dist/collection/components/spw-accordion/spw-accordion.js +11 -7
- package/dist/collection/components/spw-alert/spw-alert.css +32 -14
- package/dist/collection/components/spw-alert/spw-alert.js +6 -14
- package/dist/collection/components/spw-avatar/spw-avatar.js +1 -1
- package/dist/collection/components/spw-block-content/spw-block-content.css +13 -0
- package/dist/collection/components/spw-block-content/spw-block-content.js +2 -1
- package/dist/collection/components/spw-box/spw-box.css +0 -4
- package/dist/collection/components/spw-box/spw-box.js +5 -7
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
- package/dist/collection/components/spw-button/spw-button.js +1 -1
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +1 -0
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +4 -2
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +1 -1
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
- package/dist/collection/components/spw-card/spw-card.js +1 -1
- package/dist/collection/components/spw-checkbox/spw-checkbox.css +59 -2
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +25 -3
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +1 -1
- package/dist/collection/components/spw-drawer/spw-drawer.css +3 -1
- package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.css +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
- package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.css +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer.js +1 -1
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
- package/dist/collection/components/spw-grid/spw-grid.js +2 -2
- package/dist/collection/components/spw-group/spw-group.css +57 -1
- package/dist/collection/components/spw-group/spw-group.js +133 -5
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +5 -2
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header.css +0 -6
- package/dist/collection/components/spw-header/spw-header.js +80 -15
- package/dist/collection/components/spw-hero/spw-hero.js +3 -3
- package/dist/collection/components/spw-icon/spw-icon.js +1 -1
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +4 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +15 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox.css +11 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +134 -25
- package/dist/collection/components/spw-link/spw-link.css +4 -2
- package/dist/collection/components/spw-link/spw-link.js +1 -1
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
- package/dist/collection/components/spw-list/spw-list.js +1 -1
- package/dist/collection/components/spw-loading/spw-loading.js +1 -1
- package/dist/collection/components/spw-modal/spw-modal.js +3 -3
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.css +58 -0
- package/dist/collection/components/spw-radio/spw-radio.js +45 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.js +90 -6
- package/dist/collection/components/spw-select/spw-select.js +20 -1
- package/dist/collection/components/spw-separator/spw-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.css +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.css +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.css +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +7 -3
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +84 -4
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +2 -2
- package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider.js +1 -1
- package/dist/collection/components/spw-socials/spw-socials.css +1 -1
- package/dist/collection/components/spw-socials/spw-socials.js +1 -1
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.css +4 -0
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
- package/dist/collection/components/spw-tag/spw-tag.js +1 -1
- package/dist/collection/components/spw-text-field/spw-text-field.js +20 -1
- package/dist/collection/components/spw-textarea/spw-textarea.js +20 -1
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.js +2 -2
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.css +1 -1
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +5 -1
- package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.css +1 -1
- package/dist/collection/components/spw-toc/spw-toc.css +1 -1
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.css +3 -0
- package/dist/collection/components/spw-wizard/spw-wizard.js +86 -1
- package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +2 -1
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +2 -1
- package/dist/collection/stories/components/spw-breadcrumb/spw-breadcrumb.stories.js +2 -1
- package/dist/collection/stories/components/spw-button/spw-button.stories.js +2 -1
- package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +60 -2
- package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +2 -1
- package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +2 -1
- package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +2 -1
- package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +2 -1
- package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +2 -1
- package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +2 -1
- package/dist/collection/stories/components/spw-link/spw-link.stories.js +2 -1
- package/dist/collection/stories/components/spw-loading/spw-loading.stories.js +2 -1
- package/dist/collection/stories/components/spw-pagination/spw-pagination.stories.js +2 -1
- package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +97 -1
- package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +2 -1
- package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +101 -71
- package/dist/collection/stories/components/spw-select/spw-select.stories.js +2 -1
- package/dist/collection/stories/components/spw-separator/spw-separator.stories.js +2 -1
- package/dist/collection/stories/components/spw-skeleton/spw-skeleton.stories.js +2 -1
- package/dist/collection/stories/components/spw-tag/spw-tag.stories.js +2 -1
- package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +2 -1
- package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +2 -1
- package/dist/collection/stories/components/spw-tooltip/spw-tooltip.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +159 -2
- package/dist/collection/stories/organisms/spw-alert/spw-alert.stories.js +30 -29
- package/dist/collection/stories/organisms/spw-drawer/spw-drawer.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +10 -5
- package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +116 -3
- package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +10 -5
- package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +10 -5
- package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +1 -160
- package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +4 -2
- package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-sidenav/spw-sidenav.stories.js +64 -0
- package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +12 -6
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +8 -4
- package/dist/collection/stories/organisms/spw-timeline/spw-timeline.stories.js +8 -4
- package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +3 -3
- package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +2 -1
- package/dist/collection/stories/organisms/spw-wizard/spw-wizard.stories.js +10 -5
- package/dist/collection/utils/syntax.js +126 -0
- package/dist/collection/utils/utils.js +6 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-4jNBpzmg.js → p-BTTY1Aoh.js} +1 -1
- package/dist/components/{p-m6pRrrVB.js → p-CZ233jUc.js} +1 -1
- package/dist/components/p-CzRB_COv.js +1 -0
- package/dist/components/{p-D9JMaCxL.js → p-D7kEk_Bq.js} +1 -1
- package/dist/components/{p-DfbLlF27.js → p-D9yobKiX.js} +1 -1
- package/dist/components/{p-DaITe5yi.js → p-DFkINEAb.js} +1 -1
- package/dist/components/{p-BD9dpai3.js → p-DNh7jzbV.js} +1 -1
- package/dist/components/p-DmD0U8OW.js +1 -0
- package/dist/components/p-DxQ74GK8.js +1 -0
- package/dist/components/{p-hfJhpq7W.js → p-EnUTqnRk.js} +1 -1
- package/dist/components/p-N9GtuZLt.js +1 -0
- package/dist/components/{p-C-XK7DW-.js → p-_nYzjIHU.js} +1 -1
- package/dist/components/{p-BvJ60OkW.js → p-ijn7X7l6.js} +1 -1
- package/dist/components/p-qWBjG9IQ.js +1 -0
- package/dist/components/{p-10usqMv_.js → p-rooGoPru.js} +1 -1
- package/dist/{spw-stencil-library/p-82ccac76.entry.js → components/p-yXpAcpXR.js} +1 -1
- package/dist/components/spw-accordion-content.js +1 -1
- package/dist/components/spw-accordion-item.js +1 -1
- package/dist/components/spw-accordion-title.js +1 -1
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-alert.js +1 -1
- package/dist/components/spw-avatar.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-box.js +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-breadcrumb.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-drawer.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-icon.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.js +1 -1
- package/dist/components/spw-lightbox.js +1 -1
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +4 -4
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components/spw-select.js +1 -1
- package/dist/components/spw-separator.js +1 -1
- package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/components/spw-sidebar-navigation-item.js +1 -1
- package/dist/components/spw-sidebar-navigation-separator.js +1 -1
- package/dist/components/spw-sidebar.js +1 -1
- package/dist/components/spw-sidenav-group.js +1 -1
- package/dist/components/spw-sidenav-item.js +1 -1
- package/dist/components/spw-sidenav.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-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 +706 -49
- package/dist/components_vscode.json +5656 -0
- package/dist/esm/{index-DkNryMko.js → index-mthi2pFj.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +138 -17
- package/dist/esm/spw-alert.entry.js +5 -12
- package/dist/esm/spw-avatar.entry.js +2 -2
- package/dist/esm/spw-block-content.entry.js +4 -3
- package/dist/esm/spw-box.entry.js +6 -7
- package/dist/esm/spw-breadcrumb-item.entry.js +2 -2
- package/dist/esm/spw-breadcrumb.entry.js +2 -2
- package/dist/esm/spw-button_2.entry.js +3 -3
- package/dist/esm/spw-card-content.entry.js +2 -2
- package/dist/esm/spw-card-excerpt.entry.js +2 -2
- package/dist/esm/spw-card-image.entry.js +2 -2
- package/dist/esm/spw-card-subtag-item.entry.js +6 -4
- package/dist/esm/spw-card-subtags.entry.js +3 -3
- package/dist/esm/spw-card-title.entry.js +2 -2
- package/dist/esm/spw-card.entry.js +2 -2
- package/dist/esm/spw-checkbox.entry.js +25 -3
- 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 +2 -2
- package/dist/esm/spw-drawer.entry.js +5 -5
- package/dist/esm/spw-dropdown-container.entry.js +2 -2
- package/dist/esm/spw-dropdown-item.entry.js +3 -3
- package/dist/esm/spw-dropdown.entry.js +2 -2
- package/dist/esm/spw-field-label_8.entry.js +55 -13
- package/dist/esm/spw-file-upload.entry.js +3 -3
- package/dist/esm/spw-footer-bottom.entry.js +2 -2
- package/dist/esm/spw-footer-content-col.entry.js +2 -2
- package/dist/esm/spw-footer-content.entry.js +2 -2
- package/dist/esm/spw-footer-link.entry.js +2 -2
- package/dist/esm/spw-footer.entry.js +2 -2
- package/dist/esm/spw-grid-item.entry.js +3 -3
- package/dist/esm/spw-grid.entry.js +3 -3
- package/dist/esm/spw-header-lang.entry.js +2 -2
- package/dist/esm/spw-header-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-header-navigation-item.entry.js +3 -3
- package/dist/esm/spw-header-navigation.entry.js +2 -2
- package/dist/esm/spw-header-persona-item.entry.js +2 -2
- package/dist/esm/spw-header-persona.entry.js +2 -2
- package/dist/esm/spw-header.entry.js +65 -17
- package/dist/esm/spw-hero.entry.js +4 -4
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +2 -2
- package/dist/esm/spw-lightbox-item.entry.js +12 -3
- package/dist/esm/spw-lightbox.entry.js +54 -6
- package/dist/esm/spw-list-description.entry.js +2 -2
- package/dist/esm/spw-list-item.entry.js +2 -2
- package/dist/esm/spw-list-title.entry.js +2 -2
- package/dist/esm/spw-list.entry.js +2 -2
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +4 -4
- package/dist/esm/spw-mosaic-item.entry.js +2 -2
- package/dist/esm/spw-mosaic.entry.js +2 -2
- package/dist/esm/spw-pagination.entry.js +7 -7
- package/dist/esm/spw-radio.entry.js +27 -3
- package/dist/esm/spw-scrolltop.entry.js +2 -2
- package/dist/esm/spw-search-field.entry.js +52 -3
- package/dist/esm/spw-select.entry.js +2 -2
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +3 -3
- package/dist/esm/spw-sidebar-navigation-item.entry.js +5 -5
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
- package/dist/esm/spw-sidebar.entry.js +2 -2
- package/dist/esm/spw-sidenav-group.entry.js +4 -4
- package/dist/esm/spw-sidenav-item.entry.js +9 -6
- package/dist/esm/spw-sidenav.entry.js +3 -3
- package/dist/esm/spw-skeleton.entry.js +2 -2
- package/dist/esm/spw-slider-item.entry.js +2 -2
- package/dist/esm/spw-slider.entry.js +2 -2
- package/dist/esm/spw-socials.entry.js +3 -3
- package/dist/esm/spw-stencil-library.js +3 -3
- package/dist/esm/spw-table-body.entry.js +2 -2
- package/dist/esm/spw-table-cell.entry.js +2 -2
- package/dist/esm/spw-table-container.entry.js +2 -2
- package/dist/esm/spw-table-footer.entry.js +2 -2
- package/dist/esm/spw-table-head.entry.js +2 -2
- package/dist/esm/spw-table-header.entry.js +4 -4
- package/dist/esm/spw-table-row.entry.js +2 -2
- package/dist/esm/spw-table-sidebar.entry.js +2 -2
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
- package/dist/esm/spw-tabs-navigation.entry.js +2 -2
- package/dist/esm/spw-tabs.entry.js +2 -2
- package/dist/esm/spw-tag.entry.js +2 -2
- package/dist/esm/spw-text-field.entry.js +2 -2
- package/dist/esm/spw-textarea.entry.js +2 -2
- package/dist/esm/spw-tile-description.entry.js +2 -2
- package/dist/esm/spw-tile-title.entry.js +2 -2
- package/dist/esm/spw-tile.entry.js +2 -2
- package/dist/esm/spw-timeline-item.entry.js +3 -3
- package/dist/esm/spw-timeline.entry.js +3 -3
- package/dist/esm/spw-toast-controller.entry.js +3 -3
- package/dist/esm/spw-toast.entry.js +1 -1
- package/dist/esm/spw-toc-container.entry.js +7 -3
- package/dist/esm/spw-toc-navigation.entry.js +2 -2
- package/dist/esm/spw-toc.entry.js +3 -3
- package/dist/esm/spw-topbar.entry.js +2 -2
- package/dist/esm/spw-wizard-item.entry.js +2 -2
- package/dist/esm/spw-wizard.entry.js +77 -3
- package/dist/spw-stencil-library/{p-9c747e12.entry.js → p-00eb3fc6.entry.js} +1 -1
- package/dist/spw-stencil-library/p-020b4537.entry.js +1 -0
- package/dist/spw-stencil-library/{p-62442334.entry.js → p-030f69b3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-98f14c76.entry.js → p-074c9eb4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e27e96a2.entry.js → p-0db31b24.entry.js} +1 -1
- package/dist/spw-stencil-library/p-0dba5faf.entry.js +1 -0
- package/dist/spw-stencil-library/{p-c6298162.entry.js → p-105b9fc6.entry.js} +1 -1
- package/dist/spw-stencil-library/p-12052c7f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-85fd474d.entry.js → p-13b5e2e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-35c26140.entry.js → p-13d1d1a1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4e15e0c1.entry.js → p-1428b28a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9a839525.entry.js → p-154a2f90.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b98b556b.entry.js → p-15cc6506.entry.js} +1 -1
- package/dist/spw-stencil-library/p-16a60b1b.entry.js +1 -0
- package/dist/spw-stencil-library/p-17d35cee.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9ac3913a.entry.js → p-1c021756.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-226bf7b7.entry.js → p-1f91c68f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b6b496d2.entry.js → p-1fe079d1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7a47432f.entry.js → p-27769aed.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4898b89b.entry.js → p-29e1b7ba.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d302a2b5.entry.js → p-2b9ffd95.entry.js} +1 -1
- package/dist/spw-stencil-library/p-31830ac7.entry.js +1 -0
- package/dist/spw-stencil-library/{p-6a6b2237.entry.js → p-32587b59.entry.js} +1 -1
- package/dist/spw-stencil-library/p-348f1398.entry.js +1 -0
- package/dist/spw-stencil-library/{p-6278d28f.entry.js → p-36ef809d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a9c3f05b.entry.js → p-37894ae0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-efab43e2.entry.js → p-3e0a3cbd.entry.js} +4 -4
- package/dist/spw-stencil-library/p-40f40ab3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-ec9b89b8.entry.js → p-4667f645.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fb4b6547.entry.js → p-4fa02be3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-4fbeb3f5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-43ac8164.entry.js → p-514d03e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c8185d55.entry.js → p-54a965f4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-021fc983.entry.js → p-5f4a8aaf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b2be5886.entry.js → p-605e3722.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e2592a5e.entry.js → p-61f2278c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1156e45c.entry.js → p-68674b0f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e76535ee.entry.js → p-68883d0b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bdce1731.entry.js → p-6c85ba9a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ee69af5f.entry.js → p-6db83ee1.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7168b693.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1d57cc99.entry.js → p-7a927b3d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7fb7c421.entry.js +1 -0
- package/dist/spw-stencil-library/{p-958dadb3.entry.js → p-816980dc.entry.js} +1 -1
- package/dist/spw-stencil-library/p-85660075.entry.js +1 -0
- package/dist/spw-stencil-library/{p-a13fadc5.entry.js → p-899f21ca.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-42c5ae2b.entry.js → p-89e7e9ed.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3bcafcbf.entry.js → p-8ce39569.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6aef58f4.entry.js → p-911379c9.entry.js} +1 -1
- package/dist/spw-stencil-library/p-91f21a93.entry.js +1 -0
- package/dist/spw-stencil-library/{p-71ef7b30.entry.js → p-9900c3e8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-837ac8f1.entry.js → p-9a0ccce8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-83017509.entry.js → p-9ac75aa3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-435c6572.entry.js → p-a0027de0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a19386d3.entry.js → p-a28732e3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ccbe0d67.entry.js → p-a292c806.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a527d245.entry.js +1 -0
- package/dist/spw-stencil-library/{p-53d34813.entry.js → p-ab310621.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3ef82674.entry.js → p-ab7d74f0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e684eb0a.entry.js → p-ae8a6054.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-15fcedc4.entry.js → p-b0b2f9ce.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8ee5de40.entry.js → p-b32a76cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bdea1755.entry.js → p-b45175b2.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b5716911.entry.js +1 -0
- package/dist/spw-stencil-library/p-b73d8a54.entry.js +1 -0
- package/dist/spw-stencil-library/p-b969ceba.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8488c882.entry.js → p-c0fb3674.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c02151d3.entry.js → p-c369f61b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-30f7cb1e.entry.js → p-c5dbb538.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-33a767a3.entry.js → p-c93bf39b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-646c04fa.entry.js → p-ca38f08f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-faa20925.entry.js → p-ca439c3b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-cadcb419.entry.js +1 -0
- package/dist/spw-stencil-library/p-cb506a6f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-32f90343.entry.js → p-cd7eef16.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-07c59244.entry.js → p-ce583729.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-609873b3.entry.js → p-d3e4ff9e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8a0cf2d4.entry.js → p-d87aaef9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-db281173.entry.js → p-df0a11b9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5c50027b.entry.js → p-e1b3f417.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-77a95d12.entry.js → p-e6beadc2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a4a4c3b3.entry.js → p-ea11c40b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-58eddc91.entry.js → p-ecc49c2e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-70d3f435.entry.js → p-ed4747f2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-03c76e20.entry.js → p-ed53f129.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5e7ca2e4.entry.js → p-ee625904.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a4532a5f.entry.js → p-f11412df.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9baceb97.entry.js → p-f214f8e4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-18563d7b.entry.js → p-f29ddbe8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2a6388d4.entry.js → p-f4046756.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c20c15d5.entry.js → p-f9e5eaf8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f9f9c695.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4b49ce46.entry.js → p-faf4a80a.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fc10235a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-5a55e5c5.entry.js → p-fc1ccbf0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cab00494.entry.js → p-fe41767f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-29f4d921.entry.js → p-ffa41886.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-DkNryMko.js → p-mthi2pFj.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.css +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +2203 -1032
- package/dist/types/components/spw-accordion/spw-accordion-content/spw-accordion-content.d.ts +3 -0
- package/dist/types/components/spw-accordion/spw-accordion-item/spw-accordion-item.d.ts +13 -0
- package/dist/types/components/spw-accordion/spw-accordion-title/spw-accordion-title.d.ts +2 -0
- package/dist/types/components/spw-accordion/spw-accordion.d.ts +1 -1
- package/dist/types/components/spw-alert/spw-alert.d.ts +2 -5
- package/dist/types/components/spw-box/spw-box.d.ts +0 -1
- package/dist/types/components/spw-checkbox/spw-checkbox.d.ts +3 -1
- package/dist/types/components/spw-group/spw-group.d.ts +20 -2
- package/dist/types/components/spw-header/spw-header.d.ts +12 -0
- package/dist/types/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.d.ts +4 -0
- package/dist/types/components/spw-lightbox/spw-lightbox.d.ts +13 -2
- package/dist/types/components/spw-radio/spw-radio.d.ts +4 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +10 -0
- package/dist/types/components/spw-select/spw-select.d.ts +2 -0
- package/dist/types/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.d.ts +8 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +2 -0
- package/dist/types/components/spw-textarea/spw-textarea.d.ts +2 -0
- package/dist/types/components/spw-toc/spw-toc-container/spw-toc-container.d.ts +1 -0
- package/dist/types/components/spw-wizard/spw-wizard.d.ts +22 -0
- package/dist/types/components.d.ts +211 -23
- package/dist/types/stories/components/spw-checkbox/spw-checkbox.stories.d.ts +2 -0
- package/dist/types/stories/components/spw-radio/spw-radio.stories.d.ts +4 -0
- package/dist/types/stories/organisms/spw-accordion/spw-accordion.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-alert/spw-alert.stories.d.ts +1 -1
- package/dist/types/stories/organisms/spw-group/spw-group.stories.d.ts +4 -0
- package/dist/types/stories/organisms/spw-sidenav/spw-sidenav.stories.d.ts +2 -1
- package/dist/types/utils/syntax.d.ts +33 -0
- package/hydrate/index.js +672 -209
- package/hydrate/index.mjs +672 -209
- package/package.json +2 -2
- package/dist/components/p-BpHhLSNA.js +0 -1
- package/dist/components/p-C2YutT5r.js +0 -1
- package/dist/components/p-C5H3D_hy.js +0 -1
- package/dist/components/p-Ci0r8I9g.js +0 -1
- package/dist/components/p-DVxJ3wRZ.js +0 -1
- package/dist/components/p-jLNjkOd-.js +0 -1
- package/dist/spw-stencil-library/p-00e913ab.entry.js +0 -1
- package/dist/spw-stencil-library/p-15714574.entry.js +0 -1
- package/dist/spw-stencil-library/p-1b2219c5.entry.js +0 -1
- package/dist/spw-stencil-library/p-264d68af.entry.js +0 -1
- package/dist/spw-stencil-library/p-2b2908f6.entry.js +0 -1
- package/dist/spw-stencil-library/p-54d3bb05.entry.js +0 -1
- package/dist/spw-stencil-library/p-70b7b977.entry.js +0 -1
- package/dist/spw-stencil-library/p-77802474.entry.js +0 -1
- package/dist/spw-stencil-library/p-836800d9.entry.js +0 -1
- package/dist/spw-stencil-library/p-8b631b5d.entry.js +0 -1
- package/dist/spw-stencil-library/p-a36010c0.entry.js +0 -1
- package/dist/spw-stencil-library/p-a8aef45b.entry.js +0 -1
- package/dist/spw-stencil-library/p-aecc5c7b.entry.js +0 -1
- package/dist/spw-stencil-library/p-bbd74c62.entry.js +0 -1
- package/dist/spw-stencil-library/p-c9cca975.entry.js +0 -1
- package/dist/spw-stencil-library/p-e2f667f7.entry.js +0 -1
- package/dist/spw-stencil-library/p-e6546573.entry.js +0 -1
- package/dist/spw-stencil-library/p-e67a2ab2.entry.js +0 -1
- package/dist/spw-stencil-library/p-e68ac654.entry.js +0 -1
- package/dist/spw-stencil-library/p-e9262506.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as o,h as r,a as s}from"./p-mthi2pFj.js";const c=class{constructor(r){e(this,r),this.spwChange=o(this,"spwChange",7),r.$hostElement$["s-ei"]?this.internals=r.$hostElement$["s-ei"]:(this.internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this.internals),this.disabled=!1,this.checked=!1,this.error=!1,this.icon="fa-check",this.value="on",this.variant="default"}handleCheckbox(e){if(this.disabled)return null==e||e.preventDefault(),void(null==e||e.stopPropagation());this.internalChecked=!this.internalChecked,this.checked=this.internalChecked,this.updateFormValue(),this.spwChange.emit(this.internalChecked)}async toggleCheckedState(e){this.disabled||(this.internalChecked=e,this.checked=e,this.updateFormValue())}checkedChanged(e){this.internalChecked=e,this.inputElement.checked=e,this.updateFormValue()}updateFormValue(){this.internals.setFormValue(this.internalChecked?this.value:null)}handleKeydown(e){" "!==e.key&&"Enter"!==e.key||(this.handleCheckbox(),e.preventDefault())}componentWillLoad(){this.internalChecked=this.checked,this.defaultChecked=this.checked,this.updateFormValue()}formResetCallback(){this.internalChecked=this.defaultChecked,this.checked=this.defaultChecked,this.updateFormValue()}get elementClass(){return{"spw-checkbox__wrapper":!0,[`spw-checkbox__wrapper--${this.variant}`]:!0,"spw-checkbox__wrapper--disabled":this.disabled,"spw-checkbox__wrapper--checked":this.internalChecked,"spw-checkbox__wrapper--error":this.error}}renderHiddenInput(){return r("input",{type:"checkbox",ref:e=>this.inputElement=e,checked:this.internalChecked,onChange:this.handleCheckbox.bind(this),name:this.name,disabled:this.disabled,style:{display:"none"}})}get a11yAttrs(){return{tabindex:this.disabled?-1:0,onClick:e=>this.handleCheckbox(e),onKeyDown:this.handleKeydown.bind(this),role:"checkbox","aria-checked":this.internalChecked?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.accAriaLabel||this.name||"Label"}}render(){const e=Boolean(this.el.innerHTML);return"tag"===this.variant?r("div",{class:"spw-checkbox spw-checkbox--tag"},this.renderHiddenInput(),r("div",Object.assign({},this.a11yAttrs,{class:{"spw-checkbox__tag":!0,"spw-checkbox__tag--checked":this.internalChecked,"spw-checkbox__tag--disabled":this.disabled,"spw-checkbox__tag--error":this.error}}),r("slot",null))):r("div",{class:"spw-checkbox"},this.renderHiddenInput(),e&&r("label",{htmlFor:this.name,class:"spw-checkbox__label "+(this.disabled?"spw-checkbox__label--disabled":""),onClick:e=>this.handleCheckbox(e)},r("slot",null)),r("div",Object.assign({},this.a11yAttrs,{class:this.elementClass}),this.internalChecked&&r("spw-icon",{variant:"fa-solid",icon:this.icon})))}static get formAssociated(){return!0}get el(){return s(this)}static get watchers(){return{checked:[{checkedChanged:0}]}}};c.style='@charset "UTF-8";: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:inline-flex;vertical-align:top;--spw-ds-checkbox-checked-color:var(--spw-ds-primary);--spw-ds-checkbox-checked-active-color:var(--spw-ds-active);--spw-ds-checkbox-checked-hover-color:var(--spw-ds-variant);--spw-ds-toggle-checked-color:var(--spw-color-themes-green-green-600);--spw-ds-toggle-checked-active-color:var(--spw-color-themes-green-green-700);--spw-ds-toggle-checked-hover-color:var(--spw-color-themes-green-green-800);--spw-ds-checkbox-tag-checked-background:var(--spw-colors-support-grey-grey-900);--spw-ds-checkbox-tag-checked-border-color:var(--spw-ds-checkbox-tag-checked-background);--spw-ds-checkbox-tag-checked-color:var(--spw-ds-white);--spw-ds-checkbox-tag-background:var(--spw-ds-white);--spw-ds-checkbox-tag-border-color:var(--spw-colors-support-grey-grey-300);--spw-ds-checkbox-tag-color:var(--spw-colors-support-grey-grey-900);--spw-ds-checkbox-tag-radius:999px;--spw-ds-checkbox-tag-padding:6px 10px}.spw-checkbox{display:inline-flex;flex-direction:row;align-items:flex-start;padding:0}.spw-checkbox__wrapper{display:flex;position:relative;justify-content:center;align-items:center;width:20px;height:20px;background-color:var(--spw-ds-white);border:2px solid var(--spw-color-themes-grey-grey-900);border-radius:4px;font-size:var(--spw-typography-body-body-3-font-size);flex:none;order:0;flex-grow:0}.spw-checkbox__wrapper spw-icon{font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spw-checkbox__wrapper--error{border-color:var(--spw-color-states-error-error-300)}.spw-checkbox__wrapper:not(.spw-checkbox__wrapper--disabled):hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-checkbox__wrapper:not(.spw-checkbox__wrapper--disabled):focus-visible,.spw-checkbox__wrapper:not(.spw-checkbox__wrapper--disabled):active,.spw-checkbox__wrapper:not(.spw-checkbox__wrapper--disabled):focus-within{outline:2px solid white;outline-offset:0;box-shadow:0 0 0 4px black}.spw-checkbox__wrapper--disabled{border-color:var(--spw-color-themes-grey-grey-500)}.spw-checkbox__wrapper--checked{border-color:var(--spw-ds-checkbox-checked-color);color:var(--spw-ds-checkbox-checked-color)}.spw-checkbox__wrapper--checked--disabled{color:var(--spw-color-themes-grey-grey-500)}.spw-checkbox__wrapper--toggle{top:1px;width:30px;height:18px;border-radius:40px;border:none;background:var(--spw-color-themes-grey-grey-500);transition:background 0.2s ease}.spw-checkbox__wrapper--toggle:hover{background:var(--spw-color-themes-grey-grey-600)}.spw-checkbox__wrapper--toggle:active{background:var(--spw-color-themes-grey-grey-800)}.spw-checkbox__wrapper--toggle spw-icon{opacity:0;line-height:0;transition:all 0.2s 0.3s ease;margin-left:15px;transition:all 0.2s ease}.spw-checkbox__wrapper--toggle:before{content:"";position:absolute;width:14px;height:14px;background:white;border-radius:50%;top:50%;left:2px;transform:translateY(-50%);transition:all 0.2s ease}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle{background:var(--spw-ds-toggle-checked-color);color:var(--spw-ds-toggle-checked-color)}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle:before{left:calc(100% - 16px);background:white}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle spw-icon{font-size:10px;margin-left:6px;opacity:1}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle:not(.spw-checkbox__wrapper--disabled):hover{background:var(--spw-ds-toggle-checked-hover-color);color:var(--spw-ds-toggle-checked-hover-color)}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle:not(.spw-checkbox__wrapper--disabled):active{background:var(--spw-ds-toggle-checked-active-color);color:var(--spw-ds-toggle-checked-active-color)}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle.spw-checkbox__wrapper--disabled{background:var(--spw-color-themes-grey-grey-500);color:var(--spw-color-themes-grey-grey-500)}.spw-checkbox__wrapper.spw-checkbox__wrapper--checked.spw-checkbox__wrapper--toggle.spw-checkbox__wrapper--disabled:before{background:var(--spw-ds-white)}.spw-checkbox__wrapper.spw-checkbox__wrapper--toggle.spw-checkbox__wrapper--disabled,.spw-checkbox__wrapper.spw-checkbox__wrapper--toggle.spw-checkbox__wrapper--disabled.spw-checkbox__wrapper--checked{border-color:var(--spw-color-themes-grey-grey-300);background:var(--spw-color-themes-grey-grey-300)}.spw-checkbox__wrapper.spw-checkbox__wrapper--toggle.spw-checkbox__wrapper--disabled:before,.spw-checkbox__wrapper.spw-checkbox__wrapper--toggle.spw-checkbox__wrapper--disabled.spw-checkbox__wrapper--checked:before{background:white}.spw-checkbox--tag{display:inline-flex}.spw-checkbox__tag{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;font-size:16px;padding:var(--spw-ds-checkbox-tag-padding);border-radius:var(--spw-ds-checkbox-tag-radius);border:1px solid var(--spw-ds-checkbox-tag-border-color);background:var(--spw-ds-checkbox-tag-background);color:var(--spw-ds-checkbox-tag-color);white-space:nowrap;user-select:none}.spw-checkbox__tag:not(.spw-checkbox__tag--disabled):hover{border-color:var(--spw-colors-support-grey-grey-500)}.spw-checkbox__tag:not(.spw-checkbox__tag--disabled):focus-visible{outline:2px solid white;outline-offset:0;box-shadow:0 0 0 4px black}.spw-checkbox__tag--error{border-color:var(--spw-color-states-error-error-300)}.spw-checkbox__tag--checked{background:var(--spw-ds-checkbox-tag-checked-background);border-color:var(--spw-ds-checkbox-tag-checked-border-color);color:var(--spw-ds-checkbox-tag-checked-color)}.spw-checkbox__tag--disabled{opacity:0.5;cursor:not-allowed}.spw-checkbox__tag:not(.spw-checkbox__tag--disabled){cursor:pointer}.spw-checkbox__label{color:var(--spw-color-themes-grey-grey-900);word-wrap:break-word;order:1;padding-top:1px;user-select:none;padding-left:var(--spw-spacings-spacing-sm)}.spw-checkbox__label:hover~.spw-checkbox__wrapper:not(.spw-checkbox__wrapper--disabled){outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-checkbox__label:active~.spw-checkbox__wrapper:not(.spw-checkbox__wrapper--disabled){outline:2px solid white;outline-offset:0;box-shadow:0 0 0 4px black}.spw-checkbox__label--disabled{color:var(--spw-color-themes-grey-grey-600)}.spw-checkbox__wrapper:hover,.spw-checkbox__label:hover{cursor:pointer}.spw-checkbox__wrapper--disabled:hover,.spw-checkbox__label--disabled:hover{cursor:not-allowed}';export{c as spw_checkbox}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,a as s}from"./p-
|
|
1
|
+
import{r as t,c as i,h as e,a as s}from"./p-mthi2pFj.js";const o=class{constructor(e){t(this,e),this.spwDropdownOpen=i(this,"spwDropdownOpen",7),this.spwDropdownClose=i(this,"spwDropdownClose",7),this.direction="bottom",this.alignment="center",this.hasPadding=!0,this.contentWidth=300,this.maxHeight="auto",this.open=!1,this.isVisible=!1,this.dropdownEl=null,this.movedContentEl=null,this.triggerEl=null,this.handleKeyDown=null,this.showDropdown=()=>{var t,i;if(this.isVisible)return;const e=this.host.querySelector('[slot="dropdownContent"]');e&&(this.isVisible=!0,this.spwDropdownOpen.emit(),this.triggerEl=null!==(i=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-dropdown__trigger"))&&void 0!==i?i:null,this.dropdownEl=document.createElement("div"),this.dropdownEl.className=`spw-dropdown-fixed spw-dropdown-fixed--${this.direction} spw-dropdown-fixed--${this.alignment}`,this.hasPadding&&this.dropdownEl.classList.add("spw-dropdown-fixed--padded"),this.dropdownEl.setAttribute("role","menu"),this.dropdownEl.setAttribute("aria-modal","false"),this.dropdownEl.style.width=`${this.contentWidth||200}px`,this.dropdownEl.style.maxHeight="auto"!==this.maxHeight?`${this.maxHeight}px`:"none",this.dropdownEl.style.overflowY="auto"!==this.maxHeight?"auto":"visible",this.movedContentEl=e,this.dropdownEl.appendChild(this.movedContentEl),document.body.appendChild(this.dropdownEl),requestAnimationFrame((()=>{this.positionDropdown(),this.addListeners(),this.dropdownEl.setAttribute("tabindex","-1"),this.dropdownEl.focus({preventScroll:!0})})))},this.hideDropdown=()=>{var t;this.isVisible&&(this.isVisible=!1,this.open=!1,this.spwDropdownClose.emit(),this.dropdownEl&&this.movedContentEl&&this.host.appendChild(this.movedContentEl),(null===(t=this.dropdownEl)||void 0===t?void 0:t.parentNode)&&this.dropdownEl.parentNode.removeChild(this.dropdownEl),this.dropdownEl=null,this.movedContentEl=null,this.removeListeners())}}async close(){this.open=!1,this.hideDropdown()}onOpenChange(t){t?this.showDropdown():this.hideDropdown()}connectedCallback(){this.handleClickOutside=this.handleClickOutside.bind(this),this.handleScrollOrResize=this.handleScrollOrResize.bind(this),this.handleTriggerKeyDown=this.handleTriggerKeyDown.bind(this),this.host.addEventListener("keydown",this.handleTriggerKeyDown)}handleTriggerKeyDown(t){if(("Enter"===t.key||" "===t.key)&&!this.isVisible)return t.preventDefault(),void(this.open=!0);if("ArrowDown"===t.key&&this.isVisible){t.preventDefault();const i=this.getFocusableElements();i.length>0&&i[0].focus()}}componentDidLoad(){this.open&&this.showDropdown()}disconnectedCallback(){this.removeListeners(),this.host.removeEventListener("keydown",this.handleTriggerKeyDown)}addListeners(){document.addEventListener("click",this.handleClickOutside,!0),window.addEventListener("scroll",this.handleScrollOrResize,!0),window.addEventListener("resize",this.handleScrollOrResize),this.handleKeyDown=t=>{var i;if(this.dropdownEl){if("Escape"===t.key)return t.preventDefault(),this.close(),void(null===(i=this.triggerEl)||void 0===i||i.focus());if("Tab"!==t.key){if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault();const i=this.getFocusableElements();if(0===i.length)return;const e=i.indexOf(document.activeElement);"ArrowDown"===t.key?i[e<i.length-1?e+1:0].focus():i[e>0?e-1:i.length-1].focus()}}else{const i=this.getFocusableElements();if(0===i.length)return;const e=i[0],s=i[i.length-1];t.shiftKey?document.activeElement===e&&(t.preventDefault(),s.focus()):document.activeElement===s&&(t.preventDefault(),e.focus())}}},document.addEventListener("keydown",this.handleKeyDown,!0)}removeListeners(){document.removeEventListener("click",this.handleClickOutside,!0),window.removeEventListener("scroll",this.handleScrollOrResize,!0),window.removeEventListener("resize",this.handleScrollOrResize),this.handleKeyDown&&(document.removeEventListener("keydown",this.handleKeyDown,!0),this.handleKeyDown=null)}getFocusableElements(){return this.dropdownEl?Array.from(this.dropdownEl.querySelectorAll('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])')).filter((t=>!t.closest('[aria-disabled="true"]'))):[]}handleClickOutside(t){var i;this.host.contains(t.target)||(null===(i=this.dropdownEl)||void 0===i?void 0:i.contains(t.target))||this.close()}handleScrollOrResize(){this.isVisible&&this.positionDropdown()}positionDropdown(){var t;if(!this.dropdownEl)return;const i=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-dropdown__trigger");if(!i)return;const e=i.getBoundingClientRect(),s=this.dropdownEl;s.style.visibility="hidden",s.style.position="fixed",s.style.display="flex";const o=s.getBoundingClientRect();let n=0,r=0;const d=(()=>{switch(this.alignment){case"start":return e.left;case"end":return e.right-o.width;default:return e.left+(e.width-o.width)/2}})(),a=(()=>{switch(this.alignment){case"start":return e.top;case"end":return e.bottom-o.height;default:return e.top+(e.height-o.height)/2}})();switch(this.direction){case"top":n=e.top-o.height-8,r=d;break;case"bottom":n=e.bottom+8,r=d;break;case"left":n=a,r=e.left-o.width-8;break;default:n=a,r=e.right+8}s.style.top=`${n}px`,s.style.left=`${r}px`,s.style.zIndex="9999",s.style.visibility="visible"}render(){return e("div",{key:"d5f04979bbd150ff77e07446c62a13e5283335f4",class:"spw-dropdown__trigger",onClick:()=>this.open=!this.open,"aria-expanded":this.open?"true":"false","aria-haspopup":"menu"},e("slot",{key:"bd341e616b5c3840a2899cf000386903faf52377"}))}get host(){return s(this)}static get watchers(){return{open:[{onOpenChange:0}]}}};o.style=":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:inline-block;line-height:1}:host([open]){--spw-dropdown-icon-color:var(--spw-color-themes-grey-grey-900)}.spw-dropdown__trigger{cursor:pointer}.spw-dropdown__trigger:hover{--spw-dropdown-icon-color:var(--spw-color-themes-grey-grey-900)}.spw-dropdown__trigger ::slotted(spw-icon){color:var(--spw-dropdown-icon-color, inherit)}";export{o as spw_dropdown}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,a as s}from"./p-mthi2pFj.js";const n=class{constructor(i){t(this,i),this.valueChanged=e(this,"valueChanged",7),i.$hostElement$["s-ei"]?this.internals=i.$hostElement$["s-ei"]:(this.internals=i.$hostElement$.attachInternals(),i.$hostElement$["s-ei"]=this.internals),this.type="text",this.label="",this.isSearch=!1,this.isClear=!1,this.required=!1,this.size="medium",this.error="",this.hint="",this.success="",this.warning="",this.isExpandable=!1,this.showErrorIcon=!0,this.showHintIcon=!0,this.showSuccessIcon=!0,this.showWarningIcon=!0,this.accAriaLabelIncrement="Incrémenter",this.accAriaLabelDecrement="Décrémenter",this.hasControls=!0,this.hasSubmitButton=!1,this.tooltipDirection="top",this.tooltipCursor="help",this.isClearIconVisible=!1}async setFocus(){var t;null===(t=this.inputElement)||void 0===t||t.focus()}valueChangedHandler(t){this.setValue(this.normalizeDecimalSeparator(null!=t?String(t):""))}async setValue(t){const e=this.mask?this.applyMask(t):t;if(this.inputElement&&this.inputElement.value!==e&&(this.inputElement.value=e),this.value===e)return;this.value=e;const i=this.getTypedValue(e);this.internals.setFormValue(i?String(i):null),this.isClearIconVisible=this.isClear&&!!e,this.valueChanged.emit(i)}getTypedValue(t){return t?"number"!==this.type||isNaN(Number(t))?t:Number(t):""}componentDidLoad(){const t=this.normalizeDecimalSeparator(null!=this.value?String(this.value):"");this.defaultValue=t,this.inputElement&&(this.inputElement.value=t);const e=this.getTypedValue(t);this.internals.setFormValue(e?String(e):null),this.isClearIconVisible=this.isClear&&!!t}formResetCallback(){var t;this.setValue(null!==(t=this.defaultValue)&&void 0!==t?t:"")}handleInput(t){this.setValue(t.target.value)}handleClear(){this.setValue("")}handleKeyDown(t){var e,i,s,n,r;if("Enter"===t.key&&this.hasSubmitButton&&(t.preventDefault(),this.handleSubmit()),"number"===this.type&&null!=this.decimalPrecision){const o=this.inputElement,l=null!==(e=null==o?void 0:o.value)&&void 0!==e?e:"",a=t.key;if(["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Tab","Enter","Home","End"].includes(a))return;if(t.ctrlKey||t.metaKey)return;if(","===a||"."===a){if(t.preventDefault(),!l.includes(".")){const t=null!==(i=o.selectionStart)&&void 0!==i?i:l.length,e=null!==(s=o.selectionEnd)&&void 0!==s?s:l.length,n=l.slice(0,t)+"."+l.slice(e);o.value=n,o.setSelectionRange(t+1,t+1),this.setValue(n)}return}if("-"===a)return void((0!==o.selectionStart||l.includes("-"))&&t.preventDefault());if(!/^[0-9]$/.test(a))return void t.preventDefault();const d=l.indexOf(".");if(-1!==d){const e=null!==(n=null==o?void 0:o.selectionStart)&&void 0!==n?n:l.length,i=(null!==(r=null==o?void 0:o.selectionEnd)&&void 0!==r?r:l.length)-e,s=l.slice(d+1);e>d&&s.length-i>=this.decimalPrecision&&t.preventDefault()}}}handleSubmit(){const t=this.el.closest("form");t&&t.requestSubmit()}normalizeDecimalSeparator(t){return"number"===this.type&&null!=this.decimalPrecision?t.replace(",","."):t}roundToPrecision(t){if(null==this.decimalPrecision)return t;const e=Math.pow(10,this.decimalPrecision);return Math.round(t*e)/e}getCurrentNumericValue(){var t,e,i,s;const n=null!=this.decimalPrecision?null!==(e=null===(t=this.inputElement)||void 0===t?void 0:t.value)&&void 0!==e?e:String(null!==(i=this.value)&&void 0!==i?i:""):String(null!==(s=this.value)&&void 0!==s?s:""),r=Number(n);return isNaN(r)?0:r}increment(){var t;if(this.disabled)return;const e=null!==(t=this.step)&&void 0!==t?t:1;let i=this.roundToPrecision(this.getCurrentNumericValue()+e);null!=this.max&&i>this.max&&(i=this.max),this.setValue(String(i))}decrement(){var t;if(this.disabled)return;const e=null!==(t=this.step)&&void 0!==t?t:1;let i=this.roundToPrecision(this.getCurrentNumericValue()-e);null!=this.min&&i<this.min&&(i=this.min),this.setValue(String(i))}unmask(t){return t?t.replace("number"===this.type?/[^0-9.,\-]/g:/[^0-9A-Za-z]/g,""):""}matchesPlaceholder(t,e){switch(e){case"9":return/[0-9]/.test(t);case"A":case"a":return/[A-Za-z]/.test(t);case"X":return/[0-9A-Za-z]/.test(t);default:return!1}}transformForPlaceholder(t,e){return"A"===e?t.toUpperCase():t}applyMask(t){if(!this.mask)return t;const e=this.unmask(t).split("");let i=0,s="";for(let t=0;t<this.mask.length;t++){const n=this.mask[t];if(["9","A","a","X"].includes(n)){for(;i<e.length&&!this.matchesPlaceholder(e[i],n);)i++;if(i>=e.length)break;s+=this.transformForPlaceholder(e[i],n),i++}else{if(i>=e.length)break;s+=n}}return s}renderMessages(){const t=[];return this.error&&t.push({variant:"error",text:this.error,showIcon:this.showErrorIcon}),this.hint&&t.push({variant:"hint",text:this.hint,showIcon:this.showHintIcon}),this.success&&t.push({variant:"success",text:this.success,showIcon:this.showSuccessIcon}),this.warning&&t.push({variant:"warning",text:this.warning,showIcon:this.showWarningIcon}),t.map(((e,s)=>{const n=s===t.length-1;return i("spw-field-message",{variant:e.variant,showIcon:e.showIcon,isExpandable:n&&this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},e.text,n&&i("slot",{name:"details",slot:"details"}))}))}get elementClass(){const t="number"===this.type;return{"spw-text-field":!0,[`spw-text-field--${this.size}`]:!0,"spw-text-field--is-search":this.isSearch,"spw-text-field--is-error":!!this.error,"spw-text-field--is-clear":this.isClearIconVisible,"spw-text-field--is-number":t,"spw-text-field--has-controls":t&&this.hasControls,"spw-text-field--has-submit-button":this.hasSubmitButton,"spw-text-field--disabled":this.disabled}}render(){return i("div",{key:"6143d85eba3d415bf5108dcf3667cead2fb9bafd",class:this.elementClass},this.label&&i("spw-field-label",{key:"f0b2bad3cefdca7294ab2c370e10de4a7b70add7",label:this.label,name:this.name,required:this.required,tooltipTitle:this.tooltipTitle,tooltipText:this.tooltipText,tooltipMaxWidth:this.tooltipMaxWidth,tooltipDirection:this.tooltipDirection,tooltipCursor:this.tooltipCursor}),this.assistiveText&&i("spw-field-message",{key:"46309f61a36155e5b7f4bc822de241d886f1d17e",class:"spw-text-field__field-message",variant:"hint",showIcon:!1},this.assistiveText),i("div",{key:"0909d8f8e6b0dd0aa24ca173949e8e81b76cd005",class:"spw-text-field__container"},"number"===this.type&&this.hasControls&&i("button",{key:"299bbbe41e6551545a2279961525a00de4137de0",type:"button",class:"spw-text-field__number-btn spw-text-field__number-btn--decrement",onClick:()=>this.decrement(),disabled:this.disabled||null!=this.min&&Number(this.value)<=this.min,"aria-label":this.accAriaLabelDecrement},i("spw-icon",{key:"c4172f3b07bbbbf5cc8e4ae8df207bce310ebd3b",icon:"fa-minus"})),i("div",{key:"3d153bfbda9b6a05fa4ad2738eb2a06c66f3cd32",class:"spw-text-field__input-container"},i("input",{key:"b6bae934239d3bbb6d8dc733aa1551b43e960022",class:"spw-text-field__input",ref:t=>this.inputElement=t,type:"number"!==this.type||null==this.decimalPrecision&&null==this.mask?this.type:"text",inputMode:"number"!==this.type||null==this.decimalPrecision&&null==this.mask?void 0:"decimal",min:"number"===this.type&&null==this.decimalPrecision&&null==this.mask?this.min:void 0,max:"number"===this.type&&null==this.decimalPrecision&&null==this.mask?this.max:void 0,step:"number"===this.type&&null==this.decimalPrecision&&null==this.mask?this.step:void 0,placeholder:this.placeholder,"aria-label":this.accAriaLabel||this.name,disabled:this.disabled,name:this.name,id:this.name,autocomplete:this.autocomplete,minLength:this.minLength,maxLength:this.maxLength,required:this.required,onInput:t=>this.handleInput(t),onKeyDown:t=>this.handleKeyDown(t)}),(this.isSearch||this.isClearIconVisible)&&i("div",{key:"9a15b1ae9b5c3a4013b20f27c13b055fe5ddd2b4",class:"spw-text-field__icons"},this.isClearIconVisible&&i("span",{key:"4ca37a654e265f62efe9cc3e33a0500161f092c3",class:"spw-text-field__clear",onClick:()=>this.handleClear()},i("spw-icon",{key:"a83069b0b329f98539d3cc3d0c96117559a91f37",class:"spw-text-field__icon spw-text-field__icon--clear",icon:"fa-xmark"})),this.isSearch&&!this.hasSubmitButton&&i("spw-icon",{key:"bf2464e076fe3228e92db44b48cfbd4b3877f81f",class:"spw-text-field__icon spw-text-field__icon--search",icon:"fa-magnifying-glass"}),this.hasSubmitButton&&i("button",{key:"d637079ebd7eb51a49268a605de464a697b5b0a2",type:"button",class:"spw-text-field__submit",onClick:()=>this.handleSubmit(),"aria-label":"Rechercher"},i("spw-icon",{key:"7ff69d35b22fac5ff33068c15df5934fb2222870",icon:"fa-magnifying-glass"})))),"number"===this.type&&this.hasControls&&i("button",{key:"2a6772eb404a0a82c698e25d923155769a0cd915",type:"button",class:"spw-text-field__number-btn spw-text-field__number-btn--increment",onClick:()=>this.increment(),disabled:this.disabled||null!=this.max&&Number(this.value)>=this.max,"aria-label":this.accAriaLabelIncrement},i("spw-icon",{key:"550275d111b1292773f826577edbdf949ee80922",icon:"fa-plus"})),this.indicator&&i("div",{key:"0156291bdf68fc430dad21d59269ab9d1a54cd9e",class:"spw-text-field__indicator"},this.indicator)),this.renderMessages())}static get formAssociated(){return!0}get el(){return s(this)}static get watchers(){return{value:[{valueChangedHandler:0}]}}};n.style='@charset "UTF-8";: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-input-height:40px;--spw-input-padding:0 12px;--spw-input-text-align:left;--spw-input-font-size:16px;--spw-input-radius:4px;--spw-input-icon-search-color:var(--spw-color-themes-grey-grey-900);--spw-input-border:var(--spw-color-themes-grey-grey-800);--spw-input-shadow:none}.spw-text-field{position:relative}.spw-text-field__input-container{flex:1;position:relative;display:flex}.spw-text-field__input{flex:1;width:100%;height:var(--spw-input-height);padding:var(--spw-input-padding);text-overflow:ellipsis;line-height:var(--spw-input-height);border-radius:var(--spw-input-radius);box-shadow:var(--spw-input-shadow);font-size:var(--spw-input-font-size);text-align:var(--spw-input-text-align);border:1px solid var(--spw-input-border)}.spw-text-field__input:hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-text-field__input:focus,.spw-text-field__input:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black}.spw-text-field__input[type=number]{-moz-appearance:textfield;-webkit-appearance:none;appearance:none;margin:0}.spw-text-field__input[type=number]::-webkit-outer-spin-button,.spw-text-field__input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}:host-context(spw-header) .spw-text-field__input{border:1px solid var(--spw-color-themes-grey-grey-300)}.spw-text-field--disabled .spw-text-field__input{border-color:var(--spw-color-themes-grey-grey-400);background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-500);cursor:not-allowed}.spw-text-field--disabled .spw-text-field__input::placeholder{color:var(--spw-color-themes-grey-grey-500)}.spw-text-field--disabled .spw-text-field__input:hover,.spw-text-field--disabled .spw-text-field__input:focus,.spw-text-field--disabled .spw-text-field__input:focus-visible{outline:none}.spw-text-field--is-error .spw-text-field__input{border-color:var(--spw-colors-states-error-error-300)}.spw-text-field--large .spw-text-field__input{height:60px;padding:0 24px;line-height:60px}.spw-text-field--is-search:not(.spw-text-field--is-clear) .spw-text-field__input{padding-right:40px}.spw-text-field--is-clear:not(.spw-text-field--is-search) .spw-text-field__input{padding-right:40px}.spw-text-field--is-clear .spw-text-field__input{padding-right:70px}.spw-text-field__container{display:flex;align-items:center}.spw-text-field__indicator{padding-left:12px}.spw-text-field__field-message{margin-bottom:8px;margin-top:-4px}.spw-text-field__icons{display:flex;align-items:center;position:absolute;top:50%;right:12px;gap:8px;transform:translateY(-50%)}.spw-text-field--large .spw-text-field__icons{right:24px}.spw-text-field--disabled .spw-text-field__icons{pointer-events:none}.spw-text-field__clear{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;cursor:pointer;padding:2px;font-size:16px;transition:all 0.2s ease-in}.spw-text-field__clear:hover{color:var(--spw-ds-primary)}.spw-text-field--disabled .spw-text-field__clear{border-color:var(--spw-color-themes-grey-grey-500)}.spw-text-field__icon{color:var(--spw-input-icon-search-color)}.spw-text-field--disabled .spw-text-field__icon{color:var(--spw-color-themes-grey-grey-500)}.spw-text-field__icon--search{pointer-events:none;font-size:18px}.spw-text-field--large .spw-text-field__icon--search{font-size:24px}.spw-text-field__icon--clear{color:var(--spw-color-themes-grey-grey-900);font-size:12px}.spw-text-field__submit{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:50%;background:transparent;cursor:pointer;transition:all 0.2s ease;color:var(--spw-input-icon-search-color);font-size:18px}.spw-text-field__submit:focus,.spw-text-field__submit:focus-visible{outline:1px solid white;outline-offset:0;box-shadow:0 0 0 3px black}.spw-text-field--large .spw-text-field__submit{width:36px;height:36px;font-size:24px}.spw-text-field--disabled .spw-text-field__submit{cursor:not-allowed;color:var(--spw-color-themes-grey-grey-500)}.spw-text-field__number-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--spw-input-height);height:var(--spw-input-height);padding:0;border:1px solid var(--spw-input-border);background:var(--spw-color-themes-grey-grey-100);cursor:pointer;transition:all 0.2s ease-in-out;color:var(--spw-color-themes-grey-grey-900);font-size:14px}.spw-text-field__number-btn--decrement{border-radius:var(--spw-input-radius) 0 0 var(--spw-input-radius);border-right:none}.spw-text-field__number-btn--increment{border-radius:0 var(--spw-input-radius) var(--spw-input-radius) 0;border-left:none}.spw-text-field__number-btn:hover:not(:disabled){background:var(--spw-color-themes-grey-grey-200)}.spw-text-field__number-btn:focus,.spw-text-field__number-btn:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black;z-index:1}.spw-text-field__number-btn:disabled{cursor:not-allowed;color:var(--spw-color-themes-grey-grey-400);background:var(--spw-color-themes-grey-grey-100)}.spw-text-field--large .spw-text-field__number-btn{width:60px;height:60px;font-size:18px}.spw-text-field--disabled .spw-text-field__number-btn{border-color:var(--spw-color-themes-grey-grey-400)}.spw-text-field--is-error .spw-text-field__number-btn{border-color:var(--spw-colors-states-error-error-300)}.spw-text-field--has-controls .spw-text-field__input{border-radius:0;border-left:none;border-right:none;text-align:center}';export{n as spw_text_field}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as e,H as p}from"./p-
|
|
1
|
+
import{r as s,h as e,H as p}from"./p-mthi2pFj.js";const n=class{constructor(e){s(this,e),this.open=!1}render(){return e(p,{key:"1888c8fe5961292ec7951687edba7140aecde726",class:{"spw-sidenav-group":!0,"spw-sidenav-group--open":this.open}},e("div",{key:"03ba17f2b61b190f30c18691849e28e253ff4be6",class:"spw-sidenav-group__content",style:{display:this.open?"block":"none"}},e("slot",{key:"aa03a489af80336d804239495052f7a8b535fecf"})))}};n.style=':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-sidenav-group{font-family:var(--spw-ds-font-main);box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}spw-sidenav-group h1,spw-sidenav-group h2,spw-sidenav-group h3,spw-sidenav-group h4,spw-sidenav-group h5,spw-sidenav-group h6,spw-sidenav-group p,spw-sidenav-group ul,spw-sidenav-group li{padding:0;margin:0}spw-sidenav-group ul{list-style:none}spw-sidenav-group *,spw-sidenav-group *::before,spw-sidenav-group *::after{box-sizing:inherit;letter-spacing:-0.18px}spw-sidenav-group{}spw-sidenav-group hr{box-sizing:content-box;height:0;overflow:visible;}spw-sidenav-group{}spw-sidenav-group pre{font-family:monospace, monospace;font-size:1em;}spw-sidenav-group{}spw-sidenav-group a{background-color:transparent}spw-sidenav-group{}spw-sidenav-group abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}spw-sidenav-group{}spw-sidenav-group b,spw-sidenav-group strong{font-weight:bolder}spw-sidenav-group{}spw-sidenav-group code,spw-sidenav-group kbd,spw-sidenav-group samp{font-family:monospace, monospace;font-size:1em;}spw-sidenav-group{}spw-sidenav-group small{font-size:80%}spw-sidenav-group{}spw-sidenav-group sub,spw-sidenav-group sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}spw-sidenav-group sub{bottom:-0.25em}spw-sidenav-group sup{top:-0.5em}spw-sidenav-group{}spw-sidenav-group img{border-style:none}spw-sidenav-group{}spw-sidenav-group button,spw-sidenav-group input,spw-sidenav-group optgroup,spw-sidenav-group select,spw-sidenav-group textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}spw-sidenav-group{}spw-sidenav-group button,spw-sidenav-group input{overflow:visible}spw-sidenav-group{}spw-sidenav-group button,spw-sidenav-group select{text-transform:none}spw-sidenav-group{}spw-sidenav-group button,spw-sidenav-group [type=button],spw-sidenav-group [type=reset],spw-sidenav-group [type=submit]{-webkit-appearance:button}spw-sidenav-group{}spw-sidenav-group button::-moz-focus-inner,spw-sidenav-group [type=button]::-moz-focus-inner,spw-sidenav-group [type=reset]::-moz-focus-inner,spw-sidenav-group [type=submit]::-moz-focus-inner{border-style:none;padding:0}spw-sidenav-group{}spw-sidenav-group button:-moz-focusring,spw-sidenav-group [type=button]:-moz-focusring,spw-sidenav-group [type=reset]:-moz-focusring,spw-sidenav-group [type=submit]:-moz-focusring{outline:1px dotted ButtonText}spw-sidenav-group{}spw-sidenav-group fieldset{padding:0.35em 0.75em 0.625em}spw-sidenav-group{}spw-sidenav-group legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}spw-sidenav-group{}spw-sidenav-group progress{vertical-align:baseline}spw-sidenav-group{}spw-sidenav-group textarea{overflow:auto}spw-sidenav-group{}spw-sidenav-group [type=checkbox],spw-sidenav-group [type=radio]{box-sizing:border-box;padding:0;}spw-sidenav-group{}spw-sidenav-group [type=number]::-webkit-inner-spin-button,spw-sidenav-group [type=number]::-webkit-outer-spin-button{height:auto}spw-sidenav-group{}spw-sidenav-group [type=search]{-webkit-appearance:textfield;outline-offset:-2px;}spw-sidenav-group{}spw-sidenav-group [type=search]::-webkit-search-decoration{-webkit-appearance:none}spw-sidenav-group{}spw-sidenav-group ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}spw-sidenav-group{}spw-sidenav-group details{display:block}spw-sidenav-group{}spw-sidenav-group summary{display:list-item}spw-sidenav-group{}spw-sidenav-group template{display:none}spw-sidenav-group{}spw-sidenav-group [hidden]{display:none}:host{display:block}.spw-sidenav-group__content{padding-left:30px;position:relative}.spw-sidenav-group__content:before{content:"";position:absolute;top:6px;left:12px;width:1px;height:calc(100% - 12px);background-color:var(--spw-colors-support-grey-grey-300)}';export{n as spw_sidenav_group}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as s,a}from"./p-mthi2pFj.js";const i=class{constructor(t){e(this,t),this.hasImage=!1,this.childHoveredCount=0,this.variant="news",this.elementType="a",this.target="_self",this.monthLabels=["jan","fév","mar","avr","mai","jun","jul","aoû","sep","oct","nov","déc"],this.fromLabel="du",this.toLabel="au",this.fullHeight=!1,this.disabled=!1,this.onNestedCardEnter=()=>{this.childHoveredCount++,this.setImageHovered(!1)},this.onNestedCardLeave=()=>{this.childHoveredCount=Math.max(0,this.childHoveredCount-1),0===this.childHoveredCount&&this.isPointerInside(this.el)&&this.setImageHovered(!0)}}componentWillLoad(){this.checkForImage(),this.applyVariantToChildren(),this.attachNestedCardListeners()}slotChanged(){this.checkForImage(),this.applyVariantToChildren(),this.attachNestedCardListeners()}onMouseEnter(){0===this.childHoveredCount&&this.setImageHovered(!0)}onMouseLeave(){this.setImageHovered(!1)}attachNestedCardListeners(){requestAnimationFrame((()=>{this.el.querySelectorAll("spw-card").forEach((e=>{e.addEventListener("mouseenter",this.onNestedCardEnter.bind(this),!0),e.addEventListener("mouseleave",this.onNestedCardLeave.bind(this),!0)}))}))}isPointerInside(e){const t=e.getBoundingClientRect(),{left:s,top:a,right:i,bottom:n}=t,{clientX:o,clientY:r}=window;return o>=s&&o<=i&&r>=a&&r<=n}checkForImage(){requestAnimationFrame((()=>{const e=this.el.querySelector("spw-card-image"),t=this.el.querySelector("spw-card-content");this.hasImage=!!e,this.hasImage||null==t||t.classList.add("--no-image")}))}formatDate(e){var s;if(!e)return[];const[a,i]=e.split("/"),n=parseInt(i,10)-1,o=null!==(s=this.monthLabels[n])&&void 0!==s?s:i;return[t("span",{class:"spw-card__date-day"},a),t("span",{class:"spw-card__date-month"},o)]}applyVariantToChildren(){requestAnimationFrame((()=>{const e=`--${this.variant}`,t=this.el.querySelector("spw-card-content"),s=this.el.querySelector("spw-card-image"),a=this.el.querySelector("spw-card-title"),i=this.el.querySelector("spw-card-excerpt"),n=this.el.querySelector("spw-card-subtags");null==t||t.classList.add(e),null==s||s.classList.add(e),null==a||a.classList.add(e),null==i||i.classList.add(e),null==n||n.classList.add(e)}))}setImageHovered(e){const t=this.el.querySelector("spw-card-image"),s=this.el.querySelector("spw-card-title");t&&this.href&&t.classList.toggle("--hovered",e),s&&this.href&&s.classList.toggle("--hovered",e)}get elementClass(){return{"spw-card":!0,"spw-card--hoverable":!!this.href,"spw-card--no-image":!this.hasImage,[`spw-card--${this.variant}`]:!0,"spw-card--has-2-dates":"event"===this.variant&&!(!this.dateStart||!this.dateEnd)}}render(){const{href:e,rel:a,target:i,dateStart:n,dateEnd:o,variant:r}=this,d=void 0===this.href?"div":"a",c="div"===d?{}:{href:e,rel:a,target:i},p={"aria-label":null==this?void 0:this.accAriaLabel,"aria-disabled":this.disabled?"true":null};return t(s,{key:"adc8c36f6ee2d9440fab46ff732fda4ca6d840bd",class:{"--is-full-height":this.fullHeight}},t("article",{key:"eda570f1ff4415a4e3486ce9c6c14e343ee58a1c",class:this.elementClass},("event"===r||"news"===r)&&t(d,Object.assign({key:"baa0498a12a09e3bc0802fb09d411362b269efdc"},c,{class:{"spw-card__dates":!0,"spw-card__dates--range":!(!n||!o),"spw-card__dates--single":!(!n||o)}}),n&&t("div",{key:"da816ddfe4ac8e47c051cf5e85a6f6514962c833",class:"spw-card__date-item"},t("div",{key:"297218bc0df2beeaa793c0a263afe11d43d55676",class:"spw-card__date-content"},o&&t("span",{key:"906cdae7d332cf4325437470645de30570c6d10e",class:"spw-card__date-label"},this.fromLabel),this.formatDate(n))),o&&t("div",{key:"9d0ca22655e1cb73650f636744a4c9fe7dbd4fdd",class:"spw-card__date-item"},t("div",{key:"c61caa80b430fad452351fdfbb7f165c7ad173c3",class:"spw-card__date-content"},t("span",{key:"40c39750eca8dedcca27b9b877f0b07c86960c20",class:"spw-card__date-label"},this.toLabel),this.formatDate(o)))),t(d,Object.assign({key:"6630e5b98591f1b88619e15027deb82ea8176e55"},c,p,{class:"spw-card__link"}),t("slot",{key:"5fdbf048d74dae2a3bb083cf306b1a05ec35e1c1"}))))}get el(){return a(this)}};i.style='@charset "UTF-8";: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;width:100%;--spw-card-background:var(--spw-ds-white);--spw-card-box-shadow:var(--spw-effect-elevation-6);--spw-card-border:none}:host[data-modal-trigger]{cursor:pointer}:host(.--is-full-height){height:100%}.spw-card{display:block;border-radius:5px;background:var(--spw-card-background);box-shadow:var(--spw-card-box-shadow);border:var(--spw-card-border);transition:all 0.3s ease-in-out}:host(.--is-full-height) .spw-card{height:100%}.spw-card--hoverable:hover{box-shadow:var(--spw-effect-elevation-4);transform:translateY(-5px)}.spw-card__dates{cursor:pointer;position:absolute;top:50%;left:25px;transform:translate(0, -50%);flex-direction:column;line-height:1.1;width:50px;text-align:center;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;z-index:6}.spw-card__dates--single{top:auto;transform:none;bottom:24px}.spw-card--no-image.spw-card--event .spw-card__dates{left:15px}.spw-card--news .spw-card__dates{left:auto;right:16px;top:16px;bottom:auto;transform:none}.spw-card__date-item{text-align:center;margin:4px 0}.spw-card__date-label{display:block;font-size:12px;color:var(--spw-color-themes-grey-grey-600);margin-bottom:4px}.spw-card__date-day{font-size:18px;font-weight:bold;display:block;color:var(--spw-color-themes-grey-grey-900)}.spw-card__date-month{font-size:12px;display:block;color:var(--spw-color-themes-grey-grey-900)}.spw-card__date-content{padding:8px 12px;background:white;border-radius:6px}.spw-card__link{display:block;height:100%;width:100%;color:inherit;text-decoration:none}.spw-card--no-image .spw-card__link{padding-top:15px}.spw-card--no-image.spw-card--event .spw-card__link{padding-top:0}.spw-card__link:focus-visible{outline:3px solid white;outline-offset:-1px;box-shadow:0 0 0 5px black;border-radius:5px}.spw-card--vertical .spw-card__link,.spw-card--video .spw-card__link{display:flex;min-height:240px}.spw-card--has-2-dates .spw-card__link{min-height:180px}.spw-card--event{position:relative}.spw-card--event .spw-card__link{display:flex}.spw-card--sidebar{box-shadow:none}.spw-card--sidebar:hover{box-shadow:none}.spw-card--sidebar .spw-card__link{display:flex;gap:16px}.spw-card--rounded-picture{box-shadow:none;background:transparent}.spw-card--rounded-picture:hover{box-shadow:none}.spw-card--rounded-picture .spw-card__link{display:flex;flex-direction:column}';export{i as spw_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,a as i}from"./p-DkNryMko.js";const o=class{constructor(e){t(this,e),this.valueChanged=s(this,"valueChanged",7),this.optionCreated=s(this,"optionCreated",7),this.optionRemoved=s(this,"optionRemoved",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.parentScrollContainer=null,this.isOpen=!1,this.parsedOptions=[],this.focusedOptionIndex=null,this.searchText="",this.hasSlottedFooter=!1,this.dropdownDirection="down",this.hasSelectedValue=!1,this.dropdownPosition={top:0,left:0,width:0},this.value=[],this.label="",this.placeholder="Sélectionnez une option",this.searchPlaceholder="Entrez votre recherche",this.noResultsText="Aucun résultat trouvé",this.required=!1,this.size="medium",this.multiple=!1,this.isSearch=!1,this.error="",this.hint="",this.success="",this.warning="",this.showErrorIcon=!0,this.showHintIcon=!0,this.showSuccessIcon=!0,this.showWarningIcon=!0,this.isExpandable=!1,this.tooltipDirection="top",this.tooltipCursor="help",this.fixedDropdown=!1,this.isClear=!1,this.direction="auto",this.allowCreate=!1,this.handleOtherSelectOpened=t=>{t.detail.instance!==this.host&&this.isOpen&&this.closeDropdown()},this.handleClickOutside=t=>{var s,e;if(this.isOpen){const i=t.composedPath(),o=i[0],c=this.host.contains(o),r=null===(s=this.host.shadowRoot)||void 0===s?void 0:s.querySelector(".spw-custom-select__search-input"),n=null==r?void 0:r.contains(o),l=this.hostElement.querySelector('[slot="footer"]'),a=!!l&&i.includes(l);if(!c&&!n&&!a){if(this.multiple){const t=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".spw-custom-select__options");if(t&&t.contains(o))return}this.closeDropdown()}}},this.updateDropdownPosition=()=>{if(!this.selectContainer)return;const t=this.selectContainer.getBoundingClientRect(),s=window.innerHeight;this.dropdownDirection="top"===this.direction?"up":"bottom"===this.direction?"down":t.bottom+200>s&&t.top>200?"up":"down",this.dropdownPosition={top:t.bottom,left:t.left,width:t.width}}}componentWillLoad(){if(this.multiple)if("string"==typeof this.value)try{this.internalValue=JSON.parse(this.value)}catch(t){this.internalValue=[]}else this.internalValue=Array.isArray(this.value)?this.value:[];else this.internalValue=this.value;this.defaultValue=this.internalValue,this.items&&this.parseOptions(this.items),this.updateSelectedOption()}async setFocus(){var t,s;const e=null===(t=this.host)||void 0===t?void 0:t.querySelector(".spw-custom-select__search-input");e?e.focus():null===(s=this.selectContainer)||void 0===s||s.focus()}async resetSelect(){this.multiple?(this.internalValue=[],this.value=[]):(this.internalValue="",this.value=""),this.searchText="",this.focusedOptionIndex=null,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async setValue(t){this.multiple?(this.internalValue=Array.isArray(t)?t:[t],this.value=this.internalValue):(this.internalValue=t,this.value=t),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async getValue(){return this.internalValue}formResetCallback(){this.setValue(this.defaultValue)}componentDidLoad(){this.internals.setFormValue(this.getFormValue());const t=this.hostElement.querySelector('[slot="footer"]');this.hasSlottedFooter=!!t}connectedCallback(){document.addEventListener("click",this.handleClickOutside,!0),document.addEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.addEventListener("scroll",this.updateDropdownPosition,!0),window.addEventListener("resize",this.updateDropdownPosition)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.removeEventListener("scroll",this.updateDropdownPosition,!0),window.removeEventListener("resize",this.updateDropdownPosition),this.cleanupParentScrollListener(),this.isOpen=!1}findParentComponent(){if(!this.fixedDropdownParent)return null;let t=this.hostElement;for(;t;){if(t instanceof HTMLElement&&t.tagName.toLowerCase()===this.fixedDropdownParent.toLowerCase())return t;if(t.parentElement)t=t.parentElement;else{const s=t.getRootNode();if(!(s instanceof ShadowRoot))break;t=s.host}}return null}findScrollContainerInShadowRoot(t){const s=t.shadowRoot;if(!s)return null;const e=s.querySelectorAll("*");let i=null,o=-1;for(const t of Array.from(e)){const e=t,c=window.getComputedStyle(e);if("auto"===c.overflow||"scroll"===c.overflow||"auto"===c.overflowY||"scroll"===c.overflowY){let c=0,r=t;for(;r&&r!==s;)c++,r=r.parentNode;c>o&&(o=c,i=e)}}return i}ensureParentScrollListener(){if(!this.fixedDropdownParent||!this.fixedDropdown)return;if(this.parentScrollContainer)return;const t=this.findParentComponent();t&&(this.parentScrollContainer=this.findScrollContainerInShadowRoot(t),this.parentScrollContainer&&this.parentScrollContainer.addEventListener("scroll",this.updateDropdownPosition))}cleanupParentScrollListener(){this.parentScrollContainer&&(this.parentScrollContainer.removeEventListener("scroll",this.updateDropdownPosition),this.parentScrollContainer=null)}parseOptions(t){try{this.parsedOptions=Array.isArray(t)?t.map((t=>({value:t.value,label:t.label,disabled:t.disabled||!1}))):[],this.updateSelectedOption()}catch(t){this.parsedOptions=[]}}valueChangedHandler(t){this.internalValue=this.multiple?Array.isArray(t)?t:[t]:t,this.updateSelectedOption(),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue)}updateSelectedOption(){this.internals.setFormValue(this.getFormValue()),this.multiple||void 0===this.internalValue?this.multiple&&Array.isArray(this.internalValue)&&(this.internalValue=this.internalValue.filter((t=>this.parsedOptions.some((s=>String(s.value)===String(t))))).sort(((t,s)=>this.parsedOptions.findIndex((s=>String(s.value)===String(t)))-this.parsedOptions.findIndex((t=>String(t.value)===String(s)))))):this.focusedOptionIndex=this.parsedOptions.findIndex((t=>String(t.value)===String(this.internalValue)))}internalValueChanged(){this.hasSelectedValue=Array.isArray(this.internalValue)?this.internalValue.length>0:Boolean(this.internalValue)}getFormValue(){return this.multiple?Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((t=>String(t))).join(","):null:this.internalValue?String(this.internalValue):null}toggleDropdown(t){if(!this.disabled){if(t){if(t.composedPath()[0].classList.contains("spw-custom-select__search-input"))return;t.stopPropagation()}this.determineDropdownDirection();const s=this.isOpen;this.isOpen=!this.isOpen,this.isOpen&&!s&&(this.ensureParentScrollListener(),this.notifyOtherSelects()),this.isOpen||(this.focusedOptionIndex=null)}}notifyOtherSelects(){const t=new CustomEvent("spw-custom-select-opened",{detail:{instance:this.host},bubbles:!0,composed:!0});document.dispatchEvent(t)}determineDropdownDirection(){this.updateDropdownPosition()}openDropdownWithKeyboard(){this.determineDropdownDirection(),this.isOpen=!0,this.focusedOptionIndex=0,this.ensureParentScrollListener(),this.notifyOtherSelects()}closeDropdown(){this.isOpen=!1,this.focusedOptionIndex=null,this.searchText=""}addCreatedOption(t){const s=t.trim();if(!s)return;const e=s,i={label:s,value:e,created:!0};this.parsedOptions=[...this.parsedOptions,i],this.optionCreated.emit(i),this.selectOption(e),this.searchText=""}removeCreatedOption(t,s){if(s.stopPropagation(),this.multiple){const s=this.internalValue.findIndex((s=>String(s)===String(t.value)));s>-1&&(this.internalValue=[...this.internalValue.slice(0,s),...this.internalValue.slice(s+1)],this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue))}else String(this.internalValue)===String(t.value)&&(this.internalValue="",this.value="",this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue));this.parsedOptions=this.parsedOptions.filter((s=>String(s.value)!==String(t.value))),this.optionRemoved.emit(t)}handleClear(t){t.stopPropagation(),this.resetSelect()}selectOption(t,s){s&&s.stopPropagation();const e=this.parsedOptions.find((s=>String(s.value)===String(t)));if(!(null==e?void 0:e.disabled)){if(this.multiple){const s=this.internalValue.findIndex((s=>String(s)===String(t)));this.internalValue=s>-1?[...this.internalValue.slice(0,s),...this.internalValue.slice(s+1)]:[...this.internalValue,t],this.internalValue=this.internalValue.sort(((t,s)=>this.parsedOptions.findIndex((s=>String(s.value)===String(t)))-this.parsedOptions.findIndex((t=>String(t.value)===String(s)))))}else this.internalValue=t,this.closeDropdown();this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}}handleOptionKeyDown(t,s){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.selectOption(s))}handleKeyDown(t){var s,e;if(!t.target.classList.contains("spw-custom-select__search-input"))switch(t.key){case" ":t.preventDefault(),this.isOpen||this.openDropdownWithKeyboard();break;case"ArrowDown":if(t.preventDefault(),this.isOpen){let t=null===this.focusedOptionIndex?0:(this.focusedOptionIndex+1)%this.parsedOptions.length;for(;(null===(s=this.parsedOptions[t])||void 0===s?void 0:s.disabled)&&t!==this.focusedOptionIndex;)t=(t+1)%this.parsedOptions.length;this.focusedOptionIndex=t}else this.openDropdownWithKeyboard();break;case"ArrowUp":if(t.preventDefault(),this.isOpen){let t=null===this.focusedOptionIndex?this.parsedOptions.length-1:(this.focusedOptionIndex-1+this.parsedOptions.length)%this.parsedOptions.length;for(;(null===(e=this.parsedOptions[t])||void 0===e?void 0:e.disabled)&&t!==this.focusedOptionIndex;)t=(t-1+this.parsedOptions.length)%this.parsedOptions.length;this.focusedOptionIndex=t}break;case"Enter":t.preventDefault(),this.isOpen&&null!==this.focusedOptionIndex&&this.selectOption(this.parsedOptions[this.focusedOptionIndex].value);break;case"Escape":this.isOpen&&this.closeDropdown()}}renderMessages(){const t=[];return this.error&&t.push({variant:"error",text:this.error,showIcon:this.showErrorIcon}),this.hint&&t.push({variant:"hint",text:this.hint,showIcon:this.showHintIcon}),this.success&&t.push({variant:"success",text:this.success,showIcon:this.showSuccessIcon}),this.warning&&t.push({variant:"warning",text:this.warning,showIcon:this.showWarningIcon}),t.map(((s,i)=>{const o=i===t.length-1;return e("spw-field-message",{variant:s.variant,showIcon:s.showIcon,isExpandable:o&&this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},s.text,o&&e("slot",{name:"details",slot:"details"}))}))}get elementClass(){const t=this.showCreateButton();return{"spw-custom-select":!0,[`spw-custom-select--${this.size}`]:!0,[`spw-custom-select--${this.dropdownDirection}`]:!0,"spw-custom-select--is-error":!!this.error,"spw-custom-select--disabled":this.disabled,"spw-custom-select--is-opened":this.isOpen,"spw-custom-select--has-value":this.hasSelectedValue,"spw-custom-select--no-value":!this.hasSelectedValue,"spw-custom-select--is-searchable":this.isSearch,"spw-custom-select--not-searchable":!this.isSearch,"spw-custom-select--is-clear":this.isClear&&(this.hasSelectedValue||!!this.searchText),"spw-custom-select--show-create":t}}normalizeString(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}getSelectedLabels(){if(this.multiple)return Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((t=>{var s;return null===(s=this.parsedOptions.find((s=>String(s.value)===String(t))))||void 0===s?void 0:s.label})).filter(Boolean).join(", "):null;{const t=this.parsedOptions.find((t=>String(t.value)===String(this.internalValue)));return t?t.label:null}}getFilteredOptions(){const t=this.normalizeString(this.searchText);return this.parsedOptions.filter((s=>this.normalizeString(s.label).includes(t)))}handleSearchInput(t){this.searchText=t.target.value,this.focusedOptionIndex=0,this.isOpen||(this.isOpen=!0,this.ensureParentScrollListener(),this.notifyOtherSelects())}isSearchVisible(){return!!this.isSearch&&(!this.hasSelectedValue&&!this.isOpen||!(!this.isSearch||!this.isOpen)||this.isOpen)}showPlaceholder(){return!this.isSearch&&!this.hasSelectedValue}showCreateButton(){if(!this.allowCreate||!this.isSearch||!this.searchText.trim())return!1;const t=this.normalizeString(this.searchText.trim());return!this.parsedOptions.some((s=>this.normalizeString(s.label)===t))}render(){const t=this.getFilteredOptions(),s=this.showPlaceholder(),i=this.showCreateButton();return e("div",{key:"358422a9b9a98c9c09f1d17fa7ba4080a7159afa",class:this.elementClass,ref:t=>this.host=t},this.label&&e("spw-field-label",{key:"c03aec8b695cf0a825db43e68de0c5d73e2c3711",label:this.label,name:this.name,required:this.required,tooltipTitle:this.tooltipTitle,tooltipText:this.tooltipText,tooltipMaxWidth:this.tooltipMaxWidth,tooltipDirection:this.tooltipDirection,tooltipCursor:this.tooltipCursor}),this.assistiveText&&e("spw-field-message",{key:"e4443485205447a46a97d1416c4c20e7b7c50664",class:"spw-custom-select__field-message",variant:"hint",showIcon:!1},this.assistiveText),e("div",{key:"470d2a5091f0ccc314b090d7da5c4dfa71e663e1",class:"spw-custom-select__wrapper"},e("div",{key:"5b28939e3c2104610f982919c8dc7c4929157a44",class:"spw-custom-select__container",id:this.name,ref:t=>this.selectContainer=t,onClick:t=>this.toggleDropdown(t),onKeyDown:t=>this.handleKeyDown(t),tabindex:this.disabled?-1:0},e("div",{key:"c37c002dd4572207202670017b42c9944eddfbbe",class:"spw-custom-select__selected"},this.isSearchVisible()&&e("div",{key:"5ca297ad620ec490a1b5d35b12eef662ef09a64c",class:"spw-custom-select__search"},e("input",{key:"f587c3ed01eccfc1ae99070bf9a751361615ca89",class:"spw-custom-select__search-input",placeholder:this.searchPlaceholder,onInput:t=>this.handleSearchInput(t),value:this.searchText}),i&&this.isOpen&&this.hasSelectedValue&&e("button",{key:"2c37918104f234acd59c5df67006e0f37d868f0b",class:"spw-custom-select__create-btn spw-custom-select__create-btn--big",type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),this.addCreatedOption(this.searchText)}},e("spw-icon",{key:"4476c023c17f721e093de039c70082113b168db6",icon:"fa-plus"}))),s&&e("span",{key:"1d917d4155dab1b047465e9793b63630a843cae0"},this.placeholder),this.multiple&&this.internalValue.length>0&&e("div",{key:"8bdd3159992bd8d00f7afb896b58003836e51ea8",class:"spw-custom-select__selected-items"},this.internalValue.map((t=>{var s;return e("span",{class:"spw-custom-select__selected-item"},null===(s=this.parsedOptions.find((s=>String(s.value)===String(t))))||void 0===s?void 0:s.label,e("spw-icon",{icon:"fa-times",class:"spw-custom-select__deselect-icon",onClick:s=>this.selectOption(t,s)}))}))),!this.multiple&&e("span",{key:"2334df86497700a0e25ef4a1ee68115af3bc349d"},this.getSelectedLabels()))),e("div",{key:"98d6b1565b711b28fbb348ee2877bba0e3590ba1",class:"spw-custom-select__icons"},i&&!(this.isOpen&&this.hasSelectedValue)&&e("button",{key:"f0e2e6e174ed5b030a2f9f4f1e82f9960b95a211",class:"spw-custom-select__create-btn",type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),this.addCreatedOption(this.searchText)}},e("spw-icon",{key:"9b2f777e859c8be971dc7a069aae7822aa3c6ab1",icon:"fa-plus"})),this.isClear&&(this.hasSelectedValue||!!this.searchText)&&e("span",{key:"e9a9553430abc3ac47f966fd4a132dbcaf9e2931",class:"spw-custom-select__clear",onClick:t=>this.handleClear(t)},e("spw-icon",{key:"98169855a2c9ff794e6897c96f27bff254464592",icon:"fa-xmark"})),e("div",{key:"e7bac72b7a065e1e35e2a016f0f985600caa43b2",class:"spw-custom-select__arrow"},e("spw-icon",{key:"b7ce78ce337e69778035b5d53823c0265772de5c",icon:this.isOpen?"fa-chevron-up":"fa-chevron-down"}))),this.isOpen&&e("div",{key:"932a38100e78e64707f2d9014e381be024e9495c",class:{"spw-custom-select__options":!0,[`spw-custom-select__options--${this.dropdownDirection}`]:!0,"spw-custom-select__options--fixed":this.fixedDropdown},style:this.fixedDropdown?{position:"fixed",top:`${this.dropdownPosition.top}px`,left:`${this.dropdownPosition.left}px`,width:`${this.dropdownPosition.width}px`}:{}},e("div",{key:"b6bfe9801edf04781cf0e90b3d4df21749f885b6",class:"spw-custom-select__options-list"},!!t.length&&e("ul",{key:"0d44ccae774e2dd839529508fc2971fb607e82b7"},t.map(((t,s)=>e("li",{class:{"spw-custom-select__option":!0,"spw-custom-select__option--selected":this.multiple?this.internalValue.some((s=>String(s)===String(t.value))):t.value===this.internalValue,"spw-custom-select__option--focused":s===this.focusedOptionIndex,"spw-custom-select__option--disabled":t.disabled,"spw-custom-select__option--created":!!t.created},onClick:()=>this.selectOption(t.value)},this.multiple&&e("spw-checkbox",{onKeyDown:s=>this.handleOptionKeyDown(s,t.value),class:"spw-custom-select__checkbox",checked:this.internalValue.some((s=>String(s)===String(t.value))),disabled:t.disabled}),t.label,t.created&&e("spw-icon",{class:"spw-custom-select__option-remove",icon:"fa-trash",onClick:s=>this.removeCreatedOption(t,s)}))))),!t.length&&e("p",{key:"d7f15a608b4fe19c10ccf365f7647c9c0b831412",class:"spw-custom-select__no-results"},this.noResultsText)),this.hasSlottedFooter&&e("div",{key:"1142b7c96b8a3e6b49a445cb4cfc5427620d1199",class:"spw-custom-select__options-footer"},e("slot",{key:"487e3993d95680d914481695ada22ce6dbc7a250",name:"footer"})))),this.renderMessages())}static get formAssociated(){return!0}get hostElement(){return i(this)}static get watchers(){return{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}}};o.style=":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-custom-select{position:relative}.spw-custom-select__field-message{margin-bottom:8px;margin-top:-4px}.spw-custom-select__checkbox{margin-right:8px}.spw-custom-select__container{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;padding:0 12px;line-height:40px;border-radius:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background-color:#fff}.spw-custom-select__container:hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-custom-select__container:focus-within,.spw-custom-select__container:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black}.spw-custom-select--disabled .spw-custom-select__container{border-color:var(--spw-color-themes-grey-grey-400);background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-500);cursor:not-allowed}.spw-custom-select--disabled .spw-custom-select__container::placeholder{color:var(--spw-color-themes-grey-grey-500)}.spw-custom-select--disabled .spw-custom-select__container:hover,.spw-custom-select--disabled .spw-custom-select__container:focus,.spw-custom-select--disabled .spw-custom-select__container:focus-visible{outline:none}.spw-custom-select--is-error .spw-custom-select__container{border-color:var(--spw-colors-states-error-error-300)}.spw-custom-select--large .spw-custom-select__container{height:60px;padding:0 24px;line-height:60px}.spw-custom-select--is-opened .spw-custom-select__container{height:auto;line-height:1;min-height:40px}.spw-custom-select--is-opened.spw-custom-select--down .spw-custom-select__container{border-radius:4px 4px 0 0;border-bottom-color:transparent}.spw-custom-select--is-opened.spw-custom-select--up .spw-custom-select__container{border-radius:0 0 4px 4px;border-top-color:transparent}.spw-custom-select__selected{flex:1;padding-right:30px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.spw-custom-select__selected span{white-space:nowrap}.spw-custom-select--is-clear .spw-custom-select__selected{padding-right:58px}.spw-custom-select__selected-item{display:inline-flex;align-items:center;gap:6px;color:var(--spw-color-themes-grey-grey-900);border:1px solid var(--spw-color-themes-grey-grey-900);background:var(--spw-color-themes-grey-grey-200);line-height:24px;height:24px;padding:0 8px;margin:4px 6px 2px 0;border-radius:999px;font-size:14px;user-select:none}.spw-custom-select__selected-items{flex:1;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.spw-custom-select--is-opened .spw-custom-select__selected-items{padding-top:3px;padding-bottom:4px;overflow:visible;text-overflow:initial;text-wrap:initial}.spw-custom-select__icons{display:flex;align-items:center;position:absolute;top:50%;right:12px;gap:8px;pointer-events:none;transform:translateY(-50%);z-index:12}.spw-custom-select--large .spw-custom-select__icons{right:24px}.spw-custom-select__clear{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;pointer-events:auto;cursor:pointer;padding:2px;font-size:16px;transition:all 0.2s ease-in}.spw-custom-select__clear:hover{color:var(--spw-ds-primary)}.spw-custom-select__arrow{font-size:16px;color:var(--spw-color-themes-grey-grey-900);pointer-events:none}.spw-custom-select__wrapper{position:relative}.spw-custom-select--is-opened .spw-custom-select__search{position:absolute;top:0;left:0;z-index:14;width:100%;margin-top:1px;display:flex;align-items:center}.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:100%;margin-top:-3px;padding:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background:white}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:-100%;margin-top:-7px}.spw-custom-select__search-input{padding:0;height:38px;line-height:40px;border:none;margin:0;width:calc(100% - 30px);background:transparent;text-overflow:ellipsis}.spw-custom-select--is-clear .spw-custom-select__search-input{width:calc(100% - 58px)}.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 66px)}.spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 94px)}.spw-custom-select__search-input:focus{outline:none}.spw-custom-select--is-opened .spw-custom-select__search-input{border-left:1px solid var(--spw-color-themes-grey-grey-800);padding:0 12px}.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input{border:1px solid var(--spw-color-themes-grey-grey-800);flex:1;width:auto;border-radius:3px}.spw-custom-select__create-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0;padding-top:2px;width:28px;line-height:28px;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:100px;background:#fff;cursor:pointer;color:var(--spw-color-themes-grey-grey-900);font-size:14px;pointer-events:auto;transition:background 0.15s ease, border-color 0.15s ease}.spw-custom-select__create-btn:hover{background:var(--spw-color-themes-grey-grey-200);border-color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__create-btn:focus-visible{outline:3px solid white;box-shadow:0 0 0 6px black}.spw-custom-select__create-btn--big{width:38px;height:38px;border-radius:4px;margin-left:4px;padding-top:0}.spw-custom-select__options{background-color:#fff;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:0 0 4px 4px;overflow:hidden;z-index:9999;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1)}.spw-custom-select__options:not(.spw-custom-select__options--fixed){position:absolute;top:100%;left:0;width:100%;margin-top:-1px}.spw-custom-select__options--up:not(.spw-custom-select__options--fixed){top:0;transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:0}.spw-custom-select__options--fixed.spw-custom-select__options--down{transform:translateY(0)}.spw-custom-select__options--fixed.spw-custom-select__options--up{transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:-40px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:-86px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:-46px}.spw-custom-select__options-list{max-height:200px;overflow-y:auto}.spw-custom-select__options-list::-webkit-scrollbar{width:14px;height:14px}.spw-custom-select__options-list::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-custom-select__options-list::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-custom-select__options-list{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-custom-select__options-footer{border-top:1px solid var(--spw-color-themes-grey-grey-900);padding:8px;background-color:#fff}.spw-custom-select__no-results{padding:12px;cursor:not-allowed;color:var(--spw-color-themes-grey-grey-600)}.spw-custom-select__option{display:flex;align-items:center;border-bottom:1px solid var(--spw-color-themes-grey-grey-900);padding:12px;cursor:pointer}.spw-custom-select__option:hover{background-color:var(--spw-color-themes-grey-grey-200)}.spw-custom-select__option:last-child{border-bottom:none}.spw-custom-select__option--selected{font-weight:700}.spw-custom-select__option--disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.spw-custom-select__option--disabled:hover{background-color:transparent}.spw-custom-select__option--created{justify-content:space-between}.spw-custom-select__option-remove{padding-left:4px;margin-left:auto;flex-shrink:0;font-size:14px;color:var(--spw-color-themes-grey-grey-600);transition:color 0.15s ease}.spw-custom-select__option-remove:hover{color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__error{display:block;font-size:12px;color:var(--spw-color-themes-grey-grey-600);margin-top:8px}.spw-custom-select__option--focused{background-color:var(--spw-color-themes-grey-grey-300)}";export{o as spw_custom_select}
|
|
1
|
+
import{r as t,c as s,h as e,a as i}from"./p-mthi2pFj.js";const o=class{constructor(e){t(this,e),this.valueChanged=s(this,"valueChanged",7),this.optionCreated=s(this,"optionCreated",7),this.optionRemoved=s(this,"optionRemoved",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.parentScrollContainer=null,this.isOpen=!1,this.parsedOptions=[],this.focusedOptionIndex=null,this.searchText="",this.hasSlottedFooter=!1,this.dropdownDirection="down",this.hasSelectedValue=!1,this.dropdownPosition={top:0,left:0,width:0},this.value=[],this.label="",this.placeholder="Sélectionnez une option",this.searchPlaceholder="Entrez votre recherche",this.noResultsText="Aucun résultat trouvé",this.required=!1,this.size="medium",this.multiple=!1,this.isSearch=!1,this.error="",this.hint="",this.success="",this.warning="",this.showErrorIcon=!0,this.showHintIcon=!0,this.showSuccessIcon=!0,this.showWarningIcon=!0,this.isExpandable=!1,this.tooltipDirection="top",this.tooltipCursor="help",this.fixedDropdown=!1,this.isClear=!1,this.direction="auto",this.allowCreate=!1,this.handleOtherSelectOpened=t=>{t.detail.instance!==this.host&&this.isOpen&&this.closeDropdown()},this.handleClickOutside=t=>{var s,e;if(this.isOpen){const i=t.composedPath(),o=i[0],c=this.host.contains(o),r=null===(s=this.host.shadowRoot)||void 0===s?void 0:s.querySelector(".spw-custom-select__search-input"),n=null==r?void 0:r.contains(o),l=this.hostElement.querySelector('[slot="footer"]'),a=!!l&&i.includes(l);if(!c&&!n&&!a){if(this.multiple){const t=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".spw-custom-select__options");if(t&&t.contains(o))return}this.closeDropdown()}}},this.updateDropdownPosition=()=>{if(!this.selectContainer)return;const t=this.selectContainer.getBoundingClientRect(),s=window.innerHeight;this.dropdownDirection="top"===this.direction?"up":"bottom"===this.direction?"down":t.bottom+200>s&&t.top>200?"up":"down",this.dropdownPosition={top:t.bottom,left:t.left,width:t.width}}}componentWillLoad(){if(this.multiple)if("string"==typeof this.value)try{this.internalValue=JSON.parse(this.value)}catch(t){this.internalValue=[]}else this.internalValue=Array.isArray(this.value)?this.value:[];else this.internalValue=this.value;this.defaultValue=this.internalValue,this.items&&this.parseOptions(this.items),this.updateSelectedOption()}async setFocus(){var t,s;const e=null===(t=this.host)||void 0===t?void 0:t.querySelector(".spw-custom-select__search-input");e?e.focus():null===(s=this.selectContainer)||void 0===s||s.focus()}async resetSelect(){this.multiple?(this.internalValue=[],this.value=[]):(this.internalValue="",this.value=""),this.searchText="",this.focusedOptionIndex=null,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async setValue(t){this.multiple?(this.internalValue=Array.isArray(t)?t:[t],this.value=this.internalValue):(this.internalValue=t,this.value=t),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async getValue(){return this.internalValue}formResetCallback(){this.setValue(this.defaultValue)}componentDidLoad(){this.internals.setFormValue(this.getFormValue());const t=this.hostElement.querySelector('[slot="footer"]');this.hasSlottedFooter=!!t}connectedCallback(){document.addEventListener("click",this.handleClickOutside,!0),document.addEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.addEventListener("scroll",this.updateDropdownPosition,!0),window.addEventListener("resize",this.updateDropdownPosition)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.removeEventListener("scroll",this.updateDropdownPosition,!0),window.removeEventListener("resize",this.updateDropdownPosition),this.cleanupParentScrollListener(),this.isOpen=!1}findParentComponent(){if(!this.fixedDropdownParent)return null;let t=this.hostElement;for(;t;){if(t instanceof HTMLElement&&t.tagName.toLowerCase()===this.fixedDropdownParent.toLowerCase())return t;if(t.parentElement)t=t.parentElement;else{const s=t.getRootNode();if(!(s instanceof ShadowRoot))break;t=s.host}}return null}findScrollContainerInShadowRoot(t){const s=t.shadowRoot;if(!s)return null;const e=s.querySelectorAll("*");let i=null,o=-1;for(const t of Array.from(e)){const e=t,c=window.getComputedStyle(e);if("auto"===c.overflow||"scroll"===c.overflow||"auto"===c.overflowY||"scroll"===c.overflowY){let c=0,r=t;for(;r&&r!==s;)c++,r=r.parentNode;c>o&&(o=c,i=e)}}return i}ensureParentScrollListener(){if(!this.fixedDropdownParent||!this.fixedDropdown)return;if(this.parentScrollContainer)return;const t=this.findParentComponent();t&&(this.parentScrollContainer=this.findScrollContainerInShadowRoot(t),this.parentScrollContainer&&this.parentScrollContainer.addEventListener("scroll",this.updateDropdownPosition))}cleanupParentScrollListener(){this.parentScrollContainer&&(this.parentScrollContainer.removeEventListener("scroll",this.updateDropdownPosition),this.parentScrollContainer=null)}parseOptions(t){try{this.parsedOptions=Array.isArray(t)?t.map((t=>({value:t.value,label:t.label,disabled:t.disabled||!1}))):[],this.updateSelectedOption()}catch(t){this.parsedOptions=[]}}valueChangedHandler(t){this.internalValue=this.multiple?Array.isArray(t)?t:[t]:t,this.updateSelectedOption(),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue)}updateSelectedOption(){this.internals.setFormValue(this.getFormValue()),this.multiple||void 0===this.internalValue?this.multiple&&Array.isArray(this.internalValue)&&(this.internalValue=this.internalValue.filter((t=>this.parsedOptions.some((s=>String(s.value)===String(t))))).sort(((t,s)=>this.parsedOptions.findIndex((s=>String(s.value)===String(t)))-this.parsedOptions.findIndex((t=>String(t.value)===String(s)))))):this.focusedOptionIndex=this.parsedOptions.findIndex((t=>String(t.value)===String(this.internalValue)))}internalValueChanged(){this.hasSelectedValue=Array.isArray(this.internalValue)?this.internalValue.length>0:Boolean(this.internalValue)}getFormValue(){return this.multiple?Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((t=>String(t))).join(","):null:this.internalValue?String(this.internalValue):null}toggleDropdown(t){if(!this.disabled){if(t){if(t.composedPath()[0].classList.contains("spw-custom-select__search-input"))return;t.stopPropagation()}this.determineDropdownDirection();const s=this.isOpen;this.isOpen=!this.isOpen,this.isOpen&&!s&&(this.ensureParentScrollListener(),this.notifyOtherSelects()),this.isOpen||(this.focusedOptionIndex=null)}}notifyOtherSelects(){const t=new CustomEvent("spw-custom-select-opened",{detail:{instance:this.host},bubbles:!0,composed:!0});document.dispatchEvent(t)}determineDropdownDirection(){this.updateDropdownPosition()}openDropdownWithKeyboard(){this.determineDropdownDirection(),this.isOpen=!0,this.focusedOptionIndex=0,this.ensureParentScrollListener(),this.notifyOtherSelects()}closeDropdown(){this.isOpen=!1,this.focusedOptionIndex=null,this.searchText=""}addCreatedOption(t){const s=t.trim();if(!s)return;const e=s,i={label:s,value:e,created:!0};this.parsedOptions=[...this.parsedOptions,i],this.optionCreated.emit(i),this.selectOption(e),this.searchText=""}removeCreatedOption(t,s){if(s.stopPropagation(),this.multiple){const s=this.internalValue.findIndex((s=>String(s)===String(t.value)));s>-1&&(this.internalValue=[...this.internalValue.slice(0,s),...this.internalValue.slice(s+1)],this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue))}else String(this.internalValue)===String(t.value)&&(this.internalValue="",this.value="",this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue));this.parsedOptions=this.parsedOptions.filter((s=>String(s.value)!==String(t.value))),this.optionRemoved.emit(t)}handleClear(t){t.stopPropagation(),this.resetSelect()}selectOption(t,s){s&&s.stopPropagation();const e=this.parsedOptions.find((s=>String(s.value)===String(t)));if(!(null==e?void 0:e.disabled)){if(this.multiple){const s=this.internalValue.findIndex((s=>String(s)===String(t)));this.internalValue=s>-1?[...this.internalValue.slice(0,s),...this.internalValue.slice(s+1)]:[...this.internalValue,t],this.internalValue=this.internalValue.sort(((t,s)=>this.parsedOptions.findIndex((s=>String(s.value)===String(t)))-this.parsedOptions.findIndex((t=>String(t.value)===String(s)))))}else this.internalValue=t,this.closeDropdown();this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}}handleOptionKeyDown(t,s){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.selectOption(s))}handleKeyDown(t){var s,e;if(!t.target.classList.contains("spw-custom-select__search-input"))switch(t.key){case" ":t.preventDefault(),this.isOpen||this.openDropdownWithKeyboard();break;case"ArrowDown":if(t.preventDefault(),this.isOpen){let t=null===this.focusedOptionIndex?0:(this.focusedOptionIndex+1)%this.parsedOptions.length;for(;(null===(s=this.parsedOptions[t])||void 0===s?void 0:s.disabled)&&t!==this.focusedOptionIndex;)t=(t+1)%this.parsedOptions.length;this.focusedOptionIndex=t}else this.openDropdownWithKeyboard();break;case"ArrowUp":if(t.preventDefault(),this.isOpen){let t=null===this.focusedOptionIndex?this.parsedOptions.length-1:(this.focusedOptionIndex-1+this.parsedOptions.length)%this.parsedOptions.length;for(;(null===(e=this.parsedOptions[t])||void 0===e?void 0:e.disabled)&&t!==this.focusedOptionIndex;)t=(t-1+this.parsedOptions.length)%this.parsedOptions.length;this.focusedOptionIndex=t}break;case"Enter":t.preventDefault(),this.isOpen&&null!==this.focusedOptionIndex&&this.selectOption(this.parsedOptions[this.focusedOptionIndex].value);break;case"Escape":this.isOpen&&this.closeDropdown()}}renderMessages(){const t=[];return this.error&&t.push({variant:"error",text:this.error,showIcon:this.showErrorIcon}),this.hint&&t.push({variant:"hint",text:this.hint,showIcon:this.showHintIcon}),this.success&&t.push({variant:"success",text:this.success,showIcon:this.showSuccessIcon}),this.warning&&t.push({variant:"warning",text:this.warning,showIcon:this.showWarningIcon}),t.map(((s,i)=>{const o=i===t.length-1;return e("spw-field-message",{variant:s.variant,showIcon:s.showIcon,isExpandable:o&&this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},s.text,o&&e("slot",{name:"details",slot:"details"}))}))}get elementClass(){const t=this.showCreateButton();return{"spw-custom-select":!0,[`spw-custom-select--${this.size}`]:!0,[`spw-custom-select--${this.dropdownDirection}`]:!0,"spw-custom-select--is-error":!!this.error,"spw-custom-select--disabled":this.disabled,"spw-custom-select--is-opened":this.isOpen,"spw-custom-select--has-value":this.hasSelectedValue,"spw-custom-select--no-value":!this.hasSelectedValue,"spw-custom-select--is-searchable":this.isSearch,"spw-custom-select--not-searchable":!this.isSearch,"spw-custom-select--is-clear":this.isClear&&(this.hasSelectedValue||!!this.searchText),"spw-custom-select--show-create":t}}normalizeString(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}getSelectedLabels(){if(this.multiple)return Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((t=>{var s;return null===(s=this.parsedOptions.find((s=>String(s.value)===String(t))))||void 0===s?void 0:s.label})).filter(Boolean).join(", "):null;{const t=this.parsedOptions.find((t=>String(t.value)===String(this.internalValue)));return t?t.label:null}}getFilteredOptions(){const t=this.normalizeString(this.searchText);return this.parsedOptions.filter((s=>this.normalizeString(s.label).includes(t)))}handleSearchInput(t){this.searchText=t.target.value,this.focusedOptionIndex=0,this.isOpen||(this.isOpen=!0,this.ensureParentScrollListener(),this.notifyOtherSelects())}isSearchVisible(){return!!this.isSearch&&(!this.hasSelectedValue&&!this.isOpen||!(!this.isSearch||!this.isOpen)||this.isOpen)}showPlaceholder(){return!this.isSearch&&!this.hasSelectedValue}showCreateButton(){if(!this.allowCreate||!this.isSearch||!this.searchText.trim())return!1;const t=this.normalizeString(this.searchText.trim());return!this.parsedOptions.some((s=>this.normalizeString(s.label)===t))}render(){const t=this.getFilteredOptions(),s=this.showPlaceholder(),i=this.showCreateButton();return e("div",{key:"358422a9b9a98c9c09f1d17fa7ba4080a7159afa",class:this.elementClass,ref:t=>this.host=t},this.label&&e("spw-field-label",{key:"c03aec8b695cf0a825db43e68de0c5d73e2c3711",label:this.label,name:this.name,required:this.required,tooltipTitle:this.tooltipTitle,tooltipText:this.tooltipText,tooltipMaxWidth:this.tooltipMaxWidth,tooltipDirection:this.tooltipDirection,tooltipCursor:this.tooltipCursor}),this.assistiveText&&e("spw-field-message",{key:"e4443485205447a46a97d1416c4c20e7b7c50664",class:"spw-custom-select__field-message",variant:"hint",showIcon:!1},this.assistiveText),e("div",{key:"470d2a5091f0ccc314b090d7da5c4dfa71e663e1",class:"spw-custom-select__wrapper"},e("div",{key:"5b28939e3c2104610f982919c8dc7c4929157a44",class:"spw-custom-select__container",id:this.name,ref:t=>this.selectContainer=t,onClick:t=>this.toggleDropdown(t),onKeyDown:t=>this.handleKeyDown(t),tabindex:this.disabled?-1:0},e("div",{key:"c37c002dd4572207202670017b42c9944eddfbbe",class:"spw-custom-select__selected"},this.isSearchVisible()&&e("div",{key:"5ca297ad620ec490a1b5d35b12eef662ef09a64c",class:"spw-custom-select__search"},e("input",{key:"f587c3ed01eccfc1ae99070bf9a751361615ca89",class:"spw-custom-select__search-input",placeholder:this.searchPlaceholder,onInput:t=>this.handleSearchInput(t),value:this.searchText}),i&&this.isOpen&&this.hasSelectedValue&&e("button",{key:"2c37918104f234acd59c5df67006e0f37d868f0b",class:"spw-custom-select__create-btn spw-custom-select__create-btn--big",type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),this.addCreatedOption(this.searchText)}},e("spw-icon",{key:"4476c023c17f721e093de039c70082113b168db6",icon:"fa-plus"}))),s&&e("span",{key:"1d917d4155dab1b047465e9793b63630a843cae0"},this.placeholder),this.multiple&&this.internalValue.length>0&&e("div",{key:"8bdd3159992bd8d00f7afb896b58003836e51ea8",class:"spw-custom-select__selected-items"},this.internalValue.map((t=>{var s;return e("span",{class:"spw-custom-select__selected-item"},null===(s=this.parsedOptions.find((s=>String(s.value)===String(t))))||void 0===s?void 0:s.label,e("spw-icon",{icon:"fa-times",class:"spw-custom-select__deselect-icon",onClick:s=>this.selectOption(t,s)}))}))),!this.multiple&&e("span",{key:"2334df86497700a0e25ef4a1ee68115af3bc349d"},this.getSelectedLabels()))),e("div",{key:"98d6b1565b711b28fbb348ee2877bba0e3590ba1",class:"spw-custom-select__icons"},i&&!(this.isOpen&&this.hasSelectedValue)&&e("button",{key:"f0e2e6e174ed5b030a2f9f4f1e82f9960b95a211",class:"spw-custom-select__create-btn",type:"button",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),this.addCreatedOption(this.searchText)}},e("spw-icon",{key:"9b2f777e859c8be971dc7a069aae7822aa3c6ab1",icon:"fa-plus"})),this.isClear&&(this.hasSelectedValue||!!this.searchText)&&e("span",{key:"e9a9553430abc3ac47f966fd4a132dbcaf9e2931",class:"spw-custom-select__clear",onClick:t=>this.handleClear(t)},e("spw-icon",{key:"98169855a2c9ff794e6897c96f27bff254464592",icon:"fa-xmark"})),e("div",{key:"e7bac72b7a065e1e35e2a016f0f985600caa43b2",class:"spw-custom-select__arrow"},e("spw-icon",{key:"b7ce78ce337e69778035b5d53823c0265772de5c",icon:this.isOpen?"fa-chevron-up":"fa-chevron-down"}))),this.isOpen&&e("div",{key:"932a38100e78e64707f2d9014e381be024e9495c",class:{"spw-custom-select__options":!0,[`spw-custom-select__options--${this.dropdownDirection}`]:!0,"spw-custom-select__options--fixed":this.fixedDropdown},style:this.fixedDropdown?{position:"fixed",top:`${this.dropdownPosition.top}px`,left:`${this.dropdownPosition.left}px`,width:`${this.dropdownPosition.width}px`}:{}},e("div",{key:"b6bfe9801edf04781cf0e90b3d4df21749f885b6",class:"spw-custom-select__options-list"},!!t.length&&e("ul",{key:"0d44ccae774e2dd839529508fc2971fb607e82b7"},t.map(((t,s)=>e("li",{class:{"spw-custom-select__option":!0,"spw-custom-select__option--selected":this.multiple?this.internalValue.some((s=>String(s)===String(t.value))):t.value===this.internalValue,"spw-custom-select__option--focused":s===this.focusedOptionIndex,"spw-custom-select__option--disabled":t.disabled,"spw-custom-select__option--created":!!t.created},onClick:()=>this.selectOption(t.value)},this.multiple&&e("spw-checkbox",{onKeyDown:s=>this.handleOptionKeyDown(s,t.value),class:"spw-custom-select__checkbox",checked:this.internalValue.some((s=>String(s)===String(t.value))),disabled:t.disabled}),t.label,t.created&&e("spw-icon",{class:"spw-custom-select__option-remove",icon:"fa-trash",onClick:s=>this.removeCreatedOption(t,s)}))))),!t.length&&e("p",{key:"d7f15a608b4fe19c10ccf365f7647c9c0b831412",class:"spw-custom-select__no-results"},this.noResultsText)),this.hasSlottedFooter&&e("div",{key:"1142b7c96b8a3e6b49a445cb4cfc5427620d1199",class:"spw-custom-select__options-footer"},e("slot",{key:"487e3993d95680d914481695ada22ce6dbc7a250",name:"footer"})))),this.renderMessages())}static get formAssociated(){return!0}get hostElement(){return i(this)}static get watchers(){return{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}}};o.style=":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-custom-select{position:relative}.spw-custom-select__field-message{margin-bottom:8px;margin-top:-4px}.spw-custom-select__checkbox{margin-right:8px}.spw-custom-select__container{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;padding:0 12px;line-height:40px;border-radius:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background-color:#fff}.spw-custom-select__container:hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-custom-select__container:focus-within,.spw-custom-select__container:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black}.spw-custom-select--disabled .spw-custom-select__container{border-color:var(--spw-color-themes-grey-grey-400);background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-500);cursor:not-allowed}.spw-custom-select--disabled .spw-custom-select__container::placeholder{color:var(--spw-color-themes-grey-grey-500)}.spw-custom-select--disabled .spw-custom-select__container:hover,.spw-custom-select--disabled .spw-custom-select__container:focus,.spw-custom-select--disabled .spw-custom-select__container:focus-visible{outline:none}.spw-custom-select--is-error .spw-custom-select__container{border-color:var(--spw-colors-states-error-error-300)}.spw-custom-select--large .spw-custom-select__container{height:60px;padding:0 24px;line-height:60px}.spw-custom-select--is-opened .spw-custom-select__container{height:auto;line-height:1;min-height:40px}.spw-custom-select--is-opened.spw-custom-select--down .spw-custom-select__container{border-radius:4px 4px 0 0;border-bottom-color:transparent}.spw-custom-select--is-opened.spw-custom-select--up .spw-custom-select__container{border-radius:0 0 4px 4px;border-top-color:transparent}.spw-custom-select__selected{flex:1;padding-right:30px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.spw-custom-select__selected span{white-space:nowrap}.spw-custom-select--is-clear .spw-custom-select__selected{padding-right:58px}.spw-custom-select__selected-item{display:inline-flex;align-items:center;gap:6px;color:var(--spw-color-themes-grey-grey-900);border:1px solid var(--spw-color-themes-grey-grey-900);background:var(--spw-color-themes-grey-grey-200);line-height:24px;height:24px;padding:0 8px;margin:4px 6px 2px 0;border-radius:999px;font-size:14px;user-select:none}.spw-custom-select__selected-items{flex:1;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.spw-custom-select--is-opened .spw-custom-select__selected-items{padding-top:3px;padding-bottom:4px;overflow:visible;text-overflow:initial;text-wrap:initial}.spw-custom-select__icons{display:flex;align-items:center;position:absolute;top:50%;right:12px;gap:8px;pointer-events:none;transform:translateY(-50%);z-index:12}.spw-custom-select--large .spw-custom-select__icons{right:24px}.spw-custom-select__clear{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;pointer-events:auto;cursor:pointer;padding:2px;font-size:16px;transition:all 0.2s ease-in}.spw-custom-select__clear:hover{color:var(--spw-ds-primary)}.spw-custom-select__arrow{font-size:16px;color:var(--spw-color-themes-grey-grey-900);pointer-events:none}.spw-custom-select__wrapper{position:relative}.spw-custom-select--is-opened .spw-custom-select__search{position:absolute;top:0;left:0;z-index:14;width:100%;margin-top:1px;display:flex;align-items:center}.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:100%;margin-top:-3px;padding:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background:white}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:-100%;margin-top:-7px}.spw-custom-select__search-input{padding:0;height:38px;line-height:40px;border:none;margin:0;width:calc(100% - 30px);background:transparent;text-overflow:ellipsis}.spw-custom-select--is-clear .spw-custom-select__search-input{width:calc(100% - 58px)}.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 66px)}.spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 94px)}.spw-custom-select__search-input:focus{outline:none}.spw-custom-select--is-opened .spw-custom-select__search-input{border-left:1px solid var(--spw-color-themes-grey-grey-800);padding:0 12px}.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input{border:1px solid var(--spw-color-themes-grey-grey-800);flex:1;width:auto;border-radius:3px}.spw-custom-select__create-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0;padding-top:2px;width:28px;line-height:28px;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:100px;background:#fff;cursor:pointer;color:var(--spw-color-themes-grey-grey-900);font-size:14px;pointer-events:auto;transition:background 0.15s ease, border-color 0.15s ease}.spw-custom-select__create-btn:hover{background:var(--spw-color-themes-grey-grey-200);border-color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__create-btn:focus-visible{outline:3px solid white;box-shadow:0 0 0 6px black}.spw-custom-select__create-btn--big{width:38px;height:38px;border-radius:4px;margin-left:4px;padding-top:0}.spw-custom-select__options{background-color:#fff;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:0 0 4px 4px;overflow:hidden;z-index:9999;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1)}.spw-custom-select__options:not(.spw-custom-select__options--fixed){position:absolute;top:100%;left:0;width:100%;margin-top:-1px}.spw-custom-select__options--up:not(.spw-custom-select__options--fixed){top:0;transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:0}.spw-custom-select__options--fixed.spw-custom-select__options--down{transform:translateY(0)}.spw-custom-select__options--fixed.spw-custom-select__options--up{transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:-40px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:-86px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:-46px}.spw-custom-select__options-list{max-height:200px;overflow-y:auto}.spw-custom-select__options-list::-webkit-scrollbar{width:14px;height:14px}.spw-custom-select__options-list::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-custom-select__options-list::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-custom-select__options-list{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-custom-select__options-footer{border-top:1px solid var(--spw-color-themes-grey-grey-900);padding:8px;background-color:#fff}.spw-custom-select__no-results{padding:12px;cursor:not-allowed;color:var(--spw-color-themes-grey-grey-600)}.spw-custom-select__option{display:flex;align-items:center;border-bottom:1px solid var(--spw-color-themes-grey-grey-900);padding:12px;cursor:pointer}.spw-custom-select__option:hover{background-color:var(--spw-color-themes-grey-grey-200)}.spw-custom-select__option:last-child{border-bottom:none}.spw-custom-select__option--selected{font-weight:700}.spw-custom-select__option--disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.spw-custom-select__option--disabled:hover{background-color:transparent}.spw-custom-select__option--created{justify-content:space-between}.spw-custom-select__option-remove{padding-left:4px;margin-left:auto;flex-shrink:0;font-size:14px;color:var(--spw-color-themes-grey-grey-600);transition:color 0.15s ease}.spw-custom-select__option-remove:hover{color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__error{display:block;font-size:12px;color:var(--spw-color-themes-grey-grey-600);margin-top:8px}.spw-custom-select__option--focused{background-color:var(--spw-color-themes-grey-grey-300)}";export{o as spw_custom_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,a as o}from"./p-
|
|
1
|
+
import{r as t,h as e,H as i,a as o}from"./p-mthi2pFj.js";const n=class{constructor(e){t(this,e)}render(){var t,o,n,s,a,r;return e(i,{key:"ba101de98c0bddbd10dcb6a7790e423e5b542277",style:{"--spw-grid-item-col-span-mobile":(null===(t=this.colSpanMobile)||void 0===t?void 0:t.toString())||"auto","--spw-grid-item-col-span-tablet":(null===(o=this.colSpanTablet)||void 0===o?void 0:o.toString())||"auto","--spw-grid-item-col-span-desktop":(null===(n=this.colSpanDesktop)||void 0===n?void 0:n.toString())||"auto","--spw-grid-item-row-span-mobile":(null===(s=this.rowSpanMobile)||void 0===s?void 0:s.toString())||"auto","--spw-grid-item-row-span-tablet":(null===(a=this.rowSpanTablet)||void 0===a?void 0:a.toString())||"auto","--spw-grid-item-row-span-desktop":(null===(r=this.rowSpanDesktop)||void 0===r?void 0:r.toString())||"auto"}},e("slot",{key:"cb029626ebf4109cd5624c6547ce19905c257a39"}))}get el(){return o(this)}};n.style=":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;grid-column:span var(--spw-grid-item-col-span-mobile, auto);grid-row:span var(--spw-grid-item-row-span-mobile, auto)}@media (min-width: 768px){:host{grid-column:span var(--spw-grid-item-col-span-tablet, auto);grid-row:span var(--spw-grid-item-row-span-tablet, auto)}}@media (min-width: 1024px){:host{grid-column:span var(--spw-grid-item-col-span-desktop, auto);grid-row:span var(--spw-grid-item-row-span-desktop, auto)}}";export{n as spw_grid_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-mthi2pFj.js";const o=class{constructor(t){e(this,t)}render(){return t("div",{key:"0cb92d0af8129c7ba76ecfafea48193bd39a9b5b",class:"spw-table-footer"},t("slot",{key:"f1e8d0f24ca5d465cdec67343eecd7312e14f4f2",name:"left"}),t("slot",{key:"2f9ba826ec56a5e78a57e9f8e1d56a6379db86c6",name:"center"}),t("slot",{key:"1a2bc1d76274a465a0d0da8be77c2347e7d1e4b4",name:"right"}))}};o.style=":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}";export{o as spw_table_footer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as o,a as s}from"./p-
|
|
1
|
+
import{r as e,h as t,H as o,a as s}from"./p-mthi2pFj.js";const i=class{constructor(t){e(this,t),this.personaLabel="Je suis :",this.activePersona="",this.options=[],this.handleButtonClick=()=>{this.openSelect()},this.handleButtonKeyDown=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.openSelect())}}componentWillLoad(){this.setInitialPersona()}componentDidLoad(){this.moveOptionsToSelect()}setInitialPersona(){var e;const t=this.el.querySelector("option[selected]");this.activePersona=(null===(e=null==t?void 0:t.textContent)||void 0===e?void 0:e.trim())||""}moveOptionsToSelect(){const e=Array.from(this.el.querySelectorAll("option"));this.options=e,e.forEach((e=>{this.selectEl.appendChild(e)}))}handleChange(e){var t;const o=e.target.selectedOptions[0];this.activePersona=(null===(t=null==o?void 0:o.textContent)||void 0===t?void 0:t.trim())||"";const s=null==o?void 0:o.getAttribute("data-link");s&&"#"!==s&&(window.location.href=s)}openSelect(){this.selectEl&&("function"==typeof this.selectEl.showPicker?this.selectEl.showPicker():this.selectEl.click())}render(){return t(o,{key:"adb9927ef798e46812e2ca3387d8a99790e83a21"},t("div",{key:"1add86e528db42c7b2511da9e9e6aad0c220de5f",class:"spw-header-persona",onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,tabIndex:0},t("span",{key:"b4a0255b1f04e0a85e4c0167803b64349a93bfd8",class:"spw-header-persona__label"},this.personaLabel),t("div",{key:"6ff1e72c733859028f38d03cb56dc6b8f3de9e27",class:"spw-header-persona__active-persona"},this.activePersona," ",t("spw-icon",{key:"f37bbe851284038f1a412a3ec6ae7a05ec940233",icon:"fa-chevron-down"})),t("select",{key:"d427aa699b2fceb4945f63ecd54c9e09c5166501","aria-label":this.accAriaLabel||this.personaLabel,class:"spw-header-persona__select",ref:e=>this.selectEl=e,onChange:e=>this.handleChange(e),tabIndex:-1})))}get el(){return s(this)}};i.style=":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-header-persona{position:relative}@media (max-width: 1023px){.spw-header-persona{border-bottom:1px solid var(--spw-colors-support-grey-grey-300);padding-top:16px;padding-bottom:16px}}@media (min-width: 1024px){.spw-header-persona{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-left:24px;margin-left:24px;margin-right:12px;border-left:1px solid var(--spw-colors-support-grey-grey-300)}}.spw-header-persona:focus-visible{outline:none}.spw-header-persona:focus-visible .spw-header-persona__active-persona{outline:3px solid white;outline-offset:-1px;box-shadow:0 0 0 5px black;border-radius:var(--spw-ds-border-radius-full)}.spw-header-persona__label{font-size:14px;display:block;color:var(--spw-colors-support-grey-grey-700)}@media (max-width: 1023px){.spw-header-persona__label{display:none}}.spw-header-persona__active-persona{position:relative;display:flex;gap:6px;justify-content:space-between;cursor:pointer;font-weight:bold;text-decoration:none;color:var(--spw-colors-support-grey-grey-900)}@media (min-width: 1024px){.spw-header-persona__active-persona{transition:all ease 0.15s;border-radius:var(--spw-ds-border-radius-full);background:var(--spw-colors-support-grey-grey-100);padding:8px 12px;font-size:14px}}@media (min-width: 1024px){.spw-header-persona__active-persona:has(~.spw-header-persona__select:hover),.spw-header-persona__active-persona:hover{background:var(--spw-colors-support-grey-grey-300)}}.spw-header-persona__trigger{display:block}.spw-header-persona--opened .spw-header-persona__trigger{transform:rotate(180deg)}.spw-header-persona__select{display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.spw-header-persona__dropdown{display:none;overflow:hidden}.spw-header-persona--opened .spw-header-persona__dropdown{display:block}@media (min-width: 1024px){.spw-header-persona--opened .spw-header-persona__dropdown{position:absolute;width:max-content;z-index:99999;background:white;border-radius:4px;box-shadow:var(--spw-effect-elevation-8)}}";export{i as spw_header_persona}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as s,a}from"./p-mthi2pFj.js";const n=class{constructor(i){t(this,i),this.stepClick=e(this,"stepClick",7),this.currentStep=1,this.variant="horizontal",this.canClickNextSteps=!1,this.totalSteps=0,this.currentLabel="",this.steps=[],this.currentColor="#16a34a",this.currentIcon="",this.currentDescription="",this.currentAdditionalInfo="",this.handleSelectChange=t=>{const e=t.target,i=parseInt(e.value,10);i!==this.currentStep&&(i<this.currentStep||this.canClickNextSteps&&i>this.currentStep?(this.currentStep=i,this.updateStepsState(),this.stepClick.emit(i),this.scrollToWizard()):e.value=String(this.currentStep))}}componentWillLoad(){this.updateStepsState()}componentDidLoad(){this.statusObserver=new MutationObserver((()=>this.updateStepsState())),this.statusObserver.observe(this.el,{subtree:!0,attributes:!0,attributeFilter:["status","label","icon","description","additional-info"]})}disconnectedCallback(){var t;null===(t=this.statusObserver)||void 0===t||t.disconnect()}slotChanged(){this.updateStepsState()}async setStep(t){this.currentStep=t,this.updateStepsState(),this.scrollToWizard()}handleStepClick(t){const e=t.detail;(e<this.currentStep||this.canClickNextSteps&&e>this.currentStep)&&(this.currentStep=e,this.updateStepsState(),this.stepClick.emit(e),this.scrollToWizard())}resolveStateColor(t){const e="#16a34a";if(!t)return e;switch(t.getAttribute("status")){case"warning":return"#f97316";case"error":return"#dc2626";default:return e}}scrollToWizard(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.host,i=(null==e?void 0:e.parentElement)||this.el;i&&i.scrollIntoView({behavior:"smooth",block:"start"})}updateStepsState(){requestAnimationFrame((()=>{var t,e,i,s;const a=this.el.querySelectorAll("spw-wizard-item"),n=a[this.currentStep-1];this.totalSteps=a.length,this.currentLabel=null!==(t=null==n?void 0:n.getAttribute("label"))&&void 0!==t?t:"",this.currentColor=this.resolveStateColor(n),this.currentIcon=null!==(e=null==n?void 0:n.getAttribute("icon"))&&void 0!==e?e:"",this.currentDescription=null!==(i=null==n?void 0:n.getAttribute("description"))&&void 0!==i?i:"",this.currentAdditionalInfo=null!==(s=null==n?void 0:n.getAttribute("additional-info"))&&void 0!==s?s:"",this.steps=Array.from(a).map(((t,e)=>{var i;const s=e+1,a=s===this.currentStep||s<this.currentStep||this.canClickNextSteps;return{label:null!==(i=t.getAttribute("label"))&&void 0!==i?i:`Étape ${s}`,disabled:!a}})),a.forEach(((t,e)=>{const i=e+1;i>this.currentStep&&t.hasAttribute("status")&&t.removeAttribute("status"),t.hasAttribute("status")||t.setAttribute("state",i<this.currentStep?"completed":i===this.currentStep?"active":"inactive"),t.setAttribute("variant",this.variant),t.setAttribute("step-number",i.toString()),t.setAttribute("is-last",(e===a.length-1).toString()),t.setAttribute("is-clickable",(i!==this.currentStep&&(i<this.currentStep||this.canClickNextSteps)).toString()),t.setAttribute("is-current",(i===this.currentStep).toString()),t.setAttribute("is-before-current",(i<this.currentStep).toString()),t.setAttribute("is-after-current",(i>this.currentStep).toString())}))}))}get elementClass(){return{"spw-wizard":!0,[`spw-wizard--${this.variant}`]:!0}}render(){const t=this.totalSteps>0?Math.min(this.currentStep/this.totalSteps,1):0,e=2*Math.PI*16,a=e*(1-t);return i(s,{key:"5f1bf77bfa7f50affbe4263e1b4e6d6ade6beea6"},i("div",{key:"9e8ec6eb2b098eec5b5593a04e2d5c52703364aa",class:"spw-wizard__mobile",style:{"--spw-wizard-gauge-color":this.currentColor}},i("div",{key:"a60aa2661edf87c7486ce1ab523cf3bab6869c80",class:"spw-wizard__gauge"},i("svg",{key:"53dde6380e8365f8de32b5eef857c830c6116b7c",class:"spw-wizard__gauge-svg",viewBox:"0 0 36 36"},i("circle",{key:"38dd3eb84da52c8e5732a08a34a4d7b6c2832756",class:"spw-wizard__gauge-track",cx:"18",cy:"18",r:16}),i("circle",{key:"d62a5783383e912f9a5632ad365e24d2a436759e",class:"spw-wizard__gauge-fill",cx:"18",cy:"18",r:16,"stroke-dasharray":e,"stroke-dashoffset":a})),i("span",{key:"3e5073ba93ed438ecb74fdd74db4bcb6903d018a",class:"spw-wizard__gauge-inner"},this.currentIcon?i("spw-icon",{class:"spw-wizard__gauge-icon",icon:this.currentIcon}):i("span",{class:"spw-wizard__gauge-count"},this.currentStep,"/",this.totalSteps))),i("div",{key:"33b73fc87512a43a2f5b960ab0f1080c44858329",class:"spw-wizard__mobile-content"},i("span",{key:"e894e2712311c9ddc2c60cbcdea31eead14d8e03",class:"spw-wizard__mobile-label"},this.currentLabel),this.currentDescription&&i("span",{key:"0b94f6df5296aef8872c4dfce4c111b6aa4238b7",class:"spw-wizard__mobile-description"},this.currentDescription),this.currentAdditionalInfo&&i("span",{key:"12eb32cfa62465930212defdf6869cbbc2fbf550",class:"spw-wizard__mobile-additional-info"},this.currentAdditionalInfo)),i("select",{key:"1e18b92100ec0e1bcd23ba19016add6d4f0bf046",class:"spw-wizard__select","aria-label":"Choisir une étape",onChange:this.handleSelectChange},this.steps.map(((t,e)=>i("option",{value:e+1,selected:e+1===this.currentStep,disabled:t.disabled},e+1,"/",this.totalSteps," — ",t.label))))),i("div",{key:"e9bd1056cd296b7b03044231e23d4150d526b30d",class:this.elementClass},i("slot",{key:"a4f0bcd9c1081695e108955a399dd301176c32fa"})))}get el(){return a(this)}};n.style=":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-wizard{display:flex;gap:0}.spw-wizard--horizontal{flex-direction:row}.spw-wizard--vertical{flex-direction:column;align-items:flex-start}.spw-wizard__mobile{display:none}";export{n as spw_wizard}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,H as i,a}from"./p-
|
|
1
|
+
import{r as e,c as t,h as s,H as i,a}from"./p-mthi2pFj.js";const o=class{constructor(s){e(this,s),this.sidebarReset=t(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 t=e.shadowRoot;if(!t)return e.offsetHeight;const s=t.querySelector(".spw-table-container");let i=s?s.offsetHeight:0;const a=t.querySelector(".spw-table-resize-handle");a&&(i+=a.offsetHeight);const o=e.querySelector('[slot="table-footer"]');return o&&o instanceof HTMLElement&&(i+=o.offsetHeight),i}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 s(i,{key:"596e80ea681911ed53180d43f6dcf2fbdb384a88",style:e,class:this.hostClass},s("nav",{key:"27aa8c6d94784e5bd5935104c63c713524617afb",class:this.elementClass},s("span",{key:"898b911fabee23f44e3c42ccef7bdc4ad3c13917",class:"spw-table-sidebar__toggle",onClick:this.toggleSidebar,"aria-expanded":this.expanded.toString()},s("spw-icon",{key:"90ca4859e6217f851e1d98e54fa88d06604307b4",icon:"fa-chevron-left"})),s("div",{key:"40bb31b2c1f841fd46def822db017c754f698ac2",class:"spw-table-sidebar__mini",onClick:this.toggleSidebar},s("spw-icon",{key:"0d09afc4aaceff731a24a92f8f811ddf0b68a07e",icon:this.sidebarIcon,variant:"fa-regular"})),s("div",{key:"c975c2883933cb46404c97d8f5a6ae72b574aa82",class:"spw-table-sidebar__content"},s("div",{key:"bc55d4bee04a5731c0680df9d359e89e3a4d3855",class:"spw-table-sidebar__header"},s("span",{key:"8815974c7a8513d71b38ddb2833e943b32a536a2",class:"spw-table-sidebar__header-title"},s("spw-icon",{key:"25542423c7558b128f4c19107f22cb54e1265cbf",icon:this.sidebarIcon,variant:"fa-regular"})," ",this.sidebarTitle),this.hasReset&&s("spw-button",{key:"08ed9d45db2f023e092d406347d7e6149e35354c",class:"spw-table-sidebar__header-reset",onClick:this.handleReset,type:"button",variant:"secondary",size:"small",isIconOnly:!0,icon:this.resetIcon})),s("div",{key:"d0de3a80004e5a845f67a2b64d46377964a8320b",class:"spw-table-sidebar__scrollable-content"},s("slot",{key:"8297001488dac6755d2b62f22bbd9d94b2f8e9f1"})),s("div",{key:"406d7b8b53b72eb399ff063d59ffd0aa39391600",class:"spw-table-sidebar__footer"},s("slot",{key:"f42604bcb043b13a801f87f3f81c898d94f9ab12",name:"sidebar-footer"})))))}get el(){return a(this)}};o.style=":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}";export{o as spw_table_sidebar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as n}from"./p-
|
|
1
|
+
import{r as e,h as t,H as n}from"./p-mthi2pFj.js";const i=class{constructor(t){e(this,t)}render(){return t(n,{key:"4763a443ddd54c5e1e086b623f917de269c1faa7"},t("div",{key:"4435cc9e635ffc95f7521f88c937de321da30603",class:"spw-dropdown-container"},t("slot",{key:"43037bcd1272e693747e84e8fc4ffaa72d328daa"})))}};i.style=":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-dropdown-container{padding:16px}";export{i as spw_dropdown_container}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as n,H as o}from"./p-
|
|
1
|
+
import{r as i,h as n,H as o}from"./p-mthi2pFj.js";const a=class{constructor(n){i(this,n),this.open=!1}get classes(){return{"spw-sidebar-navigation-dropdown":!0,"spw-sidebar-navigation-dropdown--open":this.open}}render(){return n(o,{key:"ab82ad8ea0daa6ccc5fd191c09f9a1d1b6c4a9b4",class:this.classes},n("div",{key:"70494c30974df3c487d876ffd463ec9c8f909390",class:"spw-sidebar-navigation-dropdown__content",style:{display:this.open?"block":"none"}},n("slot",{key:"0ccb58b187dffcb12a7007fb3ebcde29a85b1c11"})))}};a.style=":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-sidebar-navigation-dropdown{font-family:var(--spw-ds-font-main);box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}spw-sidebar-navigation-dropdown h1,spw-sidebar-navigation-dropdown h2,spw-sidebar-navigation-dropdown h3,spw-sidebar-navigation-dropdown h4,spw-sidebar-navigation-dropdown h5,spw-sidebar-navigation-dropdown h6,spw-sidebar-navigation-dropdown p,spw-sidebar-navigation-dropdown ul,spw-sidebar-navigation-dropdown li{padding:0;margin:0}spw-sidebar-navigation-dropdown ul{list-style:none}spw-sidebar-navigation-dropdown *,spw-sidebar-navigation-dropdown *::before,spw-sidebar-navigation-dropdown *::after{box-sizing:inherit;letter-spacing:-0.18px}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown hr{box-sizing:content-box;height:0;overflow:visible;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown pre{font-family:monospace, monospace;font-size:1em;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown a{background-color:transparent}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown b,spw-sidebar-navigation-dropdown strong{font-weight:bolder}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown code,spw-sidebar-navigation-dropdown kbd,spw-sidebar-navigation-dropdown samp{font-family:monospace, monospace;font-size:1em;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown small{font-size:80%}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown sub,spw-sidebar-navigation-dropdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}spw-sidebar-navigation-dropdown sub{bottom:-0.25em}spw-sidebar-navigation-dropdown sup{top:-0.5em}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown img{border-style:none}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown button,spw-sidebar-navigation-dropdown input,spw-sidebar-navigation-dropdown optgroup,spw-sidebar-navigation-dropdown select,spw-sidebar-navigation-dropdown textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown button,spw-sidebar-navigation-dropdown input{overflow:visible}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown button,spw-sidebar-navigation-dropdown select{text-transform:none}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown button,spw-sidebar-navigation-dropdown [type=button],spw-sidebar-navigation-dropdown [type=reset],spw-sidebar-navigation-dropdown [type=submit]{-webkit-appearance:button}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown button::-moz-focus-inner,spw-sidebar-navigation-dropdown [type=button]::-moz-focus-inner,spw-sidebar-navigation-dropdown [type=reset]::-moz-focus-inner,spw-sidebar-navigation-dropdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown button:-moz-focusring,spw-sidebar-navigation-dropdown [type=button]:-moz-focusring,spw-sidebar-navigation-dropdown [type=reset]:-moz-focusring,spw-sidebar-navigation-dropdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown fieldset{padding:0.35em 0.75em 0.625em}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown progress{vertical-align:baseline}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown textarea{overflow:auto}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown [type=checkbox],spw-sidebar-navigation-dropdown [type=radio]{box-sizing:border-box;padding:0;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown [type=number]::-webkit-inner-spin-button,spw-sidebar-navigation-dropdown [type=number]::-webkit-outer-spin-button{height:auto}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown details{display:block}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown summary{display:list-item}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown template{display:none}spw-sidebar-navigation-dropdown{}spw-sidebar-navigation-dropdown [hidden]{display:none}:host{display:block}.spw-sidebar-navigation-dropdown{position:relative;left:calc(-1 * var(--spw-ds-bo-sidebar-width) + 16px);width:calc(var(--spw-ds-bo-sidebar-expanded-width) - 32px);display:block;border-radius:4px}.spw-sidebar-navigation-dropdown--open{margin-top:8px;padding:0;background:var(--spw-colors-support-grey-grey-100)}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-dropdown--open{background:white}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-dropdown{left:0;width:100%}";export{a as spw_sidebar_navigation_dropdown}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as i}from"./p-
|
|
1
|
+
import{r as e,h as t,H as i}from"./p-mthi2pFj.js";const n=class{constructor(t){e(this,t)}get elementClass(){return{"spw-list-description":!0,"spw-list-description--has-clamp":"none"!==this.lineClamp,[`spw-list-description--clamp-${this.lineClamp}`]:!0}}render(){return t(i,{key:"82cc428d16223c26a6d66765219b917ee7b78318"},t("div",{key:"8b66fd5bb14cd22498f9c4d7977f7ff714f96411",class:this.elementClass},t("slot",{key:"15f4c88c6f3aae348df630d0f8ae174607b9ba83"})))}};n.style=":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-list-description{margin-top:6px;color:var(--spw-color-themes-grey-grey-800);font-size:16px;line-height:1.25}.spw-list-description--has-clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}.spw-list-description--clamp-1{-webkit-line-clamp:1;line-clamp:1}.spw-list-description--clamp-2{-webkit-line-clamp:2;line-clamp:2}.spw-list-description--clamp-3{-webkit-line-clamp:3;line-clamp:3}.spw-list-description--clamp-4{-webkit-line-clamp:4;line-clamp:4}.spw-list-description--clamp-5{-webkit-line-clamp:5;line-clamp:5}.spw-list-description--clamp-6{-webkit-line-clamp:6;line-clamp:6}.spw-list-description--clamp-7{-webkit-line-clamp:7;line-clamp:7}.spw-list-description--clamp-8{-webkit-line-clamp:8;line-clamp:8}.spw-list-description--clamp-9{-webkit-line-clamp:9;line-clamp:9}.spw-list-description--clamp-10{-webkit-line-clamp:10;line-clamp:10}";export{n as spw_list_description}
|