@sbb-esta/lyne-elements 3.0.0 → 3.1.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/autocomplete/autocomplete-base-element.d.ts +1 -1
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +3 -1
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -4
- package/button/accent-button/accent-button.component.d.ts +2 -1
- package/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/button/accent-button-link/accent-button-link.component.d.ts +2 -1
- package/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
- package/button/accent-button-static/accent-button-static.component.d.ts +2 -1
- package/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
- package/button/button/button.component.d.ts +2 -1
- package/button/button/button.component.d.ts.map +1 -1
- package/button/button-link/button-link.component.d.ts +2 -1
- package/button/button-link/button-link.component.d.ts.map +1 -1
- package/button/button-static/button-static.component.d.ts +2 -1
- package/button/button-static/button-static.component.d.ts.map +1 -1
- package/button/common/button-common.d.ts +1 -0
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common/button-common.js +52 -28
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.d.ts +1 -0
- package/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/button/mini-button/mini-button.component.js +20 -14
- package/button/secondary-button/secondary-button.component.d.ts +2 -1
- package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
- package/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
- package/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
- package/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
- package/button/transparent-button/transparent-button.component.d.ts +2 -1
- package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
- package/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
- package/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
- package/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
- package/button.js +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.js +4 -4
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/core/a11y/live-announcer.d.ts.map +1 -1
- package/core/a11y/live-announcer.js +10 -8
- package/core/base-elements/link-base-element.d.ts +1 -0
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements/link-base-element.js +18 -17
- package/core/base-elements/open-close-base-element.d.ts +3 -3
- package/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/core/config/config.d.ts +5 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/mixins/selection-panel-mixin.d.ts +23 -0
- package/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/core/mixins/selection-panel-mixin.js +87 -0
- package/core/mixins.d.ts +1 -0
- package/core/mixins.d.ts.map +1 -1
- package/core/mixins.js +12 -10
- package/core/styles/core.scss +42 -7
- package/core.css +22 -1
- package/custom-elements.json +22060 -19260
- package/datepicker/datepicker/datepicker.component.d.ts +7 -3
- package/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/datepicker/datepicker/datepicker.component.js +31 -25
- package/development/accordion/accordion.component.js +1 -1
- package/development/action-group/action-group.component.js +1 -1
- package/development/alert/alert/alert.component.js +1 -1
- package/development/alert/alert-group/alert-group.component.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +4 -2
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +1 -1
- 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 +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
- package/development/button/accent-button/accent-button.component.d.ts +2 -1
- package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.d.ts +2 -1
- package/development/button/accent-button-link/accent-button-link.component.d.ts.map +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.d.ts +2 -1
- package/development/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.d.ts +2 -1
- package/development/button/button/button.component.d.ts.map +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.d.ts +2 -1
- package/development/button/button-link/button-link.component.d.ts.map +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.d.ts +2 -1
- package/development/button/button-static/button-static.component.d.ts.map +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.d.ts +1 -0
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common/button-common.js +42 -5
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.d.ts +1 -0
- package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/development/button/mini-button/mini-button.component.js +41 -2
- package/development/button/mini-button-group/mini-button-group.component.js +1 -1
- package/development/button/secondary-button/secondary-button.component.d.ts +2 -1
- package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts.map +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.d.ts +2 -1
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.d.ts +2 -1
- package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts.map +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.d.ts +2 -1
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.js +1 -1
- package/development/card/card/card.component.js +1 -1
- package/development/card/card-badge/card-badge.component.js +1 -1
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/card/card-link/card-link.component.js +1 -1
- package/development/card/common/card-action-common.js +1 -1
- package/development/checkbox/checkbox/checkbox.component.js +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.js +2 -2
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +1 -1
- package/development/checkbox/common/checkbox-common.js +1 -1
- package/development/chip/chip/chip.component.js +1 -1
- package/development/chip/chip-group/chip-group.component.js +1 -1
- package/development/chip-label/chip-label.component.js +1 -1
- package/development/clock/clock.component.js +1 -1
- package/development/container/container/container.component.js +1 -1
- package/development/container/sticky-bar/sticky-bar.component.js +1 -1
- package/development/core/a11y/arrow-navigation.js +1 -1
- package/development/core/a11y/focus-trap-controller.js +1 -1
- package/development/core/a11y/focus-visible-within-controller.js +1 -1
- package/development/core/a11y/input-modality-detector.js +1 -1
- package/development/core/a11y/interactivity-checker.js +1 -1
- package/development/core/a11y/live-announcer.d.ts.map +1 -1
- package/development/core/a11y/live-announcer.js +10 -6
- package/development/core/base-elements/action-base-element.js +1 -1
- package/development/core/base-elements/button-base-element.js +1 -1
- package/development/core/base-elements/link-base-element.d.ts +1 -0
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements/link-base-element.js +3 -1
- package/development/core/base-elements/open-close-base-element.d.ts +3 -3
- package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/development/core/base-elements/open-close-base-element.js +1 -1
- package/development/core/config/config.d.ts +5 -0
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/escapable-overlay-controller.js +1 -1
- package/development/core/controllers/id-reference-controller.js +1 -1
- package/development/core/controllers/inert-controller.js +1 -1
- package/development/core/controllers/language-controller.js +1 -1
- package/development/core/controllers/media-matchers-controller.js +1 -1
- package/development/core/controllers/slot-state-controller.js +1 -1
- package/development/core/datetime/date-adapter.js +1 -1
- package/development/core/datetime/native-date-adapter.js +1 -1
- package/development/core/decorators/force-type.js +1 -1
- package/development/core/decorators/get-override.js +1 -1
- package/development/core/decorators/handle-distinct-change.js +1 -1
- package/development/core/decorators/host-attributes.js +1 -1
- package/development/core/decorators/id-reference.js +1 -1
- package/development/core/decorators/omit-empty-converter.js +1 -1
- package/development/core/decorators/plain-date.js +1 -1
- package/development/core/decorators/slot-state.js +1 -1
- package/development/core/dom/animation.js +1 -1
- package/development/core/dom/breakpoint.js +1 -1
- package/development/core/dom/host-context.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/form-element-handlers.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/element-internals-mixin.js +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.js +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +1 -1
- package/development/core/mixins/form-associated-mixin.js +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.js +1 -1
- package/development/core/mixins/hydration-mixin.js +1 -1
- package/development/core/mixins/named-slot-list-mixin.js +1 -1
- package/development/core/mixins/negative-mixin.js +1 -1
- package/development/core/mixins/panel-mixin.js +1 -1
- package/development/core/mixins/readonly-mixin.js +1 -1
- package/development/core/mixins/required-mixin.js +1 -1
- package/development/core/mixins/selection-panel-mixin.d.ts +23 -0
- package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/development/core/mixins/selection-panel-mixin.js +120 -0
- package/development/core/mixins/update-scheduler-mixin.js +1 -1
- package/development/core/mixins.d.ts +1 -0
- package/development/core/mixins.d.ts.map +1 -1
- package/development/core/mixins.js +7 -5
- package/development/core/overlay/overlay-option-panel.js +1 -1
- package/development/core/overlay/overlay-trigger-attributes.js +1 -1
- package/development/core/overlay/position.js +1 -1
- package/development/core/testing/event-spy.js +1 -1
- package/development/core/testing/mocha-extensions.js +1 -1
- package/development/core/testing/wait-for-condition.js +1 -1
- package/development/core/testing/wait-for-image-ready.js +1 -1
- package/development/date-input/date-input.component.js +1 -1
- package/development/datepicker/common/datepicker-button.js +1 -1
- package/development/datepicker/datepicker/datepicker.component.d.ts +7 -3
- package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/development/datepicker/datepicker/datepicker.component.js +14 -3
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +1 -1
- package/development/dialog/dialog/dialog.component.d.ts +4 -2
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +61 -11
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +10 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +53 -0
- package/development/dialog/dialog-close-button.d.ts +5 -0
- package/development/dialog/dialog-close-button.d.ts.map +1 -0
- package/development/dialog/dialog-close-button.js +5 -0
- package/development/dialog/dialog-content/dialog-content.component.js +2 -2
- package/development/dialog/dialog-title/dialog-title.component.d.ts +1 -0
- package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +6 -2
- package/development/dialog.d.ts +1 -0
- package/development/dialog.d.ts.map +1 -1
- package/development/dialog.js +3 -1
- package/development/divider/divider.component.js +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -2
- package/development/file-selector/common/file-selector-common.js +1 -1
- 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 +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.js +1 -1
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +1 -1
- package/development/footer/footer.component.js +1 -1
- package/development/form-error/form-error.component.js +1 -1
- package/development/form-field/form-field/form-field.component.d.ts +23 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +39 -12
- package/development/form-field/form-field-clear/form-field-clear.component.js +1 -1
- package/development/form-field/form-field.js +2 -1
- package/development/form-field.js +2 -1
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/header/header.component.js +1 -1
- package/development/header/header-environment/header-environment.component.d.ts +23 -0
- package/development/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/development/header/header-environment/header-environment.component.js +111 -0
- package/development/header/header-environment.d.ts +5 -0
- package/development/header/header-environment.d.ts.map +1 -0
- package/development/header/header-environment.js +5 -0
- package/development/icon/icon-base.js +1 -1
- package/development/icon/icon-name-mixin.js +1 -1
- package/development/icon/icon-request.js +1 -1
- package/development/icon/icon-validate.js +1 -1
- package/development/icon/icon.component.js +1 -1
- package/development/image/image.component.js +1 -1
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link-common-DPLJx5Uo.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/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 +1 -1
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.d.ts +1 -0
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +2 -2
- package/development/menu/menu-button/menu-button.component.d.ts +1 -0
- package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/development/menu/menu-button/menu-button.component.js +2 -3
- package/development/menu/menu-link/menu-link.component.d.ts +1 -0
- package/development/menu/menu-link/menu-link.component.d.ts.map +1 -1
- package/development/menu/menu-link/menu-link.component.js +5 -1
- package/development/message/message.component.js +1 -1
- package/development/navigation/common/navigation-action-common.js +1 -1
- package/development/navigation/navigation/navigation.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +1 -1
- package/development/notification/notification.component.js +1 -1
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +8 -6
- package/development/option/optgroup/optgroup.component.js +1 -1
- package/development/option/option/option-base-element.d.ts +1 -1
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +1 -1
- package/development/option/option/option.component.d.ts +1 -1
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +1 -1
- package/development/option/option-hint/option-hint.component.d.ts +18 -0
- package/development/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/development/option/option-hint/option-hint.component.js +74 -0
- package/development/option/option-hint.d.ts +5 -0
- package/development/option/option-hint.d.ts.map +1 -0
- package/development/option/option-hint.js +5 -0
- package/development/option.d.ts +1 -0
- package/development/option.d.ts.map +1 -1
- package/development/option.js +4 -2
- package/development/overlay/overlay-base-element.d.ts +1 -0
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +3 -3
- package/development/overlay/overlay.component.js +1 -1
- 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 +1 -1
- package/development/popover/popover/popover.component.d.ts +19 -4
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +44 -32
- package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/development/radio-button/common/radio-button-common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.js +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.js +1 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +7 -7
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +2 -2
- package/development/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/development/selection-action-panel/selection-action-panel.component.js +105 -0
- package/development/selection-action-panel.d.ts +5 -0
- package/development/selection-action-panel.d.ts.map +1 -0
- package/development/selection-action-panel.js +5 -0
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +26 -106
- 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 +1 -1
- 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 +1 -1
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +1 -1
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/signet/signet.component.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/slider/slider.component.js +1 -1
- package/development/status/status.component.js +1 -1
- package/development/stepper/step/step.component.d.ts +1 -1
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +1 -1
- package/development/stepper/step-label/step-label.component.js +1 -1
- package/development/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/development/stepper/stepper/stepper.component.js +1 -1
- package/development/table/table-wrapper/table-wrapper.component.js +1 -1
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +1 -1
- package/development/tag/tag-group/tag-group.component.js +1 -1
- 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/time-input/time-input.component.js +1 -1
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/development/title/title-base.js +1 -1
- package/development/toast/toast.component.js +1 -1
- package/development/toggle/toggle/toggle.component.js +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +1 -1
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +1 -1
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/{transparent-button-Ddb_s0a0.js → transparent-button-Dun6bh2G.js} +89 -8
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/dialog/dialog/dialog.component.d.ts +4 -2
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +63 -56
- package/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
- package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/dialog/dialog-actions/dialog-actions.component.js +13 -9
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/dialog/dialog-close-button/dialog-close-button.component.js +31 -0
- package/dialog/dialog-close-button.d.ts +5 -0
- package/dialog/dialog-close-button.d.ts.map +1 -0
- package/dialog/dialog-close-button.js +4 -0
- package/dialog/dialog-content/dialog-content.component.js +6 -6
- package/dialog/dialog-title/dialog-title.component.d.ts +1 -0
- package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/dialog/dialog-title/dialog-title.component.js +11 -8
- package/dialog.d.ts +1 -0
- package/dialog.d.ts.map +1 -1
- package/dialog.js +6 -4
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +7 -7
- package/form-field/form-field/form-field.component.d.ts +23 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +52 -41
- package/form-field/form-field.js +3 -2
- package/form-field.js +5 -4
- package/header/header-environment/header-environment.component.d.ts +23 -0
- package/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/header/header-environment/header-environment.component.js +37 -0
- package/header/header-environment.d.ts +5 -0
- package/header/header-environment.d.ts.map +1 -0
- package/header/header-environment.js +4 -0
- package/index.d.ts +8 -0
- package/index.js +8 -0
- package/menu/menu/menu.component.d.ts +1 -0
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/menu/menu-button/menu-button.component.d.ts +1 -0
- package/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/menu/menu-button/menu-button.component.js +8 -8
- package/menu/menu-link/menu-link.component.d.ts +1 -0
- package/menu/menu-link/menu-link.component.d.ts.map +1 -1
- package/menu/menu-link/menu-link.component.js +9 -6
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup/optgroup-base-element.js +19 -17
- package/option/option/option-base-element.d.ts +1 -1
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option.component.d.ts +1 -1
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option-hint/option-hint.component.d.ts +18 -0
- package/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/option/option-hint/option-hint.component.js +27 -0
- package/option/option-hint.d.ts +5 -0
- package/option/option-hint.d.ts.map +1 -0
- package/option/option-hint.js +4 -0
- package/option.d.ts +1 -0
- package/option.d.ts.map +1 -1
- package/option.js +5 -3
- package/overlay/overlay-base-element.d.ts +1 -0
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay-base-element.js +21 -21
- package/package.json +23 -3
- package/popover/popover/popover.component.d.ts +19 -4
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +109 -96
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/radio-button/radio-button-panel/radio-button-panel.component.js +9 -9
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +1 -1
- package/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/selection-action-panel/selection-action-panel.component.js +34 -0
- package/selection-action-panel.d.ts +5 -0
- package/selection-action-panel.d.ts.map +1 -0
- package/selection-action-panel.js +4 -0
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +45 -102
- package/standard-theme.css +22 -1
- package/stepper/step/step.component.d.ts +1 -1
- package/stepper/step/step.component.d.ts.map +1 -1
- package/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/transparent-button-rf30m88X.js +9 -0
- package/transparent-button-BlbvexCb.js +0 -9
|
@@ -66,7 +66,7 @@ export declare abstract class SbbAutocompleteBaseElement<T = string> extends Sbb
|
|
|
66
66
|
disconnectedCallback(): void;
|
|
67
67
|
requestUpdate(name?: PropertyKey, oldValue?: unknown, options?: PropertyDeclaration): void;
|
|
68
68
|
/** When an option is selected, update the input value and close the autocomplete. */
|
|
69
|
-
protected onOptionSelected(event:
|
|
69
|
+
protected onOptionSelected(event: Event): void;
|
|
70
70
|
private _handleSlotchange;
|
|
71
71
|
/**
|
|
72
72
|
* If the 'input' is focused and there's a change in the number of options, open the autocomplete
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAWnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;;AAUzD,8BAAsB,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,+BAEpE;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;;;;OAOG;IACH,SAEgB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAElD;;;;;;OAMG;IACH,SAEgB,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAExD,+DAA+D;IAC/D,SAEgB,iBAAiB,EAAE,OAAO,CAAS;IAEnD,2FAA2F;IAC3F,SAEgB,qBAAqB,EAAE,OAAO,CAAS;IAEvD,wFAAwF;IACxF,SACgB,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IAElE;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,qEAAqE;IACrE,IAAW,aAAa,IAAI,WAAW,GAAG,IAAI,CAO7C;IAED,mCAAmC;IACnC,IAAW,cAAc,IAAI,gBAAgB,GAAG,IAAI,CAEnD;IACD,OAAO,CAAC,eAAe,CAAC,CAA0B;IAElD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IACrC,OAAO,CAAC,qBAAqB,CAQ1B;IACH,uFAAuF;IACvF,OAAO,CAAC,yBAAyB,CAOxB;IACT,OAAO,CAAC,QAAQ,CAAe;IAC/B,OAAO,CAAC,gBAAgB,CAAe;IACvC,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,0BAA0B,CAAmB;IACrD,OAAO,CAAC,yBAAyB,CAAkB;IACnD,OAAO,CAAC,2BAA2B,CAA2C;IAE9E,SAAS,CAAC,QAAQ,KAAK,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5D,SAAS,CAAC,QAAQ,CAAC,YAAY,IAAI,IAAI;IACvC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IACxE,SAAS,CAAC,QAAQ,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAC7E,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAC/D,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IACnE,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,IAAI;IAE7C,8BAA8B;IACvB,IAAI,IAAI,IAAI;IAkCnB,+BAA+B;IACxB,KAAK,IAAI,IAAI;IAmBpB,OAAO,CAAC,wBAAwB;IAIhB,iBAAiB,IAAI,IAAI;cAkBtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAQzD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAK9D,oBAAoB,IAAI,IAAI;IAO5B,aAAa,CAC3B,IAAI,CAAC,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;IAaP,qFAAqF;IACrF,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"autocomplete-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAWnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;;AAUzD,8BAAsB,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,+BAEpE;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;;;;OAOG;IACH,SAEgB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAElD;;;;;;OAMG;IACH,SAEgB,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAExD,+DAA+D;IAC/D,SAEgB,iBAAiB,EAAE,OAAO,CAAS;IAEnD,2FAA2F;IAC3F,SAEgB,qBAAqB,EAAE,OAAO,CAAS;IAEvD,wFAAwF;IACxF,SACgB,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IAElE;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,qEAAqE;IACrE,IAAW,aAAa,IAAI,WAAW,GAAG,IAAI,CAO7C;IAED,mCAAmC;IACnC,IAAW,cAAc,IAAI,gBAAgB,GAAG,IAAI,CAEnD;IACD,OAAO,CAAC,eAAe,CAAC,CAA0B;IAElD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IACrC,OAAO,CAAC,qBAAqB,CAQ1B;IACH,uFAAuF;IACvF,OAAO,CAAC,yBAAyB,CAOxB;IACT,OAAO,CAAC,QAAQ,CAAe;IAC/B,OAAO,CAAC,gBAAgB,CAAe;IACvC,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,0BAA0B,CAAmB;IACrD,OAAO,CAAC,yBAAyB,CAAkB;IACnD,OAAO,CAAC,2BAA2B,CAA2C;IAE9E,SAAS,CAAC,QAAQ,KAAK,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5D,SAAS,CAAC,QAAQ,CAAC,YAAY,IAAI,IAAI;IACvC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IACxE,SAAS,CAAC,QAAQ,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAC7E,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAC/D,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IACnE,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,IAAI;IAE7C,8BAA8B;IACvB,IAAI,IAAI,IAAI;IAkCnB,+BAA+B;IACxB,KAAK,IAAI,IAAI;IAmBpB,OAAO,CAAC,wBAAwB;IAIhB,iBAAiB,IAAI,IAAI;cAkBtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAQzD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAK9D,oBAAoB,IAAI,IAAI;IAO5B,aAAa,CAC3B,IAAI,CAAC,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;IAaP,qFAAqF;IACrF,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAkC9C,OAAO,CAAC,iBAAiB;IAYzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAUzB,yEAAyE;IACzE,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,iBAAiB;IAyDzB,OAAO,CAAC,mBAAmB;IAe3B;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,sBAAsB;IAsC9B,OAAO,CAAC,oBAAoB,CAE1B;IAGF,OAAO,CAAC,qBAAqB,CAQ3B;IAEF,OAAO,CAAC,+BAA+B;IAcvC,kDAAkD;IAClD,OAAO,CAAC,iBAAiB;cAON,MAAM,IAAI,cAAc;CAyB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,iBAAiB,EAAE,WAAW,CAAC;YAAE,MAAM,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAA;SAAE,CAAC,CAAC;KACvE;CACF"}
|
|
@@ -147,7 +147,9 @@ let me = (() => {
|
|
|
147
147
|
const t = e.target;
|
|
148
148
|
if (this.options.filter((o) => o.id !== t.id && o.selected).forEach((o) => o.selected = !1), this.triggerElement) {
|
|
149
149
|
const o = this.displayWith?.(t.value) ?? t.value;
|
|
150
|
-
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set.call(this.triggerElement, o), this.triggerElement.dispatchEvent(new Event("change", { bubbles: !0 })), this.triggerElement.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), this.triggerElement.dispatchEvent(new CustomEvent("inputAutocomplete", {
|
|
150
|
+
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set.call(this.triggerElement, o), this.triggerElement.dispatchEvent(new Event("change", { bubbles: !0 })), this.triggerElement.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), this.triggerElement.dispatchEvent(new CustomEvent("inputAutocomplete", {
|
|
151
|
+
detail: { option: t }
|
|
152
|
+
})), this.triggerElement.focus();
|
|
151
153
|
}
|
|
152
154
|
this.close();
|
|
153
155
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.component.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete.component.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete.component.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAsB,gBAAgB,EAAwB,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAU5E;;;;;;;GAOG;AACH,qBAEM,sBAAsB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IAC5E,gBAAgC,IAAI,gBAAqC;IACzE,SAAS,CAAC,SAAS,SAAkC;IACrD,SAAS,CAAC,SAAS,SAAa;IAChC,OAAO,CAAC,gBAAgB,CAAM;IAE9B,SAAS,KAAK,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAE7C;;IAOD,SAAS,CAAC,YAAY,IAAI,IAAI;IAU9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqBpE,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAStD,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IAqB1D,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAUpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
|
|
@@ -17,7 +17,7 @@ let k = (() => {
|
|
|
17
17
|
super(), this.overlayId = `sbb-autocomplete-${++x}`, this.panelRole = "listbox", this._activeItemIndex = -1, this.addEventListener?.("optionselected", (t) => this.onOptionSelected(t));
|
|
18
18
|
}
|
|
19
19
|
syncNegative() {
|
|
20
|
-
this.querySelectorAll?.("sbb-divider").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-option, sbb-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
20
|
+
this.querySelectorAll?.("sbb-divider, sbb-option-hint").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-option, sbb-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
21
21
|
}
|
|
22
22
|
openedPanelKeyboardInteraction(t) {
|
|
23
23
|
if (this.state === "opened")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAWlF;;;;;;;GAOG;AACH,qBAEM,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IAChF,gBAAgC,IAAI,gBAAkC;IACtE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAM7D;IAED,OAAO,KAAK,IAAI,GAMf;;IAOD,SAAS,CAAC,YAAY,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"autocomplete-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAWlF;;;;;;;GAOG;AACH,qBAEM,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IAChF,gBAAgC,IAAI,gBAAkC;IACtE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAM7D;IAED,OAAO,KAAK,IAAI,GAMf;;IAOD,SAAS,CAAC,YAAY,IAAI,IAAI;IAY9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA0BpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IActD,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IA8B1D,OAAO,CAAC,+BAA+B;IAsCvC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAkBpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as p, __runInitializers as v } from "tslib";
|
|
2
2
|
import { customElement as f } from "lit/decorators.js";
|
|
3
3
|
import { SbbAutocompleteBaseElement as g } from "../../autocomplete.js";
|
|
4
4
|
import { getNextElementIndex as u } from "../../core/a11y.js";
|
|
@@ -21,7 +21,7 @@ let O = (() => {
|
|
|
21
21
|
super(), this.overlayId = `sbb-autocomplete-grid-${++_}`, this.panelRole = "grid", this._activeItemIndex = -1, this._activeColumnIndex = 0, this.addEventListener?.("optionselected", (t) => this.onOptionSelected(t));
|
|
22
22
|
}
|
|
23
23
|
syncNegative() {
|
|
24
|
-
this.querySelectorAll?.("sbb-divider, sbb-autocomplete-grid-button").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-autocomplete-grid-row, sbb-autocomplete-grid-option, sbb-autocomplete-grid-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
24
|
+
this.querySelectorAll?.("sbb-divider, sbb-autocomplete-grid-button, sbb-option-hint").forEach((t) => t.negative = this.negative), this.querySelectorAll?.("sbb-autocomplete-grid-row, sbb-autocomplete-grid-option, sbb-autocomplete-grid-optgroup").forEach((t) => t.toggleAttribute("data-negative", this.negative));
|
|
25
25
|
}
|
|
26
26
|
openedPanelKeyboardInteraction(t) {
|
|
27
27
|
if (this.state === "opened")
|
|
@@ -90,8 +90,8 @@ let O = (() => {
|
|
|
90
90
|
}
|
|
91
91
|
}, o = r, (() => {
|
|
92
92
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
93
|
-
|
|
94
|
-
})(), r.role = m ? "grid" : null,
|
|
93
|
+
p(null, l = { value: o }, h, { kind: "class", name: o.name, metadata: t }, null, n), o = l.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
94
|
+
})(), r.role = m ? "grid" : null, v(o, n), o;
|
|
95
95
|
})();
|
|
96
96
|
export {
|
|
97
97
|
O as SbbAutocompleteGridElement
|
|
@@ -5,7 +5,8 @@ declare const SbbAccentButtonElement_base: import('../../core/mixins.js').Abstra
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'accent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the accent-button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbAccentButtonElement extends SbbAccentButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button/accent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"accent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button/accent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,sBAAuB,SAAQ,2BAEpC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA0C;CACxF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbAccentButtonLinkElement_base: import('../../core/mixins.js').Ab
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the accent-button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbAccentButtonLinkElement extends SbbAccentButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-link/accent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE
|
|
1
|
+
{"version":3,"file":"accent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-link/accent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;;;GAMG;AACH,qBAEM,0BAA2B,SAAQ,+BAExC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA0C;CACxF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,wBAAwB,EAAE,0BAA0B,CAAC;KACtD;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbAccentButtonStaticElement_base: import('../../core/mixins.js').
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'accent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the accent-button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbAccentButtonStaticElement extends SbbAccentButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-static/accent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"accent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/accent-button-static/accent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,4BAA6B,SAAQ,iCAE1C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA0C;CACxF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0BAA0B,EAAE,4BAA4B,CAAC;KAC1D;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbButtonElement_base: import('../../core/mixins.js').AbstractCons
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'primary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbButtonElement extends SbbButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,gBAAiB,SAAQ,qBAE9B;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;CACzF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbButtonLinkElement_base: import('../../core/mixins.js').Abstract
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'primary' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbButtonLinkElement extends SbbButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-link/button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE
|
|
1
|
+
{"version":3,"file":"button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-link/button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;;;GAMG;AACH,qBAEM,oBAAqB,SAAQ,yBAElC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;CACzF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbButtonStaticElement_base: import('../../core/mixins.js').Abstra
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'primary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbButtonStaticElement extends SbbButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-static/button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/button-static/button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,sBAAuB,SAAQ,2BAEpC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;CACzF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -4,6 +4,7 @@ export type SbbButtonSize = 'l' | 'm' | 's';
|
|
|
4
4
|
declare const SbbButtonCommonElementMixinType_base: AbstractConstructor<import('../../core/mixins.js').SbbNegativeMixinType> & AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbActionBaseElement;
|
|
5
5
|
export declare class SbbButtonCommonElementMixinType extends SbbButtonCommonElementMixinType_base {
|
|
6
6
|
accessor size: SbbButtonSize;
|
|
7
|
+
accessor loading: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const SbbButtonCommonElementMixin: <T extends AbstractConstructor<SbbActionBaseElement>>(superClass: T) => AbstractConstructor<SbbButtonCommonElementMixinType> & T;
|
|
9
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-common.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/common/button-common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIhE,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;;AAE5C,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,oCAE5D;IACC,SAAgB,IAAI,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"button-common.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/common/button-common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIhE,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;;AAE5C,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,oCAE5D;IACC,SAAgB,IAAI,EAAE,aAAa,CAAC;IACpC,SAAgB,OAAO,EAAE,OAAO,CAAC;CAClC;AAGD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,mBAAmB,CAAC,oBAAoB,CAAC,EAC7F,YAAY,CAAC,KACZ,mBAAmB,CAAC,+BAA+B,CAAC,GAAG,CAyDzD,CAAC"}
|
|
@@ -1,51 +1,75 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
var I = (t, e, i) => e.has(t) || D("Cannot " + i);
|
|
5
|
+
var b = (t, e, i) => (I(t, e, "read from private field"), i ? i.call(t) : e.get(t)), u = (t, e, i) => e.has(t) ? D("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), h = (t, e, i, o) => (I(t, e, "write to private field"), o ? o.call(t, i) : e.set(t, i), i);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as c } from "tslib";
|
|
7
|
+
import { nothing as C } from "lit";
|
|
8
|
+
import { property as B } from "lit/decorators.js";
|
|
9
|
+
import { html as w } from "lit/static-html.js";
|
|
10
|
+
import { hostAttributes as E, slotState as k, forceType as M } from "../../core/decorators.js";
|
|
11
|
+
import { isLean as T } from "../../core/dom.js";
|
|
12
|
+
import { SbbNegativeMixin as $ } from "../../core/mixins.js";
|
|
13
|
+
import { SbbIconNameMixin as j } from "../../icon.js";
|
|
14
|
+
const H = (t) => (() => {
|
|
15
|
+
var n, m, l;
|
|
16
|
+
let i = [E({
|
|
16
17
|
"data-sbb-button": ""
|
|
17
|
-
}),
|
|
18
|
-
return
|
|
18
|
+
}), k()], o, f = [], r, _ = $(j(t)), g, y = [], z = [], S, v = [], x = [];
|
|
19
|
+
return l = class extends _ {
|
|
19
20
|
constructor() {
|
|
20
21
|
super(...arguments);
|
|
21
|
-
|
|
22
|
-
m(this,
|
|
22
|
+
u(this, n, c(this, y, T() ? "s" : "l"));
|
|
23
|
+
u(this, m, (c(this, z), c(this, v, !1)));
|
|
24
|
+
c(this, x);
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Size variant, either l, m or s.
|
|
26
28
|
* @default 'l' / 's' (lean)
|
|
27
29
|
*/
|
|
28
30
|
get size() {
|
|
29
|
-
return
|
|
31
|
+
return b(this, n);
|
|
30
32
|
}
|
|
31
|
-
set size(
|
|
32
|
-
h(this,
|
|
33
|
+
set size(a) {
|
|
34
|
+
h(this, n, a);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Whether the button indicates a loading state.
|
|
38
|
+
* The animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.
|
|
39
|
+
*/
|
|
40
|
+
get loading() {
|
|
41
|
+
return b(this, m);
|
|
42
|
+
}
|
|
43
|
+
set loading(a) {
|
|
44
|
+
h(this, m, a);
|
|
45
|
+
}
|
|
46
|
+
willUpdate(a) {
|
|
47
|
+
if (super.willUpdate(a), a.has("loading"))
|
|
48
|
+
if (this.loading) {
|
|
49
|
+
this.internals.ariaBusy = "true", this.internals.ariaDisabled = "true";
|
|
50
|
+
const s = this.offsetWidth;
|
|
51
|
+
this.style?.setProperty("--sbb-button-width", `${s || 136}px`);
|
|
52
|
+
} else
|
|
53
|
+
this.internals.ariaBusy = null, this.style?.removeProperty("--sbb-button-width"), this.maybeDisabledInteractive || (this.internals.ariaDisabled = null);
|
|
33
54
|
}
|
|
34
55
|
renderTemplate() {
|
|
35
|
-
return
|
|
56
|
+
return w`
|
|
36
57
|
${super.renderIconSlot()}
|
|
37
58
|
<span class="sbb-button__label">
|
|
38
59
|
<slot></slot>
|
|
39
60
|
</span>
|
|
61
|
+
${this.loading && !this.maybeDisabled ? w`<div class="sbb-button-loading-border"></div>` : C}
|
|
40
62
|
`;
|
|
41
63
|
}
|
|
42
|
-
},
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} }, metadata:
|
|
47
|
-
|
|
64
|
+
}, n = new WeakMap(), m = new WeakMap(), r = l, (() => {
|
|
65
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
66
|
+
g = [B({ reflect: !0 })], S = [M(), B({ reflect: !0, type: Boolean })], p(l, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (s) => "size" in s, get: (s) => s.size, set: (s, d) => {
|
|
67
|
+
s.size = d;
|
|
68
|
+
} }, metadata: a }, y, z), p(l, null, S, { kind: "accessor", name: "loading", static: !1, private: !1, access: { has: (s) => "loading" in s, get: (s) => s.loading, set: (s, d) => {
|
|
69
|
+
s.loading = d;
|
|
70
|
+
} }, metadata: a }, v, x), p(null, o = { value: r }, i, { kind: "class", name: r.name, metadata: a }, null, f), r = o.value, a && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), c(r, f);
|
|
71
|
+
})(), r;
|
|
48
72
|
})();
|
|
49
73
|
export {
|
|
50
|
-
|
|
74
|
+
H as SbbButtonCommonElementMixin
|
|
51
75
|
};
|
package/button/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbButtonCommonElementMixin as n } from "./common/button-common.js";
|
|
2
|
-
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-
|
|
2
|
+
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-rf30m88X.js";
|
|
3
3
|
export {
|
|
4
4
|
n as SbbButtonCommonElementMixin,
|
|
5
5
|
a as buttonAccentStyle,
|
|
@@ -5,6 +5,7 @@ declare const SbbMiniButtonElement_base: import('../../core/mixins.js').Abstract
|
|
|
5
5
|
* It displays an icon-only button enhanced with the SBB Design;
|
|
6
6
|
* it's meant to be used mainly within the sbb-form-field in prefix/suffix slot.
|
|
7
7
|
*
|
|
8
|
+
* @slot - Use the unnamed slot to add a label to the mini-button.
|
|
8
9
|
* @slot icon - Slot used to display the icon, if one is set
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbMiniButtonElement extends SbbMiniButtonElement_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button/mini-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"mini-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button/mini-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAOnE;;;;;;GAMG;AACH,qBAGM,oBAAqB,SAAQ,yBAElC;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;cAEnC,cAAc,IAAI,cAAc;CAQpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as r, __runInitializers as s } from "tslib";
|
|
2
2
|
import { customElement as l } from "lit/decorators.js";
|
|
3
|
-
import {
|
|
3
|
+
import { html as d } from "lit/static-html.js";
|
|
4
|
+
import { SbbButtonBaseElement as u } from "../../core/base-elements.js";
|
|
4
5
|
import { slotState as c } from "../../core/decorators.js";
|
|
5
|
-
import { SbbDisabledTabIndexActionMixin as
|
|
6
|
-
import { SbbIconNameMixin as
|
|
7
|
-
import { css as
|
|
8
|
-
const
|
|
9
|
-
let
|
|
6
|
+
import { SbbDisabledTabIndexActionMixin as v, SbbNegativeMixin as m } from "../../core/mixins.js";
|
|
7
|
+
import { SbbIconNameMixin as h } from "../../icon.js";
|
|
8
|
+
import { css as p } from "lit";
|
|
9
|
+
const f = p`*,:before,:after{box-sizing:border-box}:host{display:block;outline:none!important;--sbb-mini-button-gap: .125rem;--sbb-mini-button-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-mini-button-label-display: block;--sbb-mini-button-label-height: var(--sbb-size-icon-ui-small)}:host(:where([data-slot-names~=icon],[icon-name]):not([data-slot-names~=unnamed])){--sbb-mini-button-padding-inline: 0;--sbb-mini-button-label-display: none;--sbb-mini-button-label-height: unset}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-mini-button{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-mini-button:before{position:absolute;content:"";inset:0;border-radius:var(--sbb-button-border-radius);background-color:var(--sbb-button-color-default-background);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,background-color}::slotted(sbb-icon),sbb-icon{transition:transform var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);transform:translateY(var(--sbb-button-translate-y-content-hover, 0rem));display:flex}:host([negative]){--sbb-button-color-text: var(--sbb-color-milk);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-charcoal);--sbb-button-color-active-background: var(--sbb-color-iron);--sbb-button-color-disabled-background: var(--sbb-color-charcoal);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-smoke)}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-mini-button{color:var(--sbb-button-color-disabled-text);cursor:default;pointer-events:none}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-mini-button:before{background-color:var(--sbb-button-color-disabled-background);border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--sbb-button-color-disabled-border)}:host(:is([data-focus-visible],:focus-visible)) .sbb-mini-button:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}:host([data-focus-visible]){--sbb-focus-outline-style: initial}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover){--sbb-button-translate-y-content-hover: -.0625rem}}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover) .sbb-mini-button:before{background-color:var(--sbb-button-color-hover-background)}}:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled]):is(:active,[data-active])) .sbb-mini-button:before{background-color:var(--sbb-button-color-active-background)}.sbb-mini-button{height:var(--sbb-mini-button-label-height);gap:var(--sbb-mini-button-gap);align-items:center;justify-content:center;padding-inline:var(--sbb-mini-button-padding-inline)}.sbb-mini-button__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:var(--sbb-mini-button-label-display);transition:translate var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);translate:0 var(--sbb-button-translate-y-content-hover, 0)}`;
|
|
10
|
+
let T = (() => {
|
|
10
11
|
var o;
|
|
11
|
-
let
|
|
12
|
-
return o = class extends
|
|
12
|
+
let e = [l("sbb-mini-button"), c()], a, i = [], t, n = v(m(h(u)));
|
|
13
|
+
return o = class extends n {
|
|
13
14
|
renderTemplate() {
|
|
14
|
-
return
|
|
15
|
+
return d`
|
|
16
|
+
${super.renderIconSlot()}
|
|
17
|
+
<span class="sbb-mini-button__label">
|
|
18
|
+
<slot></slot>
|
|
19
|
+
</span>
|
|
20
|
+
`;
|
|
15
21
|
}
|
|
16
22
|
}, t = o, (() => {
|
|
17
|
-
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
18
|
-
|
|
19
|
-
})(), o.styles =
|
|
23
|
+
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
24
|
+
r(null, a = { value: t }, e, { kind: "class", name: t.name, metadata: b }, null, i), t = a.value, b && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
|
|
25
|
+
})(), o.styles = f, s(t, i), t;
|
|
20
26
|
})();
|
|
21
27
|
export {
|
|
22
|
-
|
|
28
|
+
T as SbbMiniButtonElement
|
|
23
29
|
};
|
|
@@ -5,7 +5,8 @@ declare const SbbSecondaryButtonElement_base: import('../../core/mixins.js').Abs
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'secondary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the secondary-button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbSecondaryButtonElement extends SbbSecondaryButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button/secondary-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"secondary-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button/secondary-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,yBAA0B,SAAQ,8BAEvC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA6C;CAC3F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,sBAAsB,EAAE,yBAAyB,CAAC;KACnD;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbSecondaryButtonLinkElement_base: import('../../core/mixins.js')
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'primary' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the secondary-button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbSecondaryButtonLinkElement extends SbbSecondaryButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-link/secondary-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE
|
|
1
|
+
{"version":3,"file":"secondary-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-link/secondary-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAIjE;;;;;;GAMG;AACH,qBAEM,6BAA8B,SAAQ,kCAE3C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA6C;CAC3F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,2BAA2B,EAAE,6BAA6B,CAAC;KAC5D;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbSecondaryButtonStaticElement_base: import('../../core/mixins.js
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'secondary' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the secondary-button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbSecondaryButtonStaticElement extends SbbSecondaryButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-static/secondary-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"secondary-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/secondary-button-static/secondary-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;GAMG;AACH,qBAEM,+BAAgC,SAAQ,oCAE7C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA6C;CAC3F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,6BAA6B,EAAE,+BAA+B,CAAC;KAChE;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbTransparentButtonElement_base: import('../../core/mixins.js').A
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'transparent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the transparent-button.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbTransparentButtonElement extends SbbTransparentButtonElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button/transparent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE
|
|
1
|
+
{"version":3,"file":"transparent-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button/transparent-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE;;;;;;GAMG;AACH,qBAEM,2BAA4B,SAAQ,gCAEzC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA+C;CAC7F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,wBAAwB,EAAE,2BAA2B,CAAC;KACvD;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbTransparentButtonLinkElement_base: import('../../core/mixins.js
|
|
|
5
5
|
* It displays a button enhanced with the SBB Design in the 'transparent' variant, which will behave as a link.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the transparent-button-link.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbTransparentButtonLinkElement extends SbbTransparentButtonLinkElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-link/transparent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAQjE
|
|
1
|
+
{"version":3,"file":"transparent-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-link/transparent-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAQjE;;;;;;GAMG;AACH,qBAEM,+BAAgC,SAAQ,oCAE7C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA+C;CAC7F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,6BAA6B,EAAE,+BAA+B,CAAC;KAChE;CACF"}
|
|
@@ -5,7 +5,8 @@ declare const SbbTransparentButtonStaticElement_base: import('../../core/mixins.
|
|
|
5
5
|
* It displays a static button enhanced with the SBB Design in the 'transparent' variant.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Use the unnamed slot to add content to the transparent-button-static.
|
|
8
|
-
* @slot icon - Slot used to display the icon, if one is set
|
|
8
|
+
* @slot icon - Slot used to display the icon, if one is set.
|
|
9
|
+
* @cssprop [--sbb-button-loading-delay=300ms] - The delay before the loading animation starts, when setting the button into loading state.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SbbTransparentButtonStaticElement extends SbbTransparentButtonStaticElement_base {
|
|
11
12
|
static styles: CSSResultGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-static/transparent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE
|
|
1
|
+
{"version":3,"file":"transparent-button-static.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/transparent-button-static/transparent-button-static.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAQnE;;;;;;GAMG;AACH,qBAEM,iCAAkC,SAAQ,sCAE/C;IACC,OAAuB,MAAM,EAAE,cAAc,CAA+C;CAC7F;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,+BAA+B,EAAE,iCAAiC,CAAC;KACpE;CACF"}
|
package/button.js
CHANGED
|
@@ -13,7 +13,7 @@ import { SbbSecondaryButtonStaticElement as T } from "./button/secondary-button-
|
|
|
13
13
|
import { SbbAccentButtonStaticElement as C } from "./button/accent-button-static/accent-button-static.component.js";
|
|
14
14
|
import { SbbTransparentButtonStaticElement as P } from "./button/transparent-button-static/transparent-button-static.component.js";
|
|
15
15
|
import { SbbButtonCommonElementMixin as h } from "./button/common/button-common.js";
|
|
16
|
-
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-
|
|
16
|
+
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-rf30m88X.js";
|
|
17
17
|
export {
|
|
18
18
|
m as SbbAccentButtonElement,
|
|
19
19
|
s as SbbAccentButtonLinkElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-group/checkbox-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;;AAIpD;;;;;GAKG;AACH,qBAGM,uBAAwB,SAAQ,4BAA4B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,8CAA8C;IAC9C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA4B,IAAI,EAAE,eAAe,CAAyB;IAE1E,yDAAyD;IACzD,SACgB,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEhE,qFAAqF;IACrF,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D,2CAA2C;IAC3C,IAAW,UAAU,IAAI,CAAC,kBAAkB,GAAG,uBAAuB,CAAC,EAAE,CAMxE;;IAOe,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAc5E,OAAO,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"checkbox-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-group/checkbox-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;;AAIpD;;;;;GAKG;AACH,qBAGM,uBAAwB,SAAQ,4BAA4B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,8CAA8C;IAC9C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA4B,IAAI,EAAE,eAAe,CAAyB;IAE1E,yDAAyD;IACzD,SACgB,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEhE,qFAAqF;IACrF,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D,2CAA2C;IAC3C,IAAW,UAAU,IAAI,CAAC,kBAAkB,GAAG,uBAAuB,CAAC,EAAE,CAMxE;;IAOe,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAc5E,OAAO,CAAC,cAAc;cA2BH,MAAM,IAAI,cAAc;CAU5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
|
|
@@ -4,7 +4,7 @@ var C = (o) => {
|
|
|
4
4
|
var U = (o, i, r) => i.has(o) || C("Cannot " + r);
|
|
5
5
|
var m = (o, i, r) => (U(o, i, "read from private field"), r ? r.call(o) : i.get(o)), u = (o, i, r) => i.has(o) ? C("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(o) : i.set(o, r), x = (o, i, r, n) => (U(o, i, "write to private field"), n ? n.call(o, r) : i.set(o, r), r);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as c } from "tslib";
|
|
7
|
-
import { css as L, LitElement as
|
|
7
|
+
import { css as L, LitElement as N, html as j } from "lit";
|
|
8
8
|
import { customElement as O, property as k } from "lit/decorators.js";
|
|
9
9
|
import { interactivityChecker as T, isArrowKeyPressed as B, getNextElementIndex as G } from "../../core/a11y.js";
|
|
10
10
|
import { slotState as M, forceType as V } from "../../core/decorators.js";
|
|
@@ -13,7 +13,7 @@ import { SbbDisabledMixin as J } from "../../core/mixins.js";
|
|
|
13
13
|
const Q = L`*,:before,:after{box-sizing:border-box}:host{--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto;--sbb-checkbox-group-width: max-content;--sbb-checkbox-group-gap: var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-6x);display:block}:host([orientation=vertical]){--sbb-checkbox-group-orientation: column;--sbb-checkbox-group-width: 100%;--sbb-checkbox-group-checkbox-width: 100%}:host([orientation=vertical]) ::slotted(sbb-checkbox-panel){width:100%}:host([data-has-panel]){--sbb-checkbox-group-width: 100%}:host([data-has-panel]) ::slotted(sbb-checkbox-panel){flex:auto}:host([data-has-panel][orientation=vertical]){--sbb-checkbox-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x)}@media (min-width: 0rem){:host([orientation=vertical][horizontal-from=zero]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=zero]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=zero]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 22.5rem){:host([orientation=vertical][horizontal-from=micro]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=micro]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=micro]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 37.5rem){:host([orientation=vertical][horizontal-from=small]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=small]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=small]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 52.5rem){:host([orientation=vertical][horizontal-from=medium]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=medium]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=medium]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 64rem){:host([orientation=vertical][horizontal-from=large]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=large]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=large]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 80rem){:host([orientation=vertical][horizontal-from=wide]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=wide]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=wide]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 90rem){:host([orientation=vertical][horizontal-from=ultra]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=ultra]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=ultra]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}.sbb-checkbox-group{display:flex;flex-direction:var(--sbb-checkbox-group-orientation);gap:var(--sbb-checkbox-group-gap);align-items:flex-start;width:var(--sbb-checkbox-group-width)}.sbb-checkbox-group__error{display:inline-block;margin-block-start:var(--sbb-spacing-fixed-1x)}:host(:not([data-slot-names~=error])) .sbb-checkbox-group__error{display:none}::slotted(sbb-checkbox){width:var(--sbb-checkbox-group-checkbox-width)}`;
|
|
14
14
|
let ot = (() => {
|
|
15
15
|
var l, h, b, d, s;
|
|
16
|
-
let o = [O("sbb-checkbox-group"), M()], i, r = [], n, g = J(
|
|
16
|
+
let o = [O("sbb-checkbox-group"), M()], i, r = [], n, g = J(N), f, z = [], w = [], _, v = [], y = [], q, E = [], F = [], S, I = [], D = [];
|
|
17
17
|
return s = class extends g {
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
@@ -67,13 +67,13 @@ let ot = (() => {
|
|
|
67
67
|
_handleKeyDown(e) {
|
|
68
68
|
const t = this.checkboxes.filter((a) => !a.disabled && T.isVisible(a));
|
|
69
69
|
if (!(!t || // don't trap nested handling
|
|
70
|
-
e.target !== this && e.target.parentElement !== this && e.target.parentElement.localName !== "sbb-selection-expansion-panel") && B(e)) {
|
|
70
|
+
e.target !== this && e.target.parentElement !== this && e.target.parentElement.localName !== "sbb-selection-expansion-panel" && e.target.parentElement.localName !== "sbb-selection-action-panel") && B(e)) {
|
|
71
71
|
const a = t.findIndex((K) => K === e.target), A = G(e, a, t.length);
|
|
72
72
|
t[A]?.focus();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return
|
|
76
|
+
return j`
|
|
77
77
|
<div class="sbb-checkbox-group">
|
|
78
78
|
<slot></slot>
|
|
79
79
|
</div>
|
|
@@ -31,6 +31,9 @@ declare global {
|
|
|
31
31
|
interface HTMLElementTagNameMap {
|
|
32
32
|
'sbb-checkbox-panel': SbbCheckboxPanelElement;
|
|
33
33
|
}
|
|
34
|
+
interface GlobalEventHandlersEventMap {
|
|
35
|
+
statechange: CustomEvent<SbbStateChange>;
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
export {};
|
|
36
39
|
//# sourceMappingURL=checkbox-panel.component.d.ts.map
|