@sbb-esta/lyne-elements 2.3.0 → 2.5.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/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid.js +0 -1
- package/autocomplete.js +28 -28
- package/button/common/button-common.d.ts +1 -2
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common.js +4 -4
- package/calendar/calendar.d.ts +55 -11
- package/calendar/calendar.d.ts.map +1 -1
- package/calendar.js +374 -224
- package/card/common/card-action-common.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/checkbox/checkbox-group.js +1 -1
- package/checkbox/common/checkbox-common.d.ts.map +1 -1
- package/clock/clock.d.ts +8 -0
- package/clock/clock.d.ts.map +1 -1
- package/clock.js +40 -31
- package/core/a11y/focus.d.ts.map +1 -1
- package/core/base-elements.js +36 -36
- package/core/controllers/escapable-overlay-controller.d.ts +11 -0
- package/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
- package/core/controllers/inert-controller.d.ts +3 -3
- package/core/controllers/inert-controller.d.ts.map +1 -1
- package/core/controllers.d.ts +1 -0
- package/core/controllers.d.ts.map +1 -1
- package/core/controllers.js +79 -52
- package/core/datetime/date-adapter.d.ts +4 -2
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.d.ts +1 -1
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime.js +51 -43
- package/core/decorators/date-converter.d.ts +8 -0
- package/core/decorators/date-converter.d.ts.map +1 -0
- package/core/decorators/date-only-type.d.ts +8 -0
- package/core/decorators/date-only-type.d.ts.map +1 -0
- package/core/decorators/force-type.d.ts +1 -1
- package/core/decorators/force-type.d.ts.map +1 -1
- package/core/decorators/get-override.d.ts.map +1 -1
- package/core/decorators/handle-distinct-change.d.ts.map +1 -1
- package/core/decorators/host-attributes.d.ts.map +1 -1
- package/core/decorators/slot-state.d.ts.map +1 -1
- package/core/decorators.d.ts +2 -0
- package/core/decorators.d.ts.map +1 -1
- package/core/decorators.js +61 -41
- package/core/dom/input-element.d.ts +1 -1
- package/core/dom/input-element.d.ts.map +1 -1
- package/core/dom.js +5 -5
- package/core/eventing/throttle.d.ts.map +1 -1
- package/core/i18n/i18n.d.ts +5 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n.js +138 -108
- package/core/mixins/animation-complete-mixin.d.ts +13 -0
- package/core/mixins/animation-complete-mixin.d.ts.map +1 -0
- package/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-input-mixin.d.ts +25 -0
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
- package/core/mixins/form-associated-mixin.d.ts +13 -0
- package/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/core/mixins/hydration-mixin.d.ts.map +1 -1
- package/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
- package/core/mixins/negative-mixin.d.ts.map +1 -1
- package/core/mixins/panel-mixin.d.ts.map +1 -1
- package/core/mixins/required-mixin.d.ts.map +1 -1
- package/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
- package/core/mixins.d.ts +2 -0
- package/core/mixins.d.ts.map +1 -1
- package/core/mixins.js +566 -341
- package/core/styles/core.scss +84 -1
- package/core/styles/mixins/link.scss +14 -0
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +3 -0
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +4 -1
- package/core/testing/mocha-extensions.d.ts.map +1 -1
- package/core/testing/wait-for-render.d.ts.map +1 -1
- package/core.css +53 -3
- package/custom-elements.json +37278 -30220
- package/date-input/date-input.d.ts +75 -0
- package/date-input/date-input.d.ts.map +1 -0
- package/date-input.d.ts +2 -0
- package/date-input.d.ts.map +1 -0
- package/date-input.js +155 -0
- package/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/datepicker/common.js +49 -45
- package/datepicker/datepicker/datepicker.d.ts +16 -6
- package/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/datepicker/datepicker-toggle.js +41 -38
- package/datepicker/datepicker.js +95 -77
- package/development/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid.js +1 -2
- package/development/autocomplete.js +9 -4
- package/development/button/common/button-common.d.ts +1 -2
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common.js +26 -24
- package/development/calendar/calendar.d.ts +55 -11
- package/development/calendar/calendar.d.ts.map +1 -1
- package/development/calendar.js +301 -87
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/development/checkbox/checkbox-group.js +2 -2
- package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
- package/development/clock/clock.d.ts +8 -0
- package/development/clock/clock.d.ts.map +1 -1
- package/development/clock.js +20 -2
- package/development/core/a11y/focus.d.ts.map +1 -1
- package/development/core/a11y.js +1 -1
- package/development/core/base-elements.js +6 -6
- package/development/core/controllers/escapable-overlay-controller.d.ts +11 -0
- package/development/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
- package/development/core/controllers/inert-controller.d.ts +3 -3
- package/development/core/controllers/inert-controller.d.ts.map +1 -1
- package/development/core/controllers.d.ts +1 -0
- package/development/core/controllers.d.ts.map +1 -1
- package/development/core/controllers.js +41 -7
- package/development/core/datetime/date-adapter.d.ts +4 -2
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.d.ts +1 -1
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime.js +14 -2
- package/development/core/decorators/date-converter.d.ts +8 -0
- package/development/core/decorators/date-converter.d.ts.map +1 -0
- package/development/core/decorators/date-only-type.d.ts +8 -0
- package/development/core/decorators/date-only-type.d.ts.map +1 -0
- package/development/core/decorators/force-type.d.ts +1 -1
- package/development/core/decorators/force-type.d.ts.map +1 -1
- package/development/core/decorators/get-override.d.ts.map +1 -1
- package/development/core/decorators/handle-distinct-change.d.ts.map +1 -1
- package/development/core/decorators/host-attributes.d.ts.map +1 -1
- package/development/core/decorators/slot-state.d.ts.map +1 -1
- package/development/core/decorators.d.ts +2 -0
- package/development/core/decorators.d.ts.map +1 -1
- package/development/core/decorators.js +27 -6
- package/development/core/dom/input-element.d.ts +1 -1
- package/development/core/dom/input-element.d.ts.map +1 -1
- package/development/core/dom.js +3 -3
- package/development/core/eventing/throttle.d.ts.map +1 -1
- package/development/core/i18n/i18n.d.ts +5 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n.js +36 -1
- package/development/core/mixins/animation-complete-mixin.d.ts +13 -0
- package/development/core/mixins/animation-complete-mixin.d.ts.map +1 -0
- package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.d.ts +25 -0
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
- package/development/core/mixins/form-associated-mixin.d.ts +13 -0
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/development/core/mixins/hydration-mixin.d.ts.map +1 -1
- package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
- package/development/core/mixins/negative-mixin.d.ts.map +1 -1
- package/development/core/mixins/panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/required-mixin.d.ts.map +1 -1
- package/development/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
- package/development/core/mixins.d.ts +2 -0
- package/development/core/mixins.d.ts.map +1 -1
- package/development/core/mixins.js +428 -88
- package/development/core/testing/mocha-extensions.d.ts.map +1 -1
- package/development/core/testing/wait-for-render.d.ts.map +1 -1
- package/development/date-input/date-input.d.ts +75 -0
- package/development/date-input/date-input.d.ts.map +1 -0
- package/development/date-input.d.ts +2 -0
- package/development/date-input.d.ts.map +1 -0
- package/development/date-input.js +267 -0
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common.js +11 -2
- package/development/datepicker/datepicker/datepicker.d.ts +16 -6
- package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle.js +12 -3
- package/development/datepicker/datepicker.js +66 -39
- package/development/dialog/dialog/dialog.d.ts.map +1 -1
- package/development/dialog/dialog-title/dialog-title.d.ts +3 -1
- package/development/dialog/dialog-title/dialog-title.d.ts.map +1 -1
- package/development/dialog/dialog-title.js +7 -2
- package/development/dialog/dialog.js +3 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel.js +2 -2
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
- package/development/flip-card/flip-card-details.js +5 -3
- package/development/form-field/form-field/form-field.d.ts +1 -1
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field.js +19 -13
- package/development/header/common/header-action-common.d.ts.map +1 -1
- package/development/header/common.js +2 -2
- package/development/icon/icon-name-mixin.d.ts.map +1 -1
- package/development/icon/icon-request.d.ts.map +1 -1
- package/development/icon/icon-validate.d.ts.map +1 -1
- package/development/link/common/block-link-common.d.ts.map +1 -1
- package/development/link/common/inline-link-common.d.ts.map +1 -1
- package/development/link/common/link-common.d.ts.map +1 -1
- package/development/link/common.js +13 -1
- package/development/menu/common/menu-action-common.d.ts.map +1 -1
- package/development/menu/menu/menu.d.ts +1 -1
- package/development/menu/menu/menu.d.ts.map +1 -1
- package/development/menu/menu.js +8 -15
- package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/development/navigation/navigation/navigation.d.ts +1 -3
- package/development/navigation/navigation/navigation.d.ts.map +1 -1
- package/development/navigation/navigation.js +11 -21
- package/development/overlay/overlay-base-element.d.ts +2 -2
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay.d.ts.map +1 -1
- package/development/overlay.js +9 -13
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/popover/popover/popover.d.ts +1 -1
- package/development/popover/popover/popover.d.ts.map +1 -1
- package/development/popover/popover.js +5 -15
- package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/development/radio-button/radio-button-group.js +2 -2
- package/development/sbb-tokens-CSAKTXUi.js +1 -1
- package/development/select/select.d.ts +3 -1
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +12 -8
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/development/selection-expansion-panel.js +2 -2
- package/development/sidebar/common.d.ts +1 -0
- package/development/sidebar/common.d.ts.map +1 -0
- package/development/sidebar/common.js +114 -0
- package/development/sidebar/icon-sidebar/icon-sidebar.d.ts +23 -0
- package/development/sidebar/icon-sidebar/icon-sidebar.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts +19 -0
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-button.d.ts +2 -0
- package/development/sidebar/icon-sidebar-button.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-button.js +28 -0
- package/development/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts +23 -0
- package/development/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-container.d.ts +2 -0
- package/development/sidebar/icon-sidebar-container.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-container.js +45 -0
- package/development/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts +17 -0
- package/development/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-content.d.ts +2 -0
- package/development/sidebar/icon-sidebar-content.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-content.js +34 -0
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts +19 -0
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-link.d.ts +2 -0
- package/development/sidebar/icon-sidebar-link.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar-link.js +28 -0
- package/development/sidebar/icon-sidebar.d.ts +2 -0
- package/development/sidebar/icon-sidebar.d.ts.map +1 -0
- package/development/sidebar/icon-sidebar.js +85 -0
- package/development/sidebar/sidebar/sidebar.d.ts +76 -0
- package/development/sidebar/sidebar/sidebar.d.ts.map +1 -0
- package/development/sidebar/sidebar-close-button/sidebar-close-button.d.ts +22 -0
- package/development/sidebar/sidebar-close-button/sidebar-close-button.d.ts.map +1 -0
- package/development/sidebar/sidebar-close-button.d.ts +2 -0
- package/development/sidebar/sidebar-close-button.d.ts.map +1 -0
- package/development/sidebar/sidebar-close-button.js +55 -0
- package/development/sidebar/sidebar-container/sidebar-container.d.ts +34 -0
- package/development/sidebar/sidebar-container/sidebar-container.d.ts.map +1 -0
- package/development/sidebar/sidebar-container.d.ts +2 -0
- package/development/sidebar/sidebar-container.d.ts.map +1 -0
- package/development/sidebar/sidebar-container.js +153 -0
- package/development/sidebar/sidebar-content/sidebar-content.d.ts +18 -0
- package/development/sidebar/sidebar-content/sidebar-content.d.ts.map +1 -0
- package/development/sidebar/sidebar-content.d.ts +2 -0
- package/development/sidebar/sidebar-content.d.ts.map +1 -0
- package/development/sidebar/sidebar-content.js +37 -0
- package/development/sidebar/sidebar-title/sidebar-title.d.ts +17 -0
- package/development/sidebar/sidebar-title/sidebar-title.d.ts.map +1 -0
- package/development/sidebar/sidebar-title.d.ts +2 -0
- package/development/sidebar/sidebar-title.d.ts.map +1 -0
- package/development/sidebar/sidebar-title.js +63 -0
- package/development/sidebar/sidebar.d.ts +2 -0
- package/development/sidebar/sidebar.d.ts.map +1 -0
- package/development/sidebar/sidebar.js +523 -0
- package/development/sidebar.d.ts +12 -0
- package/development/sidebar.d.ts.map +1 -0
- package/development/sidebar.js +12 -0
- package/development/stepper/step/step.d.ts +0 -2
- package/development/stepper/step/step.d.ts.map +1 -1
- package/development/stepper/step.js +19 -23
- package/development/stepper/stepper/stepper.d.ts +11 -0
- package/development/stepper/stepper/stepper.d.ts.map +1 -1
- package/development/stepper/stepper.js +30 -3
- package/development/tag/tag/tag.d.ts +11 -0
- package/development/tag/tag/tag.d.ts.map +1 -1
- package/development/tag/tag-group/tag-group.d.ts +1 -1
- package/development/tag/tag-group/tag-group.d.ts.map +1 -1
- package/development/tag/tag-group.js +9 -3
- package/development/tag/tag.js +37 -10
- package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -1
- package/development/time-input/time-input.d.ts +3 -2
- package/development/time-input/time-input.d.ts.map +1 -1
- package/development/time-input.js +19 -10
- package/development/title/title-base.d.ts +2 -4
- package/development/title/title-base.d.ts.map +1 -1
- package/development/title/title.d.ts +3 -1
- package/development/title/title.d.ts.map +1 -1
- package/development/title.js +8 -8
- package/dialog/dialog/dialog.d.ts.map +1 -1
- package/dialog/dialog-title/dialog-title.d.ts +3 -1
- package/dialog/dialog-title/dialog-title.d.ts.map +1 -1
- package/dialog/dialog-title.js +16 -15
- package/dialog/dialog.js +2 -2
- package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
- package/expansion-panel/expansion-panel.js +1 -1
- package/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
- package/flip-card/flip-card-details.js +14 -13
- package/form-field/form-field/form-field.d.ts +1 -1
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field.js +30 -24
- package/header/common/header-action-common.d.ts.map +1 -1
- package/header/common.js +6 -6
- package/icon/icon-name-mixin.d.ts.map +1 -1
- package/icon/icon-request.d.ts.map +1 -1
- package/icon/icon-validate.d.ts.map +1 -1
- package/index.d.ts +22 -0
- package/index.js +22 -0
- package/link/common/block-link-common.d.ts.map +1 -1
- package/link/common/inline-link-common.d.ts.map +1 -1
- package/link/common/link-common.d.ts.map +1 -1
- package/link/common.js +12 -12
- package/menu/common/menu-action-common.d.ts.map +1 -1
- package/menu/menu/menu.d.ts +1 -1
- package/menu/menu/menu.d.ts.map +1 -1
- package/menu/menu.js +26 -35
- package/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/navigation/navigation/navigation.d.ts +1 -3
- package/navigation/navigation/navigation.d.ts.map +1 -1
- package/navigation/navigation.js +47 -56
- package/overlay/overlay-base-element.d.ts +2 -2
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay.d.ts.map +1 -1
- package/overlay.js +58 -64
- package/package.json +66 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/popover/popover/popover.d.ts +1 -1
- package/popover/popover/popover.d.ts.map +1 -1
- package/popover/popover.js +101 -110
- package/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/radio-button/radio-button-group.js +1 -1
- package/select/select.d.ts +3 -1
- package/select/select.d.ts.map +1 -1
- package/select.js +39 -37
- package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/selection-expansion-panel.js +1 -1
- package/sidebar/common.d.ts +1 -0
- package/sidebar/common.d.ts.map +1 -0
- package/sidebar/common.js +7 -0
- package/sidebar/icon-sidebar/icon-sidebar.d.ts +23 -0
- package/sidebar/icon-sidebar/icon-sidebar.d.ts.map +1 -0
- package/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts +19 -0
- package/sidebar/icon-sidebar-button/icon-sidebar-button.d.ts.map +1 -0
- package/sidebar/icon-sidebar-button.d.ts +2 -0
- package/sidebar/icon-sidebar-button.d.ts.map +1 -0
- package/sidebar/icon-sidebar-button.js +20 -0
- package/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts +23 -0
- package/sidebar/icon-sidebar-container/icon-sidebar-container.d.ts.map +1 -0
- package/sidebar/icon-sidebar-container.d.ts +2 -0
- package/sidebar/icon-sidebar-container.d.ts.map +1 -0
- package/sidebar/icon-sidebar-container.js +35 -0
- package/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts +17 -0
- package/sidebar/icon-sidebar-content/icon-sidebar-content.d.ts.map +1 -0
- package/sidebar/icon-sidebar-content.d.ts +2 -0
- package/sidebar/icon-sidebar-content.d.ts.map +1 -0
- package/sidebar/icon-sidebar-content.js +23 -0
- package/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts +19 -0
- package/sidebar/icon-sidebar-link/icon-sidebar-link.d.ts.map +1 -0
- package/sidebar/icon-sidebar-link.d.ts +2 -0
- package/sidebar/icon-sidebar-link.d.ts.map +1 -0
- package/sidebar/icon-sidebar-link.js +20 -0
- package/sidebar/icon-sidebar.d.ts +2 -0
- package/sidebar/icon-sidebar.d.ts.map +1 -0
- package/sidebar/icon-sidebar.js +47 -0
- package/sidebar/sidebar/sidebar.d.ts +76 -0
- package/sidebar/sidebar/sidebar.d.ts.map +1 -0
- package/sidebar/sidebar-close-button/sidebar-close-button.d.ts +22 -0
- package/sidebar/sidebar-close-button/sidebar-close-button.d.ts.map +1 -0
- package/sidebar/sidebar-close-button.d.ts +2 -0
- package/sidebar/sidebar-close-button.d.ts.map +1 -0
- package/sidebar/sidebar-close-button.js +29 -0
- package/sidebar/sidebar-container/sidebar-container.d.ts +34 -0
- package/sidebar/sidebar-container/sidebar-container.d.ts.map +1 -0
- package/sidebar/sidebar-container.d.ts +2 -0
- package/sidebar/sidebar-container.d.ts.map +1 -0
- package/sidebar/sidebar-container.js +78 -0
- package/sidebar/sidebar-content/sidebar-content.d.ts +18 -0
- package/sidebar/sidebar-content/sidebar-content.d.ts.map +1 -0
- package/sidebar/sidebar-content.d.ts +2 -0
- package/sidebar/sidebar-content.d.ts.map +1 -0
- package/sidebar/sidebar-content.js +23 -0
- package/sidebar/sidebar-title/sidebar-title.d.ts +17 -0
- package/sidebar/sidebar-title/sidebar-title.d.ts.map +1 -0
- package/sidebar/sidebar-title.d.ts +2 -0
- package/sidebar/sidebar-title.d.ts.map +1 -0
- package/sidebar/sidebar-title.js +37 -0
- package/sidebar/sidebar.d.ts +2 -0
- package/sidebar/sidebar.d.ts.map +1 -0
- package/sidebar/sidebar.js +214 -0
- package/sidebar.d.ts +12 -0
- package/sidebar.d.ts.map +1 -0
- package/sidebar.js +11 -0
- package/standard-theme.css +53 -3
- package/stepper/step/step.d.ts +0 -2
- package/stepper/step/step.d.ts.map +1 -1
- package/stepper/step.js +23 -35
- package/stepper/stepper/stepper.d.ts +11 -0
- package/stepper/stepper/stepper.d.ts.map +1 -1
- package/stepper/stepper.js +59 -41
- package/tag/tag/tag.d.ts +11 -0
- package/tag/tag/tag.d.ts.map +1 -1
- package/tag/tag-group/tag-group.d.ts +1 -1
- package/tag/tag-group/tag-group.d.ts.map +1 -1
- package/tag/tag-group.js +32 -29
- package/tag/tag.js +60 -41
- package/teaser-product/common/teaser-product-common.d.ts.map +1 -1
- package/time-input/time-input.d.ts +3 -2
- package/time-input/time-input.d.ts.map +1 -1
- package/time-input.js +44 -36
- package/title/title-base.d.ts +2 -4
- package/title/title-base.d.ts.map +1 -1
- package/title/title.d.ts +3 -1
- package/title/title.d.ts.map +1 -1
- package/title.js +11 -11
package/core/mixins.js
CHANGED
|
@@ -1,33 +1,72 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var F = (d) => {
|
|
2
|
+
throw TypeError(d);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { property as
|
|
8
|
-
import { forceType as
|
|
9
|
-
import { defaultConverter as
|
|
10
|
-
import { SbbLanguageController as
|
|
11
|
-
import { preventScrollOnSpacebarPress as
|
|
12
|
-
import { i18nCheckboxRequired as
|
|
13
|
-
import { isWebkit as
|
|
14
|
-
import { interactivityChecker as
|
|
4
|
+
var L = (d, v, c) => v.has(d) || F("Cannot " + c);
|
|
5
|
+
var C = (d, v, c) => (L(d, v, "read from private field"), c ? c.call(d) : v.get(d)), E = (d, v, c) => v.has(d) ? F("Cannot add the same private member more than once") : v instanceof WeakSet ? v.add(d) : v.set(d, c), S = (d, v, c, l) => (L(d, v, "write to private field"), l ? l.call(d, c) : v.set(d, c), c);
|
|
6
|
+
import { __esDecorate as y, __runInitializers as _ } from "tslib";
|
|
7
|
+
import { property as k, state as j, eventOptions as G } from "lit/decorators.js";
|
|
8
|
+
import { forceType as I, getOverride as H, hostAttributes as K } from "./decorators.js";
|
|
9
|
+
import { defaultConverter as P, isServer as O, html as R, nothing as A, css as W } from "lit";
|
|
10
|
+
import { SbbLanguageController as M, SbbConnectedAbortController as X } from "./controllers.js";
|
|
11
|
+
import { preventScrollOnSpacebarPress as J, EventEmitter as Q } from "./eventing.js";
|
|
12
|
+
import { i18nCheckboxRequired as Y, i18nInputRequired as Z, i18nSelectionRequired as ee } from "./i18n.js";
|
|
13
|
+
import { isWebkit as N, isFirefox as te } from "./dom.js";
|
|
14
|
+
import { sbbInputModalityDetector as se, interactivityChecker as ae, isArrowKeyPressed as ie, getNextElementIndex as re } from "./a11y.js";
|
|
15
15
|
import "../screen-reader-only.js";
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const _e = (d) => {
|
|
17
|
+
class v extends d {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.isAnimating = !1, this._animationPromise = Promise.resolve();
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns a promise which completes whenever an animation ends.
|
|
23
|
+
* When a new animation starts, a new Promise is returned.
|
|
24
|
+
*/
|
|
25
|
+
get animationComplete() {
|
|
26
|
+
return this._animationPromise;
|
|
27
|
+
}
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
super.disconnectedCallback(), this.stopAnimation();
|
|
30
|
+
}
|
|
31
|
+
startAnimation() {
|
|
32
|
+
this.isAnimating || (this._animationPromise = this._enqueueAnimation());
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Overriding stopAnimation() breaks functionality.
|
|
36
|
+
*/
|
|
37
|
+
stopAnimation() {
|
|
38
|
+
}
|
|
39
|
+
async _enqueueAnimation() {
|
|
40
|
+
this.isAnimating = !0;
|
|
41
|
+
const l = this.stopAnimation, f = new Promise((n) => {
|
|
42
|
+
this.stopAnimation = () => {
|
|
43
|
+
l(), this.isAnimating = !1, n();
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
try {
|
|
47
|
+
await this._animationPromise;
|
|
48
|
+
} catch (n) {
|
|
49
|
+
Promise.reject(n);
|
|
50
|
+
}
|
|
51
|
+
return f;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return v;
|
|
55
|
+
}, B = (d) => (() => {
|
|
56
|
+
var b, t;
|
|
57
|
+
let c = d, l, f = [], n = [];
|
|
58
|
+
return t = class extends c {
|
|
20
59
|
constructor() {
|
|
21
60
|
super(...arguments);
|
|
22
|
-
|
|
23
|
-
|
|
61
|
+
E(this, b, _(this, f, !1));
|
|
62
|
+
_(this, n);
|
|
24
63
|
}
|
|
25
64
|
/** Whether the component is disabled. */
|
|
26
65
|
get disabled() {
|
|
27
|
-
return
|
|
66
|
+
return C(this, b);
|
|
28
67
|
}
|
|
29
|
-
set disabled(
|
|
30
|
-
|
|
68
|
+
set disabled(e) {
|
|
69
|
+
S(this, b, e);
|
|
31
70
|
}
|
|
32
71
|
/**
|
|
33
72
|
* Will be used as 'or' check to the current disabled state.
|
|
@@ -36,42 +75,42 @@ const M = (c) => (() => {
|
|
|
36
75
|
isDisabledExternally() {
|
|
37
76
|
return !1;
|
|
38
77
|
}
|
|
39
|
-
},
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
s.disabled =
|
|
43
|
-
} }, metadata:
|
|
44
|
-
})(),
|
|
45
|
-
})(),
|
|
46
|
-
var
|
|
47
|
-
let
|
|
48
|
-
return
|
|
78
|
+
}, b = new WeakMap(), (() => {
|
|
79
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
80
|
+
l = [I(), k({ reflect: !0, type: Boolean }), H((s, a) => a || s.isDisabledExternally())], y(t, null, l, { kind: "accessor", name: "disabled", static: !1, private: !1, access: { has: (s) => "disabled" in s, get: (s) => s.disabled, set: (s, a) => {
|
|
81
|
+
s.disabled = a;
|
|
82
|
+
} }, metadata: e }, f, n), e && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
83
|
+
})(), t;
|
|
84
|
+
})(), ne = (d) => (() => {
|
|
85
|
+
var b, t;
|
|
86
|
+
let c = d, l, f = [], n = [];
|
|
87
|
+
return t = class extends c {
|
|
49
88
|
constructor() {
|
|
50
89
|
super(...arguments);
|
|
51
|
-
|
|
52
|
-
|
|
90
|
+
E(this, b, _(this, f, !1));
|
|
91
|
+
_(this, n);
|
|
53
92
|
}
|
|
54
93
|
/** Whether the button should be aria-disabled but stay interactive. */
|
|
55
94
|
get disabledInteractive() {
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
set disabledInteractive(
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
s.disabledInteractive =
|
|
65
|
-
} }, metadata:
|
|
66
|
-
})(),
|
|
67
|
-
})(),
|
|
68
|
-
class
|
|
69
|
-
willUpdate(
|
|
70
|
-
super.willUpdate(
|
|
95
|
+
return C(this, b);
|
|
96
|
+
}
|
|
97
|
+
set disabledInteractive(e) {
|
|
98
|
+
S(this, b, e);
|
|
99
|
+
}
|
|
100
|
+
}, b = new WeakMap(), (() => {
|
|
101
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
102
|
+
l = [I(), k({ attribute: "disabled-interactive", type: Boolean, reflect: !0 })], y(t, null, l, { kind: "accessor", name: "disabledInteractive", static: !1, private: !1, access: { has: (s) => "disabledInteractive" in s, get: (s) => s.disabledInteractive, set: (s, a) => {
|
|
103
|
+
s.disabledInteractive = a;
|
|
104
|
+
} }, metadata: e }, f, n), e && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
105
|
+
})(), t;
|
|
106
|
+
})(), ye = (d) => {
|
|
107
|
+
class v extends ne(B(d)) {
|
|
108
|
+
willUpdate(l) {
|
|
109
|
+
super.willUpdate(l), l.has("disabledInteractive") && (this.internals.ariaDisabled = this.disabledInteractive ? "true" : null), l.has("disabled") && (this.disabled ? this.removeAttribute("tabindex") : this.setAttribute("tabindex", "0"));
|
|
71
110
|
}
|
|
72
111
|
}
|
|
73
|
-
return
|
|
74
|
-
},
|
|
112
|
+
return v;
|
|
113
|
+
}, $ = {
|
|
75
114
|
badInput: !1,
|
|
76
115
|
customError: !1,
|
|
77
116
|
patternMismatch: !1,
|
|
@@ -82,15 +121,31 @@ const M = (c) => (() => {
|
|
|
82
121
|
tooShort: !1,
|
|
83
122
|
typeMismatch: !1,
|
|
84
123
|
valueMissing: !1
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
124
|
+
};
|
|
125
|
+
if (typeof ValidityState > "u") {
|
|
126
|
+
const d = class {
|
|
127
|
+
get valid() {
|
|
128
|
+
return !0;
|
|
129
|
+
}
|
|
130
|
+
constructor() {
|
|
131
|
+
throw new TypeError("Illegal constructor");
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
Object.entries($).forEach(([v, c]) => Object.assign(d.prototype, {
|
|
135
|
+
get [v]() {
|
|
136
|
+
return c;
|
|
137
|
+
}
|
|
138
|
+
})), globalThis.ValidityState = d;
|
|
139
|
+
}
|
|
140
|
+
const V = (d) => (() => {
|
|
141
|
+
var u, e;
|
|
142
|
+
let c = d, l = [], f, n, b, t = [], r = [];
|
|
143
|
+
return e = class extends c {
|
|
144
|
+
constructor(...i) {
|
|
145
|
+
var o;
|
|
146
|
+
super(...i);
|
|
147
|
+
E(this, u);
|
|
148
|
+
this._value = (_(this, l), null), this.internals = this.attachInternals(), this._validityStates = /* @__PURE__ */ new Map(), S(this, u, _(this, t, !1)), _(this, r), (o = this.addEventListener) == null || o.call(this, "invalid", (p) => p.preventDefault());
|
|
94
149
|
}
|
|
95
150
|
/**
|
|
96
151
|
* Returns the form owner of this element.
|
|
@@ -104,8 +159,8 @@ const M = (c) => (() => {
|
|
|
104
159
|
* @description Developer note: In this case updating the attribute must be synchronous.
|
|
105
160
|
* Due to this it is implemented as a getter/setter and the attributeChangedCallback() handles the diff check.
|
|
106
161
|
*/
|
|
107
|
-
set name(
|
|
108
|
-
this.setAttribute("name", `${
|
|
162
|
+
set name(i) {
|
|
163
|
+
this.setAttribute("name", `${i}`), this.updateFormValue();
|
|
109
164
|
}
|
|
110
165
|
get name() {
|
|
111
166
|
return this.getAttribute("name") ?? "";
|
|
@@ -115,8 +170,8 @@ const M = (c) => (() => {
|
|
|
115
170
|
return this.localName;
|
|
116
171
|
}
|
|
117
172
|
/** Value of the form element. */
|
|
118
|
-
set value(
|
|
119
|
-
this._value =
|
|
173
|
+
set value(i) {
|
|
174
|
+
this._value = i, this.updateFormValue();
|
|
120
175
|
}
|
|
121
176
|
get value() {
|
|
122
177
|
return this._value;
|
|
@@ -148,13 +203,13 @@ const M = (c) => (() => {
|
|
|
148
203
|
}
|
|
149
204
|
/** Whenever a surrounding form or fieldset is changing its disabled state. */
|
|
150
205
|
get formDisabled() {
|
|
151
|
-
return
|
|
206
|
+
return C(this, u);
|
|
152
207
|
}
|
|
153
|
-
set formDisabled(
|
|
154
|
-
|
|
208
|
+
set formDisabled(i) {
|
|
209
|
+
S(this, u, i);
|
|
155
210
|
}
|
|
156
|
-
attributeChangedCallback(
|
|
157
|
-
(
|
|
211
|
+
attributeChangedCallback(i, o, p) {
|
|
212
|
+
(i !== "name" || o !== p) && super.attributeChangedCallback(i, o, p);
|
|
158
213
|
}
|
|
159
214
|
/**
|
|
160
215
|
* Returns true if this element has no validity problems; false otherwise.
|
|
@@ -175,8 +230,8 @@ const M = (c) => (() => {
|
|
|
175
230
|
* Sets the custom validity message for this element. Use the empty string
|
|
176
231
|
* to indicate that the element does not have a custom validity error.
|
|
177
232
|
*/
|
|
178
|
-
setCustomValidity(
|
|
179
|
-
|
|
233
|
+
setCustomValidity(i) {
|
|
234
|
+
i ? this.setValidityFlag("customError", i) : this.removeValidityFlag("customError");
|
|
180
235
|
}
|
|
181
236
|
/**
|
|
182
237
|
* Is called whenever a surrounding form / fieldset changes disabled state.
|
|
@@ -184,11 +239,17 @@ const M = (c) => (() => {
|
|
|
184
239
|
*
|
|
185
240
|
* @internal
|
|
186
241
|
*/
|
|
187
|
-
formDisabledCallback(
|
|
242
|
+
formDisabledCallback(i) {
|
|
188
243
|
Promise.resolve().then(() => {
|
|
189
|
-
this.formDisabled =
|
|
244
|
+
this.formDisabled = i;
|
|
190
245
|
});
|
|
191
246
|
}
|
|
247
|
+
requestUpdate(i, o, p) {
|
|
248
|
+
super.requestUpdate(i, o, p), this.hasUpdated && this.shouldValidate(i) && this.validate();
|
|
249
|
+
}
|
|
250
|
+
firstUpdated(i) {
|
|
251
|
+
super.firstUpdated(i), this.validate();
|
|
252
|
+
}
|
|
192
253
|
/**
|
|
193
254
|
* Marks this element as suffering from the constraint indicated by the
|
|
194
255
|
* flag argument and associates the given message to it.
|
|
@@ -196,8 +257,7 @@ const M = (c) => (() => {
|
|
|
196
257
|
* consumers are always displayed before internal messages and internal
|
|
197
258
|
* messages are displayed in the order they were added.
|
|
198
259
|
* To set/define custom validity state flags, you need to extend the
|
|
199
|
-
* ValidityState prototype and
|
|
200
|
-
* ValidityStateFlags interface.
|
|
260
|
+
* ValidityState prototype (and the CustomValidityState interface).
|
|
201
261
|
*
|
|
202
262
|
* @example
|
|
203
263
|
*
|
|
@@ -209,66 +269,70 @@ const M = (c) => (() => {
|
|
|
209
269
|
* });
|
|
210
270
|
*
|
|
211
271
|
* declare global {
|
|
212
|
-
* interface
|
|
272
|
+
* interface CustomValidityState {
|
|
213
273
|
* myError: boolean;
|
|
214
274
|
* }
|
|
215
|
-
* interface ValidityState {
|
|
216
|
-
* myError?: boolean;
|
|
217
|
-
* }
|
|
218
275
|
* }
|
|
219
276
|
*/
|
|
220
|
-
setValidityFlag(
|
|
221
|
-
|
|
277
|
+
setValidityFlag(i, o, p) {
|
|
278
|
+
p ?? (p = !0);
|
|
279
|
+
const x = this._validityStates.get(i);
|
|
280
|
+
(!x || x.message !== o || x.flagValue !== p) && (this._validityStates.set(i, { flagValue: p, message: o }), this._setInternalValidity());
|
|
222
281
|
}
|
|
223
|
-
|
|
224
|
-
|
|
282
|
+
/** Removes the validity state flag entry and updates validity state. */
|
|
283
|
+
removeValidityFlag(i) {
|
|
284
|
+
this._validityStates.has(i) && (this._validityStates.delete(i), this._setInternalValidity());
|
|
285
|
+
}
|
|
286
|
+
/** To be called whenever the current element needs to be validated. */
|
|
287
|
+
validate() {
|
|
288
|
+
}
|
|
289
|
+
/** Whether validation should be run on a property change with the given name. */
|
|
290
|
+
shouldValidate(i) {
|
|
291
|
+
return !i;
|
|
225
292
|
}
|
|
226
293
|
_setInternalValidity() {
|
|
227
|
-
var
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
this.
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
var r;
|
|
258
|
-
let u = c, o = [], p;
|
|
259
|
-
return r = class extends u {
|
|
294
|
+
var x;
|
|
295
|
+
let i = (x = this._validityStates.get("customError")) == null ? void 0 : x.message;
|
|
296
|
+
const o = {};
|
|
297
|
+
this._validityStates.forEach(({ flagValue: m, message: g }, h) => {
|
|
298
|
+
o[h] = m, i || (i = g);
|
|
299
|
+
});
|
|
300
|
+
const p = Object.keys(ValidityState.prototype).filter((m) => !(m in $) && m !== "valid");
|
|
301
|
+
for (const m of p) {
|
|
302
|
+
const g = m in o ? o[m] : !1;
|
|
303
|
+
Object.defineProperty(this.internals.validity, m, { value: g, configurable: !0 }), g && (o.customError = !0);
|
|
304
|
+
}
|
|
305
|
+
this.internals.setValidity(o, i), N && Object.defineProperty(this.internals.validity, "customError", {
|
|
306
|
+
value: this._validityStates.has("customError") || !!o.customError,
|
|
307
|
+
configurable: !0
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}, u = new WeakMap(), (() => {
|
|
311
|
+
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
312
|
+
f = [k()], n = [k()], b = [j()], y(e, null, f, { kind: "setter", name: "name", static: !1, private: !1, access: { has: (o) => "name" in o, set: (o, p) => {
|
|
313
|
+
o.name = p;
|
|
314
|
+
} }, metadata: i }, null, l), y(e, null, n, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (o) => "value" in o, set: (o, p) => {
|
|
315
|
+
o.value = p;
|
|
316
|
+
} }, metadata: i }, null, l), y(e, null, b, { kind: "accessor", name: "formDisabled", static: !1, private: !1, access: { has: (o) => "formDisabled" in o, get: (o) => o.formDisabled, set: (o, p) => {
|
|
317
|
+
o.formDisabled = p;
|
|
318
|
+
} }, metadata: i }, t, r), i && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
319
|
+
})(), e.formAssociated = !0, e;
|
|
320
|
+
})(), D = (d) => (() => {
|
|
321
|
+
var n;
|
|
322
|
+
let c = d, l = [], f;
|
|
323
|
+
return n = class extends c {
|
|
260
324
|
constructor() {
|
|
261
|
-
super(...arguments), this._required = (
|
|
325
|
+
super(...arguments), this._required = (_(this, l), !1);
|
|
262
326
|
}
|
|
263
327
|
/** Whether the component is required. */
|
|
264
|
-
set required(
|
|
265
|
-
this._required = !!
|
|
328
|
+
set required(t) {
|
|
329
|
+
this._required = !!t;
|
|
266
330
|
}
|
|
267
331
|
get required() {
|
|
268
332
|
return this._required || this.isRequiredExternally();
|
|
269
333
|
}
|
|
270
|
-
willUpdate(
|
|
271
|
-
super.willUpdate(
|
|
334
|
+
willUpdate(t) {
|
|
335
|
+
super.willUpdate(t), t.has("required") && (this.internals.ariaRequired = `${this.required}`);
|
|
272
336
|
}
|
|
273
337
|
/**
|
|
274
338
|
* Will be used as 'or' check to the current required state.
|
|
@@ -278,21 +342,21 @@ const M = (c) => (() => {
|
|
|
278
342
|
return !1;
|
|
279
343
|
}
|
|
280
344
|
}, (() => {
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
} }, metadata:
|
|
285
|
-
})(),
|
|
286
|
-
})(),
|
|
287
|
-
var
|
|
288
|
-
let
|
|
345
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
346
|
+
f = [k({ reflect: !0, type: Boolean })], y(n, null, f, { kind: "setter", name: "required", static: !1, private: !1, access: { has: (r) => "required" in r, set: (r, u) => {
|
|
347
|
+
r.required = u;
|
|
348
|
+
} }, metadata: t }, null, l), t && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
349
|
+
})(), n;
|
|
350
|
+
})(), ke = (d) => (() => {
|
|
351
|
+
var u;
|
|
352
|
+
let c = [K({
|
|
289
353
|
tabindex: "0"
|
|
290
|
-
})],
|
|
291
|
-
return
|
|
354
|
+
})], l, f = [], n, b = B(D(V(d))), t = [], r;
|
|
355
|
+
return u = class extends b {
|
|
292
356
|
/** Whether the checkbox is checked. */
|
|
293
357
|
set checked(s) {
|
|
294
|
-
const
|
|
295
|
-
|
|
358
|
+
const a = typeof s == "object" ? s.attribute : !1;
|
|
359
|
+
a && (s = s.value), this.hasUpdated && !a && (this._attributeMutationBlocked = !0), this._checked = !!s, this.updateFormValue();
|
|
296
360
|
}
|
|
297
361
|
get checked() {
|
|
298
362
|
return this._checked;
|
|
@@ -305,16 +369,16 @@ const M = (c) => (() => {
|
|
|
305
369
|
return "checkbox";
|
|
306
370
|
}
|
|
307
371
|
constructor() {
|
|
308
|
-
var s,
|
|
309
|
-
super(), this._attributeMutationBlocked = (
|
|
310
|
-
|
|
372
|
+
var s, a, i;
|
|
373
|
+
super(), this._attributeMutationBlocked = (_(this, t), !1), this._languageController = new M(this), this._checked = !1, this._handleKeyboardInteraction = (o) => {
|
|
374
|
+
o.key === " " && this._handleUserInteraction();
|
|
311
375
|
}, this._handleUserInteraction = () => {
|
|
312
|
-
var
|
|
313
|
-
this.disabled || ((
|
|
314
|
-
}, this.internals.role = "checkbox", (s = this.addEventListener) == null || s.call(this, "click", this._handleUserInteraction), (
|
|
376
|
+
var o;
|
|
377
|
+
this.disabled || ((o = this.withUserInteraction) == null || o.call(this), this.checked = !this.checked, this._attributeMutationBlocked = !0, this.dispatchEvent(new InputEvent("input", { composed: !0, bubbles: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
378
|
+
}, this.internals.role = "checkbox", (s = this.addEventListener) == null || s.call(this, "click", this._handleUserInteraction), (a = this.addEventListener) == null || a.call(this, "keydown", J), (i = this.addEventListener) == null || i.call(this, "keyup", this._handleKeyboardInteraction);
|
|
315
379
|
}
|
|
316
|
-
attributeChangedCallback(s,
|
|
317
|
-
(s !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(s,
|
|
380
|
+
attributeChangedCallback(s, a, i) {
|
|
381
|
+
(s !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(s, a, i);
|
|
318
382
|
}
|
|
319
383
|
/**
|
|
320
384
|
* Is called whenever the form is being reset.
|
|
@@ -326,59 +390,217 @@ const M = (c) => (() => {
|
|
|
326
390
|
}
|
|
327
391
|
/**
|
|
328
392
|
* Called when the browser is trying to restore element’s state to state in which case
|
|
329
|
-
* reason is
|
|
330
|
-
* user in which case reason is
|
|
331
|
-
* In the case of
|
|
393
|
+
* reason is "restore", or when the browser is trying to fulfill autofill on behalf of
|
|
394
|
+
* user in which case reason is "autocomplete".
|
|
395
|
+
* In the case of "restore", state is a string, File, or FormData object
|
|
332
396
|
* previously set as the second argument to setFormValue.
|
|
333
397
|
*
|
|
334
398
|
* @internal
|
|
335
399
|
*/
|
|
336
|
-
formStateRestoreCallback(s,
|
|
400
|
+
formStateRestoreCallback(s, a) {
|
|
337
401
|
s && (this.checked = s === "true");
|
|
338
402
|
}
|
|
339
|
-
requestUpdate(s, l, a) {
|
|
340
|
-
super.requestUpdate(s, l, a), this.hasUpdated && (s === "checked" || s === "required" || !s) && this._setValidity();
|
|
341
|
-
}
|
|
342
|
-
firstUpdated(s) {
|
|
343
|
-
super.firstUpdated(s), this._setValidity();
|
|
344
|
-
}
|
|
345
403
|
updateFormValue() {
|
|
346
404
|
this.checked ? this.internals.setFormValue(this.value, `${this.checked}`) : this.internals.setFormValue(null);
|
|
347
405
|
}
|
|
348
|
-
|
|
349
|
-
|
|
406
|
+
shouldValidate(s) {
|
|
407
|
+
return super.shouldValidate(s) || s === "checked" || s === "required";
|
|
408
|
+
}
|
|
409
|
+
validate() {
|
|
410
|
+
super.validate(), this.required && !this.checked ? this.setValidityFlag("valueMissing", Y[this._languageController.current]) : this.removeValidityFlag("valueMissing");
|
|
350
411
|
}
|
|
351
|
-
},
|
|
352
|
-
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
353
|
-
|
|
412
|
+
}, n = u, (() => {
|
|
413
|
+
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
414
|
+
r = [k({
|
|
354
415
|
type: Boolean,
|
|
355
416
|
converter: {
|
|
356
|
-
...
|
|
417
|
+
...P,
|
|
357
418
|
// We need to pass information to the setter so that we know it was called by attribute change.
|
|
358
|
-
fromAttribute: (
|
|
359
|
-
var
|
|
360
|
-
return { value: (
|
|
419
|
+
fromAttribute: (a, i) => {
|
|
420
|
+
var p, x;
|
|
421
|
+
return { value: (x = (p = P).fromAttribute) == null ? void 0 : x.call(p, a, i), attribute: !0 };
|
|
361
422
|
}
|
|
362
423
|
}
|
|
363
|
-
})],
|
|
364
|
-
|
|
365
|
-
} }, metadata: s }, null,
|
|
366
|
-
})(),
|
|
367
|
-
})(),
|
|
424
|
+
})], y(u, null, r, { kind: "setter", name: "checked", static: !1, private: !1, access: { has: (a) => "checked" in a, set: (a, i) => {
|
|
425
|
+
a.checked = i;
|
|
426
|
+
} }, metadata: s }, null, t), y(null, l = { value: n }, c, { kind: "class", name: n.name, metadata: s }, null, f), n = l.value, s && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), _(n, f);
|
|
427
|
+
})(), n;
|
|
428
|
+
})(), xe = (d) => (() => {
|
|
368
429
|
var r;
|
|
369
|
-
let
|
|
370
|
-
return r = class extends
|
|
430
|
+
let c = D(V(d)), l = [], f, n, b, t;
|
|
431
|
+
return r = class extends c {
|
|
432
|
+
/**
|
|
433
|
+
* Form type of element.
|
|
434
|
+
* @default 'text'
|
|
435
|
+
*/
|
|
436
|
+
get type() {
|
|
437
|
+
return "text";
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* The text value of the input element.
|
|
441
|
+
*/
|
|
442
|
+
set value(e) {
|
|
443
|
+
super.value = this._cleanText(e), this.hasUpdated && (this.innerHTML = super.value);
|
|
444
|
+
}
|
|
445
|
+
get value() {
|
|
446
|
+
return super.value ?? "";
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Whether the component is readonly.
|
|
450
|
+
* @attr readonly
|
|
451
|
+
* @default false
|
|
452
|
+
*/
|
|
453
|
+
set readOnly(e) {
|
|
454
|
+
this.toggleAttribute("readonly", !!e), this.internals.ariaReadOnly = e ? "true" : null, this._updateContenteditable();
|
|
455
|
+
}
|
|
456
|
+
get readOnly() {
|
|
457
|
+
return this.hasAttribute("readonly");
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Whether the component is disabled.
|
|
461
|
+
* @attr disabled
|
|
462
|
+
* @default false
|
|
463
|
+
*/
|
|
464
|
+
set disabled(e) {
|
|
465
|
+
this.toggleAttribute("disabled", !!e), this.internals.ariaDisabled = e ? "true" : null, this._updateContenteditable();
|
|
466
|
+
}
|
|
467
|
+
get disabled() {
|
|
468
|
+
return this.hasAttribute("disabled");
|
|
469
|
+
}
|
|
470
|
+
set placeholder(e) {
|
|
471
|
+
e ? this.setAttribute("placeholder", e) : this.removeAttribute("placeholder"), this.internals.ariaPlaceholder = e || null;
|
|
472
|
+
}
|
|
473
|
+
get placeholder() {
|
|
474
|
+
return this.getAttribute("placeholder") ?? "";
|
|
475
|
+
}
|
|
476
|
+
constructor() {
|
|
477
|
+
var e, s, a, i, o, p, x;
|
|
478
|
+
super(), this._interacted = (_(this, l), !1), this._shouldEmitChange = !1, this._shouldTriggerSubmit = !1, this.language = new M(this), this.internals.role = "textbox", (e = this.addEventListener) == null || e.call(this, "input", () => {
|
|
479
|
+
super.value = this._cleanText(this.textContent ?? ""), this._interacted = !0, this._shouldEmitChange = !0;
|
|
480
|
+
}, { capture: !0 }), (s = this.addEventListener) == null || s.call(this, "change", () => this._shouldEmitChange = !1, { capture: !0 }), (a = this.addEventListener) == null || a.call(this, "keydown", (m) => {
|
|
481
|
+
var g;
|
|
482
|
+
if ((m.key === "Enter" || m.key === `
|
|
483
|
+
`) && m.isTrusted)
|
|
484
|
+
m.preventDefault(), m.stopImmediatePropagation(), this._shouldTriggerSubmit = this.dispatchEvent(new KeyboardEvent("keydown", m));
|
|
485
|
+
else if (N && this.value && (m.key === "Backspace" || m.key === "Delete") && m.isTrusted) {
|
|
486
|
+
if (m.preventDefault(), m.stopImmediatePropagation(), !this.dispatchEvent(new KeyboardEvent("keydown", m)))
|
|
487
|
+
return;
|
|
488
|
+
const h = (g = window.getSelection()) == null ? void 0 : g.getRangeAt(0);
|
|
489
|
+
if (!h)
|
|
490
|
+
return;
|
|
491
|
+
h.startOffset !== h.endOffset ? (h.deleteContents(), this._dispatchInputEvent()) : m.key === "Backspace" && h.startOffset > 0 ? (h.setStart(h.startContainer, h.startOffset - 1), h.deleteContents(), this._dispatchInputEvent()) : m.key === "Delete" && h.endOffset < this.value.length && (h.setEnd(h.endContainer, h.endOffset + 1), h.deleteContents(), this._dispatchInputEvent());
|
|
492
|
+
}
|
|
493
|
+
}, { capture: !0 }), (i = this.addEventListener) == null || i.call(this, "keyup", (m) => {
|
|
494
|
+
var g;
|
|
495
|
+
(m.key === "Enter" || m.key === `
|
|
496
|
+
`) && (this._emitChangeIfNecessary(), this._shouldTriggerSubmit && (this._shouldTriggerSubmit = !1, (g = this.form) == null || g.requestSubmit()));
|
|
497
|
+
}, { capture: !0 }), (o = this.addEventListener) == null || o.call(this, "paste", (m) => {
|
|
498
|
+
var w, q;
|
|
499
|
+
m.preventDefault();
|
|
500
|
+
const g = this._cleanText(((w = m.clipboardData) == null ? void 0 : w.getData("text/plain")) ?? ""), h = (q = window.getSelection()) == null ? void 0 : q.getRangeAt(0);
|
|
501
|
+
!h || !g || (h.deleteContents(), h.insertNode(document.createTextNode(g)), h.setStart(h.endContainer, h.endOffset), this._dispatchInputEvent());
|
|
502
|
+
}), (p = this.addEventListener) == null || p.call(this, "focus", () => {
|
|
503
|
+
var m;
|
|
504
|
+
se.mostRecentModality === "keyboard" && ((m = window.getSelection()) == null || m.selectAllChildren(this));
|
|
505
|
+
}), (x = this.addEventListener) == null || x.call(this, "blur", () => {
|
|
506
|
+
var m;
|
|
507
|
+
(m = window.getSelection()) == null || m.removeAllRanges(), this._emitChangeIfNecessary(), this.scrollLeft = 0;
|
|
508
|
+
}, { capture: !0 });
|
|
509
|
+
}
|
|
510
|
+
connectedCallback() {
|
|
511
|
+
super.connectedCallback(), this.internals.ariaMultiLine = "false", this._updateContenteditable(), this.innerHTML = this.value;
|
|
512
|
+
}
|
|
513
|
+
focus(e) {
|
|
514
|
+
if (super.focus(e), !O && !this.disabled && !this.readOnly && this.value) {
|
|
515
|
+
const s = window.getSelection();
|
|
516
|
+
if (!s)
|
|
517
|
+
return;
|
|
518
|
+
let a = s.rangeCount > 0 ? s.getRangeAt(0) : null;
|
|
519
|
+
if (a && a.startOffset !== 0)
|
|
520
|
+
return;
|
|
521
|
+
a = document.createRange(), a.setStart(this.firstChild, this.textContent.length), a.collapse(!0), s.removeAllRanges(), s.addRange(a);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
attributeChangedCallback(e, s, a) {
|
|
525
|
+
(e !== "value" || !this._interacted) && super.attributeChangedCallback(e, s, a);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Is called whenever the form is being reset.
|
|
529
|
+
*
|
|
530
|
+
* @internal
|
|
531
|
+
*/
|
|
532
|
+
formResetCallback() {
|
|
533
|
+
this._interacted = !1, this.value = this.getAttribute("value") ?? "";
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Called when the browser is trying to restore element’s state to state in which case
|
|
537
|
+
* reason is "restore", or when the browser is trying to fulfill autofill on behalf of
|
|
538
|
+
* user in which case reason is "autocomplete".
|
|
539
|
+
* In the case of "restore", state is a string, File, or FormData object
|
|
540
|
+
* previously set as the second argument to setFormValue.
|
|
541
|
+
*
|
|
542
|
+
* @internal
|
|
543
|
+
*/
|
|
544
|
+
formStateRestoreCallback(e, s) {
|
|
545
|
+
e && typeof e == "string" && (this.value = e);
|
|
546
|
+
}
|
|
547
|
+
updateFormValue() {
|
|
548
|
+
this.internals.setFormValue(this.value, this.value);
|
|
549
|
+
}
|
|
550
|
+
shouldValidate(e) {
|
|
551
|
+
return super.shouldValidate(e) || e === "value" || e === "required";
|
|
552
|
+
}
|
|
553
|
+
validate() {
|
|
554
|
+
super.validate(), this.required && !this.value ? this.setValidityFlag("valueMissing", Z[this.language.current]) : this.removeValidityFlag("valueMissing");
|
|
555
|
+
}
|
|
556
|
+
_cleanText(e) {
|
|
557
|
+
return `${e}`.replace(/[\n\r]+/g, "");
|
|
558
|
+
}
|
|
559
|
+
_dispatchInputEvent() {
|
|
560
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 }));
|
|
561
|
+
}
|
|
562
|
+
_cleanChildren() {
|
|
563
|
+
if (this.childElementCount)
|
|
564
|
+
for (const e of this.children)
|
|
565
|
+
e.remove();
|
|
566
|
+
}
|
|
567
|
+
_updateContenteditable() {
|
|
568
|
+
if (!O && this.isConnected) {
|
|
569
|
+
const e = this.disabled || this.readOnly ? "false" : te ? "true" : "plaintext-only";
|
|
570
|
+
this.setAttribute("contenteditable", e), this.readOnly ? this.setAttribute("tabindex", "0") : this.removeAttribute("tabindex");
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
_emitChangeIfNecessary() {
|
|
574
|
+
this._shouldEmitChange && (this._shouldEmitChange = !1, this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
575
|
+
}
|
|
576
|
+
render() {
|
|
577
|
+
return R`<slot @slotchange=${this._cleanChildren}></slot>`;
|
|
578
|
+
}
|
|
579
|
+
}, (() => {
|
|
580
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
581
|
+
f = [k({ type: Boolean })], n = [k({ type: Boolean })], b = [k({ attribute: !1 })], t = [G({ passive: !0 })], y(r, null, f, { kind: "setter", name: "readOnly", static: !1, private: !1, access: { has: (s) => "readOnly" in s, set: (s, a) => {
|
|
582
|
+
s.readOnly = a;
|
|
583
|
+
} }, metadata: e }, null, l), y(r, null, n, { kind: "setter", name: "disabled", static: !1, private: !1, access: { has: (s) => "disabled" in s, set: (s, a) => {
|
|
584
|
+
s.disabled = a;
|
|
585
|
+
} }, metadata: e }, null, l), y(r, null, b, { kind: "setter", name: "placeholder", static: !1, private: !1, access: { has: (s) => "placeholder" in s, set: (s, a) => {
|
|
586
|
+
s.placeholder = a;
|
|
587
|
+
} }, metadata: e }, null, l), y(r, null, t, { kind: "method", name: "_cleanChildren", static: !1, private: !1, access: { has: (s) => "_cleanChildren" in s, get: (s) => s._cleanChildren }, metadata: e }, null, l), e && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
588
|
+
})(), r;
|
|
589
|
+
})(), z = /* @__PURE__ */ new WeakMap(), Ce = (d) => (() => {
|
|
590
|
+
var n;
|
|
591
|
+
let c = B(D(V(d))), l = [], f;
|
|
592
|
+
return n = class extends c {
|
|
371
593
|
/**
|
|
372
594
|
* Whether the radio button is checked.
|
|
373
595
|
*/
|
|
374
|
-
set checked(
|
|
375
|
-
this._checked = !!
|
|
596
|
+
set checked(t) {
|
|
597
|
+
this._checked = !!t, this.toggleAttribute("data-checked", this.checked), this.internals.ariaChecked = this.checked.toString(), this.updateFormValue(), this._synchronizeGroupState();
|
|
376
598
|
}
|
|
377
599
|
get checked() {
|
|
378
600
|
return this._checked;
|
|
379
601
|
}
|
|
380
|
-
set name(
|
|
381
|
-
super.name =
|
|
602
|
+
set name(t) {
|
|
603
|
+
super.name = t, this._disconnectFromRegistry(), this._connectToRegistry(), this._synchronizeGroupState();
|
|
382
604
|
}
|
|
383
605
|
get name() {
|
|
384
606
|
return super.name;
|
|
@@ -391,8 +613,8 @@ const M = (c) => (() => {
|
|
|
391
613
|
return "radio";
|
|
392
614
|
}
|
|
393
615
|
constructor() {
|
|
394
|
-
var
|
|
395
|
-
super(), this._checked = (
|
|
616
|
+
var t;
|
|
617
|
+
super(), this._checked = (_(this, l), !1), this.abort = new X(this), this._didLoad = !1, this._languageController = new M(this), this.internals.role = "radio", (t = this.addEventListener) == null || t.call(this, "keydown", (r) => this._handleArrowKeyDown(r));
|
|
396
618
|
}
|
|
397
619
|
connectedCallback() {
|
|
398
620
|
super.connectedCallback(), this._connectToRegistry(), this._synchronizeGroupState();
|
|
@@ -409,21 +631,18 @@ const M = (c) => (() => {
|
|
|
409
631
|
}
|
|
410
632
|
/**
|
|
411
633
|
* Called when the browser is trying to restore element’s state to state in which case
|
|
412
|
-
* reason is
|
|
413
|
-
* user in which case reason is
|
|
634
|
+
* reason is "restore", or when the browser is trying to fulfill autofill on behalf of
|
|
635
|
+
* user in which case reason is "autocomplete".
|
|
414
636
|
* @internal
|
|
415
637
|
*/
|
|
416
|
-
formStateRestoreCallback(
|
|
417
|
-
|
|
638
|
+
formStateRestoreCallback(t, r) {
|
|
639
|
+
t && (this.checked = t === this.value);
|
|
418
640
|
}
|
|
419
|
-
|
|
420
|
-
super.
|
|
641
|
+
willUpdate(t) {
|
|
642
|
+
super.willUpdate(t), t.has("disabled") && this.updateFocusableRadios();
|
|
421
643
|
}
|
|
422
|
-
|
|
423
|
-
super.
|
|
424
|
-
}
|
|
425
|
-
firstUpdated(e) {
|
|
426
|
-
super.firstUpdated(e), this._didLoad = !0, this.updateFocusableRadios(), this._setValidity();
|
|
644
|
+
firstUpdated(t) {
|
|
645
|
+
super.firstUpdated(t), this._didLoad = !0, this.updateFocusableRadios();
|
|
427
646
|
}
|
|
428
647
|
/**
|
|
429
648
|
* Called on `value` change
|
|
@@ -432,6 +651,21 @@ const M = (c) => (() => {
|
|
|
432
651
|
updateFormValue() {
|
|
433
652
|
this.checked ? this.internals.setFormValue(this.value, this.value) : this.internals.setFormValue(null);
|
|
434
653
|
}
|
|
654
|
+
shouldValidate(t) {
|
|
655
|
+
return super.shouldValidate(t) || t === "checked" || t === "required";
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Sets the validity of all associated radio buttons.
|
|
659
|
+
* If any radio button is required, all associated are required as well.
|
|
660
|
+
*/
|
|
661
|
+
validate() {
|
|
662
|
+
if (super.validate(), !this.associatedRadioButtons)
|
|
663
|
+
return;
|
|
664
|
+
let t = !1, r = !1;
|
|
665
|
+
for (const u of this.associatedRadioButtons)
|
|
666
|
+
t || (t = u.required), r || (r = u.checked);
|
|
667
|
+
t && !r ? this.associatedRadioButtons.forEach((u) => u.setValidityFlag("valueMissing", ee[this._languageController.current])) : this.associatedRadioButtons.forEach((u) => u.removeValidityFlag("valueMissing"));
|
|
668
|
+
}
|
|
435
669
|
/**
|
|
436
670
|
* Only a single radio should be focusable in the group. Defined as:
|
|
437
671
|
* - the checked radio;
|
|
@@ -440,11 +674,11 @@ const M = (c) => (() => {
|
|
|
440
674
|
updateFocusableRadios() {
|
|
441
675
|
if (!this._didLoad)
|
|
442
676
|
return;
|
|
443
|
-
const
|
|
444
|
-
|
|
677
|
+
const t = this._interactableGroupedRadios(), r = t.findIndex((e) => e.checked && !e.disabled && !e.formDisabled), u = r !== -1 ? r : t.findIndex((e) => !e.disabled && !e.formDisabled);
|
|
678
|
+
u !== -1 && (t[u].tabIndex = 0, t.splice(u, 1)), t.forEach((e) => e.removeAttribute("tabindex"));
|
|
445
679
|
}
|
|
446
|
-
async navigateByKeyboard(
|
|
447
|
-
|
|
680
|
+
async navigateByKeyboard(t) {
|
|
681
|
+
t.checked = !0, this.emitChangeEvents(), await t.updateComplete, t.focus();
|
|
448
682
|
}
|
|
449
683
|
emitChangeEvents() {
|
|
450
684
|
this.dispatchEvent(new InputEvent("input", { bubbles: !0, cancelable: !0, composed: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -456,61 +690,49 @@ const M = (c) => (() => {
|
|
|
456
690
|
* Add `this` to the radioButton registry
|
|
457
691
|
*/
|
|
458
692
|
_connectToRegistry() {
|
|
459
|
-
if (!this.name ||
|
|
693
|
+
if (!this.name || O)
|
|
460
694
|
return;
|
|
461
|
-
const
|
|
462
|
-
this._radioButtonGroupsMap =
|
|
463
|
-
const
|
|
695
|
+
const t = this.form ?? this.getRootNode();
|
|
696
|
+
this._radioButtonGroupsMap = z.get(t), this._radioButtonGroupsMap || (this._radioButtonGroupsMap = /* @__PURE__ */ new Map(), z.set(t, this._radioButtonGroupsMap)), this.associatedRadioButtons = this._radioButtonGroupsMap.get(this.name), this.associatedRadioButtons || (this.associatedRadioButtons = /* @__PURE__ */ new Set(), this._radioButtonGroupsMap.set(this.name, this.associatedRadioButtons));
|
|
697
|
+
const r = Array.from(this.associatedRadioButtons);
|
|
464
698
|
this.associatedRadioButtons.clear();
|
|
465
|
-
const
|
|
466
|
-
|
|
699
|
+
const u = r.findIndex((e) => this.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING);
|
|
700
|
+
u !== -1 ? r.splice(u, 0, this) : r.push(this), r.forEach((e) => this.associatedRadioButtons.add(e)), this.validate();
|
|
467
701
|
}
|
|
468
702
|
/**
|
|
469
703
|
* Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map
|
|
470
704
|
*/
|
|
471
705
|
_disconnectFromRegistry() {
|
|
472
|
-
var
|
|
473
|
-
(
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Sets the validity of all associated radio buttons.
|
|
477
|
-
* If any radio button is required, all associated are required as well.
|
|
478
|
-
*/
|
|
479
|
-
_setValidity() {
|
|
480
|
-
if (!this.associatedRadioButtons)
|
|
481
|
-
return;
|
|
482
|
-
let e = !1, i = !1;
|
|
483
|
-
for (const n of this.associatedRadioButtons)
|
|
484
|
-
e || (e = n.required), i || (i = n.checked);
|
|
485
|
-
e && !i ? this.associatedRadioButtons.forEach((n) => n.setValidityFlag("valueMissing", X[this._languageController.current])) : this.associatedRadioButtons.forEach((n) => n.removeValidityFlag("valueMissing"));
|
|
706
|
+
var t, r, u;
|
|
707
|
+
(t = this.associatedRadioButtons) == null || t.delete(this), ((r = this.associatedRadioButtons) == null ? void 0 : r.size) === 0 ? (u = this._radioButtonGroupsMap) == null || u.delete(this.name) : this.validate(), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
|
|
486
708
|
}
|
|
487
709
|
/**
|
|
488
710
|
* Return a list of 'interactable' grouped radios, ordered in DOM order
|
|
489
711
|
*/
|
|
490
712
|
_interactableGroupedRadios() {
|
|
491
|
-
return Array.from(this.associatedRadioButtons ?? []).filter((
|
|
713
|
+
return Array.from(this.associatedRadioButtons ?? []).filter((t) => ae.isVisible(t));
|
|
492
714
|
}
|
|
493
715
|
/**
|
|
494
716
|
* Deselect other radio of the same group
|
|
495
717
|
*/
|
|
496
718
|
_deselectGroupedRadios() {
|
|
497
|
-
Array.from(this.associatedRadioButtons ?? []).filter((
|
|
719
|
+
Array.from(this.associatedRadioButtons ?? []).filter((t) => t !== this).forEach((t) => t.checked = !1);
|
|
498
720
|
}
|
|
499
|
-
async _handleArrowKeyDown(
|
|
500
|
-
if (!
|
|
721
|
+
async _handleArrowKeyDown(t) {
|
|
722
|
+
if (!ie(t))
|
|
501
723
|
return;
|
|
502
|
-
|
|
503
|
-
const
|
|
504
|
-
await this.navigateByKeyboard(
|
|
724
|
+
t.preventDefault();
|
|
725
|
+
const r = this._interactableGroupedRadios().filter((s) => !s.disabled && !s.formDisabled), u = r.indexOf(this), e = re(t, u, r.length);
|
|
726
|
+
await this.navigateByKeyboard(r[e]);
|
|
505
727
|
}
|
|
506
728
|
}, (() => {
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
} }, metadata:
|
|
511
|
-
})(),
|
|
512
|
-
})(),
|
|
513
|
-
class
|
|
729
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
730
|
+
f = [k({ type: Boolean })], y(n, null, f, { kind: "setter", name: "checked", static: !1, private: !1, access: { has: (r) => "checked" in r, set: (r, u) => {
|
|
731
|
+
r.checked = u;
|
|
732
|
+
} }, metadata: t }, null, l), t && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
733
|
+
})(), n;
|
|
734
|
+
})(), le = (d) => {
|
|
735
|
+
class v extends d {
|
|
514
736
|
/**
|
|
515
737
|
* Returns a Promise that resolves when the element has completed hydration.
|
|
516
738
|
* The Promise value is a boolean that is `true` if the element required hydration
|
|
@@ -526,34 +748,34 @@ const M = (c) => (() => {
|
|
|
526
748
|
get hydrationRequired() {
|
|
527
749
|
return this._hydrationRequired;
|
|
528
750
|
}
|
|
529
|
-
constructor(...
|
|
530
|
-
var
|
|
531
|
-
if (super(...
|
|
751
|
+
constructor(...l) {
|
|
752
|
+
var f;
|
|
753
|
+
if (super(...l), this._hydrationComplete = new Promise((n) => this._resolveHydration = n), this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
|
|
532
754
|
this._resolveHydration(!1);
|
|
533
755
|
else {
|
|
534
|
-
const
|
|
535
|
-
this._hydrationRequired &&
|
|
536
|
-
},
|
|
537
|
-
|
|
538
|
-
|
|
756
|
+
const n = (r) => {
|
|
757
|
+
this._hydrationRequired && r.stopImmediatePropagation();
|
|
758
|
+
}, b = { capture: !0 }, t = (f = this.shadowRoot) == null ? void 0 : f.querySelectorAll("slot");
|
|
759
|
+
t != null && t.length && (t.forEach((r) => r.addEventListener("slotchange", n, b)), this.hydrationComplete.then(() => t.forEach((r) => {
|
|
760
|
+
r.removeEventListener("slotchange", n, b), r.assignedNodes().length && r.dispatchEvent(new Event("slotchange", { bubbles: !0 }));
|
|
539
761
|
})));
|
|
540
762
|
}
|
|
541
763
|
}
|
|
542
|
-
update(
|
|
543
|
-
super.update(
|
|
764
|
+
update(l) {
|
|
765
|
+
super.update(l), this._hydrationRequired && (this._hydrationRequired = !1, this._resolveHydration(!0));
|
|
544
766
|
}
|
|
545
767
|
}
|
|
546
|
-
return
|
|
547
|
-
},
|
|
548
|
-
var
|
|
549
|
-
let
|
|
550
|
-
return
|
|
768
|
+
return v;
|
|
769
|
+
}, T = "data-ssr-child-count", U = "li", Ee = (d) => (() => {
|
|
770
|
+
var b, t;
|
|
771
|
+
let c = le(d), l, f = [], n = [];
|
|
772
|
+
return t = class extends c {
|
|
551
773
|
constructor() {
|
|
552
774
|
super(...arguments);
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
const
|
|
556
|
-
|
|
775
|
+
E(this, b);
|
|
776
|
+
S(this, b, _(this, f, [])), this._handleSlotchange = (_(this, n), () => {
|
|
777
|
+
const e = Array.from(this.children ?? []).filter((s) => this.listChildLocalNames.includes(s.localName));
|
|
778
|
+
e.length === this.listChildren.length && this.listChildren.every((s, a) => e[a] === s) || (this.listChildren.filter((s) => !e.includes(s)).forEach((s) => s.removeAttribute("slot")), this.listChildren = e, this.listChildren.forEach((s, a) => s.setAttribute("slot", `${U}-${a}`)), this.removeAttribute(T));
|
|
557
779
|
});
|
|
558
780
|
}
|
|
559
781
|
/**
|
|
@@ -562,18 +784,18 @@ const M = (c) => (() => {
|
|
|
562
784
|
* to the child elements.
|
|
563
785
|
*/
|
|
564
786
|
get listChildren() {
|
|
565
|
-
return
|
|
787
|
+
return C(this, b);
|
|
566
788
|
}
|
|
567
|
-
set listChildren(
|
|
568
|
-
|
|
789
|
+
set listChildren(e) {
|
|
790
|
+
S(this, b, e);
|
|
569
791
|
}
|
|
570
792
|
connectedCallback() {
|
|
571
|
-
var
|
|
572
|
-
super.connectedCallback(), (
|
|
793
|
+
var e;
|
|
794
|
+
super.connectedCallback(), (e = this.shadowRoot) == null || e.addEventListener("slotchange", this._handleSlotchange, { passive: !0 });
|
|
573
795
|
}
|
|
574
796
|
disconnectedCallback() {
|
|
575
|
-
var
|
|
576
|
-
super.disconnectedCallback(), (
|
|
797
|
+
var e;
|
|
798
|
+
super.disconnectedCallback(), (e = this.shadowRoot) == null || e.removeEventListener("slotchange", this._handleSlotchange);
|
|
577
799
|
}
|
|
578
800
|
/**
|
|
579
801
|
* Renders list and list slots for slotted children or a number of list slots
|
|
@@ -584,24 +806,24 @@ const M = (c) => (() => {
|
|
|
584
806
|
* framework wrapper (like e.g. React). This allows to provide the number of
|
|
585
807
|
* children to be passed via the `data-ssr-child-count` attribute value.
|
|
586
808
|
*/
|
|
587
|
-
renderList(
|
|
588
|
-
const
|
|
589
|
-
return
|
|
809
|
+
renderList(e = {}, s = {}) {
|
|
810
|
+
const a = this.listSlotEntries(s);
|
|
811
|
+
return a.length >= 2 ? R`
|
|
590
812
|
<ul
|
|
591
|
-
class=${
|
|
592
|
-
aria-label=${
|
|
593
|
-
aria-labelledby=${
|
|
813
|
+
class=${e.class || this.localName}
|
|
814
|
+
aria-label=${e.ariaLabel || A}
|
|
815
|
+
aria-labelledby=${e.ariaLabelledby || A}
|
|
594
816
|
>
|
|
595
|
-
${
|
|
596
|
-
<li aria-hidden=${
|
|
597
|
-
<slot name=${
|
|
817
|
+
${a.map((i) => R`
|
|
818
|
+
<li aria-hidden=${i.ariaHidden || A}>
|
|
819
|
+
<slot name=${i.name}></slot>
|
|
598
820
|
</li>
|
|
599
821
|
`)}
|
|
600
822
|
</ul>
|
|
601
823
|
${this.renderHiddenSlot()}
|
|
602
|
-
` :
|
|
603
|
-
<span class=${
|
|
604
|
-
<span><slot name=${
|
|
824
|
+
` : a.length === 1 ? R`<sbb-screen-reader-only>${e.ariaLabel}</sbb-screen-reader-only>
|
|
825
|
+
<span class=${e.class || this.localName}>
|
|
826
|
+
<span><slot name=${a[0].name}></slot></span>
|
|
605
827
|
</span>
|
|
606
828
|
${this.renderHiddenSlot()} ` : this.renderHiddenSlot();
|
|
607
829
|
}
|
|
@@ -614,12 +836,12 @@ const M = (c) => (() => {
|
|
|
614
836
|
* framework wrapper (like e.g. React). This allows to provide the number of
|
|
615
837
|
* children to be passed via the `data-ssr-child-count` attribute value.
|
|
616
838
|
*/
|
|
617
|
-
listSlotEntries(
|
|
618
|
-
return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(
|
|
619
|
-
var
|
|
839
|
+
listSlotEntries(e) {
|
|
840
|
+
return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(T) ?? 0) })).map((a, i) => {
|
|
841
|
+
var o;
|
|
620
842
|
return {
|
|
621
|
-
name: `${U}-${
|
|
622
|
-
ariaHidden: ((
|
|
843
|
+
name: `${U}-${i}`,
|
|
844
|
+
ariaHidden: ((o = e == null ? void 0 : e.localNameVisualOnly) == null ? void 0 : o.includes(a.localName)) ?? !1
|
|
623
845
|
};
|
|
624
846
|
});
|
|
625
847
|
}
|
|
@@ -629,115 +851,118 @@ const M = (c) => (() => {
|
|
|
629
851
|
* the slotchange event, which can be used to assign it to the appropriate named slot.
|
|
630
852
|
*/
|
|
631
853
|
renderHiddenSlot() {
|
|
632
|
-
return
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
s.listChildren =
|
|
638
|
-
} }, metadata:
|
|
639
|
-
})(),
|
|
640
|
-
})(),
|
|
641
|
-
var
|
|
642
|
-
let
|
|
643
|
-
return
|
|
854
|
+
return R`<span hidden><slot></slot></span>`;
|
|
855
|
+
}
|
|
856
|
+
}, b = new WeakMap(), (() => {
|
|
857
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
858
|
+
l = [j()], y(t, null, l, { kind: "accessor", name: "listChildren", static: !1, private: !1, access: { has: (s) => "listChildren" in s, get: (s) => s.listChildren, set: (s, a) => {
|
|
859
|
+
s.listChildren = a;
|
|
860
|
+
} }, metadata: e }, f, n), e && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
861
|
+
})(), t;
|
|
862
|
+
})(), we = (d) => (() => {
|
|
863
|
+
var b, t;
|
|
864
|
+
let c = d, l, f = [], n = [];
|
|
865
|
+
return t = class extends c {
|
|
644
866
|
constructor() {
|
|
645
867
|
super(...arguments);
|
|
646
|
-
|
|
647
|
-
|
|
868
|
+
E(this, b, _(this, f, !1));
|
|
869
|
+
_(this, n);
|
|
648
870
|
}
|
|
649
871
|
/** Negative coloring variant flag. */
|
|
650
872
|
get negative() {
|
|
651
|
-
return
|
|
652
|
-
}
|
|
653
|
-
set negative(
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
s.negative =
|
|
660
|
-
} }, metadata:
|
|
661
|
-
})(),
|
|
662
|
-
})(),
|
|
663
|
-
var
|
|
664
|
-
let
|
|
665
|
-
return
|
|
873
|
+
return C(this, b);
|
|
874
|
+
}
|
|
875
|
+
set negative(e) {
|
|
876
|
+
S(this, b, e);
|
|
877
|
+
}
|
|
878
|
+
}, b = new WeakMap(), (() => {
|
|
879
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
880
|
+
l = [I(), k({ reflect: !0, type: Boolean })], y(t, null, l, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (s) => "negative" in s, get: (s) => s.negative, set: (s, a) => {
|
|
881
|
+
s.negative = a;
|
|
882
|
+
} }, metadata: e }, f, n), e && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
883
|
+
})(), t;
|
|
884
|
+
})(), Re = (d) => (() => {
|
|
885
|
+
var a, i, o, p;
|
|
886
|
+
let c = d, l, f = [], n = [], b, t = [], r = [], u, e = [], s = [];
|
|
887
|
+
return p = class extends c {
|
|
666
888
|
constructor() {
|
|
667
889
|
super(...arguments);
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
890
|
+
E(this, a);
|
|
891
|
+
E(this, i);
|
|
892
|
+
E(this, o);
|
|
893
|
+
S(this, a, _(this, f, "white")), S(this, i, (_(this, n), _(this, t, !1))), S(this, o, (_(this, r), _(this, e, ""))), this._panelConnected = (_(this, s), new Q(this, p.events.panelConnected, { bubbles: !0 }));
|
|
672
894
|
}
|
|
673
895
|
/** The background color of the panel. */
|
|
674
896
|
get color() {
|
|
675
|
-
return
|
|
897
|
+
return C(this, a);
|
|
676
898
|
}
|
|
677
|
-
set color(
|
|
678
|
-
|
|
899
|
+
set color(g) {
|
|
900
|
+
S(this, a, g);
|
|
679
901
|
}
|
|
680
902
|
/** Whether the unselected panel has a border. */
|
|
681
903
|
get borderless() {
|
|
682
|
-
return
|
|
904
|
+
return C(this, i);
|
|
683
905
|
}
|
|
684
|
-
set borderless(
|
|
685
|
-
|
|
906
|
+
set borderless(g) {
|
|
907
|
+
S(this, i, g);
|
|
686
908
|
}
|
|
687
909
|
/** @internal used for accessibility label when in expansion panel */
|
|
688
910
|
get expansionState() {
|
|
689
|
-
return
|
|
911
|
+
return C(this, o);
|
|
690
912
|
}
|
|
691
|
-
set expansionState(
|
|
692
|
-
|
|
913
|
+
set expansionState(g) {
|
|
914
|
+
S(this, o, g);
|
|
693
915
|
}
|
|
694
916
|
connectedCallback() {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
917
|
+
var g, h;
|
|
918
|
+
super.connectedCallback(), this._panelConnected.emit(), (h = (g = this.closest) == null ? void 0 : g.call(this, "sbb-radio-button-group, sbb-checkbox-group")) == null || h.toggleAttribute("data-has-panel", !0);
|
|
919
|
+
}
|
|
920
|
+
}, a = new WeakMap(), i = new WeakMap(), o = new WeakMap(), (() => {
|
|
921
|
+
const g = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
922
|
+
l = [k({ reflect: !0 })], b = [I(), k({ reflect: !0, type: Boolean })], u = [I(), k()], y(p, null, l, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (h) => "color" in h, get: (h) => h.color, set: (h, w) => {
|
|
923
|
+
h.color = w;
|
|
924
|
+
} }, metadata: g }, f, n), y(p, null, b, { kind: "accessor", name: "borderless", static: !1, private: !1, access: { has: (h) => "borderless" in h, get: (h) => h.borderless, set: (h, w) => {
|
|
925
|
+
h.borderless = w;
|
|
926
|
+
} }, metadata: g }, t, r), y(p, null, u, { kind: "accessor", name: "expansionState", static: !1, private: !1, access: { has: (h) => "expansionState" in h, get: (h) => h.expansionState, set: (h, w) => {
|
|
927
|
+
h.expansionState = w;
|
|
928
|
+
} }, metadata: g }, e, s), g && Object.defineProperty(p, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: g });
|
|
929
|
+
})(), p.events = {
|
|
707
930
|
panelConnected: "panelConnected"
|
|
708
|
-
},
|
|
709
|
-
})(),
|
|
710
|
-
class
|
|
931
|
+
}, p;
|
|
932
|
+
})(), Ie = (d) => {
|
|
933
|
+
class v extends d {
|
|
711
934
|
constructor() {
|
|
712
935
|
super(...arguments), this._updatePromise = Promise.resolve(), this._updateResolve = () => {
|
|
713
936
|
};
|
|
714
937
|
}
|
|
715
938
|
startUpdate() {
|
|
716
|
-
this._updatePromise = new Promise((
|
|
939
|
+
this._updatePromise = new Promise((l) => this._updateResolve = l);
|
|
717
940
|
}
|
|
718
941
|
completeUpdate() {
|
|
719
942
|
this._updateResolve();
|
|
720
943
|
}
|
|
721
944
|
async getUpdateComplete() {
|
|
722
|
-
const
|
|
723
|
-
return await this._updatePromise,
|
|
945
|
+
const l = await super.getUpdateComplete();
|
|
946
|
+
return await this._updatePromise, l;
|
|
724
947
|
}
|
|
725
948
|
}
|
|
726
|
-
return
|
|
727
|
-
},
|
|
949
|
+
return v;
|
|
950
|
+
}, Ae = W`: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;top:0;right:0;bottom:0;left: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) solid var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left: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}`;
|
|
728
951
|
export {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
952
|
+
_e as SbbAnimationCompleteMixin,
|
|
953
|
+
ne as SbbDisabledInteractiveMixin,
|
|
954
|
+
B as SbbDisabledMixin,
|
|
955
|
+
ye as SbbDisabledTabIndexActionMixin,
|
|
956
|
+
ke as SbbFormAssociatedCheckboxMixin,
|
|
957
|
+
xe as SbbFormAssociatedInputMixin,
|
|
958
|
+
V as SbbFormAssociatedMixin,
|
|
959
|
+
Ce as SbbFormAssociatedRadioButtonMixin,
|
|
960
|
+
le as SbbHydrationMixin,
|
|
961
|
+
Ee as SbbNamedSlotListMixin,
|
|
962
|
+
we as SbbNegativeMixin,
|
|
963
|
+
Re as SbbPanelMixin,
|
|
964
|
+
D as SbbRequiredMixin,
|
|
965
|
+
Ie as SbbUpdateSchedulerMixin,
|
|
966
|
+
Ae as panelCommonStyle,
|
|
967
|
+
z as radioButtonRegistry
|
|
743
968
|
};
|