@sbb-esta/lyne-elements-experimental 2.11.2 → 3.0.0-next.1
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/core/datetime/date-helper.js +142 -142
- package/core/timetable/access-leg-helper.js +52 -49
- package/core/timetable/timetable-helper.js +8 -7
- package/custom-elements.json +8 -8
- package/development/core/datetime/date-helper.js +10 -10
- package/development/core/timetable/access-leg-helper.js +15 -12
- package/development/core/timetable/timetable-helper.js +7 -6
- package/development/{differenceInMinutes-D5Nj8Stc.js → differenceInMinutes-CHSyWiQs.js} +3 -3
- package/development/{format-BQfaa1ZT.js → format-D0-yhzi4.js} +26 -22
- package/development/{isValid-DvieCZVi.js → isValid-Bo4R7iA7.js} +3 -3
- package/development/journey-summary/journey-summary.component.d.ts +5 -3
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +9 -5
- package/development/pearl-chain/pearl-chain.component.d.ts +5 -3
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +43 -29
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +5 -3
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +10 -6
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +16 -14
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +1 -1
- package/development/seat-reservation/common/svgs.js +1 -1
- package/development/seat-reservation/common/translations/i18n.js +3 -2
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +33 -22
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +7 -6
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +23 -16
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +3 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +8 -7
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +11 -7
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +3 -2
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +5 -4
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts +5 -3
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +93 -59
- package/differenceInMinutes-BMqUZdhj.js +23 -0
- package/{format-lqeCzmzS.js → format-Dg8rkk7h.js} +442 -438
- package/isValid-DJ69OMZJ.js +45 -0
- package/journey-summary/journey-summary.component.d.ts +5 -3
- package/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/journey-summary/journey-summary.component.js +8 -4
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.d.ts +5 -3
- package/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/pearl-chain/pearl-chain.component.js +99 -79
- package/pearl-chain-time/pearl-chain-time.component.d.ts +5 -3
- package/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/pearl-chain-time/pearl-chain-time.component.js +49 -45
- package/seat-reservation/common/mapper/mapper.js +54 -50
- package/seat-reservation/common/translations/i18n.js +6 -5
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +115 -104
- package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +41 -40
- package/seat-reservation/seat-reservation/seat-reservation.component.js +87 -78
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +18 -15
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +59 -58
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +75 -71
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +13 -12
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +24 -23
- package/timetable-row/timetable-row.component.d.ts +5 -3
- package/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/timetable-row/timetable-row.component.js +251 -208
- package/differenceInMinutes-CP_C5onR.js +0 -23
- package/isValid-Ceq2O0NQ.js +0 -45
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var q = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as h, __esDecorate as
|
|
7
|
-
import { SbbLanguageController as
|
|
8
|
-
import { forceType as
|
|
9
|
-
import { css as
|
|
10
|
-
import { customElement as
|
|
11
|
-
import { classMap as
|
|
12
|
-
import { mapIconToSvg as
|
|
4
|
+
var H = (i, r, a) => r.has(i) || q("Cannot " + a);
|
|
5
|
+
var g = (i, r, a) => (H(i, r, "read from private field"), a ? a.call(i) : r.get(i)), b = (i, r, a) => r.has(i) ? q("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, a), o = (i, r, a, c) => (H(i, r, "write to private field"), c ? c.call(i, a) : r.set(i, a), a);
|
|
6
|
+
import { __runInitializers as h, __esDecorate as m } from "tslib";
|
|
7
|
+
import { SbbLanguageController as J } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
8
|
+
import { forceType as w } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
9
|
+
import { css as K, LitElement as O, html as z } from "lit";
|
|
10
|
+
import { customElement as Q, property as y } from "lit/decorators.js";
|
|
11
|
+
import { classMap as V } from "lit/directives/class-map.js";
|
|
12
|
+
import { mapIconToSvg as W, getI18nSeatReservation as X } from "../common.js";
|
|
13
13
|
import "@sbb-esta/lyne-elements/icon.js";
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
var
|
|
17
|
-
let
|
|
18
|
-
return
|
|
14
|
+
const Y = K`*,:before,:after{box-sizing:border-box}:host{--sbb-reservation-graphic-width: 16;--sbb-reservation-graphic-height: 16;--sbb-reservation-graphic-rotation: 0;--sbb-reservation-graphic-inverse-rotation: 0}.sbb-sr-icon,.sbb-sr-graphic{--sbb-icon-svg-width: calc(var(--sbb-reservation-graphic-width) * .0625rem);--sbb-icon-svg-height: calc(var(--sbb-reservation-graphic-height) * .0625rem);display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-reservation-graphic-width) * .0625rem);height:calc(var(--sbb-reservation-graphic-height) * .0625rem);transform-origin:center;rotate:calc(var(--sbb-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite)}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-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}}`;
|
|
15
|
+
let ct = (() => {
|
|
16
|
+
var v, p, _, d, u, f, n;
|
|
17
|
+
let i = [Q("sbb-seat-reservation-graphic")], r, a = [], c, R = O, x, S = [], I = [], N, $ = [], k = [], E, D = [], C = [], L, T = [], A = [], M, P = [], U = [], B, F = [], G = [];
|
|
18
|
+
return n = class extends R {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
o(this,
|
|
21
|
+
b(this, v);
|
|
22
|
+
b(this, p);
|
|
23
|
+
b(this, _);
|
|
24
|
+
b(this, d);
|
|
25
|
+
b(this, u);
|
|
26
|
+
b(this, f);
|
|
27
|
+
o(this, v, h(this, S, "")), o(this, p, (h(this, I), h(this, $, !1))), o(this, _, (h(this, k), h(this, D, 0))), o(this, d, (h(this, C), h(this, T, 0))), o(this, u, (h(this, A), h(this, P, null))), o(this, f, (h(this, U), h(this, F, null))), this._language = (h(this, G), new J(this));
|
|
28
28
|
}
|
|
29
29
|
/** Name of the SVG graphic to be displayed. */
|
|
30
30
|
get name() {
|
|
31
|
-
return
|
|
31
|
+
return g(this, v);
|
|
32
32
|
}
|
|
33
33
|
set name(t) {
|
|
34
|
-
o(this,
|
|
34
|
+
o(this, v, t);
|
|
35
35
|
}
|
|
36
36
|
/** if true, scale the graphic content of the given element non-uniformly if necessary */
|
|
37
37
|
get stretch() {
|
|
38
|
-
return
|
|
38
|
+
return g(this, p);
|
|
39
39
|
}
|
|
40
40
|
set stretch(t) {
|
|
41
|
-
o(this,
|
|
41
|
+
o(this, p, t);
|
|
42
42
|
}
|
|
43
43
|
/** handles the rotation of the SVG graphic */
|
|
44
44
|
get rotation() {
|
|
45
|
-
return
|
|
45
|
+
return g(this, _);
|
|
46
46
|
}
|
|
47
47
|
set rotation(t) {
|
|
48
|
-
o(this,
|
|
48
|
+
o(this, _, t);
|
|
49
49
|
}
|
|
50
50
|
/** Inverse rotation for part of an SVG that can be rotated opposite to the normal rotation */
|
|
51
51
|
get inverseRotation() {
|
|
52
|
-
return
|
|
52
|
+
return g(this, d);
|
|
53
53
|
}
|
|
54
54
|
set inverseRotation(t) {
|
|
55
|
-
o(this,
|
|
55
|
+
o(this, d, t);
|
|
56
56
|
}
|
|
57
57
|
/** width of the svg in pixels (without unit) */
|
|
58
58
|
get width() {
|
|
59
|
-
return
|
|
59
|
+
return g(this, u);
|
|
60
60
|
}
|
|
61
61
|
set width(t) {
|
|
62
|
-
o(this,
|
|
62
|
+
o(this, u, t);
|
|
63
63
|
}
|
|
64
64
|
/** height of the svg in pixels (without unit) */
|
|
65
65
|
get height() {
|
|
66
|
-
return
|
|
66
|
+
return g(this, f);
|
|
67
67
|
}
|
|
68
68
|
set height(t) {
|
|
69
|
-
o(this,
|
|
69
|
+
o(this, f, t);
|
|
70
70
|
}
|
|
71
71
|
willUpdate(t) {
|
|
72
|
-
|
|
72
|
+
var e, s, l, j;
|
|
73
|
+
super.willUpdate(t), t.has("width") && this.width && ((e = this.style) == null || e.setProperty("--sbb-reservation-graphic-width", `${this.width}`)), t.has("height") && this.height && ((s = this.style) == null || s.setProperty("--sbb-reservation-graphic-height", `${this.height}`)), t.has("rotation") && ((l = this.style) == null || l.setProperty("--sbb-reservation-graphic-rotation", `${this.rotation}`)), t.has("inverseRotation") && ((j = this.style) == null || j.setProperty("--sbb-reservation-graphic-inverse-rotation", `${this.inverseRotation}`));
|
|
73
74
|
}
|
|
74
75
|
render() {
|
|
75
|
-
const t =
|
|
76
|
-
return !t
|
|
77
|
-
class="${
|
|
76
|
+
const t = W[this.name];
|
|
77
|
+
return !(t != null && t.svg) && !(t != null && t.svgName) ? null : z`<span
|
|
78
|
+
class="${V({
|
|
78
79
|
"sbb-sr-icon": !!t.svgName,
|
|
79
80
|
"sbb-sr-graphic": !!t.svg
|
|
80
81
|
})}"
|
|
@@ -82,31 +83,31 @@ let ht = (() => {
|
|
|
82
83
|
${t.svgName ? z` <sbb-icon
|
|
83
84
|
name="${t.svgName || ""}"
|
|
84
85
|
aria-hidden="false"
|
|
85
|
-
aria-label="${
|
|
86
|
+
aria-label="${X(t.svgName, this._language.current)}"
|
|
86
87
|
></sbb-icon>` : z`${this._getSvgElement(t.svg)}`}
|
|
87
88
|
</span>`;
|
|
88
89
|
}
|
|
89
90
|
_getSvgElement(t) {
|
|
90
|
-
const e = new DOMParser(),
|
|
91
|
-
return this.stretch &&
|
|
91
|
+
const e = new DOMParser(), s = t || "<svg></svg>", l = e.parseFromString(s, "image/svg+xml").firstElementChild;
|
|
92
|
+
return this.stretch && (l == null ? void 0 : l.nodeName.toLowerCase()) === "svg" && l.setAttribute("preserveAspectRatio", "none"), l;
|
|
92
93
|
}
|
|
93
|
-
},
|
|
94
|
+
}, v = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), d = new WeakMap(), u = new WeakMap(), f = new WeakMap(), c = n, (() => {
|
|
94
95
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(R[Symbol.metadata] ?? null) : void 0;
|
|
95
|
-
x = [
|
|
96
|
-
e.name =
|
|
97
|
-
} }, metadata: t }, S, I),
|
|
98
|
-
e.stretch =
|
|
99
|
-
} }, metadata: t }, $,
|
|
100
|
-
e.rotation =
|
|
101
|
-
} }, metadata: t },
|
|
102
|
-
e.inverseRotation =
|
|
103
|
-
} }, metadata: t },
|
|
104
|
-
e.width =
|
|
105
|
-
} }, metadata: t },
|
|
106
|
-
e.height =
|
|
107
|
-
} }, metadata: t },
|
|
108
|
-
})(),
|
|
96
|
+
x = [w(), y({ attribute: "name" })], N = [w(), y({ attribute: "stretch", type: Boolean })], E = [w(), y({ attribute: "rotation", type: Number })], L = [w(), y({ attribute: "inverse-roration", type: Number })], M = [w(), y({ attribute: "width", type: Number })], B = [w(), y({ attribute: "height", type: Number })], m(n, null, x, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (e) => "name" in e, get: (e) => e.name, set: (e, s) => {
|
|
97
|
+
e.name = s;
|
|
98
|
+
} }, metadata: t }, S, I), m(n, null, N, { kind: "accessor", name: "stretch", static: !1, private: !1, access: { has: (e) => "stretch" in e, get: (e) => e.stretch, set: (e, s) => {
|
|
99
|
+
e.stretch = s;
|
|
100
|
+
} }, metadata: t }, $, k), m(n, null, E, { kind: "accessor", name: "rotation", static: !1, private: !1, access: { has: (e) => "rotation" in e, get: (e) => e.rotation, set: (e, s) => {
|
|
101
|
+
e.rotation = s;
|
|
102
|
+
} }, metadata: t }, D, C), m(n, null, L, { kind: "accessor", name: "inverseRotation", static: !1, private: !1, access: { has: (e) => "inverseRotation" in e, get: (e) => e.inverseRotation, set: (e, s) => {
|
|
103
|
+
e.inverseRotation = s;
|
|
104
|
+
} }, metadata: t }, T, A), m(n, null, M, { kind: "accessor", name: "width", static: !1, private: !1, access: { has: (e) => "width" in e, get: (e) => e.width, set: (e, s) => {
|
|
105
|
+
e.width = s;
|
|
106
|
+
} }, metadata: t }, P, U), m(n, null, B, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (e) => "height" in e, get: (e) => e.height, set: (e, s) => {
|
|
107
|
+
e.height = s;
|
|
108
|
+
} }, metadata: t }, F, G), m(null, r = { value: c }, i, { kind: "class", name: c.name, metadata: t }, null, a), c = r.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
109
|
+
})(), n.styles = Y, h(c, a), c;
|
|
109
110
|
})();
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
ct as SbbSeatReservationGraphicElement
|
|
112
113
|
};
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
var
|
|
1
|
+
var dt = (o) => {
|
|
2
2
|
throw TypeError(o);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var l = (o, n, c) => (
|
|
4
|
+
var vt = (o, n, c) => n.has(o) || dt("Cannot " + c);
|
|
5
|
+
var l = (o, n, c) => (vt(o, n, "read from private field"), c ? c.call(o) : n.get(o)), b = (o, n, c) => n.has(o) ? dt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, c), s = (o, n, c, h) => (vt(o, n, "write to private field"), h ? h.call(o, c) : n.set(o, c), c);
|
|
6
6
|
import { __runInitializers as i, __esDecorate as d } from "tslib";
|
|
7
7
|
import { SbbLanguageController as ut } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
8
8
|
import { forceType as _ } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
9
|
-
import { EventEmitter as
|
|
10
|
-
import { css as mt, LitElement as ft, nothing as
|
|
9
|
+
import { EventEmitter as ht } from "@sbb-esta/lyne-elements/core/eventing.js";
|
|
10
|
+
import { css as mt, LitElement as ft, nothing as z, html as u } from "lit";
|
|
11
11
|
import { customElement as pt, property as v } from "lit/decorators.js";
|
|
12
|
-
import { classMap as
|
|
13
|
-
import { getI18nSeatReservation as
|
|
12
|
+
import { classMap as _t } from "lit/directives/class-map.js";
|
|
13
|
+
import { getI18nSeatReservation as E } from "../../common/translations.js";
|
|
14
14
|
import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
15
15
|
import "../seat-reservation-navigation-services.js";
|
|
16
16
|
const xt = mt`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-navigation-travelclass-spacing: .625rem;--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-granite);--sbb-seat-reservation-navigation-btn-outline-width: var(--sbb-border-width-1x);--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color-selected: var(--sbb-color-black);--sbb-seat-reservation-navigation-btn-outline-width-hover: var(--sbb-border-width-2x);--sbb-seat-reservation-navigation-btn-background-color-hover: var(--sbb-color-cloud)}.sbb-sr-navigation__item-coach{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-2x);width:var(--sbb-train-formation-wagon-width);list-style-type:none}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{width:calc(100% - 1.125rem)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation__ctrl-button:not(.sbb-seat-reservation-navigation-driver-area){border-start-start-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class{margin-inline-start:var(--sbb-seat-reservation-navigation-travelclass-spacing)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-end-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__additional-information{padding-inline-end:var(--sbb-seat-reservation-navigation-travelclass-spacing)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{margin-inline-end:var(--sbb-seat-reservation-navigation-travelclass-spacing)}.sbb-sr-navigation__item-coach.vertical-coach{flex-direction:row}.sbb-sr-navigation__ctrl-button{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;flex-direction:column;justify-content:center;height:2.25rem;position:relative;outline:var(--sbb-seat-reservation-navigation-btn-outline-width) solid var(--sbb-seat-reservation-navigation-btn-outline-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-seat-reservation-navigation-btn-background-color);cursor:pointer}.sbb-sr-navigation__ctrl-button.sbb-sr-navigation-driver-area{border-radius:var(--sbb-border-radius-8x);cursor:initial}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button,.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled,.sbb-sr-navigation-driver-area),.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-outline-width: var( --sbb-seat-reservation-navigation-btn-outline-width-hover );--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-silver)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-metal)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-anthracite)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button{--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-milk)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-black)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-smoke)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-iron)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-platinum);cursor:unset;pointer-events:unset}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-graphite)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-graphite)}.sbb-sr-navigation__additional-information{display:flex;justify-content:space-between;align-items:center;flex:1;column-gap:var(--sbb-spacing-fixed-2x);padding-inline:1rem 1rem;font-family:var(--sbb-typo-font-family);font-weight:700;color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__additional-information{color:var(--sbb-color-milk)}}.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}}@media (forced-colors: active) and (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:inherit}}.sbb-sr-navigation__item-coach-number .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-charcoal)}.sbb-sr-navigation--first-class{width:calc(100% - .5rem);position:absolute;inset-block-start:.1875rem;inset-inline-start:.25rem;border:var(--sbb-border-width-1x) solid transparent;border-radius:var(--sbb-border-radius-1x);margin:auto;background-color:var(--sbb-color-lemon)}.sbb-sr-navigation__item-coach-travelclass{display:flex;align-items:center;justify-content:center;min-height:1.25rem;min-width:1.25rem;border-radius:var(--sbb-border-radius-1x);text-align:center;background-color:var(--sbb-color-granite);color:var(--sbb-color-white)}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation__ctrl-button{flex-direction:row-reverse;height:5rem;min-width:2.25rem}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation__additional-information{flex-direction:column-reverse;padding-block:1rem 1rem;padding-inline-start:unset;padding-inline-end:unset}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation--first-class{height:calc(100% - .5rem);width:initial;inset-inline-end:.1875rem;inset-block-start:.25rem;inset-inline-start:initial}.sbb-sr-navigation__item-coach.vertical-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.vertical-coach.last-coach .sbb-sr-navigation--first-class{height:calc(100% - 1.125rem)}.sbb-sr-navigation__item-coach.vertical-coach.first-coach:not(.last-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-2x)}.sbb-sr-navigation__item-coach.vertical-coach.first-coach:not(.last-coach) .sbb-sr-navigation--first-class{margin-block-start:var(--sbb-seat-reservation-navigation-travelclass-spacing);margin-inline-start:initial}.sbb-sr-navigation__item-coach.vertical-coach.last-coach:not(.first-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-2x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.vertical-coach.last-coach:not(.first-coach) .sbb-sr-navigation--first-class{margin-block-end:var(--sbb-seat-reservation-navigation-travelclass-spacing);margin-inline-end:initial}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation-driver-area{height:5rem;min-width:2.25rem}`, yt = 3;
|
|
17
17
|
let Rt = (() => {
|
|
18
|
-
var
|
|
19
|
-
let o = [pt("sbb-seat-reservation-navigation-coach")], n, c = [], h,
|
|
20
|
-
var
|
|
18
|
+
var m, f, p, x, y, C, I, k, S, A, w, r;
|
|
19
|
+
let o = [pt("sbb-seat-reservation-navigation-coach")], n, c = [], h, B = ft, $, T = [], R = [], D, O = [], L = [], V, j = [], H = [], G, K = [], U = [], q, F = [], M = [], Y, P = [], X = [], J, Q = [], W = [], Z, tt = [], at = [], et, st = [], it = [], rt, ot = [], nt = [], ct, lt = [], bt = [];
|
|
20
|
+
var N = (r = class extends B {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
|
-
b(this, u);
|
|
24
23
|
b(this, m);
|
|
25
24
|
b(this, f);
|
|
26
25
|
b(this, p);
|
|
@@ -31,92 +30,94 @@ let Rt = (() => {
|
|
|
31
30
|
b(this, k);
|
|
32
31
|
b(this, S);
|
|
33
32
|
b(this, A);
|
|
34
|
-
|
|
33
|
+
b(this, w);
|
|
34
|
+
s(this, m, i(this, T, "")), s(this, f, (i(this, R), i(this, O, []))), s(this, p, (i(this, L), i(this, j, !1))), s(this, x, (i(this, H), i(this, K, !1))), s(this, y, (i(this, U), i(this, F, 0))), s(this, C, (i(this, M), i(this, P, ["ANY_CLASS"]))), s(this, I, (i(this, X), i(this, Q, !1))), s(this, k, (i(this, W), i(this, tt, !1))), s(this, S, (i(this, at), i(this, st, !1))), s(this, A, (i(this, it), i(this, ot, !1))), s(this, w, (i(this, nt), i(this, lt, !1))), this._language = (i(this, bt), new ut(this)), this.selectNavCoach = new ht(this, N.events.selectCoach), this.focusNavCoach = new ht(this, N.events.focusCoach);
|
|
35
35
|
}
|
|
36
36
|
/** Coach ID, which is used to identify the coach in the navigation */
|
|
37
37
|
get coachId() {
|
|
38
|
-
return l(this,
|
|
38
|
+
return l(this, m);
|
|
39
39
|
}
|
|
40
40
|
set coachId(a) {
|
|
41
|
-
s(this,
|
|
41
|
+
s(this, m, a);
|
|
42
42
|
}
|
|
43
43
|
/** Coach service property ids, which are used to display the services in the navigation */
|
|
44
44
|
get propertyIds() {
|
|
45
|
-
return l(this,
|
|
45
|
+
return l(this, f);
|
|
46
46
|
}
|
|
47
47
|
set propertyIds(a) {
|
|
48
|
-
s(this,
|
|
48
|
+
s(this, f, a);
|
|
49
49
|
}
|
|
50
50
|
/* pre-selected Coach index property */
|
|
51
51
|
get selected() {
|
|
52
|
-
return l(this,
|
|
52
|
+
return l(this, p);
|
|
53
53
|
}
|
|
54
54
|
set selected(a) {
|
|
55
|
-
s(this,
|
|
55
|
+
s(this, p, a);
|
|
56
56
|
}
|
|
57
57
|
/* focus Coach index property */
|
|
58
58
|
get focused() {
|
|
59
|
-
return l(this,
|
|
59
|
+
return l(this, x);
|
|
60
60
|
}
|
|
61
61
|
set focused(a) {
|
|
62
|
-
s(this,
|
|
62
|
+
s(this, x, a);
|
|
63
63
|
}
|
|
64
64
|
get index() {
|
|
65
|
-
return l(this,
|
|
65
|
+
return l(this, y);
|
|
66
66
|
}
|
|
67
67
|
set index(a) {
|
|
68
|
-
s(this,
|
|
68
|
+
s(this, y, a);
|
|
69
69
|
}
|
|
70
70
|
/** Travel class of the coach */
|
|
71
71
|
get travelClass() {
|
|
72
|
-
return l(this,
|
|
72
|
+
return l(this, C);
|
|
73
73
|
}
|
|
74
74
|
set travelClass(a) {
|
|
75
|
-
s(this,
|
|
75
|
+
s(this, C, a);
|
|
76
76
|
}
|
|
77
77
|
/** If the coach is a driver/restricted area */
|
|
78
78
|
get driverArea() {
|
|
79
|
-
return l(this,
|
|
79
|
+
return l(this, I);
|
|
80
80
|
}
|
|
81
81
|
set driverArea(a) {
|
|
82
|
-
s(this,
|
|
82
|
+
s(this, I, a);
|
|
83
83
|
}
|
|
84
84
|
/** If the coach is the first in the navigation */
|
|
85
85
|
get first() {
|
|
86
|
-
return l(this,
|
|
86
|
+
return l(this, k);
|
|
87
87
|
}
|
|
88
88
|
set first(a) {
|
|
89
|
-
s(this,
|
|
89
|
+
s(this, k, a);
|
|
90
90
|
}
|
|
91
91
|
/** If the coach is the last in the navigation */
|
|
92
92
|
get last() {
|
|
93
|
-
return l(this,
|
|
93
|
+
return l(this, S);
|
|
94
94
|
}
|
|
95
95
|
set last(a) {
|
|
96
|
-
s(this,
|
|
96
|
+
s(this, S, a);
|
|
97
97
|
}
|
|
98
98
|
/** Disable the coach navigation */
|
|
99
99
|
get disable() {
|
|
100
|
-
return l(this,
|
|
100
|
+
return l(this, A);
|
|
101
101
|
}
|
|
102
102
|
set disable(a) {
|
|
103
|
-
s(this,
|
|
103
|
+
s(this, A, a);
|
|
104
104
|
}
|
|
105
105
|
/** If the coach navigation should be displayed vertically */
|
|
106
106
|
get vertical() {
|
|
107
|
-
return l(this,
|
|
107
|
+
return l(this, w);
|
|
108
108
|
}
|
|
109
109
|
set vertical(a) {
|
|
110
|
-
s(this,
|
|
110
|
+
s(this, w, a);
|
|
111
111
|
}
|
|
112
112
|
willUpdate(a) {
|
|
113
|
+
var t, e;
|
|
113
114
|
if (super.willUpdate(a), a.has("selected")) {
|
|
114
|
-
const t = this.shadowRoot
|
|
115
|
-
this.selected &&
|
|
115
|
+
const g = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".sbb-sr-navigation__ctrl-button");
|
|
116
|
+
this.selected && g && (g.focus(), this.focusNavCoach.emit());
|
|
116
117
|
}
|
|
117
118
|
if (a.has("focused") && this.focused) {
|
|
118
|
-
const
|
|
119
|
-
|
|
119
|
+
const g = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".sbb-sr-navigation__ctrl-button");
|
|
120
|
+
g && g.focus();
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
/**
|
|
@@ -127,9 +128,10 @@ let Rt = (() => {
|
|
|
127
128
|
* @protected
|
|
128
129
|
*/
|
|
129
130
|
render() {
|
|
130
|
-
|
|
131
|
+
var a;
|
|
132
|
+
return this.propertyIds = this.propertyIds.filter((t) => t !== "ANY_SEAT").slice(0, yt), u`
|
|
131
133
|
<div
|
|
132
|
-
class="${
|
|
134
|
+
class="${_t({
|
|
133
135
|
"sbb-sr-navigation__item-coach": !0,
|
|
134
136
|
"last-coach": this.last,
|
|
135
137
|
"first-coach": this.first,
|
|
@@ -138,19 +140,19 @@ let Rt = (() => {
|
|
|
138
140
|
})}"
|
|
139
141
|
>
|
|
140
142
|
${this._getNavigationButton()}
|
|
141
|
-
${this.propertyIds
|
|
143
|
+
${(a = this.propertyIds) != null && a.length ? u`<sbb-seat-reservation-navigation-services
|
|
142
144
|
?vertical="${this.vertical}"
|
|
143
145
|
.propertyIds="${this.propertyIds}"
|
|
144
|
-
></sbb-seat-reservation-navigation-services>` :
|
|
146
|
+
></sbb-seat-reservation-navigation-services>` : z}
|
|
145
147
|
</div>
|
|
146
148
|
`;
|
|
147
149
|
}
|
|
148
150
|
_getNavigationButton() {
|
|
149
151
|
const a = this._getCoachServiceClassNumber(), t = this._getTitleDescriptionNavCoachButton(a), e = this._getAriaDescriptionCoachServices();
|
|
150
|
-
return
|
|
152
|
+
return u` <button
|
|
151
153
|
type="button"
|
|
152
154
|
?disabled="${this.disable}"
|
|
153
|
-
class="${
|
|
155
|
+
class="${_t({
|
|
154
156
|
"sbb-sr-navigation__ctrl-button": !0,
|
|
155
157
|
"sbb-sr-navigation-driver-area": this.driverArea
|
|
156
158
|
})}"
|
|
@@ -165,37 +167,38 @@ let Rt = (() => {
|
|
|
165
167
|
>`;
|
|
166
168
|
}
|
|
167
169
|
_getBtnInformation(a) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
${
|
|
171
|
-
|
|
170
|
+
var t;
|
|
171
|
+
return this.driverArea ? null : u`
|
|
172
|
+
${a === 1 ? u`<span class="sbb-sr-navigation--first-class"></span>` : z}
|
|
173
|
+
${((t = this.travelClass) == null ? void 0 : t.length) > 0 || this.coachId ? u`<div class="sbb-sr-navigation__additional-information">
|
|
174
|
+
${this.coachId ? u`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
|
|
172
175
|
${this.coachId}
|
|
173
|
-
</div>` :
|
|
176
|
+
</div>` : z}
|
|
174
177
|
<div
|
|
175
|
-
${a ??
|
|
178
|
+
${a ?? z}
|
|
176
179
|
class="sbb-sr-navigation__item-coach-travelclass"
|
|
177
180
|
aria-hidden="true"
|
|
178
181
|
>
|
|
179
182
|
${a}
|
|
180
183
|
</div>
|
|
181
|
-
</div>` :
|
|
184
|
+
</div>` : z}
|
|
182
185
|
`;
|
|
183
186
|
}
|
|
184
187
|
_getTitleDescriptionNavCoachButton(a) {
|
|
185
188
|
if (this.driverArea)
|
|
186
|
-
return
|
|
189
|
+
return E("NAVIGATE_COACH_BLOCKED", this._language.current, [
|
|
187
190
|
this.coachId
|
|
188
191
|
]);
|
|
189
|
-
let t =
|
|
192
|
+
let t = E("NAVIGATE_TO_COACH", this._language.current, [this.coachId]);
|
|
190
193
|
if (a) {
|
|
191
|
-
const
|
|
194
|
+
const g = E(a === 1 ? "SERVICE_CLASS_FIRST" : "SERVICE_CLASS_SECOND", this._language.current), gt = E("NAVIGATE_TO_COACH_SERVICE_CLASS_SUB", this._language.current, [g]);
|
|
192
195
|
t = t.concat(gt);
|
|
193
196
|
}
|
|
194
197
|
return t;
|
|
195
198
|
}
|
|
196
199
|
_getAriaDescriptionCoachServices() {
|
|
197
200
|
let a = null;
|
|
198
|
-
return this.propertyIds.length && (a =
|
|
201
|
+
return this.propertyIds.length && (a = E("COACH_AVAILABLE_SERVICES", this._language.current) + ": ", a += this.propertyIds.map((t) => E(t, this._language.current)).join()), a;
|
|
199
202
|
}
|
|
200
203
|
/**
|
|
201
204
|
* emits the index of the coach array for the main navigation.
|
|
@@ -206,38 +209,39 @@ let Rt = (() => {
|
|
|
206
209
|
this.driverArea || this.selectNavCoach.emit(a);
|
|
207
210
|
}
|
|
208
211
|
_getCoachServiceClassNumber() {
|
|
209
|
-
|
|
212
|
+
var a, t;
|
|
213
|
+
return (a = this.travelClass) != null && a.includes("FIRST") ? 1 : (t = this.travelClass) != null && t.includes("SECOND") ? 2 : null;
|
|
210
214
|
}
|
|
211
|
-
},
|
|
212
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
213
|
-
|
|
215
|
+
}, m = new WeakMap(), f = new WeakMap(), p = new WeakMap(), x = new WeakMap(), y = new WeakMap(), C = new WeakMap(), I = new WeakMap(), k = new WeakMap(), S = new WeakMap(), A = new WeakMap(), w = new WeakMap(), h = r, (() => {
|
|
216
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(B[Symbol.metadata] ?? null) : void 0;
|
|
217
|
+
$ = [_(), v({ attribute: "coach-id" })], D = [v({ attribute: "property-ids", type: Array })], V = [_(), v({ type: Boolean })], G = [_(), v({ type: Boolean })], q = [_(), v({ type: Number })], Y = [v({ attribute: "travel-class", type: Array })], J = [_(), v({ attribute: "driver-area", type: Boolean })], Z = [_(), v({ type: Boolean })], et = [_(), v({ type: Boolean })], rt = [_(), v({ attribute: "disable", type: Boolean })], ct = [_(), v({ type: Boolean })], d(r, null, $, { kind: "accessor", name: "coachId", static: !1, private: !1, access: { has: (t) => "coachId" in t, get: (t) => t.coachId, set: (t, e) => {
|
|
214
218
|
t.coachId = e;
|
|
215
|
-
} }, metadata: a },
|
|
219
|
+
} }, metadata: a }, T, R), d(r, null, D, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (t) => "propertyIds" in t, get: (t) => t.propertyIds, set: (t, e) => {
|
|
216
220
|
t.propertyIds = e;
|
|
217
|
-
} }, metadata: a },
|
|
221
|
+
} }, metadata: a }, O, L), d(r, null, V, { kind: "accessor", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, get: (t) => t.selected, set: (t, e) => {
|
|
218
222
|
t.selected = e;
|
|
219
|
-
} }, metadata: a },
|
|
223
|
+
} }, metadata: a }, j, H), d(r, null, G, { kind: "accessor", name: "focused", static: !1, private: !1, access: { has: (t) => "focused" in t, get: (t) => t.focused, set: (t, e) => {
|
|
220
224
|
t.focused = e;
|
|
221
|
-
} }, metadata: a },
|
|
225
|
+
} }, metadata: a }, K, U), d(r, null, q, { kind: "accessor", name: "index", static: !1, private: !1, access: { has: (t) => "index" in t, get: (t) => t.index, set: (t, e) => {
|
|
222
226
|
t.index = e;
|
|
223
|
-
} }, metadata: a },
|
|
227
|
+
} }, metadata: a }, F, M), d(r, null, Y, { kind: "accessor", name: "travelClass", static: !1, private: !1, access: { has: (t) => "travelClass" in t, get: (t) => t.travelClass, set: (t, e) => {
|
|
224
228
|
t.travelClass = e;
|
|
225
|
-
} }, metadata: a },
|
|
229
|
+
} }, metadata: a }, P, X), d(r, null, J, { kind: "accessor", name: "driverArea", static: !1, private: !1, access: { has: (t) => "driverArea" in t, get: (t) => t.driverArea, set: (t, e) => {
|
|
226
230
|
t.driverArea = e;
|
|
227
|
-
} }, metadata: a },
|
|
231
|
+
} }, metadata: a }, Q, W), d(r, null, Z, { kind: "accessor", name: "first", static: !1, private: !1, access: { has: (t) => "first" in t, get: (t) => t.first, set: (t, e) => {
|
|
228
232
|
t.first = e;
|
|
229
|
-
} }, metadata: a },
|
|
233
|
+
} }, metadata: a }, tt, at), d(r, null, et, { kind: "accessor", name: "last", static: !1, private: !1, access: { has: (t) => "last" in t, get: (t) => t.last, set: (t, e) => {
|
|
230
234
|
t.last = e;
|
|
231
|
-
} }, metadata: a },
|
|
235
|
+
} }, metadata: a }, st, it), d(r, null, rt, { kind: "accessor", name: "disable", static: !1, private: !1, access: { has: (t) => "disable" in t, get: (t) => t.disable, set: (t, e) => {
|
|
232
236
|
t.disable = e;
|
|
233
|
-
} }, metadata: a },
|
|
237
|
+
} }, metadata: a }, ot, nt), d(r, null, ct, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (t) => "vertical" in t, get: (t) => t.vertical, set: (t, e) => {
|
|
234
238
|
t.vertical = e;
|
|
235
|
-
} }, metadata: a },
|
|
239
|
+
} }, metadata: a }, lt, bt), d(null, n = { value: h }, o, { kind: "class", name: h.name, metadata: a }, null, c), N = h = n.value, a && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
236
240
|
})(), r.styles = xt, r.events = {
|
|
237
241
|
selectCoach: "selectCoach",
|
|
238
242
|
focusCoach: "focusCoach"
|
|
239
243
|
}, i(h, c), r);
|
|
240
|
-
return
|
|
244
|
+
return N = h;
|
|
241
245
|
})();
|
|
242
246
|
export {
|
|
243
247
|
Rt as SbbSeatReservationNavigationCoachElement
|
|
@@ -14,9 +14,9 @@ import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
|
14
14
|
import "../../seat-reservation-graphic.js";
|
|
15
15
|
const O = A`*,:before,:after{box-sizing:border-box}.sbb-sr-navigation__signs{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--sbb-spacing-fixed-2x);color:var(--sbb-color-granite)}.sbb-sr-navigation__signs--vertical{align-content:center;height:100%}`;
|
|
16
16
|
let J = (() => {
|
|
17
|
-
var o, c,
|
|
17
|
+
var o, c, n;
|
|
18
18
|
let e = [C("sbb-seat-reservation-navigation-services")], s, a = [], i, u = j, v, h = [], y = [], f, I = [], S = [];
|
|
19
|
-
return
|
|
19
|
+
return n = class extends u {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
d(this, o);
|
|
@@ -38,6 +38,7 @@ let J = (() => {
|
|
|
38
38
|
p(this, c, r);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
+
var t;
|
|
41
42
|
const r = this.propertyIds.length ? this._getServiceLabelDescription() : null;
|
|
42
43
|
return E` <div
|
|
43
44
|
class="${k({
|
|
@@ -48,12 +49,12 @@ let J = (() => {
|
|
|
48
49
|
<sbb-screen-reader-only ${r || z}
|
|
49
50
|
>${r}</sbb-screen-reader-only
|
|
50
51
|
>
|
|
51
|
-
${this.propertyIds
|
|
52
|
+
${(t = this.propertyIds) == null ? void 0 : t.map((l) => E`
|
|
52
53
|
<sbb-seat-reservation-graphic
|
|
53
|
-
name=${
|
|
54
|
+
name=${l ?? z}
|
|
54
55
|
width="20"
|
|
55
56
|
height="20"
|
|
56
|
-
title=${m(
|
|
57
|
+
title=${m(l, this._language.current)}
|
|
57
58
|
aria-hidden="true"
|
|
58
59
|
></sbb-seat-reservation-graphic>
|
|
59
60
|
`)}
|
|
@@ -62,17 +63,17 @@ let J = (() => {
|
|
|
62
63
|
//Generate the translated service label from the available properties
|
|
63
64
|
_getServiceLabelDescription() {
|
|
64
65
|
let r = null;
|
|
65
|
-
const t = this.propertyIds.map((
|
|
66
|
+
const t = this.propertyIds.map((l) => m(l, this._language.current)).filter((l) => !!l).join(", ");
|
|
66
67
|
return t && (r = m("COACH_AVAILABLE_SERVICES", this._language.current).concat(":").concat(t)), r;
|
|
67
68
|
}
|
|
68
|
-
}, o = new WeakMap(), c = new WeakMap(), i =
|
|
69
|
+
}, o = new WeakMap(), c = new WeakMap(), i = n, (() => {
|
|
69
70
|
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
|
|
70
|
-
v = [D({ attribute: "property-ids", type: Array })], f = [w(), D({ type: Boolean })], g(
|
|
71
|
-
t.propertyIds =
|
|
72
|
-
} }, metadata: r }, h, y), g(
|
|
73
|
-
t.vertical =
|
|
71
|
+
v = [D({ attribute: "property-ids", type: Array })], f = [w(), D({ type: Boolean })], g(n, null, v, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (t) => "propertyIds" in t, get: (t) => t.propertyIds, set: (t, l) => {
|
|
72
|
+
t.propertyIds = l;
|
|
73
|
+
} }, metadata: r }, h, y), g(n, null, f, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (t) => "vertical" in t, get: (t) => t.vertical, set: (t, l) => {
|
|
74
|
+
t.vertical = l;
|
|
74
75
|
} }, metadata: r }, I, S), g(null, s = { value: i }, e, { kind: "class", name: i.name, metadata: r }, null, a), i = s.value, r && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
75
|
-
})(),
|
|
76
|
+
})(), n.styles = O, b(i, a), i;
|
|
76
77
|
})();
|
|
77
78
|
export {
|
|
78
79
|
J as SbbSeatReservationNavigationServicesElement
|