@sbb-esta/lyne-elements-experimental 2.10.1 → 2.11.0
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/custom-elements.json +4286 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/icon-mapper.js +72 -0
- package/development/seat-reservation/common/mapper/mapper.d.ts +29 -0
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/mapper.js +117 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +6152 -0
- package/development/seat-reservation/common/mapper.d.ts +3 -0
- package/development/seat-reservation/common/mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper.js +10 -0
- package/development/seat-reservation/common/svgs.d.ts +25 -0
- package/development/seat-reservation/common/svgs.d.ts.map +1 -0
- package/development/seat-reservation/common/svgs.js +48 -0
- package/development/seat-reservation/common/translations/i18n.d.ts +19 -0
- package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -0
- package/development/seat-reservation/common/translations/i18n.js +462 -0
- package/development/seat-reservation/common/translations.d.ts +2 -0
- package/development/seat-reservation/common/translations.d.ts.map +1 -0
- package/development/seat-reservation/common/translations.js +5 -0
- package/development/seat-reservation/common.d.ts +5 -0
- package/development/seat-reservation/common.d.ts.map +1 -0
- package/development/seat-reservation/common.js +18 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +156 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +706 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts +29 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js +196 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +2 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +5 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +615 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +108 -0
- package/development/seat-reservation/seat-reservation-area.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-area.js +5 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +326 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +224 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic.js +5 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +65 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +576 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +5 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +123 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +5 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +446 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-place-control.js +5 -0
- package/development/seat-reservation/seat-reservation.d.ts +73 -0
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation.js +7 -0
- package/development/seat-reservation.d.ts +5 -0
- package/development/seat-reservation.d.ts.map +1 -0
- package/development/seat-reservation.js +7 -0
- package/index.d.ts +14 -0
- package/index.js +14 -0
- package/package.json +7 -2
- package/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
- package/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
- package/seat-reservation/common/mapper/icon-mapper.js +71 -0
- package/seat-reservation/common/mapper/mapper.d.ts +29 -0
- package/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
- package/seat-reservation/common/mapper/mapper.js +87 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.js +6149 -0
- package/seat-reservation/common/mapper.d.ts +3 -0
- package/seat-reservation/common/mapper.d.ts.map +1 -0
- package/seat-reservation/common/mapper.js +9 -0
- package/seat-reservation/common/svgs.d.ts +25 -0
- package/seat-reservation/common/svgs.d.ts.map +1 -0
- package/seat-reservation/common/svgs.js +250 -0
- package/seat-reservation/common/translations/i18n.d.ts +19 -0
- package/seat-reservation/common/translations/i18n.d.ts.map +1 -0
- package/seat-reservation/common/translations/i18n.js +460 -0
- package/seat-reservation/common/translations.d.ts +2 -0
- package/seat-reservation/common/translations.d.ts.map +1 -0
- package/seat-reservation/common/translations.js +4 -0
- package/seat-reservation/common.d.ts +5 -0
- package/seat-reservation/common.d.ts.map +1 -0
- package/seat-reservation/common.js +17 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +156 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +435 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts +29 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js +107 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +2 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +4 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.js +404 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +49 -0
- package/seat-reservation/seat-reservation-area.d.ts +2 -0
- package/seat-reservation/seat-reservation-area.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-area.js +4 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +317 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +113 -0
- package/seat-reservation/seat-reservation-graphic.d.ts +2 -0
- package/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-graphic.js +4 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +65 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +248 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +2 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +4 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +80 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +2 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +4 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +190 -0
- package/seat-reservation/seat-reservation-place-control.d.ts +2 -0
- package/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-place-control.js +4 -0
- package/seat-reservation/seat-reservation.d.ts +73 -0
- package/seat-reservation/seat-reservation.d.ts.map +1 -0
- package/seat-reservation/seat-reservation.js +6 -0
- package/seat-reservation.d.ts +5 -0
- package/seat-reservation.d.ts.map +1 -0
- package/seat-reservation.js +6 -0
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
// BASICS
|
|
3
|
+
// CAPTION FOR SCREENREADER INSIDE WAGON
|
|
4
|
+
COACH_TABLE_CAPTION: {
|
|
5
|
+
de: "Wagen _param0_ selektiert",
|
|
6
|
+
en: "en:Wagen _param0_ selektiert",
|
|
7
|
+
fr: "fr:Wagen _param0_ selektiert",
|
|
8
|
+
it: "it:Wagen _param0_ selektiert"
|
|
9
|
+
},
|
|
10
|
+
COACH_BLOCKED_TABLE_CAPTION: {
|
|
11
|
+
de: "Wagen _param0_ ist nicht betretbar. Navigieren Sie bitte zum nächsten verfügbaren Wagen",
|
|
12
|
+
en: "en:Wagen _param0_ ist nicht betretbar. Navigieren Sie bitte zum nächsten verfügbaren Wagen",
|
|
13
|
+
fr: "fr:Wagen _param0_ ist nicht betretbar. Navigieren Sie bitte zum nächsten verfügbaren Wagen",
|
|
14
|
+
it: "it:Wagen _param0_ ist nicht betretbar. Navigieren Sie bitte zum nächsten verfügbaren Wagen"
|
|
15
|
+
},
|
|
16
|
+
LIST_ALL_COACHES: {
|
|
17
|
+
de: "Liste aller Wagen mit reservierbaren Plätzen. Sie können die Tastennavigation aktivieren, indem Sie die 's'-Taste drücken, und dann können Sie mit den Pfeiltasten zwischen den Sitzen des Wagens navigieren.",
|
|
18
|
+
en: "List of all coaches with reservable places. You can activate key navigation by pressing the 's' key, then you can navigate by arrow keys between the seats of the coach.",
|
|
19
|
+
fr: "Liste de tous les wagons avec des places réservables. Vous pouvez activer la navigation par touches en appuyant sur la touche 's', puis vous pouvez naviguer avec les flèches entre les sièges du wagon.",
|
|
20
|
+
it: "Elenco di tutti i vagoni con posti riservabili. Puoi attivare la navigazione con tasti premendo il tasto 's', poi puoi navigare tra i posti del vagone con i tasti freccia."
|
|
21
|
+
},
|
|
22
|
+
SEAT_RESERVATION_BEGIN: {
|
|
23
|
+
de: "Beginn der Grafische Sitzplatzreservierung",
|
|
24
|
+
en: "en:Beginn der Grafische Sitzplatzreservierung",
|
|
25
|
+
fr: "fr:Beginn der Grafische Sitzplatzreservierung",
|
|
26
|
+
it: "it:Beginn der Grafische Sitzplatzreservierung"
|
|
27
|
+
},
|
|
28
|
+
SEAT_RESERVATION_END: {
|
|
29
|
+
de: "Verlassen der Grafische Sitzplatzreservierung",
|
|
30
|
+
en: "en:Verlassen der Grafische Sitzplatzreservierung",
|
|
31
|
+
fr: "fr:Verlassen der Grafische Sitzplatzreservierung",
|
|
32
|
+
it: "it:Verlassen der Grafische Sitzplatzreservierung"
|
|
33
|
+
},
|
|
34
|
+
// NAVIGATION
|
|
35
|
+
NAVIGATE_TO_COACH: {
|
|
36
|
+
de: "Navigiere zu Zugabteil _param0_",
|
|
37
|
+
en: "Navigate to train compartment _param0_",
|
|
38
|
+
fr: "Naviguer vers le compartiment de train _param0_",
|
|
39
|
+
it: "Naviga verso il compartimento del treno _param0_"
|
|
40
|
+
},
|
|
41
|
+
NAVIGATE_TO_COACH_SERVICE_CLASS_SUB: {
|
|
42
|
+
de: " mit _param0_ Abteil",
|
|
43
|
+
en: "en: mit _param0_ Abteil",
|
|
44
|
+
fr: "fr: mit _param0_ Abteil",
|
|
45
|
+
it: "it: mit _param0_ Abteil"
|
|
46
|
+
},
|
|
47
|
+
NAVIGATE_COACH_BLOCKED: {
|
|
48
|
+
de: "Zugabteil _param0_ ist nicht betretbar",
|
|
49
|
+
en: "en:Zugabteil _param0_ ist nicht betretbar",
|
|
50
|
+
fr: "fr:Zugabteil _param0_ ist nicht betretbar",
|
|
51
|
+
it: "it:Zugabteil _param0_ ist nicht betretbar"
|
|
52
|
+
},
|
|
53
|
+
SEAT_RESERVATION_NAVIGATION: {
|
|
54
|
+
de: "Sitzplatzreservierungsnavigation",
|
|
55
|
+
en: "Seat reservation Navigation",
|
|
56
|
+
fr: "Navigation pour la réservation de sièges",
|
|
57
|
+
it: "Navigazione per la prenotazione dei posti"
|
|
58
|
+
},
|
|
59
|
+
SERVICE_CLASS_FIRST: {
|
|
60
|
+
de: "erste Klasse",
|
|
61
|
+
en: "en:erste Klasse",
|
|
62
|
+
fr: "fr:erste Klasse",
|
|
63
|
+
it: "it:erste Klasse"
|
|
64
|
+
},
|
|
65
|
+
SERVICE_CLASS_SECOND: {
|
|
66
|
+
de: "zweite Klasse",
|
|
67
|
+
en: "en:zweite Klasse",
|
|
68
|
+
fr: "fr:zweite Klasse",
|
|
69
|
+
it: "it:zweite Klasse"
|
|
70
|
+
},
|
|
71
|
+
// NAVIGATION SERVICES ICONS AND SERVICE ICONS INSIDE WAGON
|
|
72
|
+
BICYCLE: {
|
|
73
|
+
de: "Velobereich",
|
|
74
|
+
en: "Velozone",
|
|
75
|
+
fr: "Véloparc",
|
|
76
|
+
it: "Veloparco"
|
|
77
|
+
},
|
|
78
|
+
BICYCLE_HIGH: {
|
|
79
|
+
de: "Velobereich",
|
|
80
|
+
en: "Velozone",
|
|
81
|
+
fr: "Véloparc",
|
|
82
|
+
it: "Veloparco"
|
|
83
|
+
},
|
|
84
|
+
BICYCLE_HIGH_ICON: {
|
|
85
|
+
de: "Velobereich",
|
|
86
|
+
en: "Velozone",
|
|
87
|
+
fr: "Véloparc",
|
|
88
|
+
it: "Veloparco"
|
|
89
|
+
},
|
|
90
|
+
BICYCLE_ICON: {
|
|
91
|
+
de: "Velobereich",
|
|
92
|
+
en: "Velozone",
|
|
93
|
+
fr: "Véloparc",
|
|
94
|
+
it: "Veloparco"
|
|
95
|
+
},
|
|
96
|
+
BICYCLE_LOW: {
|
|
97
|
+
de: "Velobereich",
|
|
98
|
+
en: "Velozone",
|
|
99
|
+
fr: "Véloparc",
|
|
100
|
+
it: "Veloparco"
|
|
101
|
+
},
|
|
102
|
+
BICYCLE_LOW_ICON: {
|
|
103
|
+
de: "Velobereich",
|
|
104
|
+
en: "Velozone",
|
|
105
|
+
fr: "Véloparc",
|
|
106
|
+
it: "Veloparco"
|
|
107
|
+
},
|
|
108
|
+
BICYCLE_MIDDLE: {
|
|
109
|
+
de: "Velobereich",
|
|
110
|
+
en: "Velozone",
|
|
111
|
+
fr: "Véloparc",
|
|
112
|
+
it: "Veloparco"
|
|
113
|
+
},
|
|
114
|
+
BICYCLE_MIDDLE_ICON: {
|
|
115
|
+
de: "Velobereich",
|
|
116
|
+
en: "Velozone",
|
|
117
|
+
fr: "Véloparc",
|
|
118
|
+
it: "Veloparco"
|
|
119
|
+
},
|
|
120
|
+
BISTRO: {
|
|
121
|
+
de: "Bistro",
|
|
122
|
+
en: "Bistro",
|
|
123
|
+
fr: "Bistro",
|
|
124
|
+
it: "Bistrot"
|
|
125
|
+
},
|
|
126
|
+
BISTRO_ICON: {
|
|
127
|
+
de: "Bistro",
|
|
128
|
+
en: "Bistro",
|
|
129
|
+
fr: "Bistro",
|
|
130
|
+
it: "Bistrot"
|
|
131
|
+
},
|
|
132
|
+
BUSINESS: {
|
|
133
|
+
de: "Businesszone",
|
|
134
|
+
en: "Businesszone",
|
|
135
|
+
fr: "Zone d'affaires",
|
|
136
|
+
it: "Zona business"
|
|
137
|
+
},
|
|
138
|
+
BUSINESS_COMFORT: {
|
|
139
|
+
de: "Businesszone",
|
|
140
|
+
en: "Businesszone",
|
|
141
|
+
fr: "Zone d'affaires",
|
|
142
|
+
it: "Zona business"
|
|
143
|
+
},
|
|
144
|
+
BUSINESS_ICON: {
|
|
145
|
+
de: "Businesszone",
|
|
146
|
+
en: "Businesszone",
|
|
147
|
+
fr: "Zone d'affaires",
|
|
148
|
+
it: "Zona business"
|
|
149
|
+
},
|
|
150
|
+
COACH_PASSAGE: {
|
|
151
|
+
de: "Wagenübergang",
|
|
152
|
+
en: "Coach passage",
|
|
153
|
+
fr: "Passage de voiture",
|
|
154
|
+
it: "Passaggio carrozza"
|
|
155
|
+
},
|
|
156
|
+
EASY_ACCESS: {
|
|
157
|
+
de: "de:Easy access area for PRMs",
|
|
158
|
+
en: "Easy access area for PRMs",
|
|
159
|
+
fr: "fr:Easy access area for PRMs",
|
|
160
|
+
it: "it:Easy access area for PRMs"
|
|
161
|
+
},
|
|
162
|
+
EASY_ACCESS_AREA: {
|
|
163
|
+
de: "de:Easy access area for PRMs",
|
|
164
|
+
en: "Easy access area for PRMs",
|
|
165
|
+
fr: "fr:Easy access area for PRMs",
|
|
166
|
+
it: "it:Easy access area for PRMs"
|
|
167
|
+
},
|
|
168
|
+
EASY_ACCESS_ICON: {
|
|
169
|
+
de: "de:Easy access area for PRMs",
|
|
170
|
+
en: "Easy access area for PRMs",
|
|
171
|
+
fr: "fr:Easy access area for PRMs",
|
|
172
|
+
it: "it:Easy access area for PRMs"
|
|
173
|
+
},
|
|
174
|
+
ENTRY_EXIT: {
|
|
175
|
+
de: "Ausgang / Eingang",
|
|
176
|
+
en: "Exit/Entrance",
|
|
177
|
+
fr: "Sortie / Entrée",
|
|
178
|
+
it: "Uscita / Ingresso"
|
|
179
|
+
},
|
|
180
|
+
FAMILY: {
|
|
181
|
+
de: "Familienwagen",
|
|
182
|
+
en: "Family car",
|
|
183
|
+
fr: "Voiture familiale",
|
|
184
|
+
it: "Auto familiare"
|
|
185
|
+
},
|
|
186
|
+
LUGGAGE_AREA: {
|
|
187
|
+
de: "Gepäckzone",
|
|
188
|
+
en: "Luggage area",
|
|
189
|
+
fr: "Zone de bagages",
|
|
190
|
+
it: "Zona bagagli"
|
|
191
|
+
},
|
|
192
|
+
LUGGAGE_ICON: {
|
|
193
|
+
de: "Gepäckzone",
|
|
194
|
+
en: "Luggage area",
|
|
195
|
+
fr: "Zone de bagages",
|
|
196
|
+
it: "Zona bagagli"
|
|
197
|
+
},
|
|
198
|
+
MULTI_FUNCTION_AREA: {
|
|
199
|
+
de: "de:Multifunction area",
|
|
200
|
+
en: "en:Multifunction area",
|
|
201
|
+
fr: "fr:Multifunction area",
|
|
202
|
+
it: "it:Multifunction area"
|
|
203
|
+
},
|
|
204
|
+
MULTI_FUNCTION_ICON: {
|
|
205
|
+
de: "de:Multifunction area",
|
|
206
|
+
en: "en:Multifunction area",
|
|
207
|
+
fr: "fr:Multifunction area",
|
|
208
|
+
it: "it:Multifunction area"
|
|
209
|
+
},
|
|
210
|
+
PLAYGROUND_AREA: {
|
|
211
|
+
de: "Familienwagen",
|
|
212
|
+
en: "Family car",
|
|
213
|
+
fr: "Voiture familiale",
|
|
214
|
+
it: "Auto familiare"
|
|
215
|
+
},
|
|
216
|
+
PLAYGROUND_ICON: {
|
|
217
|
+
de: "Familienwagen",
|
|
218
|
+
en: "Family car",
|
|
219
|
+
fr: "Voiture familiale",
|
|
220
|
+
it: "Auto familiare"
|
|
221
|
+
},
|
|
222
|
+
PRAM: {
|
|
223
|
+
de: "Kinderwagenbereich",
|
|
224
|
+
en: "pram area",
|
|
225
|
+
fr: "zone pour poussettes",
|
|
226
|
+
it: "area per passeggini"
|
|
227
|
+
},
|
|
228
|
+
PRAM_AREA: {
|
|
229
|
+
de: "Kinderwagenbereich",
|
|
230
|
+
en: "pram area",
|
|
231
|
+
fr: "zone pour poussettes",
|
|
232
|
+
it: "area per passeggini"
|
|
233
|
+
},
|
|
234
|
+
PRAM_ICON: {
|
|
235
|
+
de: "Kinderwagenbereich",
|
|
236
|
+
en: "pram area",
|
|
237
|
+
fr: "zone pour poussettes",
|
|
238
|
+
it: "area per passeggini"
|
|
239
|
+
},
|
|
240
|
+
RESTAURANT: {
|
|
241
|
+
de: "Restaurant",
|
|
242
|
+
en: "Restaurant",
|
|
243
|
+
fr: "Restaurant",
|
|
244
|
+
it: "Ristorante"
|
|
245
|
+
},
|
|
246
|
+
RESTAURANT_AREA: {
|
|
247
|
+
de: "Restaurant",
|
|
248
|
+
en: "Restaurant",
|
|
249
|
+
fr: "Restaurant",
|
|
250
|
+
it: "Ristorante"
|
|
251
|
+
},
|
|
252
|
+
RESTAURANT_ICON: {
|
|
253
|
+
de: "Restaurant",
|
|
254
|
+
en: "Restaurant",
|
|
255
|
+
fr: "Restaurant",
|
|
256
|
+
it: "Ristorante"
|
|
257
|
+
},
|
|
258
|
+
SILENCE: {
|
|
259
|
+
de: "Ruhezone",
|
|
260
|
+
en: "Silence area",
|
|
261
|
+
fr: "Zone de repos",
|
|
262
|
+
it: "Zona di riposo"
|
|
263
|
+
},
|
|
264
|
+
SILENCE_AREA_ICON: {
|
|
265
|
+
de: "Ruhezone",
|
|
266
|
+
en: "Silence area",
|
|
267
|
+
fr: "Zone de repos",
|
|
268
|
+
it: "Zona di riposo"
|
|
269
|
+
},
|
|
270
|
+
SILENCE_ICON: {
|
|
271
|
+
de: "Ruhezone",
|
|
272
|
+
en: "Silence area",
|
|
273
|
+
fr: "Zone de repos",
|
|
274
|
+
it: "Zona di riposo"
|
|
275
|
+
},
|
|
276
|
+
SKI_AREA: {
|
|
277
|
+
de: "Ski Bereich",
|
|
278
|
+
en: "en: Ski area",
|
|
279
|
+
fr: "fr:Ski area",
|
|
280
|
+
it: "it:Ski area"
|
|
281
|
+
},
|
|
282
|
+
SKI_ICON: {
|
|
283
|
+
de: "Ski Bereich",
|
|
284
|
+
en: "en: Ski area",
|
|
285
|
+
fr: "fr:Ski area",
|
|
286
|
+
it: "it:Ski area"
|
|
287
|
+
},
|
|
288
|
+
STAIR_AREA: {
|
|
289
|
+
de: "Treppenbereich",
|
|
290
|
+
en: "en: Stair area",
|
|
291
|
+
fr: "fr:Stair area",
|
|
292
|
+
it: "it:Stair area"
|
|
293
|
+
},
|
|
294
|
+
TOILET_AREA: {
|
|
295
|
+
de: "Toilettenbereich",
|
|
296
|
+
en: "en: Toilet area",
|
|
297
|
+
fr: "fr:Toilet area",
|
|
298
|
+
it: "it:Toilet area"
|
|
299
|
+
},
|
|
300
|
+
TOILET_ICON: {
|
|
301
|
+
de: "Toilettenbereich",
|
|
302
|
+
en: "en: Toilet area",
|
|
303
|
+
fr: "fr:Toilet area",
|
|
304
|
+
it: "it:Toilet area"
|
|
305
|
+
},
|
|
306
|
+
TOILET_WHEELCHAIR_AREA: {
|
|
307
|
+
de: "Rollstuhl Toilettenbereich",
|
|
308
|
+
en: "en: Wheelchair toilet area",
|
|
309
|
+
fr: "fr:Wheelchair toilet area",
|
|
310
|
+
it: "it:Wheelchair toilet area"
|
|
311
|
+
},
|
|
312
|
+
TOILET_WHEELCHAIR_ICON: {
|
|
313
|
+
de: "Rollstuhl Toilettenbereich",
|
|
314
|
+
en: "Wheelchair toilet area",
|
|
315
|
+
fr: "fr:Wheelchair toilet area",
|
|
316
|
+
it: "it:Wheelchair toilet area"
|
|
317
|
+
},
|
|
318
|
+
WARDROBE_AREA: {
|
|
319
|
+
de: "Garderobenbereich",
|
|
320
|
+
en: "en: Garderobenbereich",
|
|
321
|
+
fr: "fr: Garderobenbereich",
|
|
322
|
+
it: "it: Garderobenbereich"
|
|
323
|
+
},
|
|
324
|
+
WHEELCHAIR: {
|
|
325
|
+
de: "Rollstuhlzone",
|
|
326
|
+
en: "Wheelchairzone",
|
|
327
|
+
fr: "Zone pour fauteuils roulants",
|
|
328
|
+
it: "Zona per disabili"
|
|
329
|
+
},
|
|
330
|
+
WHEELCHAIR_AND_SEAT: {
|
|
331
|
+
de: "Rollstuhlzone",
|
|
332
|
+
en: "Wheelchairzone",
|
|
333
|
+
fr: "Zone pour fauteuils roulants",
|
|
334
|
+
it: "Zona per disabili"
|
|
335
|
+
},
|
|
336
|
+
WHEELCHAIR_ICON: {
|
|
337
|
+
de: "Rollstuhlzone",
|
|
338
|
+
en: "Wheelchairzone",
|
|
339
|
+
fr: "Zone pour fauteuils roulants",
|
|
340
|
+
it: "Zona per disabili"
|
|
341
|
+
},
|
|
342
|
+
WHEELCHAIR_NO_SEAT: {
|
|
343
|
+
de: "Rollstuhlzone",
|
|
344
|
+
en: "Wheelchairzone",
|
|
345
|
+
fr: "Zone pour fauteuils roulants",
|
|
346
|
+
it: "Zona per disabili"
|
|
347
|
+
},
|
|
348
|
+
WIFI: {
|
|
349
|
+
de: "Gratis-Internet mit der App SBB FreeSurf",
|
|
350
|
+
en: "Free internet with the SBB FreeSurf app",
|
|
351
|
+
fr: "Internet gratuit avec l'application SBB FreeSurf",
|
|
352
|
+
it: "Internet gratuito con l'app SBB FreeSurf"
|
|
353
|
+
},
|
|
354
|
+
//ADDITIONAL INFO FOR SEATS
|
|
355
|
+
AISLE_SEAT: {
|
|
356
|
+
de: "Gangplatz",
|
|
357
|
+
en: "en: Aisle seat",
|
|
358
|
+
fr: "fr:Aisle seat",
|
|
359
|
+
it: "it:Aisle seat"
|
|
360
|
+
},
|
|
361
|
+
POWER: {
|
|
362
|
+
de: "Steckdose",
|
|
363
|
+
en: "Power socket",
|
|
364
|
+
fr: "Prise Électrique",
|
|
365
|
+
it: "Presa Elettrica"
|
|
366
|
+
},
|
|
367
|
+
TABLE: {
|
|
368
|
+
de: "Tisch",
|
|
369
|
+
en: "Table",
|
|
370
|
+
fr: "Table",
|
|
371
|
+
it: "Tavolo"
|
|
372
|
+
},
|
|
373
|
+
TABLE_RESTAURANT: {
|
|
374
|
+
de: "Tisch",
|
|
375
|
+
en: "Table",
|
|
376
|
+
fr: "Table",
|
|
377
|
+
it: "Tavolo"
|
|
378
|
+
},
|
|
379
|
+
WINDOW_SEAT: {
|
|
380
|
+
de: "Fensterplatz",
|
|
381
|
+
en: "Window seat",
|
|
382
|
+
fr: "Place Côté Fenêtre",
|
|
383
|
+
it: "Posto Finestrino"
|
|
384
|
+
},
|
|
385
|
+
//PLACE CONTROL ARIA LABEL
|
|
386
|
+
PLACE_CONTROL_SEAT_FREE: {
|
|
387
|
+
de: "Sitzplatz Nummer _param0_ ist frei",
|
|
388
|
+
en: "Seat number _param0_ is free",
|
|
389
|
+
fr: "Le siège numéro _param0_ est libre",
|
|
390
|
+
it: "Il posto numero _param0_ è libero"
|
|
391
|
+
},
|
|
392
|
+
PLACE_CONTROL_SEAT_SELECTED: {
|
|
393
|
+
de: "Sitzplatz Nummer _param0_ ist ausgewählt",
|
|
394
|
+
en: "Seat number _param0_ is selected",
|
|
395
|
+
fr: "Le numéro de siège _param0_ est sélectionné",
|
|
396
|
+
it: "Il numero di posto _param0_ è selezionato"
|
|
397
|
+
},
|
|
398
|
+
PLACE_CONTROL_BICYCLE_FREE: {
|
|
399
|
+
de: "Fahrrad Platz Nummer _param0_ ist frei",
|
|
400
|
+
en: "Bike Seat number _param0_ is free",
|
|
401
|
+
fr: "Le siège de vélo numéro _param0_ est libre",
|
|
402
|
+
it: "Il posto bici numero _param0_ è libero"
|
|
403
|
+
},
|
|
404
|
+
PLACE_CONTROL_BICYCLE_SELECTED: {
|
|
405
|
+
de: "Fahrrad Platz Nummer _param0_ ist ausgewählt",
|
|
406
|
+
en: "Bike Seat number _param0_ is selected",
|
|
407
|
+
fr: "Le siège de vélo numéro _param0_ est sélectionné",
|
|
408
|
+
it: "Il sedile della bici numero _param0_ è selezionato"
|
|
409
|
+
},
|
|
410
|
+
PLACE_CONTROL_SEAT_RESTRICTED: {
|
|
411
|
+
de: "Sitzplatz nicht verfügbar",
|
|
412
|
+
en: "Seat not available",
|
|
413
|
+
fr: "Siège non disponible",
|
|
414
|
+
it: "Posto non disponibile"
|
|
415
|
+
},
|
|
416
|
+
PLACE_CONTROL_BICYCLE_RESTRICTED: {
|
|
417
|
+
de: "Fahrradplatz nicht verfügbar",
|
|
418
|
+
en: "Bike place not available",
|
|
419
|
+
fr: "Siège non disponible",
|
|
420
|
+
it: "Posto non disponibile"
|
|
421
|
+
},
|
|
422
|
+
PLACE_CONTROL_SEAT_ALLOCATED: {
|
|
423
|
+
de: "Sitzplatz _param0_ nicht verfügbar",
|
|
424
|
+
en: "Seat _param0_ not available",
|
|
425
|
+
fr: "Siège _param0_ non disponible",
|
|
426
|
+
it: "Posto _param0_ non disponibile"
|
|
427
|
+
},
|
|
428
|
+
PLACE_CONTROL_BICYCLE_ALLOCATED: {
|
|
429
|
+
de: "Fahrradplatz _param0_ nicht verfügbar",
|
|
430
|
+
en: "Bike place _param0_ not available",
|
|
431
|
+
fr: "Siège _param0_ non disponible",
|
|
432
|
+
it: "Posto _param0_ non disponibile"
|
|
433
|
+
},
|
|
434
|
+
PLACE_PROPERTY: {
|
|
435
|
+
de: "Platzeigenschaften",
|
|
436
|
+
en: "en:Platzeigenschaften",
|
|
437
|
+
fr: "fr:Platzeigenschaften",
|
|
438
|
+
it: "it:Platzeigenschaften"
|
|
439
|
+
},
|
|
440
|
+
COACH_AVAILABLE_SERVICES: {
|
|
441
|
+
de: "Verfügbare Services",
|
|
442
|
+
en: "en:Verfügbare Services",
|
|
443
|
+
fr: "fr:Verfügbare Services",
|
|
444
|
+
it: "it:Verfügbare Services"
|
|
445
|
+
},
|
|
446
|
+
// LEAVE EXAMPLE AT LAST POSITION
|
|
447
|
+
EXAMPLE_WITH_PARAMS_DO_NOT_USE: {
|
|
448
|
+
de: "Test mit Parametern: _param0_ und _param1_",
|
|
449
|
+
en: "Test with parameters: _param0_ and _param1_",
|
|
450
|
+
fr: "Test avec paramètres: _param0_ et _param1_",
|
|
451
|
+
it: "Test con parametri: _param0_ e _param1_"
|
|
452
|
+
}
|
|
453
|
+
}, _ = (i, t, e) => {
|
|
454
|
+
var r;
|
|
455
|
+
const a = ((r = l[i]) == null ? void 0 : r[t]) || "";
|
|
456
|
+
return e ? e.reduce((n, s, o) => n.replace(`_param${o}_`, s), a) : a;
|
|
457
|
+
};
|
|
458
|
+
export {
|
|
459
|
+
_ as getI18nSeatReservation
|
|
460
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/common/translations.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/common.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getI18nSeatReservation as a } from "./common/translations/i18n.js";
|
|
2
|
+
import { svgs as r } from "./common/svgs.js";
|
|
3
|
+
import { mapCoachInfosToCoachSelection as c, mapPlaceAndCoachToSeatReservationPlaceSelection as n, mapPlaceInfosToPlaceSelection as m, mapRawDataToSeatReservation as p } from "./common/mapper/mapper.js";
|
|
4
|
+
import { mapIconToSvg as S } from "./common/mapper/icon-mapper.js";
|
|
5
|
+
import { MOCK_COACHES_RAW_0 as R, MOCK_COACHES_RAW_1 as f, MOCK_COACHES_RAW_REAL_DATA as l } from "./common/mapper/seat-reservation-sample-data.js";
|
|
6
|
+
export {
|
|
7
|
+
R as MOCK_COACHES_RAW_0,
|
|
8
|
+
f as MOCK_COACHES_RAW_1,
|
|
9
|
+
l as MOCK_COACHES_RAW_REAL_DATA,
|
|
10
|
+
a as getI18nSeatReservation,
|
|
11
|
+
c as mapCoachInfosToCoachSelection,
|
|
12
|
+
S as mapIconToSvg,
|
|
13
|
+
n as mapPlaceAndCoachToSeatReservationPlaceSelection,
|
|
14
|
+
m as mapPlaceInfosToPlaceSelection,
|
|
15
|
+
p as mapRawDataToSeatReservation,
|
|
16
|
+
r as svgs
|
|
17
|
+
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { EventEmitter } from '@sbb-esta/lyne-elements/core/eventing.js';
|
|
2
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
3
|
+
import { ElementDimension, ElementPosition, Place, PlaceSelection, SeatReservation, SeatReservationCoachSelection, SeatReservationPlaceSelection } from '../seat-reservation.js';
|
|
4
|
+
declare enum ScrollDirection {
|
|
5
|
+
right = "right",
|
|
6
|
+
left = "left"
|
|
7
|
+
}
|
|
8
|
+
interface CoachScrollTriggerPoint {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
width: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class SeatReservationBaseElement extends LitElement {
|
|
14
|
+
static readonly events: {
|
|
15
|
+
readonly selectedPlaces: "selectedPlaces";
|
|
16
|
+
readonly selectedCoach: "selectedCoach";
|
|
17
|
+
};
|
|
18
|
+
/** The seat reservation object which contains all coaches and places */
|
|
19
|
+
accessor seatReservation: SeatReservation;
|
|
20
|
+
/** The seat resvervation navigation can be toggled by this property */
|
|
21
|
+
accessor hasNavigation: boolean;
|
|
22
|
+
/** The seat reservation area is aligned vertically */
|
|
23
|
+
accessor alignVertical: boolean;
|
|
24
|
+
/** The seat reservation area's base grid size */
|
|
25
|
+
accessor baseGridSize: number;
|
|
26
|
+
/** The seat reservation area's width */
|
|
27
|
+
accessor height: number;
|
|
28
|
+
/** Maximal number of possible clickable seats */
|
|
29
|
+
accessor maxReservations: number;
|
|
30
|
+
/** Any click functionality is prevented */
|
|
31
|
+
accessor preventPlaceClick: boolean;
|
|
32
|
+
protected accessor selectedCoachIndex: number;
|
|
33
|
+
protected accessor focusedCoachIndex: number;
|
|
34
|
+
/** Emits when a place was selected by user. */
|
|
35
|
+
protected selectedPlaces: EventEmitter<SeatReservationPlaceSelection[]>;
|
|
36
|
+
/** Emits when a coach was selected by user. */
|
|
37
|
+
protected selectedCoach: EventEmitter<SeatReservationCoachSelection>;
|
|
38
|
+
protected coachBorderPadding: number;
|
|
39
|
+
protected coachBorderOffset: number;
|
|
40
|
+
protected currScrollDirection: ScrollDirection;
|
|
41
|
+
protected maxCalcCoachsWidth: number;
|
|
42
|
+
protected scrollCoachsAreaWidth: number;
|
|
43
|
+
protected triggerCoachPositionsCollection: CoachScrollTriggerPoint[];
|
|
44
|
+
protected firstTabElement: HTMLElement;
|
|
45
|
+
protected lastTabElement: HTMLElement;
|
|
46
|
+
protected coachScrollArea: HTMLElement;
|
|
47
|
+
protected currSelectedPlace: Place | null;
|
|
48
|
+
protected currSelectedPlaceElementId: string | null;
|
|
49
|
+
protected currSelectedCoachIndex: number;
|
|
50
|
+
protected preventCoachScrollByPlaceClick: boolean;
|
|
51
|
+
protected selectedSeatReservationPlaces: SeatReservationPlaceSelection[];
|
|
52
|
+
protected seatReservationWithoutNavigationHasFocus: boolean;
|
|
53
|
+
protected isCochGridFocusable: boolean;
|
|
54
|
+
protected isAutoScrolling: boolean;
|
|
55
|
+
protected isKeyboardNavigation: boolean;
|
|
56
|
+
protected keyboardNavigationEvents: {
|
|
57
|
+
readonly ArrowLeft: "ArrowLeft";
|
|
58
|
+
readonly ArrowRight: "ArrowRight";
|
|
59
|
+
readonly ArrowUp: "ArrowUp";
|
|
60
|
+
readonly ArrowDown: "ArrowDown";
|
|
61
|
+
readonly Tab: "Tab";
|
|
62
|
+
readonly Enter: "Enter";
|
|
63
|
+
};
|
|
64
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
65
|
+
protected initNavigationSelectionByScrollEvent(): void;
|
|
66
|
+
/**
|
|
67
|
+
* If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,
|
|
68
|
+
* the first place in the coach must be automatically preselected to control the place navigation via keyboard
|
|
69
|
+
*
|
|
70
|
+
* @param focusCoachIndex
|
|
71
|
+
*/
|
|
72
|
+
protected onFocusTableCoachAndPreselectPlace(focusCoachIndex: number): void;
|
|
73
|
+
/**
|
|
74
|
+
* Initialisation of Keyboard event handling to navigation between each places inside a selected coach by using [arrow] keys.
|
|
75
|
+
* With the [TAB] key the user navigation goes to the next coach navigation element and the currently selected place is automatically reset.
|
|
76
|
+
*/
|
|
77
|
+
protected handleKeyboardEvent(event: KeyboardEvent): void;
|
|
78
|
+
/**
|
|
79
|
+
* Selects a place inside the coach if navigated via keyboard,
|
|
80
|
+
* otherwise the coach grid is selected (necessary for ScreenReader)
|
|
81
|
+
*/
|
|
82
|
+
protected preselectPlaceInCoach(): void;
|
|
83
|
+
protected scrollToSelectedNavCoach(selectedNavCoachIndex: number): void;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the new ScrollDirection by the new given target coach index.
|
|
86
|
+
*/
|
|
87
|
+
private _setScrollDirectionByCoachIndex;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the scroll start or end position X from the selected coach.
|
|
90
|
+
* In case the user is curretnly navigate throught places by keyboard and goes to previous coach,
|
|
91
|
+
* then we return the end position of the coach to get clostest next scroll position of the next focus place.
|
|
92
|
+
* @returns number
|
|
93
|
+
*/
|
|
94
|
+
private _getCoachScrollPositionX;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the focus on the HTML table (grid) caption element so that the heading is read out when using a ScreenReader.
|
|
97
|
+
*/
|
|
98
|
+
private _setFocusToSelectedCoachGrid;
|
|
99
|
+
/**
|
|
100
|
+
* Returns whether the current scrolled position can be used to scroll to the selected wagon
|
|
101
|
+
* @returns boolean
|
|
102
|
+
*/
|
|
103
|
+
private _isScrollableToSelectedCoach;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the coach index which is currently visible in the scroll area
|
|
106
|
+
* @returns number
|
|
107
|
+
*/
|
|
108
|
+
private _getCoachIndexByScrollTriggerPosition;
|
|
109
|
+
/**
|
|
110
|
+
* Get the first place of current selected coach by table cell coordinate 0-0 id.
|
|
111
|
+
* @returns Place or null
|
|
112
|
+
*/
|
|
113
|
+
private _getFirstPlaceInSelecedCoach;
|
|
114
|
+
/**
|
|
115
|
+
* To get the correct closest place of current pressed key and the current selected place,
|
|
116
|
+
* we have to investigate the coordinates of each place to find the closest place of the currSelectedPlaceElementId.
|
|
117
|
+
* @param pressedKey
|
|
118
|
+
* @returns Place or null
|
|
119
|
+
*/
|
|
120
|
+
private _getClosestPlaceByKeyDirection;
|
|
121
|
+
protected focusPlaceElement(place: Place | null, coachIndex?: number): void;
|
|
122
|
+
protected unfocusPlaceElement(): void;
|
|
123
|
+
protected getCalculatedDimension(elementDimension: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean, isStretchHeight?: boolean): ElementDimension;
|
|
124
|
+
protected getCalculatedPosition(elementPosition: ElementPosition, elementDimension?: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean): ElementPosition;
|
|
125
|
+
private _navigateCoachNavigationByKeyboard;
|
|
126
|
+
private _navigateToPlaceByKeyboard;
|
|
127
|
+
protected getNextAvailableCoachIndex(currentIndex?: number): number;
|
|
128
|
+
protected getPrevAvailableCoachIndex(currentIndex?: number): number;
|
|
129
|
+
protected updateSelectedSeatReservationPlaces(placeSelection: PlaceSelection): void;
|
|
130
|
+
protected updateCurrentSelectedPlaceInCoach(placeSelection: PlaceSelection): void;
|
|
131
|
+
protected updateCurrentSelectedCoach(): void;
|
|
132
|
+
/**
|
|
133
|
+
* Initialization of SeatReservationPlaceSelection Array based on the transferred places
|
|
134
|
+
* that have the state SELECTED within the seatReservation object
|
|
135
|
+
*/
|
|
136
|
+
private _initSeatReservationPlaceSelection;
|
|
137
|
+
/**
|
|
138
|
+
* All selected places will be reset or the currentSelectedPlace was given, then we reset all except currentSelectedPlace
|
|
139
|
+
* @param currSelectedPlace
|
|
140
|
+
*/
|
|
141
|
+
private _resetAllPlaceSelections;
|
|
142
|
+
private _getSeatReservationPlaceSelection;
|
|
143
|
+
private _getSeatReservationCoachSelection;
|
|
144
|
+
private _setCurrSelectedPlaceElementId;
|
|
145
|
+
/**
|
|
146
|
+
* Returns the current selected place HTML element by given placeNumber and coachIndex.
|
|
147
|
+
* If both doesnt exist, we try to return the place HTML element by the _currentSelectedPlaceElementId
|
|
148
|
+
* @param placeNumber optional as string
|
|
149
|
+
* @param coachIndex optional as string
|
|
150
|
+
* @returns HTMLElement or null
|
|
151
|
+
*/
|
|
152
|
+
private _getPlaceHtmlElement;
|
|
153
|
+
private _setVerticalAlignmentOffset;
|
|
154
|
+
}
|
|
155
|
+
export {};
|
|
156
|
+
//# sourceMappingURL=seat-reservation-base-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seat-reservation-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAStD,OAAO,KAAK,EAEV,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,cAAc,EACd,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAIhC,aAAK,eAAe;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,0BAA2B,SAAQ,UAAU;IACxD,gBAAuB,MAAM;;;MAGlB;IAEX,wEAAwE;IACxE,SACgB,eAAe,EAAE,eAAe,CAAS;IAEzD,uEAAuE;IACvE,SAEgB,aAAa,EAAE,OAAO,CAAQ;IAE9C,sDAAsD;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