@sbb-esta/lyne-elements-dev 0.0.0 → 4.5.1-dev.1771849268
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/README.md +55 -0
- package/_index.scss +2 -0
- package/a11y.css +22 -0
- package/accordion/accordion.component.js +97 -0
- package/accordion.js +4 -0
- package/action-group/action-group.component.js +106 -0
- package/action-group.js +4 -0
- package/alert/alert/alert.component.js +143 -0
- package/alert/alert-group/alert-group.component.js +103 -0
- package/alert/alert-group.js +4 -0
- package/alert/alert.js +4 -0
- package/alert.js +6 -0
- package/animation.css +14 -0
- package/autocomplete/autocomplete-base-element.js +371 -0
- package/autocomplete/autocomplete.component.js +59 -0
- package/autocomplete.js +6 -0
- package/badge.css +32 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.js +29 -0
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +134 -0
- package/breadcrumb/breadcrumb-group.js +4 -0
- package/breadcrumb/breadcrumb.js +4 -0
- package/breadcrumb.js +6 -0
- package/button/accent-button/accent-button.component.js +22 -0
- package/button/accent-button-link/accent-button-link.component.js +22 -0
- package/button/accent-button-link.js +4 -0
- package/button/accent-button-static/accent-button-static.component.js +22 -0
- package/button/accent-button-static.js +4 -0
- package/button/accent-button.js +4 -0
- package/button/button/button.component.js +22 -0
- package/button/button-link/button-link.component.js +22 -0
- package/button/button-link.js +4 -0
- package/button/button-static/button-static.component.js +22 -0
- package/button/button-static.js +4 -0
- package/button/button.js +4 -0
- package/button/common/button-common.js +73 -0
- package/button/common.js +12 -0
- package/button/mini-button/mini-button.component.js +32 -0
- package/button/mini-button-group/mini-button-group.component.js +67 -0
- package/button/mini-button-group.js +4 -0
- package/button/mini-button-link/mini-button-link.component.js +35 -0
- package/button/mini-button-link.js +4 -0
- package/button/mini-button.js +4 -0
- package/button/secondary-button/secondary-button.component.js +22 -0
- package/button/secondary-button-link/secondary-button-link.component.js +22 -0
- package/button/secondary-button-link.js +4 -0
- package/button/secondary-button-static/secondary-button-static.component.js +22 -0
- package/button/secondary-button-static.js +4 -0
- package/button/secondary-button.js +4 -0
- package/button/transparent-button/transparent-button.component.js +22 -0
- package/button/transparent-button-link/transparent-button-link.component.js +22 -0
- package/button/transparent-button-link.js +4 -0
- package/button/transparent-button-static/transparent-button-static.component.js +22 -0
- package/button/transparent-button-static.js +4 -0
- package/button/transparent-button.js +4 -0
- package/button.js +42 -0
- package/calendar/calendar.component.js +1214 -0
- package/calendar.js +4 -0
- package/card/card/card.component.js +48 -0
- package/card/card-badge/card-badge.component.js +48 -0
- package/card/card-badge.js +4 -0
- package/card/card-button/card-button.component.js +19 -0
- package/card/card-button.js +4 -0
- package/card/card-link/card-link.component.js +19 -0
- package/card/card-link.js +4 -0
- package/card/card.js +4 -0
- package/card/common/card-action-common.js +63 -0
- package/card/common.js +4 -0
- package/card.js +12 -0
- package/carousel/carousel/carousel.component.js +88 -0
- package/carousel/carousel-item/carousel-item.component.js +26 -0
- package/carousel/carousel-item.js +4 -0
- package/carousel/carousel-list/carousel-list.component.js +98 -0
- package/carousel/carousel-list.js +4 -0
- package/carousel/carousel.js +4 -0
- package/carousel.js +8 -0
- package/checkbox/checkbox/checkbox.component.js +90 -0
- package/checkbox/checkbox-group/checkbox-group.component.js +100 -0
- package/checkbox/checkbox-group.js +4 -0
- package/checkbox/checkbox-panel/checkbox-panel.component.js +75 -0
- package/checkbox/checkbox-panel.js +4 -0
- package/checkbox/checkbox.js +4 -0
- package/checkbox/common/checkbox-common.js +54 -0
- package/checkbox/common.js +6 -0
- package/checkbox-common-t04WeA36.js +5 -0
- package/checkbox.js +12 -0
- package/chip/chip/chip.component.js +72 -0
- package/chip/chip-group/chip-group.component.js +232 -0
- package/chip/chip-group.js +4 -0
- package/chip/chip.js +4 -0
- package/chip-label/chip-label.component.js +55 -0
- package/chip-label.js +4 -0
- package/chip.js +6 -0
- package/clock/clock.component.js +153 -0
- package/clock.js +4 -0
- package/container/container/container.component.js +75 -0
- package/container/container.js +4 -0
- package/container/sticky-bar/sticky-bar.component.js +121 -0
- package/container/sticky-bar.js +4 -0
- package/container.js +6 -0
- package/core/a11y/arrow-navigation.js +33 -0
- package/core/a11y/fake-event-detection.js +11 -0
- package/core/a11y/focus-trap-controller.js +92 -0
- package/core/a11y/focus-visible-within-controller.js +20 -0
- package/core/a11y/focus.js +13 -0
- package/core/a11y/input-modality-detector.js +47 -0
- package/core/a11y/interactivity-checker.js +96 -0
- package/core/a11y/live-announcer.js +40 -0
- package/core/a11y.js +26 -0
- package/core/base-elements/action-base-element.js +39 -0
- package/core/base-elements/button-base-element.js +146 -0
- package/core/base-elements/link-base-element.js +126 -0
- package/core/base-elements/open-close-base-element.js +44 -0
- package/core/base-elements.js +11 -0
- package/core/config/config.js +11 -0
- package/core/config.js +5 -0
- package/core/controllers/escapable-overlay-controller.js +27 -0
- package/core/controllers/id-reference-controller.js +60 -0
- package/core/controllers/inert-controller.js +58 -0
- package/core/controllers/language-controller.js +39 -0
- package/core/controllers/media-matchers-controller.js +97 -0
- package/core/controllers/overlay-position-controller.js +224 -0
- package/core/controllers/property-watcher-controller.js +60 -0
- package/core/controllers/slot-state-controller.js +37 -0
- package/core/controllers.js +30 -0
- package/core/datetime/date-adapter.js +136 -0
- package/core/datetime/native-date-adapter.js +140 -0
- package/core/datetime/temporal-date-adapter.js +145 -0
- package/core/datetime.js +16 -0
- package/core/decorators/base.js +1 -0
- package/core/decorators/force-type.js +17 -0
- package/core/decorators/get-override.js +14 -0
- package/core/decorators/handle-distinct-change.js +16 -0
- package/core/decorators/host-attributes.js +18 -0
- package/core/decorators/id-reference.js +76 -0
- package/core/decorators/omit-empty-converter.js +9 -0
- package/core/decorators/plain-date.js +26 -0
- package/core/decorators.js +17 -0
- package/core/dom/animation.js +10 -0
- package/core/dom/contains-pierce-shadow-dom.js +12 -0
- package/core/dom/lean-context.js +7 -0
- package/core/dom/platform.js +21 -0
- package/core/dom/queue-dom-content-loaded.js +7 -0
- package/core/dom/scroll.js +19 -0
- package/core/dom/set-or-remove-attribute.js +6 -0
- package/core/dom.js +27 -0
- package/core/eventing/composed-path-has-attribute.js +8 -0
- package/core/eventing/event-target.js +6 -0
- package/core/eventing/form-element-handlers.js +6 -0
- package/core/eventing/forward-event.js +7 -0
- package/core/eventing/is-event-prevented.js +6 -0
- package/core/eventing/throttle.js +11 -0
- package/core/eventing.js +14 -0
- package/core/i18n/i18n.js +778 -0
- package/core/i18n.js +104 -0
- package/core/images.js +15 -0
- package/core/interfaces.js +1 -0
- package/core/mixins/animation-complete-mixin.js +43 -0
- package/core/mixins/constructor.js +1 -0
- package/core/mixins/disabled-mixin.js +75 -0
- package/core/mixins/element-internals-mixin.js +159 -0
- package/core/mixins/form-associated-checkbox-mixin.js +91 -0
- package/core/mixins/form-associated-input-mixin.js +191 -0
- package/core/mixins/form-associated-mixin.js +230 -0
- package/core/mixins/form-associated-radio-button-mixin.js +166 -0
- package/core/mixins/hydration-mixin.js +38 -0
- package/core/mixins/named-slot-list-mixin.js +102 -0
- package/core/mixins/negative-mixin.js +34 -0
- package/core/mixins/panel-mixin.js +71 -0
- package/core/mixins/readonly-mixin.js +35 -0
- package/core/mixins/required-mixin.js +36 -0
- package/core/mixins/selection-panel-mixin.js +39 -0
- package/core/mixins/update-scheduler-mixin.js +22 -0
- package/core/mixins.js +41 -0
- package/core/overlay/overlay-option-panel.js +17 -0
- package/core/overlay/overlay-outside-pointer-event-listener.js +37 -0
- package/core/overlay/overlay-trigger-attributes.js +18 -0
- package/core/overlay/overlay.js +14 -0
- package/core/overlay/position.js +53 -0
- package/core/overlay.js +19 -0
- package/core/styles/_index.scss +26 -0
- package/core/styles/a11y.scss +15 -0
- package/core/styles/animation.scss +17 -0
- package/core/styles/badge.scss +3 -0
- package/core/styles/box-sizing.scss +3 -0
- package/core/styles/core/functions.scss +26 -0
- package/core/styles/core/mediaqueries.scss +98 -0
- package/core/styles/core/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +371 -0
- package/core/styles/core.scss +819 -0
- package/core/styles/disable-animation.scss +5 -0
- package/core/styles/font-characters-extension.scss +3 -0
- package/core/styles/image.scss +66 -0
- package/core/styles/layout.scss +20 -0
- package/core/styles/lean-theme.scss +3 -0
- package/core/styles/lists.scss +14 -0
- package/core/styles/mixins/a11y.scss +42 -0
- package/core/styles/mixins/animation.scss +11 -0
- package/core/styles/mixins/badge.scss +42 -0
- package/core/styles/mixins/buttons.scss +12 -0
- package/core/styles/mixins/card.scss +203 -0
- package/core/styles/mixins/chip.scss +95 -0
- package/core/styles/mixins/dev_and_debug.scss +8 -0
- package/core/styles/mixins/font-face.scss +45 -0
- package/core/styles/mixins/helpers.scss +68 -0
- package/core/styles/mixins/image.scss +43 -0
- package/core/styles/mixins/inputs.scss +11 -0
- package/core/styles/mixins/layout.scss +38 -0
- package/core/styles/mixins/link.scss +125 -0
- package/core/styles/mixins/lists.scss +271 -0
- package/core/styles/mixins/overlay.scss +165 -0
- package/core/styles/mixins/panel.scss +76 -0
- package/core/styles/mixins/pearl-chain-bullet.scss +133 -0
- package/core/styles/mixins/popover.scss +14 -0
- package/core/styles/mixins/scrollbar.scss +117 -0
- package/core/styles/mixins/table.scss +175 -0
- package/core/styles/mixins/timetable-form.scss +63 -0
- package/core/styles/mixins/typo.scss +255 -0
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss +1183 -0
- package/core/styles/normalize.scss +145 -0
- package/core/styles/off-brand-theme.scss +3 -0
- package/core/styles/safety-theme.scss +3 -0
- package/core/styles/scrollbar.scss +44 -0
- package/core/styles/standard-theme.scss +3 -0
- package/core/styles/table.scss +122 -0
- package/core/styles/theme.scss +18 -0
- package/core/styles/timetable-form.scss +27 -0
- package/core/styles/typography.scss +50 -0
- package/core/styles.js +5 -0
- package/core/testing/event-spy.js +51 -0
- package/core/testing/mocha-extensions.js +11 -0
- package/core/testing/wait-for-condition.js +13 -0
- package/core/testing/wait-for-image-ready.js +17 -0
- package/core/testing/wait-for-render.js +14 -0
- package/core/testing.js +14 -0
- package/core.css +2207 -0
- package/custom-elements.json +111854 -0
- package/date-input/date-input.component.js +165 -0
- package/date-input.js +4 -0
- package/datepicker/common/datepicker-button.js +96 -0
- package/datepicker/common.js +7 -0
- package/datepicker/datepicker/datepicker.component.js +120 -0
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +40 -0
- package/datepicker/datepicker-next-day.js +4 -0
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +40 -0
- package/datepicker/datepicker-previous-day.js +4 -0
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +52 -0
- package/datepicker/datepicker-toggle.js +4 -0
- package/datepicker/datepicker.js +4 -0
- package/datepicker-button-Debzp_As.js +5 -0
- package/datepicker.js +15 -0
- package/development/accordion/accordion.component.d.ts +38 -0
- package/development/accordion/accordion.component.d.ts.map +1 -0
- package/development/accordion/accordion.component.js +138 -0
- package/development/accordion.d.ts +5 -0
- package/development/accordion.d.ts.map +1 -0
- package/development/accordion.js +5 -0
- package/development/action-group/action-group.component.d.ts +46 -0
- package/development/action-group/action-group.component.d.ts.map +1 -0
- package/development/action-group/action-group.component.js +311 -0
- package/development/action-group.d.ts +5 -0
- package/development/action-group.d.ts.map +1 -0
- package/development/action-group.js +5 -0
- package/development/alert/alert/alert.component.d.ts +51 -0
- package/development/alert/alert/alert.component.d.ts.map +1 -0
- package/development/alert/alert/alert.component.js +392 -0
- package/development/alert/alert-group/alert-group.component.d.ts +39 -0
- package/development/alert/alert-group/alert-group.component.d.ts.map +1 -0
- package/development/alert/alert-group/alert-group.component.js +173 -0
- package/development/alert/alert-group.d.ts +5 -0
- package/development/alert/alert-group.d.ts.map +1 -0
- package/development/alert/alert-group.js +5 -0
- package/development/alert/alert.d.ts +5 -0
- package/development/alert/alert.d.ts.map +1 -0
- package/development/alert/alert.js +5 -0
- package/development/alert.d.ts +6 -0
- package/development/alert.d.ts.map +1 -0
- package/development/alert.js +7 -0
- package/development/autocomplete/autocomplete-base-element.d.ts +137 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -0
- package/development/autocomplete/autocomplete-base-element.js +891 -0
- package/development/autocomplete/autocomplete.component.d.ts +30 -0
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -0
- package/development/autocomplete/autocomplete.component.js +88 -0
- package/development/autocomplete.d.ts +6 -0
- package/development/autocomplete.d.ts.map +1 -0
- package/development/autocomplete.js +7 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.d.ts +20 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.d.ts.map +1 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +91 -0
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +50 -0
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -0
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +269 -0
- package/development/breadcrumb/breadcrumb-group.d.ts +5 -0
- package/development/breadcrumb/breadcrumb-group.d.ts.map +1 -0
- package/development/breadcrumb/breadcrumb-group.js +5 -0
- package/development/breadcrumb/breadcrumb.d.ts +5 -0
- package/development/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/development/breadcrumb/breadcrumb.js +5 -0
- package/development/breadcrumb.d.ts +6 -0
- package/development/breadcrumb.d.ts.map +1 -0
- package/development/breadcrumb.js +7 -0
- package/development/button/accent-button/accent-button.component.d.ts +20 -0
- package/development/button/accent-button/accent-button.component.d.ts.map +1 -0
- package/development/button/accent-button/accent-button.component.js +30 -0
- package/development/button/accent-button-link/accent-button-link.component.d.ts +20 -0
- package/development/button/accent-button-link/accent-button-link.component.d.ts.map +1 -0
- package/development/button/accent-button-link/accent-button-link.component.js +30 -0
- package/development/button/accent-button-link.d.ts +5 -0
- package/development/button/accent-button-link.d.ts.map +1 -0
- package/development/button/accent-button-link.js +5 -0
- package/development/button/accent-button-static/accent-button-static.component.d.ts +20 -0
- package/development/button/accent-button-static/accent-button-static.component.d.ts.map +1 -0
- package/development/button/accent-button-static/accent-button-static.component.js +30 -0
- package/development/button/accent-button-static.d.ts +5 -0
- package/development/button/accent-button-static.d.ts.map +1 -0
- package/development/button/accent-button-static.js +5 -0
- package/development/button/accent-button.d.ts +5 -0
- package/development/button/accent-button.d.ts.map +1 -0
- package/development/button/accent-button.js +5 -0
- package/development/button/button/button.component.d.ts +20 -0
- package/development/button/button/button.component.d.ts.map +1 -0
- package/development/button/button/button.component.js +30 -0
- package/development/button/button-link/button-link.component.d.ts +20 -0
- package/development/button/button-link/button-link.component.d.ts.map +1 -0
- package/development/button/button-link/button-link.component.js +30 -0
- package/development/button/button-link.d.ts +5 -0
- package/development/button/button-link.d.ts.map +1 -0
- package/development/button/button-link.js +5 -0
- package/development/button/button-static/button-static.component.d.ts +20 -0
- package/development/button/button-static/button-static.component.d.ts.map +1 -0
- package/development/button/button-static/button-static.component.js +30 -0
- package/development/button/button-static.d.ts +5 -0
- package/development/button/button-static.d.ts.map +1 -0
- package/development/button/button-static.js +5 -0
- package/development/button/button.d.ts +5 -0
- package/development/button/button.d.ts.map +1 -0
- package/development/button/button.js +5 -0
- package/development/button/common/button-common.d.ts +11 -0
- package/development/button/common/button-common.d.ts.map +1 -0
- package/development/button/common/button-common.js +98 -0
- package/development/button/common.d.ts +5 -0
- package/development/button/common.d.ts.map +1 -0
- package/development/button/common.js +13 -0
- package/development/button/mini-button/mini-button.component.d.ts +21 -0
- package/development/button/mini-button/mini-button.component.d.ts.map +1 -0
- package/development/button/mini-button/mini-button.component.js +40 -0
- package/development/button/mini-button-group/mini-button-group.component.d.ts +31 -0
- package/development/button/mini-button-group/mini-button-group.component.d.ts.map +1 -0
- package/development/button/mini-button-group/mini-button-group.component.js +147 -0
- package/development/button/mini-button-group.d.ts +5 -0
- package/development/button/mini-button-group.d.ts.map +1 -0
- package/development/button/mini-button-group.js +5 -0
- package/development/button/mini-button-link/mini-button-link.component.d.ts +21 -0
- package/development/button/mini-button-link/mini-button-link.component.d.ts.map +1 -0
- package/development/button/mini-button-link/mini-button-link.component.js +47 -0
- package/development/button/mini-button-link.d.ts +5 -0
- package/development/button/mini-button-link.d.ts.map +1 -0
- package/development/button/mini-button-link.js +5 -0
- package/development/button/mini-button.d.ts +5 -0
- package/development/button/mini-button.d.ts.map +1 -0
- package/development/button/mini-button.js +5 -0
- package/development/button/secondary-button/secondary-button.component.d.ts +20 -0
- package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -0
- package/development/button/secondary-button/secondary-button.component.js +30 -0
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts +20 -0
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -0
- package/development/button/secondary-button-link/secondary-button-link.component.js +30 -0
- package/development/button/secondary-button-link.d.ts +5 -0
- package/development/button/secondary-button-link.d.ts.map +1 -0
- package/development/button/secondary-button-link.js +5 -0
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts +20 -0
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -0
- package/development/button/secondary-button-static/secondary-button-static.component.js +30 -0
- package/development/button/secondary-button-static.d.ts +5 -0
- package/development/button/secondary-button-static.d.ts.map +1 -0
- package/development/button/secondary-button-static.js +5 -0
- package/development/button/secondary-button.d.ts +5 -0
- package/development/button/secondary-button.d.ts.map +1 -0
- package/development/button/secondary-button.js +5 -0
- package/development/button/transparent-button/transparent-button.component.d.ts +20 -0
- package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -0
- package/development/button/transparent-button/transparent-button.component.js +30 -0
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts +20 -0
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -0
- package/development/button/transparent-button-link/transparent-button-link.component.js +30 -0
- package/development/button/transparent-button-link.d.ts +5 -0
- package/development/button/transparent-button-link.d.ts.map +1 -0
- package/development/button/transparent-button-link.js +5 -0
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts +20 -0
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -0
- package/development/button/transparent-button-static/transparent-button-static.component.js +30 -0
- package/development/button/transparent-button-static.d.ts +5 -0
- package/development/button/transparent-button-static.d.ts.map +1 -0
- package/development/button/transparent-button-static.js +5 -0
- package/development/button/transparent-button.d.ts +5 -0
- package/development/button/transparent-button.d.ts.map +1 -0
- package/development/button/transparent-button.js +5 -0
- package/development/button.d.ts +20 -0
- package/development/button.d.ts.map +1 -0
- package/development/button.js +43 -0
- package/development/calendar/calendar.component.d.ts +310 -0
- package/development/calendar/calendar.component.d.ts.map +1 -0
- package/development/calendar/calendar.component.js +1957 -0
- package/development/calendar.d.ts +5 -0
- package/development/calendar.d.ts.map +1 -0
- package/development/calendar.js +5 -0
- package/development/card/card/card.component.d.ts +22 -0
- package/development/card/card/card.component.d.ts.map +1 -0
- package/development/card/card/card.component.js +240 -0
- package/development/card/card-badge/card-badge.component.d.ts +23 -0
- package/development/card/card-badge/card-badge.component.d.ts.map +1 -0
- package/development/card/card-badge/card-badge.component.js +126 -0
- package/development/card/card-badge.d.ts +5 -0
- package/development/card/card-badge.d.ts.map +1 -0
- package/development/card/card-badge.js +5 -0
- package/development/card/card-button/card-button.component.d.ts +18 -0
- package/development/card/card-button/card-button.component.d.ts.map +1 -0
- package/development/card/card-button/card-button.component.js +29 -0
- package/development/card/card-button.d.ts +5 -0
- package/development/card/card-button.d.ts.map +1 -0
- package/development/card/card-button.js +5 -0
- package/development/card/card-link/card-link.component.d.ts +18 -0
- package/development/card/card-link/card-link.component.d.ts.map +1 -0
- package/development/card/card-link/card-link.component.js +29 -0
- package/development/card/card-link.d.ts +5 -0
- package/development/card/card-link.d.ts.map +1 -0
- package/development/card/card-link.js +5 -0
- package/development/card/card.d.ts +5 -0
- package/development/card/card.d.ts.map +1 -0
- package/development/card/card.js +5 -0
- package/development/card/common/card-action-common.d.ts +8 -0
- package/development/card/common/card-action-common.d.ts.map +1 -0
- package/development/card/common/card-action-common.js +121 -0
- package/development/card/common.d.ts +5 -0
- package/development/card/common.d.ts.map +1 -0
- package/development/card/common.js +5 -0
- package/development/card.d.ts +9 -0
- package/development/card.d.ts.map +1 -0
- package/development/card.js +13 -0
- package/development/carousel/carousel/carousel.component.d.ts +34 -0
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -0
- package/development/carousel/carousel/carousel.component.js +167 -0
- package/development/carousel/carousel-item/carousel-item.component.d.ts +29 -0
- package/development/carousel/carousel-item/carousel-item.component.d.ts.map +1 -0
- package/development/carousel/carousel-item/carousel-item.component.js +44 -0
- package/development/carousel/carousel-item.d.ts +5 -0
- package/development/carousel/carousel-item.d.ts.map +1 -0
- package/development/carousel/carousel-item.js +5 -0
- package/development/carousel/carousel-list/carousel-list.component.d.ts +35 -0
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -0
- package/development/carousel/carousel-list/carousel-list.component.js +170 -0
- package/development/carousel/carousel-list.d.ts +5 -0
- package/development/carousel/carousel-list.d.ts.map +1 -0
- package/development/carousel/carousel-list.js +5 -0
- package/development/carousel/carousel.d.ts +5 -0
- package/development/carousel/carousel.d.ts.map +1 -0
- package/development/carousel/carousel.js +5 -0
- package/development/carousel.d.ts +7 -0
- package/development/carousel.d.ts.map +1 -0
- package/development/carousel.js +9 -0
- package/development/checkbox/checkbox/checkbox.component.d.ts +33 -0
- package/development/checkbox/checkbox/checkbox.component.d.ts.map +1 -0
- package/development/checkbox/checkbox/checkbox.component.js +147 -0
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts +39 -0
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -0
- package/development/checkbox/checkbox-group/checkbox-group.component.js +218 -0
- package/development/checkbox/checkbox-group.d.ts +5 -0
- package/development/checkbox/checkbox-group.d.ts.map +1 -0
- package/development/checkbox/checkbox-group.js +5 -0
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +27 -0
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -0
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +94 -0
- package/development/checkbox/checkbox-panel.d.ts +5 -0
- package/development/checkbox/checkbox-panel.d.ts.map +1 -0
- package/development/checkbox/checkbox-panel.js +5 -0
- package/development/checkbox/checkbox.d.ts +5 -0
- package/development/checkbox/checkbox.d.ts.map +1 -0
- package/development/checkbox/checkbox.js +5 -0
- package/development/checkbox/common/checkbox-common.d.ts +12 -0
- package/development/checkbox/common/checkbox-common.d.ts.map +1 -0
- package/development/checkbox/common/checkbox-common.js +73 -0
- package/development/checkbox/common.d.ts +5 -0
- package/development/checkbox/common.d.ts.map +1 -0
- package/development/checkbox/common.js +7 -0
- package/development/checkbox-common-D2-QcV8n.js +66 -0
- package/development/checkbox.d.ts +8 -0
- package/development/checkbox.d.ts.map +1 -0
- package/development/checkbox.js +13 -0
- package/development/chip/chip/chip.component.d.ts +30 -0
- package/development/chip/chip/chip.component.d.ts.map +1 -0
- package/development/chip/chip/chip.component.js +170 -0
- package/development/chip/chip-group/chip-group.component.d.ts +102 -0
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -0
- package/development/chip/chip-group/chip-group.component.js +424 -0
- package/development/chip/chip-group.d.ts +5 -0
- package/development/chip/chip-group.d.ts.map +1 -0
- package/development/chip/chip-group.js +5 -0
- package/development/chip/chip.d.ts +5 -0
- package/development/chip/chip.d.ts.map +1 -0
- package/development/chip/chip.js +5 -0
- package/development/chip-label/chip-label.component.d.ts +20 -0
- package/development/chip-label/chip-label.component.d.ts.map +1 -0
- package/development/chip-label/chip-label.component.js +137 -0
- package/development/chip-label.d.ts +5 -0
- package/development/chip-label.d.ts.map +1 -0
- package/development/chip-label.js +5 -0
- package/development/chip.d.ts +6 -0
- package/development/chip.d.ts.map +1 -0
- package/development/chip.js +7 -0
- package/development/clock/clock.component.d.ts +77 -0
- package/development/clock/clock.component.d.ts.map +1 -0
- package/development/clock/clock.component.js +369 -0
- package/development/clock.d.ts +5 -0
- package/development/clock.d.ts.map +1 -0
- package/development/clock.js +5 -0
- package/development/container/container/container.component.d.ts +27 -0
- package/development/container/container/container.component.d.ts.map +1 -0
- package/development/container/container/container.component.js +188 -0
- package/development/container/container.d.ts +5 -0
- package/development/container/container.d.ts.map +1 -0
- package/development/container/container.js +5 -0
- package/development/container/sticky-bar/sticky-bar.component.d.ts +58 -0
- package/development/container/sticky-bar/sticky-bar.component.d.ts.map +1 -0
- package/development/container/sticky-bar/sticky-bar.component.js +363 -0
- package/development/container/sticky-bar.d.ts +5 -0
- package/development/container/sticky-bar.d.ts.map +1 -0
- package/development/container/sticky-bar.js +5 -0
- package/development/container.d.ts +6 -0
- package/development/container.d.ts.map +1 -0
- package/development/container.js +7 -0
- package/development/core/a11y/arrow-navigation.d.ts +32 -0
- package/development/core/a11y/arrow-navigation.d.ts.map +1 -0
- package/development/core/a11y/arrow-navigation.js +43 -0
- package/development/core/a11y/fake-event-detection.d.ts +5 -0
- package/development/core/a11y/fake-event-detection.d.ts.map +1 -0
- package/development/core/a11y/fake-event-detection.js +12 -0
- package/development/core/a11y/focus-trap-controller.d.ts +35 -0
- package/development/core/a11y/focus-trap-controller.d.ts.map +1 -0
- package/development/core/a11y/focus-trap-controller.js +122 -0
- package/development/core/a11y/focus-visible-within-controller.d.ts +11 -0
- package/development/core/a11y/focus-visible-within-controller.d.ts.map +1 -0
- package/development/core/a11y/focus-visible-within-controller.js +26 -0
- package/development/core/a11y/focus.d.ts +2 -0
- package/development/core/a11y/focus.d.ts.map +1 -0
- package/development/core/a11y/focus.js +14 -0
- package/development/core/a11y/input-modality-detector.d.ts +58 -0
- package/development/core/a11y/input-modality-detector.d.ts.map +1 -0
- package/development/core/a11y/input-modality-detector.js +79 -0
- package/development/core/a11y/interactivity-checker.d.ts +52 -0
- package/development/core/a11y/interactivity-checker.d.ts.map +1 -0
- package/development/core/a11y/interactivity-checker.js +129 -0
- package/development/core/a11y/live-announcer.d.ts +62 -0
- package/development/core/a11y/live-announcer.d.ts.map +1 -0
- package/development/core/a11y/live-announcer.js +82 -0
- package/development/core/a11y.d.ts +12 -0
- package/development/core/a11y.d.ts.map +1 -0
- package/development/core/a11y.js +27 -0
- package/development/core/base-elements/action-base-element.d.ts +15 -0
- package/development/core/base-elements/action-base-element.d.ts.map +1 -0
- package/development/core/base-elements/action-base-element.js +44 -0
- package/development/core/base-elements/button-base-element.d.ts +66 -0
- package/development/core/base-elements/button-base-element.d.ts.map +1 -0
- package/development/core/base-elements/button-base-element.js +212 -0
- package/development/core/base-elements/link-base-element.d.ts +34 -0
- package/development/core/base-elements/link-base-element.d.ts.map +1 -0
- package/development/core/base-elements/link-base-element.js +173 -0
- package/development/core/base-elements/open-close-base-element.d.ts +41 -0
- package/development/core/base-elements/open-close-base-element.d.ts.map +1 -0
- package/development/core/base-elements/open-close-base-element.js +52 -0
- package/development/core/base-elements.d.ts +8 -0
- package/development/core/base-elements.d.ts.map +1 -0
- package/development/core/base-elements.js +12 -0
- package/development/core/config/config.d.ts +40 -0
- package/development/core/config/config.d.ts.map +1 -0
- package/development/core/config/config.js +15 -0
- package/development/core/config.d.ts +5 -0
- package/development/core/config.d.ts.map +1 -0
- package/development/core/config.js +6 -0
- package/development/core/controllers/escapable-overlay-controller.d.ts +14 -0
- package/development/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
- package/development/core/controllers/escapable-overlay-controller.js +38 -0
- package/development/core/controllers/id-reference-controller.d.ts +21 -0
- package/development/core/controllers/id-reference-controller.d.ts.map +1 -0
- package/development/core/controllers/id-reference-controller.js +83 -0
- package/development/core/controllers/inert-controller.d.ts +27 -0
- package/development/core/controllers/inert-controller.d.ts.map +1 -0
- package/development/core/controllers/inert-controller.js +106 -0
- package/development/core/controllers/language-controller.d.ts +32 -0
- package/development/core/controllers/language-controller.d.ts.map +1 -0
- package/development/core/controllers/language-controller.js +69 -0
- package/development/core/controllers/media-matchers-controller.d.ts +65 -0
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -0
- package/development/core/controllers/media-matchers-controller.js +141 -0
- package/development/core/controllers/overlay-position-controller.d.ts +61 -0
- package/development/core/controllers/overlay-position-controller.d.ts.map +1 -0
- package/development/core/controllers/overlay-position-controller.js +287 -0
- package/development/core/controllers/property-watcher-controller.d.ts +16 -0
- package/development/core/controllers/property-watcher-controller.d.ts.map +1 -0
- package/development/core/controllers/property-watcher-controller.js +121 -0
- package/development/core/controllers/slot-state-controller.d.ts +45 -0
- package/development/core/controllers/slot-state-controller.d.ts.map +1 -0
- package/development/core/controllers/slot-state-controller.js +65 -0
- package/development/core/controllers.d.ts +12 -0
- package/development/core/controllers.d.ts.map +1 -0
- package/development/core/controllers.js +31 -0
- package/development/core/datetime/date-adapter.d.ts +181 -0
- package/development/core/datetime/date-adapter.d.ts.map +1 -0
- package/development/core/datetime/date-adapter.js +167 -0
- package/development/core/datetime/native-date-adapter.d.ts +68 -0
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -0
- package/development/core/datetime/native-date-adapter.js +150 -0
- package/development/core/datetime/temporal-date-adapter.d.ts +73 -0
- package/development/core/datetime/temporal-date-adapter.d.ts.map +1 -0
- package/development/core/datetime/temporal-date-adapter.js +151 -0
- package/development/core/datetime.d.ts +7 -0
- package/development/core/datetime.d.ts.map +1 -0
- package/development/core/datetime.js +17 -0
- package/development/core/decorators/base.d.ts +14 -0
- package/development/core/decorators/base.d.ts.map +1 -0
- package/development/core/decorators/base.js +2 -0
- package/development/core/decorators/force-type.d.ts +8 -0
- package/development/core/decorators/force-type.d.ts.map +1 -0
- package/development/core/decorators/force-type.js +28 -0
- package/development/core/decorators/get-override.d.ts +7 -0
- package/development/core/decorators/get-override.d.ts.map +1 -0
- package/development/core/decorators/get-override.js +18 -0
- package/development/core/decorators/handle-distinct-change.d.ts +8 -0
- package/development/core/decorators/handle-distinct-change.d.ts.map +1 -0
- package/development/core/decorators/handle-distinct-change.js +22 -0
- package/development/core/decorators/host-attributes.d.ts +21 -0
- package/development/core/decorators/host-attributes.d.ts.map +1 -0
- package/development/core/decorators/host-attributes.js +30 -0
- package/development/core/decorators/id-reference.d.ts +11 -0
- package/development/core/decorators/id-reference.d.ts.map +1 -0
- package/development/core/decorators/id-reference.js +116 -0
- package/development/core/decorators/omit-empty-converter.d.ts +8 -0
- package/development/core/decorators/omit-empty-converter.d.ts.map +1 -0
- package/development/core/decorators/omit-empty-converter.js +10 -0
- package/development/core/decorators/plain-date.d.ts +23 -0
- package/development/core/decorators/plain-date.d.ts.map +1 -0
- package/development/core/decorators/plain-date.js +34 -0
- package/development/core/decorators.d.ts +11 -0
- package/development/core/decorators.d.ts.map +1 -0
- package/development/core/decorators.js +18 -0
- package/development/core/dom/animation.d.ts +2 -0
- package/development/core/dom/animation.d.ts.map +1 -0
- package/development/core/dom/animation.js +12 -0
- package/development/core/dom/contains-pierce-shadow-dom.d.ts +3 -0
- package/development/core/dom/contains-pierce-shadow-dom.d.ts.map +1 -0
- package/development/core/dom/contains-pierce-shadow-dom.js +14 -0
- package/development/core/dom/lean-context.d.ts +5 -0
- package/development/core/dom/lean-context.d.ts.map +1 -0
- package/development/core/dom/lean-context.js +8 -0
- package/development/core/dom/platform.d.ts +28 -0
- package/development/core/dom/platform.d.ts.map +1 -0
- package/development/core/dom/platform.js +32 -0
- package/development/core/dom/queue-dom-content-loaded.d.ts +5 -0
- package/development/core/dom/queue-dom-content-loaded.d.ts.map +1 -0
- package/development/core/dom/queue-dom-content-loaded.js +12 -0
- package/development/core/dom/scroll.d.ts +14 -0
- package/development/core/dom/scroll.d.ts.map +1 -0
- package/development/core/dom/scroll.js +37 -0
- package/development/core/dom/set-or-remove-attribute.d.ts +8 -0
- package/development/core/dom/set-or-remove-attribute.d.ts.map +1 -0
- package/development/core/dom/set-or-remove-attribute.js +11 -0
- package/development/core/dom.d.ts +11 -0
- package/development/core/dom.d.ts.map +1 -0
- package/development/core/dom.js +28 -0
- package/development/core/eventing/composed-path-has-attribute.d.ts +10 -0
- package/development/core/eventing/composed-path-has-attribute.d.ts.map +1 -0
- package/development/core/eventing/composed-path-has-attribute.js +12 -0
- package/development/core/eventing/event-target.d.ts +3 -0
- package/development/core/eventing/event-target.d.ts.map +1 -0
- package/development/core/eventing/event-target.js +7 -0
- package/development/core/eventing/form-element-handlers.d.ts +6 -0
- package/development/core/eventing/form-element-handlers.d.ts.map +1 -0
- package/development/core/eventing/form-element-handlers.js +9 -0
- package/development/core/eventing/forward-event.d.ts +6 -0
- package/development/core/eventing/forward-event.d.ts.map +1 -0
- package/development/core/eventing/forward-event.js +9 -0
- package/development/core/eventing/is-event-prevented.d.ts +3 -0
- package/development/core/eventing/is-event-prevented.d.ts.map +1 -0
- package/development/core/eventing/is-event-prevented.js +8 -0
- package/development/core/eventing/throttle.d.ts +2 -0
- package/development/core/eventing/throttle.d.ts.map +1 -0
- package/development/core/eventing/throttle.js +18 -0
- package/development/core/eventing.d.ts +10 -0
- package/development/core/eventing.d.ts.map +1 -0
- package/development/core/eventing.js +15 -0
- package/development/core/i18n/i18n.d.ts +103 -0
- package/development/core/i18n/i18n.d.ts.map +1 -0
- package/development/core/i18n/i18n.js +884 -0
- package/development/core/i18n.d.ts +5 -0
- package/development/core/i18n.d.ts.map +1 -0
- package/development/core/i18n.js +105 -0
- package/development/core/images.d.ts +7 -0
- package/development/core/images.d.ts.map +1 -0
- package/development/core/images.js +16 -0
- package/development/core/interfaces/overlay-close-details.d.ts +6 -0
- package/development/core/interfaces/overlay-close-details.d.ts.map +1 -0
- package/development/core/interfaces/paginator-page.d.ts +7 -0
- package/development/core/interfaces/paginator-page.d.ts.map +1 -0
- package/development/core/interfaces/types.d.ts +9 -0
- package/development/core/interfaces/types.d.ts.map +1 -0
- package/development/core/interfaces.d.ts +7 -0
- package/development/core/interfaces.d.ts.map +1 -0
- package/development/core/interfaces.js +2 -0
- package/development/core/mixins/animation-complete-mixin.d.ts +13 -0
- package/development/core/mixins/animation-complete-mixin.d.ts.map +1 -0
- package/development/core/mixins/animation-complete-mixin.js +52 -0
- package/development/core/mixins/constructor.d.ts +8 -0
- package/development/core/mixins/constructor.d.ts.map +1 -0
- package/development/core/mixins/constructor.js +2 -0
- package/development/core/mixins/disabled-mixin.d.ts +20 -0
- package/development/core/mixins/disabled-mixin.d.ts.map +1 -0
- package/development/core/mixins/disabled-mixin.js +107 -0
- package/development/core/mixins/element-internals-mixin.d.ts +49 -0
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -0
- package/development/core/mixins/element-internals-mixin.js +235 -0
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts +20 -0
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -0
- package/development/core/mixins/form-associated-checkbox-mixin.js +147 -0
- package/development/core/mixins/form-associated-input-mixin.d.ts +32 -0
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
- package/development/core/mixins/form-associated-input-mixin.js +319 -0
- package/development/core/mixins/form-associated-mixin.d.ts +53 -0
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -0
- package/development/core/mixins/form-associated-mixin.js +286 -0
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts +28 -0
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -0
- package/development/core/mixins/form-associated-radio-button-mixin.js +252 -0
- package/development/core/mixins/hydration-mixin.d.ts +23 -0
- package/development/core/mixins/hydration-mixin.d.ts.map +1 -0
- package/development/core/mixins/hydration-mixin.js +56 -0
- package/development/core/mixins/named-slot-list-mixin.d.ts +36 -0
- package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -0
- package/development/core/mixins/named-slot-list-mixin.js +133 -0
- package/development/core/mixins/negative-mixin.d.ts +10 -0
- package/development/core/mixins/negative-mixin.d.ts.map +1 -0
- package/development/core/mixins/negative-mixin.js +45 -0
- package/development/core/mixins/panel-mixin.d.ts +21 -0
- package/development/core/mixins/panel-mixin.d.ts.map +1 -0
- package/development/core/mixins/panel-mixin.js +98 -0
- package/development/core/mixins/readonly-mixin.d.ts +10 -0
- package/development/core/mixins/readonly-mixin.d.ts.map +1 -0
- package/development/core/mixins/readonly-mixin.js +46 -0
- package/development/core/mixins/required-mixin.d.ts +12 -0
- package/development/core/mixins/required-mixin.d.ts.map +1 -0
- package/development/core/mixins/required-mixin.js +48 -0
- package/development/core/mixins/selection-panel-mixin.d.ts +17 -0
- package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/development/core/mixins/selection-panel-mixin.js +56 -0
- package/development/core/mixins/update-scheduler-mixin.d.ts +13 -0
- package/development/core/mixins/update-scheduler-mixin.d.ts.map +1 -0
- package/development/core/mixins/update-scheduler-mixin.js +26 -0
- package/development/core/mixins.d.ts +20 -0
- package/development/core/mixins.d.ts.map +1 -0
- package/development/core/mixins.js +148 -0
- package/development/core/overlay/overlay-option-panel.d.ts +12 -0
- package/development/core/overlay/overlay-option-panel.d.ts.map +1 -0
- package/development/core/overlay/overlay-option-panel.js +29 -0
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts +26 -0
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts.map +1 -0
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +61 -0
- package/development/core/overlay/overlay-trigger-attributes.d.ts +18 -0
- package/development/core/overlay/overlay-trigger-attributes.d.ts.map +1 -0
- package/development/core/overlay/overlay-trigger-attributes.js +47 -0
- package/development/core/overlay/overlay.d.ts +7 -0
- package/development/core/overlay/overlay.d.ts.map +1 -0
- package/development/core/overlay/overlay.js +15 -0
- package/development/core/overlay/position.d.ts +63 -0
- package/development/core/overlay/position.d.ts.map +1 -0
- package/development/core/overlay/position.js +125 -0
- package/development/core/overlay.d.ts +9 -0
- package/development/core/overlay.d.ts.map +1 -0
- package/development/core/overlay.js +20 -0
- package/development/core/styles.d.ts +4 -0
- package/development/core/styles.d.ts.map +1 -0
- package/development/core/styles.js +10 -0
- package/development/core/testing/event-spy.d.ts +22 -0
- package/development/core/testing/event-spy.d.ts.map +1 -0
- package/development/core/testing/event-spy.js +68 -0
- package/development/core/testing/mocha-extensions.d.ts +10 -0
- package/development/core/testing/mocha-extensions.d.ts.map +1 -0
- package/development/core/testing/mocha-extensions.js +15 -0
- package/development/core/testing/wait-for-condition.d.ts +2 -0
- package/development/core/testing/wait-for-condition.d.ts.map +1 -0
- package/development/core/testing/wait-for-condition.js +19 -0
- package/development/core/testing/wait-for-image-ready.d.ts +3 -0
- package/development/core/testing/wait-for-image-ready.d.ts.map +1 -0
- package/development/core/testing/wait-for-image-ready.js +30 -0
- package/development/core/testing/wait-for-render.d.ts +17 -0
- package/development/core/testing/wait-for-render.d.ts.map +1 -0
- package/development/core/testing/wait-for-render.js +20 -0
- package/development/core/testing.d.ts +9 -0
- package/development/core/testing.d.ts.map +1 -0
- package/development/core/testing.js +15 -0
- package/development/date-input/date-input.component.d.ts +88 -0
- package/development/date-input/date-input.component.d.ts.map +1 -0
- package/development/date-input/date-input.component.js +284 -0
- package/development/date-input.d.ts +5 -0
- package/development/date-input.d.ts.map +1 -0
- package/development/date-input.js +5 -0
- package/development/datepicker/common/datepicker-button.d.ts +42 -0
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -0
- package/development/datepicker/common/datepicker-button.js +146 -0
- package/development/datepicker/common.d.ts +5 -0
- package/development/datepicker/common.d.ts.map +1 -0
- package/development/datepicker/common.js +8 -0
- package/development/datepicker/datepicker/datepicker.component.d.ts +41 -0
- package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -0
- package/development/datepicker/datepicker/datepicker.component.js +186 -0
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +19 -0
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -0
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +55 -0
- package/development/datepicker/datepicker-next-day.d.ts +5 -0
- package/development/datepicker/datepicker-next-day.d.ts.map +1 -0
- package/development/datepicker/datepicker-next-day.js +5 -0
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +19 -0
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -0
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +55 -0
- package/development/datepicker/datepicker-previous-day.d.ts +5 -0
- package/development/datepicker/datepicker-previous-day.d.ts.map +1 -0
- package/development/datepicker/datepicker-previous-day.js +5 -0
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +21 -0
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -0
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +80 -0
- package/development/datepicker/datepicker-toggle.d.ts +5 -0
- package/development/datepicker/datepicker-toggle.d.ts.map +1 -0
- package/development/datepicker/datepicker-toggle.js +5 -0
- package/development/datepicker/datepicker.d.ts +5 -0
- package/development/datepicker/datepicker.d.ts.map +1 -0
- package/development/datepicker/datepicker.js +5 -0
- package/development/datepicker-button-BDlxIp9r.js +9 -0
- package/development/datepicker.d.ts +9 -0
- package/development/datepicker.d.ts.map +1 -0
- package/development/datepicker.js +16 -0
- package/development/dialog/dialog/dialog.component.d.ts +51 -0
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -0
- package/development/dialog/dialog/dialog.component.js +403 -0
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts +17 -0
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -0
- package/development/dialog/dialog-actions/dialog-actions.component.js +55 -0
- package/development/dialog/dialog-actions.d.ts +5 -0
- package/development/dialog/dialog-actions.d.ts.map +1 -0
- package/development/dialog/dialog-actions.js +5 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +49 -0
- package/development/dialog/dialog-close-button.d.ts +5 -0
- package/development/dialog/dialog-close-button.d.ts.map +1 -0
- package/development/dialog/dialog-close-button.js +5 -0
- package/development/dialog/dialog-content/dialog-content.component.d.ts +17 -0
- package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -0
- package/development/dialog/dialog-content/dialog-content.component.js +43 -0
- package/development/dialog/dialog-content.d.ts +5 -0
- package/development/dialog/dialog-content.d.ts.map +1 -0
- package/development/dialog/dialog-content.js +5 -0
- package/development/dialog/dialog-title/dialog-title.component.d.ts +19 -0
- package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -0
- package/development/dialog/dialog-title/dialog-title.component.js +52 -0
- package/development/dialog/dialog-title.d.ts +5 -0
- package/development/dialog/dialog-title.d.ts.map +1 -0
- package/development/dialog/dialog-title.js +5 -0
- package/development/dialog/dialog.d.ts +5 -0
- package/development/dialog/dialog.d.ts.map +1 -0
- package/development/dialog/dialog.js +8 -0
- package/development/dialog.d.ts +9 -0
- package/development/dialog.d.ts.map +1 -0
- package/development/dialog.js +16 -0
- package/development/divider/divider.component.d.ts +21 -0
- package/development/divider/divider.component.d.ts.map +1 -0
- package/development/divider/divider.component.js +79 -0
- package/development/divider.d.ts +5 -0
- package/development/divider.d.ts.map +1 -0
- package/development/divider.js +5 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts +64 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +423 -0
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +22 -0
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -0
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +82 -0
- package/development/expansion-panel/expansion-panel-content.d.ts +5 -0
- package/development/expansion-panel/expansion-panel-content.d.ts.map +1 -0
- package/development/expansion-panel/expansion-panel-content.js +5 -0
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +36 -0
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -0
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +182 -0
- package/development/expansion-panel/expansion-panel-header.d.ts +5 -0
- package/development/expansion-panel/expansion-panel-header.d.ts.map +1 -0
- package/development/expansion-panel/expansion-panel-header.js +5 -0
- package/development/expansion-panel/expansion-panel.d.ts +5 -0
- package/development/expansion-panel/expansion-panel.d.ts.map +1 -0
- package/development/expansion-panel/expansion-panel.js +5 -0
- package/development/expansion-panel.d.ts +7 -0
- package/development/expansion-panel.d.ts.map +1 -0
- package/development/expansion-panel.js +9 -0
- package/development/file-selector/common/file-selector-common.d.ts +25 -0
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -0
- package/development/file-selector/common/file-selector-common.js +332 -0
- package/development/file-selector/common.d.ts +5 -0
- package/development/file-selector/common.d.ts.map +1 -0
- package/development/file-selector/common.js +7 -0
- package/development/file-selector/file-selector/file-selector.component.d.ts +21 -0
- package/development/file-selector/file-selector/file-selector.component.d.ts.map +1 -0
- package/development/file-selector/file-selector/file-selector.component.js +47 -0
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +23 -0
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -0
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +132 -0
- package/development/file-selector/file-selector-dropzone.d.ts +5 -0
- package/development/file-selector/file-selector-dropzone.d.ts.map +1 -0
- package/development/file-selector/file-selector-dropzone.js +5 -0
- package/development/file-selector/file-selector.d.ts +5 -0
- package/development/file-selector/file-selector.d.ts.map +1 -0
- package/development/file-selector/file-selector.js +5 -0
- package/development/file-selector-common-B-9Eiig3.js +102 -0
- package/development/file-selector.d.ts +7 -0
- package/development/file-selector.d.ts.map +1 -0
- package/development/file-selector.js +11 -0
- package/development/flip-card/flip-card/flip-card.component.d.ts +47 -0
- package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -0
- package/development/flip-card/flip-card/flip-card.component.js +322 -0
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts +21 -0
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -0
- package/development/flip-card/flip-card-details/flip-card-details.component.js +88 -0
- package/development/flip-card/flip-card-details.d.ts +5 -0
- package/development/flip-card/flip-card-details.d.ts.map +1 -0
- package/development/flip-card/flip-card-details.js +5 -0
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts +21 -0
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -0
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +137 -0
- package/development/flip-card/flip-card-summary.d.ts +5 -0
- package/development/flip-card/flip-card-summary.d.ts.map +1 -0
- package/development/flip-card/flip-card-summary.js +5 -0
- package/development/flip-card/flip-card.d.ts +5 -0
- package/development/flip-card/flip-card.d.ts.map +1 -0
- package/development/flip-card/flip-card.js +5 -0
- package/development/flip-card.d.ts +7 -0
- package/development/flip-card.d.ts.map +1 -0
- package/development/flip-card.js +9 -0
- package/development/footer/footer.component.d.ts +34 -0
- package/development/footer/footer.component.d.ts.map +1 -0
- package/development/footer/footer.component.js +272 -0
- package/development/footer.d.ts +5 -0
- package/development/footer.d.ts.map +1 -0
- package/development/footer.js +5 -0
- package/development/form-field/error/error.component.d.ts +20 -0
- package/development/form-field/error/error.component.d.ts.map +1 -0
- package/development/form-field/error/error.component.js +101 -0
- package/development/form-field/error.d.ts +5 -0
- package/development/form-field/error.d.ts.map +1 -0
- package/development/form-field/error.js +5 -0
- package/development/form-field/form-field/form-field.component.d.ts +125 -0
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -0
- package/development/form-field/form-field/form-field.component.js +922 -0
- package/development/form-field/form-field-clear/form-field-clear.component.d.ts +23 -0
- package/development/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -0
- package/development/form-field/form-field-clear/form-field-clear.component.js +60 -0
- package/development/form-field/form-field-clear.d.ts +5 -0
- package/development/form-field/form-field-clear.d.ts.map +1 -0
- package/development/form-field/form-field-clear.js +5 -0
- package/development/form-field/form-field.d.ts +5 -0
- package/development/form-field/form-field.d.ts.map +1 -0
- package/development/form-field/form-field.js +6 -0
- package/development/form-field.d.ts +7 -0
- package/development/form-field.d.ts.map +1 -0
- package/development/form-field.js +10 -0
- package/development/header/common/header-action-common.d.ts +10 -0
- package/development/header/common/header-action-common.d.ts.map +1 -0
- package/development/header/common/header-action-common.js +350 -0
- package/development/header/common.d.ts +5 -0
- package/development/header/common.d.ts.map +1 -0
- package/development/header/common.js +5 -0
- package/development/header/header/header.component.d.ts +65 -0
- package/development/header/header/header.component.d.ts.map +1 -0
- package/development/header/header/header.component.js +392 -0
- package/development/header/header-button/header-button.component.d.ts +17 -0
- package/development/header/header-button/header-button.component.d.ts.map +1 -0
- package/development/header/header-button/header-button.component.js +25 -0
- package/development/header/header-button.d.ts +5 -0
- package/development/header/header-button.d.ts.map +1 -0
- package/development/header/header-button.js +5 -0
- package/development/header/header-environment/header-environment.component.d.ts +24 -0
- package/development/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/development/header/header-environment/header-environment.component.js +109 -0
- package/development/header/header-environment.d.ts +5 -0
- package/development/header/header-environment.d.ts.map +1 -0
- package/development/header/header-environment.js +5 -0
- package/development/header/header-link/header-link.component.d.ts +17 -0
- package/development/header/header-link/header-link.component.d.ts.map +1 -0
- package/development/header/header-link/header-link.component.js +25 -0
- package/development/header/header-link.d.ts +5 -0
- package/development/header/header-link.d.ts.map +1 -0
- package/development/header/header-link.js +5 -0
- package/development/header/header.d.ts +5 -0
- package/development/header/header.d.ts.map +1 -0
- package/development/header/header.js +5 -0
- package/development/header.d.ts +8 -0
- package/development/header.d.ts.map +1 -0
- package/development/header.js +11 -0
- package/development/icon/icon-base.d.ts +29 -0
- package/development/icon/icon-base.d.ts.map +1 -0
- package/development/icon/icon-base.js +174 -0
- package/development/icon/icon-name-mixin.d.ts +12 -0
- package/development/icon/icon-name-mixin.d.ts.map +1 -0
- package/development/icon/icon-name-mixin.js +67 -0
- package/development/icon/icon-request.d.ts +3 -0
- package/development/icon/icon-request.d.ts.map +1 -0
- package/development/icon/icon-request.js +41 -0
- package/development/icon/icon-validate.d.ts +12 -0
- package/development/icon/icon-validate.d.ts.map +1 -0
- package/development/icon/icon-validate.js +47 -0
- package/development/icon/icon.component.d.ts +36 -0
- package/development/icon/icon.component.d.ts.map +1 -0
- package/development/icon/icon.component.js +107 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.d.ts +25 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +78 -0
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +22 -0
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +33 -0
- package/development/icon-sidebar/icon-sidebar-button.d.ts +5 -0
- package/development/icon-sidebar/icon-sidebar-button.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-button.js +5 -0
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.d.ts +23 -0
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +42 -0
- package/development/icon-sidebar/icon-sidebar-container.d.ts +5 -0
- package/development/icon-sidebar/icon-sidebar-container.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-container.js +5 -0
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.d.ts +17 -0
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +34 -0
- package/development/icon-sidebar/icon-sidebar-content.d.ts +5 -0
- package/development/icon-sidebar/icon-sidebar-content.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-content.js +5 -0
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +22 -0
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +33 -0
- package/development/icon-sidebar/icon-sidebar-link.d.ts +5 -0
- package/development/icon-sidebar/icon-sidebar-link.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar-link.js +5 -0
- package/development/icon-sidebar/icon-sidebar.d.ts +5 -0
- package/development/icon-sidebar/icon-sidebar.d.ts.map +1 -0
- package/development/icon-sidebar/icon-sidebar.js +5 -0
- package/development/icon-sidebar-button-common-DR6eQvkq.js +93 -0
- package/development/icon-sidebar.d.ts +9 -0
- package/development/icon-sidebar.d.ts.map +1 -0
- package/development/icon-sidebar.js +13 -0
- package/development/icon.d.ts +9 -0
- package/development/icon.d.ts.map +1 -0
- package/development/icon.js +14 -0
- package/development/image/image.component.d.ts +214 -0
- package/development/image/image.component.d.ts.map +1 -0
- package/development/image/image.component.js +655 -0
- package/development/image.d.ts +5 -0
- package/development/image.d.ts.map +1 -0
- package/development/image.js +5 -0
- package/development/journey-header/journey-header.component.d.ts +32 -0
- package/development/journey-header/journey-header.component.d.ts.map +1 -0
- package/development/journey-header/journey-header.component.js +162 -0
- package/development/journey-header.d.ts +5 -0
- package/development/journey-header.d.ts.map +1 -0
- package/development/journey-header.js +5 -0
- package/development/lead-container/lead-container.component.d.ts +21 -0
- package/development/lead-container/lead-container.component.d.ts.map +1 -0
- package/development/lead-container/lead-container.component.js +140 -0
- package/development/lead-container.d.ts +5 -0
- package/development/lead-container.d.ts.map +1 -0
- package/development/lead-container.js +5 -0
- package/development/link/block-link/block-link.component.d.ts +17 -0
- package/development/link/block-link/block-link.component.d.ts.map +1 -0
- package/development/link/block-link/block-link.component.js +26 -0
- package/development/link/block-link-button/block-link-button.component.d.ts +17 -0
- package/development/link/block-link-button/block-link-button.component.d.ts.map +1 -0
- package/development/link/block-link-button/block-link-button.component.js +26 -0
- package/development/link/block-link-button.d.ts +5 -0
- package/development/link/block-link-button.d.ts.map +1 -0
- package/development/link/block-link-button.js +5 -0
- package/development/link/block-link-static/block-link-static.component.d.ts +17 -0
- package/development/link/block-link-static/block-link-static.component.d.ts.map +1 -0
- package/development/link/block-link-static/block-link-static.component.js +26 -0
- package/development/link/block-link-static.d.ts +5 -0
- package/development/link/block-link-static.d.ts.map +1 -0
- package/development/link/block-link-static.js +5 -0
- package/development/link/block-link.d.ts +5 -0
- package/development/link/block-link.d.ts.map +1 -0
- package/development/link/block-link.js +5 -0
- package/development/link/common/block-link-common.d.ts +10 -0
- package/development/link/common/block-link-common.d.ts.map +1 -0
- package/development/link/common/block-link-common.js +135 -0
- package/development/link/common/inline-link-common.d.ts +8 -0
- package/development/link/common/inline-link-common.d.ts.map +1 -0
- package/development/link/common/inline-link-common.js +44 -0
- package/development/link/common/link-common.d.ts +10 -0
- package/development/link/common/link-common.d.ts.map +1 -0
- package/development/link/common/link-common.js +10 -0
- package/development/link/common.d.ts +7 -0
- package/development/link/common.d.ts.map +1 -0
- package/development/link/common.js +9 -0
- package/development/link/link/link.component.d.ts +16 -0
- package/development/link/link/link.component.d.ts.map +1 -0
- package/development/link/link/link.component.js +26 -0
- package/development/link/link-button/link-button.component.d.ts +16 -0
- package/development/link/link-button/link-button.component.d.ts.map +1 -0
- package/development/link/link-button/link-button.component.js +26 -0
- package/development/link/link-button.d.ts +5 -0
- package/development/link/link-button.d.ts.map +1 -0
- package/development/link/link-button.js +5 -0
- package/development/link/link-static/link-static.component.d.ts +16 -0
- package/development/link/link-static/link-static.component.d.ts.map +1 -0
- package/development/link/link-static/link-static.component.js +26 -0
- package/development/link/link-static.d.ts +5 -0
- package/development/link/link-static.d.ts.map +1 -0
- package/development/link/link-static.js +5 -0
- package/development/link/link.d.ts +5 -0
- package/development/link/link.d.ts.map +1 -0
- package/development/link/link.js +5 -0
- package/development/link-common-d27fHmQw.js +111 -0
- package/development/link-list/common/link-list-base.d.ts +28 -0
- package/development/link-list/common/link-list-base.d.ts.map +1 -0
- package/development/link-list/common/link-list-base.js +113 -0
- package/development/link-list/common.d.ts +5 -0
- package/development/link-list/common.d.ts.map +1 -0
- package/development/link-list/common.js +7 -0
- package/development/link-list/link-list/link-list.component.d.ts +22 -0
- package/development/link-list/link-list/link-list.component.d.ts.map +1 -0
- package/development/link-list/link-list/link-list.component.js +159 -0
- package/development/link-list/link-list-anchor/link-list-anchor.component.d.ts +17 -0
- package/development/link-list/link-list-anchor/link-list-anchor.component.d.ts.map +1 -0
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +74 -0
- package/development/link-list/link-list-anchor.d.ts +5 -0
- package/development/link-list/link-list-anchor.d.ts.map +1 -0
- package/development/link-list/link-list-anchor.js +5 -0
- package/development/link-list/link-list.d.ts +5 -0
- package/development/link-list/link-list.d.ts.map +1 -0
- package/development/link-list/link-list.js +5 -0
- package/development/link-list-base-CJJ3qdD7.js +21 -0
- package/development/link-list.d.ts +7 -0
- package/development/link-list.d.ts.map +1 -0
- package/development/link-list.js +11 -0
- package/development/link.d.ts +11 -0
- package/development/link.d.ts.map +1 -0
- package/development/link.js +21 -0
- package/development/loading-indicator/loading-indicator.component.d.ts +22 -0
- package/development/loading-indicator/loading-indicator.component.d.ts.map +1 -0
- package/development/loading-indicator/loading-indicator.component.js +255 -0
- package/development/loading-indicator-circle/loading-indicator-circle.component.d.ts +20 -0
- package/development/loading-indicator-circle/loading-indicator-circle.component.d.ts.map +1 -0
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +142 -0
- package/development/loading-indicator-circle.d.ts +5 -0
- package/development/loading-indicator-circle.d.ts.map +1 -0
- package/development/loading-indicator-circle.js +5 -0
- package/development/loading-indicator.d.ts +5 -0
- package/development/loading-indicator.d.ts.map +1 -0
- package/development/loading-indicator.js +5 -0
- package/development/logo/logo.component.d.ts +23 -0
- package/development/logo/logo.component.d.ts.map +1 -0
- package/development/logo/logo.component.js +152 -0
- package/development/logo.d.ts +5 -0
- package/development/logo.d.ts.map +1 -0
- package/development/logo.js +5 -0
- package/development/map-container/map-container.component.d.ts +47 -0
- package/development/map-container/map-container.component.d.ts.map +1 -0
- package/development/map-container/map-container.component.js +288 -0
- package/development/map-container.d.ts +5 -0
- package/development/map-container.d.ts.map +1 -0
- package/development/map-container.js +5 -0
- package/development/menu/common/menu-action-common.d.ts +8 -0
- package/development/menu/common/menu-action-common.d.ts.map +1 -0
- package/development/menu/common/menu-action-common.js +144 -0
- package/development/menu/common.d.ts +5 -0
- package/development/menu/common.d.ts.map +1 -0
- package/development/menu/common.js +5 -0
- package/development/menu/menu/menu.component.d.ts +79 -0
- package/development/menu/menu/menu.component.d.ts.map +1 -0
- package/development/menu/menu/menu.component.js +689 -0
- package/development/menu/menu-button/menu-button.component.d.ts +20 -0
- package/development/menu/menu-button/menu-button.component.d.ts.map +1 -0
- package/development/menu/menu-button/menu-button.component.js +25 -0
- package/development/menu/menu-button.d.ts +5 -0
- package/development/menu/menu-button.d.ts.map +1 -0
- package/development/menu/menu-button.js +5 -0
- package/development/menu/menu-link/menu-link.component.d.ts +20 -0
- package/development/menu/menu-link/menu-link.component.d.ts.map +1 -0
- package/development/menu/menu-link/menu-link.component.js +30 -0
- package/development/menu/menu-link.d.ts +5 -0
- package/development/menu/menu-link.d.ts.map +1 -0
- package/development/menu/menu-link.js +5 -0
- package/development/menu/menu.d.ts +5 -0
- package/development/menu/menu.d.ts.map +1 -0
- package/development/menu/menu.js +5 -0
- package/development/menu.d.ts +8 -0
- package/development/menu.d.ts.map +1 -0
- package/development/menu.js +11 -0
- package/development/message/message.component.d.ts +21 -0
- package/development/message/message.component.d.ts.map +1 -0
- package/development/message/message.component.js +94 -0
- package/development/message.d.ts +5 -0
- package/development/message.d.ts.map +1 -0
- package/development/message.js +5 -0
- package/development/mini-button-label-common-BaMSfSTe.js +558 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.d.ts +35 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.d.ts.map +1 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +194 -0
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.d.ts +23 -0
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.d.ts.map +1 -0
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +175 -0
- package/development/mini-calendar/mini-calendar-day.d.ts +5 -0
- package/development/mini-calendar/mini-calendar-day.d.ts.map +1 -0
- package/development/mini-calendar/mini-calendar-day.js +5 -0
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.d.ts +25 -0
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.d.ts.map +1 -0
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +118 -0
- package/development/mini-calendar/mini-calendar-month.d.ts +5 -0
- package/development/mini-calendar/mini-calendar-month.d.ts.map +1 -0
- package/development/mini-calendar/mini-calendar-month.js +5 -0
- package/development/mini-calendar/mini-calendar.d.ts +5 -0
- package/development/mini-calendar/mini-calendar.d.ts.map +1 -0
- package/development/mini-calendar/mini-calendar.js +5 -0
- package/development/mini-calendar.d.ts +7 -0
- package/development/mini-calendar.d.ts.map +1 -0
- package/development/mini-calendar.js +9 -0
- package/development/navigation/common/navigation-action-common.d.ts +13 -0
- package/development/navigation/common/navigation-action-common.d.ts.map +1 -0
- package/development/navigation/common/navigation-action-common.js +165 -0
- package/development/navigation/common.d.ts +5 -0
- package/development/navigation/common.d.ts.map +1 -0
- package/development/navigation/common.js +5 -0
- package/development/navigation/navigation/navigation.component.d.ts +73 -0
- package/development/navigation/navigation/navigation.component.d.ts.map +1 -0
- package/development/navigation/navigation/navigation.component.js +578 -0
- package/development/navigation/navigation-button/navigation-button.component.d.ts +16 -0
- package/development/navigation/navigation-button/navigation-button.component.d.ts.map +1 -0
- package/development/navigation/navigation-button/navigation-button.component.js +25 -0
- package/development/navigation/navigation-button.d.ts +5 -0
- package/development/navigation/navigation-button.d.ts.map +1 -0
- package/development/navigation/navigation-button.js +5 -0
- package/development/navigation/navigation-link/navigation-link.component.d.ts +16 -0
- package/development/navigation/navigation-link/navigation-link.component.d.ts.map +1 -0
- package/development/navigation/navigation-link/navigation-link.component.js +25 -0
- package/development/navigation/navigation-link.d.ts +5 -0
- package/development/navigation/navigation-link.d.ts.map +1 -0
- package/development/navigation/navigation-link.js +5 -0
- package/development/navigation/navigation-list/navigation-list.component.d.ts +28 -0
- package/development/navigation/navigation-list/navigation-list.component.d.ts.map +1 -0
- package/development/navigation/navigation-list/navigation-list.component.js +108 -0
- package/development/navigation/navigation-list.d.ts +5 -0
- package/development/navigation/navigation-list.d.ts.map +1 -0
- package/development/navigation/navigation-list.js +5 -0
- package/development/navigation/navigation-marker/navigation-marker.component.d.ts +37 -0
- package/development/navigation/navigation-marker/navigation-marker.component.d.ts.map +1 -0
- package/development/navigation/navigation-marker/navigation-marker.component.js +205 -0
- package/development/navigation/navigation-marker.d.ts +5 -0
- package/development/navigation/navigation-marker.d.ts.map +1 -0
- package/development/navigation/navigation-marker.js +5 -0
- package/development/navigation/navigation-section/navigation-section.component.d.ts +77 -0
- package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -0
- package/development/navigation/navigation-section/navigation-section.component.js +595 -0
- package/development/navigation/navigation-section.d.ts +5 -0
- package/development/navigation/navigation-section.d.ts.map +1 -0
- package/development/navigation/navigation-section.js +5 -0
- package/development/navigation/navigation.d.ts +5 -0
- package/development/navigation/navigation.d.ts.map +1 -0
- package/development/navigation/navigation.js +5 -0
- package/development/navigation.d.ts +11 -0
- package/development/navigation.d.ts.map +1 -0
- package/development/navigation.js +17 -0
- package/development/notification/notification.component.d.ts +60 -0
- package/development/notification/notification.component.d.ts.map +1 -0
- package/development/notification/notification.component.js +502 -0
- package/development/notification.d.ts +5 -0
- package/development/notification.d.ts.map +1 -0
- package/development/notification.js +5 -0
- package/development/option/optgroup/optgroup-base-element.d.ts +22 -0
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -0
- package/development/option/optgroup/optgroup-base-element.js +167 -0
- package/development/option/optgroup/optgroup.component.d.ts +21 -0
- package/development/option/optgroup/optgroup.component.d.ts.map +1 -0
- package/development/option/optgroup/optgroup.component.js +54 -0
- package/development/option/optgroup.d.ts +6 -0
- package/development/option/optgroup.d.ts.map +1 -0
- package/development/option/optgroup.js +7 -0
- package/development/option/option/option-base-element.d.ts +63 -0
- package/development/option/option/option-base-element.d.ts.map +1 -0
- package/development/option/option/option-base-element.js +300 -0
- package/development/option/option/option.component.d.ts +45 -0
- package/development/option/option/option.component.d.ts.map +1 -0
- package/development/option/option/option.component.js +276 -0
- package/development/option/option-hint/option-hint.component.d.ts +18 -0
- package/development/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/development/option/option-hint/option-hint.component.js +71 -0
- package/development/option/option-hint.d.ts +5 -0
- package/development/option/option-hint.d.ts.map +1 -0
- package/development/option/option-hint.js +5 -0
- package/development/option/option.d.ts +6 -0
- package/development/option/option.d.ts.map +1 -0
- package/development/option/option.js +7 -0
- package/development/option.d.ts +7 -0
- package/development/option.d.ts.map +1 -0
- package/development/option.js +13 -0
- package/development/overlay/overlay-base-element.d.ts +93 -0
- package/development/overlay/overlay-base-element.d.ts.map +1 -0
- package/development/overlay/overlay-base-element.js +256 -0
- package/development/overlay/overlay.component.d.ts +43 -0
- package/development/overlay/overlay.component.d.ts.map +1 -0
- package/development/overlay/overlay.component.js +381 -0
- package/development/overlay.d.ts +6 -0
- package/development/overlay.d.ts.map +1 -0
- package/development/overlay.js +10 -0
- package/development/paginator/common/paginator-common.d.ts +35 -0
- package/development/paginator/common/paginator-common.d.ts.map +1 -0
- package/development/paginator/common/paginator-common.js +300 -0
- package/development/paginator/common.d.ts +5 -0
- package/development/paginator/common.d.ts.map +1 -0
- package/development/paginator/common.js +5 -0
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts +18 -0
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -0
- package/development/paginator/compact-paginator/compact-paginator.component.js +98 -0
- package/development/paginator/compact-paginator.d.ts +5 -0
- package/development/paginator/compact-paginator.d.ts.map +1 -0
- package/development/paginator/compact-paginator.js +5 -0
- package/development/paginator/paginator/paginator.component.d.ts +45 -0
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -0
- package/development/paginator/paginator/paginator.component.js +450 -0
- package/development/paginator/paginator.d.ts +5 -0
- package/development/paginator/paginator.d.ts.map +1 -0
- package/development/paginator/paginator.js +5 -0
- package/development/paginator.d.ts +7 -0
- package/development/paginator.d.ts.map +1 -0
- package/development/paginator.js +9 -0
- package/development/popover/popover.component.d.ts +109 -0
- package/development/popover/popover.component.d.ts.map +1 -0
- package/development/popover/popover.component.js +726 -0
- package/development/popover.d.ts +5 -0
- package/development/popover.d.ts.map +1 -0
- package/development/popover.js +6 -0
- package/development/radio-button/common/radio-button-common.d.ts +14 -0
- package/development/radio-button/common/radio-button-common.d.ts.map +1 -0
- package/development/radio-button/common/radio-button-common.js +89 -0
- package/development/radio-button/common.d.ts +5 -0
- package/development/radio-button/common.d.ts.map +1 -0
- package/development/radio-button/common.js +7 -0
- package/development/radio-button/radio-button/radio-button.component.d.ts +35 -0
- package/development/radio-button/radio-button/radio-button.component.d.ts.map +1 -0
- package/development/radio-button/radio-button/radio-button.component.js +103 -0
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +78 -0
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -0
- package/development/radio-button/radio-button-group/radio-button-group.component.js +314 -0
- package/development/radio-button/radio-button-group.d.ts +5 -0
- package/development/radio-button/radio-button-group.d.ts.map +1 -0
- package/development/radio-button/radio-button-group.js +5 -0
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +44 -0
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -0
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +108 -0
- package/development/radio-button/radio-button-panel.d.ts +5 -0
- package/development/radio-button/radio-button-panel.d.ts.map +1 -0
- package/development/radio-button/radio-button-panel.js +5 -0
- package/development/radio-button/radio-button.d.ts +5 -0
- package/development/radio-button/radio-button.d.ts.map +1 -0
- package/development/radio-button/radio-button.js +5 -0
- package/development/radio-button-common-4_yg7r8b.js +116 -0
- package/development/radio-button.d.ts +8 -0
- package/development/radio-button.d.ts.map +1 -0
- package/development/radio-button.js +13 -0
- package/development/sbb-tokens-DQT_xEIZ.js +19 -0
- package/development/screen-reader-only/screen-reader-only.component.d.ts +16 -0
- package/development/screen-reader-only/screen-reader-only.component.d.ts.map +1 -0
- package/development/screen-reader-only/screen-reader-only.component.js +37 -0
- package/development/screen-reader-only.d.ts +5 -0
- package/development/screen-reader-only.d.ts.map +1 -0
- package/development/screen-reader-only.js +5 -0
- package/development/select/select.component.d.ts +171 -0
- package/development/select/select.component.d.ts.map +1 -0
- package/development/select/select.component.js +1099 -0
- package/development/select.d.ts +5 -0
- package/development/select.d.ts.map +1 -0
- package/development/select.js +5 -0
- package/development/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/development/selection-action-panel/selection-action-panel.component.js +137 -0
- package/development/selection-action-panel.d.ts +5 -0
- package/development/selection-action-panel.d.ts.map +1 -0
- package/development/selection-action-panel.js +5 -0
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +45 -0
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -0
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +312 -0
- package/development/selection-expansion-panel.d.ts +5 -0
- package/development/selection-expansion-panel.d.ts.map +1 -0
- package/development/selection-expansion-panel.js +5 -0
- package/development/sidebar/common.d.ts +4 -0
- package/development/sidebar/common.d.ts.map +1 -0
- package/development/sidebar/common.js +7 -0
- package/development/sidebar/sidebar/sidebar.component.d.ts +66 -0
- package/development/sidebar/sidebar/sidebar.component.d.ts.map +1 -0
- package/development/sidebar/sidebar/sidebar.component.js +480 -0
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +23 -0
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -0
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +49 -0
- package/development/sidebar/sidebar-close-button.d.ts +5 -0
- package/development/sidebar/sidebar-close-button.d.ts.map +1 -0
- package/development/sidebar/sidebar-close-button.js +5 -0
- package/development/sidebar/sidebar-container/sidebar-container.component.d.ts +34 -0
- package/development/sidebar/sidebar-container/sidebar-container.component.d.ts.map +1 -0
- package/development/sidebar/sidebar-container/sidebar-container.component.js +159 -0
- package/development/sidebar/sidebar-container.d.ts +5 -0
- package/development/sidebar/sidebar-container.d.ts.map +1 -0
- package/development/sidebar/sidebar-container.js +5 -0
- package/development/sidebar/sidebar-content/sidebar-content.component.d.ts +18 -0
- package/development/sidebar/sidebar-content/sidebar-content.component.d.ts.map +1 -0
- package/development/sidebar/sidebar-content/sidebar-content.component.js +37 -0
- package/development/sidebar/sidebar-content.d.ts +5 -0
- package/development/sidebar/sidebar-content.d.ts.map +1 -0
- package/development/sidebar/sidebar-content.js +5 -0
- package/development/sidebar/sidebar-title/sidebar-title.component.d.ts +20 -0
- package/development/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -0
- package/development/sidebar/sidebar-title/sidebar-title.component.js +60 -0
- package/development/sidebar/sidebar-title.d.ts +5 -0
- package/development/sidebar/sidebar-title.d.ts.map +1 -0
- package/development/sidebar/sidebar-title.js +5 -0
- package/development/sidebar/sidebar.d.ts +5 -0
- package/development/sidebar/sidebar.d.ts.map +1 -0
- package/development/sidebar/sidebar.js +5 -0
- package/development/sidebar.d.ts +10 -0
- package/development/sidebar.d.ts.map +1 -0
- package/development/sidebar.js +17 -0
- package/development/signet/signet.component.d.ts +22 -0
- package/development/signet/signet.component.d.ts.map +1 -0
- package/development/signet/signet.component.js +157 -0
- package/development/signet.d.ts +5 -0
- package/development/signet.d.ts.map +1 -0
- package/development/signet.js +5 -0
- package/development/skiplink-list/skiplink-list.component.d.ts +33 -0
- package/development/skiplink-list/skiplink-list.component.d.ts.map +1 -0
- package/development/skiplink-list/skiplink-list.component.js +166 -0
- package/development/skiplink-list.d.ts +5 -0
- package/development/skiplink-list.d.ts.map +1 -0
- package/development/skiplink-list.js +5 -0
- package/development/slider/slider.component.d.ts +79 -0
- package/development/slider/slider.component.d.ts.map +1 -0
- package/development/slider/slider.component.js +398 -0
- package/development/slider.d.ts +5 -0
- package/development/slider.d.ts.map +1 -0
- package/development/slider.js +5 -0
- package/development/status/status.component.d.ts +31 -0
- package/development/status/status.component.d.ts.map +1 -0
- package/development/status/status.component.js +157 -0
- package/development/status.d.ts +5 -0
- package/development/status.d.ts.map +1 -0
- package/development/status.js +5 -0
- package/development/stepper/step/step.component.d.ts +75 -0
- package/development/stepper/step/step.component.d.ts.map +1 -0
- package/development/stepper/step/step.component.js +226 -0
- package/development/stepper/step-label/step-label.component.d.ts +56 -0
- package/development/stepper/step-label/step-label.component.d.ts.map +1 -0
- package/development/stepper/step-label/step-label.component.js +310 -0
- package/development/stepper/step-label.d.ts +5 -0
- package/development/stepper/step-label.d.ts.map +1 -0
- package/development/stepper/step-label.js +5 -0
- package/development/stepper/step.d.ts +5 -0
- package/development/stepper/step.d.ts.map +1 -0
- package/development/stepper/step.js +5 -0
- package/development/stepper/stepper/stepper.component.d.ts +96 -0
- package/development/stepper/stepper/stepper.component.d.ts.map +1 -0
- package/development/stepper/stepper/stepper.component.js +472 -0
- package/development/stepper/stepper.d.ts +5 -0
- package/development/stepper/stepper.d.ts.map +1 -0
- package/development/stepper/stepper.js +6 -0
- package/development/stepper.d.ts +7 -0
- package/development/stepper.d.ts.map +1 -0
- package/development/stepper.js +10 -0
- package/development/table/table-wrapper/table-wrapper.component.d.ts +31 -0
- package/development/table/table-wrapper/table-wrapper.component.d.ts.map +1 -0
- package/development/table/table-wrapper/table-wrapper.component.js +126 -0
- package/development/table/table-wrapper.d.ts +5 -0
- package/development/table/table-wrapper.d.ts.map +1 -0
- package/development/table/table-wrapper.js +5 -0
- package/development/table.d.ts +5 -0
- package/development/table.d.ts.map +1 -0
- package/development/table.js +5 -0
- package/development/tabs/common.d.ts +4 -0
- package/development/tabs/common.d.ts.map +1 -0
- package/development/tabs/common.js +171 -0
- package/development/tabs/tab/tab.component.d.ts +36 -0
- package/development/tabs/tab/tab.component.d.ts.map +1 -0
- package/development/tabs/tab/tab.component.js +98 -0
- package/development/tabs/tab-group/tab-group.component.d.ts +82 -0
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -0
- package/development/tabs/tab-group/tab-group.component.js +242 -0
- package/development/tabs/tab-group.d.ts +5 -0
- package/development/tabs/tab-group.d.ts.map +1 -0
- package/development/tabs/tab-group.js +5 -0
- package/development/tabs/tab-label/tab-label.component.d.ts +51 -0
- package/development/tabs/tab-label/tab-label.component.d.ts.map +1 -0
- package/development/tabs/tab-label/tab-label.component.js +375 -0
- package/development/tabs/tab-label.d.ts +5 -0
- package/development/tabs/tab-label.d.ts.map +1 -0
- package/development/tabs/tab-label.js +5 -0
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.d.ts +30 -0
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.d.ts.map +1 -0
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +105 -0
- package/development/tabs/tab-nav-bar.d.ts +5 -0
- package/development/tabs/tab-nav-bar.d.ts.map +1 -0
- package/development/tabs/tab-nav-bar.js +5 -0
- package/development/tabs/tab.d.ts +5 -0
- package/development/tabs/tab.d.ts.map +1 -0
- package/development/tabs/tab.js +5 -0
- package/development/tabs.d.ts +8 -0
- package/development/tabs.d.ts.map +1 -0
- package/development/tabs.js +11 -0
- package/development/tag/tag/tag.component.d.ts +58 -0
- package/development/tag/tag/tag.component.d.ts.map +1 -0
- package/development/tag/tag/tag.component.js +358 -0
- package/development/tag/tag-group/tag-group.component.d.ts +50 -0
- package/development/tag/tag-group/tag-group.component.d.ts.map +1 -0
- package/development/tag/tag-group/tag-group.component.js +185 -0
- package/development/tag/tag-group.d.ts +5 -0
- package/development/tag/tag-group.d.ts.map +1 -0
- package/development/tag/tag-group.js +5 -0
- package/development/tag/tag.d.ts +5 -0
- package/development/tag/tag.d.ts.map +1 -0
- package/development/tag/tag.js +5 -0
- package/development/tag.d.ts +6 -0
- package/development/tag.d.ts.map +1 -0
- package/development/tag.js +7 -0
- package/development/teaser/teaser.component.d.ts +26 -0
- package/development/teaser/teaser.component.d.ts.map +1 -0
- package/development/teaser/teaser.component.js +231 -0
- package/development/teaser-hero/teaser-hero.component.d.ts +23 -0
- package/development/teaser-hero/teaser-hero.component.d.ts.map +1 -0
- package/development/teaser-hero/teaser-hero.component.js +179 -0
- package/development/teaser-hero.d.ts +5 -0
- package/development/teaser-hero.d.ts.map +1 -0
- package/development/teaser-hero.js +5 -0
- package/development/teaser-product/common/teaser-product-common.d.ts +9 -0
- package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -0
- package/development/teaser-product/common/teaser-product-common.js +64 -0
- package/development/teaser-product/common.d.ts +5 -0
- package/development/teaser-product/common.d.ts.map +1 -0
- package/development/teaser-product/common.js +7 -0
- package/development/teaser-product/teaser-product/teaser-product.component.d.ts +23 -0
- package/development/teaser-product/teaser-product/teaser-product.component.d.ts.map +1 -0
- package/development/teaser-product/teaser-product/teaser-product.component.js +76 -0
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +22 -0
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts.map +1 -0
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +25 -0
- package/development/teaser-product/teaser-product-static.d.ts +5 -0
- package/development/teaser-product/teaser-product-static.d.ts.map +1 -0
- package/development/teaser-product/teaser-product-static.js +5 -0
- package/development/teaser-product/teaser-product.d.ts +5 -0
- package/development/teaser-product/teaser-product.d.ts.map +1 -0
- package/development/teaser-product/teaser-product.js +5 -0
- package/development/teaser-product-common-CJfmvweQ.js +150 -0
- package/development/teaser-product.d.ts +7 -0
- package/development/teaser-product.d.ts.map +1 -0
- package/development/teaser-product.js +11 -0
- package/development/teaser.d.ts +5 -0
- package/development/teaser.d.ts.map +1 -0
- package/development/teaser.js +5 -0
- package/development/time-input/time-input.component.d.ts +49 -0
- package/development/time-input/time-input.component.d.ts.map +1 -0
- package/development/time-input/time-input.component.js +219 -0
- package/development/time-input.d.ts +5 -0
- package/development/time-input.d.ts.map +1 -0
- package/development/time-input.js +5 -0
- package/development/timetable-form/timetable-form/timetable-form.component.d.ts +17 -0
- package/development/timetable-form/timetable-form/timetable-form.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form/timetable-form.component.js +34 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.d.ts +16 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +51 -0
- package/development/timetable-form/timetable-form-details.d.ts +5 -0
- package/development/timetable-form/timetable-form-details.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-details.js +5 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.d.ts +18 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +124 -0
- package/development/timetable-form/timetable-form-field.d.ts +5 -0
- package/development/timetable-form/timetable-form-field.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-field.js +5 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts +24 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +76 -0
- package/development/timetable-form/timetable-form-swap-button.d.ts +5 -0
- package/development/timetable-form/timetable-form-swap-button.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-swap-button.js +5 -0
- package/development/timetable-form/timetable-form.d.ts +5 -0
- package/development/timetable-form/timetable-form.d.ts.map +1 -0
- package/development/timetable-form/timetable-form.js +5 -0
- package/development/timetable-form.d.ts +8 -0
- package/development/timetable-form.d.ts.map +1 -0
- package/development/timetable-form.js +11 -0
- package/development/timetable-occupancy/timetable-occupancy.component.d.ts +22 -0
- package/development/timetable-occupancy/timetable-occupancy.component.d.ts.map +1 -0
- package/development/timetable-occupancy/timetable-occupancy.component.js +146 -0
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts +28 -0
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -0
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +96 -0
- package/development/timetable-occupancy-icon.d.ts +5 -0
- package/development/timetable-occupancy-icon.d.ts.map +1 -0
- package/development/timetable-occupancy-icon.js +5 -0
- package/development/timetable-occupancy.d.ts +5 -0
- package/development/timetable-occupancy.d.ts.map +1 -0
- package/development/timetable-occupancy.js +5 -0
- package/development/title/title-base.d.ts +18 -0
- package/development/title/title-base.d.ts.map +1 -0
- package/development/title/title-base.js +109 -0
- package/development/title/title.component.d.ts +20 -0
- package/development/title/title.component.d.ts.map +1 -0
- package/development/title/title.component.js +96 -0
- package/development/title.d.ts +6 -0
- package/development/title.d.ts.map +1 -0
- package/development/title.js +7 -0
- package/development/toast/toast.component.d.ts +73 -0
- package/development/toast/toast.component.d.ts.map +1 -0
- package/development/toast/toast.component.js +408 -0
- package/development/toast.d.ts +5 -0
- package/development/toast.d.ts.map +1 -0
- package/development/toast.js +5 -0
- package/development/toggle/toggle/toggle.component.d.ts +72 -0
- package/development/toggle/toggle/toggle.component.d.ts.map +1 -0
- package/development/toggle/toggle/toggle.component.js +338 -0
- package/development/toggle/toggle-option/toggle-option.component.d.ts +35 -0
- package/development/toggle/toggle-option/toggle-option.component.d.ts.map +1 -0
- package/development/toggle/toggle-option/toggle-option.component.js +185 -0
- package/development/toggle/toggle-option.d.ts +5 -0
- package/development/toggle/toggle-option.d.ts.map +1 -0
- package/development/toggle/toggle-option.js +5 -0
- package/development/toggle/toggle.d.ts +5 -0
- package/development/toggle/toggle.d.ts.map +1 -0
- package/development/toggle/toggle.js +5 -0
- package/development/toggle-check/toggle-check.component.d.ts +33 -0
- package/development/toggle-check/toggle-check.component.d.ts.map +1 -0
- package/development/toggle-check/toggle-check.component.js +280 -0
- package/development/toggle-check.d.ts +5 -0
- package/development/toggle-check.d.ts.map +1 -0
- package/development/toggle-check.js +5 -0
- package/development/toggle.d.ts +6 -0
- package/development/toggle.d.ts.map +1 -0
- package/development/toggle.js +7 -0
- package/development/tooltip/tooltip.component.d.ts +96 -0
- package/development/tooltip/tooltip.component.d.ts.map +1 -0
- package/development/tooltip/tooltip.component.js +447 -0
- package/development/tooltip.d.ts +5 -0
- package/development/tooltip.d.ts.map +1 -0
- package/development/tooltip.js +5 -0
- package/development/train/train/train.component.d.ts +42 -0
- package/development/train/train/train.component.d.ts.map +1 -0
- package/development/train/train/train.component.js +235 -0
- package/development/train/train-blocked-passage/train-blocked-passage.component.d.ts +14 -0
- package/development/train/train-blocked-passage/train-blocked-passage.component.d.ts.map +1 -0
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +82 -0
- package/development/train/train-blocked-passage.d.ts +5 -0
- package/development/train/train-blocked-passage.d.ts.map +1 -0
- package/development/train/train-blocked-passage.js +5 -0
- package/development/train/train-formation/train-formation.component.d.ts +29 -0
- package/development/train/train-formation/train-formation.component.d.ts.map +1 -0
- package/development/train/train-formation/train-formation.component.js +280 -0
- package/development/train/train-formation.d.ts +5 -0
- package/development/train/train-formation.d.ts.map +1 -0
- package/development/train/train-formation.js +5 -0
- package/development/train/train-wagon/train-wagon.component.d.ts +44 -0
- package/development/train/train-wagon/train-wagon.component.d.ts.map +1 -0
- package/development/train/train-wagon/train-wagon.component.js +393 -0
- package/development/train/train-wagon.d.ts +5 -0
- package/development/train/train-wagon.d.ts.map +1 -0
- package/development/train/train-wagon.js +5 -0
- package/development/train/train.d.ts +5 -0
- package/development/train/train.d.ts.map +1 -0
- package/development/train/train.js +5 -0
- package/development/train.d.ts +8 -0
- package/development/train.d.ts.map +1 -0
- package/development/train.js +11 -0
- package/development/visual-checkbox/visual-checkbox.component.d.ts +26 -0
- package/development/visual-checkbox/visual-checkbox.component.d.ts.map +1 -0
- package/development/visual-checkbox/visual-checkbox.component.js +170 -0
- package/development/visual-checkbox.d.ts +5 -0
- package/development/visual-checkbox.d.ts.map +1 -0
- package/development/visual-checkbox.js +5 -0
- package/dialog/dialog/dialog.component.js +148 -0
- package/dialog/dialog-actions/dialog-actions.component.js +21 -0
- package/dialog/dialog-actions.js +4 -0
- package/dialog/dialog-close-button/dialog-close-button.component.js +31 -0
- package/dialog/dialog-close-button.js +4 -0
- package/dialog/dialog-content/dialog-content.component.js +22 -0
- package/dialog/dialog-content.js +4 -0
- package/dialog/dialog-title/dialog-title.component.js +21 -0
- package/dialog/dialog-title.js +4 -0
- package/dialog/dialog.js +7 -0
- package/dialog.js +15 -0
- package/disable-animation.css +3 -0
- package/divider/divider.component.js +43 -0
- package/divider.js +4 -0
- package/expansion-panel/expansion-panel/expansion-panel.component.js +155 -0
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +32 -0
- package/expansion-panel/expansion-panel-content.js +4 -0
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +65 -0
- package/expansion-panel/expansion-panel-header.js +4 -0
- package/expansion-panel/expansion-panel.js +4 -0
- package/expansion-panel.js +8 -0
- package/file-selector/common/file-selector-common.js +243 -0
- package/file-selector/common.js +6 -0
- package/file-selector/file-selector/file-selector.component.js +39 -0
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +74 -0
- package/file-selector/file-selector-dropzone.js +4 -0
- package/file-selector/file-selector.js +4 -0
- package/file-selector-common-DbYkpr-x.js +5 -0
- package/file-selector.js +10 -0
- package/flip-card/flip-card/flip-card.component.js +119 -0
- package/flip-card/flip-card-details/flip-card-details.component.js +46 -0
- package/flip-card/flip-card-details.js +4 -0
- package/flip-card/flip-card-summary/flip-card-summary.component.js +49 -0
- package/flip-card/flip-card-summary.js +4 -0
- package/flip-card/flip-card.js +4 -0
- package/flip-card.js +8 -0
- package/font-characters-extension.css +18 -0
- package/footer/footer.component.js +88 -0
- package/footer.js +4 -0
- package/form-field/error/error.component.js +47 -0
- package/form-field/error.js +4 -0
- package/form-field/form-field/form-field.component.js +343 -0
- package/form-field/form-field-clear/form-field-clear.component.js +38 -0
- package/form-field/form-field-clear.js +4 -0
- package/form-field/form-field.js +5 -0
- package/form-field.js +9 -0
- package/header/common/header-action-common.js +51 -0
- package/header/common.js +4 -0
- package/header/header/header.component.js +154 -0
- package/header/header-button/header-button.component.js +16 -0
- package/header/header-button.js +4 -0
- package/header/header-environment/header-environment.component.js +37 -0
- package/header/header-environment.js +4 -0
- package/header/header-link/header-link.component.js +16 -0
- package/header/header-link.js +4 -0
- package/header/header.js +4 -0
- package/header.js +10 -0
- package/icon/icon-base.js +105 -0
- package/icon/icon-name-mixin.js +55 -0
- package/icon/icon-request.js +30 -0
- package/icon/icon-validate.js +26 -0
- package/icon/icon.component.js +77 -0
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +46 -0
- package/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +24 -0
- package/icon-sidebar/icon-sidebar-button.js +4 -0
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +32 -0
- package/icon-sidebar/icon-sidebar-container.js +4 -0
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +23 -0
- package/icon-sidebar/icon-sidebar-content.js +4 -0
- package/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +24 -0
- package/icon-sidebar/icon-sidebar-link.js +4 -0
- package/icon-sidebar/icon-sidebar.js +4 -0
- package/icon-sidebar-button-common-ffAscVDk.js +7 -0
- package/icon-sidebar.js +12 -0
- package/icon.js +13 -0
- package/image/image.component.js +455 -0
- package/image.js +4 -0
- package/index.d.ts +317 -0
- package/index.js +316 -0
- package/journey-header/journey-header.component.js +95 -0
- package/journey-header.js +4 -0
- package/layout.css +30 -0
- package/lead-container/lead-container.component.js +33 -0
- package/lead-container.js +4 -0
- package/link/block-link/block-link.component.js +17 -0
- package/link/block-link-button/block-link-button.component.js +17 -0
- package/link/block-link-button.js +4 -0
- package/link/block-link-static/block-link-static.component.js +17 -0
- package/link/block-link-static.js +4 -0
- package/link/block-link.js +4 -0
- package/link/common/block-link-common.js +44 -0
- package/link/common/inline-link-common.js +13 -0
- package/link/common/link-common.js +9 -0
- package/link/common.js +8 -0
- package/link/link/link.component.js +17 -0
- package/link/link-button/link-button.component.js +17 -0
- package/link/link-button.js +4 -0
- package/link/link-static/link-static.component.js +17 -0
- package/link/link-static.js +4 -0
- package/link/link.js +4 -0
- package/link-common-7IiqjmPD.js +45 -0
- package/link-list/common/link-list-base.js +87 -0
- package/link-list/common.js +6 -0
- package/link-list/link-list/link-list.component.js +47 -0
- package/link-list/link-list-anchor/link-list-anchor.component.js +18 -0
- package/link-list/link-list-anchor.js +4 -0
- package/link-list/link-list.js +4 -0
- package/link-list-base-3v7CHEei.js +5 -0
- package/link-list.js +10 -0
- package/link.js +20 -0
- package/lists.css +194 -0
- package/loading-indicator/loading-indicator.component.js +67 -0
- package/loading-indicator-circle/loading-indicator-circle.component.js +47 -0
- package/loading-indicator-circle.js +4 -0
- package/loading-indicator.js +4 -0
- package/logo/logo.component.js +68 -0
- package/logo.js +4 -0
- package/map-container/map-container.component.js +110 -0
- package/map-container.js +4 -0
- package/menu/common/menu-action-common.js +28 -0
- package/menu/common.js +4 -0
- package/menu/menu/menu.component.js +272 -0
- package/menu/menu-button/menu-button.component.js +17 -0
- package/menu/menu-button.js +4 -0
- package/menu/menu-link/menu-link.component.js +20 -0
- package/menu/menu-link.js +4 -0
- package/menu/menu.js +4 -0
- package/menu.js +10 -0
- package/message/message.component.js +32 -0
- package/message.js +4 -0
- package/mini-button-label-common-Dx9JhmQ6.js +11 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.js +130 -0
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +66 -0
- package/mini-calendar/mini-calendar-day.js +4 -0
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +60 -0
- package/mini-calendar/mini-calendar-month.js +4 -0
- package/mini-calendar/mini-calendar.js +4 -0
- package/mini-calendar.js +8 -0
- package/navigation/common/navigation-action-common.js +57 -0
- package/navigation/common.js +4 -0
- package/navigation/navigation/navigation.component.js +188 -0
- package/navigation/navigation-button/navigation-button.component.js +16 -0
- package/navigation/navigation-button.js +4 -0
- package/navigation/navigation-link/navigation-link.component.js +16 -0
- package/navigation/navigation-link.js +4 -0
- package/navigation/navigation-list/navigation-list.component.js +58 -0
- package/navigation/navigation-list.js +4 -0
- package/navigation/navigation-marker/navigation-marker.component.js +81 -0
- package/navigation/navigation-marker.js +4 -0
- package/navigation/navigation-section/navigation-section.component.js +224 -0
- package/navigation/navigation-section.js +4 -0
- package/navigation/navigation.js +4 -0
- package/navigation.js +16 -0
- package/normalize.css +95 -0
- package/notification/notification.component.js +164 -0
- package/notification.js +4 -0
- package/off-brand-theme.css +3299 -0
- package/option/optgroup/optgroup-base-element.js +82 -0
- package/option/optgroup/optgroup.component.js +38 -0
- package/option/optgroup.js +6 -0
- package/option/option/option-base-element.js +217 -0
- package/option/option/option.component.js +95 -0
- package/option/option-hint/option-hint.component.js +28 -0
- package/option/option-hint.js +4 -0
- package/option/option.js +6 -0
- package/option.js +12 -0
- package/overlay/overlay-base-element.js +152 -0
- package/overlay/overlay.component.js +138 -0
- package/overlay.js +9 -0
- package/package.json +1193 -1
- package/paginator/common/paginator-common.js +223 -0
- package/paginator/common.js +4 -0
- package/paginator/compact-paginator/compact-paginator.component.js +47 -0
- package/paginator/compact-paginator.js +4 -0
- package/paginator/paginator/paginator.component.js +174 -0
- package/paginator/paginator.js +4 -0
- package/paginator.js +8 -0
- package/popover/popover.component.js +316 -0
- package/popover.js +5 -0
- package/radio-button/common/radio-button-common.js +60 -0
- package/radio-button/common.js +6 -0
- package/radio-button/radio-button/radio-button.component.js +70 -0
- package/radio-button/radio-button-group/radio-button-group.component.js +166 -0
- package/radio-button/radio-button-group.js +4 -0
- package/radio-button/radio-button-panel/radio-button-panel.component.js +82 -0
- package/radio-button/radio-button-panel.js +4 -0
- package/radio-button/radio-button.js +4 -0
- package/radio-button-common-Bf2b18jm.js +5 -0
- package/radio-button.js +12 -0
- package/safety-theme.css +3299 -0
- package/sbb-tokens-HiNSQasB.js +11 -0
- package/screen-reader-only/screen-reader-only.component.js +19 -0
- package/screen-reader-only.js +4 -0
- package/scrollbar.css +190 -0
- package/select/select.component.js +498 -0
- package/select.js +4 -0
- package/selection-action-panel/selection-action-panel.component.js +40 -0
- package/selection-action-panel.js +4 -0
- package/selection-expansion-panel/selection-expansion-panel.component.js +115 -0
- package/selection-expansion-panel.js +4 -0
- package/sidebar/common.js +6 -0
- package/sidebar/sidebar/sidebar.component.js +182 -0
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +34 -0
- package/sidebar/sidebar-close-button.js +4 -0
- package/sidebar/sidebar-container/sidebar-container.component.js +83 -0
- package/sidebar/sidebar-container.js +4 -0
- package/sidebar/sidebar-content/sidebar-content.component.js +23 -0
- package/sidebar/sidebar-content.js +4 -0
- package/sidebar/sidebar-title/sidebar-title.component.js +39 -0
- package/sidebar/sidebar-title.js +4 -0
- package/sidebar/sidebar.js +4 -0
- package/sidebar.js +16 -0
- package/signet/signet.component.js +73 -0
- package/signet.js +4 -0
- package/skiplink-list/skiplink-list.component.js +76 -0
- package/skiplink-list.js +4 -0
- package/slider/slider.component.js +199 -0
- package/slider.js +4 -0
- package/standard-theme.css +3299 -0
- package/status/status.component.js +71 -0
- package/status.js +4 -0
- package/stepper/step/step.component.js +116 -0
- package/stepper/step-label/step-label.component.js +102 -0
- package/stepper/step-label.js +4 -0
- package/stepper/step.js +4 -0
- package/stepper/stepper/stepper.component.js +236 -0
- package/stepper/stepper.js +5 -0
- package/stepper.js +9 -0
- package/table/table-wrapper/table-wrapper.component.js +69 -0
- package/table/table-wrapper.js +4 -0
- package/table.css +249 -0
- package/table.js +4 -0
- package/tabs/common.js +6 -0
- package/tabs/tab/tab.component.js +52 -0
- package/tabs/tab-group/tab-group.component.js +166 -0
- package/tabs/tab-group.js +4 -0
- package/tabs/tab-label/tab-label.component.js +127 -0
- package/tabs/tab-label.js +4 -0
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +66 -0
- package/tabs/tab-nav-bar.js +4 -0
- package/tabs/tab.js +4 -0
- package/tabs.js +10 -0
- package/tag/tag/tag.component.js +128 -0
- package/tag/tag-group/tag-group.component.js +118 -0
- package/tag/tag-group.js +4 -0
- package/tag/tag.js +4 -0
- package/tag.js +6 -0
- package/teaser/teaser.component.js +80 -0
- package/teaser-hero/teaser-hero.component.js +62 -0
- package/teaser-hero.js +4 -0
- package/teaser-product/common/teaser-product-common.js +53 -0
- package/teaser-product/common.js +6 -0
- package/teaser-product/teaser-product/teaser-product.component.js +36 -0
- package/teaser-product/teaser-product-static/teaser-product-static.component.js +17 -0
- package/teaser-product/teaser-product-static.js +4 -0
- package/teaser-product/teaser-product.js +4 -0
- package/teaser-product-common-DwaWdQEh.js +5 -0
- package/teaser-product.js +10 -0
- package/teaser.js +4 -0
- package/time-input/time-input.component.js +127 -0
- package/time-input.js +4 -0
- package/timetable-form/timetable-form/timetable-form.component.js +19 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +19 -0
- package/timetable-form/timetable-form-details.js +4 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +32 -0
- package/timetable-form/timetable-form-field.js +4 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +41 -0
- package/timetable-form/timetable-form-swap-button.js +4 -0
- package/timetable-form/timetable-form.js +4 -0
- package/timetable-form.css +73 -0
- package/timetable-form.js +10 -0
- package/timetable-occupancy/timetable-occupancy.component.js +76 -0
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +61 -0
- package/timetable-occupancy-icon.js +4 -0
- package/timetable-occupancy.js +4 -0
- package/title/title-base.js +53 -0
- package/title/title.component.js +37 -0
- package/title.js +6 -0
- package/toast/toast.component.js +180 -0
- package/toast.js +4 -0
- package/toggle/toggle/toggle.component.js +147 -0
- package/toggle/toggle-option/toggle-option.component.js +89 -0
- package/toggle/toggle-option.js +4 -0
- package/toggle/toggle.js +4 -0
- package/toggle-check/toggle-check.component.js +84 -0
- package/toggle-check.js +4 -0
- package/toggle.js +6 -0
- package/tooltip/tooltip.component.js +197 -0
- package/tooltip.js +4 -0
- package/train/train/train.component.js +122 -0
- package/train/train-blocked-passage/train-blocked-passage.component.js +26 -0
- package/train/train-blocked-passage.js +4 -0
- package/train/train-formation/train-formation.component.js +92 -0
- package/train/train-formation.js +4 -0
- package/train/train-wagon/train-wagon.component.js +173 -0
- package/train/train-wagon.js +4 -0
- package/train/train.js +4 -0
- package/train.js +10 -0
- package/typography.css +67 -0
- package/visual-checkbox/visual-checkbox.component.js +80 -0
- package/visual-checkbox.js +4 -0
|
@@ -0,0 +1,1214 @@
|
|
|
1
|
+
var Ce = (o) => {
|
|
2
|
+
throw TypeError(o);
|
|
3
|
+
};
|
|
4
|
+
var Ie = (o, n, d) => n.has(o) || Ce("Cannot " + d);
|
|
5
|
+
var A = (o, n, d) => (Ie(o, n, "read from private field"), d ? d.call(o) : n.get(o)), x = (o, n, d) => n.has(o) ? Ce("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, d), f = (o, n, d, b) => (Ie(o, n, "write to private field"), b ? b.call(o, d) : n.set(o, d), d);
|
|
6
|
+
import { __esDecorate as y, __runInitializers as u } from "tslib";
|
|
7
|
+
import { css as Le, LitElement as Be, isServer as Se, nothing as m, html as h } from "lit";
|
|
8
|
+
import { customElement as He, property as Y, state as G } from "lit/decorators.js";
|
|
9
|
+
import { classMap as Q } from "lit/directives/class-map.js";
|
|
10
|
+
import { isArrowKeyOrPageKeysPressed as Ke } from "../core/a11y.js";
|
|
11
|
+
import { readConfig as Ue } from "../core/config.js";
|
|
12
|
+
import { SbbLanguageController as qe, SbbMediaMatcherController as je, SbbMediaQueryBreakpointLargeAndAbove as Re } from "../core/controllers.js";
|
|
13
|
+
import { defaultDateAdapter as Ge, YEARS_PER_PAGE as V, DAYS_PER_ROW as D, MONTHS_PER_ROW as J, YEARS_PER_ROW as X, MONTHS_PER_PAGE as Qe } from "../core/datetime.js";
|
|
14
|
+
import { forceType as Z, plainDate as Te, handleDistinctChange as Je } from "../core/decorators.js";
|
|
15
|
+
import { i18nPreviousMonth as Xe, i18nNextMonth as Ze, i18nYearMonthSelection as et, i18nCalendarWeekNumber as U, i18nPreviousYear as tt, i18nNextYear as at, i18nCalendarDateSelection as Ee, i18nPreviousYearRange as st, i18nNextYearRange as it } from "../core/i18n.js";
|
|
16
|
+
import { SbbHydrationMixin as rt, SbbElementInternalsMixin as nt } from "../core/mixins.js";
|
|
17
|
+
import { boxSizingStyles as lt } from "../core/styles.js";
|
|
18
|
+
import "../button/secondary-button.js";
|
|
19
|
+
import "../icon.js";
|
|
20
|
+
import "../screen-reader-only.js";
|
|
21
|
+
const ot = 6048e5, Pe = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
22
|
+
function F(o, n) {
|
|
23
|
+
return typeof o == "function" ? o(n) : o && typeof o == "object" && Pe in o ? o[Pe](n) : o instanceof Date ? new o.constructor(n) : new Date(n);
|
|
24
|
+
}
|
|
25
|
+
function q(o, n) {
|
|
26
|
+
return F(n || o, o);
|
|
27
|
+
}
|
|
28
|
+
function dt(o, n, d) {
|
|
29
|
+
const b = q(o, d?.in);
|
|
30
|
+
return isNaN(n) ? F(o, NaN) : (n && b.setDate(b.getDate() + n), b);
|
|
31
|
+
}
|
|
32
|
+
let ct = {};
|
|
33
|
+
function te() {
|
|
34
|
+
return ct;
|
|
35
|
+
}
|
|
36
|
+
function z(o, n) {
|
|
37
|
+
const d = te(), b = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? d.weekStartsOn ?? d.locale?.options?.weekStartsOn ?? 0, p = q(o, n?.in), w = p.getDay(), $ = (w < b ? 7 : 0) + w - b;
|
|
38
|
+
return p.setDate(p.getDate() - $), p.setHours(0, 0, 0, 0), p;
|
|
39
|
+
}
|
|
40
|
+
function ht(o, ...n) {
|
|
41
|
+
const d = F.bind(
|
|
42
|
+
null,
|
|
43
|
+
o || n.find((b) => typeof b == "object")
|
|
44
|
+
);
|
|
45
|
+
return n.map(d);
|
|
46
|
+
}
|
|
47
|
+
function bt(o, n, d) {
|
|
48
|
+
return dt(o, n * 7, d);
|
|
49
|
+
}
|
|
50
|
+
function _t(o, n) {
|
|
51
|
+
const d = q(o, n?.in), b = d.getMonth();
|
|
52
|
+
return d.setFullYear(d.getFullYear(), b + 1, 0), d.setHours(23, 59, 59, 999), d;
|
|
53
|
+
}
|
|
54
|
+
function ut(o, n) {
|
|
55
|
+
const [d, b] = ht(o, n.start, n.end);
|
|
56
|
+
return { start: d, end: b };
|
|
57
|
+
}
|
|
58
|
+
function ft(o, n) {
|
|
59
|
+
const { start: d, end: b } = ut(n?.in, o);
|
|
60
|
+
let p = +d > +b;
|
|
61
|
+
const w = z(p ? b : d, n), $ = z(p ? d : b, n);
|
|
62
|
+
w.setHours(15), $.setHours(15);
|
|
63
|
+
const O = +$.getTime();
|
|
64
|
+
let k = w, M = n?.step ?? 1;
|
|
65
|
+
if (!M) return [];
|
|
66
|
+
M < 0 && (M = -M, p = !p);
|
|
67
|
+
const W = [];
|
|
68
|
+
for (; +k <= O; )
|
|
69
|
+
k.setHours(0), W.push(F(d, k)), k = bt(k, M), k.setHours(15);
|
|
70
|
+
return p ? W.reverse() : W;
|
|
71
|
+
}
|
|
72
|
+
function gt(o, n) {
|
|
73
|
+
const d = q(o, n?.in);
|
|
74
|
+
return d.setDate(1), d.setHours(0, 0, 0, 0), d;
|
|
75
|
+
}
|
|
76
|
+
function pt(o, n) {
|
|
77
|
+
const d = q(o, n?.in), b = d.getFullYear(), p = te(), w = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? p.firstWeekContainsDate ?? p.locale?.options?.firstWeekContainsDate ?? 1, $ = F(n?.in || o, 0);
|
|
78
|
+
$.setFullYear(b + 1, 0, w), $.setHours(0, 0, 0, 0);
|
|
79
|
+
const O = z($, n), k = F(n?.in || o, 0);
|
|
80
|
+
k.setFullYear(b, 0, w), k.setHours(0, 0, 0, 0);
|
|
81
|
+
const M = z(k, n);
|
|
82
|
+
return +d >= +O ? b + 1 : +d >= +M ? b : b - 1;
|
|
83
|
+
}
|
|
84
|
+
function mt(o, n) {
|
|
85
|
+
const d = te(), b = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? d.firstWeekContainsDate ?? d.locale?.options?.firstWeekContainsDate ?? 1, p = pt(o, n), w = F(n?.in || o, 0);
|
|
86
|
+
return w.setFullYear(p, 0, b), w.setHours(0, 0, 0, 0), z(w, n);
|
|
87
|
+
}
|
|
88
|
+
function ee(o, n) {
|
|
89
|
+
const d = q(o, n?.in), b = +z(d, n) - +mt(d, n);
|
|
90
|
+
return Math.round(b / ot) + 1;
|
|
91
|
+
}
|
|
92
|
+
const vt = Le`:host{display:block;width:max-content;--sbb-calendar-cell-size: 2.5rem;--sbb-calendar-hover-shift: .0625rem;--sbb-calendar-wide-cell-size: 4.375rem;--sbb-calendar-header-color: var(--sbb-color-granite);--sbb-calendar-header-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-calendar-cell-background-color: transparent;--sbb-calendar-cell-padding: .125rem;--sbb-calendar-cell-color: var(--sbb-color-2);--sbb-calendar-cell-selected-color: var(--sbb-color-1-inverted);--sbb-calendar-cell-selected-background-color: var(--sbb-background-color-2-inverted);--sbb-calendar-cell-disabled-height: .09375rem;--sbb-calendar-cell-disabled-width: 1.59375rem;--sbb-calendar-cell-disabled-color: var(--sbb-color-granite);--sbb-calendar-cell-disabled-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-calendar-cell-transition-easing-function: var(--sbb-animation-easing);--sbb-calendar-tables-gap: var(--sbb-spacing-fixed-10x);--sbb-calendar-table-animation-shift: .00625rem;--sbb-calendar-table-animation-duration: .1ms;--sbb-calendar-table-column-spaces: 12;--sbb-calendar-control-view-change-height: 2.75rem;--sbb-calendar-control-view-change-color: var(--sbb-color-3);--sbb-calendar-control-view-change-background: var(--sbb-background-color-1)}@media(min-width:37.5rem){:host{--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-wide-cell-size: 4.8125rem;--sbb-calendar-control-view-change-height: 3rem}}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-spacing-fixed-2x);margin-block-end:var(--sbb-spacing-fixed-4x)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{appearance:none;box-sizing:border-box;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-spacing-fixed-5x) var(--sbb-spacing-fixed-2x);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0}:host(:not([multiple])) .sbb-calendar__table-header-cell{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__header-cell,.sbb-calendar__cell{appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);height:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-cell-color);cursor:var(--sbb-cursor-pointer);position:relative;z-index:0}.sbb-calendar__header-cell:before,.sbb-calendar__cell:before{content:"";position:absolute;inset:var(--sbb-calendar-cell-padding);background-color:var(--sbb-calendar-cell-background-color);border-radius:50%;z-index:-1;transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color}@media(any-hover:hover){.sbb-calendar__header-cell:not(.sbb-calendar__selected,:active,:disabled):hover,.sbb-calendar__cell:not(.sbb-calendar__selected,:active,:disabled):hover{--sbb-calendar-cell-background-color: var(--sbb-background-color-3);padding-block-end:var(--sbb-calendar-hover-shift)}}@media(any-hover:hover)and (forced-colors:active){.sbb-calendar__header-cell:not(.sbb-calendar__selected,:active,:disabled):hover:before,.sbb-calendar__cell:not(.sbb-calendar__selected,:active,:disabled):hover:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-style: initial}}.sbb-calendar__header-cell:disabled,.sbb-calendar__cell:disabled{--sbb-calendar-cell-color: var(--sbb-calendar-cell-disabled-color);cursor:unset}.sbb-calendar__header-cell:focus-visible:before,.sbb-calendar__cell:focus-visible:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-calendar__header-cell:not(.sbb-calendar__selected,:disabled):active,.sbb-calendar__cell:not(.sbb-calendar__selected,:disabled):active{--sbb-calendar-cell-background-color: var(--sbb-background-color-4)}@media(forced-colors:active){.sbb-calendar__header-cell:not(.sbb-calendar__selected,:disabled):active:before,.sbb-calendar__cell:not(.sbb-calendar__selected,:disabled):active:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-style: initial}}.sbb-calendar__header-cell{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-calendar-header-color)}.sbb-calendar__weekday,.sbb-calendar__day{border-radius:50%;width:var(--sbb-calendar-cell-size)}.sbb-calendar__weekday:before,.sbb-calendar__day:before{border-radius:50%}.sbb-calendar__pill{width:var(--sbb-calendar-wide-cell-size);border-radius:var(--sbb-border-radius-infinity)}.sbb-calendar__pill:before{border-radius:var(--sbb-border-radius-infinity)}.sbb-calendar__crossed-out:after{content:"";height:var(--sbb-calendar-cell-disabled-height);width:var(--sbb-calendar-cell-disabled-width);position:absolute;background-color:var(--sbb-calendar-cell-disabled-color);top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg)}.sbb-calendar__cell-current{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700}.sbb-calendar__selected{--sbb-calendar-cell-color: var(--sbb-calendar-cell-selected-color);--sbb-calendar-cell-background-color: var(--sbb-calendar-cell-selected-background-color)}@media(forced-colors:active){.sbb-calendar__selected{--sbb-calendar-cell-background-color: ButtonText !important}}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}`;
|
|
93
|
+
let St = (() => {
|
|
94
|
+
var N, C, I, S, R, T, E, P, L, B, H, K, g;
|
|
95
|
+
let o = [He("sbb-calendar")], n, d = [], b, p = rt(nt(Be)), w = [], $, O = [], k = [], M, W = [], ae = [], se, ie = [], re = [], ne, le = [], oe = [], de, ce = [], he = [], be, _e, ue = [], fe = [], ge, pe = [], me = [], ve, we = [], ye = [], De, ke = [], Ae = [], xe, $e = [], Ve = [], Me, Ye, ze = [], Fe = [], Oe, We = [], Ne = [];
|
|
96
|
+
return g = class extends p {
|
|
97
|
+
constructor() {
|
|
98
|
+
super();
|
|
99
|
+
x(this, N);
|
|
100
|
+
x(this, C);
|
|
101
|
+
x(this, I);
|
|
102
|
+
x(this, S);
|
|
103
|
+
x(this, R);
|
|
104
|
+
x(this, T);
|
|
105
|
+
x(this, E);
|
|
106
|
+
x(this, P);
|
|
107
|
+
x(this, L);
|
|
108
|
+
x(this, B);
|
|
109
|
+
x(this, H);
|
|
110
|
+
x(this, K);
|
|
111
|
+
f(this, N, (u(this, w), u(this, O, !1))), f(this, C, (u(this, k), u(this, W, "day"))), f(this, I, (u(this, ae), u(this, ie, null))), f(this, S, (u(this, re), u(this, le, null))), f(this, R, (u(this, oe), u(this, ce, !1))), f(this, T, (u(this, he), u(this, ue, null))), f(this, E, (u(this, fe), u(this, pe, null))), f(this, P, (u(this, me), u(this, we, "horizontal"))), f(this, L, (u(this, ye), u(this, ke, !1))), this._dateAdapter = (u(this, Ae), Ue().datetime?.dateAdapter ?? Ge), f(this, B, u(this, $e, this._dateAdapter.today())), this._wideInternal = (u(this, Ve), !1), f(this, H, u(this, ze, "day")), this._nextCalendarView = (u(this, Fe), "day"), this._keyboardNavigationDayViewParameters = {
|
|
112
|
+
firstDayInView: null,
|
|
113
|
+
lastDayInView: null,
|
|
114
|
+
firstMonthOffset: 0,
|
|
115
|
+
firstMonthLength: 0,
|
|
116
|
+
secondMonthOffset: 0
|
|
117
|
+
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._resetFocus = !1, this._containingFocus = !1, f(this, K, u(this, We, !1)), this._language = (u(this, Ne), new qe(this).withHandler(() => {
|
|
118
|
+
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
119
|
+
})), this._mediaMatcher = new je(this, {
|
|
120
|
+
[Re]: () => this._init()
|
|
121
|
+
}), this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1);
|
|
122
|
+
}
|
|
123
|
+
/** If set to true, two months are displayed */
|
|
124
|
+
get wide() {
|
|
125
|
+
return A(this, N);
|
|
126
|
+
}
|
|
127
|
+
set wide(e) {
|
|
128
|
+
f(this, N, e);
|
|
129
|
+
}
|
|
130
|
+
/** The initial view of the calendar which should be displayed on opening. */
|
|
131
|
+
get view() {
|
|
132
|
+
return A(this, C);
|
|
133
|
+
}
|
|
134
|
+
set view(e) {
|
|
135
|
+
f(this, C, e);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The minimum valid date. Accepts a date object or null.
|
|
139
|
+
* Accepts an ISO8601 formatted string (e.g. 2024-12-24) as attribute.
|
|
140
|
+
*/
|
|
141
|
+
get min() {
|
|
142
|
+
return A(this, I);
|
|
143
|
+
}
|
|
144
|
+
set min(e) {
|
|
145
|
+
f(this, I, e);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The maximum valid date. Accepts a date object or null.
|
|
149
|
+
* Accepts an ISO8601 formatted string (e.g. 2024-12-24) as attribute.
|
|
150
|
+
*/
|
|
151
|
+
get max() {
|
|
152
|
+
return A(this, S);
|
|
153
|
+
}
|
|
154
|
+
set max(e) {
|
|
155
|
+
f(this, S, e);
|
|
156
|
+
}
|
|
157
|
+
/** Whether the calendar allows for multiple date selection. */
|
|
158
|
+
get multiple() {
|
|
159
|
+
return A(this, R);
|
|
160
|
+
}
|
|
161
|
+
set multiple(e) {
|
|
162
|
+
f(this, R, e);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The selected date: accepts a date object, or, if `multiple`, an array of dates.
|
|
166
|
+
*/
|
|
167
|
+
set selected(e) {
|
|
168
|
+
if (Array.isArray(e))
|
|
169
|
+
this._selected = e.map((t) => this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))).filter((t) => t !== null).filter((t) => !this._isDayInRange(this._dateAdapter.toIso8601(t)) || this._dateFilter(t));
|
|
170
|
+
else {
|
|
171
|
+
const t = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));
|
|
172
|
+
t && (!this._isDayInRange(this._dateAdapter.toIso8601(t)) || this._dateFilter(t)) ? this._selected = t : this._selected = null;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
get selected() {
|
|
176
|
+
return this._selected;
|
|
177
|
+
}
|
|
178
|
+
get _selected() {
|
|
179
|
+
return A(this, T);
|
|
180
|
+
}
|
|
181
|
+
set _selected(e) {
|
|
182
|
+
f(this, T, e);
|
|
183
|
+
}
|
|
184
|
+
/** A function used to filter out dates. */
|
|
185
|
+
get dateFilter() {
|
|
186
|
+
return A(this, E);
|
|
187
|
+
}
|
|
188
|
+
set dateFilter(e) {
|
|
189
|
+
f(this, E, e);
|
|
190
|
+
}
|
|
191
|
+
/** The orientation of days in the calendar. */
|
|
192
|
+
get orientation() {
|
|
193
|
+
return A(this, P);
|
|
194
|
+
}
|
|
195
|
+
set orientation(e) {
|
|
196
|
+
f(this, P, e);
|
|
197
|
+
}
|
|
198
|
+
/** Whether it has to display the week numbers in addition to week days. */
|
|
199
|
+
get weekNumbers() {
|
|
200
|
+
return A(this, L);
|
|
201
|
+
}
|
|
202
|
+
set weekNumbers(e) {
|
|
203
|
+
f(this, L, e);
|
|
204
|
+
}
|
|
205
|
+
/** The currently active date. */
|
|
206
|
+
get _activeDate() {
|
|
207
|
+
return A(this, B);
|
|
208
|
+
}
|
|
209
|
+
set _activeDate(e) {
|
|
210
|
+
f(this, B, e);
|
|
211
|
+
}
|
|
212
|
+
/** The current wide property considering property value and breakpoints. From zero to small `wide` has always to be false. */
|
|
213
|
+
set _wide(e) {
|
|
214
|
+
this.toggleState("wide", e), this._wideInternal = e;
|
|
215
|
+
}
|
|
216
|
+
get _wide() {
|
|
217
|
+
return this._wideInternal;
|
|
218
|
+
}
|
|
219
|
+
get _calendarView() {
|
|
220
|
+
return A(this, H);
|
|
221
|
+
}
|
|
222
|
+
set _calendarView(e) {
|
|
223
|
+
f(this, H, e);
|
|
224
|
+
}
|
|
225
|
+
/** A list of buttons corresponding to days, months or years depending on the view. */
|
|
226
|
+
get _cells() {
|
|
227
|
+
return Array.from(this.shadowRoot.querySelectorAll(".sbb-calendar__cell") ?? []);
|
|
228
|
+
}
|
|
229
|
+
get _initialized() {
|
|
230
|
+
return A(this, K);
|
|
231
|
+
}
|
|
232
|
+
set _initialized(e) {
|
|
233
|
+
f(this, K, e);
|
|
234
|
+
}
|
|
235
|
+
_dateFilter(e) {
|
|
236
|
+
return this.dateFilter?.(e) ?? !0;
|
|
237
|
+
}
|
|
238
|
+
/** Resets the active month according to the new state of the calendar. */
|
|
239
|
+
resetPosition() {
|
|
240
|
+
this._resetCalendarView(), this._init();
|
|
241
|
+
}
|
|
242
|
+
connectedCallback() {
|
|
243
|
+
super.connectedCallback(), this.resetPosition();
|
|
244
|
+
}
|
|
245
|
+
/** @internal */
|
|
246
|
+
focus() {
|
|
247
|
+
this._resetFocus = !0, this._focusCell();
|
|
248
|
+
}
|
|
249
|
+
willUpdate(e) {
|
|
250
|
+
super.willUpdate(e), this._initialized && ((e.has("wide") || e.has("orientation")) && this.resetPosition(), e.has("view") && (this._setChosenYear(), this._chosenMonth = void 0, this._nextCalendarView = this._calendarView = this.view));
|
|
251
|
+
}
|
|
252
|
+
updated(e) {
|
|
253
|
+
super.updated(e), this._setTabIndex(), this._focusCell();
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The `_selected` state should be adapted when the `multiple` property changes:
|
|
257
|
+
* - if it changes to true, the '_selected' is set to an array;
|
|
258
|
+
* - if it changes to false, the first available option is set as 'value' otherwise it's set to null.
|
|
259
|
+
*/
|
|
260
|
+
_onMultipleChanged(e) {
|
|
261
|
+
e && !Array.isArray(this._selected) && (this._selected = this._selected ? [this._selected] : []), !e && Array.isArray(this._selected) && (this._selected = this._selected.length ? this._selected[0] : null);
|
|
262
|
+
}
|
|
263
|
+
/** Initializes the component. */
|
|
264
|
+
_init(e) {
|
|
265
|
+
if (!Se) {
|
|
266
|
+
if (this.hydrationRequired) {
|
|
267
|
+
this.hydrationComplete.then(() => this._init());
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(Re) ?? !1) && this.wide, this._weeks = this._createWeekRows(this._activeDate), this._years = this._createYearRows(), this._weekNumbers = this._createWeekNumbers(this._activeDate), this._nextMonthWeeks = [[]], this._nextMonthYears = [[]], this._wide) {
|
|
271
|
+
const t = this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
272
|
+
this._nextMonthWeeks = this._createWeekRows(t, !0), this._nextMonthYears = this._createYearRows(V), this._nextMonthWeekNumbers = this._createWeekNumbers(t);
|
|
273
|
+
}
|
|
274
|
+
this._initialized = !0;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
/** Focuses on a day cell prioritizing the selected day, the current day, and lastly, the first selectable day. */
|
|
278
|
+
_focusCell() {
|
|
279
|
+
this._resetFocus && (this._getFirstFocusable()?.focus(), this._resetFocus = !1);
|
|
280
|
+
}
|
|
281
|
+
/** Creates the array of weekdays. */
|
|
282
|
+
_setWeekdays() {
|
|
283
|
+
const e = this._dateAdapter.getDayOfWeekNames("narrow"), a = this._dateAdapter.getDayOfWeekNames("long").map((i, l) => ({
|
|
284
|
+
long: i,
|
|
285
|
+
narrow: e[l]
|
|
286
|
+
})), s = this._dateAdapter.getFirstDayOfWeek();
|
|
287
|
+
this._weekdays = a.slice(s).concat(a.slice(0, s));
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Given a date, it returns the week numbers for the month the date belongs to.
|
|
291
|
+
* TODO: check if date-fns can be replaced with custom logic.
|
|
292
|
+
*
|
|
293
|
+
* Since the calculation is not simple (see https://en.wikipedia.org/wiki/Week#Numbering),
|
|
294
|
+
* the date-fns library has been used this way:
|
|
295
|
+
* the first and the last day of the month are calculated and then passed to the `eachWeekOfInterval` function,
|
|
296
|
+
* which returns an array containing the starting day of every ISO week of the month,
|
|
297
|
+
* considering Monday as the first day.
|
|
298
|
+
* Then, this array is mapped via the `getWeek` function, which returns the ISO week number for that date.
|
|
299
|
+
*/
|
|
300
|
+
_createWeekNumbers(e) {
|
|
301
|
+
return ft({ start: gt(e), end: _t(e) }, { weekStartsOn: 1 }).map((t) => ee(t, { weekStartsOn: 1, firstWeekContainsDate: 4 }));
|
|
302
|
+
}
|
|
303
|
+
/** Creates the rows along the horizontal direction and sets the parameters used in keyboard navigation. */
|
|
304
|
+
_createWeekRows(e, t = !1) {
|
|
305
|
+
const a = this._dateAdapter.getDateNames(), s = this._dateAdapter.getNumDaysInMonth(e), i = this._dateAdapter.getFirstWeekOffset(e);
|
|
306
|
+
return t ? (this._keyboardNavigationDayViewParameters.secondMonthOffset = i, this._keyboardNavigationDayViewParameters.lastDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), s))) : (this._keyboardNavigationDayViewParameters.firstMonthLength = s, this._keyboardNavigationDayViewParameters.firstMonthOffset = i, this._keyboardNavigationDayViewParameters.firstDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), 1)), this._keyboardNavigationDayViewParameters.lastDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), s))), this.orientation === "horizontal" ? this._createWeekRowsHorizontal(e, a, s, i) : this._createWeekRowsVertical(e, a, s, i);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Creates the rows for each week in orientation='horizontal'.
|
|
310
|
+
*
|
|
311
|
+
* Iterates through the days of the months, creates a Day object for each and pushes it into and array.
|
|
312
|
+
* Each seven days (considering the offset at the beginning of the month) restarts from an empty array.
|
|
313
|
+
*
|
|
314
|
+
* The result is a matrix in which every row is a week (or part of it, considering offset).
|
|
315
|
+
*/
|
|
316
|
+
_createWeekRowsHorizontal(e, t, a, s) {
|
|
317
|
+
const i = [[]];
|
|
318
|
+
for (let l = 0, r = s; l < a; l++, r++) {
|
|
319
|
+
r === D && (i.push([]), r = 0);
|
|
320
|
+
const c = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), l + 1), _ = this._dateAdapter.toIso8601(c);
|
|
321
|
+
i[i.length - 1].push({
|
|
322
|
+
value: _,
|
|
323
|
+
dateValue: c,
|
|
324
|
+
dayValue: t[l],
|
|
325
|
+
monthValue: String(this._dateAdapter.getMonth(c)),
|
|
326
|
+
yearValue: String(this._dateAdapter.getYear(c)),
|
|
327
|
+
weekValue: ee(_, { weekStartsOn: 1, firstWeekContainsDate: 4 }),
|
|
328
|
+
weekDayValue: this._dateAdapter.getDayOfWeek(c)
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
return i;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Creates the rows for each week in orientation='vertical'.
|
|
335
|
+
*
|
|
336
|
+
* Creates a matrix with seven empty rows.
|
|
337
|
+
* Iterates through the days of the months, creates a Day object for each
|
|
338
|
+
* and pushes it into the correct array considering the offset at the beginning of the month.
|
|
339
|
+
* Each seven days (including offset) restarts from the first.
|
|
340
|
+
*
|
|
341
|
+
* The result is a matrix in which every row is a set of weekdays, so:
|
|
342
|
+
* - row 0: all the Mondays;
|
|
343
|
+
* - row 1: all the Tuesdays;
|
|
344
|
+
* - ...
|
|
345
|
+
* - row 7: all the Sundays.
|
|
346
|
+
*/
|
|
347
|
+
_createWeekRowsVertical(e, t, a, s) {
|
|
348
|
+
const i = Array.from({ length: D }, () => []);
|
|
349
|
+
for (let l = 0, r = s; l < a; l++, r++) {
|
|
350
|
+
r === D && (r = 0);
|
|
351
|
+
const c = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), l + 1), _ = this._dateAdapter.toIso8601(c);
|
|
352
|
+
i[r].push({
|
|
353
|
+
value: _,
|
|
354
|
+
dateValue: c,
|
|
355
|
+
dayValue: t[l],
|
|
356
|
+
monthValue: String(this._dateAdapter.getMonth(c)),
|
|
357
|
+
yearValue: String(this._dateAdapter.getYear(c)),
|
|
358
|
+
weekValue: ee(_, { weekStartsOn: 1, firstWeekContainsDate: 4 }),
|
|
359
|
+
weekDayValue: this._dateAdapter.getDayOfWeek(c)
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
return i;
|
|
363
|
+
}
|
|
364
|
+
/** Creates the rows for the month selection view. */
|
|
365
|
+
_createMonthRows() {
|
|
366
|
+
const e = this._dateAdapter.getMonthNames("short"), t = new Array(12).fill(null).map((i, l) => ({
|
|
367
|
+
value: e[l],
|
|
368
|
+
longValue: this._monthNames[l],
|
|
369
|
+
monthValue: l + 1
|
|
370
|
+
})), a = 12 / J, s = [];
|
|
371
|
+
for (let i = 0; i < a; i++)
|
|
372
|
+
s.push(t.slice(J * i, J * (i + 1)));
|
|
373
|
+
this._months = s;
|
|
374
|
+
}
|
|
375
|
+
/** Creates the rows for the year selection view. */
|
|
376
|
+
_createYearRows(e = 0) {
|
|
377
|
+
const t = this._getStartValueYearView(), a = new Array(V).fill(0).map((l, r) => t + e + r), s = V / X, i = [];
|
|
378
|
+
for (let l = 0; l < s; l++)
|
|
379
|
+
i.push(a.slice(X * l, X * (l + 1)));
|
|
380
|
+
return i;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Calculates the first year that will be shown in the year selection panel.
|
|
384
|
+
* If `minDate` and `maxDate` are both null, the starting year is calculated as
|
|
385
|
+
* the multiple of YEARS_PER_PAGE closest to and less than activeDate,
|
|
386
|
+
* e.g., with `YEARS_PER_PAGE` = 24 and `activeDate` = 2020, the function will return 2016 (24 * 83),
|
|
387
|
+
* while with `activeDate` = 2000, the function will return 1992 (24 * 82).
|
|
388
|
+
* If `minDate` is not null, it returns the corresponding year; if `maxDate` is not null,
|
|
389
|
+
* it returns the corresponding year minus `YEARS_PER_PAGE`, so that the `maxDate` is the last rendered year.
|
|
390
|
+
* If both are not null, `maxDate` has priority over `minDate`.
|
|
391
|
+
*/
|
|
392
|
+
_getStartValueYearView() {
|
|
393
|
+
let e = 0;
|
|
394
|
+
this.max ? e = this._dateAdapter.getYear(this.max) - V + 1 : this.min && (e = this._dateAdapter.getYear(this.min));
|
|
395
|
+
const t = this._dateAdapter.getYear(this._activeDate);
|
|
396
|
+
return t - ((t - e) % V + V) % V;
|
|
397
|
+
}
|
|
398
|
+
/** Checks if date is within the min-max range. */
|
|
399
|
+
_isDayInRange(e) {
|
|
400
|
+
if (!this.min && !this.max)
|
|
401
|
+
return !0;
|
|
402
|
+
const t = this._dateAdapter.isValid(this.min) && this._dateAdapter.compareDate(this.min, this._dateAdapter.deserialize(e)) > 0, a = this._dateAdapter.isValid(this.max) && this._dateAdapter.compareDate(this.max, this._dateAdapter.deserialize(e)) < 0;
|
|
403
|
+
return !(t || a);
|
|
404
|
+
}
|
|
405
|
+
/** Checks if date is within the min-max range in month view. */
|
|
406
|
+
_isMonthInRange(e, t) {
|
|
407
|
+
if (!this.min && !this.max)
|
|
408
|
+
return !0;
|
|
409
|
+
const a = this._dateAdapter.isValid(this.min) && (t < this._dateAdapter.getYear(this.min) || t === this._dateAdapter.getYear(this.min) && e < this._dateAdapter.getMonth(this.min)), s = this._dateAdapter.isValid(this.max) && (t > this._dateAdapter.getYear(this.max) || t === this._dateAdapter.getYear(this.max) && e > this._dateAdapter.getMonth(this.max));
|
|
410
|
+
return !(a || s);
|
|
411
|
+
}
|
|
412
|
+
/** Checks if date is within the min-max range in year view. */
|
|
413
|
+
_isYearInRange(e) {
|
|
414
|
+
if (!this.min && !this.max)
|
|
415
|
+
return !0;
|
|
416
|
+
const t = this._dateAdapter.isValid(this.min) && this._dateAdapter.getYear(this.min) > e, a = this._dateAdapter.isValid(this.max) && this._dateAdapter.getYear(this.max) < e;
|
|
417
|
+
return !(t || a);
|
|
418
|
+
}
|
|
419
|
+
// Implementation adapted from https://github.com/angular/components/blob/main/src/material/datepicker/year-view.ts#L366
|
|
420
|
+
_isMonthFilteredOut(e, t) {
|
|
421
|
+
if (!this.dateFilter)
|
|
422
|
+
return !0;
|
|
423
|
+
const a = this._dateAdapter.createDate(t, e, 1);
|
|
424
|
+
for (let s = a; this._dateAdapter.getMonth(s) == e; s = this._dateAdapter.addCalendarDays(s, 1))
|
|
425
|
+
if (this.dateFilter(s))
|
|
426
|
+
return !0;
|
|
427
|
+
return !1;
|
|
428
|
+
}
|
|
429
|
+
// Implementation adapted from https://github.com/angular/components/blob/main/src/material/datepicker/multi-year-view.ts#L351
|
|
430
|
+
_isYearFilteredOut(e) {
|
|
431
|
+
if (!this.dateFilter)
|
|
432
|
+
return !0;
|
|
433
|
+
const t = this._dateAdapter.createDate(e, 1, 1);
|
|
434
|
+
for (let a = t; this._dateAdapter.getYear(a) == e; a = this._dateAdapter.addCalendarDays(a, 1))
|
|
435
|
+
if (this.dateFilter(a))
|
|
436
|
+
return !0;
|
|
437
|
+
return !1;
|
|
438
|
+
}
|
|
439
|
+
/** Emits the selected date and sets it internally. */
|
|
440
|
+
_selectDate(e) {
|
|
441
|
+
if (this._chosenMonth = void 0, this._setChosenYear(), this.multiple) {
|
|
442
|
+
if (this._selected && this._selected.length > 0) {
|
|
443
|
+
const t = this._selected.findIndex((a) => this._dateAdapter.compareDate(a, e) === 0);
|
|
444
|
+
t !== -1 ? this._selected = this._selected.filter((a, s) => s !== t) : this._selected = [...this._selected, e];
|
|
445
|
+
} else
|
|
446
|
+
this._selected = [e];
|
|
447
|
+
this._emitDateSelectedEvent(this._selected.map((t) => this._dateAdapter.deserialize(t)));
|
|
448
|
+
} else
|
|
449
|
+
(!this._selected || this._dateAdapter.compareDate(this._selected, e) !== 0) && (this._selected = e, this._emitDateSelectedEvent(this._dateAdapter.deserialize(e)));
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Handle multiple dates selection via weekNumber / weekDay buttons:
|
|
453
|
+
* - if Cmd or Ctrl are pressed, add the new date to the current ones;
|
|
454
|
+
* - if not,
|
|
455
|
+
* - if the new dates are the same of the current ones, it means that the same button has been clicked twice, so do nothing;
|
|
456
|
+
* - if not, the selected dates are the new ones.
|
|
457
|
+
*/
|
|
458
|
+
_selectMultipleDates(e) {
|
|
459
|
+
const t = this._cells.filter((r) => !r.disabled).map((r) => r.value), a = e.map((r) => r.value).filter((r) => t.includes(r)), s = new Set(a), i = new Set(this._selected.map((r) => this._dateAdapter.toIso8601(r))), l = this._updateSelectedWithMultipleDates(a, s, i);
|
|
460
|
+
this._selected = l.map((r) => this._dateAdapter.deserialize(r)), this._emitDateSelectedEvent(this._selected.map((r) => this._dateAdapter.deserialize(r)));
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Emits the dateselected event given the detail (as T or T[] based on the value of the multiple flag).
|
|
464
|
+
*/
|
|
465
|
+
_emitDateSelectedEvent(e) {
|
|
466
|
+
this.dispatchEvent(new CustomEvent("dateselected", {
|
|
467
|
+
detail: e,
|
|
468
|
+
composed: !0,
|
|
469
|
+
bubbles: !0
|
|
470
|
+
}));
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* In case of multiple selection, newly added days must be added to the existing ones, without duplication.
|
|
474
|
+
* If the days to add are exactly the same as the selected ones, the set must be emptied.
|
|
475
|
+
*/
|
|
476
|
+
_updateSelectedWithMultipleDates(e, t, a) {
|
|
477
|
+
return e.every((s) => a.has(s)) ? t.forEach((s) => a.delete(s)) : t.forEach((s) => a.add(s)), Array.from(a);
|
|
478
|
+
}
|
|
479
|
+
_setChosenYear() {
|
|
480
|
+
if (this.view === "month") {
|
|
481
|
+
let e;
|
|
482
|
+
this.multiple ? e = this.selected.at(-1) : e = this.selected, this._chosenYear = this._dateAdapter.getYear(e ?? this._dateAdapter.today());
|
|
483
|
+
} else
|
|
484
|
+
this._chosenYear = void 0;
|
|
485
|
+
}
|
|
486
|
+
_assignActiveDate(e) {
|
|
487
|
+
if (this.min && this._dateAdapter.compareDate(this.min, e) > 0) {
|
|
488
|
+
this._activeDate = this.min;
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
if (this.max && this._dateAdapter.compareDate(this.max, e) < 0) {
|
|
492
|
+
this._activeDate = this.max;
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
this._activeDate = e;
|
|
496
|
+
}
|
|
497
|
+
/** Goes to the month identified by the shift. */
|
|
498
|
+
_goToDifferentMonth(e) {
|
|
499
|
+
this._init(this._dateAdapter.addCalendarMonths(this._activeDate, e));
|
|
500
|
+
}
|
|
501
|
+
_goToDifferentYear(e) {
|
|
502
|
+
this._chosenYear += e, this._activeDate = this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate)), this._init();
|
|
503
|
+
}
|
|
504
|
+
_goToDifferentYearRange(e) {
|
|
505
|
+
this._init(this._dateAdapter.addCalendarYears(this._activeDate, e));
|
|
506
|
+
}
|
|
507
|
+
_prevDisabled(e) {
|
|
508
|
+
return this.min ? this._dateAdapter.compareDate(e, this.min) < 0 : !1;
|
|
509
|
+
}
|
|
510
|
+
_nextDisabled(e) {
|
|
511
|
+
return this.max ? this._dateAdapter.compareDate(e, this.max) > 0 : !1;
|
|
512
|
+
}
|
|
513
|
+
/** Checks if the "previous month" button should be disabled. */
|
|
514
|
+
_previousMonthDisabled() {
|
|
515
|
+
const e = this._dateAdapter.addCalendarDays(this._activeDate, this._dateAdapter.getDate(this._activeDate) * -1);
|
|
516
|
+
return this._prevDisabled(e);
|
|
517
|
+
}
|
|
518
|
+
/** Checks if the "next month" button should be disabled. */
|
|
519
|
+
_nextMonthDisabled() {
|
|
520
|
+
let e = this._dateAdapter.addCalendarMonths(this._activeDate, this._wide ? 2 : 1);
|
|
521
|
+
return e = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), 1), this._nextDisabled(e);
|
|
522
|
+
}
|
|
523
|
+
/** Checks if the "previous year" button should be disabled. */
|
|
524
|
+
_previousYearDisabled() {
|
|
525
|
+
const e = this._dateAdapter.createDate(this._dateAdapter.getYear(this._activeDate) - 1, 12, 31);
|
|
526
|
+
return this._prevDisabled(e);
|
|
527
|
+
}
|
|
528
|
+
/** Checks if the "next year" button should be disabled. */
|
|
529
|
+
_nextYearDisabled() {
|
|
530
|
+
const e = this._dateAdapter.createDate(this._dateAdapter.getYear(this._activeDate) + (this._wide ? 2 : 1), 1, 1);
|
|
531
|
+
return this._nextDisabled(e);
|
|
532
|
+
}
|
|
533
|
+
/** Checks if the "previous year" button should be disabled in year view. */
|
|
534
|
+
_previousYearRangeDisabled() {
|
|
535
|
+
const e = this._dateAdapter.createDate(this._years[0][0] - 1, 12, 31);
|
|
536
|
+
return this._prevDisabled(e);
|
|
537
|
+
}
|
|
538
|
+
/** Checks if the "next year" button should be disabled in year view. */
|
|
539
|
+
_nextYearRangeDisabled() {
|
|
540
|
+
const e = this._wide ? this._nextMonthYears : this._years, t = e[e.length - 1], a = t[t.length - 1], s = this._dateAdapter.createDate(a + 1, 1, 1);
|
|
541
|
+
return this._nextDisabled(s);
|
|
542
|
+
}
|
|
543
|
+
_handleTableBlur(e) {
|
|
544
|
+
e?.localName !== "button" && this._setTabIndex();
|
|
545
|
+
}
|
|
546
|
+
_setTabIndex() {
|
|
547
|
+
Array.from(this.shadowRoot.querySelectorAll('.sbb-calendar__cell[tabindex="0"]') ?? []).forEach((t) => t.tabIndex = -1);
|
|
548
|
+
const e = this._getFirstFocusable();
|
|
549
|
+
e && (e.tabIndex = 0);
|
|
550
|
+
}
|
|
551
|
+
/** Get the element in the calendar to assign focus. */
|
|
552
|
+
_getFirstFocusable() {
|
|
553
|
+
const e = this.shadowRoot.querySelector(".sbb-calendar__selected") ?? this.shadowRoot.querySelector(".sbb-calendar__cell-current");
|
|
554
|
+
return e && !e.disabled ? e : this._calendarView === "day" ? this._getFirstFocusableDay() : this.shadowRoot.querySelector(".sbb-calendar__cell:not([disabled])");
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* In `day` view in `vertical` orientation,
|
|
558
|
+
* if the first of the month is not a Monday, it is not the first rendered element in the table,
|
|
559
|
+
* so `this.shadowRoot!.querySelector('.sbb-calendar__cell:not([disabled])')` will return a wrong value.
|
|
560
|
+
*
|
|
561
|
+
* To solve this, the element with the lowest `value` is taken (ISO String are ordered).
|
|
562
|
+
*/
|
|
563
|
+
_getFirstFocusableDay() {
|
|
564
|
+
const e = Array.from(this.shadowRoot.querySelectorAll(".sbb-calendar__cell:not([disabled])"));
|
|
565
|
+
if (!e || e.length === 0)
|
|
566
|
+
return null;
|
|
567
|
+
{
|
|
568
|
+
const t = e.map((a) => a.value).sort()[0];
|
|
569
|
+
return this.shadowRoot.querySelector(`.sbb-calendar__cell[value="${t}"]`);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
_handleKeyboardEvent(e, t) {
|
|
573
|
+
Ke(e) && e.preventDefault();
|
|
574
|
+
const a = this._cells, s = a.findIndex((r) => r === e.target);
|
|
575
|
+
let i;
|
|
576
|
+
t ? i = this._navigateByKeyboardDayView(e, s, a, t) : i = this._navigateByKeyboard(e, s, a);
|
|
577
|
+
const l = this.shadowRoot.activeElement;
|
|
578
|
+
i !== l && (i.tabIndex = 0, i?.focus(), l.tabIndex = -1);
|
|
579
|
+
}
|
|
580
|
+
_navigateByKeyboardDayView(e, t, a, s) {
|
|
581
|
+
const i = this.orientation === "horizontal" ? { leftRight: 1, upDown: D } : { leftRight: D, upDown: 1 }, l = t < this._keyboardNavigationDayViewParameters.firstMonthLength ? this._keyboardNavigationDayViewParameters.firstMonthOffset : this._keyboardNavigationDayViewParameters.secondMonthOffset;
|
|
582
|
+
switch (e.key) {
|
|
583
|
+
case "ArrowUp":
|
|
584
|
+
return this._findDayArrows(a, t, s.dateValue, -i.upDown);
|
|
585
|
+
case "ArrowDown":
|
|
586
|
+
return this._findDayArrows(a, t, s.dateValue, i.upDown);
|
|
587
|
+
case "ArrowLeft":
|
|
588
|
+
return this._findDayArrows(a, t, s.dateValue, -i.leftRight);
|
|
589
|
+
case "ArrowRight":
|
|
590
|
+
return this._findDayArrows(a, t, s.dateValue, i.leftRight);
|
|
591
|
+
case "PageUp":
|
|
592
|
+
if (this.orientation === "horizontal") {
|
|
593
|
+
const c = (+s.dayValue % D || D) - +s.dayValue;
|
|
594
|
+
return this._findDayPageUpDown(a, t, s, c, i.upDown);
|
|
595
|
+
} else {
|
|
596
|
+
const _ = (Math.ceil((+s.dayValue + l) / D) - 1) * D - l + 1 - +s.dayValue;
|
|
597
|
+
return this._findDayPageUpDown(a, t, s, _, i.upDown);
|
|
598
|
+
}
|
|
599
|
+
case "PageDown":
|
|
600
|
+
if (this.orientation === "horizontal") {
|
|
601
|
+
const r = +s.monthValue + 1 > 12 ? 1 : +s.monthValue + 1, c = +s.monthValue + 1 > 12 ? +s.yearValue + 1 : +s.yearValue, _ = this._dateAdapter.createDate(c, r, 1), v = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(_, -1)), j = Math.trunc((v - +s.dayValue) / D) * D;
|
|
602
|
+
return this._findDayPageUpDown(a, t, s, j, -i.upDown);
|
|
603
|
+
} else {
|
|
604
|
+
const _ = Math.ceil((+s.dayValue + l) / D) * D - l - +s.dayValue;
|
|
605
|
+
return this._findDayPageUpDown(a, t, s, _, -i.upDown);
|
|
606
|
+
}
|
|
607
|
+
case "Home":
|
|
608
|
+
return this._findDayFirst(a, t, s, 1);
|
|
609
|
+
case "End": {
|
|
610
|
+
const r = +s.monthValue + 1 > 12 ? 1 : +s.monthValue + 1, c = +s.monthValue + 1 > 12 ? +s.yearValue + 1 : +s.yearValue, _ = this._dateAdapter.createDate(c, r, 1);
|
|
611
|
+
return this._findDayLast(a, t, _);
|
|
612
|
+
}
|
|
613
|
+
default:
|
|
614
|
+
return a[t];
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
_isDayOutOfView(e) {
|
|
618
|
+
return e < this._keyboardNavigationDayViewParameters.firstDayInView || e > this._keyboardNavigationDayViewParameters.lastDayInView;
|
|
619
|
+
}
|
|
620
|
+
_findDayArrows(e, t, a, s) {
|
|
621
|
+
const i = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(a, s));
|
|
622
|
+
if (this._isDayOutOfView(i))
|
|
623
|
+
return e[t];
|
|
624
|
+
const l = e.find((r) => r.value === i);
|
|
625
|
+
return !l || l.disabled ? this._findDayArrows(e, t, this._dateAdapter.deserialize(i), s) : l;
|
|
626
|
+
}
|
|
627
|
+
_findDayPageUpDown(e, t, a, s, i) {
|
|
628
|
+
const l = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(a.dateValue, s));
|
|
629
|
+
if (this._isDayOutOfView(l))
|
|
630
|
+
return e[t];
|
|
631
|
+
const r = e.find((c) => c.value === l);
|
|
632
|
+
return !r || r.disabled ? this._findDayPageUpDown(e, t, a, s + i, i) : r;
|
|
633
|
+
}
|
|
634
|
+
_findDayFirst(e, t, a, s) {
|
|
635
|
+
const i = this._dateAdapter.toIso8601(this._dateAdapter.createDate(+a.yearValue, +a.monthValue, s));
|
|
636
|
+
if (this._isDayOutOfView(i))
|
|
637
|
+
return e[t];
|
|
638
|
+
const l = e.find((r) => r.value === i);
|
|
639
|
+
return !l || l.disabled ? this._findDayFirst(e, t, a, s + 1) : l;
|
|
640
|
+
}
|
|
641
|
+
_findDayLast(e, t, a) {
|
|
642
|
+
const s = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(a, -1));
|
|
643
|
+
if (this._isDayOutOfView(s))
|
|
644
|
+
return e[t];
|
|
645
|
+
const i = e.find((l) => l.value === s);
|
|
646
|
+
return !i || i.disabled ? this._findDayLast(e, t, this._dateAdapter.deserialize(s)) : i;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Gets the index of the element to move to, based on a list of elements (which can be potentially disabled),
|
|
650
|
+
* the keyboard input and the position of the current element in the list.
|
|
651
|
+
* In the day view, the `day?: Day` parameter is mandatory for calculation,
|
|
652
|
+
* while in month and year view it's not due to the fixed amount of rendered cells.
|
|
653
|
+
*/
|
|
654
|
+
_navigateByKeyboard(e, t, a) {
|
|
655
|
+
const { elementIndexForWideMode: s, offsetForWideMode: i, lastElementIndexForWideMode: l, verticalOffset: r } = this._calculateParametersForKeyboardNavigation(t, this._calendarView === "year");
|
|
656
|
+
switch (e.key) {
|
|
657
|
+
case "ArrowUp":
|
|
658
|
+
return this._findNext(a, t, -r);
|
|
659
|
+
case "ArrowDown":
|
|
660
|
+
return this._findNext(a, t, r);
|
|
661
|
+
case "ArrowLeft":
|
|
662
|
+
return this._findNext(a, t, -1);
|
|
663
|
+
case "ArrowRight":
|
|
664
|
+
return this._findNext(a, t, 1);
|
|
665
|
+
case "Home":
|
|
666
|
+
return this._findFirst(a, i);
|
|
667
|
+
case "PageUp":
|
|
668
|
+
return this._findFirstOnColumn(a, s, i, r);
|
|
669
|
+
case "PageDown":
|
|
670
|
+
return this._findLastOnColumn(a, t, l, r);
|
|
671
|
+
case "End":
|
|
672
|
+
return this._findLast(a, l - 1);
|
|
673
|
+
default:
|
|
674
|
+
return a[t];
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Calculates the parameters needed in keyboard navigation in year and month view.
|
|
679
|
+
* @param index The starting element's index in the cell array.
|
|
680
|
+
* @param isYearView Whether the displayed `view` is the year one.
|
|
681
|
+
*/
|
|
682
|
+
_calculateParametersForKeyboardNavigation(e, t) {
|
|
683
|
+
const a = t ? V : Qe, s = Math.trunc(e / a) * a, i = s === 0 ? e : e - a;
|
|
684
|
+
return {
|
|
685
|
+
verticalOffset: t ? X : J,
|
|
686
|
+
elementIndexForWideMode: i,
|
|
687
|
+
offsetForWideMode: e - i,
|
|
688
|
+
lastElementIndexForWideMode: s === 0 ? a : a * 2
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Gets the next element of the provided array starting from `index` by adding `delta`.
|
|
693
|
+
* If the found element is disabled, it continues adding `delta` until it finds an enabled one in the array bounds.
|
|
694
|
+
*/
|
|
695
|
+
_findNext(e, t, a) {
|
|
696
|
+
let s = t + a;
|
|
697
|
+
for (; s < e.length && e[s]?.disabled; )
|
|
698
|
+
s += a;
|
|
699
|
+
return e[s] ?? e[t];
|
|
700
|
+
}
|
|
701
|
+
/** Find the first enabled element in the provided array. */
|
|
702
|
+
_findFirst(e, t) {
|
|
703
|
+
return e[t].disabled ? this._findNext(e, t, 1) : e[t];
|
|
704
|
+
}
|
|
705
|
+
/** Find the last enabled element in the provided array. */
|
|
706
|
+
_findLast(e, t) {
|
|
707
|
+
return e[t].disabled ? this._findNext(e, t, -1) : e[t];
|
|
708
|
+
}
|
|
709
|
+
/** Find the first enabled element in the same column of the provided array. */
|
|
710
|
+
_findFirstOnColumn(e, t, a, s) {
|
|
711
|
+
const i = t % s + a;
|
|
712
|
+
return e[i].disabled ? this._findNext(e, i, s) : e[i];
|
|
713
|
+
}
|
|
714
|
+
/** Find the last enabled element in the same column of the provided array. */
|
|
715
|
+
_findLastOnColumn(e, t, a, s) {
|
|
716
|
+
const i = t + Math.trunc((a - t - 1) / s) * s;
|
|
717
|
+
return e[i].disabled ? this._findNext(e, i, -s) : e[i];
|
|
718
|
+
}
|
|
719
|
+
_resetCalendarView(e = !1) {
|
|
720
|
+
this._containingFocus && (this._resetFocus = !0), this._activeDate = (this.multiple ? this._selected.at(-1) : this._selected) ?? this._dateAdapter.today(), this._setChosenYear(), this._chosenMonth = void 0, this._init(), this._nextCalendarView = this._calendarView = this.view, e && this._startTableTransition();
|
|
721
|
+
}
|
|
722
|
+
/** Render the view for the day selection. */
|
|
723
|
+
_renderDayView() {
|
|
724
|
+
const e = this._wide ? this._dateAdapter.addCalendarMonths(this._activeDate, 1) : void 0;
|
|
725
|
+
return h`
|
|
726
|
+
<div class="sbb-calendar__controls">
|
|
727
|
+
${this._getArrow("left", () => this._goToDifferentMonth(-1), Xe[this._language.current], this._previousMonthDisabled())}
|
|
728
|
+
<div class="sbb-calendar__controls-month">
|
|
729
|
+
${this._createLabelForDayView(this._activeDate)}
|
|
730
|
+
${this._wide ? this._createLabelForDayView(e) : m}
|
|
731
|
+
<sbb-screen-reader-only role="status">
|
|
732
|
+
${this._createAriaLabelForDayView(this._activeDate, e)}
|
|
733
|
+
</sbb-screen-reader-only>
|
|
734
|
+
</div>
|
|
735
|
+
${this._getArrow("right", () => this._goToDifferentMonth(1), Ze[this._language.current], this._nextMonthDisabled())}
|
|
736
|
+
</div>
|
|
737
|
+
<div class="sbb-calendar__table-overflow-break">
|
|
738
|
+
<div class="sbb-calendar__table-container sbb-calendar__table-day-view">
|
|
739
|
+
${this.orientation === "horizontal" ? h`
|
|
740
|
+
${this._createDayTable(this._weeks, this._weekNumbers)}
|
|
741
|
+
${this._wide ? this._createDayTable(this._nextMonthWeeks, this._nextMonthWeekNumbers, !0) : m}
|
|
742
|
+
` : h`
|
|
743
|
+
${this._createDayTableVertical(this._weeks, this._weekNumbers)}
|
|
744
|
+
${this._wide ? this._createDayTableVertical(this._nextMonthWeeks, this._nextMonthWeekNumbers, e) : m}
|
|
745
|
+
`}
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
`;
|
|
749
|
+
}
|
|
750
|
+
/** Creates the label with the month for the daily view. */
|
|
751
|
+
_createLabelForDayView(e) {
|
|
752
|
+
const t = `${this._monthNames[this._dateAdapter.getMonth(e) - 1]} ${this._dateAdapter.getYear(e)}`;
|
|
753
|
+
return h`
|
|
754
|
+
<button
|
|
755
|
+
type="button"
|
|
756
|
+
class="sbb-calendar__date-selection sbb-calendar__controls-change-date"
|
|
757
|
+
aria-label="${et[this._language.current]} ${t}"
|
|
758
|
+
@click=${() => {
|
|
759
|
+
this._resetFocus = !0, this._nextCalendarView = "year", this._startTableTransition();
|
|
760
|
+
}}
|
|
761
|
+
>
|
|
762
|
+
${t}
|
|
763
|
+
<sbb-icon name="chevron-small-down-small"></sbb-icon>
|
|
764
|
+
</button>
|
|
765
|
+
`;
|
|
766
|
+
}
|
|
767
|
+
/** Creates the aria-label for the daily view. */
|
|
768
|
+
_createAriaLabelForDayView(...e) {
|
|
769
|
+
let t = "";
|
|
770
|
+
for (const a of e)
|
|
771
|
+
a && (t += `${this._monthNames[this._dateAdapter.getMonth(a) - 1]} ${this._dateAdapter.getYear(a)} `);
|
|
772
|
+
return t;
|
|
773
|
+
}
|
|
774
|
+
/** Creates the calendar table for the daily view. */
|
|
775
|
+
_createDayTable(e, t, a = !1) {
|
|
776
|
+
const s = this._dateAdapter.toIso8601(this._dateAdapter.today()), i = (this._wide ? [...this._weeks, ...this._nextMonthWeeks] : a ? this._nextMonthWeeks : this._weeks).flat(), l = (a ? this._nextMonthWeeks : this._weeks).flat();
|
|
777
|
+
return h`
|
|
778
|
+
<table
|
|
779
|
+
class="sbb-calendar__table"
|
|
780
|
+
@focusout=${(r) => this._handleTableBlur(r.relatedTarget)}
|
|
781
|
+
@animationend=${(r) => this._tableAnimationEnd(r)}
|
|
782
|
+
>
|
|
783
|
+
<thead class="sbb-calendar__table-header">
|
|
784
|
+
<tr>
|
|
785
|
+
${this.weekNumbers ? h`<th class="sbb-calendar__table-header-cell"></th>` : m}
|
|
786
|
+
${this._weekdays.map((r, c) => h`
|
|
787
|
+
<th class="sbb-calendar__table-header-cell">
|
|
788
|
+
${this.multiple ? h`
|
|
789
|
+
<button
|
|
790
|
+
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
791
|
+
aria-label=${r.long}
|
|
792
|
+
@click=${() => {
|
|
793
|
+
const _ = l.filter((v) => v.weekDayValue === (c + 1) % 7);
|
|
794
|
+
this._selectMultipleDates(_);
|
|
795
|
+
}}
|
|
796
|
+
>
|
|
797
|
+
${r.narrow}
|
|
798
|
+
</button>
|
|
799
|
+
` : h`
|
|
800
|
+
<sbb-screen-reader-only>${r.long}</sbb-screen-reader-only>
|
|
801
|
+
<span aria-hidden="true">${r.narrow}</span>
|
|
802
|
+
`}
|
|
803
|
+
</th>
|
|
804
|
+
`)}
|
|
805
|
+
</tr>
|
|
806
|
+
</thead>
|
|
807
|
+
<tbody class="sbb-calendar__table-body">
|
|
808
|
+
${e.map((r, c) => {
|
|
809
|
+
const _ = D - r.length;
|
|
810
|
+
return c === 0 && _ ? h`
|
|
811
|
+
<tr>
|
|
812
|
+
${this.weekNumbers ? h`
|
|
813
|
+
<td class="sbb-calendar__table-header-cell">
|
|
814
|
+
${this.multiple ? h`
|
|
815
|
+
<button
|
|
816
|
+
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
817
|
+
aria-label=${`${U[this._language.current]} ${t[0]}`}
|
|
818
|
+
@click=${() => {
|
|
819
|
+
const v = i.filter((j) => j.weekValue === t[0]);
|
|
820
|
+
this._selectMultipleDates(v);
|
|
821
|
+
}}
|
|
822
|
+
>
|
|
823
|
+
${t[0]}
|
|
824
|
+
</button>
|
|
825
|
+
` : h`
|
|
826
|
+
<sbb-screen-reader-only
|
|
827
|
+
>${`${U[this._language.current]} ${t[0]}`}</sbb-screen-reader-only
|
|
828
|
+
>
|
|
829
|
+
<span aria-hidden="true">${t[0]}</span>
|
|
830
|
+
`}
|
|
831
|
+
</td>
|
|
832
|
+
` : m}
|
|
833
|
+
${[...Array(_).keys()].map(() => h`<td class="sbb-calendar__table-data"></td>`)}
|
|
834
|
+
${this._createDayCells(r, s)}
|
|
835
|
+
</tr>
|
|
836
|
+
` : h`
|
|
837
|
+
<tr>
|
|
838
|
+
${this.weekNumbers ? h`
|
|
839
|
+
<td class="sbb-calendar__table-header-cell">
|
|
840
|
+
${this.multiple ? h`
|
|
841
|
+
<button
|
|
842
|
+
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
843
|
+
aria-label=${`${U[this._language.current]} ${t[c]}`}
|
|
844
|
+
@click=${() => {
|
|
845
|
+
const v = i.filter((j) => j.weekValue === t[c]);
|
|
846
|
+
this._selectMultipleDates(v);
|
|
847
|
+
}}
|
|
848
|
+
>
|
|
849
|
+
${t[c]}
|
|
850
|
+
</button>
|
|
851
|
+
` : h`
|
|
852
|
+
<sbb-screen-reader-only
|
|
853
|
+
>${`${U[this._language.current]} ${t[c]}`}</sbb-screen-reader-only
|
|
854
|
+
>
|
|
855
|
+
<span aria-hidden="true">${t[c]}</span>
|
|
856
|
+
`}
|
|
857
|
+
</td>
|
|
858
|
+
` : m}
|
|
859
|
+
${this._createDayCells(r, s)}
|
|
860
|
+
</tr>
|
|
861
|
+
`;
|
|
862
|
+
})}
|
|
863
|
+
</tbody>
|
|
864
|
+
</table>
|
|
865
|
+
`;
|
|
866
|
+
}
|
|
867
|
+
/** Creates the table in orientation='vertical'. */
|
|
868
|
+
_createDayTableVertical(e, t, a) {
|
|
869
|
+
const s = this._dateAdapter.toIso8601(this._dateAdapter.today()), i = this._dateAdapter.getFirstWeekOffset(a ?? this._activeDate), l = (this._wide ? [...this._weeks, ...this._nextMonthWeeks] : a ? this._nextMonthWeeks : this._weeks).flat();
|
|
870
|
+
return h`
|
|
871
|
+
<table
|
|
872
|
+
class="sbb-calendar__table"
|
|
873
|
+
@focusout=${(r) => this._handleTableBlur(r.relatedTarget)}
|
|
874
|
+
@animationend=${(r) => this._tableAnimationEnd(r)}
|
|
875
|
+
>
|
|
876
|
+
${this.weekNumbers ? h`
|
|
877
|
+
<thead class="sbb-calendar__table-header">
|
|
878
|
+
<tr>
|
|
879
|
+
${a ? m : h`<th class="sbb-calendar__table-data"></th>`}
|
|
880
|
+
${t.map((r) => h`
|
|
881
|
+
<th class="sbb-calendar__table-header-cell">
|
|
882
|
+
${this.multiple ? h`
|
|
883
|
+
<button
|
|
884
|
+
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
885
|
+
aria-label=${`${U[this._language.current]} ${r}`}
|
|
886
|
+
@click=${() => {
|
|
887
|
+
const c = l.filter((_) => _.weekValue === r);
|
|
888
|
+
this._selectMultipleDates(c);
|
|
889
|
+
}}
|
|
890
|
+
>
|
|
891
|
+
${r}
|
|
892
|
+
</button>
|
|
893
|
+
` : h`
|
|
894
|
+
<sbb-screen-reader-only
|
|
895
|
+
>${`${U[this._language.current]} ${r}`}</sbb-screen-reader-only
|
|
896
|
+
>
|
|
897
|
+
<span aria-hidden="true">${r}</span>
|
|
898
|
+
`}
|
|
899
|
+
</th>
|
|
900
|
+
`)}
|
|
901
|
+
</tr>
|
|
902
|
+
</thead>
|
|
903
|
+
` : m}
|
|
904
|
+
<tbody class="sbb-calendar__table-body">
|
|
905
|
+
${e.map((r, c) => {
|
|
906
|
+
const _ = this._weekdays[c], v = this._wide ? [...r, ...this._nextMonthWeeks[c]] : r;
|
|
907
|
+
return h`
|
|
908
|
+
<tr>
|
|
909
|
+
${a ? m : h`
|
|
910
|
+
<td class="sbb-calendar__table-header-cell">
|
|
911
|
+
${this.multiple ? h`
|
|
912
|
+
<button
|
|
913
|
+
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
914
|
+
aria-label=${_.long}
|
|
915
|
+
@click=${() => this._selectMultipleDates(v)}
|
|
916
|
+
>
|
|
917
|
+
${_.narrow}
|
|
918
|
+
</button>
|
|
919
|
+
` : h`
|
|
920
|
+
<sbb-screen-reader-only>${_.long}</sbb-screen-reader-only>
|
|
921
|
+
<span aria-hidden="true">${_.narrow}</span>
|
|
922
|
+
`}
|
|
923
|
+
</td>
|
|
924
|
+
`}
|
|
925
|
+
${c < i ? h`<td class="sbb-calendar__table-data"></td>` : m}
|
|
926
|
+
${this._createDayCells(r, s)}
|
|
927
|
+
</tr>
|
|
928
|
+
`;
|
|
929
|
+
})}
|
|
930
|
+
</tbody>
|
|
931
|
+
</table>
|
|
932
|
+
`;
|
|
933
|
+
}
|
|
934
|
+
/** Creates the cells for the daily view. */
|
|
935
|
+
_createDayCells(e, t) {
|
|
936
|
+
return e.map((a) => {
|
|
937
|
+
const s = !this._isDayInRange(a.value), i = !this._dateFilter(this._dateAdapter.deserialize(a.value)), l = a.value === t;
|
|
938
|
+
let r;
|
|
939
|
+
return this.multiple ? r = this._selected.find((c) => this._dateAdapter.compareDate(a.dateValue, c) === 0) !== void 0 : r = !!this._selected && this._dateAdapter.compareDate(a.dateValue, this._selected) === 0, h`
|
|
940
|
+
<td
|
|
941
|
+
class=${Q({
|
|
942
|
+
"sbb-calendar__table-data": !0,
|
|
943
|
+
"sbb-calendar__table-data-selected": r
|
|
944
|
+
})}
|
|
945
|
+
>
|
|
946
|
+
<button
|
|
947
|
+
class=${Q({
|
|
948
|
+
"sbb-calendar__cell": !0,
|
|
949
|
+
"sbb-calendar__day": !0,
|
|
950
|
+
"sbb-calendar__cell-current": l,
|
|
951
|
+
"sbb-calendar__selected": r,
|
|
952
|
+
"sbb-calendar__crossed-out": !s && i
|
|
953
|
+
})}
|
|
954
|
+
@click=${() => this._selectDate(a.dateValue)}
|
|
955
|
+
?disabled=${s || i}
|
|
956
|
+
value=${a.value}
|
|
957
|
+
type="button"
|
|
958
|
+
aria-label=${this._dateAdapter.getAccessibilityFormatDate(a.value)}
|
|
959
|
+
aria-pressed=${r}
|
|
960
|
+
aria-disabled=${s || i}
|
|
961
|
+
aria-current=${l ? "date" : m}
|
|
962
|
+
tabindex="-1"
|
|
963
|
+
@keydown=${(c) => this._handleKeyboardEvent(c, a)}
|
|
964
|
+
sbb-popover-close
|
|
965
|
+
>
|
|
966
|
+
${a.dayValue}
|
|
967
|
+
</button>
|
|
968
|
+
</td>
|
|
969
|
+
`;
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
/** Render the view for the month selection. */
|
|
973
|
+
_renderMonthView() {
|
|
974
|
+
return h`
|
|
975
|
+
<div class="sbb-calendar__controls">
|
|
976
|
+
${this._getArrow("left", () => this._goToDifferentYear(-1), tt[this._language.current], this._previousYearDisabled())}
|
|
977
|
+
<div class="sbb-calendar__controls-month">${this._createLabelForMonthView()}</div>
|
|
978
|
+
${this._getArrow("right", () => this._goToDifferentYear(1), at[this._language.current], this._nextYearDisabled())}
|
|
979
|
+
</div>
|
|
980
|
+
<div class="sbb-calendar__table-overflow-break">
|
|
981
|
+
<div class="sbb-calendar__table-container sbb-calendar__table-month-view">
|
|
982
|
+
${this._createMonthTable(this._months, this._chosenYear)}
|
|
983
|
+
${this._wide ? this._createMonthTable(this._months, this._chosenYear + 1) : m}
|
|
984
|
+
</div>
|
|
985
|
+
</div>
|
|
986
|
+
`;
|
|
987
|
+
}
|
|
988
|
+
/** Creates the label with the year for the monthly view. */
|
|
989
|
+
_createLabelForMonthView() {
|
|
990
|
+
return h` <button
|
|
991
|
+
type="button"
|
|
992
|
+
id="sbb-calendar__month-selection"
|
|
993
|
+
class="sbb-calendar__controls-change-date"
|
|
994
|
+
aria-label=${`${Ee[this._language.current]} ${this._chosenYear}`}
|
|
995
|
+
@click=${() => this._resetCalendarView(!0)}
|
|
996
|
+
>
|
|
997
|
+
${this._chosenYear} ${this._wide ? ` - ${this._chosenYear + 1}` : m}
|
|
998
|
+
<sbb-icon name="chevron-small-up-small"></sbb-icon>
|
|
999
|
+
</button>
|
|
1000
|
+
<sbb-screen-reader-only role="status"> ${this._chosenYear} </sbb-screen-reader-only>`;
|
|
1001
|
+
}
|
|
1002
|
+
/** Creates the table for the month selection view. */
|
|
1003
|
+
_createMonthTable(e, t) {
|
|
1004
|
+
return h`
|
|
1005
|
+
<table
|
|
1006
|
+
class="sbb-calendar__table"
|
|
1007
|
+
@animationend=${(a) => this._tableAnimationEnd(a)}
|
|
1008
|
+
>
|
|
1009
|
+
${this._wide ? h`<thead class="sbb-calendar__table-header" aria-hidden="true">
|
|
1010
|
+
<tr>
|
|
1011
|
+
<th class="sbb-calendar__table-header-cell" colspan=${J}>${t}</th>
|
|
1012
|
+
</tr>
|
|
1013
|
+
</thead>` : m}
|
|
1014
|
+
<tbody class="sbb-calendar__table-body">
|
|
1015
|
+
${e.map((a) => h`
|
|
1016
|
+
<tr>
|
|
1017
|
+
${a.map((s) => {
|
|
1018
|
+
let i;
|
|
1019
|
+
if (this.multiple)
|
|
1020
|
+
i = this._selected.find((_) => t === this._dateAdapter.getYear(_) && s.monthValue === this._dateAdapter.getMonth(_)) !== void 0;
|
|
1021
|
+
else {
|
|
1022
|
+
const _ = this._selected ? this._dateAdapter.getMonth(this._selected) : void 0, v = this._selected ? this._dateAdapter.getYear(this._selected) : void 0;
|
|
1023
|
+
i = !!this._selected && t === v && s.monthValue === _;
|
|
1024
|
+
}
|
|
1025
|
+
const l = !this._isMonthInRange(s.monthValue, t), r = !this._isMonthFilteredOut(s.monthValue, t), c = t === this._dateAdapter.getYear(this._dateAdapter.today()) && this._dateAdapter.getMonth(this._dateAdapter.today()) === s.monthValue;
|
|
1026
|
+
return h` <td
|
|
1027
|
+
class=${Q({
|
|
1028
|
+
"sbb-calendar__table-data": !0,
|
|
1029
|
+
"sbb-calendar__table-month": !0
|
|
1030
|
+
})}
|
|
1031
|
+
>
|
|
1032
|
+
<button
|
|
1033
|
+
class=${Q({
|
|
1034
|
+
"sbb-calendar__cell": !0,
|
|
1035
|
+
"sbb-calendar__pill": !0,
|
|
1036
|
+
"sbb-calendar__cell-current": c,
|
|
1037
|
+
"sbb-calendar__crossed-out": !l && r,
|
|
1038
|
+
"sbb-calendar__selected": i
|
|
1039
|
+
})}
|
|
1040
|
+
@click=${() => this._onMonthSelection(s.monthValue, t)}
|
|
1041
|
+
?disabled=${l || r}
|
|
1042
|
+
aria-label=${`${s.longValue} ${t}`}
|
|
1043
|
+
aria-pressed=${i}
|
|
1044
|
+
aria-disabled=${String(l || r)}
|
|
1045
|
+
tabindex="-1"
|
|
1046
|
+
data-month=${s.monthValue || m}
|
|
1047
|
+
@keydown=${(_) => this._handleKeyboardEvent(_)}
|
|
1048
|
+
>
|
|
1049
|
+
${s.value}
|
|
1050
|
+
</button>
|
|
1051
|
+
</td>`;
|
|
1052
|
+
})}
|
|
1053
|
+
</tr>
|
|
1054
|
+
`)}
|
|
1055
|
+
</tbody>
|
|
1056
|
+
</table>
|
|
1057
|
+
`;
|
|
1058
|
+
}
|
|
1059
|
+
/** Select the month and change the view to day selection. */
|
|
1060
|
+
_onMonthSelection(e, t) {
|
|
1061
|
+
this._chosenMonth = e, this._nextCalendarView = "day", this._init(this._dateAdapter.createDate(t, this._chosenMonth, this._dateAdapter.getDate(this._activeDate))), this._startTableTransition();
|
|
1062
|
+
}
|
|
1063
|
+
/** Render the view for the year selection. */
|
|
1064
|
+
_renderYearView() {
|
|
1065
|
+
return h`
|
|
1066
|
+
<div class="sbb-calendar__controls">
|
|
1067
|
+
${this._getArrow("left", () => this._goToDifferentYearRange(-V), st(V)[this._language.current], this._previousYearRangeDisabled())}
|
|
1068
|
+
<div class="sbb-calendar__controls-month">${this._createLabelForYearView()}</div>
|
|
1069
|
+
${this._getArrow("right", () => this._goToDifferentYearRange(V), it(V)[this._language.current], this._nextYearRangeDisabled())}
|
|
1070
|
+
</div>
|
|
1071
|
+
<div class="sbb-calendar__table-overflow-break">
|
|
1072
|
+
<div class="sbb-calendar__table-container sbb-calendar__table-year-view">
|
|
1073
|
+
${this._createYearTable(this._years)}
|
|
1074
|
+
${this._wide ? this._createYearTable(this._nextMonthYears, !0) : m}
|
|
1075
|
+
</div>
|
|
1076
|
+
</div>
|
|
1077
|
+
`;
|
|
1078
|
+
}
|
|
1079
|
+
/** Creates the button arrow for all the views. */
|
|
1080
|
+
_getArrow(e, t, a, s) {
|
|
1081
|
+
return h`<sbb-secondary-button
|
|
1082
|
+
size="m"
|
|
1083
|
+
icon-name="chevron-small-${e}-small"
|
|
1084
|
+
aria-label=${a}
|
|
1085
|
+
@click=${t}
|
|
1086
|
+
?disabled=${s}
|
|
1087
|
+
id="sbb-calendar__controls-${e === "left" ? "previous" : "next"}"
|
|
1088
|
+
></sbb-secondary-button>`;
|
|
1089
|
+
}
|
|
1090
|
+
/** Creates the label with the year range for the yearly view. */
|
|
1091
|
+
_createLabelForYearView() {
|
|
1092
|
+
const e = this._years.flat()[0], t = (this._wide ? this._nextMonthYears : this._years).flat(), a = t[t.length - 1], s = `${e} - ${a}`;
|
|
1093
|
+
return h`
|
|
1094
|
+
<button
|
|
1095
|
+
type="button"
|
|
1096
|
+
id="sbb-calendar__year-selection"
|
|
1097
|
+
class="sbb-calendar__controls-change-date"
|
|
1098
|
+
aria-label="${Ee[this._language.current]} ${s}"
|
|
1099
|
+
@click=${() => this._resetCalendarView(!0)}
|
|
1100
|
+
>
|
|
1101
|
+
${s}
|
|
1102
|
+
<sbb-icon name="chevron-small-up-small"></sbb-icon>
|
|
1103
|
+
</button>
|
|
1104
|
+
<sbb-screen-reader-only role="status"> ${s} </sbb-screen-reader-only>
|
|
1105
|
+
`;
|
|
1106
|
+
}
|
|
1107
|
+
/** Creates the table for the year selection view. */
|
|
1108
|
+
_createYearTable(e, t = !1) {
|
|
1109
|
+
const a = this._dateAdapter.today();
|
|
1110
|
+
return h` <table
|
|
1111
|
+
class="sbb-calendar__table"
|
|
1112
|
+
@animationend=${(s) => this._tableAnimationEnd(s)}
|
|
1113
|
+
>
|
|
1114
|
+
<tbody class="sbb-calendar__table-body">
|
|
1115
|
+
${e.map((s) => h` <tr>
|
|
1116
|
+
${s.map((i) => {
|
|
1117
|
+
let l;
|
|
1118
|
+
if (this.multiple)
|
|
1119
|
+
l = this._selected.find((v) => i === this._dateAdapter.getYear(v)) !== void 0;
|
|
1120
|
+
else {
|
|
1121
|
+
const v = this._selected ? this._dateAdapter.getYear(this._selected) : void 0;
|
|
1122
|
+
l = !!this._selected && i === v;
|
|
1123
|
+
}
|
|
1124
|
+
const r = !this._isYearInRange(i), c = !this._isYearFilteredOut(i), _ = this._dateAdapter.getYear(a) === i;
|
|
1125
|
+
return h` <td class="sbb-calendar__table-data sbb-calendar__table-year">
|
|
1126
|
+
<button
|
|
1127
|
+
class=${Q({
|
|
1128
|
+
"sbb-calendar__cell": !0,
|
|
1129
|
+
"sbb-calendar__pill": !0,
|
|
1130
|
+
"sbb-calendar__cell-current": _,
|
|
1131
|
+
"sbb-calendar__crossed-out": !r && c,
|
|
1132
|
+
"sbb-calendar__selected": l
|
|
1133
|
+
})}
|
|
1134
|
+
@click=${() => this._onYearSelection(i, t)}
|
|
1135
|
+
?disabled=${r || c}
|
|
1136
|
+
aria-label=${i}
|
|
1137
|
+
aria-pressed=${l}
|
|
1138
|
+
aria-disabled=${String(r || c)}
|
|
1139
|
+
tabindex="-1"
|
|
1140
|
+
data-year=${i || m}
|
|
1141
|
+
@keydown=${(v) => this._handleKeyboardEvent(v)}
|
|
1142
|
+
>
|
|
1143
|
+
${i}
|
|
1144
|
+
</button>
|
|
1145
|
+
</td>`;
|
|
1146
|
+
})}
|
|
1147
|
+
</tr>`)}
|
|
1148
|
+
</tbody>
|
|
1149
|
+
</table>`;
|
|
1150
|
+
}
|
|
1151
|
+
/** Select the year and change the view to month selection. */
|
|
1152
|
+
_onYearSelection(e, t) {
|
|
1153
|
+
this._chosenYear = t ? e - 1 : e, this._nextCalendarView = "month", this._assignActiveDate(this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate))), this._startTableTransition();
|
|
1154
|
+
}
|
|
1155
|
+
_getView() {
|
|
1156
|
+
if (Se || this.hydrationRequired)
|
|
1157
|
+
return h`${m}`;
|
|
1158
|
+
switch (this._calendarView) {
|
|
1159
|
+
case "year":
|
|
1160
|
+
return this._renderYearView();
|
|
1161
|
+
case "month":
|
|
1162
|
+
return this._renderMonthView();
|
|
1163
|
+
default:
|
|
1164
|
+
return this._renderDayView();
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
_tableAnimationEnd(e) {
|
|
1168
|
+
const t = e.target;
|
|
1169
|
+
e.animationName === "hide" ? (t.classList.remove("sbb-calendar__table-hide"), this._containingFocus && (this._resetFocus = !0), this._calendarView = this._nextCalendarView) : e.animationName === "show" && this.internals.states.delete("transition");
|
|
1170
|
+
}
|
|
1171
|
+
_startTableTransition() {
|
|
1172
|
+
this.internals.states.add("transition"), this.shadowRoot?.querySelectorAll("table")?.forEach((e) => e.classList.toggle("sbb-calendar__table-hide"));
|
|
1173
|
+
}
|
|
1174
|
+
render() {
|
|
1175
|
+
return h`<div class="sbb-calendar__wrapper">${this._getView()}</div>`;
|
|
1176
|
+
}
|
|
1177
|
+
}, N = new WeakMap(), C = new WeakMap(), I = new WeakMap(), S = new WeakMap(), R = new WeakMap(), T = new WeakMap(), E = new WeakMap(), P = new WeakMap(), L = new WeakMap(), B = new WeakMap(), H = new WeakMap(), K = new WeakMap(), b = g, (() => {
|
|
1178
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
1179
|
+
$ = [Z(), Y({ type: Boolean })], M = [Y()], se = [Te(), Y()], ne = [Te(), Y()], de = [Z(), Je((t, a) => t._onMultipleChanged(a)), Y({ type: Boolean })], be = [Y()], _e = [G()], ge = [Y({ attribute: "date-filter" })], ve = [Y({ reflect: !0 })], De = [Z(), Y({ attribute: "week-numbers", type: Boolean })], xe = [G()], Me = [G()], Ye = [G()], Oe = [G()], y(g, null, $, { kind: "accessor", name: "wide", static: !1, private: !1, access: { has: (t) => "wide" in t, get: (t) => t.wide, set: (t, a) => {
|
|
1180
|
+
t.wide = a;
|
|
1181
|
+
} }, metadata: e }, O, k), y(g, null, M, { kind: "accessor", name: "view", static: !1, private: !1, access: { has: (t) => "view" in t, get: (t) => t.view, set: (t, a) => {
|
|
1182
|
+
t.view = a;
|
|
1183
|
+
} }, metadata: e }, W, ae), y(g, null, se, { kind: "accessor", name: "min", static: !1, private: !1, access: { has: (t) => "min" in t, get: (t) => t.min, set: (t, a) => {
|
|
1184
|
+
t.min = a;
|
|
1185
|
+
} }, metadata: e }, ie, re), y(g, null, ne, { kind: "accessor", name: "max", static: !1, private: !1, access: { has: (t) => "max" in t, get: (t) => t.max, set: (t, a) => {
|
|
1186
|
+
t.max = a;
|
|
1187
|
+
} }, metadata: e }, le, oe), y(g, null, de, { kind: "accessor", name: "multiple", static: !1, private: !1, access: { has: (t) => "multiple" in t, get: (t) => t.multiple, set: (t, a) => {
|
|
1188
|
+
t.multiple = a;
|
|
1189
|
+
} }, metadata: e }, ce, he), y(g, null, be, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, set: (t, a) => {
|
|
1190
|
+
t.selected = a;
|
|
1191
|
+
} }, metadata: e }, null, w), y(g, null, _e, { kind: "accessor", name: "_selected", static: !1, private: !1, access: { has: (t) => "_selected" in t, get: (t) => t._selected, set: (t, a) => {
|
|
1192
|
+
t._selected = a;
|
|
1193
|
+
} }, metadata: e }, ue, fe), y(g, null, ge, { kind: "accessor", name: "dateFilter", static: !1, private: !1, access: { has: (t) => "dateFilter" in t, get: (t) => t.dateFilter, set: (t, a) => {
|
|
1194
|
+
t.dateFilter = a;
|
|
1195
|
+
} }, metadata: e }, pe, me), y(g, null, ve, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, a) => {
|
|
1196
|
+
t.orientation = a;
|
|
1197
|
+
} }, metadata: e }, we, ye), y(g, null, De, { kind: "accessor", name: "weekNumbers", static: !1, private: !1, access: { has: (t) => "weekNumbers" in t, get: (t) => t.weekNumbers, set: (t, a) => {
|
|
1198
|
+
t.weekNumbers = a;
|
|
1199
|
+
} }, metadata: e }, ke, Ae), y(g, null, xe, { kind: "accessor", name: "_activeDate", static: !1, private: !1, access: { has: (t) => "_activeDate" in t, get: (t) => t._activeDate, set: (t, a) => {
|
|
1200
|
+
t._activeDate = a;
|
|
1201
|
+
} }, metadata: e }, $e, Ve), y(g, null, Me, { kind: "setter", name: "_wide", static: !1, private: !1, access: { has: (t) => "_wide" in t, set: (t, a) => {
|
|
1202
|
+
t._wide = a;
|
|
1203
|
+
} }, metadata: e }, null, w), y(g, null, Ye, { kind: "accessor", name: "_calendarView", static: !1, private: !1, access: { has: (t) => "_calendarView" in t, get: (t) => t._calendarView, set: (t, a) => {
|
|
1204
|
+
t._calendarView = a;
|
|
1205
|
+
} }, metadata: e }, ze, Fe), y(g, null, Oe, { kind: "accessor", name: "_initialized", static: !1, private: !1, access: { has: (t) => "_initialized" in t, get: (t) => t._initialized, set: (t, a) => {
|
|
1206
|
+
t._initialized = a;
|
|
1207
|
+
} }, metadata: e }, We, Ne), y(null, n = { value: b }, o, { kind: "class", name: b.name, metadata: e }, null, d), b = n.value, e && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
1208
|
+
})(), g.styles = [lt, vt], g.events = {
|
|
1209
|
+
dateselected: "dateselected"
|
|
1210
|
+
}, u(b, d), b;
|
|
1211
|
+
})();
|
|
1212
|
+
export {
|
|
1213
|
+
St as SbbCalendarElement
|
|
1214
|
+
};
|