@sbb-esta/lyne-elements-experimental 4.10.0 → 5.0.0-next

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 (246) hide show
  1. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +15 -18
  2. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +6 -11
  3. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  4. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
  5. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
  6. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  7. package/{autocomplete-grid-cell.component-DkD9aFKc.js → autocomplete-grid-cell.component-BFzREPWp.js} +1 -2
  8. package/{autocomplete-grid-option.component-CtATJy7n.js → autocomplete-grid-option.component-DhmoLeEw.js} +5 -7
  9. package/{autocomplete-grid-row.component-6nJv5PMj.js → autocomplete-grid-row.component-BQxCxOI6.js} +1 -2
  10. package/autocomplete-grid.js +3 -3
  11. package/autocomplete-grid.pure.js +3 -3
  12. package/core/datetime/date-helper.js +1 -1
  13. package/core/timetable/access-leg-helper.js +27 -27
  14. package/core.js +5 -0
  15. package/custom-elements.json +226 -453
  16. package/{date-helper-CGproP5d.js → date-helper-CuMnZCsr.js} +1 -1
  17. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +1 -1
  18. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  19. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +3 -6
  20. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +2 -2
  21. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  22. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -8
  23. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +1 -1
  24. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
  25. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  26. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +1 -1
  27. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -1
  28. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +2 -2
  29. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -1
  30. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  31. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
  32. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +1 -1
  33. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
  34. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  35. package/development/autocomplete-grid-cell.component-Buvsof-Y.js +33 -0
  36. package/development/{autocomplete-grid-option.component-5mPGswUO.js → autocomplete-grid-option.component-B4SXR9_v.js} +3 -5
  37. package/development/{autocomplete-grid-row.component-DEm6zyHZ.js → autocomplete-grid-row.component-CY4UDuuj.js} +2 -3
  38. package/development/autocomplete-grid.js +3 -3
  39. package/development/autocomplete-grid.pure.js +3 -3
  40. package/development/core/datetime/date-helper.js +1 -1
  41. package/development/core/timetable/access-leg-helper.d.ts.map +1 -1
  42. package/development/core/timetable/access-leg-helper.js +3 -3
  43. package/development/core.d.ts +6 -0
  44. package/development/core.d.ts.map +1 -0
  45. package/development/core.js +5 -0
  46. package/development/{date-helper-qNdwgC9O.js → date-helper-DGz-ztQM.js} +2 -2
  47. package/development/journey-summary/journey-summary.component.d.ts +4 -3
  48. package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
  49. package/development/journey-summary/journey-summary.component.js +1 -1
  50. package/development/{journey-summary.component-BZwgD4im.js → journey-summary.component-B9P1PAJv.js} +14 -12
  51. package/development/journey-summary.js +1 -1
  52. package/development/journey-summary.pure.js +1 -1
  53. package/development/pearl-chain/pearl-chain.component.d.ts +2 -2
  54. package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
  55. package/development/pearl-chain/pearl-chain.component.js +1 -1
  56. package/development/pearl-chain-time/pearl-chain-time.component.d.ts +3 -2
  57. package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
  58. package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
  59. package/development/{pearl-chain-time.component-B2_BI6E_.js → pearl-chain-time.component-DDnGnI77.js} +8 -10
  60. package/development/pearl-chain-time.js +1 -1
  61. package/development/pearl-chain-time.pure.js +1 -1
  62. package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +1 -1
  63. package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
  64. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  65. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +1 -1
  66. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
  67. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  68. package/development/{pearl-chain-vertical-item.component-DcmH13Vb.js → pearl-chain-vertical-item.component-CRh0l20F.js} +2 -4
  69. package/development/pearl-chain-vertical-item.js +1 -1
  70. package/development/pearl-chain-vertical-item.pure.js +1 -1
  71. package/development/pearl-chain-vertical.component-Cmc3QXgd.js +30 -0
  72. package/development/pearl-chain-vertical.js +1 -1
  73. package/development/pearl-chain-vertical.pure.js +1 -1
  74. package/development/{pearl-chain.component-oQZUzsyW.js → pearl-chain.component-Dl2RvtJo.js} +3 -7
  75. package/development/pearl-chain.js +1 -1
  76. package/development/pearl-chain.pure.js +1 -1
  77. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +1 -1
  78. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  79. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +2 -4
  80. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -0
  81. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  82. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  83. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +1 -1
  84. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
  85. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  86. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +2 -1
  87. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
  88. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  89. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +2 -1
  90. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  91. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
  92. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +2 -1
  93. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
  94. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  95. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -1
  96. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  97. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
  98. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +1 -1
  99. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
  100. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  101. package/development/{seat-reservation-area.component-DbeuTnXT.js → seat-reservation-area.component-BQEtJhk0.js} +2 -4
  102. package/development/{seat-reservation-graphic.component-DlrHtlia.js → seat-reservation-graphic.component-XpqxL5nq.js} +7 -7
  103. package/development/{seat-reservation-navigation-coach.component-CjoDkcVU.js → seat-reservation-navigation-coach.component-DRCcI2ss.js} +5 -7
  104. package/development/{seat-reservation-navigation-services.component-CGel7__P.js → seat-reservation-navigation-services.component-ZNm77ZG-.js} +5 -7
  105. package/development/{seat-reservation-place-control.component-CM9efId7.js → seat-reservation-place-control.component-QF_px_in.js} +5 -6
  106. package/development/{seat-reservation-scoped.component-CFA_bJ3o.js → seat-reservation-scoped.component-X-Kq0-w5.js} +2 -3
  107. package/development/seat-reservation.component-C-ttTPW5.js +515 -0
  108. package/development/seat-reservation.js +9 -10
  109. package/development/seat-reservation.pure.d.ts +0 -1
  110. package/development/seat-reservation.pure.d.ts.map +1 -1
  111. package/development/seat-reservation.pure.js +8 -9
  112. package/development/timetable-duration/timetable-duration.component.d.ts +1 -1
  113. package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
  114. package/development/timetable-duration/timetable-duration.component.js +1 -1
  115. package/development/timetable-duration.component-2JBYobDt.js +96 -0
  116. package/development/timetable-duration.js +1 -1
  117. package/development/timetable-duration.pure.js +1 -1
  118. package/development/timetable-row/timetable-row.component.d.ts +3 -2
  119. package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
  120. package/development/timetable-row/timetable-row.component.js +1 -1
  121. package/development/timetable-row.component-Binmks-o.js +732 -0
  122. package/development/timetable-row.js +1 -1
  123. package/development/timetable-row.pure.js +1 -1
  124. package/{format-CM5exOsN.js → format-DbUuNYFU.js} +1 -1
  125. package/journey-summary/journey-summary.component.js +1 -1
  126. package/{journey-summary.component-DC7-qPHY.js → journey-summary.component-C7WPKx8k.js} +57 -55
  127. package/journey-summary.js +1 -1
  128. package/journey-summary.pure.js +1 -1
  129. package/{mapper-DkiDDseD.js → mapper-Cqie5ivY.js} +1 -1
  130. package/package.json +6 -81
  131. package/pearl-chain/pearl-chain.component.js +1 -1
  132. package/pearl-chain-time/pearl-chain-time.component.js +1 -1
  133. package/{pearl-chain-time.component-CkKsrbgQ.js → pearl-chain-time.component-awU4lFdO.js} +42 -44
  134. package/pearl-chain-time.js +1 -1
  135. package/pearl-chain-time.pure.js +1 -1
  136. package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  137. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  138. package/{pearl-chain-vertical-item.component-BUqZ-3Ay.js → pearl-chain-vertical-item.component-BynmUBXa.js} +3 -5
  139. package/pearl-chain-vertical-item.js +1 -1
  140. package/pearl-chain-vertical-item.pure.js +1 -1
  141. package/{pearl-chain-vertical.component-Df9CvRxo.js → pearl-chain-vertical.component-Lx47SlJU.js} +1 -2
  142. package/pearl-chain-vertical.js +1 -1
  143. package/pearl-chain-vertical.pure.js +1 -1
  144. package/{pearl-chain.component-CpISVoAu.js → pearl-chain.component-BAtmfmpA.js} +22 -26
  145. package/pearl-chain.js +1 -1
  146. package/pearl-chain.pure.js +1 -1
  147. package/seat-reservation/common/mapper/mapper.js +1 -1
  148. package/seat-reservation/common/mapper.js +1 -1
  149. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +5 -7
  150. package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  151. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  152. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  153. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
  154. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  155. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
  156. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  157. package/{seat-reservation-area.component-CtYawDjE.js → seat-reservation-area.component-CVc6uuMG.js} +3 -5
  158. package/{seat-reservation-graphic.component-Cm_pVxaB.js → seat-reservation-graphic.component-Dzkv9tyR.js} +26 -26
  159. package/{seat-reservation-navigation-coach.component-sug9IBTH.js → seat-reservation-navigation-coach.component-CGfmiQJq.js} +51 -56
  160. package/{seat-reservation-navigation-services.component-C9dDYD_M.js → seat-reservation-navigation-services.component-DQviLWvy.js} +28 -33
  161. package/{seat-reservation-place-control.component-CE7d9M2b.js → seat-reservation-place-control.component-BYJi6aYS.js} +43 -47
  162. package/{seat-reservation-scoped.component-DVyP2JGE.js → seat-reservation-scoped.component-CdB7HYzl.js} +1 -2
  163. package/{seat-reservation.component-DajC6fqU.js → seat-reservation.component-DBtJhrR_.js} +115 -107
  164. package/seat-reservation.js +11 -12
  165. package/seat-reservation.pure.js +10 -11
  166. package/timetable-duration/timetable-duration.component.js +1 -1
  167. package/{timetable-duration.component-BnJA8wSb.js → timetable-duration.component-PmvoOKVw.js} +6 -10
  168. package/timetable-duration.js +1 -1
  169. package/timetable-duration.pure.js +1 -1
  170. package/timetable-row/timetable-row.component.js +1 -1
  171. package/{timetable-row.component-DbzBCpKR.js → timetable-row.component-BnmrhD2d.js} +120 -117
  172. package/timetable-row.js +1 -1
  173. package/timetable-row.pure.js +1 -1
  174. package/autocomplete-grid/autocomplete-grid-button.js +0 -4
  175. package/autocomplete-grid/autocomplete-grid-cell.js +0 -4
  176. package/autocomplete-grid/autocomplete-grid-optgroup.js +0 -4
  177. package/autocomplete-grid/autocomplete-grid-option.js +0 -4
  178. package/autocomplete-grid/autocomplete-grid-row.js +0 -4
  179. package/autocomplete-grid/autocomplete-grid.js +0 -4
  180. package/core/datetime.js +0 -2
  181. package/core/timetable.js +0 -4
  182. package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -2
  183. package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +0 -1
  184. package/development/autocomplete-grid/autocomplete-grid-button.js +0 -10
  185. package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -2
  186. package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +0 -1
  187. package/development/autocomplete-grid/autocomplete-grid-cell.js +0 -10
  188. package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -2
  189. package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +0 -1
  190. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +0 -10
  191. package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -2
  192. package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +0 -1
  193. package/development/autocomplete-grid/autocomplete-grid-option.js +0 -10
  194. package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -2
  195. package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +0 -1
  196. package/development/autocomplete-grid/autocomplete-grid-row.js +0 -10
  197. package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -2
  198. package/development/autocomplete-grid/autocomplete-grid.d.ts.map +0 -1
  199. package/development/autocomplete-grid/autocomplete-grid.js +0 -10
  200. package/development/autocomplete-grid-cell.component-BxkWGaX0.js +0 -34
  201. package/development/core/datetime.d.ts +0 -3
  202. package/development/core/datetime.d.ts.map +0 -1
  203. package/development/core/datetime.js +0 -2
  204. package/development/core/timetable.d.ts +0 -5
  205. package/development/core/timetable.d.ts.map +0 -1
  206. package/development/core/timetable.js +0 -4
  207. package/development/pearl-chain-vertical.component-CpcNFl-x.js +0 -31
  208. package/development/seat-reservation/common.d.ts +0 -6
  209. package/development/seat-reservation/common.d.ts.map +0 -1
  210. package/development/seat-reservation/common.js +0 -12
  211. package/development/seat-reservation/seat-reservation-area.d.ts +0 -2
  212. package/development/seat-reservation/seat-reservation-area.d.ts.map +0 -1
  213. package/development/seat-reservation/seat-reservation-area.js +0 -10
  214. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +0 -9
  215. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +0 -1
  216. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -306
  217. package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -2
  218. package/development/seat-reservation/seat-reservation-graphic.d.ts.map +0 -1
  219. package/development/seat-reservation/seat-reservation-graphic.js +0 -10
  220. package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -2
  221. package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +0 -1
  222. package/development/seat-reservation/seat-reservation-navigation-coach.js +0 -10
  223. package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -2
  224. package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +0 -1
  225. package/development/seat-reservation/seat-reservation-navigation-services.js +0 -10
  226. package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -2
  227. package/development/seat-reservation/seat-reservation-place-control.d.ts.map +0 -1
  228. package/development/seat-reservation/seat-reservation-place-control.js +0 -10
  229. package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -2
  230. package/development/seat-reservation/seat-reservation-scoped.d.ts.map +0 -1
  231. package/development/seat-reservation/seat-reservation-scoped.js +0 -10
  232. package/development/seat-reservation/seat-reservation.d.ts +0 -3
  233. package/development/seat-reservation/seat-reservation.d.ts.map +0 -1
  234. package/development/seat-reservation/seat-reservation.js +0 -11
  235. package/development/seat-reservation.component-DFJVFmrI.js +0 -510
  236. package/development/timetable-duration.component-BhFlqYbV.js +0 -100
  237. package/development/timetable-row.component-Dko8laRT.js +0 -729
  238. package/seat-reservation/common.js +0 -9
  239. package/seat-reservation/seat-reservation-area.js +0 -4
  240. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -291
  241. package/seat-reservation/seat-reservation-graphic.js +0 -4
  242. package/seat-reservation/seat-reservation-navigation-coach.js +0 -4
  243. package/seat-reservation/seat-reservation-navigation-services.js +0 -4
  244. package/seat-reservation/seat-reservation-place-control.js +0 -4
  245. package/seat-reservation/seat-reservation-scoped.js +0 -4
  246. package/seat-reservation/seat-reservation.js +0 -5
