@sbb-esta/lyne-elements-experimental-dev 4.13.1-dev.1781017616 → 5.0.0-dev.1781073747

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 (263) hide show
  1. package/_index.scss +2 -0
  2. package/autocomplete-grid/_autocomplete-grid.global.scss +14 -0
  3. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +16 -19
  4. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +42 -71
  5. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  6. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
  7. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
  8. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  9. package/{autocomplete-grid-cell.component-D-Kk9HwQ.js → autocomplete-grid-cell.component-79IjA__I.js} +6 -7
  10. package/autocomplete-grid-option.component-DUFBhQwI.js +35 -0
  11. package/{autocomplete-grid-row.component-57jjeZWF.js → autocomplete-grid-row.component-B3U15Rwa.js} +7 -8
  12. package/autocomplete-grid.js +3 -3
  13. package/autocomplete-grid.pure.js +3 -3
  14. package/core/datetime/date-helper.js +1 -1
  15. package/core/styles/_theme.scss +19 -0
  16. package/core/styles/lean-off-brand-theme.scss +3 -0
  17. package/core/styles/lean-safety-theme.scss +3 -0
  18. package/core/timetable/access-leg-helper.js +27 -27
  19. package/core.js +5 -0
  20. package/custom-elements.json +5120 -5186
  21. package/{date-helper-NgYaHPR7.js → date-helper-DNzMLcyb.js} +1 -1
  22. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +1 -1
  23. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  24. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +7 -10
  25. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +2 -2
  26. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  27. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +55 -89
  28. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +1 -1
  29. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
  30. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  31. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +1 -1
  32. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -1
  33. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +2 -2
  34. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -2
  35. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  36. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
  37. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +1 -1
  38. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
  39. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  40. package/development/autocomplete-grid-cell.component-BbdELDro.js +33 -0
  41. package/development/autocomplete-grid-option.component-C7WuqRit.js +57 -0
  42. package/development/{autocomplete-grid-row.component-CvF3ZWDZ.js → autocomplete-grid-row.component-DoXbOsQM.js} +3 -4
  43. package/development/autocomplete-grid.js +4 -4
  44. package/development/autocomplete-grid.pure.js +3 -3
  45. package/development/core/datetime/date-helper.js +1 -1
  46. package/development/core/timetable/access-leg-helper.d.ts.map +1 -1
  47. package/development/core/timetable/access-leg-helper.js +3 -3
  48. package/development/core.d.ts +6 -0
  49. package/development/core.d.ts.map +1 -0
  50. package/development/core.js +5 -0
  51. package/development/{date-helper-QhWjANc3.js → date-helper-BcTDWVeP.js} +2 -2
  52. package/development/journey-summary/journey-summary.component.d.ts +4 -4
  53. package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
  54. package/development/journey-summary/journey-summary.component.js +1 -1
  55. package/development/journey-summary.component-BsC7wBIn.js +341 -0
  56. package/development/journey-summary.js +1 -1
  57. package/development/journey-summary.pure.js +1 -1
  58. package/development/pearl-chain/pearl-chain.component.d.ts +2 -2
  59. package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
  60. package/development/pearl-chain/pearl-chain.component.js +1 -1
  61. package/development/pearl-chain-time/pearl-chain-time.component.d.ts +3 -2
  62. package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
  63. package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
  64. package/development/{pearl-chain-time.component-BMHLITah.js → pearl-chain-time.component-C-CuC1ke.js} +11 -13
  65. package/development/pearl-chain-time.js +1 -1
  66. package/development/pearl-chain-time.pure.js +1 -1
  67. package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +1 -1
  68. package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
  69. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  70. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +1 -1
  71. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
  72. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  73. package/development/{pearl-chain-vertical-item.component-JYDWs8ta.js → pearl-chain-vertical-item.component-CLu9QrqJ.js} +4 -6
  74. package/development/pearl-chain-vertical-item.js +1 -1
  75. package/development/pearl-chain-vertical-item.pure.js +1 -1
  76. package/development/pearl-chain-vertical.component-DbPz5k_R.js +30 -0
  77. package/development/pearl-chain-vertical.js +1 -1
  78. package/development/pearl-chain-vertical.pure.js +1 -1
  79. package/development/{pearl-chain.component-DUAGFkcu.js → pearl-chain.component-10OsJZIX.js} +7 -11
  80. package/development/pearl-chain.js +1 -1
  81. package/development/pearl-chain.pure.js +1 -1
  82. package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -1
  83. package/development/seat-reservation/common/translations/i18n.js +1 -1
  84. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +12 -2
  85. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  86. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +35 -20
  87. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -0
  88. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  89. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  90. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +1 -1
  91. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
  92. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  93. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +2 -1
  94. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
  95. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  96. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +8 -3
  97. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  98. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -2
  99. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +2 -1
  100. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
  101. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  102. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +9 -3
  103. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  104. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -2
  105. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +1 -1
  106. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
  107. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  108. package/development/{seat-reservation-area.component-dG1GXJQP.js → seat-reservation-area.component-DPhQJFid.js} +4 -6
  109. package/development/{seat-reservation-graphic.component-BmhZpVL0.js → seat-reservation-graphic.component-0LYsmerm.js} +9 -9
  110. package/development/seat-reservation-navigation-coach.component-B97jKD7Y.js +438 -0
  111. package/development/{seat-reservation-navigation-services.component-B2uWa_VN.js → seat-reservation-navigation-services.component-Cx0Is97w.js} +11 -11
  112. package/development/{seat-reservation-place-control.component-CdL6yPUZ.js → seat-reservation-place-control.component-DaL1g8WH.js} +24 -17
  113. package/development/{seat-reservation-scoped.component-CJCkuKGz.js → seat-reservation-scoped.component-BHbORVsR.js} +3 -4
  114. package/development/seat-reservation.component-DI9pSlzt.js +473 -0
  115. package/development/seat-reservation.js +10 -11
  116. package/development/seat-reservation.pure.d.ts +0 -1
  117. package/development/seat-reservation.pure.d.ts.map +1 -1
  118. package/development/seat-reservation.pure.js +9 -10
  119. package/development/timetable-duration/timetable-duration.component.d.ts +1 -1
  120. package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
  121. package/development/timetable-duration/timetable-duration.component.js +1 -1
  122. package/development/timetable-duration.component-Chk5D4Is.js +96 -0
  123. package/development/timetable-duration.js +1 -1
  124. package/development/timetable-duration.pure.js +1 -1
  125. package/development/timetable-row/timetable-row.component.d.ts +3 -2
  126. package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
  127. package/development/timetable-row/timetable-row.component.js +1 -1
  128. package/development/timetable-row.component-nzrQzxL6.js +736 -0
  129. package/development/timetable-row.js +1 -1
  130. package/development/timetable-row.pure.js +1 -1
  131. package/journey-summary/journey-summary.component.js +1 -1
  132. package/{journey-summary.component-DyTUTCOU.js → journey-summary.component-DNoO3OCf.js} +42 -41
  133. package/journey-summary.js +1 -1
  134. package/journey-summary.pure.js +1 -1
  135. package/lean-safety-theme.css +13 -0
  136. package/lean-theme.css +13 -0
  137. package/package.json +22 -85
  138. package/pearl-chain/pearl-chain.component.js +1 -1
  139. package/pearl-chain-time/pearl-chain-time.component.js +1 -1
  140. package/{pearl-chain-time.component-DXe2o6S1.js → pearl-chain-time.component-BuvA6IE1.js} +42 -44
  141. package/pearl-chain-time.js +1 -1
  142. package/pearl-chain-time.pure.js +1 -1
  143. package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  144. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  145. package/{pearl-chain-vertical-item.component-Bby13csG.js → pearl-chain-vertical-item.component-QZ4s8Jbv.js} +33 -35
  146. package/pearl-chain-vertical-item.js +1 -1
  147. package/pearl-chain-vertical-item.pure.js +1 -1
  148. package/pearl-chain-vertical.component-Dc3vaHsQ.js +20 -0
  149. package/pearl-chain-vertical.js +1 -1
  150. package/pearl-chain-vertical.pure.js +1 -1
  151. package/{pearl-chain.component-CPaCcW_1.js → pearl-chain.component-DtGXXkY6.js} +29 -33
  152. package/pearl-chain.js +1 -1
  153. package/pearl-chain.pure.js +1 -1
  154. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +87 -75
  155. package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  156. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  157. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  158. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -2
  159. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  160. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -2
  161. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  162. package/{seat-reservation-area.component-DZsXvaMQ.js → seat-reservation-area.component-G9lHb7S8.js} +20 -22
  163. package/{seat-reservation-graphic.component-BnJuHVZQ.js → seat-reservation-graphic.component-BXFcQDxY.js} +26 -26
  164. package/seat-reservation-navigation-coach.component-BXy8EkJe.js +338 -0
  165. package/{seat-reservation-navigation-services.component-6ECATtWB.js → seat-reservation-navigation-services.component-49XmV9rv.js} +30 -33
  166. package/{seat-reservation-place-control.component-kx07J_YK.js → seat-reservation-place-control.component-DToIW328.js} +64 -62
  167. package/{seat-reservation-scoped.component-L1wMt65t.js → seat-reservation-scoped.component-D8dAmrP7.js} +6 -7
  168. package/seat-reservation.component--0XnrCkk.js +372 -0
  169. package/seat-reservation.js +10 -11
  170. package/seat-reservation.pure.js +9 -10
  171. package/timetable-duration/timetable-duration.component.js +1 -1
  172. package/timetable-duration.component-iMCvh1zr.js +61 -0
  173. package/timetable-duration.js +1 -1
  174. package/timetable-duration.pure.js +1 -1
  175. package/timetable-row/timetable-row.component.js +1 -1
  176. package/timetable-row.component-mNKmhRmP.js +566 -0
  177. package/timetable-row.js +1 -1
  178. package/timetable-row.pure.js +1 -1
  179. package/autocomplete-grid/autocomplete-grid-button.js +0 -4
  180. package/autocomplete-grid/autocomplete-grid-cell.js +0 -4
  181. package/autocomplete-grid/autocomplete-grid-optgroup.js +0 -4
  182. package/autocomplete-grid/autocomplete-grid-option.js +0 -4
  183. package/autocomplete-grid/autocomplete-grid-row.js +0 -4
  184. package/autocomplete-grid/autocomplete-grid.js +0 -4
  185. package/autocomplete-grid-option.component-qBUSf0mD.js +0 -37
  186. package/core/datetime.js +0 -2
  187. package/core/styles/core.scss +0 -13
  188. package/core/styles/theme.scss +0 -5
  189. package/core/timetable.js +0 -4
  190. package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -2
  191. package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +0 -1
  192. package/development/autocomplete-grid/autocomplete-grid-button.js +0 -10
  193. package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -2
  194. package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +0 -1
  195. package/development/autocomplete-grid/autocomplete-grid-cell.js +0 -10
  196. package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -2
  197. package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +0 -1
  198. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +0 -10
  199. package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -2
  200. package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +0 -1
  201. package/development/autocomplete-grid/autocomplete-grid-option.js +0 -10
  202. package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -2
  203. package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +0 -1
  204. package/development/autocomplete-grid/autocomplete-grid-row.js +0 -10
  205. package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -2
  206. package/development/autocomplete-grid/autocomplete-grid.d.ts.map +0 -1
  207. package/development/autocomplete-grid/autocomplete-grid.js +0 -10
  208. package/development/autocomplete-grid-cell.component-CTC6s1q3.js +0 -34
  209. package/development/autocomplete-grid-option.component-DqkLWHcg.js +0 -61
  210. package/development/core/datetime.d.ts +0 -3
  211. package/development/core/datetime.d.ts.map +0 -1
  212. package/development/core/datetime.js +0 -2
  213. package/development/core/timetable.d.ts +0 -5
  214. package/development/core/timetable.d.ts.map +0 -1
  215. package/development/core/timetable.js +0 -4
  216. package/development/journey-summary.component-BTaPGCGZ.js +0 -340
  217. package/development/pearl-chain-vertical.component-YYXS_74c.js +0 -31
  218. package/development/seat-reservation/common.d.ts +0 -6
  219. package/development/seat-reservation/common.d.ts.map +0 -1
  220. package/development/seat-reservation/common.js +0 -12
  221. package/development/seat-reservation/seat-reservation-area.d.ts +0 -2
  222. package/development/seat-reservation/seat-reservation-area.d.ts.map +0 -1
  223. package/development/seat-reservation/seat-reservation-area.js +0 -10
  224. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +0 -9
  225. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +0 -1
  226. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -306
  227. package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -2
  228. package/development/seat-reservation/seat-reservation-graphic.d.ts.map +0 -1
  229. package/development/seat-reservation/seat-reservation-graphic.js +0 -10
  230. package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -2
  231. package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +0 -1
  232. package/development/seat-reservation/seat-reservation-navigation-coach.js +0 -10
  233. package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -2
  234. package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +0 -1
  235. package/development/seat-reservation/seat-reservation-navigation-services.js +0 -10
  236. package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -2
  237. package/development/seat-reservation/seat-reservation-place-control.d.ts.map +0 -1
  238. package/development/seat-reservation/seat-reservation-place-control.js +0 -10
  239. package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -2
  240. package/development/seat-reservation/seat-reservation-scoped.d.ts.map +0 -1
  241. package/development/seat-reservation/seat-reservation-scoped.js +0 -10
  242. package/development/seat-reservation/seat-reservation.d.ts +0 -3
  243. package/development/seat-reservation/seat-reservation.d.ts.map +0 -1
  244. package/development/seat-reservation/seat-reservation.js +0 -11
  245. package/development/seat-reservation-navigation-coach.component-Be9CBw62.js +0 -428
  246. package/development/seat-reservation.component-B4BxXyLr.js +0 -464
  247. package/development/timetable-duration.component-CXF0oJbO.js +0 -100
  248. package/development/timetable-row.component-BCufuA05.js +0 -729
  249. package/pearl-chain-vertical.component-0EgQ4knk.js +0 -21
  250. package/seat-reservation/common.js +0 -9
  251. package/seat-reservation/seat-reservation-area.js +0 -4
  252. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -291
  253. package/seat-reservation/seat-reservation-graphic.js +0 -4
  254. package/seat-reservation/seat-reservation-navigation-coach.js +0 -4
  255. package/seat-reservation/seat-reservation-navigation-services.js +0 -4
  256. package/seat-reservation/seat-reservation-place-control.js +0 -4
  257. package/seat-reservation/seat-reservation-scoped.js +0 -4
  258. package/seat-reservation/seat-reservation.js +0 -5
  259. package/seat-reservation-navigation-coach.component-DgdpqMzG.js +0 -333
  260. package/seat-reservation.component-B_T6eTf6.js +0 -360
  261. package/timetable-duration.component-Bqo5N_De.js +0 -65
  262. package/timetable-row.component-a5CWXLAQ.js +0 -559
  263. /package/{core.css → lean-off-brand-theme.css} +0 -0
