@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773648089 → 4.7.0-dev.1773648663

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 (191) hide show
  1. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +65 -76
  2. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +72 -52
  3. package/autocomplete-grid/autocomplete-grid-button.js +3 -6
  4. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -17
  5. package/autocomplete-grid/autocomplete-grid-cell.js +4 -7
  6. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -21
  7. package/autocomplete-grid/autocomplete-grid-optgroup.js +3 -6
  8. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -33
  9. package/autocomplete-grid/autocomplete-grid-option.js +4 -9
  10. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -22
  11. package/autocomplete-grid/autocomplete-grid-row.js +4 -7
  12. package/autocomplete-grid/autocomplete-grid.js +3 -6
  13. package/autocomplete-grid-cell.component-Dak9wlBr.js +24 -0
  14. package/autocomplete-grid-option.component-DNRFHOwc.js +37 -0
  15. package/autocomplete-grid-row.component-DBHZQ0GQ.js +27 -0
  16. package/autocomplete-grid.js +9 -21
  17. package/autocomplete-grid.pure.js +7 -15
  18. package/core/datetime/date-helper.js +2 -191
  19. package/core/datetime.js +2 -5
  20. package/core/timetable/access-leg-helper.js +76 -71
  21. package/core/timetable/timetable-helper.js +9 -11
  22. package/core/timetable/timetable-properties.js +0 -1
  23. package/core/timetable.js +3 -7
  24. package/date-helper-CGproP5d.js +185 -0
  25. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +114 -122
  26. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +92 -70
  27. package/development/autocomplete-grid/autocomplete-grid-button.js +6 -4
  28. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -29
  29. package/development/autocomplete-grid/autocomplete-grid-cell.js +7 -5
  30. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +27 -22
  31. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +6 -4
  32. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -109
  33. package/development/autocomplete-grid/autocomplete-grid-option.js +7 -7
  34. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -91
  35. package/development/autocomplete-grid/autocomplete-grid-row.js +7 -5
  36. package/development/autocomplete-grid/autocomplete-grid.js +6 -4
  37. package/development/autocomplete-grid-cell.component-BBvM4o2H.js +42 -0
  38. package/development/autocomplete-grid-option.component-QzfM5eIE.js +123 -0
  39. package/development/autocomplete-grid-row.component-H8sCTCkT.js +104 -0
  40. package/development/autocomplete-grid.js +10 -14
  41. package/development/autocomplete-grid.pure.js +4 -13
  42. package/development/core/datetime/date-helper.js +2 -285
  43. package/development/core/datetime.js +2 -6
  44. package/development/core/timetable/access-leg-helper.js +104 -82
  45. package/development/core/timetable/timetable-helper.js +16 -17
  46. package/development/core/timetable/timetable-properties.js +0 -2
  47. package/development/core/timetable.js +3 -8
  48. package/development/date-helper-8_Y-PuHh.js +520 -0
  49. package/development/differenceInMinutes-DN_1Rk3O.js +110 -0
  50. package/development/format-Bbrn2bgo.js +1848 -0
  51. package/development/isValid-C-HzKv4v.js +178 -0
  52. package/development/journey-summary/journey-summary.component.js +2 -288
  53. package/development/journey-summary.component-uGhZvA4p.js +385 -0
  54. package/development/journey-summary.js +8 -5
  55. package/development/journey-summary.pure.js +2 -5
  56. package/development/mapper-hWWm7Uke.js +11454 -0
  57. package/development/pearl-chain/pearl-chain.component.js +2 -634
  58. package/development/pearl-chain-time/pearl-chain-time.component.js +2 -306
  59. package/development/pearl-chain-time.component-B8mayTWD.js +415 -0
  60. package/development/pearl-chain-time.js +8 -5
  61. package/development/pearl-chain-time.pure.js +2 -5
  62. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -28
  63. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -393
  64. package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +435 -0
  65. package/development/pearl-chain-vertical-item.js +8 -5
  66. package/development/pearl-chain-vertical-item.pure.js +2 -5
  67. package/development/pearl-chain-vertical.component-CswE7b3M.js +39 -0
  68. package/development/pearl-chain-vertical.js +8 -5
  69. package/development/pearl-chain-vertical.pure.js +2 -5
  70. package/development/pearl-chain.component-wpsTvoSe.js +704 -0
  71. package/development/pearl-chain.js +8 -5
  72. package/development/pearl-chain.pure.js +2 -5
  73. package/development/seat-reservation/common/mapper/icon-mapper.js +168 -71
  74. package/development/seat-reservation/common/mapper/mapper.js +2 -11429
  75. package/development/seat-reservation/common/mapper.js +2 -9
  76. package/development/seat-reservation/common/svgs.js +2 -46
  77. package/development/seat-reservation/common/translations/i18n.js +1118 -900
  78. package/development/seat-reservation/common/translations.js +1 -4
  79. package/development/seat-reservation/common/types.js +0 -2
  80. package/development/seat-reservation/common.js +8 -12
  81. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1307 -1231
  82. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +2 -862
  83. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -106
  84. package/development/seat-reservation/seat-reservation-area.js +7 -5
  85. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +35 -34
  86. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -162
  87. package/development/seat-reservation/seat-reservation-graphic.js +7 -5
  88. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -713
  89. package/development/seat-reservation/seat-reservation-navigation-coach.js +7 -5
  90. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -131
  91. package/development/seat-reservation/seat-reservation-navigation-services.js +7 -5
  92. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -601
  93. package/development/seat-reservation/seat-reservation-place-control.js +7 -5
  94. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -22
  95. package/development/seat-reservation/seat-reservation-scoped.js +7 -5
  96. package/development/seat-reservation/seat-reservation.js +7 -6
  97. package/development/seat-reservation-area.component-ORuli_DC.js +138 -0
  98. package/development/seat-reservation-graphic.component-lZXqHWIz.js +193 -0
  99. package/development/seat-reservation-navigation-coach.component-D2QXTMJJ.js +828 -0
  100. package/development/seat-reservation-navigation-services.component-Bg1adRlU.js +179 -0
  101. package/development/seat-reservation-place-control.component-CwUX-QYO.js +726 -0
  102. package/development/seat-reservation-scoped.component-uLT33P9y.js +31 -0
  103. package/development/seat-reservation.component-MOv5kHDC.js +821 -0
  104. package/development/seat-reservation.js +16 -29
  105. package/development/seat-reservation.pure.js +11 -29
  106. package/development/svgs-kDpBCto5.js +28 -0
  107. package/development/timetable-duration/timetable-duration.component.js +2 -108
  108. package/development/timetable-duration.component-D21SXsQq.js +125 -0
  109. package/development/timetable-duration.js +8 -5
  110. package/development/timetable-duration.pure.js +2 -5
  111. package/development/timetable-row/timetable-row.component.js +2 -781
  112. package/development/timetable-row.component-Y5w8vEwP.js +932 -0
  113. package/development/timetable-row.js +8 -13
  114. package/development/timetable-row.pure.js +2 -12
  115. package/development/toDate-Biiv3kyf.js +150 -0
  116. package/differenceInMinutes-Dr9gRqtu.js +27 -0
  117. package/format-CM5exOsN.js +1103 -0
  118. package/isValid-B9oVW3lA.js +36 -0
  119. package/journey-summary/journey-summary.component.js +2 -194
  120. package/journey-summary.component-Cq_4kaOp.js +264 -0
  121. package/journey-summary.js +5 -4
  122. package/journey-summary.pure.js +2 -4
  123. package/mapper-DkiDDseD.js +11382 -0
  124. package/package.json +2 -2
  125. package/pearl-chain/pearl-chain.component.js +2 -165
  126. package/pearl-chain-time/pearl-chain-time.component.js +2 -157
  127. package/pearl-chain-time.component-DGDW5S1c.js +239 -0
  128. package/pearl-chain-time.js +5 -4
  129. package/pearl-chain-time.pure.js +2 -4
  130. package/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -17
  131. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -77
  132. package/pearl-chain-vertical-item.component-G22bWhLU.js +108 -0
  133. package/pearl-chain-vertical-item.js +5 -4
  134. package/pearl-chain-vertical-item.pure.js +2 -4
  135. package/pearl-chain-vertical.component-CXIDT5RD.js +21 -0
  136. package/pearl-chain-vertical.js +5 -4
  137. package/pearl-chain-vertical.pure.js +2 -4
  138. package/pearl-chain.component-DmjkVIva.js +194 -0
  139. package/pearl-chain.js +5 -4
  140. package/pearl-chain.pure.js +2 -4
  141. package/seat-reservation/common/mapper/icon-mapper.js +71 -71
  142. package/seat-reservation/common/mapper/mapper.js +2 -11386
  143. package/seat-reservation/common/mapper.js +3 -9
  144. package/seat-reservation/common/svgs.js +2 -242
  145. package/seat-reservation/common/translations/i18n.js +1084 -891
  146. package/seat-reservation/common/translations.js +2 -4
  147. package/seat-reservation/common/types.js +0 -1
  148. package/seat-reservation/common.js +9 -15
  149. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +834 -812
  150. package/seat-reservation/seat-reservation/seat-reservation.component.js +2 -420
  151. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -51
  152. package/seat-reservation/seat-reservation-area.js +4 -7
  153. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +68 -71
  154. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -75
  155. package/seat-reservation/seat-reservation-graphic.js +4 -7
  156. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -234
  157. package/seat-reservation/seat-reservation-navigation-coach.js +4 -7
  158. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -85
  159. package/seat-reservation/seat-reservation-navigation-services.js +4 -7
  160. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -203
  161. package/seat-reservation/seat-reservation-place-control.js +4 -7
  162. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -13
  163. package/seat-reservation/seat-reservation-scoped.js +4 -7
  164. package/seat-reservation/seat-reservation.js +5 -9
  165. package/seat-reservation-area.component-COD6CXhP.js +75 -0
  166. package/seat-reservation-graphic.component-BNfU5tQM.js +102 -0
  167. package/seat-reservation-navigation-coach.component-Bh9ILq60.js +333 -0
  168. package/seat-reservation-navigation-services.component-QL0UnilZ.js +127 -0
  169. package/seat-reservation-place-control.component-BfnZUyHv.js +322 -0
  170. package/seat-reservation-scoped.component-CY04BT_4.js +17 -0
  171. package/seat-reservation.component-zrQHTRl3.js +364 -0
  172. package/seat-reservation.js +17 -39
  173. package/seat-reservation.pure.js +15 -32
  174. package/svgs-D5DhLHxC.js +26 -0
  175. package/timetable-duration/timetable-duration.component.js +2 -57
  176. package/timetable-duration.component-DaYoJUGS.js +65 -0
  177. package/timetable-duration.js +5 -4
  178. package/timetable-duration.pure.js +2 -4
  179. package/timetable-row/timetable-row.component.js +2 -427
  180. package/timetable-row.component-BDMAEsbR.js +559 -0
  181. package/timetable-row.js +6 -13
  182. package/timetable-row.pure.js +2 -11
  183. package/toDate-p-Tpkb7t.js +16 -0
  184. package/development/differenceInMinutes-B0dawX-5.js +0 -26
  185. package/development/format-BMkeaqaF.js +0 -1433
  186. package/development/isValid-BYRch7pV.js +0 -53
  187. package/development/toDate-BWb6Z1JD.js +0 -24
  188. package/differenceInMinutes-COvvdYsJ.js +0 -23
  189. package/format-CmKROkbc.js +0 -1186
  190. package/isValid-m3_OsPaB.js +0 -45
  191. package/toDate-Bw2KTWeq.js +0 -15
