@sbb-esta/lyne-elements 2.2.0 → 2.4.1
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.js +6 -6
- package/alert/alert-group.js +4 -4
- package/alert/alert.js +9 -9
- package/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +4 -4
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
- package/autocomplete-grid/autocomplete-grid-row.js +4 -4
- package/autocomplete-grid/autocomplete-grid.js +0 -1
- package/autocomplete.js +29 -29
- package/badge.css +31 -0
- package/breadcrumb/breadcrumb-group.js +4 -4
- package/breadcrumb/breadcrumb.js +19 -19
- package/button/accent-button-link.js +9 -9
- package/button/accent-button-static.js +6 -6
- package/button/accent-button.js +6 -6
- package/button/button-link.js +7 -7
- package/button/button-static.js +7 -7
- package/button/button.js +8 -8
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common.js +1 -1
- package/button/mini-button-group.js +8 -8
- package/button/secondary-button-link.js +7 -7
- package/button/secondary-button-static.js +7 -7
- package/button/secondary-button.js +3 -3
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static.js +5 -5
- package/button/transparent-button.js +6 -6
- package/calendar/calendar.d.ts +55 -11
- package/calendar/calendar.d.ts.map +1 -1
- package/calendar.js +374 -224
- package/card/card-badge.js +9 -9
- package/card/card-button.js +5 -5
- package/card/card-link.js +7 -7
- package/card/card.js +1 -1
- package/card/common/card-action-common.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/checkbox/checkbox-group.js +1 -1
- package/checkbox/checkbox-panel.js +16 -16
- package/checkbox/checkbox.js +15 -15
- package/checkbox/common/checkbox-common.d.ts.map +1 -1
- package/checkbox/common.js +3 -3
- package/clock.js +8 -8
- package/container/container.js +4 -4
- package/core/base-elements.js +10 -10
- package/core/controllers/escapable-overlay-controller.d.ts +11 -0
- package/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
- package/core/controllers.d.ts +1 -0
- package/core/controllers.d.ts.map +1 -1
- package/core/controllers.js +73 -47
- package/core/datetime/date-adapter.d.ts +4 -2
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.d.ts +1 -1
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime.js +51 -43
- package/core/decorators/date-converter.d.ts +8 -0
- package/core/decorators/date-converter.d.ts.map +1 -0
- package/core/decorators/date-only-type.d.ts +8 -0
- package/core/decorators/date-only-type.d.ts.map +1 -0
- package/core/decorators/get-override.d.ts.map +1 -1
- package/core/decorators/handle-distinct-change.d.ts.map +1 -1
- package/core/decorators/host-attributes.d.ts.map +1 -1
- package/core/decorators/slot-state.d.ts.map +1 -1
- package/core/decorators.d.ts +2 -0
- package/core/decorators.d.ts.map +1 -1
- package/core/decorators.js +52 -31
- package/core/dom/input-element.d.ts +1 -1
- package/core/dom/input-element.d.ts.map +1 -1
- package/core/dom.js +5 -5
- package/core/eventing/throttle.d.ts.map +1 -1
- package/core/eventing.js +4 -4
- package/core/i18n/i18n.d.ts +6 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n.js +106 -70
- package/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-input-mixin.d.ts +25 -0
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
- package/core/mixins/form-associated-mixin.d.ts +16 -0
- package/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/core/mixins/hydration-mixin.d.ts.map +1 -1
- package/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
- package/core/mixins/negative-mixin.d.ts.map +1 -1
- package/core/mixins/panel-mixin.d.ts.map +1 -1
- package/core/mixins/required-mixin.d.ts.map +1 -1
- package/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
- package/core/mixins.d.ts +1 -0
- package/core/mixins.d.ts.map +1 -1
- package/core/mixins.js +574 -295
- package/core/styles/badge.scss +3 -0
- package/core/styles/core.scss +3 -1
- package/core/styles/mixins/badge.scss +26 -1
- package/core/styles/mixins/font-face.scss +12 -12
- package/core/styles/mixins/link.scss +32 -8
- package/core/styles/standard-theme.scss +1 -0
- package/core/testing/mocha-extensions.d.ts.map +1 -1
- package/core/testing/wait-for-render.d.ts.map +1 -1
- package/core/testing.js +14 -14
- package/core.css +5 -5
- package/custom-elements.json +28284 -17221
- package/date-input/date-input.d.ts +67 -0
- package/date-input/date-input.d.ts.map +1 -0
- package/date-input.d.ts +2 -0
- package/date-input.d.ts.map +1 -0
- package/date-input.js +149 -0
- package/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/datepicker/common.js +49 -45
- package/datepicker/datepicker/datepicker.d.ts +16 -6
- package/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/datepicker/datepicker-toggle.js +43 -40
- package/datepicker/datepicker.js +94 -76
- package/development/alert/alert-group.js +1 -1
- package/development/alert/alert.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid.js +1 -2
- package/development/autocomplete.js +10 -5
- package/development/breadcrumb/breadcrumb.js +5 -2
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common.js +18 -14
- package/development/calendar/calendar.d.ts +55 -11
- package/development/calendar/calendar.d.ts.map +1 -1
- package/development/calendar.js +302 -88
- package/development/card/card.js +1 -1
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/development/checkbox/checkbox-group.js +2 -2
- package/development/checkbox/checkbox-panel.js +1 -1
- package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
- package/development/core/controllers/escapable-overlay-controller.d.ts +11 -0
- package/development/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
- package/development/core/controllers.d.ts +1 -0
- package/development/core/controllers.d.ts.map +1 -1
- package/development/core/controllers.js +36 -1
- package/development/core/datetime/date-adapter.d.ts +4 -2
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.d.ts +1 -1
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime.js +14 -2
- package/development/core/decorators/date-converter.d.ts +8 -0
- package/development/core/decorators/date-converter.d.ts.map +1 -0
- package/development/core/decorators/date-only-type.d.ts +8 -0
- package/development/core/decorators/date-only-type.d.ts.map +1 -0
- package/development/core/decorators/get-override.d.ts.map +1 -1
- package/development/core/decorators/handle-distinct-change.d.ts.map +1 -1
- package/development/core/decorators/host-attributes.d.ts.map +1 -1
- package/development/core/decorators/slot-state.d.ts.map +1 -1
- package/development/core/decorators.d.ts +2 -0
- package/development/core/decorators.d.ts.map +1 -1
- package/development/core/decorators.js +23 -2
- package/development/core/dom/input-element.d.ts +1 -1
- package/development/core/dom/input-element.d.ts.map +1 -1
- package/development/core/dom.js +3 -3
- package/development/core/eventing/throttle.d.ts.map +1 -1
- package/development/core/i18n/i18n.d.ts +6 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n.js +43 -1
- package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.d.ts +25 -0
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
- package/development/core/mixins/form-associated-mixin.d.ts +16 -0
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/development/core/mixins/hydration-mixin.d.ts.map +1 -1
- package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
- package/development/core/mixins/negative-mixin.d.ts.map +1 -1
- package/development/core/mixins/panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/required-mixin.d.ts.map +1 -1
- package/development/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
- package/development/core/mixins.d.ts +1 -0
- package/development/core/mixins.d.ts.map +1 -1
- package/development/core/mixins.js +460 -32
- package/development/core/testing/mocha-extensions.d.ts.map +1 -1
- package/development/core/testing/wait-for-render.d.ts.map +1 -1
- package/development/date-input/date-input.d.ts +67 -0
- package/development/date-input/date-input.d.ts.map +1 -0
- package/development/date-input.d.ts +2 -0
- package/development/date-input.d.ts.map +1 -0
- package/development/date-input.js +259 -0
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common.js +11 -2
- package/development/datepicker/datepicker/datepicker.d.ts +16 -6
- package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle.js +13 -4
- package/development/datepicker/datepicker.js +65 -39
- package/development/dialog/dialog/dialog.d.ts.map +1 -1
- package/development/dialog/dialog-title.js +1 -1
- package/development/dialog/dialog.js +3 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-header.js +1 -1
- package/development/expansion-panel/expansion-panel.js +3 -3
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common.js +1 -1
- package/development/footer.js +1 -1
- package/development/form-field/form-field/form-field.d.ts +1 -1
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field.js +23 -14
- package/development/header/common/header-action-common.d.ts.map +1 -1
- package/development/icon/icon-name-mixin.d.ts.map +1 -1
- package/development/icon/icon-request.d.ts.map +1 -1
- package/development/icon/icon-validate.d.ts.map +1 -1
- package/development/image.js +1 -1
- package/development/journey-header.js +1 -1
- package/development/link/common/block-link-common.d.ts.map +1 -1
- package/development/link/common/inline-link-common.d.ts.map +1 -1
- package/development/link/common/link-common.d.ts.map +1 -1
- package/development/link/common.js +19 -7
- package/development/link-list/common.js +1 -1
- package/development/map-container.js +1 -1
- package/development/menu/common/menu-action-common.d.ts +3 -0
- package/development/menu/common/menu-action-common.d.ts.map +1 -1
- package/development/menu/common.js +35 -12
- package/development/menu/menu/menu.d.ts +1 -1
- package/development/menu/menu/menu.d.ts.map +1 -1
- package/development/menu/menu.js +5 -15
- package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/development/navigation/navigation/navigation.d.ts +1 -3
- package/development/navigation/navigation/navigation.d.ts.map +1 -1
- package/development/navigation/navigation-section.js +1 -1
- package/development/navigation/navigation.js +8 -21
- package/development/notification.js +1 -1
- package/development/overlay/overlay-base-element.d.ts +2 -2
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay.d.ts.map +1 -1
- package/development/overlay.js +7 -14
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/popover/popover/popover.d.ts +1 -1
- package/development/popover/popover/popover.d.ts.map +1 -1
- package/development/popover/popover.js +5 -15
- package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/development/radio-button/radio-button-group.js +2 -2
- package/development/radio-button/radio-button-panel.js +1 -1
- package/development/select/select.d.ts +6 -1
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +28 -6
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/development/selection-expansion-panel.js +2 -2
- package/development/skiplink-list.js +1 -1
- package/development/slider.js +1 -1
- package/development/stepper/step/step.d.ts +0 -2
- package/development/stepper/step/step.d.ts.map +1 -1
- package/development/stepper/step.js +1 -16
- package/development/stepper/stepper/stepper.d.ts +11 -0
- package/development/stepper/stepper/stepper.d.ts.map +1 -1
- package/development/stepper/stepper.js +30 -3
- package/development/tabs/tab-label.js +1 -1
- package/development/tag/tag/tag.d.ts +11 -0
- package/development/tag/tag/tag.d.ts.map +1 -1
- package/development/tag/tag-group/tag-group.d.ts +1 -1
- package/development/tag/tag-group/tag-group.d.ts.map +1 -1
- package/development/tag/tag-group.js +9 -3
- package/development/tag/tag.js +37 -10
- package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -1
- package/development/timetable-occupancy.js +1 -1
- package/development/toast.js +1 -1
- package/development/toggle/toggle/toggle.d.ts +25 -6
- package/development/toggle/toggle/toggle.d.ts.map +1 -1
- package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
- package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
- package/development/toggle/toggle-option.js +21 -39
- package/development/toggle/toggle.js +57 -39
- package/development/train/train-formation.js +1 -1
- package/development/train/train.js +1 -1
- package/development/visual-checkbox.js +1 -1
- package/dialog/dialog/dialog.d.ts.map +1 -1
- package/dialog/dialog-content.js +3 -3
- package/dialog/dialog-title.js +8 -8
- package/dialog/dialog.js +2 -2
- package/divider.js +12 -12
- package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-header.js +1 -1
- package/expansion-panel/expansion-panel.js +2 -2
- package/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/file-selector/common.js +9 -9
- package/file-selector/file-selector-dropzone.js +5 -5
- package/file-selector/file-selector.js +6 -6
- package/flip-card/flip-card-details.js +4 -4
- package/flip-card/flip-card-summary.js +9 -9
- package/font-characters-extension.css +3 -3
- package/footer.js +4 -4
- package/form-field/form-field/form-field.d.ts +1 -1
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field.js +32 -24
- package/header/common/header-action-common.d.ts.map +1 -1
- package/header/header-button.js +5 -5
- package/header/header-link.js +5 -5
- package/icon/icon-name-mixin.d.ts.map +1 -1
- package/icon/icon-request.d.ts.map +1 -1
- package/icon/icon-validate.d.ts.map +1 -1
- package/icon.js +36 -36
- package/image.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/journey-header.js +5 -5
- package/link/block-link-button.js +4 -4
- package/link/block-link-static.js +9 -9
- package/link/block-link.js +4 -4
- package/link/common/block-link-common.d.ts.map +1 -1
- package/link/common/inline-link-common.d.ts.map +1 -1
- package/link/common/link-common.d.ts.map +1 -1
- package/link/common.js +28 -28
- package/link/link-button.js +7 -7
- package/link/link-static.js +7 -7
- package/link/link.js +4 -4
- package/link-list/common.js +15 -15
- package/loading-indicator-circle.js +11 -11
- package/map-container.js +5 -5
- package/menu/common/menu-action-common.d.ts +3 -0
- package/menu/common/menu-action-common.d.ts.map +1 -1
- package/menu/common.js +34 -30
- package/menu/menu/menu.d.ts +1 -1
- package/menu/menu/menu.d.ts.map +1 -1
- package/menu/menu-button.js +8 -8
- package/menu/menu-link.js +6 -6
- package/menu/menu.js +29 -38
- package/navigation/common/navigation-action-common.d.ts.map +1 -1
- package/navigation/navigation/navigation.d.ts +1 -3
- package/navigation/navigation/navigation.d.ts.map +1 -1
- package/navigation/navigation-button.js +4 -4
- package/navigation/navigation-link.js +7 -7
- package/navigation/navigation-list.js +4 -4
- package/navigation/navigation-marker.js +3 -3
- package/navigation/navigation-section.js +1 -1
- package/navigation/navigation.js +45 -54
- package/notification.js +18 -18
- package/option/optgroup.js +11 -11
- package/overlay/overlay-base-element.d.ts +2 -2
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay.d.ts.map +1 -1
- package/overlay.js +57 -63
- package/package.json +11 -2
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common.js +6 -6
- package/popover/popover/popover.d.ts +1 -1
- package/popover/popover/popover.d.ts.map +1 -1
- package/popover/popover.js +105 -114
- package/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/radio-button/radio-button-group.js +1 -1
- package/radio-button/radio-button-panel.js +6 -6
- package/screen-reader-only.js +5 -5
- package/select/select.d.ts +6 -1
- package/select/select.d.ts.map +1 -1
- package/select.js +52 -43
- package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/selection-expansion-panel.js +1 -1
- package/skiplink-list.js +3 -3
- package/slider.js +13 -13
- package/standard-theme.css +37 -5
- package/status.js +3 -3
- package/stepper/step/step.d.ts +0 -2
- package/stepper/step/step.d.ts.map +1 -1
- package/stepper/step-label.js +4 -4
- package/stepper/step.js +24 -36
- package/stepper/stepper/stepper.d.ts +11 -0
- package/stepper/stepper/stepper.d.ts.map +1 -1
- package/stepper/stepper.js +59 -41
- package/table/table-wrapper.js +4 -4
- package/tabs/tab-group.js +24 -24
- package/tabs/tab-label.js +1 -1
- package/tabs/tab.js +4 -4
- package/tag/tag/tag.d.ts +11 -0
- package/tag/tag/tag.d.ts.map +1 -1
- package/tag/tag-group/tag-group.d.ts +1 -1
- package/tag/tag-group/tag-group.d.ts.map +1 -1
- package/tag/tag-group.js +34 -31
- package/tag/tag.js +60 -41
- package/teaser-product/common/teaser-product-common.d.ts.map +1 -1
- package/teaser-product/common.js +5 -5
- package/teaser-product/teaser-product-static.js +2 -2
- package/timetable-occupancy-icon.js +3 -3
- package/timetable-occupancy.js +6 -6
- package/toast.js +5 -5
- package/toggle/toggle/toggle.d.ts +25 -6
- package/toggle/toggle/toggle.d.ts.map +1 -1
- package/toggle/toggle-option/toggle-option.d.ts +2 -6
- package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
- package/toggle/toggle-option.js +44 -52
- package/toggle/toggle.js +103 -83
- package/toggle-check.js +5 -5
- package/train/train-formation.js +1 -1
- package/train/train.js +29 -29
- package/visual-checkbox.js +1 -1
package/stepper/step.js
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
let E = 0, L = (() => {
|
|
1
|
+
import { __esDecorate as c, __runInitializers as h } from "tslib";
|
|
2
|
+
import { css as m, LitElement as u, html as v } from "lit";
|
|
3
|
+
import { customElement as f } from "lit/decorators.js";
|
|
4
|
+
import { hostAttributes as g } from "../core/decorators.js";
|
|
5
|
+
import { EventEmitter as y } from "../core/eventing.js";
|
|
6
|
+
const _ = m`*,:before,:after{box-sizing:border-box}:host{--sbb-step-position: initial;--sbb-step-inset-block-start: unset;--sbb-step-opacity: 0;--sbb-step-visibility: hidden;--sbb-step-height: 0;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-step-animation-delay: 0;--sbb-step-color: var(--sbb-color-iron);display:contents}:host([data-selected]){--sbb-step-opacity: 1;--sbb-step-visibility: visible;--sbb-step-height: fit-content;--sbb-step-animation-duration: var(--sbb-animation-duration-4x);--sbb-step-animation-delay: var(--sbb-step-animation-duration)}:host([data-orientation=horizontal]){--sbb-step-position: absolute;--sbb-step-inset-block-start: 0}:host([data-orientation=vertical]) .sbb-step--wrapper{margin-inline-start:var(--sbb-spacing-fixed-4x);opacity:0;height:0;transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-animation-easing)}:host([data-selected][data-orientation=vertical]) .sbb-step--wrapper{opacity:1;height:var(--sbb-stepper-content-height);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}.sbb-step{--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);position:var(--sbb-step-position);width:100%;inset-block-start:var(--sbb-step-inset-block-start);opacity:var(--sbb-step-opacity);visibility:var(--sbb-step-visibility);height:var(--sbb-step-height);color:var(--sbb-step-color);transition-property:opacity,visibility;transition-duration:var(--sbb-step-animation-duration);transition-delay:var(--sbb-step-animation-delay);transition-timing-function:var(--sbb-animation-easing)}`;
|
|
7
|
+
let x = 0, A = (() => {
|
|
9
8
|
var e;
|
|
10
|
-
let
|
|
9
|
+
let d = [f("sbb-step"), g({
|
|
11
10
|
slot: "step",
|
|
12
11
|
role: "tabpanel"
|
|
13
|
-
})],
|
|
14
|
-
var b = (e = class extends
|
|
12
|
+
})], n, r = [], i, o = u;
|
|
13
|
+
var b = (e = class extends o {
|
|
15
14
|
/** The label of the step. */
|
|
16
15
|
get label() {
|
|
17
16
|
return this._label;
|
|
18
17
|
}
|
|
19
18
|
constructor() {
|
|
20
19
|
var t;
|
|
21
|
-
super(), this._validate = new
|
|
22
|
-
target: null,
|
|
23
|
-
skipInitial: !0,
|
|
24
|
-
callback: (i) => this._onStepElementResize(i)
|
|
25
|
-
}), (t = this.addEventListener) == null || t.call(this, "click", (i) => this._handleClick(i));
|
|
20
|
+
super(), this._validate = new y(this, b.events.validate), this._loaded = !1, this._stepper = null, this._label = null, (t = this.addEventListener) == null || t.call(this, "click", (a) => this._handleClick(a));
|
|
26
21
|
}
|
|
27
22
|
/**
|
|
28
23
|
* Selects and configures the step.
|
|
@@ -54,9 +49,9 @@ let E = 0, L = (() => {
|
|
|
54
49
|
}
|
|
55
50
|
/** Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes. */
|
|
56
51
|
_handleClick(t) {
|
|
57
|
-
var
|
|
58
|
-
const
|
|
59
|
-
|
|
52
|
+
var l, p;
|
|
53
|
+
const a = t.composedPath().filter((s) => s instanceof window.HTMLElement);
|
|
54
|
+
a.some((s) => this._isGoNextElement(s)) ? (l = this._stepper) == null || l.next() : a.some((s) => this._isGoPreviousElement(s)) && ((p = this._stepper) == null || p.previous());
|
|
60
55
|
}
|
|
61
56
|
_isGoNextElement(t) {
|
|
62
57
|
return t.hasAttribute("sbb-stepper-next") && !t.hasAttribute("disabled");
|
|
@@ -64,13 +59,6 @@ let E = 0, L = (() => {
|
|
|
64
59
|
_isGoPreviousElement(t) {
|
|
65
60
|
return t.hasAttribute("sbb-stepper-previous") && !t.hasAttribute("disabled");
|
|
66
61
|
}
|
|
67
|
-
_onStepElementResize(t) {
|
|
68
|
-
var a, n;
|
|
69
|
-
if (!this.hasAttribute("data-selected"))
|
|
70
|
-
return;
|
|
71
|
-
const i = Math.floor(t[0].contentRect.height);
|
|
72
|
-
(n = (a = this._stepper) == null ? void 0 : a.style) == null || n.setProperty("--sbb-stepper-content-height", `${i}px`);
|
|
73
|
-
}
|
|
74
62
|
_getStepLabel() {
|
|
75
63
|
let t = this.previousElementSibling;
|
|
76
64
|
for (; t && t.localName !== "sbb-step-label"; )
|
|
@@ -78,13 +66,13 @@ let E = 0, L = (() => {
|
|
|
78
66
|
return t;
|
|
79
67
|
}
|
|
80
68
|
connectedCallback() {
|
|
81
|
-
super.connectedCallback(), this.id = this.id || `sbb-step-${
|
|
69
|
+
super.connectedCallback(), this.id = this.id || `sbb-step-${x++}`, this._stepper = this.closest("sbb-stepper"), this._label = this._getStepLabel();
|
|
82
70
|
}
|
|
83
71
|
firstUpdated(t) {
|
|
84
|
-
super.firstUpdated(t), this._loaded = !0
|
|
72
|
+
super.firstUpdated(t), this._loaded = !0;
|
|
85
73
|
}
|
|
86
74
|
render() {
|
|
87
|
-
return
|
|
75
|
+
return v`
|
|
88
76
|
<div class="sbb-step--wrapper">
|
|
89
77
|
<div class="sbb-step">
|
|
90
78
|
<slot></slot>
|
|
@@ -92,14 +80,14 @@ let E = 0, L = (() => {
|
|
|
92
80
|
</div>
|
|
93
81
|
`;
|
|
94
82
|
}
|
|
95
|
-
},
|
|
96
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
97
|
-
|
|
98
|
-
})(), e.styles =
|
|
83
|
+
}, i = e, (() => {
|
|
84
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
85
|
+
c(null, n = { value: i }, d, { kind: "class", name: i.name, metadata: t }, null, r), b = i = n.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
86
|
+
})(), e.styles = _, e.events = {
|
|
99
87
|
validate: "validate"
|
|
100
|
-
},
|
|
101
|
-
return b =
|
|
88
|
+
}, h(i, r), e);
|
|
89
|
+
return b = i;
|
|
102
90
|
})();
|
|
103
91
|
export {
|
|
104
|
-
|
|
92
|
+
A as SbbStepElement
|
|
105
93
|
};
|
|
@@ -10,6 +10,13 @@ declare const SbbStepperElement_base: import('../../core/mixins.js').AbstractCon
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class SbbStepperElement extends SbbStepperElement_base {
|
|
12
12
|
static styles: CSSResultGroup;
|
|
13
|
+
/**
|
|
14
|
+
* If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,
|
|
15
|
+
* because the calculations are done when the dialog is closed, so the marker has a width of 0;
|
|
16
|
+
* the same happens for the stepper height.
|
|
17
|
+
* We need to recalculate it when the element becomes visible.
|
|
18
|
+
*/
|
|
19
|
+
private _observer;
|
|
13
20
|
/** If set to true, only the current and previous labels can be clicked and selected. */
|
|
14
21
|
accessor linear: boolean;
|
|
15
22
|
/** Overrides the behaviour of `orientation` property. */
|
|
@@ -44,6 +51,10 @@ export declare class SbbStepperElement extends SbbStepperElement_base {
|
|
|
44
51
|
private _isValidStep;
|
|
45
52
|
private _select;
|
|
46
53
|
private _setMarkerSize;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the stepper height based on the height of the provided step.
|
|
56
|
+
*/
|
|
57
|
+
private _setStepperHeight;
|
|
47
58
|
private _calculateLabelOffsetTop;
|
|
48
59
|
private _configure;
|
|
49
60
|
private _updateLabels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../../src/elements/stepper/stepper/stepper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../../src/elements/stepper/stepper/stepper.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAMb,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,KAAK,EAAE,cAAc,EAA+B,MAAM,YAAY,CAAC;;AAM9E;;;;;GAKG;AACH,qBAEM,iBAAkB,SAAQ,sBAA6B;IAC3D,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;;OAKG;IACH,OAAO,CAAC,SAAS,CAUd;IAEH,wFAAwF;IACxF,SAEgB,MAAM,EAAE,OAAO,CAAS;IAExC,yDAAyD;IACzD,IACW,cAAc,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,EAKxD;IACD,IAAW,cAAc,IAAI,iBAAiB,GAAG,IAAI,CAEpD;IACD,OAAO,CAAC,eAAe,CAAkC;IAEzD,wDAAwD;IACxD,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,mCAAmC;IACnC,IACW,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,EAI9C;IACD,IAAW,QAAQ,IAAI,cAAc,GAAG,IAAI,CAE3C;IAED,yCAAyC;IACzC,IACW,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAI5C;IACD,IAAW,aAAa,IAAI,MAAM,GAAG,IAAI,CAExC;IAED,gCAAgC;IAChC,IAAW,KAAK,IAAI,cAAc,EAAE,CAEnC;IAED,OAAO,KAAK,aAAa,GAExB;IAED,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,sBAAsB,CAA8C;;IAO5E,6BAA6B;IACtB,IAAI,IAAI,IAAI;IAMnB,iCAAiC;IAC1B,QAAQ,IAAI,IAAI;IAMvB,yFAAyF;IAClF,KAAK,IAAI,IAAI;IAcpB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,OAAO;IAyBf,OAAO,CAAC,cAAc;IAiBtB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,wBAAwB;IAoBhC,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,gBAAgB,CAWtB;IAEF,OAAO,CAAC,oBAAoB;IAUZ,iBAAiB,IAAI,IAAI;IAQzB,oBAAoB,IAAI,IAAI;cAKnB,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cAW1E,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAgB5E,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,cAAc;cAmBH,MAAM,IAAI,cAAc;CAY5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,aAAa,EAAE,iBAAiB,CAAC;KAClC;CACF"}
|
package/stepper/stepper.js
CHANGED
|
@@ -1,60 +1,68 @@
|
|
|
1
1
|
var C = (i) => {
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
var H = (i, r, a) => r.has(i) || C("Cannot " + a);
|
|
5
|
+
var g = (i, r, a) => (H(i, r, "read from private field"), a ? a.call(i) : r.get(i)), x = (i, r, a) => r.has(i) ? C("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, a), h = (i, r, a, n) => (H(i, r, "write to private field"), n ? n.call(i, a) : r.set(i, a), a);
|
|
6
|
+
import { __esDecorate as c, __runInitializers as d } from "tslib";
|
|
7
|
+
import { IntersectionController as R } from "@lit-labs/observers/intersection-controller.js";
|
|
8
|
+
import { css as U, LitElement as q, html as B } from "lit";
|
|
9
|
+
import { customElement as N, property as _ } from "lit/decorators.js";
|
|
10
|
+
import { isArrowKeyPressed as $, getNextElementIndex as j } from "../core/a11y.js";
|
|
11
|
+
import { forceType as K } from "../core/decorators.js";
|
|
12
|
+
import { breakpoints as P, isLean as V, isBreakpoint as W } from "../core/dom.js";
|
|
13
|
+
import { SbbHydrationMixin as G } from "../core/mixins.js";
|
|
14
|
+
const J = U`*,:before,:after{box-sizing:border-box}:host{--sbb-stepper-orientation: row;--sbb-stepper-border-width: var(--sbb-border-width-1x);--sbb-stepper-marker-size: 0;--sbb-stepper-marker-width: var(--sbb-border-width-3x);--sbb-stepper-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-stepper-marker-color: var(--sbb-color-charcoal);display:block;position:relative;counter-reset:step-label}@media (forced-colors: active){:host{--sbb-stepper-marker-color: ButtonText}}:host([data-disable-animation]){--sbb-disable-animation-duration: 0s}:host([orientation=vertical]){--sbb-stepper-orientation: column}.sbb-stepper{width:100%}.sbb-stepper__labels{display:flex;flex-direction:var(--sbb-stepper-orientation);position:relative;justify-content:space-between;margin-block-end:var(--sbb-spacing-responsive-m)}.sbb-stepper__labels:before{content:"";position:absolute;inset-inline-start:calc(var(--sbb-stepper-border-width) * -1);background-color:var(--sbb-stepper-marker-color)}:host([orientation=horizontal]) .sbb-stepper__labels{gap:var(--sbb-spacing-fixed-4x);padding-block-end:var(--sbb-spacing-fixed-4x);border-block-end:var(--sbb-stepper-border-width) solid var(--sbb-color-cloud)}:host([orientation=horizontal]) .sbb-stepper__labels:before{inset-block-end:calc(var(--sbb-stepper-border-width) * -1);height:var(--sbb-stepper-marker-width);width:var(--sbb-stepper-marker-size);transition:width var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}:host([orientation=vertical]) .sbb-stepper__labels{padding-inline-start:var(--sbb-spacing-fixed-4x);border-inline-start:var(--sbb-stepper-border-width) solid var(--sbb-color-cloud)}:host([orientation=vertical]) .sbb-stepper__labels:before{inset-block-start:0;width:var(--sbb-stepper-marker-width);height:var(--sbb-stepper-marker-size);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}.sbb-stepper__steps{position:relative}:host([orientation=horizontal]) .sbb-stepper__steps{height:var(--sbb-stepper-content-height);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}::slotted(sbb-step-label):before{content:counter(step-label);counter-increment:step-label}`, D = 150;
|
|
15
|
+
let le = (() => {
|
|
15
16
|
var b, p, u, l;
|
|
16
|
-
let i = [
|
|
17
|
-
return l = class extends
|
|
17
|
+
let i = [N("sbb-stepper")], r, a = [], n, v = G(q), f = [], z, k = [], S = [], y, I, w = [], E = [], A, F = [], O = [], L, T;
|
|
18
|
+
return l = class extends v {
|
|
18
19
|
constructor() {
|
|
19
20
|
var e;
|
|
20
21
|
super();
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
x(this, b);
|
|
23
|
+
x(this, p);
|
|
24
|
+
x(this, u);
|
|
25
|
+
this._observer = (d(this, f), new R(this, {
|
|
26
|
+
target: null,
|
|
27
|
+
callback: (t) => {
|
|
28
|
+
t.forEach((s) => {
|
|
29
|
+
s.intersectionRatio > 0 && (this._setStepperHeight(this.selected), this._setMarkerSize());
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
})), h(this, b, d(this, k, !1)), this._horizontalFrom = (d(this, S), null), h(this, p, d(this, w, "horizontal")), h(this, u, (d(this, E), d(this, F, V() ? "s" : "m"))), this._loaded = (d(this, O), !1), this._resizeObserverTimeout = null, this._onStepperResize = () => {
|
|
33
|
+
this._checkOrientation(), this._setStepperHeight(this.selected), clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.toggleAttribute("data-disable-animation", !1), D);
|
|
26
34
|
}, (e = this.addEventListener) == null || e.call(this, "keydown", (t) => this._handleKeyDown(t));
|
|
27
35
|
}
|
|
28
36
|
/** If set to true, only the current and previous labels can be clicked and selected. */
|
|
29
37
|
get linear() {
|
|
30
|
-
return
|
|
38
|
+
return g(this, b);
|
|
31
39
|
}
|
|
32
40
|
set linear(e) {
|
|
33
|
-
|
|
41
|
+
h(this, b, e);
|
|
34
42
|
}
|
|
35
43
|
/** Overrides the behaviour of `orientation` property. */
|
|
36
44
|
set horizontalFrom(e) {
|
|
37
|
-
this._horizontalFrom = e &&
|
|
45
|
+
this._horizontalFrom = e && P.includes(e) ? e : null, this._horizontalFrom && this._loaded && this._checkOrientation();
|
|
38
46
|
}
|
|
39
47
|
get horizontalFrom() {
|
|
40
48
|
return this._horizontalFrom;
|
|
41
49
|
}
|
|
42
50
|
/** Steps orientation, either horizontal or vertical. */
|
|
43
51
|
get orientation() {
|
|
44
|
-
return
|
|
52
|
+
return g(this, p);
|
|
45
53
|
}
|
|
46
54
|
set orientation(e) {
|
|
47
|
-
|
|
55
|
+
h(this, p, e);
|
|
48
56
|
}
|
|
49
57
|
/**
|
|
50
58
|
* Size variant, either s or m.
|
|
51
59
|
* @default 'm' / 's' (lean)
|
|
52
60
|
*/
|
|
53
61
|
get size() {
|
|
54
|
-
return
|
|
62
|
+
return g(this, u);
|
|
55
63
|
}
|
|
56
64
|
set size(e) {
|
|
57
|
-
|
|
65
|
+
h(this, u, e);
|
|
58
66
|
}
|
|
59
67
|
/** The currently selected step. */
|
|
60
68
|
set selected(e) {
|
|
@@ -121,7 +129,7 @@ let re = (() => {
|
|
|
121
129
|
if (this.selected && !this.selected.validate(t))
|
|
122
130
|
return;
|
|
123
131
|
const s = this.selected;
|
|
124
|
-
s == null || s.deselect(), e.select(), this._setMarkerSize(), this._configureLinearMode(), ((o = document.activeElement) == null ? void 0 : o.closest("sbb-stepper")) === this && ((M = (m = this.selected) == null ? void 0 : m.label) == null || M.focus());
|
|
132
|
+
s == null || s.deselect(), e.select(), this._setMarkerSize(), this._setStepperHeight(e), this._configureLinearMode(), ((o = document.activeElement) == null ? void 0 : o.closest("sbb-stepper")) === this && ((M = (m = this.selected) == null ? void 0 : m.label) == null || M.focus());
|
|
125
133
|
}
|
|
126
134
|
_setMarkerSize() {
|
|
127
135
|
if (!this._loaded || !this.selected || this.selectedIndex === void 0 || !this.selected.label)
|
|
@@ -129,6 +137,16 @@ let re = (() => {
|
|
|
129
137
|
const e = this.orientation === "horizontal" ? this.selected.label.offsetLeft + this.selected.label.offsetWidth : this._calculateLabelOffsetTop();
|
|
130
138
|
this.style.setProperty("--sbb-stepper-marker-size", `${e}px`);
|
|
131
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Sets the stepper height based on the height of the provided step.
|
|
142
|
+
*/
|
|
143
|
+
_setStepperHeight(e) {
|
|
144
|
+
var t;
|
|
145
|
+
if (e && e.shadowRoot) {
|
|
146
|
+
const s = e.shadowRoot.querySelector(".sbb-step");
|
|
147
|
+
s && ((t = this.style) == null || t.setProperty("--sbb-stepper-content-height", `${s.offsetHeight}px`));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
132
150
|
_calculateLabelOffsetTop() {
|
|
133
151
|
if (this.selectedIndex === null)
|
|
134
152
|
return;
|
|
@@ -153,7 +171,7 @@ let re = (() => {
|
|
|
153
171
|
});
|
|
154
172
|
}
|
|
155
173
|
_checkOrientation() {
|
|
156
|
-
this.horizontalFrom && (this.orientation =
|
|
174
|
+
this.horizontalFrom && (this.orientation = W(this.horizontalFrom) ? "horizontal" : "vertical", this._updateLabels()), setTimeout(() => this._setMarkerSize(), 0);
|
|
157
175
|
}
|
|
158
176
|
_configureLinearMode() {
|
|
159
177
|
this.steps.forEach((e, t) => {
|
|
@@ -170,7 +188,7 @@ let re = (() => {
|
|
|
170
188
|
super.disconnectedCallback(), window.removeEventListener("resize", this._onStepperResize);
|
|
171
189
|
}
|
|
172
190
|
async firstUpdated(e) {
|
|
173
|
-
super.firstUpdated(e), await this.updateComplete, this._loaded = !0, this.selectedIndex = this.linear ? 0 : Number(this.getAttribute("selected-index")) || 0, this._checkOrientation(), setTimeout(() => this.toggleAttribute("data-disable-animation", !1),
|
|
191
|
+
super.firstUpdated(e), await this.updateComplete, this._loaded = !0, this.selectedIndex = this.linear ? 0 : Number(this.getAttribute("selected-index")) || 0, this._observer.observe(this), this._checkOrientation(), setTimeout(() => this.toggleAttribute("data-disable-animation", !1), D);
|
|
174
192
|
}
|
|
175
193
|
willUpdate(e) {
|
|
176
194
|
super.willUpdate(e), e.has("orientation") && !this.horizontalFrom && (this._updateLabels(), this._setMarkerSize()), e.has("linear") && this._loaded && this._configureLinearMode(), e.has("size") && (this._proxySize(), this._setMarkerSize());
|
|
@@ -184,13 +202,13 @@ let re = (() => {
|
|
|
184
202
|
_handleKeyDown(e) {
|
|
185
203
|
const t = this._enabledSteps;
|
|
186
204
|
if (!(!t || // don't trap nested handling
|
|
187
|
-
e.target !== this && e.target.parentElement !== this) &&
|
|
188
|
-
const s = t.indexOf(this.selected), o =
|
|
205
|
+
e.target !== this && e.target.parentElement !== this) && $(e)) {
|
|
206
|
+
const s = t.indexOf(this.selected), o = j(e, s, t.length);
|
|
189
207
|
this._select(t[o]), e.preventDefault();
|
|
190
208
|
}
|
|
191
209
|
}
|
|
192
210
|
render() {
|
|
193
|
-
return
|
|
211
|
+
return B`
|
|
194
212
|
<div class="sbb-stepper">
|
|
195
213
|
<div class="sbb-stepper__labels" role="tablist">
|
|
196
214
|
<slot name="step-label" @slotchange=${this._configure}></slot>
|
|
@@ -202,22 +220,22 @@ let re = (() => {
|
|
|
202
220
|
`;
|
|
203
221
|
}
|
|
204
222
|
}, b = new WeakMap(), p = new WeakMap(), u = new WeakMap(), n = l, (() => {
|
|
205
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
206
|
-
|
|
223
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
224
|
+
z = [K(), _({ type: Boolean })], y = [_({ attribute: "horizontal-from", reflect: !0 })], I = [_({ reflect: !0 })], A = [_({ reflect: !0 })], L = [_({ attribute: !1 })], T = [_({ attribute: "selected-index", type: Number })], c(l, null, z, { kind: "accessor", name: "linear", static: !1, private: !1, access: { has: (t) => "linear" in t, get: (t) => t.linear, set: (t, s) => {
|
|
207
225
|
t.linear = s;
|
|
208
|
-
} }, metadata: e }, k,
|
|
226
|
+
} }, metadata: e }, k, S), c(l, null, y, { kind: "setter", name: "horizontalFrom", static: !1, private: !1, access: { has: (t) => "horizontalFrom" in t, set: (t, s) => {
|
|
209
227
|
t.horizontalFrom = s;
|
|
210
|
-
} }, metadata: e }, null, f),
|
|
228
|
+
} }, metadata: e }, null, f), c(l, null, I, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, s) => {
|
|
211
229
|
t.orientation = s;
|
|
212
|
-
} }, metadata: e }, w, E),
|
|
230
|
+
} }, metadata: e }, w, E), c(l, null, A, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, s) => {
|
|
213
231
|
t.size = s;
|
|
214
|
-
} }, metadata: e }, F, O),
|
|
232
|
+
} }, metadata: e }, F, O), c(l, null, L, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, set: (t, s) => {
|
|
215
233
|
t.selected = s;
|
|
216
|
-
} }, metadata: e }, null, f),
|
|
234
|
+
} }, metadata: e }, null, f), c(l, null, T, { kind: "setter", name: "selectedIndex", static: !1, private: !1, access: { has: (t) => "selectedIndex" in t, set: (t, s) => {
|
|
217
235
|
t.selectedIndex = s;
|
|
218
|
-
} }, metadata: e }, null, f),
|
|
219
|
-
})(), l.styles =
|
|
236
|
+
} }, metadata: e }, null, f), c(null, r = { value: n }, i, { kind: "class", name: n.name, metadata: e }, null, a), n = r.value, e && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
237
|
+
})(), l.styles = J, d(n, a), n;
|
|
220
238
|
})();
|
|
221
239
|
export {
|
|
222
|
-
|
|
240
|
+
le as SbbStepperElement
|
|
223
241
|
};
|
package/table/table-wrapper.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __esDecorate as s, __runInitializers as c } from "tslib";
|
|
2
2
|
import { ResizeController as i } from "@lit-labs/observers/resize-controller.js";
|
|
3
|
-
import { css as p, LitElement as d, html as
|
|
4
|
-
import { customElement as
|
|
3
|
+
import { css as p, LitElement as d, html as h } from "lit";
|
|
4
|
+
import { customElement as n } from "lit/decorators.js";
|
|
5
5
|
import { SbbNegativeMixin as u } from "../core/mixins.js";
|
|
6
6
|
const w = p`*,:before,:after{box-sizing:border-box}:host{--sbb-table-wrapper-border-radius: var(--sbb-border-radius-4x);display:block}::slotted(.sbb-table){width:100%}.sbb-table-wrapper{overflow:auto;--sbb-scrollbar-thumb-width: .5rem;--sbb-scrollbar-thumb-width-hover: var(--sbb-scrollbar-thumb-width);--sbb-scrollbar-width-firefox: auto;--sbb-scrollbar-color: var(--sbb-color-black-alpha-30);--sbb-scrollbar-color-hover: var(--sbb-color-black-alpha-60);--sbb-scrollbar-track-color: var(--sbb-color-cloud);--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-table-wrapper::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-table-wrapper::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-table-wrapper::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-table-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-table-wrapper::-webkit-scrollbar-button,.sbb-table-wrapper::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-table-wrapper{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}:host([negative]) .sbb-table-wrapper{--sbb-scrollbar-color: var(--sbb-color-white-alpha-30);--sbb-scrollbar-color-hover: var(--sbb-color-white-alpha-60);--sbb-scrollbar-track-color: var(--sbb-color-iron)}:host([data-has-horizontal-scrollbar]) .sbb-table-wrapper{padding-bottom:var(--sbb-spacing-fixed-1x)}`;
|
|
7
7
|
let _ = (() => {
|
|
8
8
|
var b;
|
|
9
|
-
let e = [
|
|
9
|
+
let e = [n("sbb-table-wrapper")], l, t = [], r, o = u(d);
|
|
10
10
|
return b = class extends o {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this._resizeObserver = new i(this, {
|
|
@@ -22,7 +22,7 @@ let _ = (() => {
|
|
|
22
22
|
this.toggleAttribute("data-has-horizontal-scrollbar", this._tableWrapper.scrollWidth > this._tableWrapper.offsetWidth);
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return
|
|
25
|
+
return h`<div class="sbb-table-wrapper">
|
|
26
26
|
<slot></slot>
|
|
27
27
|
</div>`;
|
|
28
28
|
}
|
package/tabs/tab-group.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var I = (
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var I = (n) => {
|
|
2
|
+
throw TypeError(n);
|
|
3
3
|
};
|
|
4
|
-
var S = (
|
|
5
|
-
var y = (
|
|
4
|
+
var S = (n, r, l) => r.has(n) || I("Cannot " + l);
|
|
5
|
+
var y = (n, r, l) => (S(n, r, "read from private field"), l ? l.call(n) : r.get(n)), z = (n, r, l) => r.has(n) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, l), _ = (n, r, l, c) => (S(n, r, "write to private field"), c ? c.call(n, l) : r.set(n, l), l);
|
|
6
6
|
import { __esDecorate as m, __runInitializers as h } from "tslib";
|
|
7
7
|
import { MutationController as w } from "@lit-labs/observers/mutation-controller.js";
|
|
8
8
|
import { ResizeController as E } from "@lit-labs/observers/resize-controller.js";
|
|
@@ -20,13 +20,13 @@ const F = k`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-group-animati
|
|
|
20
20
|
};
|
|
21
21
|
let B = 0, ot = (() => {
|
|
22
22
|
var b, d;
|
|
23
|
-
let
|
|
24
|
-
var f = (d = class extends
|
|
23
|
+
let n = [$("sbb-tab-group")], r, l = [], c, v = U(R), p = [], g, A, x = [], T = [];
|
|
24
|
+
var f = (d = class extends v {
|
|
25
25
|
constructor() {
|
|
26
26
|
var t;
|
|
27
27
|
super();
|
|
28
28
|
z(this, b);
|
|
29
|
-
this._tabs = (h(this,
|
|
29
|
+
this._tabs = (h(this, p), []), this._tabAttributeObserver = new w(this, {
|
|
30
30
|
target: null,
|
|
31
31
|
config: W,
|
|
32
32
|
callback: (e) => this._onTabAttributesChange(e)
|
|
@@ -39,15 +39,15 @@ let B = 0, ot = (() => {
|
|
|
39
39
|
skipInitial: !0,
|
|
40
40
|
callback: (e) => this._onTabContentElementResize(e)
|
|
41
41
|
}), this._size = P() ? "s" : "l", _(this, b, h(this, x, 0)), this._selectedTabChanged = (h(this, T), new j(this, f.events.didChange)), this._onContentSlotChange = () => {
|
|
42
|
-
var i,
|
|
42
|
+
var i, a;
|
|
43
43
|
this._tabContentElement = this.shadowRoot.querySelector("div.tab-content");
|
|
44
44
|
const e = this._getTabs().filter((s) => !this._tabs.includes(s));
|
|
45
|
-
e.length && (e.forEach((s) => this._configure(s)), this._tabs = this._tabs.concat(e), (
|
|
45
|
+
e.length && (e.forEach((s) => this._configure(s)), this._tabs = this._tabs.concat(e), (a = (i = e.find((s) => s.active)) == null ? void 0 : i.tabGroupActions) == null || a.select());
|
|
46
46
|
}, this._onTabsSlotChange = () => {
|
|
47
47
|
const e = this._getTabs();
|
|
48
|
-
e.length < this._tabs.length && (this._tabs.filter((
|
|
48
|
+
e.length < this._tabs.length && (this._tabs.filter((a) => !e.includes(a)).forEach((a) => {
|
|
49
49
|
var s;
|
|
50
|
-
(s =
|
|
50
|
+
(s = a.tab) == null || s.remove();
|
|
51
51
|
}), this._tabs = e), this._tabs.forEach((i) => i.setAttribute("data-size", this.size));
|
|
52
52
|
}, (t = this.addEventListener) == null || t.call(this, "keydown", (e) => this._handleKeyDown(e));
|
|
53
53
|
}
|
|
@@ -116,19 +116,19 @@ let B = 0, ot = (() => {
|
|
|
116
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();
|
|
117
117
|
}
|
|
118
118
|
_onTabAttributesChange(t) {
|
|
119
|
-
var e, i,
|
|
119
|
+
var e, i, a;
|
|
120
120
|
for (const s of t) {
|
|
121
121
|
if (s.type !== "attributes")
|
|
122
122
|
return;
|
|
123
123
|
const o = s.target;
|
|
124
|
-
s.attributeName === "disabled" && (o.hasAttribute("disabled") && o !== this._selectedTab ? (e = o.tabGroupActions) == null || e.disable() : o.disabled && ((i = o.tabGroupActions) == null || i.enable())), s.attributeName === "active" && (o.hasAttribute("active") && !o.disabled ? (
|
|
124
|
+
s.attributeName === "disabled" && (o.hasAttribute("disabled") && o !== this._selectedTab ? (e = o.tabGroupActions) == null || e.disable() : o.disabled && ((i = o.tabGroupActions) == null || i.enable())), s.attributeName === "active" && (o.hasAttribute("active") && !o.disabled ? (a = o.tabGroupActions) == null || a.select() : o === this._selectedTab && o.toggleAttribute("active", !0));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
_onTabGroupElementResize(t) {
|
|
128
128
|
for (const e of t) {
|
|
129
129
|
const i = e.target.firstElementChild.assignedElements();
|
|
130
|
-
for (const
|
|
131
|
-
|
|
130
|
+
for (const a of i)
|
|
131
|
+
a.toggleAttribute("data-has-divider", a === i[0] || a.offsetLeft === i[0].offsetLeft), this.style.setProperty("--sbb-tab-group-width", `${this._tabGroupElement.clientWidth}px`);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
_onTabContentElementResize(t) {
|
|
@@ -150,17 +150,17 @@ let B = 0, ot = (() => {
|
|
|
150
150
|
t.removeAttribute("active"), t.active = !1, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active");
|
|
151
151
|
},
|
|
152
152
|
disable: () => {
|
|
153
|
-
var i,
|
|
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 = (
|
|
153
|
+
var i, a, s;
|
|
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()));
|
|
155
155
|
},
|
|
156
156
|
enable: () => {
|
|
157
157
|
t.disabled && (t.removeAttribute("disabled"), t.disabled = !1);
|
|
158
158
|
},
|
|
159
159
|
select: () => {
|
|
160
|
-
var i,
|
|
160
|
+
var i, a;
|
|
161
161
|
if (t !== this._selectedTab && !t.disabled) {
|
|
162
162
|
const s = this._selectedTab;
|
|
163
|
-
s && ((i = s.tabGroupActions) == null || i.deactivate(), this._tabContentResizeObserver.unobserve(s.tab)), (
|
|
163
|
+
s && ((i = s.tabGroupActions) == null || i.deactivate(), this._tabContentResizeObserver.unobserve(s.tab)), (a = t.tabGroupActions) == null || a.activate(), this._selectedTab = t, this._tabContentResizeObserver.observe(t.tab);
|
|
164
164
|
const o = this._tabs;
|
|
165
165
|
this._selectedTabChanged.emit({
|
|
166
166
|
activeIndex: o.findIndex((u) => u === t),
|
|
@@ -178,12 +178,12 @@ let B = 0, ot = (() => {
|
|
|
178
178
|
}), 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
179
|
}
|
|
180
180
|
_handleKeyDown(t) {
|
|
181
|
-
var i,
|
|
181
|
+
var i, a, s;
|
|
182
182
|
const e = this._enabledTabs();
|
|
183
183
|
if (!(!e || // don't trap nested handling
|
|
184
184
|
t.target !== this && t.target.parentElement !== this) && N(t)) {
|
|
185
185
|
const o = e.findIndex((G) => G.active), u = K(t, o, e.length);
|
|
186
|
-
(
|
|
186
|
+
(a = (i = e[u]) == null ? void 0 : i.tabGroupActions) == null || a.select(), (s = e[u]) == null || s.focus(), t.preventDefault();
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
@@ -202,12 +202,12 @@ let B = 0, ot = (() => {
|
|
|
202
202
|
`;
|
|
203
203
|
}
|
|
204
204
|
}, b = new WeakMap(), c = d, (() => {
|
|
205
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
205
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
206
206
|
g = [C()], A = [M(), C({ attribute: "initial-selected-index", type: Number })], m(d, null, g, { kind: "setter", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, set: (e, i) => {
|
|
207
207
|
e.size = i;
|
|
208
|
-
} }, metadata: t }, null,
|
|
208
|
+
} }, metadata: t }, null, p), m(d, null, A, { kind: "accessor", name: "initialSelectedIndex", static: !1, private: !1, access: { has: (e) => "initialSelectedIndex" in e, get: (e) => e.initialSelectedIndex, set: (e, i) => {
|
|
209
209
|
e.initialSelectedIndex = i;
|
|
210
|
-
} }, metadata: t }, x, T), m(null, r = { value: c },
|
|
210
|
+
} }, metadata: t }, x, T), m(null, r = { value: c }, n, { kind: "class", name: c.name, metadata: t }, null, l), f = c = r.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
211
211
|
})(), d.styles = F, d.events = {
|
|
212
212
|
didChange: "didChange"
|
|
213
213
|
}, h(c, l), d);
|
package/tabs/tab-label.js
CHANGED
|
@@ -6,7 +6,7 @@ var m = (t, e, o) => (I(t, e, "read from private field"), o ? o.call(t) : e.get(
|
|
|
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";
|
|
9
|
-
import {
|
|
9
|
+
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";
|
package/tabs/tab.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __esDecorate as o, __runInitializers as b } from "tslib";
|
|
2
|
-
import { css as n, LitElement as c, html as
|
|
3
|
-
import { customElement as
|
|
2
|
+
import { css as n, LitElement as c, html as m } from "lit";
|
|
3
|
+
import { customElement as u } from "lit/decorators.js";
|
|
4
4
|
const d = n`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{display:block}:host:after,:host:before{content:" ";display:block;visibility:hidden;height:0;overflow:hidden}`;
|
|
5
5
|
let p = (() => {
|
|
6
6
|
var l;
|
|
7
|
-
let r = [
|
|
7
|
+
let r = [u("sbb-tab")], a, s = [], t, i = c;
|
|
8
8
|
return l = class extends i {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments), this._label = null;
|
|
@@ -24,7 +24,7 @@ let p = (() => {
|
|
|
24
24
|
this._label = this._getTabLabel();
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return
|
|
27
|
+
return m`
|
|
28
28
|
<div class="sbb-tab">
|
|
29
29
|
<slot></slot>
|
|
30
30
|
</div>
|
package/tag/tag/tag.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import { SbbButtonBaseElement } from '../../core/base-elements.js';
|
|
3
|
+
import { FormRestoreReason, FormRestoreState } from '../../core/mixins.js';
|
|
3
4
|
export type SbbTagSize = 's' | 'm';
|
|
4
5
|
declare const SbbTagElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType & import('../../core/mixins.js').SbbDisabledInteractiveMixinType> & typeof SbbButtonBaseElement;
|
|
5
6
|
/**
|
|
@@ -38,9 +39,19 @@ export declare class SbbTagElement extends SbbTagElement_base {
|
|
|
38
39
|
private _change;
|
|
39
40
|
constructor();
|
|
40
41
|
connectedCallback(): void;
|
|
42
|
+
protected isDisabledExternally(): boolean;
|
|
41
43
|
/** Method triggered on button click. Inverts the checked value and emits events. */
|
|
42
44
|
private _handleClick;
|
|
43
45
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
formResetCallback(): void;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
formStateRestoreCallback(state: FormRestoreState | null, _reason: FormRestoreReason): void;
|
|
54
|
+
protected updateFormValue(): void;
|
|
44
55
|
protected renderTemplate(): TemplateResult;
|
|
45
56
|
}
|
|
46
57
|
declare global {
|
package/tag/tag/tag.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/elements/tag/tag/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/elements/tag/tag/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAInE,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;;AAEnC;;;;;;;;;GASG;AACH,qBAGM,aAAc,SAAQ,kBAAsE;IAChG,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;;MAIlB;IAEX,uCAAuC;IACvC,SAEgB,MAAM,EAAE,MAAM,CAAM;IAEpC,kCAAkC;IAClC,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC;;;OAGG;IACH,SAEgB,IAAI,EAAE,UAAU,CAAwB;IAExD,4CAA4C;IAC5C,OAAO,CAAC,MAAM,CAAmC;IAEjD,0BAA0B;IAC1B,OAAO,CAAC,MAAM,CAGX;IAEH,4FAA4F;IAC5F,OAAO,CAAC,UAAU,CAEf;IAEH,2BAA2B;IAC3B,OAAO,CAAC,OAAO,CAEZ;;IAOa,iBAAiB,IAAI,IAAI;cAKtB,oBAAoB,IAAI,OAAO;IAIlD,oFAAoF;IACpF,OAAO,CAAC,YAAY;cAgBD,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAe5E;;OAEG;IACa,iBAAiB,IAAI,IAAI;IAIzC;;OAEG;IACa,wBAAwB,CACtC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAC9B,OAAO,EAAE,iBAAiB,GACzB,IAAI;cAMY,eAAe,IAAI,IAAI;cAQvB,cAAc,IAAI,cAAc;CAWpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,SAAS,EAAE,aAAa,CAAC;KAC1B;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSResultGroup, LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import { WithListChildren } from '../../core/mixins.js';
|
|
3
3
|
import { SbbTagElement, SbbTagSize } from '../tag.js';
|
|
4
|
-
declare const SbbTagGroupElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbNamedSlotListMixinType<SbbTagElement>> & typeof LitElement;
|
|
4
|
+
declare const SbbTagGroupElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbNamedSlotListMixinType<SbbTagElement>> & typeof LitElement;
|
|
5
5
|
/**
|
|
6
6
|
* It can be used as a container for one or more `sbb-tag`.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-group.d.ts","sourceRoot":"","sources":["../../../../src/elements/tag/tag-group/tag-group.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,
|
|
1
|
+
{"version":3,"file":"tag-group.d.ts","sourceRoot":"","sources":["../../../../src/elements/tag/tag-group/tag-group.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;;AAI3D;;;;GAIG;AACH,qBAEM,kBAAmB,SAAQ,uBAEhC;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,mBAA4B,mBAAmB,WAAsB;IAErE;;OAEG;IACH,SAEgB,sBAAsB,EAAE,MAAM,CAAM;IAEpD;;;;;OAKG;IACH,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA6C,IAAI,EAAE,UAAU,CAAwB;IAErF;;;;OAIG;IACH,IACW,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,EAyBxD;IACD,IAAW,KAAK,IAAI,MAAM,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAMpD;IACD,OAAO,CAAC,MAAM,CAA2C;IAEzD,kDAAkD;IAClD,IAAW,IAAI,IAAI,aAAa,EAAE,CAEjC;cAEkB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI;cA8B3E,MAAM,IAAI,cAAc;CAU5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,eAAe,EAAE,kBAAkB,CAAC;KACrC;CACF"}
|