@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
|
@@ -1,55 +1,52 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var A = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { MutationController as
|
|
8
|
-
import { ResizeController as
|
|
9
|
-
import { css as
|
|
10
|
-
import { customElement as
|
|
11
|
-
import { ref as
|
|
12
|
-
import { isArrowKeyPressed as
|
|
13
|
-
import { forceType as
|
|
14
|
-
import { isLean as
|
|
15
|
-
import { EventEmitter as
|
|
16
|
-
import { SbbHydrationMixin as
|
|
17
|
-
import { SbbTabElement as
|
|
18
|
-
const
|
|
4
|
+
var x = (s, a, n) => a.has(s) || A("Cannot " + n);
|
|
5
|
+
var T = (s, a, n) => (x(s, a, "read from private field"), n ? n.call(s) : a.get(s)), y = (s, a, n) => a.has(s) ? A("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(s) : a.set(s, n), u = (s, a, n, r) => (x(s, a, "write to private field"), r ? r.call(s, n) : a.set(s, n), n);
|
|
6
|
+
import { __esDecorate as h, __runInitializers as d } from "tslib";
|
|
7
|
+
import { MutationController as E } from "@lit-labs/observers/mutation-controller.js";
|
|
8
|
+
import { ResizeController as I } from "@lit-labs/observers/resize-controller.js";
|
|
9
|
+
import { css as C, LitElement as G, html as w } from "lit";
|
|
10
|
+
import { customElement as k, property as S } from "lit/decorators.js";
|
|
11
|
+
import { ref as R } from "lit/directives/ref.js";
|
|
12
|
+
import { isArrowKeyPressed as O, getNextElementIndex as $ } from "../../core/a11y.js";
|
|
13
|
+
import { forceType as D } from "../../core/decorators.js";
|
|
14
|
+
import { isLean as N } from "../../core/dom.js";
|
|
15
|
+
import { EventEmitter as K, throttle as M } from "../../core/eventing.js";
|
|
16
|
+
import { SbbHydrationMixin as P } from "../../core/mixins.js";
|
|
17
|
+
import { SbbTabElement as j } from "../tab.js";
|
|
18
|
+
const H = C`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-group-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );display:block}.tab-group{display:flex;flex-wrap:wrap}.tab-content{margin-block-start:var(--sbb-spacing-responsive-m);transition:height var(--sbb-tab-group-animation-duration) var(--sbb-animation-easing)}.tab-content ::slotted(*){visibility:hidden;opacity:0;height:0;overflow:hidden;position:relative}.tab-content ::slotted(*[active]){visibility:visible;opacity:1;height:fit-content;overflow:unset;transition-duration:var(--sbb-tab-group-animation-duration);transition-delay:var(--sbb-tab-group-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:opacity,visibility}.tab-content ::slotted([role=tabpanel]:focus-visible){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}`, U = {
|
|
19
19
|
attributeFilter: ["active", "disabled"]
|
|
20
20
|
};
|
|
21
|
-
let
|
|
22
|
-
var
|
|
23
|
-
let
|
|
24
|
-
var
|
|
21
|
+
let q = 0, at = (() => {
|
|
22
|
+
var c, o;
|
|
23
|
+
let s = [k("sbb-tab-group")], a, n = [], r, f = P(G), _ = [], m, v, p = [], g = [];
|
|
24
|
+
var b = (o = class extends f {
|
|
25
25
|
constructor() {
|
|
26
|
-
var t;
|
|
27
26
|
super();
|
|
28
|
-
|
|
29
|
-
this._tabs = (
|
|
27
|
+
y(this, c);
|
|
28
|
+
this._tabs = (d(this, _), []), this._tabAttributeObserver = new E(this, {
|
|
30
29
|
target: null,
|
|
31
|
-
config:
|
|
32
|
-
callback: (
|
|
33
|
-
}), this._tabGroupResizeObserver = new
|
|
30
|
+
config: U,
|
|
31
|
+
callback: (t) => this._onTabAttributesChange(t)
|
|
32
|
+
}), this._tabGroupResizeObserver = new I(this, {
|
|
34
33
|
target: null,
|
|
35
34
|
skipInitial: !0,
|
|
36
|
-
callback: (
|
|
37
|
-
}), this._tabContentResizeObserver = new
|
|
35
|
+
callback: (t) => this._onTabGroupElementResize(t)
|
|
36
|
+
}), this._tabContentResizeObserver = new I(this, {
|
|
38
37
|
target: null,
|
|
39
38
|
skipInitial: !0,
|
|
40
|
-
callback: (
|
|
41
|
-
}), this._size =
|
|
42
|
-
var i, a;
|
|
39
|
+
callback: (t) => this._onTabContentElementResize(t)
|
|
40
|
+
}), this._size = N() ? "s" : "l", u(this, c, d(this, p, 0)), this._selectedTabChanged = (d(this, g), new K(this, b.events.didChange)), this._onContentSlotChange = () => {
|
|
43
41
|
this._tabContentElement = this.shadowRoot.querySelector("div.tab-content");
|
|
44
|
-
const
|
|
45
|
-
|
|
42
|
+
const t = this._getTabs().filter((e) => !this._tabs.includes(e));
|
|
43
|
+
t.length && (t.forEach((e) => this._configure(e)), this._tabs = this._tabs.concat(t), t.find((e) => e.active)?.tabGroupActions?.select());
|
|
46
44
|
}, this._onTabsSlotChange = () => {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, (t = this.addEventListener) == null || t.call(this, "keydown", (e) => this._handleKeyDown(e));
|
|
45
|
+
const t = this._getTabs();
|
|
46
|
+
t.length < this._tabs.length && (this._tabs.filter((i) => !t.includes(i)).forEach((i) => {
|
|
47
|
+
i.tab?.remove();
|
|
48
|
+
}), this._tabs = t), this._tabs.forEach((e) => e.setAttribute("data-size", this.size));
|
|
49
|
+
}, this.addEventListener?.("keydown", (t) => this._handleKeyDown(t));
|
|
53
50
|
}
|
|
54
51
|
/**
|
|
55
52
|
* Size variant, either s, l or xl.
|
|
@@ -66,10 +63,10 @@ let B = 0, ot = (() => {
|
|
|
66
63
|
* the tab group, the first enabled tab will be selected.
|
|
67
64
|
*/
|
|
68
65
|
get initialSelectedIndex() {
|
|
69
|
-
return
|
|
66
|
+
return T(this, c);
|
|
70
67
|
}
|
|
71
68
|
set initialSelectedIndex(t) {
|
|
72
|
-
|
|
69
|
+
u(this, c, t);
|
|
73
70
|
}
|
|
74
71
|
firstUpdated(t) {
|
|
75
72
|
super.firstUpdated(t), this._tabs = this._getTabs(), this._tabs.forEach((e) => this._configure(e)), this._initSelection(), this._tabGroupResizeObserver.observe(this._tabGroupElement);
|
|
@@ -79,24 +76,21 @@ let B = 0, ot = (() => {
|
|
|
79
76
|
* @param tabIndex The index of the tab you want to disable.
|
|
80
77
|
*/
|
|
81
78
|
disableTab(t) {
|
|
82
|
-
|
|
83
|
-
(i = (e = this._tabs[t]) == null ? void 0 : e.tabGroupActions) == null || i.disable();
|
|
79
|
+
this._tabs[t]?.tabGroupActions?.disable();
|
|
84
80
|
}
|
|
85
81
|
/**
|
|
86
82
|
* Enables a tab by index.
|
|
87
83
|
* @param tabIndex The index of the tab you want to enable.
|
|
88
84
|
*/
|
|
89
85
|
enableTab(t) {
|
|
90
|
-
|
|
91
|
-
(i = (e = this._tabs[t]) == null ? void 0 : e.tabGroupActions) == null || i.enable();
|
|
86
|
+
this._tabs[t]?.tabGroupActions?.enable();
|
|
92
87
|
}
|
|
93
88
|
/**
|
|
94
89
|
* Activates a tab by index.
|
|
95
90
|
* @param tabIndex The index of the tab you want to activate.
|
|
96
91
|
*/
|
|
97
92
|
activateTab(t) {
|
|
98
|
-
|
|
99
|
-
(i = (e = this._tabs[t]) == null ? void 0 : e.tabGroupActions) == null || i.select();
|
|
93
|
+
this._tabs[t]?.tabGroupActions?.select();
|
|
100
94
|
}
|
|
101
95
|
_getTabs() {
|
|
102
96
|
return Array.from(this.children ?? []).filter((t) => /^sbb-tab-label$/u.test(t.localName));
|
|
@@ -109,26 +103,24 @@ let B = 0, ot = (() => {
|
|
|
109
103
|
t.setAttribute("data-size", this.size);
|
|
110
104
|
}
|
|
111
105
|
_assignId() {
|
|
112
|
-
return `sbb-tab-panel-${++
|
|
106
|
+
return `sbb-tab-panel-${++q}`;
|
|
113
107
|
}
|
|
114
108
|
_initSelection() {
|
|
115
|
-
|
|
116
|
-
this.initialSelectedIndex >= 0 && this.initialSelectedIndex < this._tabs.length && !this._tabs[this.initialSelectedIndex].disabled ? (t = this._tabs[this.initialSelectedIndex].tabGroupActions) == null || t.select() : (i = (e = this._enabledTabs()[0]) == null ? void 0 : e.tabGroupActions) == null || i.select();
|
|
109
|
+
this.initialSelectedIndex >= 0 && this.initialSelectedIndex < this._tabs.length && !this._tabs[this.initialSelectedIndex].disabled ? this._tabs[this.initialSelectedIndex].tabGroupActions?.select() : this._enabledTabs()[0]?.tabGroupActions?.select();
|
|
117
110
|
}
|
|
118
111
|
_onTabAttributesChange(t) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if (s.type !== "attributes")
|
|
112
|
+
for (const e of t) {
|
|
113
|
+
if (e.type !== "attributes")
|
|
122
114
|
return;
|
|
123
|
-
const
|
|
124
|
-
|
|
115
|
+
const i = e.target;
|
|
116
|
+
e.attributeName === "disabled" && (i.hasAttribute("disabled") && i !== this._selectedTab ? i.tabGroupActions?.disable() : i.disabled && i.tabGroupActions?.enable()), e.attributeName === "active" && (i.hasAttribute("active") && !i.disabled ? i.tabGroupActions?.select() : i === this._selectedTab && i.toggleAttribute("active", !0));
|
|
125
117
|
}
|
|
126
118
|
}
|
|
127
119
|
_onTabGroupElementResize(t) {
|
|
128
120
|
for (const e of t) {
|
|
129
121
|
const i = e.target.firstElementChild.assignedElements();
|
|
130
|
-
for (const
|
|
131
|
-
|
|
122
|
+
for (const l of i)
|
|
123
|
+
l.toggleAttribute("data-has-divider", l === i[0] || l.offsetLeft === i[0].offsetLeft), this.style.setProperty("--sbb-tab-group-width", `${this._tabGroupElement.clientWidth}px`);
|
|
132
124
|
}
|
|
133
125
|
}
|
|
134
126
|
_onTabContentElementResize(t) {
|
|
@@ -139,80 +131,73 @@ let B = 0, ot = (() => {
|
|
|
139
131
|
}
|
|
140
132
|
}
|
|
141
133
|
_configure(t) {
|
|
142
|
-
var e;
|
|
143
134
|
t.tabGroupActions = {
|
|
144
135
|
activate: () => {
|
|
145
|
-
|
|
146
|
-
t.toggleAttribute("active", !0), t.active = !0, t.tabIndex = 0, t.setAttribute("aria-selected", "true"), (i = t.tab) == null || i.toggleAttribute("active", !0);
|
|
136
|
+
t.toggleAttribute("active", !0), t.active = !0, t.tabIndex = 0, t.setAttribute("aria-selected", "true"), t.tab?.toggleAttribute("active", !0);
|
|
147
137
|
},
|
|
148
138
|
deactivate: () => {
|
|
149
|
-
|
|
150
|
-
t.removeAttribute("active"), t.active = !1, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active");
|
|
139
|
+
t.removeAttribute("active"), t.active = !1, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), t.tab?.removeAttribute("active");
|
|
151
140
|
},
|
|
152
141
|
disable: () => {
|
|
153
|
-
|
|
154
|
-
t.disabled || (t.hasAttribute("disabled") || t.toggleAttribute("disabled", !0), t.disabled = !0, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active"), t.active && (t.removeAttribute("active"), t.active = !1, (s = (a = this._enabledTabs()[0]) == null ? void 0 : a.tabGroupActions) == null || s.select()));
|
|
142
|
+
t.disabled || (t.hasAttribute("disabled") || t.toggleAttribute("disabled", !0), t.disabled = !0, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), t.tab?.removeAttribute("active"), t.active && (t.removeAttribute("active"), t.active = !1, this._enabledTabs()[0]?.tabGroupActions?.select()));
|
|
155
143
|
},
|
|
156
144
|
enable: () => {
|
|
157
145
|
t.disabled && (t.removeAttribute("disabled"), t.disabled = !1);
|
|
158
146
|
},
|
|
159
147
|
select: () => {
|
|
160
|
-
var i, a;
|
|
161
148
|
if (t !== this._selectedTab && !t.disabled) {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
const
|
|
149
|
+
const e = this._selectedTab;
|
|
150
|
+
e && (e.tabGroupActions?.deactivate(), this._tabContentResizeObserver.unobserve(e.tab)), t.tabGroupActions?.activate(), this._selectedTab = t, this._tabContentResizeObserver.observe(t.tab);
|
|
151
|
+
const i = this._tabs;
|
|
165
152
|
this._selectedTabChanged.emit({
|
|
166
|
-
activeIndex:
|
|
153
|
+
activeIndex: i.findIndex((l) => l === t),
|
|
167
154
|
activeTabLabel: t,
|
|
168
155
|
activeTab: t.tab,
|
|
169
|
-
previousIndex:
|
|
170
|
-
previousTabLabel:
|
|
171
|
-
previousTab:
|
|
156
|
+
previousIndex: i.findIndex((l) => l === e),
|
|
157
|
+
previousTabLabel: e,
|
|
158
|
+
previousTab: e?.tab
|
|
172
159
|
});
|
|
173
160
|
}
|
|
174
161
|
}
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
(i = t.tabGroupActions) == null || i.select();
|
|
162
|
+
}, t.nextElementSibling?.localName === "sbb-tab" && (t.tab = t.nextElementSibling, t.tab.id = this._assignId(), t.tab instanceof j && (t.tab.tabIndex = 0, t.tab.configure())), t.tabIndex = -1, t.disabled = t.hasAttribute("disabled"), t.active = t.hasAttribute("active") && !t.disabled, t.setAttribute("role", "tab"), t.setAttribute("aria-selected", String(t.active)), t.addEventListener("click", () => {
|
|
163
|
+
t.tabGroupActions?.select();
|
|
178
164
|
}), t.tab && (t.setAttribute("aria-controls", t.tab.id), t.tab.setAttribute("role", "tabpanel"), t.tab.toggleAttribute("active", t.active)), this._tabAttributeObserver.observe(t), t.slot = "tab-bar";
|
|
179
165
|
}
|
|
180
166
|
_handleKeyDown(t) {
|
|
181
|
-
var i, a, s;
|
|
182
167
|
const e = this._enabledTabs();
|
|
183
168
|
if (!(!e || // don't trap nested handling
|
|
184
|
-
t.target !== this && t.target.parentElement !== this) &&
|
|
185
|
-
const
|
|
186
|
-
|
|
169
|
+
t.target !== this && t.target.parentElement !== this) && O(t)) {
|
|
170
|
+
const i = e.findIndex((z) => z.active), l = $(t, i, e.length);
|
|
171
|
+
e[l]?.tabGroupActions?.select(), e[l]?.focus(), t.preventDefault();
|
|
187
172
|
}
|
|
188
173
|
}
|
|
189
174
|
render() {
|
|
190
|
-
return
|
|
175
|
+
return w`
|
|
191
176
|
<div
|
|
192
177
|
class="tab-group"
|
|
193
178
|
role="tablist"
|
|
194
|
-
${
|
|
179
|
+
${R((t) => this._tabGroupElement = t)}
|
|
195
180
|
>
|
|
196
181
|
<slot name="tab-bar" @slotchange=${this._onTabsSlotChange}></slot>
|
|
197
182
|
</div>
|
|
198
183
|
|
|
199
184
|
<div class="tab-content">
|
|
200
|
-
<slot @slotchange=${
|
|
185
|
+
<slot @slotchange=${M(this._onContentSlotChange, 150)}></slot>
|
|
201
186
|
</div>
|
|
202
187
|
`;
|
|
203
188
|
}
|
|
204
|
-
},
|
|
205
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
206
|
-
|
|
189
|
+
}, c = new WeakMap(), r = o, (() => {
|
|
190
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
191
|
+
m = [S()], v = [D(), S({ attribute: "initial-selected-index", type: Number })], h(o, null, m, { kind: "setter", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, set: (e, i) => {
|
|
207
192
|
e.size = i;
|
|
208
|
-
} }, metadata: t }, null,
|
|
193
|
+
} }, metadata: t }, null, _), h(o, null, v, { kind: "accessor", name: "initialSelectedIndex", static: !1, private: !1, access: { has: (e) => "initialSelectedIndex" in e, get: (e) => e.initialSelectedIndex, set: (e, i) => {
|
|
209
194
|
e.initialSelectedIndex = i;
|
|
210
|
-
} }, metadata: t },
|
|
211
|
-
})(),
|
|
195
|
+
} }, metadata: t }, p, g), h(null, a = { value: r }, s, { kind: "class", name: r.name, metadata: t }, null, n), b = r = a.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
196
|
+
})(), o.styles = H, o.events = {
|
|
212
197
|
didChange: "didChange"
|
|
213
|
-
},
|
|
214
|
-
return
|
|
198
|
+
}, d(r, n), o);
|
|
199
|
+
return b = r;
|
|
215
200
|
})();
|
|
216
201
|
export {
|
|
217
|
-
|
|
202
|
+
at as SbbTabGroupElement
|
|
218
203
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var B = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var I = (t, e,
|
|
5
|
-
var m = (t, e,
|
|
4
|
+
var I = (t, e, s) => e.has(t) || B("Cannot " + s);
|
|
5
|
+
var m = (t, e, s) => (I(t, e, "read from private field"), s ? s.call(t) : e.get(t)), d = (t, e, s) => e.has(t) ? B("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), f = (t, e, s, o) => (I(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
|
|
6
6
|
import { __esDecorate as h, __runInitializers as i } from "tslib";
|
|
7
7
|
import { css as D, LitElement as G } from "lit";
|
|
8
8
|
import { customElement as M, property as u } from "lit/decorators.js";
|
|
@@ -10,14 +10,14 @@ import { unsafeStatic as E, html as N } from "lit/static-html.js";
|
|
|
10
10
|
import { slotState as j, forceType as $, omitEmptyConverter as A } from "../../core/decorators.js";
|
|
11
11
|
import { SbbDisabledMixin as L } from "../../core/mixins.js";
|
|
12
12
|
import { SbbIconNameMixin as O } from "../../icon.js";
|
|
13
|
-
const C = D`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-label-height: var(--sbb-size-element-m);--sbb-tab-label-color: var(--sbb-color-granite);--sbb-tab-label-icon-color: var(--sbb-color-black);--sbb-tab-label-background-color: var(--sbb-color-white);--sbb-tab-label-cursor: pointer;--sbb-tab-label-pointer-events: unset;--sbb-tab-label-inset: 0;--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xs);--sbb-tab-label-marker-transform: scale(0);--sbb-tab-label-text-decoration: none;--sbb-tab-label-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tab-label-animation-easing: var(--sbb-animation-easing);--sbb-tab-label-amount-color: var(--sbb-color-metal);display:inline-block;max-width:100%;pointer-events:var(--sbb-tab-label-pointer-events);-webkit-tap-highlight-color:transparent;outline:none!important}@media (forced-colors: active){:host{--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}:host([data-size=s]){--sbb-tab-label-height: var(--sbb-size-element-xs);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xxxs)}:host([disabled]){--sbb-tab-label-icon-color: var(--sbb-color-granite);--sbb-tab-label-background-color: var(--sbb-color-milk);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-text-decoration: line-through}@media (forced-colors: active){:host([disabled]){--sbb-tab-label-color: GrayText;--sbb-tab-label-icon-color: GrayText;--sbb-tab-label-amount-color: GrayText}}:host([active]:not([disabled])){--sbb-tab-label-color: var(--sbb-color-charcoal);--sbb-tab-label-icon-color: var(--sbb-tab-label-color);--sbb-tab-label-background-color: var(--sbb-color-black);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-marker-transform: scale(1)}@media (forced-colors: active){:host([active]:not([disabled])){--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}@media (any-hover: hover){:host(:hover:not([disabled])){--sbb-tab-label-marker-transform: scale(1)}}:host(:is([data-active],:active)){--sbb-tab-label-color: var(--sbb-color-charcoal)}.sbb-tab-label__wrapper{position:relative}:host(:focus-visible) .sbb-tab-label__wrapper: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);content:"";position:absolute;display:block;
|
|
13
|
+
const C = D`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-label-height: var(--sbb-size-element-m);--sbb-tab-label-color: var(--sbb-color-granite);--sbb-tab-label-icon-color: var(--sbb-color-black);--sbb-tab-label-background-color: var(--sbb-color-white);--sbb-tab-label-cursor: pointer;--sbb-tab-label-pointer-events: unset;--sbb-tab-label-inset: 0;--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xs);--sbb-tab-label-marker-transform: scale(0);--sbb-tab-label-text-decoration: none;--sbb-tab-label-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tab-label-animation-easing: var(--sbb-animation-easing);--sbb-tab-label-amount-color: var(--sbb-color-metal);display:inline-block;max-width:100%;pointer-events:var(--sbb-tab-label-pointer-events);-webkit-tap-highlight-color:transparent;outline:none!important}@media (forced-colors: active){:host{--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}:host([data-size=s]){--sbb-tab-label-height: var(--sbb-size-element-xs);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xxxs)}:host([disabled]){--sbb-tab-label-icon-color: var(--sbb-color-granite);--sbb-tab-label-background-color: var(--sbb-color-milk);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-text-decoration: line-through}@media (forced-colors: active){:host([disabled]){--sbb-tab-label-color: GrayText;--sbb-tab-label-icon-color: GrayText;--sbb-tab-label-amount-color: GrayText}}:host([active]:not([disabled])){--sbb-tab-label-color: var(--sbb-color-charcoal);--sbb-tab-label-icon-color: var(--sbb-tab-label-color);--sbb-tab-label-background-color: var(--sbb-color-black);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-marker-transform: scale(1)}@media (forced-colors: active){:host([active]:not([disabled])){--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}@media (any-hover: hover){:host(:hover:not([disabled])){--sbb-tab-label-marker-transform: scale(1)}}:host(:is([data-active],:active)){--sbb-tab-label-color: var(--sbb-color-charcoal)}.sbb-tab-label__wrapper{position:relative}:host(:focus-visible) .sbb-tab-label__wrapper: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);content:"";position:absolute;display:block;inset:0;z-index:1;border-radius:calc(var(--sbb-border-radius-2x) - var(--sbb-focus-outline-offset))}.sbb-tab-label{position:relative;margin:0;min-height:var(--sbb-tab-label-height);display:flex;align-items:center;padding-inline:var(--sbb-tab-label-inline-padding);gap:var(--sbb-spacing-fixed-2x);-webkit-user-select:none;user-select:none;cursor:var(--sbb-tab-label-cursor);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);color:var(--sbb-tab-label-icon-color)}:host([data-has-divider]) .sbb-tab-label:after{content:"";position:absolute;inset-inline-start:0;inset-block-end:0;width:var(--sbb-tab-group-width);height:var(--sbb-border-width-1x);background-color:var(--sbb-color-cloud)}.sbb-tab-label:before{position:absolute;content:"";inset-inline:0;inset-block-end:0;height:var(--sbb-border-width-3x);background-color:var(--sbb-tab-label-color);transform:var(--sbb-tab-label-marker-transform);transition-duration:var(--sbb-tab-label-animation-duration);transition-timing-function:var(--sbb-tab-label-animation-easing);transition-property:transform,background-color;z-index:1}.sbb-tab-label__icon,.sbb-tab-label__text,.sbb-tab-label__amount{text-decoration:var(--sbb-tab-label-text-decoration)}.sbb-tab-label__icon{display:flex;flex-shrink:0;color:var(--sbb-tab-label-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing)}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-tab-label__icon{display:none}.sbb-tab-label__text{color:var(--sbb-tab-label-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;--sbb-text-font-size: var(--sbb-font-size-text-m);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);font-weight:700}:host([data-size=s]) .sbb-tab-label__text{--sbb-text-font-size: var(--sbb-font-size-text-s);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);font-weight:700}:host([data-size=xl]) .sbb-tab-label__text{--sbb-text-font-size: var(--sbb-font-size-text-xl);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);font-weight:700}:host(:not([data-slot-names~=unnamed])) .sbb-tab-label__text{display:none}.sbb-tab-label__amount{display:flex;color:var(--sbb-tab-label-amount-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);--sbb-text-font-size: var(--sbb-font-size-text-m);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)}:host(:not([data-slot-names~=amount],[amount])) .sbb-tab-label__amount{display:none}:host([data-size=s]) .sbb-tab-label__amount{--sbb-text-font-size: var(--sbb-font-size-text-s);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)}:host([data-size=xl]) .sbb-tab-label__amount{--sbb-text-font-size: var(--sbb-font-size-text-xl);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)}`;
|
|
14
14
|
let V = (() => {
|
|
15
15
|
var n, r, c, l;
|
|
16
|
-
let t = [M("sbb-tab-label"), j()], e,
|
|
16
|
+
let t = [M("sbb-tab-label"), j()], e, s = [], o, p = L(O(G)), x, g = [], _ = [], y, z = [], w = [], k, T = [], S = [];
|
|
17
17
|
return l = class extends p {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
|
-
d(this, n, i(this,
|
|
20
|
+
d(this, n, i(this, g, "1"));
|
|
21
21
|
d(this, r, (i(this, _), i(this, z, !1)));
|
|
22
22
|
d(this, c, (i(this, w), i(this, T, "")));
|
|
23
23
|
i(this, S);
|
|
@@ -64,16 +64,16 @@ let V = (() => {
|
|
|
64
64
|
</div>
|
|
65
65
|
`;
|
|
66
66
|
}
|
|
67
|
-
}, n = new WeakMap(), r = new WeakMap(), c = new WeakMap(),
|
|
67
|
+
}, n = new WeakMap(), r = new WeakMap(), c = new WeakMap(), o = l, (() => {
|
|
68
68
|
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
69
|
-
|
|
69
|
+
x = [u()], y = [$(), u({ reflect: !0, type: Boolean })], k = [$(), u({ reflect: !0, converter: A })], h(l, null, x, { kind: "accessor", name: "level", static: !1, private: !1, access: { has: (a) => "level" in a, get: (a) => a.level, set: (a, v) => {
|
|
70
70
|
a.level = v;
|
|
71
|
-
} }, metadata: b },
|
|
71
|
+
} }, metadata: b }, g, _), h(l, null, y, { kind: "accessor", name: "active", static: !1, private: !1, access: { has: (a) => "active" in a, get: (a) => a.active, set: (a, v) => {
|
|
72
72
|
a.active = v;
|
|
73
73
|
} }, metadata: b }, z, w), h(l, null, k, { kind: "accessor", name: "amount", static: !1, private: !1, access: { has: (a) => "amount" in a, get: (a) => a.amount, set: (a, v) => {
|
|
74
74
|
a.amount = v;
|
|
75
|
-
} }, metadata: b }, T, S), h(null, e = { value:
|
|
76
|
-
})(), l.styles = C, i(
|
|
75
|
+
} }, metadata: b }, T, S), h(null, e = { value: o }, t, { kind: "class", name: o.name, metadata: b }, null, s), o = e.value, b && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
|
|
76
|
+
})(), l.styles = C, i(o, s), o;
|
|
77
77
|
})();
|
|
78
78
|
export {
|
|
79
79
|
V as SbbTabLabelElement
|
package/tag/tag/tag.component.js
CHANGED
|
@@ -1,80 +1,77 @@
|
|
|
1
|
-
var
|
|
1
|
+
var I = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { SbbButtonBaseElement as
|
|
10
|
-
import { slotState as
|
|
11
|
-
import { isLean as
|
|
12
|
-
import { EventEmitter as
|
|
13
|
-
import { SbbDisabledTabIndexActionMixin as
|
|
14
|
-
import { SbbIconNameMixin as
|
|
15
|
-
const
|
|
16
|
-
let
|
|
4
|
+
var B = (a, s, i) => s.has(a) || I("Cannot " + i);
|
|
5
|
+
var u = (a, s, i) => (B(a, s, "read from private field"), i ? i.call(a) : s.get(a)), m = (a, s, i) => s.has(a) ? I("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, i), n = (a, s, i, b) => (B(a, s, "write to private field"), b ? b.call(a, i) : s.set(a, i), i);
|
|
6
|
+
import { __esDecorate as v, __runInitializers as l } from "tslib";
|
|
7
|
+
import { css as G, html as A } from "lit";
|
|
8
|
+
import { customElement as F, property as f } from "lit/decorators.js";
|
|
9
|
+
import { SbbButtonBaseElement as V } from "../../core/base-elements.js";
|
|
10
|
+
import { slotState as $, forceType as D, omitEmptyConverter as H, getOverride as O } from "../../core/decorators.js";
|
|
11
|
+
import { isLean as j } from "../../core/dom.js";
|
|
12
|
+
import { EventEmitter as p } from "../../core/eventing.js";
|
|
13
|
+
import { SbbDisabledTabIndexActionMixin as L } from "../../core/mixins.js";
|
|
14
|
+
import { SbbIconNameMixin as M } from "../../icon.js";
|
|
15
|
+
const R = G`*,:before,:after{box-sizing:border-box}:host{display:inline-block;outline:none!important;max-width:100%;--sbb-tag-border-radius: var(--sbb-border-radius-infinity);--sbb-tag-background-color: var(--sbb-color-white);--sbb-tag-border-color: var(--sbb-color-cloud);--sbb-tag-border-style: solid;--sbb-tag-border-width: var(--sbb-border-width-1x);--sbb-tag-text-color: var(--sbb-color-charcoal);--sbb-tag-amount-color: var(--sbb-color-metal);--sbb-tag-height: var(--sbb-size-element-xs);--sbb-tag-inset: 0;--sbb-tag-cursor: pointer;--sbb-tag-content-shift: translateY(0);--sbb-tag-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tag-animation-easing: var(--sbb-animation-easing);--sbb-tag-padding-inline: var(--sbb-spacing-fixed-5x);--sbb-tag-gap: var(--sbb-spacing-fixed-2x)}@media (forced-colors: active){:host{--sbb-tag-background-color: Canvas !important;--sbb-tag-text-color: ButtonText;--sbb-tag-amount-color: ButtonText;--sbb-tag-border-color: CanvasText;--sbb-tag-border-width: var(--sbb-border-width-2x)}}:host([data-checked]){--sbb-tag-border-color: var(--sbb-color-charcoal);--sbb-tag-border-width: var(--sbb-border-width-2x)}@media (forced-colors: active){:host([data-checked]){--sbb-tag-border-color: Highlight !important}}:host(:is(:disabled,[disabled-interactive])){--sbb-tag-text-color: var(--sbb-color-granite);--sbb-tag-amount-color: var(--sbb-tag-text-color);--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-border-color: var(--sbb-color-cement);--sbb-tag-border-style: dashed;--sbb-tag-cursor: unset;--sbb-tag-pointer-events: none}@media (forced-colors: active){:host(:is(:disabled,[disabled-interactive])){--sbb-tag-text-color: GrayText;--sbb-tag-amount-color: GrayText;--sbb-tag-border-color: GrayText}}:host([data-checked]:is(:disabled,[disabled-interactive])){--sbb-tag-border-color: var(--sbb-color-metal)}@media (any-hover: hover){:host(:hover:not(:disabled,[disabled-interactive],:active,[data-active])){--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-inset: calc(var(--sbb-border-width-2x) * -1);--sbb-tag-content-shift: translateY(calc(var(--sbb-border-width-1x) * -1))}}@media (any-hover: hover) and (forced-colors: active){:host(:hover:not(:disabled,[disabled-interactive],:active,[data-active])){--sbb-tag-border-color: Highlight}}:host(:is(:active,[data-active]):not(:disabled,[disabled-interactive])){--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-border-color: var(--sbb-color-iron);--sbb-tag-border-width: var(--sbb-border-width-2x);--sbb-tag-text-color: var(--sbb-color-iron)}@media (forced-colors: active){:host(:is(:active,[data-active]):not(:disabled,[disabled-interactive])){--sbb-tag-border-color: Highlight;--sbb-tag-text-color: ButtonText}}:host([size=s]){--sbb-tag-height: var(--sbb-size-element-xxxs);--sbb-tag-padding-inline: var(--sbb-spacing-fixed-3x)}.sbb-tag{--sbb-text-font-size: var(--sbb-font-size-text-xs);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);font-weight:700;position:relative;display:flex;align-items:center;height:var(--sbb-tag-height);max-width:100%;gap:var(--sbb-tag-gap);padding-inline:var(--sbb-tag-padding-inline);cursor:var(--sbb-tag-cursor);border-radius:var(--sbb-tag-border-radius);color:var(--sbb-tag-text-color);transition:color var(--sbb-tag-animation-duration) var(--sbb-tag-animation-easing);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;pointer-events:var(--sbb-tag-pointer-events, unset)}.sbb-tag:before{content:"";position:absolute;inset:var(--sbb-tag-inset);background-color:var(--sbb-tag-background-color);border:var(--sbb-tag-border-width) var(--sbb-tag-border-style) var(--sbb-tag-border-color);border-radius:var(--sbb-tag-border-radius);transition-duration:var(--sbb-tag-animation-duration);transition-timing-function:var(--sbb-tag-animation-easing);transition-property:inset,background-color,border-color,box-shadow}:host(:focus-visible) .sbb-tag:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-tag__icon{display:flex;align-items:center;height:calc(var(--sbb-typo-line-height-body-text) * 1em);flex-shrink:0}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-tag__icon{display:none}.sbb-tag__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-tag__amount{--sbb-text-font-size: var(--sbb-font-size-text-xs);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);color:var(--sbb-tag-amount-color)}:host(:not([data-slot-names~=amount],[amount])) .sbb-tag__amount{display:none}.sbb-tag--shift{transition:transform var(--sbb-tag-animation-duration) var(--sbb-tag-animation-easing);transform:var(--sbb-tag-content-shift);will-change:transform}`;
|
|
16
|
+
let tt = (() => {
|
|
17
17
|
var c, d, h, o;
|
|
18
|
-
let a = [
|
|
19
|
-
var
|
|
18
|
+
let a = [F("sbb-tag"), $()], s, i = [], b, x = M(L(V)), _, k = [], y = [], w, z = [], C = [], S, T = [], E = [];
|
|
19
|
+
var g = (o = class extends x {
|
|
20
20
|
constructor() {
|
|
21
|
-
var t;
|
|
22
21
|
super();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
n(this, c, l(this,
|
|
22
|
+
m(this, c);
|
|
23
|
+
m(this, d);
|
|
24
|
+
m(this, h);
|
|
25
|
+
n(this, c, l(this, k, "")), n(this, d, (l(this, y), l(this, z, !1))), n(this, h, (l(this, C), l(this, T, j() ? "s" : "m"))), this._group = (l(this, E), null), this._input = new p(this, g.events.input, {
|
|
27
26
|
bubbles: !0,
|
|
28
27
|
composed: !0
|
|
29
|
-
}), this._didChange = new
|
|
28
|
+
}), this._didChange = new p(this, g.events.didChange, {
|
|
30
29
|
bubbles: !0
|
|
31
|
-
}), this._change = new
|
|
30
|
+
}), this._change = new p(this, g.events.change, {
|
|
32
31
|
bubbles: !0
|
|
33
|
-
}),
|
|
32
|
+
}), this.addEventListener?.("click", () => this._handleClick());
|
|
34
33
|
}
|
|
35
34
|
/** Amount displayed inside the tag. */
|
|
36
35
|
get amount() {
|
|
37
|
-
return
|
|
36
|
+
return u(this, c);
|
|
38
37
|
}
|
|
39
|
-
set amount(
|
|
40
|
-
n(this, c,
|
|
38
|
+
set amount(e) {
|
|
39
|
+
n(this, c, e);
|
|
41
40
|
}
|
|
42
41
|
/** Whether the tag is checked. */
|
|
43
42
|
get checked() {
|
|
44
|
-
return
|
|
43
|
+
return u(this, d);
|
|
45
44
|
}
|
|
46
|
-
set checked(
|
|
47
|
-
n(this, d,
|
|
45
|
+
set checked(e) {
|
|
46
|
+
n(this, d, e);
|
|
48
47
|
}
|
|
49
48
|
/**
|
|
50
49
|
* Tag size, either s or m.
|
|
51
50
|
* @default 'm' / 's' (lean)
|
|
52
51
|
*/
|
|
53
52
|
get size() {
|
|
54
|
-
return
|
|
53
|
+
return u(this, h);
|
|
55
54
|
}
|
|
56
|
-
set size(
|
|
57
|
-
n(this, h,
|
|
55
|
+
set size(e) {
|
|
56
|
+
n(this, h, e);
|
|
58
57
|
}
|
|
59
58
|
connectedCallback() {
|
|
60
59
|
super.connectedCallback(), this._group = this.closest("sbb-tag-group");
|
|
61
60
|
}
|
|
62
61
|
isDisabledExternally() {
|
|
63
|
-
|
|
64
|
-
return ((t = this._group) == null ? void 0 : t.disabled) ?? !1;
|
|
62
|
+
return this._group?.disabled ?? !1;
|
|
65
63
|
}
|
|
66
64
|
/** Method triggered on button click. Inverts the checked value and emits events. */
|
|
67
65
|
_handleClick() {
|
|
68
66
|
if (this.disabled)
|
|
69
67
|
return;
|
|
70
|
-
const
|
|
71
|
-
|
|
68
|
+
const e = this.closest("sbb-tag-group");
|
|
69
|
+
e && !e.multiple && this.checked || (this.checked = !this.checked, this._input.emit(), this._change.emit(), this._didChange.emit());
|
|
72
70
|
}
|
|
73
|
-
willUpdate(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
e && !e.multiple && t.has("checked") && this.checked && (e == null || e.tags.filter((g) => g !== this).forEach((g) => g.checked = !1));
|
|
71
|
+
willUpdate(e) {
|
|
72
|
+
super.willUpdate(e), e.has("checked") && (this.setAttribute("aria-pressed", `${this.checked}`), this.toggleAttribute("data-checked", this.checked), this.updateFormValue());
|
|
73
|
+
const t = this.closest?.("sbb-tag-group");
|
|
74
|
+
t && !t.multiple && e.has("checked") && this.checked && t?.tags.filter((r) => r !== this).forEach((r) => r.checked = !1);
|
|
78
75
|
}
|
|
79
76
|
/**
|
|
80
77
|
* @internal
|
|
@@ -85,14 +82,14 @@ let et = (() => {
|
|
|
85
82
|
/**
|
|
86
83
|
* @internal
|
|
87
84
|
*/
|
|
88
|
-
formStateRestoreCallback(
|
|
89
|
-
|
|
85
|
+
formStateRestoreCallback(e, t) {
|
|
86
|
+
e && (this.checked = e === "true");
|
|
90
87
|
}
|
|
91
88
|
updateFormValue() {
|
|
92
89
|
this.checked ? this.internals.setFormValue(this.value, `${this.checked}`) : this.internals.setFormValue(null);
|
|
93
90
|
}
|
|
94
91
|
renderTemplate() {
|
|
95
|
-
return
|
|
92
|
+
return A`
|
|
96
93
|
<span class="sbb-tag__icon sbb-tag--shift"> ${this.renderIconSlot()} </span>
|
|
97
94
|
<span class="sbb-tag__text sbb-tag--shift">
|
|
98
95
|
<slot></slot>
|
|
@@ -102,25 +99,22 @@ let et = (() => {
|
|
|
102
99
|
</span>
|
|
103
100
|
`;
|
|
104
101
|
}
|
|
105
|
-
}, c = new WeakMap(), d = new WeakMap(), h = new WeakMap(),
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
e.size = b;
|
|
116
|
-
} }, metadata: t }, E, I), f(null, s = { value: r }, a, { kind: "class", name: r.name, metadata: t }, null, i), u = r = s.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
117
|
-
})(), o.styles = U, o.events = {
|
|
102
|
+
}, c = new WeakMap(), d = new WeakMap(), h = new WeakMap(), b = o, (() => {
|
|
103
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
104
|
+
_ = [D(), f({ reflect: !0, converter: H })], w = [D(), f({ reflect: !1, type: Boolean })], S = [f({ reflect: !0 }), O((t, r) => t._group?.size ?? r)], v(o, null, _, { kind: "accessor", name: "amount", static: !1, private: !1, access: { has: (t) => "amount" in t, get: (t) => t.amount, set: (t, r) => {
|
|
105
|
+
t.amount = r;
|
|
106
|
+
} }, metadata: e }, k, y), v(o, null, w, { kind: "accessor", name: "checked", static: !1, private: !1, access: { has: (t) => "checked" in t, get: (t) => t.checked, set: (t, r) => {
|
|
107
|
+
t.checked = r;
|
|
108
|
+
} }, metadata: e }, z, C), v(o, null, S, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, r) => {
|
|
109
|
+
t.size = r;
|
|
110
|
+
} }, metadata: e }, T, E), v(null, s = { value: b }, a, { kind: "class", name: b.name, metadata: e }, null, i), g = b = s.value, e && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
111
|
+
})(), o.styles = R, o.events = {
|
|
118
112
|
input: "input",
|
|
119
113
|
didChange: "didChange",
|
|
120
114
|
change: "change"
|
|
121
|
-
}, l(
|
|
122
|
-
return
|
|
115
|
+
}, l(b, i), o);
|
|
116
|
+
return g = b;
|
|
123
117
|
})();
|
|
124
118
|
export {
|
|
125
|
-
|
|
119
|
+
tt as SbbTagElement
|
|
126
120
|
};
|