@sbb-esta/lyne-elements-experimental-dev 5.0.0-next.1-dev.1777896783 → 5.0.0-next.1-dev.1777898769

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 (126) hide show
  1. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +18 -18
  2. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  3. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  4. package/{autocomplete-grid-cell.component-BFzREPWp.js → autocomplete-grid-cell.component-DAsWZlTn.js} +6 -6
  5. package/{autocomplete-grid-row.component-BQxCxOI6.js → autocomplete-grid-row.component-VbyYP0U-.js} +7 -7
  6. package/autocomplete-grid.js +2 -2
  7. package/autocomplete-grid.pure.js +2 -2
  8. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  9. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -3
  10. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
  11. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  12. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
  13. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  14. package/development/autocomplete-grid-cell.component-BF8i4388.js +33 -0
  15. package/development/{autocomplete-grid-row.component-CY4UDuuj.js → autocomplete-grid-row.component-CBHh50jC.js} +3 -3
  16. package/development/autocomplete-grid.js +2 -2
  17. package/development/autocomplete-grid.pure.js +2 -2
  18. package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
  19. package/development/journey-summary/journey-summary.component.js +1 -1
  20. package/development/journey-summary.component-De1ioDRq.js +341 -0
  21. package/development/journey-summary.js +1 -1
  22. package/development/journey-summary.pure.js +1 -1
  23. package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
  24. package/development/pearl-chain/pearl-chain.component.js +1 -1
  25. package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
  26. package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
  27. package/development/{pearl-chain-time.component-f2y8Jebp.js → pearl-chain-time.component-BxVQ1z-Z.js} +3 -7
  28. package/development/pearl-chain-time.js +1 -1
  29. package/development/pearl-chain-time.pure.js +1 -1
  30. package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
  31. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  32. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
  33. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  34. package/development/{pearl-chain-vertical-item.component-DHsk3J8I.js → pearl-chain-vertical-item.component-DJioJtxP.js} +3 -3
  35. package/development/pearl-chain-vertical-item.js +1 -1
  36. package/development/pearl-chain-vertical-item.pure.js +1 -1
  37. package/development/pearl-chain-vertical.component-zSOeIkhh.js +30 -0
  38. package/development/pearl-chain-vertical.js +1 -1
  39. package/development/pearl-chain-vertical.pure.js +1 -1
  40. package/development/{pearl-chain.component-bTvnaUEj.js → pearl-chain.component-B83OsEx8.js} +3 -7
  41. package/development/pearl-chain.js +1 -1
  42. package/development/pearl-chain.pure.js +1 -1
  43. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  44. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  45. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
  46. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  47. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
  48. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  49. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  50. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
  51. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
  52. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  53. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  54. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
  55. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
  56. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  57. package/development/{seat-reservation-area.component-DlH14rY-.js → seat-reservation-area.component-CMqjbUtV.js} +3 -3
  58. package/development/{seat-reservation-graphic.component-B771YtOf.js → seat-reservation-graphic.component-C2r57590.js} +3 -3
  59. package/development/{seat-reservation-navigation-coach.component-CnA9MEBr.js → seat-reservation-navigation-coach.component-BwLbiHCG.js} +3 -7
  60. package/development/{seat-reservation-navigation-services.component-CLho6RnU.js → seat-reservation-navigation-services.component-Do8JLJh3.js} +3 -7
  61. package/development/{seat-reservation-place-control.component-BEeaDOS6.js → seat-reservation-place-control.component-BfuOGZYq.js} +3 -7
  62. package/development/{seat-reservation-scoped.component-X-Kq0-w5.js → seat-reservation-scoped.component-D-Mvw-Q3.js} +3 -3
  63. package/development/seat-reservation.component-B2nJ13F1.js +472 -0
  64. package/development/seat-reservation.js +7 -7
  65. package/development/seat-reservation.pure.js +7 -7
  66. package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
  67. package/development/timetable-duration/timetable-duration.component.js +1 -1
  68. package/development/timetable-duration.component-fBla8Kue.js +96 -0
  69. package/development/timetable-duration.js +1 -1
  70. package/development/timetable-duration.pure.js +1 -1
  71. package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
  72. package/development/timetable-row/timetable-row.component.js +1 -1
  73. package/development/timetable-row.component-C9Y9Rev1.js +732 -0
  74. package/development/timetable-row.js +1 -1
  75. package/development/timetable-row.pure.js +1 -1
  76. package/journey-summary/journey-summary.component.js +1 -1
  77. package/{journey-summary.component-DZ9M06Nt.js → journey-summary.component-CkDRawn9.js} +50 -54
  78. package/journey-summary.js +1 -1
  79. package/journey-summary.pure.js +1 -1
  80. package/package.json +2 -2
  81. package/pearl-chain/pearl-chain.component.js +1 -1
  82. package/pearl-chain-time/pearl-chain-time.component.js +1 -1
  83. package/{pearl-chain-time.component-DGilJDFx.js → pearl-chain-time.component-D5OCEBJ_.js} +39 -43
  84. package/pearl-chain-time.js +1 -1
  85. package/pearl-chain-time.pure.js +1 -1
  86. package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  87. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  88. package/{pearl-chain-vertical-item.component-CO6HUZFL.js → pearl-chain-vertical-item.component-IdquCJMy.js} +28 -28
  89. package/pearl-chain-vertical-item.js +1 -1
  90. package/pearl-chain-vertical-item.pure.js +1 -1
  91. package/{pearl-chain-vertical.component-Lx47SlJU.js → pearl-chain-vertical.component-CDOWaup3.js} +6 -6
  92. package/pearl-chain-vertical.js +1 -1
  93. package/pearl-chain-vertical.pure.js +1 -1
  94. package/{pearl-chain.component-D7Dz_ruc.js → pearl-chain.component-C6lcD7Xl.js} +37 -41
  95. package/pearl-chain.js +1 -1
  96. package/pearl-chain.pure.js +1 -1
  97. package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  98. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  99. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  100. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
  101. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  102. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
  103. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  104. package/{seat-reservation-area.component-B_T7k-dq.js → seat-reservation-area.component-BcmwKJSK.js} +16 -16
  105. package/{seat-reservation-graphic.component-BNtFgIVM.js → seat-reservation-graphic.component-C3wc4DKr.js} +26 -26
  106. package/{seat-reservation-navigation-coach.component-BF2dTeIb.js → seat-reservation-navigation-coach.component-D1SgS8BU.js} +49 -53
  107. package/{seat-reservation-navigation-services.component-BSeCIGnn.js → seat-reservation-navigation-services.component-CfAQa7pa.js} +26 -30
  108. package/{seat-reservation-place-control.component-DOEKL6FP.js → seat-reservation-place-control.component-DrzEDW8Z.js} +41 -45
  109. package/{seat-reservation-scoped.component-CdB7HYzl.js → seat-reservation-scoped.component-BohQUGVW.js} +6 -6
  110. package/{seat-reservation.component-SoXTIEnc.js → seat-reservation.component-CB2IWgM9.js} +76 -77
  111. package/seat-reservation.js +7 -7
  112. package/seat-reservation.pure.js +7 -7
  113. package/timetable-duration/timetable-duration.component.js +1 -1
  114. package/{timetable-duration.component-B2Wq8dP0.js → timetable-duration.component-DPRcG1LP.js} +14 -18
  115. package/timetable-duration.js +1 -1
  116. package/timetable-duration.pure.js +1 -1
  117. package/timetable-row/timetable-row.component.js +1 -1
  118. package/{timetable-row.component-BPH5pFQO.js → timetable-row.component-BqIVlISS.js} +113 -117
  119. package/timetable-row.js +1 -1
  120. package/timetable-row.pure.js +1 -1
  121. package/development/autocomplete-grid-cell.component-Buvsof-Y.js +0 -33
  122. package/development/journey-summary.component-Ch38LiQx.js +0 -345
  123. package/development/pearl-chain-vertical.component-Cmc3QXgd.js +0 -30
  124. package/development/seat-reservation.component-BtAwrvVE.js +0 -473
  125. package/development/timetable-duration.component-BhIBA6le.js +0 -100
  126. package/development/timetable-row.component-BjaJFKLW.js +0 -736
