@sbb-esta/lyne-elements-experimental-dev 5.0.0-next.3-dev.1779268564 → 5.0.0-next.3-dev.1779279798
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-button/autocomplete-grid-button.component.js +42 -66
- 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 +54 -83
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/{journey-summary.component-De1ioDRq.js → journey-summary.component-Bjf9cIpR.js} +2 -2
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/{pearl-chain-time.component-BxVQ1z-Z.js → pearl-chain-time.component-y-YnuSnn.js} +2 -2
- package/development/pearl-chain-time.js +1 -1
- package/development/pearl-chain-time.pure.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/{pearl-chain-vertical-item.component-DJioJtxP.js → pearl-chain-vertical-item.component-zo48V6sO.js} +2 -2
- package/development/pearl-chain-vertical-item.js +1 -1
- package/development/pearl-chain-vertical-item.pure.js +1 -1
- package/development/{pearl-chain.component-EEAZ7Kol.js → pearl-chain.component-CO4eTDeD.js} +2 -2
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +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.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +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.js +1 -1
- package/development/{seat-reservation-area.component-CMqjbUtV.js → seat-reservation-area.component-BiUbY2fJ.js} +2 -2
- package/development/{seat-reservation-graphic.component-C2r57590.js → seat-reservation-graphic.component-sXZS5AQ-.js} +2 -2
- package/development/{seat-reservation-navigation-coach.component-CMm-2Vuc.js → seat-reservation-navigation-coach.component-n9HVhAW1.js} +2 -2
- package/development/{seat-reservation-navigation-services.component-Do8JLJh3.js → seat-reservation-navigation-services.component-C_DDizl4.js} +2 -2
- package/development/{seat-reservation-place-control.component-Dfxv9B6C.js → seat-reservation-place-control.component-CEYulcPi.js} +2 -2
- package/development/seat-reservation.js +5 -5
- package/development/seat-reservation.pure.js +5 -5
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/{timetable-duration.component-fBla8Kue.js → timetable-duration.component-QutPySyE.js} +2 -2
- package/development/timetable-duration.js +1 -1
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/{timetable-row.component-CTShHdLn.js → timetable-row.component-2GBdtFiF.js} +2 -2
- 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-CkDRawn9.js → journey-summary.component-Bbx7WYGU.js} +39 -39
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/package.json +2 -2
- 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-D5OCEBJ_.js → pearl-chain-time.component-BDkOrxQ3.js} +32 -32
- package/pearl-chain-time.js +1 -1
- package/pearl-chain-time.pure.js +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/{pearl-chain-vertical-item.component-IdquCJMy.js → pearl-chain-vertical-item.component-an8iT9Ao.js} +24 -24
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain.component-C6lcD7Xl.js → pearl-chain.component-DYzhEgWG.js} +24 -24
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +58 -58
- 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 +1 -1
- 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 +1 -1
- package/{seat-reservation-area.component-BcmwKJSK.js → seat-reservation-area.component-B8HJ-Or8.js} +16 -16
- package/{seat-reservation-graphic.component-C3wc4DKr.js → seat-reservation-graphic.component-Ddpuv-Aw.js} +20 -20
- package/{seat-reservation-navigation-coach.component-Cwxd9vLy.js → seat-reservation-navigation-coach.component-DMKlwxPa.js} +45 -45
- package/{seat-reservation-navigation-services.component-CfAQa7pa.js → seat-reservation-navigation-services.component-2os7VI7i.js} +21 -21
- package/{seat-reservation-place-control.component-CE-FrGMT.js → seat-reservation-place-control.component-CvGYSTnc.js} +38 -38
- package/seat-reservation.js +5 -5
- package/seat-reservation.pure.js +5 -5
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/timetable-duration.component-DHuPMaq5.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-DawXp2ut.js → timetable-row.component-DMiay4xK.js} +117 -117
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/timetable-duration.component-DPRcG1LP.js +0 -61
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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";
|
|
5
5
|
import { property as l } from "lit/decorators.js";
|
|
6
6
|
import { classMap as u } from "lit/directives/class-map.js";
|
|
7
7
|
import { mapIconToSvg as d } from "./seat-reservation/common/mapper.js";
|
|
8
8
|
import { getI18nSeatReservation as f } from "./seat-reservation/common/translations.js";
|
|
9
9
|
//#region src/elements-experimental/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.scss?inline
|
|
10
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 = (() => {
|
|
11
|
-
let m =
|
|
11
|
+
let m = e, h, g = [], _ = [], v, y = [], b = [];
|
|
12
12
|
return class extends m {
|
|
13
13
|
constructor() {
|
|
14
|
-
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));
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
|
-
let
|
|
18
|
-
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({
|
|
19
19
|
attribute: "stretch",
|
|
20
20
|
type: Boolean
|
|
21
|
-
})],
|
|
21
|
+
})], s(this, null, h, {
|
|
22
22
|
kind: "accessor",
|
|
23
23
|
name: "name",
|
|
24
24
|
static: !1,
|
|
@@ -30,8 +30,8 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
30
30
|
e.name = t;
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
metadata:
|
|
34
|
-
}, g, _),
|
|
33
|
+
metadata: e
|
|
34
|
+
}, g, _), s(this, null, v, {
|
|
35
35
|
kind: "accessor",
|
|
36
36
|
name: "stretch",
|
|
37
37
|
static: !1,
|
|
@@ -43,22 +43,22 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
43
43
|
e.stretch = t;
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
metadata:
|
|
47
|
-
}, y, b),
|
|
46
|
+
metadata: e
|
|
47
|
+
}, y, b), e && Object.defineProperty(this, Symbol.metadata, {
|
|
48
48
|
enumerable: !0,
|
|
49
49
|
configurable: !0,
|
|
50
50
|
writable: !0,
|
|
51
|
-
value:
|
|
51
|
+
value: e
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
static {
|
|
55
55
|
this.elementName = "sbb-seat-reservation-graphic";
|
|
56
56
|
}
|
|
57
57
|
static {
|
|
58
|
-
this.elementDependencies = [
|
|
58
|
+
this.elementDependencies = [r];
|
|
59
59
|
}
|
|
60
60
|
static {
|
|
61
|
-
this.styles = [
|
|
61
|
+
this.styles = [o(p)];
|
|
62
62
|
}
|
|
63
63
|
#e;
|
|
64
64
|
get name() {
|
|
@@ -76,21 +76,21 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
let e = d[this.name];
|
|
79
|
-
return !e?.svg && !e?.svgName ? null :
|
|
79
|
+
return !e?.svg && !e?.svgName ? null : i`<span
|
|
80
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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { SbbElement as e, SbbLanguageController as t, buttonResetStyles as n, forceType as r, screenReaderOnlyStyles as i } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { html as a, nothing as o, unsafeCSS as s } from "lit";
|
|
3
|
+
import { __esDecorate as c, __runInitializers as l } from "tslib";
|
|
4
4
|
import { property as u } from "lit/decorators.js";
|
|
5
5
|
import { classMap as d } from "lit/directives/class-map.js";
|
|
6
6
|
import { getI18nSeatReservation as f } from "./seat-reservation/common/translations.js";
|
|
@@ -17,24 +17,24 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
17
17
|
}), this._coachIndex = e;
|
|
18
18
|
}
|
|
19
19
|
}, g = (() => {
|
|
20
|
-
let g =
|
|
20
|
+
let g = e, _, v = [], y = [], b, x = [], S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V, H = [], U = [];
|
|
21
21
|
return class extends g {
|
|
22
22
|
constructor() {
|
|
23
|
-
super(...arguments), this.#e =
|
|
23
|
+
super(...arguments), this.#e = l(this, v, !1), this.#t = (l(this, y), l(this, x, !1)), this.#n = (l(this, S), l(this, w, !1)), this.#r = (l(this, T), l(this, D, !0)), this.#i = (l(this, O), l(this, A, 0)), this.#a = (l(this, j), l(this, N, {})), this.#o = (l(this, P), l(this, I, !1)), this.#s = (l(this, L), l(this, z, !1)), this.#c = (l(this, B), l(this, H, !1)), this._language = (l(this, U), new t(this));
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
let
|
|
27
|
-
_ = [
|
|
26
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
|
|
27
|
+
_ = [r(), u({ type: Boolean })], b = [r(), u({ type: Boolean })], C = [r(), u({ type: Boolean })], E = [r(), u({ type: Boolean })], k = [r(), u({ type: Number })], M = [u({
|
|
28
28
|
attribute: "coach-item-details",
|
|
29
29
|
type: Object
|
|
30
|
-
})], F = [
|
|
30
|
+
})], F = [r(), u({
|
|
31
31
|
attribute: "disable",
|
|
32
32
|
type: Boolean
|
|
33
|
-
})], R = [
|
|
33
|
+
})], R = [r(), u({
|
|
34
34
|
type: Boolean,
|
|
35
35
|
reflect: !0,
|
|
36
36
|
useDefault: !0
|
|
37
|
-
})], V = [
|
|
37
|
+
})], V = [r(), u({ type: Boolean })], c(this, null, _, {
|
|
38
38
|
kind: "accessor",
|
|
39
39
|
name: "selected",
|
|
40
40
|
static: !1,
|
|
@@ -46,8 +46,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
46
46
|
e.selected = t;
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
metadata:
|
|
50
|
-
}, v, y),
|
|
49
|
+
metadata: e
|
|
50
|
+
}, v, y), c(this, null, b, {
|
|
51
51
|
kind: "accessor",
|
|
52
52
|
name: "focused",
|
|
53
53
|
static: !1,
|
|
@@ -59,8 +59,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
59
59
|
e.focused = t;
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
metadata:
|
|
63
|
-
}, x, S),
|
|
62
|
+
metadata: e
|
|
63
|
+
}, x, S), c(this, null, C, {
|
|
64
64
|
kind: "accessor",
|
|
65
65
|
name: "hovered",
|
|
66
66
|
static: !1,
|
|
@@ -72,8 +72,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
72
72
|
e.hovered = t;
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
metadata:
|
|
76
|
-
}, w, T),
|
|
75
|
+
metadata: e
|
|
76
|
+
}, w, T), c(this, null, E, {
|
|
77
77
|
kind: "accessor",
|
|
78
78
|
name: "nativeFocusActive",
|
|
79
79
|
static: !1,
|
|
@@ -85,8 +85,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
85
85
|
e.nativeFocusActive = t;
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
metadata:
|
|
89
|
-
}, D, O),
|
|
88
|
+
metadata: e
|
|
89
|
+
}, D, O), c(this, null, k, {
|
|
90
90
|
kind: "accessor",
|
|
91
91
|
name: "index",
|
|
92
92
|
static: !1,
|
|
@@ -98,8 +98,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
98
98
|
e.index = t;
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
|
-
metadata:
|
|
102
|
-
}, A, j),
|
|
101
|
+
metadata: e
|
|
102
|
+
}, A, j), c(this, null, M, {
|
|
103
103
|
kind: "accessor",
|
|
104
104
|
name: "coachItemDetails",
|
|
105
105
|
static: !1,
|
|
@@ -111,8 +111,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
111
111
|
e.coachItemDetails = t;
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
|
-
metadata:
|
|
115
|
-
}, N, P),
|
|
114
|
+
metadata: e
|
|
115
|
+
}, N, P), c(this, null, F, {
|
|
116
116
|
kind: "accessor",
|
|
117
117
|
name: "disable",
|
|
118
118
|
static: !1,
|
|
@@ -124,8 +124,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
124
124
|
e.disable = t;
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
metadata:
|
|
128
|
-
}, I, L),
|
|
127
|
+
metadata: e
|
|
128
|
+
}, I, L), c(this, null, R, {
|
|
129
129
|
kind: "accessor",
|
|
130
130
|
name: "vertical",
|
|
131
131
|
static: !1,
|
|
@@ -137,8 +137,8 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
137
137
|
e.vertical = t;
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
|
-
metadata:
|
|
141
|
-
}, z, B),
|
|
140
|
+
metadata: e
|
|
141
|
+
}, z, B), c(this, null, V, {
|
|
142
142
|
kind: "accessor",
|
|
143
143
|
name: "showTitleInfo",
|
|
144
144
|
static: !1,
|
|
@@ -150,12 +150,12 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
150
150
|
e.showTitleInfo = t;
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
|
-
metadata:
|
|
154
|
-
}, H, U),
|
|
153
|
+
metadata: e
|
|
154
|
+
}, H, U), e && Object.defineProperty(this, Symbol.metadata, {
|
|
155
155
|
enumerable: !0,
|
|
156
156
|
configurable: !0,
|
|
157
157
|
writable: !0,
|
|
158
|
-
value:
|
|
158
|
+
value: e
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
static {
|
|
@@ -166,9 +166,9 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
166
166
|
}
|
|
167
167
|
static {
|
|
168
168
|
this.styles = [
|
|
169
|
+
n,
|
|
169
170
|
i,
|
|
170
|
-
|
|
171
|
-
l(m)
|
|
171
|
+
s(m)
|
|
172
172
|
];
|
|
173
173
|
}
|
|
174
174
|
static {
|
|
@@ -254,7 +254,7 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
render() {
|
|
257
|
-
return
|
|
257
|
+
return a`
|
|
258
258
|
<div
|
|
259
259
|
class="${d({
|
|
260
260
|
"sbb-sr-navigation__item-coach": !0,
|
|
@@ -266,49 +266,49 @@ var m = ":host{display:inline-block;min-height:calc(44 * var(--sbb-seat-reservat
|
|
|
266
266
|
})}"
|
|
267
267
|
>
|
|
268
268
|
${this._getNavigationButton()}
|
|
269
|
-
${this.coachItemDetails.propertyIds?.length ?
|
|
269
|
+
${this.coachItemDetails.propertyIds?.length ? a`<sbb-seat-reservation-navigation-services
|
|
270
270
|
?vertical="${this.vertical}"
|
|
271
271
|
.propertyIds="${this.coachItemDetails.propertyIds}"
|
|
272
272
|
?showTitleInfo="${this.showTitleInfo}"
|
|
273
|
-
></sbb-seat-reservation-navigation-services>` :
|
|
273
|
+
></sbb-seat-reservation-navigation-services>` : o}
|
|
274
274
|
</div>
|
|
275
275
|
`;
|
|
276
276
|
}
|
|
277
277
|
_getNavigationButton() {
|
|
278
278
|
let e = this._getCoachServiceClassNumber(), t = this._getTitleDescriptionNavCoachButton(e), n = this._getAriaDescriptionCoachServices();
|
|
279
|
-
return
|
|
279
|
+
return a` <button
|
|
280
280
|
@click=${() => this._selectNavCoach(this.index)}
|
|
281
281
|
class="${d({
|
|
282
282
|
"sbb-sr-navigation__ctrl-button": !0,
|
|
283
283
|
"sbb-sr-navigation-driver-area": this.coachItemDetails.isDriverArea
|
|
284
284
|
})}"
|
|
285
285
|
?disabled="${this.disable}"
|
|
286
|
-
title="${this.showTitleInfo ? t :
|
|
286
|
+
title="${this.showTitleInfo ? t : o}"
|
|
287
287
|
type="button"
|
|
288
288
|
aria-describedby="nav-coach-service-descriptions-${this.index}"
|
|
289
289
|
>
|
|
290
290
|
${this._getBtnInformation(e)}
|
|
291
291
|
<span class="sbb-screen-reader-only" id="nav-coach-service-descriptions-${this.index}">
|
|
292
|
-
${this.showTitleInfo ?
|
|
293
|
-
${n ?
|
|
292
|
+
${this.showTitleInfo ? o : a`<div>${t}</div>`}
|
|
293
|
+
${n ? a`<div>${n}</div>` : o}
|
|
294
294
|
</span>
|
|
295
295
|
</button>`;
|
|
296
296
|
}
|
|
297
297
|
_getBtnInformation(e) {
|
|
298
|
-
return this.coachItemDetails.isDriverArea ? null :
|
|
299
|
-
${e === 1 ?
|
|
300
|
-
${this.coachItemDetails.travelClass?.length > 0 || this.coachItemDetails.id ?
|
|
301
|
-
${this.coachItemDetails.id ?
|
|
298
|
+
return this.coachItemDetails.isDriverArea ? null : a`
|
|
299
|
+
${e === 1 ? a`<span class="sbb-sr-navigation--first-class"></span>` : o}
|
|
300
|
+
${this.coachItemDetails.travelClass?.length > 0 || this.coachItemDetails.id ? a`<div class="sbb-sr-navigation__additional-information">
|
|
301
|
+
${this.coachItemDetails.id ? a`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
|
|
302
302
|
${this.coachItemDetails.id}
|
|
303
|
-
</div>` :
|
|
303
|
+
</div>` : o}
|
|
304
304
|
<div
|
|
305
|
-
${e ??
|
|
305
|
+
${e ?? o}
|
|
306
306
|
class="sbb-sr-navigation__item-coach-travelclass"
|
|
307
307
|
aria-hidden="true"
|
|
308
308
|
>
|
|
309
309
|
${e}
|
|
310
310
|
</div>
|
|
311
|
-
</div>` :
|
|
311
|
+
</div>` : o}
|
|
312
312
|
`;
|
|
313
313
|
}
|
|
314
314
|
_getTitleDescriptionNavCoachButton(e) {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { SbbElement as e, SbbLanguageController as t, forceType as n, screenReaderOnlyStyles as r } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
3
|
+
import { __esDecorate as s, __runInitializers as c } from "tslib";
|
|
4
4
|
import { property as l } from "lit/decorators.js";
|
|
5
5
|
import { getI18nSeatReservation as u } from "./seat-reservation/common/translations.js";
|
|
6
6
|
import { SbbSeatReservationGraphicElement as d } from "./seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js";
|
|
7
7
|
//#region src/elements-experimental/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.scss?inline
|
|
8
8
|
var f = ".sbb-sr-navigation__signs{display:flex;flex-direction:row;justify-content:center;gap:var(--sbb-spacing-fixed-2x);overflow:hidden;line-height:normal;color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-graphite))}.sbb-sr-navigation__signs:has(:nth-child(n+3 of.auto-width)):has([name^=SILENCE],[name^=BUSINESS]){gap:calc(6 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__signs:has(:nth-child(n+3 of.auto-width)):has([name^=SILENCE],[name^=BUSINESS]):has([name^=BICYCLE]){gap:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host([vertical]) .sbb-sr-navigation__signs{flex-direction:column;height:100%}", p = (() => {
|
|
9
|
-
let p =
|
|
9
|
+
let p = e, m, h = [], g = [], _, v = [], y = [], b, x = [], S = [];
|
|
10
10
|
return class extends p {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this.#e =
|
|
12
|
+
super(...arguments), this.#e = c(this, h, []), this.#t = (c(this, g), c(this, v, !1)), this.#n = (c(this, y), c(this, x, !1)), this._language = (c(this, S), new t(this));
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
let
|
|
15
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
16
16
|
m = [l({
|
|
17
17
|
attribute: "property-ids",
|
|
18
18
|
type: Array
|
|
19
|
-
})], _ = [
|
|
19
|
+
})], _ = [n(), l({
|
|
20
20
|
type: Boolean,
|
|
21
21
|
reflect: !0,
|
|
22
22
|
useDefault: !0
|
|
23
|
-
})], b = [
|
|
23
|
+
})], b = [n(), l({ type: Boolean })], s(this, null, m, {
|
|
24
24
|
kind: "accessor",
|
|
25
25
|
name: "propertyIds",
|
|
26
26
|
static: !1,
|
|
@@ -32,8 +32,8 @@ var f = ".sbb-sr-navigation__signs{display:flex;flex-direction:row;justify-conte
|
|
|
32
32
|
e.propertyIds = t;
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
metadata:
|
|
36
|
-
}, h, g),
|
|
35
|
+
metadata: e
|
|
36
|
+
}, h, g), s(this, null, _, {
|
|
37
37
|
kind: "accessor",
|
|
38
38
|
name: "vertical",
|
|
39
39
|
static: !1,
|
|
@@ -45,8 +45,8 @@ var f = ".sbb-sr-navigation__signs{display:flex;flex-direction:row;justify-conte
|
|
|
45
45
|
e.vertical = t;
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
metadata:
|
|
49
|
-
}, v, y),
|
|
48
|
+
metadata: e
|
|
49
|
+
}, v, y), s(this, null, b, {
|
|
50
50
|
kind: "accessor",
|
|
51
51
|
name: "showTitleInfo",
|
|
52
52
|
static: !1,
|
|
@@ -58,12 +58,12 @@ var f = ".sbb-sr-navigation__signs{display:flex;flex-direction:row;justify-conte
|
|
|
58
58
|
e.showTitleInfo = t;
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
metadata:
|
|
62
|
-
}, x, S),
|
|
61
|
+
metadata: e
|
|
62
|
+
}, x, S), e && Object.defineProperty(this, Symbol.metadata, {
|
|
63
63
|
enumerable: !0,
|
|
64
64
|
configurable: !0,
|
|
65
65
|
writable: !0,
|
|
66
|
-
value:
|
|
66
|
+
value: e
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
static {
|
|
@@ -73,7 +73,7 @@ var f = ".sbb-sr-navigation__signs{display:flex;flex-direction:row;justify-conte
|
|
|
73
73
|
this.elementDependencies = [d];
|
|
74
74
|
}
|
|
75
75
|
static {
|
|
76
|
-
this.styles = [
|
|
76
|
+
this.styles = [r, o(f)];
|
|
77
77
|
}
|
|
78
78
|
#e;
|
|
79
79
|
get propertyIds() {
|
|
@@ -98,17 +98,17 @@ var f = ".sbb-sr-navigation__signs{display:flex;flex-direction:row;justify-conte
|
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
100
|
let e = this.propertyIds?.length ? this._getServiceLabelDescription() : null;
|
|
101
|
-
return
|
|
101
|
+
return i` <div class="sbb-sr-navigation__signs">
|
|
102
102
|
<span
|
|
103
103
|
class="sbb-screen-reader-only"
|
|
104
|
-
${e ||
|
|
104
|
+
${e || a}
|
|
105
105
|
>${e}</span
|
|
106
106
|
>
|
|
107
|
-
${this.propertyIds?.map((e) =>
|
|
107
|
+
${this.propertyIds?.map((e) => i`
|
|
108
108
|
<sbb-seat-reservation-graphic
|
|
109
109
|
class="auto-width"
|
|
110
|
-
name=${e ??
|
|
111
|
-
title=${this.showTitleInfo ? u(e, this._language.current) :
|
|
110
|
+
name=${e ?? a}
|
|
111
|
+
title=${this.showTitleInfo ? u(e, this._language.current) : a}
|
|
112
112
|
aria-hidden="true"
|
|
113
113
|
></sbb-seat-reservation-graphic>
|
|
114
114
|
`)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { SbbButtonBaseElement as e, SbbLanguageController as t, forceType as n } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { html as r, nothing as i, unsafeCSS as a } from "lit";
|
|
3
|
+
import { __esDecorate as o, __runInitializers as s } from "tslib";
|
|
4
4
|
import { property as c } from "lit/decorators.js";
|
|
5
5
|
import { styleMap as l } from "lit/directives/style-map.js";
|
|
6
6
|
import { getI18nSeatReservation as u } from "./seat-reservation/common/translations.js";
|
|
@@ -17,29 +17,29 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
17
17
|
}), this._detail = e;
|
|
18
18
|
}
|
|
19
19
|
}, m = (() => {
|
|
20
|
-
let m =
|
|
20
|
+
let m = e, h, g = [], _ = [], v, y = [], b = [], x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H, U = [], W = [];
|
|
21
21
|
return class extends m {
|
|
22
22
|
static {
|
|
23
|
-
let
|
|
24
|
-
h = [
|
|
23
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
|
|
24
|
+
h = [n(), c({ attribute: "type" })], v = [n(), c({
|
|
25
25
|
attribute: "state",
|
|
26
26
|
reflect: !0
|
|
27
27
|
})], x = [c({ attribute: "travel-direction" })], w = [c({
|
|
28
28
|
attribute: "propertyIds",
|
|
29
29
|
type: Array
|
|
30
|
-
})], D = [
|
|
30
|
+
})], D = [n(), c({ attribute: "text" })], A = [n(), c({
|
|
31
31
|
attribute: "deck-index",
|
|
32
32
|
type: Number
|
|
33
|
-
})], N = [
|
|
33
|
+
})], N = [n(), c({
|
|
34
34
|
attribute: "coach-index",
|
|
35
35
|
type: Number
|
|
36
|
-
})], I = [
|
|
36
|
+
})], I = [n(), c({
|
|
37
37
|
attribute: "prevent-click",
|
|
38
38
|
type: Boolean
|
|
39
|
-
})], z = [
|
|
39
|
+
})], z = [n(), c({ attribute: "keyfocus" })], H = [n(), c({
|
|
40
40
|
type: Boolean,
|
|
41
41
|
useDefault: !0
|
|
42
|
-
})],
|
|
42
|
+
})], o(this, null, h, {
|
|
43
43
|
kind: "accessor",
|
|
44
44
|
name: "placeType",
|
|
45
45
|
static: !1,
|
|
@@ -51,8 +51,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
51
51
|
e.placeType = t;
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
metadata:
|
|
55
|
-
}, g, _),
|
|
54
|
+
metadata: e
|
|
55
|
+
}, g, _), o(this, null, v, {
|
|
56
56
|
kind: "accessor",
|
|
57
57
|
name: "state",
|
|
58
58
|
static: !1,
|
|
@@ -64,8 +64,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
64
64
|
e.state = t;
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
metadata:
|
|
68
|
-
}, y, b),
|
|
67
|
+
metadata: e
|
|
68
|
+
}, y, b), o(this, null, x, {
|
|
69
69
|
kind: "accessor",
|
|
70
70
|
name: "travelDirection",
|
|
71
71
|
static: !1,
|
|
@@ -77,8 +77,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
77
77
|
e.travelDirection = t;
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
metadata:
|
|
81
|
-
}, S, C),
|
|
80
|
+
metadata: e
|
|
81
|
+
}, S, C), o(this, null, w, {
|
|
82
82
|
kind: "accessor",
|
|
83
83
|
name: "propertyIds",
|
|
84
84
|
static: !1,
|
|
@@ -90,8 +90,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
90
90
|
e.propertyIds = t;
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
|
-
metadata:
|
|
94
|
-
}, T, E),
|
|
93
|
+
metadata: e
|
|
94
|
+
}, T, E), o(this, null, D, {
|
|
95
95
|
kind: "accessor",
|
|
96
96
|
name: "text",
|
|
97
97
|
static: !1,
|
|
@@ -103,8 +103,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
103
103
|
e.text = t;
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
metadata:
|
|
107
|
-
}, O, k),
|
|
106
|
+
metadata: e
|
|
107
|
+
}, O, k), o(this, null, A, {
|
|
108
108
|
kind: "accessor",
|
|
109
109
|
name: "deckIndex",
|
|
110
110
|
static: !1,
|
|
@@ -116,8 +116,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
116
116
|
e.deckIndex = t;
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
metadata:
|
|
120
|
-
}, j, M),
|
|
119
|
+
metadata: e
|
|
120
|
+
}, j, M), o(this, null, N, {
|
|
121
121
|
kind: "accessor",
|
|
122
122
|
name: "coachIndex",
|
|
123
123
|
static: !1,
|
|
@@ -129,8 +129,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
129
129
|
e.coachIndex = t;
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
metadata:
|
|
133
|
-
}, P, F),
|
|
132
|
+
metadata: e
|
|
133
|
+
}, P, F), o(this, null, I, {
|
|
134
134
|
kind: "accessor",
|
|
135
135
|
name: "preventClick",
|
|
136
136
|
static: !1,
|
|
@@ -142,8 +142,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
142
142
|
e.preventClick = t;
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
metadata:
|
|
146
|
-
}, L, R),
|
|
145
|
+
metadata: e
|
|
146
|
+
}, L, R), o(this, null, z, {
|
|
147
147
|
kind: "accessor",
|
|
148
148
|
name: "keyfocus",
|
|
149
149
|
static: !1,
|
|
@@ -155,8 +155,8 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
155
155
|
e.keyfocus = t;
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
-
metadata:
|
|
159
|
-
}, B, V),
|
|
158
|
+
metadata: e
|
|
159
|
+
}, B, V), o(this, null, H, {
|
|
160
160
|
kind: "accessor",
|
|
161
161
|
name: "showTitleInfo",
|
|
162
162
|
static: !1,
|
|
@@ -168,12 +168,12 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
168
168
|
e.showTitleInfo = t;
|
|
169
169
|
}
|
|
170
170
|
},
|
|
171
|
-
metadata:
|
|
172
|
-
}, U, W),
|
|
171
|
+
metadata: e
|
|
172
|
+
}, U, W), e && Object.defineProperty(this, Symbol.metadata, {
|
|
173
173
|
enumerable: !0,
|
|
174
174
|
configurable: !0,
|
|
175
175
|
writable: !0,
|
|
176
|
-
value:
|
|
176
|
+
value: e
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
static {
|
|
@@ -183,7 +183,7 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
183
183
|
this.elementDependencies = [d];
|
|
184
184
|
}
|
|
185
185
|
static {
|
|
186
|
-
this.styles = [
|
|
186
|
+
this.styles = [a(f)];
|
|
187
187
|
}
|
|
188
188
|
static {
|
|
189
189
|
this.events = { selectplace: "selectplace" };
|
|
@@ -259,28 +259,28 @@ var f = ":host{--sbb-seat-reservation-place-control-text-scale-value: 1;--sbb-se
|
|
|
259
259
|
this.#l = e;
|
|
260
260
|
}
|
|
261
261
|
constructor() {
|
|
262
|
-
super(), this.#e =
|
|
262
|
+
super(), this.#e = s(this, g, "SEAT"), this.#t = (s(this, _), s(this, y, "FREE")), this.#n = (s(this, b), s(this, S, "NONE")), this.#r = (s(this, C), s(this, T, [])), this.#i = (s(this, E), s(this, O, "")), this.#a = (s(this, k), s(this, j, null)), this.#o = (s(this, M), s(this, P, null)), this.#s = (s(this, F), s(this, L, !1)), this.#c = (s(this, R), s(this, B, "unfocus")), this.#l = (s(this, V), s(this, U, !1)), this._language = (s(this, W), new t(this)), this.addEventListener("click", () => this._selectPlace());
|
|
263
263
|
}
|
|
264
264
|
willUpdate(e) {
|
|
265
265
|
super.willUpdate(e), e.has("keyfocus") && this.keyfocus === "focus" && this.focus();
|
|
266
266
|
}
|
|
267
267
|
render() {
|
|
268
|
-
let e = this._getPlaceSvg(this.placeType, this.state), t = this.type.toLowerCase(), n = this.state.toLowerCase(),
|
|
269
|
-
return this.showTitleInfo ? (this.title = p, this.internals.ariaLabel = null) : (this.internals.ariaLabel = p, this.removeAttribute("title")), this.tabIndex = -1,
|
|
268
|
+
let e = this._getPlaceSvg(this.placeType, this.state), t = this.type.toLowerCase(), n = this.state.toLowerCase(), a = this.text, o = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-width"), s = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-height"), c = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-rotation"), u = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-text-rotation"), d = Number(u) - Number(c), f = this.preventClick ? "sbb-reservation-place-control--disabled" : null, p = this._getTitleDescriptionPlace(c);
|
|
269
|
+
return this.showTitleInfo ? (this.title = p, this.internals.ariaLabel = null) : (this.internals.ariaLabel = p, this.removeAttribute("title")), this.tabIndex = -1, r` <div
|
|
270
270
|
part="sbb-sr-place-part"
|
|
271
271
|
class="sbb-sr-place-ctrl sbb-sr-place-ctrl--orientation-${c} sbb-sr-place-ctrl--state-${n} sbb-sr-place-ctrl--type-${t} ${f}"
|
|
272
272
|
aria-hidden="true"
|
|
273
273
|
>
|
|
274
274
|
<sbb-seat-reservation-graphic
|
|
275
275
|
style=${l({
|
|
276
|
-
"--sbb-seat-reservation-graphic-width":
|
|
276
|
+
"--sbb-seat-reservation-graphic-width": o,
|
|
277
277
|
"--sbb-seat-reservation-graphic-height": s,
|
|
278
278
|
"--sbb-seat-reservation-graphic-rotation": c,
|
|
279
279
|
"--sbb-seat-reservation-graphic-inverse-rotation": d
|
|
280
280
|
})}
|
|
281
281
|
.name=${e}
|
|
282
282
|
></sbb-seat-reservation-graphic>
|
|
283
|
-
<span ${this.text ??
|
|
283
|
+
<span ${this.text ?? i} class="sbb-sr-place-ctrl__text">${a} </span>
|
|
284
284
|
</div>`;
|
|
285
285
|
}
|
|
286
286
|
_getPlaceSvg(e, t) {
|