@@ -1,8 +1,6 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
3
- import { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
4
- import { isServer as i } from "lit";
5
- import { isArrowKeyOrPageKeysPressed as a } from "@sbb-esta/lyne-elements/core/a11y.js";
1
+ import { SbbElement as e, forceType as t, isArrowKeyOrPageKeysPressed as n } from "@sbb-esta/lyne-elements/core.js";
2
+ import { isServer as r } from "lit";
3
+ import { __esDecorate as i, __runInitializers as a } from "tslib";
6
4
  import { eventOptions as o, property as s, state as c } from "lit/decorators.js";
7
5
  import { mapCoachInfosToCoachSelection as l, mapIconToSvg as u, mapPlaceAndCoachToSeatReservationPlaceSelection as ee, mapPlaceInfosToPlaceSelection as te } from "../common/mapper.js";
8
6
  //#region src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts
@@ -18,47 +16,67 @@ var ne = 3, re = [
18
16
  "sa-fa",
19
17
  "sa-bz",
20
18
  "sa-rz"
21
- ], f = (() => {
22
- let f = n, p = [], m, h = [], g = [], _, v = [], y = [], b, x = [], S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], ie, M = [], N = [], P, F = [], I = [], L, R = [], z = [], B, V = [], H = [], U, W = [], G = [], K, q = [], J = [], Y, X = [], Z = [], Q, $ = [], ae = [], oe;
23
- return class extends f {
19
+ ], f = class extends Event {
20
+ get detail() {
21
+ return this._detail;
22
+ }
23
+ constructor(e) {
24
+ super("selectedplaces", {
25
+ bubbles: !0,
26
+ composed: !0
27
+ }), this._detail = e;
28
+ }
29
+ }, p = class extends Event {
30
+ get detail() {
31
+ return this._detail;
32
+ }
33
+ constructor(e) {
34
+ super("selectedcoach", {
35
+ bubbles: !0,
36
+ composed: !0
37
+ }), this._detail = e;
38
+ }
39
+ }, m = (() => {
40
+ let m = e, h = [], g, _ = [], v = [], y, b = [], x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, ie = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H, U = [], W = [], G, K = [], q = [], J, Y = [], X = [], Z, Q = [], $ = [], ae, oe = [], se = [], ce;
41
+ return class extends m {
24
42
  static {
25
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
26
- m = [s({
43
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
44
+ g = [s({
27
45
  attribute: "seat-reservations",
28
46
  type: Array
29
- })], _ = [s({
47
+ })], y = [s({
30
48
  attribute: "travel-direction",
31
49
  type: String
32
- })], b = [r(), s({
50
+ })], S = [t(), s({
33
51
  attribute: "has-navigation",
34
52
  type: Boolean
35
- })], C = [r(), s({
53
+ })], T = [t(), s({
36
54
  attribute: "align-vertical",
37
55
  type: Boolean,
38
56
  reflect: !0,
39
57
  useDefault: !0
40
- })], E = [r(), s({
58
+ })], O = [t(), s({
41
59
  attribute: "base-grid-size",
42
60
  type: Number
43
- })], k = [r(), s({
61
+ })], j = [t(), s({
44
62
  attribute: "height",
45
63
  type: Number
46
- })], ie = [r(), s({
64
+ })], N = [t(), s({
47
65
  attribute: "max-seat-reservations",
48
66
  type: Number
49
- })], P = [r(), s({
67
+ })], I = [t(), s({
50
68
  attribute: "max-bicycle-reservations",
51
69
  type: Number
52
- })], L = [r(), s({
70
+ })], z = [t(), s({
53
71
  attribute: "prevent-place-click",
54
72
  type: Boolean
55
- })], B = [r(), s({
73
+ })], H = [t(), s({
56
74
  attribute: "preselect-coach-index",
57
75
  type: Number
58
- })], U = [r(), s({
76
+ })], G = [t(), s({
59
77
  attribute: "show-title-info",
60
78
  type: Boolean
61
- })], K = [c()], Y = [c()], Q = [c()], oe = [o({ passive: !0 })], e(this, null, m, {
79
+ })], J = [c()], Z = [c()], ae = [c()], ce = [o({ passive: !0 })], i(this, null, g, {
62
80
  kind: "accessor",
63
81
  name: "seatReservations",
64
82
  static: !1,
@@ -70,8 +88,8 @@ var ne = 3, re = [
70
88
  e.seatReservations = t;
71
89
  }
72
90
  },
73
- metadata: t
74
- }, h, g), e(this, null, _, {
91
+ metadata: e
92
+ }, _, v), i(this, null, y, {
75
93
  kind: "accessor",
76
94
  name: "travelDirection",
77
95
  static: !1,
@@ -83,8 +101,8 @@ var ne = 3, re = [
83
101
  e.travelDirection = t;
84
102
  }
85
103
  },
86
- metadata: t
87
- }, v, y), e(this, null, b, {
104
+ metadata: e
105
+ }, b, x), i(this, null, S, {
88
106
  kind: "accessor",
89
107
  name: "hasNavigation",
90
108
  static: !1,
@@ -96,8 +114,8 @@ var ne = 3, re = [
96
114
  e.hasNavigation = t;
97
115
  }
98
116
  },
99
- metadata: t
100
- }, x, S), e(this, null, C, {
117
+ metadata: e
118
+ }, C, w), i(this, null, T, {
101
119
  kind: "accessor",
102
120
  name: "alignVertical",
103
121
  static: !1,
@@ -109,8 +127,8 @@ var ne = 3, re = [
109
127
  e.alignVertical = t;
110
128
  }
111
129
  },
112
- metadata: t
113
- }, w, T), e(this, null, E, {
130
+ metadata: e
131
+ }, E, D), i(this, null, O, {
114
132
  kind: "accessor",
115
133
  name: "baseGridSize",
116
134
  static: !1,
@@ -122,8 +140,8 @@ var ne = 3, re = [
122
140
  e.baseGridSize = t;
123
141
  }
124
142
  },
125
- metadata: t
126
- }, D, O), e(this, null, k, {
143
+ metadata: e
144
+ }, k, A), i(this, null, j, {
127
145
  kind: "accessor",
128
146
  name: "height",
129
147
  static: !1,
@@ -135,8 +153,8 @@ var ne = 3, re = [
135
153
  e.height = t;
136
154
  }
137
155
  },
138
- metadata: t
139
- }, A, j), e(this, null, ie, {
156
+ metadata: e
157
+ }, ie, M), i(this, null, N, {
140
158
  kind: "accessor",
141
159
  name: "maxSeatReservations",
142
160
  static: !1,
@@ -148,8 +166,8 @@ var ne = 3, re = [
148
166
  e.maxSeatReservations = t;
149
167
  }
150
168
  },
151
- metadata: t
152
- }, M, N), e(this, null, P, {
169
+ metadata: e
170
+ }, P, F), i(this, null, I, {
153
171
  kind: "accessor",
154
172
  name: "maxBicycleReservations",
155
173
  static: !1,
@@ -161,8 +179,8 @@ var ne = 3, re = [
161
179
  e.maxBicycleReservations = t;
162
180
  }
163
181
  },
164
- metadata: t
165
- }, F, I), e(this, null, L, {
182
+ metadata: e
183
+ }, L, R), i(this, null, z, {
166
184
  kind: "accessor",
167
185
  name: "preventPlaceClick",
168
186
  static: !1,
@@ -174,8 +192,8 @@ var ne = 3, re = [
174
192
  e.preventPlaceClick = t;
175
193
  }
176
194
  },
177
- metadata: t
178
- }, R, z), e(this, null, B, {
195
+ metadata: e
196
+ }, B, V), i(this, null, H, {
179
197
  kind: "accessor",
180
198
  name: "preselectCoachIndex",
181
199
  static: !1,
@@ -187,8 +205,8 @@ var ne = 3, re = [
187
205
  e.preselectCoachIndex = t;
188
206
  }
189
207
  },
190
- metadata: t
191
- }, V, H), e(this, null, U, {
208
+ metadata: e
209
+ }, U, W), i(this, null, G, {
192
210
  kind: "accessor",
193
211
  name: "showTitleInfo",
194
212
  static: !1,
@@ -200,8 +218,8 @@ var ne = 3, re = [
200
218
  e.showTitleInfo = t;
201
219
  }
202
220
  },
203
- metadata: t
204
- }, W, G), e(this, null, K, {
221
+ metadata: e
222
+ }, K, q), i(this, null, J, {
205
223
  kind: "accessor",
206
224
  name: "selectedCoachIndex",
207
225
  static: !1,
@@ -213,8 +231,8 @@ var ne = 3, re = [
213
231
  e.selectedCoachIndex = t;
214
232
  }
215
233
  },
216
- metadata: t
217
- }, q, J), e(this, null, Y, {
234
+ metadata: e
235
+ }, Y, X), i(this, null, Z, {
218
236
  kind: "accessor",
219
237
  name: "focusedCoachIndex",
220
238
  static: !1,
@@ -226,8 +244,8 @@ var ne = 3, re = [
226
244
  e.focusedCoachIndex = t;
227
245
  }
228
246
  },
229
- metadata: t
230
- }, X, Z), e(this, null, Q, {
247
+ metadata: e
248
+ }, Q, $), i(this, null, ae, {
231
249
  kind: "accessor",
232
250
  name: "hoveredCoachIndex",
233
251
  static: !1,
@@ -239,8 +257,8 @@ var ne = 3, re = [
239
257
  e.hoveredCoachIndex = t;
240
258
  }
241
259
  },
242
- metadata: t
243
- }, $, ae), e(this, null, oe, {
260
+ metadata: e
261
+ }, oe, se), i(this, null, ce, {
244
262
  kind: "method",
245
263
  name: "coachAreaScrollend",
246
264
  static: !1,
@@ -249,12 +267,12 @@ var ne = 3, re = [
249
267
  has: (e) => "coachAreaScrollend" in e,
250
268
  get: (e) => e.coachAreaScrollend
251
269
  },
252
- metadata: t
253
- }, null, p), t && Object.defineProperty(this, Symbol.metadata, {
270
+ metadata: e
271
+ }, null, h), e && Object.defineProperty(this, Symbol.metadata, {
254
272
  enumerable: !0,
255
273
  configurable: !0,
256
274
  writable: !0,
257
- value: t
275
+ value: e
258
276
  });