@@ -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-Dko8laRT.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-Binmks-o.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-Dko8laRT.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-Binmks-o.js";
2
2
  export { SbbTimetableRowElement, filterNotices, getCus, getHimIcon, handleNotices, renderIconProduct, renderStringProduct, sortSituation };
@@ -629,7 +629,7 @@ var j = {
629
629
  night: "night"
630
630
  }, N = {
631
631
  G: function(e, t, n) {
632
- let r = e.getFullYear() > 0 ? 1 : 0;
632
+ let r = +(e.getFullYear() > 0);
633
633
  switch (t) {
634
634
  case "G":
635
635
  case "GG":
@@ -1,2 +1,2 @@
1
- import { t as e } from "../journey-summary.component-DC7-qPHY.js";
1
+ import { t as e } from "../journey-summary.component-C7WPKx8k.js";
2
2
  export { e as SbbJourneySummaryElement };
@@ -1,41 +1,35 @@
1
- import { t as e } from "./format-CM5exOsN.js";
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 } from "@sbb-esta/lyne-elements/core/base-elements.js";
5
- import { SbbLanguageController as a } from "@sbb-esta/lyne-elements/core/controllers.js";
6
- import { forceType as o } from "@sbb-esta/lyne-elements/core/decorators.js";
7
- import { boxSizingStyles as s } from "@sbb-esta/lyne-elements/core/styles.js";
8
- import { html as c, nothing as l, unsafeCSS as u } from "lit";
9
- import { defaultDateAdapter as d } from "@sbb-esta/lyne-elements/core/datetime.js";
10
- import { i18nTripDuration as f } from "@sbb-esta/lyne-elements/core/i18n.js";
11
- import { property as p } from "lit/decorators.js";
12
- import { durationToTime as m, removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
13
- import "@sbb-esta/lyne-elements/divider.js";
14
- import "@sbb-esta/lyne-elements/screen-reader-only.js";
15
- import "@sbb-esta/lyne-elements/journey-header.js";
16
- import "./pearl-chain-time.js";
4
+ import { SbbElement as i, SbbLanguageController as a, SbbScreenReaderOnlyElement as o, boxSizingStyles as s, defaultDateAdapter as c, forceType as l, i18nTripDuration 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";
17
11
  //#region src/elements-experimental/journey-summary/journey-summary.scss?inline
18
- var g = ":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}", _ = (() => {
19
- let _ = i, v = [], y, b = [], x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, M = [], N = [], P, F = [], I = [], L;
20
- return class extends _ {
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 {
21
15
  constructor() {
22
- super(...arguments), this.#e = (r(this, v), r(this, b, null)), this.#t = (r(this, x), r(this, C, null)), this.#n = (r(this, w), r(this, E, !1)), this.#r = (r(this, D), r(this, k, "3")), this.#i = (r(this, A), r(this, M, !1)), this.#a = (r(this, N), r(this, F, !1)), this._now = (r(this, I), null), this._hasContentSlot = !1, this._language = new a(this);
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);
23
17
  }
24
18
  static {
25
- let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
26
- y = [p({ type: Object })], S = [p({
19
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
20
+ C = [g({ type: Object })], E = [g({
27
21
  attribute: "trip-back",
28
22
  type: Object
29
- })], T = [o(), p({
23
+ })], k = [l(), g({
30
24
  attribute: "round-trip",
31
25
  type: Boolean
32
- })], O = [p({ attribute: "header-level" })], j = [o(), p({
26
+ })], M = [g({ attribute: "header-level" })], F = [l(), g({
33
27
  attribute: "disable-animation",
34
28
  type: Boolean
35
- })], P = [o(), p({
29
+ })], R = [l(), g({
36
30
  attribute: "a11y-footpath",
37
31
  type: Boolean
38
- })], L = [p()], n(this, null, y, {
32
+ })], V = [g()], n(this, null, C, {
39
33
  kind: "accessor",
40
34
  name: "trip",
41
35
  static: !1,
@@ -48,7 +42,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
48
42
  }
49
43
  },
50
44
  metadata: e
51
- }, b, x), n(this, null, S, {
45
+ }, w, T), n(this, null, E, {
52
46
  kind: "accessor",
53
47
  name: "tripBack",
54
48
  static: !1,
@@ -61,7 +55,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
61
55
  }
62
56
  },
63
57
  metadata: e
64
- }, C, w), n(this, null, T, {
58
+ }, D, O), n(this, null, k, {
65
59
  kind: "accessor",
66
60
  name: "roundTrip",
67
61
  static: !1,
@@ -74,7 +68,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
74
68
  }
75
69
  },
76
70
  metadata: e
77
- }, E, D), n(this, null, O, {
71
+ }, A, j), n(this, null, M, {
78
72
  kind: "accessor",
79
73
  name: "headerLevel",
80
74
  static: !1,
@@ -87,7 +81,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
87
81
  }
88
82
  },
89
83
  metadata: e
90
- }, k, A), n(this, null, j, {
84
+ }, N, P), n(this, null, F, {
91
85
  kind: "accessor",
92
86
  name: "disableAnimation",
93
87
  static: !1,
@@ -100,7 +94,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
100
94
  }
101
95
  },
102
96
  metadata: e
103
- }, M, N), n(this, null, P, {
97
+ }, I, L), n(this, null, R, {
104
98
  kind: "accessor",
105
99
  name: "a11yFootpath",
106
100
  static: !1,
@@ -113,7 +107,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
113
107
  }
114
108
  },
