@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,150 @@
|
|
|
1
|
+
import { SbbLanguageController } from "../controllers.js";
|
|
2
|
+
import { DateAdapter } from "./date-adapter.js";
|
|
3
|
+
const ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
4
|
+
class NativeDateAdapter extends DateAdapter {
|
|
5
|
+
/** Gets the year of the input date. */
|
|
6
|
+
getYear(date) {
|
|
7
|
+
return date.getFullYear();
|
|
8
|
+
}
|
|
9
|
+
/** Gets the month of the input date. */
|
|
10
|
+
getMonth(date) {
|
|
11
|
+
return date.getMonth() + 1;
|
|
12
|
+
}
|
|
13
|
+
/** Gets the day of the input date. */
|
|
14
|
+
getDate(date) {
|
|
15
|
+
return date.getDate();
|
|
16
|
+
}
|
|
17
|
+
/** Gets the day of the week of the input date. */
|
|
18
|
+
getDayOfWeek(date) {
|
|
19
|
+
return date.getDay();
|
|
20
|
+
}
|
|
21
|
+
/** Gets the date in the local format. */
|
|
22
|
+
getAccessibilityFormatDate(date) {
|
|
23
|
+
const options = {
|
|
24
|
+
year: "numeric",
|
|
25
|
+
month: "long",
|
|
26
|
+
day: "numeric"
|
|
27
|
+
};
|
|
28
|
+
return new Intl.DateTimeFormat(SbbLanguageController.current, options).format(new Date(date));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Creates an array of strings with length = 12, filled with the name of the months starting from January, in the document language.
|
|
32
|
+
* @param style See `month` in `DateTimeFormatOptions`: `long` for full name, `short` for short name, `narrow` for single letter,
|
|
33
|
+
* E.g., with January in en-gb: `long` returns "January", `short` returns "Jan", `narrow` returns "J".
|
|
34
|
+
*/
|
|
35
|
+
getMonthNames(style) {
|
|
36
|
+
const formatter = new Intl.DateTimeFormat(SbbLanguageController.current, { month: style });
|
|
37
|
+
return this._range(12, (i) => formatter.format(new Date(2017, i, 1)));
|
|
38
|
+
}
|
|
39
|
+
/** Creates a string array with length = 31, filled with the days in a month, starting from 1. */
|
|
40
|
+
getDateNames() {
|
|
41
|
+
const formatter = new Intl.DateTimeFormat(SbbLanguageController.current, { day: "numeric" });
|
|
42
|
+
return this._range(31, (i) => formatter.format(new Date(2017, 0, i + 1)));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Creates a string array with length = 7, filled with the name of the days in a week starting from Sunday, in the document language.
|
|
46
|
+
* @param style See `weekday` in `DateTimeFormatOptions` - 'long' for full name, 'short' for short name, 'narrow' for single letter;
|
|
47
|
+
* E.g., with Monday in en-gb: `long` returns "Monday", `short` returns "Mon", `narrow` returns "M".
|
|
48
|
+
*/
|
|
49
|
+
getDayOfWeekNames(style) {
|
|
50
|
+
const formatter = new Intl.DateTimeFormat(SbbLanguageController.current, { weekday: style });
|
|
51
|
+
return this._range(7, (i) => formatter.format(new Date(2017, 0, i + 1)));
|
|
52
|
+
}
|
|
53
|
+
/** Defines which is the first day of the week (0: sunday; 1: monday; etc.). */
|
|
54
|
+
getFirstDayOfWeek() {
|
|
55
|
+
return 1;
|
|
56
|
+
}
|
|
57
|
+
/** Calculates the number of days in a month given the year and the month. */
|
|
58
|
+
getNumDaysInMonth(date) {
|
|
59
|
+
return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date), 0));
|
|
60
|
+
}
|
|
61
|
+
/** Creates today's date. */
|
|
62
|
+
today() {
|
|
63
|
+
return new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
|
|
64
|
+
}
|
|
65
|
+
/** Creates a new date, given day, month and year; the method doesn't allow date's overflow. */
|
|
66
|
+
createDate(year, month, day) {
|
|
67
|
+
if (month < 1 || month > 12) {
|
|
68
|
+
throw Error(`Invalid month "${month}". Month has to be between 1 and 12.`);
|
|
69
|
+
} else if (day < 1) {
|
|
70
|
+
throw Error(`Invalid day "${day}". Day has to be greater than 0.`);
|
|
71
|
+
}
|
|
72
|
+
const result = this._createDateWithOverflow(year, month - 1, day);
|
|
73
|
+
if (result.getMonth() + 1 !== month) {
|
|
74
|
+
throw Error(`Invalid day "${day}" for month "${month}".`);
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
/** Checks whether the given `obj` is a Date. */
|
|
79
|
+
isDateInstance(obj) {
|
|
80
|
+
return obj instanceof Date;
|
|
81
|
+
}
|
|
82
|
+
/** Checks whether the given `date` is a valid Date. */
|
|
83
|
+
isValid(date) {
|
|
84
|
+
return !!date && !isNaN(date.valueOf());
|
|
85
|
+
}
|
|
86
|
+
/** Creates a new date by cloning the given one. */
|
|
87
|
+
clone(date) {
|
|
88
|
+
return new Date(date.valueOf());
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Creates a new date adding the number of provided `years` to the provided `date`.
|
|
92
|
+
* @param date The starting date.
|
|
93
|
+
* @param years The number of years to add.
|
|
94
|
+
*/
|
|
95
|
+
addCalendarYears(date, years) {
|
|
96
|
+
return this.addCalendarMonths(date, years * 12);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Creates a new date adding the number of provided `months` to the provided `date`.
|
|
100
|
+
* If the calculated month has fewer days than the original one, the date is set to the last day of the month.
|
|
101
|
+
* E.g., with `date` = new Date(2022, 0, 31) and `months` = 1, it returns new Date(2022, 1, 28).
|
|
102
|
+
*/
|
|
103
|
+
addCalendarMonths(date, months) {
|
|
104
|
+
const targetMonth = date.getMonth() + months;
|
|
105
|
+
const dateWithCorrectMonth = new Date(date.getFullYear(), targetMonth, 1, 0, 0, 0, 0);
|
|
106
|
+
const daysInMonth = this.getNumDaysInMonth(dateWithCorrectMonth);
|
|
107
|
+
return new Date(this.clone(date).setMonth(targetMonth, Math.min(daysInMonth, date.getDate())));
|
|
108
|
+
}
|
|
109
|
+
/** Creates a new date by adding the number of provided `days` to the provided `date`. */
|
|
110
|
+
addCalendarDays(date, days) {
|
|
111
|
+
const targetDay = date.getDate() + days;
|
|
112
|
+
return new Date(date.getFullYear(), date.getMonth(), targetDay, 0, 0, 0, 0);
|
|
113
|
+
}
|
|
114
|
+
/** Creates a Date from a valid input (Date or ISO string). */
|
|
115
|
+
deserialize(date) {
|
|
116
|
+
if (typeof date === "string") {
|
|
117
|
+
if (!date) {
|
|
118
|
+
return null;
|
|
119
|
+
} else if (ISO_8601_REGEX.test(date)) {
|
|
120
|
+
return this.getValidDateOrNull(new Date(date.includes("T") ? date : date + "T00:00:00"));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return super.deserialize(date);
|
|
124
|
+
}
|
|
125
|
+
invalid() {
|
|
126
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Creates an array with the given length and fills it by mapping with the provided function.
|
|
130
|
+
* @param length The length of the array to be created.
|
|
131
|
+
* @param valueFunction The function of array's index used to fill the array.
|
|
132
|
+
*/
|
|
133
|
+
_range(length, valueFunction) {
|
|
134
|
+
return Array.from({ length }).map((_, i) => valueFunction(i));
|
|
135
|
+
}
|
|
136
|
+
/** Creates a date but allows the month and date to overflow. */
|
|
137
|
+
_createDateWithOverflow(year, month, date) {
|
|
138
|
+
const result = new Date(year, month, date);
|
|
139
|
+
if (year >= 0 && year < 100) {
|
|
140
|
+
result.setFullYear(this.getYear(result) - 1900);
|
|
141
|
+
}
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const defaultDateAdapter = new NativeDateAdapter();
|
|
146
|
+
export {
|
|
147
|
+
NativeDateAdapter,
|
|
148
|
+
defaultDateAdapter
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLWRhdGUtYWRhcHRlci5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2VsZW1lbnRzL2NvcmUvZGF0ZXRpbWUvbmF0aXZlLWRhdGUtYWRhcHRlci50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTYmJMYW5ndWFnZUNvbnRyb2xsZXIgfSBmcm9tICcuLi9jb250cm9sbGVycy50cyc7XG5cbmltcG9ydCB7IERhdGVBZGFwdGVyIH0gZnJvbSAnLi9kYXRlLWFkYXB0ZXIudHMnO1xuXG4vKipcbiAqIE1hdGNoZXMgc3RyaW5ncyB0aGF0IGhhdmUgdGhlIGZvcm0gb2YgYSB2YWxpZCBSRkMgMzMzOSBzdHJpbmdcbiAqIChodHRwczovL3Rvb2xzLmlldGYub3JnL2h0bWwvcmZjMzMzOSkuIE5vdGUgdGhhdCB0aGUgc3RyaW5nIG1heSBub3QgYWN0dWFsbHkgYmUgYSB2YWxpZCBkYXRlXG4gKiBiZWNhdXNlIHRoZSByZWdleCB3aWxsIG1hdGNoIHN0cmluZ3MgYW5kIHdpdGhvdXQgb2YgYm91bmRzIG1vbnRoLCBkYXRlLCBldGMuXG4gKi9cbmNvbnN0IElTT184NjAxX1JFR0VYID1cbiAgL15cXGR7NH0tXFxkezJ9LVxcZHsyfSg/OlRcXGR7Mn06XFxkezJ9OlxcZHsyfSg/OlxcLlxcZCspPyg/Olp8KD86KD86XFwrfC0pXFxkezJ9OlxcZHsyfSkpPyk/JC87XG5cbmV4cG9ydCBjbGFzcyBOYXRpdmVEYXRlQWRhcHRlciBleHRlbmRzIERhdG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7QUFBQTtBQUFBLEVBR2dCLFlBQVksTUFBc0M7QUFDaEUsUUFBSSxPQUFPLFNBQVMsVUFBVTtBQUM1QixVQUFJLENBQUMsTUFBTTtBQUNULGVBQU87QUFBQSxNQUNULFdBQVcsZUFBZSxLQUFLLElBQUksR0FBRztBQUdwQyxlQUFPLEtBQUssbUJBQW1CLElBQUksS0FBSyxLQUFLLFNBQVMsR0FBRyxJQUFJLE9BQU8sT0FBTyxXQUFXLENBQUM7QUFBQSxNQUN6RjtBQUFBLElBQ0Y7QUFDQSxXQUFPLE1BQU0sWUFBWSxJQUFJO0FBQUEsRUFDL0I7QUFBQSxFQUVnQixVQUFPO0FBQ3JCLFdBQU8sb0JBQUksS0FBSyxHQUFHO0FBQUEsRUFDckI7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsRUFPUSxPQUFVLFFBQWdCLGVBQW1DO0FBQ25FLFdBQU8sTUFBTSxLQUFLLEVBQUUsUUFBUSxFQUFFLElBQUksQ0FBQyxHQUFHLE1BQU0sY0FBYyxDQUFDLENBQUM7QUFBQSxFQUM5RDtBQUFBO0FBQUEsRUFHUSx3QkFBd0IsTUFBYyxPQUFlLE1BQVk7QUFDdkUsVUFBTSxTQUFTLElBQUksS0FBSyxNQUFNLE9BQU8sSUFBSTtBQUd6QyxRQUFJLFFBQVEsS0FBSyxPQUFPLEtBQUs7QUFDM0IsYUFBTyxZQUFZLEtBQUssUUFBUSxNQUFNLElBQUksSUFBSTtBQUFBLElBQ2hEO0FBQ0EsV0FBTztBQUFBLEVBQ1Q7QUFDRDtBQUVNLE1BQU0scUJBQXFCLElBQUksa0JBQUE7In0=
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DateAdapter } from './date-adapter.ts';
|
|
2
|
+
export declare class TemporalDateAdapter extends DateAdapter<Temporal.PlainDate> {
|
|
3
|
+
/**
|
|
4
|
+
* @param cutoffYearOffset The threshold on whether a two-digit year
|
|
5
|
+
* should be treated as belonging to 2000 or 1900. e.g. with 15 (default)
|
|
6
|
+
* the current year plus 15 will be treated as belonging to 2000, and the rest to 1900.
|
|
7
|
+
* So e.g. with the current year 2025, 40 will be treated as 2040, while 41 will be treated as 1941.
|
|
8
|
+
*/
|
|
9
|
+
constructor(cutoffYearOffset?: number);
|
|
10
|
+
/** Gets the year of the input date. */
|
|
11
|
+
getYear(date: Temporal.PlainDate): number;
|
|
12
|
+
/** Gets the month of the input date. */
|
|
13
|
+
getMonth(date: Temporal.PlainDate): number;
|
|
14
|
+
/** Gets the day of the input date. */
|
|
15
|
+
getDate(date: Temporal.PlainDate): number;
|
|
16
|
+
/** Gets the day of the week of the input date. */
|
|
17
|
+
getDayOfWeek(date: Temporal.PlainDate): number;
|
|
18
|
+
/** Gets the date in the local format. */
|
|
19
|
+
getAccessibilityFormatDate(date: Temporal.PlainDate | string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Creates an array of strings with length = 12, filled with the name of the months starting from January, in the document language.
|
|
22
|
+
* @param style See `month` in `DateTimeFormatOptions`: `long` for full name, `short` for short name, `narrow` for single letter,
|
|
23
|
+
* E.g., with January in en-gb: `long` returns "January", `short` returns "Jan", `narrow` returns "J".
|
|
24
|
+
*/
|
|
25
|
+
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
26
|
+
/** Creates a string array with length = 31, filled with the days in a month, starting from 1. */
|
|
27
|
+
getDateNames(): string[];
|
|
28
|
+
/**
|
|
29
|
+
* Creates a string array with length = 7, filled with the name of the days in a week starting from Sunday, in the document language.
|
|
30
|
+
* @param style See `weekday` in `DateTimeFormatOptions` - 'long' for full name, 'short' for short name, 'narrow' for single letter;
|
|
31
|
+
* E.g., with Monday in en-gb: `long` returns "Monday", `short` returns "Mon", `narrow` returns "M".
|
|
32
|
+
*/
|
|
33
|
+
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
34
|
+
/** Defines which is the first day of the week (0: sunday; 1: monday; etc.). */
|
|
35
|
+
getFirstDayOfWeek(): number;
|
|
36
|
+
/** Calculates the number of days in a month given the year and the month. */
|
|
37
|
+
getNumDaysInMonth(date: Temporal.PlainDate): number;
|
|
38
|
+
/** Creates today's date. */
|
|
39
|
+
today(): Temporal.PlainDate;
|
|
40
|
+
/** Creates a new date, given day, month and year; the method doesn't allow date's overflow. */
|
|
41
|
+
createDate(year: number, month: number, day: number): Temporal.PlainDate;
|
|
42
|
+
/** Checks whether the given `obj` is a Temporal.PlainDate. */
|
|
43
|
+
isDateInstance(obj: any): boolean;
|
|
44
|
+
/** Checks whether the given `date` is a valid Temporal.PlainDate. */
|
|
45
|
+
isValid(date: Temporal.PlainDate | null | undefined): date is Temporal.PlainDate;
|
|
46
|
+
/** Creates a new date by cloning the given one. */
|
|
47
|
+
clone(date: Temporal.PlainDate): Temporal.PlainDate;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new date adding the number of provided `years` to the provided `date`.
|
|
50
|
+
* @param date The starting date.
|
|
51
|
+
* @param years The number of years to add.
|
|
52
|
+
*/
|
|
53
|
+
addCalendarYears(date: Temporal.PlainDate, years: number): Temporal.PlainDate;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new date adding the number of provided `months` to the provided `date`.
|
|
56
|
+
* If the calculated month has fewer days than the original one, the date is set to the last day of the month.
|
|
57
|
+
* E.g., with `date` = new Temporal.PlainDate(2022, 0, 31) and `months` = 1, it returns new Temporal.PlainDate(2022, 1, 28).
|
|
58
|
+
*/
|
|
59
|
+
addCalendarMonths(date: Temporal.PlainDate, months: number): Temporal.PlainDate;
|
|
60
|
+
/** Creates a new date by adding the number of provided `days` to the provided `date`. */
|
|
61
|
+
addCalendarDays(date: Temporal.PlainDate, days: number): Temporal.PlainDate;
|
|
62
|
+
/** Creates a Temporal.PlainDate from a valid input (Temporal.PlainDate or ISO string). */
|
|
63
|
+
deserialize(date: Temporal.PlainDate | string | null | undefined): Temporal.PlainDate | null;
|
|
64
|
+
invalid(): Temporal.PlainDate;
|
|
65
|
+
toIso8601(date: Temporal.PlainDate): string;
|
|
66
|
+
/**
|
|
67
|
+
* Creates an array with the given length and fills it by mapping with the provided function.
|
|
68
|
+
* @param length The length of the array to be created.
|
|
69
|
+
* @param valueFunction The function of array's index used to fill the array.
|
|
70
|
+
*/
|
|
71
|
+
private _range;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=temporal-date-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-date-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/datetime/temporal-date-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,qBAAa,mBAAoB,SAAQ,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC;IACtE;;;;;OAKG;gBACgB,gBAAgB,CAAC,EAAE,MAAM;IAS5C,uCAAuC;IAChC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,MAAM;IAIhD,wCAAwC;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,MAAM;IAIjD,sCAAsC;IAC/B,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,MAAM;IAIhD,kDAAkD;IAC3C,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,MAAM;IAMrD,yCAAyC;IAClC,0BAA0B,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,MAAM,GAAG,MAAM;IAS5E;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAOlE,iGAAiG;IAC1F,YAAY,IAAI,MAAM,EAAE;IAO/B;;;;OAIG;IACI,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAOtE,+EAA+E;IACxE,iBAAiB,IAAI,MAAM;IAIlC,6EAA6E;I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+
import { DateAdapter } from "./date-adapter.js";
|
|
3
|
+
const ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
4
|
+
class TemporalDateAdapter extends DateAdapter {
|
|
5
|
+
/**
|
|
6
|
+
* @param cutoffYearOffset The threshold on whether a two-digit year
|
|
7
|
+
* should be treated as belonging to 2000 or 1900. e.g. with 15 (default)
|
|
8
|
+
* the current year plus 15 will be treated as belonging to 2000, and the rest to 1900.
|
|
9
|
+
* So e.g. with the current year 2025, 40 will be treated as 2040, while 41 will be treated as 1941.
|
|
10
|
+
*/
|
|
11
|
+
constructor(cutoffYearOffset) {
|
|
12
|
+
super(cutoffYearOffset);
|
|
13
|
+
if (typeof Temporal !== "object") {
|
|
14
|
+
throw new Error("Temporal is not available in the current environment. Please make sure to include the temporal polyfill.");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** Gets the year of the input date. */
|
|
18
|
+
getYear(date) {
|
|
19
|
+
return date.year;
|
|
20
|
+
}
|
|
21
|
+
/** Gets the month of the input date. */
|
|
22
|
+
getMonth(date) {
|
|
23
|
+
return date.month;
|
|
24
|
+
}
|
|
25
|
+
/** Gets the day of the input date. */
|
|
26
|
+
getDate(date) {
|
|
27
|
+
return date.day;
|
|
28
|
+
}
|
|
29
|
+
/** Gets the day of the week of the input date. */
|
|
30
|
+
getDayOfWeek(date) {
|
|
31
|
+
return date.dayOfWeek % 7;
|
|
32
|
+
}
|
|
33
|
+
/** Gets the date in the local format. */
|
|
34
|
+
getAccessibilityFormatDate(date) {
|
|
35
|
+
const options = {
|
|
36
|
+
year: "numeric",
|
|
37
|
+
month: "long",
|
|
38
|
+
day: "numeric"
|
|
39
|
+
};
|
|
40
|
+
return this.deserialize(date).toLocaleString(SbbLanguageController.current, options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Creates an array of strings with length = 12, filled with the name of the months starting from January, in the document language.
|
|
44
|
+
* @param style See `month` in `DateTimeFormatOptions`: `long` for full name, `short` for short name, `narrow` for single letter,
|
|
45
|
+
* E.g., with January in en-gb: `long` returns "January", `short` returns "Jan", `narrow` returns "J".
|
|
46
|
+
*/
|
|
47
|
+
getMonthNames(style) {
|
|
48
|
+
const formatter = new Intl.DateTimeFormat(SbbLanguageController.current, { month: style });
|
|
49
|
+
return this._range(12, (i) => formatter.format(Temporal.PlainDate.from({ year: 2017, month: i + 1, day: 1 })));
|
|
50
|
+
}
|
|
51
|
+
/** Creates a string array with length = 31, filled with the days in a month, starting from 1. */
|
|
52
|
+
getDateNames() {
|
|
53
|
+
const formatter = new Intl.DateTimeFormat(SbbLanguageController.current, { day: "numeric" });
|
|
54
|
+
return this._range(31, (i) => formatter.format(Temporal.PlainDate.from({ year: 2017, month: 1, day: i + 1 })));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Creates a string array with length = 7, filled with the name of the days in a week starting from Sunday, in the document language.
|
|
58
|
+
* @param style See `weekday` in `DateTimeFormatOptions` - 'long' for full name, 'short' for short name, 'narrow' for single letter;
|
|
59
|
+
* E.g., with Monday in en-gb: `long` returns "Monday", `short` returns "Mon", `narrow` returns "M".
|
|
60
|
+
*/
|
|
61
|
+
getDayOfWeekNames(style) {
|
|
62
|
+
const formatter = new Intl.DateTimeFormat(SbbLanguageController.current, { weekday: style });
|
|
63
|
+
return this._range(7, (i) => formatter.format(Temporal.PlainDate.from({ year: 2017, month: 1, day: i + 1 })));
|
|
64
|
+
}
|
|
65
|
+
/** Defines which is the first day of the week (0: sunday; 1: monday; etc.). */
|
|
66
|
+
getFirstDayOfWeek() {
|
|
67
|
+
return 1;
|
|
68
|
+
}
|
|
69
|
+
/** Calculates the number of days in a month given the year and the month. */
|
|
70
|
+
getNumDaysInMonth(date) {
|
|
71
|
+
return date.daysInMonth;
|
|
72
|
+
}
|
|
73
|
+
/** Creates today's date. */
|
|
74
|
+
today() {
|
|
75
|
+
return Temporal.Now.plainDateISO();
|
|
76
|
+
}
|
|
77
|
+
/** Creates a new date, given day, month and year; the method doesn't allow date's overflow. */
|
|
78
|
+
createDate(year, month, day) {
|
|
79
|
+
if (month < 1 || month > 12) {
|
|
80
|
+
throw Error(`Invalid month "${month}". Month has to be between 1 and 12.`);
|
|
81
|
+
} else if (day < 1) {
|
|
82
|
+
throw Error(`Invalid day "${day}". Day has to be greater than 0.`);
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
return Temporal.PlainDate.from({ year, month, day }, { overflow: "reject" });
|
|
86
|
+
} catch {
|
|
87
|
+
throw Error(`Invalid date "${day}" for month with index "${month}".`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Checks whether the given `obj` is a Temporal.PlainDate. */
|
|
91
|
+
isDateInstance(obj) {
|
|
92
|
+
return obj instanceof Temporal.PlainDate;
|
|
93
|
+
}
|
|
94
|
+
/** Checks whether the given `date` is a valid Temporal.PlainDate. */
|
|
95
|
+
isValid(date) {
|
|
96
|
+
return this.isDateInstance(date);
|
|
97
|
+
}
|
|
98
|
+
/** Creates a new date by cloning the given one. */
|
|
99
|
+
clone(date) {
|
|
100
|
+
return Temporal.PlainDate.from(date);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Creates a new date adding the number of provided `years` to the provided `date`.
|
|
104
|
+
* @param date The starting date.
|
|
105
|
+
* @param years The number of years to add.
|
|
106
|
+
*/
|
|
107
|
+
addCalendarYears(date, years) {
|
|
108
|
+
return date.add({ years });
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a new date adding the number of provided `months` to the provided `date`.
|
|
112
|
+
* If the calculated month has fewer days than the original one, the date is set to the last day of the month.
|
|
113
|
+
* E.g., with `date` = new Temporal.PlainDate(2022, 0, 31) and `months` = 1, it returns new Temporal.PlainDate(2022, 1, 28).
|
|
114
|
+
*/
|
|
115
|
+
addCalendarMonths(date, months) {
|
|
116
|
+
return date.add({ months });
|
|
117
|
+
}
|
|
118
|
+
/** Creates a new date by adding the number of provided `days` to the provided `date`. */
|
|
119
|
+
addCalendarDays(date, days) {
|
|
120
|
+
return date.add({ days });
|
|
121
|
+
}
|
|
122
|
+
/** Creates a Temporal.PlainDate from a valid input (Temporal.PlainDate or ISO string). */
|
|
123
|
+
deserialize(date) {
|
|
124
|
+
if (typeof date === "string") {
|
|
125
|
+
if (!date) {
|
|
126
|
+
return null;
|
|
127
|
+
} else if (ISO_8601_REGEX.test(date)) {
|
|
128
|
+
return this.getValidDateOrNull(Temporal.PlainDate.from(date.split("T")[0]));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return super.deserialize(date);
|
|
132
|
+
}
|
|
133
|
+
invalid() {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
toIso8601(date) {
|
|
137
|
+
return date.toJSON();
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Creates an array with the given length and fills it by mapping with the provided function.
|
|
141
|
+
* @param length The length of the array to be created.
|
|
142
|
+
* @param valueFunction The function of array's index used to fill the array.
|
|
143
|
+
*/
|
|
144
|
+
_range(length, valueFunction) {
|
|
145
|
+
return Array.from({ length }).map((_, i) => valueFunction(i));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export {
|
|
149
|
+
TemporalDateAdapter
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcG9yYWwtZGF0ZS1hZGFwdGVyLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZWxlbWVudHMvY29yZS9kYXRldGltZS90ZW1wb3JhbC1kYXRlLWFkYXB0ZXIudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgdHlwZXM9XCJ0ZW1wb3JhbC1wb2x5ZmlsbC9nbG9iYWxcIiAvPlxuXG5pbXBvcnQge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BSyxLQUFLLE1BQU0sR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQUEsTUFDNUU7QUFBQSxJQUNGO0FBQ0EsV0FBTyxNQUFNLFlBQVksSUFBSTtBQUFBLEVBQy9CO0FBQUEsRUFFZ0IsVUFBTztBQUVyQixXQUFPO0FBQUEsRUFDVDtBQUFBLEVBRWdCLFVBQVUsTUFBd0I7QUFDaEQsV0FBTyxLQUFLLE9BQUE7QUFBQSxFQUNkO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBT1EsT0FBVSxRQUFnQixlQUFtQztBQUNuRSxXQUFPLE1BQU0sS0FBSyxFQUFFLFFBQVEsRUFBRSxJQUFJLENBQUMsR0FBRyxNQUFNLGNBQWMsQ0FBQyxDQUFDO0FBQUEsRUFDOUQ7QUFDRDsifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DAYS_PER_ROW, DateAdapter, FORMAT_DATE, ISO8601_FORMAT_DATE, MONTHS_PER_PAGE, MONTHS_PER_ROW, YEARS_PER_PAGE, YEARS_PER_ROW } from "./datetime/date-adapter.js";
|
|
2
|
+
import { NativeDateAdapter, defaultDateAdapter } from "./datetime/native-date-adapter.js";
|
|
3
|
+
import { TemporalDateAdapter } from "./datetime/temporal-date-adapter.js";
|
|
4
|
+
export {
|
|
5
|
+
DAYS_PER_ROW,
|
|
6
|
+
DateAdapter,
|
|
7
|
+
FORMAT_DATE,
|
|
8
|
+
ISO8601_FORMAT_DATE,
|
|
9
|
+
MONTHS_PER_PAGE,
|
|
10
|
+
MONTHS_PER_ROW,
|
|
11
|
+
NativeDateAdapter,
|
|
12
|
+
TemporalDateAdapter,
|
|
13
|
+
YEARS_PER_PAGE,
|
|
14
|
+
YEARS_PER_ROW,
|
|
15
|
+
defaultDateAdapter
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXRpbWUuanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7In0=
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactiveElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Generates a public interface type that removes private and protected fields.
|
|
4
|
+
* This allows accepting otherwise incompatible versions of the type (e.g. from
|
|
5
|
+
* multiple copies of the same package in `node_modules`).
|
|
6
|
+
*/
|
|
7
|
+
export type Interface<T> = {
|
|
8
|
+
[K in keyof T]: T[K];
|
|
9
|
+
};
|
|
10
|
+
export type PropertyDecorator = {
|
|
11
|
+
<C extends Interface<ReactiveElement>, V>(target: ClassAccessorDecoratorTarget<C, V>, context: ClassAccessorDecoratorContext<C, V>): ClassAccessorDecoratorResult<C, V>;
|
|
12
|
+
<C extends Interface<ReactiveElement>, V>(target: (value: V) => void, context: ClassSetterDecoratorContext<C, V>): (this: C, value: V) => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/decorators/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAI3C;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AAKF,MAAM,MAAM,iBAAiB,GAAG;IAE9B,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAGtC,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC1B,OAAO,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,GACzC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAChC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactiveElement } from 'lit';
|
|
2
|
+
import { Interface, PropertyDecorator } from './base.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Decorator that forces the value of a property or getter/setter
|
|
5
|
+
* to the defined type.
|
|
6
|
+
*/
|
|
7
|
+
export declare const forceType: <C extends Interface<ReactiveElement>, V>(convert?: (v: unknown) => V) => PropertyDecorator;
|
|
8
|
+
//# sourceMappingURL=force-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"force-type.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/decorators/force-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EAC/D,UAAU,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,KAC1B,iBAwCF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const forceType = (convert) => {
|
|
2
|
+
return (target, context) => {
|
|
3
|
+
const { kind, metadata, name } = context;
|
|
4
|
+
const type = globalThis.litPropertyMetadata.get(metadata)?.get(name)?.type ?? String;
|
|
5
|
+
convert ??= type;
|
|
6
|
+
if (convert === String) {
|
|
7
|
+
convert = (v) => v == null ? "" : String(v);
|
|
8
|
+
} else if (convert === Number) {
|
|
9
|
+
convert = (v) => v == null ? NaN : Number(v);
|
|
10
|
+
}
|
|
11
|
+
if (kind === "accessor") {
|
|
12
|
+
return {
|
|
13
|
+
set(value) {
|
|
14
|
+
target.set.call(this, convert(value));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
} else if (kind === "setter") {
|
|
18
|
+
return function(value) {
|
|
19
|
+
target.call(this, convert(value));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
throw new Error(`Unsupported decorator location: ${kind}`);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
forceType
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9yY2UtdHlwZS5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2VsZW1lbnRzL2NvcmUvZGVjb3JhdG9ycy9mb3JjZS10eXBlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUmVhY3RpdmVFbGVtZW50IH0gZnJvbSAnbGl0JztcblxuaW1wb3J0IHR5cGUgeyBJbnRlcmZhY2UsIFByb3BlcnR5RGVjb3JhdG9yIH0gZnJvbSAnLi9iYXNlLnRzJztcblxuLyoqXG4gKiBEZWNvcmF0b3IgdGhhdCBmb3JjZXMgdGhlIHZhbHVlIG9mIGEgcHJvcGVydHkgb3IgZ2V0dGVyL3NldHRlclxuICogdG8gdGhlIGRlZmluZWQgdHlwZS5cbiAqL1xuZXhwb3J0IGNvbnN0IGZvcmNlVHlwZSA9IDxDIGV4dGVuZHMgSW50ZXJ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BQ0EsWUFDTztBQUNQLFVBQU0sRUFBRSxNQUFNLFVBQVUsS0FBQSxJQUFTO0FBRWpDLFVBQU0sT0FBUSxXQUFXLG9CQUFvQixJQUFJLFFBQVEsR0FBRyxJQUFJLElBQUksR0FBRyxRQUFRO0FBSS9FLGdCQUFZO0FBRVosUUFBSyxZQUF3QixRQUFRO0FBSW5DLGdCQUFVLENBQUMsTUFBTyxLQUFLLE9BQU8sS0FBSyxPQUFPLENBQUM7QUFBQSxJQUM3QyxXQUFZLFlBQXdCLFFBQVE7QUFHMUMsZ0JBQVUsQ0FBQyxNQUFPLEtBQUssT0FBTyxNQUFNLE9BQU8sQ0FBQztBQUFBLElBQzlDO0FBQ0EsUUFBSSxTQUFTLFlBQVk7QUFDdkIsYUFBTztBQUFBLFFBQ0wsSUFBYSxPQUFLO0FBQ2YsaUJBQThDLElBQUksS0FDakQsTUFDQSxRQUFTLEtBQUssQ0FBTTtBQUFBLFFBRXhCO0FBQUEsTUFBQTtBQUFBLElBRUosV0FBVyxTQUFTLFVBQVU7QUFDNUIsYUFBTyxTQUFVLE9BQWM7QUFDNUIsZUFBb0MsS0FBSyxNQUFNLFFBQVMsS0FBSyxDQUFDO0FBQUEsTUFDakU7QUFBQSxJQUNGO0FBRUEsVUFBTSxJQUFJLE1BQU0sbUNBQW1DLElBQUksRUFBRTtBQUFBLEVBQzNEO0FBQ0Y7In0=
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactiveElement } from 'lit';
|
|
2
|
+
import { Interface } from './base.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Decorator that overrides the underlying getter of the accessor.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getOverride: <C extends Interface<ReactiveElement>, V>(callback: (instance: C, innerValue: V) => V) => (target: ClassAccessorDecoratorTarget<C, V>, context: ClassAccessorDecoratorContext<C, V>) => any;
|
|
7
|
+
//# sourceMappingURL=get-override.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-override.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/decorators/get-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACjE,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,MAGzC,QAAQ,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,SAAS,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAC3C,GAeJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const getOverride = (callback) => {
|
|
2
|
+
return (target, context) => {
|
|
3
|
+
const { kind } = context;
|
|
4
|
+
if (kind === "accessor") {
|
|
5
|
+
return {
|
|
6
|
+
get() {
|
|
7
|
+
const innerValue = target.get.call(this);
|
|
8
|
+
return callback(this, innerValue);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
throw new Error(`Unsupported decorator location: ${kind}`);
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
getOverride
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LW92ZXJyaWRlLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZWxlbWVudHMvY29yZS9kZWNvcmF0b3JzL2dldC1vdmVycmlkZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFJlYWN0aXZlRWxlbWVudCB9IGZyb20gJ2xpdCc7XG5cbmltcG9ydCB0eXBlIHsgSW50ZXJmYWNlIH0gZnJvbSAnLi9iYX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N6QixhQUNFO0FBQ0YsU0FBTyxDQUNMLFFBQ0EsWUFDTztBQUNQLFVBQU0sRUFBRSxTQUFTO0FBQ2pCLFFBQUksU0FBUyxZQUFZO0FBQ3ZCLGFBQU87QUFBQSxRQUNMLE1BQUc7QUFDRCxnQkFBTSxhQUFjLE9BQThDLElBQUksS0FDcEUsSUFBb0I7QUFFdEIsaUJBQU8sU0FBUyxNQUFNLFVBQVU7QUFBQSxRQUNsQztBQUFBLE1BQUE7QUFBQSxJQUVKO0FBRUEsVUFBTSxJQUFJLE1BQU0sbUNBQW1DLElBQUksRUFBRTtBQUFBLEVBQzNEO0FBQ0Y7In0=
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactiveElement } from 'lit';
|
|
2
|
+
import { Interface } from './base.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Decorator that calls the given callback when the value
|
|
5
|
+
* of the associated property is changed.
|
|
6
|
+
*/
|
|
7
|
+
export declare const handleDistinctChange: <C extends Interface<ReactiveElement>, V>(callback: (instance: C, newValue: V, oldValue: V | undefined) => void) => (target: ClassAccessorDecoratorTarget<C, V>, context: ClassAccessorDecoratorContext<C, V>) => any;
|
|
8
|
+
//# sourceMappingURL=handle-distinct-change.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-distinct-change.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/decorators/handle-distinct-change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EAC1E,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,KAAK,IAAI,MAGnE,QAAQ,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,SAAS,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAC3C,GAiBJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const handleDistinctChange = (callback) => {
|
|
2
|
+
return (target, context) => {
|
|
3
|
+
const { kind } = context;
|
|
4
|
+
if (kind === "accessor") {
|
|
5
|
+
return {
|
|
6
|
+
set(value) {
|
|
7
|
+
const oldValue = context.access.get(this);
|
|
8
|
+
target.set.call(this, value);
|
|
9
|
+
const newValue = context.access.get(this);
|
|
10
|
+
if (newValue !== oldValue) {
|
|
11
|
+
callback(this, newValue, oldValue);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
throw new Error(`Unsupported decorator location: ${kind}`);
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
handleDistinctChange
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFuZGxlLWRpc3RpbmN0LWNoYW5nZS5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2VsZW1lbnRzL2NvcmUvZGVjb3JhdG9ycy9oYW5kbGUtZGlzdGluY3QtY2hhbmdlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUmVhY3RpdmVFbGVtZW50IH0gZnJvbSAnbGl0JztcblxuaW1wb3J0IHR5cGUgeyBJbnRlcmZhY2UgfSBmcm9tICcuL2Jhc2UudHMnO1xuXG4vKipcbiAqIERlY29yYXRvciB0aGF0IGNhbGxzIHRoZSBnaXZlbiBjYWxsYmFjayB3aGVuIHRoZSB2YWx1ZVxuICogb2YgdGhlIGFzc29jaWF0ZWQgcHJvcGVydHkgaXMgY2hhbmdlZC5cbiAqL1xuZXhwb3J0IGNvbnN0IGhhbmRs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