@@ -1,4 +1,4 @@
1
- import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-BjaJFKLW.js";
1
+ import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-C9Y9Rev1.js";
2
2
  import "./timetable-row.pure.js";
3
3
  //#region src/elements-experimental/timetable-row.ts
4
4
  /** @entrypoint */
@@ -1,2 +1,2 @@
1
- import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-BjaJFKLW.js";
1
+ import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-C9Y9Rev1.js";
2
2
  export { SbbTimetableRowElement, filterNotices, getCus, getHimIcon, handleNotices, renderIconProduct, renderStringProduct, sortSituation };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../journey-summary.component-DZ9M06Nt.js";
1
+ import { t as e } from "../journey-summary.component-CkDRawn9.js";
2
2
  export { e as SbbJourneySummaryElement };
@@ -1,35 +1,35 @@
1
1
  import { t as e } from "./format-DbUuNYFU.js";
2
2
  import { t } from "./isValid-B9oVW3lA.js";
3
3
  import { __esDecorate as n, __runInitializers as r } from "tslib";
4
- import { SbbElement as i, SbbLanguageController as a, boxSizingStyles as o, defaultDateAdapter as s, forceType as c, i18nTripDuration as l, screenReaderOnlyStyles as u } from "@sbb-esta/lyne-elements/core.js";
5
- import { html as d, nothing as f, unsafeCSS as p } from "lit";
6
- import { SbbDividerElement as m } from "@sbb-esta/lyne-elements/divider.pure.js";
7
- import { SbbJourneyHeaderElement as h } from "@sbb-esta/lyne-elements/journey-header.pure.js";
8
- import { property as g } from "lit/decorators.js";
9
- import { durationToTime as _, removeTimezoneFromISOTimeString as v } from "./core.js";
10
- import { SbbPearlChainTimeElement as y } from "./pearl-chain-time.pure.js";
4
+ import { SbbElement as i, SbbLanguageController as a, defaultDateAdapter as o, forceType as s, i18nTripDuration as c, screenReaderOnlyStyles as l } from "@sbb-esta/lyne-elements/core.js";
5
+ import { html as u, nothing as d, unsafeCSS as f } from "lit";
6
+ import { SbbDividerElement as p } from "@sbb-esta/lyne-elements/divider.pure.js";
7
+ import { SbbJourneyHeaderElement as m } from "@sbb-esta/lyne-elements/journey-header.pure.js";
8
+ import { property as h } from "lit/decorators.js";
9
+ import { durationToTime as g, removeTimezoneFromISOTimeString as _ } from "./core.js";
10
+ import { SbbPearlChainTimeElement as v } from "./pearl-chain-time.pure.js";
11
11
  //#region src/elements-experimental/journey-summary/journey-summary.scss?inline
