@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773388997 → 4.7.0-dev.1773393170
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.
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +76 -65
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +52 -72
- package/autocomplete-grid/autocomplete-grid-button.js +6 -3
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +17 -2
- package/autocomplete-grid/autocomplete-grid-cell.js +7 -4
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +21 -20
- package/autocomplete-grid/autocomplete-grid-optgroup.js +6 -3
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +33 -2
- package/autocomplete-grid/autocomplete-grid-option.js +9 -4
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +22 -2
- package/autocomplete-grid/autocomplete-grid-row.js +7 -4
- package/autocomplete-grid/autocomplete-grid.js +6 -3
- package/autocomplete-grid.js +21 -9
- package/autocomplete-grid.pure.js +15 -7
- package/core/datetime/date-helper.js +191 -2
- package/core/datetime.js +5 -2
- package/core/timetable/access-leg-helper.js +71 -76
- package/core/timetable/timetable-helper.js +11 -9
- package/core/timetable/timetable-properties.js +1 -0
- package/core/timetable.js +7 -3
- package/custom-elements.json +84 -84
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +122 -114
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +70 -92
- package/development/autocomplete-grid/autocomplete-grid-button.js +4 -6
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +29 -2
- package/development/autocomplete-grid/autocomplete-grid-cell.js +5 -7
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +22 -27
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +4 -6
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +109 -2
- package/development/autocomplete-grid/autocomplete-grid-option.js +7 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +91 -2
- package/development/autocomplete-grid/autocomplete-grid-row.js +5 -7
- package/development/autocomplete-grid/autocomplete-grid.js +4 -6
- package/development/autocomplete-grid.js +14 -10
- package/development/autocomplete-grid.pure.js +13 -4
- package/development/core/datetime/date-helper.js +285 -2
- package/development/core/datetime.js +6 -2
- package/development/core/timetable/access-leg-helper.js +82 -104
- package/development/core/timetable/timetable-helper.js +17 -16
- package/development/core/timetable/timetable-properties.js +2 -0
- package/development/core/timetable.js +8 -3
- package/development/differenceInMinutes-B0dawX-5.js +26 -0
- package/development/format-BMkeaqaF.js +1433 -0
- package/development/isValid-BYRch7pV.js +53 -0
- package/development/journey-summary/journey-summary.component.js +288 -2
- package/development/journey-summary.js +5 -8
- package/development/journey-summary.pure.js +5 -2
- package/development/pearl-chain/pearl-chain.component.js +634 -2
- package/development/pearl-chain-time/pearl-chain-time.component.js +306 -2
- package/development/pearl-chain-time.js +5 -8
- package/development/pearl-chain-time.pure.js +5 -2
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +28 -2
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +393 -2
- package/development/pearl-chain-vertical-item.js +5 -8
- package/development/pearl-chain-vertical-item.pure.js +5 -2
- package/development/pearl-chain-vertical.js +5 -8
- package/development/pearl-chain-vertical.pure.js +5 -2
- package/development/pearl-chain.js +5 -8
- package/development/pearl-chain.pure.js +5 -2
- package/development/seat-reservation/common/mapper/icon-mapper.js +71 -168
- package/development/seat-reservation/common/mapper/mapper.js +122 -153
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +559 -570
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +972 -992
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20367 -20334
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1738 -1731
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9782 -9741
- package/development/seat-reservation/common/mapper.js +8 -1
- package/development/seat-reservation/common/svgs.js +46 -2
- package/development/seat-reservation/common/translations/i18n.js +900 -1118
- package/development/seat-reservation/common/translations.js +4 -1
- package/development/seat-reservation/common/types.js +2 -0
- package/development/seat-reservation/common.js +11 -7
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1230 -1305
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +859 -2
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +106 -2
- package/development/seat-reservation/seat-reservation-area.js +5 -7
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +34 -35
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +162 -2
- package/development/seat-reservation/seat-reservation-graphic.js +5 -7
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +713 -2
- package/development/seat-reservation/seat-reservation-navigation-coach.js +5 -7
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +131 -2
- package/development/seat-reservation/seat-reservation-navigation-services.js +5 -7
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +601 -2
- package/development/seat-reservation/seat-reservation-place-control.js +5 -7
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +22 -2
- package/development/seat-reservation/seat-reservation-scoped.js +5 -7
- package/development/seat-reservation/seat-reservation.js +6 -7
- package/development/seat-reservation.js +28 -15
- package/development/seat-reservation.pure.js +28 -10
- package/development/timetable-duration/timetable-duration.component.js +108 -2
- package/development/timetable-duration.js +5 -8
- package/development/timetable-duration.pure.js +5 -2
- package/development/timetable-row/timetable-row.component.js +781 -2
- package/development/timetable-row.js +13 -8
- package/development/timetable-row.pure.js +12 -2
- package/development/toDate-BWb6Z1JD.js +24 -0
- package/differenceInMinutes-COvvdYsJ.js +23 -0
- package/format-CmKROkbc.js +1186 -0
- package/isValid-m3_OsPaB.js +45 -0
- package/journey-summary/journey-summary.component.js +194 -2
- package/journey-summary.js +4 -5
- package/journey-summary.pure.js +4 -2
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.js +165 -2
- package/pearl-chain-time/pearl-chain-time.component.js +157 -2
- package/pearl-chain-time.js +4 -5
- package/pearl-chain-time.pure.js +4 -2
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +17 -2
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +77 -2
- package/pearl-chain-vertical-item.js +4 -5
- package/pearl-chain-vertical-item.pure.js +4 -2
- package/pearl-chain-vertical.js +4 -5
- package/pearl-chain-vertical.pure.js +4 -2
- package/pearl-chain.js +4 -5
- package/pearl-chain.pure.js +4 -2
- package/seat-reservation/common/mapper/icon-mapper.js +71 -71
- package/seat-reservation/common/mapper/mapper.js +89 -95
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +558 -568
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +970 -989
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20366 -20332
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1737 -1729
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9781 -9739
- package/seat-reservation/common/mapper.js +9 -3
- package/seat-reservation/common/svgs.js +243 -2
- package/seat-reservation/common/translations/i18n.js +891 -1084
- package/seat-reservation/common/translations.js +4 -2
- package/seat-reservation/common/types.js +1 -0
- package/seat-reservation/common.js +15 -9
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +810 -832
- package/seat-reservation/seat-reservation/seat-reservation.component.js +420 -2
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +51 -2
- package/seat-reservation/seat-reservation-area.js +7 -4
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +71 -68
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +75 -2
- package/seat-reservation/seat-reservation-graphic.js +7 -4
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +234 -2
- package/seat-reservation/seat-reservation-navigation-coach.js +7 -4
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +85 -2
- package/seat-reservation/seat-reservation-navigation-services.js +7 -4
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +203 -2
- package/seat-reservation/seat-reservation-place-control.js +7 -4
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +13 -2
- package/seat-reservation/seat-reservation-scoped.js +7 -4
- package/seat-reservation/seat-reservation.js +9 -5
- package/seat-reservation.js +39 -17
- package/seat-reservation.pure.js +32 -15
- package/timetable-duration/timetable-duration.component.js +57 -2
- package/timetable-duration.js +4 -5
- package/timetable-duration.pure.js +4 -2
- package/timetable-row/timetable-row.component.js +427 -2
- package/timetable-row.js +13 -6
- package/timetable-row.pure.js +11 -2
- package/toDate-Bw2KTWeq.js +15 -0
- package/autocomplete-grid-cell.component-Dak9wlBr.js +0 -24
- package/autocomplete-grid-option.component-DNRFHOwc.js +0 -37
- package/autocomplete-grid-row.component-DBHZQ0GQ.js +0 -27
- package/date-helper-CGproP5d.js +0 -185
- package/development/autocomplete-grid-cell.component-BBvM4o2H.js +0 -42
- package/development/autocomplete-grid-option.component-QzfM5eIE.js +0 -123
- package/development/autocomplete-grid-row.component-H8sCTCkT.js +0 -104
- package/development/date-helper-8_Y-PuHh.js +0 -520
- package/development/differenceInMinutes-DN_1Rk3O.js +0 -110
- package/development/format-Bbrn2bgo.js +0 -1848
- package/development/isValid-C-HzKv4v.js +0 -178
- package/development/journey-summary.component-uGhZvA4p.js +0 -385
- package/development/pearl-chain-time.component-B8mayTWD.js +0 -415
- package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +0 -435
- package/development/pearl-chain-vertical.component-CswE7b3M.js +0 -39
- package/development/pearl-chain.component-wpsTvoSe.js +0 -704
- package/development/seat-reservation-area.component-BK92ZtFo.js +0 -138
- package/development/seat-reservation-graphic.component-cUnsHh5x.js +0 -193
- package/development/seat-reservation-navigation-coach.component-D6Bglus8.js +0 -828
- package/development/seat-reservation-navigation-services.component-DYJ6Ddkg.js +0 -179
- package/development/seat-reservation-place-control.component-Bg9evKBW.js +0 -726
- package/development/seat-reservation-scoped.component-DRQ_I702.js +0 -31
- package/development/seat-reservation.component-Cq_aJKR0.js +0 -818
- package/development/svgs-C3JMWR26.js +0 -28
- package/development/timetable-duration.component-DI0lET17.js +0 -125
- package/development/timetable-row.component-CAED6Zwc.js +0 -932
- package/development/toDate-Biiv3kyf.js +0 -150
- package/differenceInMinutes-Dr9gRqtu.js +0 -27
- package/format-CM5exOsN.js +0 -1103
- package/isValid-B9oVW3lA.js +0 -36
- package/journey-summary.component-Cq_4kaOp.js +0 -264
- package/pearl-chain-time.component-DGDW5S1c.js +0 -239
- package/pearl-chain-vertical-item.component-G22bWhLU.js +0 -108
- package/pearl-chain-vertical.component-CXIDT5RD.js +0 -21
- package/pearl-chain.component-DmjkVIva.js +0 -194
- package/seat-reservation-area.component-n-9rGn_y.js +0 -75
- package/seat-reservation-graphic.component-YTXRmKt0.js +0 -102
- package/seat-reservation-navigation-coach.component-YJ0vaYmO.js +0 -333
- package/seat-reservation-navigation-services.component-C3xnLJg2.js +0 -127
- package/seat-reservation-place-control.component-DmBAfM6K.js +0 -322
- package/seat-reservation-scoped.component-DPkz6u17.js +0 -17
- package/seat-reservation.component-C_anMkgw.js +0 -364
- package/svgs-D9arBcqr.js +0 -26
- package/timetable-duration.component-DCu8Phts.js +0 -65
- package/timetable-row.component-BVRCB3xK.js +0 -559
- package/toDate-p-Tpkb7t.js +0 -16
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { unsafeHTML as n } from "lit/directives/unsafe-html.js";
|
|
1
|
+
import { html as d } from "lit";
|
|
2
|
+
import { unsafeHTML as A } from "lit/directives/unsafe-html.js";
|
|
4
3
|
import { mapIconToSvg as r } from "../common/mapper.js";
|
|
5
|
-
import { SbbSeatReservationAreaElement as
|
|
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";
|
|
6
6
|
import "@sbb-esta/lyne-elements/table.js";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
E.define();
|
|
8
|
+
a.define();
|
|
9
|
+
const s = (e) => d`
|
|
9
10
|
<div class="story-asset">
|
|
10
|
-
<span class="story-asset__preview">${
|
|
11
|
+
<span class="story-asset__preview">${A(e)}</span>
|
|
11
12
|
</div>
|
|
12
|
-
`,
|
|
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`
|
|
13
|
+
`, t = (e) => r[e]?.svg ? s(r[e].svg) : r[e]?.svgName ? d`<sbb-icon name="${r[e].svgName}"></sbb-icon>` : null, _ = d`
|
|
22
14
|
<sbb-table-wrapper>
|
|
23
15
|
<table class="sbb-table">
|
|
24
16
|
<thead>
|
|
@@ -30,51 +22,49 @@ var a = (e) => t`
|
|
|
30
22
|
</thead>
|
|
31
23
|
<tbody>
|
|
32
24
|
<tr>
|
|
33
|
-
<td>${
|
|
25
|
+
<td>${t("PLACE_BICYCLE_FREE")}</td>
|
|
34
26
|
<td>Place-Bike: Available</td>
|
|
35
27
|
<td>PLACE_BICYCLE_FREE</td>
|
|
36
28
|
</tr>
|
|
37
29
|
<tr>
|
|
38
|
-
<td>${
|
|
30
|
+
<td>${t("PLACE_BICYCLE_SELECTED")}</td>
|
|
39
31
|
<td>Place-Bike: Selected</td>
|
|
40
32
|
<td>PLACE_BICYCLE_SELECTED</td>
|
|
41
33
|
</tr>
|
|
42
34
|
<tr>
|
|
43
|
-
<td>${
|
|
35
|
+
<td>${t("PLACE_BICYCLE_ALLOCATED")}</td>
|
|
44
36
|
<td>Place-Bike: Unavailable</td>
|
|
45
37
|
<td>PLACE_BICYCLE_ALLOCATED</td>
|
|
46
38
|
</tr>
|
|
47
39
|
<tr>
|
|
48
|
-
<td>${
|
|
40
|
+
<td>${t("PLACE_BICYCLE_RESTRICTED")}</td>
|
|
49
41
|
<td>Place-Bike: Not bookable</td>
|
|
50
42
|
<td>PLACE_BICYCLE_RESTRICTED</td>
|
|
51
43
|
</tr>
|
|
52
44
|
<tr>
|
|
53
|
-
<td>${
|
|
45
|
+
<td>${t("PLACE_SEAT_FREE")}</td>
|
|
54
46
|
<td>Place-Seat: Available</td>
|
|
55
47
|
<td>PLACE_SEAT_FREE</td>
|
|
56
48
|
</tr>
|
|
57
49
|
<tr>
|
|
58
|
-
<td>${
|
|
50
|
+
<td>${t("PLACE_SEAT_SELECTED")}</td>
|
|
59
51
|
<td>Place-Seat: Selected</td>
|
|
60
52
|
<td>PLACE_SEAT_SELECTED</td>
|
|
61
53
|
</tr>
|
|
62
54
|
<tr>
|
|
63
|
-
<td>${
|
|
55
|
+
<td>${t("PLACE_SEAT_ALLOCATED")}</td>
|
|
64
56
|
<td>Place-Seat: Unavailable</td>
|
|
65
57
|
<td>PLACE_SEAT_ALLOCATED</td>
|
|
66
58
|
</tr>
|
|
67
59
|
<tr>
|
|
68
|
-
<td>${
|
|
60
|
+
<td>${t("PLACE_SEAT_RESTRICTED")}</td>
|
|
69
61
|
<td>Place-Seat: Not bookable</td>
|
|
70
62
|
<td>PLACE_SEAT_RESTRICTED</td>
|
|
71
63
|
</tr>
|
|
72
64
|
</tbody>
|
|
73
65
|
</table>
|
|
74
66
|
</sbb-table-wrapper>
|
|
75
|
-
`
|
|
76
|
-
<h2>Layout</h2>
|
|
77
|
-
${t`
|
|
67
|
+
`, l = d`
|
|
78
68
|
<sbb-table-wrapper>
|
|
79
69
|
<table class="sbb-table">
|
|
80
70
|
<thead>
|
|
@@ -86,66 +76,64 @@ var a = (e) => t`
|
|
|
86
76
|
</thead>
|
|
87
77
|
<tbody>
|
|
88
78
|
<tr>
|
|
89
|
-
<td>${
|
|
79
|
+
<td>${t("EASY_ACCESS_AREA")}</td>
|
|
90
80
|
<td>Easy Access Area</td>
|
|
91
81
|
<td>EASY_ACCESS_AREA</td>
|
|
92
82
|
</tr>
|
|
93
83
|
<tr>
|
|
94
|
-
<td>${
|
|
84
|
+
<td>${t("ENTRY_EXIT")}</td>
|
|
95
85
|
<td>Entrance</td>
|
|
96
86
|
<td>ENTRY_EXIT</td>
|
|
97
87
|
</tr>
|
|
98
88
|
<tr>
|
|
99
|
-
<td>${
|
|
89
|
+
<td>${t("LUGGAGE_AREA")}</td>
|
|
100
90
|
<td>Luggage</td>
|
|
101
91
|
<td>LUGGAGE_AREA</td>
|
|
102
92
|
</tr>
|
|
103
93
|
<tr>
|
|
104
|
-
<td>${
|
|
94
|
+
<td>${t("MULTI_FUNCTION_AREA")}</td>
|
|
105
95
|
<td>Multi Function Area</td>
|
|
106
96
|
<td>MULTI_FUNCTION_AREA</td>
|
|
107
97
|
</tr>
|
|
108
98
|
<tr>
|
|
109
|
-
<td>${
|
|
99
|
+
<td>${t("PLAYGROUND_AREA")}</td>
|
|
110
100
|
<td>Playground</td>
|
|
111
101
|
<td>PLAYGROUND_AREA</td>
|
|
112
102
|
</tr>
|
|
113
103
|
<tr>
|
|
114
|
-
<td>${
|
|
104
|
+
<td>${t("PRAM_AREA")}</td>
|
|
115
105
|
<td>Pram</td>
|
|
116
106
|
<td>PRAM_AREA</td>
|
|
117
107
|
</tr>
|
|
118
108
|
<tr>
|
|
119
|
-
<td>${
|
|
109
|
+
<td>${t("SKI_AREA")}</td>
|
|
120
110
|
<td>Ski</td>
|
|
121
111
|
<td>SKI_AREA</td>
|
|
122
112
|
</tr>
|
|
123
113
|
<tr>
|
|
124
|
-
<td>${
|
|
114
|
+
<td>${t("STAIR_AREA")}</td>
|
|
125
115
|
<td>Stair</td>
|
|
126
116
|
<td>STAIR_AREA</td>
|
|
127
117
|
</tr>
|
|
128
118
|
<tr>
|
|
129
|
-
<td>${
|
|
119
|
+
<td>${t("TOILET_AREA")}</td>
|
|
130
120
|
<td>Toilet</td>
|
|
131
121
|
<td>TOILET_AREA</td>
|
|
132
122
|
</tr>
|
|
133
123
|
<tr>
|
|
134
|
-
<td>${
|
|
124
|
+
<td>${t("TOILET_WHEELCHAIR_AREA")}</td>
|
|
135
125
|
<td>Toilet-Handicap</td>
|
|
136
126
|
<td>TOILET_WHEELCHAIR_AREA</td>
|
|
137
127
|
</tr>
|
|
138
128
|
<tr>
|
|
139
|
-
<td>${
|
|
129
|
+
<td>${t("WARDROBE_AREA")}</td>
|
|
140
130
|
<td>Wardrobe</td>
|
|
141
131
|
<td>WARDROBE_AREA</td>
|
|
142
132
|
</tr>
|
|
143
133
|
</tbody>
|
|
144
134
|
</table>
|
|
145
135
|
</sbb-table-wrapper>
|
|
146
|
-
`
|
|
147
|
-
<h2>Service Icons</h2>
|
|
148
|
-
${t`
|
|
136
|
+
`, o = d`
|
|
149
137
|
<sbb-table-wrapper>
|
|
150
138
|
<table aria-label="Available Service Icons" class="sbb-table">
|
|
151
139
|
<thead>
|
|
@@ -157,71 +145,69 @@ var a = (e) => t`
|
|
|
157
145
|
</thead>
|
|
158
146
|
<tbody>
|
|
159
147
|
<tr>
|
|
160
|
-
<td>${
|
|
148
|
+
<td>${t("BISTRO")}</td>
|
|
161
149
|
<td>Bistro</td>
|
|
162
150
|
<td>BISTRO</td>
|
|
163
151
|
</tr>
|
|
164
152
|
<tr>
|
|
165
|
-
<td>${
|
|
153
|
+
<td>${t("BUSINESS")}</td>
|
|
166
154
|
<td>Business</td>
|
|
167
155
|
<td>BUSINESS</td>
|
|
168
156
|
</tr>
|
|
169
157
|
<tr>
|
|
170
|
-
<td>${
|
|
158
|
+
<td>${t("PLAYGROUND_ICON")}</td>
|
|
171
159
|
<td>Family</td>
|
|
172
160
|
<td>PLAYGROUND_ICON</td>
|
|
173
161
|
</tr>
|
|
174
162
|
<tr>
|
|
175
|
-
<td>${
|
|
163
|
+
<td>${t("LUGGAGE_AREA")}</td>
|
|
176
164
|
<td>Luggage</td>
|
|
177
165
|
<td>LUGGAGE_AREA</td>
|
|
178
166
|
</tr>
|
|
179
167
|
<tr>
|
|
180
|
-
<td>${
|
|
168
|
+
<td>${t("PRAM_ICON")}</td>
|
|
181
169
|
<td>Pram</td>
|
|
182
170
|
<td>PRAM_ICON</td>
|
|
183
171
|
</tr>
|
|
184
172
|
<tr>
|
|
185
|
-
<td>${
|
|
173
|
+
<td>${t("EASY_ACCESS_AREA")}</td>
|
|
186
174
|
<td>Easy Access Area</td>
|
|
187
175
|
<td>EASY_ACCESS_AREA</td>
|
|
188
176
|
</tr>
|
|
189
177
|
<tr>
|
|
190
|
-
<td>${
|
|
178
|
+
<td>${t("RESTAURANT_ICON")}</td>
|
|
191
179
|
<td>Restaurant</td>
|
|
192
180
|
<td>RESTAURANT_ICON</td>
|
|
193
181
|
</tr>
|
|
194
182
|
<tr>
|
|
195
|
-
<td>${
|
|
183
|
+
<td>${t("SILENCE_AREA_ICON")}</td>
|
|
196
184
|
<td>Silence</td>
|
|
197
185
|
<td>SILENCE_AREA_ICON</td>
|
|
198
186
|
</tr>
|
|
199
187
|
<tr>
|
|
200
|
-
<td>${
|
|
188
|
+
<td>${t("TOILET_AREA")}</td>
|
|
201
189
|
<td>Toilet</td>
|
|
202
190
|
<td>TOILET_AREA</td>
|
|
203
191
|
</tr>
|
|
204
192
|
<tr>
|
|
205
|
-
<td>${
|
|
193
|
+
<td>${t("TOILET_WHEELCHAIR_AREA")}</td>
|
|
206
194
|
<td>Toilet-PRM</td>
|
|
207
195
|
<td>TOILET_WHEELCHAIR_AREA</td>
|
|
208
196
|
</tr>
|
|
209
197
|
<tr>
|
|
210
|
-
<td>${
|
|
198
|
+
<td>${t("WHEELCHAIR_ICON")}</td>
|
|
211
199
|
<td>Wheelchair</td>
|
|
212
200
|
<td>WHEELCHAIR_ICON</td>
|
|
213
201
|
</tr>
|
|
214
202
|
<tr>
|
|
215
|
-
<td>${
|
|
203
|
+
<td>${t("WIFI")}</td>
|
|
216
204
|
<td>Wifi</td>
|
|
217
205
|
<td>WIFI</td>
|
|
218
206
|
</tr>
|
|
219
207
|
</tbody>
|
|
220
208
|
</table>
|
|
221
209
|
</sbb-table-wrapper>
|
|
222
|
-
`
|
|
223
|
-
<h2>Chassis</h2>
|
|
224
|
-
${t`
|
|
210
|
+
`, R = d`
|
|
225
211
|
<sbb-table-wrapper>
|
|
226
212
|
<table class="sbb-table">
|
|
227
213
|
<thead>
|
|
@@ -233,37 +219,37 @@ var a = (e) => t`
|
|
|
233
219
|
</thead>
|
|
234
220
|
<tbody>
|
|
235
221
|
<tr>
|
|
236
|
-
<td>${
|
|
222
|
+
<td>${t("DRIVER_AREA_TRAIN")}</td>
|
|
237
223
|
<td>Driver Area<br />(Dependent on Vehicle-Type: TRAIN)</td>
|
|
238
224
|
<td>DRIVER_AREA</td>
|
|
239
225
|
</tr>
|
|
240
226
|
<tr>
|
|
241
|
-
<td>${
|
|
227
|
+
<td>${t("DRIVER_AREA_BUS")}</td>
|
|
242
228
|
<td>Driver Area<br />(Dependent on Vehicle-Type: BUS)</td>
|
|
243
229
|
<td>DRIVER_AREA</td>
|
|
244
230
|
</tr>
|
|
245
231
|
<tr>
|
|
246
|
-
<td>${
|
|
232
|
+
<td>${t("COMPARTMENT_PASSAGE_HIGH")}</td>
|
|
247
233
|
<td>Compartment Passage High</td>
|
|
248
234
|
<td>COMPARTMENT_PASSAGE_HIGH</td>
|
|
249
235
|
</tr>
|
|
250
236
|
<tr>
|
|
251
|
-
<td>${
|
|
237
|
+
<td>${t("COMPARTMENT_PASSAGE")}</td>
|
|
252
238
|
<td>Compartment Passage</td>
|
|
253
239
|
<td>COMPARTMENT_PASSAGE</td>
|
|
254
240
|
</tr>
|
|
255
241
|
<tr>
|
|
256
|
-
<td>${
|
|
242
|
+
<td>${t("COMPARTMENT_PASSAGE_LOW")}</td>
|
|
257
243
|
<td>Compartment Passage Low</td>
|
|
258
244
|
<td>COMPARTMENT_PASSAGE_LOW</td>
|
|
259
245
|
</tr>
|
|
260
246
|
<tr>
|
|
261
|
-
<td>${
|
|
247
|
+
<td>${t("COACH_PASSAGE")}</td>
|
|
262
248
|
<td>Coach Passage</td>
|
|
263
249
|
<td>COACH_PASSAGE</td>
|
|
264
250
|
</tr>
|
|
265
251
|
<tr>
|
|
266
|
-
<td>${
|
|
252
|
+
<td>${t("COMPARTMENT_WALL")}</td>
|
|
267
253
|
<td>Compartment Wall</td>
|
|
268
254
|
<td>COMPARTMENT_WALL</td>
|
|
269
255
|
</tr>
|
|
@@ -278,14 +264,31 @@ var a = (e) => t`
|
|
|
278
264
|
<td>TABLE_RESTAURANT</td>
|
|
279
265
|
</tr>
|
|
280
266
|
<tr>
|
|
281
|
-
<td>${
|
|
267
|
+
<td>${t("COACH_WALL_NO_PASSAGE")}</td>
|
|
282
268
|
<td>Coach Wall No Passage</td>
|
|
283
269
|
<td>COACH_WALL_NO_PASSAGE</td>
|
|
284
270
|
</tr>
|
|
285
271
|
</tbody>
|
|
286
272
|
</table>
|
|
287
273
|
</sbb-table-wrapper>
|
|
288
|
-
`
|
|
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}
|
|
289
290
|
`;
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
export {
|
|
292
|
+
i as assetsTemplate,
|
|
293
|
+
t as svgImageByOSDMCode
|
|
294
|
+
};
|
|
@@ -1,2 +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,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
e.define()
|
|
3
|
-
|
|
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
|
+
};
|