@sbb-esta/lyne-elements-experimental 4.0.0-next.2 → 4.0.0-next.4
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.d.ts +38 -0
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +89 -0
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +31 -0
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +54 -0
- package/autocomplete-grid/autocomplete-grid-button.d.ts +5 -0
- package/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-button.js +4 -0
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +19 -0
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +25 -0
- package/autocomplete-grid/autocomplete-grid-cell.d.ts +5 -0
- package/autocomplete-grid/autocomplete-grid-cell.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-cell.js +4 -0
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +19 -0
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +29 -0
- package/autocomplete-grid/autocomplete-grid-optgroup.d.ts +5 -0
- package/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -0
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +26 -0
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +41 -0
- package/autocomplete-grid/autocomplete-grid-option.d.ts +5 -0
- package/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-option.js +5 -0
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +20 -0
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +28 -0
- package/autocomplete-grid/autocomplete-grid-row.d.ts +5 -0
- package/autocomplete-grid/autocomplete-grid-row.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid-row.js +4 -0
- package/autocomplete-grid/autocomplete-grid.d.ts +5 -0
- package/autocomplete-grid/autocomplete-grid.d.ts.map +1 -0
- package/autocomplete-grid/autocomplete-grid.js +4 -0
- package/autocomplete-grid.d.ts +10 -0
- package/autocomplete-grid.d.ts.map +1 -0
- package/autocomplete-grid.js +15 -0
- package/core/datetime.d.ts +1 -1
- package/core/timetable/access-leg-helper.d.ts +6 -6
- package/core/timetable/timetable-helper.d.ts +1 -1
- package/core/timetable.d.ts +3 -3
- package/custom-elements.json +936 -136
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +38 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +140 -0
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +31 -0
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +82 -0
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +5 -0
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-button.js +5 -0
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +19 -0
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +40 -0
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +5 -0
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-cell.js +5 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +19 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +40 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +5 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +5 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +26 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +134 -0
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +5 -0
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-option.js +6 -0
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +20 -0
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +115 -0
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +5 -0
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-row.js +5 -0
- package/development/autocomplete-grid/autocomplete-grid.d.ts +5 -0
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid.js +5 -0
- package/development/autocomplete-grid.d.ts +10 -0
- package/development/autocomplete-grid.d.ts.map +1 -0
- package/development/autocomplete-grid.js +16 -0
- package/development/core/datetime.d.ts +1 -1
- package/development/core/timetable/access-leg-helper.d.ts +6 -6
- package/development/core/timetable/access-leg-helper.js +1 -1
- package/development/core/timetable/timetable-helper.d.ts +1 -1
- package/development/core/timetable/timetable-helper.js +1 -1
- package/development/core/timetable.d.ts +3 -3
- package/development/journey-summary/journey-summary.component.d.ts +1 -1
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/journey-summary.d.ts +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/pearl-chain-time.d.ts +1 -1
- package/development/pearl-chain-vertical-item.d.ts +1 -1
- package/development/pearl-chain-vertical.d.ts +1 -1
- package/development/pearl-chain.d.ts +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/mapper/mapper.d.ts +4 -2
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +1 -1
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +0 -88
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +1 -815
- package/development/seat-reservation/common/mapper.d.ts +2 -2
- package/development/seat-reservation/common/translations.d.ts +1 -1
- package/development/seat-reservation/common.d.ts +4 -4
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +5 -4
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +16 -10
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -2
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +13 -10
- package/development/seat-reservation/seat-reservation-area.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +8 -4
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +57 -22
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-scoped.d.ts +1 -1
- package/development/seat-reservation/seat-reservation.d.ts +2 -2
- package/development/seat-reservation.d.ts +8 -8
- package/development/timetable-duration.d.ts +1 -1
- package/development/timetable-row/timetable-row.component.d.ts +1 -1
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +7 -7
- package/development/timetable-row.d.ts +1 -1
- package/index.d.ts +12 -0
- package/index.js +12 -0
- package/journey-summary/journey-summary.component.d.ts +1 -1
- package/journey-summary.d.ts +1 -1
- package/package.json +37 -2
- package/pearl-chain/pearl-chain.component.d.ts +1 -1
- package/pearl-chain-time/pearl-chain-time.component.d.ts +1 -1
- package/pearl-chain-time.d.ts +1 -1
- package/pearl-chain-vertical-item.d.ts +1 -1
- package/pearl-chain-vertical.d.ts +1 -1
- package/pearl-chain.d.ts +1 -1
- package/seat-reservation/common/mapper/mapper.d.ts +4 -2
- package/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +0 -88
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -1
- package/seat-reservation/common/mapper/seat-reservation-sample-data.js +2 -815
- package/seat-reservation/common/mapper.d.ts +2 -2
- package/seat-reservation/common/translations.d.ts +1 -1
- package/seat-reservation/common.d.ts +4 -4
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +5 -4
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +31 -30
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -2
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +40 -41
- package/seat-reservation/seat-reservation-area.d.ts +1 -1
- package/seat-reservation/seat-reservation-graphic.d.ts +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +8 -4
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +148 -127
- package/seat-reservation/seat-reservation-navigation-coach.d.ts +1 -1
- package/seat-reservation/seat-reservation-navigation-services.d.ts +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +1 -1
- package/seat-reservation/seat-reservation-place-control.d.ts +1 -1
- package/seat-reservation/seat-reservation-scoped.d.ts +1 -1
- package/seat-reservation/seat-reservation.d.ts +2 -2
- package/seat-reservation.d.ts +8 -8
- package/timetable-duration.d.ts +1 -1
- package/timetable-row/timetable-row.component.d.ts +1 -1
- package/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/timetable-row/timetable-row.component.js +18 -18
- package/timetable-row.d.ts +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './mapper/mapper.
|
|
2
|
-
export * from './mapper/icon-mapper.
|
|
1
|
+
export * from './mapper/mapper.ts';
|
|
2
|
+
export * from './mapper/icon-mapper.ts';
|
|
3
3
|
//# sourceMappingURL=mapper.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './translations/i18n.
|
|
1
|
+
export * from './translations/i18n.ts';
|
|
2
2
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @entrypoint
|
|
3
3
|
*/
|
|
4
|
-
export * from './common/mapper.
|
|
5
|
-
export * from './common/svgs.
|
|
6
|
-
export * from './common/translations.
|
|
7
|
-
export * from './common/types.
|
|
4
|
+
export * from './common/mapper.ts';
|
|
5
|
+
export * from './common/svgs.ts';
|
|
6
|
+
export * from './common/translations.ts';
|
|
7
|
+
export * from './common/types.ts';
|
|
8
8
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import { CoachNumberOfFreePlaces, ElementDimension, ElementPosition, Place, PlaceSelection, SeatReservation, SeatReservationSelectedPlaces
|
|
2
|
+
import { BaseElement, CoachNumberOfFreePlaces, ElementDimension, ElementPosition, NavigationCoachItem, Place, PlaceSelection, SeatReservation, SeatReservationSelectedPlaces } from '../common.ts';
|
|
3
3
|
declare enum ScrollDirection {
|
|
4
4
|
right = "right",
|
|
5
5
|
left = "left"
|
|
@@ -60,6 +60,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
60
60
|
protected isAutoScrolling: boolean;
|
|
61
61
|
protected isKeyboardNavigation: boolean;
|
|
62
62
|
protected hasMultipleDecks: boolean;
|
|
63
|
+
protected hasSeatReservationNativeFocus: boolean;
|
|
63
64
|
protected keyboardNavigationEvents: {
|
|
64
65
|
readonly ArrowLeft: "ArrowLeft";
|
|
65
66
|
readonly ArrowRight: "ArrowRight";
|
|
@@ -81,7 +82,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
81
82
|
/**
|
|
82
83
|
* Scroll event handler managed the end of scrolling inside the coach scroll area.
|
|
83
84
|
* Timeout event handling to check if the scrolling has been completed.
|
|
84
|
-
* It is required because the Safari browser does not handle scrollend event
|
|
85
|
+
* It is required because the Safari browser does not handle scrollend event,
|
|
85
86
|
* and we therefore imitate this event -> scrollend.
|
|
86
87
|
*/
|
|
87
88
|
protected coachAreaScrollend(): void;
|
|
@@ -161,7 +162,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
161
162
|
* Get the first place of current selected coach by table cell coordinate 0-0 id.
|
|
162
163
|
* @returns Place or null
|
|
163
164
|
*/
|
|
164
|
-
private
|
|
165
|
+
private _getFirstPlaceInSelectedCoach;
|
|
165
166
|
private _getSwitchedCoachDeckIndexByKeyNavigation;
|
|
166
167
|
/**
|
|
167
168
|
* To get the correct closest place of current pressed key and the current selected place,
|
|
@@ -229,7 +230,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
229
230
|
* @returns number
|
|
230
231
|
*/
|
|
231
232
|
private _getDeckIndexByPlaceId;
|
|
232
|
-
private
|
|
233
|
+
private _isValidCoachIndex;
|
|
233
234
|
/**
|
|
234
235
|
* Returns existing coach deck index depending on the selected coach.
|
|
235
236
|
* This method is necessary to get an available coach deck index during keyboard navigation, which can vary between coaches with different decks.
|
|
@@ -1 +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,
|
|
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,EAAY,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAShE,OAAO,KAAK,EACV,WAAW,EAEX,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,KAAK,EACL,cAAc,EAEd,eAAe,EAGf,6BAA6B,EAC9B,MAAM,cAAc,CAAC;AAGtB,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;AAaD,qBAAa,0BAA2B,SAAQ,UAAU;IACxD,gBAAuB,MAAM;;;MAGlB;IAEX,kEAAkE;IAClE,SACgB,gBAAgB,EAAE,eAAe,EAAE,CAAS;IAE5D,sEAAsE;IACtE,SAEgB,aAAa,EAAE,OAAO,CAAQ;IAE9C,sDAAsD;IACtD,SAEgB,aAAa,EAAE,OAAO,CAAS;IAE/C,iDAAiD;IACjD,SAEgB,YAAY,EAAE,MAAM,CAAM;IAE1C,wCAAwC;IACxC,SAEgB,MAAM,EAAE,MAAM,CAAS;IAEvC,iDAAiD;IACjD,SAEgB,mBAAmB,EAAE,MAAM,CAAM;IAEjD,0DAA0D;IAC1D,SAEgB,sBAAsB,EAAE,MAAM,CAAM;IAEpD,2CAA2C;IAC3C,SAEgB,iBAAiB,EAAE,OAAO,CAAS;IAEnD,SAEgB,mBAAmB,EAAE,MAAM,CAAM;IAExC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAM;IACnD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAM;IAElD,SAAS,CAAC,QAAQ,CAA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AA6B;IAMrC,OAAO,CAAC,gCAAgC;IAsBxC,OAAO,CAAC,8BAA8B,CA4BpC;IAEF;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,kBAAkB;IAO1B;;;;;;;;;OASG;IACH,OAAO,CAAC,0BAA0B;IAkBlC;;;;;OAKG;IACH,OAAO,CAAC,+BAA+B;CAKxC"}
|
|
@@ -23,8 +23,8 @@ const Pe = 3, Ae = [
|
|
|
23
23
|
"sa-rz"
|
|
24
24
|
];
|
|
25
25
|
let ze = (() => {
|
|
26
|
-
var x, p, m, _, y, b, P, A, k,
|
|
27
|
-
let n = xe, d = [], u, D = [], B = [], z, F = [], V = [], O, G = [], L = [], W, X = [],
|
|
26
|
+
var x, p, m, _, y, b, P, A, R, k, N, E, h;
|
|
27
|
+
let n = xe, d = [], u, D = [], B = [], z, F = [], V = [], O, G = [], L = [], W, X = [], K = [], H, U = [], q = [], M, $ = [], j = [], Y, J = [], Q = [], Z, ee = [], te = [], se, ie = [], ae = [], ce, oe = [], re = [], le, ne = [], he = [], de, ue = [], ge = [], ve;
|
|
28
28
|
return h = class extends n {
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
@@ -36,14 +36,14 @@ let ze = (() => {
|
|
|
36
36
|
v(this, b);
|
|
37
37
|
v(this, P);
|
|
38
38
|
v(this, A);
|
|
39
|
-
v(this, k);
|
|
40
39
|
v(this, R);
|
|
41
|
-
v(this,
|
|
40
|
+
v(this, k);
|
|
42
41
|
v(this, N);
|
|
43
|
-
|
|
42
|
+
v(this, E);
|
|
43
|
+
r(this, x, (l(this, d), l(this, D, null))), r(this, p, (l(this, B), l(this, F, !0))), r(this, m, (l(this, V), l(this, G, !1))), r(this, _, (l(this, L), l(this, X, 16))), r(this, y, (l(this, K), l(this, U, null))), r(this, b, (l(this, q), l(this, $, -1))), r(this, P, (l(this, j), l(this, J, -1))), r(this, A, (l(this, Q), l(this, ee, !1))), r(this, R, (l(this, te), l(this, ie, -1))), r(this, k, (l(this, ae), l(this, oe, -1))), r(this, N, (l(this, re), l(this, ne, -1))), r(this, E, (l(this, he), l(this, ue, -1))), this.coachBorderPadding = (l(this, ge), 6), this.gapBetweenCoaches = 4, this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize, this.gapBetweenCoachDecks = 48, this.coachNavButtonDim = 0, this.coachNavData = [], this.currScrollDirection = I.right, this.maxCalcCoachsWidth = 0, this.scrollCoachsAreaWidth = 0, this.scrollNavigationAreaDim = 0, this.triggerCoachPositionsCollection = [], this.firstTabElement = null, this.lastTabElement = null, this.navigationScrollArea = null, this.coachScrollArea = null, this.currSelectedPlace = null, this.currSelectedPlaceElementId = null, this.currSelectedCoachIndex = -1, this.currSelectedDeckIndex = 0, this.preventCoachScrollByPlaceClick = !1, this.selectedSeatReservationPlaces = {
|
|
44
44
|
seats: [],
|
|
45
45
|
bicycles: []
|
|
46
|
-
}, this.seatReservationWithoutNavigationHasFocus = !1, this.isCoachGridFocusable = !1, this.isAutoScrolling = !1, this.isKeyboardNavigation = !1, this.hasMultipleDecks = !1, this.keyboardNavigationEvents = {
|
|
46
|
+
}, this.seatReservationWithoutNavigationHasFocus = !1, this.isCoachGridFocusable = !1, this.isAutoScrolling = !1, this.isKeyboardNavigation = !1, this.hasMultipleDecks = !1, this.hasSeatReservationNativeFocus = !1, this.keyboardNavigationEvents = {
|
|
47
47
|
ArrowLeft: "ArrowLeft",
|
|
48
48
|
ArrowRight: "ArrowRight",
|
|
49
49
|
ArrowUp: "ArrowUp",
|
|
@@ -119,29 +119,29 @@ let ze = (() => {
|
|
|
119
119
|
r(this, A, e);
|
|
120
120
|
}
|
|
121
121
|
get preselectCoachIndex() {
|
|
122
|
-
return g(this,
|
|
122
|
+
return g(this, R);
|
|
123
123
|
}
|
|
124
124
|
set preselectCoachIndex(e) {
|
|
125
|
-
r(this,
|
|
125
|
+
r(this, R, e);
|
|
126
126
|
}
|
|
127
127
|
get selectedCoachIndex() {
|
|
128
|
-
return g(this,
|
|
128
|
+
return g(this, k);
|
|
129
129
|
}
|
|
130
130
|
set selectedCoachIndex(e) {
|
|
131
|
-
r(this,
|
|
131
|
+
r(this, k, e);
|
|
132
132
|
}
|
|
133
133
|
get focusedCoachIndex() {
|
|
134
|
-
return g(this,
|
|
134
|
+
return g(this, N);
|
|
135
135
|
}
|
|
136
136
|
set focusedCoachIndex(e) {
|
|
137
|
-
r(this,
|
|
137
|
+
r(this, N, e);
|
|
138
138
|
}
|
|
139
139
|
//Sets the hover style when scrolling to a coach
|
|
140
140
|
get hoveredScrollCoachIndex() {
|
|
141
|
-
return g(this,
|
|
141
|
+
return g(this, E);
|
|
142
142
|
}
|
|
143
143
|
set hoveredScrollCoachIndex(e) {
|
|
144
|
-
r(this,
|
|
144
|
+
r(this, E, e);
|
|
145
145
|
}
|
|
146
146
|
willUpdate(e) {
|
|
147
147
|
if (super.willUpdate(e), e.has("seatReservations") && (this.hasMultipleDecks = this.seatReservations?.length > 1, this._initPrepareSeatReservationData(), this._initSeatReservationPlaceSelection(), this.initNavigationSelectionByScrollEvent()), e.has("baseGridSize") && (this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize, this.style?.setProperty("--sbb-seat-reservation-grid-size", `${this.baseGridSize}px`), this.initNavigationSelectionByScrollEvent()), e.has("height") && this.height) {
|
|
@@ -193,7 +193,7 @@ let ze = (() => {
|
|
|
193
193
|
/**
|
|
194
194
|
* Scroll event handler managed the end of scrolling inside the coach scroll area.
|
|
195
195
|
* Timeout event handling to check if the scrolling has been completed.
|
|
196
|
-
* It is required because the Safari browser does not handle scrollend event
|
|
196
|
+
* It is required because the Safari browser does not handle scrollend event,
|
|
197
197
|
* and we therefore imitate this event -> scrollend.
|
|
198
198
|
*/
|
|
199
199
|
coachAreaScrollend() {
|
|
@@ -214,7 +214,7 @@ let ze = (() => {
|
|
|
214
214
|
*/
|
|
215
215
|
handleKeyboardEvent(e) {
|
|
216
216
|
const t = e.key;
|
|
217
|
-
if (this.preventCoachScrollByPlaceClick = !1, this.currSelectedPlace) {
|
|
217
|
+
if (this.preventCoachScrollByPlaceClick = !1, !this.hasSeatReservationNativeFocus && (e.shiftKey && e.keyCode === 9 || t === this.keyboardNavigationEvents.Tab) && (this.hasSeatReservationNativeFocus = !0), this.currSelectedPlace) {
|
|
218
218
|
if (e.shiftKey && e.keyCode === 9) {
|
|
219
219
|
this._navigateCoachNavigationByKeyboard("PREV_TAB"), e.preventDefault();
|
|
220
220
|
return;
|
|
@@ -261,7 +261,7 @@ let ze = (() => {
|
|
|
261
261
|
e && this.unfocusPlaceElement(), this.isKeyboardNavigation && this.isAutoScrolling ? e && this.focusPlaceElement(e) : (this.currSelectedPlace = e, this._setFocusToSelectedCoachGrid());
|
|
262
262
|
}
|
|
263
263
|
scrollToSelectedNavCoach(e) {
|
|
264
|
-
if (this.
|
|
264
|
+
if (this._isValidCoachIndex(e) && e !== this.currSelectedCoachIndex) {
|
|
265
265
|
this.isAutoScrolling = !0, this.isCoachGridFocusable = !0, this.currSelectedCoachIndex = e, this.currSelectedDeckIndex = this._getExistingCoachDeckIndex(), this._setScrollDirectionByCoachIndex();
|
|
266
266
|
const t = this._getCoachScrollPositionX();
|
|
267
267
|
(this.selectedCoachIndex !== -1 || this.currSelectedCoachIndex > 0) && this._isScrollableToSelectedCoach() ? this.coachScrollArea.scrollTo({
|
|
@@ -328,7 +328,7 @@ let ze = (() => {
|
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
330
|
const e = this.isAutoScrolling ? this.currSelectedCoachIndex : this._getCoachIndexByScrollTriggerPosition();
|
|
331
|
-
this.currSelectedCoachIndex === -1 && (this.currSelectedCoachIndex = e), this._isScrollableToSelectedCoach() ? this.currSelectedCoachIndex = e : this.currSelectedCoachIndex = e < this.currSelectedCoachIndex ? this.currSelectedCoachIndex : e, this.isAutoScrolling || this._scrollToSelectedNavigationButton(e), this.preventCoachScrollByPlaceClick = !1, this.updateCurrentSelectedCoach(), this.hasNavigation || (this.preselectPlaceInCoach(), this.isAutoScrolling = !1);
|
|
331
|
+
this.hoveredScrollCoachIndex = -1, this.currSelectedCoachIndex === -1 && (this.currSelectedCoachIndex = e), this._isScrollableToSelectedCoach() ? this.currSelectedCoachIndex = e : this.currSelectedCoachIndex = e < this.currSelectedCoachIndex ? this.currSelectedCoachIndex : e, this.isAutoScrolling || this._scrollToSelectedNavigationButton(e), this.preventCoachScrollByPlaceClick = !1, this.updateCurrentSelectedCoach(), this.hasNavigation || (this.preselectPlaceInCoach(), this.isAutoScrolling = !1);
|
|
332
332
|
}
|
|
333
333
|
/**
|
|
334
334
|
* Performs an automatic main navigation scroll to the specified selectedNavCoachIndex.
|
|
@@ -367,7 +367,7 @@ let ze = (() => {
|
|
|
367
367
|
* Sets the focus on the HTML table (grid) caption element so that the heading is read out when using a ScreenReader.
|
|
368
368
|
*/
|
|
369
369
|
_setFocusToSelectedCoachGrid() {
|
|
370
|
-
if (this.isCoachGridFocusable) {
|
|
370
|
+
if (this.isCoachGridFocusable && this.hasSeatReservationNativeFocus) {
|
|
371
371
|
this.isCoachGridFocusable = !1;
|
|
372
372
|
const e = this.shadowRoot?.querySelector("#sbb-sr-coach-caption-" + this.currSelectedCoachIndex);
|
|
373
373
|
e && e.focus();
|
|
@@ -393,7 +393,7 @@ let ze = (() => {
|
|
|
393
393
|
* Get the first place of current selected coach by table cell coordinate 0-0 id.
|
|
394
394
|
* @returns Place or null
|
|
395
395
|
*/
|
|
396
|
-
|
|
396
|
+
_getFirstPlaceInSelectedCoach() {
|
|
397
397
|
let e = null;
|
|
398
398
|
const t = this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex], s = "cell-" + this.currSelectedDeckIndex + "-" + this.currSelectedCoachIndex + "-0-0", i = this.shadowRoot?.querySelector("#" + s)?.querySelector("sbb-seat-reservation-place-control")?.getAttribute("text") || null;
|
|
399
399
|
return t && i && (e = t.places?.find((a) => a.number === i) || null), e;
|
|
@@ -420,10 +420,10 @@ let ze = (() => {
|
|
|
420
420
|
a !== null && s && (this.currSelectedDeckIndex = a);
|
|
421
421
|
}
|
|
422
422
|
} else
|
|
423
|
-
return this.
|
|
423
|
+
return this._getFirstPlaceInSelectedCoach();
|
|
424
424
|
return s;
|
|
425
425
|
}
|
|
426
|
-
// Handling for Tab navigation if
|
|
426
|
+
// Handling for Tab navigation if a place is selected inside the coach.
|
|
427
427
|
// This controls the focused coach from the current selected coach.
|
|
428
428
|
_navigateCoachNavigationByKeyboard(e) {
|
|
429
429
|
const t = this.focusedCoachIndex === -1 ? this.currSelectedCoachIndex === -1 ? 0 : this.currSelectedCoachIndex : this.focusedCoachIndex, s = e === "NEXT_TAB" ? this.getNextAvailableCoachIndex(t) : this.getPrevAvailableCoachIndex(t);
|
|
@@ -464,8 +464,8 @@ let ze = (() => {
|
|
|
464
464
|
return t > 0 ? t - 1 : t;
|
|
465
465
|
}
|
|
466
466
|
updateSelectedSeatReservationPlaces(e) {
|
|
467
|
-
const t = e.placeType === "SEAT" ? "seats" : "bicycles", s = e.placeType === "SEAT" ? this.maxSeatReservations : this.maxBicycleReservations, i = this.selectedSeatReservationPlaces[t]
|
|
468
|
-
this.selectedSeatReservationPlaces[t] =
|
|
467
|
+
const t = e.placeType === "SEAT" ? "seats" : "bicycles", s = e.placeType === "SEAT" ? this.maxSeatReservations : this.maxBicycleReservations, i = this.selectedSeatReservationPlaces[t];
|
|
468
|
+
this.selectedSeatReservationPlaces[t] = this._updateSelectedSeatReservationPlaces(i, s, e), this.dispatchEvent(new CustomEvent("selectedplaces", {
|
|
469
469
|
bubbles: !0,
|
|
470
470
|
composed: !0,
|
|
471
471
|
detail: this.selectedSeatReservationPlaces
|
|
@@ -490,7 +490,7 @@ let ze = (() => {
|
|
|
490
490
|
const i = this.seatReservations[t].coachItems[s].places?.find((o) => o.number == e.number);
|
|
491
491
|
if (!i)
|
|
492
492
|
return;
|
|
493
|
-
this.currSelectedDeckIndex = t, this.currSelectedCoachIndex = s, this.currSelectedPlace = i, this.currSelectedCoachIndex !== this.selectedCoachIndex && this.updateCurrentSelectedCoach(), this._setCurrSelectedPlaceElementId(i);
|
|
493
|
+
this.unfocusPlaceElement(), this.currSelectedDeckIndex = t, this.currSelectedCoachIndex = s, this.currSelectedPlace = i, this.currSelectedCoachIndex !== this.selectedCoachIndex && this.updateCurrentSelectedCoach(), this._setCurrSelectedPlaceElementId(i);
|
|
494
494
|
const a = setTimeout(() => {
|
|
495
495
|
this._scrollPlaceIntoNearestViewport(e.id), clearTimeout(a);
|
|
496
496
|
}, 0);
|
|
@@ -594,7 +594,8 @@ let ze = (() => {
|
|
|
594
594
|
* - whether there is a driver area left or right
|
|
595
595
|
* */
|
|
596
596
|
_prepareNavigationCoachData() {
|
|
597
|
-
this.seatReservations[this.seatReservations.length - 1].coachItems
|
|
597
|
+
const e = this.seatReservations[this.seatReservations.length - 1].coachItems;
|
|
598
|
+
this.coachNavData = [], e.forEach((t, s) => {
|
|
598
599
|
const i = [], a = [], o = [];
|
|
599
600
|
this.seatReservations.map((c) => c.coachItems[s]).forEach((c) => {
|
|
600
601
|
i.push(...c.travelClass), a.push(...c.propertyIds ? c.propertyIds : []), o.push(...c.places ? c.places : []);
|
|
@@ -636,7 +637,7 @@ let ze = (() => {
|
|
|
636
637
|
const t = this.shadowRoot?.querySelector("#" + e)?.getAttribute("data-deck-index");
|
|
637
638
|
return t && !isNaN(+t) ? +t : null;
|
|
638
639
|
}
|
|
639
|
-
|
|
640
|
+
_isValidCoachIndex(e) {
|
|
640
641
|
return e >= 0 && e <= this.seatReservations[this.seatReservations.length - 1].coachItems.length;
|
|
641
642
|
}
|
|
642
643
|
/**
|
|
@@ -664,9 +665,9 @@ let ze = (() => {
|
|
|
664
665
|
_scrollPlaceIntoNearestViewport(e) {
|
|
665
666
|
this.shadowRoot?.getElementById(e)?.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
666
667
|
}
|
|
667
|
-
}, x = new WeakMap(), p = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), y = new WeakMap(), b = new WeakMap(), P = new WeakMap(), A = new WeakMap(),
|
|
668
|
+
}, x = new WeakMap(), p = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), y = new WeakMap(), b = new WeakMap(), P = new WeakMap(), A = new WeakMap(), R = new WeakMap(), k = new WeakMap(), N = new WeakMap(), E = new WeakMap(), (() => {
|
|
668
669
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
669
|
-
u = [S({ attribute: "seat-reservations", type: Array })], z = [C(), S({ attribute: "has-navigation", type: Boolean })], O = [C(), S({ attribute: "align-vertical", type: Boolean, reflect: !0, useDefault: !0 })], W = [C(), S({ attribute: "base-grid-size", type: Number })],
|
|
670
|
+
u = [S({ attribute: "seat-reservations", type: Array })], z = [C(), S({ attribute: "has-navigation", type: Boolean })], O = [C(), S({ attribute: "align-vertical", type: Boolean, reflect: !0, useDefault: !0 })], W = [C(), S({ attribute: "base-grid-size", type: Number })], H = [C(), S({ attribute: "height", type: Number })], M = [C(), S({ attribute: "max-seat-reservations", type: Number })], Y = [C(), S({ attribute: "max-bicycle-reservations", type: Number })], Z = [C(), S({ attribute: "prevent-place-click", type: Boolean })], se = [C(), S({ attribute: "preselect-coach-index", type: Number })], ce = [T()], le = [T()], de = [T()], ve = [me({ passive: !0 })], f(h, null, u, { kind: "accessor", name: "seatReservations", static: !1, private: !1, access: { has: (t) => "seatReservations" in t, get: (t) => t.seatReservations, set: (t, s) => {
|
|
670
671
|
t.seatReservations = s;
|
|
671
672
|
} }, metadata: e }, D, B), f(h, null, z, { kind: "accessor", name: "hasNavigation", static: !1, private: !1, access: { has: (t) => "hasNavigation" in t, get: (t) => t.hasNavigation, set: (t, s) => {
|
|
672
673
|
t.hasNavigation = s;
|
|
@@ -674,7 +675,7 @@ let ze = (() => {
|
|
|
674
675
|
t.alignVertical = s;
|
|
675
676
|
} }, metadata: e }, G, L), f(h, null, W, { kind: "accessor", name: "baseGridSize", static: !1, private: !1, access: { has: (t) => "baseGridSize" in t, get: (t) => t.baseGridSize, set: (t, s) => {
|
|
676
677
|
t.baseGridSize = s;
|
|
677
|
-
} }, metadata: e }, X,
|
|
678
|
+
} }, metadata: e }, X, K), f(h, null, H, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (t) => "height" in t, get: (t) => t.height, set: (t, s) => {
|
|
678
679
|
t.height = s;
|
|
679
680
|
} }, metadata: e }, U, q), f(h, null, M, { kind: "accessor", name: "maxSeatReservations", static: !1, private: !1, access: { has: (t) => "maxSeatReservations" in t, get: (t) => t.maxSeatReservations, set: (t, s) => {
|
|
680
681
|
t.maxSeatReservations = s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
-
import { SeatReservationBaseElement } from './seat-reservation-base-element.
|
|
2
|
+
import { SeatReservationBaseElement } from './seat-reservation-base-element.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Main component for the seat reservation.
|
|
5
5
|
*
|
|
@@ -21,7 +21,7 @@ export declare class SbbSeatReservationElement extends SeatReservationBaseElemen
|
|
|
21
21
|
*
|
|
22
22
|
* @returns
|
|
23
23
|
* @param seatReservation
|
|
24
|
-
* @param
|
|
24
|
+
* @param coachDeckIndex
|
|
25
25
|
*/
|
|
26
26
|
private _renderCoaches;
|
|
27
27
|
private _renderCoachElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seat-reservation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.component.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAA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