12
- var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-color-4);display:flex;flex-direction:column}.sbb-journey-summary__via-block{display:flex}.sbb-journey-summary__vias{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-block:0;padding-inline-start:var(--sbb-spacing-fixed-1x)}.sbb-journey-summary__date{margin-block-end:var(--sbb-spacing-fixed-2x)}.sbb-journey-summary__via{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sbb-journey-summary__divider{margin-block:var(--sbb-spacing-fixed-6x)}ul li{list-style:none;display:inline}", x = (() => {
13
- let x = i, S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V;
14
- return class extends x {
12
+ var y = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-color-4);display:flex;flex-direction:column}.sbb-journey-summary__via-block{display:flex}.sbb-journey-summary__vias{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-block:0;padding-inline-start:var(--sbb-spacing-fixed-1x)}.sbb-journey-summary__date{margin-block-end:var(--sbb-spacing-fixed-2x)}.sbb-journey-summary__via{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sbb-journey-summary__divider{margin-block:var(--sbb-spacing-fixed-6x)}ul li{list-style:none;display:inline}", b = (() => {
13
+ let b = i, x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, M = [], N = [], P, F = [], I = [], L, R = [], z = [], B;
14
+ return class extends b {
15
15
  constructor() {
16
- super(...arguments), this.#e = (r(this, S), r(this, w, null)), this.#t = (r(this, T), r(this, D, null)), this.#n = (r(this, O), r(this, A, !1)), this.#r = (r(this, j), r(this, N, "3")), this.#i = (r(this, P), r(this, I, !1)), this.#a = (r(this, L), r(this, z, !1)), this._now = (r(this, B), null), this._hasContentSlot = !1, this._language = new a(this);
16
+ super(...arguments), this.#e = (r(this, x), r(this, C, null)), this.#t = (r(this, w), r(this, E, null)), this.#n = (r(this, D), r(this, k, !1)), this.#r = (r(this, A), r(this, M, "3")), this.#i = (r(this, N), r(this, F, !1)), this.#a = (r(this, I), r(this, R, !1)), this._now = (r(this, z), null), this._hasContentSlot = !1, this._language = new a(this);
17
17
  }
18
18
  static {
19
- let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
20
- C = [g({ type: Object })], E = [g({
19
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
20
+ S = [h({ type: Object })], T = [h({
21
21
  attribute: "trip-back",
22
22
  type: Object
23
- })], k = [c(), g({
23
+ })], O = [s(), h({
24
24
  attribute: "round-trip",
25
25
  type: Boolean
26
- })], M = [g({ attribute: "header-level" })], F = [c(), g({
26
+ })], j = [h({ attribute: "header-level" })], P = [s(), h({
27
27
  attribute: "disable-animation",
28
28
  type: Boolean
29
- })], R = [c(), g({
29
+ })], L = [s(), h({
30
30
  attribute: "a11y-footpath",
31
31
  type: Boolean
32
- })], V = [g()], n(this, null, C, {
32
+ })], B = [h()], n(this, null, S, {
33
33
  kind: "accessor",
34
34
  name: "trip",
35
35
  static: !1,
@@ -42,7 +42,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
42
42
  }
43
43
  },
44
44
  metadata: e
45
- }, w, T), n(this, null, E, {
45
+ }, C, w), n(this, null, T, {
46
46
  kind: "accessor",
47
47
  name: "tripBack",
48
48
  static: !1,
@@ -55,7 +55,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
55
55
  }
56
56
  },
57
57
  metadata: e
58
- }, D, O), n(this, null, k, {
58
+ }, E, D), n(this, null, O, {
59
59
  kind: "accessor",
60
60
  name: "roundTrip",
61
61
  static: !1,
@@ -68,7 +68,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
68
68
  }
69
69
  },
70
70
  metadata: e
71
- }, A, j), n(this, null, M, {
71
+ }, k, A), n(this, null, j, {
72
72
  kind: "accessor",
73
73
  name: "headerLevel",
74
74
  static: !1,
@@ -81,7 +81,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
81
81
  }
82
82
  },
