@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776760633 → 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.
Files changed (175) hide show
  1. package/core/styles/core.scss +6 -0
  2. package/core/styles/mixins/panel.scss +5 -1
  3. package/core.css +21 -0
  4. package/custom-elements.json +664 -325
  5. package/development/teaser/teaser.component.js +1 -1
  6. package/development/teaser-hero/teaser-hero.component.d.ts.map +1 -1
  7. package/development/teaser-hero/teaser-hero.component.js +1 -1
  8. package/development/teaser-hero.component-De621iKn.js +100 -0
  9. package/development/teaser-hero.js +1 -1
  10. package/development/teaser-hero.pure.js +1 -1
  11. package/development/teaser-panel/teaser-panel.component.d.ts +19 -0
  12. package/development/teaser-panel/teaser-panel.component.d.ts.map +1 -0
  13. package/development/teaser-panel/teaser-panel.component.js +2 -0
  14. package/development/teaser-panel.component-Dhka2dPT.js +32 -0
  15. package/development/teaser-panel.d.ts +2 -0
  16. package/development/teaser-panel.d.ts.map +1 -0
  17. package/development/teaser-panel.js +9 -0
  18. package/development/teaser-panel.pure.d.ts +3 -0
  19. package/development/teaser-panel.pure.d.ts.map +1 -0
  20. package/development/teaser-panel.pure.js +2 -0
  21. package/development/teaser-product/common/teaser-product-common.js +1 -1
  22. package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
  23. package/development/{teaser-product-common-DhbAGnQN.js → teaser-product-common-DasV_SDa.js} +1 -1
  24. package/development/{teaser-product.component-C3PZbA5W.js → teaser-product.component-CB6fOX7T.js} +1 -1
  25. package/development/teaser-product.js +2 -2
  26. package/development/teaser-product.pure.js +2 -2
  27. package/development/{teaser.component-BJso_6lz.js → teaser.component-DwM26tMt.js} +1 -1
  28. package/development/teaser.js +1 -1
  29. package/development/teaser.pure.js +1 -1
  30. package/development/time-input/time-input.component.js +1 -1
  31. package/development/{time-input.component-BWMBV6fm.js → time-input.component-x-QOtbwE.js} +1 -1
  32. package/development/time-input.js +1 -1
  33. package/development/time-input.pure.js +1 -1
  34. package/development/timetable-form/timetable-form/timetable-form.component.js +1 -1
  35. package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
  36. package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
  37. package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
  38. package/development/{timetable-form-details.component-C8EdT4rZ.js → timetable-form-details.component-B7mwIQoz.js} +1 -1
  39. package/development/{timetable-form-field.component-CoANLGWk.js → timetable-form-field.component-BIpoMaJW.js} +1 -1
  40. package/development/{timetable-form-swap-button.component-_EUhzoww.js → timetable-form-swap-button.component-DM7UFhGh.js} +1 -1
  41. package/development/{timetable-form.component-DLjBbFRv.js → timetable-form.component-BBkeono7.js} +1 -1
  42. package/development/timetable-form.js +4 -4
  43. package/development/timetable-form.pure.js +4 -4
  44. package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
  45. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
  46. package/development/{timetable-occupancy-icon.component-DXFUx67a.js → timetable-occupancy-icon.component-CRayfWIo.js} +1 -1
  47. package/development/timetable-occupancy-icon.js +1 -1
  48. package/development/timetable-occupancy-icon.pure.js +1 -1
  49. package/development/{timetable-occupancy.component-By7X3Sj2.js → timetable-occupancy.component-D6BIvkpY.js} +1 -1
  50. package/development/timetable-occupancy.js +1 -1
  51. package/development/timetable-occupancy.pure.js +1 -1
  52. package/development/title/title-base.js +1 -1
  53. package/development/title/title.component.js +1 -1
  54. package/development/{title-base-Bc3biGfy.js → title-base-CWLTIRh_.js} +1 -1
  55. package/development/{title.component-B7rIqG0N.js → title.component-TCKohHBO.js} +2 -2
  56. package/development/title.js +2 -2
  57. package/development/title.pure.js +2 -2
  58. package/development/toast/toast.component.js +1 -1
  59. package/development/{toast.component-lPPTFudM.js → toast.component-CZL72aVO.js} +1 -1
  60. package/development/toast.js +1 -1
  61. package/development/toast.pure.js +1 -1
  62. package/development/toggle/toggle/toggle.component.js +1 -1
  63. package/development/toggle/toggle-option/toggle-option.component.js +1 -1
  64. package/development/toggle-check/toggle-check.component.js +1 -1
  65. package/development/{toggle-check.component-CuODx4cx.js → toggle-check.component-BPcuOvOu.js} +1 -1
  66. package/development/toggle-check.js +1 -1
  67. package/development/toggle-check.pure.js +1 -1
  68. package/development/{toggle-option.component-DscH6K3b.js → toggle-option.component-DRAJ11fp.js} +1 -1
  69. package/development/{toggle.component-Dap1d4rK.js → toggle.component-BeHHTgRh.js} +1 -1
  70. package/development/toggle.js +2 -2
  71. package/development/toggle.pure.js +2 -2
  72. package/development/tooltip/tooltip.component.js +1 -1
  73. package/development/{tooltip.component-lvElko6C.js → tooltip.component-BV0yBh9f.js} +1 -1
  74. package/development/tooltip.js +1 -1
  75. package/development/tooltip.pure.js +1 -1
  76. package/development/train/train/train.component.js +1 -1
  77. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  78. package/development/train/train-formation/train-formation.component.js +1 -1
  79. package/development/train/train-wagon/train-wagon.component.js +1 -1
  80. package/development/{train-blocked-passage.component-C6XmqBo_.js → train-blocked-passage.component-Bh2dR1gn.js} +1 -1
  81. package/development/{train-formation.component-BoQcwy6n.js → train-formation.component-Dm0t9N_h.js} +1 -1
  82. package/development/{train-wagon.component-zQVbqhIL.js → train-wagon.component-X0XSMLK_.js} +1 -1
  83. package/development/{train.component-D5Z4vgej.js → train.component-BvbNBkZF.js} +1 -1
  84. package/development/train.js +4 -4
  85. package/development/train.pure.js +4 -4
  86. package/development/visual-checkbox/visual-checkbox.component.js +1 -1
  87. package/development/{visual-checkbox.component-jRksxrOu.js → visual-checkbox.component-DJ30EugM.js} +1 -1
  88. package/development/visual-checkbox.js +1 -1
  89. package/development/visual-checkbox.pure.js +1 -1
  90. package/index.d.ts +2 -0
  91. package/index.js +2 -0
  92. package/off-brand-theme.css +21 -0
  93. package/package.json +12 -2
  94. package/safety-theme.css +21 -0
  95. package/standard-theme.css +21 -0
  96. package/teaser/teaser.component.js +1 -1
  97. package/teaser-hero/teaser-hero.component.js +1 -1
  98. package/teaser-hero.component-BUhWjc2i.js +80 -0
  99. package/teaser-hero.js +1 -1
  100. package/teaser-hero.pure.js +1 -1
  101. package/teaser-panel/teaser-panel.component.js +2 -0
  102. package/teaser-panel.component-zejDYKkU.js +21 -0
  103. package/teaser-panel.js +6 -0
  104. package/teaser-panel.pure.js +2 -0
  105. package/teaser-product/common/teaser-product-common.js +1 -1
  106. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  107. package/teaser-product.js +2 -2
  108. package/teaser-product.pure.js +2 -2
  109. package/teaser.js +1 -1
  110. package/teaser.pure.js +1 -1
  111. package/time-input/time-input.component.js +1 -1
  112. package/time-input.js +1 -1
  113. package/time-input.pure.js +1 -1
  114. package/timetable-form/timetable-form/timetable-form.component.js +1 -1
  115. package/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
  116. package/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
  117. package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
  118. package/timetable-form.js +4 -4
  119. package/timetable-form.pure.js +4 -4
  120. package/timetable-occupancy/timetable-occupancy.component.js +1 -1
  121. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
  122. package/timetable-occupancy-icon.js +1 -1
  123. package/timetable-occupancy-icon.pure.js +1 -1
  124. package/timetable-occupancy.js +1 -1
  125. package/timetable-occupancy.pure.js +1 -1
  126. package/title/title-base.js +1 -1
  127. package/title/title.component.js +1 -1
  128. package/{title.component-7zqQqbRJ.js → title.component-CjDkG7gT.js} +1 -1
  129. package/title.js +2 -2
  130. package/title.pure.js +2 -2
  131. package/toast/toast.component.js +1 -1
  132. package/toast.js +1 -1
  133. package/toast.pure.js +1 -1
  134. package/toggle/toggle/toggle.component.js +1 -1
  135. package/toggle/toggle-option/toggle-option.component.js +1 -1
  136. package/toggle-check/toggle-check.component.js +1 -1
  137. package/toggle-check.js +1 -1
  138. package/toggle-check.pure.js +1 -1
  139. package/toggle.js +2 -2
  140. package/toggle.pure.js +2 -2
  141. package/tooltip/tooltip.component.js +1 -1
  142. package/tooltip.js +1 -1
  143. package/tooltip.pure.js +1 -1
  144. package/train/train/train.component.js +1 -1
  145. package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  146. package/train/train-formation/train-formation.component.js +1 -1
  147. package/train/train-wagon/train-wagon.component.js +1 -1
  148. package/train.js +4 -4
  149. package/train.pure.js +4 -4
  150. package/visual-checkbox/visual-checkbox.component.js +1 -1
  151. package/visual-checkbox.js +1 -1
  152. package/visual-checkbox.pure.js +1 -1
  153. package/development/teaser-hero.component-7KeR7bPf.js +0 -101
  154. package/teaser-hero.component-CLuVP2ba.js +0 -81
  155. /package/{teaser-product-common-B8NakRRV.js → teaser-product-common-Kz3ApcVE.js} +0 -0
  156. /package/{teaser-product.component-Dqapk40c.js → teaser-product.component-C7KoSqcP.js} +0 -0
  157. /package/{teaser.component-BaxumXCl.js → teaser.component-Bl_Myx2h.js} +0 -0
  158. /package/{time-input.component-N0DexLd9.js → time-input.component-BVoO7JLV.js} +0 -0
  159. /package/{timetable-form-details.component-CIY5ZAQJ.js → timetable-form-details.component-BQmF3WLu.js} +0 -0
  160. /package/{timetable-form-field.component-LuzgeDdh.js → timetable-form-field.component-DrQuTOJr.js} +0 -0
  161. /package/{timetable-form-swap-button.component-BT36u2L9.js → timetable-form-swap-button.component-C9dU9vDV.js} +0 -0
  162. /package/{timetable-form.component-YNDnJnkX.js → timetable-form.component-AbZF15Tg.js} +0 -0
  163. /package/{timetable-occupancy-icon.component-DPNwMhLs.js → timetable-occupancy-icon.component-B6pF-j0D.js} +0 -0
  164. /package/{timetable-occupancy.component-BbHtiw_F.js → timetable-occupancy.component-CLpJ-rjI.js} +0 -0
  165. /package/{title-base-Cbe4eNS1.js → title-base-HD0z6npS.js} +0 -0
  166. /package/{toast.component-ccBpQmCC.js → toast.component-DzsaWxPV.js} +0 -0
  167. /package/{toggle-check.component-DkOBgRQM.js → toggle-check.component-CnZBajpA.js} +0 -0
  168. /package/{toggle-option.component-BiyjKQB1.js → toggle-option.component-DeePQ-NW.js} +0 -0
  169. /package/{toggle.component-CVbRdQDM.js → toggle.component-D7X0E_hM.js} +0 -0
  170. /package/{tooltip.component-Do4V1jGd.js → tooltip.component-BCRFxBuV.js} +0 -0
  171. /package/{train-blocked-passage.component-EET0Kobk.js → train-blocked-passage.component-DIh8dbU9.js} +0 -0
  172. /package/{train-formation.component-B8IFJ_7b.js → train-formation.component-DS4EDwPY.js} +0 -0
  173. /package/{train-wagon.component-CLMLEf6I.js → train-wagon.component-CZiVPOaZ.js} +0 -0
  174. /package/{train.component-D_ysGCwu.js → train.component-DuFi_iBX.js} +0 -0
  175. /package/{visual-checkbox.component-CdqoYyEe.js → visual-checkbox.component-BsjmJgcn.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../toggle.component-CVbRdQDM.js";
1
+ import { t as e } from "../../toggle.component-D7X0E_hM.js";
2
2
  export { e as SbbToggleElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../toggle-option.component-BiyjKQB1.js";
1
+ import { t as e } from "../../toggle-option.component-DeePQ-NW.js";
2
2
  export { e as SbbToggleOptionElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../toggle-check.component-DkOBgRQM.js";
1
+ import { t as e } from "../toggle-check.component-CnZBajpA.js";
2
2
  export { e as SbbToggleCheckElement };
package/toggle-check.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./toggle-check.component-DkOBgRQM.js";
1
+ import { t as e } from "./toggle-check.component-CnZBajpA.js";
2
2
  import "./toggle-check.pure.js";
3
3
  //#region src/elements/toggle-check.ts
4
4
  e.define();
@@ -1,2 +1,2 @@
1
- import { t as e } from "./toggle-check.component-DkOBgRQM.js";
1
+ import { t as e } from "./toggle-check.component-CnZBajpA.js";
2
2
  export { e as SbbToggleCheckElement };
package/toggle.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./toggle-option.component-BiyjKQB1.js";
2
- import { t } from "./toggle.component-CVbRdQDM.js";
1
+ import { t as e } from "./toggle-option.component-DeePQ-NW.js";
2
+ import { t } from "./toggle.component-D7X0E_hM.js";
3
3
  import "./toggle.pure.js";
4
4
  t.define(), e.define();
5
5
  //#endregion
package/toggle.pure.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as e } from "./toggle-option.component-BiyjKQB1.js";
2
- import { t } from "./toggle.component-CVbRdQDM.js";
1
+ import { t as e } from "./toggle-option.component-DeePQ-NW.js";
2
+ import { t } from "./toggle.component-D7X0E_hM.js";
3
3
  export { t as SbbToggleElement, e as SbbToggleOptionElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../tooltip.component-Do4V1jGd.js";
1
+ import { t as e } from "../tooltip.component-BCRFxBuV.js";
2
2
  export { e as SbbTooltipElement };
package/tooltip.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./tooltip.component-Do4V1jGd.js";
1
+ import { t as e } from "./tooltip.component-BCRFxBuV.js";
2
2
  import "./tooltip.pure.js";
3
3
  //#region src/elements/tooltip.ts
4
4
  e.define();
package/tooltip.pure.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./tooltip.component-Do4V1jGd.js";
1
+ import { t as e } from "./tooltip.component-BCRFxBuV.js";
2
2
  export { e as SbbTooltipElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../train.component-D_ysGCwu.js";
1
+ import { t as e } from "../../train.component-DuFi_iBX.js";
2
2
  export { e as SbbTrainElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../train-blocked-passage.component-EET0Kobk.js";
1
+ import { t as e } from "../../train-blocked-passage.component-DIh8dbU9.js";
2
2
  export { e as SbbTrainBlockedPassageElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../train-formation.component-B8IFJ_7b.js";
1
+ import { t as e } from "../../train-formation.component-DS4EDwPY.js";
2
2
  export { e as SbbTrainFormationElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../train-wagon.component-CLMLEf6I.js";
1
+ import { t as e } from "../../train-wagon.component-CZiVPOaZ.js";
2
2
  export { e as SbbTrainWagonElement };
package/train.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as e } from "./train-blocked-passage.component-EET0Kobk.js";
2
- import { t } from "./train-formation.component-B8IFJ_7b.js";
3
- import { t as n } from "./train-wagon.component-CLMLEf6I.js";
4
- import { t as r } from "./train.component-D_ysGCwu.js";
1
+ import { t as e } from "./train-blocked-passage.component-DIh8dbU9.js";
2
+ import { t } from "./train-formation.component-DS4EDwPY.js";
3
+ import { t as n } from "./train-wagon.component-CZiVPOaZ.js";
4
+ import { t as r } from "./train.component-DuFi_iBX.js";
5
5
  import "./train.pure.js";
6
6
  r.define(), e.define(), t.define(), n.define();
7
7
  //#endregion
package/train.pure.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./train-blocked-passage.component-EET0Kobk.js";
2
- import { t } from "./train-formation.component-B8IFJ_7b.js";
3
- import { t as n } from "./train-wagon.component-CLMLEf6I.js";
4
- import { t as r } from "./train.component-D_ysGCwu.js";
1
+ import { t as e } from "./train-blocked-passage.component-DIh8dbU9.js";
2
+ import { t } from "./train-formation.component-DS4EDwPY.js";
3
+ import { t as n } from "./train-wagon.component-CZiVPOaZ.js";
4
+ import { t as r } from "./train.component-DuFi_iBX.js";
5
5
  export { e as SbbTrainBlockedPassageElement, r as SbbTrainElement, t as SbbTrainFormationElement, n as SbbTrainWagonElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../visual-checkbox.component-CdqoYyEe.js";
1
+ import { t as e } from "../visual-checkbox.component-BsjmJgcn.js";
2
2
  export { e as SbbVisualCheckboxElement };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./visual-checkbox.component-CdqoYyEe.js";
1
+ import { t as e } from "./visual-checkbox.component-BsjmJgcn.js";
2
2
  import "./visual-checkbox.pure.js";
3
3
  //#region src/elements/visual-checkbox.ts
4
4
  e.define();
@@ -1,2 +1,2 @@
1
- import { t as e } from "./visual-checkbox.component-CdqoYyEe.js";
1
+ import { t as e } from "./visual-checkbox.component-BsjmJgcn.js";
2
2
  export { e as SbbVisualCheckboxElement };
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVhc2VyLWhlcm8uY29tcG9uZW50LTdLZVI3YlBmLmpzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9lbGVtZW50cy90ZWFzZXItaGVyby90ZWFzZXItaGVyby5zY3NzP2lubGluZSIsIi4uLy4uLy4uL3NyYy9lbGVtZW50cy90ZWFzZXItaGVyby90ZWFzZXItaGVyby5jb21wb25lbnQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiQHVzZSAnLi4vY29yZS9zdHlsZXMnIGFzIHNiYjtcblxuOmhvc3Qge1xuICBkaXNwbGF5OiBibG9jaztcblxuICAvLyBVc2UgIWltcG9ydGFudCBoZXJlIHRvIG5vdCBpbnRlcmZlcmUgd2l0aCBGaXJlZm94IGZvY3VzIHJpbmcgZGVmaW5pdGlvblxuICAvLyB3aGljaCBhcHBlYXJzIGluIG5vcm1hbGl6ZSBDU1Mgb2Ygc2V2ZXJhbCBmcmFtZXdvcmtzLlxuICBvdXRsaW5lOiBub25lICFpbXBvcnRhbnQ7XG5cbiAgQGluY2x1ZGUgc2JiLnBhbmVsLXZhcmlhYmxlcztcbn1cblxuQGluY2x1ZGUgc2JiLmhvdmVyLW1xKCRob3ZlcjogdHJ1ZSkge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BO0FBQ3RGLGdCQUFBLE1BQUEsTUFBQSx5QkFBQTtJQUFBLE1BQUE7SUFBQSxNQUFBO0lBQUEsUUFBQTtJQUFBLFNBQUE7SUFBQSxRQUFBO0tBQUEsTUFBQSxRQUFBLGlCQUFBO0tBQUEsTUFBQSxRQUFBLElBQWdCO0tBQVcsTUFBQSxLQUFBLFVBQUE7QUFBQSxVQUFYLGNBQVc7O0tBQUE7SUFBQSxVQUFBO0lBQUEsRUFBQSwyQkFBQSwrQkFBQTs7Ozs7Ozs7O0FBUEssUUFBQSxjQUFzQjs7O0FBQy9CLFFBQUEsc0JBQXdDLENBQUMsMEJBQTBCOzs7QUFDbkUsUUFBQSxTQUF5QixDQUFDLGlCQUFpQixVQUFVLG9CQUFNLENBQUM7O0VBS25GLGdDQUFBLGtCQUFBLE1BQUEsMkJBQXNDLEdBQUU7O0VBQXhDLElBQWdCLGNBQVc7QUFBQSxVQUFBLE1BQUE7O0VBQTNCLElBQWdCLFlBQVcsT0FBQTtBQUFBLFNBQUEsK0JBQUE7O0VBRW5CLG9CQUFpQjtBQUN2QixTQUFNLEtBQUssS0FBSyxpQkFBaUIsaUJBQWlCLENBQUMsQ0FBQyxTQUFTLE1BQU8sRUFBRSxRQUFRLFdBQVk7O0VBR3pFLGlCQUFjO0FBQy9CLFVBQU8sTUFBSTs7Ozs7Ozs7Ozs7O3NDQVl1QixLQUFLLFlBQVc7Ozt1Q0FHZixLQUFLLGtCQUFpQiJ9
@@ -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 };