@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 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-list.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/carousel/carousel-list/carousel-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAcvC;;;;GAIG;AACH,qBAEM,sBAAuB,SAAQ,2BAAoC;IACvE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,SAAS,CAAmC;IAEpD,OAAO,CAAC,mBAAmB,CAexB;IAEH,OAAO,CAAC,aAAa,CAuBlB;;IAQH,8BAA8B;IAC9B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,UAAU;IAsBF,iBAAiB,IAAI,IAAI;IAOzB,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;cASnD,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { __esDecorate as h, __runInitializers as d } from "tslib";
|
|
2
|
+
import { IntersectionController as u } from "@lit-labs/observers/intersection-controller.js";
|
|
3
|
+
import { css as f, LitElement as m, html as _ } from "lit";
|
|
4
|
+
import { customElement as g } from "lit/decorators.js";
|
|
5
|
+
import { isArrowKeyPressed as p } from "../../core/a11y.js";
|
|
6
|
+
import { SbbLanguageController as v } from "../../core/controllers.js";
|
|
7
|
+
import { i18nCarouselItemAriaLabel as w } from "../../core/i18n.js";
|
|
8
|
+
import { SbbElementInternalsMixin as y } from "../../core/mixins.js";
|
|
9
|
+
const x = f`*,:before,:after{box-sizing:border-box}:host{--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);display:flex;height:var(--sbb-carousel-list-height);width:var(--sbb-carousel-list-width);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;outline:none;border-radius:var(--sbb-carousel-inherit-border-radius)}:host(:focus-visible):before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);content:"";position:absolute;height:var(--sbb-carousel-list-height);width:var(--sbb-carousel-list-width);border-start-start-radius:var(--sbb-carousel-list-border-radius);border-start-end-radius:var(--sbb-carousel-list-border-radius);border-end-start-radius:var(--sbb-carousel-inherit-border-radius);border-end-end-radius:var(--sbb-carousel-inherit-border-radius)}`;
|
|
10
|
+
let O = (() => {
|
|
11
|
+
var i;
|
|
12
|
+
let b = [g("sbb-carousel-list")], n, l = [], o, c = y(m);
|
|
13
|
+
return i = class extends c {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(), this._currentIndex = 0, this._language = new v(this), this._beforeShowObserver = new u(this, {
|
|
16
|
+
callback: (e) => {
|
|
17
|
+
e.filter((t) => t.isIntersecting && t.target !== this).forEach((t) => {
|
|
18
|
+
const s = t.target;
|
|
19
|
+
s.dispatchEvent(new CustomEvent("beforeshow", {
|
|
20
|
+
detail: { index: this._carouselItems().findIndex((a) => a === s) },
|
|
21
|
+
bubbles: !0,
|
|
22
|
+
composed: !0
|
|
23
|
+
}));
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
config: { threshold: 0.01, root: this, rootMargin: "100% 0% 100% 0%" }
|
|
27
|
+
}), this._showObserver = new u(this, {
|
|
28
|
+
callback: (e) => {
|
|
29
|
+
for (const r of e) {
|
|
30
|
+
if (r.target === this)
|
|
31
|
+
continue;
|
|
32
|
+
const t = r.target;
|
|
33
|
+
r.isIntersecting ? (t.ariaHidden = null, this._currentIndex = this._carouselItems().findIndex((s) => s === t), t.dispatchEvent(new CustomEvent("show", {
|
|
34
|
+
detail: { index: this._currentIndex },
|
|
35
|
+
bubbles: !0,
|
|
36
|
+
composed: !0
|
|
37
|
+
}))) : t.ariaHidden = "true";
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
config: { threshold: 0.99, root: this, rootMargin: "100% 0% 100% 0%" }
|
|
41
|
+
}), this.addEventListener?.("keydown", (e) => this._onKeyDown(e));
|
|
42
|
+
}
|
|
43
|
+
/** Gets the slotted items. */
|
|
44
|
+
_carouselItems() {
|
|
45
|
+
return Array.from(this.querySelectorAll?.("sbb-carousel-item") ?? []);
|
|
46
|
+
}
|
|
47
|
+
_handleSlotchange() {
|
|
48
|
+
const e = Array.from(this.children), r = e.length;
|
|
49
|
+
e.forEach((s, a) => {
|
|
50
|
+
s.ariaLabel ||= w(a + 1, r)[this._language.current], s.ariaHidden = a === this._currentIndex ? null : "true";
|
|
51
|
+
});
|
|
52
|
+
const t = e.find((s) => s.localName === "sbb-carousel-item");
|
|
53
|
+
t && (this.style.setProperty("--sbb-carousel-list-height", `${t.clientHeight}px`), this.style.setProperty("--sbb-carousel-list-width", `${t.clientWidth}px`));
|
|
54
|
+
}
|
|
55
|
+
_onKeyDown(e) {
|
|
56
|
+
if (!p(e))
|
|
57
|
+
return;
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
let r = this._currentIndex;
|
|
60
|
+
const t = e.key === "ArrowUp" || e.key === "ArrowLeft", s = e.key === "ArrowDown" || e.key === "ArrowRight";
|
|
61
|
+
t ? r = Math.max(0, this._currentIndex - 1) : s && (r = Math.min(this._carouselItems().length - 1, this._currentIndex + 1)), r !== this._currentIndex && (this._currentIndex = r, this.scrollTo({ left: this._carouselItems()[this._currentIndex].offsetLeft }));
|
|
62
|
+
}
|
|
63
|
+
connectedCallback() {
|
|
64
|
+
super.connectedCallback(), this.internals.ariaLive = "polite", this.internals.ariaAtomic = "true";
|
|
65
|
+
}
|
|
66
|
+
firstUpdated(e) {
|
|
67
|
+
super.firstUpdated(e), this.querySelectorAll("sbb-carousel-item").forEach((r) => {
|
|
68
|
+
this._beforeShowObserver.observe(r), this._showObserver.observe(r);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
return _`<slot @slotchange=${this._handleSlotchange}></slot>`;
|
|
73
|
+
}
|
|
74
|
+
}, o = i, (() => {
|
|
75
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
76
|
+
h(null, n = { value: o }, b, { kind: "class", name: o.name, metadata: e }, null, l), o = n.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
77
|
+
})(), i.styles = x, d(o, l), o;
|
|
78
|
+
})();
|
|
79
|
+
export {
|
|
80
|
+
O as SbbCarouselListElement
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-list.d.ts","sourceRoot":"","sources":["../../../src/elements/carousel/carousel-list.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,4CAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/elements/carousel/carousel.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kCAAkC,CAAC"}
|
package/carousel.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/elements/carousel.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
package/carousel.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SbbCarouselElement as r } from "./carousel/carousel/carousel.component.js";
|
|
2
|
+
import { SbbCarouselItemElement as m } from "./carousel/carousel-item/carousel-item.component.js";
|
|
3
|
+
import { SbbCarouselListElement as l } from "./carousel/carousel-list/carousel-list.component.js";
|
|
4
|
+
export {
|
|
5
|
+
r as SbbCarouselElement,
|
|
6
|
+
m as SbbCarouselItemElement,
|
|
7
|
+
l as SbbCarouselListElement
|
|
8
|
+
};
|
package/checkbox/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbCheckboxCommonElementMixin as m } from "./common/checkbox-common.js";
|
|
2
|
-
import { c as b } from "../checkbox-common-
|
|
2
|
+
import { c as b } from "../checkbox-common-gjHkSAmN.js";
|
|
3
3
|
export {
|
|
4
4
|
m as SbbCheckboxCommonElementMixin,
|
|
5
5
|
b as checkboxCommonStyle
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
const t = e`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{--sbb-checkbox-dimension: var(--sbb-size-icon-ui-small);--sbb-checkbox-label-color: var(--sbb-color-color-3);--sbb-checkbox-label-icon-color: var(--sbb-checkbox-label-color);--sbb-checkbox-cursor: pointer}:host(:disabled){--sbb-checkbox-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{--sbb-text-font-size: var(--sbb-font-size-text-m);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);position:relative;display:block;width:100%;cursor:var(--sbb-checkbox-cursor);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([size=s]) .sbb-checkbox{--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)}:host([size=xs]) .sbb-checkbox{--sbb-text-font-size: var(--sbb-font-size-text-xs);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)}.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-body-text),var(--sbb-checkbox-dimension))}.sbb-checkbox__aligner{display:flex;align-items:center;height:calc(1em * var(--sbb-typo-line-height-body-text))}`;
|
|
3
|
+
export {
|
|
4
|
+
t as c
|
|
5
|
+
};
|
package/checkbox.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SbbCheckboxElement as b } from "./checkbox/checkbox/checkbox.component.
|
|
|
2
2
|
import { SbbCheckboxGroupElement as r } from "./checkbox/checkbox-group/checkbox-group.component.js";
|
|
3
3
|
import { SbbCheckboxPanelElement as t } from "./checkbox/checkbox-panel/checkbox-panel.component.js";
|
|
4
4
|
import { SbbCheckboxCommonElementMixin as c } from "./checkbox/common/checkbox-common.js";
|
|
5
|
-
import { c as p } from "./checkbox-common-
|
|
5
|
+
import { c as p } from "./checkbox-common-gjHkSAmN.js";
|
|
6
6
|
export {
|
|
7
7
|
c as SbbCheckboxCommonElementMixin,
|
|
8
8
|
b as SbbCheckboxElement,
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as c, __esDecorate as
|
|
7
|
-
import { css as x, LitElement as y, html as
|
|
8
|
-
import { customElement as
|
|
4
|
+
var p = (e, r, b) => r.has(e) || v("Cannot " + b);
|
|
5
|
+
var g = (e, r, b) => (p(e, r, "read from private field"), b ? b.call(e) : r.get(e)), m = (e, r, b) => r.has(e) ? v("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, b), l = (e, r, b, i) => (p(e, r, "write to private field"), i ? i.call(e, b) : r.set(e, b), b);
|
|
6
|
+
import { __runInitializers as c, __esDecorate as f } from "tslib";
|
|
7
|
+
import { css as x, LitElement as y, html as k } from "lit";
|
|
8
|
+
import { customElement as w, property as S } from "lit/decorators.js";
|
|
9
9
|
import { SbbLanguageController as z } from "../../core/controllers.js";
|
|
10
10
|
import { i18nChipDelete as D } from "../../core/i18n.js";
|
|
11
11
|
import { SbbNegativeMixin as E, SbbDisabledMixin as C, SbbReadonlyMixin as q, SbbElementInternalsMixin as B } from "../../core/mixins.js";
|
|
12
12
|
import "../../button/mini-button.js";
|
|
13
13
|
import "../../screen-reader-only.js";
|
|
14
|
-
const I = x`*,:before,:after{box-sizing:border-box}:host{--sbb-chip-background-color: var(--sbb-color-
|
|
14
|
+
const I = x`*,:before,:after{box-sizing:border-box}:host{--sbb-chip-background-color: var(--sbb-background-color-3);--sbb-chip-border: var(--sbb-border-width-1x) solid var(--sbb-chip-border-color);--sbb-chip-border-color: var(--sbb-border-color-4-inverted);--sbb-chip-border-radius: var(--sbb-border-radius-2x);--sbb-chip-color: var(--sbb-color-granite);--sbb-chip-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-color-active: var(--sbb-color-2);--sbb-chip-color-hover: var(--sbb-color-2);--sbb-chip-background-color-active: var(--sbb-background-color-1);--sbb-chip-background-color-hover: var(--sbb-background-color-1);--sbb-chip-height: 1.5rem;--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-chip-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );outline:none!important;display:inline-block}:host([negative]){--sbb-chip-border-color: var(--sbb-border-color-4-negative-inverted);--sbb-chip-background-color: var(--sbb-background-color-3-negative);--sbb-chip-color: var(--sbb-color-4-negative);--sbb-chip-color-active: var(--sbb-color-2-negative);--sbb-chip-color-hover: var(--sbb-color-2-negative);--sbb-chip-background-color-active: var(--sbb-background-color-1-negative);--sbb-chip-background-color-hover: var(--sbb-background-color-1-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-chip{background-color:var(--sbb-chip-background-color);border-radius:var(--sbb-chip-border-radius);color:var(--sbb-chip-color);display:flex;align-items:stretch;height:var(--sbb-chip-height)}:host(:focus) .sbb-chip{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-offset: -.0625rem;--sbb-focus-outline-style: initial}.sbb-chip__label-wrapper{border:var(--sbb-chip-border);border-inline-end:none;border-radius:var(--sbb-chip-border-radius) 0 0 var(--sbb-chip-border-radius);display:flex;align-items:center;padding-inline:var(--sbb-chip-label-padding-inline);outline:none;overflow:hidden}:host(:is([disabled],[readonly])) .sbb-chip__label-wrapper{border:var(--sbb-chip-border);border-radius:var(--sbb-chip-border-radius)}.sbb-chip__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);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);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;transition:transform var(--sbb-chip-transition-duration) var(--sbb-animation-easing)}.sbb-chip__delete{--sbb-button-border-radius: 0 var(--sbb-chip-border-radius) var(--sbb-chip-border-radius) 0;--sbb-button-color-text: var(--sbb-chip-color);--sbb-button-color-active-background: var(--sbb-chip-background-color-active);--sbb-button-color-hover-background: var(--sbb-chip-background-color-hover);--sbb-icon-svg-width: calc(var(--sbb-size-icon-ui-small) - var(--sbb-border-width-1x) * 2);--sbb-icon-svg-height: calc(var(--sbb-size-icon-ui-small) - var(--sbb-border-width-1x) * 2);border:var(--sbb-chip-border);border-radius:0 var(--sbb-chip-border-radius) var(--sbb-chip-border-radius) 0}:host(:is([disabled],[readonly])) .sbb-chip__delete{display:none}@media (any-hover: hover){:host(:not([disabled])) .sbb-chip__delete:hover{--sbb-button-color-text: var(--sbb-chip-color-hover)}}`;
|
|
15
15
|
let F = (() => {
|
|
16
16
|
var s, t;
|
|
17
|
-
let e = [
|
|
17
|
+
let e = [w("sbb-chip")], r, b = [], i, n = E(C(q(B(y)))), d, u = [], h = [];
|
|
18
18
|
return t = class extends n {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
|
-
|
|
22
|
-
l(this, s, c(this,
|
|
21
|
+
m(this, s);
|
|
22
|
+
l(this, s, c(this, u, null)), this._language = (c(this, h), new z(this));
|
|
23
23
|
}
|
|
24
24
|
/** The value of chip. Will be used as label if nothing is slotted. */
|
|
25
25
|
get value() {
|
|
26
|
-
return
|
|
26
|
+
return g(this, s);
|
|
27
27
|
}
|
|
28
|
-
set value(
|
|
29
|
-
l(this, s,
|
|
28
|
+
set value(o) {
|
|
29
|
+
l(this, s, o);
|
|
30
30
|
}
|
|
31
|
-
willUpdate(
|
|
32
|
-
super.willUpdate(
|
|
31
|
+
willUpdate(o) {
|
|
32
|
+
super.willUpdate(o), o.has("disabled") && (this.disabled ? this.removeAttribute("tabindex") : this.setAttribute("tabindex", "-1"));
|
|
33
33
|
}
|
|
34
|
-
firstUpdated(
|
|
35
|
-
super.firstUpdated(
|
|
34
|
+
firstUpdated(o) {
|
|
35
|
+
super.firstUpdated(o), setTimeout(() => this._deleteButton().removeAttribute("tabindex"));
|
|
36
36
|
}
|
|
37
37
|
_deleteButton() {
|
|
38
38
|
return this.shadowRoot.querySelector("sbb-mini-button");
|
|
@@ -41,7 +41,7 @@ let F = (() => {
|
|
|
41
41
|
this.dispatchEvent(new Event("requestdelete", { bubbles: !0, composed: !0 }));
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return
|
|
44
|
+
return k`
|
|
45
45
|
<div class="sbb-chip">
|
|
46
46
|
<div class="sbb-chip__label-wrapper">
|
|
47
47
|
<span class="sbb-chip__label">
|
|
@@ -59,14 +59,14 @@ let F = (() => {
|
|
|
59
59
|
</div>
|
|
60
60
|
`;
|
|
61
61
|
}
|
|
62
|
-
}, s = new WeakMap(),
|
|
63
|
-
const
|
|
64
|
-
d = [S()],
|
|
62
|
+
}, s = new WeakMap(), i = t, (() => {
|
|
63
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
64
|
+
d = [S()], f(t, null, d, { kind: "accessor", name: "value", static: !1, private: !1, access: { has: (a) => "value" in a, get: (a) => a.value, set: (a, _) => {
|
|
65
65
|
a.value = _;
|
|
66
|
-
} }, metadata:
|
|
66
|
+
} }, metadata: o }, u, h), f(null, r = { value: i }, e, { kind: "class", name: i.name, metadata: o }, null, b), i = r.value, o && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
67
67
|
})(), t.role = "option", t.styles = I, t.events = {
|
|
68
68
|
requestdelete: "requestdelete"
|
|
69
|
-
}, c(
|
|
69
|
+
}, c(i, b), i;
|
|
70
70
|
})();
|
|
71
71
|
export {
|
|
72
72
|
F as SbbChipElement
|
|
@@ -2,34 +2,34 @@ var y = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var k = (e, s, t) => s.has(e) || y("Cannot " + t);
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
5
|
+
var d = (e, s, t) => (k(e, s, "read from private field"), t ? t.call(e) : s.get(e)), p = (e, s, t) => s.has(e) ? y("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), h = (e, s, t, a) => (k(e, s, "write to private field"), a ? a.call(e, t) : s.set(e, t), t);
|
|
6
|
+
import { __esDecorate as g, __runInitializers as c } from "tslib";
|
|
7
7
|
import { css as S, LitElement as E, html as I } from "lit";
|
|
8
8
|
import { customElement as j, property as w } from "lit/decorators.js";
|
|
9
|
-
const D = S`*,:before,:after{box-sizing:border-box}:host{display:inline-block
|
|
9
|
+
const D = S`*,:before,:after{box-sizing:border-box}:host{display:inline-block;--sbb-chip-label-color: var(--sbb-color-granite);--sbb-chip-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-label-background-color: var(--sbb-background-color-3);--sbb-chip-label-padding-block: 0em;--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-text-font-size: var(--sbb-font-size-text-xxs)}:host([color=charcoal]){--sbb-chip-label-color: var(--sbb-color-2-inverted);--sbb-chip-label-background-color: var(--sbb-background-color-2-inverted)}:host([color=white]){--sbb-chip-label-color: var(--sbb-color-granite);--sbb-chip-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-label-background-color: var(--sbb-background-color-1)}:host([color=granite]){--sbb-chip-label-color: var(--sbb-color-2-inverted);--sbb-chip-label-background-color: var(--sbb-color-granite);--sbb-chip-label-background-color: light-dark(var(--sbb-color-granite), var(--sbb-color-storm))}:host([size=xs]){--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-3x);--sbb-text-font-size: var(--sbb-font-size-text-xs)}:host([size=s]){--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-4x);--sbb-text-font-size: var(--sbb-font-size-text-s)}.sbb-chip-label{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:2;display:inline-flex;align-items:center;justify-content:center;height:calc(var(--sbb-typo-line-height-body-text) * var(--sbb-text-font-size) + var(--sbb-chip-label-padding-block) * 2);background-color:var(--sbb-chip-label-background-color);padding-inline:var(--sbb-chip-label-padding-inline);border-radius:var(--sbb-border-radius-infinity);color:var(--sbb-chip-label-color);overflow:hidden}@media (forced-colors: active){.sbb-chip-label{outline:var(--sbb-border-width-1x) solid CanvasText;outline-offset:calc(-1 * var(--sbb-border-width-1x))}}.sbb-chip-label{display:flex}.sbb-chip__text-wrapper{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block}`;
|
|
10
10
|
let q = (() => {
|
|
11
|
-
var
|
|
12
|
-
let e = [j("sbb-chip-label")], s, t = [],
|
|
13
|
-
return
|
|
11
|
+
var o, b, i;
|
|
12
|
+
let e = [j("sbb-chip-label")], s, t = [], a, v = E, f, u = [], x = [], m, _ = [], z = [];
|
|
13
|
+
return i = class extends v {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
p(this, o, c(this, u, "xxs"));
|
|
17
|
+
p(this, b, (c(this, x), c(this, _, "milk")));
|
|
18
18
|
c(this, z);
|
|
19
19
|
}
|
|
20
20
|
/** Size of the chip. */
|
|
21
21
|
get size() {
|
|
22
|
-
return
|
|
22
|
+
return d(this, o);
|
|
23
23
|
}
|
|
24
|
-
set size(
|
|
25
|
-
|
|
24
|
+
set size(r) {
|
|
25
|
+
h(this, o, r);
|
|
26
26
|
}
|
|
27
27
|
/** Color of the chip. */
|
|
28
28
|
get color() {
|
|
29
|
-
return
|
|
29
|
+
return d(this, b);
|
|
30
30
|
}
|
|
31
|
-
set color(
|
|
32
|
-
|
|
31
|
+
set color(r) {
|
|
32
|
+
h(this, b, r);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
return I`
|
|
@@ -40,14 +40,14 @@ let q = (() => {
|
|
|
40
40
|
</span>
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
|
-
},
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} }, metadata:
|
|
48
|
-
|
|
49
|
-
} }, metadata:
|
|
50
|
-
})(),
|
|
43
|
+
}, o = new WeakMap(), b = new WeakMap(), a = i, (() => {
|
|
44
|
+
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
45
|
+
f = [w({ reflect: !0 })], m = [w({ reflect: !0 })], g(i, null, f, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (l) => "size" in l, get: (l) => l.size, set: (l, n) => {
|
|
46
|
+
l.size = n;
|
|
47
|
+
} }, metadata: r }, u, x), g(i, null, m, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (l) => "color" in l, get: (l) => l.color, set: (l, n) => {
|
|
48
|
+
l.color = n;
|
|
49
|
+
} }, metadata: r }, _, z), g(null, s = { value: a }, e, { kind: "class", name: a.name, metadata: r }, null, t), a = s.value, r && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
50
|
+
})(), i.styles = D, c(a, t), a;
|
|
51
51
|
})();
|
|
52
52
|
export {
|
|
53
53
|
q as SbbChipLabelElement
|
package/clock/clock.component.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
var M = (s) => {
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import { css as E, LitElement as A, isServer as
|
|
4
|
+
var g = (s, n, e) => n.has(s) || M("Cannot " + e);
|
|
5
|
+
var p = (s, n, e) => (g(s, n, "read from private field"), e ? e.call(s) : n.get(s)), H = (s, n, e) => n.has(s) ? M("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, e), h = (s, n, e, a) => (g(s, n, "write to private field"), a ? a.call(s, e) : n.set(s, e), e);
|
|
6
|
+
import { __runInitializers as _, __esDecorate as f } from "tslib";
|
|
7
|
+
import { css as E, LitElement as A, isServer as y, html as O } from "lit";
|
|
8
8
|
import { customElement as T, property as I } from "lit/decorators.js";
|
|
9
|
-
import { ref as
|
|
10
|
-
const N = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><g class="face"><circle fill="
|
|
9
|
+
import { ref as m } from "lit/directives/ref.js";
|
|
10
|
+
const N = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><g class="face"><circle fill="var(--sbb-clock-background-color)" cx="52.5" cy="52.5" r="52.5"/><path d="M50.75 4h3.5v12h-3.5zM50.75 89h3.5v12h-3.5zM75.233 9.623l3.03 1.75-6 10.392-3.03-1.75zM32.734 83.233l3.03 1.75-6 10.392-3.03-1.75zM93.628 26.732l1.75 3.031-10.392 6-1.75-3.03zM20.017 69.234l1.75 3.031-10.392 6-1.75-3.03zM101 50.75v3.5H89v-3.5zM16 50.75v3.5H4v-3.5zM95.379 75.232l-1.75 3.031-10.392-6 1.75-3.03zM21.766 32.734l-1.75 3.031-10.392-6 1.75-3.03zM78.267 93.63l-3.03 1.75-6-10.393 3.03-1.75zM35.766 20.015l-3.03 1.75-6-10.392 3.03-1.75z"/><g><path d="M56.873 4.19l1.392.147-.366 3.48-1.392-.145zM47.101 97.177l1.393.146-.366 3.481-1.392-.146zM61.896 4.914l1.37.29-.728 3.424-1.37-.29zM42.458 96.366l1.37.29-.728 3.424-1.37-.291zM66.825 6.157l1.332.432-1.082 3.33-1.331-.434zM37.931 95.085l1.332.432-1.082 3.33-1.331-.433zM71.584 7.906l1.28.569-1.424 3.197-1.28-.57zM33.56 93.32l1.278.569-1.423 3.197-1.28-.57zM80.44 12.852l1.133.823-2.058 2.831-1.132-.823zM25.481 88.494l1.133.822-2.057 2.832-1.133-.823zM84.43 15.986l1.04.937-2.342 2.6-1.04-.936zM21.87 85.469l1.04.936-2.341 2.601-1.04-.937zM88.072 19.522l.937 1.04-2.6 2.343-.937-1.04zM18.593 82.088l.937 1.04-2.601 2.342-.937-1.04zM91.328 23.425l.823 1.133-2.832 2.057-.823-1.132zM15.684 78.385l.823 1.132-2.832 2.058-.822-1.133zM96.52 32.128l.57 1.279-3.198 1.423-.57-1.278zM11.109 70.161l.569 1.279-3.197 1.423-.57-1.279zM98.407 36.85l.433 1.332-3.33 1.081-.432-1.331zM9.483 65.74l.432 1.33-3.329 1.082-.432-1.331zM99.795 41.726l.291 1.37-3.423.727-.29-1.37zM8.34 61.17l.292 1.37-3.424.728-.29-1.37zM100.66 46.73l.146 1.393-3.48.366-.147-1.392zM7.674 56.506l.146 1.392-3.48.366-.147-1.392zM100.811 56.873l-.146 1.392-3.48-.365.145-1.393zM7.821 47.101l-.146 1.392-3.48-.365.145-1.393zM100.09 61.895l-.291 1.369-3.424-.728.291-1.369zM8.631 42.46l-.291 1.37-3.423-.728.29-1.37zM98.84 66.827l-.432 1.331-3.329-1.081.433-1.332zM9.918 37.93l-.433 1.331-3.329-1.082.433-1.331zM97.098 71.585l-.569 1.28-3.197-1.424.57-1.28zM11.677 33.558l-.57 1.28-3.197-1.424.57-1.279zM92.149 80.439l-.823 1.133-2.832-2.058.823-1.132zM16.506 25.482l-.823 1.133-2.831-2.057.823-1.133zM89.017 84.431l-.937 1.04-2.6-2.341.936-1.04zM19.528 21.869l-.936 1.04-2.601-2.342.936-1.04zM85.48 88.076l-1.041.936-2.342-2.6 1.04-.937zM22.91 18.59l-1.04.937-2.341-2.601 1.04-.937zM81.574 91.328l-1.133.823-2.057-2.831 1.132-.823zM26.617 15.684l-1.133.823-2.057-2.832 1.132-.823zM72.873 96.524l-1.279.57-1.423-3.198 1.278-.57zM34.838 11.105l-1.279.57-1.423-3.198 1.279-.57zM68.151 98.405l-1.331.432-1.082-3.329 1.332-.432zM39.259 9.485l-1.332.433-1.081-3.33 1.331-.432zM63.272 99.799l-1.369.29-.728-3.422 1.37-.291zM43.83 8.337l-1.369.291-.727-3.423 1.37-.291zM58.27 100.662l-1.393.146-.366-3.48 1.393-.147zM48.494 7.672l-1.392.147-.366-3.481 1.392-.147z"/></g></g></svg>
|
|
11
11
|
`, P = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path id="mod_clock_svg_hours" d="M55.7 64.5h-6.4l.6-44h5.2z"/></svg>
|
|
12
|
-
`,
|
|
13
|
-
`,
|
|
14
|
-
`, U = E`*,:before,:after{box-sizing:border-box}:host{--sbb-clock-hours-animation-start-angle: 0deg;--sbb-clock-seconds-animation-start-angle: 0deg;--sbb-clock-hours-animation-duration: 0s;--sbb-clock-seconds-animation-duration: 0s;--sbb-clock-animation-play-state: paused;--sbb-clock-seconds-hand-color: var(--sbb-color-
|
|
12
|
+
`, x = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M55.1,64.5h-5.2l0.8-58h3.6L55.1,64.5z"/></svg>
|
|
13
|
+
`, F = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M57.8,21.3c0-2.9-2.4-5.2-5.2-5.2s-5.3,2.3-5.3,5.2c0,2.7,2,4.8,4.5,5.2V69h1.5V26.5C55.8,26.2,57.8,24,57.8,21.3z"/></svg>
|
|
14
|
+
`, U = E`*,:before,:after{box-sizing:border-box}:host{--sbb-clock-hours-animation-start-angle: 0deg;--sbb-clock-seconds-animation-start-angle: 0deg;--sbb-clock-hours-animation-duration: 0s;--sbb-clock-seconds-animation-duration: 0s;--sbb-clock-animation-play-state: paused;--sbb-clock-seconds-hand-color: var(--sbb-color-brand);--sbb-clock-face-color: var(--sbb-color-1);--sbb-clock-background-color: var(--sbb-background-color-1);display:block}.sbb-clock{position:relative;width:100%;height:100%;aspect-ratio:1/1;overflow:hidden;contain:content}.sbb-clock__face,.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds{position:absolute;inset:0;transform-origin:center center;transform:rotate(0);transform-style:preserve-3d;backface-visibility:hidden}.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__face{fill:var(--sbb-clock-face-color)}.sbb-clock__hand-minutes{transition:transform var(--sbb-disable-animation-duration, .2s) cubic-bezier(.4,2.08,.55,.44)}@supports not (aspect-ratio: 1/1){.sbb-clock__hand-minutes{transform-origin:50% 49.625%}}.sbb-clock__hand-hours{animation-name:rotate;animation-duration:43200s;animation-iteration-count:infinite;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state)}.sbb-clock__hand-hours--initial-hour{animation-name:hand-hours-animation-initial-hour;animation-duration:var(--sbb-clock-hours-animation-duration);animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:1}.sbb-clock__hand-minutes--no-transition{transition:none}.sbb-clock__hand-seconds{animation-name:hand-seconds-animation;animation-duration:60s;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:infinite;fill:var(--sbb-clock-seconds-hand-color)}.sbb-clock__hand-seconds--initial-minute{animation-name:hand-seconds-animation-initial-minute;animation-duration:var(--sbb-clock-seconds-animation-duration);animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:1}:host(:not([data-initialized])) :is(.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds){display:none}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes hand-hours-animation-initial-hour{0%{transform:rotate(var(--sbb-clock-hours-animation-start-angle))}to{transform:rotate(360deg)}}@keyframes hand-seconds-animation{0%{transform:rotate(0)}97.5%,to{transform:rotate(360deg)}}@keyframes hand-seconds-animation-initial-minute{0%{transform:rotate(var(--sbb-clock-seconds-animation-start-angle))}97.5%,to{transform:rotate(360deg)}}`, $ = 12, D = 60, z = 60, V = 50, S = 360, w = 30, G = 6, R = 360 / 58.5, B = 60, L = 3600, K = L / 2, C = {
|
|
15
15
|
once: !0,
|
|
16
16
|
passive: !0
|
|
17
17
|
};
|
|
18
18
|
let X = (() => {
|
|
19
19
|
var c, o;
|
|
20
|
-
let s = [T("sbb-clock")], n, e = [],
|
|
20
|
+
let s = [T("sbb-clock")], n, e = [], a, u = A, b, k = [], v = [];
|
|
21
21
|
return o = class extends u {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
24
|
H(this, c);
|
|
25
|
-
h(this, c,
|
|
25
|
+
h(this, c, _(this, k, null)), this._state = (_(this, v), "paused"), this._moveHoursHandFn = () => this._moveHoursHand(), this._moveMinutesHandFn = () => this._moveMinutesHand(), this._handlePageVisibilityChange = async () => {
|
|
26
26
|
this.now || (document.visibilityState === "hidden" ? await this._stopClock() : await this._startClock());
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -31,7 +31,7 @@ let X = (() => {
|
|
|
31
31
|
* @param value HH:MM:ss
|
|
32
32
|
*/
|
|
33
33
|
get now() {
|
|
34
|
-
return
|
|
34
|
+
return p(this, c);
|
|
35
35
|
}
|
|
36
36
|
set now(t) {
|
|
37
37
|
h(this, c, t);
|
|
@@ -40,10 +40,10 @@ let X = (() => {
|
|
|
40
40
|
super.connectedCallback(), this._resetIntervalId = setInterval(() => this._resetClock(), K * 1e3);
|
|
41
41
|
}
|
|
42
42
|
willUpdate(t) {
|
|
43
|
-
super.willUpdate(t), !
|
|
43
|
+
super.willUpdate(t), !y && t.has("now") && this._startOrConfigureClock();
|
|
44
44
|
}
|
|
45
45
|
firstUpdated(t) {
|
|
46
|
-
super.firstUpdated(t),
|
|
46
|
+
super.firstUpdated(t), y || (document.addEventListener("visibilitychange", this._handlePageVisibilityChange, !1), this._startOrConfigureClock());
|
|
47
47
|
}
|
|
48
48
|
disconnectedCallback() {
|
|
49
49
|
super.disconnectedCallback(), this._removeEventListeners(), clearInterval(this._resetIntervalId);
|
|
@@ -70,14 +70,14 @@ let X = (() => {
|
|
|
70
70
|
/** Set the starting position for the three hands on the clock face. */
|
|
71
71
|
_setHandsStartingPosition() {
|
|
72
72
|
this._assignCurrentTime();
|
|
73
|
-
const t =
|
|
73
|
+
const t = z - this._seconds, i = D - this._minutes, l = $ - this._hours;
|
|
74
74
|
let r = 0, d = 0;
|
|
75
|
-
t > 0 && (r += t, d = 1),
|
|
75
|
+
t > 0 && (r += t, d = 1), i > 0 && (r += (i - d) * B, d = 1), l > 0 && (r += (l - d) * L), this.style?.setProperty("--sbb-clock-hours-animation-start-angle", `${Math.ceil(this._hours * w + this._minutes / 2)}deg`), this.style?.setProperty("--sbb-clock-hours-animation-duration", `${r}s`), this.style?.setProperty("--sbb-clock-seconds-animation-start-angle", `${Math.ceil(this._seconds * R)}deg`), this.style?.setProperty("--sbb-clock-seconds-animation-duration", `${t}s`), this._setMinutesHand(), this._clockHandSeconds?.classList.add("sbb-clock__hand-seconds--initial-minute"), this._clockHandHours?.classList.add("sbb-clock__hand-hours--initial-hour"), this.toggleAttribute("data-initialized", !0);
|
|
76
76
|
}
|
|
77
77
|
/** Given the current date, calculates the hh/mm/ss values and the hh/mm/ss left to the next midnight. */
|
|
78
78
|
_assignCurrentTime() {
|
|
79
|
-
const t = this.now ? null : /* @__PURE__ */ new Date(), [
|
|
80
|
-
this._hours =
|
|
79
|
+
const t = this.now ? null : /* @__PURE__ */ new Date(), [i, l, r] = t ? [t.getHours(), t.getMinutes(), t.getSeconds()] : this.now.split(":").map((d) => +d);
|
|
80
|
+
this._hours = i % 12, this._minutes = l, this._seconds = r;
|
|
81
81
|
}
|
|
82
82
|
/** Set the starting position for the minutes hand. */
|
|
83
83
|
_setMinutesHand() {
|
|
@@ -91,7 +91,7 @@ let X = (() => {
|
|
|
91
91
|
}
|
|
92
92
|
/** Move the minutes hand to the next value. */
|
|
93
93
|
_moveMinutesHand() {
|
|
94
|
-
this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._removeSecondsAnimationStyles(), this._addMinutesAndSetHands(), this._handMovement = setInterval(() => this._addMinutesAndSetHands(),
|
|
94
|
+
this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._removeSecondsAnimationStyles(), this._addMinutesAndSetHands(), this._handMovement = setInterval(() => this._addMinutesAndSetHands(), z * 1e3);
|
|
95
95
|
}
|
|
96
96
|
_addMinutesAndSetHands() {
|
|
97
97
|
this._minutes++, this._setMinutesHand();
|
|
@@ -120,33 +120,33 @@ let X = (() => {
|
|
|
120
120
|
<span
|
|
121
121
|
class="sbb-clock__hand-hours"
|
|
122
122
|
.innerHTML=${P}
|
|
123
|
-
${
|
|
123
|
+
${m((t) => {
|
|
124
124
|
this._clockHandHours = t;
|
|
125
125
|
})}
|
|
126
126
|
></span>
|
|
127
127
|
<span
|
|
128
128
|
class="sbb-clock__hand-minutes sbb-clock__hand-minutes--no-transition"
|
|
129
|
-
.innerHTML=${
|
|
130
|
-
${
|
|
129
|
+
.innerHTML=${x}
|
|
130
|
+
${m((t) => {
|
|
131
131
|
this._clockHandMinutes = t;
|
|
132
132
|
})}
|
|
133
133
|
></span>
|
|
134
134
|
<span
|
|
135
135
|
class="sbb-clock__hand-seconds"
|
|
136
|
-
.innerHTML=${
|
|
137
|
-
${
|
|
136
|
+
.innerHTML=${F}
|
|
137
|
+
${m((t) => {
|
|
138
138
|
this._clockHandSeconds = t;
|
|
139
139
|
})}
|
|
140
140
|
></span>
|
|
141
141
|
</div>
|
|
142
142
|
`;
|
|
143
143
|
}
|
|
144
|
-
}, c = new WeakMap(),
|
|
144
|
+
}, c = new WeakMap(), a = o, (() => {
|
|
145
145
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
|
|
146
|
-
b = [I()],
|
|
147
|
-
|
|
148
|
-
} }, metadata: t }, k, v),
|
|
149
|
-
})(), o.styles = U,
|
|
146
|
+
b = [I()], f(o, null, b, { kind: "accessor", name: "now", static: !1, private: !1, access: { has: (i) => "now" in i, get: (i) => i.now, set: (i, l) => {
|
|
147
|
+
i.now = l;
|
|
148
|
+
} }, metadata: t }, k, v), f(null, n = { value: a }, s, { kind: "class", name: a.name, metadata: t }, null, e), a = n.value, t && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
149
|
+
})(), o.styles = U, _(a, e), a;
|
|
150
150
|
})();
|
|
151
151
|
export {
|
|
152
152
|
X as SbbClockElement
|
|
@@ -2,43 +2,43 @@ var I = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var D = (e, t, r) => t.has(e) || I("Cannot " + r);
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
5
|
+
var u = (e, t, r) => (D(e, t, "read from private field"), r ? r.call(e) : t.get(e)), p = (e, t, r) => t.has(e) ? I("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), g = (e, t, r, n) => (D(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
|
|
6
|
+
import { __esDecorate as h, __runInitializers as i } from "tslib";
|
|
7
7
|
import { css as U, LitElement as j, html as B } from "lit";
|
|
8
8
|
import { customElement as O, property as m } from "lit/decorators.js";
|
|
9
9
|
import { slotState as q, forceType as T } from "../../core/decorators.js";
|
|
10
|
-
const A = U`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{--sbb-container-background-border-radius: 0;--sbb-container-color: inherit;display:block}:host([color=white]){--sbb-container-background-color: var(--sbb-color-
|
|
10
|
+
const A = U`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{--sbb-container-background-border-radius: 0;--sbb-container-color: inherit;display:block}:host(:is(:not([color]),[color=white])){--sbb-container-background-color: var(--sbb-background-color-1)}:host([color=milk]){--sbb-container-background-color: var(--sbb-background-color-3)}:host([color=midnight]),:host([color=charcoal]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-container-color: var(--sbb-color-1-negative)}:host([color=midnight]){--sbb-container-background-color: var(--sbb-background-color-1-negative)}:host([color=charcoal]){--sbb-container-background-color: var(--sbb-background-color-2-negative)}:host([data-slot-names~=image]){--sbb-container-background-color: transparent;--sbb-container-padding: var(--sbb-spacing-responsive-xxl)}:host([background-expanded]:not([expanded])){background-color:var(--sbb-container-background-color)}:host([data-slot-names~=image][background-expanded]){position:relative}@media (min-width: 90rem){:host(:not([expanded],[background-expanded])){--sbb-container-background-border-radius: var(--sbb-border-radius-4x)}}.sbb-container{color:var(--sbb-container-color);background-color:var(--sbb-container-background-color);padding:var(--sbb-container-padding)}.sbb-container:after,.sbb-container:before{content:" ";display:block;visibility:hidden;height:0;overflow:hidden}:host([color=transparent]) .sbb-container{background-color:transparent}:host(:not([expanded])) .sbb-container{padding-inline:var(--sbb-layout-base-offset-responsive);margin-inline:auto;width:100%}@media (min-width: 90rem){:host(:not([expanded])) .sbb-container{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive))}}:host([expanded]) .sbb-container{padding-inline:var(--sbb-spacing-responsive-xxs)}:host([data-slot-names~=image]:not([background-expanded])) .sbb-container{position:relative}:host([data-slot-names~=image]) .sbb-container__content{position:relative}::slotted([slot=image]){position:absolute;inset:0;height:100%;width:100%}`;
|
|
11
11
|
let K = (() => {
|
|
12
|
-
var c, d, l,
|
|
13
|
-
let e = [O("sbb-container"), q()], t, r = [],
|
|
14
|
-
return
|
|
12
|
+
var c, d, l, s;
|
|
13
|
+
let e = [O("sbb-container"), q()], t, r = [], n, x = j, k, v = [], _ = [], f, y = [], E = [], w, z = [], S = [];
|
|
14
|
+
return s = class extends x {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
p(this, c, i(this, v, !1));
|
|
18
|
+
p(this, d, (i(this, _), i(this, y, !1)));
|
|
19
|
+
p(this, l, (i(this, E), i(this, z, "white")));
|
|
20
20
|
i(this, S);
|
|
21
21
|
}
|
|
22
22
|
/** Whether the container is expanded. */
|
|
23
23
|
get expanded() {
|
|
24
|
-
return
|
|
24
|
+
return u(this, c);
|
|
25
25
|
}
|
|
26
26
|
set expanded(o) {
|
|
27
|
-
|
|
27
|
+
g(this, c, o);
|
|
28
28
|
}
|
|
29
29
|
/** Whether the background color is shown on full container width on large screens. */
|
|
30
30
|
get backgroundExpanded() {
|
|
31
|
-
return
|
|
31
|
+
return u(this, d);
|
|
32
32
|
}
|
|
33
33
|
set backgroundExpanded(o) {
|
|
34
|
-
|
|
34
|
+
g(this, d, o);
|
|
35
35
|
}
|
|
36
36
|
/** Color of the container, like transparent, white etc. */
|
|
37
37
|
get color() {
|
|
38
|
-
return
|
|
38
|
+
return u(this, l);
|
|
39
39
|
}
|
|
40
40
|
set color(o) {
|
|
41
|
-
|
|
41
|
+
g(this, l, o);
|
|
42
42
|
}
|
|
43
43
|
willUpdate(o) {
|
|
44
44
|
super.willUpdate(o), o.has("expanded") && this.querySelector?.("sbb-sticky-bar")?.toggleAttribute("data-expanded", this.expanded);
|
|
@@ -54,16 +54,16 @@ let K = (() => {
|
|
|
54
54
|
<slot name="sticky-bar"></slot>
|
|
55
55
|
`;
|
|
56
56
|
}
|
|
57
|
-
}, c = new WeakMap(), d = new WeakMap(), l = new WeakMap(),
|
|
57
|
+
}, c = new WeakMap(), d = new WeakMap(), l = new WeakMap(), n = s, (() => {
|
|
58
58
|
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
59
|
-
k = [T(), m({ type: Boolean, reflect: !0 })], f = [T(), m({ type: Boolean, reflect: !0, attribute: "background-expanded" })],
|
|
59
|
+
k = [T(), m({ type: Boolean, reflect: !0 })], f = [T(), m({ type: Boolean, reflect: !0, attribute: "background-expanded" })], w = [m({ reflect: !0 })], h(s, null, k, { kind: "accessor", name: "expanded", static: !1, private: !1, access: { has: (a) => "expanded" in a, get: (a) => a.expanded, set: (a, b) => {
|
|
60
60
|
a.expanded = b;
|
|
61
|
-
} }, metadata: o },
|
|
61
|
+
} }, metadata: o }, v, _), h(s, null, f, { kind: "accessor", name: "backgroundExpanded", static: !1, private: !1, access: { has: (a) => "backgroundExpanded" in a, get: (a) => a.backgroundExpanded, set: (a, b) => {
|
|
62
62
|
a.backgroundExpanded = b;
|
|
63
|
-
} }, metadata: o }, y,
|
|
63
|
+
} }, metadata: o }, y, E), h(s, null, w, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (a) => "color" in a, get: (a) => a.color, set: (a, b) => {
|
|
64
64
|
a.color = b;
|
|
65
|
-
} }, metadata: o }, z, S),
|
|
66
|
-
})(),
|
|
65
|
+
} }, metadata: o }, z, S), h(null, t = { value: n }, e, { kind: "class", name: n.name, metadata: o }, null, r), n = t.value, o && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
66
|
+
})(), s.styles = A, i(n, r), n;
|
|
67
67
|
})();
|
|
68
68
|
export {
|
|
69
69
|
K as SbbContainerElement
|