@sbb-esta/lyne-elements-experimental 3.3.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +33 -173
- package/development/seat-reservation/common/translations/i18n.js +4 -4
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +5 -0
- 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 +15 -3
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +0 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +41 -49
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +5 -5
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +1 -10
- 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 +4 -83
- 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 +16 -17
- 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 +11 -14
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +0 -8
- 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 +20 -87
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -4
- package/package.json +2 -2
- package/seat-reservation/common/translations/i18n.js +3 -3
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +5 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +24 -14
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +0 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +129 -134
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +6 -6
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +1 -10
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +47 -90
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +75 -76
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +32 -35
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +0 -8
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +92 -129
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -2
|
@@ -1,112 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var E = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
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 z = (t, r, s) => r.has(t) || E("Cannot " + s);
|
|
5
|
+
var m = (t, r, s) => (z(t, r, "read from private field"), s ? s.call(t) : r.get(t)), v = (t, r, s) => r.has(t) ? E("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, s), b = (t, r, s, i) => (z(t, r, "write to private field"), i ? i.call(t, s) : r.set(t, s), s);
|
|
6
|
+
import { __runInitializers as h, __esDecorate as p } from "tslib";
|
|
7
|
+
import { SbbLanguageController as $ } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
8
|
+
import { forceType as I } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
9
|
+
import { css as j, LitElement as k, html as u } from "lit";
|
|
10
|
+
import { customElement as D, property as N } from "lit/decorators.js";
|
|
11
|
+
import { classMap as O } from "lit/directives/class-map.js";
|
|
12
|
+
import { mapIconToSvg as C, getI18nSeatReservation as L } from "../common.js";
|
|
13
13
|
import "@sbb-esta/lyne-elements/icon.js";
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
var
|
|
17
|
-
let
|
|
18
|
-
return
|
|
14
|
+
const R = j`*,:before,:after{box-sizing:border-box}:host{--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-position: initial;--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);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(.sbb-seat-reservation-graphic--cursor-pointer){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)}.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}}`;
|
|
15
|
+
let K = (() => {
|
|
16
|
+
var o, c, n;
|
|
17
|
+
let t = [D("sbb-seat-reservation-graphic")], r, s = [], i, f = k, d, _ = [], x = [], S, y = [], w = [];
|
|
18
|
+
return n = class extends f {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
b(this,
|
|
24
|
-
b(this, d);
|
|
25
|
-
b(this, u);
|
|
26
|
-
b(this, _);
|
|
27
|
-
o(this, v, h(this, S, "")), o(this, m, (h(this, I), h(this, $, !1))), o(this, p, (h(this, k), h(this, j, 0))), o(this, d, (h(this, D), h(this, C, 0))), o(this, u, (h(this, L), h(this, A, null))), o(this, _, (h(this, M), h(this, U, null))), this._language = (h(this, B), new q(this));
|
|
21
|
+
v(this, o);
|
|
22
|
+
v(this, c);
|
|
23
|
+
b(this, o, h(this, _, "")), b(this, c, (h(this, x), h(this, y, !1))), this._language = (h(this, w), new $(this));
|
|
28
24
|
}
|
|
29
25
|
/** Name of the SVG graphic to be displayed. */
|
|
30
26
|
get name() {
|
|
31
|
-
return
|
|
27
|
+
return m(this, o);
|
|
32
28
|
}
|
|
33
|
-
set name(
|
|
34
|
-
|
|
29
|
+
set name(e) {
|
|
30
|
+
b(this, o, e);
|
|
35
31
|
}
|
|
36
32
|
/** if true, scale the graphic content of the given element non-uniformly if necessary */
|
|
37
33
|
get stretch() {
|
|
38
|
-
return
|
|
34
|
+
return m(this, c);
|
|
39
35
|
}
|
|
40
|
-
set stretch(
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
/** handles the rotation of the SVG graphic */
|
|
44
|
-
get rotation() {
|
|
45
|
-
return l(this, p);
|
|
46
|
-
}
|
|
47
|
-
set rotation(t) {
|
|
48
|
-
o(this, p, t);
|
|
49
|
-
}
|
|
50
|
-
/** Inverse rotation for part of an SVG that can be rotated opposite to the normal rotation */
|
|
51
|
-
get inverseRotation() {
|
|
52
|
-
return l(this, d);
|
|
53
|
-
}
|
|
54
|
-
set inverseRotation(t) {
|
|
55
|
-
o(this, d, t);
|
|
56
|
-
}
|
|
57
|
-
/** width of the svg in pixels (without unit) */
|
|
58
|
-
get width() {
|
|
59
|
-
return l(this, u);
|
|
60
|
-
}
|
|
61
|
-
set width(t) {
|
|
62
|
-
o(this, u, t);
|
|
63
|
-
}
|
|
64
|
-
/** height of the svg in pixels (without unit) */
|
|
65
|
-
get height() {
|
|
66
|
-
return l(this, _);
|
|
67
|
-
}
|
|
68
|
-
set height(t) {
|
|
69
|
-
o(this, _, t);
|
|
70
|
-
}
|
|
71
|
-
willUpdate(t) {
|
|
72
|
-
super.willUpdate(t), t.has("width") && this.width && this.style?.setProperty("--sbb-seat-reservation-graphic-width", `${this.width}`), t.has("height") && this.height && this.style?.setProperty("--sbb-seat-reservation-graphic-height", `${this.height}`), t.has("rotation") && this.style?.setProperty("--sbb-seat-reservation-graphic-rotation", `${this.rotation}`), t.has("inverseRotation") && this.style?.setProperty("--sbb-seat-reservation-graphic-inverse-rotation", `${this.inverseRotation}`);
|
|
36
|
+
set stretch(e) {
|
|
37
|
+
b(this, c, e);
|
|
73
38
|
}
|
|
74
39
|
render() {
|
|
75
|
-
const
|
|
76
|
-
return !
|
|
77
|
-
class="${
|
|
78
|
-
"sbb-sr-icon": !!
|
|
79
|
-
"sbb-sr-graphic": !!
|
|
40
|
+
const e = C[this.name];
|
|
41
|
+
return !e?.svg && !e?.svgName ? null : u`<span
|
|
42
|
+
class="${O({
|
|
43
|
+
"sbb-sr-icon": !!e.svgName,
|
|
44
|
+
"sbb-sr-graphic": !!e.svg
|
|
80
45
|
})}"
|
|
81
46
|
>
|
|
82
|
-
${
|
|
83
|
-
name="${
|
|
47
|
+
${e.svgName ? u` <sbb-icon
|
|
48
|
+
name="${e.svgName || ""}"
|
|
84
49
|
aria-hidden="false"
|
|
85
|
-
aria-label="${
|
|
86
|
-
></sbb-icon>` :
|
|
50
|
+
aria-label="${L(e.svgName, this._language.current)}"
|
|
51
|
+
></sbb-icon>` : u`${this._getSvgElement(e.svg)}`}
|
|
87
52
|
</span>`;
|
|
88
53
|
}
|
|
89
|
-
_getSvgElement(
|
|
90
|
-
const
|
|
91
|
-
return this.stretch &&
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
} }, metadata:
|
|
98
|
-
|
|
99
|
-
} }, metadata:
|
|
100
|
-
|
|
101
|
-
} }, metadata: t }, j, D), g(a, null, O, { kind: "accessor", name: "inverseRotation", static: !1, private: !1, access: { has: (e) => "inverseRotation" in e, get: (e) => e.inverseRotation, set: (e, n) => {
|
|
102
|
-
e.inverseRotation = n;
|
|
103
|
-
} }, metadata: t }, C, L), g(a, null, T, { kind: "accessor", name: "width", static: !1, private: !1, access: { has: (e) => "width" in e, get: (e) => e.width, set: (e, n) => {
|
|
104
|
-
e.width = n;
|
|
105
|
-
} }, metadata: t }, A, M), g(a, null, P, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (e) => "height" in e, get: (e) => e.height, set: (e, n) => {
|
|
106
|
-
e.height = n;
|
|
107
|
-
} }, metadata: t }, U, B), g(null, i = { value: c }, s, { kind: "class", name: c.name, metadata: t }, null, r), c = i.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
108
|
-
})(), a.styles = X, h(c, r), c;
|
|
54
|
+
_getSvgElement(e) {
|
|
55
|
+
const a = new DOMParser(), l = e || "<svg></svg>", g = a.parseFromString(l, "image/svg+xml").firstElementChild;
|
|
56
|
+
return this.stretch && g?.nodeName.toLowerCase() === "svg" && g.setAttribute("preserveAspectRatio", "none"), g;
|
|
57
|
+
}
|
|
58
|
+
}, o = new WeakMap(), c = new WeakMap(), i = n, (() => {
|
|
59
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
60
|
+
d = [I(), N({ attribute: "name" })], S = [I(), N({ attribute: "stretch", type: Boolean })], p(n, null, d, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (a) => "name" in a, get: (a) => a.name, set: (a, l) => {
|
|
61
|
+
a.name = l;
|
|
62
|
+
} }, metadata: e }, _, x), p(n, null, S, { kind: "accessor", name: "stretch", static: !1, private: !1, access: { has: (a) => "stretch" in a, get: (a) => a.stretch, set: (a, l) => {
|
|
63
|
+
a.stretch = l;
|
|
64
|
+
} }, metadata: e }, y, w), p(null, r = { value: i }, t, { kind: "class", name: i.name, metadata: e }, null, s), i = r.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
65
|
+
})(), n.styles = R, h(i, s), i;
|
|
109
66
|
})();
|
|
110
67
|
export {
|
|
111
|
-
|
|
68
|
+
K as SbbSeatReservationGraphicElement
|
|
112
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-navigation-coach.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC7F,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAI9E,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AAIpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,qBAEM,wCAAyC,SAAQ,UAAU;IAC/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX,sEAAsE;IACtE,SAEgB,OAAO,EAAE,MAAM,CAAM;IAErC,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAG3C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAG1C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,SAEgB,KAAK,EAAE,MAAM,CAAK;IAElC,2GAA2G;IAC3G,SACgB,gBAAgB,EAAE,uBAAuB,CAA6B;IAEtF,gCAAgC;IAChC,SACgB,WAAW,EAAE,gBAAgB,EAAE,CAAiB;IAEhE,+CAA+C;IAC/C,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C,kDAAkD;IAClD,SAEgB,KAAK,EAAE,OAAO,CAAS;IAEvC,iDAAiD;IACjD,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC,mCAAmC;IACnC,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,6DAA6D;IAC7D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAwB5E;;;;;;OAMG;cACgB,MAAM,IAAI,cAAc;
|
|
1
|
+
{"version":3,"file":"seat-reservation-navigation-coach.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC7F,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAI9E,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AAIpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,qBAEM,wCAAyC,SAAQ,UAAU;IAC/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX,sEAAsE;IACtE,SAEgB,OAAO,EAAE,MAAM,CAAM;IAErC,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAG3C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAG1C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,SAEgB,KAAK,EAAE,MAAM,CAAK;IAElC,2GAA2G;IAC3G,SACgB,gBAAgB,EAAE,uBAAuB,CAA6B;IAEtF,gCAAgC;IAChC,SACgB,WAAW,EAAE,gBAAgB,EAAE,CAAiB;IAEhE,+CAA+C;IAC/C,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C,kDAAkD;IAClD,SAEgB,KAAK,EAAE,OAAO,CAAS;IAEvC,iDAAiD;IACjD,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC,mCAAmC;IACnC,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,6DAA6D;IAC7D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAwB5E;;;;;;OAMG;cACgB,MAAM,IAAI,cAAc;IAwB3C,OAAO,CAAC,oBAAoB;IAwB5B,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,kCAAkC;IAmC1C,OAAO,CAAC,gCAAgC;IAYxC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,2BAA2B;CASpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uCAAuC,EAAE,wCAAwC,CAAC;KACnF;CACF"}
|
|
@@ -12,10 +12,10 @@ import { classMap as ge } from "lit/directives/class-map.js";
|
|
|
12
12
|
import { getI18nSeatReservation as u } from "../common/translations.js";
|
|
13
13
|
import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
14
14
|
import "../seat-reservation-navigation-services.js";
|
|
15
|
-
const Ie = fe`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-navigation-travelclass-spacing: 10;--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-granite);--sbb-seat-reservation-navigation-btn-outline-width: 1;--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: 2;--sbb-seat-reservation-navigation-btn-background-color-hover: var(--sbb-color-cloud)}:host(.sbb-sr__navigation-coach--hover-scroll){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__item-coach{display:flex;flex-direction:column;gap:var(--sbb-
|
|
16
|
-
let
|
|
15
|
+
const Ie = fe`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-navigation-travelclass-spacing: 10;--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-granite);--sbb-seat-reservation-navigation-btn-outline-width: 1;--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: 2;--sbb-seat-reservation-navigation-btn-background-color-hover: var(--sbb-color-cloud)}:host(.sbb-sr__navigation-coach--hover-scroll){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__item-coach{display:flex;flex-direction:column;gap:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));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% - 18 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.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:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.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:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{margin-inline-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.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:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:relative;outline:calc(var(--sbb-seat-reservation-navigation-btn-outline-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) 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:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding-inline:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));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% - 8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:absolute;inset-block-start:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:calc(1 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) 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:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));border-radius:var(--sbb-border-radius-1x);text-align:center;background-color:var(--sbb-color-granite);color:var(--sbb-color-white)}:host([vertical]) .sbb-sr-navigation__item-coach{flex-direction:row}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation__ctrl-button{flex-direction:row-reverse;height:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation__additional-information{flex-direction:column-reverse;padding-block:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding-inline-start:unset;padding-inline-end:unset}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation--first-class{height:calc(100% - 8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:initial;inset-inline-end:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:initial}:host([vertical]) .sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class,:host([vertical]) .sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{height:calc(100% - 18 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host([vertical]) .sbb-sr-navigation__item-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)}:host([vertical]) .sbb-sr-navigation__item-coach.first-coach:not(.last-coach) .sbb-sr-navigation--first-class{margin-block-start:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-inline-start:initial}:host([vertical]) .sbb-sr-navigation__item-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)}:host([vertical]) .sbb-sr-navigation__item-coach.last-coach:not(.first-coach) .sbb-sr-navigation--first-class{margin-block-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-inline-end:initial}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation-driver-area{height:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}`, Ce = 3;
|
|
16
|
+
let De = (() => {
|
|
17
17
|
var m, p, f, y, x, I, C, k, A, S, B, E, i;
|
|
18
|
-
let o = [xe("sbb-seat-reservation-navigation-coach")], n, c = [], h, z = ye, T, N = [], $ = [], O, P = [],
|
|
18
|
+
let o = [xe("sbb-seat-reservation-navigation-coach")], n, c = [], h, z = ye, T, N = [], $ = [], O, P = [], D = [], R, L = [], V = [], j, H = [], U = [], F, G = [], K = [], M, q = [], Y = [], X, J = [], Q = [], W, Z = [], ee = [], te, ae = [], se = [], re, ie = [], oe = [], ne, ce = [], le = [], be, ve = [], de = [];
|
|
19
19
|
return i = class extends z {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
@@ -31,97 +31,97 @@ let Re = (() => {
|
|
|
31
31
|
b(this, S);
|
|
32
32
|
b(this, B);
|
|
33
33
|
b(this, E);
|
|
34
|
-
s(this, m, r(this, N, "")), s(this, p, (r(this, $), r(this, P, []))), s(this, f, (r(this,
|
|
34
|
+
s(this, m, r(this, N, "")), s(this, p, (r(this, $), r(this, P, []))), s(this, f, (r(this, D), r(this, L, !1))), s(this, y, (r(this, V), r(this, H, !1))), s(this, x, (r(this, U), r(this, G, 0))), s(this, I, (r(this, K), r(this, q, { seats: 0, bicycles: 0 }))), s(this, C, (r(this, Y), r(this, J, ["ANY_CLASS"]))), s(this, k, (r(this, Q), r(this, Z, !1))), s(this, A, (r(this, ee), r(this, ae, !1))), s(this, S, (r(this, se), r(this, ie, !1))), s(this, B, (r(this, oe), r(this, ce, !1))), s(this, E, (r(this, le), r(this, ve, !1))), this._language = (r(this, de), new pe(this));
|
|
35
35
|
}
|
|
36
36
|
/** Coach ID, which is used to identify the coach in the navigation */
|
|
37
37
|
get coachId() {
|
|
38
38
|
return l(this, m);
|
|
39
39
|
}
|
|
40
|
-
set coachId(
|
|
41
|
-
s(this, m,
|
|
40
|
+
set coachId(t) {
|
|
41
|
+
s(this, m, t);
|
|
42
42
|
}
|
|
43
43
|
/** Coach service property ids, which are used to display the services in the navigation */
|
|
44
44
|
get propertyIds() {
|
|
45
45
|
return l(this, p);
|
|
46
46
|
}
|
|
47
|
-
set propertyIds(
|
|
48
|
-
s(this, p,
|
|
47
|
+
set propertyIds(t) {
|
|
48
|
+
s(this, p, t);
|
|
49
49
|
}
|
|
50
50
|
/* pre-selected Coach index property */
|
|
51
51
|
get selected() {
|
|
52
52
|
return l(this, f);
|
|
53
53
|
}
|
|
54
|
-
set selected(
|
|
55
|
-
s(this, f,
|
|
54
|
+
set selected(t) {
|
|
55
|
+
s(this, f, t);
|
|
56
56
|
}
|
|
57
57
|
/* focus Coach index property */
|
|
58
58
|
get focused() {
|
|
59
59
|
return l(this, y);
|
|
60
60
|
}
|
|
61
|
-
set focused(
|
|
62
|
-
s(this, y,
|
|
61
|
+
set focused(t) {
|
|
62
|
+
s(this, y, t);
|
|
63
63
|
}
|
|
64
64
|
get index() {
|
|
65
65
|
return l(this, x);
|
|
66
66
|
}
|
|
67
|
-
set index(
|
|
68
|
-
s(this, x,
|
|
67
|
+
set index(t) {
|
|
68
|
+
s(this, x, t);
|
|
69
69
|
}
|
|
70
70
|
/** Representation of places available for selecting, counting seat places and bicycle places separetely */
|
|
71
71
|
get freePlacesByType() {
|
|
72
72
|
return l(this, I);
|
|
73
73
|
}
|
|
74
|
-
set freePlacesByType(
|
|
75
|
-
s(this, I,
|
|
74
|
+
set freePlacesByType(t) {
|
|
75
|
+
s(this, I, t);
|
|
76
76
|
}
|
|
77
77
|
/** Travel class of the coach */
|
|
78
78
|
get travelClass() {
|
|
79
79
|
return l(this, C);
|
|
80
80
|
}
|
|
81
|
-
set travelClass(
|
|
82
|
-
s(this, C,
|
|
81
|
+
set travelClass(t) {
|
|
82
|
+
s(this, C, t);
|
|
83
83
|
}
|
|
84
84
|
/** If the coach is a driver/restricted area */
|
|
85
85
|
get driverArea() {
|
|
86
86
|
return l(this, k);
|
|
87
87
|
}
|
|
88
|
-
set driverArea(
|
|
89
|
-
s(this, k,
|
|
88
|
+
set driverArea(t) {
|
|
89
|
+
s(this, k, t);
|
|
90
90
|
}
|
|
91
91
|
/** If the coach is the first in the navigation */
|
|
92
92
|
get first() {
|
|
93
93
|
return l(this, A);
|
|
94
94
|
}
|
|
95
|
-
set first(
|
|
96
|
-
s(this, A,
|
|
95
|
+
set first(t) {
|
|
96
|
+
s(this, A, t);
|
|
97
97
|
}
|
|
98
98
|
/** If the coach is the last in the navigation */
|
|
99
99
|
get last() {
|
|
100
100
|
return l(this, S);
|
|
101
101
|
}
|
|
102
|
-
set last(
|
|
103
|
-
s(this, S,
|
|
102
|
+
set last(t) {
|
|
103
|
+
s(this, S, t);
|
|
104
104
|
}
|
|
105
105
|
/** Disable the coach navigation */
|
|
106
106
|
get disable() {
|
|
107
107
|
return l(this, B);
|
|
108
108
|
}
|
|
109
|
-
set disable(
|
|
110
|
-
s(this, B,
|
|
109
|
+
set disable(t) {
|
|
110
|
+
s(this, B, t);
|
|
111
111
|
}
|
|
112
112
|
/** If the coach navigation should be displayed vertically */
|
|
113
113
|
get vertical() {
|
|
114
114
|
return l(this, E);
|
|
115
115
|
}
|
|
116
|
-
set vertical(
|
|
117
|
-
s(this, E,
|
|
116
|
+
set vertical(t) {
|
|
117
|
+
s(this, E, t);
|
|
118
118
|
}
|
|
119
|
-
willUpdate(
|
|
120
|
-
if (super.willUpdate(
|
|
119
|
+
willUpdate(t) {
|
|
120
|
+
if (super.willUpdate(t), t.has("selected")) {
|
|
121
121
|
const e = this.shadowRoot?.querySelector(".sbb-sr-navigation__ctrl-button");
|
|
122
122
|
this.selected && e && (e.focus(), this.dispatchEvent(new Event("focuscoach", { bubbles: !0, composed: !0 })));
|
|
123
123
|
}
|
|
124
|
-
if (
|
|
124
|
+
if (t.has("focused") && this.focused) {
|
|
125
125
|
const e = this.shadowRoot?.querySelector(".sbb-sr-navigation__ctrl-button");
|
|
126
126
|
e && e.focus();
|
|
127
127
|
}
|
|
@@ -134,13 +134,12 @@ let Re = (() => {
|
|
|
134
134
|
* @protected
|
|
135
135
|
*/
|
|
136
136
|
render() {
|
|
137
|
-
return this.propertyIds = this.propertyIds.filter((
|
|
137
|
+
return this.propertyIds = this.propertyIds.filter((t) => t !== "ANY_SEAT").slice(0, Ce), g`
|
|
138
138
|
<div
|
|
139
139
|
class="${ge({
|
|
140
140
|
"sbb-sr-navigation__item-coach": !0,
|
|
141
141
|
"last-coach": this.last,
|
|
142
142
|
"first-coach": this.first,
|
|
143
|
-
"vertical-coach": this.vertical,
|
|
144
143
|
"sbb-sr-navigation__item-coach--selected": this.selected
|
|
145
144
|
})}"
|
|
146
145
|
>
|
|
@@ -153,7 +152,7 @@ let Re = (() => {
|
|
|
153
152
|
`;
|
|
154
153
|
}
|
|
155
154
|
_getNavigationButton() {
|
|
156
|
-
const
|
|
155
|
+
const t = this._getCoachServiceClassNumber(), e = this._getTitleDescriptionNavCoachButton(t), a = this._getAriaDescriptionCoachServices();
|
|
157
156
|
return g` <button
|
|
158
157
|
type="button"
|
|
159
158
|
?disabled="${this.disable}"
|
|
@@ -165,93 +164,93 @@ let Re = (() => {
|
|
|
165
164
|
aria-describedby="nav-coach-service-descriptions-${this.index}"
|
|
166
165
|
@click=${() => this._selectNavCoach(this.index)}
|
|
167
166
|
>
|
|
168
|
-
${this._getBtnInformation(
|
|
167
|
+
${this._getBtnInformation(t)}
|
|
169
168
|
</button>
|
|
170
169
|
<sbb-screen-reader-only id="nav-coach-service-descriptions-${this.index}"
|
|
171
|
-
>${
|
|
170
|
+
>${a}</sbb-screen-reader-only
|
|
172
171
|
>`;
|
|
173
172
|
}
|
|
174
|
-
_getBtnInformation(
|
|
173
|
+
_getBtnInformation(t) {
|
|
175
174
|
return this.driverArea ? null : g`
|
|
176
|
-
${
|
|
175
|
+
${t === 1 ? g`<span class="sbb-sr-navigation--first-class"></span>` : w}
|
|
177
176
|
${this.travelClass?.length > 0 || this.coachId ? g`<div class="sbb-sr-navigation__additional-information">
|
|
178
177
|
${this.coachId ? g`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
|
|
179
178
|
${this.coachId}
|
|
180
179
|
</div>` : w}
|
|
181
180
|
<div
|
|
182
|
-
${
|
|
181
|
+
${t ?? w}
|
|
183
182
|
class="sbb-sr-navigation__item-coach-travelclass"
|
|
184
183
|
aria-hidden="true"
|
|
185
184
|
>
|
|
186
|
-
${
|
|
185
|
+
${t}
|
|
187
186
|
</div>
|
|
188
187
|
</div>` : w}
|
|
189
188
|
`;
|
|
190
189
|
}
|
|
191
|
-
_getTitleDescriptionNavCoachButton(
|
|
190
|
+
_getTitleDescriptionNavCoachButton(t) {
|
|
192
191
|
if (this.driverArea)
|
|
193
192
|
return u("NAVIGATE_COACH_BLOCKED", this._language.current, [
|
|
194
193
|
this.coachId
|
|
195
194
|
]);
|
|
196
195
|
let e = u("NAVIGATE_TO_COACH", this._language.current, [this.coachId]);
|
|
197
|
-
if (
|
|
198
|
-
const ue = u(
|
|
196
|
+
if (t) {
|
|
197
|
+
const ue = u(t === 1 ? "SERVICE_CLASS_FIRST" : "SERVICE_CLASS_SECOND", this._language.current), me = u("NAVIGATE_TO_COACH_SERVICE_CLASS_SUB", this._language.current, [ue]);
|
|
199
198
|
e = e.concat(me);
|
|
200
199
|
}
|
|
201
|
-
const
|
|
202
|
-
return e = e.concat(". ").concat(
|
|
200
|
+
const a = u("COACH_AVAILABLE_NUMBER_OF_PLACES", this._language.current, [this.freePlacesByType.seats, this.freePlacesByType.bicycles]);
|
|
201
|
+
return e = e.concat(". ").concat(a), e;
|
|
203
202
|
}
|
|
204
203
|
_getAriaDescriptionCoachServices() {
|
|
205
|
-
let
|
|
206
|
-
return this.propertyIds.length && (
|
|
204
|
+
let t = null;
|
|
205
|
+
return this.propertyIds.length && (t = u("COACH_AVAILABLE_SERVICES", this._language.current) + ": ", t += this.propertyIds.map((e) => u(e, this._language.current)).join()), t;
|
|
207
206
|
}
|
|
208
207
|
/**
|
|
209
208
|
* emits the index of the coach array for the main navigation.
|
|
210
209
|
* @param coachIndex
|
|
211
210
|
* @private
|
|
212
211
|
*/
|
|
213
|
-
_selectNavCoach(
|
|
212
|
+
_selectNavCoach(t) {
|
|
214
213
|
this.driverArea || this.dispatchEvent(new CustomEvent("selectcoach", {
|
|
215
214
|
bubbles: !0,
|
|
216
215
|
composed: !0,
|
|
217
|
-
detail:
|
|
216
|
+
detail: t
|
|
218
217
|
}));
|
|
219
218
|
}
|
|
220
219
|
_getCoachServiceClassNumber() {
|
|
221
220
|
return this.travelClass?.includes("FIRST") ? 1 : this.travelClass?.includes("SECOND") ? 2 : null;
|
|
222
221
|
}
|
|
223
222
|
}, m = new WeakMap(), p = new WeakMap(), f = new WeakMap(), y = new WeakMap(), x = new WeakMap(), I = new WeakMap(), C = new WeakMap(), k = new WeakMap(), A = new WeakMap(), S = new WeakMap(), B = new WeakMap(), E = new WeakMap(), h = i, (() => {
|
|
224
|
-
const
|
|
225
|
-
T = [_(), d({ attribute: "coach-id" })], O = [d({ attribute: "property-ids", type: Array })],
|
|
226
|
-
e.coachId =
|
|
227
|
-
} }, metadata:
|
|
228
|
-
e.propertyIds =
|
|
229
|
-
} }, metadata:
|
|
230
|
-
e.selected =
|
|
231
|
-
} }, metadata:
|
|
232
|
-
e.focused =
|
|
233
|
-
} }, metadata:
|
|
234
|
-
e.index =
|
|
235
|
-
} }, metadata:
|
|
236
|
-
e.freePlacesByType =
|
|
237
|
-
} }, metadata:
|
|
238
|
-
e.travelClass =
|
|
239
|
-
} }, metadata:
|
|
240
|
-
e.driverArea =
|
|
241
|
-
} }, metadata:
|
|
242
|
-
e.first =
|
|
243
|
-
} }, metadata:
|
|
244
|
-
e.last =
|
|
245
|
-
} }, metadata:
|
|
246
|
-
e.disable =
|
|
247
|
-
} }, metadata:
|
|
248
|
-
e.vertical =
|
|
249
|
-
} }, metadata:
|
|
223
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
|
|
224
|
+
T = [_(), d({ attribute: "coach-id" })], O = [d({ attribute: "property-ids", type: Array })], R = [_(), d({ type: Boolean })], j = [_(), d({ type: Boolean })], F = [_(), d({ type: Number })], M = [d({ attribute: "free-places-by-type", type: Object })], X = [d({ attribute: "travel-class", type: Array })], W = [_(), d({ attribute: "driver-area", type: Boolean })], te = [_(), d({ type: Boolean })], re = [_(), d({ type: Boolean })], ne = [_(), d({ attribute: "disable", type: Boolean })], be = [_(), d({ type: Boolean, reflect: !0, useDefault: !0 })], v(i, null, T, { kind: "accessor", name: "coachId", static: !1, private: !1, access: { has: (e) => "coachId" in e, get: (e) => e.coachId, set: (e, a) => {
|
|
225
|
+
e.coachId = a;
|
|
226
|
+
} }, metadata: t }, N, $), v(i, null, O, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (e) => "propertyIds" in e, get: (e) => e.propertyIds, set: (e, a) => {
|
|
227
|
+
e.propertyIds = a;
|
|
228
|
+
} }, metadata: t }, P, D), v(i, null, R, { kind: "accessor", name: "selected", static: !1, private: !1, access: { has: (e) => "selected" in e, get: (e) => e.selected, set: (e, a) => {
|
|
229
|
+
e.selected = a;
|
|
230
|
+
} }, metadata: t }, L, V), v(i, null, j, { kind: "accessor", name: "focused", static: !1, private: !1, access: { has: (e) => "focused" in e, get: (e) => e.focused, set: (e, a) => {
|
|
231
|
+
e.focused = a;
|
|
232
|
+
} }, metadata: t }, H, U), v(i, null, F, { kind: "accessor", name: "index", static: !1, private: !1, access: { has: (e) => "index" in e, get: (e) => e.index, set: (e, a) => {
|
|
233
|
+
e.index = a;
|
|
234
|
+
} }, metadata: t }, G, K), v(i, null, M, { kind: "accessor", name: "freePlacesByType", static: !1, private: !1, access: { has: (e) => "freePlacesByType" in e, get: (e) => e.freePlacesByType, set: (e, a) => {
|
|
235
|
+
e.freePlacesByType = a;
|
|
236
|
+
} }, metadata: t }, q, Y), v(i, null, X, { kind: "accessor", name: "travelClass", static: !1, private: !1, access: { has: (e) => "travelClass" in e, get: (e) => e.travelClass, set: (e, a) => {
|
|
237
|
+
e.travelClass = a;
|
|
238
|
+
} }, metadata: t }, J, Q), v(i, null, W, { kind: "accessor", name: "driverArea", static: !1, private: !1, access: { has: (e) => "driverArea" in e, get: (e) => e.driverArea, set: (e, a) => {
|
|
239
|
+
e.driverArea = a;
|
|
240
|
+
} }, metadata: t }, Z, ee), v(i, null, te, { kind: "accessor", name: "first", static: !1, private: !1, access: { has: (e) => "first" in e, get: (e) => e.first, set: (e, a) => {
|
|
241
|
+
e.first = a;
|
|
242
|
+
} }, metadata: t }, ae, se), v(i, null, re, { kind: "accessor", name: "last", static: !1, private: !1, access: { has: (e) => "last" in e, get: (e) => e.last, set: (e, a) => {
|
|
243
|
+
e.last = a;
|
|
244
|
+
} }, metadata: t }, ie, oe), v(i, null, ne, { kind: "accessor", name: "disable", static: !1, private: !1, access: { has: (e) => "disable" in e, get: (e) => e.disable, set: (e, a) => {
|
|
245
|
+
e.disable = a;
|
|
246
|
+
} }, metadata: t }, ce, le), v(i, null, be, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (e) => "vertical" in e, get: (e) => e.vertical, set: (e, a) => {
|
|
247
|
+
e.vertical = a;
|
|
248
|
+
} }, metadata: t }, ve, de), v(null, n = { value: h }, o, { kind: "class", name: h.name, metadata: t }, null, c), h = n.value, t && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
250
249
|
})(), i.styles = Ie, i.events = {
|
|
251
250
|
selectcoach: "selectcoach",
|
|
252
251
|
focuscoach: "focuscoach"
|
|
253
252
|
}, r(h, c), h;
|
|
254
253
|
})();
|
|
255
254
|
export {
|
|
256
|
-
|
|
255
|
+
De as SbbSeatReservationNavigationCoachElement
|
|
257
256
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-navigation-services.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,gCAAgC,CAAC;AAIxC;;;GAGG;AACH,qBAEM,2CAA4C,SAAQ,UAAU;IAClE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3C,0DAA0D;IAC1D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;
|
|
1
|
+
{"version":3,"file":"seat-reservation-navigation-services.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,gCAAgC,CAAC;AAIxC;;;GAGG;AACH,qBAEM,2CAA4C,SAAQ,UAAU;IAClE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3C,0DAA0D;IAC1D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;IAyB3C,OAAO,CAAC,2BAA2B;CAcpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0CAA0C,EAAE,2CAA2C,CAAC;KACzF;CACF"}
|