115
109
  metadata: e
116
- }, F, I), n(this, null, L, {
110
+ }, z, B), n(this, null, V, {
117
111
  kind: "setter",
118
112
  name: "now",
119
113
  static: !1,
@@ -125,7 +119,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
125
119
  }
126
120
  },
127
121
  metadata: e
128
- }, null, v), e && Object.defineProperty(this, Symbol.metadata, {
122
+ }, null, S), e && Object.defineProperty(this, Symbol.metadata, {
129
123
  enumerable: !0,
130
124
  configurable: !0,
131
125
  writable: !0,
@@ -136,7 +130,15 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
136
130
  this.elementName = "sbb-journey-summary";
137
131
  }
138
132
  static {
139
- this.styles = [s, u(g)];
133
+ this.elementDependencies = [
134
+ m,
135
+ h,
136
+ y,
137
+ o
138
+ ];
139
+ }
140
+ static {
141
+ this.styles = [s, p(b)];
140
142
  }
141
143
  #e;
142
144
  get trip() {
@@ -181,7 +183,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
181
183
  this.#a = e;
182
184
  }
183
185
  set now(e) {
184
- this._now = d.getValidDateOrNull(d.deserialize(e));
186
+ this._now = c.getValidDateOrNull(c.deserialize(e));
185
187
  }
186
188
  get now() {
187
189
  return this._now ?? /* @__PURE__ */ new Date();
@@ -190,26 +192,26 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
190
192
  super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
191
193
  }
192
194
  _renderJourneyStart(n, r) {
193
- let i = d, a = r ? m(r, this._language.current) : null;
194
- if (t(n)) return c`
195
+ let i = c, a = r ? _(r, this._language.current) : null;
196
+ if (t(n)) return d`
195
197
  <time datetime=${e(n, "d") + " " + e(n, "M")}>
196
198
  ${i.format(n).replace(",", ".")}</time
197
- >${r && r > 0 ? c`,<time>
199
+ >${r && r > 0 ? d`,<time>
198
200
  <sbb-screen-reader-only>
199
- ${f[this._language.current]} ${a.long}
201
+ ${u[this._language.current]} ${a.long}
200
202
  </sbb-screen-reader-only>
201
203
  <span aria-hidden="true">${a.short}</span>
202
- </time>` : l}
204
+ </time>` : f}
203
205
  `;
204
206
  }
205
207
  _renderJourneyVias(e) {
206
208
  let t = e.slice(0, 5);
207
- return c`
209
+ return d`
208
210
  <div class="sbb-journey-summary__via-block">
209
211
  <span class="sbb-journey-summary__via-text">Via</span>
210
- <ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : l}>
211
- ${t.map((e, n) => c`<li class="sbb-journey-summary__via">
212
- ${e}${n !== t.length - 1 && n < 4 ? c`<span>,</span>` : l}
212
+ <ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : f}>
213
+ ${t.map((e, n) => d`<li class="sbb-journey-summary__via">
214
+ ${e}${n !== t.length - 1 && n < 4 ? d`<span>,</span>` : f}
213
215
  </li>`)}
214
216
  </ul>
215
217
  </div>
@@ -217,11 +219,11 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
217
219
  }
