@sbb-esta/lyne-elements 5.0.0-next.3 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +69 -2
- package/accordion/accordion.component.js +1 -1
- package/accordion.js +1 -1
- package/accordion.pure.js +1 -1
- package/action-group/_action-group.global.scss +7 -0
- package/action-group/action-group.component.js +1 -1
- package/action-group.component-DBfkhMYG.js +16 -0
- package/action-group.js +1 -1
- package/action-group.pure.js +1 -1
- package/alert/_alert.global.scss +47 -0
- package/alert/alert/alert.component.js +1 -1
- package/alert/alert-group/alert-group.component.js +1 -1
- package/alert.js +2 -2
- package/alert.pure.js +2 -2
- package/autocomplete/autocomplete-base-element.js +2 -2
- package/autocomplete/autocomplete.component.js +4 -4
- package/{autocomplete-base-element-DRGjFF9_.js → autocomplete-base-element-CLMoJtJb.js} +29 -18
- package/autocomplete.js +4 -4
- package/autocomplete.pure.js +3 -3
- package/{core/styles/mixins/badge.scss → badge/_badge.global.scss} +9 -5
- package/{block-link-common-B1E38xKe.js → block-link-common-BZZ4NhPD.js} +2 -2
- package/breadcrumb/_breadcrumb.global.scss +36 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
- package/{breadcrumb-group.component-XPdnV6-a.js → breadcrumb-group.component-FLbOLqwi.js} +23 -19
- package/breadcrumb.js +2 -2
- package/breadcrumb.pure.js +2 -2
- package/button/_button.global.scss +99 -0
- package/button/common/button-common.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +1 -1
- package/button/mini-button-link/mini-button-link.component.js +1 -1
- package/button.js +3 -3
- package/button.pure.js +3 -3
- package/calendar/_calendar.global.scss +46 -0
- package/calendar/calendar/calendar.component.js +2 -2
- package/calendar/calendar-day/calendar-day.component.js +1 -1
- package/calendar/calendar-month/calendar-month.component.js +1 -1
- package/calendar/calendar-year/calendar-year.component.js +1 -1
- package/calendar/common/calendar-cell-base-element.js +1 -1
- package/calendar-cell-base-element-DHCKK3bU.js +23 -0
- package/{calendar-day.component-CcZymuSD.js → calendar-day.component-DrMWf6-w.js} +2 -2
- package/calendar.component-RVAHcJf6.js +1010 -0
- package/calendar.js +5 -5
- package/calendar.pure.js +4 -4
- package/{core/styles/mixins/card.scss → card/_card.global.scss} +67 -45
- package/card/card/card.component.js +1 -1
- package/card/card-badge/card-badge.component.js +1 -1
- package/card/common/card-action-common.js +1 -1
- package/card.js +3 -3
- package/card.pure.js +3 -3
- package/carousel/_carousel.global.scss +11 -0
- package/carousel/carousel/carousel.component.js +1 -1
- package/carousel/carousel-item/carousel-item.component.js +2 -2
- package/carousel/carousel-list/carousel-list.component.js +1 -1
- package/{carousel-item.component-DyZAdXL_.js → carousel-item.component-DRfpza-9.js} +12 -2
- package/{carousel-list.component-Ai0uJWB7.js → carousel-list.component-DAPO_Oce.js} +6 -13
- package/{carousel.component-9oMMOyWo.js → carousel.component-B6XqR3Bc.js} +1 -1
- package/carousel.js +5 -5
- package/carousel.pure.js +4 -4
- package/checkbox/_checkbox.global.scss +29 -0
- package/checkbox/checkbox.component.js +1 -1
- package/checkbox/common/checkbox-common.js +1 -1
- package/{checkbox-common-BSzAnug3.js → checkbox-common-Dz5PUD9H.js} +15 -15
- package/{checkbox.component-DWmjiv_c.js → checkbox.component-DNVief0q.js} +1 -1
- package/checkbox.js +2 -2
- package/checkbox.pure.js +2 -2
- package/chip/_chip.global.scss +72 -0
- package/chip/chip/chip.component.js +1 -1
- package/chip/chip-group/chip-group.component.js +1 -1
- package/{chip-group.component-DJORKUef.js → chip-group.component-DKF_Z2QU.js} +2 -7
- package/chip-label/_chip-label.global.scss +11 -0
- package/chip-label/chip-label.component.js +1 -1
- package/chip-label.js +1 -1
- package/chip-label.pure.js +1 -1
- package/chip.js +2 -2
- package/chip.pure.js +2 -2
- package/clock/_clock.global.scss +9 -0
- package/clock/clock.component.js +1 -1
- package/clock.js +1 -1
- package/clock.pure.js +1 -1
- package/container/_container.global.scss +32 -0
- package/container/container/container.component.js +1 -1
- package/container/sticky-bar/sticky-bar.component.js +1 -1
- package/container.js +2 -2
- package/container.pure.js +2 -2
- package/core/base-elements/_selection-group-base-element.global.scss +16 -0
- package/core/base-elements/action-base-element.js +1 -1
- package/core/base-elements/button-base-element.js +47 -68
- package/core/base-elements/element.js +1 -1
- package/core/base-elements/open-close-base-element.js +1 -1
- package/core/base-elements/selection-group-base-element.js +1 -1
- package/core/controllers/media-matchers-controller.js +1 -1
- package/core/datetime/date-adapter.js +2 -2
- package/core/i18n/i18n.js +73 -78
- package/core/mixins/_panel-common.global.scss +41 -0
- package/core/mixins/form-associated-checkbox-mixin.js +17 -26
- package/core/mixins/form-associated-input-mixin.js +5 -0
- package/core/mixins/form-associated-radio-button-mixin.js +5 -4
- package/core/mixins/named-slot-list-mixin.js +14 -14
- package/core/mixins/panel-mixin.js +1 -1
- package/core/overlay/overlay-outside-pointer-event-listener.js +1 -1
- package/core/styles/_index.scss +4 -15
- package/core/styles/_theme.scss +370 -0
- package/core/styles/{a11y.scss → features/a11y.scss} +2 -2
- package/core/styles/{animation.scss → features/animation.scss} +1 -1
- package/core/styles/features/color-scheme.scss +11 -0
- package/core/styles/features/font-face.scss +3 -0
- package/core/styles/{image.scss → features/image.scss} +29 -7
- package/core/styles/{layout.private.scss → features/layout.private.scss} +5 -4
- package/core/styles/features/layout.scss +47 -0
- package/core/styles/{lists.scss → features/lists.scss} +1 -1
- package/core/styles/{scrollbar.scss → features/scrollbar.scss} +1 -1
- package/core/styles/features/typography.private.scss +9 -0
- package/core/styles/{typography.scss → features/typography.scss} +12 -4
- package/core/styles/internals/button-reset.scss +5 -0
- package/core/styles/{host-scrollbar.scss → internals/host-scrollbar.scss} +1 -1
- package/core/styles/internals/list-reset.scss +6 -0
- package/core/styles/internals/popover-reset.scss +6 -0
- package/core/styles/{screen-reader-only.scss → internals/screen-reader-only.scss} +1 -1
- package/core/styles/mixins/{a11y.scss → _a11y.scss} +0 -21
- package/core/styles/mixins/_core.scss +69 -0
- package/core/styles/{core/functions.scss → mixins/_functions.scss} +0 -8
- package/core/styles/mixins/{helpers.scss → _helpers.scss} +3 -14
- package/core/styles/mixins/{layout.scss → _layout.scss} +1 -1
- package/core/styles/mixins/{lists.scss → _lists.scss} +10 -14
- package/core/styles/mixins/{pearl-chain-bullet.scss → _pearl-chain-bullet.scss} +6 -6
- package/core/styles/mixins/_reset.scss +38 -0
- package/core/styles/mixins/{scrollbar.scss → _scrollbar.scss} +7 -1
- package/core/styles/mixins/_typo.scss +162 -0
- package/core/styles/styles.js +2 -2
- package/core.js +41 -44
- package/custom-elements.json +9677 -7756
- package/date-input/date-input.component.js +1 -1
- package/{date-input.component-aFuUH3N_.js → date-input.component-CKdDrnEj.js} +8 -6
- package/date-input.js +1 -1
- package/date-input.pure.js +1 -1
- package/datepicker/common/datepicker-button.js +1 -1
- package/datepicker/datepicker/datepicker.component.js +45 -27
- package/{datepicker-button-aYDFZ_3v.js → datepicker-button-D8t6_DBS.js} +0 -3
- package/datepicker.js +1 -1
- package/datepicker.pure.js +1 -1
- package/development/accordion/accordion.component.js +1 -1
- package/development/{accordion.component-xx7XabDY.js → accordion.component-pI5XM-iT.js} +1 -1
- package/development/accordion.js +2 -2
- package/development/accordion.pure.js +1 -1
- package/development/action-group/action-group.component.d.ts +2 -31
- package/development/action-group/action-group.component.d.ts.map +1 -1
- package/development/action-group/action-group.component.js +1 -1
- package/development/action-group.component-BUWevlaI.js +26 -0
- package/development/action-group.js +2 -2
- package/development/action-group.pure.js +1 -1
- package/development/alert/alert/alert.component.js +1 -1
- package/development/alert/alert-group/alert-group.component.js +1 -1
- package/development/{alert-group.component-w5PbU_4C.js → alert-group.component-DYmA3spO.js} +1 -1
- package/development/{alert.component-Dzm5z0jh.js → alert.component-Cq0IPcfk.js} +1 -1
- package/development/alert.js +3 -3
- package/development/alert.pure.js +2 -2
- package/development/autocomplete/autocomplete-base-element.d.ts +6 -5
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +2 -2
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +5 -5
- package/development/autocomplete-base-element-DtwUdjCd.js +695 -0
- package/development/autocomplete.js +3 -3
- package/development/autocomplete.pure.js +2 -2
- package/development/block-link-common-DCKM3jJQ.js +99 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
- package/development/breadcrumb-group.component-mofwnLS1.js +197 -0
- package/development/breadcrumb.component-B3XsV_Aq.js +34 -0
- package/development/breadcrumb.js +3 -3
- package/development/breadcrumb.pure.js +2 -2
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +1 -1
- package/development/button/mini-button-link/mini-button-link.component.js +1 -1
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/{button-common-C-A7Dulr.js → button-common-DvuYiiku.js} +1 -1
- package/development/button.js +4 -4
- package/development/button.pure.js +3 -3
- package/development/calendar/calendar/calendar.component.d.ts +45 -53
- package/development/calendar/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar/calendar.component.js +2 -2
- package/development/calendar/calendar-day/calendar-day.component.js +1 -1
- package/development/calendar/calendar-month/calendar-month.component.js +2 -2
- package/development/calendar/calendar-weekday/calendar-weekday.component.js +1 -1
- package/development/calendar/calendar-weeknumber/calendar-weeknumber.component.js +1 -1
- package/development/calendar/calendar-year/calendar-year.component.js +2 -2
- package/development/calendar/common/calendar-cell-base-element.js +1 -1
- package/development/calendar-cell-base-element-D9XadTz1.js +38 -0
- package/development/calendar-day.component-Zky9Z-Fq.js +139 -0
- package/development/calendar.component-BmB8HoZt.js +1399 -0
- package/development/calendar.js +5 -5
- package/development/calendar.pure.js +4 -4
- package/development/card/card/card.component.js +1 -1
- package/development/card/card-badge/card-badge.component.js +1 -1
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/card/card-link/card-link.component.js +1 -1
- package/development/card/common/card-action-common.js +1 -1
- package/development/{card-action-common-zS5iNz23.js → card-action-common-Dr-EX0gr.js} +1 -1
- package/development/{card-badge.component-CEfJdJBs.js → card-badge.component-CENJTZ4g.js} +1 -1
- package/development/{card.component-CL2gHoyP.js → card.component-CVAgqDNK.js} +1 -1
- package/development/card.js +4 -4
- package/development/card.pure.js +3 -3
- package/development/carousel/carousel/carousel.component.js +1 -1
- package/development/carousel/carousel-item/carousel-item.component.d.ts +8 -6
- package/development/carousel/carousel-item/carousel-item.component.d.ts.map +1 -1
- package/development/carousel/carousel-item/carousel-item.component.js +2 -2
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +1 -1
- package/development/{carousel-item.component-B_0wdIAu.js → carousel-item.component-DjDAg-DC.js} +16 -4
- package/development/carousel-list.component-pJBqbfi9.js +126 -0
- package/development/carousel.component-CD2_hauh.js +139 -0
- package/development/carousel.js +5 -5
- package/development/carousel.pure.js +4 -4
- package/development/checkbox/checkbox.component.js +1 -1
- package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
- package/development/checkbox/common/checkbox-common.js +1 -1
- package/development/{checkbox-common-C3Ekixul.js → checkbox-common-o3Su1McS.js} +12 -12
- package/development/checkbox-group/checkbox-group.component.js +1 -1
- package/development/checkbox-group.js +1 -1
- package/development/checkbox-panel/checkbox-panel.component.js +1 -1
- package/development/checkbox-panel.js +1 -1
- package/development/{checkbox.component-UbxCpZmi.js → checkbox.component-6zr36eQq.js} +2 -2
- package/development/checkbox.js +3 -3
- package/development/checkbox.pure.js +2 -2
- package/development/chip/chip/chip.component.js +1 -1
- package/development/chip/chip-group/chip-group.component.d.ts +1 -23
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/development/chip/chip-group/chip-group.component.js +1 -1
- package/development/chip-group.component-BY025VTb.js +395 -0
- package/development/chip-label/chip-label.component.js +1 -1
- package/development/{chip-label.component-DHHNtvTt.js → chip-label.component-D8Il3pvk.js} +1 -1
- package/development/chip-label.js +2 -2
- package/development/chip-label.pure.js +1 -1
- package/development/{chip.component-Uuf3tGFz.js → chip.component-C2VmHfZa.js} +1 -1
- package/development/chip.js +3 -3
- package/development/chip.pure.js +2 -2
- package/development/clock/clock.component.js +1 -1
- package/development/{clock.component-DcM1WFTN.js → clock.component-CyCPrufS.js} +1 -1
- package/development/clock.js +2 -2
- package/development/clock.pure.js +1 -1
- package/development/{compact-paginator.component-BgkpxaaD.js → compact-paginator.component-CKHS0U1v.js} +1 -1
- package/development/container/container/container.component.js +1 -1
- package/development/container/sticky-bar/sticky-bar.component.js +1 -1
- package/development/{container.component-D1Qgp4HW.js → container.component-Ctdd3D-A.js} +1 -1
- package/development/container.js +3 -3
- package/development/container.pure.js +2 -2
- package/development/core/a11y/arrow-navigation.js +1 -1
- package/development/core/a11y/fake-event-detection.js +1 -1
- package/development/core/a11y/focus-trap-controller.js +1 -1
- package/development/core/a11y/focus-visible-within-controller.js +1 -1
- package/development/core/a11y/focus.js +1 -1
- package/development/core/a11y/input-modality-detector.js +1 -1
- package/development/core/a11y/interactivity-checker.js +1 -1
- package/development/core/a11y/live-announcer.js +1 -1
- package/development/core/base-elements/action-base-element.js +2 -2
- package/development/core/base-elements/button-base-element.d.ts +1 -0
- package/development/core/base-elements/button-base-element.d.ts.map +1 -1
- package/development/core/base-elements/button-base-element.js +66 -92
- package/development/core/base-elements/element.d.ts.map +1 -1
- package/development/core/base-elements/element.js +1 -1
- package/development/core/base-elements/link-base-element.js +1 -1
- package/development/core/base-elements/open-close-base-element.js +2 -2
- package/development/core/base-elements/selection-group-base-element.d.ts +1 -2
- package/development/core/base-elements/selection-group-base-element.d.ts.map +1 -1
- package/development/core/base-elements/selection-group-base-element.js +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/escapable-overlay-controller.js +1 -1
- package/development/core/controllers/id-reference-controller.js +1 -1
- package/development/core/controllers/inert-controller.js +1 -1
- package/development/core/controllers/language-controller.js +1 -1
- package/development/core/controllers/media-matchers-controller.js +2 -2
- package/development/core/controllers/overlay-position-controller.js +1 -1
- package/development/core/controllers/property-watcher-controller.js +1 -1
- package/development/core/datetime/date-adapter.d.ts +0 -5
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +2 -7
- package/development/core/datetime/native-date-adapter.js +1 -1
- package/development/core/datetime/temporal-date-adapter.js +1 -1
- package/development/core/decorators/force-type.js +1 -1
- package/development/core/decorators/get-override.js +1 -1
- package/development/core/decorators/handle-distinct-change.js +1 -1
- package/development/core/decorators/id-reference.d.ts.map +1 -1
- package/development/core/decorators/id-reference.js +1 -1
- package/development/core/decorators/omit-empty-converter.js +1 -1
- package/development/core/decorators/plain-date.js +1 -1
- package/development/core/dom/animation.js +1 -1
- package/development/core/dom/contains-pierce-shadow-dom.js +1 -1
- package/development/core/dom/platform.js +1 -1
- package/development/core/dom/queue-dom-content-loaded.js +1 -1
- package/development/core/dom/scroll.js +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -1
- package/development/core/eventing/event-target.js +1 -1
- package/development/core/eventing/form-element-handlers.js +1 -1
- package/development/core/eventing/forward-event.js +1 -1
- package/development/core/eventing/is-event-prevented.js +1 -1
- package/development/core/i18n/i18n.d.ts +0 -1
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +6 -12
- package/development/core/mixins/animation-complete-mixin.js +1 -1
- package/development/core/mixins/disabled-mixin.js +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.js +7 -21
- package/development/core/mixins/form-associated-input-mixin.d.ts +1 -0
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +6 -1
- package/development/core/mixins/form-associated-mixin.d.ts +1 -1
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-mixin.js +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.js +11 -8
- package/development/core/mixins/named-slot-list-mixin.js +3 -3
- package/development/core/mixins/negative-mixin.js +1 -1
- package/development/core/mixins/panel-mixin.js +1 -1
- package/development/core/mixins/readonly-mixin.js +1 -1
- package/development/core/mixins/required-mixin.js +1 -1
- package/development/core/mixins/selection-panel-mixin.js +1 -1
- package/development/core/mixins/update-scheduler-mixin.js +1 -1
- package/development/core/overlay/overlay-option-panel.js +1 -1
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts +1 -1
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts.map +1 -1
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +2 -2
- package/development/core/overlay/overlay-trigger-attributes.js +1 -1
- package/development/core/overlay/position.js +1 -1
- package/development/core/styles/styles.d.ts +3 -1
- package/development/core/styles/styles.d.ts.map +1 -1
- package/development/core/styles/styles.js +2 -2
- package/development/core/testing/event-spy.js +1 -1
- package/development/core/testing/mocha-extensions.js +1 -1
- package/development/core/testing/wait-for-condition.js +1 -1
- package/development/core/testing/wait-for-image-ready.js +1 -1
- package/development/core/testing/wait-for-render.js +1 -1
- package/development/core.d.ts +0 -4
- package/development/core.d.ts.map +1 -1
- package/development/core.js +7 -10
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +1 -1
- package/development/date-input.component-DMNqiZ6l.js +302 -0
- package/development/date-input.js +2 -2
- package/development/date-input.pure.js +1 -1
- package/development/datepicker/common/datepicker-button.d.ts +0 -2
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common/datepicker-button.js +1 -1
- package/development/datepicker/datepicker/datepicker.component.d.ts +3 -1
- package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/development/datepicker/datepicker/datepicker.component.js +38 -12
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +1 -1
- package/development/{datepicker-button-BAT1ebzJ.js → datepicker-button-BvBQB6Sv.js} +1 -5
- package/development/datepicker.js +2 -2
- package/development/datepicker.pure.js +1 -1
- package/development/dialog/dialog/dialog.component.d.ts +2 -3
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +1 -1
- package/development/{dialog-actions.component-e0ZTTUin.js → dialog-actions.component-Dyzg7z-B.js} +1 -1
- package/development/{dialog-close-button.component-Idc00dB9.js → dialog-close-button.component-dgLnsaLx.js} +1 -1
- package/development/{dialog-content.component-CThU7Z8A.js → dialog-content.component-DDtVV0Lh.js} +1 -1
- package/development/dialog-title.component-DyItyahT.js +29 -0
- package/development/{dialog.component-AItB8ixG.js → dialog.component-B1Tke2ym.js} +8 -11
- package/development/dialog.js +6 -6
- package/development/dialog.pure.js +5 -5
- package/development/divider/divider.component.js +1 -1
- package/development/{divider.component-Ck_0vISe.js → divider.component-CYP23U4q.js} +1 -1
- package/development/divider.js +2 -2
- package/development/divider.pure.js +1 -1
- package/development/{element-BAsBayf5.js → element-BS28ba7w.js} +1 -1
- package/development/error.component-Bp7ztvQB.js +53 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
- package/development/{expansion-panel-content.component-Bs0pYNJO.js → expansion-panel-content.component-CKhGtjji.js} +1 -1
- package/development/{expansion-panel-header.component-gg5A_7Pz.js → expansion-panel-header.component-Do3pLbzs.js} +1 -1
- package/development/expansion-panel.component-BnbRiLrk.js +320 -0
- package/development/expansion-panel.js +4 -4
- package/development/expansion-panel.pure.js +3 -3
- package/development/file-selector/common/file-selector-common.d.ts +5 -0
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common/file-selector-common.js +2 -2
- package/development/file-selector/file-selector/file-selector.component.js +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/development/file-selector-common-CCvgN1G2.js +421 -0
- package/development/{file-selector-dropzone.component-B84OL4Xd.js → file-selector-dropzone.component-BeqSG2IM.js} +2 -2
- package/development/file-selector.js +4 -4
- package/development/file-selector.pure.js +3 -3
- package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.js +1 -1
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +1 -1
- package/development/{flip-card-details.component-BYv_W66a.js → flip-card-details.component-RJ43uhma.js} +1 -1
- package/development/{flip-card-summary.component-jLNjJUNl.js → flip-card-summary.component-D9zMzU8m.js} +1 -1
- package/development/flip-card.component-CAsfIcvt.js +189 -0
- package/development/flip-card.js +4 -4
- package/development/flip-card.pure.js +3 -3
- package/development/footer/footer.component.js +1 -1
- package/development/{footer.component-K2bWizjw.js → footer.component-DJH7E5aO.js} +1 -1
- package/development/footer.js +2 -2
- package/development/footer.pure.js +1 -1
- package/development/form-field/error/error.component.js +1 -1
- package/development/form-field/form-field/form-field.component.d.ts +1 -7
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +1 -1
- package/development/form-field/form-field-clear/form-field-clear.component.js +1 -1
- package/development/form-field/form-field-text-counter/form-field-text-counter.component.js +1 -1
- package/development/form-field/hint/hint.component.js +1 -1
- package/development/form-field.component-YM-Z5aZf.js +670 -0
- package/development/form-field.js +4 -4
- package/development/form-field.pure.js +3 -3
- package/development/header/common/header-action-common.d.ts +2 -2
- package/development/header/common/header-action-common.d.ts.map +1 -1
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/header/header.component.d.ts +2 -0
- package/development/header/header/header.component.d.ts.map +1 -1
- package/development/header/header/header.component.js +1 -1
- package/development/header/header-button/header-button.component.js +1 -1
- package/development/header/header-environment/header-environment.component.js +1 -1
- package/development/header/header-link/header-link.component.js +1 -1
- package/development/header-action-common-DX2ejpAL.js +86 -0
- package/development/{header-environment.component-CIyxQwkQ.js → header-environment.component--4YEZyKq.js} +1 -1
- package/development/header.component-FVw_5NRT.js +336 -0
- package/development/header.js +4 -4
- package/development/header.pure.js +3 -3
- package/development/{hint.component-BB9QLGGx.js → hint.component-CdM71SNj.js} +1 -1
- package/development/icon/icon-base.js +1 -1
- package/development/icon/icon-name-mixin.js +1 -1
- package/development/icon/icon-request.js +1 -1
- package/development/icon/icon-validate.js +1 -1
- package/development/icon/icon.component.d.ts +1 -1
- package/development/icon/icon.component.d.ts.map +1 -1
- package/development/icon/icon.component.js +6 -8
- package/development/icon-base-Cq6DxOUh.js +163 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
- package/development/{icon-sidebar-container.component-CM94Spwy.js → icon-sidebar-container.component-G8wyj1Sb.js} +1 -1
- package/development/{icon-sidebar-content.component-BP9W5ZxR.js → icon-sidebar-content.component-D1VPTNhO.js} +1 -1
- package/development/{icon-sidebar.component-B68P2aNh.js → icon-sidebar.component-DLlCKweu.js} +1 -1
- package/development/icon-sidebar.js +4 -4
- package/development/icon-sidebar.pure.js +3 -3
- package/development/icon.js +2 -2
- package/development/icon.pure.js +1 -1
- package/development/image/image.component.js +1 -1
- package/development/{image.component-EfSMgHI_.js → image.component-DoRIca5y.js} +5 -16
- package/development/image.js +2 -2
- package/development/image.pure.js +1 -1
- package/development/inline-link-common-CXYyREBi.js +18 -0
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/journey-header.component-tBukBhVq.js +146 -0
- package/development/journey-header.js +2 -2
- package/development/journey-header.pure.js +1 -1
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/{lead-container.component-C_mFeq1B.js → lead-container.component-D93DLU_J.js} +1 -1
- package/development/lead-container.js +2 -2
- package/development/lead-container.pure.js +1 -1
- package/development/link/block-link/block-link.component.js +1 -1
- package/development/link/block-link-button/block-link-button.component.js +1 -1
- package/development/link/block-link-static/block-link-static.component.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/common/link-common.js +1 -1
- package/development/link/link/link.component.js +1 -1
- package/development/link/link-button/link-button.component.js +1 -1
- package/development/link/link-static/link-static.component.js +1 -1
- package/development/link-common-DWTP-lFX.js +26 -0
- package/development/link-list/common/link-list-base.js +1 -1
- package/development/link-list/link-list.component.js +1 -1
- package/development/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/{link-list-anchor.component-Csb-FOQL.js → link-list-anchor.component-9C1H5KXX.js} +2 -2
- package/development/link-list-anchor.js +2 -2
- package/development/link-list-anchor.pure.js +1 -1
- package/development/{link-list-base-CKT3c8yW.js → link-list-base-CaPkNR_V.js} +1 -1
- package/development/link-list.component-By_lSSYE.js +97 -0
- package/development/link-list.js +3 -3
- package/development/link-list.pure.js +2 -2
- package/development/link.js +4 -4
- package/development/link.pure.js +3 -3
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/development/{loading-indicator-circle.component-Cfjw5vyz.js → loading-indicator-circle.component-CudNN1Z6.js} +1 -1
- package/development/loading-indicator-circle.js +2 -2
- package/development/loading-indicator-circle.pure.js +1 -1
- package/development/{loading-indicator.component-By2VaLCf.js → loading-indicator.component-sEdpEBpx.js} +1 -1
- package/development/loading-indicator.js +2 -2
- package/development/loading-indicator.pure.js +1 -1
- package/development/logo/logo.component.js +1 -1
- package/development/{logo.component-DYKgAgq0.js → logo.component-SqyPA1M-.js} +1 -1
- package/development/logo.js +2 -2
- package/development/logo.pure.js +1 -1
- package/development/map-container/map-container.component.d.ts +2 -2
- package/development/map-container/map-container.component.js +1 -1
- package/development/map-container.component-ASCfDs-R.js +176 -0
- package/development/map-container.js +2 -2
- package/development/map-container.pure.js +1 -1
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +1 -1
- package/development/menu/menu-button/menu-button.component.js +1 -1
- package/development/menu/menu-link/menu-link.component.js +1 -1
- package/development/menu-action-common-BUIJFq1R.js +32 -0
- package/development/menu.component-B3uWxwbt.js +369 -0
- package/development/menu.js +3 -3
- package/development/menu.pure.js +2 -2
- package/development/message/message.component.js +1 -1
- package/development/{message.component-CdO5GyE2.js → message.component-BrqWVCJV.js} +2 -2
- package/development/message.js +2 -2
- package/development/message.pure.js +1 -1
- package/development/{mini-button-group.component-VYKZf1rq.js → mini-button-group.component-C2KcpK5c.js} +2 -2
- package/development/mini-button-link.component-BHaNYXk0.js +39 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +1 -1
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +1 -1
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/development/{mini-calendar-day.component-BLkJ12Bw.js → mini-calendar-day.component-UG6wpckK.js} +1 -1
- package/development/{mini-calendar-month.component-D8XjjLmN.js → mini-calendar-month.component-GE-cmXxP.js} +1 -1
- package/development/{mini-calendar.component-BOk8JovO.js → mini-calendar.component-DQ_zxELt.js} +1 -1
- package/development/mini-calendar.js +4 -4
- package/development/mini-calendar.pure.js +3 -3
- package/development/navigation/common/navigation-action-common.d.ts +3 -1
- package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/development/navigation/common/navigation-action-common.js +1 -1
- package/development/navigation/navigation/navigation.component.d.ts +0 -1
- package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/development/navigation/navigation/navigation.component.js +1 -1
- package/development/navigation/navigation-button/navigation-button.component.js +1 -1
- package/development/navigation/navigation-link/navigation-link.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/development/navigation/navigation-section/navigation-section.component.d.ts +0 -1
- package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +1 -1
- package/development/navigation-action-common-BdJOaItd.js +56 -0
- package/development/navigation-list.component-CWOSnwgm.js +86 -0
- package/development/navigation-marker.component-D3Vbe1dH.js +120 -0
- package/development/navigation-section.component-34GEIPaN.js +343 -0
- package/development/navigation.component-CqQuaq7V.js +316 -0
- package/development/navigation.js +6 -6
- package/development/navigation.pure.js +5 -5
- package/development/notification/notification.component.js +1 -1
- package/development/{notification.component-BiJSo7Pl.js → notification.component-BlWGjgrP.js} +1 -1
- package/development/notification.js +2 -2
- package/development/notification.pure.js +1 -1
- package/development/optgroup-base-element--G8myprb.js +140 -0
- package/development/option/optgroup/optgroup-base-element.d.ts +1 -2
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +1 -1
- package/development/option/optgroup/optgroup.component.js +2 -2
- package/development/option/option/option-base-element.d.ts +0 -2
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +1 -6
- package/development/option/option/option.component.d.ts +0 -1
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +1 -1
- package/development/option/option-hint/option-hint.component.js +1 -1
- package/development/option/option-styles.d.ts +2 -0
- package/development/option/option-styles.d.ts.map +1 -0
- package/development/option/option-styles.js +2 -0
- package/development/{option-hint.component-DPfgcpVn.js → option-hint.component-DyCue4gx.js} +1 -1
- package/development/option-styles-CJMae7_-.js +8 -0
- package/development/option.component-BSHq97Of.js +130 -0
- package/development/option.js +6 -5
- package/development/option.pure.d.ts +1 -0
- package/development/option.pure.d.ts.map +1 -1
- package/development/option.pure.js +5 -4
- package/development/overlay/overlay-base-element.d.ts +6 -8
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +12 -17
- package/development/overlay/overlay.component.d.ts +3 -3
- package/development/overlay/overlay.component.d.ts.map +1 -1
- package/development/overlay/overlay.component.js +1 -1
- package/development/{overlay.component-rFmitc_r.js → overlay.component-D_BLhfdG.js} +8 -11
- package/development/overlay.js +2 -2
- package/development/overlay.pure.js +1 -1
- package/development/paginator/common/paginator-common.d.ts +11 -6
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +2 -2
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +1 -1
- package/development/paginator-common-B9EN1Fjx.js +432 -0
- package/development/paginator.component-DisPJ2Qa.js +265 -0
- package/development/paginator.js +5 -5
- package/development/paginator.pure.js +4 -4
- package/development/{panel-mixin-DPybe45K.js → panel-mixin-Da_cHQn-.js} +1 -1
- package/development/popover/popover/popover.component.d.ts +54 -0
- package/development/popover/popover/popover.component.d.ts.map +1 -0
- package/development/popover/popover/popover.component.js +2 -0
- package/development/popover/popover-base/popover-base.d.ts +61 -0
- package/development/popover/popover-base/popover-base.d.ts.map +1 -0
- package/development/popover/popover-base/popover-base.js +2 -0
- package/development/popover/popover-close-button/popover-close-button.component.d.ts +21 -0
- package/development/popover/popover-close-button/popover-close-button.component.d.ts.map +1 -0
- package/development/popover/popover-close-button/popover-close-button.component.js +30 -0
- package/development/popover-base-BcIAVXWF.js +288 -0
- package/development/popover.component-CMR0eV2t.js +233 -0
- package/development/popover.js +6 -3
- package/development/popover.pure.d.ts +3 -1
- package/development/popover.pure.d.ts.map +1 -1
- package/development/popover.pure.js +4 -2
- package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/development/radio-button/common/radio-button-common.js +1 -1
- package/development/radio-button/radio-button.component.js +1 -1
- package/development/radio-button-common-BaGYHkpD.js +129 -0
- package/development/radio-button-group/radio-button-group.component.js +1 -1
- package/development/radio-button-group.js +1 -1
- package/development/radio-button-panel/radio-button-panel.component.js +1 -1
- package/development/radio-button-panel.js +1 -1
- package/development/{radio-button.component-DnErH-1J.js → radio-button.component-CmQGrMHr.js} +2 -2
- package/development/radio-button.js +3 -3
- package/development/radio-button.pure.js +2 -2
- package/development/{sbb-tokens-bg2elLoF.js → sbb-tokens-DGQJTWqa.js} +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +1 -1
- package/development/select.component-3S8E6UwN.js +809 -0
- package/development/select.js +2 -2
- package/development/select.pure.js +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +1 -1
- package/development/{selection-action-panel.component-BT0HmTja.js → selection-action-panel.component-pd9B6lRD.js} +1 -1
- package/development/selection-action-panel.js +2 -2
- package/development/selection-action-panel.pure.js +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/development/selection-expansion-panel.component-Dtfnz1AE.js +186 -0
- package/development/selection-expansion-panel.js +2 -2
- package/development/selection-expansion-panel.pure.js +1 -1
- package/development/selection-group-base-element-govDKjsE.js +146 -0
- package/development/sidebar/common/styles.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +1 -1
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/{sidebar-close-button.component-CXnf-P5H.js → sidebar-close-button.component-tkbcoR-I.js} +1 -1
- package/development/sidebar-container.component-CbE9878W.js +100 -0
- package/development/{sidebar-content.component-DbcREBUa.js → sidebar-content.component-CBfaiAsJ.js} +1 -1
- package/development/{sidebar-title.component-BW04otyD.js → sidebar-title.component-ZKarv4Mz.js} +1 -1
- package/development/{sidebar.component-mfXnE6WQ.js → sidebar.component-Cmkn9X-M.js} +1 -1
- package/development/sidebar.js +6 -6
- package/development/sidebar.pure.js +5 -5
- package/development/signet/signet.component.js +1 -1
- package/development/{signet.component-k14RJ8FA.js → signet.component--kuRWLGw.js} +1 -1
- package/development/signet.js +2 -2
- package/development/signet.pure.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/skiplink-list.component-Cpyo7JAH.js +129 -0
- package/development/skiplink-list.js +2 -2
- package/development/skiplink-list.pure.js +1 -1
- package/development/slider/slider.component.d.ts +1 -0
- package/development/slider/slider.component.d.ts.map +1 -1
- package/development/slider/slider.component.js +1 -1
- package/development/slider.component-Dymr4YvE.js +333 -0
- package/development/slider.js +2 -2
- package/development/slider.pure.js +1 -1
- package/development/status/status.component.js +1 -1
- package/development/{status.component-B9en2l26.js → status.component-DnnX98xP.js} +1 -1
- package/development/status.js +2 -2
- package/development/status.pure.js +1 -1
- package/development/step-label.component-i13wQWJJ.js +127 -0
- package/development/step.component-lTLpcOUh.js +167 -0
- package/development/stepper/step/step.component.d.ts +15 -12
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +2 -2
- package/development/stepper/step-label/step-label.component.js +1 -1
- package/development/stepper/stepper/stepper.component.d.ts +9 -5
- package/development/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/development/stepper/stepper/stepper.component.js +1 -1
- package/development/stepper.component-DBE685VL.js +443 -0
- package/development/stepper.js +5 -5
- package/development/stepper.pure.js +4 -4
- package/development/{sticky-bar.component-BJLtRvcd.js → sticky-bar.component-BEhV0azF.js} +2 -2
- package/development/{styles-WppEBrlW.js → styles-BTV2MyrZ.js} +1 -1
- package/development/styles-CUz7LBUc.js +30 -0
- package/development/tab-group.component-DBg6I8W7.js +297 -0
- package/development/tab-label.component-BbQu5sA-.js +233 -0
- package/development/tab-nav-bar.component-DC4Ba7w2.js +109 -0
- package/development/{tab.component-BVhYPy5Y.js → tab.component-Bsdzs7P2.js} +1 -1
- package/development/table/table-wrapper/table-wrapper.component.js +1 -1
- package/development/{table-wrapper.component-By59zmcU.js → table-wrapper.component-Cqc9PHZl.js} +1 -1
- package/development/table.js +2 -2
- package/development/table.pure.js +1 -1
- package/development/tabs/common/styles.js +1 -1
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.d.ts +15 -8
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +2 -2
- package/development/tabs/tab-label/tab-label.component.d.ts.map +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
- package/development/tabs.js +7 -7
- package/development/tabs.pure.js +6 -6
- package/development/tag/tag/tag.component.d.ts +1 -0
- package/development/tag/tag/tag.component.d.ts.map +1 -1
- package/development/tag/tag/tag.component.js +1 -1
- package/development/tag/tag-group/tag-group.component.d.ts +6 -1
- package/development/tag/tag-group/tag-group.component.d.ts.map +1 -1
- package/development/tag/tag-group/tag-group.component.js +1 -1
- package/development/tag-group.component-DTff1eBB.js +225 -0
- package/development/tag.component-CDDb2fnV.js +258 -0
- package/development/tag.js +3 -3
- package/development/tag.pure.js +2 -2
- package/development/teaser/teaser.component.js +1 -1
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/{teaser-hero.component-BHMcPmdh.js → teaser-hero.component-d0iLCgA7.js} +1 -1
- package/development/teaser-hero.js +2 -2
- package/development/teaser-hero.pure.js +1 -1
- package/development/teaser-panel/teaser-panel.component.js +1 -1
- package/development/{teaser-panel.component-BRfbvmkb.js → teaser-panel.component-CXT3l9-M.js} +1 -1
- package/development/teaser-panel.js +2 -2
- package/development/teaser-panel.pure.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
- package/development/{teaser-product-common-DOyLdTks.js → teaser-product-common-DfbpBlTk.js} +1 -1
- package/development/teaser-product.component-Cv9PR0lo.js +37 -0
- package/development/teaser-product.js +3 -3
- package/development/teaser-product.pure.js +2 -2
- package/development/teaser.component-BGnmuXOI.js +116 -0
- package/development/teaser.js +2 -2
- package/development/teaser.pure.js +1 -1
- package/development/time-input/time-input.component.d.ts +3 -1
- package/development/time-input/time-input.component.d.ts.map +1 -1
- package/development/time-input/time-input.component.js +1 -1
- package/development/time-input.component-Cdd1dzcG.js +194 -0
- package/development/time-input.js +2 -2
- package/development/time-input.pure.js +1 -1
- package/development/timetable-form/timetable-form/timetable-form.component.js +1 -1
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/development/{timetable-form-details.component-BeuAZUQe.js → timetable-form-details.component-HPb8xks3.js} +1 -1
- package/development/{timetable-form-field.component-DC2z1Cwf.js → timetable-form-field.component-DxUpCWe0.js} +1 -1
- package/development/{timetable-form-swap-button.component-CnbVc8Ok.js → timetable-form-swap-button.component-BT63vkZr.js} +1 -1
- package/development/{timetable-form.component-C8DfPePn.js → timetable-form.component-DcvKOLvm.js} +1 -1
- package/development/timetable-form.js +5 -5
- package/development/timetable-form.pure.js +4 -4
- package/development/timetable-occupancy/timetable-occupancy.component.d.ts.map +1 -1
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/development/timetable-occupancy-icon.component-Bsct9zga.js +95 -0
- package/development/timetable-occupancy-icon.js +2 -2
- package/development/timetable-occupancy-icon.pure.js +1 -1
- package/development/timetable-occupancy.component-62YNjs5z.js +126 -0
- package/development/timetable-occupancy.js +2 -2
- package/development/timetable-occupancy.pure.js +1 -1
- package/development/title/title-base.js +1 -1
- package/development/title/title.component.d.ts +0 -2
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +1 -1
- package/development/title-base-DPAFIjFK.js +102 -0
- package/development/title.component-BSrkZhnI.js +69 -0
- package/development/title.js +3 -3
- package/development/title.pure.js +2 -2
- package/development/toast/toast.component.d.ts.map +1 -1
- package/development/toast/toast.component.js +1 -1
- package/development/{toast.component-DonS3uQm.js → toast.component-BgGWVr4o.js} +4 -5
- package/development/toast.js +2 -2
- package/development/toast.pure.js +1 -1
- package/development/toggle/toggle/toggle.component.js +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +1 -1
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/{toggle-check.component-BIV7jFIc.js → toggle-check.component--On4AuVo.js} +1 -1
- package/development/toggle-check.js +2 -2
- package/development/toggle-check.pure.js +1 -1
- package/development/{toggle-option.component-DRxwLSKU.js → toggle-option.component-CZY7xnrX.js} +1 -1
- package/development/toggle.component-D3IbJqAH.js +243 -0
- package/development/toggle.js +3 -3
- package/development/toggle.pure.js +2 -2
- package/development/tooltip/tooltip.component.d.ts.map +1 -1
- package/development/tooltip/tooltip.component.js +1 -1
- package/development/tooltip.component-BE8BlKzE.js +369 -0
- package/development/tooltip.js +2 -2
- package/development/tooltip.pure.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +1 -1
- package/development/train/train-formation-orientation-mixin.js +1 -1
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/train/train-wagon-button/train-wagon-button.component.js +1 -1
- package/development/train/train-wagon-common.js +1 -1
- package/development/train/train-wagon-link/train-wagon-link.component.js +1 -1
- package/development/{train-blocked-passage.component-Cxd7dBDC.js → train-blocked-passage.component-BGCuXvjt.js} +1 -1
- package/development/{train-formation.component-BEg6OPib.js → train-formation.component-XGatA4-S.js} +2 -2
- package/development/train-wagon-common-4dC995mT.js +441 -0
- package/development/train.component-CX1HEDwX.js +239 -0
- package/development/train.js +5 -5
- package/development/train.pure.js +4 -4
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/development/{visual-checkbox.component-Dm8DNhH2.js → visual-checkbox.component-EpRxoteZ.js} +1 -1
- package/development/visual-checkbox.js +2 -2
- package/development/visual-checkbox.pure.js +1 -1
- package/dialog/_dialog.global.scss +77 -0
- package/dialog/dialog/dialog.component.js +1 -1
- package/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/dialog/dialog-close-button/dialog-close-button.component.js +1 -1
- package/dialog/dialog-content/dialog-content.component.js +1 -1
- package/dialog/dialog-title/dialog-title.component.js +1 -1
- package/{dialog.component-4O3__zyd.js → dialog.component-Bs62s2eB.js} +7 -10
- package/dialog.js +5 -5
- package/dialog.pure.js +5 -5
- package/divider/_divider.global.scss +9 -0
- package/divider/divider.component.js +1 -1
- package/divider.js +1 -1
- package/divider.pure.js +1 -1
- package/expansion-panel/_expansion-panel.global.scss +66 -0
- package/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
- package/{expansion-panel.component-DvZogUuX.js → expansion-panel.component-kyVRxBRu.js} +19 -16
- package/expansion-panel.js +3 -3
- package/expansion-panel.pure.js +3 -3
- package/file-selector/_file-selector.global.scss +25 -0
- package/file-selector/common/file-selector-common.js +2 -2
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/{file-selector-common-BE780nIa.js → file-selector-common-Bk347JZN.js} +26 -19
- package/{file-selector-dropzone.component-CGo6odhC.js → file-selector-dropzone.component-CywJG8KU.js} +1 -1
- package/file-selector.js +5 -5
- package/file-selector.pure.js +4 -4
- package/flip-card/_flip-card.global.scss +38 -0
- package/flip-card/flip-card/flip-card.component.js +1 -1
- package/flip-card/flip-card-details/flip-card-details.component.js +1 -1
- package/flip-card/flip-card-summary/flip-card-summary.component.js +1 -1
- package/{flip-card.component-CZ0v44Ym.js → flip-card.component-CtUxr9yF.js} +22 -18
- package/flip-card.js +3 -3
- package/flip-card.pure.js +3 -3
- package/footer/_footer.global.scss +17 -0
- package/footer/footer.component.js +1 -1
- package/footer.js +1 -1
- package/footer.pure.js +1 -1
- package/form-field/_form-field.global.scss +274 -0
- package/form-field/error/error.component.js +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/form-field/hint/hint.component.js +1 -1
- package/{form-field.component-BdfK6r2v.js → form-field.component-eH2C_qPG.js} +62 -83
- package/form-field.js +3 -3
- package/form-field.pure.js +3 -3
- package/header/_header.global.scss +108 -0
- package/header/common/header-action-common.js +1 -1
- package/header/header/header.component.js +1 -1
- package/header/header-environment/header-environment.component.js +1 -1
- package/header-action-common-B5M7_3Q1.js +64 -0
- package/{header.component-TU3e89pY.js → header.component-BbdHh5fF.js} +1 -1
- package/header.js +3 -3
- package/header.pure.js +3 -3
- package/icon/icon-base.js +1 -1
- package/icon/icon.component.js +3 -6
- package/{icon-base-CCpB1w3b.js → icon-base-TSCmR5QC.js} +1 -1
- package/icon-sidebar/_icon-sidebar.global.scss +21 -0
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +1 -1
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/icon-sidebar.js +3 -3
- package/icon-sidebar.pure.js +3 -3
- package/icon.js +1 -1
- package/icon.pure.js +1 -1
- package/image/image.component.js +1 -1
- package/{image.component-BSSyfPru.js → image.component-K7sre7oE.js} +1 -1
- package/image.js +1 -1
- package/image.pure.js +1 -1
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/inline-link-common-D0sat0cr.js +13 -0
- package/journey-header/journey-header.component.js +1 -1
- package/journey-header.js +1 -1
- package/journey-header.pure.js +1 -1
- package/lead-container/_lead-container.global.scss +31 -0
- package/lead-container/lead-container.component.js +1 -1
- package/lead-container.js +1 -1
- package/lead-container.pure.js +1 -1
- package/lean-off-brand-theme.css +771 -1017
- package/lean-safety-theme.css +771 -1017
- package/lean-theme.css +771 -1017
- package/{core/styles/mixins/link.scss → link/_link.global.scss} +53 -43
- package/link/common/block-link-common.js +1 -1
- package/link/common/inline-link-common.js +1 -1
- package/link/common/link-common.js +1 -1
- package/link-list/common/link-list-base.js +1 -1
- package/link-list/link-list.component.js +1 -1
- package/link-list-anchor/link-list-anchor.component.js +1 -1
- package/{link-list-anchor.component-DG_HCtHH.js → link-list-anchor.component-as1bjNH1.js} +1 -1
- package/link-list-anchor.js +1 -1
- package/link-list-anchor.pure.js +1 -1
- package/{link-list.component-BNVd0a8U.js → link-list.component-bTG45ml0.js} +2 -2
- package/link-list.js +2 -2
- package/link-list.pure.js +2 -2
- package/link.js +3 -3
- package/link.pure.js +3 -3
- package/loading-indicator/_loading-indicator.global.scss +10 -0
- package/loading-indicator/loading-indicator.component.js +1 -1
- package/loading-indicator-circle/_loading-indicator-circle.global.scss +19 -0
- package/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/loading-indicator-circle.js +1 -1
- package/loading-indicator-circle.pure.js +1 -1
- package/loading-indicator.js +1 -1
- package/loading-indicator.pure.js +1 -1
- package/logo/_logo.global.scss +15 -0
- package/logo/logo.component.js +1 -1
- package/logo.js +1 -1
- package/logo.pure.js +1 -1
- package/map-container/_map-container.global.scss +15 -0
- package/map-container/map-container.component.js +1 -1
- package/{map-container.component-DyJBA3qj.js → map-container.component-C2_Miiv0.js} +1 -1
- package/map-container.js +1 -1
- package/map-container.pure.js +1 -1
- package/menu/_menu.global.scss +31 -0
- package/menu/common/menu-action-common.js +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/{menu-action-common-Wy36tk18.js → menu-action-common-_iII6n1T.js} +1 -1
- package/{menu.component-DrrKSRmJ.js → menu.component-CqXIRQq2.js} +25 -21
- package/menu.js +2 -2
- package/menu.pure.js +2 -2
- package/message/_message.global.scss +20 -0
- package/message/message.component.js +1 -1
- package/{message.component-CdfsCpnE.js → message.component-BpQ4ikV6.js} +1 -1
- package/message.js +1 -1
- package/message.pure.js +1 -1
- package/{mini-button-group.component-DQBU0BDm.js → mini-button-group.component-C-pJ_J-1.js} +1 -1
- package/mini-calendar/_mini-calendar.global.scss +15 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.js +1 -1
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +1 -1
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/mini-calendar.js +3 -3
- package/mini-calendar.pure.js +3 -3
- package/navigation/_navigation.global.scss +78 -0
- package/navigation/common/navigation-action-common.js +1 -1
- package/navigation/navigation/navigation.component.js +1 -1
- 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/navigation-action-common-DSPULZFe.js +38 -0
- package/{navigation-list.component-Cezo1tC-.js → navigation-list.component-Bkmh_wqm.js} +1 -1
- package/{navigation-marker.component-CNsMaqpH.js → navigation-marker.component-CCXJWsN1.js} +1 -1
- package/{navigation-section.component-Bmh4Xtrm.js → navigation-section.component-DPgBlCf8.js} +1 -4
- package/{navigation.component-DLgmWh_c.js → navigation.component-CY_9Q6dT.js} +24 -23
- package/navigation.js +5 -5
- package/navigation.pure.js +5 -5
- package/notification/_notification.global.scss +53 -0
- package/notification/notification.component.js +1 -1
- package/notification.js +1 -1
- package/notification.pure.js +1 -1
- package/off-brand-theme.css +770 -1016
- package/{optgroup-base-element-Cxe8SIQh.js → optgroup-base-element-BbxwRc0x.js} +10 -17
- package/option/_option.global.scss +80 -0
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/optgroup/optgroup.component.js +1 -1
- package/option/option/option-base-element.js +16 -19
- package/option/option/option.component.js +1 -1
- package/option/option-hint/option-hint.component.js +1 -1
- package/option/option-styles.js +2 -0
- package/option-styles-BmvwR7PD.js +6 -0
- package/{option.component-BeorlZT0.js → option.component-9AlEwsE3.js} +1 -1
- package/option.js +7 -6
- package/option.pure.js +6 -5
- package/overlay/_overlay.global.scss +13 -0
- package/overlay/overlay-base-element.js +25 -31
- package/overlay/overlay.component.js +1 -1
- package/{overlay.component-C80XN61v.js → overlay.component-BvoOK_O-.js} +7 -10
- package/overlay.js +1 -1
- package/overlay.pure.js +1 -1
- package/package.json +5 -49
- package/paginator/_paginator.global.scss +21 -0
- package/paginator/common/paginator-common.js +2 -2
- package/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/paginator/paginator/paginator.component.js +1 -1
- package/{paginator-common-uoCIcl4X.js → paginator-common-Xiv6UZlo.js} +42 -24
- package/paginator.component-buCkeyDv.js +212 -0
- package/paginator.js +5 -5
- package/paginator.pure.js +4 -4
- package/popover/_popover.global.scss +12 -0
- package/popover/popover/popover.component.js +2 -0
- package/popover/popover-base/popover-base.js +2 -0
- package/popover/popover-close-button/popover-close-button.component.js +20 -0
- package/popover-base-DlSa-ajc.js +181 -0
- package/popover.component-BHg4Qtqd.js +158 -0
- package/popover.js +5 -4
- package/popover.pure.js +4 -2
- package/radio-button/_radio-button.global.scss +37 -0
- package/radio-button/common/radio-button-common.js +1 -1
- package/radio-button/radio-button.component.js +1 -1
- package/{radio-button-common-CrIRn10q.js → radio-button-common-OaxGvaS9.js} +15 -15
- package/{radio-button.component-CZ273yAb.js → radio-button.component-DznnXJCN.js} +1 -1
- package/radio-button.js +2 -2
- package/radio-button.pure.js +2 -2
- package/safety-theme.css +770 -1016
- package/select/_select.global.scss +24 -0
- package/select/select.component.js +1 -1
- package/{select.component-CLPLpFDz.js → select.component-Drb7KsP3.js} +43 -41
- package/select.js +1 -1
- package/select.pure.js +1 -1
- package/selection-action-panel/_selection-action-panel.global.scss +19 -0
- package/selection-action-panel/selection-action-panel.component.js +1 -1
- package/selection-action-panel.js +1 -1
- package/selection-action-panel.pure.js +1 -1
- package/selection-expansion-panel/_selection-expansion-panel.global.scss +21 -0
- package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/selection-expansion-panel.js +1 -1
- package/selection-expansion-panel.pure.js +1 -1
- package/{selection-group-base-element-COFsU6Ur.js → selection-group-base-element-BcEQ5-ML.js} +1 -4
- package/sidebar/_sidebar.global.scss +81 -0
- package/sidebar/sidebar/sidebar.component.js +1 -1
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/sidebar.js +5 -5
- package/sidebar.pure.js +5 -5
- package/signet/_signet.global.scss +16 -0
- package/signet/signet.component.js +1 -1
- package/signet.js +1 -1
- package/signet.pure.js +1 -1
- package/skiplink-list/skiplink-list.component.js +1 -1
- package/{skiplink-list.component-BXaqYpsI.js → skiplink-list.component-Cc6QNvVU.js} +1 -1
- package/skiplink-list.js +1 -1
- package/skiplink-list.pure.js +1 -1
- package/slider/_slider.global.scss +30 -0
- package/slider/slider.component.js +1 -1
- package/{slider.component-BlUWAWJU.js → slider.component-pDx_g7eE.js} +24 -32
- package/slider.js +1 -1
- package/slider.pure.js +1 -1
- package/standard-theme.css +770 -1016
- package/status/_status.global.scss +10 -0
- package/status/status.component.js +1 -1
- package/status.js +1 -1
- package/status.pure.js +1 -1
- package/{step.component-BY6_2Wh2.js → step.component-CcjV_283.js} +23 -8
- package/stepper/_stepper.global.scss +47 -0
- package/stepper/step/step.component.js +2 -2
- package/stepper/step-label/step-label.component.js +1 -1
- package/stepper/stepper/stepper.component.js +1 -1
- package/{stepper.component-lh0YSbT1.js → stepper.component-CqClDxL6.js} +20 -3
- package/stepper.js +5 -5
- package/stepper.pure.js +4 -4
- package/{sticky-bar.component-dmlGAZLW.js → sticky-bar.component-DBSVB1lE.js} +1 -1
- package/styles-BwvY_TyZ.js +5 -0
- package/{tab-group.component-t4eeCNf-.js → tab-group.component-Dx0xldWI.js} +27 -2
- package/tab-label.component-C5HCrNFB.js +158 -0
- package/{tab-nav-bar.component-FT2W0urU.js → tab-nav-bar.component-7j-RCq7p.js} +1 -1
- package/table/_table.global.scss +295 -0
- package/table/table-wrapper/table-wrapper.component.js +1 -1
- package/table.js +1 -1
- package/table.pure.js +1 -1
- package/tabs/_tabs.global.scss +61 -0
- package/tabs/common/styles.js +1 -1
- package/tabs/tab/tab.component.js +1 -1
- package/tabs/tab-group/tab-group.component.js +2 -2
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
- package/tabs.js +7 -7
- package/tabs.pure.js +6 -6
- package/tag/_tag.global.scss +41 -0
- package/tag/tag/tag.component.js +1 -1
- package/tag/tag-group/tag-group.component.js +1 -1
- package/{tag-group.component-9UfHHJ79.js → tag-group.component-CJwbkP70.js} +38 -23
- package/{tag.component-BKuxfdDi.js → tag.component-r8diGGP-.js} +14 -5
- package/tag.js +2 -2
- package/tag.pure.js +2 -2
- package/teaser/_teaser.global.scss +51 -0
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/_teaser-hero.global.scss +29 -0
- package/teaser-hero/teaser-hero.component.js +1 -1
- package/teaser-hero.js +1 -1
- package/teaser-hero.pure.js +1 -1
- package/teaser-panel/_teaser-panel.global.scss +33 -0
- package/teaser-panel/teaser-panel.component.js +1 -1
- package/teaser-panel.js +1 -1
- package/teaser-panel.pure.js +1 -1
- package/teaser-product/_teaser-product.global.scss +52 -0
- package/teaser-product/common/teaser-product-common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product.js +2 -2
- package/teaser-product.pure.js +2 -2
- package/teaser.js +1 -1
- package/teaser.pure.js +1 -1
- package/time-input/_time-input.global.scss +11 -0
- package/time-input/time-input.component.js +1 -1
- package/{time-input.component-Dw8pPYDK.js → time-input.component-j2vUlNKx.js} +15 -8
- package/time-input.js +1 -1
- package/time-input.pure.js +1 -1
- package/timetable-form/_timetable-form.global.scss +107 -0
- package/timetable-form/timetable-form/timetable-form.component.js +1 -1
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/timetable-form.js +4 -4
- package/timetable-form.pure.js +4 -4
- package/timetable-occupancy/_timetable-occupancy.global.scss +10 -0
- package/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/timetable-occupancy-icon.js +1 -1
- package/timetable-occupancy-icon.pure.js +1 -1
- package/{timetable-occupancy.component-DGQ20zH1.js → timetable-occupancy.component-B040dznI.js} +17 -13
- package/timetable-occupancy.js +1 -1
- package/timetable-occupancy.pure.js +1 -1
- package/title/_title.global.scss +16 -0
- package/title/title-base.js +1 -1
- package/title/title.component.js +1 -1
- package/{title-base-JBhKD3ur.js → title-base-DWrwrsx4.js} +1 -1
- package/{title.component-VnTeqomb.js → title.component-BZ0nVpam.js} +2 -2
- package/title.js +2 -2
- package/title.pure.js +2 -2
- package/toast/_toast.global.scss +18 -0
- package/toast/toast.component.js +1 -1
- package/{toast.component-BMN90Ouu.js → toast.component-Dlr0Koxu.js} +6 -7
- package/toast.js +1 -1
- package/toast.pure.js +1 -1
- package/toggle/_toggle.global.scss +48 -0
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +1 -1
- package/toggle-check/_toggle-check.global.scss +32 -0
- package/toggle-check/toggle-check.component.js +1 -1
- package/toggle-check.js +1 -1
- package/toggle-check.pure.js +1 -1
- package/toggle.js +2 -2
- package/toggle.pure.js +2 -2
- package/tooltip/_tooltip.global.scss +20 -0
- package/tooltip/tooltip.component.js +1 -1
- package/{tooltip.component-NfyDxfw7.js → tooltip.component-BLzyft0C.js} +25 -25
- package/tooltip.js +1 -1
- package/tooltip.pure.js +1 -1
- package/train/_train.global.scss +66 -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 +1 -1
- package/train/train-wagon-common.js +1 -1
- package/{train-formation.component-DVxNBPIB.js → train-formation.component-Di5d_G5x.js} +1 -1
- package/{train-wagon-common-CDCsWVgi.js → train-wagon-common-HuRuHdNZ.js} +1 -1
- package/{train.component-DxadS7O8.js → train.component-Dwp6ltDo.js} +1 -1
- package/train.js +4 -4
- package/train.pure.js +4 -4
- package/visual-checkbox/_visual-checkbox.global.scss +38 -0
- package/visual-checkbox/visual-checkbox.component.js +1 -1
- package/visual-checkbox.js +1 -1
- package/visual-checkbox.pure.js +1 -1
- package/a11y.css +0 -20
- package/action-group.component-BMYAFyHh.js +0 -156
- package/animation.css +0 -14
- package/badge.css +0 -32
- package/calendar-cell-base-element-CUG1qYFb.js +0 -23
- package/calendar.component-oS_T4s4k.js +0 -1065
- package/core/decorators/host-attributes.js +0 -17
- package/core/eventing/composed-path-has-attribute.js +0 -7
- package/core/eventing/throttle.js +0 -11
- package/core/styles/badge.scss +0 -3
- package/core/styles/core.scss +0 -651
- package/core/styles/layout.scss +0 -20
- package/core/styles/mixins/buttons.scss +0 -12
- package/core/styles/mixins/dev_and_debug.scss +0 -8
- package/core/styles/mixins/image.scss +0 -43
- package/core/styles/mixins/inputs.scss +0 -11
- package/core/styles/mixins/panel.scss +0 -80
- package/core/styles/mixins/popover.scss +0 -14
- package/core/styles/mixins/table.scss +0 -185
- package/core/styles/mixins/timetable-form.scss +0 -63
- package/core/styles/mixins/typo.scss +0 -237
- package/core/styles/option-panel-common.global.scss +0 -11
- package/core/styles/option-panel-common.scss +0 -157
- package/core/styles/theme.scss +0 -20
- package/core/styles/timetable-form.scss +0 -27
- package/core/styles/typography.private.scss +0 -9
- package/core.css +0 -2713
- package/development/action-group.component-wgXPpkQe.js +0 -215
- package/development/autocomplete-base-element-DQiZ6hhk.js +0 -683
- package/development/block-link-common-DNvRfeay.js +0 -99
- package/development/breadcrumb-group.component-BUBfl6LV.js +0 -193
- package/development/breadcrumb.component-D6Cd2FPo.js +0 -34
- package/development/calendar-cell-base-element-mWRSDeWc.js +0 -38
- package/development/calendar-day.component-BHvdRxll.js +0 -139
- package/development/calendar.component-CjlcDyS5.js +0 -1450
- package/development/carousel-list.component-DpDh5tqB.js +0 -133
- package/development/carousel.component-ClWvnZ8s.js +0 -139
- package/development/chip-group.component-Sgmi-kSy.js +0 -403
- package/development/core/decorators/host-attributes.d.ts +0 -22
- package/development/core/decorators/host-attributes.d.ts.map +0 -1
- package/development/core/decorators/host-attributes.js +0 -41
- package/development/core/eventing/composed-path-has-attribute.d.ts +0 -10
- package/development/core/eventing/composed-path-has-attribute.d.ts.map +0 -1
- package/development/core/eventing/composed-path-has-attribute.js +0 -19
- package/development/core/eventing/throttle.d.ts +0 -3
- package/development/core/eventing/throttle.d.ts.map +0 -1
- package/development/core/eventing/throttle.js +0 -18
- package/development/core/interfaces/overlay-close-details.d.ts +0 -6
- package/development/core/interfaces/overlay-close-details.d.ts.map +0 -1
- package/development/date-input.component-HxRyCudr.js +0 -302
- package/development/dialog-title.component-0uNsUR2C.js +0 -29
- package/development/error.component-WCkiwM7_.js +0 -53
- package/development/expansion-panel.component-DptYMbwV.js +0 -317
- package/development/file-selector-common-CGL95Rnw.js +0 -412
- package/development/flip-card.component-DujrPKzU.js +0 -185
- package/development/form-field.component-CPWBCHer.js +0 -702
- package/development/header-action-common-Be0XQge2.js +0 -86
- package/development/header.component-C4e7CNql.js +0 -334
- package/development/icon-base-DrBHy9BT.js +0 -163
- package/development/inline-link-common-gmt6yz3v.js +0 -18
- package/development/journey-header.component-CA4juz9x.js +0 -146
- package/development/link-common-2RGn9Qz_.js +0 -26
- package/development/link-list.component-B90qHOUD.js +0 -97
- package/development/map-container.component-D0UVTolK.js +0 -176
- package/development/menu-action-common-DRXQc85Y.js +0 -32
- package/development/menu.component-Cv9wRj4H.js +0 -365
- package/development/mini-button-link.component-kpRsi8I2.js +0 -39
- package/development/navigation-action-common-fkYNyX19.js +0 -56
- package/development/navigation-list.component-Dvv-bZ2V.js +0 -86
- package/development/navigation-marker.component-DMqe-VlY.js +0 -120
- package/development/navigation-section.component-iaypc6yQ.js +0 -346
- package/development/navigation.component-CqNkBvEs.js +0 -315
- package/development/optgroup-base-element-CLfE6pmz.js +0 -147
- package/development/option.component-CV6cZnJe.js +0 -131
- package/development/paginator-common-BCeNUko_.js +0 -410
- package/development/paginator.component-BwLUSpDj.js +0 -261
- package/development/popover/popover.component.d.ts +0 -111
- package/development/popover/popover.component.d.ts.map +0 -1
- package/development/popover/popover.component.js +0 -2
- package/development/popover.component-BmTfHMFw.js +0 -564
- package/development/radio-button-common-G0jLFo41.js +0 -129
- package/development/select.component-CUjF11sq.js +0 -807
- package/development/selection-expansion-panel.component-BT78Qhbf.js +0 -186
- package/development/selection-group-base-element-DRT3Ctp2.js +0 -152
- package/development/sidebar-container.component-CxwDKxv9.js +0 -100
- package/development/skiplink-list.component-m7xm-pns.js +0 -129
- package/development/slider.component-D_nLTlRF.js +0 -346
- package/development/step-label.component-Bo7Z0w7N.js +0 -127
- package/development/step.component-CcjtUFyR.js +0 -155
- package/development/stepper.component-80S-oXrH.js +0 -422
- package/development/styles-Cctez2BS.js +0 -22
- package/development/tab-group.component-D4fvd6Uu.js +0 -265
- package/development/tab-label.component-CNX8bsJL.js +0 -235
- package/development/tab-nav-bar.component-B_mi8GGR.js +0 -109
- package/development/tag-group.component-Db8prSBL.js +0 -194
- package/development/tag.component-DG1uxD28.js +0 -238
- package/development/teaser-product.component-DMyuB-cH.js +0 -37
- package/development/teaser.component-CF_NUbwJ.js +0 -116
- package/development/time-input.component-XxzRoupm.js +0 -187
- package/development/timetable-occupancy-icon.component-UBmyZsTO.js +0 -95
- package/development/timetable-occupancy.component-DMm242Fr.js +0 -122
- package/development/title-base-D_Rjyk_j.js +0 -102
- package/development/title.component-CMxYhTfw.js +0 -71
- package/development/toggle.component-B03k5qc1.js +0 -243
- package/development/tooltip.component-D8zik3p4.js +0 -369
- package/development/train-wagon-common-Dg-BjUtC.js +0 -441
- package/development/train.component-dECIGw2x.js +0 -239
- package/header-action-common-DuPx0U2o.js +0 -64
- package/inline-link-common-BqqH1ExY.js +0 -13
- package/layout.css +0 -30
- package/lists.css +0 -194
- package/navigation-action-common-x7PMfho0.js +0 -38
- package/normalize.css +0 -95
- package/paginator.component-DB8l-B6J.js +0 -208
- package/popover/popover.component.js +0 -2
- package/popover.component-DJruKzY-.js +0 -373
- package/scrollbar.css +0 -124
- package/styles-DAMaYe4p.js +0 -5
- package/tab-label.component-DvvSohaG.js +0 -157
- package/table.css +0 -267
- package/timetable-form.css +0 -73
- package/typography.css +0 -67
- /package/{accordion.component-DbuSYzV1.js → accordion.component-ClJHZh_N.js} +0 -0
- /package/{alert-group.component-BqJ6B49z.js → alert-group.component-Ck1kYZb4.js} +0 -0
- /package/{alert.component-DN7sW2NC.js → alert.component-B8EGWmcc.js} +0 -0
- /package/{breadcrumb.component-Kk1U6Iju.js → breadcrumb.component-CC8MxtJj.js} +0 -0
- /package/{button-common-BQdNXKwl.js → button-common-Br6zOEgv.js} +0 -0
- /package/{card-action-common-BNdGcJl-.js → card-action-common-DRSSDHqY.js} +0 -0
- /package/{card-badge.component-BLAK_y8x.js → card-badge.component-B-uJVrxT.js} +0 -0
- /package/{card.component-WUQRK9jT.js → card.component-Bwuv9ur1.js} +0 -0
- /package/{chip-label.component-BLbhqUAp.js → chip-label.component-DVUxt7Sk.js} +0 -0
- /package/{chip.component-gcvF3pEX.js → chip.component-SLuNizyV.js} +0 -0
- /package/{clock.component-Cqrl999I.js → clock.component-gnEqkZ4T.js} +0 -0
- /package/{compact-paginator.component-BAuShgQE.js → compact-paginator.component-CmPlZsd4.js} +0 -0
- /package/{container.component-sQtiqWxT.js → container.component-DJgFIJ0b.js} +0 -0
- /package/core/styles/{disable-animation.scss → disable-animation-extension.scss} +0 -0
- /package/core/styles/{core → features}/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -0
- /package/core/styles/{normalize.scss → features/normalize.scss} +0 -0
- /package/core/styles/{scrollbar.private.scss → features/scrollbar.private.scss} +0 -0
- /package/core/styles/mixins/{animation.scss → _animation.scss} +0 -0
- /package/core/styles/mixins/{font-face.scss → _font-face.scss} +0 -0
- /package/core/styles/{core/mediaqueries.scss → mixins/_mediaqueries.scss} +0 -0
- /package/core/styles/{node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss → mixins/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss} +0 -0
- /package/{dialog-actions.component-DxmjSvd-.js → dialog-actions.component-CHFJ8HjT.js} +0 -0
- /package/{dialog-close-button.component-B8troaaQ.js → dialog-close-button.component-CV55ej8Q.js} +0 -0
- /package/{dialog-content.component-Chfg-IY1.js → dialog-content.component-D7SeDETW.js} +0 -0
- /package/{dialog-title.component-BbcbQXjp.js → dialog-title.component-DP7l1zQE.js} +0 -0
- /package/{disable-animation.css → disable-animation-extension.css} +0 -0
- /package/{divider.component-WsZcNUnN.js → divider.component-wL7Cw3YB.js} +0 -0
- /package/{element-C7t5_1gu.js → element-CvshSA3k.js} +0 -0
- /package/{error.component-D9Tu2YIl.js → error.component-D0rmgyFk.js} +0 -0
- /package/{expansion-panel-content.component-WG1cwhjd.js → expansion-panel-content.component-Dm761peO.js} +0 -0
- /package/{expansion-panel-header.component-CnUqRql_.js → expansion-panel-header.component-Cli4Qy1p.js} +0 -0
- /package/{flip-card-details.component-BgOeJ53R.js → flip-card-details.component-D4C0Fde7.js} +0 -0
- /package/{flip-card-summary.component-D5cKgj47.js → flip-card-summary.component-ZvTeHtPV.js} +0 -0
- /package/{footer.component-DsIoOLu-.js → footer.component-x4yuXpWV.js} +0 -0
- /package/{header-environment.component-B0VYZh7C.js → header-environment.component-Diy44YpD.js} +0 -0
- /package/{hint.component-DTKfI9tq.js → hint.component-BZZJXuHG.js} +0 -0
- /package/{icon-sidebar-container.component-CDBkiGlz.js → icon-sidebar-container.component-CYVyqKnZ.js} +0 -0
- /package/{icon-sidebar-content.component-CN4Que2a.js → icon-sidebar-content.component-C5ZspZQk.js} +0 -0
- /package/{icon-sidebar.component-DA2cmcyy.js → icon-sidebar.component-BkqYbGHz.js} +0 -0
- /package/{journey-header.component-CXyULeHJ.js → journey-header.component-Ct9LmhWY.js} +0 -0
- /package/{lead-container.component-CdfHJFFN.js → lead-container.component-Fv9F5Yh4.js} +0 -0
- /package/{link-common-ezSu7e9c.js → link-common-C4Jbge1L.js} +0 -0
- /package/{link-list-base-C12PTC8e.js → link-list-base-Dgu0yeTL.js} +0 -0
- /package/{loading-indicator-circle.component-CSU2Ludy.js → loading-indicator-circle.component-BSdKx0eK.js} +0 -0
- /package/{loading-indicator.component-DxyhIaFo.js → loading-indicator.component-B2cGE1Mj.js} +0 -0
- /package/{logo.component-DVMNS8Op.js → logo.component-BOxQbVu9.js} +0 -0
- /package/{mini-button-link.component-B8HmvVCg.js → mini-button-link.component-MBesHG--.js} +0 -0
- /package/{mini-calendar-day.component-CVYqN3Yn.js → mini-calendar-day.component-UvIp06lc.js} +0 -0
- /package/{mini-calendar-month.component-DbiqMOH8.js → mini-calendar-month.component-BZV7QSlC.js} +0 -0
- /package/{mini-calendar.component-BKzbqHim.js → mini-calendar.component-B6EGO9bp.js} +0 -0
- /package/{notification.component-CDGtGwRv.js → notification.component-IRuswhzC.js} +0 -0
- /package/{option-hint.component-NSxCKXEy.js → option-hint.component-CUf2d2d5.js} +0 -0
- /package/{panel-mixin-XQXElTGt.js → panel-mixin-CG-f0J6K.js} +0 -0
- /package/{sbb-tokens-BBic3kP6.js → sbb-tokens-C-MoUcho.js} +0 -0
- /package/{selection-action-panel.component-DCGJQ3Mx.js → selection-action-panel.component-m13MKp44.js} +0 -0
- /package/{selection-expansion-panel.component-Cu1egfTY.js → selection-expansion-panel.component-BMI-n5Xc.js} +0 -0
- /package/{sidebar-close-button.component-8owwjvk3.js → sidebar-close-button.component-BoOFzuBn.js} +0 -0
- /package/{sidebar-container.component-Dcke-Uhr.js → sidebar-container.component-BFm6HnIu.js} +0 -0
- /package/{sidebar-content.component-CYupfsq_.js → sidebar-content.component-DFLqVK-O.js} +0 -0
- /package/{sidebar-title.component-Cf64lCJx.js → sidebar-title.component-4B18yGLO.js} +0 -0
- /package/{sidebar.component-LaqQzMo2.js → sidebar.component-VL6TFd9H.js} +0 -0
- /package/{signet.component-3Xfke8uk.js → signet.component-DoXHpxDU.js} +0 -0
- /package/{status.component-mel7wA1j.js → status.component-Cg671ic2.js} +0 -0
- /package/{step-label.component-BGSaHafq.js → step-label.component-olqRA-s7.js} +0 -0
- /package/{styles-DisU4TWi.js → styles-DGAxTLMz.js} +0 -0
- /package/{tab.component-D6hfhlZw.js → tab.component-C5xxMwwX.js} +0 -0
- /package/{table-wrapper.component-C83EYuZP.js → table-wrapper.component-BzmzJJim.js} +0 -0
- /package/{teaser-hero.component-mv6HL4vm.js → teaser-hero.component-BNV8sgb6.js} +0 -0
- /package/{teaser-panel.component-qRmy2lbz.js → teaser-panel.component-Bfhra0zG.js} +0 -0
- /package/{teaser-product-common-J1KZ2Hlw.js → teaser-product-common-D7kWWxU-.js} +0 -0
- /package/{teaser-product.component-BcleFVcu.js → teaser-product.component-DHu47PGd.js} +0 -0
- /package/{teaser.component-BOqCERR7.js → teaser.component-CkIii0_d.js} +0 -0
- /package/{timetable-form-details.component-0c6h6shd.js → timetable-form-details.component-BTRh4w9g.js} +0 -0
- /package/{timetable-form-field.component-Cya8n2Ms.js → timetable-form-field.component-BPKgSLQb.js} +0 -0
- /package/{timetable-form-swap-button.component-rI_0UYJw.js → timetable-form-swap-button.component-DgUiFKbA.js} +0 -0
- /package/{timetable-form.component-DVps6baq.js → timetable-form.component-Crq-rb5Z.js} +0 -0
- /package/{timetable-occupancy-icon.component-ABh1bz-X.js → timetable-occupancy-icon.component-9RhBPwBN.js} +0 -0
- /package/{toggle-check.component-BcQ5ht0O.js → toggle-check.component-BNGDAvXJ.js} +0 -0
- /package/{toggle-option.component-DQcPDXyl.js → toggle-option.component-UXno4hFd.js} +0 -0
- /package/{toggle.component-DARkqJol.js → toggle.component-Cz3OnOMI.js} +0 -0
- /package/{train-blocked-passage.component-B601YYJl.js → train-blocked-passage.component-Bk_YvTRh.js} +0 -0
- /package/{visual-checkbox.component-YhX5Qk3j.js → visual-checkbox.component-CPIhZcmN.js} +0 -0
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { html as n, isServer as r, nothing as i, unsafeCSS as a } from "lit";
|
|
3
|
+
import { property as o, state as s } from "lit/decorators.js";
|
|
4
|
+
import { MONDAY as c, SbbElement as l, SbbFormAssociatedMixin as ee, SbbLanguageController as te, THURSDAY as ne, TUESDAY as re, WEDNESDAY as ie, buttonResetStyles as ae, defaultDateAdapter as oe, forceType as u, handleDistinctChange as se, i18nCalendarDateSelection as d, i18nCalendarWeekNumber as f, i18nNextMonth as ce, i18nNextYear as le, i18nNextYearRange as ue, i18nPreviousMonth as de, i18nPreviousYear as fe, i18nPreviousYearRange as pe, i18nYearMonthSelection as me, isArrowKeyOrPageKeysPressed as he, plainDate as p, readConfig as ge, screenReaderOnlyStyles as _e } from "./core.js";
|
|
5
|
+
import { SbbSecondaryButtonElement as ve } from "./button.pure.js";
|
|
6
|
+
import { SbbIconElement as ye } from "./icon.pure.js";
|
|
7
|
+
import { SbbCalendarDayElement as be } from "./calendar/calendar-day/calendar-day.component.js";
|
|
8
|
+
import { SbbCalendarMonthElement as xe } from "./calendar/calendar-month/calendar-month.component.js";
|
|
9
|
+
import { SbbCalendarWeekdayElement as Se } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
10
|
+
import { SbbCalendarWeeknumberElement as Ce } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
11
|
+
import { SbbCalendarYearElement as we } from "./calendar/calendar-year/calendar-year.component.js";
|
|
12
|
+
//#region src/elements/calendar/calendar/calendar.scss?inline
|
|
13
|
+
var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(--sbb-typo-line-height-text)}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:flex;flex-wrap:wrap;gap:var(--sbb-calendar-tables-gap);position:relative}:is(.sbb-calendar__year-view,.sbb-calendar__month-view){position:absolute;inset-block-start:0;inset-inline-start:0}:host(:not(:is(:state(view-day),[state--view-day]))) .sbb-calendar__day-view{visibility:hidden}.sbb-calendar__table-header{display:flex;align-items:center;gap:var(--sbb-calendar-control-gap);height:var(--sbb-size-element-xs);margin-block-end:var(--sbb-spacing-fixed-4x)}.sbb-calendar__table-header span{flex:1 1 auto;padding-inline-start:var(--sbb-spacing-fixed-3x);color:var(--sbb-calendar-control-view-change-color)}.sbb-calendar__control{-webkit-tap-highlight-color:transparent}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;flex:0 0}.sbb-calendar__table :is(thead,tbody){text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{width:var(--sbb-calendar-cell-size);min-width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0;font-size:var(--sbb-text-font-size-xs);font-weight:400;letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}:host(:not(:is(:state(enhanced),[state--enhanced]))) sbb-calendar-day{--sbb-calendar-day-justify-content: center;--sbb-calendar-day-height: var(--sbb-calendar-day-size);--sbb-calendar-day-extra-display: none;--sbb-calendar-day-value-height: unset}", m = 7, h = 4, g = 4, Ee = 12, _ = 24, v = class extends Event {
|
|
14
|
+
get range() {
|
|
15
|
+
return this._range;
|
|
16
|
+
}
|
|
17
|
+
constructor(e) {
|
|
18
|
+
super("monthchange", {
|
|
19
|
+
bubbles: !0,
|
|
20
|
+
composed: !0
|
|
21
|
+
}), this._range = Object.freeze(e || []);
|
|
22
|
+
}
|
|
23
|
+
}, y = class extends Event {
|
|
24
|
+
get dateSelected() {
|
|
25
|
+
return this._dateSelected;
|
|
26
|
+
}
|
|
27
|
+
constructor(e) {
|
|
28
|
+
super("dateselected", {
|
|
29
|
+
bubbles: !0,
|
|
30
|
+
composed: !0
|
|
31
|
+
}), this._dateSelected = Object.freeze(e);
|
|
32
|
+
}
|
|
33
|
+
}, b = (() => {
|
|
34
|
+
let b = ee(l), x = [], S, C = [], w = [], T, E = [], De = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L, R = [], z = [], B, V = [], H = [], U, W, G = [], K = [], q, J = [], Y = [], X, Z = [], Q = [], $, Oe = [], ke = [], Ae, je = [], Me = [];
|
|
35
|
+
return class extends b {
|
|
36
|
+
static {
|
|
37
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
38
|
+
S = [u(), o({ type: Number })], T = [o()], D = [p(), o()], A = [p(), o()], N = [
|
|
39
|
+
u(),
|
|
40
|
+
se((e, t) => e._onMultipleChanged(t)),
|
|
41
|
+
o({ type: Boolean })
|
|
42
|
+
], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [u(), o({ attribute: "fixed-month" })], W = [o({ reflect: !0 })], q = [u(), o({
|
|
43
|
+
attribute: "week-numbers",
|
|
44
|
+
type: Boolean
|
|
45
|
+
})], X = [s()], $ = [s()], Ae = [s()], e(this, null, S, {
|
|
46
|
+
kind: "accessor",
|
|
47
|
+
name: "amount",
|
|
48
|
+
static: !1,
|
|
49
|
+
private: !1,
|
|
50
|
+
access: {
|
|
51
|
+
has: (e) => "amount" in e,
|
|
52
|
+
get: (e) => e.amount,
|
|
53
|
+
set: (e, t) => {
|
|
54
|
+
e.amount = t;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
metadata: t
|
|
58
|
+
}, C, w), e(this, null, T, {
|
|
59
|
+
kind: "accessor",
|
|
60
|
+
name: "view",
|
|
61
|
+
static: !1,
|
|
62
|
+
private: !1,
|
|
63
|
+
access: {
|
|
64
|
+
has: (e) => "view" in e,
|
|
65
|
+
get: (e) => e.view,
|
|
66
|
+
set: (e, t) => {
|
|
67
|
+
e.view = t;
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
metadata: t
|
|
71
|
+
}, E, De), e(this, null, D, {
|
|
72
|
+
kind: "accessor",
|
|
73
|
+
name: "min",
|
|
74
|
+
static: !1,
|
|
75
|
+
private: !1,
|
|
76
|
+
access: {
|
|
77
|
+
has: (e) => "min" in e,
|
|
78
|
+
get: (e) => e.min,
|
|
79
|
+
set: (e, t) => {
|
|
80
|
+
e.min = t;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
metadata: t
|
|
84
|
+
}, O, k), e(this, null, A, {
|
|
85
|
+
kind: "accessor",
|
|
86
|
+
name: "max",
|
|
87
|
+
static: !1,
|
|
88
|
+
private: !1,
|
|
89
|
+
access: {
|
|
90
|
+
has: (e) => "max" in e,
|
|
91
|
+
get: (e) => e.max,
|
|
92
|
+
set: (e, t) => {
|
|
93
|
+
e.max = t;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
metadata: t
|
|
97
|
+
}, j, M), e(this, null, N, {
|
|
98
|
+
kind: "accessor",
|
|
99
|
+
name: "multiple",
|
|
100
|
+
static: !1,
|
|
101
|
+
private: !1,
|
|
102
|
+
access: {
|
|
103
|
+
has: (e) => "multiple" in e,
|
|
104
|
+
get: (e) => e.multiple,
|
|
105
|
+
set: (e, t) => {
|
|
106
|
+
e.multiple = t;
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
metadata: t
|
|
110
|
+
}, P, F), e(this, null, I, {
|
|
111
|
+
kind: "setter",
|
|
112
|
+
name: "value",
|
|
113
|
+
static: !1,
|
|
114
|
+
private: !1,
|
|
115
|
+
access: {
|
|
116
|
+
has: (e) => "value" in e,
|
|
117
|
+
set: (e, t) => {
|
|
118
|
+
e.value = t;
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
metadata: t
|
|
122
|
+
}, null, x), e(this, null, L, {
|
|
123
|
+
kind: "accessor",
|
|
124
|
+
name: "_value",
|
|
125
|
+
static: !1,
|
|
126
|
+
private: !1,
|
|
127
|
+
access: {
|
|
128
|
+
has: (e) => "_value" in e,
|
|
129
|
+
get: (e) => e._value,
|
|
130
|
+
set: (e, t) => {
|
|
131
|
+
e._value = t;
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
metadata: t
|
|
135
|
+
}, R, z), e(this, null, B, {
|
|
136
|
+
kind: "accessor",
|
|
137
|
+
name: "dateFilter",
|
|
138
|
+
static: !1,
|
|
139
|
+
private: !1,
|
|
140
|
+
access: {
|
|
141
|
+
has: (e) => "dateFilter" in e,
|
|
142
|
+
get: (e) => e.dateFilter,
|
|
143
|
+
set: (e, t) => {
|
|
144
|
+
e.dateFilter = t;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
metadata: t
|
|
148
|
+
}, V, H), e(this, null, U, {
|
|
149
|
+
kind: "setter",
|
|
150
|
+
name: "fixedMonth",
|
|
151
|
+
static: !1,
|
|
152
|
+
private: !1,
|
|
153
|
+
access: {
|
|
154
|
+
has: (e) => "fixedMonth" in e,
|
|
155
|
+
set: (e, t) => {
|
|
156
|
+
e.fixedMonth = t;
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
metadata: t
|
|
160
|
+
}, null, x), e(this, null, W, {
|
|
161
|
+
kind: "accessor",
|
|
162
|
+
name: "orientation",
|
|
163
|
+
static: !1,
|
|
164
|
+
private: !1,
|
|
165
|
+
access: {
|
|
166
|
+
has: (e) => "orientation" in e,
|
|
167
|
+
get: (e) => e.orientation,
|
|
168
|
+
set: (e, t) => {
|
|
169
|
+
e.orientation = t;
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
metadata: t
|
|
173
|
+
}, G, K), e(this, null, q, {
|
|
174
|
+
kind: "accessor",
|
|
175
|
+
name: "weekNumbers",
|
|
176
|
+
static: !1,
|
|
177
|
+
private: !1,
|
|
178
|
+
access: {
|
|
179
|
+
has: (e) => "weekNumbers" in e,
|
|
180
|
+
get: (e) => e.weekNumbers,
|
|
181
|
+
set: (e, t) => {
|
|
182
|
+
e.weekNumbers = t;
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
metadata: t
|
|
186
|
+
}, J, Y), e(this, null, X, {
|
|
187
|
+
kind: "accessor",
|
|
188
|
+
name: "_activeDate",
|
|
189
|
+
static: !1,
|
|
190
|
+
private: !1,
|
|
191
|
+
access: {
|
|
192
|
+
has: (e) => "_activeDate" in e,
|
|
193
|
+
get: (e) => e._activeDate,
|
|
194
|
+
set: (e, t) => {
|
|
195
|
+
e._activeDate = t;
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
metadata: t
|
|
199
|
+
}, Z, Q), e(this, null, $, {
|
|
200
|
+
kind: "accessor",
|
|
201
|
+
name: "_calendarView",
|
|
202
|
+
static: !1,
|
|
203
|
+
private: !1,
|
|
204
|
+
access: {
|
|
205
|
+
has: (e) => "_calendarView" in e,
|
|
206
|
+
get: (e) => e._calendarView,
|
|
207
|
+
set: (e, t) => {
|
|
208
|
+
e._calendarView = t;
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
metadata: t
|
|
212
|
+
}, Oe, ke), e(this, null, Ae, {
|
|
213
|
+
kind: "accessor",
|
|
214
|
+
name: "_initialized",
|
|
215
|
+
static: !1,
|
|
216
|
+
private: !1,
|
|
217
|
+
access: {
|
|
218
|
+
has: (e) => "_initialized" in e,
|
|
219
|
+
get: (e) => e._initialized,
|
|
220
|
+
set: (e, t) => {
|
|
221
|
+
e._initialized = t;
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
metadata: t
|
|
225
|
+
}, je, Me), t && Object.defineProperty(this, Symbol.metadata, {
|
|
226
|
+
enumerable: !0,
|
|
227
|
+
configurable: !0,
|
|
228
|
+
writable: !0,
|
|
229
|
+
value: t
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
static {
|
|
233
|
+
this.elementName = "sbb-calendar";
|
|
234
|
+
}
|
|
235
|
+
static {
|
|
236
|
+
this.elementDependencies = [
|
|
237
|
+
be,
|
|
238
|
+
xe,
|
|
239
|
+
Se,
|
|
240
|
+
Ce,
|
|
241
|
+
we,
|
|
242
|
+
ye,
|
|
243
|
+
ve
|
|
244
|
+
];
|
|
245
|
+
}
|
|
246
|
+
static {
|
|
247
|
+
this.styles = [
|
|
248
|
+
ae,
|
|
249
|
+
_e,
|
|
250
|
+
a(Te)
|
|
251
|
+
];
|
|
252
|
+
}
|
|
253
|
+
static {
|
|
254
|
+
this.events = {
|
|
255
|
+
dateselected: "dateselected",
|
|
256
|
+
monthchange: "monthchange"
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
#e;
|
|
260
|
+
get amount() {
|
|
261
|
+
return this.#e;
|
|
262
|
+
}
|
|
263
|
+
set amount(e) {
|
|
264
|
+
this.#e = e;
|
|
265
|
+
}
|
|
266
|
+
#t;
|
|
267
|
+
get view() {
|
|
268
|
+
return this.#t;
|
|
269
|
+
}
|
|
270
|
+
set view(e) {
|
|
271
|
+
this.#t = e;
|
|
272
|
+
}
|
|
273
|
+
#n;
|
|
274
|
+
get min() {
|
|
275
|
+
return this.#n;
|
|
276
|
+
}
|
|
277
|
+
set min(e) {
|
|
278
|
+
this.#n = e;
|
|
279
|
+
}
|
|
280
|
+
#r;
|
|
281
|
+
get max() {
|
|
282
|
+
return this.#r;
|
|
283
|
+
}
|
|
284
|
+
set max(e) {
|
|
285
|
+
this.#r = e;
|
|
286
|
+
}
|
|
287
|
+
#i;
|
|
288
|
+
get multiple() {
|
|
289
|
+
return this.#i;
|
|
290
|
+
}
|
|
291
|
+
set multiple(e) {
|
|
292
|
+
this.#i = e;
|
|
293
|
+
}
|
|
294
|
+
set value(e) {
|
|
295
|
+
if (Array.isArray(e)) this._value = e.map((e) => this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))).filter((e) => e !== null).filter((e) => !this._isDayInRange(this._dateAdapter.toIso8601(e)) || this._dateFilter(e)).sort(this._sortDate);
|
|
296
|
+
else {
|
|
297
|
+
let t = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));
|
|
298
|
+
t && (!this._isDayInRange(this._dateAdapter.toIso8601(t)) || this._dateFilter(t)) ? this._value = t : this._value = null;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
get value() {
|
|
302
|
+
return this._value;
|
|
303
|
+
}
|
|
304
|
+
#a;
|
|
305
|
+
get _value() {
|
|
306
|
+
return this.#a;
|
|
307
|
+
}
|
|
308
|
+
set _value(e) {
|
|
309
|
+
this.#a = e;
|
|
310
|
+
}
|
|
311
|
+
#o;
|
|
312
|
+
get dateFilter() {
|
|
313
|
+
return this.#o;
|
|
314
|
+
}
|
|
315
|
+
set dateFilter(e) {
|
|
316
|
+
this.#o = e;
|
|
317
|
+
}
|
|
318
|
+
set fixedMonth(e) {
|
|
319
|
+
let t = e ? e.match(/^(\d{4})-(\d{2})$/) : null;
|
|
320
|
+
this._fixedMonth = t ? this._dateAdapter.createDate(Number(t[1]), Number(t[2]), 1) : null;
|
|
321
|
+
}
|
|
322
|
+
get fixedMonth() {
|
|
323
|
+
return this._fixedMonth ? this._dateAdapter.toIso8601(this._fixedMonth).split("-").slice(0, 2).join("-") : "";
|
|
324
|
+
}
|
|
325
|
+
#s;
|
|
326
|
+
get orientation() {
|
|
327
|
+
return this.#s;
|
|
328
|
+
}
|
|
329
|
+
set orientation(e) {
|
|
330
|
+
this.#s = e;
|
|
331
|
+
}
|
|
332
|
+
#c;
|
|
333
|
+
get weekNumbers() {
|
|
334
|
+
return this.#c;
|
|
335
|
+
}
|
|
336
|
+
set weekNumbers(e) {
|
|
337
|
+
this.#c = e;
|
|
338
|
+
}
|
|
339
|
+
#l;
|
|
340
|
+
get _activeDate() {
|
|
341
|
+
return this.#l;
|
|
342
|
+
}
|
|
343
|
+
set _activeDate(e) {
|
|
344
|
+
this.#l = e;
|
|
345
|
+
}
|
|
346
|
+
#u;
|
|
347
|
+
get _calendarView() {
|
|
348
|
+
return this.#u;
|
|
349
|
+
}
|
|
350
|
+
set _calendarView(e) {
|
|
351
|
+
this.#u = e;
|
|
352
|
+
}
|
|
353
|
+
get _cells() {
|
|
354
|
+
return Array.from((this._calendarView === "day" ? Array.from(this.shadowRoot.querySelectorAll("slot")).flatMap((e) => e.assignedElements({ flatten: !0 })) : this.shadowRoot?.querySelectorAll(`sbb-calendar-${this._calendarView}`)) ?? []);
|
|
355
|
+
}
|
|
356
|
+
#d;
|
|
357
|
+
get _initialized() {
|
|
358
|
+
return this.#d;
|
|
359
|
+
}
|
|
360
|
+
set _initialized(e) {
|
|
361
|
+
this.#d = e;
|
|
362
|
+
}
|
|
363
|
+
constructor() {
|
|
364
|
+
super(), this.#e = (t(this, x), t(this, C, 1)), this.#t = (t(this, w), t(this, E, "day")), this.#n = (t(this, De), t(this, O, null)), this.#r = (t(this, k), t(this, j, null)), this.#i = (t(this, M), t(this, P, !1)), this.#a = (t(this, F), t(this, R, null)), this.#o = (t(this, z), t(this, V, null)), this._fixedMonth = (t(this, H), null), this.#s = t(this, G, "horizontal"), this.#c = (t(this, K), t(this, J, !1)), this._dateAdapter = (t(this, Y), ge().datetime?.dateAdapter ?? oe), this.#l = t(this, Z, this._dateAdapter.today()), this.#u = (t(this, Q), t(this, Oe, "day")), this._weekdays = t(this, ke), this._weeks = [], this._firstVisibleDay = "", this._lastVisibleDay = "", this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this._lastSelection = null, this.#d = t(this, je, !1), this._language = (t(this, Me), new te(this).withHandler(() => {
|
|
365
|
+
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
366
|
+
})), this._sortDate = (e, t) => this._dateAdapter.compareDate(e, t), this._onSlotChange = () => {
|
|
367
|
+
this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
|
|
368
|
+
}, this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1);
|
|
369
|
+
let e = (e) => e.target.closest("sbb-calendar-day") ?? e.composedPath().find((e) => e.localName === "sbb-calendar-day") ?? null;
|
|
370
|
+
this.addEventListener("click", (t) => {
|
|
371
|
+
let n = e(t);
|
|
372
|
+
n && this._selectDate(n.value, t);
|
|
373
|
+
}), this.addEventListener("keydown", (t) => {
|
|
374
|
+
let n = e(t);
|
|
375
|
+
n && this._handleKeyboardEvent(t, n);
|
|
376
|
+
}), this.addEventListener("blur", () => this._lastSelection = null);
|
|
377
|
+
}
|
|
378
|
+
_dateFilter(e) {
|
|
379
|
+
return this.dateFilter?.(e) ?? !0;
|
|
380
|
+
}
|
|
381
|
+
resetPosition() {
|
|
382
|
+
this._resetCalendarView(), this._init();
|
|
383
|
+
}
|
|
384
|
+
connectedCallback() {
|
|
385
|
+
super.connectedCallback(), this.resetPosition(), this.shadowRoot?.addEventListener("slotchange", this._onSlotChange, { capture: !0 });
|
|
386
|
+
}
|
|
387
|
+
disconnectedCallback() {
|
|
388
|
+
super.disconnectedCallback(), this.shadowRoot?.removeEventListener("slotchange", this._onSlotChange, { capture: !0 });
|
|
389
|
+
}
|
|
390
|
+
formResetCallback() {}
|
|
391
|
+
formStateRestoreCallback(e, t) {
|
|
392
|
+
if (t === "autocomplete" || e == null) return;
|
|
393
|
+
let n = (e) => this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));
|
|
394
|
+
if (typeof e == "string") this.value = n(e);
|
|
395
|
+
else if (e instanceof FormData) {
|
|
396
|
+
if (this.multiple) {
|
|
397
|
+
this._readFormData(e).then((e) => this.value = e.map(n).filter((e) => e != null));
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
let t = e.get(this.name);
|
|
401
|
+
t instanceof Blob ? t.text().then((e) => this.value = n(JSON.parse(e))) : this.value = n(t);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
async _readFormData(e) {
|
|
405
|
+
return Promise.all(e.getAll(this.name).map(async (e) => e instanceof Blob ? JSON.parse(await e.text()) : e));
|
|
406
|
+
}
|
|
407
|
+
focus() {
|
|
408
|
+
this._resetFocus = !0, this._focusCell();
|
|
409
|
+
}
|
|
410
|
+
willUpdate(e) {
|
|
411
|
+
super.willUpdate(e), this._initialized && ((e.has("amount") || e.has("orientation") || e.has("fixedMonth")) && this.resetPosition(), e.has("view") && (this._setChosenYear(), this._chosenMonth = void 0, this._calendarView = this.view));
|
|
412
|
+
}
|
|
413
|
+
requestUpdate(e, t, n) {
|
|
414
|
+
super.requestUpdate(e, t, n), e === "_calendarView" && (this.internals.states.delete(`view-${t}`), this.internals.states.add(`view-${this._calendarView}`), this._containingFocus && (this._resetFocus = !0));
|
|
415
|
+
}
|
|
416
|
+
updated(e) {
|
|
417
|
+
super.updated(e), this._setTabIndex(), this._focusCell();
|
|
418
|
+
}
|
|
419
|
+
_onMultipleChanged(e) {
|
|
420
|
+
e && !Array.isArray(this._value) && (this._value = this._value ? [this._value] : []), !e && Array.isArray(this._value) && (this._value = this._value.length ? this._value[0] : null);
|
|
421
|
+
}
|
|
422
|
+
_init(e) {
|
|
423
|
+
if (r) return;
|
|
424
|
+
if (this.hydrationRequired) {
|
|
425
|
+
this.hydrationComplete.then(() => this._init());
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
e && this._assignActiveDate(e);
|
|
429
|
+
let t = this._fixedMonth ?? this._activeDate, n = this.amount < 1 ? 1 : this.amount;
|
|
430
|
+
this._weeks = Array.from({ length: n }, (e, n) => this._createWeekRows(this._dateAdapter.addCalendarMonths(t, n)));
|
|
431
|
+
let i = this._weeks[0][0][0].dateValue;
|
|
432
|
+
this._firstVisibleDay = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(i), this._dateAdapter.getMonth(i), 1));
|
|
433
|
+
let a = this._weeks[n - 1][0][0].dateValue;
|
|
434
|
+
this._lastVisibleDay = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(a), this._dateAdapter.getMonth(a), this._dateAdapter.getNumDaysInMonth(a))), this._years = this._createYearRows(), this._weekNumbers = this._weeks.map((e) => e.flat().sort((e, t) => e.value.localeCompare(t.value)).map((e) => e.weekValue).filter((e, t, n) => n.indexOf(e) === t)), this._initialized = !0;
|
|
435
|
+
}
|
|
436
|
+
_focusCell() {
|
|
437
|
+
this._resetFocus &&= (this._getFirstFocusable()?.focus(), !1);
|
|
438
|
+
}
|
|
439
|
+
_setWeekdays() {
|
|
440
|
+
let e = this._dateAdapter.getDayOfWeekNames("narrow"), t = this._dateAdapter.getDayOfWeekNames("long").map((t, n) => ({
|
|
441
|
+
long: t,
|
|
442
|
+
narrow: e[n]
|
|
443
|
+
})), n = this._dateAdapter.getFirstDayOfWeek();
|
|
444
|
+
this._weekdays = t.slice(n).concat(t.slice(0, n));
|
|
445
|
+
}
|
|
446
|
+
_createWeekRows(e) {
|
|
447
|
+
let t = this._dateAdapter.getNumDaysInMonth(e), n = this._dateAdapter.getFirstWeekOffset(e);
|
|
448
|
+
return this.orientation === "horizontal" ? this._createWeekRowsHorizontal(e, t, n) : this._createWeekRowsVertical(e, t, n);
|
|
449
|
+
}
|
|
450
|
+
_createWeekRowsHorizontal(e, t, n) {
|
|
451
|
+
let r = [[]];
|
|
452
|
+
for (let i = 0, a = n; i < t; i++, a++) {
|
|
453
|
+
a === m && (r.push([]), a = 0);
|
|
454
|
+
let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), i + 1);
|
|
455
|
+
r[r.length - 1].push(this._mapDateToDay(t));
|
|
456
|
+
}
|
|
457
|
+
return r;
|
|
458
|
+
}
|
|
459
|
+
_createWeekRowsVertical(e, t, n) {
|
|
460
|
+
let r = Array.from({ length: m }, () => []);
|
|
461
|
+
for (let i = 0, a = n; i < t; i++, a++) {
|
|
462
|
+
a === m && (a = 0);
|
|
463
|
+
let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), i + 1);
|
|
464
|
+
r[a].push(this._mapDateToDay(t));
|
|
465
|
+
}
|
|
466
|
+
return r;
|
|
467
|
+
}
|
|
468
|
+
_mapDateToDay(e) {
|
|
469
|
+
return {
|
|
470
|
+
value: this._dateAdapter.toIso8601(e),
|
|
471
|
+
dateValue: e,
|
|
472
|
+
dayValue: String(this._dateAdapter.getDate(e)),
|
|
473
|
+
monthValue: String(this._dateAdapter.getMonth(e)),
|
|
474
|
+
yearValue: String(this._dateAdapter.getYear(e)),
|
|
475
|
+
weekValue: this._getWeek(e),
|
|
476
|
+
weekDayValue: this._dateAdapter.getDayOfWeek(e)
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
_getWeek(e) {
|
|
480
|
+
let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), 1, 1), n = this._dateAdapter.getDayOfWeek(t), r = +!![
|
|
481
|
+
c,
|
|
482
|
+
re,
|
|
483
|
+
ie,
|
|
484
|
+
ne
|
|
485
|
+
].includes(n), i = this._dateAdapter.addCalendarDays(t, this._dateAdapter.getFirstWeekOffset(t) * -1);
|
|
486
|
+
for (; this._dateAdapter.compareDate(i, e) <= 0;) {
|
|
487
|
+
let n = this._dateAdapter.addCalendarDays(i, 6);
|
|
488
|
+
if (this._dateAdapter.compareDate(e, n) <= 0) return r > 0 ? r : this._getWeek(this._dateAdapter.addCalendarDays(t, -1));
|
|
489
|
+
i = this._dateAdapter.addCalendarDays(i, m), r++;
|
|
490
|
+
}
|
|
491
|
+
throw Error("The provided date is invalid");
|
|
492
|
+
}
|
|
493
|
+
_mapValueToISODate(e) {
|
|
494
|
+
return typeof e == "string" ? e : this._dateAdapter.toIso8601(e);
|
|
495
|
+
}
|
|
496
|
+
_createMonthRows() {
|
|
497
|
+
let e = Array(12).fill(null).map((e, t) => ({
|
|
498
|
+
value: String(t + 1).padStart(2, "0"),
|
|
499
|
+
monthValue: t + 1
|
|
500
|
+
})), t = 12 / h, n = [];
|
|
501
|
+
for (let r = 0; r < t; r++) n.push(e.slice(h * r, h * (r + 1)));
|
|
502
|
+
this._months = n;
|
|
503
|
+
}
|
|
504
|
+
_createYearRows() {
|
|
505
|
+
let e = this._getStartValueYearView(), t = Array(_).fill(0).map((t, n) => e + n), n = _ / g, r = [];
|
|
506
|
+
for (let e = 0; e < n; e++) r.push(t.slice(g * e, g * (e + 1)));
|
|
507
|
+
return r;
|
|
508
|
+
}
|
|
509
|
+
_getStartValueYearView() {
|
|
510
|
+
let e = 0;
|
|
511
|
+
this.max ? e = this._dateAdapter.getYear(this.max) - _ + 1 : this.min && (e = this._dateAdapter.getYear(this.min));
|
|
512
|
+
let t = this._dateAdapter.getYear(this._activeDate);
|
|
513
|
+
return t - ((t - e) % _ + _) % _;
|
|
514
|
+
}
|
|
515
|
+
_isDayInRange(e) {
|
|
516
|
+
if (!this.min && !this.max) return !0;
|
|
517
|
+
let t = this._dateAdapter.deserialize(e);
|
|
518
|
+
return this._dateAdapter.sameDate(t, this._dateAdapter.clampDate(t, this.min, this.max));
|
|
519
|
+
}
|
|
520
|
+
_selectDate(e, t) {
|
|
521
|
+
if (this._chosenMonth = void 0, this._setChosenYear(), this.multiple) {
|
|
522
|
+
window.getSelection()?.removeAllRanges();
|
|
523
|
+
let n = this._value ? Array.isArray(this._value) ? this._value : [this._value] : [], r = n.map((e) => this._dateAdapter.toIso8601(e));
|
|
524
|
+
if (t.shiftKey && this._lastSelection && r.includes(this._dateAdapter.toIso8601(this._lastSelection)) && !r.includes(this._dateAdapter.toIso8601(e))) {
|
|
525
|
+
let t = this._dateAdapter.compareDate(this._lastSelection, e) < 0 ? 1 : -1, i = [], a = this._lastSelection;
|
|
526
|
+
for (; !this._dateAdapter.sameDate(a, e);) {
|
|
527
|
+
a = this._dateAdapter.addCalendarDays(a, t);
|
|
528
|
+
let e = this._dateAdapter.toIso8601(a);
|
|
529
|
+
r.includes(e) || i.push(e);
|
|
530
|
+
}
|
|
531
|
+
n = this._mergeDates(i, r);
|
|
532
|
+
} else n = n.some((t) => this._dateAdapter.sameDate(t, e)) ? n.filter((t) => !this._dateAdapter.sameDate(t, e)) : [...n, e].sort(this._sortDate);
|
|
533
|
+
this._lastSelection = e, this._value = n, this._emitDateSelectedEvent(this._value.map((e) => this._dateAdapter.deserialize(e)));
|
|
534
|
+
} else (!this._value || this._dateAdapter.compareDate(this._value, e) !== 0) && (this._value = e, this._emitDateSelectedEvent(this._dateAdapter.deserialize(e)));
|
|
535
|
+
}
|
|
536
|
+
_selectMultipleDates(e) {
|
|
537
|
+
this._value = this._mergeDates(e.map((e) => e.value)), this._emitDateSelectedEvent(this._value.map((e) => this._dateAdapter.deserialize(e)));
|
|
538
|
+
}
|
|
539
|
+
_mergeDates(e, t) {
|
|
540
|
+
t ??= this._value.map((e) => this._dateAdapter.toIso8601(e));
|
|
541
|
+
let n = this._cells.filter((e) => !e.disabled).map((e) => this._mapValueToISODate(e.value)), r = e.filter((e) => n.includes(e));
|
|
542
|
+
return t = r.every((e) => t.includes(e)) ? t.filter((e) => !r.includes(e)) : [...t, ...r].filter((e, t, n) => n.indexOf(e) === t), t.map((e) => this._dateAdapter.deserialize(e)).sort(this._sortDate);
|
|
543
|
+
}
|
|
544
|
+
_emitDateSelectedEvent(e) {
|
|
545
|
+
this.dispatchEvent(new y(e)), this.dispatchEvent(new InputEvent("input", {
|
|
546
|
+
bubbles: !0,
|
|
547
|
+
composed: !0
|
|
548
|
+
})), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
549
|
+
}
|
|
550
|
+
_emitMonthChange() {
|
|
551
|
+
let e = this._weeks.flat(2).sort((e, t) => e.value.localeCompare(t.value));
|
|
552
|
+
this.dispatchEvent(new v(e));
|
|
553
|
+
}
|
|
554
|
+
_setChosenYear() {
|
|
555
|
+
if (this.view === "month") {
|
|
556
|
+
let e;
|
|
557
|
+
e = this.multiple ? this.value.at(-1) : this.value, this._chosenYear = this._dateAdapter.getYear(e ?? this._dateAdapter.today());
|
|
558
|
+
} else this._chosenYear = void 0;
|
|
559
|
+
}
|
|
560
|
+
_assignActiveDate(e) {
|
|
561
|
+
this._activeDate = this._dateAdapter.clampDate(e, this.min, this.max);
|
|
562
|
+
}
|
|
563
|
+
_goToDifferentMonth(e) {
|
|
564
|
+
this._init(this._dateAdapter.addCalendarMonths(this._activeDate, e)), this._emitMonthChange();
|
|
565
|
+
}
|
|
566
|
+
_goToDifferentYear(e) {
|
|
567
|
+
this._chosenYear += e, this._activeDate = this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate)), this._init();
|
|
568
|
+
}
|
|
569
|
+
_goToDifferentYearRange(e) {
|
|
570
|
+
this._init(this._dateAdapter.addCalendarYears(this._activeDate, e));
|
|
571
|
+
}
|
|
572
|
+
_prevDisabled(e) {
|
|
573
|
+
return this.min ? this._dateAdapter.compareDate(e, this.min) < 0 : !1;
|
|
574
|
+
}
|
|
575
|
+
_nextDisabled(e) {
|
|
576
|
+
return this.max ? this._dateAdapter.compareDate(e, this.max) > 0 : !1;
|
|
577
|
+
}
|
|
578
|
+
_previousMonthDisabled() {
|
|
579
|
+
let e = this._dateAdapter.addCalendarDays(this._activeDate, this._dateAdapter.getDate(this._activeDate) * -1);
|
|
580
|
+
return this._prevDisabled(e);
|
|
581
|
+
}
|
|
582
|
+
_nextMonthDisabled() {
|
|
583
|
+
let e = this._dateAdapter.addCalendarMonths(this._activeDate, this.amount < 1 ? 1 : this.amount);
|
|
584
|
+
return e = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), 1), this._nextDisabled(e);
|
|
585
|
+
}
|
|
586
|
+
_previousYearDisabled() {
|
|
587
|
+
let e = this._dateAdapter.createDate(this._dateAdapter.getYear(this._activeDate) - 1, 12, 31);
|
|
588
|
+
return this._prevDisabled(e);
|
|
589
|
+
}
|
|
590
|
+
_nextYearDisabled() {
|
|
591
|
+
let e = this._dateAdapter.createDate(this._dateAdapter.getYear(this._activeDate) + (this.amount < 1 ? 1 : this.amount), 1, 1);
|
|
592
|
+
return this._nextDisabled(e);
|
|
593
|
+
}
|
|
594
|
+
_previousYearRangeDisabled() {
|
|
595
|
+
let e = this._dateAdapter.createDate(this._years[0][0] - 1, 12, 31);
|
|
596
|
+
return this._prevDisabled(e);
|
|
597
|
+
}
|
|
598
|
+
_nextYearRangeDisabled() {
|
|
599
|
+
let e = this._years.flat(2).at(-1), t = this._dateAdapter.createDate(e + 1, 1, 1);
|
|
600
|
+
return this._nextDisabled(t);
|
|
601
|
+
}
|
|
602
|
+
_handleTableBlur(e) {
|
|
603
|
+
e?.localName !== "sbb-calendar-day" && this._setTabIndex();
|
|
604
|
+
}
|
|
605
|
+
_setTabIndex() {
|
|
606
|
+
Array.from(this._cells.filter((e) => e.tabIndex === 0) ?? []).forEach((e) => e.tabIndex = -1);
|
|
607
|
+
let e = this._getFirstFocusable();
|
|
608
|
+
e && (e.tabIndex = 0);
|
|
609
|
+
}
|
|
610
|
+
_getFirstFocusable() {
|
|
611
|
+
if (this._calendarView === "day") {
|
|
612
|
+
let e = this._cells.find((e) => e.matches(":is(:state(selected),[state--selected])")) ?? this._cells.find((e) => e.matches(":is(:state(current),[state--current])"));
|
|
613
|
+
return e && !e.disabled ? e : this._getFirstFocusableDay();
|
|
614
|
+
} else {
|
|
615
|
+
let e = this.shadowRoot?.querySelector(`sbb-calendar-${this._calendarView}:is(:state(selected),[state--selected])`) ?? this.shadowRoot?.querySelector(`sbb-calendar-${this._calendarView}:is(:state(current),[state--current])`);
|
|
616
|
+
return e && !e.disabled ? e : this.shadowRoot.querySelector(`sbb-calendar-${this._calendarView}:not([disabled])`);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
_getFirstFocusableDay() {
|
|
620
|
+
let e = this._cells, t = e.filter((e) => !e.disabled);
|
|
621
|
+
if (!t || t.length === 0) return null;
|
|
622
|
+
{
|
|
623
|
+
let n = t.map((e) => this._dateAdapter.toIso8601(e.value)).sort()[0];
|
|
624
|
+
return e.find((e) => e.matches(`[slot="${n}"]`)) ?? null;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
_handleKeyboardEvent(e, t) {
|
|
628
|
+
he(e) && e.preventDefault();
|
|
629
|
+
let n = t ?? e.target, r = this._cells, i = r.indexOf(n), a;
|
|
630
|
+
a = t ? this._navigateByKeyboardDayView(e, i, r, this._mapDateToDay(t.value)) : this._navigateByKeyboard(e, i, r);
|
|
631
|
+
let o = (this._enhancedVariant ? document : this.shadowRoot).activeElement;
|
|
632
|
+
a !== o && (a.tabIndex = 0, a.focus(), r.includes(o) && (o.tabIndex = -1));
|
|
633
|
+
}
|
|
634
|
+
_navigateByKeyboardDayView(e, t, n, r) {
|
|
635
|
+
let i = this.orientation === "horizontal" ? {
|
|
636
|
+
leftRight: 1,
|
|
637
|
+
upDown: m
|
|
638
|
+
} : {
|
|
639
|
+
leftRight: m,
|
|
640
|
+
upDown: 1
|
|
641
|
+
};
|
|
642
|
+
switch (e.key) {
|
|
643
|
+
case "ArrowUp": return this._findDayArrows(n, t, r.dateValue, -i.upDown);
|
|
644
|
+
case "ArrowDown": return this._findDayArrows(n, t, r.dateValue, i.upDown);
|
|
645
|
+
case "ArrowLeft": return this._findDayArrows(n, t, r.dateValue, -i.leftRight);
|
|
646
|
+
case "ArrowRight": return this._findDayArrows(n, t, r.dateValue, i.leftRight);
|
|
647
|
+
case "PageUp": if (this.orientation === "horizontal") {
|
|
648
|
+
let e = (+r.dayValue % m || m) - +r.dayValue;
|
|
649
|
+
return this._findDayPageUpDown(n, t, r, e, i.upDown);
|
|
650
|
+
} else {
|
|
651
|
+
let e = this._dateAdapter.getFirstWeekOffset(r.dateValue), a = (Math.ceil((+r.dayValue + e) / m) - 1) * m - e + 1 - r.dayValue;
|
|
652
|
+
return this._findDayPageUpDown(n, t, r, a, i.upDown);
|
|
653
|
+
}
|
|
654
|
+
case "PageDown": if (this.orientation === "horizontal") {
|
|
655
|
+
let e = +r.monthValue + 1 > 12 ? 1 : +r.monthValue + 1, a = +r.monthValue + 1 > 12 ? +r.yearValue + 1 : +r.yearValue, o = this._dateAdapter.createDate(a, e, 1), s = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(o, -1)), c = Math.trunc((s - +r.dayValue) / m) * m;
|
|
656
|
+
return this._findDayPageUpDown(n, t, r, c, -i.upDown);
|
|
657
|
+
} else {
|
|
658
|
+
let e = this._dateAdapter.getFirstWeekOffset(r.dateValue), a = Math.ceil((+r.dayValue + e) / m) * m - e - +r.dayValue;
|
|
659
|
+
return this._findDayPageUpDown(n, t, r, a, -i.upDown);
|
|
660
|
+
}
|
|
661
|
+
case "Home": return this._findDayFirst(n, t, r, 1);
|
|
662
|
+
case "End": {
|
|
663
|
+
let e = +r.monthValue + 1 > 12 ? 1 : +r.monthValue + 1, i = +r.monthValue + 1 > 12 ? +r.yearValue + 1 : +r.yearValue, a = this._dateAdapter.createDate(i, e, 1);
|
|
664
|
+
return this._findDayLast(n, t, a);
|
|
665
|
+
}
|
|
666
|
+
default: return n[t];
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
_isDayOutOfView(e) {
|
|
670
|
+
return e < this._firstVisibleDay || e > this._lastVisibleDay;
|
|
671
|
+
}
|
|
672
|
+
_findDayArrows(e, t, n, r) {
|
|
673
|
+
let i = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(n, r));
|
|
674
|
+
if (this._isDayOutOfView(i)) return e[t];
|
|
675
|
+
let a = e.find((e) => this._mapValueToISODate(e.value) === i);
|
|
676
|
+
return !a || a.disabled ? this._findDayArrows(e, t, this._dateAdapter.deserialize(i), r) : a;
|
|
677
|
+
}
|
|
678
|
+
_findDayPageUpDown(e, t, n, r, i) {
|
|
679
|
+
let a = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(n.dateValue, r));
|
|
680
|
+
if (this._isDayOutOfView(a)) return e[t];
|
|
681
|
+
let o = e.find((e) => this._mapValueToISODate(e.value) === a);
|
|
682
|
+
return !o || o.disabled ? this._findDayPageUpDown(e, t, n, r + i, i) : o;
|
|
683
|
+
}
|
|
684
|
+
_findDayFirst(e, t, n, r) {
|
|
685
|
+
let i = this._dateAdapter.toIso8601(this._dateAdapter.createDate(+n.yearValue, +n.monthValue, r));
|
|
686
|
+
if (this._isDayOutOfView(i)) return e[t];
|
|
687
|
+
let a = e.find((e) => this._mapValueToISODate(e.value) === i);
|
|
688
|
+
return !a || a.disabled ? this._findDayFirst(e, t, n, r + 1) : a;
|
|
689
|
+
}
|
|
690
|
+
_findDayLast(e, t, n) {
|
|
691
|
+
let r = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(n, -1));
|
|
692
|
+
if (this._isDayOutOfView(r)) return e[t];
|
|
693
|
+
let i = e.find((e) => this._mapValueToISODate(e.value) === r);
|
|
694
|
+
return !i || i.disabled ? this._findDayLast(e, t, this._dateAdapter.deserialize(r)) : i;
|
|
695
|
+
}
|
|
696
|
+
_navigateByKeyboard(e, t, n) {
|
|
697
|
+
let { elementIndexForWideMode: r, offsetForWideMode: i, lastElementIndexForWideMode: a, verticalOffset: o } = this._calculateParametersForKeyboardNavigation(t, this._calendarView === "year");
|
|
698
|
+
switch (e.key) {
|
|
699
|
+
case "ArrowUp": return this._findNext(n, t, -o);
|
|
700
|
+
case "ArrowDown": return this._findNext(n, t, o);
|
|
701
|
+
case "ArrowLeft": return this._findNext(n, t, -1);
|
|
702
|
+
case "ArrowRight": return this._findNext(n, t, 1);
|
|
703
|
+
case "Home": return this._findFirst(n, i);
|
|
704
|
+
case "PageUp": return this._findFirstOnColumn(n, r, i, o);
|
|
705
|
+
case "PageDown": return this._findLastOnColumn(n, t, a, o);
|
|
706
|
+
case "End": return this._findLast(n, a - 1);
|
|
707
|
+
default: return n[t];
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
_calculateParametersForKeyboardNavigation(e, t) {
|
|
711
|
+
let n = t ? _ : Ee, r = Math.trunc(e / n) * n, i = r === 0 ? e : e - n;
|
|
712
|
+
return {
|
|
713
|
+
verticalOffset: t ? g : h,
|
|
714
|
+
elementIndexForWideMode: i,
|
|
715
|
+
offsetForWideMode: e - i,
|
|
716
|
+
lastElementIndexForWideMode: r === 0 ? n : n * 2
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
_findNext(e, t, n) {
|
|
720
|
+
let r = t + n;
|
|
721
|
+
for (; r < e.length && e[r]?.disabled;) r += n;
|
|
722
|
+
return e[r] ?? e[t];
|
|
723
|
+
}
|
|
724
|
+
_findFirst(e, t) {
|
|
725
|
+
return e[t].disabled ? this._findNext(e, t, 1) : e[t];
|
|
726
|
+
}
|
|
727
|
+
_findLast(e, t) {
|
|
728
|
+
return e[t].disabled ? this._findNext(e, t, -1) : e[t];
|
|
729
|
+
}
|
|
730
|
+
_findFirstOnColumn(e, t, n, r) {
|
|
731
|
+
let i = t % r + n;
|
|
732
|
+
return e[i].disabled ? this._findNext(e, i, r) : e[i];
|
|
733
|
+
}
|
|
734
|
+
_findLastOnColumn(e, t, n, r) {
|
|
735
|
+
let i = t + Math.trunc((n - t - 1) / r) * r;
|
|
736
|
+
return e[i].disabled ? this._findNext(e, i, -r) : e[i];
|
|
737
|
+
}
|
|
738
|
+
_resetCalendarViewAndEmitMonthChange() {
|
|
739
|
+
this._resetCalendarView(), this._emitMonthChange();
|
|
740
|
+
}
|
|
741
|
+
_resetCalendarView() {
|
|
742
|
+
this._containingFocus && (this._resetFocus = !0), this._activeDate = (this.multiple ? this._value.at(-1) : this._value) ?? this._dateAdapter.today(), this._setChosenYear(), this._chosenMonth = void 0, this._init(), this._calendarView = this.view;
|
|
743
|
+
}
|
|
744
|
+
_createDayTable(e, t, r) {
|
|
745
|
+
let a = e[0][0].dateValue, o = `${this._monthNames[this._dateAdapter.getMonth(a) - 1]} ${this._dateAdapter.getYear(a)}`, s = e.flat(), c = e.flat();
|
|
746
|
+
return n`
|
|
747
|
+
<div class="sbb-calendar__table-wrapper sbb-calendar__day-view">
|
|
748
|
+
<div class="sbb-calendar__table-header">
|
|
749
|
+
<span>${o}</span> ${r ? this._createDayTableControls(o) : i}
|
|
750
|
+
</div>
|
|
751
|
+
<table
|
|
752
|
+
class="sbb-calendar__table"
|
|
753
|
+
@focusout=${(e) => this._handleTableBlur(e.relatedTarget)}
|
|
754
|
+
>
|
|
755
|
+
<thead>
|
|
756
|
+
<tr>
|
|
757
|
+
${this.weekNumbers ? n`<th class="sbb-calendar__table-header-cell"></th>` : i}
|
|
758
|
+
${this._weekdays.map((e, t) => n`
|
|
759
|
+
<th class="sbb-calendar__table-header-cell">
|
|
760
|
+
${this.multiple ? n`
|
|
761
|
+
<sbb-calendar-weekday
|
|
762
|
+
.value=${e}
|
|
763
|
+
@click=${() => {
|
|
764
|
+
let e = c.filter((e) => e.weekDayValue === (t + 1) % 7);
|
|
765
|
+
this._selectMultipleDates(e);
|
|
766
|
+
}}
|
|
767
|
+
></sbb-calendar-weekday>
|
|
768
|
+
` : n`
|
|
769
|
+
<span class="sbb-screen-reader-only">${e.long}</span>
|
|
770
|
+
<span aria-hidden="true">${e.narrow}</span>
|
|
771
|
+
`}
|
|
772
|
+
</th>
|
|
773
|
+
`)}
|
|
774
|
+
</tr>
|
|
775
|
+
</thead>
|
|
776
|
+
<tbody>
|
|
777
|
+
${e.map((e, r) => {
|
|
778
|
+
let a = m - e.length;
|
|
779
|
+
return r === 0 && a ? n`
|
|
780
|
+
<tr>
|
|
781
|
+
${this.weekNumbers ? n`
|
|
782
|
+
<td class="sbb-calendar__table-header-cell-vertical">
|
|
783
|
+
${this.multiple ? n`
|
|
784
|
+
<sbb-calendar-weeknumber
|
|
785
|
+
.value=${t[0]}
|
|
786
|
+
@click=${() => {
|
|
787
|
+
let e = s.filter((e) => e.weekValue === t[0]);
|
|
788
|
+
this._selectMultipleDates(e);
|
|
789
|
+
}}
|
|
790
|
+
></sbb-calendar-weeknumber>
|
|
791
|
+
` : n`
|
|
792
|
+
<span class="sbb-screen-reader-only"
|
|
793
|
+
>${`${f[this._language.current]} ${t[0]}`}</span
|
|
794
|
+
>
|
|
795
|
+
<span aria-hidden="true">${t[0]}</span>
|
|
796
|
+
`}
|
|
797
|
+
</td>
|
|
798
|
+
` : i}
|
|
799
|
+
${[...Array(a).keys()].map(() => n`<td class="sbb-calendar__table-data"></td>`)}
|
|
800
|
+
${this._createDayCells(e)}
|
|
801
|
+
</tr>
|
|
802
|
+
` : n`
|
|
803
|
+
<tr>
|
|
804
|
+
${this.weekNumbers ? n`
|
|
805
|
+
<td class="sbb-calendar__table-header-cell-vertical">
|
|
806
|
+
${this.multiple ? n`
|
|
807
|
+
<sbb-calendar-weeknumber
|
|
808
|
+
.value=${t[r]}
|
|
809
|
+
@click=${() => {
|
|
810
|
+
let e = s.filter((e) => e.weekValue === t[r]);
|
|
811
|
+
this._selectMultipleDates(e);
|
|
812
|
+
}}
|
|
813
|
+
></sbb-calendar-weeknumber>
|
|
814
|
+
` : n`
|
|
815
|
+
<span class="sbb-screen-reader-only"
|
|
816
|
+
>${`${f[this._language.current]} ${t[r]}`}</span
|
|
817
|
+
>
|
|
818
|
+
<span aria-hidden="true">${t[r]}</span>
|
|
819
|
+
`}
|
|
820
|
+
</td>
|
|
821
|
+
` : i}
|
|
822
|
+
${this._createDayCells(e)}
|
|
823
|
+
</tr>
|
|
824
|
+
`;
|
|
825
|
+
})}
|
|
826
|
+
</tbody>
|
|
827
|
+
</table>
|
|
828
|
+
</div>
|
|
829
|
+
`;
|
|
830
|
+
}
|
|
831
|
+
_createDayTableVertical(e, t, r) {
|
|
832
|
+
let a = e[0][0].dateValue, o = `${this._monthNames[this._dateAdapter.getMonth(a) - 1]} ${this._dateAdapter.getYear(a)}`, s = e[0][0].dateValue, c = this._dateAdapter.getFirstWeekOffset(s ?? this._activeDate), l = e.flat();
|
|
833
|
+
return n`
|
|
834
|
+
<div class="sbb-calendar__table-wrapper sbb-calendar__day-view">
|
|
835
|
+
<div class="sbb-calendar__table-header">
|
|
836
|
+
<span>${o}</span> ${r ? this._createDayTableControls(o) : i}
|
|
837
|
+
</div>
|
|
838
|
+
<table
|
|
839
|
+
class="sbb-calendar__table"
|
|
840
|
+
@focusout=${(e) => this._handleTableBlur(e.relatedTarget)}
|
|
841
|
+
>
|
|
842
|
+
${this.weekNumbers ? n`
|
|
843
|
+
<thead>
|
|
844
|
+
<tr>
|
|
845
|
+
<th class="sbb-calendar__table-data"></th>
|
|
846
|
+
${t.map((e) => n`
|
|
847
|
+
<th class="sbb-calendar__table-header-cell">
|
|
848
|
+
${this.multiple ? n`
|
|
849
|
+
<sbb-calendar-weeknumber
|
|
850
|
+
.value=${e}
|
|
851
|
+
@click=${() => {
|
|
852
|
+
let t = l.filter((t) => t.weekValue === e);
|
|
853
|
+
this._selectMultipleDates(t);
|
|
854
|
+
}}
|
|
855
|
+
></sbb-calendar-weeknumber>
|
|
856
|
+
` : n`
|
|
857
|
+
<span class="sbb-screen-reader-only"
|
|
858
|
+
>${`${f[this._language.current]} ${e}`}</span
|
|
859
|
+
>
|
|
860
|
+
<span aria-hidden="true">${e}</span>
|
|
861
|
+
`}
|
|
862
|
+
</th>
|
|
863
|
+
`)}
|
|
864
|
+
</tr>
|
|
865
|
+
</thead>
|
|
866
|
+
` : i}
|
|
867
|
+
<tbody>
|
|
868
|
+
${e.map((e, t) => {
|
|
869
|
+
let r = this._weekdays[t];
|
|
870
|
+
return n`
|
|
871
|
+
<tr>
|
|
872
|
+
<td class="sbb-calendar__table-header-cell-vertical">
|
|
873
|
+
${this.multiple ? n`
|
|
874
|
+
<sbb-calendar-weekday
|
|
875
|
+
.value=${r}
|
|
876
|
+
@click=${() => this._selectMultipleDates(e)}
|
|
877
|
+
>
|
|
878
|
+
${r.narrow}
|
|
879
|
+
</sbb-calendar-weekday>
|
|
880
|
+
` : n`
|
|
881
|
+
<span class="sbb-screen-reader-only">${r.long}</span>
|
|
882
|
+
<span aria-hidden="true">${r.narrow}</span>
|
|
883
|
+
`}
|
|
884
|
+
</td>
|
|
885
|
+
${t < c ? n`<td class="sbb-calendar__table-data"></td>` : i}
|
|
886
|
+
${this._createDayCells(e)}
|
|
887
|
+
</tr>
|
|
888
|
+
`;
|
|
889
|
+
})}
|
|
890
|
+
</tbody>
|
|
891
|
+
</table>
|
|
892
|
+
</div>
|
|
893
|
+
`;
|
|
894
|
+
}
|
|
895
|
+
_createDayTableControls(e) {
|
|
896
|
+
return this._fixedMonth ? [] : [
|
|
897
|
+
this._getArrow("left", () => this._goToDifferentMonth(-1), de[this._language.current], this._previousMonthDisabled()),
|
|
898
|
+
this._getArrow("right", () => this._goToDifferentMonth(1), ce[this._language.current], this._nextMonthDisabled()),
|
|
899
|
+
this._getArrow("up", () => {
|
|
900
|
+
this._resetFocus = !0, this._calendarView = "year";
|
|
901
|
+
}, `${me[this._language.current]} ${e}`)
|
|
902
|
+
];
|
|
903
|
+
}
|
|
904
|
+
_createDayCells(e) {
|
|
905
|
+
return e.map((e) => n`
|
|
906
|
+
<td class="sbb-calendar__table-data sbb-calendar__day-cell">
|
|
907
|
+
<slot name=${e.value}>
|
|
908
|
+
<sbb-calendar-day slot=${e.value}></sbb-calendar-day>
|
|
909
|
+
</slot>
|
|
910
|
+
</td>
|
|
911
|
+
`);
|
|
912
|
+
}
|
|
913
|
+
_renderMonthView() {
|
|
914
|
+
return n`
|
|
915
|
+
<div class="sbb-calendar__table-wrapper sbb-calendar__month-view">
|
|
916
|
+
<div class="sbb-calendar__table-header">
|
|
917
|
+
<span>${this._chosenYear}</span>
|
|
918
|
+
${this._fixedMonth ? [] : [
|
|
919
|
+
this._getArrow("left", () => this._goToDifferentYear(-1), fe[this._language.current], this._previousYearDisabled()),
|
|
920
|
+
this._getArrow("right", () => this._goToDifferentYear(1), le[this._language.current], this._nextYearDisabled()),
|
|
921
|
+
this._getArrow("down", () => this._resetCalendarViewAndEmitMonthChange(), d[this._language.current])
|
|
922
|
+
]}
|
|
923
|
+
<span class="sbb-screen-reader-only" role="status">${this._chosenYear}</span>
|
|
924
|
+
</div>
|
|
925
|
+
<table class="sbb-calendar__table">
|
|
926
|
+
<tbody>
|
|
927
|
+
${this._months.map((e) => n`
|
|
928
|
+
<tr>
|
|
929
|
+
${e.map((e) => n`
|
|
930
|
+
<td class="sbb-calendar__table-data">
|
|
931
|
+
<sbb-calendar-month
|
|
932
|
+
.value="${this._chosenYear}-${e.value}"
|
|
933
|
+
@click=${() => this._onMonthSelection(e.monthValue, this._chosenYear)}
|
|
934
|
+
@keydown=${(e) => this._handleKeyboardEvent(e)}
|
|
935
|
+
>
|
|
936
|
+
</sbb-calendar-month>
|
|
937
|
+
</td>
|
|
938
|
+
`)}
|
|
939
|
+
</tr>
|
|
940
|
+
`)}
|
|
941
|
+
</tbody>
|
|
942
|
+
</table>
|
|
943
|
+
</div>
|
|
944
|
+
`;
|
|
945
|
+
}
|
|
946
|
+
_onMonthSelection(e, t) {
|
|
947
|
+
this._chosenMonth = e, this._calendarView = "day", this._init(this._dateAdapter.createDate(t, this._chosenMonth, this._dateAdapter.getDate(this._activeDate))), this._emitMonthChange();
|
|
948
|
+
}
|
|
949
|
+
_renderYearView() {
|
|
950
|
+
let e = this._years.flat(2)[0], t = this._years.at(-1).flat(), r = `${e} - ${t[t.length - 1]}`;
|
|
951
|
+
return n`
|
|
952
|
+
<div class="sbb-calendar__table-wrapper sbb-calendar__year-view">
|
|
953
|
+
<div class="sbb-calendar__table-header">
|
|
954
|
+
<span>${r}</span>
|
|
955
|
+
${this._fixedMonth ? [] : [
|
|
956
|
+
this._getArrow("left", () => this._goToDifferentYearRange(-24), pe(_)[this._language.current], this._previousYearRangeDisabled()),
|
|
957
|
+
this._getArrow("right", () => this._goToDifferentYearRange(_), ue(_)[this._language.current], this._nextYearRangeDisabled()),
|
|
958
|
+
this._getArrow("down", () => this._resetCalendarViewAndEmitMonthChange(), d[this._language.current])
|
|
959
|
+
]}
|
|
960
|
+
<span class="sbb-screen-reader-only" role="status">${r}</span>
|
|
961
|
+
</div>
|
|
962
|
+
<table class="sbb-calendar__table">
|
|
963
|
+
<tbody>
|
|
964
|
+
${this._years.map((e) => n` <tr>
|
|
965
|
+
${e.map((e) => n`
|
|
966
|
+
<td class="sbb-calendar__table-data">
|
|
967
|
+
<sbb-calendar-year
|
|
968
|
+
.value=${String(e)}
|
|
969
|
+
@keydown=${(e) => this._handleKeyboardEvent(e)}
|
|
970
|
+
@click=${() => this._onYearSelection(e)}
|
|
971
|
+
>
|
|
972
|
+
</sbb-calendar-year>
|
|
973
|
+
</td>
|
|
974
|
+
`)}
|
|
975
|
+
</tr>`)}
|
|
976
|
+
</tbody>
|
|
977
|
+
</table>
|
|
978
|
+
</div>
|
|
979
|
+
`;
|
|
980
|
+
}
|
|
981
|
+
_onYearSelection(e) {
|
|
982
|
+
this._chosenYear = e, this._calendarView = "month", this._assignActiveDate(this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate)));
|
|
983
|
+
}
|
|
984
|
+
_getArrow(e, t, r, i = !1) {
|
|
985
|
+
return n`<sbb-secondary-button
|
|
986
|
+
class="sbb-calendar__control"
|
|
987
|
+
size="s"
|
|
988
|
+
icon-name="chevron-small-${e}-small"
|
|
989
|
+
aria-label=${r}
|
|
990
|
+
@click=${t}
|
|
991
|
+
?disabled=${i}
|
|
992
|
+
></sbb-secondary-button>`;
|
|
993
|
+
}
|
|
994
|
+
_getView() {
|
|
995
|
+
switch (this._calendarView) {
|
|
996
|
+
case "year": return this._renderYearView();
|
|
997
|
+
case "month": return this._renderMonthView();
|
|
998
|
+
default: return i;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
render() {
|
|
1002
|
+
return r || this.hydrationRequired ? n`${i}` : n`<div class="sbb-calendar__wrapper">
|
|
1003
|
+
${this.orientation === "horizontal" ? this._weeks.map((e, t) => this._createDayTable(e, this._weekNumbers[t], t === 0)) : this._weeks.map((e, t) => this._createDayTableVertical(e, this._weekNumbers[t], t === 0))}
|
|
1004
|
+
${this._getView()}
|
|
1005
|
+
</div>`;
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
})();
|
|
1009
|
+
//#endregion
|
|
1010
|
+
export { y as n, v as r, b as t };
|