@sbb-esta/lyne-elements 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +0 -1
- package/action-group/action-group.d.ts +0 -1
- package/alert/alert/alert.d.ts +22 -17
- package/alert/alert/alert.d.ts.map +1 -1
- package/alert/alert-group/alert-group.d.ts +1 -2
- package/alert/alert-group/alert-group.d.ts.map +1 -1
- package/alert/alert-group.js +31 -26
- package/alert/alert.js +45 -37
- package/autocomplete/autocomplete-base-element.d.ts +0 -1
- package/autocomplete/autocomplete.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts +0 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.d.ts +0 -1
- package/autocomplete.js +1 -1
- package/breadcrumb/breadcrumb/breadcrumb.d.ts +0 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts +0 -1
- package/breadcrumb/breadcrumb-group.js +2 -2
- package/breadcrumb/breadcrumb.js +11 -11
- package/button/button/button.d.ts +0 -1
- package/button/button-link/button-link.d.ts +0 -1
- package/button/button-static/button-static.d.ts +0 -1
- package/button/common/button-common.d.ts +0 -1
- package/button/mini-button/mini-button-base-element.d.ts +0 -1
- package/button/mini-button/mini-button.d.ts +0 -1
- package/button/mini-button-group/index.d.ts +2 -0
- package/button/mini-button-group/index.d.ts.map +1 -0
- package/button/mini-button-group/mini-button-group.d.ts +28 -0
- package/button/mini-button-group/mini-button-group.d.ts.map +1 -0
- package/button/mini-button-group.d.ts +2 -0
- package/button/mini-button-group.d.ts.map +1 -0
- package/button/mini-button-group.js +47 -0
- package/button/secondary-button/secondary-button.d.ts +0 -1
- package/button/secondary-button-link/secondary-button-link.d.ts +0 -1
- package/button/secondary-button-static/secondary-button-static.d.ts +0 -1
- package/button/tertiary-button/tertiary-button.d.ts +0 -1
- package/button/tertiary-button-link/tertiary-button-link.d.ts +0 -1
- package/button/tertiary-button-static/tertiary-button-static.d.ts +0 -1
- package/button/transparent-button/transparent-button.d.ts +0 -1
- package/button/transparent-button-link/transparent-button-link.d.ts +0 -1
- package/button/transparent-button-static/transparent-button-static.d.ts +0 -1
- package/button.d.ts +1 -0
- package/button.d.ts.map +1 -1
- package/button.js +1 -0
- package/calendar/calendar.d.ts +0 -1
- package/calendar.js +1 -1
- package/card/card/card.d.ts +0 -1
- package/card/card-badge/card-badge.d.ts +0 -1
- package/card/card-button/card-button.d.ts +0 -1
- package/card/card-link/card-link.d.ts +0 -1
- package/card/card.js +1 -1
- package/card/common/card-action-common.d.ts +0 -1
- package/checkbox/checkbox/checkbox.d.ts +0 -1
- package/checkbox/checkbox-group/checkbox-group.d.ts +0 -1
- package/checkbox/checkbox-panel/checkbox-panel.d.ts +0 -1
- package/checkbox/common/checkbox-common.d.ts +0 -1
- package/chip/chip.d.ts +0 -1
- package/chip.js +1 -1
- package/clock/clock.d.ts +0 -1
- package/clock/clock.d.ts.map +1 -1
- package/clock.js +14 -14
- package/container/container/container.d.ts +1 -1
- package/container/container/container.d.ts.map +1 -1
- package/container/container.js +21 -16
- package/container/sticky-bar/sticky-bar.d.ts +0 -1
- package/container/sticky-bar.js +5 -5
- package/core/a11y/focus-visible-within-controller.d.ts +0 -1
- package/core/base-elements/action-base-element.d.ts +0 -1
- package/core/base-elements/button-base-element.d.ts +0 -1
- package/core/base-elements/link-base-element.d.ts +0 -1
- package/core/base-elements/open-close-base-element.d.ts +0 -1
- package/core/config/config.d.ts +0 -1
- package/core/controllers/connected-abort-controller.d.ts +0 -1
- package/core/controllers/language-controller.d.ts +0 -1
- package/core/controllers/slot-state-controller.d.ts +0 -1
- package/core/datetime/native-date-adapter.d.ts +0 -1
- package/core/decorators/host-attributes.d.ts +0 -1
- package/core/decorators/slot-state.d.ts +0 -1
- package/core/dom/ssr.d.ts +0 -1
- package/core/eventing/form-element-handlers.d.ts +0 -1
- package/core/i18n/i18n.d.ts +0 -1
- package/core/i18n.js +1 -1
- package/core/images.d.ts.map +1 -1
- package/core/mixins/disabled-mixin.d.ts +0 -1
- package/core/mixins/form-associated-checkbox-mixin.d.ts +0 -1
- package/core/mixins/form-associated-mixin.d.ts +0 -1
- package/core/mixins/hydration-mixin.d.ts +0 -1
- package/core/mixins/named-slot-list-mixin.d.ts +7 -2
- package/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
- package/core/mixins/negative-mixin.d.ts +0 -1
- package/core/mixins/panel-mixin.d.ts +0 -1
- package/core/mixins/required-mixin.d.ts +0 -1
- package/core/mixins/update-scheduler-mixin.d.ts +0 -1
- package/core/mixins.js +100 -88
- package/core/overlay/overlay.d.ts +0 -1
- package/core/styles/core.scss +21 -19
- package/core/styles/mixins/link.scss +9 -6
- package/core/styles/mixins/lists.scss +5 -5
- package/core/styles/mixins/pearl-chain-bullet.scss +14 -9
- package/core/styles/mixins/table.scss +19 -17
- package/core/testing/mocha-extensions.d.ts +0 -1
- package/core/testing/wait-for-event.d.ts +2 -0
- package/core/testing/wait-for-event.d.ts.map +1 -0
- package/core/testing/wait-for-image-ready.d.ts +0 -1
- package/core/testing/wait-for-render.d.ts +0 -1
- package/core/testing.d.ts +1 -0
- package/core/testing.d.ts.map +1 -1
- package/core/testing.js +49 -36
- package/core.css +10 -8
- package/custom-elements.json +3104 -742
- package/datepicker/common/datepicker-button.d.ts +0 -1
- package/datepicker/datepicker/datepicker.d.ts +0 -1
- package/datepicker/datepicker-next-day/datepicker-next-day.d.ts +0 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts +0 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts +0 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/accordion/accordion.d.ts +0 -1
- package/development/action-group/action-group.d.ts +0 -1
- package/development/alert/alert/alert.d.ts +22 -17
- package/development/alert/alert/alert.d.ts.map +1 -1
- package/development/alert/alert-group/alert-group.d.ts +1 -2
- package/development/alert/alert-group/alert-group.d.ts.map +1 -1
- package/development/alert/alert-group.js +16 -11
- package/development/alert/alert.js +66 -25
- package/development/autocomplete/autocomplete-base-element.d.ts +0 -1
- package/development/autocomplete/autocomplete.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.d.ts +0 -1
- package/development/autocomplete.js +7 -5
- package/development/breadcrumb/breadcrumb/breadcrumb.d.ts +0 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts +0 -1
- package/development/breadcrumb/breadcrumb-group.js +4 -4
- package/development/breadcrumb/breadcrumb.js +8 -6
- package/development/button/button/button.d.ts +0 -1
- package/development/button/button-link/button-link.d.ts +0 -1
- package/development/button/button-static/button-static.d.ts +0 -1
- package/development/button/common/button-common.d.ts +0 -1
- package/development/button/mini-button/mini-button-base-element.d.ts +0 -1
- package/development/button/mini-button/mini-button.d.ts +0 -1
- package/development/button/mini-button-group/index.d.ts +2 -0
- package/development/button/mini-button-group/index.d.ts.map +1 -0
- package/development/button/mini-button-group/mini-button-group.d.ts +28 -0
- package/development/button/mini-button-group/mini-button-group.d.ts.map +1 -0
- package/development/button/mini-button-group.d.ts +2 -0
- package/development/button/mini-button-group.d.ts.map +1 -0
- package/development/button/mini-button-group.js +142 -0
- package/development/button/secondary-button/secondary-button.d.ts +0 -1
- package/development/button/secondary-button-link/secondary-button-link.d.ts +0 -1
- package/development/button/secondary-button-static/secondary-button-static.d.ts +0 -1
- package/development/button/tertiary-button/tertiary-button.d.ts +0 -1
- package/development/button/tertiary-button-link/tertiary-button-link.d.ts +0 -1
- package/development/button/tertiary-button-static/tertiary-button-static.d.ts +0 -1
- package/development/button/transparent-button/transparent-button.d.ts +0 -1
- package/development/button/transparent-button-link/transparent-button-link.d.ts +0 -1
- package/development/button/transparent-button-static/transparent-button-static.d.ts +0 -1
- package/development/button.d.ts +1 -0
- package/development/button.d.ts.map +1 -1
- package/development/button.js +2 -1
- package/development/calendar/calendar.d.ts +0 -1
- package/development/calendar.js +3 -3
- package/development/card/card/card.d.ts +0 -1
- package/development/card/card-badge/card-badge.d.ts +0 -1
- package/development/card/card-button/card-button.d.ts +0 -1
- package/development/card/card-link/card-link.d.ts +0 -1
- package/development/card/card.js +3 -3
- package/development/card/common/card-action-common.d.ts +0 -1
- package/development/checkbox/checkbox/checkbox.d.ts +0 -1
- package/development/checkbox/checkbox-group/checkbox-group.d.ts +0 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.d.ts +0 -1
- package/development/checkbox/common/checkbox-common.d.ts +0 -1
- package/development/chip/chip.d.ts +0 -1
- package/development/chip.js +4 -2
- package/development/clock/clock.d.ts +0 -1
- package/development/clock/clock.d.ts.map +1 -1
- package/development/clock.js +3 -2
- package/development/container/container/container.d.ts +1 -1
- package/development/container/container/container.d.ts.map +1 -1
- package/development/container/container.js +39 -3
- package/development/container/sticky-bar/sticky-bar.d.ts +0 -1
- package/development/container/sticky-bar.js +1 -4
- package/development/core/a11y/focus-visible-within-controller.d.ts +0 -1
- package/development/core/base-elements/action-base-element.d.ts +0 -1
- package/development/core/base-elements/button-base-element.d.ts +0 -1
- package/development/core/base-elements/link-base-element.d.ts +0 -1
- package/development/core/base-elements/open-close-base-element.d.ts +0 -1
- package/development/core/config/config.d.ts +0 -1
- package/development/core/controllers/connected-abort-controller.d.ts +0 -1
- package/development/core/controllers/language-controller.d.ts +0 -1
- package/development/core/controllers/slot-state-controller.d.ts +0 -1
- package/development/core/datetime/native-date-adapter.d.ts +0 -1
- package/development/core/decorators/host-attributes.d.ts +0 -1
- package/development/core/decorators/slot-state.d.ts +0 -1
- package/development/core/dom/ssr.d.ts +0 -1
- package/development/core/eventing/form-element-handlers.d.ts +0 -1
- package/development/core/i18n/i18n.d.ts +0 -1
- package/development/core/i18n.js +2 -2
- package/development/core/images.d.ts.map +1 -1
- package/development/core/mixins/disabled-mixin.d.ts +0 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts +0 -1
- package/development/core/mixins/form-associated-mixin.d.ts +0 -1
- package/development/core/mixins/hydration-mixin.d.ts +0 -1
- package/development/core/mixins/named-slot-list-mixin.d.ts +7 -2
- package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
- package/development/core/mixins/negative-mixin.d.ts +0 -1
- package/development/core/mixins/panel-mixin.d.ts +0 -1
- package/development/core/mixins/required-mixin.d.ts +0 -1
- package/development/core/mixins/update-scheduler-mixin.d.ts +0 -1
- package/development/core/mixins.js +24 -12
- package/development/core/overlay/overlay.d.ts +0 -1
- package/development/core/testing/mocha-extensions.d.ts +0 -1
- package/development/core/testing/wait-for-event.d.ts +2 -0
- package/development/core/testing/wait-for-event.d.ts.map +1 -0
- package/development/core/testing/wait-for-image-ready.d.ts +0 -1
- package/development/core/testing/wait-for-render.d.ts +0 -1
- package/development/core/testing.d.ts +1 -0
- package/development/core/testing.d.ts.map +1 -1
- package/development/core/testing.js +17 -1
- package/development/datepicker/common/datepicker-button.d.ts +0 -1
- package/development/datepicker/datepicker/datepicker.d.ts +0 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.d.ts +0 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts +0 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts +0 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle.js +4 -2
- package/development/dialog/dialog/dialog.d.ts +0 -1
- package/development/dialog/dialog/dialog.d.ts.map +1 -1
- package/development/dialog/dialog-actions/dialog-actions.d.ts +0 -1
- package/development/dialog/dialog-content/dialog-content.d.ts +0 -1
- package/development/dialog/dialog-content.js +8 -6
- package/development/dialog/dialog-title/dialog-title.d.ts +0 -1
- package/development/dialog/dialog.js +7 -3
- package/development/divider/divider.d.ts +0 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.d.ts +0 -1
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.d.ts +0 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.d.ts +0 -1
- package/development/expansion-panel/expansion-panel-header.js +1 -1
- package/development/file-selector/file-selector.d.ts +0 -1
- package/development/flip-card/flip-card/flip-card.d.ts +22 -7
- package/development/flip-card/flip-card/flip-card.d.ts.map +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.d.ts +0 -1
- package/development/flip-card/flip-card-summary/flip-card-summary.d.ts +0 -1
- package/development/flip-card/flip-card-summary.js +3 -1
- package/development/flip-card/flip-card.js +93 -24
- package/development/footer/footer.d.ts +0 -1
- package/development/footer.js +1 -1
- package/development/form-error/form-error.d.ts +0 -1
- package/development/form-error.js +4 -4
- package/development/form-field/form-field/form-field.d.ts +1 -2
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field-clear/form-field-clear.d.ts +0 -1
- package/development/form-field/form-field.js +72 -29
- package/development/header/common/header-action-common.d.ts +0 -1
- package/development/header/common.js +2 -2
- package/development/header/header/header.d.ts +0 -1
- package/development/header/header-button/header-button.d.ts +0 -1
- package/development/header/header-link/header-link.d.ts +0 -1
- package/development/header/header.js +2 -2
- package/development/icon/icon-base.d.ts +0 -1
- package/development/icon/icon-name-mixin.d.ts +0 -1
- package/development/icon/icon.d.ts +9 -2
- package/development/icon/icon.d.ts.map +1 -1
- package/development/icon.js +16 -2
- package/development/image/image.d.ts +0 -1
- package/development/image.js +2 -2
- package/development/journey-header/journey-header.d.ts +0 -1
- package/development/lead-container/lead-container.d.ts +0 -1
- package/development/lead-container.js +1 -1
- package/development/link/block-link/block-link.d.ts +0 -1
- package/development/link/block-link-button/block-link-button.d.ts +0 -1
- package/development/link/block-link-static/block-link-static.d.ts +0 -1
- package/development/link/common/block-link-common.d.ts +0 -1
- package/development/link/common/inline-link-common.d.ts +0 -1
- package/development/link/common/link-common.d.ts +0 -1
- package/development/link/common.js +9 -7
- package/development/link/link/link.d.ts +0 -1
- package/development/link/link-button/link-button.d.ts +0 -1
- package/development/link/link-static/link-static.d.ts +0 -1
- package/development/link-list/common/link-list-base.d.ts +27 -0
- package/development/link-list/common/link-list-base.d.ts.map +1 -0
- package/development/link-list/common.d.ts +2 -0
- package/development/link-list/common.d.ts.map +1 -0
- package/development/link-list/common.js +113 -0
- package/development/link-list/link-list/link-list.d.ts +22 -0
- package/development/link-list/link-list/link-list.d.ts.map +1 -0
- package/development/link-list/link-list-anchor/index.d.ts +2 -0
- package/development/link-list/link-list-anchor/index.d.ts.map +1 -0
- package/development/link-list/link-list-anchor/link-list-anchor.d.ts +17 -0
- package/development/link-list/link-list-anchor/link-list-anchor.d.ts.map +1 -0
- package/development/link-list/link-list-anchor.d.ts +2 -0
- package/development/link-list/link-list-anchor.d.ts.map +1 -0
- package/development/link-list/link-list-anchor.js +91 -0
- package/development/link-list/link-list.d.ts +1 -38
- package/development/link-list/link-list.d.ts.map +1 -1
- package/development/link-list/link-list.js +194 -0
- package/development/link-list.d.ts +2 -0
- package/development/link-list.d.ts.map +1 -1
- package/development/link-list.js +4 -260
- package/development/loading-indicator/loading-indicator.d.ts +0 -1
- package/development/logo/logo.d.ts +0 -1
- package/development/logo.js +2 -2
- package/development/map-container/map-container.d.ts +0 -1
- package/development/map-container.js +13 -11
- package/development/menu/common/menu-action-common.d.ts +0 -1
- package/development/menu/menu/menu.d.ts +0 -1
- package/development/menu/menu/menu.d.ts.map +1 -1
- package/development/menu/menu-button/menu-button.d.ts +0 -1
- package/development/menu/menu-link/menu-link.d.ts +0 -1
- package/development/menu/menu.js +9 -6
- package/development/message/message.d.ts +0 -1
- package/development/navigation/common/navigation-action-common.d.ts +0 -1
- package/development/navigation/navigation/navigation.d.ts +0 -1
- package/development/navigation/navigation/navigation.d.ts.map +1 -1
- package/development/navigation/navigation-button/navigation-button.d.ts +0 -1
- package/development/navigation/navigation-link/navigation-link.d.ts +0 -1
- package/development/navigation/navigation-list/navigation-list.d.ts +0 -1
- package/development/navigation/navigation-marker/navigation-marker.d.ts +0 -1
- package/development/navigation/navigation-section/navigation-section.d.ts +0 -1
- package/development/navigation/navigation-section.js +7 -5
- package/development/navigation/navigation.js +14 -11
- package/development/notification/notification.d.ts +4 -5
- package/development/notification.js +1 -1
- package/development/option/optgroup/optgroup-base-element.d.ts +0 -1
- package/development/option/optgroup/optgroup.d.ts +0 -1
- package/development/option/option/option-base-element.d.ts +0 -1
- package/development/option/option/option.d.ts +0 -1
- package/development/overlay/overlay-base-element.d.ts +0 -1
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay.d.ts +0 -1
- package/development/overlay/overlay.d.ts.map +1 -1
- package/development/overlay.js +43 -21
- package/development/popover/popover/popover.d.ts +0 -1
- package/development/popover/popover/popover.d.ts.map +1 -1
- package/development/popover/popover-trigger/popover-trigger.d.ts +0 -1
- package/development/popover/popover-trigger.js +3 -3
- package/development/popover/popover.js +5 -3
- package/development/radio-button/common/radio-button-common.d.ts +0 -1
- package/development/radio-button/common.js +6 -6
- package/development/radio-button/radio-button/radio-button.d.ts +0 -1
- package/development/radio-button/radio-button-group/radio-button-group.d.ts +0 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.d.ts +0 -1
- package/development/screen-reader-only/screen-reader-only.d.ts +0 -1
- package/development/select/select.d.ts +0 -1
- package/development/select.js +7 -5
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts +0 -1
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/development/selection-expansion-panel.js +6 -2
- package/development/signet/signet.d.ts +0 -1
- package/development/signet.js +1 -1
- package/development/skiplink-list/skiplink-list.d.ts +0 -1
- package/development/slider/slider.d.ts +0 -1
- package/development/slider.js +4 -4
- package/development/status/status.d.ts +0 -1
- package/development/stepper/step/step.d.ts +0 -1
- package/development/stepper/step-label/step-label.d.ts +0 -1
- package/development/stepper/stepper/stepper.d.ts +0 -1
- package/development/table/table-wrapper/table-wrapper.d.ts +0 -1
- package/development/tabs/tab/tab.d.ts +0 -1
- package/development/tabs/tab-group/tab-group.d.ts +0 -1
- package/development/tabs/tab-label/tab-label.d.ts +0 -1
- package/development/tabs/tab-label.js +10 -10
- package/development/tag/tag/tag.d.ts +0 -1
- package/development/tag/tag-group/tag-group.d.ts +0 -1
- package/development/tag/tag.js +3 -3
- package/development/teaser/teaser.d.ts +0 -1
- package/development/teaser-hero/teaser-hero.d.ts +27 -0
- package/development/teaser-hero/teaser-hero.d.ts.map +1 -0
- package/development/teaser-hero.d.ts +2 -0
- package/development/teaser-hero.d.ts.map +1 -0
- package/development/teaser-hero.js +207 -0
- package/development/teaser-product/common/teaser-product-common.d.ts +7 -0
- package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -0
- package/development/teaser-product/common.d.ts +2 -0
- package/development/teaser-product/common.d.ts.map +1 -0
- package/development/teaser-product/common.js +219 -0
- package/development/teaser-product/teaser-product/teaser-product.d.ts +22 -0
- package/development/teaser-product/teaser-product/teaser-product.d.ts.map +1 -0
- package/development/teaser-product/teaser-product-static/teaser-product-static.d.ts +22 -0
- package/development/teaser-product/teaser-product-static/teaser-product-static.d.ts.map +1 -0
- package/development/teaser-product/teaser-product-static.d.ts +2 -0
- package/development/teaser-product/teaser-product-static.d.ts.map +1 -0
- package/development/teaser-product/teaser-product-static.js +25 -0
- package/development/teaser-product/teaser-product.d.ts +2 -0
- package/development/teaser-product/teaser-product.d.ts.map +1 -0
- package/development/teaser-product/teaser-product.js +80 -0
- package/development/teaser-product.d.ts +4 -0
- package/development/teaser-product.d.ts.map +1 -0
- package/development/teaser-product.js +4 -0
- package/development/time-input/time-input.d.ts +0 -1
- package/development/timetable-occupancy/timetable-occupancy.d.ts +0 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.d.ts +0 -1
- package/development/timetable-occupancy.js +1 -1
- package/development/title/title-base.d.ts +0 -1
- package/development/title/title.d.ts +0 -1
- package/development/toast/toast.d.ts +0 -1
- package/development/toggle/toggle/toggle.d.ts +0 -1
- package/development/toggle/toggle-option/toggle-option.d.ts +0 -1
- package/development/toggle/toggle.js +2 -2
- package/development/toggle-check/toggle-check.d.ts +0 -1
- package/development/train/train/train.d.ts +0 -1
- package/development/train/train-blocked-passage/train-blocked-passage.d.ts +0 -1
- package/development/train/train-blocked-passage.js +1 -1
- package/development/train/train-formation/train-formation.d.ts +0 -1
- package/development/train/train-formation.js +9 -7
- package/development/train/train-wagon/train-wagon.d.ts +0 -1
- package/development/train/train-wagon.js +1 -1
- package/development/train/train.js +1 -1
- package/development/visual-checkbox/visual-checkbox.d.ts +0 -1
- package/development/visual-checkbox.js +1 -1
- package/dialog/dialog/dialog.d.ts +0 -1
- package/dialog/dialog/dialog.d.ts.map +1 -1
- package/dialog/dialog-actions/dialog-actions.d.ts +0 -1
- package/dialog/dialog-content/dialog-content.d.ts +0 -1
- package/dialog/dialog-content.js +1 -1
- package/dialog/dialog-title/dialog-title.d.ts +0 -1
- package/dialog/dialog.js +3 -3
- package/divider/divider.d.ts +0 -1
- package/expansion-panel/expansion-panel/expansion-panel.d.ts +0 -1
- package/expansion-panel/expansion-panel-content/expansion-panel-content.d.ts +0 -1
- package/expansion-panel/expansion-panel-header/expansion-panel-header.d.ts +0 -1
- package/expansion-panel/expansion-panel-header.js +1 -1
- package/file-selector/file-selector.d.ts +0 -1
- package/flip-card/flip-card/flip-card.d.ts +22 -7
- package/flip-card/flip-card/flip-card.d.ts.map +1 -1
- package/flip-card/flip-card-details/flip-card-details.d.ts +0 -1
- package/flip-card/flip-card-summary/flip-card-summary.d.ts +0 -1
- package/flip-card/flip-card-summary.js +8 -8
- package/flip-card/flip-card.js +63 -32
- package/footer/footer.d.ts +0 -1
- package/footer.js +1 -1
- package/form-error/form-error.d.ts +0 -1
- package/form-error.js +1 -1
- package/form-field/form-field/form-field.d.ts +1 -2
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field-clear/form-field-clear.d.ts +0 -1
- package/form-field/form-field.js +22 -22
- package/header/common/header-action-common.d.ts +0 -1
- package/header/common.js +1 -1
- package/header/header/header.d.ts +0 -1
- package/header/header-button/header-button.d.ts +0 -1
- package/header/header-link/header-link.d.ts +0 -1
- package/header/header.js +1 -1
- package/icon/icon-base.d.ts +0 -1
- package/icon/icon-name-mixin.d.ts +0 -1
- package/icon/icon.d.ts +9 -2
- package/icon/icon.d.ts.map +1 -1
- package/icon.js +71 -62
- package/image/image.d.ts +0 -1
- package/image.js +25 -25
- package/index.d.ts +11 -1
- package/index.js +11 -1
- package/journey-header/journey-header.d.ts +0 -1
- package/lead-container/lead-container.d.ts +0 -1
- package/lead-container.js +1 -1
- package/link/block-link/block-link.d.ts +0 -1
- package/link/block-link-button/block-link-button.d.ts +0 -1
- package/link/block-link-static/block-link-static.d.ts +0 -1
- package/link/common/block-link-common.d.ts +0 -1
- package/link/common/inline-link-common.d.ts +0 -1
- package/link/common/link-common.d.ts +0 -1
- package/link/common.js +6 -6
- package/link/link/link.d.ts +0 -1
- package/link/link-button/link-button.d.ts +0 -1
- package/link/link-static/link-static.d.ts +0 -1
- package/link-list/common/link-list-base.d.ts +27 -0
- package/link-list/common/link-list-base.d.ts.map +1 -0
- package/link-list/common.d.ts +2 -0
- package/link-list/common.d.ts.map +1 -0
- package/link-list/common.js +59 -0
- package/link-list/link-list/link-list.d.ts +22 -0
- package/link-list/link-list/link-list.d.ts.map +1 -0
- package/link-list/link-list-anchor/index.d.ts +2 -0
- package/link-list/link-list-anchor/index.d.ts.map +1 -0
- package/link-list/link-list-anchor/link-list-anchor.d.ts +17 -0
- package/link-list/link-list-anchor/link-list-anchor.d.ts.map +1 -0
- package/link-list/link-list-anchor.d.ts +2 -0
- package/link-list/link-list-anchor.d.ts.map +1 -0
- package/link-list/link-list-anchor.js +18 -0
- package/link-list/link-list.d.ts +1 -38
- package/link-list/link-list.d.ts.map +1 -1
- package/link-list/link-list.js +27 -0
- package/link-list.d.ts +2 -0
- package/link-list.d.ts.map +1 -1
- package/link-list.js +3 -66
- package/loading-indicator/loading-indicator.d.ts +0 -1
- package/logo/logo.d.ts +0 -1
- package/logo.js +1 -1
- package/map-container/map-container.d.ts +0 -1
- package/map-container.js +1 -1
- package/menu/common/menu-action-common.d.ts +0 -1
- package/menu/menu/menu.d.ts +0 -1
- package/menu/menu/menu.d.ts.map +1 -1
- package/menu/menu-button/menu-button.d.ts +0 -1
- package/menu/menu-link/menu-link.d.ts +0 -1
- package/menu/menu.js +4 -4
- package/message/message.d.ts +0 -1
- package/navigation/common/navigation-action-common.d.ts +0 -1
- package/navigation/navigation/navigation.d.ts +0 -1
- package/navigation/navigation/navigation.d.ts.map +1 -1
- package/navigation/navigation-button/navigation-button.d.ts +0 -1
- package/navigation/navigation-link/navigation-link.d.ts +0 -1
- package/navigation/navigation-list/navigation-list.d.ts +0 -1
- package/navigation/navigation-marker/navigation-marker.d.ts +0 -1
- package/navigation/navigation-section/navigation-section.d.ts +0 -1
- package/navigation/navigation-section.js +1 -1
- package/navigation/navigation.js +5 -5
- package/notification/notification.d.ts +4 -5
- package/option/optgroup/optgroup-base-element.d.ts +0 -1
- package/option/optgroup/optgroup.d.ts +0 -1
- package/option/option/option-base-element.d.ts +0 -1
- package/option/option/option.d.ts +0 -1
- package/overlay/overlay-base-element.d.ts +0 -1
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay.d.ts +0 -1
- package/overlay/overlay.d.ts.map +1 -1
- package/overlay.js +33 -33
- package/package.json +46 -1
- package/popover/popover/popover.d.ts +0 -1
- package/popover/popover/popover.d.ts.map +1 -1
- package/popover/popover-trigger/popover-trigger.d.ts +0 -1
- package/popover/popover-trigger.js +1 -1
- package/popover/popover.js +1 -1
- package/radio-button/common/radio-button-common.d.ts +0 -1
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.d.ts +0 -1
- package/radio-button/radio-button-group/radio-button-group.d.ts +0 -1
- package/radio-button/radio-button-panel/radio-button-panel.d.ts +0 -1
- package/screen-reader-only/screen-reader-only.d.ts +0 -1
- package/select/select.d.ts +0 -1
- package/select.js +1 -1
- package/selection-expansion-panel/selection-expansion-panel.d.ts +0 -1
- package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/signet/signet.d.ts +0 -1
- package/signet.js +1 -1
- package/skiplink-list/skiplink-list.d.ts +0 -1
- package/slider/slider.d.ts +0 -1
- package/slider.js +1 -1
- package/standard-theme.css +19 -13
- package/status/status.d.ts +0 -1
- package/stepper/step/step.d.ts +0 -1
- package/stepper/step-label/step-label.d.ts +0 -1
- package/stepper/stepper/stepper.d.ts +0 -1
- package/table/table-wrapper/table-wrapper.d.ts +0 -1
- package/tabs/tab/tab.d.ts +0 -1
- package/tabs/tab-group/tab-group.d.ts +0 -1
- package/tabs/tab-label/tab-label.d.ts +0 -1
- package/tabs/tab-label.js +1 -1
- package/tag/tag/tag.d.ts +0 -1
- package/tag/tag-group/tag-group.d.ts +0 -1
- package/tag/tag.js +1 -1
- package/teaser/teaser.d.ts +0 -1
- package/teaser-hero/teaser-hero.d.ts +27 -0
- package/teaser-hero/teaser-hero.d.ts.map +1 -0
- package/teaser-hero.d.ts +2 -0
- package/teaser-hero.d.ts.map +1 -0
- package/teaser-hero.js +58 -0
- package/teaser-product/common/teaser-product-common.d.ts +7 -0
- package/teaser-product/common/teaser-product-common.d.ts.map +1 -0
- package/teaser-product/common.d.ts +2 -0
- package/teaser-product/common.d.ts.map +1 -0
- package/teaser-product/common.js +38 -0
- package/teaser-product/teaser-product/teaser-product.d.ts +22 -0
- package/teaser-product/teaser-product/teaser-product.d.ts.map +1 -0
- package/teaser-product/teaser-product-static/teaser-product-static.d.ts +22 -0
- package/teaser-product/teaser-product-static/teaser-product-static.d.ts.map +1 -0
- package/teaser-product/teaser-product-static.d.ts +2 -0
- package/teaser-product/teaser-product-static.d.ts.map +1 -0
- package/teaser-product/teaser-product-static.js +19 -0
- package/teaser-product/teaser-product.d.ts +2 -0
- package/teaser-product/teaser-product.d.ts.map +1 -0
- package/teaser-product/teaser-product.js +21 -0
- package/teaser-product.d.ts +4 -0
- package/teaser-product.d.ts.map +1 -0
- package/teaser-product.js +3 -0
- package/time-input/time-input.d.ts +0 -1
- package/timetable-occupancy/timetable-occupancy.d.ts +0 -1
- package/timetable-occupancy-icon/timetable-occupancy-icon.d.ts +0 -1
- package/timetable-occupancy.js +1 -1
- package/title/title-base.d.ts +0 -1
- package/title/title.d.ts +0 -1
- package/toast/toast.d.ts +0 -1
- package/toggle/toggle/toggle.d.ts +0 -1
- package/toggle/toggle-option/toggle-option.d.ts +0 -1
- package/toggle/toggle.js +1 -1
- package/toggle-check/toggle-check.d.ts +0 -1
- package/train/train/train.d.ts +0 -1
- package/train/train-blocked-passage/train-blocked-passage.d.ts +0 -1
- package/train/train-blocked-passage.js +1 -1
- package/train/train-formation/train-formation.d.ts +0 -1
- package/train/train-formation.js +1 -1
- package/train/train-wagon/train-wagon.d.ts +0 -1
- package/train/train-wagon.js +1 -1
- package/train/train.js +1 -1
- package/visual-checkbox/visual-checkbox.d.ts +0 -1
- package/visual-checkbox.js +1 -1
package/icon/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/elements/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/elements/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,qBACa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACiC,IAAI,EAAG,MAAM,CAAC;IAElD,OAAO,CAAC,iBAAiB,CAAM;IAE/B;;;;OAIG;IACM,OAAO,CAAC,wBAAwB,CAAS;cAEzB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;cAiBpE,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5D,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,IAAI;cAQY,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAQ3D,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF"}
|
package/icon.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { unsafeHTML as
|
|
4
|
-
import { until as
|
|
5
|
-
import { hostAttributes as
|
|
6
|
-
import { readConfig as
|
|
7
|
-
const
|
|
1
|
+
import { isServer as y, css as w, LitElement as N, html as c, nothing as m } from "lit";
|
|
2
|
+
import { state as b, property as h, customElement as A } from "lit/decorators.js";
|
|
3
|
+
import { unsafeHTML as C } from "lit/directives/unsafe-html.js";
|
|
4
|
+
import { until as I } from "lit/directives/until.js";
|
|
5
|
+
import { hostAttributes as $ } from "./core/decorators.js";
|
|
6
|
+
import { readConfig as S } from "./core/config.js";
|
|
7
|
+
const L = (t) => typeof t == "string", _ = (t) => {
|
|
8
8
|
if (t.nodeType === 1) {
|
|
9
9
|
if (t.nodeName.toLowerCase() === "script")
|
|
10
10
|
return !1;
|
|
11
11
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
12
|
+
const i = t.attributes[e].name;
|
|
13
|
+
if (L(i) && i.toLowerCase().indexOf("on") === 0)
|
|
14
14
|
return !1;
|
|
15
15
|
}
|
|
16
16
|
for (let e = 0; e < t.childNodes.length; e++)
|
|
17
|
-
if (!
|
|
17
|
+
if (!_(t.childNodes[e]))
|
|
18
18
|
return !1;
|
|
19
19
|
}
|
|
20
20
|
return !0;
|
|
21
|
-
}, E = (t, e = !0,
|
|
21
|
+
}, E = (t, e = !0, i = !1) => {
|
|
22
22
|
const r = document.createElement("div");
|
|
23
23
|
r.innerHTML = t;
|
|
24
|
-
for (let
|
|
25
|
-
r.childNodes[
|
|
24
|
+
for (let o = r.childNodes.length - 1; o >= 0; o--)
|
|
25
|
+
r.childNodes[o].nodeName.toLowerCase() !== "svg" && r.removeChild(r.childNodes[o]);
|
|
26
26
|
const s = r.firstElementChild;
|
|
27
|
-
return s && s.nodeName.toLowerCase() === "svg" && (
|
|
28
|
-
},
|
|
29
|
-
var
|
|
30
|
-
const r =
|
|
27
|
+
return s && s.nodeName.toLowerCase() === "svg" && (i && !s.classList.contains("color-immutable") && s.classList.add("color-immutable"), e === !1 || _(s)) ? r.innerHTML : "";
|
|
28
|
+
}, g = "https://icons.app.sbb.ch/", P = (/* @__PURE__ */ new Map()).set("default", `${g}icons/`).set("picto", `${g}picto/`), v = /* @__PURE__ */ new Map(), O = (t, e, i) => {
|
|
29
|
+
var f;
|
|
30
|
+
const r = S().icon ?? {}, s = ((f = r.namespaces) == null ? void 0 : f.get(t)) ?? P.get(t);
|
|
31
31
|
if (s == null)
|
|
32
32
|
throw Error(
|
|
33
33
|
`Unable to find the namespace "${t}". Please register your custom namespace.`
|
|
34
34
|
);
|
|
35
|
-
const
|
|
36
|
-
let a =
|
|
35
|
+
const o = `${s}${e}.svg`;
|
|
36
|
+
let a = v.get(o);
|
|
37
37
|
if (!a)
|
|
38
38
|
if (typeof fetch < "u" && !y)
|
|
39
39
|
a = (r.interceptor ?? ((l) => l.request()))({
|
|
40
40
|
namespace: t,
|
|
41
41
|
name: e,
|
|
42
|
-
url:
|
|
43
|
-
request: () => fetch(
|
|
42
|
+
url: o,
|
|
43
|
+
request: () => fetch(o).then(async (l) => {
|
|
44
44
|
if (!l.ok)
|
|
45
45
|
throw new Error("Failed to load icon " + t + ":" + e);
|
|
46
|
-
return E(await l.text(),
|
|
46
|
+
return E(await l.text(), i);
|
|
47
47
|
}).catch((l) => {
|
|
48
48
|
throw Error(l);
|
|
49
49
|
})
|
|
50
|
-
}),
|
|
50
|
+
}), v.set(o, a);
|
|
51
51
|
else
|
|
52
52
|
return Promise.resolve("");
|
|
53
53
|
return a;
|
|
54
|
-
}, x =
|
|
55
|
-
var z = Object.defineProperty, M = Object.getOwnPropertyDescriptor,
|
|
56
|
-
for (var s = r > 1 ? void 0 : r ? M(e,
|
|
57
|
-
(a = t[
|
|
58
|
-
return r && s && z(e,
|
|
54
|
+
}, x = w`*,:before,:after{box-sizing:border-box}:host{display:inline-block;line-height:0;-webkit-tap-highlight-color:transparent}:host([data-empty]){--sbb-icon-default-dimension: 0}:host([data-empty][data-namespace=default][name$=-small]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-small)}:host([data-empty][data-namespace=default][name$=-medium]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-medium)}:host([data-empty][data-namespace=default][name$=-large]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-large)}svg{width:var(--sbb-icon-svg-width, var(--sbb-icon-default-dimension));height:var(--sbb-icon-svg-height, var(--sbb-icon-default-dimension));stroke:var(--sbb-icon-svg-stroke-color);stroke-width:var(--sbb-icon-svg-stroke-width)}svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}svg:not(.color-immutable) [stroke]:not([stroke=none]){stroke:currentcolor}svg:not(.color-immutable)>:where(path,polygon,polyline):where(:not([stroke]):not([fill])),svg:not(.color-immutable) :where(:not([stroke]):not([fill])) :where(path,polygon,polyline):where(:not([stroke]):not([fill])){fill:currentcolor}`;
|
|
55
|
+
var z = Object.defineProperty, M = Object.getOwnPropertyDescriptor, d = (t, e, i, r) => {
|
|
56
|
+
for (var s = r > 1 ? void 0 : r ? M(e, i) : e, o = t.length - 1, a; o >= 0; o--)
|
|
57
|
+
(a = t[o]) && (s = (r ? a(e, i, s) : a(s)) || s);
|
|
58
|
+
return r && s && z(e, i, s), s;
|
|
59
59
|
};
|
|
60
|
-
let n = class extends
|
|
60
|
+
let n = class extends N {
|
|
61
61
|
constructor() {
|
|
62
62
|
super(...arguments), this._svgNamespace = n._defaultNamespace, this.noSanitize = !1;
|
|
63
63
|
}
|
|
64
64
|
async loadSvgIcon(t) {
|
|
65
65
|
if (!t)
|
|
66
66
|
return;
|
|
67
|
-
const [e,
|
|
67
|
+
const [e, i] = this._splitIconName(t);
|
|
68
68
|
this._svgNamespace = e, this.setAttribute("data-namespace", this._svgNamespace);
|
|
69
|
-
const r = this.fetchSvgIcon(this._svgNamespace,
|
|
70
|
-
this._svgIcon = r.then((s) =>
|
|
69
|
+
const r = this.fetchSvgIcon(this._svgNamespace, i);
|
|
70
|
+
this._svgIcon = r.then((s) => C(s));
|
|
71
71
|
try {
|
|
72
72
|
this.toggleAttribute("data-empty", !await r);
|
|
73
73
|
} catch {
|
|
@@ -95,7 +95,7 @@ let n = class extends I {
|
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
97
|
return c`<span class="sbb-icon-inner"
|
|
98
|
-
>${
|
|
98
|
+
>${I(
|
|
99
99
|
this._svgIcon,
|
|
100
100
|
// To reserve space, we need an empty svg to apply dimension to.
|
|
101
101
|
c`<svg width="0" height="0"></svg>`
|
|
@@ -105,29 +105,29 @@ let n = class extends I {
|
|
|
105
105
|
};
|
|
106
106
|
n.styles = x;
|
|
107
107
|
n._defaultNamespace = "default";
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
d([
|
|
109
|
+
b()
|
|
110
110
|
], n.prototype, "_svgNamespace", 2);
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
d([
|
|
112
|
+
b()
|
|
113
113
|
], n.prototype, "_svgIcon", 2);
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
d([
|
|
115
|
+
h({ attribute: "no-sanitize", type: Boolean })
|
|
116
116
|
], n.prototype, "noSanitize", 2);
|
|
117
|
-
n =
|
|
118
|
-
|
|
117
|
+
n = d([
|
|
118
|
+
$({
|
|
119
119
|
"data-namespace": n._defaultNamespace,
|
|
120
120
|
"data-empty": ""
|
|
121
121
|
})
|
|
122
122
|
], n);
|
|
123
|
-
var U = Object.defineProperty, j = Object.getOwnPropertyDescriptor,
|
|
124
|
-
for (var s = r > 1 ? void 0 : r ? j(e,
|
|
125
|
-
(a = t[
|
|
126
|
-
return r && s && U(e,
|
|
123
|
+
var U = Object.defineProperty, j = Object.getOwnPropertyDescriptor, p = (t, e, i, r) => {
|
|
124
|
+
for (var s = r > 1 ? void 0 : r ? j(e, i) : e, o = t.length - 1, a; o >= 0; o--)
|
|
125
|
+
(a = t[o]) && (s = (r ? a(e, i, s) : a(s)) || s);
|
|
126
|
+
return r && s && U(e, i, s), s;
|
|
127
127
|
};
|
|
128
|
-
let
|
|
128
|
+
let u = class extends n {
|
|
129
129
|
constructor() {
|
|
130
|
-
super(...arguments), this._defaultAriaLabel = "";
|
|
130
|
+
super(...arguments), this._defaultAriaLabel = "", this._sbbAngularCompatibility = !1;
|
|
131
131
|
}
|
|
132
132
|
async fetchSvgIcon(t, e) {
|
|
133
133
|
return this.getAttribute("aria-label") === this._defaultAriaLabel && this.removeAttribute("aria-label"), this._defaultAriaLabel = `Icon ${e.replace(/-/g, " ")}`, this.getAttribute("aria-hidden") === "false" && !this.hasAttribute("aria-label") && e && this.setAttribute("aria-label", this._defaultAriaLabel), super.fetchSvgIcon(t, e);
|
|
@@ -135,40 +135,49 @@ let d = class extends n {
|
|
|
135
135
|
willUpdate(t) {
|
|
136
136
|
super.willUpdate(t), t.has("name") && this.loadSvgIcon(this.name);
|
|
137
137
|
}
|
|
138
|
+
attributeChangedCallback(t, e, i) {
|
|
139
|
+
t === "svgicon" ? this._sbbAngularCompatibility = !!i : super.attributeChangedCallback(t, e, i);
|
|
140
|
+
}
|
|
138
141
|
firstUpdated(t) {
|
|
139
142
|
super.firstUpdated(t), this.hasAttribute("aria-hidden") || this.setAttribute("aria-hidden", "true");
|
|
140
143
|
}
|
|
144
|
+
render() {
|
|
145
|
+
return this._sbbAngularCompatibility ? c`<slot></slot>` : super.render();
|
|
146
|
+
}
|
|
141
147
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
],
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
],
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
p([
|
|
149
|
+
h({ reflect: !0 })
|
|
150
|
+
], u.prototype, "name", 2);
|
|
151
|
+
p([
|
|
152
|
+
b()
|
|
153
|
+
], u.prototype, "_sbbAngularCompatibility", 2);
|
|
154
|
+
u = p([
|
|
155
|
+
A("sbb-icon")
|
|
156
|
+
], u);
|
|
157
|
+
var k = Object.defineProperty, T = (t, e, i, r) => {
|
|
158
|
+
for (var s = void 0, o = t.length - 1, a; o >= 0; o--)
|
|
159
|
+
(a = t[o]) && (s = a(e, i, s) || s);
|
|
160
|
+
return s && k(e, i, s), s;
|
|
152
161
|
};
|
|
153
162
|
const J = (t) => {
|
|
154
163
|
class e extends t {
|
|
155
164
|
renderIconSlot(r) {
|
|
156
165
|
return c`
|
|
157
166
|
<slot name="icon">
|
|
158
|
-
${this.iconName ? c`<sbb-icon name=${this.iconName} class=${r ||
|
|
167
|
+
${this.iconName ? c`<sbb-icon name=${this.iconName} class=${r || m}></sbb-icon>` : m}
|
|
159
168
|
</slot>
|
|
160
169
|
`;
|
|
161
170
|
}
|
|
162
171
|
}
|
|
163
|
-
return
|
|
164
|
-
|
|
172
|
+
return T([
|
|
173
|
+
h({ attribute: "icon-name", reflect: !0 })
|
|
165
174
|
], e.prototype, "iconName"), e;
|
|
166
175
|
};
|
|
167
176
|
export {
|
|
168
177
|
n as SbbIconBase,
|
|
169
|
-
|
|
178
|
+
u as SbbIconElement,
|
|
170
179
|
J as SbbIconNameMixin,
|
|
171
180
|
O as getSvgContent,
|
|
172
|
-
|
|
181
|
+
_ as isValid,
|
|
173
182
|
E as validateContent
|
|
174
183
|
};
|
package/image/image.d.ts
CHANGED
package/image.js
CHANGED
|
@@ -4,8 +4,8 @@ import { ref as $ } from "lit/directives/ref.js";
|
|
|
4
4
|
import { hostContext as x } from "./core/dom.js";
|
|
5
5
|
const w = 0, S = 359, P = 360, M = 599, z = 600, C = 839, B = 840, L = 1023, O = 1024, Q = 1279, F = 1280, D = 1439, E = 1440, T = 2579, I = 16, R = y`*,:before,:after{box-sizing:border-box}:host{--sbb-image-border-radius: var(--sbb-border-radius-4x);--sbb-image-aspect-ratio: auto;--sbb-image-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) );display:block}:host([aspect-ratio="1-1"]){--sbb-image-aspect-ratio: 1 / 1}:host([aspect-ratio="1-2"]){--sbb-image-aspect-ratio: 1 / 2}:host([aspect-ratio="2-1"]){--sbb-image-aspect-ratio: 2 / 1}:host([aspect-ratio="2-3"]){--sbb-image-aspect-ratio: 2 / 3}:host([aspect-ratio="3-2"]){--sbb-image-aspect-ratio: 3 / 2}:host([aspect-ratio="3-4"]){--sbb-image-aspect-ratio: 3 / 4}:host([aspect-ratio="4-3"]){--sbb-image-aspect-ratio: 4 / 3}:host([aspect-ratio="4-5"]){--sbb-image-aspect-ratio: 4 / 5}:host([aspect-ratio="5-4"]){--sbb-image-aspect-ratio: 5 / 4}:host([aspect-ratio="16-9"]){--sbb-image-aspect-ratio: 16 / 9}:host([aspect-ratio="9-16"]){--sbb-image-aspect-ratio: 9 / 16}:host([data-teaser]){--sbb-image-aspect-ratio: 1 / 1}@media (min-width: 37.5rem){:host([data-teaser]){--sbb-image-aspect-ratio: 16 / 9}}:host(:is([border-radius=none],[data-teaser])){--sbb-image-border-radius: 0}:host([border-radius=round]:not([data-teaser])){--sbb-image-border-radius: var(--sbb-border-radius-infinity)}.sbb-image__figure{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-4x);margin:0;height:100%}.sbb-image__img{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host([data-loaded]) .sbb-image__blurred{opacity:0}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:cover;object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;overflow:hidden;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio);border-radius:var(--sbb-image-border-radius)}.sbb-image__caption{--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)}`;
|
|
6
6
|
var h = Object.freeze, u = Object.defineProperty, j = Object.getOwnPropertyDescriptor, o = (e, t, r, i) => {
|
|
7
|
-
for (var n = i > 1 ? void 0 : i ? j(t, r) : t,
|
|
8
|
-
(b = e[
|
|
7
|
+
for (var n = i > 1 ? void 0 : i ? j(t, r) : t, c = e.length - 1, b; c >= 0; c--)
|
|
8
|
+
(b = e[c]) && (n = (i ? b(t, r, n) : b(n)) || n);
|
|
9
9
|
return i && n && u(t, r, n), n;
|
|
10
10
|
}, A = (e, t) => h(u(e, "raw", { value: h(e.slice()) })), g;
|
|
11
11
|
const U = (e) => {
|
|
@@ -23,8 +23,8 @@ const U = (e) => {
|
|
|
23
23
|
return [];
|
|
24
24
|
let r = !1, i = !1;
|
|
25
25
|
const n = ["image", "mediaQueries"];
|
|
26
|
-
return t.breakpoints.forEach((
|
|
27
|
-
const b = Object.keys(
|
|
26
|
+
return t.breakpoints.forEach((c) => {
|
|
27
|
+
const b = Object.keys(c);
|
|
28
28
|
b.forEach((l) => {
|
|
29
29
|
n.includes(l) || (r = !0);
|
|
30
30
|
}), n.forEach((l) => {
|
|
@@ -34,21 +34,21 @@ const U = (e) => {
|
|
|
34
34
|
}, H = {
|
|
35
35
|
once: !0,
|
|
36
36
|
passive: !0
|
|
37
|
-
},
|
|
38
|
-
"sbb-breakpoint-zero-min":
|
|
39
|
-
"sbb-breakpoint-zero-max":
|
|
40
|
-
"sbb-breakpoint-micro-min":
|
|
41
|
-
"sbb-breakpoint-micro-max":
|
|
42
|
-
"sbb-breakpoint-small-min":
|
|
43
|
-
"sbb-breakpoint-small-max":
|
|
44
|
-
"sbb-breakpoint-medium-min":
|
|
45
|
-
"sbb-breakpoint-medium-max":
|
|
46
|
-
"sbb-breakpoint-large-min":
|
|
47
|
-
"sbb-breakpoint-large-max":
|
|
48
|
-
"sbb-breakpoint-wide-min":
|
|
49
|
-
"sbb-breakpoint-wide-max":
|
|
50
|
-
"sbb-breakpoint-ultra-min":
|
|
51
|
-
"sbb-breakpoint-ultra-max":
|
|
37
|
+
}, p = (e) => e / I, V = {
|
|
38
|
+
"sbb-breakpoint-zero-min": p(w),
|
|
39
|
+
"sbb-breakpoint-zero-max": p(S),
|
|
40
|
+
"sbb-breakpoint-micro-min": p(P),
|
|
41
|
+
"sbb-breakpoint-micro-max": p(M),
|
|
42
|
+
"sbb-breakpoint-small-min": p(z),
|
|
43
|
+
"sbb-breakpoint-small-max": p(C),
|
|
44
|
+
"sbb-breakpoint-medium-min": p(B),
|
|
45
|
+
"sbb-breakpoint-medium-max": p(L),
|
|
46
|
+
"sbb-breakpoint-large-min": p(O),
|
|
47
|
+
"sbb-breakpoint-large-max": p(Q),
|
|
48
|
+
"sbb-breakpoint-wide-min": p(F),
|
|
49
|
+
"sbb-breakpoint-wide-max": p(D),
|
|
50
|
+
"sbb-breakpoint-ultra-min": p(E),
|
|
51
|
+
"sbb-breakpoint-ultra-max": p(T)
|
|
52
52
|
};
|
|
53
53
|
let a = class extends _ {
|
|
54
54
|
constructor() {
|
|
@@ -154,8 +154,8 @@ let a = class extends _ {
|
|
|
154
154
|
const i = r.conditionFeature;
|
|
155
155
|
let n;
|
|
156
156
|
r.conditionFeatureValue.lyneDesignToken ? n = this._matchMediaQueryDesignToken(r.conditionFeatureValue.value) : n = r.conditionFeatureValue.value;
|
|
157
|
-
const
|
|
158
|
-
t += `(${i}: ${n})${
|
|
157
|
+
const c = r.conditionOperator ? ` ${r.conditionOperator} ` : "";
|
|
158
|
+
t += `(${i}: ${n})${c}`;
|
|
159
159
|
}), t;
|
|
160
160
|
}
|
|
161
161
|
_imageLoaded() {
|
|
@@ -189,8 +189,8 @@ let a = class extends _ {
|
|
|
189
189
|
|
|
190
190
|
<picture>
|
|
191
191
|
<!-- render picture element sources -->
|
|
192
|
-
${n.map((
|
|
193
|
-
const b =
|
|
192
|
+
${n.map((c) => {
|
|
193
|
+
const b = c.image.height, l = c.image.width, f = this._createMediaQueryString(c.mediaQueries);
|
|
194
194
|
return [
|
|
195
195
|
d` <source
|
|
196
196
|
media=${`${f}`}
|
|
@@ -216,8 +216,8 @@ let a = class extends _ {
|
|
|
216
216
|
${e ? d`<figcaption
|
|
217
217
|
class="sbb-image__caption"
|
|
218
218
|
.innerHTML=${e}
|
|
219
|
-
${$((
|
|
220
|
-
this._captionElement =
|
|
219
|
+
${$((c) => {
|
|
220
|
+
this._captionElement = c;
|
|
221
221
|
})}
|
|
222
222
|
></figcaption>` : m}
|
|
223
223
|
${t ? d(g || (g = A(['<script type="application/ld+json" .innerHTML=', "><\/script>"])), t) : m}
|
package/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { SbbButtonElement } from "./button/button.js";
|
|
|
15
15
|
import { SbbButtonLinkElement } from "./button/button-link.js";
|
|
16
16
|
import { SbbButtonStaticElement } from "./button/button-static.js";
|
|
17
17
|
import { SbbMiniButtonElement } from "./button/mini-button.js";
|
|
18
|
+
import { SbbMiniButtonGroupElement } from "./button/mini-button-group.js";
|
|
18
19
|
import { SbbSecondaryButtonElement } from "./button/secondary-button.js";
|
|
19
20
|
import { SbbSecondaryButtonLinkElement } from "./button/secondary-button-link.js";
|
|
20
21
|
import { SbbSecondaryButtonStaticElement } from "./button/secondary-button-static.js";
|
|
@@ -63,7 +64,8 @@ import { SbbIconElement } from "./icon.js";
|
|
|
63
64
|
import { SbbImageElement } from "./image.js";
|
|
64
65
|
import { SbbJourneyHeaderElement } from "./journey-header.js";
|
|
65
66
|
import { SbbLeadContainerElement } from "./lead-container.js";
|
|
66
|
-
import { SbbLinkListElement } from "./link-list.js";
|
|
67
|
+
import { SbbLinkListElement } from "./link-list/link-list.js";
|
|
68
|
+
import { SbbLinkListAnchorElement } from "./link-list/link-list-anchor.js";
|
|
67
69
|
import { SbbBlockLinkElement } from "./link/block-link.js";
|
|
68
70
|
import { SbbBlockLinkButtonElement } from "./link/block-link-button.js";
|
|
69
71
|
import { SbbBlockLinkStaticElement } from "./link/block-link-static.js";
|
|
@@ -109,6 +111,9 @@ import { SbbTabLabelElement } from "./tabs/tab-label.js";
|
|
|
109
111
|
import { SbbTagElement } from "./tag/tag.js";
|
|
110
112
|
import { SbbTagGroupElement } from "./tag/tag-group.js";
|
|
111
113
|
import { SbbTeaserElement } from "./teaser.js";
|
|
114
|
+
import { SbbTeaserHeroElement } from "./teaser-hero.js";
|
|
115
|
+
import { SbbTeaserProductElement } from "./teaser-product/teaser-product.js";
|
|
116
|
+
import { SbbTeaserProductStaticElement } from "./teaser-product/teaser-product-static.js";
|
|
112
117
|
import { SbbTimeInputElement } from "./time-input.js";
|
|
113
118
|
import { SbbTimetableOccupancyElement } from "./timetable-occupancy.js";
|
|
114
119
|
import { SbbTimetableOccupancyIconElement } from "./timetable-occupancy-icon.js";
|
|
@@ -141,6 +146,7 @@ declare global {
|
|
|
141
146
|
var SbbButtonLinkElement: SbbButtonLinkElement;
|
|
142
147
|
var SbbButtonStaticElement: SbbButtonStaticElement;
|
|
143
148
|
var SbbMiniButtonElement: SbbMiniButtonElement;
|
|
149
|
+
var SbbMiniButtonGroupElement: SbbMiniButtonGroupElement;
|
|
144
150
|
var SbbSecondaryButtonElement: SbbSecondaryButtonElement;
|
|
145
151
|
var SbbSecondaryButtonLinkElement: SbbSecondaryButtonLinkElement;
|
|
146
152
|
var SbbSecondaryButtonStaticElement: SbbSecondaryButtonStaticElement;
|
|
@@ -190,6 +196,7 @@ declare global {
|
|
|
190
196
|
var SbbJourneyHeaderElement: SbbJourneyHeaderElement;
|
|
191
197
|
var SbbLeadContainerElement: SbbLeadContainerElement;
|
|
192
198
|
var SbbLinkListElement: SbbLinkListElement;
|
|
199
|
+
var SbbLinkListAnchorElement: SbbLinkListAnchorElement;
|
|
193
200
|
var SbbBlockLinkElement: SbbBlockLinkElement;
|
|
194
201
|
var SbbBlockLinkButtonElement: SbbBlockLinkButtonElement;
|
|
195
202
|
var SbbBlockLinkStaticElement: SbbBlockLinkStaticElement;
|
|
@@ -235,6 +242,9 @@ declare global {
|
|
|
235
242
|
var SbbTagElement: SbbTagElement;
|
|
236
243
|
var SbbTagGroupElement: SbbTagGroupElement;
|
|
237
244
|
var SbbTeaserElement: SbbTeaserElement;
|
|
245
|
+
var SbbTeaserHeroElement: SbbTeaserHeroElement;
|
|
246
|
+
var SbbTeaserProductElement: SbbTeaserProductElement;
|
|
247
|
+
var SbbTeaserProductStaticElement: SbbTeaserProductStaticElement;
|
|
238
248
|
var SbbTimeInputElement: SbbTimeInputElement;
|
|
239
249
|
var SbbTimetableOccupancyElement: SbbTimetableOccupancyElement;
|
|
240
250
|
var SbbTimetableOccupancyIconElement: SbbTimetableOccupancyIconElement;
|
package/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import { SbbButtonElement } from "./button/button.js";
|
|
|
15
15
|
import { SbbButtonLinkElement } from "./button/button-link.js";
|
|
16
16
|
import { SbbButtonStaticElement } from "./button/button-static.js";
|
|
17
17
|
import { SbbMiniButtonElement } from "./button/mini-button.js";
|
|
18
|
+
import { SbbMiniButtonGroupElement } from "./button/mini-button-group.js";
|
|
18
19
|
import { SbbSecondaryButtonElement } from "./button/secondary-button.js";
|
|
19
20
|
import { SbbSecondaryButtonLinkElement } from "./button/secondary-button-link.js";
|
|
20
21
|
import { SbbSecondaryButtonStaticElement } from "./button/secondary-button-static.js";
|
|
@@ -63,7 +64,8 @@ import { SbbIconElement } from "./icon.js";
|
|
|
63
64
|
import { SbbImageElement } from "./image.js";
|
|
64
65
|
import { SbbJourneyHeaderElement } from "./journey-header.js";
|
|
65
66
|
import { SbbLeadContainerElement } from "./lead-container.js";
|
|
66
|
-
import { SbbLinkListElement } from "./link-list.js";
|
|
67
|
+
import { SbbLinkListElement } from "./link-list/link-list.js";
|
|
68
|
+
import { SbbLinkListAnchorElement } from "./link-list/link-list-anchor.js";
|
|
67
69
|
import { SbbBlockLinkElement } from "./link/block-link.js";
|
|
68
70
|
import { SbbBlockLinkButtonElement } from "./link/block-link-button.js";
|
|
69
71
|
import { SbbBlockLinkStaticElement } from "./link/block-link-static.js";
|
|
@@ -109,6 +111,9 @@ import { SbbTabLabelElement } from "./tabs/tab-label.js";
|
|
|
109
111
|
import { SbbTagElement } from "./tag/tag.js";
|
|
110
112
|
import { SbbTagGroupElement } from "./tag/tag-group.js";
|
|
111
113
|
import { SbbTeaserElement } from "./teaser.js";
|
|
114
|
+
import { SbbTeaserHeroElement } from "./teaser-hero.js";
|
|
115
|
+
import { SbbTeaserProductElement } from "./teaser-product/teaser-product.js";
|
|
116
|
+
import { SbbTeaserProductStaticElement } from "./teaser-product/teaser-product-static.js";
|
|
112
117
|
import { SbbTimeInputElement } from "./time-input.js";
|
|
113
118
|
import { SbbTimetableOccupancyElement } from "./timetable-occupancy.js";
|
|
114
119
|
import { SbbTimetableOccupancyIconElement } from "./timetable-occupancy-icon.js";
|
|
@@ -140,6 +145,7 @@ globalThis.SbbButtonElement = SbbButtonElement;
|
|
|
140
145
|
globalThis.SbbButtonLinkElement = SbbButtonLinkElement;
|
|
141
146
|
globalThis.SbbButtonStaticElement = SbbButtonStaticElement;
|
|
142
147
|
globalThis.SbbMiniButtonElement = SbbMiniButtonElement;
|
|
148
|
+
globalThis.SbbMiniButtonGroupElement = SbbMiniButtonGroupElement;
|
|
143
149
|
globalThis.SbbSecondaryButtonElement = SbbSecondaryButtonElement;
|
|
144
150
|
globalThis.SbbSecondaryButtonLinkElement = SbbSecondaryButtonLinkElement;
|
|
145
151
|
globalThis.SbbSecondaryButtonStaticElement = SbbSecondaryButtonStaticElement;
|
|
@@ -189,6 +195,7 @@ globalThis.SbbImageElement = SbbImageElement;
|
|
|
189
195
|
globalThis.SbbJourneyHeaderElement = SbbJourneyHeaderElement;
|
|
190
196
|
globalThis.SbbLeadContainerElement = SbbLeadContainerElement;
|
|
191
197
|
globalThis.SbbLinkListElement = SbbLinkListElement;
|
|
198
|
+
globalThis.SbbLinkListAnchorElement = SbbLinkListAnchorElement;
|
|
192
199
|
globalThis.SbbBlockLinkElement = SbbBlockLinkElement;
|
|
193
200
|
globalThis.SbbBlockLinkButtonElement = SbbBlockLinkButtonElement;
|
|
194
201
|
globalThis.SbbBlockLinkStaticElement = SbbBlockLinkStaticElement;
|
|
@@ -234,6 +241,9 @@ globalThis.SbbTabLabelElement = SbbTabLabelElement;
|
|
|
234
241
|
globalThis.SbbTagElement = SbbTagElement;
|
|
235
242
|
globalThis.SbbTagGroupElement = SbbTagGroupElement;
|
|
236
243
|
globalThis.SbbTeaserElement = SbbTeaserElement;
|
|
244
|
+
globalThis.SbbTeaserHeroElement = SbbTeaserHeroElement;
|
|
245
|
+
globalThis.SbbTeaserProductElement = SbbTeaserProductElement;
|
|
246
|
+
globalThis.SbbTeaserProductStaticElement = SbbTeaserProductStaticElement;
|
|
237
247
|
globalThis.SbbTimeInputElement = SbbTimeInputElement;
|
|
238
248
|
globalThis.SbbTimetableOccupancyElement = SbbTimetableOccupancyElement;
|
|
239
249
|
globalThis.SbbTimetableOccupancyIconElement = SbbTimetableOccupancyIconElement;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSResultGroup, TemplateResult, LitElement } from 'lit';
|
|
2
2
|
import { SbbTitleLevel } from '../title.js';
|
|
3
|
-
|
|
4
3
|
export type JourneyHeaderSize = 's' | 'm' | 'l';
|
|
5
4
|
declare const SbbJourneyHeaderElement_base: import('../core/mixins.js').AbstractConstructor<import('../core/mixins.js').SbbNegativeMixinType> & typeof LitElement;
|
|
6
5
|
/**
|
package/lead-container.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css as t, LitElement as d, html as l } from "lit";
|
|
2
2
|
import { customElement as c } from "lit/decorators.js";
|
|
3
|
-
const m = t`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-lead-container-background-color: var(--sbb-color-white);--sbb-lead-container-image-ratio: 2 / 1;--sbb-lead-container-image-overlap: var(--sbb-spacing-fixed-24x);--sbb-lead-container-padding-block: var(--sbb-spacing-responsive-l);--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);--sbb-lead-container-image-border-radius: 0}@media (min-width: 80rem){:host{--sbb-lead-container-image-ratio: 21 / 9}}@media (min-width: 90rem){:host{--sbb-lead-container-image-border-radius: var(--sbb-lead-container-border-radius)}}.sbb-lead-container{padding-block-end:var(--sbb-spacing-responsive-l)}::slotted(sbb-image[slot=image]){--sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);--sbb-image-border-radius: var(--sbb-lead-container-image-border-radius)}::slotted(:is(img[slot=image],picture[slot=image])){display:block;width:100%;object-fit:cover;aspect-ratio:var(--sbb-lead-container-image-ratio);border-radius:var(--sbb-lead-container-image-border-radius)}::slotted(:is(sbb-breadcrumb-group,sbb-block-link).sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-fixed-4x)}::slotted(:is(sbb-alert,sbb-alert-group).sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-responsive-m)}::slotted(sbb-title.sbb-lead-container-spacing){margin-block-start:0}::slotted(.sbb-lead-container-lead-text){margin-block:0 var(--sbb-spacing-responsive-s)}@media (min-width: 90rem){.sbb-lead-container-image{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive));margin-inline:auto}}.sbb-lead-container-content-wrapper{display:grid;gap:var(--sbb-grid-base-gutter-responsive);grid-template-columns:repeat(var(--sbb-grid-base-columns),1fr);padding-inline:var(--sbb-layout-base-offset-responsive);margin-inline:auto;width:100
|
|
3
|
+
const m = t`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-lead-container-background-color: var(--sbb-color-white);--sbb-lead-container-image-ratio: 2 / 1;--sbb-lead-container-image-overlap: var(--sbb-spacing-fixed-24x);--sbb-lead-container-padding-block: var(--sbb-spacing-responsive-l);--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);--sbb-lead-container-image-border-radius: 0}@media (min-width: 80rem){:host{--sbb-lead-container-image-ratio: 21 / 9}}@media (min-width: 90rem){:host{--sbb-lead-container-image-border-radius: var(--sbb-lead-container-border-radius)}}.sbb-lead-container{padding-block-end:var(--sbb-spacing-responsive-l)}::slotted(sbb-image[slot=image]){--sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);--sbb-image-border-radius: var(--sbb-lead-container-image-border-radius)}::slotted(:is(img[slot=image],picture[slot=image])){display:block;width:100%;object-fit:cover;aspect-ratio:var(--sbb-lead-container-image-ratio);border-radius:var(--sbb-lead-container-image-border-radius)}::slotted(:is(sbb-breadcrumb-group,sbb-block-link).sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-fixed-4x)}::slotted(:is(sbb-alert,sbb-alert-group).sbb-lead-container-spacing){margin-block-end:var(--sbb-spacing-responsive-m)}::slotted(sbb-title.sbb-lead-container-spacing){margin-block-start:0}::slotted(.sbb-lead-container-lead-text){margin-block:0 var(--sbb-spacing-responsive-s)}@media (min-width: 90rem){.sbb-lead-container-image{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive));margin-inline:auto}}.sbb-lead-container-content-wrapper{background-color:var(--sbb-lead-container-background-color);display:grid;gap:var(--sbb-grid-base-gutter-responsive);grid-template-columns:repeat(var(--sbb-grid-base-columns),1fr);padding-inline:var(--sbb-layout-base-offset-responsive);margin-inline:auto;width:100%}@media (min-width: 90rem){.sbb-lead-container-content-wrapper{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive))}}@media (min-width: 64rem){.sbb-lead-container-content-wrapper{background-color:transparent}}.sbb-lead-container-content{z-index:1;border-radius:var(--sbb-lead-container-border-radius);padding-block:var(--sbb-lead-container-padding-block);background-color:var(--sbb-lead-container-background-color);grid-column:1/-1}@media (min-width: 52.5rem){.sbb-lead-container-content{grid-column:2/-2}}@media (min-width: 64rem){.sbb-lead-container-content{margin-block-start:calc(-1 * var(--sbb-lead-container-image-overlap));padding-inline:var(--sbb-lead-container-padding-inline);margin-inline:calc(-1 * var(--sbb-lead-container-padding-inline))}}@media (min-width: 80rem){.sbb-lead-container-content{grid-column:3/-3}}@media (min-width: 90rem){.sbb-lead-container-content{grid-column:4/-4}}`;
|
|
4
4
|
var g = Object.defineProperty, p = Object.getOwnPropertyDescriptor, v = (o, a, i, r) => {
|
|
5
5
|
for (var e = r > 1 ? void 0 : r ? p(a, i) : a, n = o.length - 1, b; n >= 0; n--)
|
|
6
6
|
(b = o[n]) && (e = (r ? b(a, i, e) : b(e)) || e);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SbbLinkBaseElement } from '../../core/base-elements.js';
|
|
2
|
-
|
|
3
2
|
declare const SbbBlockLinkElement_base: import('../../core/mixins.js').AbstractConstructor<import('../common.js').SbbBlockLinkCommonElementMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & typeof SbbLinkBaseElement;
|
|
4
3
|
/**
|
|
5
4
|
* It displays a link enhanced with the SBB Design.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SbbButtonBaseElement } from '../../core/base-elements.js';
|
|
2
|
-
|
|
3
2
|
declare const SbbBlockLinkButtonElement_base: import('../../core/mixins.js').AbstractConstructor<import('../common.js').SbbBlockLinkCommonElementMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & typeof SbbButtonBaseElement;
|
|
4
3
|
/**
|
|
5
4
|
* It displays a link enhanced with the SBB Design, which will behave as a button.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SbbActionBaseElement } from '../../core/base-elements.js';
|
|
2
|
-
|
|
3
2
|
declare const SbbBlockLinkStaticElement_base: import('../../core/mixins.js').AbstractConstructor<import('../common.js').SbbBlockLinkCommonElementMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & typeof SbbActionBaseElement;
|
|
4
3
|
/**
|
|
5
4
|
* It displays a static link enhanced with the SBB Design.
|
|
@@ -2,7 +2,6 @@ import { SbbActionBaseElement } from '../../core/base-elements.js';
|
|
|
2
2
|
import { SbbIconPlacement } from '../../core/interfaces.js';
|
|
3
3
|
import { AbstractConstructor } from '../../core/mixins.js';
|
|
4
4
|
import { SbbLinkCommonElementMixinType } from './link-common.js';
|
|
5
|
-
|
|
6
5
|
export declare class SbbBlockLinkCommonElementMixinType extends SbbLinkCommonElementMixinType {
|
|
7
6
|
iconName?: string;
|
|
8
7
|
iconPlacement?: SbbIconPlacement;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SbbActionBaseElement } from '../../core/base-elements.js';
|
|
2
2
|
import { AbstractConstructor } from '../../core/mixins.js';
|
|
3
3
|
import { SbbLinkCommonElementMixinType } from './link-common.js';
|
|
4
|
-
|
|
5
4
|
export declare class SbbInlineLinkCommonElementMixinType extends SbbLinkCommonElementMixinType {
|
|
6
5
|
}
|
|
7
6
|
export declare const SbbInlineLinkCommonElementMixin: <T extends AbstractConstructor<SbbActionBaseElement>>(superClass: T) => AbstractConstructor<SbbInlineLinkCommonElementMixinType> & T;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SbbActionBaseElement } from '../../core/base-elements.js';
|
|
2
2
|
import { SbbNegativeMixinType, AbstractConstructor } from '../../core/mixins.js';
|
|
3
|
-
|
|
4
3
|
export type SbbLinkSize = 'xs' | 's' | 'm';
|
|
5
4
|
export declare class SbbLinkCommonElementMixinType extends SbbNegativeMixinType {
|
|
6
5
|
size?: SbbLinkSize;
|
package/link/common.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { property as c } from "lit/decorators.js";
|
|
2
2
|
import { html as f } from "lit/static-html.js";
|
|
3
|
-
import { SbbIconNameMixin as
|
|
3
|
+
import { SbbIconNameMixin as h } from "../icon.js";
|
|
4
4
|
import { hostAttributes as d, slotState as u } from "../core/decorators.js";
|
|
5
5
|
import { SbbNegativeMixin as p } from "../core/mixins.js";
|
|
6
6
|
import { css as b } from "lit";
|
|
7
|
-
const a = b`*,:before,:after{box-sizing:border-box}:host{outline:none!important}@media (forced-colors: active){:host([role=button]){--sbb-link-color-normal: ButtonText;--sbb-link-color-hover: ButtonText;--sbb-link-color-active: ButtonText}}.sbb-action-base{color:var(--sbb-link-color-normal);text-decoration:var(--sbb-link-text-decoration, underline);-webkit-user-select:none;user-select:none
|
|
7
|
+
const a = b`*,:before,:after{box-sizing:border-box}:host{outline:none!important}@media (forced-colors: active){:host([role=button]){--sbb-link-color-normal: ButtonText;--sbb-link-color-hover: ButtonText;--sbb-link-color-active: ButtonText}}.sbb-action-base{color:var(--sbb-link-color-normal);text-decoration:var(--sbb-link-text-decoration, underline);-webkit-user-select:none;user-select:none}@media (forced-colors: active){.sbb-action-base{text-decoration:underline}}.sbb-action-base{display:flex;align-items:center;word-break:break-word;width:100%;cursor:pointer;padding:var(--sbb-link-padding, 0);outline:none}:host([disabled]) .sbb-action-base{pointer-events:none;cursor:default}@media (forced-colors: active){:host([disabled]) .sbb-action-base{color:GrayText}}:host(:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base,:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}@media (any-hover: hover){:host(:hover:not([disabled])) .sbb-action-base{color:var(--sbb-link-color-hover);text-decoration:var(--sbb-link-hover-text-decoration, underline)}}:host(:is(:active,[data-active]):not([disabled])) .sbb-action-base{color:var(--sbb-link-color-active)}`;
|
|
8
8
|
var m = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (i, t, o, n) => {
|
|
9
9
|
for (var e = n > 1 ? void 0 : n ? g(t, o) : t, s = i.length - 1, r; s >= 0; s--)
|
|
10
10
|
(r = i[s]) && (e = (n ? r(t, o, e) : r(e)) || e);
|
|
11
11
|
return n && e && m(t, o, e), e;
|
|
12
12
|
};
|
|
13
|
-
const
|
|
13
|
+
const v = (i) => {
|
|
14
14
|
let t = class extends p(i) {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments), this.size = "s";
|
|
@@ -32,7 +32,7 @@ var y = Object.defineProperty, k = (i, t, o, n) => {
|
|
|
32
32
|
return e && y(t, o, e), e;
|
|
33
33
|
};
|
|
34
34
|
const O = (i) => {
|
|
35
|
-
const o = class o extends h(
|
|
35
|
+
const o = class o extends v(h(i)) {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments), this.iconPlacement = "start";
|
|
38
38
|
}
|
|
@@ -49,7 +49,7 @@ const O = (i) => {
|
|
|
49
49
|
c({ attribute: "icon-placement", reflect: !0 })
|
|
50
50
|
], t.prototype, "iconPlacement"), t;
|
|
51
51
|
}, z = b`:host{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit;--sbb-link-color-normal: inherit;--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);color:inherit;display:inline-block}:host([negative]){--sbb-link-color-hover: var(--sbb-color-graphite);--sbb-link-color-active: var(--sbb-color-metal);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-action-base{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit}`, j = (i) => {
|
|
52
|
-
const o = class o extends
|
|
52
|
+
const o = class o extends v(i) {
|
|
53
53
|
};
|
|
54
54
|
o.styles = [a, z];
|
|
55
55
|
let t = o;
|
|
@@ -58,5 +58,5 @@ const O = (i) => {
|
|
|
58
58
|
export {
|
|
59
59
|
O as SbbBlockLinkCommonElementMixin,
|
|
60
60
|
j as SbbInlineLinkCommonElementMixin,
|
|
61
|
-
|
|
61
|
+
v as SbbLinkCommonElementMixin
|
|
62
62
|
};
|
package/link/link/link.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SbbLinkBaseElement } from '../../core/base-elements.js';
|
|
2
|
-
|
|
3
2
|
declare const SbbLinkElement_base: import('../../core/mixins.js').AbstractConstructor<import('../common.js').SbbInlineLinkCommonElementMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & typeof SbbLinkBaseElement;
|
|
4
3
|
/**
|
|
5
4
|
* It displays a link enhanced with the SBB Design.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SbbButtonBaseElement } from '../../core/base-elements.js';
|
|
2
|
-
|
|
3
2
|
declare const SbbLinkButtonElement_base: import('../../core/mixins.js').AbstractConstructor<import('../common.js').SbbInlineLinkCommonElementMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & typeof SbbButtonBaseElement;
|
|
4
3
|
/**
|
|
5
4
|
* It displays a link enhanced with the SBB Design, which will behave as a button.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SbbActionBaseElement } from '../../core/base-elements.js';
|
|
2
|
-
|
|
3
2
|
declare const SbbLinkStaticElement_base: import('../../core/mixins.js').AbstractConstructor<import('../common.js').SbbInlineLinkCommonElementMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & typeof SbbActionBaseElement;
|
|
4
3
|
/**
|
|
5
4
|
* It displays a static link enhanced with the SBB Design.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PropertyValues, TemplateResult, LitElement } from 'lit';
|
|
2
|
+
import { WithListChildren } from '../../core/mixins.js';
|
|
3
|
+
import { SbbBlockLinkButtonElement, SbbBlockLinkElement, SbbBlockLinkStaticElement, SbbLinkSize } from '../../link.js';
|
|
4
|
+
import { SbbTitleLevel } from '../../title.js';
|
|
5
|
+
declare const SbbLinkListBaseElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbNegativeMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbNamedSlotListMixinType<SbbBlockLinkElement | SbbBlockLinkButtonElement | SbbBlockLinkStaticElement>> & typeof LitElement;
|
|
6
|
+
/**
|
|
7
|
+
* It displays a list of `sbb-block-link`.
|
|
8
|
+
*
|
|
9
|
+
* @slot - Use the unnamed slot to add one or more `sbb-block-link`.
|
|
10
|
+
* @slot title - Use this slot to provide a title.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SbbLinkListBaseElement extends SbbLinkListBaseElement_base {
|
|
13
|
+
protected readonly listChildLocalNames: string[];
|
|
14
|
+
/** The title text we want to show before the list. */
|
|
15
|
+
titleContent?: string;
|
|
16
|
+
/** The semantic level of the title, e.g. 2 = h2. */
|
|
17
|
+
titleLevel: SbbTitleLevel;
|
|
18
|
+
/**
|
|
19
|
+
* Text size of the nested sbb-block-link instances.
|
|
20
|
+
* This will overwrite the size attribute of nested sbb-block-link instances.
|
|
21
|
+
*/
|
|
22
|
+
size: SbbLinkSize;
|
|
23
|
+
protected willUpdate(changedProperties: PropertyValues<WithListChildren<this>>): void;
|
|
24
|
+
protected render(): TemplateResult;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=link-list-base.d.ts.map
|