83
83
  metadata: e
84
- }, N, P), n(this, null, F, {
84
+ }, M, N), n(this, null, P, {
85
85
  kind: "accessor",
86
86
  name: "disableAnimation",
87
87
  static: !1,
@@ -94,7 +94,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
94
94
  }
95
95
  },
96
96
  metadata: e
97
- }, I, L), n(this, null, R, {
97
+ }, F, I), n(this, null, L, {
98
98
  kind: "accessor",
99
99
  name: "a11yFootpath",
100
100
  static: !1,
@@ -107,7 +107,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
107
107
  }
108
108
  },
109
109
  metadata: e
110
- }, z, B), n(this, null, V, {
110
+ }, R, z), n(this, null, B, {
111
111
  kind: "setter",
112
112
  name: "now",
113
113
  static: !1,
@@ -119,7 +119,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
119
119
  }
120
120
  },
121
121
  metadata: e
122
- }, null, S), e && Object.defineProperty(this, Symbol.metadata, {
122
+ }, null, x), e && Object.defineProperty(this, Symbol.metadata, {
123
123
  enumerable: !0,
124
124
  configurable: !0,
125
125
  writable: !0,
@@ -131,17 +131,13 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
131
131
  }
132
132
  static {
133
133
  this.elementDependencies = [
134
+ p,
134
135
  m,
135
- h,
136
- y
136
+ v
137
137
  ];
138
138
  }
139
139
  static {
140
- this.styles = [
141
- o,
142
- u,
143
- p(b)
144
- ];
140
+ this.styles = [l, f(y)];
145
141
  }
146
142
  #e;
147
143
  get trip() {
@@ -186,7 +182,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
186
182
  this.#a = e;
187
183
  }
188
184
  set now(e) {
189
- this._now = s.getValidDateOrNull(s.deserialize(e));
185
+ this._now = o.getValidDateOrNull(o.deserialize(e));
190
186
  }
191
187
  get now() {
192
188
  return this._now ?? /* @__PURE__ */ new Date();
@@ -195,26 +191,26 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
195
191
  super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
196
192
  }
197
193
  _renderJourneyStart(n, r) {
198
- let i = s, a = r ? _(r, this._language.current) : null;
199
- if (t(n)) return d`
194
+ let i = o, a = r ? g(r, this._language.current) : null;
195
+ if (t(n)) return u`
200
196
  <time datetime=${e(n, "d") + " " + e(n, "M")}>
201
197
  ${i.format(n).replace(",", ".")}</time
202
- >${r && r > 0 ? d`,<time>
198
+ >${r && r > 0 ? u`,<time>
203
199
  <span class="sbb-screen-reader-only">
204
- ${l[this._language.current]} ${a.long}
200
+ ${c[this._language.current]} ${a.long}
205
201
  </span>
206
202
  <span aria-hidden="true">${a.short}</span>
207
- </time>` : f}
203
+ </time>` : d}
208
204
  `;
209
205
  }
210
206
  _renderJourneyVias(e) {
211
207
  let t = e.slice(0, 5);
212
- return d`
208
+ return u`
213
209
  <div class="sbb-journey-summary__via-block">
214
210
  <span class="sbb-journey-summary__via-text">Via</span>
215
- <ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : f}>
216
- ${t.map((e, n) => d`<li class="sbb-journey-summary__via">
217
- ${e}${n !== t.length - 1 && n < 4 ? d`<span>,</span>` : f}
211
+ <ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : d}>
212
+ ${t.map((e, n) => u`<li class="sbb-journey-summary__via">
213
+ ${e}${n !== t.length - 1 && n < 4 ? u`<span>,</span>` : d}
218
214
  </li>`)}
219
215
  </ul>
220
216
  </div>
@@ -222,11 +218,11 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
222
218
  }