259
277
  }
260
278
  static {
@@ -362,7 +380,7 @@ var ne = 3, re = [
362
380
  this.#p = e;
363
381
  }
364
382
  constructor() {
365
- super(), this.#e = (t(this, p), t(this, h, null)), this.#t = (t(this, g), t(this, v, "NONE")), this.#n = (t(this, y), t(this, x, !0)), this.#r = (t(this, S), t(this, w, !1)), this.#i = (t(this, T), t(this, D, 16)), this.#a = (t(this, O), t(this, A, null)), this.#o = (t(this, j), t(this, M, -1)), this.#s = (t(this, N), t(this, F, -1)), this.#c = (t(this, I), t(this, R, !1)), this.#l = (t(this, z), t(this, V, -1)), this.#u = (t(this, H), t(this, W, !1)), this.#d = (t(this, G), t(this, q, -1)), this.#f = (t(this, J), t(this, X, -1)), this.#p = (t(this, Z), t(this, $, -1)), this.coachBorderPadding = (t(this, ae), 6), this.gapBetweenCoaches = 4, this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize, this.gapBetweenCoachDecks = 48, this.coachNavButtonDim = 0, this.globalAreaIconDim = {
383
+ super(), this.#e = (a(this, h), a(this, _, null)), this.#t = (a(this, v), a(this, b, "NONE")), this.#n = (a(this, x), a(this, C, !0)), this.#r = (a(this, w), a(this, E, !1)), this.#i = (a(this, D), a(this, k, 16)), this.#a = (a(this, A), a(this, ie, null)), this.#o = (a(this, M), a(this, P, -1)), this.#s = (a(this, F), a(this, L, -1)), this.#c = (a(this, R), a(this, B, !1)), this.#l = (a(this, V), a(this, U, -1)), this.#u = (a(this, W), a(this, K, !1)), this.#d = (a(this, q), a(this, Y, -1)), this.#f = (a(this, X), a(this, Q, -1)), this.#p = (a(this, $), a(this, oe, -1)), this.coachBorderPadding = (a(this, se), 6), this.gapBetweenCoaches = 4, this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize, this.gapBetweenCoachDecks = 48, this.coachNavButtonDim = 0, this.globalAreaIconDim = {
366
384
  w: 2,
367
385
  h: 2
368
386
  }, this.globalAreaIconPadding = .8, this.coachItemDetailsElements = [], this.currScrollDirection = d.right, this.maxCalcCoachesWidth = 0, this.scrollCoachesAreaWidth = 0, this.scrollNavigationAreaDim = 0, this.triggerCoachPositionsCollection = [], this.navigationScrollArea = null, this.coachScrollArea = null, this.currSelectedPlace = null, this.currSelectedPlaceElementId = null, this.currSelectedCoachIndex = -1, this.currSelectedDeckIndex = 0, this.preventCoachScrollByPlaceClick = !1, this.selectedSeatReservationPlaces = {
@@ -453,42 +471,42 @@ var ne = 3, re = [
453
471
  this._handleTabKeyNavigation(e, "navigation", t);
454
472
  return;
455
473
  }
456
- a(e) && this.keyboardSeatmapEventHandling(e);
474
+ n(e) && this.keyboardSeatmapEventHandling(e);
457
475
  }
458
476
  _handleTabKeyNavigation(e, t, n) {
459
477
  let r = e.key, i = e.shiftKey;
460
478
  r === this.keyboardNavigationEvents.Tab && (t == "navigation" ? (n == this.currSelectedCoachIndex ? !this.currSelectedPlace || !i || this.coachItemDetailsElements[n].isDriverArea || this.focusedCoachIndex == -1 ? this.focusedCoachIndex = n : i && this.currSelectedPlace && (this.focusedCoachIndex = -1, this.focusPlaceElement(this.currSelectedPlace)) : this.focusedCoachIndex = n, this._scrollToSelectedNavigationButton(n)) : t == "seatmap" && (e.preventDefault(), i ? this._navigateCoachNavigationByKeyboard("PREV_TAB") : this._navigateCoachNavigationByKeyboard("NEXT_TAB")));
461
479
  }
462
480
  keyboardSeatmapEventHandling(e) {
463
- let t = e.key === this.keyboardNavigationEvents.Tab, n = e.shiftKey && t;
464
- if (!this.hasNavigation && this.currSelectedCoachIndex === 0 && n || this.currSelectedCoachIndex === this.coachItemDetailsElements.length - 1 && t) return;
465
- let r = e.key;
466
- if (this.preventCoachScrollByPlaceClick = !1, !this.hasSeatReservationNativeFocus && (t || n) && (this.hasSeatReservationNativeFocus = !0), t) {
481
+ let t = e.key === this.keyboardNavigationEvents.Tab, r = e.shiftKey && t;
482
+ if (!this.hasNavigation && this.currSelectedCoachIndex === 0 && r || this.currSelectedCoachIndex === this.coachItemDetailsElements.length - 1 && t) return;
483
+ let i = e.key;
484
+ if (this.preventCoachScrollByPlaceClick = !1, !this.hasSeatReservationNativeFocus && (t || r) && (this.hasSeatReservationNativeFocus = !0), t) {
467
485
  this._handleTabKeyNavigation(e, "seatmap");
468
486
  return;
469
487
  }
470
- if (this.currSelectedCoachIndex !== -1 && a(e)) switch (e.preventDefault(), r) {
488
+ if (this.currSelectedCoachIndex !== -1 && n(e)) switch (e.preventDefault(), i) {
471
489
  case this.keyboardNavigationEvents.ArrowLeft:
472
490
  {
473
- let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowDown : r;
491
+ let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowDown : i;
474
492
  this._navigateToPlaceByKeyboard(e);
475
493
  }
476
494
  break;
477
495
  case this.keyboardNavigationEvents.ArrowRight:
478
496
  {
479
- let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowUp : r;
497
+ let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowUp : i;
480
498
  this._navigateToPlaceByKeyboard(e);
481
499
  }
482
500
  break;
483
501
  case this.keyboardNavigationEvents.ArrowUp:
484
502
  {
485
- let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowLeft : r;
503
+ let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowLeft : i;
486
504
  this._navigateToPlaceByKeyboard(e);
487
505
  }
488
506
  break;
489
507
  case this.keyboardNavigationEvents.ArrowDown:
490
508
  {
491
- let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowRight : r;
509
+ let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowRight : i;
492
510
  this._navigateToPlaceByKeyboard(e);
493
511
  }
494
512
  break;
@@ -663,11 +681,9 @@ var ne = 3, re = [
663
681
  }
664
682
  updateSelectedSeatReservationPlaces(e) {
665
683
  let t = e.placeType === "SEAT" ? "seats" : "bicycles", n = e.placeType === "SEAT" ? this.maxSeatReservations : this.maxBicycleReservations, r = this.selectedSeatReservationPlaces[t];
666
- this.selectedSeatReservationPlaces[t] = this._updateSelectedSeatReservationPlaces(r, n, e), this.dispatchEvent(new CustomEvent("selectedplaces", {
667
- bubbles: !0,
668
- composed: !0,
669
- detail: this.selectedSeatReservationPlaces
670
- }));
684
+ this.selectedSeatReservationPlaces[t] = this._updateSelectedSeatReservationPlaces(r, n, e);
685
+ let i = this.selectedSeatReservationPlaces;
686
+ this.dispatchEvent(new f(i));
671
687
  }
672
688
  _updateSelectedSeatReservationPlaces(e, t, n) {
673
689
  if (n.state === "SELECTED") {
@@ -694,11 +710,7 @@ var ne = 3, re = [
694
710
  if (this.currSelectedCoachIndex == this.selectedCoachIndex) return;
695
711
  this.focusedCoachIndex != -1 && (this.focusedCoachIndex = this.currSelectedCoachIndex), this.selectedCoachIndex = this.currSelectedCoachIndex;
696
712
  let e = this._getSeatReservationSelectedCoach(this.selectedCoachIndex);
697
- e && this.dispatchEvent(new CustomEvent("selectedcoach", {
698
- bubbles: !0,
699
- composed: !0,
700
- detail: e
701
- }));
713
+ e && this.dispatchEvent(new p(e));
702
714
  }
703
715
  getPlaceElementId(e, t, n) {
704
716
  return "seat-reservation__place-button-" + e + "-" + t + "-" + n;
@@ -752,7 +764,7 @@ var ne = 3, re = [
752
764
  this.currSelectedPlaceElementId = e ? this.getPlaceElementId(this.currSelectedDeckIndex, this.currSelectedCoachIndex, e.number) : null;
753
765
  }
754
766
  _determineBaseFontSize() {
755
- if (!i) {
767
+ if (!r) {
756
768
  let e = 1 / parseInt(window.getComputedStyle(document.body).fontSize, 10);
757
769
  this.style?.setProperty("--sbb-seat-reservation-one-px-rem", `${e + "rem"}`);
758
770
  }
@@ -911,4 +923,4 @@ var ne = 3, re = [
911
923
  };
912
924
  })();
913
925
  //#endregion
914
- export { f as SeatReservationBaseElement };
926
+ export { p as SbbSeatReservationSelectedCoachEvent, f as SbbSeatReservationSelectedPlacesEvent, m as SeatReservationBaseElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation.component-B_T6eTf6.js";
1
+ import { t as e } from "../../seat-reservation.component--0XnrCkk.js";
2
2
  export { e as SbbSeatReservationElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation-area.component-DZsXvaMQ.js";
1
+ import { t as e } from "../../seat-reservation-area.component-G9lHb7S8.js";
2
2
  export { e as SbbSeatReservationAreaElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation-graphic.component-BnJuHVZQ.js";
1
+ import { t as e } from "../../seat-reservation-graphic.component-BXFcQDxY.js";
2
2
  export { e as SbbSeatReservationGraphicElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation-navigation-coach.component-DgdpqMzG.js";
2
- export { e as SbbSeatReservationNavigationCoachElement };
1
+ import { n as e, t } from "../../seat-reservation-navigation-coach.component-BXy8EkJe.js";
2
+ export { t as SbbSeatReservationNavigationCoachElement, e as SbbSelectCoachEvent };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation-navigation-services.component-6ECATtWB.js";
1
+ import { t as e } from "../../seat-reservation-navigation-services.component-49XmV9rv.js";
2
2
  export { e as SbbSeatReservationNavigationServicesElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation-place-control.component-kx07J_YK.js";
2
- export { e as SbbSeatReservationPlaceControlElement };
1
+ import { n as e, t } from "../../seat-reservation-place-control.component-DToIW328.js";
2
+ export { t as SbbPlaceSelectionEvent, e as SbbSeatReservationPlaceControlElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../seat-reservation-scoped.component-L1wMt65t.js";
1
+ import { t as e } from "../../seat-reservation-scoped.component-D8dAmrP7.js";
2
2
  export { e as SbbSeatReservationScopedElement };
@@ -1,16 +1,14 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
3
- import { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
4
- import { boxSizingStyles as i } from "@sbb-esta/lyne-elements/core/styles.js";
5
- import { html as a, unsafeCSS as o } from "lit";
6
- import { property as s } from "lit/decorators.js";
1
+ import { SbbElement as e, forceType as t } from "@sbb-esta/lyne-elements/core.js";
2
+ import { html as n, unsafeCSS as r } from "lit";
3
+ import { __esDecorate as i, __runInitializers as a } from "tslib";
4
+ import { property as o } from "lit/decorators.js";
7
5
  //#region src/elements-experimental/seat-reservation/seat-reservation-area/seat-reservation-area.scss?inline
8
- var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width-4x);--sbb-seat-reservation-area-rotation: 0;--sbb-seat-reservation-area-z-index: 0;display:flex;justify-content:center;align-items:center;height:calc(var(--sbb-seat-reservation-area-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(var(--sbb-seat-reservation-area-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border:var(--sbb-border-width-1x) solid light-dark(var(--sbb-color-graphite),var(--sbb-color-granite));border-radius:var(--sbb-seat-reservation-area-border-radius);position:absolute;z-index:var(--sbb-seat-reservation-area-z-index);inset-block-start:calc(var(--sbb-seat-reservation-area-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-area-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));rotate:calc(var(--sbb-seat-reservation-area-rotation) * 1deg);line-height:normal;background-color:var(--sbb-background-color-2)}:host([background=dark]){background-color:var(--sbb-color-milk);background-color:light-dark(var(--sbb-color-milk),var(--sbb-color-iron))}:host([mounting=upper-border]){border-block-start-width:0;border-radius:0 0 var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius)}:host([mounting=lower-border]){border-block-end-width:0;border-radius:var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius) 0 0}:host([mounting=upper-to-lower-border]){border-block-start:none;border-block-end:none;border-radius:0}:host(.sbb-seat-reservation-area--cursor-pointer){cursor:var(--sbb-cursor-pointer)}", l = (() => {
9
- let l = n, u, d = [], f = [], p, m = [], h = [];
10
- return class extends l {
6
+ var s = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width-4x);--sbb-seat-reservation-area-rotation: 0;--sbb-seat-reservation-area-z-index: 0;display:flex;justify-content:center;align-items:center;height:calc(var(--sbb-seat-reservation-area-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(var(--sbb-seat-reservation-area-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border:var(--sbb-border-width-1x) solid light-dark(var(--sbb-color-graphite),var(--sbb-color-granite));border-radius:var(--sbb-seat-reservation-area-border-radius);position:absolute;z-index:var(--sbb-seat-reservation-area-z-index);inset-block-start:calc(var(--sbb-seat-reservation-area-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-area-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));rotate:calc(var(--sbb-seat-reservation-area-rotation) * 1deg);line-height:normal;background-color:var(--sbb-background-color-2)}:host([background=dark]){background-color:var(--sbb-color-milk);background-color:light-dark(var(--sbb-color-milk),var(--sbb-color-iron))}:host([mounting=upper-border]){border-block-start-width:0;border-radius:0 0 var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius)}:host([mounting=lower-border]){border-block-end-width:0;border-radius:var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius) 0 0}:host([mounting=upper-to-lower-border]){border-block-start:none;border-block-end:none;border-radius:0}:host(.sbb-seat-reservation-area--cursor-pointer){cursor:var(--sbb-cursor-pointer)}", c = (() => {
7
+ let c = e, l, u = [], d = [], f, p = [], m = [];
8
+ return class extends c {
11
9
  static {
12
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
13
- u = [r(), s({ reflect: !0 })], p = [r(), s({ reflect: !0 })], e(this, null, u, {
10
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
11
+ l = [t(), o({ reflect: !0 })], f = [t(), o({ reflect: !0 })], i(this, null, l, {
14
12
  kind: "accessor",
15
13
  name: "mounting",
16
14
  static: !1,
@@ -22,8 +20,8 @@ var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
22
20
  e.mounting = t;
23
21
  }
24
22
  },
25
- metadata: t
26
- }, d, f), e(this, null, p, {
23
+ metadata: e
24
+ }, u, d), i(this, null, f, {
27
25
  kind: "accessor",
28
26
  name: "background",
29
27
  static: !1,
@@ -35,28 +33,28 @@ var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
35
33
  e.background = t;
36
34
  }
37
35
  },
38
- metadata: t
39
- }, m, h), t && Object.defineProperty(this, Symbol.metadata, {
36
+ metadata: e
37
+ }, p, m), e && Object.defineProperty(this, Symbol.metadata, {
40
38
  enumerable: !0,
41
39
  configurable: !0,
42
40
  writable: !0,
43
- value: t
41
+ value: e
44
42
  });
45
43
  }
46
44
  static {
47
45
  this.elementName = "sbb-seat-reservation-area";
48
46
  }
49
47
  static {
50
- this.styles = [i, o(c)];
48
+ this.styles = [r(s)];
51
49
  }
52
- #e = t(this, d, "free");
50
+ #e = a(this, u, "free");
53
51
  get mounting() {
54
52
  return this.#e;
55
53
  }
56
54
  set mounting(e) {
57
55
  this.#e = e;
58
56
  }
59
- #t = (t(this, f), t(this, m, "light"));
57
+ #t = (a(this, d), a(this, p, "light"));
60
58
  get background() {
61
59
  return this.#t;
62
60
  }
@@ -64,12 +62,12 @@ var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
64
62
  this.#t = e;
65
63
  }
66
64
  render() {
67
- return a`<slot></slot>`;
65
+ return n`<slot></slot>`;
68
66
  }
69
67
  constructor() {
70
- super(...arguments), t(this, h);
68
+ super(...arguments), a(this, m);
71
69
  }
72
70
  };
73
71
  })();
74
72
  //#endregion
75
- export { l as t };
73
+ export { c as t };
@@ -1,27 +1,24 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
3
- import { SbbLanguageController as r } from "@sbb-esta/lyne-elements/core/controllers.js";
4
- import { forceType as i } from "@sbb-esta/lyne-elements/core/decorators.js";
5
- import { boxSizingStyles as a } from "@sbb-esta/lyne-elements/core/styles.js";
6
- import "@sbb-esta/lyne-elements/icon.js";
7
- import { html as o, isServer as s, unsafeCSS as c } from "lit";
1
+ import { SbbElement as e, SbbLanguageController as t, forceType as n } from "@sbb-esta/lyne-elements/core.js";
2
+ import { SbbIconElement as r } from "@sbb-esta/lyne-elements/icon.pure.js";
3
+ import { html as i, isServer as a, unsafeCSS as o } from "lit";
4
+ import { __esDecorate as s, __runInitializers as c } from "tslib";
8
5
  import { property as l } from "lit/decorators.js";
9
- import { mapIconToSvg as u } from "./seat-reservation/common/mapper.js";
10
- import { classMap as d } from "lit/directives/class-map.js";
6
+ import { classMap as u } from "lit/directives/class-map.js";
7
+ import { mapIconToSvg as d } from "./seat-reservation/common/mapper.js";
11
8
  import { getI18nSeatReservation as f } from "./seat-reservation/common/translations.js";
12
9
  //#region src/elements-experimental/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.scss?inline
13
10
  var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reservation-graphic-max-height: auto;--sbb-seat-reservation-graphic-width: 16;--sbb-seat-reservation-graphic-height: 16;--sbb-seat-reservation-graphic-rotation: 0;--sbb-seat-reservation-graphic-inverse-rotation: 0;--sbb-seat-reservation-graphic-padding-percent: 1;--sbb-seat-reservation-graphic-position: initial;--sbb-seat-reservation-graphic-z-index: 0;--sbb-seat-reservation-graphic-left: 0;--sbb-seat-reservation-graphic-top: 0;--sbb-icon-svg-width: calc( var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );--sbb-icon-svg-height: calc( var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:var(--sbb-seat-reservation-graphic-position);z-index:var(--sbb-seat-reservation-graphic-z-index);inset-inline-start:calc(var(--sbb-seat-reservation-graphic-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(var(--sbb-seat-reservation-graphic-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host(.auto-width){--sbb-icon-svg-width: auto;max-width:calc(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:auto}:host(.sbb-sr-graphic__dimension--square-dim){--sbb-icon-svg-width: min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));--sbb-icon-svg-height: min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));width:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent),min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));height:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent),min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)))}:host(.sbb-seat-reservation-graphic--cursor-pointer){cursor:var(--sbb-cursor-pointer)}.sbb-sr-icon,.sbb-sr-graphic{width:inherit;height:inherit;transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-graphite))}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-inverse-rotation) * 1deg)}@media(forced-colors:active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}.sbb-sr-graphic .no-bg{fill:transparent}}", m = (() => {
