@sbb-esta/lyne-elements 2.11.1 → 2.11.2
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/accordion/accordion.component.js +19 -22
- package/action-group/action-group.component.js +3 -5
- package/alert/alert/alert.component.js +1 -2
- package/alert/alert-group/alert-group.component.js +2 -3
- package/autocomplete/autocomplete-base-element.js +71 -82
- package/autocomplete/autocomplete.component.js +31 -36
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +44 -52
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +17 -20
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +23 -26
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +9 -9
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +29 -33
- package/button/mini-button/mini-button.component.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +1 -2
- package/calendar/calendar.component.js +8 -13
- package/card/card/card.component.js +12 -12
- package/card/card-badge/card-badge.component.js +16 -16
- package/card/common/card-action-common.js +23 -25
- package/checkbox/checkbox/checkbox.component.js +17 -20
- package/checkbox/checkbox-group/checkbox-group.component.js +39 -52
- package/checkbox/checkbox-panel/checkbox-panel.component.js +22 -25
- package/checkbox/common/checkbox-common.js +13 -15
- package/chip/chip-group/chip-group.component.js +59 -70
- package/clock/clock.component.js +50 -60
- package/container/container/container.component.js +28 -29
- package/container/sticky-bar/sticky-bar.component.js +26 -27
- package/core/a11y/focus-trap-controller.js +11 -14
- package/core/a11y/focus.js +27 -29
- package/core/a11y/input-modality-detector.js +18 -19
- package/core/a11y/interactivity-checker.js +10 -10
- package/core/base-elements/button-base-element.js +13 -18
- package/core/base-elements/link-base-element.js +3 -6
- package/core/base-elements/open-close-base-element.js +1 -1
- package/core/controllers/connected-abort-controller.js +2 -4
- package/core/controllers/escapable-overlay-controller.js +10 -12
- package/core/controllers/id-reference-controller.js +13 -14
- package/core/controllers/inert-controller.js +8 -10
- package/core/controllers/slot-state-controller.js +16 -26
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/date-adapter.js +21 -21
- package/core/datetime/native-date-adapter.js +11 -11
- package/core/decorators/date-converter.js +10 -12
- package/core/decorators/date-only-type.js +5 -6
- package/core/decorators/force-type.js +4 -5
- package/core/dom/breakpoint.js +8 -8
- package/core/dom/input-element.js +4 -9
- package/core/eventing/event-emitter.js +4 -5
- package/core/mixins/form-associated-checkbox-mixin.js +32 -37
- package/core/mixins/form-associated-input-mixin.js +58 -64
- package/core/mixins/form-associated-mixin.js +42 -44
- package/core/mixins/form-associated-radio-button-mixin.js +3 -5
- package/core/mixins/hydration-mixin.js +12 -13
- package/core/mixins/named-slot-list-mixin.js +32 -37
- package/core/mixins/panel-mixin.js +26 -27
- package/core/mixins.js +1 -1
- package/core/overlay/position.js +23 -23
- package/core/styles/core/mediaqueries.scss +1 -1
- package/core/styles/core.scss +27 -28
- package/core/styles/mixins/table.scss +1 -24
- package/core/testing/event-spy.js +2 -4
- package/core/testing/wait-for-image-ready.js +8 -9
- package/core/testing/wait-for-render.js +8 -9
- package/custom-elements.json +2 -2
- package/date-input/date-input.component.js +2 -4
- package/datepicker/common/datepicker-association-controllers.js +21 -24
- package/datepicker/common/datepicker-button.js +53 -57
- package/datepicker/datepicker/datepicker.component.js +82 -95
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +74 -81
- package/development/accordion/accordion.component.js +4 -7
- package/development/action-group/action-group.component.js +3 -5
- package/development/alert/alert/alert.component.js +2 -3
- package/development/alert/alert-group/alert-group.component.js +2 -3
- package/development/autocomplete/autocomplete-base-element.js +19 -30
- package/development/autocomplete/autocomplete.component.js +7 -12
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +2 -3
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/calendar/calendar.component.js +9 -14
- package/development/card/card/card.component.js +1 -1
- package/development/card/card-badge/card-badge.component.js +1 -1
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/card/card-link/card-link.component.js +1 -1
- package/development/card/common/card-action-common.js +3 -5
- package/development/checkbox/checkbox/checkbox.component.js +2 -5
- package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
- package/development/checkbox/common/checkbox-common.js +3 -5
- package/development/chip/chip/chip.component.js +1 -1
- package/development/chip/chip-group/chip-group.component.js +15 -26
- package/development/chip-label/chip-label.component.js +1 -1
- package/development/clock/clock.component.js +23 -33
- package/development/container/container/container.component.js +2 -3
- package/development/container/sticky-bar/sticky-bar.component.js +2 -3
- package/development/core/a11y/arrow-navigation.js +1 -1
- package/development/core/a11y/fake-event-detection.js +1 -1
- package/development/core/a11y/focus-trap-controller.js +6 -9
- package/development/core/a11y/focus-visible-within-controller.js +1 -1
- package/development/core/a11y/focus.js +8 -10
- package/development/core/a11y/input-modality-detector.js +2 -3
- package/development/core/a11y/interactivity-checker.js +2 -2
- package/development/core/base-elements/action-base-element.js +2 -3
- package/development/core/base-elements/button-base-element.js +6 -11
- package/development/core/base-elements/link-base-element.js +4 -7
- package/development/core/base-elements/open-close-base-element.js +2 -2
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/connected-abort-controller.js +3 -5
- package/development/core/controllers/escapable-overlay-controller.js +3 -5
- package/development/core/controllers/id-reference-controller.js +2 -3
- package/development/core/controllers/inert-controller.js +4 -6
- package/development/core/controllers/language-controller.js +1 -1
- package/development/core/controllers/media-matchers-controller.js +1 -1
- package/development/core/controllers/slot-state-controller.js +8 -18
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +5 -5
- package/development/core/datetime/native-date-adapter.js +2 -2
- package/development/core/decorators/date-converter.js +3 -5
- package/development/core/decorators/date-only-type.js +2 -3
- package/development/core/decorators/force-type.js +3 -4
- package/development/core/decorators/get-override.js +1 -1
- package/development/core/decorators/handle-distinct-change.js +1 -1
- package/development/core/decorators/host-attributes.js +1 -1
- package/development/core/decorators/slot-state.js +1 -1
- package/development/core/dom/animation.js +1 -1
- package/development/core/dom/breakpoint.js +2 -2
- package/development/core/dom/find-referenced-element.js +1 -1
- package/development/core/dom/host-context.js +1 -1
- package/development/core/dom/input-element.js +3 -4
- package/development/core/dom/platform.js +1 -1
- package/development/core/dom/scroll.js +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -1
- package/development/core/eventing/composed-path-has-attribute.js +1 -1
- package/development/core/eventing/event-emitter.js +2 -3
- package/development/core/eventing/form-element-handlers.js +1 -1
- package/development/core/eventing/forward-event.js +1 -1
- package/development/core/eventing/throttle.js +1 -1
- package/development/core/i18n/i18n.js +1 -1
- package/development/core/mixins/animation-complete-mixin.js +1 -1
- package/development/core/mixins/disabled-mixin.js +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
- package/development/core/mixins/form-associated-input-mixin.js +14 -20
- package/development/core/mixins/form-associated-mixin.js +5 -7
- package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
- package/development/core/mixins/hydration-mixin.js +3 -4
- package/development/core/mixins/named-slot-list-mixin.js +4 -7
- package/development/core/mixins/negative-mixin.js +1 -1
- package/development/core/mixins/panel-mixin.js +2 -3
- package/development/core/mixins/required-mixin.js +1 -1
- package/development/core/mixins/update-scheduler-mixin.js +1 -1
- package/development/core/overlay/overlay-option-panel.js +1 -1
- package/development/core/overlay/overlay-trigger-attributes.js +1 -1
- package/development/core/overlay/overlay.js +1 -1
- package/development/core/overlay/position.js +5 -5
- package/development/core/testing/event-spy.js +3 -5
- package/development/core/testing/mocha-extensions.js +1 -1
- package/development/core/testing/wait-for-condition.js +1 -1
- package/development/core/testing/wait-for-image-ready.js +2 -3
- package/development/core/testing/wait-for-render.js +2 -3
- package/development/date-input/date-input.component.js +4 -6
- package/development/datepicker/common/datepicker-association-controllers.js +6 -9
- package/development/datepicker/common/datepicker-button.js +7 -11
- package/development/datepicker/datepicker/datepicker.component.js +22 -35
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +13 -20
- package/development/dialog/dialog/dialog.component.js +16 -27
- package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +1 -1
- package/development/divider/divider.component.js +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +4 -5
- package/development/file-selector/common/file-selector-common.js +2 -3
- package/development/file-selector/file-selector/file-selector.component.js +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +7 -13
- package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -3
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -3
- package/development/footer/footer.component.js +1 -1
- package/development/form-error/form-error.component.js +3 -4
- package/development/form-field/form-field/form-field.component.js +19 -30
- package/development/form-field/form-field-clear/form-field-clear.component.js +4 -6
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/header/header.component.js +5 -8
- package/development/header/header-button/header-button.component.js +1 -1
- package/development/header/header-link/header-link.component.js +1 -1
- package/development/icon/icon-base.js +1 -1
- package/development/icon/icon-name-mixin.js +1 -1
- package/development/icon/icon-request.js +2 -3
- package/development/icon/icon-validate.js +1 -1
- package/development/icon/icon.component.js +1 -1
- package/development/image/image.component.js +7 -9
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/link/block-link/block-link.component.js +1 -1
- package/development/link/block-link-button/block-link-button.component.js +1 -1
- package/development/link/block-link-static/block-link-static.component.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/link/link.component.js +1 -1
- package/development/link/link-button/link-button.component.js +1 -1
- package/development/link/link-static/link-static.component.js +1 -1
- package/development/link-common-CJEWffDZ.js +1 -1
- package/development/link-list/common/link-list-base.js +1 -1
- package/development/link-list/link-list/link-list.component.js +1 -1
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/development/logo/logo.component.js +1 -1
- package/development/map-container/map-container.component.js +2 -3
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.js +17 -25
- package/development/menu/menu-button/menu-button.component.js +1 -1
- package/development/menu/menu-link/menu-link.component.js +1 -1
- package/development/message/message.component.js +1 -1
- package/development/navigation/common/navigation-action-common.js +3 -5
- package/development/navigation/navigation/navigation.component.js +19 -35
- package/development/navigation/navigation-button/navigation-button.component.js +1 -1
- package/development/navigation/navigation-link/navigation-link.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
- package/development/navigation/navigation-section/navigation-section.component.js +22 -32
- package/development/notification/notification.component.js +22 -24
- package/development/option/optgroup/optgroup-base-element.js +4 -6
- package/development/option/optgroup/optgroup.component.js +6 -10
- package/development/option/option/option-base-element.js +3 -4
- package/development/option/option/option.component.js +7 -10
- package/development/overlay/overlay-base-element.js +4 -6
- package/development/overlay/overlay.component.js +7 -9
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.js +2 -3
- package/development/popover/popover/popover.component.js +12 -17
- package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/development/radio-button/common/radio-button-common.js +6 -10
- package/development/radio-button/radio-button/radio-button.component.js +2 -5
- package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/select/select.component.js +26 -48
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
- package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
- package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
- package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +8 -15
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -2
- package/development/signet/signet.component.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/slider/slider.component.js +3 -4
- package/development/status/status.component.js +1 -1
- package/development/stepper/step/step.component.js +5 -7
- package/development/stepper/step-label/step-label.component.js +3 -4
- package/development/stepper/stepper/stepper.component.js +16 -29
- package/development/table/table-wrapper/table-wrapper.component.js +2 -7
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +23 -38
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +6 -12
- package/development/tag/tag-group/tag-group.component.js +5 -13
- package/development/teaser/teaser.component.js +1 -1
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
- package/development/time-input/time-input.component.js +8 -12
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -3
- package/development/title/title-base.js +1 -1
- package/development/title/title.component.js +1 -1
- package/development/toast/toast.component.js +4 -7
- package/development/toggle/toggle/toggle.component.js +8 -12
- package/development/toggle/toggle-option/toggle-option.component.js +9 -16
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +5 -7
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/dialog/dialog/dialog.component.js +59 -70
- package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +31 -32
- package/file-selector/common/file-selector-common.js +1 -2
- package/flip-card/flip-card/flip-card.component.js +48 -54
- package/flip-card/flip-card-details/flip-card-details.component.js +16 -17
- package/flip-card/flip-card-summary/flip-card-summary.component.js +18 -19
- package/form-error/form-error.component.js +13 -14
- package/form-field/form-field/form-field.component.js +128 -139
- package/form-field/form-field-clear/form-field-clear.component.js +20 -22
- package/header/header/header.component.js +25 -28
- package/icon/icon-request.js +10 -11
- package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
- package/image/image.component.js +4 -6
- package/map-container/map-container.component.js +1 -2
- package/menu/menu/menu.component.js +48 -56
- package/navigation/common/navigation-action-common.js +19 -21
- package/navigation/navigation/navigation.component.js +74 -93
- package/navigation/navigation-marker/navigation-marker.component.js +26 -28
- package/navigation/navigation-section/navigation-section.component.js +79 -89
- package/notification/notification.component.js +18 -20
- package/option/optgroup/optgroup-base-element.js +40 -42
- package/option/optgroup/optgroup.component.js +16 -20
- package/option/option/option-base-element.js +3 -4
- package/option/option/option.component.js +28 -31
- package/overlay/overlay-base-element.js +25 -27
- package/overlay/overlay.component.js +38 -40
- package/package.json +1 -1
- package/paginator/paginator/paginator.component.js +3 -4
- package/popover/popover/popover.component.js +82 -91
- package/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/radio-button/common/radio-button-common.js +11 -15
- package/radio-button/radio-button/radio-button.component.js +20 -23
- package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
- package/radio-button/radio-button-panel/radio-button-panel.component.js +31 -35
- package/select/select.component.js +89 -111
- package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
- package/sidebar/common.js +1 -1
- package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
- package/sidebar/sidebar/sidebar.component.js +61 -68
- package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
- package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/sidebar.js +1 -1
- package/slider/slider.component.js +3 -4
- package/standard-theme.css +0 -25
- package/stepper/step/step.component.js +22 -24
- package/stepper/step-label/step-label.component.js +2 -3
- package/stepper/stepper/stepper.component.js +72 -86
- package/table/table-wrapper/table-wrapper.component.js +13 -14
- package/table.css +0 -25
- package/tabs/tab-group/tab-group.component.js +77 -92
- package/tabs/tab-label/tab-label.component.js +10 -10
- package/tag/tag/tag.component.js +55 -61
- package/tag/tag-group/tag-group.component.js +21 -29
- package/teaser/teaser.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product-common-C8oSkIxy.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.js +62 -66
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +9 -10
- package/toast/toast.component.js +4 -7
- package/toggle/toggle/toggle.component.js +38 -42
- package/toggle/toggle-option/toggle-option.component.js +47 -54
- package/train/train-formation/train-formation.component.js +41 -43
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
- package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
- package/teaser-product-common-CpMAlYEp.js +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { property as
|
|
8
|
-
import { isWebkit as
|
|
9
|
-
const
|
|
4
|
+
var _ = (a, i, r) => i.has(a) || g("Cannot " + r);
|
|
5
|
+
var V = (a, i, r) => (_(a, i, "read from private field"), r ? r.call(a) : i.get(a)), S = (a, i, r) => i.has(a) ? g("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(a) : i.set(a, r), c = (a, i, r, o) => (_(a, i, "write to private field"), o ? o.call(a, r) : i.set(a, r), r);
|
|
6
|
+
import { __esDecorate as h, __runInitializers as f } from "tslib";
|
|
7
|
+
import { property as D, state as I } from "lit/decorators.js";
|
|
8
|
+
import { isWebkit as M } from "../dom.js";
|
|
9
|
+
const E = {
|
|
10
10
|
badInput: !1,
|
|
11
11
|
customError: !1,
|
|
12
12
|
patternMismatch: !1,
|
|
@@ -27,21 +27,20 @@ if (typeof ValidityState > "u") {
|
|
|
27
27
|
throw new TypeError("Illegal constructor");
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Object.entries(
|
|
31
|
-
get [
|
|
30
|
+
Object.entries(E).forEach(([i, r]) => Object.assign(a.prototype, {
|
|
31
|
+
get [i]() {
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
34
34
|
})), globalThis.ValidityState = a;
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
var d,
|
|
38
|
-
let r = a, o = [], y, v, p
|
|
39
|
-
return
|
|
36
|
+
const x = (a) => (() => {
|
|
37
|
+
var d, n;
|
|
38
|
+
let r = a, o = [], m, y, v, p = [], b = [];
|
|
39
|
+
return n = class extends r {
|
|
40
40
|
constructor(...t) {
|
|
41
|
-
var e;
|
|
42
41
|
super(...t);
|
|
43
|
-
|
|
44
|
-
this._value = (
|
|
42
|
+
S(this, d);
|
|
43
|
+
this._value = (f(this, o), null), this.internals = this.attachInternals(), this._validityStates = /* @__PURE__ */ new Map(), c(this, d, f(this, p, !1)), f(this, b), this.addEventListener?.("invalid", (e) => e.preventDefault());
|
|
45
44
|
}
|
|
46
45
|
/**
|
|
47
46
|
* Returns the form owner of this element.
|
|
@@ -99,13 +98,13 @@ const z = (a) => (() => {
|
|
|
99
98
|
}
|
|
100
99
|
/** Whenever a surrounding form or fieldset is changing its disabled state. */
|
|
101
100
|
get formDisabled() {
|
|
102
|
-
return
|
|
101
|
+
return V(this, d);
|
|
103
102
|
}
|
|
104
103
|
set formDisabled(t) {
|
|
105
|
-
|
|
104
|
+
c(this, d, t);
|
|
106
105
|
}
|
|
107
|
-
attributeChangedCallback(t, e,
|
|
108
|
-
(t !== "name" || e !==
|
|
106
|
+
attributeChangedCallback(t, e, s) {
|
|
107
|
+
(t !== "name" || e !== s) && super.attributeChangedCallback(t, e, s);
|
|
109
108
|
}
|
|
110
109
|
/**
|
|
111
110
|
* Returns true if this element has no validity problems; false otherwise.
|
|
@@ -140,8 +139,8 @@ const z = (a) => (() => {
|
|
|
140
139
|
this.formDisabled = t;
|
|
141
140
|
});
|
|
142
141
|
}
|
|
143
|
-
requestUpdate(t, e,
|
|
144
|
-
super.requestUpdate(t, e,
|
|
142
|
+
requestUpdate(t, e, s) {
|
|
143
|
+
super.requestUpdate(t, e, s), this.hasUpdated && this.shouldValidate(t) && this.validate();
|
|
145
144
|
}
|
|
146
145
|
firstUpdated(t) {
|
|
147
146
|
super.firstUpdated(t), this.validate();
|
|
@@ -170,10 +169,10 @@ const z = (a) => (() => {
|
|
|
170
169
|
* }
|
|
171
170
|
* }
|
|
172
171
|
*/
|
|
173
|
-
setValidityFlag(t, e,
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
(!
|
|
172
|
+
setValidityFlag(t, e, s) {
|
|
173
|
+
s ??= !0;
|
|
174
|
+
const l = this._validityStates.get(t);
|
|
175
|
+
(!l || l.message !== e || l.flagValue !== s) && (this._validityStates.set(t, { flagValue: s, message: e }), this._setInternalValidity());
|
|
177
176
|
}
|
|
178
177
|
/** Removes the validity state flag entry and updates validity state. */
|
|
179
178
|
removeValidityFlag(t) {
|
|
@@ -187,33 +186,32 @@ const z = (a) => (() => {
|
|
|
187
186
|
return !t;
|
|
188
187
|
}
|
|
189
188
|
_setInternalValidity() {
|
|
190
|
-
|
|
191
|
-
let t = (u = this._validityStates.get("customError")) == null ? void 0 : u.message;
|
|
189
|
+
let t = this._validityStates.get("customError")?.message;
|
|
192
190
|
const e = {};
|
|
193
|
-
this._validityStates.forEach(({ flagValue:
|
|
194
|
-
e[
|
|
191
|
+
this._validityStates.forEach(({ flagValue: l, message: u }, k) => {
|
|
192
|
+
e[k] = l, t ||= u;
|
|
195
193
|
});
|
|
196
|
-
const
|
|
197
|
-
for (const
|
|
198
|
-
const
|
|
199
|
-
Object.defineProperty(this.internals.validity,
|
|
194
|
+
const s = Object.keys(ValidityState.prototype).filter((l) => !(l in E) && l !== "valid");
|
|
195
|
+
for (const l of s) {
|
|
196
|
+
const u = l in e ? e[l] : !1;
|
|
197
|
+
Object.defineProperty(this.internals.validity, l, { value: u, configurable: !0 }), u && (e.customError = !0);
|
|
200
198
|
}
|
|
201
|
-
this.internals.setValidity(e, t),
|
|
199
|
+
this.internals.setValidity(e, t), M && Object.defineProperty(this.internals.validity, "customError", {
|
|
202
200
|
value: this._validityStates.has("customError") || !!e.customError,
|
|
203
201
|
configurable: !0
|
|
204
202
|
});
|
|
205
203
|
}
|
|
206
204
|
}, d = new WeakMap(), (() => {
|
|
207
205
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
208
|
-
|
|
209
|
-
e.name =
|
|
210
|
-
} }, metadata: t }, null, o),
|
|
211
|
-
e.value =
|
|
212
|
-
} }, metadata: t }, null, o),
|
|
213
|
-
e.formDisabled =
|
|
214
|
-
} }, metadata: t },
|
|
215
|
-
})(),
|
|
206
|
+
m = [D()], y = [D()], v = [I()], h(n, null, m, { kind: "setter", name: "name", static: !1, private: !1, access: { has: (e) => "name" in e, set: (e, s) => {
|
|
207
|
+
e.name = s;
|
|
208
|
+
} }, metadata: t }, null, o), h(n, null, y, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (e) => "value" in e, set: (e, s) => {
|
|
209
|
+
e.value = s;
|
|
210
|
+
} }, metadata: t }, null, o), h(n, null, v, { kind: "accessor", name: "formDisabled", static: !1, private: !1, access: { has: (e) => "formDisabled" in e, get: (e) => e.formDisabled, set: (e, s) => {
|
|
211
|
+
e.formDisabled = s;
|
|
212
|
+
} }, metadata: t }, p, b), t && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
213
|
+
})(), n.formAssociated = !0, n;
|
|
216
214
|
})();
|
|
217
215
|
export {
|
|
218
|
-
|
|
216
|
+
x as SbbFormAssociatedMixin
|
|
219
217
|
};
|
|
@@ -34,8 +34,7 @@ const c = /* @__PURE__ */ new WeakMap(), D = (h) => (() => {
|
|
|
34
34
|
return "radio";
|
|
35
35
|
}
|
|
36
36
|
constructor() {
|
|
37
|
-
|
|
38
|
-
super(), this._checked = (u(this, r), !1), this.abort = new R(this), this._languageController = new y(this), this.internals.role = "radio", (e = this.addEventListener) == null || e.call(this, "keydown", (t) => this._handleArrowKeyDown(t));
|
|
37
|
+
super(), this._checked = (u(this, r), !1), this.abort = new R(this), this._languageController = new y(this), this.internals.role = "radio", this.addEventListener?.("keydown", (e) => this._handleArrowKeyDown(e));
|
|
39
38
|
}
|
|
40
39
|
connectedCallback() {
|
|
41
40
|
super.connectedCallback(), this._connectToRegistry(), this._synchronizeGroupState();
|
|
@@ -84,7 +83,7 @@ const c = /* @__PURE__ */ new WeakMap(), D = (h) => (() => {
|
|
|
84
83
|
return;
|
|
85
84
|
let e = !1, t = !1;
|
|
86
85
|
for (const i of this.associatedRadioButtons)
|
|
87
|
-
e
|
|
86
|
+
e ||= i.required, t ||= i.checked;
|
|
88
87
|
e && !t ? this.associatedRadioButtons.forEach((i) => i.setValidityFlag("valueMissing", k[this._languageController.current])) : this.associatedRadioButtons.forEach((i) => i.removeValidityFlag("valueMissing"));
|
|
89
88
|
}
|
|
90
89
|
/**
|
|
@@ -124,8 +123,7 @@ const c = /* @__PURE__ */ new WeakMap(), D = (h) => (() => {
|
|
|
124
123
|
* Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map
|
|
125
124
|
*/
|
|
126
125
|
_disconnectFromRegistry() {
|
|
127
|
-
|
|
128
|
-
(e = this.associatedRadioButtons) == null || e.delete(this), ((t = this.associatedRadioButtons) == null ? void 0 : t.size) === 0 ? (i = this._radioButtonGroupsMap) == null || i.delete(this.name) : this.validate(), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
|
|
126
|
+
this.associatedRadioButtons?.delete(this), this.associatedRadioButtons?.size === 0 ? this._radioButtonGroupsMap?.delete(this.name) : this.validate(), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
|
|
129
127
|
}
|
|
130
128
|
/**
|
|
131
129
|
* Return a list of 'interactable' grouped radios, ordered in DOM order
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
class
|
|
1
|
+
const h = (o) => {
|
|
2
|
+
class n extends o {
|
|
3
3
|
/**
|
|
4
4
|
* Returns a Promise that resolves when the element has completed hydration.
|
|
5
5
|
* The Promise value is a boolean that is `true` if the element required hydration
|
|
@@ -15,25 +15,24 @@ const d = (s) => {
|
|
|
15
15
|
get hydrationRequired() {
|
|
16
16
|
return this._hydrationRequired;
|
|
17
17
|
}
|
|
18
|
-
constructor(...
|
|
19
|
-
|
|
20
|
-
if (super(...r), this._hydrationComplete = new Promise((i) => this._resolveHydration = i), this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
|
|
18
|
+
constructor(...i) {
|
|
19
|
+
if (super(...i), this._hydrationComplete = new Promise((t) => this._resolveHydration = t), this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
|
|
21
20
|
this._resolveHydration(!1);
|
|
22
21
|
else {
|
|
23
|
-
const
|
|
22
|
+
const t = (e) => {
|
|
24
23
|
this._hydrationRequired && e.stopImmediatePropagation();
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
e.removeEventListener("slotchange",
|
|
24
|
+
}, s = { capture: !0 }, r = this.shadowRoot?.querySelectorAll("slot");
|
|
25
|
+
r?.length && (r.forEach((e) => e.addEventListener("slotchange", t, s)), this.hydrationComplete.then(() => r.forEach((e) => {
|
|
26
|
+
e.removeEventListener("slotchange", t, s), e.assignedNodes().length && e.dispatchEvent(new Event("slotchange", { bubbles: !0 }));
|
|
28
27
|
})));
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
|
-
update(
|
|
32
|
-
super.update(
|
|
30
|
+
update(i) {
|
|
31
|
+
super.update(i), this._hydrationRequired && (this._hydrationRequired = !1, this._resolveHydration(!0));
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
|
-
return
|
|
34
|
+
return n;
|
|
36
35
|
};
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
h as SbbHydrationMixin
|
|
39
38
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var C = (l) => {
|
|
2
2
|
throw TypeError(l);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
4
|
+
var p = (l, i, s) => i.has(l) || C("Cannot " + s);
|
|
5
|
+
var S = (l, i, s) => (p(l, i, "read from private field"), s ? s.call(l) : i.get(l)), f = (l, i, s) => i.has(l) ? C("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(l) : i.set(l, s), c = (l, i, s, o) => (p(l, i, "write to private field"), o ? o.call(l, s) : i.set(l, s), s);
|
|
6
|
+
import { __runInitializers as _, __esDecorate as $ } from "tslib";
|
|
7
7
|
import { nothing as m, html as h } from "lit";
|
|
8
|
-
import { state as
|
|
9
|
-
import { SbbHydrationMixin as
|
|
8
|
+
import { state as L } from "lit/decorators.js";
|
|
9
|
+
import { SbbHydrationMixin as N } from "./hydration-mixin.js";
|
|
10
10
|
import "../../screen-reader-only.js";
|
|
11
|
-
const
|
|
12
|
-
var
|
|
13
|
-
let s =
|
|
14
|
-
return
|
|
11
|
+
const g = "data-ssr-child-count", y = "li", O = (l) => (() => {
|
|
12
|
+
var a, n;
|
|
13
|
+
let s = N(l), o, u = [], b = [];
|
|
14
|
+
return n = class extends s {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
|
|
18
|
-
c(this,
|
|
17
|
+
f(this, a);
|
|
18
|
+
c(this, a, _(this, u, [])), this._handleSlotchange = (_(this, b), () => {
|
|
19
19
|
const e = Array.from(this.children ?? []).filter((t) => this.listChildLocalNames.includes(t.localName));
|
|
20
|
-
e.length === this.listChildren.length && this.listChildren.every((t,
|
|
20
|
+
e.length === this.listChildren.length && this.listChildren.every((t, r) => e[r] === t) || (this.listChildren.filter((t) => !e.includes(t)).forEach((t) => t.removeAttribute("slot")), this.listChildren = e, this.listChildren.forEach((t, r) => t.setAttribute("slot", `${y}-${r}`)), this.removeAttribute(g));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
@@ -26,18 +26,16 @@ const y = "data-ssr-child-count", $ = "li", A = (l) => (() => {
|
|
|
26
26
|
* to the child elements.
|
|
27
27
|
*/
|
|
28
28
|
get listChildren() {
|
|
29
|
-
return
|
|
29
|
+
return S(this, a);
|
|
30
30
|
}
|
|
31
31
|
set listChildren(e) {
|
|
32
|
-
c(this,
|
|
32
|
+
c(this, a, e);
|
|
33
33
|
}
|
|
34
34
|
connectedCallback() {
|
|
35
|
-
|
|
36
|
-
super.connectedCallback(), (e = this.shadowRoot) == null || e.addEventListener("slotchange", this._handleSlotchange, { passive: !0 });
|
|
35
|
+
super.connectedCallback(), this.shadowRoot?.addEventListener("slotchange", this._handleSlotchange, { passive: !0 });
|
|
37
36
|
}
|
|
38
37
|
disconnectedCallback() {
|
|
39
|
-
|
|
40
|
-
super.disconnectedCallback(), (e = this.shadowRoot) == null || e.removeEventListener("slotchange", this._handleSlotchange);
|
|
38
|
+
super.disconnectedCallback(), this.shadowRoot?.removeEventListener("slotchange", this._handleSlotchange);
|
|
41
39
|
}
|
|
42
40
|
/**
|
|
43
41
|
* Renders list and list slots for slotted children or a number of list slots
|
|
@@ -49,23 +47,23 @@ const y = "data-ssr-child-count", $ = "li", A = (l) => (() => {
|
|
|
49
47
|
* children to be passed via the `data-ssr-child-count` attribute value.
|
|
50
48
|
*/
|
|
51
49
|
renderList(e = {}, t = {}) {
|
|
52
|
-
const
|
|
53
|
-
return
|
|
50
|
+
const r = this.listSlotEntries(t);
|
|
51
|
+
return r.length >= 2 ? h`
|
|
54
52
|
<ul
|
|
55
53
|
class=${e.class || this.localName}
|
|
56
54
|
aria-label=${e.ariaLabel || m}
|
|
57
55
|
aria-labelledby=${e.ariaLabelledby || m}
|
|
58
56
|
>
|
|
59
|
-
${
|
|
57
|
+
${r.map((d) => h`
|
|
60
58
|
<li aria-hidden=${d.ariaHidden || m}>
|
|
61
59
|
<slot name=${d.name}></slot>
|
|
62
60
|
</li>
|
|
63
61
|
`)}
|
|
64
62
|
</ul>
|
|
65
63
|
${this.renderHiddenSlot()}
|
|
66
|
-
` :
|
|
64
|
+
` : r.length === 1 ? h`<sbb-screen-reader-only>${e.ariaLabel}</sbb-screen-reader-only>
|
|
67
65
|
<span class=${e.class || this.localName}>
|
|
68
|
-
<span><slot name=${
|
|
66
|
+
<span><slot name=${r[0].name}></slot></span>
|
|
69
67
|
</span>
|
|
70
68
|
${this.renderHiddenSlot()} ` : this.renderHiddenSlot();
|
|
71
69
|
}
|
|
@@ -79,13 +77,10 @@ const y = "data-ssr-child-count", $ = "li", A = (l) => (() => {
|
|
|
79
77
|
* children to be passed via the `data-ssr-child-count` attribute value.
|
|
80
78
|
*/
|
|
81
79
|
listSlotEntries(e) {
|
|
82
|
-
return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
ariaHidden: ((b = e == null ? void 0 : e.localNameVisualOnly) == null ? void 0 : b.includes(n.localName)) ?? !1
|
|
87
|
-
};
|
|
88
|
-
});
|
|
80
|
+
return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(g) ?? 0) })).map((r, d) => ({
|
|
81
|
+
name: `${y}-${d}`,
|
|
82
|
+
ariaHidden: e?.localNameVisualOnly?.includes(r.localName) ?? !1
|
|
83
|
+
}));
|
|
89
84
|
}
|
|
90
85
|
/**
|
|
91
86
|
* Returns a hidden slot, which is intended as the children change detection.
|
|
@@ -95,13 +90,13 @@ const y = "data-ssr-child-count", $ = "li", A = (l) => (() => {
|
|
|
95
90
|
renderHiddenSlot() {
|
|
96
91
|
return h`<span hidden><slot></slot></span>`;
|
|
97
92
|
}
|
|
98
|
-
},
|
|
93
|
+
}, a = new WeakMap(), (() => {
|
|
99
94
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
|
|
100
|
-
o = [
|
|
101
|
-
t.listChildren =
|
|
102
|
-
} }, metadata: e }, u,
|
|
103
|
-
})(),
|
|
95
|
+
o = [L()], $(n, null, o, { kind: "accessor", name: "listChildren", static: !1, private: !1, access: { has: (t) => "listChildren" in t, get: (t) => t.listChildren, set: (t, r) => {
|
|
96
|
+
t.listChildren = r;
|
|
97
|
+
} }, metadata: e }, u, b), e && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
98
|
+
})(), n;
|
|
104
99
|
})();
|
|
105
100
|
export {
|
|
106
|
-
|
|
101
|
+
O as SbbNamedSlotListMixin
|
|
107
102
|
};
|
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
var k = (
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var k = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var I = (
|
|
5
|
-
var h = (
|
|
4
|
+
var I = (e, s, a) => s.has(e) || k("Cannot " + a);
|
|
5
|
+
var h = (e, s, a) => (I(e, s, "read from private field"), a ? a.call(e) : s.get(e)), b = (e, s, a) => s.has(e) ? k("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, a), i = (e, s, a, p) => (I(e, s, "write to private field"), p ? p.call(e, a) : s.set(e, a), a);
|
|
6
6
|
import { __runInitializers as d, __esDecorate as _ } from "tslib";
|
|
7
7
|
import { property as m } from "lit/decorators.js";
|
|
8
8
|
import { forceType as w } from "../decorators.js";
|
|
9
9
|
import { EventEmitter as j } from "../eventing.js";
|
|
10
|
-
const q = (
|
|
11
|
-
var n, l, c,
|
|
12
|
-
let
|
|
13
|
-
return
|
|
10
|
+
const q = (e) => (() => {
|
|
11
|
+
var n, l, c, r;
|
|
12
|
+
let a = e, p, f = [], x = [], g, S = [], y = [], v, z = [], C = [];
|
|
13
|
+
return r = class extends a {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
b(this, n);
|
|
17
17
|
b(this, l);
|
|
18
18
|
b(this, c);
|
|
19
|
-
i(this, n, d(this, f, "white")), i(this, l, (d(this, x), d(this, S, !1))), i(this, c, (d(this, y), d(this, z, ""))), this._panelConnected = (d(this, C), new j(this,
|
|
19
|
+
i(this, n, d(this, f, "white")), i(this, l, (d(this, x), d(this, S, !1))), i(this, c, (d(this, y), d(this, z, ""))), this._panelConnected = (d(this, C), new j(this, r.events.panelConnected, { bubbles: !0 }));
|
|
20
20
|
}
|
|
21
21
|
/** The background color of the panel. */
|
|
22
22
|
get color() {
|
|
23
23
|
return h(this, n);
|
|
24
24
|
}
|
|
25
|
-
set color(
|
|
26
|
-
i(this, n,
|
|
25
|
+
set color(o) {
|
|
26
|
+
i(this, n, o);
|
|
27
27
|
}
|
|
28
28
|
/** Whether the unselected panel has a border. */
|
|
29
29
|
get borderless() {
|
|
30
30
|
return h(this, l);
|
|
31
31
|
}
|
|
32
|
-
set borderless(
|
|
33
|
-
i(this, l,
|
|
32
|
+
set borderless(o) {
|
|
33
|
+
i(this, l, o);
|
|
34
34
|
}
|
|
35
35
|
/** @internal used for accessibility label when in expansion panel */
|
|
36
36
|
get expansionState() {
|
|
37
37
|
return h(this, c);
|
|
38
38
|
}
|
|
39
|
-
set expansionState(
|
|
40
|
-
i(this, c,
|
|
39
|
+
set expansionState(o) {
|
|
40
|
+
i(this, c, o);
|
|
41
41
|
}
|
|
42
42
|
connectedCallback() {
|
|
43
|
-
|
|
44
|
-
super.connectedCallback(), this._panelConnected.emit(), (e = (s = this.closest) == null ? void 0 : s.call(this, "sbb-radio-button-group, sbb-checkbox-group")) == null || e.toggleAttribute("data-has-panel", !0);
|
|
43
|
+
super.connectedCallback(), this._panelConnected.emit(), this.closest?.("sbb-radio-button-group, sbb-checkbox-group")?.toggleAttribute("data-has-panel", !0);
|
|
45
44
|
}
|
|
46
45
|
}, n = new WeakMap(), l = new WeakMap(), c = new WeakMap(), (() => {
|
|
47
|
-
const
|
|
48
|
-
p = [m({ reflect: !0 })], g = [w(), m({ reflect: !0, type: Boolean })], v = [w(), m()], _(
|
|
49
|
-
|
|
50
|
-
} }, metadata:
|
|
51
|
-
|
|
52
|
-
} }, metadata:
|
|
53
|
-
|
|
54
|
-
} }, metadata:
|
|
55
|
-
})(),
|
|
46
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
|
|
47
|
+
p = [m({ reflect: !0 })], g = [w(), m({ reflect: !0, type: Boolean })], v = [w(), m()], _(r, null, p, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (t) => "color" in t, get: (t) => t.color, set: (t, u) => {
|
|
48
|
+
t.color = u;
|
|
49
|
+
} }, metadata: o }, f, x), _(r, null, g, { kind: "accessor", name: "borderless", static: !1, private: !1, access: { has: (t) => "borderless" in t, get: (t) => t.borderless, set: (t, u) => {
|
|
50
|
+
t.borderless = u;
|
|
51
|
+
} }, metadata: o }, S, y), _(r, null, v, { kind: "accessor", name: "expansionState", static: !1, private: !1, access: { has: (t) => "expansionState" in t, get: (t) => t.expansionState, set: (t, u) => {
|
|
52
|
+
t.expansionState = u;
|
|
53
|
+
} }, metadata: o }, z, C), o && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
54
|
+
})(), r.events = {
|
|
56
55
|
panelConnected: "panelConnected"
|
|
57
|
-
},
|
|
56
|
+
}, r;
|
|
58
57
|
})();
|
|
59
58
|
export {
|
|
60
59
|
q as SbbPanelMixin
|
package/core/mixins.js
CHANGED
|
@@ -11,7 +11,7 @@ import { SbbPanelMixin as C } from "./mixins/panel-mixin.js";
|
|
|
11
11
|
import { SbbRequiredMixin as D } from "./mixins/required-mixin.js";
|
|
12
12
|
import { SbbUpdateSchedulerMixin as R } from "./mixins/update-scheduler-mixin.js";
|
|
13
13
|
import { css as e } from "lit";
|
|
14
|
-
const s = e`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([size=s]){--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs)}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;
|
|
14
|
+
const s = e`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([size=s]){--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs)}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;inset:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;inset:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
|
|
15
15
|
export {
|
|
16
16
|
r as SbbAnimationCompleteMixin,
|
|
17
17
|
a as SbbDisabledInteractiveMixin,
|
package/core/overlay/position.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
const o = window.getComputedStyle(t),
|
|
3
|
-
if (
|
|
1
|
+
function b(t) {
|
|
2
|
+
const o = window.getComputedStyle(t), l = o.display, h = parseInt(o.maxHeight, 10).toString();
|
|
3
|
+
if (l !== "none" && h !== "0")
|
|
4
4
|
return {
|
|
5
5
|
scrollHeight: t.scrollHeight,
|
|
6
6
|
clientHeight: t.clientHeight,
|
|
@@ -10,31 +10,31 @@ function w(t) {
|
|
|
10
10
|
offsetWidth: t.offsetWidth
|
|
11
11
|
};
|
|
12
12
|
t.style.position = "absolute", t.style.visibility = "hidden", t.style.display = "block";
|
|
13
|
-
const
|
|
14
|
-
return t.style.display = "", t.style.position = "", t.style.visibility = "", { scrollHeight:
|
|
13
|
+
const y = t.scrollHeight, e = t.clientHeight, g = t.offsetHeight, a = t.scrollWidth, n = t.clientWidth, i = t.offsetWidth;
|
|
14
|
+
return t.style.display = "", t.style.position = "", t.style.visibility = "", { scrollHeight: y, clientHeight: e, offsetHeight: g, scrollWidth: a, clientWidth: n, offsetWidth: i };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function w(t, o) {
|
|
17
17
|
if (!t || !o)
|
|
18
18
|
return !1;
|
|
19
|
-
const
|
|
20
|
-
return
|
|
19
|
+
const l = t.getBoundingClientRect();
|
|
20
|
+
return l.top <= o.clientY && o.clientY <= l.top + l.height && l.left <= o.clientX && o.clientX <= l.left + l.width;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
top:
|
|
31
|
-
left:
|
|
32
|
-
maxHeight:
|
|
33
|
-
alignment:
|
|
22
|
+
function x(t, o, l, h) {
|
|
23
|
+
const e = h?.verticalOffset || 0, g = h?.horizontalOffset || 0, a = h?.responsiveHeight || !1, n = o.getBoundingClientRect(), i = b(t), d = n.left, m = n.top, p = document.documentElement.clientWidth - (d + n.width), r = m - e, H = document.documentElement.clientHeight - (m + n.height + e);
|
|
24
|
+
let c = d, W = m + n.height + e, s = i.offsetWidth - n.width;
|
|
25
|
+
const f = { horizontal: "start", vertical: "below" };
|
|
26
|
+
let v = `${H - e}px`;
|
|
27
|
+
h?.centered && d - 16 + n.width / 2 > i.offsetWidth / 2 && p - 16 > s / 2 && (c -= s /= 2, f.horizontal = "center"), p < s && d > s && (c = c - s, f.horizontal = "end"), g && f.horizontal !== "center" && n.width / 2 < g && (c += g * (f.horizontal === "start" ? -1 : 1)), (d < s && p < s || document.documentElement.clientWidth < i.offsetWidth) && (c = document.documentElement.clientWidth / 2 - i.offsetWidth / 2), (H - e < i.scrollHeight && r - e > (a ? i.clientHeight : i.scrollHeight) || r > H && H - e < i.clientHeight && !a) && (W = r < i.scrollHeight ? W - n.height - r - e : m - i.clientHeight - e, v = `${r - e}px`, f.vertical = "above");
|
|
28
|
+
const u = l.getBoundingClientRect();
|
|
29
|
+
return u.left < 0 && (c -= u.left), u.top < 0 && (W -= u.top), {
|
|
30
|
+
top: W,
|
|
31
|
+
left: c,
|
|
32
|
+
maxHeight: v,
|
|
33
|
+
alignment: f
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
x as getElementPosition,
|
|
38
|
+
b as getElementRectangle,
|
|
39
|
+
w as isEventOnElement
|
|
40
40
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@use 'sass:math';
|
|
5
5
|
@use 'sass:meta';
|
|
6
6
|
@use 'sass:string';
|
|
7
|
-
@use '
|
|
7
|
+
@use '@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables.scss' as sbb-tokens;
|
|
8
8
|
|
|
9
9
|
$mq-breakpoints: (
|
|
10
10
|
zero: sbb-tokens.$sbb-breakpoint-zero-min,
|
package/core/styles/core.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
sbb-css-tokens;
|
|
1
|
+
@use '@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables_css--mixin.scss' as sbb-css-tokens;
|
|
3
2
|
@use './core/mediaqueries';
|
|
4
3
|
@use './core/functions';
|
|
5
4
|
@use './mixins/a11y';
|
|
@@ -173,32 +172,32 @@ sbb-form-field {
|
|
|
173
172
|
|
|
174
173
|
// Hiding components until they are instantiated
|
|
175
174
|
:is(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
175
|
+
sbb-autocomplete,
|
|
176
|
+
sbb-autocomplete-grid,
|
|
177
|
+
sbb-dialog,
|
|
178
|
+
sbb-menu,
|
|
179
|
+
sbb-navigation,
|
|
180
|
+
sbb-navigation-section,
|
|
181
|
+
sbb-overlay,
|
|
182
|
+
sbb-popover,
|
|
183
|
+
sbb-select,
|
|
184
|
+
sbb-skiplink-list,
|
|
185
|
+
sbb-toast
|
|
186
|
+
):not(:defined) {
|
|
188
187
|
display: none;
|
|
189
188
|
}
|
|
190
189
|
|
|
191
190
|
// Hide popover artifacts
|
|
192
191
|
[popover]:where(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
192
|
+
sbb-autocomplete,
|
|
193
|
+
sbb-autocomplete-grid,
|
|
194
|
+
sbb-dialog,
|
|
195
|
+
sbb-menu,
|
|
196
|
+
sbb-navigation,
|
|
197
|
+
sbb-overlay,
|
|
198
|
+
sbb-popover,
|
|
199
|
+
sbb-toast
|
|
200
|
+
) {
|
|
202
201
|
margin: 0;
|
|
203
202
|
padding: 0;
|
|
204
203
|
border: none;
|
|
@@ -449,11 +448,11 @@ sbb-sidebar-container:is(
|
|
|
449
448
|
|
|
450
449
|
// Toggles visibility of backdrop if there is an affected sidebar inside the container.
|
|
451
450
|
sbb-sidebar-container:has(
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
451
|
+
> sbb-sidebar:is([mode='over'], [data-mode-over-forced]):is(
|
|
452
|
+
[data-state='opening'],
|
|
453
|
+
[data-state='opened']
|
|
454
|
+
)
|
|
455
|
+
) {
|
|
457
456
|
--sbb-sidebar-container__backdrop-visibility: visible;
|
|
458
457
|
--sbb-sidebar-container-backdrop-opacity: 0.4;
|
|
459
458
|
}
|