@sbb-esta/lyne-elements 4.0.0-next.3 → 4.0.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/accordion/accordion.component.d.ts.map +1 -1
- package/accordion/accordion.component.js +29 -27
- package/action-group/action-group.component.js +1 -1
- package/alert/alert/alert.component.js +7 -7
- package/alert/alert-group/alert-group.component.d.ts +1 -1
- package/alert/alert-group/alert-group.component.d.ts.map +1 -1
- package/alert/alert-group/alert-group.component.js +23 -23
- package/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +58 -56
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +12 -12
- package/breadcrumb/breadcrumb/breadcrumb.component.js +5 -5
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +2 -3
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +53 -47
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common/button-common.js +40 -42
- package/button/common.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.d.ts +4 -4
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +183 -183
- package/card/card/card.component.d.ts +3 -6
- package/card/card/card.component.d.ts.map +1 -1
- package/card/card/card.component.js +32 -47
- package/card/card-badge/card-badge.component.d.ts +0 -2
- package/card/card-badge/card-badge.component.d.ts.map +1 -1
- package/card/card-badge/card-badge.component.js +29 -36
- package/card/common/card-action-common.d.ts.map +1 -1
- package/card/common/card-action-common.js +36 -24
- package/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox/checkbox.component.js +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -2
- package/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.js +39 -38
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +1 -14
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/checkbox/checkbox-panel/checkbox-panel.component.js +35 -55
- package/checkbox/common.js +1 -1
- package/checkbox-common-t04WeA36.js +5 -0
- package/checkbox.js +1 -1
- package/chip/chip-group/chip-group.component.d.ts +1 -0
- package/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/chip/chip-group/chip-group.component.js +23 -23
- package/clock/clock.component.d.ts +3 -1
- package/clock/clock.component.d.ts.map +1 -1
- package/clock/clock.component.js +40 -39
- package/container/container/container.component.d.ts.map +1 -1
- package/container/container/container.component.js +27 -24
- package/container/sticky-bar/sticky-bar.component.d.ts +3 -1
- package/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
- package/container/sticky-bar/sticky-bar.component.js +41 -41
- package/core/a11y/focus-visible-within-controller.d.ts +2 -1
- package/core/a11y/focus-visible-within-controller.d.ts.map +1 -1
- package/core/a11y/focus-visible-within-controller.js +8 -7
- package/core/base-elements/action-base-element.d.ts +1 -0
- package/core/base-elements/action-base-element.d.ts.map +1 -1
- package/core/base-elements/action-base-element.js +37 -45
- package/core/base-elements/button-base-element.d.ts +1 -1
- package/core/base-elements/button-base-element.d.ts.map +1 -1
- package/core/base-elements/button-base-element.js +55 -56
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements/link-base-element.js +62 -64
- package/core/base-elements/open-close-base-element.d.ts +2 -1
- package/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/core/base-elements/open-close-base-element.js +8 -8
- package/core/controllers/media-matchers-controller.d.ts +4 -1
- package/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.js +30 -26
- package/core/controllers/overlay-position-controller.d.ts +3 -2
- package/core/controllers/overlay-position-controller.d.ts.map +1 -1
- package/core/controllers/overlay-position-controller.js +35 -35
- package/core/controllers/property-watcher-controller.d.ts +16 -0
- package/core/controllers/property-watcher-controller.d.ts.map +1 -0
- package/core/controllers/property-watcher-controller.js +58 -0
- package/core/controllers.d.ts +1 -1
- package/core/controllers.js +21 -18
- package/core/datetime/date-adapter.d.ts +1 -3
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/dom/animation.d.ts.map +1 -1
- package/core/dom/animation.js +2 -2
- package/core/dom/set-or-remove-attribute.d.ts +0 -14
- package/core/dom/set-or-remove-attribute.d.ts.map +1 -1
- package/core/dom/set-or-remove-attribute.js +3 -11
- package/core/dom.d.ts +0 -2
- package/core/dom.d.ts.map +1 -1
- package/core/dom.js +25 -33
- package/core/i18n/i18n.d.ts +0 -2
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n/i18n.js +60 -66
- package/core/i18n.js +53 -54
- package/core/interfaces/types.d.ts +0 -14
- package/core/interfaces/types.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.d.ts +14 -1
- package/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.js +102 -75
- package/core/mixins/form-associated-mixin.js +1 -1
- package/core/mixins/form-associated-radio-button-mixin.js +16 -16
- package/core/mixins/panel-mixin.d.ts +10 -2
- package/core/mixins/panel-mixin.d.ts.map +1 -1
- package/core/mixins/panel-mixin.js +51 -37
- package/core/mixins/selection-panel-mixin.d.ts +5 -11
- package/core/mixins/selection-panel-mixin.d.ts.map +1 -1
- package/core/mixins/selection-panel-mixin.js +35 -83
- package/core/mixins.js +28 -27
- package/core/overlay/overlay-option-panel.d.ts +2 -1
- package/core/overlay/overlay-option-panel.d.ts.map +1 -1
- package/core/overlay/overlay-option-panel.js +9 -6
- package/core/styles/core.scss +32 -11
- package/core/styles/mixins/card.scss +71 -55
- package/core/testing/wait-for-render.d.ts +1 -1
- package/core.css +151 -26
- package/custom-elements.json +12300 -12051
- package/date-input/date-input.component.d.ts +0 -5
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +0 -7
- package/development/accordion/accordion.component.d.ts.map +1 -1
- package/development/accordion/accordion.component.js +5 -4
- package/development/action-group/action-group.component.js +2 -2
- package/development/alert/alert/alert.component.js +5 -5
- package/development/alert/alert-group/alert-group.component.d.ts +1 -1
- package/development/alert/alert-group/alert-group.component.d.ts.map +1 -1
- package/development/alert/alert-group/alert-group.component.js +5 -5
- 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-base-element.js +28 -32
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -3
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +2 -3
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +33 -24
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common/button-common.js +8 -17
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.d.ts +4 -4
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +11 -11
- package/development/card/card/card.component.d.ts +3 -6
- package/development/card/card/card.component.d.ts.map +1 -1
- package/development/card/card/card.component.js +91 -146
- package/development/card/card-badge/card-badge.component.d.ts +0 -2
- package/development/card/card-badge/card-badge.component.d.ts.map +1 -1
- package/development/card/card-badge/card-badge.component.js +34 -71
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/card/common/card-action-common.js +21 -10
- package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/development/checkbox/checkbox/checkbox.component.js +2 -2
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -2
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.js +13 -15
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +1 -14
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +6 -41
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-CX17vF7q.js → checkbox-common-D2-QcV8n.js} +4 -1
- package/development/checkbox.js +1 -1
- package/development/chip/chip-group/chip-group.component.d.ts +1 -0
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/development/chip/chip-group/chip-group.component.js +11 -5
- package/development/clock/clock.component.d.ts +3 -1
- package/development/clock/clock.component.d.ts.map +1 -1
- package/development/clock/clock.component.js +5 -4
- package/development/container/container/container.component.d.ts.map +1 -1
- package/development/container/container/container.component.js +4 -3
- package/development/container/sticky-bar/sticky-bar.component.d.ts +3 -1
- package/development/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
- package/development/container/sticky-bar/sticky-bar.component.js +40 -34
- package/development/core/a11y/focus-visible-within-controller.d.ts +2 -1
- package/development/core/a11y/focus-visible-within-controller.d.ts.map +1 -1
- package/development/core/a11y/focus-visible-within-controller.js +4 -3
- package/development/core/a11y/interactivity-checker.js +1 -1
- package/development/core/base-elements/action-base-element.d.ts +1 -0
- package/development/core/base-elements/action-base-element.d.ts.map +1 -1
- package/development/core/base-elements/action-base-element.js +41 -56
- package/development/core/base-elements/button-base-element.d.ts +1 -1
- package/development/core/base-elements/button-base-element.d.ts.map +1 -1
- package/development/core/base-elements/button-base-element.js +7 -7
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements/link-base-element.js +6 -15
- package/development/core/base-elements/open-close-base-element.d.ts +2 -1
- package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/development/core/base-elements/open-close-base-element.js +12 -6
- package/development/core/controllers/media-matchers-controller.d.ts +4 -1
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/development/core/controllers/media-matchers-controller.js +12 -5
- package/development/core/controllers/overlay-position-controller.d.ts +3 -2
- package/development/core/controllers/overlay-position-controller.d.ts.map +1 -1
- package/development/core/controllers/overlay-position-controller.js +3 -3
- package/development/core/controllers/property-watcher-controller.d.ts +16 -0
- package/development/core/controllers/property-watcher-controller.d.ts.map +1 -0
- package/development/core/controllers/property-watcher-controller.js +101 -0
- package/development/core/controllers.d.ts +1 -1
- package/development/core/controllers.js +6 -3
- package/development/core/datetime/date-adapter.d.ts +1 -3
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +1 -1
- package/development/core/dom/animation.d.ts.map +1 -1
- package/development/core/dom/animation.js +2 -2
- package/development/core/dom/set-or-remove-attribute.d.ts +0 -14
- package/development/core/dom/set-or-remove-attribute.d.ts.map +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -9
- package/development/core/dom.d.ts +0 -2
- package/development/core/dom.d.ts.map +1 -1
- package/development/core/dom.js +2 -10
- package/development/core/i18n/i18n.d.ts +0 -2
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +1 -8
- package/development/core/i18n.js +1 -2
- package/development/core/interfaces/types.d.ts +0 -14
- package/development/core/interfaces/types.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.d.ts +14 -1
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.js +58 -10
- package/development/core/mixins/form-associated-input-mixin.js +1 -1
- package/development/core/mixins/form-associated-mixin.js +2 -2
- package/development/core/mixins/form-associated-radio-button-mixin.js +2 -2
- package/development/core/mixins/panel-mixin.d.ts +10 -2
- package/development/core/mixins/panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/panel-mixin.js +24 -6
- package/development/core/mixins/selection-panel-mixin.d.ts +5 -11
- package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/selection-panel-mixin.js +47 -111
- package/development/core/mixins.js +18 -9
- package/development/core/overlay/overlay-option-panel.d.ts +2 -1
- package/development/core/overlay/overlay-option-panel.d.ts.map +1 -1
- package/development/core/overlay/overlay-option-panel.js +10 -2
- package/development/core/overlay/position.js +1 -1
- package/development/core/testing/wait-for-render.d.ts +1 -1
- package/development/core/testing/wait-for-render.js +1 -1
- package/development/date-input/date-input.component.d.ts +0 -5
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +1 -8
- package/development/dialog/dialog/dialog.component.js +7 -7
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -6
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +30 -33
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +2 -0
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +17 -2
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -0
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +17 -6
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common/file-selector-common.js +5 -5
- package/development/flip-card/flip-card/flip-card.component.d.ts +2 -1
- package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +25 -14
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts +3 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.js +7 -6
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts +1 -2
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +1 -7
- package/development/form-field/error/error.component.js +2 -2
- package/development/form-field/form-field/form-field.component.d.ts +1 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +2 -2
- package/development/form-field/form-field-clear/form-field-clear.component.js +2 -2
- package/development/header/common/header-action-common.js +5 -5
- package/development/header/header/header.component.d.ts +1 -1
- package/development/header/header/header.component.d.ts.map +1 -1
- package/development/header/header/header.component.js +14 -14
- package/development/header/header-environment/header-environment.component.d.ts +1 -0
- package/development/header/header-environment/header-environment.component.d.ts.map +1 -1
- package/development/header/header-environment/header-environment.component.js +8 -5
- package/development/icon/icon-base.d.ts +1 -0
- package/development/icon/icon-base.d.ts.map +1 -1
- package/development/icon/icon-base.js +21 -25
- package/development/icon/icon-validate.js +2 -2
- package/development/{icon-sidebar-button-common-C6QChtaa.js → icon-sidebar-button-common-DR6eQvkq.js} +4 -4
- package/development/image/image.component.d.ts +5 -3
- package/development/image/image.component.d.ts.map +1 -1
- package/development/image/image.component.js +10 -9
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/common/link-common.d.ts.map +1 -1
- package/development/link/common/link-common.js +2 -3
- package/development/link/common.js +1 -1
- package/development/{link-common-DYZHRSSJ.js → link-common-CYr3PeRf.js} +9 -16
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +6 -6
- package/development/link.js +1 -1
- package/development/map-container/map-container.component.d.ts +3 -1
- package/development/map-container/map-container.component.d.ts.map +1 -1
- package/development/map-container/map-container.component.js +5 -4
- package/development/menu/common/menu-action-common.js +2 -2
- package/development/menu/menu/menu.component.d.ts +1 -1
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +29 -23
- package/development/{mini-button-common-TSDaMUCP.js → mini-button-common-CWTMR_Lu.js} +15 -15
- package/development/mini-calendar/mini-calendar/mini-calendar.component.d.ts.map +1 -1
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +7 -6
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +4 -4
- package/development/navigation/common/navigation-action-common.js +7 -7
- package/development/navigation/navigation/navigation.component.d.ts +0 -1
- package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/development/navigation/navigation/navigation.component.js +26 -38
- package/development/navigation/navigation-marker/navigation-marker.component.d.ts +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.d.ts.map +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +8 -8
- package/development/navigation/navigation-section/navigation-section.component.d.ts +8 -7
- package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +48 -45
- package/development/notification/notification.component.d.ts +3 -2
- package/development/notification/notification.component.d.ts.map +1 -1
- package/development/notification/notification.component.js +22 -19
- package/development/option/optgroup/optgroup-base-element.d.ts +0 -3
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +6 -32
- package/development/option/optgroup/optgroup.component.d.ts +2 -2
- package/development/option/optgroup/optgroup.component.d.ts.map +1 -1
- package/development/option/optgroup/optgroup.component.js +21 -13
- package/development/option/option/option-base-element.d.ts +0 -5
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +8 -41
- package/development/option/option/option.component.d.ts +5 -4
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +52 -39
- package/development/overlay/overlay-base-element.d.ts +1 -1
- package/development/overlay/overlay-base-element.js +2 -2
- package/development/overlay/overlay.component.js +7 -7
- package/development/paginator/common/paginator-common.d.ts +0 -1
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/paginator/paginator.component.d.ts +1 -1
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +8 -14
- package/development/popover/{popover/popover.component.d.ts → popover.component.d.ts} +2 -2
- package/development/popover/popover.component.d.ts.map +1 -0
- package/development/popover/popover.component.js +720 -0
- package/development/popover.d.ts +1 -1
- package/development/popover.d.ts.map +1 -1
- package/development/popover.js +1 -1
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts +0 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts.map +1 -1
- package/development/radio-button/radio-button/radio-button.component.js +1 -2
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.js +28 -43
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +0 -12
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +5 -37
- package/development/{radio-button-common-BPrInmpg.js → radio-button-common-B3kVD7QV.js} +19 -42
- package/development/radio-button.js +1 -1
- package/development/{sbb-tokens-DZrHvErO.js → sbb-tokens-CZCt5L4q.js} +9 -9
- package/development/select/select.component.d.ts +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +31 -36
- package/development/selection-action-panel/selection-action-panel.component.d.ts +0 -1
- package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +22 -9
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +5 -6
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +35 -30
- package/development/sidebar/common.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +13 -14
- package/development/sidebar/sidebar-container/sidebar-container.component.d.ts.map +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +10 -8
- package/development/sidebar.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/stepper/step/step.component.d.ts +3 -1
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +25 -12
- package/development/stepper/step-label/step-label.component.d.ts +4 -1
- package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/development/stepper/step-label/step-label.component.js +40 -17
- package/development/stepper/stepper/stepper.component.d.ts +2 -2
- package/development/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/development/stepper/stepper/stepper.component.js +21 -22
- package/development/tabs/tab/tab.component.d.ts +0 -5
- package/development/tabs/tab/tab.component.d.ts.map +1 -1
- package/development/tabs/tab/tab.component.js +3 -9
- package/development/tabs/tab-group/tab-group.component.d.ts +1 -25
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +19 -23
- package/development/tabs/tab-label/tab-label.component.d.ts +1 -0
- package/development/tabs/tab-label/tab-label.component.d.ts.map +1 -1
- package/development/tabs/tab-label/tab-label.component.js +20 -7
- package/development/tag/tag/tag.component.js +9 -9
- package/development/teaser/teaser.component.js +2 -2
- package/development/teaser-product/common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +2 -2
- package/development/{teaser-product-common-v3BvyFdH.js → teaser-product-common-CJfmvweQ.js} +2 -2
- package/development/teaser-product.js +1 -1
- package/development/time-input/time-input.component.d.ts +0 -5
- package/development/time-input/time-input.component.d.ts.map +1 -1
- package/development/time-input/time-input.component.js +1 -8
- package/development/toast/toast.component.js +5 -5
- package/development/toggle/toggle/toggle.component.js +4 -4
- package/development/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +2 -3
- package/development/toggle-check/toggle-check.component.js +4 -4
- package/development/tooltip/tooltip.component.d.ts.map +1 -1
- package/development/tooltip/tooltip.component.js +7 -7
- package/development/visual-checkbox/visual-checkbox.component.js +8 -4
- package/dialog/dialog/dialog.component.js +20 -20
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -6
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel/expansion-panel.component.js +51 -56
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +2 -0
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +21 -13
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -0
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +24 -20
- package/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/file-selector/common/file-selector-common.js +28 -28
- package/flip-card/flip-card/flip-card.component.d.ts +2 -1
- package/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/flip-card/flip-card/flip-card.component.js +44 -40
- package/flip-card/flip-card-details/flip-card-details.component.d.ts +3 -1
- package/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
- package/flip-card/flip-card-details/flip-card-details.component.js +15 -14
- package/flip-card/flip-card-summary/flip-card-summary.component.d.ts +1 -2
- package/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
- package/flip-card/flip-card-summary/flip-card-summary.component.js +23 -26
- package/form-field/error/error.component.js +3 -3
- package/form-field/form-field/form-field.component.d.ts +1 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/form-field/form-field-clear/form-field-clear.component.js +7 -7
- package/header/common/header-action-common.js +14 -14
- package/header/header/header.component.d.ts +1 -1
- package/header/header/header.component.d.ts.map +1 -1
- package/header/header/header.component.js +40 -40
- package/header/header-environment/header-environment.component.d.ts +1 -0
- package/header/header-environment/header-environment.component.d.ts.map +1 -1
- package/header/header-environment/header-environment.component.js +8 -9
- package/icon/icon-base.d.ts +1 -0
- package/icon/icon-base.d.ts.map +1 -1
- package/icon/icon-base.js +45 -48
- package/icon/icon-validate.js +3 -3
- package/{icon-sidebar-button-common-W6GYJbVt.js → icon-sidebar-button-common-ffAscVDk.js} +1 -1
- package/image/image.component.d.ts +5 -3
- package/image/image.component.d.ts.map +1 -1
- package/image/image.component.js +31 -30
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/link/common/block-link-common.js +1 -1
- package/link/common/inline-link-common.js +1 -1
- package/link/common/link-common.d.ts.map +1 -1
- package/link/common/link-common.js +2 -3
- package/link/common.js +1 -1
- package/link-common-D9TmX32v.js +45 -0
- package/link-list/link-list-anchor/link-list-anchor.component.js +9 -9
- package/link.js +1 -1
- package/map-container/map-container.component.d.ts +3 -1
- package/map-container/map-container.component.d.ts.map +1 -1
- package/map-container/map-container.component.js +18 -17
- package/menu/common/menu-action-common.js +5 -5
- package/menu/menu/menu.component.d.ts +1 -1
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +29 -28
- package/mini-button-common-Bb4ri3Rn.js +10 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.d.ts.map +1 -1
- package/mini-calendar/mini-calendar/mini-calendar.component.js +22 -21
- package/navigation/common/navigation-action-common.js +10 -10
- package/navigation/navigation/navigation.component.d.ts +0 -1
- package/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/navigation/navigation/navigation.component.js +46 -55
- package/navigation/navigation-marker/navigation-marker.component.d.ts +1 -1
- package/navigation/navigation-marker/navigation-marker.component.d.ts.map +1 -1
- package/navigation/navigation-marker/navigation-marker.component.js +20 -20
- package/navigation/navigation-section/navigation-section.component.d.ts +8 -7
- package/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/navigation/navigation-section/navigation-section.component.js +65 -65
- package/notification/notification.component.d.ts +3 -2
- package/notification/notification.component.d.ts.map +1 -1
- package/notification/notification.component.js +22 -25
- package/off-brand-theme.css +151 -26
- package/option/optgroup/optgroup-base-element.d.ts +0 -3
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup/optgroup-base-element.js +45 -64
- package/option/optgroup/optgroup.component.d.ts +2 -2
- package/option/optgroup/optgroup.component.d.ts.map +1 -1
- package/option/optgroup/optgroup.component.js +27 -19
- package/option/option/option-base-element.d.ts +0 -5
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option-base-element.js +58 -74
- package/option/option/option.component.d.ts +5 -4
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option/option.component.js +40 -36
- package/overlay/overlay-base-element.d.ts +1 -1
- package/overlay/overlay-base-element.js +1 -1
- package/overlay/overlay.component.js +28 -28
- package/package.json +1 -6
- package/paginator/common/paginator-common.d.ts +0 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.d.ts +1 -1
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.js +17 -20
- package/popover/{popover/popover.component.d.ts → popover.component.d.ts} +2 -2
- package/popover/popover.component.d.ts.map +1 -0
- package/popover/popover.component.js +316 -0
- package/popover.d.ts +1 -1
- package/popover.d.ts.map +1 -1
- package/popover.js +1 -1
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.component.d.ts +0 -1
- package/radio-button/radio-button/radio-button.component.d.ts.map +1 -1
- package/radio-button/radio-button/radio-button.component.js +4 -5
- package/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -1
- package/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/radio-button/radio-button-group/radio-button-group.component.js +45 -46
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +0 -12
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/radio-button/radio-button-panel/radio-button-panel.component.js +36 -54
- package/radio-button-common-1Yg7p8dc.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +151 -26
- package/{sbb-tokens-BNWpZrLn.js → sbb-tokens-DruExozg.js} +8 -8
- package/select/select.component.d.ts +1 -1
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +52 -52
- package/selection-action-panel/selection-action-panel.component.d.ts +0 -1
- package/selection-action-panel/selection-action-panel.component.d.ts.map +1 -1
- package/selection-action-panel/selection-action-panel.component.js +9 -13
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts +5 -6
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +49 -55
- package/sidebar/common.js +1 -1
- package/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
- package/sidebar/sidebar/sidebar.component.js +26 -32
- package/sidebar/sidebar-container/sidebar-container.component.d.ts.map +1 -1
- package/sidebar/sidebar-container/sidebar-container.component.js +33 -32
- package/sidebar.js +1 -1
- package/skiplink-list/skiplink-list.component.js +1 -1
- package/standard-theme.css +151 -26
- package/stepper/step/step.component.d.ts +3 -1
- package/stepper/step/step.component.d.ts.map +1 -1
- package/stepper/step/step.component.js +28 -20
- package/stepper/step-label/step-label.component.d.ts +4 -1
- package/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/stepper/step-label/step-label.component.js +35 -23
- package/stepper/stepper/stepper.component.d.ts +2 -2
- package/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/stepper/stepper/stepper.component.js +49 -48
- package/tabs/tab/tab.component.d.ts +0 -5
- package/tabs/tab/tab.component.d.ts.map +1 -1
- package/tabs/tab/tab.component.js +12 -18
- package/tabs/tab-group/tab-group.component.d.ts +1 -25
- package/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/tabs/tab-group/tab-group.component.js +48 -50
- package/tabs/tab-label/tab-label.component.d.ts +1 -0
- package/tabs/tab-label/tab-label.component.d.ts.map +1 -1
- package/tabs/tab-label/tab-label.component.js +34 -29
- package/tag/tag/tag.component.js +12 -12
- 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-DwaWdQEh.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.d.ts +0 -5
- package/time-input/time-input.component.d.ts.map +1 -1
- package/time-input/time-input.component.js +3 -10
- package/toast/toast.component.js +23 -23
- package/toggle/toggle/toggle.component.js +13 -13
- package/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
- package/toggle/toggle-option/toggle-option.component.js +20 -21
- package/toggle-check/toggle-check.component.js +8 -8
- package/tooltip/tooltip.component.d.ts.map +1 -1
- package/tooltip/tooltip.component.js +39 -39
- package/visual-checkbox/visual-checkbox.component.js +15 -15
- package/checkbox-common-DK5WsQPi.js +0 -5
- package/core/controllers/ancestor-watcher-controller.d.ts +0 -14
- package/core/controllers/ancestor-watcher-controller.d.ts.map +0 -1
- package/core/controllers/ancestor-watcher-controller.js +0 -51
- package/core/dom/breakpoint.d.ts +0 -16
- package/core/dom/breakpoint.d.ts.map +0 -1
- package/core/dom/breakpoint.js +0 -12
- package/core/dom/host-context.d.ts +0 -11
- package/core/dom/host-context.d.ts.map +0 -1
- package/core/dom/host-context.js +0 -17
- package/development/core/controllers/ancestor-watcher-controller.d.ts +0 -14
- package/development/core/controllers/ancestor-watcher-controller.d.ts.map +0 -1
- package/development/core/controllers/ancestor-watcher-controller.js +0 -87
- package/development/core/dom/breakpoint.d.ts +0 -16
- package/development/core/dom/breakpoint.d.ts.map +0 -1
- package/development/core/dom/breakpoint.js +0 -19
- package/development/core/dom/host-context.d.ts +0 -11
- package/development/core/dom/host-context.d.ts.map +0 -1
- package/development/core/dom/host-context.js +0 -21
- package/development/popover/popover/popover.component.d.ts.map +0 -1
- package/development/popover/popover/popover.component.js +0 -722
- package/development/popover/popover.d.ts +0 -5
- package/development/popover/popover.d.ts.map +0 -1
- package/development/popover/popover.js +0 -6
- package/link-common-CdQBSga7.js +0 -46
- package/mini-button-common-C3-aFB4L.js +0 -10
- package/popover/popover/popover.component.d.ts.map +0 -1
- package/popover/popover/popover.component.js +0 -321
- package/popover/popover.d.ts +0 -5
- package/popover/popover.d.ts.map +0 -1
- package/popover/popover.js +0 -5
- package/radio-button-common-chJrmIBn.js +0 -5
- package/teaser-product-common-a4NenpSA.js +0 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var E = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { css as
|
|
4
|
+
var O = (s, o, a) => o.has(s) || E("Cannot " + a);
|
|
5
|
+
var x = (s, o, a) => (O(s, o, "read from private field"), a ? a.call(s) : o.get(s)), k = (s, o, a) => o.has(s) ? E("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, a), g = (s, o, a, l) => (O(s, o, "write to private field"), l ? l.call(s, a) : o.set(s, a), a);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as c } from "tslib";
|
|
7
|
+
import { css as S, isServer as P, html as L } from "lit";
|
|
8
8
|
import { customElement as z, property as h } from "lit/decorators.js";
|
|
9
9
|
import { SbbOpenCloseBaseElement as N } from "../core/base-elements.js";
|
|
10
|
-
import { readConfig as
|
|
11
|
-
import { SbbEscapableOverlayController as
|
|
12
|
-
import { idReference as
|
|
13
|
-
import { queueDomContentLoaded as
|
|
14
|
-
import { SbbDisabledMixin as
|
|
10
|
+
import { readConfig as u } from "../core/config.js";
|
|
11
|
+
import { SbbEscapableOverlayController as B, SbbOverlayPositionController as I } from "../core/controllers.js";
|
|
12
|
+
import { idReference as M } from "../core/decorators.js";
|
|
13
|
+
import { queueDomContentLoaded as U, isZeroAnimationDuration as H, isAndroid as q, isIOS as Z } from "../core/dom.js";
|
|
14
|
+
import { SbbDisabledMixin as j, appendAriaElements as $, removeAriaElements as R } from "../core/mixins.js";
|
|
15
15
|
import { sbbOverlayOutsidePointerEventListener as A } from "../core/overlay.js";
|
|
16
|
-
import { boxSizingStyles as
|
|
17
|
-
const G =
|
|
16
|
+
import { boxSizingStyles as F } from "../core/styles.js";
|
|
17
|
+
const G = S`:host{--sbb-tooltip-pointer-events: all;--sbb-tooltip-min-width: var(--sbb-spacing-fixed-8x);--sbb-tooltip-max-width: min( 25rem, calc(100vw - var(--sbb-spacing-fixed-2x)) );--sbb-tooltip-border-color: var(--sbb-background-color-1-inverted);--sbb-tooltip-border-radius: var(--sbb-border-radius-8x);--sbb-tooltip-padding: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);--sbb-tooltip-background-color: var(--sbb-background-color-1-inverted);--sbb-tooltip-color: var(--sbb-color-2-inverted);--sbb-tooltip-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-tooltip-animation-easing: ease-out;--sbb-tooltip-animation-translate: 0 var(--sbb-spacing-fixed-2x);--sbb-tooltip-gap: var(--sbb-spacing-fixed-2x);--sbb-overlay-position-area: block-start;--sbb-overlay-position-try-fallbacks: block-start span-inline-end, block-start span-inline-start, block-end, block-end span-inline-end, block-end span-inline-start;position-area:var(--sbb-overlay-position-area);position-try-fallbacks:var(--sbb-overlay-position-try-fallbacks);display:none;position:fixed;background-color:transparent;pointer-events:var(--sbb-tooltip-pointer-events);z-index:var(--sbb-tooltip-z-index, var(--sbb-overlay-default-z-index));animation-name:var(--sbb-tooltip-animation-name);animation-duration:var(--sbb-tooltip-animation-duration);animation-timing-function:var(--sbb-tooltip-animation-easing);border:none;inset:initial;padding:0;margin:0}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))){display:block;--sbb-tooltip-animation-name: open}:host(:is(:state(state-closing),[state--state-closing])){--sbb-tooltip-animation-name: close;--sbb-tooltip-pointer-events: none}:host(:is([data-position~=block-end],[data-position~=bottom],[data-position^=end])){padding-block-start:var(--sbb-tooltip-gap)}:host(:is([data-position~=block-start],[data-position~=top],[data-position^=start])){padding-block-end:var(--sbb-tooltip-gap)}:host(:is([data-position~=inline-start],[data-position~=inline-end],[data-position~=left],[data-position~=right],[data-position$=" start"],[data-position$=" end"])){padding-inline:var(--sbb-tooltip-gap)}.sbb-tooltip{box-shadow:var(--sbb-box-shadow-level-5-soft);--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);border:var(--sbb-border-width-1x) solid var(--sbb-tooltip-border-color);border-radius:var(--sbb-tooltip-border-radius);padding:var(--sbb-tooltip-padding);color:var(--sbb-tooltip-color);background-color:var(--sbb-tooltip-background-color);min-width:var(--sbb-tooltip-min-width);max-width:var(--sbb-tooltip-max-width)}@keyframes open{0%{opacity:0;translate:var(--sbb-tooltip-animation-translate)}to{opacity:1;translate:0}}@keyframes close{0%{opacity:1;translate:0}to{opacity:0;translate:var(--sbb-tooltip-animation-translate)}}`, W = 500, Y = q || Z, m = /* @__PURE__ */ new WeakMap();
|
|
18
18
|
let J = 0, dt = (() => {
|
|
19
|
-
var d,
|
|
20
|
-
let
|
|
21
|
-
return
|
|
19
|
+
var d, n;
|
|
20
|
+
let s = [z("sbb-tooltip")], o, a = [], l, _ = j(N), b = [], y, v = [], f = [], T, C, D;
|
|
21
|
+
return n = class extends _ {
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
k(this, d);
|
|
25
|
+
g(this, d, (c(this, b), c(this, v, null))), this._openDelay = (c(this, f), null), this._closeDelay = null, this._triggerElement = null, this._escapableOverlayController = new B(this), this._overlayController = new I(this), this.addEventListener("mouseleave", (t) => {
|
|
26
26
|
(this.state === "opened" || this.state === "opening") && (!t.relatedTarget || !this._triggerElement?.contains(t.relatedTarget)) && this._delayedClose();
|
|
27
27
|
}, { passive: !0 }), this.addEventListener("overlayOutsidePointer", () => this.close(), { passive: !0 }), this.addEventListener("animationend", (t) => this._onTooltipAnimationEnd(t), { passive: !0 });
|
|
28
28
|
}
|
|
@@ -32,10 +32,10 @@ let J = 0, dt = (() => {
|
|
|
32
32
|
* For attribute usage, provide an id reference.
|
|
33
33
|
*/
|
|
34
34
|
get trigger() {
|
|
35
|
-
return
|
|
35
|
+
return x(this, d);
|
|
36
36
|
}
|
|
37
37
|
set trigger(t) {
|
|
38
|
-
|
|
38
|
+
g(this, d, t);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Open the tooltip after a given delay in milliseconds.
|
|
@@ -47,7 +47,7 @@ let J = 0, dt = (() => {
|
|
|
47
47
|
this._openDelay = t;
|
|
48
48
|
}
|
|
49
49
|
get openDelay() {
|
|
50
|
-
return this._openDelay ??
|
|
50
|
+
return this._openDelay ?? u().tooltip?.openDelay ?? 0;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Close the tooltip after a given delay in milliseconds.
|
|
@@ -59,7 +59,7 @@ let J = 0, dt = (() => {
|
|
|
59
59
|
this._closeDelay = t;
|
|
60
60
|
}
|
|
61
61
|
get closeDelay() {
|
|
62
|
-
return this._closeDelay ??
|
|
62
|
+
return this._closeDelay ?? u().tooltip?.closeDelay ?? 0;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Automatically close the tooltip after it has been open by long press.
|
|
@@ -71,7 +71,7 @@ let J = 0, dt = (() => {
|
|
|
71
71
|
this._longPressCloseDelay = +t;
|
|
72
72
|
}
|
|
73
73
|
get longPressCloseDelay() {
|
|
74
|
-
return this._longPressCloseDelay ??
|
|
74
|
+
return this._longPressCloseDelay ?? u().tooltip?.longPressCloseDelay ?? 1500;
|
|
75
75
|
}
|
|
76
76
|
static _initializeTooltipOutlet() {
|
|
77
77
|
this._tooltipOutlet = document.createElement("div"), this._tooltipOutlet.classList.add("sbb-overlay-outlet"), document.body.appendChild(this._tooltipOutlet), new MutationObserver((t) => {
|
|
@@ -79,7 +79,7 @@ let J = 0, dt = (() => {
|
|
|
79
79
|
if (e.type === "attributes")
|
|
80
80
|
this._handleTooltipTrigger(e.target);
|
|
81
81
|
else if (e.type === "childList")
|
|
82
|
-
for (const i of [...e.addedNodes, ...e.removedNodes].filter((
|
|
82
|
+
for (const i of [...e.addedNodes, ...e.removedNodes].filter((r) => r.nodeType === r.ELEMENT_NODE))
|
|
83
83
|
this._handleTooltipTrigger(i), this._findAndHandleTooltipTriggers(i);
|
|
84
84
|
}).observe(document.documentElement, {
|
|
85
85
|
attributeFilter: [
|
|
@@ -100,8 +100,8 @@ let J = 0, dt = (() => {
|
|
|
100
100
|
let i = m.get(t);
|
|
101
101
|
if (e && t.isConnected) {
|
|
102
102
|
i || (i = document.createElement("sbb-tooltip"), m.set(t, i), this._tooltipOutlet.appendChild(i), i.trigger = t), i.textContent = e, i.openDelay = t.hasAttribute("sbb-tooltip-open-delay") ? +t.getAttribute("sbb-tooltip-open-delay") : null, i.closeDelay = t.hasAttribute("sbb-tooltip-close-delay") ? +t.getAttribute("sbb-tooltip-close-delay") : null;
|
|
103
|
-
const
|
|
104
|
-
|
|
103
|
+
const r = t.hasAttribute("sbb-tooltip-position") ? t.getAttribute("sbb-tooltip-position").split(",").map((w) => w.trim()) : t.tooltipPositions;
|
|
104
|
+
r && r.length > 0 ? (i.style.setProperty("--sbb-overlay-position-area", r[0]), i.style.setProperty("--sbb-overlay-position-try-fallbacks", r.slice(1).join(", "))) : (i.style.removeProperty("--sbb-overlay-position-area"), i.style.removeProperty("--sbb-overlay-position-try-fallbacks"));
|
|
105
105
|
} else i && (m.delete(t), i._destroy());
|
|
106
106
|
}
|
|
107
107
|
connectedCallback() {
|
|
@@ -138,10 +138,10 @@ let J = 0, dt = (() => {
|
|
|
138
138
|
t.animationName === "open" && this.state === "opening" ? this._handleOpening() : t.animationName === "close" && this.state === "closing" && this._handleClosing();
|
|
139
139
|
}
|
|
140
140
|
_attach(t) {
|
|
141
|
-
this._triggerElement && this._detach(), this._triggerElement = t, this._triggerElement && (
|
|
141
|
+
this._triggerElement && this._detach(), this._triggerElement = t, this._triggerElement && (this._triggerElement.ariaDescribedByElements = $(this._triggerElement.ariaDescribedByElements, this), this._addTriggerEventHandlers());
|
|
142
142
|
}
|
|
143
143
|
_detach() {
|
|
144
|
-
this._triggerAbortController?.abort(), this._openStateController?.abort(), this._resetOpenCloseTimeout(), clearTimeout(this._longPressOpenTimeout), clearTimeout(this._longPressCloseTimeout), this._triggerElement && (
|
|
144
|
+
this._triggerAbortController?.abort(), this._openStateController?.abort(), this._resetOpenCloseTimeout(), clearTimeout(this._longPressOpenTimeout), clearTimeout(this._longPressCloseTimeout), this._triggerElement && (this._triggerElement.ariaDescribedByElements = R(this._triggerElement.ariaDescribedByElements, this), this._triggerElement = null);
|
|
145
145
|
}
|
|
146
146
|
_destroy() {
|
|
147
147
|
this._detach(), this.remove();
|
|
@@ -156,8 +156,8 @@ let J = 0, dt = (() => {
|
|
|
156
156
|
passive: !0
|
|
157
157
|
};
|
|
158
158
|
Y || (t.addEventListener("mouseenter", () => this._delayedOpen(), e), t.addEventListener("mouseleave", (i) => {
|
|
159
|
-
const
|
|
160
|
-
(!
|
|
159
|
+
const r = i.relatedTarget;
|
|
160
|
+
(!r || r !== this) && this._delayedClose();
|
|
161
161
|
}, e), t.addEventListener("blur", () => this.close(), e), t.addEventListener("focus", () => this._delayedOpen(), e)), t.addEventListener("touchstart", () => {
|
|
162
162
|
clearTimeout(this._longPressOpenTimeout), clearTimeout(this._longPressCloseTimeout), this._longPressOpenTimeout = setTimeout(() => this.open(), W);
|
|
163
163
|
}, e), t.addEventListener("touchend", () => {
|
|
@@ -167,30 +167,30 @@ let J = 0, dt = (() => {
|
|
|
167
167
|
}, e);
|
|
168
168
|
}
|
|
169
169
|
_isZeroAnimationDuration() {
|
|
170
|
-
return
|
|
170
|
+
return H(this, "--sbb-tooltip-animation-duration");
|
|
171
171
|
}
|
|
172
172
|
_resetOpenCloseTimeout() {
|
|
173
173
|
clearTimeout(this._openTimeout), clearTimeout(this._closeTimeout);
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return
|
|
176
|
+
return L`
|
|
177
177
|
<div class="sbb-tooltip">
|
|
178
178
|
<slot></slot>
|
|
179
179
|
</div>
|
|
180
180
|
`;
|
|
181
181
|
}
|
|
182
|
-
}, d = new WeakMap(),
|
|
182
|
+
}, d = new WeakMap(), l = n, (() => {
|
|
183
183
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
184
|
-
y = [
|
|
184
|
+
y = [M(), h()], T = [h({ attribute: "open-delay", type: Number })], C = [h({ attribute: "close-delay", type: Number })], D = [h({ attribute: "long-press-close-delay", type: Number })], p(n, null, y, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (e) => "trigger" in e, get: (e) => e.trigger, set: (e, i) => {
|
|
185
185
|
e.trigger = i;
|
|
186
|
-
} }, metadata: t }, v, f),
|
|
186
|
+
} }, metadata: t }, v, f), p(n, null, T, { kind: "setter", name: "openDelay", static: !1, private: !1, access: { has: (e) => "openDelay" in e, set: (e, i) => {
|
|
187
187
|
e.openDelay = i;
|
|
188
|
-
} }, metadata: t }, null,
|
|
188
|
+
} }, metadata: t }, null, b), p(n, null, C, { kind: "setter", name: "closeDelay", static: !1, private: !1, access: { has: (e) => "closeDelay" in e, set: (e, i) => {
|
|
189
189
|
e.closeDelay = i;
|
|
190
|
-
} }, metadata: t }, null,
|
|
190
|
+
} }, metadata: t }, null, b), p(n, null, D, { kind: "setter", name: "longPressCloseDelay", static: !1, private: !1, access: { has: (e) => "longPressCloseDelay" in e, set: (e, i) => {
|
|
191
191
|
e.longPressCloseDelay = i;
|
|
192
|
-
} }, metadata: t }, null,
|
|
193
|
-
})(),
|
|
192
|
+
} }, metadata: t }, null, b), p(null, o = { value: l }, s, { kind: "class", name: l.name, metadata: t }, null, a), l = o.value, t && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
193
|
+
})(), n.role = "tooltip", n.styles = [F, G], P || U(() => l._initializeTooltipOutlet()), c(l, a), l;
|
|
194
194
|
})();
|
|
195
195
|
export {
|
|
196
196
|
dt as SbbTooltipElement
|
|
@@ -2,7 +2,7 @@ var I = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var j = (e, t, i) => t.has(e) || I("Cannot " + i);
|
|
5
|
-
var h = (e, t, i) => (j(e, t, "read from private field"), i ? i.call(e) : t.get(e)), u = (e, t, i) => t.has(e) ? I("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), v = (e, t, i,
|
|
5
|
+
var h = (e, t, i) => (j(e, t, "read from private field"), i ? i.call(e) : t.get(e)), u = (e, t, i) => t.has(e) ? I("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), v = (e, t, i, a) => (j(e, t, "write to private field"), a ? a.call(e, i) : t.set(e, i), i);
|
|
6
6
|
import { __esDecorate as k, __runInitializers as r } from "tslib";
|
|
7
7
|
import { css as L, LitElement as M, nothing as T, html as D } from "lit";
|
|
8
8
|
import { customElement as G, property as m } from "lit/decorators.js";
|
|
@@ -10,10 +10,10 @@ import { forceType as E } from "../core/decorators.js";
|
|
|
10
10
|
import { isLean as H } from "../core/dom.js";
|
|
11
11
|
import { SbbDisabledMixin as O, SbbNegativeMixin as $ } from "../core/mixins.js";
|
|
12
12
|
import { boxSizingStyles as C } from "../core/styles.js";
|
|
13
|
-
const N = L`:host{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--sbb-visual-checkbox-dimension);height:var(--sbb-visual-checkbox-dimension);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-visual-checkbox-background-color);cursor:var(--sbb-visual-checkbox-cursor);outline:var(--sbb-visual-checkbox-border-width) var(--sbb-visual-checkbox-border-style) var(--sbb-visual-checkbox-border-color);outline-offset:calc(-1 * var(--sbb-visual-checkbox-border-width))}:host([size=xs]){--sbb-visual-checkbox-dimension: var(--sbb-
|
|
13
|
+
const N = L`:host{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--sbb-visual-checkbox-dimension);height:var(--sbb-visual-checkbox-dimension);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-visual-checkbox-background-color);cursor:var(--sbb-visual-checkbox-cursor);outline:var(--sbb-visual-checkbox-border-width) var(--sbb-visual-checkbox-border-style) var(--sbb-visual-checkbox-border-color);outline-offset:calc(-1 * var(--sbb-visual-checkbox-border-width))}:host([size=xs]){--sbb-visual-checkbox-dimension: var(--sbb-checkbox-dimension-xs)}:host([size=s]){--sbb-visual-checkbox-dimension: var(--sbb-checkbox-dimension-s)}:host([size=m]){--sbb-visual-checkbox-dimension: var(--sbb-checkbox-dimension-m)}:host([negative]){--sbb-visual-checkbox-background-color: var(--sbb-visual-checkbox-background-color-negative);--sbb-visual-checkbox-selection-color: var(--sbb-visual-checkbox-selection-color-negative)}:host([disabled]){--sbb-visual-checkbox-background-color: var(--sbb-visual-checkbox-background-color-disabled);--sbb-visual-checkbox-border-style: var(--sbb-visual-checkbox-border-style-disabled);--sbb-visual-checkbox-cursor: var(--sbb-cursor-default);--sbb-visual-checkbox-border-color: var(--sbb-visual-checkbox-border-color-disabled);--sbb-visual-checkbox-selection-color: var(--sbb-visual-checkbox-selection-color-disabled)}:host([disabled][negative]){--sbb-visual-checkbox-background-color: var( --sbb-visual-checkbox-background-color-negative-disabled );--sbb-visual-checkbox-selection-color: var( --sbb-visual-checkbox-selection-color-disabled-negative )}@media(forced-colors:active){:host([indeterminate]){--sbb-visual-checkbox-selection-color: ButtonBorder}:host([indeterminate][disabled]){--sbb-visual-checkbox-selection-color: GrayText}:host([checked]:not([indeterminate])){--sbb-visual-checkbox-background-color: Highlight;--sbb-visual-checkbox-border-width: 0}:host([disabled][checked]:not([indeterminate])){--sbb-visual-checkbox-background-color: GrayText}}path{stroke:var(--sbb-visual-checkbox-selection-color)}`;
|
|
14
14
|
let U = (() => {
|
|
15
15
|
var l, b, n, c;
|
|
16
|
-
let e = [G("sbb-visual-checkbox")], t, i = [],
|
|
16
|
+
let e = [G("sbb-visual-checkbox")], t, i = [], a, x = O($(M)), g, _ = [], f = [], p, z = [], y = [], w, S = [], B = [];
|
|
17
17
|
return c = class extends x {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
@@ -26,15 +26,15 @@ let U = (() => {
|
|
|
26
26
|
get checked() {
|
|
27
27
|
return h(this, l);
|
|
28
28
|
}
|
|
29
|
-
set checked(
|
|
30
|
-
v(this, l,
|
|
29
|
+
set checked(o) {
|
|
30
|
+
v(this, l, o);
|
|
31
31
|
}
|
|
32
32
|
/** Indeterminate state. */
|
|
33
33
|
get indeterminate() {
|
|
34
34
|
return h(this, b);
|
|
35
35
|
}
|
|
36
|
-
set indeterminate(
|
|
37
|
-
v(this, b,
|
|
36
|
+
set indeterminate(o) {
|
|
37
|
+
v(this, b, o);
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Size of the checkbox, either xs, s or m.
|
|
@@ -43,8 +43,8 @@ let U = (() => {
|
|
|
43
43
|
get size() {
|
|
44
44
|
return h(this, n);
|
|
45
45
|
}
|
|
46
|
-
set size(
|
|
47
|
-
v(this, n,
|
|
46
|
+
set size(o) {
|
|
47
|
+
v(this, n, o);
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
return D`
|
|
@@ -64,16 +64,16 @@ let U = (() => {
|
|
|
64
64
|
</svg>` : T}
|
|
65
65
|
`;
|
|
66
66
|
}
|
|
67
|
-
}, l = new WeakMap(), b = new WeakMap(), n = new WeakMap(),
|
|
68
|
-
const
|
|
67
|
+
}, l = new WeakMap(), b = new WeakMap(), n = new WeakMap(), a = c, (() => {
|
|
68
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
69
69
|
g = [E(), m({ reflect: !0, type: Boolean })], p = [E(), m({ reflect: !0, type: Boolean })], w = [m({ reflect: !0 })], k(c, null, g, { kind: "accessor", name: "checked", static: !1, private: !1, access: { has: (s) => "checked" in s, get: (s) => s.checked, set: (s, d) => {
|
|
70
70
|
s.checked = d;
|
|
71
|
-
} }, metadata:
|
|
71
|
+
} }, metadata: o }, _, f), k(c, null, p, { kind: "accessor", name: "indeterminate", static: !1, private: !1, access: { has: (s) => "indeterminate" in s, get: (s) => s.indeterminate, set: (s, d) => {
|
|
72
72
|
s.indeterminate = d;
|
|
73
|
-
} }, metadata:
|
|
73
|
+
} }, metadata: o }, z, y), k(c, null, w, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (s) => "size" in s, get: (s) => s.size, set: (s, d) => {
|
|
74
74
|
s.size = d;
|
|
75
|
-
} }, metadata:
|
|
76
|
-
})(), c.styles = [C, N], r(
|
|
75
|
+
} }, metadata: o }, S, B), k(null, t = { value: a }, e, { kind: "class", name: a.name, metadata: o }, null, i), a = t.value, o && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
76
|
+
})(), c.styles = [C, N], r(a, i), a;
|
|
77
77
|
})();
|
|
78
78
|
export {
|
|
79
79
|
U as SbbVisualCheckboxElement
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { css as e } from "lit";
|
|
2
|
-
const s = e`@charset "UTF-8";:host([size=xs]){--sbb-checkbox-font-size: var(--sbb-text-font-size-xs)}:host([size=s]){--sbb-checkbox-font-size: var(--sbb-text-font-size-s)}:host([size=m]){--sbb-checkbox-font-size: var(--sbb-text-font-size-m)}:host(:disabled){--sbb-checkbox-cursor: var(--sbb-cursor-default);--sbb-checkbox-label-color: var(--sbb-color-granite);--sbb-checkbox-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-aluminium))}.sbb-checkbox-wrapper{display:flex}.sbb-checkbox-wrapper:before{content:"";-webkit-user-select:none;user-select:none;width:0;height:0}.sbb-checkbox{font-size:var(--sbb-checkbox-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);position:relative;display:block;width:100%;cursor:var(--sbb-checkbox-cursor);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.sbb-checkbox__inner{display:flex;align-items:start;gap:var(--sbb-spacing-fixed-2x)}.sbb-checkbox__label{display:flex;flex-grow:1;color:var(--sbb-checkbox-label-color);line-height:max(1em * var(--sbb-typo-line-height-text),var(--sbb-checkbox-dimension))}.sbb-checkbox__aligner{display:flex;align-items:center;height:calc(1em * var(--sbb-typo-line-height-text))}`;
|
|
3
|
-
export {
|
|
4
|
-
s as c
|
|
5
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactiveControllerHost, LitElement, ReactiveController } from 'lit';
|
|
2
|
-
type PropertyWatcherHandler<T extends LitElement> = (ancestor: T) => void;
|
|
3
|
-
export declare class SbbAncestorWatcherController<T extends LitElement> implements ReactiveController {
|
|
4
|
-
private readonly _host;
|
|
5
|
-
private readonly _ancestorResolver;
|
|
6
|
-
private readonly _handlers;
|
|
7
|
-
private _ancestor?;
|
|
8
|
-
private _watchers?;
|
|
9
|
-
constructor(_host: ReactiveControllerHost & HTMLElement, _ancestorResolver: () => T | null, _handlers: Partial<Record<keyof T, PropertyWatcherHandler<T>>>);
|
|
10
|
-
hostConnected(): void;
|
|
11
|
-
hostDisconnected(): void;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=ancestor-watcher-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ancestor-watcher-controller.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/controllers/ancestor-watcher-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,kBAAkB,EAExB,MAAM,KAAK,CAAC;AAEb,KAAK,sBAAsB,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;AAgD1E,qBAAa,4BAA4B,CAAC,CAAC,SAAS,UAAU,CAAE,YAAW,kBAAkB;IAKzF,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,OAAO,CAAC,SAAS,CAAC,CAAkC;gBAGjC,KAAK,EAAE,sBAAsB,GAAG,WAAW,EAC3C,iBAAiB,EAAE,MAAM,CAAC,GAAG,IAAI,EACjC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;IAK1E,aAAa,IAAI,IAAI;IA0BrB,gBAAgB,IAAI,IAAI;CAgBhC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { isServer as a } from "lit";
|
|
2
|
-
class n {
|
|
3
|
-
get size() {
|
|
4
|
-
return this._handlers.size;
|
|
5
|
-
}
|
|
6
|
-
constructor(t, s) {
|
|
7
|
-
this._host = t, this._property = s, this._handlers = /* @__PURE__ */ new Set(), a || customElements.upgrade(this._host), this._value = this._host[this._property];
|
|
8
|
-
}
|
|
9
|
-
addHandler(t) {
|
|
10
|
-
this._handlers.size || this._host.addController(this), this._handlers.add(t), t(this._host);
|
|
11
|
-
}
|
|
12
|
-
removeHandler(t) {
|
|
13
|
-
this._handlers.delete(t), this._handlers.size || this._host.removeController(this);
|
|
14
|
-
}
|
|
15
|
-
hostUpdate() {
|
|
16
|
-
const t = this._host[this._property];
|
|
17
|
-
if (this._value !== t) {
|
|
18
|
-
this._value = t;
|
|
19
|
-
for (const s of this._handlers)
|
|
20
|
-
s(this._host);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const h = /* @__PURE__ */ new WeakMap();
|
|
25
|
-
class _ {
|
|
26
|
-
constructor(t, s, e) {
|
|
27
|
-
this._host = t, this._ancestorResolver = s, this._handlers = e, this._host.addController(this);
|
|
28
|
-
}
|
|
29
|
-
hostConnected() {
|
|
30
|
-
const t = this._ancestorResolver();
|
|
31
|
-
if (this._ancestor === t || !t)
|
|
32
|
-
return;
|
|
33
|
-
this._ancestor = t;
|
|
34
|
-
let s = h.get(this._ancestor);
|
|
35
|
-
s || (s = /* @__PURE__ */ new Map(), h.set(this._ancestor, s)), this._watchers = s;
|
|
36
|
-
for (const [e, i] of Object.entries(this._handlers)) {
|
|
37
|
-
let r = this._watchers.get(e);
|
|
38
|
-
r || (r = new n(this._ancestor, e), this._watchers.set(e, r)), r.addHandler(i);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
hostDisconnected() {
|
|
42
|
-
if (this._ancestor !== this._ancestorResolver())
|
|
43
|
-
for (const [t, s] of Object.entries(this._handlers)) {
|
|
44
|
-
const e = this._watchers?.get(t);
|
|
45
|
-
e && (e.removeHandler(s), e.size || (this._watchers.delete(t), !this._watchers.size && this._ancestor && h.delete(this._ancestor)));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
_ as SbbAncestorWatcherController
|
|
51
|
-
};
|
package/core/dom/breakpoint.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const breakpoints: readonly ["zero", "small", "large", "ultra"];
|
|
2
|
-
export type Breakpoint = (typeof breakpoints)[number];
|
|
3
|
-
/**
|
|
4
|
-
* Checks whether the document matches a particular media query.
|
|
5
|
-
* It will rely on the global CSS variables to determine the value of the breakpoints.
|
|
6
|
-
*
|
|
7
|
-
* @param from The breakpoint corresponding to the `min-width` value of the media query (optional).
|
|
8
|
-
* @param to The breakpoint corresponding to the `max-width` value of the media query (optional).
|
|
9
|
-
* @param properties Whether the max breakpoint should be included
|
|
10
|
-
* @returns A boolean indicating whether the window matches the breakpoint.
|
|
11
|
-
* @deprecated use the mediaMatcherController
|
|
12
|
-
*/
|
|
13
|
-
export declare function isBreakpoint(from?: Breakpoint, to?: Breakpoint, properties?: {
|
|
14
|
-
includeMaxBreakpoint: boolean;
|
|
15
|
-
}): boolean | null;
|
|
16
|
-
//# sourceMappingURL=breakpoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/breakpoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,8CAA+C,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,CAAC,EAAE,UAAU,EACjB,EAAE,CAAC,EAAE,UAAU,EACf,UAAU,CAAC,EAAE;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,GAC7C,OAAO,GAAG,IAAI,CAsBhB"}
|
package/core/dom/breakpoint.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { isServer as d } from "lit";
|
|
2
|
-
const s = ["zero", "small", "large", "ultra"];
|
|
3
|
-
function p(n, a, i) {
|
|
4
|
-
if (d)
|
|
5
|
-
return null;
|
|
6
|
-
const o = getComputedStyle(document.documentElement), t = n ? o.getPropertyValue(`--sbb-breakpoint-${n}-min`) : "", e = a ? `${parseFloat(o.getPropertyValue(`--sbb-breakpoint-${a}-${i?.includeMaxBreakpoint ? "max" : "min"}`)) - (i?.includeMaxBreakpoint ? 0 : 0.0625)}rem` : "", r = t && `(min-width: ${t})`, m = e && `(max-width: ${e})`, c = t && e && " and ";
|
|
7
|
-
return window.matchMedia(`${r}${c}${m}`).matches;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
s as breakpoints,
|
|
11
|
-
p as isBreakpoint
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Looks for the closest element matching the given selector starting from the given element.
|
|
3
|
-
* Returns null, if none of the ancestor match.
|
|
4
|
-
*
|
|
5
|
-
* @param selector The selector to match ancestor against.
|
|
6
|
-
* @param element The base element from which to start the search.
|
|
7
|
-
* @returns The closest element matching the selector or null if none is found.
|
|
8
|
-
*/
|
|
9
|
-
export declare function hostContext(selector: string, element: Element): Element | null;
|
|
10
|
-
export declare const ACTION_ELEMENTS = "a,button,sbb-teaser-hero,sbb-teaser";
|
|
11
|
-
//# sourceMappingURL=host-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-context.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/host-context.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAgB9E;AAID,eAAO,MAAM,eAAe,wCAAwC,CAAC"}
|
package/core/dom/host-context.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { isServer as s } from "lit";
|
|
2
|
-
function i(r, o) {
|
|
3
|
-
if (s)
|
|
4
|
-
return null;
|
|
5
|
-
for (o = o.parentElement ?? o.getRootNode().host; o && o !== document && o !== window; ) {
|
|
6
|
-
const t = o.closest(r);
|
|
7
|
-
if (t)
|
|
8
|
-
return t;
|
|
9
|
-
o = o.getRootNode().host;
|
|
10
|
-
}
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
const n = "a,button,sbb-teaser-hero,sbb-teaser";
|
|
14
|
-
export {
|
|
15
|
-
n as ACTION_ELEMENTS,
|
|
16
|
-
i as hostContext
|
|
17
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactiveControllerHost, LitElement, ReactiveController } from 'lit';
|
|
2
|
-
type PropertyWatcherHandler<T extends LitElement> = (ancestor: T) => void;
|
|
3
|
-
export declare class SbbAncestorWatcherController<T extends LitElement> implements ReactiveController {
|
|
4
|
-
private readonly _host;
|
|
5
|
-
private readonly _ancestorResolver;
|
|
6
|
-
private readonly _handlers;
|
|
7
|
-
private _ancestor?;
|
|
8
|
-
private _watchers?;
|
|
9
|
-
constructor(_host: ReactiveControllerHost & HTMLElement, _ancestorResolver: () => T | null, _handlers: Partial<Record<keyof T, PropertyWatcherHandler<T>>>);
|
|
10
|
-
hostConnected(): void;
|
|
11
|
-
hostDisconnected(): void;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=ancestor-watcher-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ancestor-watcher-controller.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/controllers/ancestor-watcher-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,kBAAkB,EAExB,MAAM,KAAK,CAAC;AAEb,KAAK,sBAAsB,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;AAgD1E,qBAAa,4BAA4B,CAAC,CAAC,SAAS,UAAU,CAAE,YAAW,kBAAkB;IAKzF,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,OAAO,CAAC,SAAS,CAAC,CAAkC;gBAGjC,KAAK,EAAE,sBAAsB,GAAG,WAAW,EAC3C,iBAAiB,EAAE,MAAM,CAAC,GAAG,IAAI,EACjC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;IAK1E,aAAa,IAAI,IAAI;IA0BrB,gBAAgB,IAAI,IAAI;CAgBhC"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { isServer } from "lit";
|
|
2
|
-
class PropertyWatcher {
|
|
3
|
-
get size() {
|
|
4
|
-
return this._handlers.size;
|
|
5
|
-
}
|
|
6
|
-
constructor(_host, _property) {
|
|
7
|
-
this._host = _host;
|
|
8
|
-
this._property = _property;
|
|
9
|
-
this._handlers = /* @__PURE__ */ new Set();
|
|
10
|
-
if (!isServer) {
|
|
11
|
-
customElements.upgrade(this._host);
|
|
12
|
-
}
|
|
13
|
-
this._value = this._host[this._property];
|
|
14
|
-
}
|
|
15
|
-
addHandler(handler) {
|
|
16
|
-
if (!this._handlers.size) {
|
|
17
|
-
this._host.addController(this);
|
|
18
|
-
}
|
|
19
|
-
this._handlers.add(handler);
|
|
20
|
-
handler(this._host);
|
|
21
|
-
}
|
|
22
|
-
removeHandler(handler) {
|
|
23
|
-
this._handlers.delete(handler);
|
|
24
|
-
if (!this._handlers.size) {
|
|
25
|
-
this._host.removeController(this);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
hostUpdate() {
|
|
29
|
-
const currentValue = this._host[this._property];
|
|
30
|
-
if (this._value !== currentValue) {
|
|
31
|
-
this._value = currentValue;
|
|
32
|
-
for (const handler of this._handlers) {
|
|
33
|
-
handler(this._host);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const propertyWatchers = /* @__PURE__ */ new WeakMap();
|
|
39
|
-
class SbbAncestorWatcherController {
|
|
40
|
-
constructor(_host, _ancestorResolver, _handlers) {
|
|
41
|
-
this._host = _host;
|
|
42
|
-
this._ancestorResolver = _ancestorResolver;
|
|
43
|
-
this._handlers = _handlers;
|
|
44
|
-
this._host.addController(this);
|
|
45
|
-
}
|
|
46
|
-
hostConnected() {
|
|
47
|
-
const ancestor = this._ancestorResolver();
|
|
48
|
-
if (this._ancestor === ancestor || !ancestor) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this._ancestor = ancestor;
|
|
52
|
-
let watchers = propertyWatchers.get(this._ancestor);
|
|
53
|
-
if (!watchers) {
|
|
54
|
-
watchers = /* @__PURE__ */ new Map();
|
|
55
|
-
propertyWatchers.set(this._ancestor, watchers);
|
|
56
|
-
}
|
|
57
|
-
this._watchers = watchers;
|
|
58
|
-
for (const [property, handler] of Object.entries(this._handlers)) {
|
|
59
|
-
let watcher = this._watchers.get(property);
|
|
60
|
-
if (!watcher) {
|
|
61
|
-
watcher = new PropertyWatcher(this._ancestor, property);
|
|
62
|
-
this._watchers.set(property, watcher);
|
|
63
|
-
}
|
|
64
|
-
watcher.addHandler(handler);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
hostDisconnected() {
|
|
68
|
-
if (this._ancestor !== this._ancestorResolver()) {
|
|
69
|
-
for (const [property, handler] of Object.entries(this._handlers)) {
|
|
70
|
-
const watcher = this._watchers?.get(property);
|
|
71
|
-
if (watcher) {
|
|
72
|
-
watcher.removeHandler(handler);
|
|
73
|
-
if (!watcher.size) {
|
|
74
|
-
this._watchers.delete(property);
|
|
75
|
-
if (!this._watchers.size && this._ancestor) {
|
|
76
|
-
propertyWatchers.delete(this._ancestor);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
SbbAncestorWatcherController
|
|
86
|
-
};
|
|
87
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5jZXN0b3Itd2F0Y2hlci1jb250cm9sbGVyLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZWxlbWVudHMvY29yZS9jb250cm9sbGVycy9hbmNlc3Rvci13YXRjaGVyLWNvbnRyb2xsZXIudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgdHlwZSBSZWFjdGl2ZUNvbnRyb2xsZXJIb3N0LFxuICB0eXBlIExpdEVsZW1lbnQsXG4gIHR5cGUgUmVhY3RpdmVDb250cm9sbGVyLFxuICBpc1NlcnZlcixcbn0gZnJvbSAnbGl0JztcblxudHlwZSBQcm9wZXJ0eVdhdGNoZXJIYW5kbGVyPFQgZXh0ZW5kcyBMaXRFbGVtZW50PiA9IChhbmNlc3RvcjogVCkgPT4gdm9pZDtcblxuY2xhc3MgUHJvcGVydHlXYXRjaGVyPFQgZX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|
1
|
-
export declare const breakpoints: readonly ["zero", "small", "large", "ultra"];
|
|
2
|
-
export type Breakpoint = (typeof breakpoints)[number];
|
|
3
|
-
/**
|
|
4
|
-
* Checks whether the document matches a particular media query.
|
|
5
|
-
* It will rely on the global CSS variables to determine the value of the breakpoints.
|
|
6
|
-
*
|
|
7
|
-
* @param from The breakpoint corresponding to the `min-width` value of the media query (optional).
|
|
8
|
-
* @param to The breakpoint corresponding to the `max-width` value of the media query (optional).
|
|
9
|
-
* @param properties Whether the max breakpoint should be included
|
|
10
|
-
* @returns A boolean indicating whether the window matches the breakpoint.
|
|
11
|
-
* @deprecated use the mediaMatcherController
|
|
12
|
-
*/
|
|
13
|
-
export declare function isBreakpoint(from?: Breakpoint, to?: Breakpoint, properties?: {
|
|
14
|
-
includeMaxBreakpoint: boolean;
|
|
15
|
-
}): boolean | null;
|
|
16
|
-
//# sourceMappingURL=breakpoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/dom/breakpoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,8CAA+C,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,CAAC,EAAE,UAAU,EACjB,EAAE,CAAC,EAAE,UAAU,EACf,UAAU,CAAC,EAAE;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,GAC7C,OAAO,GAAG,IAAI,CAsBhB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { isServer } from "lit";
|
|
2
|
-
const breakpoints = ["zero", "small", "large", "ultra"];
|
|
3
|
-
function isBreakpoint(from, to, properties) {
|
|
4
|
-
if (isServer) {
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
const computedStyle = getComputedStyle(document.documentElement);
|
|
8
|
-
const breakpointMin = from ? computedStyle.getPropertyValue(`--sbb-breakpoint-${from}-min`) : "";
|
|
9
|
-
const breakpointMax = to ? `${parseFloat(computedStyle.getPropertyValue(`--sbb-breakpoint-${to}-${properties?.includeMaxBreakpoint ? "max" : "min"}`)) - (properties?.includeMaxBreakpoint ? 0 : 0.0625)}rem` : "";
|
|
10
|
-
const minWidth = breakpointMin && `(min-width: ${breakpointMin})`;
|
|
11
|
-
const maxWidth = breakpointMax && `(max-width: ${breakpointMax})`;
|
|
12
|
-
const and = breakpointMin && breakpointMax && " and ";
|
|
13
|
-
return window.matchMedia(`${minWidth}${and}${maxWidth}`).matches;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
breakpoints,
|
|
17
|
-
isBreakpoint
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2VsZW1lbnRzL2NvcmUvZG9tL2JyZWFrcG9pbnQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNTZXJ2ZXIgfSBmcm9tICdsaXQnO1xuXG5leHBvcnQgY29uc3QgYnJlYWtwb2ludHMgPSBbJ3plcm8nLCAnc21hbGwnLCAnbGFyZ2UnLCAndWx0cmEnXSBhcyBjb25zdDtcbmV4cG9ydCB0eXBlIEJyZWFrcG9pbnQgPSAodHlwZW9mIGJyZWFrcG9pbnRzKVtudW1iZXJdO1xuXG4vKipcbiAqIENoZWNrcyB3aGV0aGVyIHRoZSBkb2N1bWVudCBtYXRjaGVzIGEgcGFydGljdWxhciBtZWRpYSBxdWVyeS5cbiAqIEl0IHdpbGwgcmVseSBvbiB0aGUgZ2xvYmFsIENTUyB2YXJpYWJsZXMgdG8gZGV0ZXJtaW5lIHRoZSB2YWx1ZSBvZiB0aGUgYnJlYWtwb2ludHMuX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EIsR0FDRSxXQUNFLGNBQWMsaUJBQ1osb0JBQW9CLEVBQUUsSUFBSSxZQUFZLHVCQUF1QixRQUFRLEtBQUssRUFBRSxDQUM3RSxLQUNFLFlBQVksdUJBQXVCLElBQUksT0FDOUMsUUFDQTtBQUVKLFFBQU0sV0FBVyxpQkFBaUIsZUFBZSxhQUFhO0FBQzlELFFBQU0sV0FBVyxpQkFBaUIsZUFBZSxhQUFhO0FBQzlELFFBQU0sTUFBTSxpQkFBaUIsaUJBQWlCO0FBRTlDLFNBQU8sT0FBTyxXQUFXLEdBQUcsUUFBUSxHQUFHLEdBQUcsR0FBRyxRQUFRLEVBQUUsRUFBRTtBQUMzRDsifQ==
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Looks for the closest element matching the given selector starting from the given element.
|
|
3
|
-
* Returns null, if none of the ancestor match.
|
|
4
|
-
*
|
|
5
|
-
* @param selector The selector to match ancestor against.
|
|
6
|
-
* @param element The base element from which to start the search.
|
|
7
|
-
* @returns The closest element matching the selector or null if none is found.
|
|
8
|
-
*/
|
|
9
|
-
export declare function hostContext(selector: string, element: Element): Element | null;
|
|
10
|
-
export declare const ACTION_ELEMENTS = "a,button,sbb-teaser-hero,sbb-teaser";
|
|
11
|
-
//# sourceMappingURL=host-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-context.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/dom/host-context.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAgB9E;AAID,eAAO,MAAM,eAAe,wCAAwC,CAAC"}
|