@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776756036 → 5.0.0-next-dev.1776772852
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/autocomplete-base-element.js +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/{autocomplete-base-element-B7fDDO1F.js → autocomplete-base-element-gPLexIVc.js} +1 -1
- package/autocomplete.js +1 -1
- package/autocomplete.pure.js +1 -1
- package/core/styles/core.scss +6 -0
- package/core/styles/host-scrollbar.scss +6 -0
- package/core/styles/mixins/panel.scss +5 -1
- package/core/styles/mixins/scrollbar.scss +5 -8
- package/core/styles/scrollbar.scss +10 -8
- package/core/styles/styles.js +2 -2
- package/core.css +23 -2
- package/core.js +2 -2
- package/custom-elements.json +677 -326
- package/development/autocomplete/autocomplete-base-element.js +1 -1
- package/development/autocomplete/autocomplete.component.js +1 -1
- package/development/{autocomplete-base-element-DnpaK_k3.js → autocomplete-base-element-8hV4-ys6.js} +2 -2
- package/development/autocomplete.js +1 -1
- package/development/autocomplete.pure.js +1 -1
- package/development/core/styles/styles.d.ts +1 -0
- package/development/core/styles/styles.d.ts.map +1 -1
- package/development/core/styles/styles.js +2 -2
- package/development/core.js +2 -2
- package/development/dialog/dialog-content/dialog-content.component.d.ts +1 -0
- package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog-content.component-DlSxpY_e.js +34 -0
- package/development/dialog.js +1 -1
- package/development/dialog.pure.js +1 -1
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.d.ts.map +1 -1
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.d.ts.map +1 -1
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/icon-sidebar-content.component-CfkM9k--.js +35 -0
- package/development/{icon-sidebar.component-xzwoc_4y.js → icon-sidebar.component-Cgvuxg4k.js} +3 -3
- package/development/icon-sidebar.js +2 -2
- package/development/icon-sidebar.pure.js +2 -2
- package/development/map-container/map-container.component.js +1 -1
- package/development/{map-container.component-mzZ_K_fR.js → map-container.component-rgU7ZofE.js} +2 -2
- package/development/map-container.js +1 -1
- package/development/map-container.pure.js +1 -1
- package/development/menu/menu/menu.component.js +1 -1
- package/development/{menu.component-BM7hhOb4.js → menu.component-DbNRrGYy.js} +2 -2
- package/development/menu.js +1 -1
- package/development/menu.pure.js +1 -1
- package/development/navigation/navigation/navigation.component.js +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +1 -1
- package/development/{navigation-section.component-6tqZADWM.js → navigation-section.component-BSvxMUxM.js} +2 -2
- package/development/{navigation.component-DUy2QGHI.js → navigation.component-lgvLMF5e.js} +2 -2
- package/development/navigation.js +2 -2
- package/development/navigation.pure.js +2 -2
- package/development/overlay/overlay.component.js +1 -1
- package/development/{overlay.component-CA0fWX47.js → overlay.component-iy6QUYWU.js} +2 -2
- package/development/overlay.js +1 -1
- package/development/overlay.pure.js +1 -1
- package/development/popover/popover.component.js +1 -1
- package/development/{popover.component-B1gMzBuv.js → popover.component-C-zVDwjc.js} +2 -2
- package/development/popover.js +1 -1
- package/development/popover.pure.js +1 -1
- package/development/select/select.component.js +1 -1
- package/development/{select.component-CqwBdtsN.js → select.component-Ibby7Q-L.js} +2 -2
- package/development/select.js +1 -1
- package/development/select.pure.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +1 -1
- package/development/sidebar/sidebar-content/sidebar-content.component.d.ts +1 -2
- package/development/sidebar/sidebar-content/sidebar-content.component.d.ts.map +1 -1
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/{sidebar-content.component-Os9gd7zB.js → sidebar-content.component-DbcREBUa.js} +8 -5
- package/development/{sidebar.component-CwuT6dno.js → sidebar.component-zMWbdz0h.js} +2 -2
- package/development/sidebar.js +2 -2
- package/development/sidebar.pure.js +2 -2
- package/development/styles-DcuJgwEt.js +14 -0
- package/development/tab.component-BVhYPy5Y.js +68 -0
- package/development/table/table-wrapper/table-wrapper.component.d.ts.map +1 -1
- package/development/table/table-wrapper/table-wrapper.component.js +1 -1
- package/development/table-wrapper.component-DcLwEDzr.js +119 -0
- package/development/table.js +1 -1
- package/development/table.pure.js +1 -1
- package/development/tabs/tab/tab.component.d.ts.map +1 -1
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs.js +1 -1
- package/development/tabs.pure.js +1 -1
- package/development/teaser/teaser.component.js +1 -1
- package/development/teaser-hero/teaser-hero.component.d.ts.map +1 -1
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/teaser-hero.component-De621iKn.js +100 -0
- package/development/teaser-hero.js +1 -1
- package/development/teaser-hero.pure.js +1 -1
- package/development/teaser-panel/teaser-panel.component.d.ts +19 -0
- package/development/teaser-panel/teaser-panel.component.d.ts.map +1 -0
- package/development/teaser-panel/teaser-panel.component.js +2 -0
- package/development/teaser-panel.component-Dhka2dPT.js +32 -0
- package/development/teaser-panel.d.ts +2 -0
- package/development/teaser-panel.d.ts.map +1 -0
- package/development/teaser-panel.js +9 -0
- package/development/teaser-panel.pure.d.ts +3 -0
- package/development/teaser-panel.pure.d.ts.map +1 -0
- package/development/teaser-panel.pure.js +2 -0
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/{teaser-product-common-DhbAGnQN.js → teaser-product-common-DasV_SDa.js} +1 -1
- package/development/{teaser-product.component-C3PZbA5W.js → teaser-product.component-CB6fOX7T.js} +1 -1
- package/development/teaser-product.js +2 -2
- package/development/teaser-product.pure.js +2 -2
- package/development/{teaser.component-BJso_6lz.js → teaser.component-DwM26tMt.js} +1 -1
- package/development/teaser.js +1 -1
- package/development/teaser.pure.js +1 -1
- package/development/time-input/time-input.component.js +1 -1
- package/development/{time-input.component-BWMBV6fm.js → time-input.component-x-QOtbwE.js} +1 -1
- package/development/time-input.js +1 -1
- package/development/time-input.pure.js +1 -1
- package/development/timetable-form/timetable-form/timetable-form.component.js +1 -1
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/development/{timetable-form-details.component-C8EdT4rZ.js → timetable-form-details.component-B7mwIQoz.js} +1 -1
- package/development/{timetable-form-field.component-CoANLGWk.js → timetable-form-field.component-BIpoMaJW.js} +1 -1
- package/development/{timetable-form-swap-button.component-_EUhzoww.js → timetable-form-swap-button.component-DM7UFhGh.js} +1 -1
- package/development/{timetable-form.component-DLjBbFRv.js → timetable-form.component-BBkeono7.js} +1 -1
- package/development/timetable-form.js +4 -4
- package/development/timetable-form.pure.js +4 -4
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/development/{timetable-occupancy-icon.component-DXFUx67a.js → timetable-occupancy-icon.component-CRayfWIo.js} +1 -1
- package/development/timetable-occupancy-icon.js +1 -1
- package/development/timetable-occupancy-icon.pure.js +1 -1
- package/development/{timetable-occupancy.component-By7X3Sj2.js → timetable-occupancy.component-D6BIvkpY.js} +1 -1
- package/development/timetable-occupancy.js +1 -1
- package/development/timetable-occupancy.pure.js +1 -1
- package/development/title/title-base.js +1 -1
- package/development/title/title.component.js +1 -1
- package/development/{title-base-Bc3biGfy.js → title-base-CWLTIRh_.js} +1 -1
- package/development/{title.component-B7rIqG0N.js → title.component-TCKohHBO.js} +2 -2
- package/development/title.js +2 -2
- package/development/title.pure.js +2 -2
- package/development/toast/toast.component.js +1 -1
- package/development/{toast.component-lPPTFudM.js → toast.component-CZL72aVO.js} +1 -1
- package/development/toast.js +1 -1
- package/development/toast.pure.js +1 -1
- package/development/toggle/toggle/toggle.component.js +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +1 -1
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/{toggle-check.component-CuODx4cx.js → toggle-check.component-BPcuOvOu.js} +1 -1
- package/development/toggle-check.js +1 -1
- package/development/toggle-check.pure.js +1 -1
- package/development/{toggle-option.component-DscH6K3b.js → toggle-option.component-DRAJ11fp.js} +1 -1
- package/development/{toggle.component-Dap1d4rK.js → toggle.component-BeHHTgRh.js} +1 -1
- package/development/toggle.js +2 -2
- package/development/toggle.pure.js +2 -2
- package/development/tooltip/tooltip.component.js +1 -1
- package/development/{tooltip.component-lvElko6C.js → tooltip.component-BV0yBh9f.js} +1 -1
- package/development/tooltip.js +1 -1
- package/development/tooltip.pure.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +1 -1
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/{train-blocked-passage.component-C6XmqBo_.js → train-blocked-passage.component-Bh2dR1gn.js} +1 -1
- package/development/{train-formation.component-CfdHRBsd.js → train-formation.component-Dm0t9N_h.js} +2 -2
- package/development/{train-wagon.component-zQVbqhIL.js → train-wagon.component-X0XSMLK_.js} +1 -1
- package/development/{train.component-D5Z4vgej.js → train.component-BvbNBkZF.js} +1 -1
- package/development/train.js +4 -4
- package/development/train.pure.js +4 -4
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/development/{visual-checkbox.component-jRksxrOu.js → visual-checkbox.component-DJ30EugM.js} +1 -1
- package/development/visual-checkbox.js +1 -1
- package/development/visual-checkbox.pure.js +1 -1
- package/dialog/dialog-content/dialog-content.component.js +1 -1
- package/dialog-content.component-C_Gr8BNL.js +22 -0
- package/dialog.js +1 -1
- package/dialog.pure.js +1 -1
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/{icon-sidebar-content.component-DlUqWEAX.js → icon-sidebar-content.component-lFstg91Y.js} +9 -5
- package/{icon-sidebar.component-DbA4omxc.js → icon-sidebar.component-D0TtF-kR.js} +11 -11
- package/icon-sidebar.js +2 -2
- package/icon-sidebar.pure.js +2 -2
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/map-container/map-container.component.js +1 -1
- package/{map-container.component-Cqn9mKoo.js → map-container.component-De-8Tsau.js} +1 -1
- package/map-container.js +1 -1
- package/map-container.pure.js +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/{menu.component-i-X_ag2Y.js → menu.component-KdXwqe55.js} +1 -1
- package/menu.js +1 -1
- package/menu.pure.js +1 -1
- package/navigation/navigation/navigation.component.js +1 -1
- package/navigation/navigation-section/navigation-section.component.js +1 -1
- package/{navigation-section.component-Db2MWBDn.js → navigation-section.component-DrnbQAZX.js} +1 -1
- package/{navigation.component-Bym1kjzt.js → navigation.component-D6HU-F51.js} +1 -1
- package/navigation.js +2 -2
- package/navigation.pure.js +2 -2
- package/off-brand-theme.css +74 -55
- package/overlay/overlay.component.js +1 -1
- package/overlay.component-bHg2Xk6D.js +161 -0
- package/overlay.js +1 -1
- package/overlay.pure.js +1 -1
- package/package.json +12 -2
- package/popover/popover.component.js +1 -1
- package/{popover.component-Dd4rKGml.js → popover.component-BCLBnddM.js} +1 -1
- package/popover.js +1 -1
- package/popover.pure.js +1 -1
- package/safety-theme.css +74 -55
- package/scrollbar.css +51 -53
- package/select/select.component.js +1 -1
- package/{select.component-Cu3ewc4i.js → select.component-BcDZm7EM.js} +1 -1
- package/select.js +1 -1
- package/select.pure.js +1 -1
- package/sidebar/sidebar/sidebar.component.js +1 -1
- package/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/{sidebar-content.component-DEgmt4BB.js → sidebar-content.component-CYupfsq_.js} +9 -5
- package/{sidebar.component-Bxt8pWMf.js → sidebar.component-Sw06otwx.js} +1 -1
- package/sidebar.js +2 -2
- package/sidebar.pure.js +2 -2
- package/standard-theme.css +74 -55
- package/styles-swTeDfst.js +5 -0
- package/{tab.component-D39b0S04.js → tab.component-D6hfhlZw.js} +6 -6
- package/table/table-wrapper/table-wrapper.component.js +1 -1
- package/{table-wrapper.component-C36NdMWS.js → table-wrapper.component-Dxb8kzV3.js} +13 -13
- package/table.js +1 -1
- package/table.pure.js +1 -1
- package/tabs/tab/tab.component.js +1 -1
- package/tabs.js +1 -1
- package/tabs.pure.js +1 -1
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/teaser-hero.component.js +1 -1
- package/teaser-hero.component-BUhWjc2i.js +80 -0
- package/teaser-hero.js +1 -1
- package/teaser-hero.pure.js +1 -1
- package/teaser-panel/teaser-panel.component.js +2 -0
- package/teaser-panel.component-zejDYKkU.js +21 -0
- package/teaser-panel.js +6 -0
- package/teaser-panel.pure.js +2 -0
- package/teaser-product/common/teaser-product-common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product.js +2 -2
- package/teaser-product.pure.js +2 -2
- package/teaser.js +1 -1
- package/teaser.pure.js +1 -1
- package/time-input/time-input.component.js +1 -1
- package/time-input.js +1 -1
- package/time-input.pure.js +1 -1
- package/timetable-form/timetable-form/timetable-form.component.js +1 -1
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
- package/timetable-form.js +4 -4
- package/timetable-form.pure.js +4 -4
- package/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
- package/timetable-occupancy-icon.js +1 -1
- package/timetable-occupancy-icon.pure.js +1 -1
- package/timetable-occupancy.js +1 -1
- package/timetable-occupancy.pure.js +1 -1
- package/title/title-base.js +1 -1
- package/title/title.component.js +1 -1
- package/{title.component-7zqQqbRJ.js → title.component-CjDkG7gT.js} +1 -1
- package/title.js +2 -2
- package/title.pure.js +2 -2
- package/toast/toast.component.js +1 -1
- package/toast.js +1 -1
- package/toast.pure.js +1 -1
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +1 -1
- package/toggle-check/toggle-check.component.js +1 -1
- package/toggle-check.js +1 -1
- package/toggle-check.pure.js +1 -1
- package/toggle.js +2 -2
- package/toggle.pure.js +2 -2
- package/tooltip/tooltip.component.js +1 -1
- package/tooltip.js +1 -1
- package/tooltip.pure.js +1 -1
- package/train/train/train.component.js +1 -1
- package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/train/train-formation/train-formation.component.js +1 -1
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/{train-formation.component-5AASBGSX.js → train-formation.component-DS4EDwPY.js} +1 -1
- package/train.js +4 -4
- package/train.pure.js +4 -4
- package/visual-checkbox/visual-checkbox.component.js +1 -1
- package/visual-checkbox.js +1 -1
- package/visual-checkbox.pure.js +1 -1
- package/development/dialog-content.component-B3VB2ptp.js +0 -30
- package/development/icon-sidebar-content.component-CMzp1ewD.js +0 -31
- package/development/styles-CcYw6JtZ.js +0 -8
- package/development/tab.component-CvzGdR9_.js +0 -68
- package/development/table-wrapper.component-iSeT-FPH.js +0 -119
- package/development/teaser-hero.component-7KeR7bPf.js +0 -101
- package/dialog-content.component-DvJiuDJI.js +0 -19
- package/overlay.component-BydJOM2r.js +0 -161
- package/styles-x5HG0xjp.js +0 -6
- package/teaser-hero.component-CLuVP2ba.js +0 -81
- /package/{teaser-product-common-B8NakRRV.js → teaser-product-common-Kz3ApcVE.js} +0 -0
- /package/{teaser-product.component-Dqapk40c.js → teaser-product.component-C7KoSqcP.js} +0 -0
- /package/{teaser.component-BaxumXCl.js → teaser.component-Bl_Myx2h.js} +0 -0
- /package/{time-input.component-N0DexLd9.js → time-input.component-BVoO7JLV.js} +0 -0
- /package/{timetable-form-details.component-CIY5ZAQJ.js → timetable-form-details.component-BQmF3WLu.js} +0 -0
- /package/{timetable-form-field.component-LuzgeDdh.js → timetable-form-field.component-DrQuTOJr.js} +0 -0
- /package/{timetable-form-swap-button.component-BT36u2L9.js → timetable-form-swap-button.component-C9dU9vDV.js} +0 -0
- /package/{timetable-form.component-YNDnJnkX.js → timetable-form.component-AbZF15Tg.js} +0 -0
- /package/{timetable-occupancy-icon.component-DPNwMhLs.js → timetable-occupancy-icon.component-B6pF-j0D.js} +0 -0
- /package/{timetable-occupancy.component-BbHtiw_F.js → timetable-occupancy.component-CLpJ-rjI.js} +0 -0
- /package/{title-base-Cbe4eNS1.js → title-base-HD0z6npS.js} +0 -0
- /package/{toast.component-ccBpQmCC.js → toast.component-DzsaWxPV.js} +0 -0
- /package/{toggle-check.component-DkOBgRQM.js → toggle-check.component-CnZBajpA.js} +0 -0
- /package/{toggle-option.component-BiyjKQB1.js → toggle-option.component-DeePQ-NW.js} +0 -0
- /package/{toggle.component-CVbRdQDM.js → toggle.component-D7X0E_hM.js} +0 -0
- /package/{tooltip.component-Do4V1jGd.js → tooltip.component-BCRFxBuV.js} +0 -0
- /package/{train-blocked-passage.component-EET0Kobk.js → train-blocked-passage.component-DIh8dbU9.js} +0 -0
- /package/{train-wagon.component-CLMLEf6I.js → train-wagon.component-CZiVPOaZ.js} +0 -0
- /package/{train.component-D_ysGCwu.js → train.component-DuFi_iBX.js} +0 -0
- /package/{visual-checkbox.component-CdqoYyEe.js → visual-checkbox.component-BsjmJgcn.js} +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
-
import { unsafeCSS } from "lit";
|
|
3
|
-
import { property } from "lit/decorators.js";
|
|
4
|
-
import { SbbLinkBaseElement, boxSizingStyles, forceType, omitEmptyConverter } from "./core.js";
|
|
5
|
-
import { html as html$1 } from "lit/static-html.js";
|
|
6
|
-
import { SbbBlockLinkStaticElement } from "./link.pure.js";
|
|
7
|
-
//#region src/elements/teaser-hero/teaser-hero.scss?inline
|
|
8
|
-
var teaser_hero_default = ":host {\n display: block;\n outline: none !important;\n --sbb-panel-width: 13.9375rem;\n --sbb-panel-inner-height: 10.4375rem;\n --sbb-panel-triangle-height: 2.0625rem;\n --sbb-panel-height: calc(var(--sbb-panel-inner-height) + 2 * var(--sbb-panel-triangle-height));\n --sbb-panel-line-height: var(--sbb-typo-line-height-heading);\n --sbb-panel-font-size: var(--sbb-typo-scale-1-5x);\n --sbb-panel-color: var(--sbb-color-1-negative);\n --sbb-panel-background-color: color-mix(in srgb, var(--sbb-color-primary) 90%, transparent);\n --sbb-panel-background-color-hover: var(--sbb-color-primary);\n --sbb-panel-padding-inline: var(--sbb-spacing-responsive-m);\n --sbb-panel-gap: var(--sbb-spacing-responsive-xs);\n --sbb-panel-animation-duration: var(\n --sbb-disable-animation-duration,\n var(--sbb-animation-duration-4x)\n );\n --sbb-panel-animation-easing: var(--sbb-animation-easing);\n}\n@media (min-width: calc(64rem)) {\n :host {\n --sbb-panel-width: 20.0625rem;\n --sbb-panel-inner-height: 15.006875rem;\n --sbb-panel-triangle-height: 2.965625rem;\n --sbb-panel-font-size: var(--sbb-typo-scale-2x);\n }\n}\n@media (min-width: calc(64rem)) {\n :host {\n --sbb-panel-width: 26.75rem;\n --sbb-panel-inner-height: 20.02375rem;\n --sbb-panel-triangle-height: 3.956875rem;\n --sbb-panel-font-size: var(--sbb-typo-scale-2-5x);\n --sbb-panel-line-height: 1.2;\n }\n}\n\n@media (any-hover: hover) {\n :host(:hover) {\n --sbb-panel-background-color: var(--sbb-panel-background-color-hover);\n }\n}\n::slotted([slot=image]) {\n width: 100%;\n}\n\n.sbb-teaser-hero {\n position: relative;\n display: flex;\n min-height: var(--sbb-panel-height);\n text-decoration: none;\n}\n.sbb-teaser-hero:focus-visible {\n outline-offset: var(--sbb-focus-outline-offset);\n outline: var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);\n}\n\n.sbb-teaser-hero__panel {\n z-index: 1;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: var(--sbb-panel-gap);\n width: var(--sbb-panel-width);\n height: var(--sbb-panel-height);\n padding-block: var(--sbb-panel-triangle-height);\n padding-inline: var(--sbb-panel-padding-inline);\n clip-path: polygon(0 0, 100% var(--sbb-panel-triangle-height), 100% calc(100% - var(--sbb-panel-triangle-height)), 0% 100%);\n background-color: var(--sbb-panel-background-color);\n transition: background var(--sbb-panel-animation-duration) var(--sbb-panel-animation-easing);\n}\n@media (any-hover: hover) {\n .sbb-teaser-hero__panel:hover {\n --sbb-panel-background-color: var(--sbb-panel-background-color-hover);\n }\n}\n.sbb-teaser-hero__panel {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n:host(:not(:is(:state(slotted),[state--slotted]), :is(:state(slotted-link-content),[state--slotted-link-content]), [link-content])) .sbb-teaser-hero__panel {\n display: none;\n}\n\n.sbb-teaser-hero__panel-text {\n font-family: var(--sbb-typo-font-family);\n font-size: var(--sbb-panel-font-size);\n font-weight: 300;\n line-height: var(--sbb-panel-line-height);\n letter-spacing: var(--sbb-typo-letter-spacing-heading);\n color: var(--sbb-panel-color);\n hyphens: auto;\n display: inline;\n margin: 0;\n padding: 0;\n}\n\n:host(:not([href])) .sbb-teaser-hero__panel-link {\n display: none;\n}";
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/elements/teaser-hero/teaser-hero.component.ts
|
|
11
|
-
/**
|
|
12
|
-
* It displays an image and an action call within a panel.
|
|
13
|
-
*
|
|
14
|
-
* @slot - Use the unnamed slot to add text content to the panel
|
|
15
|
-
* @slot link-content - Link content of the panel
|
|
16
|
-
* @slot image - The background image that can be a `sbb-image`
|
|
17
|
-
* @slot chip - The `sbb-chip-label` component that will be displayed on top-left corner
|
|
18
|
-
*/
|
|
19
|
-
var SbbTeaserHeroElement = (() => {
|
|
20
|
-
let _classSuper = SbbLinkBaseElement;
|
|
21
|
-
let _linkContent_decorators;
|
|
22
|
-
let _linkContent_initializers = [];
|
|
23
|
-
let _linkContent_extraInitializers = [];
|
|
24
|
-
return class SbbTeaserHeroElement extends _classSuper {
|
|
25
|
-
static {
|
|
26
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
27
|
-
_linkContent_decorators = [forceType(), property({
|
|
28
|
-
attribute: "link-content",
|
|
29
|
-
reflect: true,
|
|
30
|
-
converter: omitEmptyConverter
|
|
31
|
-
})];
|
|
32
|
-
__esDecorate(this, null, _linkContent_decorators, {
|
|
33
|
-
kind: "accessor",
|
|
34
|
-
name: "linkContent",
|
|
35
|
-
static: false,
|
|
36
|
-
private: false,
|
|
37
|
-
access: {
|
|
38
|
-
has: (obj) => "linkContent" in obj,
|
|
39
|
-
get: (obj) => obj.linkContent,
|
|
40
|
-
set: (obj, value) => {
|
|
41
|
-
obj.linkContent = value;
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
metadata: _metadata
|
|
45
|
-
}, _linkContent_initializers, _linkContent_extraInitializers);
|
|
46
|
-
if (_metadata) Object.defineProperty(this, Symbol.metadata, {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true,
|
|
50
|
-
value: _metadata
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
static {
|
|
54
|
-
this.elementName = "sbb-teaser-hero";
|
|
55
|
-
}
|
|
56
|
-
static {
|
|
57
|
-
this.elementDependencies = [SbbBlockLinkStaticElement];
|
|
58
|
-
}
|
|
59
|
-
static {
|
|
60
|
-
this.styles = [boxSizingStyles, unsafeCSS(teaser_hero_default)];
|
|
61
|
-
}
|
|
62
|
-
#linkContent_accessor_storage = __runInitializers(this, _linkContent_initializers, "");
|
|
63
|
-
/** Panel link text. */
|
|
64
|
-
get linkContent() {
|
|
65
|
-
return this.#linkContent_accessor_storage;
|
|
66
|
-
}
|
|
67
|
-
set linkContent(value) {
|
|
68
|
-
this.#linkContent_accessor_storage = value;
|
|
69
|
-
}
|
|
70
|
-
_imageSlotChanged() {
|
|
71
|
-
Array.from(this.querySelectorAll("sbb-chip-label")).forEach((c) => c.color = "charcoal");
|
|
72
|
-
}
|
|
73
|
-
renderTemplate() {
|
|
74
|
-
return html$1`
|
|
75
|
-
<span class="sbb-teaser-hero__panel">
|
|
76
|
-
<p class="sbb-teaser-hero__panel-text">
|
|
77
|
-
<slot></slot>
|
|
78
|
-
</p>
|
|
79
|
-
<sbb-block-link-static
|
|
80
|
-
class="sbb-teaser-hero__panel-link"
|
|
81
|
-
icon-name="chevron-small-right-small"
|
|
82
|
-
icon-placement="end"
|
|
83
|
-
size="m"
|
|
84
|
-
negative
|
|
85
|
-
>
|
|
86
|
-
<slot name="link-content">${this.linkContent}</slot>
|
|
87
|
-
</sbb-block-link-static>
|
|
88
|
-
</span>
|
|
89
|
-
<slot name="image" @slotchange=${this._imageSlotChanged}></slot>
|
|
90
|
-
`;
|
|
91
|
-
}
|
|
92
|
-
constructor() {
|
|
93
|
-
super(...arguments);
|
|
94
|
-
__runInitializers(this, _linkContent_extraInitializers);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
})();
|
|
98
|
-
//#endregion
|
|
99
|
-
export { SbbTeaserHeroElement as t };
|
|
100
|
-
|
|
101
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVhc2VyLWhlcm8uY29tcG9uZW50LTdLZVI3YlBmLmpzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9lbGVtZW50cy90ZWFzZXItaGVyby90ZWFzZXItaGVyby5zY3NzP2lubGluZSIsIi4uLy4uLy4uL3NyYy9lbGVtZW50cy90ZWFzZXItaGVyby90ZWFzZXItaGVyby5jb21wb25lbnQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiQHVzZSAnLi4vY29yZS9zdHlsZXMnIGFzIHNiYjtcblxuOmhvc3Qge1xuICBkaXNwbGF5OiBibG9jaztcblxuICAvLyBVc2UgIWltcG9ydGFudCBoZXJlIHRvIG5vdCBpbnR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9
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { html as e, unsafeCSS as t } from "lit";
|
|
2
|
-
import { SbbElement as n } from "./core.js";
|
|
3
|
-
//#region src/elements/dialog/dialog-content/dialog-content.scss?inline
|
|
4
|
-
var r = ":host{display:block;padding-block:var(--sbb-dialog-padding-block);padding-inline:var(--sbb-dialog-padding-inline);grid-area:content;overflow:auto}:host(:focus-visible){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-offset: calc(var(--sbb-focus-outline-width) * -1)}", i = class extends n {
|
|
5
|
-
static {
|
|
6
|
-
this.elementName = "sbb-dialog-content";
|
|
7
|
-
}
|
|
8
|
-
static {
|
|
9
|
-
this.styles = t(r);
|
|
10
|
-
}
|
|
11
|
-
connectedCallback() {
|
|
12
|
-
super.connectedCallback(), this.classList.add("sbb-scrollbar");
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return e`<slot></slot>`;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { i as t };
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { SbbOverlayBaseElement as e, SbbOverlayCloseEvent as t, overlayRefs as n } from "./overlay/overlay-base-element.js";
|
|
2
|
-
import { __esDecorate as r, __runInitializers as i } from "tslib";
|
|
3
|
-
import { unsafeCSS as a } from "lit";
|
|
4
|
-
import { property as o } from "lit/decorators.js";
|
|
5
|
-
import { SbbScreenReaderOnlyElement as s, boxSizingStyles as c, forceType as l, forwardEvent as u, i18nCloseDialog as d, isZeroAnimationDuration as f } from "./core.js";
|
|
6
|
-
import { html as p } from "lit/static-html.js";
|
|
7
|
-
import { SbbSecondaryButtonElement as m } from "./button.pure.js";
|
|
8
|
-
import { ref as h } from "lit/directives/ref.js";
|
|
9
|
-
import { SbbContainerElement as g } from "./container.pure.js";
|
|
10
|
-
//#region src/elements/overlay/overlay.scss?inline
|
|
11
|
-
var _ = ":host{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--_sbb-overlay-padding-block: calc( var(--sbb-spacing-fixed-14x) + var(--sbb-spacing-responsive-l) );--sbb-overlay-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );display:var(--sbb-overlay-display);position:fixed;inset:var(--sbb-overlay-inset);z-index:var(--sbb-overlay-z-index, var(--sbb-overlay-default-z-index))}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))){--sbb-overlay-display: block;--sbb-overlay-container-display: flex}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]))){--sbb-overlay-pointer-events: all}:host([negative]){--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-overlay-color: var(--sbb-color-1-negative);--sbb-overlay-background-color: var(--sbb-background-color-3-negative)}:host(:not(:is(:state(state-closed),[state--state-closed]))){--sbb-overlay-inset: 0}.sbb-overlay__container{background-color:var(--sbb-overlay-background-color);pointer-events:var(--sbb-overlay-pointer-events);display:var(--sbb-overlay-container-display);align-items:center;position:fixed;inset:var(--sbb-overlay-inset)}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-overlay__container{animation-name:open;animation-duration:var(--sbb-overlay-animation-duration);animation-timing-function:var(--sbb-overlay-animation-easing)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-overlay__container{pointer-events:none;animation-name:close}.sbb-overlay{position:absolute;inset-inline:0;margin:auto;padding:0;border:none;height:var(--sbb-overlay-height);overflow:auto;color:var(--sbb-overlay-color)}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-overlay{animation-name:open-move-in;animation-duration:var(--sbb-overlay-animation-duration);animation-timing-function:var(--sbb-overlay-animation-easing)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-overlay{animation-name:close-move-out}.sbb-overlay__wrapper{display:flex;flex-direction:column;width:100%;height:var(--sbb-overlay-height);outline:none;position:fixed}@media(min-width:64rem){.sbb-overlay__wrapper{position:sticky;inset-block-start:0;height:auto}}.sbb-overlay__header{position:absolute;inset-inline-start:0;display:flex;pointer-events:none;align-items:start;justify-content:space-between;width:100%;padding:var(--sbb-spacing-responsive-xs);padding-block-end:0;z-index:1}.sbb-overlay__header *{pointer-events:all}.sbb-overlay__close{margin-inline-start:auto}.sbb-overlay__content{--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-overlay__content::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-overlay__content::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-overlay__content::-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-overlay__content::-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-overlay__content::-webkit-scrollbar-button,.sbb-overlay__content::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-overlay__content{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-overlay__content{height:100vh;overflow:auto;-webkit-overflow-scrolling:touch}.sbb-overlay__content-container{padding-block:var(--_sbb-overlay-padding-block)}@keyframes open{0%{opacity:0}to{opacity:1}}@keyframes open-move-in{0%{transform:translateY(var(--sbb-spacing-fixed-4x))}to{transform:translateY(0)}}@keyframes close{0%{opacity:1}to{opacity:0}}@keyframes close-move-out{0%{transform:translateY(0)}to{transform:translateY(var(--sbb-spacing-fixed-4x))}}", v = (() => {
|
|
12
|
-
let v = e, y, b = [], x = [], S, C = [], w = [];
|
|
13
|
-
return class extends v {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments), this.#e = i(this, b, !1), this.#t = (i(this, x), i(this, C, "")), this.closeAttribute = (i(this, w), "sbb-overlay-close"), this._overlayContentElement = null;
|
|
16
|
-
}
|
|
17
|
-
static {
|
|
18
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
19
|
-
y = [l(), o({
|
|
20
|
-
reflect: !0,
|
|
21
|
-
type: Boolean
|
|
22
|
-
})], S = [l(), o({ attribute: "accessibility-close-label" })], r(this, null, y, {
|
|
23
|
-
kind: "accessor",
|
|
24
|
-
name: "expanded",
|
|
25
|
-
static: !1,
|
|
26
|
-
private: !1,
|
|
27
|
-
access: {
|
|
28
|
-
has: (e) => "expanded" in e,
|
|
29
|
-
get: (e) => e.expanded,
|
|
30
|
-
set: (e, t) => {
|
|
31
|
-
e.expanded = t;
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
metadata: e
|
|
35
|
-
}, b, x), r(this, null, S, {
|
|
36
|
-
kind: "accessor",
|
|
37
|
-
name: "accessibilityCloseLabel",
|
|
38
|
-
static: !1,
|
|
39
|
-
private: !1,
|
|
40
|
-
access: {
|
|
41
|
-
has: (e) => "accessibilityCloseLabel" in e,
|
|
42
|
-
get: (e) => e.accessibilityCloseLabel,
|
|
43
|
-
set: (e, t) => {
|
|
44
|
-
e.accessibilityCloseLabel = t;
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
metadata: e
|
|
48
|
-
}, C, w), e && Object.defineProperty(this, Symbol.metadata, {
|
|
49
|
-
enumerable: !0,
|
|
50
|
-
configurable: !0,
|
|
51
|
-
writable: !0,
|
|
52
|
-
value: e
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
static {
|
|
56
|
-
this.elementName = "sbb-overlay";
|
|
57
|
-
}
|
|
58
|
-
static {
|
|
59
|
-
this.elementDependencies = [
|
|
60
|
-
m,
|
|
61
|
-
g,
|
|
62
|
-
s
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
static {
|
|
66
|
-
this.styles = [c, a(_)];
|
|
67
|
-
}
|
|
68
|
-
static {
|
|
69
|
-
this.events = {
|
|
70
|
-
beforeopen: "beforeopen",
|
|
71
|
-
open: "open",
|
|
72
|
-
beforeclose: "beforeclose",
|
|
73
|
-
close: "close"
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
#e;
|
|
77
|
-
get expanded() {
|
|
78
|
-
return this.#e;
|
|
79
|
-
}
|
|
80
|
-
set expanded(e) {
|
|
81
|
-
this.#e = e;
|
|
82
|
-
}
|
|
83
|
-
#t;
|
|
84
|
-
get accessibilityCloseLabel() {
|
|
85
|
-
return this.#t;
|
|
86
|
-
}
|
|
87
|
-
set accessibilityCloseLabel(e) {
|
|
88
|
-
this.#t = e;
|
|
89
|
-
}
|
|
90
|
-
firstUpdated(e) {
|
|
91
|
-
super.firstUpdated(e), this.isOpen && this.setAriaLiveRefContent();
|
|
92
|
-
}
|
|
93
|
-
isZeroAnimationDuration() {
|
|
94
|
-
return f(this, "--sbb-overlay-animation-duration");
|
|
95
|
-
}
|
|
96
|
-
handleOpening() {
|
|
97
|
-
this.state = "opened", this.inertController.activate(), this.focusTrapController.focusInitialElement(), setTimeout(() => this.setAriaLiveRefContent(this.accessibilityLabel)), this.focusTrapController.enabled = !0, this.dispatchOpenEvent();
|
|
98
|
-
}
|
|
99
|
-
handleClosing() {
|
|
100
|
-
this._overlayContentElement?.scrollTo(0, 0), this.state = "closed", this.hidePopover?.(), this.inertController.deactivate(), this.skipFocusRestoration || this.lastFocusedElement?.focus(), this.openOverlayController?.abort(), this.focusTrapController.enabled = !1, this.removeInstanceFromGlobalCollection(), n.length || this.scrollHandler.enableScroll(), this.escapableOverlayController.disconnect(), this.dispatchCloseEvent({
|
|
101
|
-
returnValue: this.returnValue,
|
|
102
|
-
closeTarget: this.overlayCloseElement
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
dispatchBeforeCloseEvent(e) {
|
|
106
|
-
return this.dispatchEvent(new t("beforeclose", {
|
|
107
|
-
cancelable: !0,
|
|
108
|
-
closeAttribute: this.closeAttribute,
|
|
109
|
-
closeTarget: this.overlayCloseElement,
|
|
110
|
-
result: this.returnValue
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
dispatchCloseEvent(e) {
|
|
114
|
-
return this.dispatchEvent(new t("close", {
|
|
115
|
-
closeAttribute: this.closeAttribute,
|
|
116
|
-
closeTarget: this.overlayCloseElement,
|
|
117
|
-
result: this.returnValue
|
|
118
|
-
}));
|
|
119
|
-
}
|
|
120
|
-
render() {
|
|
121
|
-
return p`
|
|
122
|
-
<div class="sbb-overlay__container" @animationend=${this.onOverlayAnimationEnd}>
|
|
123
|
-
<div class="sbb-overlay">
|
|
124
|
-
<div
|
|
125
|
-
@click=${(e) => this.closeOnSbbOverlayCloseClick(e)}
|
|
126
|
-
class="sbb-overlay__wrapper"
|
|
127
|
-
>
|
|
128
|
-
<div class="sbb-overlay__header">
|
|
129
|
-
<sbb-secondary-button
|
|
130
|
-
class="sbb-overlay__close"
|
|
131
|
-
aria-label="${this.accessibilityCloseLabel || d[this.language.current]}"
|
|
132
|
-
?negative=${this.negative}
|
|
133
|
-
size="m"
|
|
134
|
-
type="button"
|
|
135
|
-
icon-name="cross-small"
|
|
136
|
-
sbb-overlay-close
|
|
137
|
-
></sbb-secondary-button>
|
|
138
|
-
</div>
|
|
139
|
-
<div
|
|
140
|
-
class="sbb-overlay__content"
|
|
141
|
-
${h((e) => this._overlayContentElement = e)}
|
|
142
|
-
@scroll=${(e) => u(e, document)}
|
|
143
|
-
>
|
|
144
|
-
<sbb-container
|
|
145
|
-
class="sbb-overlay__content-container"
|
|
146
|
-
?expanded=${this.expanded}
|
|
147
|
-
color="transparent"
|
|
148
|
-
>
|
|
149
|
-
<slot></slot>
|
|
150
|
-
</sbb-container>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
</div>
|
|
155
|
-
<sbb-screen-reader-only aria-live="polite"></sbb-screen-reader-only>
|
|
156
|
-
`;
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
})();
|
|
160
|
-
//#endregion
|
|
161
|
-
export { v as t };
|
package/styles-x5HG0xjp.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { unsafeCSS as n } from "lit";
|
|
3
|
-
import { property as r } from "lit/decorators.js";
|
|
4
|
-
import { SbbLinkBaseElement as i, boxSizingStyles as a, forceType as o, omitEmptyConverter as s } from "./core.js";
|
|
5
|
-
import { html as c } from "lit/static-html.js";
|
|
6
|
-
import { SbbBlockLinkStaticElement as l } from "./link.pure.js";
|
|
7
|
-
//#region src/elements/teaser-hero/teaser-hero.scss?inline
|
|
8
|
-
var u = ":host{display:block;outline:none!important;--sbb-panel-width: 13.9375rem;--sbb-panel-inner-height: 10.4375rem;--sbb-panel-triangle-height: 2.0625rem;--sbb-panel-height: calc(var(--sbb-panel-inner-height) + 2 * var(--sbb-panel-triangle-height));--sbb-panel-line-height: var(--sbb-typo-line-height-heading);--sbb-panel-font-size: var(--sbb-typo-scale-1-5x);--sbb-panel-color: var(--sbb-color-1-negative);--sbb-panel-background-color: color-mix(in srgb, var(--sbb-color-primary) 90%, transparent);--sbb-panel-background-color-hover: var(--sbb-color-primary);--sbb-panel-padding-inline: var(--sbb-spacing-responsive-m);--sbb-panel-gap: var(--sbb-spacing-responsive-xs);--sbb-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-panel-animation-easing: var(--sbb-animation-easing)}@media(min-width:64rem){:host{--sbb-panel-width: 20.0625rem;--sbb-panel-inner-height: 15.006875rem;--sbb-panel-triangle-height: 2.965625rem;--sbb-panel-font-size: var(--sbb-typo-scale-2x)}}@media(min-width:64rem){:host{--sbb-panel-width: 26.75rem;--sbb-panel-inner-height: 20.02375rem;--sbb-panel-triangle-height: 3.956875rem;--sbb-panel-font-size: var(--sbb-typo-scale-2-5x);--sbb-panel-line-height: 1.2}}@media(any-hover:hover){:host(:hover){--sbb-panel-background-color: var(--sbb-panel-background-color-hover)}}::slotted([slot=image]){width:100%}.sbb-teaser-hero{position:relative;display:flex;min-height:var(--sbb-panel-height);text-decoration:none}.sbb-teaser-hero:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-teaser-hero__panel{z-index:1;position:relative;display:flex;flex-direction:column;justify-content:center;gap:var(--sbb-panel-gap);width:var(--sbb-panel-width);height:var(--sbb-panel-height);padding-block:var(--sbb-panel-triangle-height);padding-inline:var(--sbb-panel-padding-inline);clip-path:polygon(0 0,100% var(--sbb-panel-triangle-height),100% calc(100% - var(--sbb-panel-triangle-height)),0% 100%);background-color:var(--sbb-panel-background-color);transition:background var(--sbb-panel-animation-duration) var(--sbb-panel-animation-easing)}@media(any-hover:hover){.sbb-teaser-hero__panel:hover{--sbb-panel-background-color: var(--sbb-panel-background-color-hover)}}.sbb-teaser-hero__panel{position:absolute;top:50%;transform:translateY(-50%)}:host(:not(:is(:state(slotted),[state--slotted]),:is(:state(slotted-link-content),[state--slotted-link-content]),[link-content])) .sbb-teaser-hero__panel{display:none}.sbb-teaser-hero__panel-text{font-family:var(--sbb-typo-font-family);font-size:var(--sbb-panel-font-size);font-weight:300;line-height:var(--sbb-panel-line-height);letter-spacing:var(--sbb-typo-letter-spacing-heading);color:var(--sbb-panel-color);-webkit-hyphens:auto;hyphens:auto;display:inline;margin:0;padding:0}:host(:not([href])) .sbb-teaser-hero__panel-link{display:none}", d = (() => {
|
|
9
|
-
let d = i, f, p = [], m = [];
|
|
10
|
-
return class extends d {
|
|
11
|
-
static {
|
|
12
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
|
|
13
|
-
f = [o(), r({
|
|
14
|
-
attribute: "link-content",
|
|
15
|
-
reflect: !0,
|
|
16
|
-
converter: s
|
|
17
|
-
})], e(this, null, f, {
|
|
18
|
-
kind: "accessor",
|
|
19
|
-
name: "linkContent",
|
|
20
|
-
static: !1,
|
|
21
|
-
private: !1,
|
|
22
|
-
access: {
|
|
23
|
-
has: (e) => "linkContent" in e,
|
|
24
|
-
get: (e) => e.linkContent,
|
|
25
|
-
set: (e, t) => {
|
|
26
|
-
e.linkContent = t;
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
metadata: t
|
|
30
|
-
}, p, m), t && Object.defineProperty(this, Symbol.metadata, {
|
|
31
|
-
enumerable: !0,
|
|
32
|
-
configurable: !0,
|
|
33
|
-
writable: !0,
|
|
34
|
-
value: t
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
static {
|
|
38
|
-
this.elementName = "sbb-teaser-hero";
|
|
39
|
-
}
|
|
40
|
-
static {
|
|
41
|
-
this.elementDependencies = [l];
|
|
42
|
-
}
|
|
43
|
-
static {
|
|
44
|
-
this.styles = [a, n(u)];
|
|
45
|
-
}
|
|
46
|
-
#e = t(this, p, "");
|
|
47
|
-
get linkContent() {
|
|
48
|
-
return this.#e;
|
|
49
|
-
}
|
|
50
|
-
set linkContent(e) {
|
|
51
|
-
this.#e = e;
|
|
52
|
-
}
|
|
53
|
-
_imageSlotChanged() {
|
|
54
|
-
Array.from(this.querySelectorAll("sbb-chip-label")).forEach((e) => e.color = "charcoal");
|
|
55
|
-
}
|
|
56
|
-
renderTemplate() {
|
|
57
|
-
return c`
|
|
58
|
-
<span class="sbb-teaser-hero__panel">
|
|
59
|
-
<p class="sbb-teaser-hero__panel-text">
|
|
60
|
-
<slot></slot>
|
|
61
|
-
</p>
|
|
62
|
-
<sbb-block-link-static
|
|
63
|
-
class="sbb-teaser-hero__panel-link"
|
|
64
|
-
icon-name="chevron-small-right-small"
|
|
65
|
-
icon-placement="end"
|
|
66
|
-
size="m"
|
|
67
|
-
negative
|
|
68
|
-
>
|
|
69
|
-
<slot name="link-content">${this.linkContent}</slot>
|
|
70
|
-
</sbb-block-link-static>
|
|
71
|
-
</span>
|
|
72
|
-
<slot name="image" @slotchange=${this._imageSlotChanged}></slot>
|
|
73
|
-
`;
|
|
74
|
-
}
|
|
75
|
-
constructor() {
|
|
76
|
-
super(...arguments), t(this, m);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
})();
|
|
80
|
-
//#endregion
|
|
81
|
-
export { d as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{timetable-form-field.component-LuzgeDdh.js → timetable-form-field.component-DrQuTOJr.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{timetable-occupancy.component-BbHtiw_F.js → timetable-occupancy.component-CLpJ-rjI.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{train-blocked-passage.component-EET0Kobk.js → train-blocked-passage.component-DIh8dbU9.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|