@@ -1,16 +1,24 @@
1
- import { html as d } from "lit";
2
- import { unsafeHTML as A } from "lit/directives/unsafe-html.js";
1
+ import { t as e } from "../../seat-reservation-graphic.component-BNfU5tQM.js";
2
+ import { html as t } from "lit";
3
+ import { unsafeHTML as n } from "lit/directives/unsafe-html.js";
3
4
  import { mapIconToSvg as r } from "../common/mapper.js";
4
- import { SbbSeatReservationAreaElement as a } from "../seat-reservation-area/seat-reservation-area.component.js";
5
- import { SbbSeatReservationGraphicElement as E } from "./seat-reservation-graphic.component.js";
5
+ import { SbbSeatReservationAreaElement as i } from "../seat-reservation-area/seat-reservation-area.component.js";
6
6
  import "@sbb-esta/lyne-elements/table.js";
7
- E.define();
8
- a.define();
9
- const s = (e) => d`
7
+ e.define(), i.define();
8
+ var a = (e) => t`
10
9
  <div class="story-asset">
11
- <span class="story-asset__preview">${A(e)}</span>
10
+ <span class="story-asset__preview">${n(e)}</span>
12
11
  </div>
13
- `, t = (e) => r[e]?.svg ? s(r[e].svg) : r[e]?.svgName ? d`<sbb-icon name="${r[e].svgName}"></sbb-icon>` : null, _ = d`
12
+ `, o = (e) => r[e]?.svg ? a(r[e].svg) : r[e]?.svgName ? t`<sbb-icon name="${r[e].svgName}"></sbb-icon>` : null, s = t`
13
+ <style>
14
+ .story-asset {
15
+ width: max-content;
16
+ background-color: var(--sbb-color-white);
17
+ }
18
+ </style>
19
+ <h1>List of all currently available assets.</h1>
20
+ <h2>Interior</h2>
21
+ ${t`
14
22
  <sbb-table-wrapper>
15
23
  <table class="sbb-table">
16
24
  <thead>
@@ -22,49 +30,51 @@ const s = (e) => d`
22
30
  </thead>
23
31
  <tbody>
24
32
  <tr>
25
- <td>${t("PLACE_BICYCLE_FREE")}</td>
33
+ <td>${o("PLACE_BICYCLE_FREE")}</td>
26
34
  <td>Place-Bike: Available</td>
27
35
  <td>PLACE_BICYCLE_FREE</td>
28
36
  </tr>
29
37
  <tr>
30
- <td>${t("PLACE_BICYCLE_SELECTED")}</td>
38
+ <td>${o("PLACE_BICYCLE_SELECTED")}</td>
31
39
  <td>Place-Bike: Selected</td>
32
40
  <td>PLACE_BICYCLE_SELECTED</td>
33
41
  </tr>
34
42
  <tr>
35
- <td>${t("PLACE_BICYCLE_ALLOCATED")}</td>
43
+ <td>${o("PLACE_BICYCLE_ALLOCATED")}</td>
36
44
  <td>Place-Bike: Unavailable</td>
37
45
  <td>PLACE_BICYCLE_ALLOCATED</td>
38
46
  </tr>
39
47
  <tr>
40
- <td>${t("PLACE_BICYCLE_RESTRICTED")}</td>
48
+ <td>${o("PLACE_BICYCLE_RESTRICTED")}</td>
41
49
  <td>Place-Bike: Not bookable</td>
42
50
  <td>PLACE_BICYCLE_RESTRICTED</td>
43
51
  </tr>
44
52
  <tr>
45
- <td>${t("PLACE_SEAT_FREE")}</td>
53
+ <td>${o("PLACE_SEAT_FREE")}</td>
46
54
  <td>Place-Seat: Available</td>
47
55
  <td>PLACE_SEAT_FREE</td>
48
56
  </tr>
49
57
  <tr>
50
- <td>${t("PLACE_SEAT_SELECTED")}</td>
58
+ <td>${o("PLACE_SEAT_SELECTED")}</td>
51
59
  <td>Place-Seat: Selected</td>
52
60
  <td>PLACE_SEAT_SELECTED</td>
53
61
  </tr>
54
62
  <tr>
55
- <td>${t("PLACE_SEAT_ALLOCATED")}</td>
63
+ <td>${o("PLACE_SEAT_ALLOCATED")}</td>
56
64
  <td>Place-Seat: Unavailable</td>
57
65
  <td>PLACE_SEAT_ALLOCATED</td>
58
66
  </tr>
59
67
  <tr>
60
- <td>${t("PLACE_SEAT_RESTRICTED")}</td>
68
+ <td>${o("PLACE_SEAT_RESTRICTED")}</td>
61
69
  <td>Place-Seat: Not bookable</td>
62
70
  <td>PLACE_SEAT_RESTRICTED</td>
63
71
  </tr>
64
72
  </tbody>
65
73
  </table>
66
74
  </sbb-table-wrapper>
67
- `, l = d`
75
+ `}
76
+ <h2>Layout</h2>
77
+ ${t`
68
78
  <sbb-table-wrapper>
69
79
  <table class="sbb-table">
70
80
  <thead>
@@ -76,64 +86,66 @@ const s = (e) => d`
76
86
  </thead>
77
87
  <tbody>
78
88
  <tr>
79
- <td>${t("EASY_ACCESS_AREA")}</td>
89
+ <td>${o("EASY_ACCESS_AREA")}</td>
80
90
  <td>Easy Access Area</td>
81
91
  <td>EASY_ACCESS_AREA</td>
82
92
  </tr>
83
93
  <tr>
84
- <td>${t("ENTRY_EXIT")}</td>
94
+ <td>${o("ENTRY_EXIT")}</td>
85
95
  <td>Entrance</td>
86
96
  <td>ENTRY_EXIT</td>
87
97
  </tr>
88
98
  <tr>
89
- <td>${t("LUGGAGE_AREA")}</td>
99
+ <td>${o("LUGGAGE_AREA")}</td>
90
100
  <td>Luggage</td>
91
101
  <td>LUGGAGE_AREA</td>
92
102
  </tr>
93
103
  <tr>
94
- <td>${t("MULTI_FUNCTION_AREA")}</td>
104
+ <td>${o("MULTI_FUNCTION_AREA")}</td>
95
105
  <td>Multi Function Area</td>
96
106
  <td>MULTI_FUNCTION_AREA</td>
97
107
  </tr>
98
108
  <tr>
99
- <td>${t("PLAYGROUND_AREA")}</td>
109
+ <td>${o("PLAYGROUND_AREA")}</td>
100
110
  <td>Playground</td>
101
111
  <td>PLAYGROUND_AREA</td>
102
112
  </tr>
103
113
  <tr>
104
- <td>${t("PRAM_AREA")}</td>
114
+ <td>${o("PRAM_AREA")}</td>
105
115
  <td>Pram</td>
106
116
  <td>PRAM_AREA</td>
107
117
  </tr>
108
118
  <tr>
109
- <td>${t("SKI_AREA")}</td>
119
+ <td>${o("SKI_AREA")}</td>
110
120
  <td>Ski</td>
111
121
  <td>SKI_AREA</td>
112
122
  </tr>
113
123
  <tr>
114
- <td>${t("STAIR_AREA")}</td>
124
+ <td>${o("STAIR_AREA")}</td>
115
125
  <td>Stair</td>
116
126
  <td>STAIR_AREA</td>
117
127
  </tr>
118
128
  <tr>
119
- <td>${t("TOILET_AREA")}</td>
129
+ <td>${o("TOILET_AREA")}</td>
120
130
  <td>Toilet</td>
121
131
  <td>TOILET_AREA</td>
122
132
  </tr>
123
133
  <tr>
124
- <td>${t("TOILET_WHEELCHAIR_AREA")}</td>
134
+ <td>${o("TOILET_WHEELCHAIR_AREA")}</td>
125
135
  <td>Toilet-Handicap</td>
126
136
  <td>TOILET_WHEELCHAIR_AREA</td>
127
137
  </tr>
128
138
  <tr>
129
- <td>${t("WARDROBE_AREA")}</td>
139
+ <td>${o("WARDROBE_AREA")}</td>
130
140
  <td>Wardrobe</td>
131
141
  <td>WARDROBE_AREA</td>
132
142
  </tr>
133
143
  </tbody>
134
144
  </table>
135
145
  </sbb-table-wrapper>
136
- `, o = d`
146
+ `}
147
+ <h2>Service Icons</h2>
148
+ ${t`
137
149
  <sbb-table-wrapper>
138
150
  <table aria-label="Available Service Icons" class="sbb-table">
139
151
  <thead>
@@ -145,69 +157,71 @@ const s = (e) => d`
145
157
  </thead>
146
158
  <tbody>
147
159
  <tr>
148
- <td>${t("BISTRO")}</td>
160
+ <td>${o("BISTRO")}</td>
149
161
  <td>Bistro</td>
150
162
  <td>BISTRO</td>
151
163
  </tr>
152
164
  <tr>
153
- <td>${t("BUSINESS")}</td>
165
+ <td>${o("BUSINESS")}</td>
154
166
  <td>Business</td>
155
167
  <td>BUSINESS</td>
156
168
  </tr>
157
169
  <tr>
158
- <td>${t("PLAYGROUND_ICON")}</td>
170
+ <td>${o("PLAYGROUND_ICON")}</td>
159
171
  <td>Family</td>
160
172
  <td>PLAYGROUND_ICON</td>
161
173
  </tr>
162
174
  <tr>
163
- <td>${t("LUGGAGE_AREA")}</td>
175
+ <td>${o("LUGGAGE_AREA")}</td>
164
176
  <td>Luggage</td>
165
177
  <td>LUGGAGE_AREA</td>
166
178
  </tr>
167
179
  <tr>
168
- <td>${t("PRAM_ICON")}</td>
180
+ <td>${o("PRAM_ICON")}</td>
169
181
  <td>Pram</td>
170
182
  <td>PRAM_ICON</td>
171
183
  </tr>
172
184
  <tr>
173
- <td>${t("EASY_ACCESS_AREA")}</td>
185
+ <td>${o("EASY_ACCESS_AREA")}</td>
174
186
  <td>Easy Access Area</td>
175
187
  <td>EASY_ACCESS_AREA</td>
176
188
  </tr>
177
189
  <tr>
178
- <td>${t("RESTAURANT_ICON")}</td>
190
+ <td>${o("RESTAURANT_ICON")}</td>
179
191
  <td>Restaurant</td>
180
192
  <td>RESTAURANT_ICON</td>
181
193
  </tr>
182
194
  <tr>
183
- <td>${t("SILENCE_AREA_ICON")}</td>
195
+ <td>${o("SILENCE_AREA_ICON")}</td>
184
196
  <td>Silence</td>
185
197
  <td>SILENCE_AREA_ICON</td>
186
198
  </tr>
187
199
  <tr>
188
- <td>${t("TOILET_AREA")}</td>
200
+ <td>${o("TOILET_AREA")}</td>
189
201
  <td>Toilet</td>
190
202
  <td>TOILET_AREA</td>
191
203
  </tr>
192
204
  <tr>
193
- <td>${t("TOILET_WHEELCHAIR_AREA")}</td>
205
+ <td>${o("TOILET_WHEELCHAIR_AREA")}</td>
194
206
  <td>Toilet-PRM</td>
195
207
  <td>TOILET_WHEELCHAIR_AREA</td>
196
208
  </tr>
197
209
  <tr>
198
- <td>${t("WHEELCHAIR_ICON")}</td>
210
+ <td>${o("WHEELCHAIR_ICON")}</td>
199
211
  <td>Wheelchair</td>
200
212
  <td>WHEELCHAIR_ICON</td>
201
213
  </tr>
202
214
  <tr>
203
- <td>${t("WIFI")}</td>
215
+ <td>${o("WIFI")}</td>
204
216
  <td>Wifi</td>
205
217
  <td>WIFI</td>
206
218
  </tr>
207
219
  </tbody>
208
220
  </table>
209
221
  </sbb-table-wrapper>
210
- `, R = d`
222
+ `}
223
+ <h2>Chassis</h2>
224
+ ${t`
211
225
  <sbb-table-wrapper>
212
226
  <table class="sbb-table">
213
227
  <thead>
@@ -219,37 +233,37 @@ const s = (e) => d`
219
233
  </thead>
220
234
  <tbody>
221
235
  <tr>
222
- <td>${t("DRIVER_AREA_TRAIN")}</td>
236
+ <td>${o("DRIVER_AREA_TRAIN")}</td>
223
237
  <td>Driver Area<br />(Dependent on Vehicle-Type: TRAIN)</td>
224
238
  <td>DRIVER_AREA</td>
225
239
  </tr>
226
240
  <tr>
227
- <td>${t("DRIVER_AREA_BUS")}</td>
241
+ <td>${o("DRIVER_AREA_BUS")}</td>
228
242
  <td>Driver Area<br />(Dependent on Vehicle-Type: BUS)</td>
229
243
  <td>DRIVER_AREA</td>
230
244
  </tr>
231
245
  <tr>
232
- <td>${t("COMPARTMENT_PASSAGE_HIGH")}</td>
246
+ <td>${o("COMPARTMENT_PASSAGE_HIGH")}</td>
233
247
  <td>Compartment Passage High</td>
234
248
  <td>COMPARTMENT_PASSAGE_HIGH</td>
235
249
  </tr>
236
250
  <tr>
237
- <td>${t("COMPARTMENT_PASSAGE")}</td>
251
+ <td>${o("COMPARTMENT_PASSAGE")}</td>
238
252
  <td>Compartment Passage</td>
239
253
  <td>COMPARTMENT_PASSAGE</td>
240
254
  </tr>
241
255
  <tr>
242
- <td>${t("COMPARTMENT_PASSAGE_LOW")}</td>
256
+ <td>${o("COMPARTMENT_PASSAGE_LOW")}</td>
243
257
  <td>Compartment Passage Low</td>
244
258
  <td>COMPARTMENT_PASSAGE_LOW</td>
245
259
  </tr>
246
260
  <tr>
247
- <td>${t("COACH_PASSAGE")}</td>
261
+ <td>${o("COACH_PASSAGE")}</td>
248
262
  <td>Coach Passage</td>
249
263
  <td>COACH_PASSAGE</td>
250
264
  </tr>
251
265
  <tr>
252
- <td>${t("COMPARTMENT_WALL")}</td>
266
+ <td>${o("COMPARTMENT_WALL")}</td>
253
267
  <td>Compartment Wall</td>
254
268
  <td>COMPARTMENT_WALL</td>
255
269
  </tr>
@@ -264,31 +278,14 @@ const s = (e) => d`
264
278
  <td>TABLE_RESTAURANT</td>
265
279
  </tr>
266
280
  <tr>
267
- <td>${t("COACH_WALL_NO_PASSAGE")}</td>
281
+ <td>${o("COACH_WALL_NO_PASSAGE")}</td>
268
282
  <td>Coach Wall No Passage</td>
269
283
  <td>COACH_WALL_NO_PASSAGE</td>
270
284
  </tr>
271
285
  </tbody>
272
286
  </table>
273
287
  </sbb-table-wrapper>
274
- `, i = d`
275
- <style>
276
- .story-asset {
277
- width: max-content;
278
- background-color: var(--sbb-color-white);
279
- }
280
- </style>
281
- <h1>List of all currently available assets.</h1>
282
- <h2>Interior</h2>
283
- ${_}
284
- <h2>Layout</h2>
285
- ${l}
286
- <h2>Service Icons</h2>
287
- ${o}
288
- <h2>Chassis</h2>
289
- ${R}
288
+ `}
290
289
  `;
291
- export {
292
- i as assetsTemplate,
293
- t as svgImageByOSDMCode
294
- };
290
+ //#endregion
291
+ export { s as assetsTemplate, o as svgImageByOSDMCode };
@@ -1,75 +1,2 @@
1
- var _ = (t) => {
2
- throw TypeError(t);
3
- };
4
- var x = (t, r, s) => r.has(t) || _("Cannot " + s);
5
- var m = (t, r, s) => (x(t, r, "read from private field"), s ? s.call(t) : r.get(t)), v = (t, r, s) => r.has(t) ? _("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, s), h = (t, r, s, c) => (x(t, r, "write to private field"), c ? c.call(t, s) : r.set(t, s), s);
6
- import { __runInitializers as l, __esDecorate as w } from "tslib";
7
- import { SbbElement as N } from "@sbb-esta/lyne-elements/core/base-elements.js";
8
- import { SbbLanguageController as z } from "@sbb-esta/lyne-elements/core/controllers.js";
9
- import { forceType as y } from "@sbb-esta/lyne-elements/core/decorators.js";
10
- import { boxSizingStyles as I } from "@sbb-esta/lyne-elements/core/styles.js";
11
- import { css as $, html as p, isServer as j } from "lit";
12
- import { property as S } from "lit/decorators.js";
13
- import { classMap as k } from "lit/directives/class-map.js";
14
- import { mapIconToSvg as O } from "../common/mapper.js";
15
- import { getI18nSeatReservation as C } from "../common/translations.js";
16
- import "@sbb-esta/lyne-elements/icon.js";
17
- const A = $`:host{--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-position: initial;--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);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-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}}`;
18
- let U = (() => {
19
- var o, n, i;
20
- let t = N, r, s = [], c = [], u, f = [], d = [];
21
- return i = class extends t {
22
- constructor() {
23
- super(...arguments);
24
- v(this, o);
25
- v(this, n);
26
- h(this, o, l(this, s, "")), h(this, n, (l(this, c), l(this, f, !1))), this._language = (l(this, d), new z(this));
27
- }
28
- /** Name of the SVG graphic to be displayed. */
29
- get name() {
30
- return m(this, o);
31
- }
32
- set name(e) {
33
- h(this, o, e);
34
- }
35
- /** if true, scale the graphic content of the given element non-uniformly if necessary */
36
- get stretch() {
37
- return m(this, n);
38
- }
39
- set stretch(e) {
40
- h(this, n, e);
41
- }
42
- render() {
43
- const e = O[this.name];
44
- return !e?.svg && !e?.svgName ? null : p`<span
45
- class="${k({
46
- "sbb-sr-icon": !!e.svgName,
47
- "sbb-sr-graphic": !!e.svg
48
- })}"
49
- >
50
- ${e.svgName ? p` <sbb-icon
51
- name="${e.svgName || ""}"
52
- aria-hidden="false"
53
- aria-label="${C(e.svgName, this._language.current)}"
54
- ></sbb-icon>` : p`${this._getSvgElement(e.svg)}`}
55
- </span>`;
56
- }
57
- _getSvgElement(e) {
58
- if (!j) {
59
- const a = new DOMParser(), b = e || "<svg></svg>", g = a.parseFromString(b, "image/svg+xml").firstElementChild;
60
- return this.stretch && g?.nodeName.toLowerCase() === "svg" && g.setAttribute("preserveAspectRatio", "none"), g;
61
- }
62
- return null;
63
- }
64
- }, o = new WeakMap(), n = new WeakMap(), (() => {
65
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(t[Symbol.metadata] ?? null) : void 0;
66
- r = [y(), S({ attribute: "name" })], u = [y(), S({ attribute: "stretch", type: Boolean })], w(i, null, r, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (a) => "name" in a, get: (a) => a.name, set: (a, b) => {
67
- a.name = b;
68
- } }, metadata: e }, s, c), w(i, null, u, { kind: "accessor", name: "stretch", static: !1, private: !1, access: { has: (a) => "stretch" in a, get: (a) => a.stretch, set: (a, b) => {
69
- a.stretch = b;
70
- } }, metadata: e }, f, d), e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
71
- })(), i.elementName = "sbb-seat-reservation-graphic", i.styles = [I, A], i;
72
- })();
73
- export {
74
- U as SbbSeatReservationGraphicElement
75
- };
1
+ import { t as e } from "../../seat-reservation-graphic.component-BNfU5tQM.js";
2
+ export { e as SbbSeatReservationGraphicElement };
@@ -1,7 +1,4 @@
1
- import { SbbSeatReservationGraphicElement as e } from "./seat-reservation-graphic/seat-reservation-graphic.component.js";
2
- e.define();
3
- console.warn(`The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-graphic.js' has been deprecated.
4
- Use either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.`);
5
- export {
6
- e as SbbSeatReservationGraphicElement
7
- };
1
+ import { t as e } from "../seat-reservation-graphic.component-BNfU5tQM.js";
2
+ e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-graphic.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
3
+ //#endregion
4
+ export { e as SbbSeatReservationGraphicElement };