218
220
  _renderJourneyInformation(e) {
219
221
  let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
220
- return c`
222
+ return d`
221
223
  <div>
222
- ${t && t.length > 0 ? this._renderJourneyVias(t) : l}
224
+ ${t && t.length > 0 ? this._renderJourneyVias(t) : f}
223
225
  <div class="sbb-journey-summary__date">
224
- ${this._renderJourneyStart(h(i), n)}
226
+ ${this._renderJourneyStart(v(i), n)}
225
227
  </div>
226
228
  <sbb-pearl-chain-time
227
229
  .arrivalTime=${o}
@@ -238,27 +240,27 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
238
240
  }
239
241
  render() {
240
242
  let { origin: e, destination: t } = this.trip || {};
241
- return c`
243
+ return d`
242
244
  <div class="sbb-journey-summary">
243
- ${e ? c`<sbb-journey-header
245
+ ${e ? d`<sbb-journey-header
244
246
  size="l"
245
- .level=${this.headerLevel || l}
247
+ .level=${this.headerLevel || f}
246
248
  .origin=${e}
247
249
  .destination=${t}
248
- .roundTrip=${this.roundTrip ?? l}
249
- ></sbb-journey-header>` : l}
250
+ .roundTrip=${this.roundTrip ?? f}
251
+ ></sbb-journey-header>` : f}
250
252
  ${this._renderJourneyInformation(this.trip)}
251
- ${this.tripBack ? c`<div>
253
+ ${this.tripBack ? d`<div>
252
254
  <sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
253
255
  ${this._renderJourneyInformation(this.tripBack)}
254
- </div>` : l}
255
- ${this._hasContentSlot ? c` <div class="sbb-journey-summary__slot">
256
+ </div>` : f}
257
+ ${this._hasContentSlot ? d` <div class="sbb-journey-summary__slot">
256
258
  <slot name="content"></slot>
257
- </div>` : l}
259
+ </div>` : f}
258
260
  </div>
259
261
  `;
260
262
  }
261
263
  };
262
264
  })();
263
265
  //#endregion
264
- export { _ as t };
266
+ export { x as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./journey-summary.component-DC7-qPHY.js";
1
+ import { t as e } from "./journey-summary.component-C7WPKx8k.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-DC7-qPHY.js";
1
+ import { t as e } from "./journey-summary.component-C7WPKx8k.js";
2
2
  export { e as SbbJourneySummaryElement };
@@ -11291,7 +11291,7 @@ function i(i, a) {
11291
11291
  return i === null ? a === "LOWER_DECK" ? t : a === "UPPER_DECK" ? n : r : i === "TRAIN" ? r : e;
11292
11292
  }
11293
11293
  var a = (e, t = null) => {
11294
- let n = i(e, t), r = t === "LOWER_DECK" ? 1 : 0, a = n.map((e) => {
11294
+ let n = i(e, t), r = +(t === "LOWER_DECK"), a = n.map((e) => {
11295
11295
  let t = e?.coachDeckLayout, n = [], r = [], i = t.placeGroups.map((e) => (n.indexOf(e.travelClass) === -1 && n.push(e.travelClass), r.indexOf(e.accommodationSubType) === -1 && r.push(e.accommodationSubType), e.places?.map((t) => ({
11296
11296
  number: t?.number,
11297
11297
  state: t?.state,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-experimental",
3
- "version": "4.10.0",
3
+ "version": "5.0.0-next",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
@@ -43,45 +43,10 @@
43
43
  "development": "./development/autocomplete-grid.pure.js",
44
44
  "default": "./autocomplete-grid.pure.js"
45
45
  },
46
- "./autocomplete-grid/autocomplete-grid.js": {
47
- "types": "./development/autocomplete-grid/autocomplete-grid.d.ts",
48
- "development": "./development/autocomplete-grid/autocomplete-grid.js",
49
- "default": "./autocomplete-grid/autocomplete-grid.js"
50
- },
51
- "./autocomplete-grid/autocomplete-grid-button.js": {
52
- "types": "./development/autocomplete-grid/autocomplete-grid-button.d.ts",
53
- "development": "./development/autocomplete-grid/autocomplete-grid-button.js",
54
- "default": "./autocomplete-grid/autocomplete-grid-button.js"
55
- },
56
- "./autocomplete-grid/autocomplete-grid-cell.js": {
57
- "types": "./development/autocomplete-grid/autocomplete-grid-cell.d.ts",
58
- "development": "./development/autocomplete-grid/autocomplete-grid-cell.js",
59
- "default": "./autocomplete-grid/autocomplete-grid-cell.js"
60
- },
61
- "./autocomplete-grid/autocomplete-grid-optgroup.js": {
62
- "types": "./development/autocomplete-grid/autocomplete-grid-optgroup.d.ts",
63
- "development": "./development/autocomplete-grid/autocomplete-grid-optgroup.js",
64
- "default": "./autocomplete-grid/autocomplete-grid-optgroup.js"
65
- },
66
- "./autocomplete-grid/autocomplete-grid-option.js": {
67
- "types": "./development/autocomplete-grid/autocomplete-grid-option.d.ts",
68
- "development": "./development/autocomplete-grid/autocomplete-grid-option.js",
69
- "default": "./autocomplete-grid/autocomplete-grid-option.js"
70
- },
71
- "./autocomplete-grid/autocomplete-grid-row.js": {
72
- "types": "./development/autocomplete-grid/autocomplete-grid-row.d.ts",
73
- "development": "./development/autocomplete-grid/autocomplete-grid-row.js",
74
- "default": "./autocomplete-grid/autocomplete-grid-row.js"
75
- },
76
- "./core/datetime.js": {
77
- "types": "./development/core/datetime.d.ts",
78
- "development": "./development/core/datetime.js",
79
- "default": "./core/datetime.js"
80
- },
81
- "./core/timetable.js": {
82
- "types": "./development/core/timetable.d.ts",
83
- "development": "./development/core/timetable.js",
84
- "default": "./core/timetable.js"
46
+ "./core.js": {
47
+ "types": "./development/core.d.ts",
48
+ "development": "./development/core.js",
49
+ "default": "./core.js"
85
50
  },
86
51
  "./journey-summary.js": {
87
52
  "types": "./development/journey-summary.d.ts",
@@ -143,46 +108,6 @@
143
108
  "development": "./development/seat-reservation.pure.js",
144
109
  "default": "./seat-reservation.pure.js"
145
110
  },
146
- "./seat-reservation/common.js": {
147
- "types": "./development/seat-reservation/common.d.ts",
148
- "development": "./development/seat-reservation/common.js",
149
- "default": "./seat-reservation/common.js"
150
- },
151
- "./seat-reservation/seat-reservation.js": {
152
- "types": "./development/seat-reservation/seat-reservation.d.ts",
153
- "development": "./development/seat-reservation/seat-reservation.js",
154
- "default": "./seat-reservation/seat-reservation.js"
155
- },
156
- "./seat-reservation/seat-reservation-area.js": {
157
- "types": "./development/seat-reservation/seat-reservation-area.d.ts",
158
- "development": "./development/seat-reservation/seat-reservation-area.js",
159
- "default": "./seat-reservation/seat-reservation-area.js"
160
- },
161
- "./seat-reservation/seat-reservation-graphic.js": {
162
- "types": "./development/seat-reservation/seat-reservation-graphic.d.ts",
163
- "development": "./development/seat-reservation/seat-reservation-graphic.js",
164
- "default": "./seat-reservation/seat-reservation-graphic.js"
165
- },
166
- "./seat-reservation/seat-reservation-navigation-coach.js": {
167
- "types": "./development/seat-reservation/seat-reservation-navigation-coach.d.ts",
168
- "development": "./development/seat-reservation/seat-reservation-navigation-coach.js",
169
- "default": "./seat-reservation/seat-reservation-navigation-coach.js"
170
- },
171
- "./seat-reservation/seat-reservation-navigation-services.js": {
172
- "types": "./development/seat-reservation/seat-reservation-navigation-services.d.ts",
173
- "development": "./development/seat-reservation/seat-reservation-navigation-services.js",
174
- "default": "./seat-reservation/seat-reservation-navigation-services.js"
175
- },
176
- "./seat-reservation/seat-reservation-place-control.js": {
177
- "types": "./development/seat-reservation/seat-reservation-place-control.d.ts",
178
- "development": "./development/seat-reservation/seat-reservation-place-control.js",
179
- "default": "./seat-reservation/seat-reservation-place-control.js"
180
- },
181
- "./seat-reservation/seat-reservation-scoped.js": {
182
- "types": "./development/seat-reservation/seat-reservation-scoped.d.ts",
183
- "development": "./development/seat-reservation/seat-reservation-scoped.js",
184
- "default": "./seat-reservation/seat-reservation-scoped.js"
185
- },
186
111
  "./timetable-duration.js": {
187
112
  "types": "./development/timetable-duration.d.ts",
188
113
  "development": "./development/timetable-duration.js",
@@ -206,7 +131,7 @@
206
131
  },
207
132
  "customElements": "custom-elements.json",
208
133
  "peerDependencies": {
209
- "@sbb-esta/lyne-elements": "4.10.0"
134
+ "@sbb-esta/lyne-elements": "5.0.0-next"
210
135
  },
211
136
  "dependencies": {
212
137
  "lit": "^3.3.2",
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain.component-CpISVoAu.js";
1
+ import { t as e } from "../pearl-chain.component-BAtmfmpA.js";
2
2
  export { e as SbbPearlChainElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain-time.component-CkKsrbgQ.js";
1
+ import { t as e } from "../pearl-chain-time.component-awU4lFdO.js";
2
2
  export { e as SbbPearlChainTimeElement };
@@ -1,38 +1,33 @@
1
- import { t as e } from "./format-CM5exOsN.js";
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 } from "@sbb-esta/lyne-elements/core/base-elements.js";
4
- import { SbbLanguageController as i } from "@sbb-esta/lyne-elements/core/controllers.js";
5
- import { forceType as a } from "@sbb-esta/lyne-elements/core/decorators.js";
6
- import { boxSizingStyles as o } from "@sbb-esta/lyne-elements/core/styles.js";
7
- import { html as s, nothing as c, unsafeCSS as l } from "lit";
8
- import { defaultDateAdapter as u } from "@sbb-esta/lyne-elements/core/datetime.js";
9
- import { i18nArrival as d, i18nDeparture as f, i18nTransferProcedures as p } from "@sbb-esta/lyne-elements/core/i18n.js";
10
- import { property as m } from "lit/decorators.js";
11
- import { removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
12
- import { getDepartureArrivalTimeAttribute as g, isRideLeg as _ } from "./core/timetable.js";
13
- import "./pearl-chain.js";
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 } 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";
14
9
  //#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
15
- var v = ":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)}.sbb-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}", y = (() => {
16
- let y = r, b = [], x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H;
17
- return class extends y {
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)}.sbb-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}", 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 {
18
13
  constructor() {
19
- super(...arguments), this.#e = (n(this, b), n(this, S, [])), this.#t = (n(this, C), n(this, T, "")), this.#n = (n(this, E), n(this, O, "")), this.#r = (n(this, k), n(this, j, NaN)), this.#i = (n(this, M), n(this, P, NaN)), this.#a = (n(this, F), n(this, L, !1)), this.#o = (n(this, R), n(this, B, !1)), this._now = (n(this, V), 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);
20
15
  }
21
16
  static {
22
- let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(y[Symbol.metadata] ?? null) : void 0;
23
- x = [m({ type: Array })], w = [a(), m({ attribute: "departure-time" })], D = [a(), m({ attribute: "arrival-time" })], A = [a(), m({
17
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
18
+ C = [h({ type: Array })], E = [s(), h({ attribute: "departure-time" })], k = [s(), h({ attribute: "arrival-time" })], M = [s(), h({
24
19
  attribute: "departure-walk",
25
20
  type: Number
26
- })], N = [a(), m({
21
+ })], F = [s(), h({
27
22
  attribute: "arrival-walk",
28
23
  type: Number
29
- })], I = [a(), m({
24
+ })], R = [s(), h({
30
25
  attribute: "disable-animation",
31
26
  type: Boolean
32
- })], z = [a(), m({
27
+ })], V = [s(), h({
33
28
  attribute: "a11y-footpath",
34
29
  type: Boolean
35
- })], H = [m()], t(this, null, x, {
30
+ })], W = [h()], t(this, null, C, {
36
31
  kind: "accessor",
37
32
  name: "legs",
38
33
  static: !1,
@@ -45,7 +40,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
45
40
  }
46
41
  },
47
42
  metadata: e
48
- }, S, C), t(this, null, w, {
43
+ }, w, T), t(this, null, E, {
49
44
  kind: "accessor",
50
45
  name: "departureTime",
51
46
  static: !1,
@@ -58,7 +53,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
58
53
  }
59
54
  },
60
55
  metadata: e
61
- }, T, E), t(this, null, D, {
56
+ }, D, O), t(this, null, k, {
62
57
  kind: "accessor",
63
58
  name: "arrivalTime",
64
59
  static: !1,
@@ -71,7 +66,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
71
66
  }
72
67
  },
73
68
  metadata: e
74
- }, O, k), t(this, null, A, {
69
+ }, A, j), t(this, null, M, {
75
70
  kind: "accessor",
76
71
  name: "departureWalk",
77
72
  static: !1,
@@ -84,7 +79,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
84
79
  }
85
80
  },
86
81
  metadata: e
87
- }, j, M), t(this, null, N, {
82
+ }, N, P), t(this, null, F, {
88
83
  kind: "accessor",
89
84
  name: "arrivalWalk",
90
85
  static: !1,
@@ -97,7 +92,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
97
92
  }
98
93
  },
99
94
  metadata: e
100
- }, P, F), t(this, null, I, {
95
+ }, I, L), t(this, null, R, {
101
96
  kind: "accessor",
102
97
  name: "disableAnimation",
103
98
  static: !1,
@@ -110,7 +105,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
110
105
  }
111
106
  },
112
107
  metadata: e
113
- }, L, R), t(this, null, z, {
108
+ }, z, B), t(this, null, V, {
114
109
  kind: "accessor",
115
110
  name: "a11yFootpath",
116
111
  static: !1,
@@ -123,7 +118,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
123
118
  }
124
119
  },
125
120
  metadata: e
126
- }, B, V), t(this, null, H, {
121
+ }, H, U), t(this, null, W, {
127
122
  kind: "setter",
128
123
  name: "now",
129
124
  static: !1,
@@ -135,7 +130,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
135
130
  }
136
131
  },
137
132
  metadata: e
138
- }, null, b), e && Object.defineProperty(this, Symbol.metadata, {
133
+ }, null, S), e && Object.defineProperty(this, Symbol.metadata, {
139
134
  enumerable: !0,
140
135
  configurable: !0,
141
136
  writable: !0,
@@ -146,7 +141,10 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
146
141
  this.elementName = "sbb-pearl-chain-time";
147
142
  }
148
143
  static {
149
- this.styles = [o, l(v)];
144
+ this.elementDependencies = [d, y];
145
+ }
146
+ static {
147
+ this.styles = [a, m(b)];
150
148
  }
151
149
  #e;
152
150
  get legs() {
@@ -198,37 +196,37 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
198
196
  this.#o = e;
199
197
  }
200
198
  set now(e) {
201
- this._now = u.getValidDateOrNull(u.deserialize(e));
199
+ this._now = o.getValidDateOrNull(o.deserialize(e));
202
200
  }
203
201
  get now() {
204
202
  return this._now ?? /* @__PURE__ */ new Date();
205
203
  }
206
204
  render() {
207
- let t = this.departureTime ? h(this.departureTime) : void 0, n = this.arrivalTime ? h(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));
208
- return s`
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`
209
207
  <div class="sbb-pearl-chain__time">
210
208
  ${r()}
211
- ${t ? s`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
209
+ ${t ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
212
210
  <span class="sbb-screen-reader-only"
213
- >${f[this._language.current]}:&nbsp;</span
211
+ >${l[this._language.current]}:&nbsp;</span
214
212
  >
215
213
  ${e(t, "HH:mm")}
216
- </time>` : c}
217
- ${a?.length > 1 ? s`<span class="sbb-screen-reader-only" role="paragraph">
218
- ${a?.length - 1} ${p[this._language.current]}
219
- </span>` : c}
214
+ </time>` : p}
215
+ ${a?.length > 1 ? f`<span class="sbb-screen-reader-only" role="paragraph">
216
+ ${a?.length - 1} ${u[this._language.current]}
217
+ </span>` : p}
220
218
  <sbb-pearl-chain
221
219
  class="sbb-pearl-chain__time-chain"
222
220
  .legs=${this.legs}
223
221
  .disableAnimation=${this.disableAnimation}
224
222
  .now=${this.now}
225
223
  ></sbb-pearl-chain>
226
- ${n ? s`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
224
+ ${n ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
227
225
  <span class="sbb-screen-reader-only"
228
- >${d[this._language.current]}:&nbsp;</span
226
+ >${c[this._language.current]}:&nbsp;</span
229
227
  >
230
228
  ${e(n, "HH:mm")}
231
- </time>` : c}
229
+ </time>` : p}
232
230
  ${i()}
233
231
  </div>
234
232
  `;
@@ -236,4 +234,4 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
236
234
  };
237
235
  })();
238
236
  //#endregion
239
- export { y as t };
237
+ export { x as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./pearl-chain-time.component-CkKsrbgQ.js";
1
+ import { t as e } from "./pearl-chain-time.component-awU4lFdO.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-CkKsrbgQ.js";
1
+ import { t as e } from "./pearl-chain-time.component-awU4lFdO.js";
2
2
  export { e as SbbPearlChainTimeElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pearl-chain-vertical.component-Df9CvRxo.js";
1
+ import { t as e } from "../pearl-chain-vertical.component-Lx47SlJU.js";
2
2
  export { e as SbbPearlChainVerticalElement };