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