14
- let m = n, h, g = [], _ = [], v, y = [], b = [];
11
+ let m = e, h, g = [], _ = [], v, y = [], b = [];
15
12
  return class extends m {
16
13
  constructor() {
17
- super(...arguments), this.#e = t(this, g, ""), this.#t = (t(this, _), t(this, y, !1)), this._language = (t(this, b), new r(this));
14
+ super(...arguments), this.#e = c(this, g, ""), this.#t = (c(this, _), c(this, y, !1)), this._language = (c(this, b), new t(this));
18
15
  }
19
16
  static {
20
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
21
- h = [i(), l({ attribute: "name" })], v = [i(), l({
17
+ let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
18
+ h = [n(), l({ attribute: "name" })], v = [n(), l({
22
19
  attribute: "stretch",
23
20
  type: Boolean
24
- })], e(this, null, h, {
21
+ })], s(this, null, h, {
25
22
  kind: "accessor",
26
23
  name: "name",
27
24
  static: !1,
@@ -33,8 +30,8 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
33
30
  e.name = t;
34
31
  }
35
32
  },
36
- metadata: t
37
- }, g, _), e(this, null, v, {
33
+ metadata: e
34
+ }, g, _), s(this, null, v, {
38
35
  kind: "accessor",
39
36
  name: "stretch",
40
37
  static: !1,
@@ -46,19 +43,22 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
46
43
  e.stretch = t;
47
44
  }
48
45
  },
49
- metadata: t
50
- }, y, b), t && Object.defineProperty(this, Symbol.metadata, {
46
+ metadata: e
47
+ }, y, b), e && Object.defineProperty(this, Symbol.metadata, {
51
48
  enumerable: !0,
52
49
  configurable: !0,
53
50
  writable: !0,
54
- value: t
51
+ value: e
55
52
  });