223
219
  _renderJourneyInformation(e) {
224
220
  let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
225
- return d`
221
+ return u`
226
222
  <div>
227
- ${t && t.length > 0 ? this._renderJourneyVias(t) : f}
223
+ ${t && t.length > 0 ? this._renderJourneyVias(t) : d}
228
224
  <div class="sbb-journey-summary__date">
229
- ${this._renderJourneyStart(v(i), n)}
225
+ ${this._renderJourneyStart(_(i), n)}
230
226
  </div>
231
227
  <sbb-pearl-chain-time
232
228
  .arrivalTime=${o}
@@ -243,27 +239,27 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
243
239
  }
244
240
  render() {
245
241
  let { origin: e, destination: t } = this.trip || {};
246
- return d`
242
+ return u`
247
243
  <div class="sbb-journey-summary">
248
- ${e ? d`<sbb-journey-header
244
+ ${e ? u`<sbb-journey-header
249
245
  visual-level="4"
250
- .level=${this.headerLevel || f}
246
+ .level=${this.headerLevel || d}
251
247
  .origin=${e}
252
248
  .destination=${t}
253
- .roundTrip=${this.roundTrip ?? f}
254
- ></sbb-journey-header>` : f}
249
+ .roundTrip=${this.roundTrip ?? d}
250
+ ></sbb-journey-header>` : d}
255
251
  ${this._renderJourneyInformation(this.trip)}
256
- ${this.tripBack ? d`<div>
252
+ ${this.tripBack ? u`<div>
257
253
  <sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
258
254
  ${this._renderJourneyInformation(this.tripBack)}
259
- </div>` : f}
260
- ${this._hasContentSlot ? d` <div class="sbb-journey-summary__slot">
255
+ </div>` : d}
256
+ ${this._hasContentSlot ? u` <div class="sbb-journey-summary__slot">
261
257
  <slot name="content"></slot>
262
- </div>` : f}
258
+ </div>` : d}
263
259
  </div>
264
260
  `;
265
261
  }
266
262
  };
267
263
  })();
268
264
  //#endregion
269
- export { x as t };
265
+ export { b as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./journey-summary.component-DZ9M06Nt.js";
1
+ import { t as e } from "./journey-summary.component-CkDRawn9.js";
2
2
  import "./journey-summary.pure.js";
3
3
  //#region src/elements-experimental/journey-summary.ts
4
4
  e.define();
@@ -1,2 +1,2 @@
1
- import { t as e } from "./journey-summary.component-DZ9M06Nt.js";
1
+ import { t as e } from "./journey-summary.component-CkDRawn9.js";
2
2
  export { e as SbbJourneySummaryElement };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-experimental-dev",
3
- "version": "5.0.0-next.1-dev.1777896783",
3
+ "version": "5.0.0-next.1-dev.1777898769",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
7
7
  "web components",
8
8
  "lit",
9
9
  "storybook",
10
- "https://github.com/sbb-design-systems/lyne-components/commit/cfc34a34a7dbece89a27fc8e34e7d80c014a2aa0"
10
+ "https://github.com/sbb-design-systems/lyne-components/commit/599a638a45558cbdc9a36af31f704d771f7c1931"
11
11
  ],
12
12
  "type": "module",
13
13
  "exports": {
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain.component-D7Dz_ruc.js";
1
+ import { t as e } from "../pearl-chain.component-C6lcD7Xl.js";
2
2
  export { e as SbbPearlChainElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain-time.component-DGilJDFx.js";
1
+ import { t as e } from "../pearl-chain-time.component-D5OCEBJ_.js";
2
2
  export { e as SbbPearlChainTimeElement };
@@ -1,33 +1,33 @@
1
1
  import { t as e } from "./format-DbUuNYFU.js";
2
2
  import { __esDecorate as t, __runInitializers as n } from "tslib";
3
- import { SbbElement as r, SbbLanguageController as i, boxSizingStyles as a, defaultDateAdapter as o, forceType as s, i18nArrival as c, i18nDeparture as l, i18nTransferProcedures as u, screenReaderOnlyStyles as d } from "@sbb-esta/lyne-elements/core.js";
4
- import { SbbIconElement as f } from "@sbb-esta/lyne-elements/icon.pure.js";
5
- import { html as p, nothing as m, unsafeCSS as h } from "lit";
6
- import { property as g } from "lit/decorators.js";
7
- import { getDepartureArrivalTimeAttribute as _, isRideLeg as v, removeTimezoneFromISOTimeString as y } from "./core.js";
8
- import { SbbPearlChainElement as b } from "./pearl-chain.pure.js";
3
+ import { SbbElement as r, SbbLanguageController as i, defaultDateAdapter as a, forceType as o, i18nArrival as s, i18nDeparture as c, i18nTransferProcedures as l, screenReaderOnlyStyles as u } from "@sbb-esta/lyne-elements/core.js";
4
+ import { SbbIconElement as d } from "@sbb-esta/lyne-elements/icon.pure.js";
5
+ import { html as f, nothing as p, unsafeCSS as m } from "lit";
6
+ import { property as h } from "lit/decorators.js";
7
+ import { getDepartureArrivalTimeAttribute as g, isRideLeg as _, removeTimezoneFromISOTimeString as v } from "./core.js";
8
+ import { SbbPearlChainElement as y } from "./pearl-chain.pure.js";
9
9
  //#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
10
- var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-time{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700;color:var(--sbb-color-2)}", S = (() => {
11
- let S = r, C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H, U = [], W = [], G;
12
- return class extends S {
10
+ var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-time{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700;color:var(--sbb-color-2)}", x = (() => {
11
+ let x = r, S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V, H = [], U = [], W;
12
+ return class extends x {
13
13
  constructor() {
14
- super(...arguments), this.#e = (n(this, C), n(this, T, [])), this.#t = (n(this, E), n(this, O, "")), this.#n = (n(this, k), n(this, j, "")), this.#r = (n(this, M), n(this, P, NaN)), this.#i = (n(this, F), n(this, L, NaN)), this.#a = (n(this, R), n(this, B, !1)), this.#o = (n(this, V), n(this, U, !1)), this._now = (n(this, W), null), this._language = new i(this);
14
+ super(...arguments), this.#e = (n(this, S), n(this, w, [])), this.#t = (n(this, T), n(this, D, "")), this.#n = (n(this, O), n(this, A, "")), this.#r = (n(this, j), n(this, N, NaN)), this.#i = (n(this, P), n(this, I, NaN)), this.#a = (n(this, L), n(this, z, !1)), this.#o = (n(this, B), n(this, H, !1)), this._now = (n(this, U), null), this._language = new i(this);
15
15
  }
16
16
  static {
17
- let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(S[Symbol.metadata] ?? null) : void 0;
18
- w = [g({ type: Array })], D = [s(), g({ attribute: "departure-time" })], A = [s(), g({ attribute: "arrival-time" })], N = [s(), g({
17
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
18
+ C = [h({ type: Array })], E = [o(), h({ attribute: "departure-time" })], k = [o(), h({ attribute: "arrival-time" })], M = [o(), h({
19
19
  attribute: "departure-walk",
20
20
  type: Number
21
- })], I = [s(), g({
21
+ })], F = [o(), h({
22
22
  attribute: "arrival-walk",
23
23
  type: Number
24
- })], z = [s(), g({
24
+ })], R = [o(), h({
25
25
  attribute: "disable-animation",
26
26
  type: Boolean
27
- })], H = [s(), g({
27
+ })], V = [o(), h({
28
28
  attribute: "a11y-footpath",
29
29
  type: Boolean
30
- })], G = [g()], t(this, null, w, {
30
+ })], W = [h()], t(this, null, C, {
31
31
  kind: "accessor",
32
32
  name: "legs",
33
33
  static: !1,
@@ -40,7 +40,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
40
40
  }
41
41
  },
42
42
  metadata: e
43
- }, T, E), t(this, null, D, {
43
+ }, w, T), t(this, null, E, {
44
44
  kind: "accessor",
45
45
  name: "departureTime",
46
46
  static: !1,
@@ -53,7 +53,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
53
53
  }
54
54
  },
55
55
  metadata: e
56
- }, O, k), t(this, null, A, {
56
+ }, D, O), t(this, null, k, {
57
57
  kind: "accessor",
58
58
  name: "arrivalTime",
59
59
  static: !1,
@@ -66,7 +66,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
66
66
  }
67
67
  },
68
68
  metadata: e
69
- }, j, M), t(this, null, N, {
69
+ }, A, j), t(this, null, M, {
70
70
  kind: "accessor",
71
71
  name: "departureWalk",
72
72
  static: !1,
@@ -79,7 +79,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
79
79
  }
80
80
  },
81
81
  metadata: e
82
- }, P, F), t(this, null, I, {
82
+ }, N, P), t(this, null, F, {
83
83
  kind: "accessor",
84
84
  name: "arrivalWalk",
85
85
  static: !1,
@@ -92,7 +92,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
92
92
  }
93
93
  },
94
94
  metadata: e
95
- }, L, R), t(this, null, z, {
95
+ }, I, L), t(this, null, R, {
96
96
  kind: "accessor",
97
97
  name: "disableAnimation",
98
98
  static: !1,
@@ -105,7 +105,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
105
105
  }
106
106
  },
107
107
  metadata: e
108
- }, B, V), t(this, null, H, {
108
+ }, z, B), t(this, null, V, {
109
109
  kind: "accessor",
110
110
  name: "a11yFootpath",
111
111
  static: !1,
@@ -118,7 +118,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
118
118
  }
119
119
  },
120
120
  metadata: e
121
- }, U, W), t(this, null, G, {
121
+ }, H, U), t(this, null, W, {
122
122
  kind: "setter",
123
123
  name: "now",
124
124
  static: !1,
@@ -130,7 +130,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
130
130
  }
131
131
  },
132
132
  metadata: e
133
- }, null, C), e && Object.defineProperty(this, Symbol.metadata, {
133
+ }, null, S), e && Object.defineProperty(this, Symbol.metadata, {
134
134
  enumerable: !0,
135
135
  configurable: !0,
136
136
  writable: !0,
@@ -141,14 +141,10 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
141
141
  this.elementName = "sbb-pearl-chain-time";
142
142
  }
143
143
  static {
144
- this.elementDependencies = [f, b];
144
+ this.elementDependencies = [d, y];
145
145
  }
146
146
  static {
147
- this.styles = [
148
- a,
149
- d,
150
- h(x)
151
- ];
147
+ this.styles = [u, m(b)];
152
148
  }
153
149
  #e;
154
150
  get legs() {
@@ -200,37 +196,37 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
200
196
  this.#o = e;
201
197
  }
202
198
  set now(e) {
203
- this._now = o.getValidDateOrNull(o.deserialize(e));
199
+ this._now = a.getValidDateOrNull(a.deserialize(e));
204
200
  }
205
201
  get now() {
206
202
  return this._now ?? /* @__PURE__ */ new Date();
207
203
  }
208
204
  render() {
209
- let t = this.departureTime ? y(this.departureTime) : void 0, n = this.arrivalTime ? y(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: r, renderArrivalTimeAttribute: i } = _(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), a = this.legs?.filter((e) => v(e));
210
- return p`
205
+ let t = this.departureTime ? v(this.departureTime) : void 0, n = this.arrivalTime ? v(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: r, renderArrivalTimeAttribute: i } = g(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), a = this.legs?.filter((e) => _(e));
206
+ return f`
211
207
  <div class="sbb-pearl-chain__time">
212
208
  ${r()}
213
- ${t ? p`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
209
+ ${t ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
214
210
  <span class="sbb-screen-reader-only"
215
- >${l[this._language.current]}:&nbsp;</span
211
+ >${c[this._language.current]}:&nbsp;</span
216
212
  >
217
213
  ${e(t, "HH:mm")}
218
- </time>` : m}
219
- ${a?.length > 1 ? p`<span class="sbb-screen-reader-only" role="paragraph">
220
- ${a?.length - 1} ${u[this._language.current]}
221
- </span>` : m}
214
+ </time>` : p}
215
+ ${a?.length > 1 ? f`<span class="sbb-screen-reader-only" role="paragraph">
216
+ ${a?.length - 1} ${l[this._language.current]}
217
+ </span>` : p}
222
218
  <sbb-pearl-chain
223
219
  class="sbb-pearl-chain__time-chain"
224
220
  .legs=${this.legs}
225
221
  .disableAnimation=${this.disableAnimation}
226
222
  .now=${this.now}
227
223
  ></sbb-pearl-chain>
228
- ${n ? p`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
224
+ ${n ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
229
225
  <span class="sbb-screen-reader-only"
230
- >${c[this._language.current]}:&nbsp;</span
226
+ >${s[this._language.current]}:&nbsp;</span
231
227
  >
232
228
  ${e(n, "HH:mm")}
233
- </time>` : m}
229
+ </time>` : p}
234
230
  ${i()}
235
231
  </div>
236
232
  `;
@@ -238,4 +234,4 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
238
234
  };
239
235
  })();
240
236
  //#endregion
241
- export { S as t };
237
+ export { x as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./pearl-chain-time.component-DGilJDFx.js";
1
+ import { t as e } from "./pearl-chain-time.component-D5OCEBJ_.js";
2
2
  import "./pearl-chain-time.pure.js";
3
3
  //#region src/elements-experimental/pearl-chain-time.ts
4
4
  e.define();
@@ -1,2 +1,2 @@
1
- import { t as e } from "./pearl-chain-time.component-DGilJDFx.js";
1
+ import { t as e } from "./pearl-chain-time.component-D5OCEBJ_.js";
2
2
  export { e as SbbPearlChainTimeElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain-vertical.component-Lx47SlJU.js";
1
+ import { t as e } from "../pearl-chain-vertical.component-CDOWaup3.js";
2
2
  export { e as SbbPearlChainVerticalElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain-vertical-item.component-CO6HUZFL.js";
1
+ import { t as e } from "../pearl-chain-vertical-item.component-IdquCJMy.js";
2
2
  export { e as SbbPearlChainVerticalItemElement };