@sbb-esta/lyne-elements 1.15.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/accordion/accordion.d.ts +4 -1
- package/accordion/accordion.d.ts.map +1 -1
- package/accordion.js +31 -22
- package/action-group/action-group.d.ts +6 -4
- package/action-group/action-group.d.ts.map +1 -1
- package/action-group.js +20 -17
- package/alert/alert/alert.d.ts +7 -23
- package/alert/alert/alert.d.ts.map +1 -1
- package/alert/alert-group/alert-group.d.ts +0 -4
- package/alert/alert-group/alert-group.d.ts.map +1 -1
- package/alert/alert-group.js +46 -47
- package/alert/alert.js +74 -132
- package/animation.css +4 -8
- package/autocomplete/autocomplete-base-element.d.ts +7 -6
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete.d.ts +0 -1
- package/autocomplete/autocomplete.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +11 -11
- package/autocomplete-grid/autocomplete-grid.js +0 -3
- package/autocomplete.js +68 -67
- package/button/accent-button/accent-button.d.ts +19 -0
- package/button/accent-button/accent-button.d.ts.map +1 -0
- package/button/accent-button-link/accent-button-link.d.ts +19 -0
- package/button/accent-button-link/accent-button-link.d.ts.map +1 -0
- package/button/accent-button-link.d.ts +2 -0
- package/button/accent-button-link.d.ts.map +1 -0
- package/button/accent-button-link.js +17 -0
- package/button/accent-button-static/accent-button-static.d.ts +19 -0
- package/button/accent-button-static/accent-button-static.d.ts.map +1 -0
- package/button/accent-button-static.d.ts +2 -0
- package/button/accent-button-static.d.ts.map +1 -0
- package/button/accent-button-static.js +17 -0
- package/button/accent-button.d.ts +2 -0
- package/button/accent-button.d.ts.map +1 -0
- package/button/accent-button.js +17 -0
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common.d.ts.map +1 -1
- package/button/common.js +20 -16
- package/button/mini-button/mini-button.d.ts +4 -3
- package/button/mini-button/mini-button.d.ts.map +1 -1
- package/button/mini-button-group/mini-button-group.d.ts +4 -1
- package/button/mini-button-group/mini-button-group.d.ts.map +1 -1
- package/button/mini-button-group.js +12 -8
- package/button/mini-button.d.ts +0 -1
- package/button/mini-button.d.ts.map +1 -1
- package/button/mini-button.js +10 -20
- package/button.d.ts +3 -3
- package/button.d.ts.map +1 -1
- package/button.js +3 -3
- package/calendar.js +25 -25
- package/card/card/card.d.ts +4 -1
- package/card/card/card.d.ts.map +1 -1
- package/card/card.js +10 -6
- package/checkbox/checkbox/checkbox.d.ts +4 -6
- package/checkbox/checkbox/checkbox.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.d.ts +4 -1
- package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/checkbox/checkbox-group.js +14 -10
- package/checkbox/checkbox-panel/checkbox-panel.d.ts +4 -4
- package/checkbox/checkbox-panel/checkbox-panel.d.ts.map +1 -1
- package/checkbox/checkbox-panel.js +21 -18
- package/checkbox/checkbox.js +28 -26
- package/{chip/chip.d.ts → chip-label/chip-label.d.ts} +4 -4
- package/chip-label/chip-label.d.ts.map +1 -0
- package/chip-label.d.ts +2 -0
- package/chip-label.d.ts.map +1 -0
- package/chip-label.js +54 -0
- package/clock.js +1 -1
- package/container/container.js +21 -21
- package/container/sticky-bar/sticky-bar.d.ts +1 -0
- package/container/sticky-bar/sticky-bar.d.ts.map +1 -1
- package/container/sticky-bar.js +20 -12
- package/core/base-elements/button-base-element.d.ts +27 -18
- package/core/base-elements/button-base-element.d.ts.map +1 -1
- package/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/core/base-elements.js +135 -138
- package/core/datetime/date-adapter.d.ts +2 -1
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.d.ts +1 -1
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime.js +29 -28
- package/core/dom/animation.d.ts +2 -0
- package/core/dom/animation.d.ts.map +1 -0
- package/core/dom/lean-context.d.ts +5 -0
- package/core/dom/lean-context.d.ts.map +1 -0
- package/core/dom.d.ts +2 -2
- package/core/dom.d.ts.map +1 -1
- package/core/dom.js +50 -55
- package/core/eventing/form-element-handlers.d.ts +0 -7
- package/core/eventing/form-element-handlers.d.ts.map +1 -1
- package/core/eventing.d.ts +0 -1
- package/core/eventing.d.ts.map +1 -1
- package/core/eventing.js +28 -49
- package/core/i18n/i18n.d.ts +4 -2
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n.js +147 -140
- package/core/mixins/disabled-mixin.d.ts +2 -7
- package/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-mixin.d.ts +1 -1
- package/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-radio-button-mixin.d.ts +35 -0
- package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -0
- package/core/mixins.d.ts +1 -0
- package/core/mixins.d.ts.map +1 -1
- package/core/mixins.js +347 -220
- package/core/styles/_index.scss +1 -0
- package/core/styles/core.scss +148 -0
- package/core/styles/image.scss +66 -0
- package/core/styles/mixins/animation.scss +2 -4
- package/core/styles/mixins/buttons.scss +7 -4
- package/core/styles/mixins/card.scss +1 -1
- package/core/styles/mixins/chip.scss +35 -35
- package/core/styles/mixins/image.scss +34 -0
- package/core/styles/mixins/overlay.scss +1 -1
- package/core/styles/mixins/panel.scss +1 -1
- package/core/styles/scrollbar.scss +44 -0
- package/core/styles/standard-theme.scss +2 -0
- package/core/styles/table.scss +4 -0
- package/core/testing/event-spy.d.ts +2 -1
- package/core/testing/event-spy.d.ts.map +1 -1
- package/core/testing.d.ts +0 -1
- package/core/testing.d.ts.map +1 -1
- package/core/testing.js +48 -57
- package/core.css +112 -0
- package/custom-elements.json +25961 -21672
- package/datepicker/common/datepicker-button.d.ts +3 -5
- package/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/datepicker/common.js +30 -29
- package/datepicker/datepicker/datepicker.d.ts +25 -72
- package/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/datepicker/datepicker-next-day/datepicker-next-day.d.ts +1 -3
- package/datepicker/datepicker-next-day/datepicker-next-day.d.ts.map +1 -1
- package/datepicker/datepicker-next-day.js +10 -12
- package/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts +1 -3
- package/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts.map +1 -1
- package/datepicker/datepicker-previous-day.js +11 -13
- package/datepicker/datepicker.js +129 -157
- package/development/accordion/accordion.d.ts +4 -1
- package/development/accordion/accordion.d.ts.map +1 -1
- package/development/accordion.js +16 -5
- package/development/action-group/action-group.d.ts +6 -4
- package/development/action-group/action-group.d.ts.map +1 -1
- package/development/action-group.js +10 -7
- package/development/alert/alert/alert.d.ts +7 -23
- package/development/alert/alert/alert.d.ts.map +1 -1
- package/development/alert/alert-group/alert-group.d.ts +0 -4
- package/development/alert/alert-group/alert-group.d.ts.map +1 -1
- package/development/alert/alert-group.js +10 -12
- package/development/alert/alert.js +38 -122
- package/development/autocomplete/autocomplete-base-element.d.ts +7 -6
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.d.ts +0 -1
- package/development/autocomplete/autocomplete.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +6 -6
- package/development/autocomplete-grid/autocomplete-grid.js +1 -7
- package/development/autocomplete.js +23 -19
- package/development/button/accent-button/accent-button.d.ts +19 -0
- package/development/button/accent-button/accent-button.d.ts.map +1 -0
- package/development/button/accent-button-link/accent-button-link.d.ts +19 -0
- package/development/button/accent-button-link/accent-button-link.d.ts.map +1 -0
- package/development/button/accent-button-link.d.ts +2 -0
- package/development/button/accent-button-link.d.ts.map +1 -0
- package/development/button/accent-button-link.js +25 -0
- package/development/button/accent-button-static/accent-button-static.d.ts +19 -0
- package/development/button/accent-button-static/accent-button-static.d.ts.map +1 -0
- package/development/button/accent-button-static.d.ts +2 -0
- package/development/button/accent-button-static.d.ts.map +1 -0
- package/development/button/accent-button-static.js +25 -0
- package/development/button/accent-button.d.ts +2 -0
- package/development/button/accent-button.d.ts.map +1 -0
- package/development/button/accent-button.js +25 -0
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common.d.ts.map +1 -1
- package/development/button/common.js +20 -16
- package/development/button/mini-button/mini-button.d.ts +4 -3
- package/development/button/mini-button/mini-button.d.ts.map +1 -1
- package/development/button/mini-button-group/mini-button-group.d.ts +4 -1
- package/development/button/mini-button-group/mini-button-group.d.ts.map +1 -1
- package/development/button/mini-button-group.js +7 -3
- package/development/button/mini-button.d.ts +0 -1
- package/development/button/mini-button.d.ts.map +1 -1
- package/development/button/mini-button.js +14 -32
- package/development/button.d.ts +3 -3
- package/development/button.d.ts.map +1 -1
- package/development/button.js +3 -3
- package/development/calendar.js +1 -1
- package/development/card/card/card.d.ts +4 -1
- package/development/card/card/card.d.ts.map +1 -1
- package/development/card/card.js +8 -4
- package/development/checkbox/checkbox/checkbox.d.ts +4 -6
- package/development/checkbox/checkbox/checkbox.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.d.ts +4 -1
- package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/development/checkbox/checkbox-group.js +7 -3
- package/development/checkbox/checkbox-panel/checkbox-panel.d.ts +4 -4
- package/development/checkbox/checkbox-panel/checkbox-panel.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel.js +7 -4
- package/development/checkbox/checkbox.js +8 -6
- package/development/{chip/chip.d.ts → chip-label/chip-label.d.ts} +4 -4
- package/development/chip-label/chip-label.d.ts.map +1 -0
- package/development/chip-label.d.ts +2 -0
- package/development/chip-label.d.ts.map +1 -0
- package/development/{chip.js → chip-label.js} +26 -26
- package/development/clock.js +1 -1
- package/development/container/container.js +8 -12
- package/development/container/sticky-bar/sticky-bar.d.ts +1 -0
- package/development/container/sticky-bar/sticky-bar.d.ts.map +1 -1
- package/development/container/sticky-bar.js +18 -10
- package/development/core/base-elements/button-base-element.d.ts +27 -18
- package/development/core/base-elements/button-base-element.d.ts.map +1 -1
- package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/development/core/base-elements.js +66 -74
- package/development/core/datetime/date-adapter.d.ts +2 -1
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.d.ts +1 -1
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime.js +4 -3
- package/development/core/dom/animation.d.ts +2 -0
- package/development/core/dom/animation.d.ts.map +1 -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.d.ts +2 -2
- package/development/core/dom.d.ts.map +1 -1
- package/development/core/dom.js +13 -21
- package/development/core/eventing/form-element-handlers.d.ts +0 -7
- package/development/core/eventing/form-element-handlers.d.ts.map +1 -1
- package/development/core/eventing.d.ts +0 -1
- package/development/core/eventing.d.ts.map +1 -1
- package/development/core/eventing.js +1 -25
- package/development/core/i18n/i18n.d.ts +4 -2
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n.js +27 -23
- package/development/core/mixins/disabled-mixin.d.ts +2 -7
- package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-mixin.d.ts +1 -1
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts +35 -0
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -0
- package/development/core/mixins.d.ts +1 -0
- package/development/core/mixins.d.ts.map +1 -1
- package/development/core/mixins.js +221 -30
- package/development/core/testing/event-spy.d.ts +2 -1
- package/development/core/testing/event-spy.d.ts.map +1 -1
- package/development/core/testing.d.ts +0 -1
- package/development/core/testing.d.ts.map +1 -1
- package/development/core/testing.js +4 -15
- package/development/datepicker/common/datepicker-button.d.ts +3 -5
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common.js +13 -12
- package/development/datepicker/datepicker/datepicker.d.ts +25 -72
- package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.d.ts +1 -3
- package/development/datepicker/datepicker-next-day/datepicker-next-day.d.ts.map +1 -1
- package/development/datepicker/datepicker-next-day.js +9 -15
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts +1 -3
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts.map +1 -1
- package/development/datepicker/datepicker-previous-day.js +9 -15
- package/development/datepicker/datepicker.js +74 -115
- package/development/dialog/dialog/dialog.d.ts +3 -0
- package/development/dialog/dialog/dialog.d.ts.map +1 -1
- package/development/dialog/dialog-title.js +2 -1
- package/development/dialog/dialog.js +46 -39
- package/development/expansion-panel/expansion-panel/expansion-panel.d.ts +7 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-header.js +3 -3
- package/development/expansion-panel/expansion-panel.js +32 -17
- package/development/file-selector/common/file-selector-common.d.ts +23 -0
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -0
- package/development/file-selector/common.d.ts +2 -0
- package/development/file-selector/common.d.ts.map +1 -0
- package/development/file-selector/common.js +382 -0
- package/development/file-selector/file-selector/file-selector.d.ts +24 -0
- package/development/file-selector/file-selector/file-selector.d.ts.map +1 -0
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts +33 -0
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts.map +1 -0
- package/development/file-selector/file-selector-dropzone.d.ts +2 -0
- package/development/file-selector/file-selector-dropzone.d.ts.map +1 -0
- package/development/file-selector/file-selector-dropzone.js +181 -0
- package/development/file-selector/file-selector.d.ts +1 -87
- package/development/file-selector/file-selector.d.ts.map +1 -1
- package/development/file-selector/file-selector.js +52 -0
- package/development/file-selector.d.ts +2 -0
- package/development/file-selector.d.ts.map +1 -1
- package/development/file-selector.js +4 -552
- package/development/flip-card/flip-card-details.js +1 -1
- package/development/flip-card/flip-card-summary.js +3 -11
- package/development/flip-card/flip-card.js +6 -6
- package/development/form-field/form-field/form-field.d.ts +7 -10
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field-clear.js +6 -6
- package/development/form-field/form-field.js +74 -42
- package/development/header/common.js +2 -2
- package/development/header/header/header.d.ts +5 -3
- package/development/header/header/header.d.ts.map +1 -1
- package/development/header/header.js +15 -20
- package/development/image/image.d.ts +0 -30
- package/development/image/image.d.ts.map +1 -1
- package/development/image.js +62 -273
- package/development/journey-header/journey-header.d.ts +4 -1
- package/development/journey-header/journey-header.d.ts.map +1 -1
- package/development/journey-header.js +7 -3
- package/development/lead-container.js +2 -10
- package/development/link/common/link-common.d.ts.map +1 -1
- package/development/link/common.js +9 -8
- package/development/link-list/common/link-list-base.d.ts +1 -0
- package/development/link-list/common/link-list-base.d.ts.map +1 -1
- package/development/link-list/common.js +4 -2
- package/development/link-list/link-list-anchor.js +4 -4
- package/development/loading-indicator/loading-indicator.d.ts +1 -3
- package/development/loading-indicator/loading-indicator.d.ts.map +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.d.ts +16 -0
- package/development/loading-indicator-circle/loading-indicator-circle.d.ts.map +1 -0
- package/development/loading-indicator-circle.d.ts +2 -0
- package/development/loading-indicator-circle.d.ts.map +1 -0
- package/development/loading-indicator-circle.js +146 -0
- package/development/loading-indicator.js +81 -182
- package/development/map-container/map-container.d.ts.map +1 -1
- package/development/map-container.js +5 -5
- package/development/menu/common.js +5 -5
- package/development/menu/menu/menu.d.ts +3 -0
- package/development/menu/menu/menu.d.ts.map +1 -1
- package/development/menu/menu.js +39 -24
- package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/development/navigation/common.js +9 -5
- package/development/navigation/navigation/navigation.d.ts +3 -0
- package/development/navigation/navigation/navigation.d.ts.map +1 -1
- package/development/navigation/navigation-list/navigation-list.d.ts.map +1 -1
- package/development/navigation/navigation-list.js +3 -2
- package/development/navigation/navigation-marker/navigation-marker.d.ts +2 -1
- package/development/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
- package/development/navigation/navigation-marker.js +6 -4
- package/development/navigation/navigation-section/navigation-section.d.ts +3 -0
- package/development/navigation/navigation-section/navigation-section.d.ts.map +1 -1
- package/development/navigation/navigation-section.js +38 -22
- package/development/navigation/navigation.js +42 -27
- package/development/notification/notification.d.ts +6 -2
- package/development/notification/notification.d.ts.map +1 -1
- package/development/notification.js +27 -21
- package/development/option/option/option-base-element.d.ts +0 -7
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option.js +5 -26
- package/development/overlay/overlay-base-element.d.ts +2 -0
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay.d.ts +3 -0
- package/development/overlay/overlay.d.ts.map +1 -1
- package/development/overlay.js +43 -31
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common.js +7 -3
- package/development/paginator/paginator.js +1 -1
- package/development/popover/popover/popover.d.ts +3 -0
- package/development/popover/popover/popover.d.ts.map +1 -1
- package/development/popover/popover-trigger.js +9 -9
- package/development/popover/popover.js +41 -26
- package/development/radio-button/common/radio-button-common.d.ts +3 -10
- package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/development/radio-button/common.js +44 -121
- package/development/radio-button/radio-button/radio-button.d.ts +9 -1
- package/development/radio-button/radio-button/radio-button.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.d.ts +19 -26
- package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/development/radio-button/radio-button-group.js +87 -123
- package/development/radio-button/radio-button-panel/radio-button-panel.d.ts +20 -2
- package/development/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel.js +35 -15
- package/development/radio-button/radio-button.js +11 -15
- package/development/select/select.d.ts +3 -9
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +27 -25
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts +4 -1
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/development/selection-expansion-panel.js +28 -16
- package/development/skiplink-list/skiplink-list.d.ts.map +1 -1
- package/development/skiplink-list.js +3 -2
- package/development/slider/slider.d.ts +0 -1
- package/development/slider/slider.d.ts.map +1 -1
- package/development/slider.js +2 -2
- package/development/stepper/step-label/step-label.d.ts +0 -2
- package/development/stepper/step-label/step-label.d.ts.map +1 -1
- package/development/stepper/step-label.js +10 -11
- package/development/stepper/step.js +1 -1
- package/development/stepper/stepper/stepper.d.ts +4 -1
- package/development/stepper/stepper/stepper.d.ts.map +1 -1
- package/development/stepper/stepper.js +9 -7
- package/development/tabs/tab-group/tab-group.d.ts +4 -1
- package/development/tabs/tab-group/tab-group.d.ts.map +1 -1
- package/development/tabs/tab-group.js +14 -5
- package/development/tabs/tab-label.js +1 -1
- package/development/tag/tag/tag.d.ts +4 -1
- package/development/tag/tag/tag.d.ts.map +1 -1
- package/development/tag/tag-group/tag-group.d.ts +5 -2
- package/development/tag/tag-group/tag-group.d.ts.map +1 -1
- package/development/tag/tag-group.js +7 -4
- package/development/tag/tag.js +16 -12
- package/development/teaser/teaser.d.ts +2 -2
- package/development/teaser/teaser.d.ts.map +1 -1
- package/development/teaser-hero/teaser-hero.d.ts +2 -6
- package/development/teaser-hero/teaser-hero.d.ts.map +1 -1
- package/development/teaser-hero.js +9 -60
- package/development/teaser-product/common.js +7 -14
- package/development/teaser-product/teaser-product.js +1 -21
- package/development/teaser.js +12 -31
- package/development/time-input/time-input.d.ts +3 -6
- package/development/time-input/time-input.d.ts.map +1 -1
- package/development/time-input.js +33 -27
- package/development/toast/toast.d.ts +3 -0
- package/development/toast/toast.d.ts.map +1 -1
- package/development/toast.js +27 -13
- package/development/toggle/toggle/toggle.d.ts +4 -8
- package/development/toggle/toggle/toggle.d.ts.map +1 -1
- package/development/toggle/toggle.js +9 -12
- package/development/toggle-check/toggle-check.d.ts +4 -6
- package/development/toggle-check/toggle-check.d.ts.map +1 -1
- package/development/toggle-check.js +9 -7
- package/development/train/train/train.d.ts.map +1 -1
- package/development/train/train-blocked-passage.js +2 -2
- package/development/train/train-formation/train-formation.d.ts +3 -11
- package/development/train/train-formation/train-formation.d.ts.map +1 -1
- package/development/train/train-formation.js +43 -74
- package/development/train/train-wagon/train-wagon.d.ts +11 -8
- package/development/train/train-wagon/train-wagon.d.ts.map +1 -1
- package/development/train/train-wagon.js +149 -124
- package/development/train/train.js +35 -112
- package/development/visual-checkbox/visual-checkbox.d.ts +4 -1
- package/development/visual-checkbox/visual-checkbox.d.ts.map +1 -1
- package/development/visual-checkbox.js +7 -3
- package/dialog/dialog/dialog.d.ts +3 -0
- package/dialog/dialog/dialog.d.ts.map +1 -1
- package/dialog/dialog-title.js +9 -9
- package/dialog/dialog.js +56 -51
- package/expansion-panel/expansion-panel/expansion-panel.d.ts +7 -1
- package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-header.js +1 -1
- package/expansion-panel/expansion-panel.js +41 -28
- package/file-selector/common/file-selector-common.d.ts +23 -0
- package/file-selector/common/file-selector-common.d.ts.map +1 -0
- package/file-selector/common.d.ts +2 -0
- package/file-selector/common.d.ts.map +1 -0
- package/file-selector/common.js +210 -0
- package/file-selector/file-selector/file-selector.d.ts +24 -0
- package/file-selector/file-selector/file-selector.d.ts.map +1 -0
- package/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts +33 -0
- package/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts.map +1 -0
- package/file-selector/file-selector-dropzone.d.ts +2 -0
- package/file-selector/file-selector-dropzone.d.ts.map +1 -0
- package/file-selector/file-selector-dropzone.js +97 -0
- package/file-selector/file-selector.d.ts +1 -87
- package/file-selector/file-selector.d.ts.map +1 -1
- package/file-selector/file-selector.js +44 -0
- package/file-selector.d.ts +2 -0
- package/file-selector.d.ts.map +1 -1
- package/file-selector.js +3 -301
- package/flip-card/flip-card-details.js +5 -5
- package/flip-card/flip-card-summary.js +7 -7
- package/flip-card/flip-card.js +9 -9
- package/form-field/form-field/form-field.d.ts +7 -10
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field-clear.js +12 -12
- package/form-field/form-field.js +118 -93
- package/header/common.js +10 -10
- package/header/header/header.d.ts +5 -3
- package/header/header/header.d.ts.map +1 -1
- package/header/header.js +28 -31
- package/image/image.d.ts +0 -30
- package/image/image.d.ts.map +1 -1
- package/image.js +187 -281
- package/index.d.ts +13 -9
- package/index.js +13 -9
- package/journey-header/journey-header.d.ts +4 -1
- package/journey-header/journey-header.d.ts.map +1 -1
- package/journey-header.js +29 -25
- package/lead-container.js +5 -5
- package/link/common/link-common.d.ts.map +1 -1
- package/link/common.js +18 -16
- package/link-list/common/link-list-base.d.ts +1 -0
- package/link-list/common/link-list-base.d.ts.map +1 -1
- package/link-list/common.js +11 -9
- package/link-list/link-list-anchor.js +8 -8
- package/loading-indicator/loading-indicator.d.ts +1 -3
- package/loading-indicator/loading-indicator.d.ts.map +1 -1
- package/loading-indicator-circle/loading-indicator-circle.d.ts +16 -0
- package/loading-indicator-circle/loading-indicator-circle.d.ts.map +1 -0
- package/loading-indicator-circle.d.ts +2 -0
- package/loading-indicator-circle.d.ts.map +1 -0
- package/loading-indicator-circle.js +46 -0
- package/loading-indicator.js +41 -51
- package/map-container/map-container.d.ts.map +1 -1
- package/map-container.js +7 -7
- package/menu/common.js +8 -8
- package/menu/menu/menu.d.ts +3 -0
- package/menu/menu/menu.d.ts.map +1 -1
- package/menu/menu.js +52 -43
- package/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/navigation/common.js +10 -6
- package/navigation/navigation/navigation.d.ts +3 -0
- package/navigation/navigation/navigation.d.ts.map +1 -1
- package/navigation/navigation-list/navigation-list.d.ts.map +1 -1
- package/navigation/navigation-list.js +17 -16
- package/navigation/navigation-marker/navigation-marker.d.ts +2 -1
- package/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
- package/navigation/navigation-marker.js +12 -10
- package/navigation/navigation-section/navigation-section.d.ts +3 -0
- package/navigation/navigation-section/navigation-section.d.ts.map +1 -1
- package/navigation/navigation-section.js +46 -37
- package/navigation/navigation.js +30 -21
- package/notification/notification.d.ts +6 -2
- package/notification/notification.d.ts.map +1 -1
- package/notification.js +55 -51
- package/option/option/option-base-element.d.ts +0 -7
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option.js +110 -125
- package/overlay/overlay-base-element.d.ts +2 -0
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay.d.ts +3 -0
- package/overlay/overlay.d.ts.map +1 -1
- package/overlay.js +83 -77
- package/package.json +52 -29
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common.js +21 -17
- package/paginator/paginator.js +1 -1
- package/popover/popover/popover.d.ts +3 -0
- package/popover/popover/popover.d.ts.map +1 -1
- package/popover/popover-trigger.js +6 -6
- package/popover/popover.js +114 -109
- package/radio-button/common/radio-button-common.d.ts +3 -10
- package/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/radio-button/common.js +43 -90
- package/radio-button/radio-button/radio-button.d.ts +9 -1
- package/radio-button/radio-button/radio-button.d.ts.map +1 -1
- package/radio-button/radio-button-group/radio-button-group.d.ts +19 -26
- package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/radio-button/radio-button-group.js +112 -131
- package/radio-button/radio-button-panel/radio-button-panel.d.ts +20 -2
- package/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
- package/radio-button/radio-button-panel.js +56 -44
- package/radio-button/radio-button.js +34 -38
- package/scrollbar.css +158 -0
- package/select/select.d.ts +3 -9
- package/select/select.d.ts.map +1 -1
- package/select.js +65 -66
- package/selection-expansion-panel/selection-expansion-panel.d.ts +4 -1
- package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/selection-expansion-panel.js +41 -31
- package/skiplink-list/skiplink-list.d.ts.map +1 -1
- package/skiplink-list.js +14 -13
- package/slider/slider.d.ts +0 -1
- package/slider/slider.d.ts.map +1 -1
- package/slider.js +1 -1
- package/standard-theme.css +396 -8
- package/stepper/step-label/step-label.d.ts +0 -2
- package/stepper/step-label/step-label.d.ts.map +1 -1
- package/stepper/step-label.js +6 -6
- package/stepper/step.js +4 -4
- package/stepper/stepper/stepper.d.ts +4 -1
- package/stepper/stepper/stepper.d.ts.map +1 -1
- package/stepper/stepper.js +22 -19
- package/table.css +232 -0
- package/tabs/tab-group/tab-group.d.ts +4 -1
- package/tabs/tab-group/tab-group.d.ts.map +1 -1
- package/tabs/tab-group.js +80 -74
- package/tabs/tab-label.js +1 -1
- package/tag/tag/tag.d.ts +4 -1
- package/tag/tag/tag.d.ts.map +1 -1
- package/tag/tag-group/tag-group.d.ts +5 -2
- package/tag/tag-group/tag-group.d.ts.map +1 -1
- package/tag/tag-group.js +13 -10
- package/tag/tag.js +25 -21
- package/teaser/teaser.d.ts +2 -2
- package/teaser/teaser.d.ts.map +1 -1
- package/teaser-hero/teaser-hero.d.ts +2 -6
- package/teaser-hero/teaser-hero.d.ts.map +1 -1
- package/teaser-hero.js +32 -57
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product.js +13 -13
- package/teaser.js +28 -28
- package/time-input/time-input.d.ts +3 -6
- package/time-input/time-input.d.ts.map +1 -1
- package/time-input.js +56 -55
- package/toast/toast.d.ts +3 -0
- package/toast/toast.d.ts.map +1 -1
- package/toast.js +51 -42
- package/toggle/toggle/toggle.d.ts +4 -8
- package/toggle/toggle/toggle.d.ts.map +1 -1
- package/toggle/toggle.js +48 -48
- package/toggle-check/toggle-check.d.ts +4 -6
- package/toggle-check/toggle-check.d.ts.map +1 -1
- package/toggle-check.js +23 -21
- package/train/train/train.d.ts.map +1 -1
- package/train/train-blocked-passage.js +1 -1
- package/train/train-formation/train-formation.d.ts +3 -11
- package/train/train-formation/train-formation.d.ts.map +1 -1
- package/train/train-formation.js +47 -65
- package/train/train-wagon/train-wagon.d.ts +11 -8
- package/train/train-wagon/train-wagon.d.ts.map +1 -1
- package/train/train-wagon.js +123 -134
- package/train/train.js +74 -78
- package/visual-checkbox/visual-checkbox.d.ts +4 -1
- package/visual-checkbox/visual-checkbox.d.ts.map +1 -1
- package/visual-checkbox.js +21 -17
- package/button/mini-button/mini-button-base-element.d.ts +0 -8
- package/button/mini-button/mini-button-base-element.d.ts.map +0 -1
- package/button/tertiary-button/tertiary-button.d.ts +0 -19
- package/button/tertiary-button/tertiary-button.d.ts.map +0 -1
- package/button/tertiary-button-link/tertiary-button-link.d.ts +0 -19
- package/button/tertiary-button-link/tertiary-button-link.d.ts.map +0 -1
- package/button/tertiary-button-link.d.ts +0 -2
- package/button/tertiary-button-link.d.ts.map +0 -1
- package/button/tertiary-button-link.js +0 -17
- package/button/tertiary-button-static/tertiary-button-static.d.ts +0 -19
- package/button/tertiary-button-static/tertiary-button-static.d.ts.map +0 -1
- package/button/tertiary-button-static.d.ts +0 -2
- package/button/tertiary-button-static.d.ts.map +0 -1
- package/button/tertiary-button-static.js +0 -17
- package/button/tertiary-button.d.ts +0 -2
- package/button/tertiary-button.d.ts.map +0 -1
- package/button/tertiary-button.js +0 -17
- package/chip/chip.d.ts.map +0 -1
- package/chip.d.ts +0 -2
- package/chip.d.ts.map +0 -1
- package/chip.js +0 -54
- package/core/dom/get-document-writing-mode.d.ts +0 -5
- package/core/dom/get-document-writing-mode.d.ts.map +0 -1
- package/core/dom/ssr.d.ts +0 -13
- package/core/dom/ssr.d.ts.map +0 -1
- package/core/eventing/handler-repository.d.ts +0 -28
- package/core/eventing/handler-repository.d.ts.map +0 -1
- package/core/observers/intersection-observer.d.ts +0 -20
- package/core/observers/intersection-observer.d.ts.map +0 -1
- package/core/observers/mutation-observer.d.ts +0 -13
- package/core/observers/mutation-observer.d.ts.map +0 -1
- package/core/observers/resize-observer.d.ts +0 -16
- package/core/observers/resize-observer.d.ts.map +0 -1
- package/core/observers.d.ts +0 -4
- package/core/observers.d.ts.map +0 -1
- package/core/observers.js +0 -38
- package/core/testing/wait-for-event.d.ts +0 -2
- package/core/testing/wait-for-event.d.ts.map +0 -1
- package/development/button/mini-button/mini-button-base-element.d.ts +0 -8
- package/development/button/mini-button/mini-button-base-element.d.ts.map +0 -1
- package/development/button/tertiary-button/tertiary-button.d.ts +0 -19
- package/development/button/tertiary-button/tertiary-button.d.ts.map +0 -1
- package/development/button/tertiary-button-link/tertiary-button-link.d.ts +0 -19
- package/development/button/tertiary-button-link/tertiary-button-link.d.ts.map +0 -1
- package/development/button/tertiary-button-link.d.ts +0 -2
- package/development/button/tertiary-button-link.d.ts.map +0 -1
- package/development/button/tertiary-button-link.js +0 -25
- package/development/button/tertiary-button-static/tertiary-button-static.d.ts +0 -19
- package/development/button/tertiary-button-static/tertiary-button-static.d.ts.map +0 -1
- package/development/button/tertiary-button-static.d.ts +0 -2
- package/development/button/tertiary-button-static.d.ts.map +0 -1
- package/development/button/tertiary-button-static.js +0 -25
- package/development/button/tertiary-button.d.ts +0 -2
- package/development/button/tertiary-button.d.ts.map +0 -1
- package/development/button/tertiary-button.js +0 -25
- package/development/chip/chip.d.ts.map +0 -1
- package/development/chip.d.ts +0 -2
- package/development/chip.d.ts.map +0 -1
- package/development/core/dom/get-document-writing-mode.d.ts +0 -5
- package/development/core/dom/get-document-writing-mode.d.ts.map +0 -1
- package/development/core/dom/ssr.d.ts +0 -13
- package/development/core/dom/ssr.d.ts.map +0 -1
- package/development/core/eventing/handler-repository.d.ts +0 -28
- package/development/core/eventing/handler-repository.d.ts.map +0 -1
- package/development/core/observers/intersection-observer.d.ts +0 -20
- package/development/core/observers/intersection-observer.d.ts.map +0 -1
- package/development/core/observers/mutation-observer.d.ts +0 -13
- package/development/core/observers/mutation-observer.d.ts.map +0 -1
- package/development/core/observers/resize-observer.d.ts +0 -16
- package/development/core/observers/resize-observer.d.ts.map +0 -1
- package/development/core/observers.d.ts +0 -4
- package/development/core/observers.d.ts.map +0 -1
- package/development/core/observers.js +0 -39
- package/development/core/testing/wait-for-event.d.ts +0 -2
- package/development/core/testing/wait-for-event.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-close-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/base-elements/open-close-base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;;;;;GAOG;AACH,8BAAsB,uBAAwB,SAAQ,UAAU;IAC9D,gBAAuB,MAAM;;;;;MAKlB;IAEX,kCAAkC;IAClC,SAAS,KAAK,KAAK,CAAC,KAAK,EAAE,oBAAoB,EAE9C;IACD,SAAS,KAAK,KAAK,IAAI,oBAAoB,CAE1C;IAED,mCAAmC;IACnC,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,kEAAkE;IAClE,SAAS,CAAC,QAAQ,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"open-close-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/base-elements/open-close-base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;;;;;GAOG;AACH,8BAAsB,uBAAwB,SAAQ,UAAU;IAC9D,gBAAuB,MAAM;;;;;MAKlB;IAEX,kCAAkC;IAClC,SAAS,KAAK,KAAK,CAAC,KAAK,EAAE,oBAAoB,EAE9C;IACD,SAAS,KAAK,KAAK,IAAI,oBAAoB,CAE1C;IAED,mCAAmC;IACnC,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,kEAAkE;IAClE,SAAS,CAAC,QAAQ,EAAE,YAAY,CAI9B;IAEF,8CAA8C;IAC9C,SAAS,CAAC,OAAO,EAAE,YAAY,CAE5B;IAEH,kEAAkE;IAClE,SAAS,CAAC,SAAS,EAAE,YAAY,CAI/B;IAEF,8CAA8C;IAC9C,SAAS,CAAC,QAAQ,EAAE,YAAY,CAI9B;IAEF,2BAA2B;aACX,IAAI,IAAI,IAAI;IAC5B,4BAA4B;aACZ,KAAK,IAAI,IAAI;IAEb,iBAAiB,IAAI,IAAI;CAI1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5B,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QAC7B,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3B,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KAC7B;CACF"}
|
package/core/base-elements.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var M = (l) => {
|
|
2
2
|
throw TypeError(l);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { html as
|
|
8
|
-
import { hostAttributes as
|
|
4
|
+
var H = (l, r, n) => r.has(l) || M("Cannot " + n);
|
|
5
|
+
var I = (l, r, n) => (H(l, r, "read from private field"), n ? n.call(l) : r.get(l)), L = (l, r, n) => r.has(l) ? M("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(l) : r.set(l, n), m = (l, r, n, i) => (H(l, r, "write to private field"), i ? i.call(l, n) : r.set(l, n), n);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as d } from "tslib";
|
|
7
|
+
import { html as A, LitElement as F, isServer as V, nothing as y } from "lit";
|
|
8
|
+
import { hostAttributes as B, forceType as O } from "./decorators.js";
|
|
9
9
|
import { property as v } from "lit/decorators.js";
|
|
10
|
-
import { isEventPrevented as
|
|
10
|
+
import { isEventPrevented as G, EventEmitter as $ } from "./eventing.js";
|
|
11
|
+
import { SbbFormAssociatedMixin as J } from "./mixins.js";
|
|
11
12
|
import { SbbLanguageController as Q } from "./controllers.js";
|
|
12
13
|
import { i18nTargetOpensInNewWindow as U } from "./i18n.js";
|
|
13
14
|
import "../screen-reader-only.js";
|
|
14
|
-
let
|
|
15
|
-
var
|
|
16
|
-
let l = [
|
|
15
|
+
let W = (() => {
|
|
16
|
+
var h;
|
|
17
|
+
let l = [B({
|
|
17
18
|
"data-action": ""
|
|
18
|
-
})], r, n = [], i,
|
|
19
|
-
return
|
|
19
|
+
})], r, n = [], i, _ = F;
|
|
20
|
+
return h = class extends _ {
|
|
20
21
|
get maybeDisabled() {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
22
|
+
const o = this;
|
|
23
|
+
return o.disabled || o.formDisabled;
|
|
23
24
|
}
|
|
24
25
|
get maybeDisabledInteractive() {
|
|
25
26
|
return this.disabledInteractive;
|
|
@@ -30,8 +31,8 @@ let G = (() => {
|
|
|
30
31
|
setupBaseEventHandlers() {
|
|
31
32
|
this.addEventListener(
|
|
32
33
|
"click",
|
|
33
|
-
(
|
|
34
|
-
this.maybeDisabled && !this.maybeDisabledInteractive && (
|
|
34
|
+
(o) => {
|
|
35
|
+
this.maybeDisabled && !this.maybeDisabledInteractive && (o.preventDefault(), o.stopImmediatePropagation());
|
|
35
36
|
},
|
|
36
37
|
// capture is necessary here, as this event handler needs to be executed before any other
|
|
37
38
|
// in order to stop immediate propagation in the disabled case.
|
|
@@ -44,166 +45,160 @@ let G = (() => {
|
|
|
44
45
|
}
|
|
45
46
|
/** Default render method for button-like components. */
|
|
46
47
|
render() {
|
|
47
|
-
return
|
|
48
|
+
return A`<span class="sbb-action-base ${this.localName}">${this.renderTemplate()}</span>`;
|
|
48
49
|
}
|
|
49
|
-
}, i =
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
}, i = h, (() => {
|
|
51
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
52
|
+
p(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: o }, null, n), i = r.value, o && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o }), d(i, n);
|
|
52
53
|
})(), i;
|
|
53
|
-
})(),
|
|
54
|
-
var
|
|
55
|
-
let l = [
|
|
56
|
-
role: "button",
|
|
54
|
+
})(), ce = (() => {
|
|
55
|
+
var u;
|
|
56
|
+
let l = [B({
|
|
57
57
|
tabindex: "0",
|
|
58
58
|
"data-button": ""
|
|
59
|
-
})], r, n = [], i,
|
|
60
|
-
return
|
|
59
|
+
})], r, n = [], i, _ = J(W), h = [], D, o;
|
|
60
|
+
return u = class extends _ {
|
|
61
|
+
/**
|
|
62
|
+
* The type attribute to use for the button.
|
|
63
|
+
* @default 'button'
|
|
64
|
+
*/
|
|
65
|
+
set type(e) {
|
|
66
|
+
this.setAttribute("type", `${e}`);
|
|
67
|
+
}
|
|
68
|
+
get type() {
|
|
69
|
+
return this.getAttribute("type") ?? "button";
|
|
70
|
+
}
|
|
71
|
+
/** The <form> element to associate the button with. */
|
|
72
|
+
set form(e) {
|
|
73
|
+
this._formId = e;
|
|
74
|
+
}
|
|
75
|
+
get form() {
|
|
76
|
+
var e, a;
|
|
77
|
+
return this._formId ? ((a = (e = this.ownerDocument) == null ? void 0 : e.querySelector) == null ? void 0 : a.call(e, `form#${this._formId}`)) ?? null : this.internals.form;
|
|
78
|
+
}
|
|
61
79
|
constructor() {
|
|
62
|
-
super()
|
|
63
|
-
|
|
64
|
-
E(this, f);
|
|
65
|
-
if (h(this, _, (o(this, u), o(this, d, "button"))), h(this, f, (o(this, D), o(this, T, ""))), this._handleButtonClick = (o(this, B), async (e) => {
|
|
66
|
-
if (this.type === "button" || await J(e))
|
|
80
|
+
if (super(), this._formId = (d(this, h), ""), this._handleButtonClick = async (e) => {
|
|
81
|
+
if (this.type === "button" || await G(e))
|
|
67
82
|
return;
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
this.type === "submit"
|
|
83
|
+
const a = this.form;
|
|
84
|
+
if (a)
|
|
85
|
+
if (this.type === "submit") {
|
|
86
|
+
const c = document.createElement("button");
|
|
87
|
+
c.inert = !0, c.hidden = !0, c.name = this.name, c.value = this.value ?? "", a.append(c), a.requestSubmit(c), c.remove();
|
|
88
|
+
} else this.type === "reset" && a.reset();
|
|
71
89
|
else return;
|
|
72
|
-
}
|
|
90
|
+
}, this._preventScrollOnSpaceKeydown = (e) => {
|
|
73
91
|
e.key === " " && (e.preventDefault(), e.target.toggleAttribute("data-active", !0));
|
|
74
92
|
}, this._removeActiveMarker = (e) => {
|
|
75
93
|
e.target.removeAttribute("data-active");
|
|
76
94
|
}, this._dispatchClickEventOnSpaceKeyup = (e) => {
|
|
77
95
|
e.key === " " && (this._removeActiveMarker(e), this._dispatchClickEvent(e));
|
|
78
96
|
}, this._dispatchClickEvent = (e) => {
|
|
79
|
-
const { altKey:
|
|
97
|
+
const { altKey: a, ctrlKey: c, metaKey: x, shiftKey: z } = e;
|
|
80
98
|
e.target.dispatchEvent(new PointerEvent("click", {
|
|
81
99
|
bubbles: !0,
|
|
82
100
|
cancelable: !0,
|
|
83
101
|
composed: !0,
|
|
84
102
|
pointerId: -1,
|
|
85
103
|
pointerType: "",
|
|
86
|
-
altKey:
|
|
104
|
+
altKey: a,
|
|
87
105
|
ctrlKey: c,
|
|
88
|
-
metaKey:
|
|
89
|
-
shiftKey:
|
|
106
|
+
metaKey: x,
|
|
107
|
+
shiftKey: z
|
|
90
108
|
}));
|
|
91
|
-
}, !
|
|
109
|
+
}, this.internals.role = "button", !V) {
|
|
92
110
|
this.setupBaseEventHandlers();
|
|
93
111
|
const e = { passive: !0 };
|
|
94
|
-
this.addEventListener("click", this._handleButtonClick), this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener("keypress", (
|
|
95
|
-
(
|
|
96
|
-
`) && this._dispatchClickEvent(
|
|
112
|
+
this.addEventListener("click", this._handleButtonClick), this.addEventListener("keydown", this._preventScrollOnSpaceKeydown), this.addEventListener("keyup", this._dispatchClickEventOnSpaceKeyup, e), this.addEventListener("blur", this._removeActiveMarker, e), this.addEventListener("keypress", (a) => {
|
|
113
|
+
(a.key === "Enter" || a.key === `
|
|
114
|
+
`) && this._dispatchClickEvent(a);
|
|
97
115
|
}, e);
|
|
98
116
|
}
|
|
99
117
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return S(this, _);
|
|
103
|
-
}
|
|
104
|
-
set type(e) {
|
|
105
|
-
h(this, _, e);
|
|
118
|
+
attributeChangedCallback(e, a, c) {
|
|
119
|
+
(!["name", "value"].includes(e) || a !== c) && super.attributeChangedCallback(e, a, c);
|
|
106
120
|
}
|
|
107
121
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* @description Developer note: In this case updating the attribute must be synchronous.
|
|
111
|
-
* Due to this it is implemented as a getter/setter and the attributeChangedCallback() handles the diff check.
|
|
122
|
+
* Intentionally empty, as buttons are not targeted by form reset
|
|
123
|
+
* @internal
|
|
112
124
|
*/
|
|
113
|
-
|
|
114
|
-
this.setAttribute("name", `${e}`);
|
|
115
|
-
}
|
|
116
|
-
get name() {
|
|
117
|
-
return this.getAttribute("name") ?? "";
|
|
125
|
+
formResetCallback() {
|
|
118
126
|
}
|
|
119
127
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* @description Developer note: In this case updating the attribute must be synchronous.
|
|
123
|
-
* Due to this it is implemented as a getter/setter and the attributeChangedCallback() handles the diff check.
|
|
128
|
+
* Intentionally empty, as buttons are not targeted by form restore
|
|
129
|
+
* @internal
|
|
124
130
|
*/
|
|
125
|
-
|
|
126
|
-
this.setAttribute("value", `${e}`);
|
|
127
|
-
}
|
|
128
|
-
get value() {
|
|
129
|
-
return this.getAttribute("value") ?? "";
|
|
130
|
-
}
|
|
131
|
-
/** The <form> element to associate the button with. */
|
|
132
|
-
get form() {
|
|
133
|
-
return S(this, f);
|
|
134
|
-
}
|
|
135
|
-
set form(e) {
|
|
136
|
-
h(this, f, e);
|
|
131
|
+
formStateRestoreCallback(e, a) {
|
|
137
132
|
}
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Intentionally empty, as button does not write its data in form.
|
|
135
|
+
* The data is only applied on submit button click as submitter of requestSubmit();
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
updateFormValue() {
|
|
140
139
|
}
|
|
141
|
-
},
|
|
142
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
} }, metadata: e },
|
|
146
|
-
|
|
147
|
-
} }, metadata: e }, null,
|
|
148
|
-
t.value = c;
|
|
149
|
-
} }, metadata: e }, null, u), b(m, null, A, { kind: "accessor", name: "form", static: !1, private: !1, access: { has: (t) => "form" in t, get: (t) => t.form, set: (t, c) => {
|
|
150
|
-
t.form = c;
|
|
151
|
-
} }, metadata: e }, T, B), b(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: e }, null, n), i = r.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e }), o(i, n);
|
|
140
|
+
}, i = u, (() => {
|
|
141
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
142
|
+
D = [v()], o = [v()], p(u, null, D, { kind: "setter", name: "type", static: !1, private: !1, access: { has: (a) => "type" in a, set: (a, c) => {
|
|
143
|
+
a.type = c;
|
|
144
|
+
} }, metadata: e }, null, h), p(u, null, o, { kind: "setter", name: "form", static: !1, private: !1, access: { has: (a) => "form" in a, set: (a, c) => {
|
|
145
|
+
a.form = c;
|
|
146
|
+
} }, metadata: e }, null, h), p(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: e }, null, n), i = r.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e }), d(i, n);
|
|
152
147
|
})(), i;
|
|
153
|
-
})(),
|
|
154
|
-
var
|
|
155
|
-
let l = [
|
|
148
|
+
})(), oe = (() => {
|
|
149
|
+
var k, w, S, E, C, b;
|
|
150
|
+
let l = [B({
|
|
156
151
|
"data-link": ""
|
|
157
|
-
})], r, n = [], i,
|
|
158
|
-
return
|
|
152
|
+
})], r, n = [], i, _ = W, h, D = [], o = [], u, T = [], e = [], a, c = [], x = [], z, K = [], R = [], j, P = [], q = [];
|
|
153
|
+
return b = class extends _ {
|
|
159
154
|
constructor() {
|
|
160
155
|
super();
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
156
|
+
L(this, k);
|
|
157
|
+
L(this, w);
|
|
158
|
+
L(this, S);
|
|
159
|
+
L(this, E);
|
|
160
|
+
L(this, C);
|
|
161
|
+
m(this, k, d(this, D, "")), m(this, w, (d(this, o), d(this, T, ""))), m(this, S, (d(this, e), d(this, c, ""))), m(this, E, (d(this, x), d(this, K, !1))), m(this, C, (d(this, R), d(this, P, ""))), this.language = (d(this, q), new Q(this)), this._evaluateRelAttribute = () => this.rel ? this.rel : this.target === "_blank" ? "external noopener nofollow" : y, V || this.setupBaseEventHandlers();
|
|
167
162
|
}
|
|
168
163
|
/** The href value you want to link to. */
|
|
169
164
|
get href() {
|
|
170
|
-
return
|
|
165
|
+
return I(this, k);
|
|
171
166
|
}
|
|
172
167
|
set href(s) {
|
|
173
|
-
|
|
168
|
+
m(this, k, s);
|
|
174
169
|
}
|
|
175
170
|
/** Where to display the linked URL. */
|
|
176
171
|
get target() {
|
|
177
|
-
return
|
|
172
|
+
return I(this, w);
|
|
178
173
|
}
|
|
179
174
|
set target(s) {
|
|
180
|
-
|
|
175
|
+
m(this, w, s);
|
|
181
176
|
}
|
|
182
177
|
/** The relationship of the linked URL as space-separated link types. */
|
|
183
178
|
get rel() {
|
|
184
|
-
return
|
|
179
|
+
return I(this, S);
|
|
185
180
|
}
|
|
186
181
|
set rel(s) {
|
|
187
|
-
|
|
182
|
+
m(this, S, s);
|
|
188
183
|
}
|
|
189
184
|
/** Whether the browser will show the download dialog on click. */
|
|
190
185
|
get download() {
|
|
191
|
-
return
|
|
186
|
+
return I(this, E);
|
|
192
187
|
}
|
|
193
188
|
set download(s) {
|
|
194
|
-
|
|
189
|
+
m(this, E, s);
|
|
195
190
|
}
|
|
196
191
|
/** This will be forwarded as aria-label to the inner anchor element. */
|
|
197
192
|
get accessibilityLabel() {
|
|
198
|
-
return
|
|
193
|
+
return I(this, C);
|
|
199
194
|
}
|
|
200
195
|
set accessibilityLabel(s) {
|
|
201
|
-
|
|
196
|
+
m(this, C, s);
|
|
202
197
|
}
|
|
203
198
|
/** @internal */
|
|
204
199
|
focus(s) {
|
|
205
|
-
var
|
|
206
|
-
(
|
|
200
|
+
var t;
|
|
201
|
+
(t = this.shadowRoot.querySelector("a")) == null || t.focus(s);
|
|
207
202
|
}
|
|
208
203
|
/** @internal */
|
|
209
204
|
blur() {
|
|
@@ -220,42 +215,44 @@ let G = (() => {
|
|
|
220
215
|
return this.renderLink(this.renderTemplate());
|
|
221
216
|
}
|
|
222
217
|
renderLink(s) {
|
|
223
|
-
return
|
|
218
|
+
return A`
|
|
224
219
|
<a
|
|
225
220
|
class="sbb-action-base ${this.localName}"
|
|
226
|
-
href=${this.href ||
|
|
221
|
+
href=${this.href || y}
|
|
227
222
|
?download=${this.download}
|
|
228
|
-
target=${this.target ||
|
|
223
|
+
target=${this.target || y}
|
|
229
224
|
rel=${this._evaluateRelAttribute()}
|
|
230
|
-
aria-label=${this.accessibilityLabel ||
|
|
231
|
-
tabindex=${this.maybeDisabled && !this.maybeDisabledInteractive ? "-1" :
|
|
232
|
-
aria-disabled=${this.maybeDisabled ? "true" :
|
|
225
|
+
aria-label=${this.accessibilityLabel || y}
|
|
226
|
+
tabindex=${this.maybeDisabled && !this.maybeDisabledInteractive ? "-1" : y}
|
|
227
|
+
aria-disabled=${this.maybeDisabled ? "true" : y}
|
|
233
228
|
>
|
|
234
229
|
${s}
|
|
235
|
-
${this.href && this.target === "_blank" ?
|
|
230
|
+
${this.href && this.target === "_blank" ? A`<sbb-screen-reader-only
|
|
236
231
|
>. ${U[this.language.current]}</sbb-screen-reader-only
|
|
237
|
-
>` :
|
|
232
|
+
>` : y}
|
|
238
233
|
</a>
|
|
239
234
|
`;
|
|
240
235
|
}
|
|
241
|
-
},
|
|
242
|
-
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
} }, metadata: s },
|
|
246
|
-
|
|
247
|
-
} }, metadata: s },
|
|
248
|
-
|
|
249
|
-
} }, metadata: s },
|
|
250
|
-
|
|
251
|
-
} }, metadata: s },
|
|
252
|
-
|
|
253
|
-
} }, metadata: s },
|
|
236
|
+
}, k = new WeakMap(), w = new WeakMap(), S = new WeakMap(), E = new WeakMap(), C = new WeakMap(), i = b, (() => {
|
|
237
|
+
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
238
|
+
h = [O(), v()], u = [O(), v()], a = [O(), v()], z = [O(), v({ type: Boolean })], j = [O(), v({ attribute: "accessibility-label" })], p(b, null, h, { kind: "accessor", name: "href", static: !1, private: !1, access: { has: (t) => "href" in t, get: (t) => t.href, set: (t, f) => {
|
|
239
|
+
t.href = f;
|
|
240
|
+
} }, metadata: s }, D, o), p(b, null, u, { kind: "accessor", name: "target", static: !1, private: !1, access: { has: (t) => "target" in t, get: (t) => t.target, set: (t, f) => {
|
|
241
|
+
t.target = f;
|
|
242
|
+
} }, metadata: s }, T, e), p(b, null, a, { kind: "accessor", name: "rel", static: !1, private: !1, access: { has: (t) => "rel" in t, get: (t) => t.rel, set: (t, f) => {
|
|
243
|
+
t.rel = f;
|
|
244
|
+
} }, metadata: s }, c, x), p(b, null, z, { kind: "accessor", name: "download", static: !1, private: !1, access: { has: (t) => "download" in t, get: (t) => t.download, set: (t, f) => {
|
|
245
|
+
t.download = f;
|
|
246
|
+
} }, metadata: s }, K, R), p(b, null, j, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, f) => {
|
|
247
|
+
t.accessibilityLabel = f;
|
|
248
|
+
} }, metadata: s }, P, q), p(null, r = { value: i }, l, { kind: "class", name: i.name, metadata: s }, null, n), i = r.value, s && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), d(i, n);
|
|
254
249
|
})(), i;
|
|
255
250
|
})();
|
|
256
|
-
const
|
|
251
|
+
const g = class g extends F {
|
|
257
252
|
constructor() {
|
|
258
|
-
super(...arguments), this.willOpen = new
|
|
253
|
+
super(...arguments), this.willOpen = new $(this, g.events.willOpen, { cancelable: !0 }), this.didOpen = new $(this, g.events.didOpen, {
|
|
254
|
+
cancelable: !0
|
|
255
|
+
}), this.willClose = new $(this, g.events.willClose, { cancelable: !0 }), this.didClose = new $(this, g.events.didClose, { cancelable: !0 });
|
|
259
256
|
}
|
|
260
257
|
/** The state of the component. */
|
|
261
258
|
set state(r) {
|
|
@@ -272,16 +269,16 @@ const L = class L extends W {
|
|
|
272
269
|
super.connectedCallback(), this.state || (this.state = "closed");
|
|
273
270
|
}
|
|
274
271
|
};
|
|
275
|
-
|
|
272
|
+
g.events = {
|
|
276
273
|
willOpen: "willOpen",
|
|
277
274
|
didOpen: "didOpen",
|
|
278
275
|
willClose: "willClose",
|
|
279
276
|
didClose: "didClose"
|
|
280
277
|
};
|
|
281
|
-
let N =
|
|
278
|
+
let N = g;
|
|
282
279
|
export {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
280
|
+
W as SbbActionBaseElement,
|
|
281
|
+
ce as SbbButtonBaseElement,
|
|
282
|
+
oe as SbbLinkBaseElement,
|
|
286
283
|
N as SbbOpenCloseBaseElement
|
|
287
284
|
};
|
|
@@ -109,10 +109,11 @@ export declare abstract class DateAdapter<T = any> {
|
|
|
109
109
|
* @param value The date in the format DD.MM.YYYY.
|
|
110
110
|
* @param now The current date as Date.
|
|
111
111
|
*/
|
|
112
|
-
abstract parse(value: string | null | undefined, now: T): T |
|
|
112
|
+
abstract parse(value: string | null | undefined, now: T): T | null;
|
|
113
113
|
/**
|
|
114
114
|
* Format the given date as string.
|
|
115
115
|
* @param date The date to format.
|
|
116
|
+
* @param options options object with weekdayStyle as property
|
|
116
117
|
*/
|
|
117
118
|
format(date: T | null | undefined, options?: {
|
|
118
119
|
weekdayStyle?: 'long' | 'short' | 'narrow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/date-adapter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAU,CAAC;AACtC,eAAO,MAAM,cAAc,EAAE,MAAU,CAAC;AACxC,eAAO,MAAM,aAAa,EAAE,MAAU,CAAC;AACvC,eAAO,MAAM,cAAc,EAAE,MAAW,CAAC;AACzC,eAAO,MAAM,WAAW,QACgE,CAAC;
|
|
1
|
+
{"version":3,"file":"date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/date-adapter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAU,CAAC;AACtC,eAAO,MAAM,cAAc,EAAE,MAAU,CAAC;AACxC,eAAO,MAAM,aAAa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CAAC,GAAG,IAAI,GAAG,CAAC;CAS7D"}
|
|
@@ -57,7 +57,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
|
|
|
57
57
|
/** Creates a Date from a valid input (Date, string or number in seconds). */
|
|
58
58
|
deserialize(date: SbbDateLike | null | undefined): Date | null;
|
|
59
59
|
/** Returns the right format for the `valueAsDate` property. */
|
|
60
|
-
parse(value: string | null | undefined, now: Date): Date |
|
|
60
|
+
parse(value: string | null | undefined, now: Date): Date | null;
|
|
61
61
|
invalid(): Date;
|
|
62
62
|
/**
|
|
63
63
|
* Creates an array with the given length and fills it by mapping with the provided function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/native-date-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAU7D,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAExB,gBAAgB,GAAE,MAAW;IAKhD,uCAAuC;IAChC,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIlC,wCAAwC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAInC,sCAAsC;IAC/B,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIlC,kDAAkD;IAC3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIvC,yCAAyC;IAClC,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM;IAS9D;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAKlE,iGAAiG;IAC1F,YAAY,IAAI,MAAM,EAAE;IAK/B;;;;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I,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIxD;;;;OAIG;IACI,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ1D,yFAAyF;IAClF,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAKtD,6EAA6E;IAC7D,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI;IAkB9E,+DAA+D;IACxD,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI;IA4BtD,OAAO,IAAI,IAAI;IAI/B;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAId,gEAAgE;IAChE,OAAO,CAAC,uBAAuB;CAShC;AAED,eAAO,MAAM,kBAAkB,mBAA0B,CAAC"}
|
package/core/datetime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SbbLanguageController as i } from "./controllers.js";
|
|
2
|
-
const o = 7, f = 4, m = 4, d = 24,
|
|
3
|
-
class
|
|
2
|
+
const o = 7, f = 4, m = 4, d = 24, l = /(^0?[1-9]?|[12]?[0-9]?|3?[01]?)[.,\\/\-\s](0?[1-9]?|1?[0-2]?)?[.,\\/\-\s](\d{1,4}$)?/;
|
|
3
|
+
class u {
|
|
4
4
|
/**
|
|
5
5
|
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
6
6
|
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
@@ -15,24 +15,25 @@ class l {
|
|
|
15
15
|
/**
|
|
16
16
|
* Format the given date as string.
|
|
17
17
|
* @param date The date to format.
|
|
18
|
+
* @param options options object with weekdayStyle as property
|
|
18
19
|
*/
|
|
19
20
|
format(t, e) {
|
|
20
21
|
if (!this.isValid(t))
|
|
21
22
|
return "";
|
|
22
|
-
const r = /* @__PURE__ */ new Date(this.toIso8601(t) + "T00:00:00"),
|
|
23
|
+
const r = /* @__PURE__ */ new Date(this.toIso8601(t) + "T00:00:00"), n = new Intl.DateTimeFormat("de-CH", {
|
|
23
24
|
day: "2-digit",
|
|
24
25
|
month: "2-digit",
|
|
25
26
|
year: "numeric"
|
|
26
|
-
}),
|
|
27
|
-
let s = this.getDayOfWeekNames(
|
|
28
|
-
return s = s.charAt(0).toUpperCase() + s.substring(1),
|
|
27
|
+
}), a = (e == null ? void 0 : e.weekdayStyle) ?? "short";
|
|
28
|
+
let s = this.getDayOfWeekNames(a)[this.getDayOfWeek(t)];
|
|
29
|
+
return s = s.charAt(0).toUpperCase() + s.substring(1), a === "short" && (s = s.substring(0, 2)), `${s}, ${n.format(r)}`;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Get the given date as ISO String.
|
|
32
33
|
* @param date The date to convert to ISO String.
|
|
33
34
|
*/
|
|
34
35
|
toIso8601(t) {
|
|
35
|
-
const e = (r,
|
|
36
|
+
const e = (r, n = 2) => `${r}`.padStart(n, "0");
|
|
36
37
|
return `${e(this.getYear(t), 4)}-${e(this.getMonth(t))}-${e(this.getDate(t))}`;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
@@ -70,8 +71,8 @@ class l {
|
|
|
70
71
|
*/
|
|
71
72
|
sameDate(t, e) {
|
|
72
73
|
if (t && e) {
|
|
73
|
-
const r = this.isValid(t),
|
|
74
|
-
return r &&
|
|
74
|
+
const r = this.isValid(t), n = this.isValid(e);
|
|
75
|
+
return r && n ? !this.compareDate(t, e) : r == n;
|
|
75
76
|
}
|
|
76
77
|
return t == e;
|
|
77
78
|
}
|
|
@@ -88,7 +89,7 @@ class l {
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
const D = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
91
|
-
class g extends
|
|
92
|
+
class g extends u {
|
|
92
93
|
constructor(t = 15) {
|
|
93
94
|
super(), this._cutoffYearOffset = t;
|
|
94
95
|
}
|
|
@@ -158,10 +159,10 @@ class g extends l {
|
|
|
158
159
|
throw Error(`Invalid month index "${e}". Month index has to be between 1 and 12.`);
|
|
159
160
|
if (r < 1)
|
|
160
161
|
throw Error(`Invalid date "${r}". Date has to be greater than 0.`);
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
162
|
+
const n = this._createDateWithOverflow(t, e - 1, r);
|
|
163
|
+
if (n.getMonth() + 1 !== e)
|
|
163
164
|
throw Error(`Invalid date "${r}" for month with index "${e}".`);
|
|
164
|
-
return
|
|
165
|
+
return n;
|
|
165
166
|
}
|
|
166
167
|
/** Checks whether the given `obj` is a Date. */
|
|
167
168
|
isDateInstance(t) {
|
|
@@ -189,8 +190,8 @@ class g extends l {
|
|
|
189
190
|
* E.g., with `date` = new Date(2022, 0, 31) and `months` = 1, it returns new Date(2022, 1, 28).
|
|
190
191
|
*/
|
|
191
192
|
addCalendarMonths(t, e) {
|
|
192
|
-
const r = t.getMonth() + e,
|
|
193
|
-
return new Date(this.clone(t).setMonth(r, Math.min(
|
|
193
|
+
const r = t.getMonth() + e, n = new Date(t.getFullYear(), r, 1, 0, 0, 0, 0), a = this.getNumDaysInMonth(n);
|
|
194
|
+
return new Date(this.clone(t).setMonth(r, Math.min(a, t.getDate())));
|
|
194
195
|
}
|
|
195
196
|
/** Creates a new date by adding the number of provided `days` to the provided `date`. */
|
|
196
197
|
addCalendarDays(t, e) {
|
|
@@ -213,16 +214,16 @@ class g extends l {
|
|
|
213
214
|
/** Returns the right format for the `valueAsDate` property. */
|
|
214
215
|
parse(t, e) {
|
|
215
216
|
if (!t)
|
|
216
|
-
return;
|
|
217
|
-
const r = t.replace(/\D/g, " ").trim(),
|
|
218
|
-
if (!
|
|
219
|
-
return;
|
|
220
|
-
let
|
|
221
|
-
if (typeof
|
|
217
|
+
return null;
|
|
218
|
+
const r = t.replace(/\D/g, " ").trim(), n = r == null ? void 0 : r.match(l);
|
|
219
|
+
if (!n || n.index !== 0 || n.length <= 2 || n.some((s) => s === void 0) || !this.isValid(this.createDate(+n[3], +n[2], +n[1])))
|
|
220
|
+
return null;
|
|
221
|
+
let a = +n[3];
|
|
222
|
+
if (typeof a == "number" && a < 100 && a >= 0) {
|
|
222
223
|
const s = e.getFullYear() - 2e3 + this._cutoffYearOffset;
|
|
223
|
-
|
|
224
|
+
a = a <= s ? 2e3 + a : 1900 + a;
|
|
224
225
|
}
|
|
225
|
-
return new Date(
|
|
226
|
+
return new Date(a, +n[2] - 1, +n[1]);
|
|
226
227
|
}
|
|
227
228
|
invalid() {
|
|
228
229
|
return /* @__PURE__ */ new Date(NaN);
|
|
@@ -233,19 +234,19 @@ class g extends l {
|
|
|
233
234
|
* @param valueFunction The function of array's index used to fill the array.
|
|
234
235
|
*/
|
|
235
236
|
_range(t, e) {
|
|
236
|
-
return Array.from({ length: t }).map((r,
|
|
237
|
+
return Array.from({ length: t }).map((r, n) => e(n));
|
|
237
238
|
}
|
|
238
239
|
/** Creates a date but allows the month and date to overflow. */
|
|
239
240
|
_createDateWithOverflow(t, e, r) {
|
|
240
|
-
const
|
|
241
|
-
return t >= 0 && t < 100 &&
|
|
241
|
+
const n = new Date(t, e, r);
|
|
242
|
+
return t >= 0 && t < 100 && n.setFullYear(this.getYear(n) - 1900), n;
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
245
|
const w = new g();
|
|
245
246
|
export {
|
|
246
247
|
o as DAYS_PER_ROW,
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
u as DateAdapter,
|
|
249
|
+
l as FORMAT_DATE,
|
|
249
250
|
f as MONTHS_PER_ROW,
|
|
250
251
|
g as NativeDateAdapter,
|
|
251
252
|
d as YEARS_PER_PAGE,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/animation.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAO9F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lean-context.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/lean-context.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAEhC"}
|
package/core/dom.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
export * from './dom/animation.js';
|
|
1
2
|
export * from './dom/breakpoint.js';
|
|
2
3
|
export * from './dom/find-referenced-element.js';
|
|
3
|
-
export * from './dom/get-document-writing-mode.js';
|
|
4
4
|
export * from './dom/host-context.js';
|
|
5
5
|
export * from './dom/input-element.js';
|
|
6
|
+
export * from './dom/lean-context.js';
|
|
6
7
|
export * from './dom/set-or-remove-attribute.js';
|
|
7
8
|
export * from './dom/platform.js';
|
|
8
9
|
export * from './dom/scroll.js';
|
|
9
|
-
export * from './dom/ssr.js';
|
|
10
10
|
//# sourceMappingURL=dom.d.ts.map
|