@sbb-esta/lyne-elements 3.6.0 → 3.8.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/a11y.css +1 -1
- package/alert/alert/alert.component.d.ts +2 -0
- package/alert/alert/alert.component.d.ts.map +1 -1
- package/alert/alert/alert.component.js +44 -39
- package/alert/alert-group/alert-group.component.js +12 -12
- package/autocomplete/autocomplete-base-element.d.ts +14 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +110 -77
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +9 -9
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +5 -5
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +14 -14
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +9 -9
- package/badge.css +2 -2
- package/breadcrumb/breadcrumb/breadcrumb.component.js +12 -12
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +15 -15
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.js +7 -7
- package/button/mini-button-group/mini-button-group.component.js +21 -21
- package/button.js +1 -1
- package/calendar/calendar.component.js +36 -36
- package/card/card/card.component.js +10 -10
- package/card/card-badge/card-badge.component.js +15 -15
- package/carousel/carousel/carousel.component.d.ts +33 -0
- package/carousel/carousel/carousel.component.d.ts.map +1 -0
- package/carousel/carousel/carousel.component.js +82 -0
- package/carousel/carousel-item/carousel-item.component.d.ts +29 -0
- package/carousel/carousel-item/carousel-item.component.d.ts.map +1 -0
- package/carousel/carousel-item/carousel-item.component.js +26 -0
- package/carousel/carousel-item.d.ts +5 -0
- package/carousel/carousel-item.d.ts.map +1 -0
- package/carousel/carousel-item.js +4 -0
- package/carousel/carousel-list/carousel-list.component.d.ts +30 -0
- package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -0
- package/carousel/carousel-list/carousel-list.component.js +81 -0
- package/carousel/carousel-list.d.ts +5 -0
- package/carousel/carousel-list.d.ts.map +1 -0
- package/carousel/carousel-list.js +4 -0
- package/carousel/carousel.d.ts +5 -0
- package/carousel/carousel.d.ts.map +1 -0
- package/carousel/carousel.js +4 -0
- package/carousel.d.ts +7 -0
- package/carousel.d.ts.map +1 -0
- package/carousel.js +8 -0
- package/checkbox/common.js +1 -1
- package/checkbox-common-gjHkSAmN.js +5 -0
- package/checkbox.js +1 -1
- package/chip/chip/chip.component.js +23 -23
- package/chip-label/chip-label.component.js +22 -22
- package/clock/clock.component.js +29 -29
- package/container/container/container.component.js +21 -21
- package/container/sticky-bar/sticky-bar.component.js +13 -13
- package/core/config/config.d.ts +6 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.d.ts +29 -0
- package/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.js +73 -23
- package/core/controllers.js +16 -14
- package/core/dom/contains-pierce-shadow-dom.d.ts +3 -0
- package/core/dom/contains-pierce-shadow-dom.d.ts.map +1 -0
- package/core/dom/contains-pierce-shadow-dom.js +12 -0
- package/core/dom/queue-dom-content-loaded.d.ts +5 -0
- package/core/dom/queue-dom-content-loaded.d.ts.map +1 -0
- package/core/dom/queue-dom-content-loaded.js +7 -0
- package/core/dom/set-or-remove-attribute.d.ts +14 -0
- package/core/dom/set-or-remove-attribute.d.ts.map +1 -1
- package/core/dom/set-or-remove-attribute.js +11 -3
- package/core/dom.d.ts +2 -0
- package/core/dom.d.ts.map +1 -1
- package/core/dom.js +28 -22
- package/core/i18n/i18n.d.ts +6 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n/i18n.js +196 -160
- package/core/i18n.js +94 -88
- package/core/images.d.ts +4 -0
- package/core/images.d.ts.map +1 -1
- package/core/images.js +12 -12
- package/core/mixins.js +10 -10
- package/core/overlay/overlay-outside-pointer-event-listener.d.ts +26 -0
- package/core/overlay/overlay-outside-pointer-event-listener.d.ts.map +1 -0
- package/core/overlay/overlay-outside-pointer-event-listener.js +37 -0
- package/core/overlay.d.ts +1 -0
- package/core/overlay.d.ts.map +1 -1
- package/core/overlay.js +14 -11
- package/core/styles/core.scss +40 -13
- package/core/styles/mixins/a11y.scss +1 -1
- package/core/styles/mixins/badge.scss +2 -2
- package/core/styles/mixins/buttons.scss +14 -14
- package/core/styles/mixins/card.scss +9 -6
- package/core/styles/mixins/chip.scss +8 -8
- package/core/styles/mixins/image.scss +3 -0
- package/core/styles/mixins/link.scss +12 -7
- package/core/styles/mixins/lists.scss +6 -4
- package/core/styles/mixins/overlay.scss +6 -3
- package/core/styles/mixins/panel.scss +3 -3
- package/core/styles/mixins/pearl-chain-bullet.scss +9 -5
- package/core/styles/mixins/scrollbar.scss +17 -9
- package/core/styles/mixins/shadows.scss +32 -64
- package/core/styles/mixins/table.scss +13 -10
- package/core/styles/mixins/timetable-form.scss +63 -0
- package/core/styles/mixins/typo.scss +4 -4
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +49 -1
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +203 -5
- package/core/styles/off-brand-theme.scss +3 -0
- package/core/styles/safety-theme.scss +3 -0
- package/core/styles/standard-theme.scss +3 -13
- package/core/styles/theme.scss +18 -0
- package/core/styles/timetable-form.scss +27 -0
- package/core.css +283 -51
- package/custom-elements.json +19396 -15212
- package/date-input/date-input.component.js +1 -1
- package/datepicker/datepicker/datepicker.component.js +1 -1
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +4 -4
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +6 -6
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +7 -7
- package/development/alert/alert/alert.component.d.ts +2 -0
- package/development/alert/alert/alert.component.d.ts.map +1 -1
- package/development/alert/alert/alert.component.js +22 -8
- package/development/alert/alert-group/alert-group.component.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +14 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +86 -19
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +15 -14
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +5 -4
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +19 -11
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +4 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +16 -8
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +15 -14
- package/development/button/mini-button-group/mini-button-group.component.js +4 -4
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.js +21 -11
- package/development/card/card/card.component.js +11 -6
- package/development/card/card-badge/card-badge.component.js +10 -9
- package/development/carousel/carousel/carousel.component.d.ts +33 -0
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -0
- package/development/carousel/carousel/carousel.component.js +163 -0
- package/development/carousel/carousel-item/carousel-item.component.d.ts +29 -0
- package/development/carousel/carousel-item/carousel-item.component.d.ts.map +1 -0
- package/development/carousel/carousel-item/carousel-item.component.js +46 -0
- package/development/carousel/carousel-item.d.ts +5 -0
- package/development/carousel/carousel-item.d.ts.map +1 -0
- package/development/carousel/carousel-item.js +5 -0
- package/development/carousel/carousel-list/carousel-list.component.d.ts +30 -0
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -0
- package/development/carousel/carousel-list/carousel-list.component.js +151 -0
- package/development/carousel/carousel-list.d.ts +5 -0
- package/development/carousel/carousel-list.d.ts.map +1 -0
- package/development/carousel/carousel-list.js +5 -0
- package/development/carousel/carousel.d.ts +5 -0
- package/development/carousel/carousel.d.ts.map +1 -0
- package/development/carousel/carousel.js +5 -0
- package/development/carousel.d.ts +7 -0
- package/development/carousel.d.ts.map +1 -0
- package/development/carousel.js +9 -0
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-aMPOsPVA.js → checkbox-common-Dy_ofVhp.js} +4 -3
- package/development/checkbox.js +1 -1
- package/development/chip/chip/chip.component.js +15 -14
- package/development/chip-label/chip-label.component.js +12 -15
- package/development/clock/clock.component.js +11 -3
- package/development/container/container/container.component.js +6 -6
- package/development/container/sticky-bar/sticky-bar.component.js +6 -6
- package/development/core/config/config.d.ts +6 -0
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/media-matchers-controller.d.ts +29 -0
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/development/core/controllers/media-matchers-controller.js +74 -1
- package/development/core/controllers.js +3 -1
- package/development/core/dom/contains-pierce-shadow-dom.d.ts +3 -0
- package/development/core/dom/contains-pierce-shadow-dom.d.ts.map +1 -0
- package/development/core/dom/contains-pierce-shadow-dom.js +14 -0
- package/development/core/dom/queue-dom-content-loaded.d.ts +5 -0
- package/development/core/dom/queue-dom-content-loaded.d.ts.map +1 -0
- package/development/core/dom/queue-dom-content-loaded.js +12 -0
- package/development/core/dom/set-or-remove-attribute.d.ts +14 -0
- package/development/core/dom/set-or-remove-attribute.d.ts.map +1 -1
- package/development/core/dom/set-or-remove-attribute.js +9 -1
- package/development/core/dom.d.ts +2 -0
- package/development/core/dom.d.ts.map +1 -1
- package/development/core/dom.js +8 -2
- package/development/core/i18n/i18n.d.ts +6 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +43 -1
- package/development/core/i18n.js +7 -1
- package/development/core/images.d.ts +4 -0
- package/development/core/images.d.ts.map +1 -1
- package/development/core/images.js +11 -11
- package/development/core/mixins.js +7 -6
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts +26 -0
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts.map +1 -0
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +61 -0
- package/development/core/overlay.d.ts +1 -0
- package/development/core/overlay.d.ts.map +1 -1
- package/development/core/overlay.js +4 -1
- package/development/date-input/date-input.component.js +2 -2
- package/development/datepicker/datepicker/datepicker.component.js +1 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +15 -14
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +15 -14
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +15 -14
- package/development/dialog/dialog/dialog.component.d.ts +1 -0
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +28 -14
- package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +1 -1
- package/development/divider/divider.component.js +2 -2
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +6 -6
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +6 -2
- package/development/file-selector/common.js +1 -1
- package/development/{file-selector-common-B4I8rwJE.js → file-selector-common-CRNAWFM_.js} +9 -6
- package/development/file-selector.js +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +8 -3
- package/development/footer/footer.component.js +6 -5
- package/development/form-error/form-error.component.js +2 -2
- package/development/form-field/form-field/form-field.component.d.ts +3 -0
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +39 -23
- package/development/form-field/form-field-clear/form-field-clear.component.js +15 -14
- package/development/header/common/header-action-common.js +12 -12
- package/development/header/header/header.component.js +2 -2
- package/development/header/header-environment/header-environment.component.js +1 -1
- package/development/{icon-sidebar-button-common-CA_8TnFu.js → icon-sidebar-button-common-BGrKtvyM.js} +3 -2
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/lead-container/lead-container.component.js +4 -2
- package/development/link/common/block-link-common.js +17 -5
- package/development/link/common/inline-link-common.js +9 -3
- package/development/link-list/link-list/link-list.component.js +8 -8
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +11 -9
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +2 -2
- package/development/logo/logo.component.js +3 -2
- package/development/map-container/map-container.component.js +14 -6
- package/development/menu/common/menu-action-common.js +4 -3
- package/development/menu/menu/menu.component.d.ts +2 -0
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +36 -13
- package/development/message/message.component.js +3 -1
- package/development/navigation/common/navigation-action-common.js +4 -4
- package/development/navigation/navigation/navigation.component.js +21 -19
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +4 -4
- package/development/notification/notification.component.js +38 -18
- package/development/option/optgroup/optgroup-base-element.js +3 -2
- package/development/option/option/option.component.js +13 -11
- package/development/option/option-hint/option-hint.component.js +3 -2
- package/development/overlay/overlay.component.d.ts.map +1 -1
- package/development/overlay/overlay.component.js +28 -22
- package/development/paginator/compact-paginator/compact-paginator.component.js +3 -2
- package/development/paginator/paginator/paginator.component.js +19 -18
- package/development/popover/popover/popover.component.js +8 -6
- package/development/popover/popover-trigger/popover-trigger.component.js +20 -17
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.js +3 -3
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -3
- package/development/{radio-button-common-BRyEhlYf.js → radio-button-common-CgM3kQSW.js} +10 -9
- package/development/radio-button.js +1 -1
- package/development/sbb-tokens-CVLcOi-S.js +1 -1
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/select/select.component.js +31 -13
- package/development/selection-action-panel/selection-action-panel.component.js +9 -5
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +10 -6
- package/development/sidebar/common.js +1 -1
- package/development/sidebar/icon-sidebar/icon-sidebar.component.js +2 -2
- package/development/sidebar/sidebar/sidebar.component.js +14 -6
- package/development/sidebar.js +1 -1
- package/development/signet/signet.component.js +2 -2
- package/development/skiplink-list/skiplink-list.component.d.ts +3 -1
- package/development/skiplink-list/skiplink-list.component.d.ts.map +1 -1
- package/development/skiplink-list/skiplink-list.component.js +27 -10
- package/development/slider/slider.component.js +15 -9
- package/development/status/status.component.js +7 -7
- package/development/stepper/step/step.component.js +1 -3
- package/development/stepper/step-label/step-label.component.js +7 -6
- package/development/stepper/stepper/stepper.component.js +5 -5
- package/development/tabs/tab-label/tab-label.component.js +7 -14
- package/development/tag/tag/tag.component.js +15 -9
- package/development/teaser/teaser.component.js +3 -2
- package/development/teaser-hero/teaser-hero.component.js +3 -3
- package/development/teaser-product/common.js +1 -1
- package/development/{teaser-product-common-D6fa6x3w.js → teaser-product-common-DvlBRkE_.js} +14 -6
- package/development/teaser-product.js +1 -1
- package/development/time-input/time-input.component.js +2 -2
- package/development/timetable-form/timetable-form/timetable-form.component.d.ts +17 -0
- package/development/timetable-form/timetable-form/timetable-form.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form/timetable-form.component.js +40 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.d.ts +16 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +57 -0
- package/development/timetable-form/timetable-form-details.d.ts +5 -0
- package/development/timetable-form/timetable-form-details.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-details.js +5 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.d.ts +18 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +130 -0
- package/development/timetable-form/timetable-form-field.d.ts +5 -0
- package/development/timetable-form/timetable-form-field.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-field.js +5 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts +23 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +80 -0
- package/development/timetable-form/timetable-form-swap-button.d.ts +5 -0
- package/development/timetable-form/timetable-form-swap-button.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-swap-button.js +5 -0
- package/development/timetable-form/timetable-form.d.ts +5 -0
- package/development/timetable-form/timetable-form.d.ts.map +1 -0
- package/development/timetable-form/timetable-form.js +5 -0
- package/development/timetable-form.d.ts +8 -0
- package/development/timetable-form.d.ts.map +1 -0
- package/development/timetable-form.js +11 -0
- package/development/timetable-occupancy/timetable-occupancy.component.js +2 -2
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts +1 -0
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +4 -3
- package/development/title/title-base.js +2 -5
- package/development/title/title.component.js +1 -1
- package/development/toast/toast.component.d.ts +3 -1
- package/development/toast/toast.component.d.ts.map +1 -1
- package/development/toast/toast.component.js +31 -15
- package/development/toggle/toggle/toggle.component.js +8 -4
- package/development/toggle/toggle-option/toggle-option.component.js +5 -3
- package/development/toggle-check/toggle-check.component.js +13 -14
- package/development/tooltip/tooltip.component.d.ts +89 -0
- package/development/tooltip/tooltip.component.d.ts.map +1 -0
- package/development/tooltip/tooltip.component.js +466 -0
- package/development/tooltip.d.ts +5 -0
- package/development/tooltip.d.ts.map +1 -0
- package/development/tooltip.js +5 -0
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +16 -4
- package/development/train/train-wagon/train-wagon.component.js +4 -13
- package/development/{transparent-button-COe-YB_U.js → transparent-button-DdSaBp_-.js} +141 -86
- package/development/visual-checkbox/visual-checkbox.component.js +12 -12
- package/dialog/dialog/dialog.component.d.ts +1 -0
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +37 -36
- package/dialog/dialog-actions/dialog-actions.component.js +6 -6
- package/dialog/dialog-title/dialog-title.component.js +4 -4
- package/divider/divider.component.js +16 -16
- package/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -3
- package/file-selector/common.js +1 -1
- package/file-selector-common-D88J9PEh.js +5 -0
- package/file-selector.js +1 -1
- package/flip-card/flip-card/flip-card.component.js +14 -14
- package/footer/footer.component.js +18 -18
- package/form-error/form-error.component.js +4 -4
- package/form-field/form-field/form-field.component.d.ts +3 -0
- 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 +9 -9
- package/header/common/header-action-common.js +5 -5
- package/header/header/header.component.js +19 -19
- package/header/header-environment/header-environment.component.js +1 -1
- package/icon-sidebar-button-common-BeRXvifI.js +7 -0
- package/index.d.ts +16 -0
- package/index.js +16 -0
- package/journey-header/journey-header.component.js +1 -1
- package/lead-container/lead-container.component.js +5 -5
- package/link/common/block-link-common.js +23 -23
- package/link/common/inline-link-common.js +7 -7
- package/link-list/link-list/link-list.component.js +8 -8
- package/link-list/link-list-anchor/link-list-anchor.component.js +11 -11
- package/lists.css +5 -3
- package/loading-indicator/loading-indicator.component.js +1 -1
- package/loading-indicator-circle/loading-indicator-circle.component.js +13 -13
- package/logo/logo.component.js +9 -9
- package/map-container/map-container.component.js +15 -15
- package/menu/common/menu-action-common.js +5 -5
- package/menu/menu/menu.component.d.ts +2 -0
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +45 -38
- package/message/message.component.js +9 -9
- package/navigation/common/navigation-action-common.js +6 -6
- package/navigation/navigation/navigation.component.js +19 -19
- package/navigation/navigation-list/navigation-list.component.js +1 -1
- package/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/navigation/navigation-section/navigation-section.component.js +1 -1
- package/notification/notification.component.js +8 -8
- package/off-brand-theme.css +3017 -0
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/option/option.component.js +3 -3
- package/option/option-hint/option-hint.component.js +8 -8
- package/overlay/overlay.component.d.ts.map +1 -1
- package/overlay/overlay.component.js +47 -48
- package/package.json +63 -1
- package/paginator/compact-paginator/compact-paginator.component.js +4 -4
- package/paginator/paginator/paginator.component.js +10 -10
- package/popover/popover/popover.component.js +9 -9
- package/popover/popover-trigger/popover-trigger.component.js +5 -5
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.component.js +13 -13
- package/radio-button/radio-button-panel/radio-button-panel.component.js +2 -2
- package/radio-button-common-Nm9ULjVb.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +3017 -0
- package/screen-reader-only/screen-reader-only.component.js +1 -1
- package/scrollbar.css +52 -20
- package/select/select.component.js +45 -45
- package/selection-action-panel/selection-action-panel.component.js +6 -6
- package/selection-expansion-panel/selection-expansion-panel.component.js +11 -11
- package/sidebar/common.js +1 -1
- package/sidebar/icon-sidebar/icon-sidebar.component.js +12 -12
- package/sidebar/sidebar/sidebar.component.js +29 -29
- package/sidebar.js +1 -1
- package/signet/signet.component.js +1 -1
- package/skiplink-list/skiplink-list.component.d.ts +3 -1
- package/skiplink-list/skiplink-list.component.d.ts.map +1 -1
- package/skiplink-list/skiplink-list.component.js +37 -30
- package/slider/slider.component.js +16 -16
- package/standard-theme.css +436 -86
- package/status/status.component.js +13 -13
- package/stepper/step/step.component.js +5 -5
- package/stepper/step-label/step-label.component.js +1 -1
- package/stepper/stepper/stepper.component.js +7 -7
- package/table.css +15 -9
- package/tabs/tab-label/tab-label.component.js +19 -19
- package/tag/tag/tag.component.js +14 -14
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/teaser-hero.component.js +12 -12
- package/teaser-product/common.js +1 -1
- package/teaser-product-common-DIra6aVg.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.js +1 -1
- package/timetable-form/timetable-form/timetable-form.component.d.ts +17 -0
- package/timetable-form/timetable-form/timetable-form.component.d.ts.map +1 -0
- package/timetable-form/timetable-form/timetable-form.component.js +19 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.d.ts +16 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.d.ts.map +1 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +19 -0
- package/timetable-form/timetable-form-details.d.ts +5 -0
- package/timetable-form/timetable-form-details.d.ts.map +1 -0
- package/timetable-form/timetable-form-details.js +4 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.d.ts +18 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.d.ts.map +1 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +32 -0
- package/timetable-form/timetable-form-field.d.ts +5 -0
- package/timetable-form/timetable-form-field.d.ts.map +1 -0
- package/timetable-form/timetable-form-field.js +4 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts +23 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts.map +1 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +38 -0
- package/timetable-form/timetable-form-swap-button.d.ts +5 -0
- package/timetable-form/timetable-form-swap-button.d.ts.map +1 -0
- package/timetable-form/timetable-form-swap-button.js +4 -0
- package/timetable-form/timetable-form.d.ts +5 -0
- package/timetable-form/timetable-form.d.ts.map +1 -0
- package/timetable-form/timetable-form.js +4 -0
- package/timetable-form.css +73 -0
- package/timetable-form.d.ts +8 -0
- package/timetable-form.d.ts.map +1 -0
- package/timetable-form.js +10 -0
- package/timetable-occupancy/timetable-occupancy.component.js +7 -7
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts +1 -0
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -1
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +23 -23
- package/title/title-base.js +1 -1
- package/title/title.component.js +1 -1
- package/toast/toast.component.d.ts +3 -1
- package/toast/toast.component.d.ts.map +1 -1
- package/toast/toast.component.js +67 -59
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +5 -5
- package/toggle-check/toggle-check.component.js +16 -16
- package/tooltip/tooltip.component.d.ts +89 -0
- package/tooltip/tooltip.component.d.ts.map +1 -0
- package/tooltip/tooltip.component.js +215 -0
- package/tooltip.d.ts +5 -0
- package/tooltip.d.ts.map +1 -0
- package/tooltip.js +4 -0
- package/train/train/train.component.js +1 -1
- package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/train/train-formation/train-formation.component.js +16 -16
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/transparent-button-Bg9fU_iZ.js +9 -0
- package/typography.css +1 -0
- package/visual-checkbox/visual-checkbox.component.js +14 -14
- package/checkbox-common-CDzcyq8p.js +0 -5
- package/file-selector-common-Cn6U8goV.js +0 -5
- package/icon-sidebar-button-common-CM-ueEhH.js +0 -7
- package/radio-button-common-DzALx3X7.js +0 -5
- package/teaser-product-common-C8oSkIxy.js +0 -5
- package/transparent-button-xudJxob_.js +0 -9
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __esDecorate as b, __runInitializers as i } from "tslib";
|
|
2
|
+
import { css as m, LitElement as c, html as n } from "lit";
|
|
3
|
+
import { customElement as u } from "lit/decorators.js";
|
|
4
|
+
const d = m`*,:before,:after{box-sizing:border-box}:host{--sbb-timetable-form-background-color: var(--sbb-background-color-1);--sbb-timetable-form-border-radius: var(--sbb-border-radius-4x);border-radius:var(--sbb-timetable-form-border-radius);background-color:var(--sbb-timetable-form-background-color);display:flex;flex-direction:column}`;
|
|
5
|
+
let y = (() => {
|
|
6
|
+
var t;
|
|
7
|
+
let s = [u("sbb-timetable-form")], a, o = [], e, l = c;
|
|
8
|
+
return t = class extends l {
|
|
9
|
+
render() {
|
|
10
|
+
return n`<slot></slot>`;
|
|
11
|
+
}
|
|
12
|
+
}, e = t, (() => {
|
|
13
|
+
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
14
|
+
b(null, a = { value: e }, s, { kind: "class", name: e.name, metadata: r }, null, o), e = a.value, r && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
15
|
+
})(), t.styles = d, i(e, o), e;
|
|
16
|
+
})();
|
|
17
|
+
export {
|
|
18
|
+
y as SbbTimetableFormElement
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CSSResultGroup, TemplateResult, LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Wraps the details section of the `sbb-timetable-form`.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Use the unnamed slot to add content to the details section.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SbbTimetableFormDetailsElement extends LitElement {
|
|
8
|
+
static styles: CSSResultGroup;
|
|
9
|
+
protected render(): TemplateResult;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'sbb-timetable-form-details': SbbTimetableFormDetailsElement;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=timetable-form-details.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form-details.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/timetable-form/timetable-form-details/timetable-form-details.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,qBAEM,8BAA+B,SAAQ,UAAU;IACrD,OAAuB,MAAM,EAAE,cAAc,CAAS;cAEnC,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,4BAA4B,EAAE,8BAA8B,CAAC;KAC9D;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __esDecorate as b, __runInitializers as o } from "tslib";
|
|
2
|
+
import { css as d, LitElement as n, html as m } from "lit";
|
|
3
|
+
import { customElement as c } from "lit/decorators.js";
|
|
4
|
+
const f = d`*,:before,:after{box-sizing:border-box}:host{--sbb-timetable-form-details-padding-block: var(--sbb-spacing-fixed-1x);--sbb-timetable-form-details-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-timetable-form-details-horizontal-divider-height: 1.5rem;display:flex;flex-wrap:wrap;gap:var(--sbb-spacing-fixed-1x);border-block-start:var(--sbb-border-width-1x) solid var(--sbb-border-color-4-inverted);padding-block:var(--sbb-timetable-form-details-padding-block);padding-inline-start:calc(var(--sbb-size-icon-ui-small) + var(--sbb-spacing-responsive-xxxs));align-items:center}::slotted(sbb-form-field){--sbb-form-field-border-radius: var(--sbb-border-radius-6x);--sbb-form-field-outline-offset: -.3125rem}::slotted(sbb-divider[orientation=vertical]){height:var(--sbb-timetable-form-details-horizontal-divider-height)}::slotted(:last-child){margin-inline-end:var(--sbb-timetable-form-details-padding-inline)}`;
|
|
5
|
+
let g = (() => {
|
|
6
|
+
var t;
|
|
7
|
+
let l = [c("sbb-timetable-form-details")], a, s = [], e, r = n;
|
|
8
|
+
return t = class extends r {
|
|
9
|
+
render() {
|
|
10
|
+
return m`<slot></slot>`;
|
|
11
|
+
}
|
|
12
|
+
}, e = t, (() => {
|
|
13
|
+
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
14
|
+
b(null, a = { value: e }, l, { kind: "class", name: e.name, metadata: i }, null, s), e = a.value, i && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
15
|
+
})(), t.styles = f, o(e, s), e;
|
|
16
|
+
})();
|
|
17
|
+
export {
|
|
18
|
+
g as SbbTimetableFormDetailsElement
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form-details.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-form/timetable-form-details.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8DAA8D,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
|
+
import { SbbFormFieldElement } from '../../form-field/form-field.js';
|
|
3
|
+
/**
|
|
4
|
+
* Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SbbTimetableFormFieldElement extends SbbFormFieldElement {
|
|
7
|
+
static styles: CSSResultGroup;
|
|
8
|
+
private _routeIcon;
|
|
9
|
+
constructor();
|
|
10
|
+
connectedCallback(): void;
|
|
11
|
+
render(): TemplateResult;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'sbb-timetable-form-field': SbbTimetableFormFieldElement;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=timetable-form-field.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form-field.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/timetable-form/timetable-form-field/timetable-form-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE;;GAEG;AACH,qBAEM,4BAA6B,SAAQ,mBAAmB;IAC5D,OAAuB,MAAM,EAAE,cAAc,CAAuC;IAEpF,OAAO,CAAC,UAAU,CAAS;;IAUX,iBAAiB,IAAI,IAAI;IAWzB,MAAM,IAAI,cAAc;CAWzC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0BAA0B,EAAE,4BAA4B,CAAC;KAC1D;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __esDecorate as n, __runInitializers as c } from "tslib";
|
|
2
|
+
import { css as f, isServer as d, html as i } from "lit";
|
|
3
|
+
import { customElement as m } from "lit/decorators.js";
|
|
4
|
+
import { SbbFormFieldElement as l } from "../../form-field/form-field.js";
|
|
5
|
+
const u = f`*,:before,:after{box-sizing:border-box}:host{display:flex;--sbb-form-field-border-radius: var(--sbb-border-radius-6x);--sbb-form-field-outline-offset: -.3125rem;--sbb-timetable-form-field-route-icon-color: var(--sbb-color-2);--sbb-timetable-form-field-route-icon-background-color: var(--sbb-background-color-1)}:host(:first-of-type){--sbb-timetable-form-field-route-icon-rotate: 90deg}:host(:last-of-type){--sbb-timetable-form-field-route-icon-rotate: -90deg;--sbb-timetable-form-field-route-icon-translate: -.0625rem 0}:host(:where(:not(:last-of-type))) .sbb-form-field__wrapper:after{content:"";position:absolute;border-block-end:var(--sbb-border-width-1x) var(--sbb-form-field-border-style) var(--sbb-border-color-4-inverted);inset-inline:var(--sbb-form-field-padding-inline);inset-block-end:0}.sbb-timetable-form-field__start-route-icon{align-self:center;margin-inline-start:var(--sbb-form-field-padding-inline);rotate:var(--sbb-timetable-form-field-route-icon-rotate);translate:var(--sbb-timetable-form-field-route-icon-translate)}.sbb-timetable-form-field__start-route-icon:after{--connecting-line-offset: .1875rem;--connecting-line-width: calc( (var(--sbb-form-field-min-height) - var(--sbb-icon-svg-height)) / 2 + var(--connecting-line-offset) );content:"";position:absolute;inset-block-start:50%;border-block-start:var(--sbb-border-width-1x) solid var(--sbb-timetable-form-field-route-icon-color);width:var(--connecting-line-width);margin-left:calc(var(--connecting-line-offset) * -1)}.sbb-timetable-form-field__via-route-icon{align-self:stretch;position:relative;width:var(--sbb-size-icon-ui-small);margin-inline-start:var(--sbb-form-field-padding-inline)}.sbb-timetable-form-field__via-route-icon:before{content:"";position:absolute;inset-inline-start:50%;height:100%;margin-inline-start:-.0625rem;border-inline-start:var(--sbb-border-width-1x) solid var(--sbb-timetable-form-field-route-icon-color)}.sbb-timetable-form-field__via-route-icon:after{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;translate:-50% -50%;width:.4375rem;height:.4375rem;border:var(--sbb-border-width-1x) solid var(--sbb-timetable-form-field-route-icon-color);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-timetable-form-field-route-icon-background-color);margin-inline-start:-.03125rem}.sbb-form-field__space-wrapper{flex-grow:1}`;
|
|
6
|
+
let g = (() => {
|
|
7
|
+
var t;
|
|
8
|
+
let b = [m("sbb-timetable-form-field")], o, a = [], e, s = l;
|
|
9
|
+
return t = class extends s {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(), this._routeIcon = !1, this.borderless = !0, this.floatingLabel = !0, this.width = "collapse", this.size = "l";
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
super.connectedCallback(), !d && this.hydrationComplete.then(() => this._routeIcon = this.matches(":first-of-type, :last-of-type"));
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return i`
|
|
18
|
+
${this._routeIcon ? i` <sbb-icon
|
|
19
|
+
name="route-circle-start-small"
|
|
20
|
+
class="sbb-timetable-form-field__start-route-icon"
|
|
21
|
+
></sbb-icon>` : i` <span class="sbb-timetable-form-field__via-route-icon"></span> `}
|
|
22
|
+
${super.render()}
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
}, e = t, (() => {
|
|
26
|
+
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
|
|
27
|
+
n(null, o = { value: e }, b, { kind: "class", name: e.name, metadata: r }, null, a), e = o.value, r && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
28
|
+
})(), t.styles = [l.styles, u], c(e, a), e;
|
|
29
|
+
})();
|
|
30
|
+
export {
|
|
31
|
+
g as SbbTimetableFormFieldElement
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form-field.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-form/timetable-form-field.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSResultGroup, PropertyValues } from 'lit';
|
|
2
|
+
import { SbbSecondaryButtonElement } from '../../button/secondary-button.js';
|
|
3
|
+
/**
|
|
4
|
+
* An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.
|
|
5
|
+
* When placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SbbTimetableFormSwapButtonElement extends SbbSecondaryButtonElement {
|
|
8
|
+
static styles: CSSResultGroup;
|
|
9
|
+
private _languageController;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
13
|
+
/**
|
|
14
|
+
* Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events
|
|
15
|
+
*/
|
|
16
|
+
private _invertFieldValues;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'sbb-timetable-form-swap-button': SbbTimetableFormSwapButtonElement;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=timetable-form-swap-button.component.d.ts.map
|
package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form-swap-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAM7E;;;GAGG;AACH,qBAEM,iCAAkC,SAAQ,yBAAyB;IACvE,OAAuB,MAAM,EAAE,cAAc,CAA6C;IAE1F,OAAO,CAAC,mBAAmB,CAAmC;;IAQ9C,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAK5E;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAiB3B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gCAAgC,EAAE,iCAAiC,CAAC;KACrE;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __esDecorate as p, __runInitializers as f } from "tslib";
|
|
2
|
+
import { customElement as d } from "lit/decorators.js";
|
|
3
|
+
import { SbbSecondaryButtonElement as m } from "../../button/secondary-button.js";
|
|
4
|
+
import { SbbLanguageController as v } from "../../core/controllers.js";
|
|
5
|
+
import { i18nTimetableFormSwapButtonLabel as h } from "../../core/i18n.js";
|
|
6
|
+
import { css as w } from "lit";
|
|
7
|
+
const g = w`*,:before,:after{box-sizing:border-box}:host(:is(:state(timetable-form-context),[state--timetable-form-context])){--sbb-timetable-form-swap-button-margin-inline-end: var(--sbb-spacing-fixed-6x);--sbb-timetable-form-swap-button-translate: 0 -50%;--sbb-timetable-form-swap-button-z-index: 1;--sbb-timetable-form-swap-button-position: absolute;position:relative}.sbb-timetable-form-swap-button{position:var(--sbb-timetable-form-swap-button-position, relative);margin-inline-end:var(--sbb-timetable-form-swap-button-margin-inline-end);translate:var(--sbb-timetable-form-swap-button-translate);z-index:var(--sbb-timetable-form-swap-button-z-index);inset-inline-end:0}`;
|
|
8
|
+
let C = (() => {
|
|
9
|
+
var a;
|
|
10
|
+
let u = [d("sbb-timetable-form-swap-button")], l, r = [], e, o = m;
|
|
11
|
+
return a = class extends o {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(), this._languageController = new v(this), this.iconName = "arrow-change-small", this.addEventListener("click", () => this._invertFieldValues());
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback(), this.toggleState("timetable-form-context", !!this.closest("sbb-timetable-form"));
|
|
17
|
+
}
|
|
18
|
+
willUpdate(t) {
|
|
19
|
+
super.willUpdate(t), this.internals.ariaLabel = h[this._languageController.current];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events
|
|
23
|
+
*/
|
|
24
|
+
_invertFieldValues() {
|
|
25
|
+
const t = this.closest("sbb-timetable-form"), b = Array.from(t?.querySelectorAll("sbb-timetable-form-field") || []), i = b.map((n) => n.inputElement?.value);
|
|
26
|
+
!t || i.length === 0 || i.every((n) => !n) || i.reverse().forEach((n, c) => {
|
|
27
|
+
const s = b[c].inputElement;
|
|
28
|
+
s instanceof HTMLInputElement && (s.value = n, s.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), s.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}, e = a, (() => {
|
|
32
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
33
|
+
p(null, l = { value: e }, u, { kind: "class", name: e.name, metadata: t }, null, r), e = l.value, t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
34
|
+
})(), a.styles = [m.styles, g], f(e, r), e;
|
|
35
|
+
})();
|
|
36
|
+
export {
|
|
37
|
+
C as SbbTimetableFormSwapButtonElement
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form-swap-button.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-form/timetable-form-swap-button.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,sEAAsE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-form/timetable-form.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.sbb-timetable-form {
|
|
2
|
+
--sbb-timetable-form-content-max-width: 46.25rem;
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
column-gap: var(--sbb-spacing-fixed-3x);
|
|
7
|
+
border-radius: var(--sbb-border-radius-4x);
|
|
8
|
+
padding-block: var(--sbb-spacing-fixed-10x) var(--sbb-spacing-responsive-l);
|
|
9
|
+
padding-inline: var(--sbb-spacing-fixed-5x);
|
|
10
|
+
background: linear-gradient(to bottom, var(--sbb-color-primary) 0 11.125rem, var(--sbb-background-color-3) 11.125rem 100%);
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: calc(63.9375rem)) {
|
|
13
|
+
.sbb-timetable-form:has(sbb-signet) {
|
|
14
|
+
padding-block-start: var(--sbb-spacing-fixed-4x);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.sbb-timetable-form sbb-signet {
|
|
18
|
+
width: var(--sbb-spacing-fixed-16x);
|
|
19
|
+
align-self: end;
|
|
20
|
+
margin-block-end: var(--sbb-spacing-fixed-2x);
|
|
21
|
+
margin-inline: 0;
|
|
22
|
+
}
|
|
23
|
+
@media (min-width: calc(64rem)) {
|
|
24
|
+
.sbb-timetable-form sbb-signet {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset-block-start: var(--sbb-spacing-fixed-6x);
|
|
27
|
+
inset-inline-end: var(--sbb-spacing-fixed-6x);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.sbb-timetable-form > * {
|
|
31
|
+
margin-inline: auto;
|
|
32
|
+
max-width: var(--sbb-timetable-form-content-max-width);
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
sbb-timetable-form sbb-date-input {
|
|
37
|
+
min-width: 8.3125rem;
|
|
38
|
+
}
|
|
39
|
+
sbb-timetable-form .sbb-timetable-form-block {
|
|
40
|
+
--sbb-form-field-focus-underline-z-index: 1;
|
|
41
|
+
width: 100%;
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
|
44
|
+
sbb-timetable-form .sbb-timetable-form-block::after {
|
|
45
|
+
content: "";
|
|
46
|
+
position: absolute;
|
|
47
|
+
border-block-end: var(--sbb-border-width-1x) solid var(--sbb-border-color-4-inverted);
|
|
48
|
+
inset-inline: var(--sbb-form-field-padding-inline);
|
|
49
|
+
inset-block-end: 0;
|
|
50
|
+
}
|
|
51
|
+
sbb-timetable-form .sbb-timetable-form-block sbb-datepicker-toggle {
|
|
52
|
+
margin-inline-end: var(--sbb-spacing-fixed-6x);
|
|
53
|
+
}
|
|
54
|
+
@media (max-width: calc(37.4375rem)) {
|
|
55
|
+
sbb-timetable-form .sbb-timetable-form-mobile-block {
|
|
56
|
+
--sbb-form-field-focus-underline-z-index: 1;
|
|
57
|
+
width: 100%;
|
|
58
|
+
position: relative;
|
|
59
|
+
}
|
|
60
|
+
sbb-timetable-form .sbb-timetable-form-mobile-block::after {
|
|
61
|
+
content: "";
|
|
62
|
+
position: absolute;
|
|
63
|
+
border-block-end: var(--sbb-border-width-1x) solid var(--sbb-border-color-4-inverted);
|
|
64
|
+
inset-inline: var(--sbb-form-field-padding-inline);
|
|
65
|
+
inset-block-end: 0;
|
|
66
|
+
}
|
|
67
|
+
sbb-timetable-form .sbb-timetable-form-mobile-block sbb-datepicker-toggle {
|
|
68
|
+
margin-inline-end: var(--sbb-spacing-fixed-6x);
|
|
69
|
+
}
|
|
70
|
+
sbb-timetable-form .sbb-timetable-form-mobile-hidden {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @entrypoint
|
|
3
|
+
*/
|
|
4
|
+
export * from './timetable-form/timetable-form.js';
|
|
5
|
+
export * from './timetable-form/timetable-form-details.js';
|
|
6
|
+
export * from './timetable-form/timetable-form-field.js';
|
|
7
|
+
export * from './timetable-form/timetable-form-swap-button.js';
|
|
8
|
+
//# sourceMappingURL=timetable-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timetable-form.d.ts","sourceRoot":"","sources":["../../src/elements/timetable-form.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SbbTimetableFormElement as t } from "./timetable-form/timetable-form/timetable-form.component.js";
|
|
2
|
+
import { SbbTimetableFormDetailsElement as b } from "./timetable-form/timetable-form-details/timetable-form-details.component.js";
|
|
3
|
+
import { SbbTimetableFormFieldElement as l } from "./timetable-form/timetable-form-field/timetable-form-field.component.js";
|
|
4
|
+
import { SbbTimetableFormSwapButtonElement as i } from "./timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js";
|
|
5
|
+
export {
|
|
6
|
+
b as SbbTimetableFormDetailsElement,
|
|
7
|
+
t as SbbTimetableFormElement,
|
|
8
|
+
l as SbbTimetableFormFieldElement,
|
|
9
|
+
i as SbbTimetableFormSwapButtonElement
|
|
10
|
+
};
|
|
@@ -4,18 +4,18 @@ var x = (s) => {
|
|
|
4
4
|
var z = (s, t, a) => t.has(s) || x("Cannot " + a);
|
|
5
5
|
var u = (s, t, a) => (z(s, t, "read from private field"), a ? a.call(s) : t.get(s)), m = (s, t, a) => t.has(s) ? x("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, a), o = (s, t, a, i) => (z(s, t, "write to private field"), i ? i.call(s, a) : t.set(s, a), a);
|
|
6
6
|
import { __runInitializers as b, __esDecorate as y } from "tslib";
|
|
7
|
-
import { css as S, LitElement as $, nothing as k, html as
|
|
7
|
+
import { css as S, LitElement as $, nothing as k, html as f } from "lit";
|
|
8
8
|
import { customElement as E, property as w } from "lit/decorators.js";
|
|
9
9
|
import { SbbLanguageController as I } from "../core/controllers.js";
|
|
10
10
|
import { i18nClass as D } from "../core/i18n.js";
|
|
11
11
|
import { SbbNegativeMixin as j } from "../core/mixins.js";
|
|
12
12
|
import "../screen-reader-only.js";
|
|
13
13
|
import "../timetable-occupancy-icon.js";
|
|
14
|
-
const L = S`*,:before,:after{box-sizing:border-box}:host{display:inline-block;--sbb-timetable-occupancy-color: var(--sbb-color-
|
|
14
|
+
const L = S`*,:before,:after{box-sizing:border-box}:host{display:inline-block;--sbb-timetable-occupancy-color: var(--sbb-color-2);--sbb-icon-svg-width: .890625rem;--sbb-icon-svg-height: v0.75rem}@media (min-width: 52.5rem){:host{--sbb-icon-svg-width: 1.1875rem;--sbb-icon-svg-height: v1rem}}:host([negative]){--sbb-timetable-occupancy-color: var(--sbb-color-2-negative)}.sbb-timetable-occupancy__list{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-2x)}.sbb-timetable-occupancy__list-item{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-1x)}.sbb-timetable-occupancy__list-item-class{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);line-height:1;color:var(--sbb-timetable-occupancy-color)}.sbb-timetable-occupancy__list-item-icon{display:flex}`;
|
|
15
15
|
let J = (() => {
|
|
16
16
|
var l, r, n;
|
|
17
|
-
let s = [E("sbb-timetable-occupancy")], t, a = [], i,
|
|
18
|
-
return n = class extends
|
|
17
|
+
let s = [E("sbb-timetable-occupancy")], t, a = [], i, h = j($), d, _ = [], g = [], O, C = [], v = [];
|
|
18
|
+
return n = class extends h {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
m(this, l);
|
|
@@ -37,12 +37,12 @@ let J = (() => {
|
|
|
37
37
|
o(this, r, c);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return
|
|
40
|
+
return f` ${(this.firstClassOccupancy || this.secondClassOccupancy) && f`
|
|
41
41
|
<ul
|
|
42
42
|
class="sbb-timetable-occupancy__list"
|
|
43
43
|
role=${!this.firstClassOccupancy || !this.secondClassOccupancy ? "presentation" : k}
|
|
44
44
|
>
|
|
45
|
-
${[this.firstClassOccupancy, this.secondClassOccupancy].map((c, e) => c &&
|
|
45
|
+
${[this.firstClassOccupancy, this.secondClassOccupancy].map((c, e) => c && f`
|
|
46
46
|
<li class="sbb-timetable-occupancy__list-item">
|
|
47
47
|
<span class="sbb-timetable-occupancy__list-item-class" aria-hidden="true">
|
|
48
48
|
${this.firstClassOccupancy && e === 0 ? "1" : "2"}.
|
|
@@ -62,7 +62,7 @@ let J = (() => {
|
|
|
62
62
|
`}`;
|
|
63
63
|
}
|
|
64
64
|
}, l = new WeakMap(), r = new WeakMap(), i = n, (() => {
|
|
65
|
-
const c = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
65
|
+
const c = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
|
|
66
66
|
d = [w({ attribute: "first-class-occupancy" })], O = [w({ attribute: "second-class-occupancy" })], y(n, null, d, { kind: "accessor", name: "firstClassOccupancy", static: !1, private: !1, access: { has: (e) => "firstClassOccupancy" in e, get: (e) => e.firstClassOccupancy, set: (e, p) => {
|
|
67
67
|
e.firstClassOccupancy = p;
|
|
68
68
|
} }, metadata: c }, _, g), y(n, null, O, { kind: "accessor", name: "secondClassOccupancy", static: !1, private: !1, access: { has: (e) => "secondClassOccupancy" in e, get: (e) => e.secondClassOccupancy, set: (e, p) => {
|
|
@@ -11,6 +11,7 @@ export declare class SbbTimetableOccupancyIconElement extends SbbTimetableOccupa
|
|
|
11
11
|
accessor occupancy: SbbOccupancy;
|
|
12
12
|
private _language;
|
|
13
13
|
private _mediaMatcher;
|
|
14
|
+
private _darkModeController;
|
|
14
15
|
private _forcedColors;
|
|
15
16
|
private _setNameAndAriaLabel;
|
|
16
17
|
protected fetchSvgIcon(namespace: string, name: string): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timetable-occupancy-icon.component.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-occupancy-icon/timetable-occupancy-icon.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"timetable-occupancy-icon.component.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-occupancy-icon/timetable-occupancy-icon.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAU1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;;AAIzC;;GAEG;AACH,qBAEM,gCAAiC,SAAQ,qCAA6B;IAC1E,OAAuB,MAAM,EAAE,cAAc,CAA+B;IAE5E,uBAAuB;IACvB,SAA4B,SAAS,EAAE,YAAY,CAAU;IAE7D,OAAO,CAAC,SAAS,CAA2E;IAC5F,OAAO,CAAC,aAAa,CAKlB;IACH,OAAO,CAAC,mBAAmB,CAAsE;IAEjG,OAAO,CAAC,aAAa,CAA2E;YAElF,oBAAoB;cAeT,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKvF,OAAO,CAAC,aAAa;IAML,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAO7E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,8BAA8B,EAAE,gCAAgC,CAAC;KAClE;CACF"}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import { customElement as A, property as
|
|
8
|
-
import { SbbLanguageController as
|
|
9
|
-
import { i18nOccupancy as
|
|
10
|
-
import { SbbNegativeMixin as
|
|
4
|
+
var p = (t, a, s) => a.has(t) || d("Cannot " + s);
|
|
5
|
+
var _ = (t, a, s) => (p(t, a, "read from private field"), s ? s.call(t) : a.get(t)), y = (t, a, s) => a.has(t) ? d("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, s), l = (t, a, s, c) => (p(t, a, "write to private field"), c ? c.call(t, s) : a.set(t, s), s);
|
|
6
|
+
import { __runInitializers as n, __esDecorate as f } from "tslib";
|
|
7
|
+
import { customElement as A, property as C } from "lit/decorators.js";
|
|
8
|
+
import { SbbLanguageController as L, SbbMediaMatcherController as M, SbbMediaQueryForcedColors as g, SbbDarkModeController as w } from "../core/controllers.js";
|
|
9
|
+
import { i18nOccupancy as I } from "../core/i18n.js";
|
|
10
|
+
import { SbbNegativeMixin as k } from "../core/mixins.js";
|
|
11
11
|
import { SbbIconBase as v } from "../icon.js";
|
|
12
|
-
import { css as
|
|
13
|
-
const
|
|
14
|
-
let
|
|
12
|
+
import { css as N } from "lit";
|
|
13
|
+
const x = N`@media (forced-colors: active) and (prefers-color-scheme: light){:host svg{filter:invert(1)}}`;
|
|
14
|
+
let H = (() => {
|
|
15
15
|
var o, i;
|
|
16
|
-
let t = [A("sbb-timetable-occupancy-icon")], a,
|
|
16
|
+
let t = [A("sbb-timetable-occupancy-icon")], a, s = [], c, u = k(v), h, m = [], b = [];
|
|
17
17
|
return i = class extends u {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
y(this, o);
|
|
21
|
-
|
|
21
|
+
l(this, o, n(this, m, "none")), this._language = (n(this, b), new L(this).withHandler(() => this._setAriaLabel())), this._mediaMatcher = new M(this, {
|
|
22
22
|
[g]: (e) => {
|
|
23
23
|
this._forcedColors = e, this._setNameAndAriaLabel();
|
|
24
24
|
}
|
|
25
|
-
}), this._forcedColors = this._mediaMatcher.matches(g) ?? !1;
|
|
25
|
+
}), this._darkModeController = new w(this, () => this._setNameAndAriaLabel()), this._forcedColors = this._mediaMatcher.matches(g) ?? !1;
|
|
26
26
|
}
|
|
27
27
|
/** Wagon occupancy. */
|
|
28
28
|
get occupancy() {
|
|
29
|
-
return
|
|
29
|
+
return _(this, o);
|
|
30
30
|
}
|
|
31
31
|
set occupancy(e) {
|
|
32
|
-
|
|
32
|
+
l(this, o, e);
|
|
33
33
|
}
|
|
34
34
|
async _setNameAndAriaLabel() {
|
|
35
35
|
if (!this.occupancy)
|
|
36
36
|
return;
|
|
37
37
|
let e = `utilization-${this.occupancy}`;
|
|
38
|
-
this._forcedColors ? e += "-high-contrast" : this.negative && (e += "-negative"), await this.loadSvgIcon(e);
|
|
38
|
+
this._forcedColors ? e += "-high-contrast" : (this.negative || this._darkModeController.matches()) && (e += "-negative"), await this.loadSvgIcon(e);
|
|
39
39
|
}
|
|
40
40
|
async fetchSvgIcon(e, r) {
|
|
41
41
|
return this._setAriaLabel(), super.fetchSvgIcon(e, r);
|
|
42
42
|
}
|
|
43
43
|
_setAriaLabel() {
|
|
44
|
-
this.internals.ariaLabel =
|
|
44
|
+
this.internals.ariaLabel = I[this.occupancy]?.[this._language.current];
|
|
45
45
|
}
|
|
46
46
|
connectedCallback() {
|
|
47
47
|
super.connectedCallback(), this._setNameAndAriaLabel();
|
|
@@ -49,13 +49,13 @@ let F = (() => {
|
|
|
49
49
|
willUpdate(e) {
|
|
50
50
|
super.willUpdate(e), (e.has("occupancy") || e.has("negative")) && this._setNameAndAriaLabel();
|
|
51
51
|
}
|
|
52
|
-
}, o = new WeakMap(),
|
|
52
|
+
}, o = new WeakMap(), c = i, (() => {
|
|
53
53
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
|
|
54
|
-
|
|
54
|
+
h = [C()], f(i, null, h, { kind: "accessor", name: "occupancy", static: !1, private: !1, access: { has: (r) => "occupancy" in r, get: (r) => r.occupancy, set: (r, S) => {
|
|
55
55
|
r.occupancy = S;
|
|
56
|
-
} }, metadata: e },
|
|
57
|
-
})(), i.styles = [v.styles,
|
|
56
|
+
} }, metadata: e }, m, b), f(null, a = { value: c }, t, { kind: "class", name: c.name, metadata: e }, null, s), c = a.value, e && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
57
|
+
})(), i.styles = [v.styles, x], n(c, s), c;
|
|
58
58
|
})();
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
H as SbbTimetableOccupancyIconElement
|
|
61
61
|
};
|
package/title/title-base.js
CHANGED
|
@@ -8,7 +8,7 @@ import { css as _, LitElement as x } from "lit";
|
|
|
8
8
|
import { property as y } from "lit/decorators.js";
|
|
9
9
|
import { html as L } from "lit/static-html.js";
|
|
10
10
|
import { SbbElementInternalsMixin as w } from "../core/mixins.js";
|
|
11
|
-
const k = _`*,:before,:after{box-sizing:border-box}:host{margin-block:var(--sbb-title-margin-block-start, 0) var(--sbb-title-margin-block-end, 0);margin-inline:0;font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height, var(--sbb-typo-line-height-titles));letter-spacing:var(--sbb-typo-letter-spacing-titles);font-size:var(--sbb-title-font-size);--sbb-title-text-color-normal: var(
|
|
11
|
+
const k = _`*,:before,:after{box-sizing:border-box}:host{margin-block:var(--sbb-title-margin-block-start, 0) var(--sbb-title-margin-block-end, 0);margin-inline:0;font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height, var(--sbb-typo-line-height-titles));letter-spacing:var(--sbb-typo-letter-spacing-titles);font-size:var(--sbb-title-font-size);--sbb-title-text-color-normal: var(--sbb-title-text-color-normal-override, var(--sbb-color-3));display:block;color:var(--sbb-title-text-color-normal)}:host([id]){scroll-margin-block-start:var(--sbb-spacing-fixed-10x)}:host(:where([level="1"]:not([visual-level]),[visual-level="1"])){--sbb-title-font-size: var(--sbb-title-font-size-level-1)}:host(:where([level="2"]:not([visual-level]),[visual-level="2"])){--sbb-title-font-size: var(--sbb-title-font-size-level-2)}:host(:where([level="3"]:not([visual-level]),[visual-level="3"])){--sbb-title-font-size: var(--sbb-title-font-size-level-3)}:host(:where([level="4"]:not([visual-level]),[visual-level="4"])){--sbb-title-font-size: var(--sbb-title-font-size-level-4)}:host(:where([level="5"]:not([visual-level]),[visual-level="5"])){--sbb-title-font-size: var(--sbb-title-font-size-level-5)}:host(:where([level="6"]:not([visual-level]),[visual-level="6"])){--sbb-title-font-size: var(--sbb-title-font-size-level-6);--sbb-title-line-height: var(--sbb-typo-line-height-body-text)}`;
|
|
12
12
|
let M = (() => {
|
|
13
13
|
var o, v, a;
|
|
14
14
|
let e = w(x), t, l = [], r = [], f, m = [], p = [];
|
package/title/title.component.js
CHANGED
|
@@ -8,7 +8,7 @@ import { customElement as y, property as L } from "lit/decorators.js";
|
|
|
8
8
|
import { SbbNegativeMixin as S } from "../core/mixins.js";
|
|
9
9
|
import { SbbTitleBase as _ } from "./title-base.js";
|
|
10
10
|
import { css as w } from "lit";
|
|
11
|
-
const x = w`:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-
|
|
11
|
+
const x = w`:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-3-negative)}:host(:where([level="1"]:not([visual-level]),[visual-level="1"])){--sbb-title-margin-block-start: var(--sbb-title-margin-block-start-level-1);--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-1)}:host(:where([level="2"]:not([visual-level]),[visual-level="2"])){--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-2)}:host(:where([level="3"]:not([visual-level]),[visual-level="3"])){--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-3)}:host(:where([level="4"]:not([visual-level]),[visual-level="4"])){--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-4)}:host(:where([level="5"]:not([visual-level]),[visual-level="5"])){--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-5)}:host(:where([level="6"]:not([visual-level]),[visual-level="6"])){--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-6)}`;
|
|
12
12
|
let B = (() => {
|
|
13
13
|
var r, s;
|
|
14
14
|
let e = [y("sbb-title")], l, t = [], a, o = S(_), n, c = [], m = [];
|
|
@@ -31,6 +31,7 @@ export declare class SbbToastElement extends SbbToastElement_base {
|
|
|
31
31
|
accessor politeness: 'polite' | 'assertive' | 'off';
|
|
32
32
|
private _closeTimeout?;
|
|
33
33
|
private _language;
|
|
34
|
+
private _darkModeController;
|
|
34
35
|
constructor();
|
|
35
36
|
connectedCallback(): void;
|
|
36
37
|
disconnectedCallback(): void;
|
|
@@ -54,12 +55,13 @@ export declare class SbbToastElement extends SbbToastElement_base {
|
|
|
54
55
|
* we wrap the whole content in a <span> tag
|
|
55
56
|
*/
|
|
56
57
|
private _onContentSlotChange;
|
|
57
|
-
private
|
|
58
|
+
private _syncSlottedElements;
|
|
58
59
|
private _onToastAnimationEnd;
|
|
59
60
|
/**
|
|
60
61
|
* Since we do not stack toasts, we force the closing on other existing opened ones
|
|
61
62
|
*/
|
|
62
63
|
private _closeOtherToasts;
|
|
64
|
+
private _isLightMode;
|
|
63
65
|
protected render(): TemplateResult;
|
|
64
66
|
}
|
|
65
67
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../../src/elements/toast/toast.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAYnE,OAAO,iCAAiC,CAAC;AACzC,OAAO,eAAe,CAAC;AAEvB,KAAK,wBAAwB,GAAG,KAAK,GAAG,QAAQ,CAAC;AACjD,KAAK,0BAA0B,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,GAAG,wBAAwB,IAAI,0BAA0B,EAAE,CAAC;;AAK3F;;;;;;;;;GASG;AACH,qBAEM,eAAgB,SAAQ,oBAE7B;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,SAEgB,OAAO,EAAE,MAAM,CAAK;IAEpC,6CAA6C;IAC7C,SAA6C,QAAQ,EAAE,gBAAgB,CAAmB;IAE1F;;;OAGG;IACH,SAA4B,UAAU,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAY;IAElF,OAAO,CAAC,aAAa,CAAC,CAAgC;IACtD,OAAO,CAAC,SAAS,CAAmC;;
|
|
1
|
+
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../../src/elements/toast/toast.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAYnE,OAAO,iCAAiC,CAAC;AACzC,OAAO,eAAe,CAAC;AAEvB,KAAK,wBAAwB,GAAG,KAAK,GAAG,QAAQ,CAAC;AACjD,KAAK,0BAA0B,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,GAAG,wBAAwB,IAAI,0BAA0B,EAAE,CAAC;;AAK3F;;;;;;;;;GASG;AACH,qBAEM,eAAgB,SAAQ,oBAE7B;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,SAEgB,OAAO,EAAE,MAAM,CAAK;IAEpC,6CAA6C;IAC7C,SAA6C,QAAQ,EAAE,gBAAgB,CAAmB;IAE1F;;;OAGG;IACH,SAA4B,UAAU,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAY;IAElF,OAAO,CAAC,aAAa,CAAC,CAAgC;IACtD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,mBAAmB,CAGxB;;IAOa,iBAAiB,IAAI,IAAI;IAQzB,oBAAoB,IAAI,IAAI;cAQzB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E;;;OAGG;IACI,IAAI,IAAI,IAAI;IAgBnB;;OAEG;IACI,KAAK,IAAI,IAAI;IAepB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,wBAAwB;IAIhC;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,oBAAoB;IAmB5B,OAAO,CAAC,oBAAoB;IAS5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,YAAY;cAID,MAAM,IAAI,cAAc;CAgC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
|