56
53
  }
57
54
  static {
58
55
  this.elementName = "sbb-seat-reservation-graphic";
59
56
  }
60
57
  static {
61
- this.styles = [a, c(p)];
58
+ this.elementDependencies = [r];
59
+ }
60
+ static {
61
+ this.styles = [o(p)];
62
62
  }
63
63
  #e;
64
64
  get name() {
@@ -75,22 +75,22 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
75
75
  this.#t = e;
76
76
  }
77
77
  render() {
78
- let e = u[this.name];
79
- return !e?.svg && !e?.svgName ? null : o`<span
80
- class="${d({
78
+ let e = d[this.name];
79
+ return !e?.svg && !e?.svgName ? null : i`<span
80
+ class="${u({
81
81
  "sbb-sr-icon": !!e.svgName,
82
82
  "sbb-sr-graphic": !!e.svg
83
83
  })}"
84
84
  >
85
- ${e.svgName ? o` <sbb-icon
85
+ ${e.svgName ? i` <sbb-icon
86
86
  name="${e.svgName || ""}"
87
87
  aria-hidden="false"
88
88
  aria-label="${f(e.svgName, this._language.current)}"
89
- ></sbb-icon>` : o`${this._getSvgElement(e.svg)}`}
89
+ ></sbb-icon>` : i`${this._getSvgElement(e.svg)}`}
90
90
  </span>`;
91
91
  }
92
92
  _getSvgElement(e) {
93
- if (!s) {
93
+ if (!a) {
94
94
  let t = new DOMParser(), n = e || "<svg></svg>", r = t.parseFromString(n, "image/svg+xml").firstElementChild;
95
95
  return this.stretch && r?.nodeName.toLowerCase() === "svg" && r.setAttribute("preserveAspectRatio", "none"), r;
96
96
  }