@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,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./toDate-p-Tpkb7t.js";
|
|
2
2
|
import { r as t, t as n } from "./differenceInMinutes-Dr9gRqtu.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { SbbElement as r, defaultDateAdapter as i, forceType as a, screenReaderOnlyStyles as o } from "@sbb-esta/lyne-elements/core.js";
|
|
4
|
+
import { html as s, nothing as c, unsafeCSS as l } from "lit";
|
|
5
|
+
import { __esDecorate as u, __runInitializers as d } from "tslib";
|
|
6
6
|
import { property as f } from "lit/decorators.js";
|
|
7
7
|
import { isRideLeg as p, removeTimezoneFromISOTimeString as m } from "./core.js";
|
|
8
8
|
import { styleMap as h } from "lit/directives/style-map.js";
|
|
@@ -18,17 +18,17 @@ function _(t, n) {
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/elements-experimental/pearl-chain/pearl-chain.scss?inline
|
|
20
20
|
var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-chain-spacing-small: .125rem;--sbb-pearl-chain-color: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-leg-width: 100%;display:block;--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: light-dark( var(--sbb-color-metal), var(--sbb-color-granite) );--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem}.sbb-pearl-chain{position:relative;display:flex;justify-content:space-between;flex-wrap:nowrap;color:var(--sbb-pearl-chain-color);width:100%;padding-block:calc((var(--sbb-pearl-chain-bullet-size-start-end) - var(--sbb-pearl-chain-height)) / 2);padding-inline-end:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain__bullet{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__bullet{content:\"\";position:absolute;background-color:currentcolor;inset-block-start:0;z-index:3}.sbb-pearl-chain__bullet:first-of-type{inset-inline-start:0}.sbb-pearl-chain__bullet:last-of-type{inset-inline-end:0}.sbb-pearl-chain__leg{flex-shrink:0;flex-grow:0;position:relative;height:var(--sbb-pearl-chain-height);border-inline-end:var(--sbb-pearl-chain-spacing-small) solid Canvas;background-color:currentcolor;width:var(--sbb-pearl-chain-leg-width);display:flex;align-items:center}@media(forced-colors:active){.sbb-pearl-chain__leg{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type{border:none}.sbb-pearl-chain__stop{position:relative;z-index:2;background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain__bullet--future{background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__bullet--future{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{color:var(--sbb-pearl-chain-color-past);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{background-color:GrayText!important}}.sbb-pearl-chain__bullet--progress{background:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__bullet--progress{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:var(--sbb-pearl-chain-color-disruption);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{--sbb-pearl-chain-bullet-color: Highlight}}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:Highlight;background:Highlight}}.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__leg--disruption:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__leg--skipped{color:var(--sbb-pearl-chain-color-disruption)}.sbb-pearl-chain__leg--skipped:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--skipped:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__stop--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain__stop--departure-skipped:before{content:\"\";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain__stop--departure-skipped:before{background:Highlight}}.sbb-pearl-chain--arrival-skipped,.sbb-pearl-chain--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{content:\"\";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{background:Highlight}}.sbb-pearl-chain__leg:after{content:\"\";position:absolute;inset-block:0;inset-inline-start:0;background-color:currentcolor;border-radius:var(--sbb-pearl-chain-height);z-index:1}@media(forced-colors:active){.sbb-pearl-chain__leg:after{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg:after{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type:after{inset-inline-end:calc(-1 * var(--sbb-pearl-chain-height))}.sbb-pearl-chain__leg--progress:after{background-color:var(--sbb-pearl-chain-color-past);width:var(--sbb-pearl-chain-leg-status)}.sbb-pearl-chain__position{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-position-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb,var(--sbb-pearl-chain-position-color) 20%,transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain__position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;position:absolute;inset-block-start:-200%;z-index:4;inset-inline-start:var(--sbb-pearl-chain-status-position)}.sbb-pearl-chain__position--no-animation{animation:unset}", y = (() => {
|
|
21
|
-
let e =
|
|
21
|
+
let e = r, y = [], b, x = [], S = [], C, w = [], T = [], E;
|
|
22
22
|
return class extends e {
|
|
23
23
|
constructor() {
|
|
24
|
-
super(...arguments), this.#e = (
|
|
24
|
+
super(...arguments), this.#e = (d(this, y), d(this, x, [])), this.#t = (d(this, S), d(this, w, !1)), this._now = (d(this, T), null);
|
|
25
25
|
}
|
|
26
26
|
static {
|
|
27
27
|
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
28
|
-
b = [f({ type: Array })], C = [
|
|
28
|
+
b = [f({ type: Array })], C = [a(), f({
|
|
29
29
|
attribute: "disable-animation",
|
|
30
30
|
type: Boolean
|
|
31
|
-
})], E = [f()],
|
|
31
|
+
})], E = [f()], u(this, null, b, {
|
|
32
32
|
kind: "accessor",
|
|
33
33
|
name: "legs",
|
|
34
34
|
static: !1,
|
|
@@ -41,7 +41,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
metadata: t
|
|
44
|
-
}, x, S),
|
|
44
|
+
}, x, S), u(this, null, C, {
|
|
45
45
|
kind: "accessor",
|
|
46
46
|
name: "disableAnimation",
|
|
47
47
|
static: !1,
|
|
@@ -54,7 +54,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
metadata: t
|
|
57
|
-
}, w, T),
|
|
57
|
+
}, w, T), u(this, null, E, {
|
|
58
58
|
kind: "setter",
|
|
59
59
|
name: "now",
|
|
60
60
|
static: !1,
|
|
@@ -77,7 +77,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
77
77
|
this.elementName = "sbb-pearl-chain";
|
|
78
78
|
}
|
|
79
79
|
static {
|
|
80
|
-
this.styles = [
|
|
80
|
+
this.styles = [o, l(v)];
|
|
81
81
|
}
|
|
82
82
|
#e;
|
|
83
83
|
get legs() {
|
|
@@ -94,7 +94,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
94
94
|
this.#t = e;
|
|
95
95
|
}
|
|
96
96
|
set now(e) {
|
|
97
|
-
this._now =
|
|
97
|
+
this._now = i.getValidDateOrNull(i.deserialize(e));
|
|
98
98
|
}
|
|
99
99
|
get now() {
|
|
100
100
|
return this._now;
|
|
@@ -132,7 +132,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
132
132
|
"--sbb-pearl-chain-status-position": `${r}%`,
|
|
133
133
|
...r >= 50 ? { transform: "translateX(-100%)" } : {}
|
|
134
134
|
}), a = this.disableAnimation ? "sbb-pearl-chain__position--no-animation" : "";
|
|
135
|
-
return
|
|
135
|
+
return s`<span
|
|
136
136
|
style=${h(i())}
|
|
137
137
|
class="sbb-pearl-chain__position ${a}"
|
|
138
138
|
></span>`;
|
|
@@ -144,42 +144,42 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
144
144
|
}, i = t?.length && m(t[t.length - 1].arrival?.time), a = i && {
|
|
145
145
|
time: i,
|
|
146
146
|
delay: t[t.length - 1]?.arrival.delay ?? 0
|
|
147
|
-
}, o = t && t[0]?.serviceJourney?.stopPoints && t[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "",
|
|
147
|
+
}, o = t && t[0]?.serviceJourney?.stopPoints && t[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "", l = (() => {
|
|
148
148
|
let e = t && t[t.length - 1], n = e && e.serviceJourney?.stopPoints;
|
|
149
149
|
return n && n[n.length - 1].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--arrival-skipped" : "";
|
|
150
|
-
})(),
|
|
151
|
-
return this._isAllCancelled(t) ?
|
|
150
|
+
})(), u = t && t[0]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--departure-disruption" : "", d = t && t[t.length - 1]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--arrival-disruption" : "", f = r && a && this._getStatus(e, r, a), g = t && f && !u ? "sbb-pearl-chain__bullet--" + f : "", _ = t && f && !d ? "sbb-pearl-chain__bullet--" + this._getStatus(e, void 0, a) : "";
|
|
151
|
+
return this._isAllCancelled(t) ? s`
|
|
152
152
|
<div class="sbb-pearl-chain">
|
|
153
153
|
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
154
154
|
<div class="sbb-pearl-chain__leg sbb-pearl-chain__leg--disruption"></div>
|
|
155
155
|
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
156
156
|
</div>
|
|
157
|
-
` :
|
|
157
|
+
` : s`
|
|
158
158
|
<div class="sbb-pearl-chain">
|
|
159
159
|
<span
|
|
160
|
-
class="sbb-pearl-chain__bullet ${g} ${o} ${
|
|
160
|
+
class="sbb-pearl-chain__bullet ${g} ${o} ${u}"
|
|
161
161
|
></span>
|
|
162
162
|
${t?.map((n, r) => {
|
|
163
|
-
let { stopPoints: i, serviceAlteration: a } = n?.serviceJourney || {}, o = this._getRelativeDuration(t, n),
|
|
164
|
-
time:
|
|
163
|
+
let { stopPoints: i, serviceAlteration: a } = n?.serviceJourney || {}, o = this._getRelativeDuration(t, n), l = m(n.departure?.time), u = m(n.arrival?.time), d = i && i[i.length - 1]?.stopStatus === "NOT_SERVICED", f = i && i[i.length - 1]?.stopStatus === "PLANNED", p = i && i[0]?.stopStatus === "NOT_SERVICED", g = r > 0 && t[r - 1].serviceJourney.stopPoints, _ = g && g[g.length - 1]?.stopStatus === "NOT_SERVICED", v = d || p && f ? "sbb-pearl-chain__leg--skipped" : "", y = p || _ ? "sbb-pearl-chain__stop--departure-skipped" : "", b = a?.cancelled || a?.partiallyCancelled ? "sbb-pearl-chain__leg--disruption" : "", x = {
|
|
164
|
+
time: l,
|
|
165
165
|
delay: n.departure?.delay ?? 0
|
|
166
166
|
}, S = {
|
|
167
|
-
time:
|
|
167
|
+
time: u,
|
|
168
168
|
delay: n.arrival?.delay ?? 0
|
|
169
169
|
}, C = this._getStatus(e, x, S);
|
|
170
|
-
return
|
|
170
|
+
return s` <div
|
|
171
171
|
class="sbb-pearl-chain__leg ${!b && !v && "sbb-pearl-chain__leg--" + C || ""} ${b} ${v}"
|
|
172
172
|
style=${h({
|
|
173
173
|
"--sbb-pearl-chain-leg-width": `${o}%`,
|
|
174
174
|
...C === "progress" && !b && !v ? { "--sbb-pearl-chain-leg-status": `${this._getProgress(e, x, S)}%` } : {}
|
|
175
175
|
})}
|
|
176
176
|
>
|
|
177
|
-
${r > 0 && r < t.length ?
|
|
178
|
-
${C === "progress" && !b && !v ? this._renderPosition(e, x, S) :
|
|
177
|
+
${r > 0 && r < t.length ? s`<span class="sbb-pearl-chain__stop ${y}"></span>` : c}
|
|
178
|
+
${C === "progress" && !b && !v ? this._renderPosition(e, x, S) : c}
|
|
179
179
|
</div>`;
|
|
180
180
|
})}
|
|
181
181
|
<span
|
|
182
|
-
class="sbb-pearl-chain__bullet ${_} ${
|
|
182
|
+
class="sbb-pearl-chain__bullet ${_} ${l} ${d}"
|
|
183
183
|
></span>
|
|
184
184
|
</div>
|
|
185
185
|
`;
|
package/pearl-chain.js
CHANGED
package/pearl-chain.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain.component-
|
|
1
|
+
import { t as e } from "./pearl-chain.component-DYzhEgWG.js";
|
|
2
2
|
export { e as SbbPearlChainElement };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { SbbElement as e, forceType as t, isArrowKeyOrPageKeysPressed as n } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { isServer as r } from "lit";
|
|
3
|
+
import { __esDecorate as i, __runInitializers as a } from "tslib";
|
|
4
4
|
import { eventOptions as o, property as s, state as c } from "lit/decorators.js";
|
|
5
5
|
import { mapCoachInfosToCoachSelection as l, mapIconToSvg as u, mapPlaceAndCoachToSeatReservationPlaceSelection as ee, mapPlaceInfosToPlaceSelection as te } from "../common/mapper.js";
|
|
6
6
|
//#region src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts
|
|
@@ -37,46 +37,46 @@ var ne = 3, re = [
|
|
|
37
37
|
}), this._detail = e;
|
|
38
38
|
}
|
|
39
39
|
}, m = (() => {
|
|
40
|
-
let m =
|
|
40
|
+
let m = e, h = [], g, _ = [], v = [], y, b = [], x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, ie = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H, U = [], W = [], G, K = [], q = [], J, Y = [], X = [], Z, Q = [], $ = [], ae, oe = [], se = [], ce;
|
|
41
41
|
return class extends m {
|
|
42
42
|
static {
|
|
43
|
-
let
|
|
43
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
|
|
44
44
|
g = [s({
|
|
45
45
|
attribute: "seat-reservations",
|
|
46
46
|
type: Array
|
|
47
47
|
})], y = [s({
|
|
48
48
|
attribute: "travel-direction",
|
|
49
49
|
type: String
|
|
50
|
-
})], S = [
|
|
50
|
+
})], S = [t(), s({
|
|
51
51
|
attribute: "has-navigation",
|
|
52
52
|
type: Boolean
|
|
53
|
-
})], T = [
|
|
53
|
+
})], T = [t(), s({
|
|
54
54
|
attribute: "align-vertical",
|
|
55
55
|
type: Boolean,
|
|
56
56
|
reflect: !0,
|
|
57
57
|
useDefault: !0
|
|
58
|
-
})], O = [
|
|
58
|
+
})], O = [t(), s({
|
|
59
59
|
attribute: "base-grid-size",
|
|
60
60
|
type: Number
|
|
61
|
-
})], j = [
|
|
61
|
+
})], j = [t(), s({
|
|
62
62
|
attribute: "height",
|
|
63
63
|
type: Number
|
|
64
|
-
})], N = [
|
|
64
|
+
})], N = [t(), s({
|
|
65
65
|
attribute: "max-seat-reservations",
|
|
66
66
|
type: Number
|
|
67
|
-
})], I = [
|
|
67
|
+
})], I = [t(), s({
|
|
68
68
|
attribute: "max-bicycle-reservations",
|
|
69
69
|
type: Number
|
|
70
|
-
})], z = [
|
|
70
|
+
})], z = [t(), s({
|
|
71
71
|
attribute: "prevent-place-click",
|
|
72
72
|
type: Boolean
|
|
73
|
-
})], H = [
|
|
73
|
+
})], H = [t(), s({
|
|
74
74
|
attribute: "preselect-coach-index",
|
|
75
75
|
type: Number
|
|
76
|
-
})], G = [
|
|
76
|
+
})], G = [t(), s({
|
|
77
77
|
attribute: "show-title-info",
|
|
78
78
|
type: Boolean
|
|
79
|
-
})], J = [c()], Z = [c()], ae = [c()], ce = [o({ passive: !0 })],
|
|
79
|
+
})], J = [c()], Z = [c()], ae = [c()], ce = [o({ passive: !0 })], i(this, null, g, {
|
|
80
80
|
kind: "accessor",
|
|
81
81
|
name: "seatReservations",
|
|
82
82
|
static: !1,
|
|
@@ -88,8 +88,8 @@ var ne = 3, re = [
|
|
|
88
88
|
e.seatReservations = t;
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
metadata:
|
|
92
|
-
}, _, v),
|
|
91
|
+
metadata: e
|
|
92
|
+
}, _, v), i(this, null, y, {
|
|
93
93
|
kind: "accessor",
|
|
94
94
|
name: "travelDirection",
|
|
95
95
|
static: !1,
|
|
@@ -101,8 +101,8 @@ var ne = 3, re = [
|
|
|
101
101
|
e.travelDirection = t;
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
metadata:
|
|
105
|
-
}, b, x),
|
|
104
|
+
metadata: e
|
|
105
|
+
}, b, x), i(this, null, S, {
|
|
106
106
|
kind: "accessor",
|
|
107
107
|
name: "hasNavigation",
|
|
108
108
|
static: !1,
|
|
@@ -114,8 +114,8 @@ var ne = 3, re = [
|
|
|
114
114
|
e.hasNavigation = t;
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
|
-
metadata:
|
|
118
|
-
}, C, w),
|
|
117
|
+
metadata: e
|
|
118
|
+
}, C, w), i(this, null, T, {
|
|
119
119
|
kind: "accessor",
|
|
120
120
|
name: "alignVertical",
|
|
121
121
|
static: !1,
|
|
@@ -127,8 +127,8 @@ var ne = 3, re = [
|
|
|
127
127
|
e.alignVertical = t;
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
|
-
metadata:
|
|
131
|
-
}, E, D),
|
|
130
|
+
metadata: e
|
|
131
|
+
}, E, D), i(this, null, O, {
|
|
132
132
|
kind: "accessor",
|
|
133
133
|
name: "baseGridSize",
|
|
134
134
|
static: !1,
|
|
@@ -140,8 +140,8 @@ var ne = 3, re = [
|
|
|
140
140
|
e.baseGridSize = t;
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
metadata:
|
|
144
|
-
}, k, A),
|
|
143
|
+
metadata: e
|
|
144
|
+
}, k, A), i(this, null, j, {
|
|
145
145
|
kind: "accessor",
|
|
146
146
|
name: "height",
|
|
147
147
|
static: !1,
|
|
@@ -153,8 +153,8 @@ var ne = 3, re = [
|
|
|
153
153
|
e.height = t;
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
metadata:
|
|
157
|
-
}, ie, M),
|
|
156
|
+
metadata: e
|
|
157
|
+
}, ie, M), i(this, null, N, {
|
|
158
158
|
kind: "accessor",
|
|
159
159
|
name: "maxSeatReservations",
|
|
160
160
|
static: !1,
|
|
@@ -166,8 +166,8 @@ var ne = 3, re = [
|
|
|
166
166
|
e.maxSeatReservations = t;
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
metadata:
|
|
170
|
-
}, P, F),
|
|
169
|
+
metadata: e
|
|
170
|
+
}, P, F), i(this, null, I, {
|
|
171
171
|
kind: "accessor",
|
|
172
172
|
name: "maxBicycleReservations",
|
|
173
173
|
static: !1,
|
|
@@ -179,8 +179,8 @@ var ne = 3, re = [
|
|
|
179
179
|
e.maxBicycleReservations = t;
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
metadata:
|
|
183
|
-
}, L, R),
|
|
182
|
+
metadata: e
|
|
183
|
+
}, L, R), i(this, null, z, {
|
|
184
184
|
kind: "accessor",
|
|
185
185
|
name: "preventPlaceClick",
|
|
186
186
|
static: !1,
|
|
@@ -192,8 +192,8 @@ var ne = 3, re = [
|
|
|
192
192
|
e.preventPlaceClick = t;
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
metadata:
|
|
196
|
-
}, B, V),
|
|
195
|
+
metadata: e
|
|
196
|
+
}, B, V), i(this, null, H, {
|
|
197
197
|
kind: "accessor",
|
|
198
198
|
name: "preselectCoachIndex",
|
|
199
199
|
static: !1,
|
|
@@ -205,8 +205,8 @@ var ne = 3, re = [
|
|
|
205
205
|
e.preselectCoachIndex = t;
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
|
-
metadata:
|
|
209
|
-
}, U, W),
|
|
208
|
+
metadata: e
|
|
209
|
+
}, U, W), i(this, null, G, {
|
|
210
210
|
kind: "accessor",
|
|
211
211
|
name: "showTitleInfo",
|
|
212
212
|
static: !1,
|
|
@@ -218,8 +218,8 @@ var ne = 3, re = [
|
|
|
218
218
|
e.showTitleInfo = t;
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
|
-
metadata:
|
|
222
|
-
}, K, q),
|
|
221
|
+
metadata: e
|
|
222
|
+
}, K, q), i(this, null, J, {
|
|
223
223
|
kind: "accessor",
|
|
224
224
|
name: "selectedCoachIndex",
|
|
225
225
|
static: !1,
|
|
@@ -231,8 +231,8 @@ var ne = 3, re = [
|
|
|
231
231
|
e.selectedCoachIndex = t;
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
|
-
metadata:
|
|
235
|
-
}, Y, X),
|
|
234
|
+
metadata: e
|
|
235
|
+
}, Y, X), i(this, null, Z, {
|
|
236
236
|
kind: "accessor",
|
|
237
237
|
name: "focusedCoachIndex",
|
|
238
238
|
static: !1,
|
|
@@ -244,8 +244,8 @@ var ne = 3, re = [
|
|
|
244
244
|
e.focusedCoachIndex = t;
|
|
245
245
|
}
|
|
246
246
|
},
|
|
247
|
-
metadata:
|
|
248
|
-
}, Q, $),
|
|
247
|
+
metadata: e
|
|
248
|
+
}, Q, $), i(this, null, ae, {
|
|
249
249
|
kind: "accessor",
|
|
250
250
|
name: "hoveredCoachIndex",
|
|
251
251
|
static: !1,
|
|
@@ -257,8 +257,8 @@ var ne = 3, re = [
|
|
|
257
257
|
e.hoveredCoachIndex = t;
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
|
-
metadata:
|
|
261
|
-
}, oe, se),
|
|
260
|
+
metadata: e
|
|
261
|
+
}, oe, se), i(this, null, ce, {
|
|
262
262
|
kind: "method",
|
|
263
263
|
name: "coachAreaScrollend",
|
|
264
264
|
static: !1,
|
|
@@ -267,12 +267,12 @@ var ne = 3, re = [
|
|
|
267
267
|
has: (e) => "coachAreaScrollend" in e,
|
|
268
268
|
get: (e) => e.coachAreaScrollend
|
|
269
269
|
},
|
|
270
|
-
metadata:
|
|
271
|
-
}, null, h),
|
|
270
|
+
metadata: e
|
|
271
|
+
}, null, h), e && Object.defineProperty(this, Symbol.metadata, {
|
|
272
272
|
enumerable: !0,
|
|
273
273
|
configurable: !0,
|
|
274
274
|
writable: !0,
|
|
275
|
-
value:
|
|
275
|
+
value: e
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
static {
|
|
@@ -380,7 +380,7 @@ var ne = 3, re = [
|
|
|
380
380
|
this.#p = e;
|
|
381
381
|
}
|
|
382
382
|
constructor() {
|
|
383
|
-
super(), this.#e = (
|
|
383
|
+
super(), this.#e = (a(this, h), a(this, _, null)), this.#t = (a(this, v), a(this, b, "NONE")), this.#n = (a(this, x), a(this, C, !0)), this.#r = (a(this, w), a(this, E, !1)), this.#i = (a(this, D), a(this, k, 16)), this.#a = (a(this, A), a(this, ie, null)), this.#o = (a(this, M), a(this, P, -1)), this.#s = (a(this, F), a(this, L, -1)), this.#c = (a(this, R), a(this, B, !1)), this.#l = (a(this, V), a(this, U, -1)), this.#u = (a(this, W), a(this, K, !1)), this.#d = (a(this, q), a(this, Y, -1)), this.#f = (a(this, X), a(this, Q, -1)), this.#p = (a(this, $), a(this, oe, -1)), this.coachBorderPadding = (a(this, se), 6), this.gapBetweenCoaches = 4, this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize, this.gapBetweenCoachDecks = 48, this.coachNavButtonDim = 0, this.globalAreaIconDim = {
|
|
384
384
|
w: 2,
|
|
385
385
|
h: 2
|
|
386
386
|
}, this.globalAreaIconPadding = .8, this.coachItemDetailsElements = [], this.currScrollDirection = d.right, this.maxCalcCoachesWidth = 0, this.scrollCoachesAreaWidth = 0, this.scrollNavigationAreaDim = 0, this.triggerCoachPositionsCollection = [], this.navigationScrollArea = null, this.coachScrollArea = null, this.currSelectedPlace = null, this.currSelectedPlaceElementId = null, this.currSelectedCoachIndex = -1, this.currSelectedDeckIndex = 0, this.preventCoachScrollByPlaceClick = !1, this.selectedSeatReservationPlaces = {
|
|
@@ -471,42 +471,42 @@ var ne = 3, re = [
|
|
|
471
471
|
this._handleTabKeyNavigation(e, "navigation", t);
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
|
-
|
|
474
|
+
n(e) && this.keyboardSeatmapEventHandling(e);
|
|
475
475
|
}
|
|
476
476
|
_handleTabKeyNavigation(e, t, n) {
|
|
477
477
|
let r = e.key, i = e.shiftKey;
|
|
478
478
|
r === this.keyboardNavigationEvents.Tab && (t == "navigation" ? (n == this.currSelectedCoachIndex ? !this.currSelectedPlace || !i || this.coachItemDetailsElements[n].isDriverArea || this.focusedCoachIndex == -1 ? this.focusedCoachIndex = n : i && this.currSelectedPlace && (this.focusedCoachIndex = -1, this.focusPlaceElement(this.currSelectedPlace)) : this.focusedCoachIndex = n, this._scrollToSelectedNavigationButton(n)) : t == "seatmap" && (e.preventDefault(), i ? this._navigateCoachNavigationByKeyboard("PREV_TAB") : this._navigateCoachNavigationByKeyboard("NEXT_TAB")));
|
|
479
479
|
}
|
|
480
480
|
keyboardSeatmapEventHandling(e) {
|
|
481
|
-
let t = e.key === this.keyboardNavigationEvents.Tab,
|
|
482
|
-
if (!this.hasNavigation && this.currSelectedCoachIndex === 0 &&
|
|
483
|
-
let
|
|
484
|
-
if (this.preventCoachScrollByPlaceClick = !1, !this.hasSeatReservationNativeFocus && (t ||
|
|
481
|
+
let t = e.key === this.keyboardNavigationEvents.Tab, r = e.shiftKey && t;
|
|
482
|
+
if (!this.hasNavigation && this.currSelectedCoachIndex === 0 && r || this.currSelectedCoachIndex === this.coachItemDetailsElements.length - 1 && t) return;
|
|
483
|
+
let i = e.key;
|
|
484
|
+
if (this.preventCoachScrollByPlaceClick = !1, !this.hasSeatReservationNativeFocus && (t || r) && (this.hasSeatReservationNativeFocus = !0), t) {
|
|
485
485
|
this._handleTabKeyNavigation(e, "seatmap");
|
|
486
486
|
return;
|
|
487
487
|
}
|
|
488
|
-
if (this.currSelectedCoachIndex !== -1 &&
|
|
488
|
+
if (this.currSelectedCoachIndex !== -1 && n(e)) switch (e.preventDefault(), i) {
|
|
489
489
|
case this.keyboardNavigationEvents.ArrowLeft:
|
|
490
490
|
{
|
|
491
|
-
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowDown :
|
|
491
|
+
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowDown : i;
|
|
492
492
|
this._navigateToPlaceByKeyboard(e);
|
|
493
493
|
}
|
|
494
494
|
break;
|
|
495
495
|
case this.keyboardNavigationEvents.ArrowRight:
|
|
496
496
|
{
|
|
497
|
-
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowUp :
|
|
497
|
+
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowUp : i;
|
|
498
498
|
this._navigateToPlaceByKeyboard(e);
|
|
499
499
|
}
|
|
500
500
|
break;
|
|
501
501
|
case this.keyboardNavigationEvents.ArrowUp:
|
|
502
502
|
{
|
|
503
|
-
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowLeft :
|
|
503
|
+
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowLeft : i;
|
|
504
504
|
this._navigateToPlaceByKeyboard(e);
|
|
505
505
|
}
|
|
506
506
|
break;
|
|
507
507
|
case this.keyboardNavigationEvents.ArrowDown:
|
|
508
508
|
{
|
|
509
|
-
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowRight :
|
|
509
|
+
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowRight : i;
|
|
510
510
|
this._navigateToPlaceByKeyboard(e);
|
|
511
511
|
}
|
|
512
512
|
break;
|
|
@@ -764,7 +764,7 @@ var ne = 3, re = [
|
|
|
764
764
|
this.currSelectedPlaceElementId = e ? this.getPlaceElementId(this.currSelectedDeckIndex, this.currSelectedCoachIndex, e.number) : null;
|
|
765
765
|
}
|
|
766
766
|
_determineBaseFontSize() {
|
|
767
|
-
if (!
|
|
767
|
+
if (!r) {
|
|
768
768
|
let e = 1 / parseInt(window.getComputedStyle(document.body).fontSize, 10);
|
|
769
769
|
this.style?.setProperty("--sbb-seat-reservation-one-px-rem", `${e + "rem"}`);
|
|
770
770
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-area.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-area.component-B8HJ-Or8.js";
|
|
2
2
|
export { e as SbbSeatReservationAreaElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-graphic.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-graphic.component-Ddpuv-Aw.js";
|
|
2
2
|
export { e as SbbSeatReservationGraphicElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../seat-reservation-navigation-coach.component-
|
|
1
|
+
import { n as e, t } from "../../seat-reservation-navigation-coach.component-DMKlwxPa.js";
|
|
2
2
|
export { t as SbbSeatReservationNavigationCoachElement, e as SbbSelectCoachEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-navigation-services.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-navigation-services.component-2os7VI7i.js";
|
|
2
2
|
export { e as SbbSeatReservationNavigationServicesElement };
|
package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../seat-reservation-place-control.component-
|
|
1
|
+
import { n as e, t } from "../../seat-reservation-place-control.component-CvGYSTnc.js";
|
|
2
2
|
export { t as SbbPlaceSelectionEvent, e as SbbSeatReservationPlaceControlElement };
|
package/{seat-reservation-area.component-BcmwKJSK.js → seat-reservation-area.component-B8HJ-Or8.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { SbbElement as e, forceType as t } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { __esDecorate as i, __runInitializers as a } from "tslib";
|
|
4
4
|
import { property as o } from "lit/decorators.js";
|
|
5
5
|
//#region src/elements-experimental/seat-reservation/seat-reservation-area/seat-reservation-area.scss?inline
|
|
6
6
|
var s = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width-4x);--sbb-seat-reservation-area-rotation: 0;--sbb-seat-reservation-area-z-index: 0;display:flex;justify-content:center;align-items:center;height:calc(var(--sbb-seat-reservation-area-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(var(--sbb-seat-reservation-area-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border:var(--sbb-border-width-1x) solid light-dark(var(--sbb-color-graphite),var(--sbb-color-granite));border-radius:var(--sbb-seat-reservation-area-border-radius);position:absolute;z-index:var(--sbb-seat-reservation-area-z-index);inset-block-start:calc(var(--sbb-seat-reservation-area-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-area-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));rotate:calc(var(--sbb-seat-reservation-area-rotation) * 1deg);line-height:normal;background-color:var(--sbb-background-color-2)}:host([background=dark]){background-color:var(--sbb-color-milk);background-color:light-dark(var(--sbb-color-milk),var(--sbb-color-iron))}:host([mounting=upper-border]){border-block-start-width:0;border-radius:0 0 var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius)}:host([mounting=lower-border]){border-block-end-width:0;border-radius:var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius) 0 0}:host([mounting=upper-to-lower-border]){border-block-start:none;border-block-end:none;border-radius:0}:host(.sbb-seat-reservation-area--cursor-pointer){cursor:var(--sbb-cursor-pointer)}", c = (() => {
|
|
7
|
-
let c =
|
|
7
|
+
let c = e, l, u = [], d = [], f, p = [], m = [];
|
|
8
8
|
return class extends c {
|
|
9
9
|
static {
|
|
10
|
-
let
|
|
11
|
-
l = [
|
|
10
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
11
|
+
l = [t(), o({ reflect: !0 })], f = [t(), o({ reflect: !0 })], i(this, null, l, {
|
|
12
12
|
kind: "accessor",
|
|
13
13
|
name: "mounting",
|
|
14
14
|
static: !1,
|
|
@@ -20,8 +20,8 @@ var s = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
|
|
|
20
20
|
e.mounting = t;
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
metadata:
|
|
24
|
-
}, u, d),
|
|
23
|
+
metadata: e
|
|
24
|
+
}, u, d), i(this, null, f, {
|
|
25
25
|
kind: "accessor",
|
|
26
26
|
name: "background",
|
|
27
27
|
static: !1,
|
|
@@ -33,28 +33,28 @@ var s = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
|
|
|
33
33
|
e.background = t;
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
metadata:
|
|
37
|
-
}, p, m),
|
|
36
|
+
metadata: e
|
|
37
|
+
}, p, m), e && Object.defineProperty(this, Symbol.metadata, {
|
|
38
38
|
enumerable: !0,
|
|
39
39
|
configurable: !0,
|
|
40
40
|
writable: !0,
|
|
41
|
-
value:
|
|
41
|
+
value: e
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.elementName = "sbb-seat-reservation-area";
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
|
-
this.styles = [
|
|
48
|
+
this.styles = [r(s)];
|
|
49
49
|
}
|
|
50
|
-
#e =
|
|
50
|
+
#e = a(this, u, "free");
|
|
51
51
|
get mounting() {
|
|
52
52
|
return this.#e;
|
|
53
53
|
}
|
|
54
54
|
set mounting(e) {
|
|
55
55
|
this.#e = e;
|
|
56
56
|
}
|
|
57
|
-
#t = (
|
|
57
|
+
#t = (a(this, d), a(this, p, "light"));
|
|
58
58
|
get background() {
|
|
59
59
|
return this.#t;
|
|
60
60
|
}
|
|
@@ -62,10 +62,10 @@ var s = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
|
|
|
62
62
|
this.#t = e;
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return
|
|
65
|
+
return n`<slot></slot>`;
|
|
66
66
|
}
|
|
67
67
|
constructor() {
|
|
68
|
-
super(...arguments),
|
|
68
|
+
super(...arguments), a(this, m);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
})();
|