@sbb-esta/lyne-elements 2.11.1 → 2.11.2
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/accordion/accordion.component.js +19 -22
- package/action-group/action-group.component.js +3 -5
- package/alert/alert/alert.component.js +1 -2
- package/alert/alert-group/alert-group.component.js +2 -3
- package/autocomplete/autocomplete-base-element.js +71 -82
- package/autocomplete/autocomplete.component.js +31 -36
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +44 -52
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +17 -20
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +23 -26
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +9 -9
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +29 -33
- package/button/mini-button/mini-button.component.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +1 -2
- package/calendar/calendar.component.js +8 -13
- package/card/card/card.component.js +12 -12
- package/card/card-badge/card-badge.component.js +16 -16
- package/card/common/card-action-common.js +23 -25
- package/checkbox/checkbox/checkbox.component.js +17 -20
- package/checkbox/checkbox-group/checkbox-group.component.js +39 -52
- package/checkbox/checkbox-panel/checkbox-panel.component.js +22 -25
- package/checkbox/common/checkbox-common.js +13 -15
- package/chip/chip-group/chip-group.component.js +59 -70
- package/clock/clock.component.js +50 -60
- package/container/container/container.component.js +28 -29
- package/container/sticky-bar/sticky-bar.component.js +26 -27
- package/core/a11y/focus-trap-controller.js +11 -14
- package/core/a11y/focus.js +27 -29
- package/core/a11y/input-modality-detector.js +18 -19
- package/core/a11y/interactivity-checker.js +10 -10
- package/core/base-elements/button-base-element.js +13 -18
- package/core/base-elements/link-base-element.js +3 -6
- package/core/base-elements/open-close-base-element.js +1 -1
- package/core/controllers/connected-abort-controller.js +2 -4
- package/core/controllers/escapable-overlay-controller.js +10 -12
- package/core/controllers/id-reference-controller.js +13 -14
- package/core/controllers/inert-controller.js +8 -10
- package/core/controllers/slot-state-controller.js +16 -26
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/date-adapter.js +21 -21
- package/core/datetime/native-date-adapter.js +11 -11
- package/core/decorators/date-converter.js +10 -12
- package/core/decorators/date-only-type.js +5 -6
- package/core/decorators/force-type.js +4 -5
- package/core/dom/breakpoint.js +8 -8
- package/core/dom/input-element.js +4 -9
- package/core/eventing/event-emitter.js +4 -5
- package/core/mixins/form-associated-checkbox-mixin.js +32 -37
- package/core/mixins/form-associated-input-mixin.js +58 -64
- package/core/mixins/form-associated-mixin.js +42 -44
- package/core/mixins/form-associated-radio-button-mixin.js +3 -5
- package/core/mixins/hydration-mixin.js +12 -13
- package/core/mixins/named-slot-list-mixin.js +32 -37
- package/core/mixins/panel-mixin.js +26 -27
- package/core/mixins.js +1 -1
- package/core/overlay/position.js +23 -23
- package/core/styles/core/mediaqueries.scss +1 -1
- package/core/styles/core.scss +27 -28
- package/core/styles/mixins/table.scss +1 -24
- package/core/testing/event-spy.js +2 -4
- package/core/testing/wait-for-image-ready.js +8 -9
- package/core/testing/wait-for-render.js +8 -9
- package/custom-elements.json +2 -2
- package/date-input/date-input.component.js +2 -4
- package/datepicker/common/datepicker-association-controllers.js +21 -24
- package/datepicker/common/datepicker-button.js +53 -57
- package/datepicker/datepicker/datepicker.component.js +82 -95
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +74 -81
- package/development/accordion/accordion.component.js +4 -7
- package/development/action-group/action-group.component.js +3 -5
- package/development/alert/alert/alert.component.js +2 -3
- package/development/alert/alert-group/alert-group.component.js +2 -3
- package/development/autocomplete/autocomplete-base-element.js +19 -30
- package/development/autocomplete/autocomplete.component.js +7 -12
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +2 -3
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/calendar/calendar.component.js +9 -14
- package/development/card/card/card.component.js +1 -1
- package/development/card/card-badge/card-badge.component.js +1 -1
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/card/card-link/card-link.component.js +1 -1
- package/development/card/common/card-action-common.js +3 -5
- package/development/checkbox/checkbox/checkbox.component.js +2 -5
- package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
- package/development/checkbox/common/checkbox-common.js +3 -5
- package/development/chip/chip/chip.component.js +1 -1
- package/development/chip/chip-group/chip-group.component.js +15 -26
- package/development/chip-label/chip-label.component.js +1 -1
- package/development/clock/clock.component.js +23 -33
- package/development/container/container/container.component.js +2 -3
- package/development/container/sticky-bar/sticky-bar.component.js +2 -3
- package/development/core/a11y/arrow-navigation.js +1 -1
- package/development/core/a11y/fake-event-detection.js +1 -1
- package/development/core/a11y/focus-trap-controller.js +6 -9
- package/development/core/a11y/focus-visible-within-controller.js +1 -1
- package/development/core/a11y/focus.js +8 -10
- package/development/core/a11y/input-modality-detector.js +2 -3
- package/development/core/a11y/interactivity-checker.js +2 -2
- package/development/core/base-elements/action-base-element.js +2 -3
- package/development/core/base-elements/button-base-element.js +6 -11
- package/development/core/base-elements/link-base-element.js +4 -7
- package/development/core/base-elements/open-close-base-element.js +2 -2
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/connected-abort-controller.js +3 -5
- package/development/core/controllers/escapable-overlay-controller.js +3 -5
- package/development/core/controllers/id-reference-controller.js +2 -3
- package/development/core/controllers/inert-controller.js +4 -6
- package/development/core/controllers/language-controller.js +1 -1
- package/development/core/controllers/media-matchers-controller.js +1 -1
- package/development/core/controllers/slot-state-controller.js +8 -18
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +5 -5
- package/development/core/datetime/native-date-adapter.js +2 -2
- package/development/core/decorators/date-converter.js +3 -5
- package/development/core/decorators/date-only-type.js +2 -3
- package/development/core/decorators/force-type.js +3 -4
- package/development/core/decorators/get-override.js +1 -1
- package/development/core/decorators/handle-distinct-change.js +1 -1
- package/development/core/decorators/host-attributes.js +1 -1
- package/development/core/decorators/slot-state.js +1 -1
- package/development/core/dom/animation.js +1 -1
- package/development/core/dom/breakpoint.js +2 -2
- package/development/core/dom/find-referenced-element.js +1 -1
- package/development/core/dom/host-context.js +1 -1
- package/development/core/dom/input-element.js +3 -4
- package/development/core/dom/platform.js +1 -1
- package/development/core/dom/scroll.js +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -1
- package/development/core/eventing/composed-path-has-attribute.js +1 -1
- package/development/core/eventing/event-emitter.js +2 -3
- package/development/core/eventing/form-element-handlers.js +1 -1
- package/development/core/eventing/forward-event.js +1 -1
- package/development/core/eventing/throttle.js +1 -1
- package/development/core/i18n/i18n.js +1 -1
- package/development/core/mixins/animation-complete-mixin.js +1 -1
- package/development/core/mixins/disabled-mixin.js +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
- package/development/core/mixins/form-associated-input-mixin.js +14 -20
- package/development/core/mixins/form-associated-mixin.js +5 -7
- package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
- package/development/core/mixins/hydration-mixin.js +3 -4
- package/development/core/mixins/named-slot-list-mixin.js +4 -7
- package/development/core/mixins/negative-mixin.js +1 -1
- package/development/core/mixins/panel-mixin.js +2 -3
- package/development/core/mixins/required-mixin.js +1 -1
- package/development/core/mixins/update-scheduler-mixin.js +1 -1
- package/development/core/overlay/overlay-option-panel.js +1 -1
- package/development/core/overlay/overlay-trigger-attributes.js +1 -1
- package/development/core/overlay/overlay.js +1 -1
- package/development/core/overlay/position.js +5 -5
- package/development/core/testing/event-spy.js +3 -5
- package/development/core/testing/mocha-extensions.js +1 -1
- package/development/core/testing/wait-for-condition.js +1 -1
- package/development/core/testing/wait-for-image-ready.js +2 -3
- package/development/core/testing/wait-for-render.js +2 -3
- package/development/date-input/date-input.component.js +4 -6
- package/development/datepicker/common/datepicker-association-controllers.js +6 -9
- package/development/datepicker/common/datepicker-button.js +7 -11
- package/development/datepicker/datepicker/datepicker.component.js +22 -35
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +13 -20
- package/development/dialog/dialog/dialog.component.js +16 -27
- package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +1 -1
- package/development/divider/divider.component.js +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +4 -5
- package/development/file-selector/common/file-selector-common.js +2 -3
- package/development/file-selector/file-selector/file-selector.component.js +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +7 -13
- package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -3
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -3
- package/development/footer/footer.component.js +1 -1
- package/development/form-error/form-error.component.js +3 -4
- package/development/form-field/form-field/form-field.component.js +19 -30
- package/development/form-field/form-field-clear/form-field-clear.component.js +4 -6
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/header/header.component.js +5 -8
- package/development/header/header-button/header-button.component.js +1 -1
- package/development/header/header-link/header-link.component.js +1 -1
- package/development/icon/icon-base.js +1 -1
- package/development/icon/icon-name-mixin.js +1 -1
- package/development/icon/icon-request.js +2 -3
- package/development/icon/icon-validate.js +1 -1
- package/development/icon/icon.component.js +1 -1
- package/development/image/image.component.js +7 -9
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/link/block-link/block-link.component.js +1 -1
- package/development/link/block-link-button/block-link-button.component.js +1 -1
- package/development/link/block-link-static/block-link-static.component.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/link/link.component.js +1 -1
- package/development/link/link-button/link-button.component.js +1 -1
- package/development/link/link-static/link-static.component.js +1 -1
- package/development/link-common-CJEWffDZ.js +1 -1
- package/development/link-list/common/link-list-base.js +1 -1
- package/development/link-list/link-list/link-list.component.js +1 -1
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/development/logo/logo.component.js +1 -1
- package/development/map-container/map-container.component.js +2 -3
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.js +17 -25
- package/development/menu/menu-button/menu-button.component.js +1 -1
- package/development/menu/menu-link/menu-link.component.js +1 -1
- package/development/message/message.component.js +1 -1
- package/development/navigation/common/navigation-action-common.js +3 -5
- package/development/navigation/navigation/navigation.component.js +19 -35
- package/development/navigation/navigation-button/navigation-button.component.js +1 -1
- package/development/navigation/navigation-link/navigation-link.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
- package/development/navigation/navigation-section/navigation-section.component.js +22 -32
- package/development/notification/notification.component.js +22 -24
- package/development/option/optgroup/optgroup-base-element.js +4 -6
- package/development/option/optgroup/optgroup.component.js +6 -10
- package/development/option/option/option-base-element.js +3 -4
- package/development/option/option/option.component.js +7 -10
- package/development/overlay/overlay-base-element.js +4 -6
- package/development/overlay/overlay.component.js +7 -9
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.js +2 -3
- package/development/popover/popover/popover.component.js +12 -17
- package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/development/radio-button/common/radio-button-common.js +6 -10
- package/development/radio-button/radio-button/radio-button.component.js +2 -5
- package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/select/select.component.js +26 -48
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
- package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
- package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
- package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +8 -15
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -2
- package/development/signet/signet.component.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/slider/slider.component.js +3 -4
- package/development/status/status.component.js +1 -1
- package/development/stepper/step/step.component.js +5 -7
- package/development/stepper/step-label/step-label.component.js +3 -4
- package/development/stepper/stepper/stepper.component.js +16 -29
- package/development/table/table-wrapper/table-wrapper.component.js +2 -7
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +23 -38
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +6 -12
- package/development/tag/tag-group/tag-group.component.js +5 -13
- package/development/teaser/teaser.component.js +1 -1
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
- package/development/time-input/time-input.component.js +8 -12
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -3
- package/development/title/title-base.js +1 -1
- package/development/title/title.component.js +1 -1
- package/development/toast/toast.component.js +4 -7
- package/development/toggle/toggle/toggle.component.js +8 -12
- package/development/toggle/toggle-option/toggle-option.component.js +9 -16
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +5 -7
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/dialog/dialog/dialog.component.js +59 -70
- package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +31 -32
- package/file-selector/common/file-selector-common.js +1 -2
- package/flip-card/flip-card/flip-card.component.js +48 -54
- package/flip-card/flip-card-details/flip-card-details.component.js +16 -17
- package/flip-card/flip-card-summary/flip-card-summary.component.js +18 -19
- package/form-error/form-error.component.js +13 -14
- package/form-field/form-field/form-field.component.js +128 -139
- package/form-field/form-field-clear/form-field-clear.component.js +20 -22
- package/header/header/header.component.js +25 -28
- package/icon/icon-request.js +10 -11
- package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
- package/image/image.component.js +4 -6
- package/map-container/map-container.component.js +1 -2
- package/menu/menu/menu.component.js +48 -56
- package/navigation/common/navigation-action-common.js +19 -21
- package/navigation/navigation/navigation.component.js +74 -93
- package/navigation/navigation-marker/navigation-marker.component.js +26 -28
- package/navigation/navigation-section/navigation-section.component.js +79 -89
- package/notification/notification.component.js +18 -20
- package/option/optgroup/optgroup-base-element.js +40 -42
- package/option/optgroup/optgroup.component.js +16 -20
- package/option/option/option-base-element.js +3 -4
- package/option/option/option.component.js +28 -31
- package/overlay/overlay-base-element.js +25 -27
- package/overlay/overlay.component.js +38 -40
- package/package.json +1 -1
- package/paginator/paginator/paginator.component.js +3 -4
- package/popover/popover/popover.component.js +82 -91
- package/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/radio-button/common/radio-button-common.js +11 -15
- package/radio-button/radio-button/radio-button.component.js +20 -23
- package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
- package/radio-button/radio-button-panel/radio-button-panel.component.js +31 -35
- package/select/select.component.js +89 -111
- package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
- package/sidebar/common.js +1 -1
- package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
- package/sidebar/sidebar/sidebar.component.js +61 -68
- package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
- package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/sidebar.js +1 -1
- package/slider/slider.component.js +3 -4
- package/standard-theme.css +0 -25
- package/stepper/step/step.component.js +22 -24
- package/stepper/step-label/step-label.component.js +2 -3
- package/stepper/stepper/stepper.component.js +72 -86
- package/table/table-wrapper/table-wrapper.component.js +13 -14
- package/table.css +0 -25
- package/tabs/tab-group/tab-group.component.js +77 -92
- package/tabs/tab-label/tab-label.component.js +10 -10
- package/tag/tag/tag.component.js +55 -61
- package/tag/tag-group/tag-group.component.js +21 -29
- package/teaser/teaser.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product-common-C8oSkIxy.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.js +62 -66
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +9 -10
- package/toast/toast.component.js +4 -7
- package/toggle/toggle/toggle.component.js +38 -42
- package/toggle/toggle-option/toggle-option.component.js +47 -54
- package/train/train-formation/train-formation.component.js +41 -43
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
- package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
- package/teaser-product-common-CpMAlYEp.js +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// SBB table mixin
|
|
4
4
|
// Notes:
|
|
5
|
-
// We cannot use `border-collapse` because
|
|
5
|
+
// We cannot use `border-collapse` because in sticky variants it gets visually broken.
|
|
6
6
|
// Therefore, we have to build the grid avoiding double borders.
|
|
7
7
|
@mixin table {
|
|
8
8
|
@include table--m;
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
& {
|
|
12
12
|
--sbb-table-border: var(--sbb-border-width-1x) solid var(--sbb-table-border-color);
|
|
13
13
|
--sbb-table-border-color: var(--sbb-color-cloud);
|
|
14
|
-
--sbb-table-border-radius: var(--sbb-border-radius-4x);
|
|
15
14
|
--sbb-table-background-color: var(--sbb-color-white);
|
|
16
15
|
--sbb-table-row-striped-color: var(--sbb-color-milk);
|
|
17
16
|
--sbb-table-color: inherit;
|
|
@@ -35,16 +34,6 @@
|
|
|
35
34
|
& > th {
|
|
36
35
|
border-block-start: var(--sbb-table-border);
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
// Border radius on top-left corner
|
|
40
|
-
& > th:first-of-type {
|
|
41
|
-
border-start-start-radius: var(--sbb-table-border-radius);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Border radius on top-right corner
|
|
45
|
-
& > th:last-of-type {
|
|
46
|
-
border-start-end-radius: var(--sbb-table-border-radius);
|
|
47
|
-
}
|
|
48
37
|
}
|
|
49
38
|
|
|
50
39
|
& > th {
|
|
@@ -68,18 +57,6 @@
|
|
|
68
57
|
border-inline-start: var(--sbb-table-border);
|
|
69
58
|
}
|
|
70
59
|
}
|
|
71
|
-
|
|
72
|
-
&:last-of-type {
|
|
73
|
-
// Border radius on bottom-left corner
|
|
74
|
-
& > td:first-of-type {
|
|
75
|
-
border-end-start-radius: var(--sbb-table-border-radius);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Border radius on bottom-right corner
|
|
79
|
-
& > td:last-of-type {
|
|
80
|
-
border-end-end-radius: var(--sbb-table-border-radius);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
60
|
}
|
|
84
61
|
}
|
|
85
62
|
|
|
@@ -41,10 +41,8 @@ class a {
|
|
|
41
41
|
return e.promise.then(() => clearTimeout(i)), e.promise;
|
|
42
42
|
}
|
|
43
43
|
_listenForEvent() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var t;
|
|
47
|
-
this._events.push(s), this._count++, (t = this._promiseEventMap.get(this.count)) == null || t.resolve(s);
|
|
44
|
+
this._target?.addEventListener(this._event, (e) => {
|
|
45
|
+
this._events.push(e), this._count++, this._promiseEventMap.get(this.count)?.resolve(e);
|
|
48
46
|
}, this._options ?? void 0);
|
|
49
47
|
}
|
|
50
48
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { isSafari as
|
|
2
|
-
async function
|
|
3
|
-
|
|
4
|
-
const e = o.localName === "sbb-image" ? ((i = o.shadowRoot) == null ? void 0 : i.querySelector(".sbb-image__img")) ?? null : o;
|
|
1
|
+
import { isSafari as r } from "../dom.js";
|
|
2
|
+
async function d(o, m = 2 * 1e3) {
|
|
3
|
+
const e = o.localName === "sbb-image" ? o.shadowRoot?.querySelector(".sbb-image__img") ?? null : o;
|
|
5
4
|
if (!e)
|
|
6
5
|
throw new Error("img tag not found");
|
|
7
|
-
e.complete ?
|
|
8
|
-
const
|
|
6
|
+
e.complete ? r && await e.decode() : await new Promise((i, t) => {
|
|
7
|
+
const a = setTimeout(() => t("image loading timeout"), m);
|
|
9
8
|
e.addEventListener("load", () => {
|
|
10
|
-
clearTimeout(
|
|
9
|
+
clearTimeout(a), !e.complete || r ? e.decode().then(() => i()) : i();
|
|
11
10
|
}), e.addEventListener("error", () => {
|
|
12
|
-
clearTimeout(
|
|
11
|
+
clearTimeout(a), t("image error");
|
|
13
12
|
});
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
d as waitForImageReady
|
|
18
17
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
var r, l;
|
|
1
|
+
const l = (o) => !!o.updateComplete, a = Promise.resolve(), n = async (o) => {
|
|
3
2
|
const e = await o;
|
|
4
|
-
(
|
|
5
|
-
const
|
|
3
|
+
(e.parentElement ?? e).querySelectorAll?.("[defer-hydration]").forEach((t) => t.removeAttribute("defer-hydration"));
|
|
4
|
+
const r = [e, ...e.querySelectorAll("*")].filter(l).map((t) => [
|
|
6
5
|
t.updateComplete,
|
|
7
|
-
t.hydrationComplete ??
|
|
8
|
-
|
|
6
|
+
t.hydrationComplete ?? a,
|
|
7
|
+
n(t.renderRoot)
|
|
9
8
|
]).flat(1 / 0);
|
|
10
|
-
return await Promise.all(
|
|
9
|
+
return await Promise.all(r), e;
|
|
11
10
|
};
|
|
12
11
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
l as isReactiveElement,
|
|
13
|
+
n as waitForLitRender
|
|
15
14
|
};
|
package/custom-elements.json
CHANGED
|
@@ -40114,12 +40114,12 @@
|
|
|
40114
40114
|
{
|
|
40115
40115
|
"kind": "variable",
|
|
40116
40116
|
"name": "FORMAT_DATE",
|
|
40117
|
-
"default": "/(
|
|
40117
|
+
"default": "/(0?[1-9]|[12][0-9]|3[01])[.,\\\\/\\-\\s](0?[1-9]|1[0-2])[.,\\\\/\\-\\s]([0-9]{1,4}$)?/"
|
|
40118
40118
|
},
|
|
40119
40119
|
{
|
|
40120
40120
|
"kind": "variable",
|
|
40121
40121
|
"name": "ISO8601_FORMAT_DATE",
|
|
40122
|
-
"default": "/^(
|
|
40122
|
+
"default": "/^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-3][0-9])$/"
|
|
40123
40123
|
},
|
|
40124
40124
|
{
|
|
40125
40125
|
"kind": "class",
|
|
@@ -22,12 +22,11 @@ let se = (() => {
|
|
|
22
22
|
let a = [L("sbb-date-input")], s, i = [], n, g = J(j), y = [], b, A, k = [], x = [], F, w = [], S = [], V, E, I = [], C = [];
|
|
23
23
|
return l = class extends g {
|
|
24
24
|
constructor() {
|
|
25
|
-
var e, t;
|
|
26
25
|
super();
|
|
27
26
|
f(this, h);
|
|
28
27
|
f(this, u);
|
|
29
28
|
f(this, c);
|
|
30
|
-
this._valueAsDate = d(this, y), o(this, h, d(this, k, null)), o(this, u, (d(this, x), d(this, w, null))), o(this, c, (d(this, S), d(this, I, "short"))), this._valueCache = d(this, C), this._dateAdapter =
|
|
29
|
+
this._valueAsDate = d(this, y), o(this, h, d(this, k, null)), o(this, u, (d(this, x), d(this, w, null))), o(this, c, (d(this, S), d(this, I, "short"))), this._valueCache = d(this, C), this._dateAdapter = G().datetime?.dateAdapter ?? R, this._placeholderMutable = !1, this._dateFilter = () => !0, this.addEventListener?.("change", () => this._updateValueDateFormat(), { capture: !0 });
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* The value of the date input. Reflects the current text value
|
|
@@ -114,8 +113,7 @@ let se = (() => {
|
|
|
114
113
|
this.internals.setFormValue(e, this.value);
|
|
115
114
|
}
|
|
116
115
|
_tryParseValue(e = this.value) {
|
|
117
|
-
|
|
118
|
-
((t = this._valueCache) == null ? void 0 : t[0]) !== e && (this._valueAsDate = this._dateAdapter.parse(e), this._valueCache = [e, this._valueAsDate]);
|
|
116
|
+
this._valueCache?.[0] !== e && (this._valueAsDate = this._dateAdapter.parse(e), this._valueCache = [e, this._valueAsDate]);
|
|
119
117
|
}
|
|
120
118
|
_updateValueDateFormat() {
|
|
121
119
|
if (this.valueAsDate) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const i = class i {
|
|
2
|
-
constructor(
|
|
3
|
-
this._host =
|
|
2
|
+
constructor(s) {
|
|
3
|
+
this._host = s, this.hosts = /* @__PURE__ */ new Set(), this.controls = /* @__PURE__ */ new Set();
|
|
4
4
|
}
|
|
5
|
-
static connect(
|
|
6
|
-
let
|
|
7
|
-
return
|
|
5
|
+
static connect(s) {
|
|
6
|
+
let t = this._registry.get(s);
|
|
7
|
+
return t || (t = new i(s), this._registry.set(s, t)), t;
|
|
8
8
|
}
|
|
9
|
-
updateControls(
|
|
10
|
-
Array.from(this.controls).filter((
|
|
9
|
+
updateControls(s) {
|
|
10
|
+
Array.from(this.controls).filter((t) => t.datepicker === s).forEach((t) => t.requestUpdate());
|
|
11
11
|
}
|
|
12
12
|
deleteIfEmpty() {
|
|
13
13
|
!this.controls.size && !this.hosts.size && this.constructor._registry.delete(this._host);
|
|
@@ -16,40 +16,37 @@ const i = class i {
|
|
|
16
16
|
i._registry = /* @__PURE__ */ new WeakMap();
|
|
17
17
|
let o = i;
|
|
18
18
|
class c {
|
|
19
|
-
constructor(
|
|
20
|
-
this._host =
|
|
19
|
+
constructor(s) {
|
|
20
|
+
this._host = s, this._host.addController(this);
|
|
21
21
|
}
|
|
22
22
|
hostConnected() {
|
|
23
23
|
this._context = o.connect(this._host.getRootNode()), this._context.hosts.add(this._host);
|
|
24
|
-
const
|
|
25
|
-
for (const
|
|
26
|
-
const e =
|
|
27
|
-
(e ? e === this._host.id :
|
|
24
|
+
const s = this._host.closest("sbb-form-field");
|
|
25
|
+
for (const t of this._context.controls) {
|
|
26
|
+
const e = t.getAttribute("datepicker") ?? t.getAttribute("date-picker");
|
|
27
|
+
(e ? e === this._host.id : t.closest("sbb-form-field") === s) && (t.datepicker = this._host);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
hostDisconnected() {
|
|
31
|
-
|
|
32
|
-
(t = this._context) == null || t.hosts.delete(this._host), (s = this._context) == null || s.deleteIfEmpty();
|
|
31
|
+
this._context?.hosts.delete(this._host), this._context?.deleteIfEmpty();
|
|
33
32
|
}
|
|
34
33
|
updateControls() {
|
|
35
|
-
|
|
36
|
-
(t = this._context) == null || t.updateControls(this._host);
|
|
34
|
+
this._context?.updateControls(this._host);
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
37
|
class n {
|
|
40
|
-
constructor(
|
|
41
|
-
this._host =
|
|
38
|
+
constructor(s) {
|
|
39
|
+
this._host = s, this._host.addController(this);
|
|
42
40
|
}
|
|
43
41
|
hostConnected() {
|
|
44
42
|
this._context = o.connect(this._host.getRootNode()), this._context.controls.add(this._host);
|
|
45
|
-
const
|
|
46
|
-
let
|
|
43
|
+
const s = this._host.closest("sbb-form-field");
|
|
44
|
+
let t = null;
|
|
47
45
|
const e = this._host.getAttribute("datepicker") ?? this._host.getAttribute("date-picker");
|
|
48
|
-
e ?
|
|
46
|
+
e ? t = Array.from(this._context.hosts).find((h) => h.id === e) ?? null : t = Array.from(this._context.hosts).find((h) => h.closest("sbb-form-field") === s) ?? null, t && (this._host.datepicker = t);
|
|
49
47
|
}
|
|
50
48
|
hostDisconnected() {
|
|
51
|
-
|
|
52
|
-
(t = this._context) == null || t.controls.delete(this._host), (s = this._context) == null || s.deleteIfEmpty();
|
|
49
|
+
this._context?.controls.delete(this._host), this._context?.deleteIfEmpty();
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
export {
|
|
@@ -1,105 +1,101 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var m = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { html as
|
|
8
|
-
import { property as
|
|
9
|
-
import { SbbButtonBaseElement as
|
|
10
|
-
import { readConfig as
|
|
11
|
-
import { SbbLanguageController as
|
|
12
|
-
import { defaultDateAdapter as
|
|
13
|
-
import { i18nToday as
|
|
14
|
-
import { SbbNegativeMixin as
|
|
15
|
-
import { SbbDatepickerAssociationControlController as
|
|
4
|
+
var f = (e, i, s) => i.has(e) || m("Cannot " + s);
|
|
5
|
+
var k = (e, i, s) => (f(e, i, "read from private field"), s ? s.call(e) : i.get(e)), _ = (e, i, s) => i.has(e) ? m("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), o = (e, i, s, l) => (f(e, i, "write to private field"), l ? l.call(e, s) : i.set(e, s), s);
|
|
6
|
+
import { __esDecorate as c, __runInitializers as u } from "tslib";
|
|
7
|
+
import { html as g } from "lit";
|
|
8
|
+
import { property as A, state as D } from "lit/decorators.js";
|
|
9
|
+
import { SbbButtonBaseElement as v } from "../../core/base-elements.js";
|
|
10
|
+
import { readConfig as y } from "../../core/config.js";
|
|
11
|
+
import { SbbLanguageController as E } from "../../core/controllers.js";
|
|
12
|
+
import { defaultDateAdapter as w } from "../../core/datetime.js";
|
|
13
|
+
import { i18nToday as C } from "../../core/i18n.js";
|
|
14
|
+
import { SbbNegativeMixin as S } from "../../core/mixins.js";
|
|
15
|
+
import { SbbDatepickerAssociationControlController as P } from "./datepicker-association-controllers.js";
|
|
16
16
|
import "../../icon.js";
|
|
17
|
-
const
|
|
18
|
-
let
|
|
17
|
+
const x = (e) => e?.localName === "sbb-date-input";
|
|
18
|
+
let M = (() => {
|
|
19
19
|
var n, d;
|
|
20
|
-
let
|
|
21
|
-
return d = class extends
|
|
20
|
+
let e = S(v), i = [], s, l, h, p = [], b = [];
|
|
21
|
+
return d = class extends e {
|
|
22
22
|
constructor() {
|
|
23
|
-
var e, t;
|
|
24
23
|
super();
|
|
25
|
-
|
|
26
|
-
this._datepicker =
|
|
24
|
+
_(this, n);
|
|
25
|
+
this._datepicker = u(this, i), o(this, n, u(this, p, null)), this._disabled = (u(this, b), !1), this._inputDisabled = !1, this.datePickerElement = null, this._dateAdapter = y().datetime?.dateAdapter ?? w, this._language = new E(this), this.addController(new P(this)), this.addEventListener?.("click", () => this._handleClick());
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
28
|
* Datepicker reference.
|
|
30
29
|
* @internal
|
|
31
30
|
* @deprecated Use property/attribute `datepicker` instead.
|
|
32
31
|
*/
|
|
33
|
-
set datePicker(
|
|
34
|
-
this.datepicker =
|
|
32
|
+
set datePicker(t) {
|
|
33
|
+
this.datepicker = t;
|
|
35
34
|
}
|
|
36
35
|
/** @internal */
|
|
37
36
|
get datePicker() {
|
|
38
37
|
return this.datepicker;
|
|
39
38
|
}
|
|
40
39
|
/** Datepicker reference. */
|
|
41
|
-
set datepicker(
|
|
42
|
-
|
|
43
|
-
this._datepicker = typeof e == "string" ? (
|
|
40
|
+
set datepicker(t) {
|
|
41
|
+
this._datepicker = typeof t == "string" ? (
|
|
44
42
|
// In case the value is a string, it should be treated as an id reference
|
|
45
43
|
// and attempt to be resolved.
|
|
46
|
-
|
|
47
|
-
) :
|
|
44
|
+
this.getRootNode?.()?.querySelector?.(`#${t}`) ?? null
|
|
45
|
+
) : t, this.datePickerElement = this._datepicker;
|
|
48
46
|
}
|
|
49
47
|
get datepicker() {
|
|
50
48
|
return this._datepicker ?? null;
|
|
51
49
|
}
|
|
52
50
|
/** The boundary date (min/max) as set in the date-picker's input. */
|
|
53
51
|
get boundary() {
|
|
54
|
-
return
|
|
52
|
+
return k(this, n);
|
|
55
53
|
}
|
|
56
|
-
set boundary(
|
|
57
|
-
|
|
54
|
+
set boundary(t) {
|
|
55
|
+
o(this, n, t);
|
|
58
56
|
}
|
|
59
57
|
connectedCallback() {
|
|
60
|
-
var t, i;
|
|
61
58
|
super.connectedCallback();
|
|
62
|
-
const
|
|
63
|
-
|
|
59
|
+
const t = this.closest?.("sbb-form-field") ?? this.closest?.("[data-form-field]");
|
|
60
|
+
t && (this.negative = t.hasAttribute("negative"));
|
|
64
61
|
}
|
|
65
|
-
willUpdate(
|
|
66
|
-
|
|
67
|
-
if (super.willUpdate(e), !this.datepicker || !this._dateAdapter.isValid(this.datepicker.valueAsDate)) {
|
|
62
|
+
willUpdate(t) {
|
|
63
|
+
if (super.willUpdate(t), !this.datepicker || !this._dateAdapter.isValid(this.datepicker.valueAsDate)) {
|
|
68
64
|
this._disabled = !0, this.setAttribute("aria-label", this.i18nOffBoundaryDay[this._language.current]), this._setDisabledRenderAttributes();
|
|
69
65
|
return;
|
|
70
66
|
}
|
|
71
|
-
const
|
|
72
|
-
this._disabled = this._dateAdapter.compareDate(
|
|
73
|
-
const
|
|
74
|
-
this.setAttribute("aria-label", this.i18nSelectOffBoundaryDay(
|
|
67
|
+
const a = this.findAvailableDate(this.datepicker.valueAsDate);
|
|
68
|
+
this._disabled = this._dateAdapter.compareDate(a, this.datepicker.valueAsDate) === 0, this._inputDisabled = (this.datepicker.inputElement?.disabled || this.datepicker.inputElement?.readOnly) ?? !0, this._setDisabledRenderAttributes();
|
|
69
|
+
const r = this._dateAdapter.compareDate(this.datepicker.now, this.datepicker.valueAsDate) === 0 ? C[this._language.current].toLowerCase() : this._dateAdapter.getAccessibilityFormatDate(this.datepicker.valueAsDate);
|
|
70
|
+
this.setAttribute("aria-label", this.i18nSelectOffBoundaryDay(r)[this._language.current]);
|
|
75
71
|
}
|
|
76
72
|
_handleClick() {
|
|
77
73
|
if (!this.datepicker || this.hasAttribute("data-disabled"))
|
|
78
74
|
return;
|
|
79
|
-
const
|
|
80
|
-
if (this._dateAdapter.compareDate(
|
|
81
|
-
const
|
|
82
|
-
|
|
75
|
+
const t = this.datepicker.valueAsDate ?? this.datepicker.now, a = this.findAvailableDate(t);
|
|
76
|
+
if (this._dateAdapter.compareDate(a, t) !== 0) {
|
|
77
|
+
const r = this.datepicker.inputElement;
|
|
78
|
+
x(r) ? (r.valueAsDate = a, r.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })), r.dispatchEvent(new Event("blur", { composed: !0 }))) : this.datepicker.valueAsDate = a;
|
|
83
79
|
}
|
|
84
80
|
}
|
|
85
81
|
_setDisabledRenderAttributes() {
|
|
86
|
-
const
|
|
87
|
-
this.toggleAttribute("data-disabled",
|
|
82
|
+
const t = this._disabled || this._inputDisabled;
|
|
83
|
+
this.toggleAttribute("data-disabled", t), t ? (this.setAttribute("aria-disabled", "true"), this.removeAttribute("tabindex")) : (this.removeAttribute("aria-disabled"), this.setAttribute("tabindex", "0"));
|
|
88
84
|
}
|
|
89
85
|
renderTemplate() {
|
|
90
|
-
return
|
|
86
|
+
return g`<sbb-icon name=${this.iconName}></sbb-icon>`;
|
|
91
87
|
}
|
|
92
88
|
}, n = new WeakMap(), (() => {
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
} }, metadata:
|
|
97
|
-
|
|
98
|
-
} }, metadata:
|
|
99
|
-
|
|
100
|
-
} }, metadata:
|
|
89
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
90
|
+
s = [A({ attribute: "date-picker" })], l = [A({ attribute: "datepicker" })], h = [D()], c(d, null, s, { kind: "setter", name: "datePicker", static: !1, private: !1, access: { has: (a) => "datePicker" in a, set: (a, r) => {
|
|
91
|
+
a.datePicker = r;
|
|
92
|
+
} }, metadata: t }, null, i), c(d, null, l, { kind: "setter", name: "datepicker", static: !1, private: !1, access: { has: (a) => "datepicker" in a, set: (a, r) => {
|
|
93
|
+
a.datepicker = r;
|
|
94
|
+
} }, metadata: t }, null, i), c(d, null, h, { kind: "accessor", name: "boundary", static: !1, private: !1, access: { has: (a) => "boundary" in a, get: (a) => a.boundary, set: (a, r) => {
|
|
95
|
+
a.boundary = r;
|
|
96
|
+
} }, metadata: t }, p, b), t && Object.defineProperty(d, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
101
97
|
})(), d;
|
|
102
98
|
})();
|
|
103
99
|
export {
|
|
104
|
-
|
|
100
|
+
M as SbbDatepickerButton
|
|
105
101
|
};
|