@sbb-esta/lyne-elements-experimental-dev 5.0.0-next.1-dev.1777896783 → 5.0.0-next.1-dev.1777898769
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 +18 -18
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/{autocomplete-grid-cell.component-BFzREPWp.js → autocomplete-grid-cell.component-DAsWZlTn.js} +6 -6
- package/{autocomplete-grid-row.component-BQxCxOI6.js → autocomplete-grid-row.component-VbyYP0U-.js} +7 -7
- package/autocomplete-grid.js +2 -2
- package/autocomplete-grid.pure.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -3
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/autocomplete-grid-cell.component-BF8i4388.js +33 -0
- package/development/{autocomplete-grid-row.component-CY4UDuuj.js → autocomplete-grid-row.component-CBHh50jC.js} +3 -3
- package/development/autocomplete-grid.js +2 -2
- package/development/autocomplete-grid.pure.js +2 -2
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/journey-summary.component-De1ioDRq.js +341 -0
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/{pearl-chain-time.component-f2y8Jebp.js → pearl-chain-time.component-BxVQ1z-Z.js} +3 -7
- package/development/pearl-chain-time.js +1 -1
- package/development/pearl-chain-time.pure.js +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/{pearl-chain-vertical-item.component-DHsk3J8I.js → pearl-chain-vertical-item.component-DJioJtxP.js} +3 -3
- package/development/pearl-chain-vertical-item.js +1 -1
- package/development/pearl-chain-vertical-item.pure.js +1 -1
- package/development/pearl-chain-vertical.component-zSOeIkhh.js +30 -0
- package/development/pearl-chain-vertical.js +1 -1
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/{pearl-chain.component-bTvnaUEj.js → pearl-chain.component-B83OsEx8.js} +3 -7
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -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 +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +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.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/development/{seat-reservation-area.component-DlH14rY-.js → seat-reservation-area.component-CMqjbUtV.js} +3 -3
- package/development/{seat-reservation-graphic.component-B771YtOf.js → seat-reservation-graphic.component-C2r57590.js} +3 -3
- package/development/{seat-reservation-navigation-coach.component-CnA9MEBr.js → seat-reservation-navigation-coach.component-BwLbiHCG.js} +3 -7
- package/development/{seat-reservation-navigation-services.component-CLho6RnU.js → seat-reservation-navigation-services.component-Do8JLJh3.js} +3 -7
- package/development/{seat-reservation-place-control.component-BEeaDOS6.js → seat-reservation-place-control.component-BfuOGZYq.js} +3 -7
- package/development/{seat-reservation-scoped.component-X-Kq0-w5.js → seat-reservation-scoped.component-D-Mvw-Q3.js} +3 -3
- package/development/seat-reservation.component-B2nJ13F1.js +472 -0
- package/development/seat-reservation.js +7 -7
- package/development/seat-reservation.pure.js +7 -7
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-duration.component-fBla8Kue.js +96 -0
- package/development/timetable-duration.js +1 -1
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/timetable-row.component-C9Y9Rev1.js +732 -0
- package/development/timetable-row.js +1 -1
- package/development/timetable-row.pure.js +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-DZ9M06Nt.js → journey-summary.component-CkDRawn9.js} +50 -54
- 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-DGilJDFx.js → pearl-chain-time.component-D5OCEBJ_.js} +39 -43
- package/pearl-chain-time.js +1 -1
- package/pearl-chain-time.pure.js +1 -1
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/{pearl-chain-vertical-item.component-CO6HUZFL.js → pearl-chain-vertical-item.component-IdquCJMy.js} +28 -28
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-Lx47SlJU.js → pearl-chain-vertical.component-CDOWaup3.js} +6 -6
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-D7Dz_ruc.js → pearl-chain.component-C6lcD7Xl.js} +37 -41
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +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/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/{seat-reservation-area.component-B_T7k-dq.js → seat-reservation-area.component-BcmwKJSK.js} +16 -16
- package/{seat-reservation-graphic.component-BNtFgIVM.js → seat-reservation-graphic.component-C3wc4DKr.js} +26 -26
- package/{seat-reservation-navigation-coach.component-BF2dTeIb.js → seat-reservation-navigation-coach.component-D1SgS8BU.js} +49 -53
- package/{seat-reservation-navigation-services.component-BSeCIGnn.js → seat-reservation-navigation-services.component-CfAQa7pa.js} +26 -30
- package/{seat-reservation-place-control.component-DOEKL6FP.js → seat-reservation-place-control.component-DrzEDW8Z.js} +41 -45
- package/{seat-reservation-scoped.component-CdB7HYzl.js → seat-reservation-scoped.component-BohQUGVW.js} +6 -6
- package/{seat-reservation.component-SoXTIEnc.js → seat-reservation.component-CB2IWgM9.js} +76 -77
- package/seat-reservation.js +7 -7
- package/seat-reservation.pure.js +7 -7
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/{timetable-duration.component-B2Wq8dP0.js → timetable-duration.component-DPRcG1LP.js} +14 -18
- 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-BPH5pFQO.js → timetable-row.component-BqIVlISS.js} +113 -117
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/development/autocomplete-grid-cell.component-Buvsof-Y.js +0 -33
- package/development/journey-summary.component-Ch38LiQx.js +0 -345
- package/development/pearl-chain-vertical.component-Cmc3QXgd.js +0 -30
- package/development/seat-reservation.component-BtAwrvVE.js +0 -473
- package/development/timetable-duration.component-BhIBA6le.js +0 -100
- package/development/timetable-row.component-BjaJFKLW.js +0 -736
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./format-DbUuNYFU.js";
|
|
2
2
|
import { __esDecorate as t, __runInitializers as n } from "tslib";
|
|
3
|
-
import { SbbElement as r, SbbLanguageController as i,
|
|
4
|
-
import { SbbIconElement as
|
|
5
|
-
import { html as
|
|
6
|
-
import { property as
|
|
7
|
-
import { durationToTime as
|
|
3
|
+
import { SbbElement as r, SbbLanguageController as i, defaultDateAdapter as a, forceType as o, i18nArrival as s, i18nClass as c, i18nDeparture as l, i18nDirection as u, i18nFromPlatform as d, i18nMeansOfTransport as f, i18nNew as p, i18nOccupancy as m, i18nRealTimeInfo as h, i18nSupersaver as g, i18nTransferProcedure as _, i18nTransferProcedures as v, i18nTravelhints as y, i18nTripDuration as b, i18nTripQuayChange as x, screenReaderOnlyStyles as S, setOrRemoveAttribute as C } from "@sbb-esta/lyne-elements/core.js";
|
|
4
|
+
import { SbbIconElement as w } from "@sbb-esta/lyne-elements/icon.pure.js";
|
|
5
|
+
import { html as T, nothing as E, unsafeCSS as D } from "lit";
|
|
6
|
+
import { property as O } from "lit/decorators.js";
|
|
7
|
+
import { durationToTime as k, getDepartureArrivalTimeAttribute as ee, isRideLeg as A, removeTimezoneFromISOTimeString as j } from "./core.js";
|
|
8
8
|
import { SbbPearlChainTimeElement as M } from "./pearl-chain-time.pure.js";
|
|
9
|
-
import { SbbCardBadgeElement as N, SbbCardButtonElement as P, SbbCardElement as
|
|
10
|
-
import { SbbTimetableOccupancyElement as
|
|
9
|
+
import { SbbCardBadgeElement as N, SbbCardButtonElement as P, SbbCardElement as F } from "@sbb-esta/lyne-elements/card.pure.js";
|
|
10
|
+
import { SbbTimetableOccupancyElement as I } from "@sbb-esta/lyne-elements/timetable-occupancy.pure.js";
|
|
11
11
|
//#region src/elements-experimental/timetable-row/timetable-row.scss?inline
|
|
12
|
-
var
|
|
12
|
+
var L = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timetable-row-height: 1.5625rem;--sbb-timetable-row-height-header: 1.25rem;--sbb-timetable-row-height-footer: 1rem;--sbb-timetable-row-skeleton-pulse-duration: 1.8s;display:block}:host([disable-animation]){--sbb-timetable-row-skeleton-pulse-duration: 0}.sbb-timetable__row-transport-icon{--sbb-icon-svg-width: 1.25rem;--sbb-icon-svg-height: 1.25rem}.sbb-travel-hints__item{--sbb-icon-svg-height: .875rem}.sbb-timetable__row--quay{margin-inline-end:var(--sbb-spacing-fixed-1x)}.sbb-timetable__row--quay-type{float:left}ul{list-style:none;margin:0;padding:0;font-size:inherit;display:inline-flex}li,.sbb-timetable__row-transport{display:inline-flex;align-self:center}.sbb-timetable__row-transportnumber,.sbb-timetable__row-time{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700;line-height:unset;white-space:nowrap;align-self:center}.sbb-timetable__row{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;flex-direction:column;gap:var(--sbb-timetable-row-gap)}.sbb-timetable__row-header,.sbb-timetable__row-footer{animation:none}.sbb-timetable__row-header{display:flex;gap:var(--sbb-spacing-fixed-2x);align-items:center;line-height:var(--sbb-timetable-row-height-header)}.sbb-timetable__row-details,.sbb-timetable__row-hints{display:inline-flex;gap:var(--sbb-spacing-fixed-1x);align-items:center}.sbb-timetable__row-header p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;align-self:center}.sbb-timetable__row-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--sbb-spacing-fixed-2x);line-height:var(--sbb-timetable-row-height-footer)}.sbb-timetable__row-footer>span{align-self:center}.sbb-timetable__row-footer :only-child{margin-inline-start:auto}.sbb-timetable__row-quay--changed{color:var(--sbb-color-primary)}.sbb-timetable__row-transport-wrapper,.sbb-timetable__row-warning{display:inline-flex}.sbb-loading{pointer-events:none}.sbb-loading__wrapper{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-2x)}.sbb-loading__row{width:100%;border-radius:var(--sbb-border-radius-1x);height:var(--sbb-timetable-row-height)}@media(min-width:64rem){.sbb-loading__row{height:1.75rem}}@media(forced-colors:active){.sbb-loading__row{border:var(--sbb-border-width-1x) solid ButtonBorder!important}}.sbb-loading__row,.sbb-loading__badge{background:var(--sbb-background-color-4);animation:skeleton-pulse var(--sbb-timetable-row-skeleton-pulse-duration) ease-out infinite}.sbb-loading__row:first-of-type{height:var(--sbb-timetable-row-height-header);width:50%}.sbb-loading__row:last-of-type{height:var(--sbb-timetable-row-height-footer)}.sbb-loading__badge{margin-inline:auto calc(var(--sbb-spacing-fixed-3x) * -1);padding-inline-end:var(--sbb-spacing-fixed-6x);border-end-start-radius:var(--sbb-card-badge-border-radius);transform:var(--sbb-card-badge-skew);width:7.1875rem;height:1.25rem}@keyframes skeleton-pulse{0%{background:var(--sbb-background-color-4)}17%{background:var(--sbb-background-color-4)}50%{background:var(--sbb-background-color-3)}67%{background:var(--sbb-background-color-3)}to{background:var(--sbb-background-color-4)}}", R = (e, t) => T`<span class="sbb-timetable__row-transport">
|
|
13
13
|
<sbb-icon name=${e}></sbb-icon>
|
|
14
14
|
<span class="sbb-screen-reader-only">${t}</span>
|
|
15
|
-
</span>`,
|
|
15
|
+
</span>`, z = (e, t) => {
|
|
16
16
|
let n = [
|
|
17
17
|
"M",
|
|
18
18
|
"B",
|
|
19
19
|
"T"
|
|
20
20
|
].includes(e) ? " " : "";
|
|
21
|
-
return
|
|
21
|
+
return T`<span class="sbb-timetable__row-transportnumber">
|
|
22
22
|
${t === null ? e : e + n + t}
|
|
23
23
|
</span>`;
|
|
24
|
-
},
|
|
24
|
+
}, B = (e) => e?.find((e) => e.serviceJourney?.serviceAlteration?.reachableText)?.serviceJourney?.serviceAlteration?.reachableText, V = (e) => e?.find((e) => e.serviceJourney?.serviceAlteration?.delayText)?.serviceJourney?.serviceAlteration?.delayText, H = (e) => e?.find((e) => !!e.serviceJourney?.serviceAlteration?.redirectedText)?.serviceJourney?.serviceAlteration?.redirectedText, U = (e) => e?.find((e) => !!e.serviceJourney?.serviceAlteration?.unplannedStopPointsText)?.serviceJourney?.serviceAlteration?.unplannedStopPointsText, W = (e) => {
|
|
25
25
|
let t = {
|
|
26
26
|
DISTURBANCE: 0,
|
|
27
27
|
INFORMATION: 1,
|
|
@@ -31,7 +31,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
31
31
|
END_MESSAGE: 5
|
|
32
32
|
};
|
|
33
33
|
return [...e]?.sort((e, n) => t[e.cause] - t[n.cause]);
|
|
34
|
-
},
|
|
34
|
+
}, G = (e) => {
|
|
35
35
|
switch (e?.cause) {
|
|
36
36
|
case "DISTURBANCE": return {
|
|
37
37
|
name: "disruption",
|
|
@@ -58,41 +58,41 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
58
58
|
text: e?.broadcastMessages.length ? e?.broadcastMessages[0].title : ""
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
},
|
|
62
|
-
let { summary: n, legs: r } = e || {}, i = r?.filter((e) =>
|
|
61
|
+
}, K = (e, t) => {
|
|
62
|
+
let { summary: n, legs: r } = e || {}, i = r?.filter((e) => A(e)), { tripStatus: a } = n || {};
|
|
63
63
|
if (a?.cancelled || a?.partiallyCancelled) return {
|
|
64
64
|
name: "cancellation",
|
|
65
65
|
text: a?.cancelledText
|
|
66
66
|
};
|
|
67
|
-
if (
|
|
67
|
+
if (B(i)) return {
|
|
68
68
|
name: "missed-connection",
|
|
69
|
-
text:
|
|
69
|
+
text: B(i)
|
|
70
70
|
};
|
|
71
71
|
if (a?.alternative) return {
|
|
72
72
|
name: "alternative",
|
|
73
73
|
text: a.alternativeText
|
|
74
74
|
};
|
|
75
|
-
if (
|
|
75
|
+
if (H(i)) return {
|
|
76
76
|
name: "reroute",
|
|
77
|
-
text:
|
|
77
|
+
text: H(i)
|
|
78
78
|
};
|
|
79
|
-
if (
|
|
79
|
+
if (U(i)) return {
|
|
80
80
|
name: "add-stop",
|
|
81
|
-
text:
|
|
81
|
+
text: U(i)
|
|
82
82
|
};
|
|
83
83
|
if (a?.delayed || a?.delayedUnknown) return {
|
|
84
84
|
name: "delay",
|
|
85
|
-
text:
|
|
85
|
+
text: V(i)
|
|
86
86
|
};
|
|
87
87
|
if (a?.quayChanged) {
|
|
88
88
|
let e = i[0].departure;
|
|
89
89
|
return {
|
|
90
90
|
name: "platform-change",
|
|
91
|
-
text: e.quayChanged ? e.quayChangedText :
|
|
91
|
+
text: e.quayChanged ? e.quayChangedText : x[t]
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
return {};
|
|
95
|
-
},
|
|
95
|
+
}, q = (e) => {
|
|
96
96
|
let t = [
|
|
97
97
|
"RR",
|
|
98
98
|
"RK",
|
|
@@ -112,7 +112,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
112
112
|
name: "RR"
|
|
113
113
|
};
|
|
114
114
|
}, void 0);
|
|
115
|
-
},
|
|
115
|
+
}, J = (e) => {
|
|
116
116
|
let t = [
|
|
117
117
|
"Z",
|
|
118
118
|
"SB",
|
|
@@ -121,38 +121,38 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
121
121
|
"TG"
|
|
122
122
|
];
|
|
123
123
|
return e.filter((t, n) => e.findIndex((e) => e.name === t.name) === n).filter((e) => t.includes(e.name)).sort((e, n) => t.indexOf(e.name) - t.indexOf(n.name));
|
|
124
|
-
},
|
|
125
|
-
let t =
|
|
124
|
+
}, Y = (e) => {
|
|
125
|
+
let t = q(e), n = J(e);
|
|
126
126
|
return t === void 0 ? n : n.length ? n[0].name === "Z" && n[1] ? [
|
|
127
127
|
n[0],
|
|
128
128
|
t,
|
|
129
129
|
n[1]
|
|
130
130
|
].concat(n.slice(2)) : [t, ...n] : [t];
|
|
131
|
-
},
|
|
132
|
-
let
|
|
133
|
-
return class extends
|
|
131
|
+
}, X = (() => {
|
|
132
|
+
let x = r, B = [], V, H = [], U = [], q, J = [], X = [], Z, Q = [], $ = [], te, ne = [], re = [], ie, ae = [], oe = [], se, ce = [], le = [], ue, de = [], fe = [], pe, me = [], he = [], ge, _e = [], ve = [], ye, be = [], xe = [], Se;
|
|
133
|
+
return class extends x {
|
|
134
134
|
constructor() {
|
|
135
|
-
super(...arguments), this.#e = (n(this,
|
|
135
|
+
super(...arguments), this.#e = (n(this, B), n(this, H, null)), this.#t = (n(this, U), n(this, J, null)), this.#n = (n(this, X), n(this, Q, !1)), this.#r = (n(this, $), n(this, ne, null)), this.#i = (n(this, re), n(this, ae, !1)), this.#a = (n(this, oe), n(this, ce, !1)), this.#o = (n(this, le), n(this, de, !1)), this.#s = (n(this, fe), n(this, me, "")), this.#c = (n(this, he), n(this, _e, !1)), this.#l = (n(this, ve), n(this, be, !1)), this._now = (n(this, xe), null), this._language = new i(this);
|
|
136
136
|
}
|
|
137
137
|
static {
|
|
138
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
139
|
-
|
|
138
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
139
|
+
V = [O({ type: Object })], q = [O({ type: Object })], Z = [o(), O({
|
|
140
140
|
attribute: "disable-animation",
|
|
141
141
|
reflect: !0,
|
|
142
142
|
type: Boolean
|
|
143
|
-
})],
|
|
143
|
+
})], te = [O({ type: Object })], ie = [o(), O({
|
|
144
144
|
attribute: "loading-trip",
|
|
145
145
|
type: Boolean
|
|
146
|
-
})],
|
|
146
|
+
})], se = [o(), O({
|
|
147
147
|
attribute: "a11y-footpath",
|
|
148
148
|
type: Boolean
|
|
149
|
-
})],
|
|
149
|
+
})], ue = [o(), O({
|
|
150
150
|
attribute: "loading-price",
|
|
151
151
|
type: Boolean
|
|
152
|
-
})],
|
|
152
|
+
})], pe = [o(), O({ attribute: "card-action-label" })], ge = [o(), O({
|
|
153
153
|
attribute: "accessibility-expanded",
|
|
154
154
|
type: Boolean
|
|
155
|
-
})],
|
|
155
|
+
})], ye = [o(), O({ type: Boolean })], Se = [O()], t(this, null, V, {
|
|
156
156
|
kind: "accessor",
|
|
157
157
|
name: "trip",
|
|
158
158
|
static: !1,
|
|
@@ -165,7 +165,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
metadata: e
|
|
168
|
-
},
|
|
168
|
+
}, H, U), t(this, null, q, {
|
|
169
169
|
kind: "accessor",
|
|
170
170
|
name: "price",
|
|
171
171
|
static: !1,
|
|
@@ -178,7 +178,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
metadata: e
|
|
181
|
-
},
|
|
181
|
+
}, J, X), t(this, null, Z, {
|
|
182
182
|
kind: "accessor",
|
|
183
183
|
name: "disableAnimation",
|
|
184
184
|
static: !1,
|
|
@@ -191,7 +191,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
metadata: e
|
|
194
|
-
},
|
|
194
|
+
}, Q, $), t(this, null, te, {
|
|
195
195
|
kind: "accessor",
|
|
196
196
|
name: "boarding",
|
|
197
197
|
static: !1,
|
|
@@ -204,7 +204,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
metadata: e
|
|
207
|
-
},
|
|
207
|
+
}, ne, re), t(this, null, ie, {
|
|
208
208
|
kind: "accessor",
|
|
209
209
|
name: "loadingTrip",
|
|
210
210
|
static: !1,
|
|
@@ -217,7 +217,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
metadata: e
|
|
220
|
-
},
|
|
220
|
+
}, ae, oe), t(this, null, se, {
|
|
221
221
|
kind: "accessor",
|
|
222
222
|
name: "a11yFootpath",
|
|
223
223
|
static: !1,
|
|
@@ -230,7 +230,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
metadata: e
|
|
233
|
-
},
|
|
233
|
+
}, ce, le), t(this, null, ue, {
|
|
234
234
|
kind: "accessor",
|
|
235
235
|
name: "loadingPrice",
|
|
236
236
|
static: !1,
|
|
@@ -243,7 +243,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
metadata: e
|
|
246
|
-
},
|
|
246
|
+
}, de, fe), t(this, null, pe, {
|
|
247
247
|
kind: "accessor",
|
|
248
248
|
name: "cardActionLabel",
|
|
249
249
|
static: !1,
|
|
@@ -256,7 +256,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
metadata: e
|
|
259
|
-
},
|
|
259
|
+
}, me, he), t(this, null, ge, {
|
|
260
260
|
kind: "accessor",
|
|
261
261
|
name: "accessibilityExpanded",
|
|
262
262
|
static: !1,
|
|
@@ -269,7 +269,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
271
|
metadata: e
|
|
272
|
-
},
|
|
272
|
+
}, _e, ve), t(this, null, ye, {
|
|
273
273
|
kind: "accessor",
|
|
274
274
|
name: "active",
|
|
275
275
|
static: !1,
|
|
@@ -282,7 +282,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
metadata: e
|
|
285
|
-
},
|
|
285
|
+
}, be, xe), t(this, null, Se, {
|
|
286
286
|
kind: "setter",
|
|
287
287
|
name: "now",
|
|
288
288
|
static: !1,
|
|
@@ -294,7 +294,7 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
metadata: e
|
|
297
|
-
}, null,
|
|
297
|
+
}, null, B), e && Object.defineProperty(this, Symbol.metadata, {
|
|
298
298
|
enumerable: !0,
|
|
299
299
|
configurable: !0,
|
|
300
300
|
writable: !0,
|
|
@@ -306,20 +306,16 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
306
306
|
}
|
|
307
307
|
static {
|
|
308
308
|
this.elementDependencies = [
|
|
309
|
-
|
|
309
|
+
F,
|
|
310
310
|
N,
|
|
311
311
|
P,
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
w,
|
|
313
|
+
I,
|
|
314
314
|
M
|
|
315
315
|
];
|
|
316
316
|
}
|
|
317
317
|
static {
|
|
318
|
-
this.styles = [
|
|
319
|
-
a,
|
|
320
|
-
C,
|
|
321
|
-
O(I)
|
|
322
|
-
];
|
|
318
|
+
this.styles = [S, D(L)];
|
|
323
319
|
}
|
|
324
320
|
#e;
|
|
325
321
|
get trip() {
|
|
@@ -392,18 +388,18 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
392
388
|
this.#l = e;
|
|
393
389
|
}
|
|
394
390
|
set now(e) {
|
|
395
|
-
this._now =
|
|
391
|
+
this._now = a.getValidDateOrNull(a.deserialize(e));
|
|
396
392
|
}
|
|
397
393
|
get now() {
|
|
398
394
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
399
395
|
}
|
|
400
396
|
willUpdate(e) {
|
|
401
|
-
super.willUpdate(e), e.has("loadingTrip") &&
|
|
397
|
+
super.willUpdate(e), e.has("loadingTrip") && C(this, "role", this.loadingTrip ? null : "rowgroup");
|
|
402
398
|
}
|
|
403
399
|
_renderSkeleton() {
|
|
404
|
-
return
|
|
400
|
+
return T`
|
|
405
401
|
<sbb-card class="sbb-loading sbb-card-spacing-4x-xxs">
|
|
406
|
-
${this.loadingPrice ?
|
|
402
|
+
${this.loadingPrice ? T`<div class="sbb-loading__badge" slot="badge"></div>` : E}
|
|
407
403
|
<div class="sbb-loading__wrapper">
|
|
408
404
|
<div class="sbb-loading__row"></div>
|
|
409
405
|
<div class="sbb-loading__row"></div>
|
|
@@ -413,20 +409,20 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
413
409
|
`;
|
|
414
410
|
}
|
|
415
411
|
_getRideLegs() {
|
|
416
|
-
return this.trip?.legs?.filter((e) =>
|
|
412
|
+
return this.trip?.legs?.filter((e) => A(e)) ?? [];
|
|
417
413
|
}
|
|
418
414
|
_getQuayTypeStrings() {
|
|
419
415
|
if (!this.trip.summary?.product) return null;
|
|
420
416
|
let e = this._getRideLegs(), t = this.trip.summary.product?.vehicleMode === "TRAIN" ? e[0].serviceJourney.quayTypeShortName || "" : e[0].serviceJourney.quayTypeName || "";
|
|
421
417
|
return {
|
|
422
|
-
long:
|
|
418
|
+
long: d[this._language.current] + " " + t,
|
|
423
419
|
short: t
|
|
424
420
|
};
|
|
425
421
|
}
|
|
426
422
|
_renderQuayType() {
|
|
427
423
|
if (!this.trip.summary?.product) return;
|
|
428
424
|
let e = this._getQuayTypeStrings();
|
|
429
|
-
return
|
|
425
|
+
return T`
|
|
430
426
|
<span class="sbb-timetable__row--quay">
|
|
431
427
|
<span class="sbb-screen-reader-only">${e?.long} </span>
|
|
432
428
|
<span class="sbb-timetable__row--quay-type" aria-hidden="true"
|
|
@@ -436,72 +432,72 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
436
432
|
`;
|
|
437
433
|
}
|
|
438
434
|
_handleHimCus(e) {
|
|
439
|
-
let { situations: t } = e || {}, n = t &&
|
|
435
|
+
let { situations: t } = e || {}, n = t && W(t), r = K(e, this._language.current);
|
|
440
436
|
return {
|
|
441
437
|
cus: Object.keys(r)?.length ? r : null,
|
|
442
|
-
him: t?.length ?
|
|
438
|
+
him: t?.length ? G(n[0]) : null
|
|
443
439
|
};
|
|
444
440
|
}
|
|
445
441
|
_getAccessibilityText(t) {
|
|
446
|
-
let { summary: n, legs: r, notices: i } = t || {}, { departureWalk: a, arrivalWalk: o, departure:
|
|
447
|
-
w && (w.firstClass && w.firstClass !== "UNKNOWN" && (
|
|
448
|
-
let
|
|
442
|
+
let { summary: n, legs: r, notices: i } = t || {}, { departureWalk: a, arrivalWalk: o, departure: d, arrival: x, product: S, direction: C, occupancy: w, duration: T } = n || {}, { departureTimeAttribute: E, arrivalTimeAttribute: D } = ee(r, a || 0, o || 0, this._language.current, this.a11yFootpath), O = this._getRideLegs(), A = d?.time ? j(d.time) : void 0, M = x?.time ? j(x.time) : void 0, N = E ? `${E.text} ${E.duration}, ` : "", P = D ? `${D.text} ${D.duration}, ` : "", F = A ? `${l[this._language.current]}: ${e(A, "HH:mm")}, ` : "", I = () => d?.quayFormatted ? `${d?.quayChanged ? `${p[this._language.current]} ` : ""}${this._getQuayTypeStrings()?.long} ${d?.quayFormatted}, ` : "", L = S && S.vehicleMode ? f[S.vehicleMode.toLowerCase()] && `${f[S.vehicleMode.toLowerCase()][this._language.current]}, ` : "", R = S?.vehicleSubModeShortName ? `${S.vehicleSubModeShortName} ${S.line || ""}, ` : "", z = `${u[this._language.current]} ${C}, `, B = this._handleHimCus(t), V = B?.cus?.text ? `${h[this._language.current]}: ${B?.cus?.text}, ` : "", H = B?.him?.text ? `${h[this._language.current]}: ${B?.him?.text}, ` : "", U = this.boarding ? `${this.boarding.text}, ` : "", W = `${this.price?.isDiscount ? g[this._language.current] : ""} ${this.price?.text && this.price?.price ? (this.price?.text || "") + " " + (this.price?.price || "") + ", " : ""}`, G = O.length > 2 ? `${O.length - 1} ${v[this._language.current]}, ` : O.length > 1 ? `${O.length - 1} ${_[this._language.current]}, ` : "", K = M ? `${s[this._language.current]}: ${e(M, "HH:mm")}, ` : "", q = "";
|
|
443
|
+
w && (w.firstClass && w.firstClass !== "UNKNOWN" && (q += `${c.first[this._language.current]} ${m[w.firstClass.toLowerCase()]?.[this._language.current]}.`), w.secondClass && w.secondClass !== "UNKNOWN" && (q += ` ${c.second[this._language.current]} ${m[w.secondClass.toLowerCase()]?.[this._language.current]}.`));
|
|
444
|
+
let J = i && Y(i).length && Y(i)?.map((e, t) => t < 4 && e.text?.template).join(", ") + ", ", X = J ? `${y[this._language.current]}: ${J}` : "", Z = T && T > 0 ? `${b[this._language.current]} ${k(T, this._language.current).long}, ` : "";
|
|
449
445
|
return [
|
|
450
|
-
|
|
451
|
-
P,
|
|
452
|
-
ne(),
|
|
446
|
+
N,
|
|
453
447
|
F,
|
|
454
|
-
I,
|
|
448
|
+
I(),
|
|
455
449
|
L,
|
|
450
|
+
R,
|
|
456
451
|
z,
|
|
457
452
|
V,
|
|
458
|
-
H,
|
|
459
|
-
z ? "" : B,
|
|
460
|
-
W,
|
|
461
|
-
N,
|
|
462
|
-
Y,
|
|
463
453
|
U,
|
|
454
|
+
W,
|
|
455
|
+
V ? "" : H,
|
|
456
|
+
K,
|
|
457
|
+
P,
|
|
458
|
+
Z,
|
|
464
459
|
G,
|
|
465
|
-
q
|
|
460
|
+
q,
|
|
461
|
+
X
|
|
466
462
|
].map((e) => e?.trim()).filter((e) => e && e.length > 0).join(" ");
|
|
467
463
|
}
|
|
468
464
|
render() {
|
|
469
465
|
if (this.loadingTrip) return this._renderSkeleton();
|
|
470
|
-
let { legs: e, id: t, notices: n, summary: r } = this.trip || {}, { product: i, direction: a, departureWalk: o, departure: s, arrival: c, arrivalWalk:
|
|
471
|
-
return
|
|
466
|
+
let { legs: e, id: t, notices: n, summary: r } = this.trip || {}, { product: i, direction: a, departureWalk: o, departure: s, arrival: c, arrivalWalk: d, occupancy: m, duration: h } = r || {}, _ = this._handleHimCus(this.trip), v = !!_.cus || !!_.him, y = n && Y(n), x = h ? k(h, this._language.current) : null;
|
|
467
|
+
return T`
|
|
472
468
|
<sbb-card class="sbb-card-spacing-4x-xxs" id=${t}>
|
|
473
469
|
<sbb-card-button
|
|
474
470
|
?active=${this.active}
|
|
475
|
-
aria-expanded=${this.accessibilityExpanded ? "true" :
|
|
471
|
+
aria-expanded=${this.accessibilityExpanded ? "true" : E}
|
|
476
472
|
>
|
|
477
473
|
${this.cardActionLabel ? this.cardActionLabel : this._getAccessibilityText(this.trip)}
|
|
478
474
|
</sbb-card-button>
|
|
479
|
-
${this.loadingPrice ?
|
|
480
|
-
${this.price && !this.loadingPrice ?
|
|
481
|
-
${this.price.isDiscount ?
|
|
475
|
+
${this.loadingPrice ? T`<div class="sbb-loading__badge" slot="badge"></div>` : E}
|
|
476
|
+
${this.price && !this.loadingPrice ? T`<sbb-card-badge color=${this.price.isDiscount ? "charcoal" : "white"}>
|
|
477
|
+
${this.price.isDiscount ? T`<span aria-hidden="true">
|
|
482
478
|
%<span class="sbb-screen-reader-only"
|
|
483
|
-
>${
|
|
479
|
+
>${g[this._language.current]}</span
|
|
484
480
|
>
|
|
485
|
-
</span>` :
|
|
486
|
-
${this.price.text ?
|
|
487
|
-
${this.price.price ?
|
|
488
|
-
</sbb-card-badge>` :
|
|
481
|
+
</span>` : E}
|
|
482
|
+
${this.price.text ? T`<span>${this.price.text}</span>` : E}
|
|
483
|
+
${this.price.price ? T`<span>${this.price.price}</span>` : E}
|
|
484
|
+
</sbb-card-badge>` : E}
|
|
489
485
|
<div class="sbb-timetable__row" role="row">
|
|
490
486
|
<div class="sbb-timetable__row-header" role="gridcell">
|
|
491
487
|
<div class="sbb-timetable__row-details">
|
|
492
|
-
${i?.corporateIdentityPictogram &&
|
|
488
|
+
${i?.corporateIdentityPictogram && T`<span class="sbb-timetable__row-transport-wrapper">
|
|
493
489
|
<sbb-icon
|
|
494
490
|
class="sbb-timetable__row-transport-icon"
|
|
495
491
|
name="picto:${i.corporateIdentityPictogram}"
|
|
496
492
|
></sbb-icon>
|
|
497
493
|
<span class="sbb-screen-reader-only">
|
|
498
|
-
${i && i.vehicleMode &&
|
|
494
|
+
${i && i.vehicleMode && f[i.vehicleMode.toLowerCase()] && f[i.vehicleMode.toLowerCase()][this._language.current]}
|
|
499
495
|
|
|
500
496
|
</span>
|
|
501
497
|
</span>`}
|
|
502
|
-
${i && (i.corporateIdentityIcon ?
|
|
498
|
+
${i && (i.corporateIdentityIcon ? R(i.corporateIdentityIcon, i.name) : i.vehicleSubModeShortName && z(i.vehicleSubModeShortName, i?.line))}
|
|
503
499
|
</div>
|
|
504
|
-
${a ?
|
|
500
|
+
${a ? T`<p>${`${u[this._language.current]} ${a}`}</p>` : E}
|
|
505
501
|
</div>
|
|
506
502
|
<sbb-pearl-chain-time
|
|
507
503
|
role="gridcell"
|
|
@@ -509,52 +505,52 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
509
505
|
.departureTime=${s?.time}
|
|
510
506
|
.arrivalTime=${c?.time}
|
|
511
507
|
.departureWalk=${o}
|
|
512
|
-
.arrivalWalk=${
|
|
508
|
+
.arrivalWalk=${d}
|
|
513
509
|
?disable-animation=${this.disableAnimation}
|
|
514
510
|
?a11y-footpath=${this.a11yFootpath}
|
|
515
511
|
.now=${this.now}
|
|
516
512
|
></sbb-pearl-chain-time>
|
|
517
513
|
<div class="sbb-timetable__row-footer" role="gridcell">
|
|
518
|
-
${i && s?.quayFormatted ?
|
|
519
|
-
class=${s?.quayChanged ? "sbb-timetable__row-quay--changed" :
|
|
514
|
+
${i && s?.quayFormatted ? T`<span
|
|
515
|
+
class=${s?.quayChanged ? "sbb-timetable__row-quay--changed" : E}
|
|
520
516
|
>
|
|
521
517
|
<span class="sbb-screen-reader-only">
|
|
522
|
-
${`${
|
|
518
|
+
${`${l[this._language.current]} ${s?.quayChanged ? p[this._language.current] : ""}`}
|
|
523
519
|
|
|
524
520
|
</span>
|
|
525
521
|
${this._renderQuayType()} ${s?.quayFormatted}
|
|
526
|
-
</span>` :
|
|
527
|
-
${
|
|
528
|
-
.firstClassOccupancy=${
|
|
529
|
-
.secondClassOccupancy=${
|
|
530
|
-
></sbb-timetable-occupancy>` :
|
|
531
|
-
${y && y.length || this.boarding ?
|
|
532
|
-
${y?.map((e, t) => t < 4 ?
|
|
522
|
+
</span>` : E}
|
|
523
|
+
${m?.firstClass && m?.firstClass !== "UNKNOWN" || m?.secondClass && m.secondClass !== "UNKNOWN" ? T`<sbb-timetable-occupancy
|
|
524
|
+
.firstClassOccupancy=${m?.firstClass?.toLowerCase()}
|
|
525
|
+
.secondClassOccupancy=${m?.secondClass?.toLowerCase()}
|
|
526
|
+
></sbb-timetable-occupancy>` : E}
|
|
527
|
+
${y && y.length || this.boarding ? T`<ul class="sbb-timetable__row-hints" role="list">
|
|
528
|
+
${y?.map((e, t) => t < 4 ? T`<li>
|
|
533
529
|
<sbb-icon
|
|
534
530
|
class="sbb-travel-hints__item"
|
|
535
531
|
name=${"sa-" + e.name?.toLowerCase()}
|
|
536
532
|
></sbb-icon>
|
|
537
533
|
<span class="sbb-screen-reader-only">${e.text?.template}</span>
|
|
538
|
-
</li>` :
|
|
539
|
-
${this.boarding ?
|
|
534
|
+
</li>` : E)}
|
|
535
|
+
${this.boarding ? T`<li>
|
|
540
536
|
<sbb-icon
|
|
541
537
|
class="sbb-travel-hints__item"
|
|
542
538
|
name=${this.boarding?.name}
|
|
543
539
|
aria-label=${this.boarding?.text}
|
|
544
540
|
aria-hidden="false"
|
|
545
541
|
></sbb-icon>
|
|
546
|
-
</li>` :
|
|
547
|
-
</ul>` :
|
|
548
|
-
${h && h > 0 ?
|
|
542
|
+
</li>` : E}
|
|
543
|
+
</ul>` : E}
|
|
544
|
+
${h && h > 0 ? T`<time>
|
|
549
545
|
<span class="sbb-screen-reader-only">
|
|
550
|
-
${`${
|
|
546
|
+
${`${b[this._language.current]} ${x.long}`}
|
|
551
547
|
</span>
|
|
552
|
-
<span aria-hidden="true">${
|
|
553
|
-
</time>` :
|
|
554
|
-
${v && (
|
|
555
|
-
<sbb-icon name=${(
|
|
556
|
-
<span class="sbb-screen-reader-only">${(
|
|
557
|
-
</span>` :
|
|
548
|
+
<span aria-hidden="true">${x.short}</span>
|
|
549
|
+
</time>` : E}
|
|
550
|
+
${v && (_.cus || _.him) ? T`<span class="sbb-timetable__row-warning">
|
|
551
|
+
<sbb-icon name=${(_.cus || _.him).name}></sbb-icon>
|
|
552
|
+
<span class="sbb-screen-reader-only">${(_.cus || _.him).text}</span>
|
|
553
|
+
</span>` : E}
|
|
558
554
|
</div>
|
|
559
555
|
</div>
|
|
560
556
|
</sbb-card>
|
|
@@ -563,4 +559,4 @@ var I = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
563
559
|
};
|
|
564
560
|
})();
|
|
565
561
|
//#endregion
|
|
566
|
-
export {
|
|
562
|
+
export { Y as a, W as c, G as i, J as n, R as o, K as r, z as s, X as t };
|
package/timetable-row.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./timetable-row.component-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./timetable-row.component-BqIVlISS.js";
|
|
2
2
|
import "./timetable-row.pure.js";
|
|
3
3
|
//#region src/elements-experimental/timetable-row.ts
|
|
4
4
|
s.define();
|
package/timetable-row.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./timetable-row.component-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./timetable-row.component-BqIVlISS.js";
|
|
2
2
|
export { s as SbbTimetableRowElement, r as filterNotices, a as getCus, n as getHimIcon, e as handleNotices, i as renderIconProduct, o as renderStringProduct, t as sortSituation };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { SbbElement, boxSizingStyles } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
-
import { html, unsafeCSS } from "lit";
|
|
3
|
-
//#region src/elements-experimental/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.scss?inline
|
|
4
|
-
var autocomplete_grid_cell_default = ":host {\n --sbb-autocomplete-grid-cell-gap: var(--sbb-spacing-fixed-6x);\n display: block;\n}\n\n.sbb-autocomplete-grid-cell {\n display: flex;\n column-gap: var(--sbb-autocomplete-grid-cell-gap);\n}";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/elements-experimental/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.ts
|
|
7
|
-
/**
|
|
8
|
-
* A wrapper component for autocomplete-grid action button.
|
|
9
|
-
*
|
|
10
|
-
* @slot - Use the unnamed slot to add a `sbb-autocomplete-grid-button` element.
|
|
11
|
-
*/
|
|
12
|
-
var SbbAutocompleteGridCellElement = class extends SbbElement {
|
|
13
|
-
static {
|
|
14
|
-
this.elementName = "sbb-autocomplete-grid-cell";
|
|
15
|
-
}
|
|
16
|
-
static {
|
|
17
|
-
this.role = "gridcell";
|
|
18
|
-
}
|
|
19
|
-
static {
|
|
20
|
-
this.styles = [boxSizingStyles, unsafeCSS(autocomplete_grid_cell_default)];
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return html`
|
|
24
|
-
<span class="sbb-autocomplete-grid-cell">
|
|
25
|
-
<slot></slot>
|
|
26
|
-
</span>
|
|
27
|
-
`;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { SbbAutocompleteGridCellElement as t };
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLWdyaWQtY2VsbC5jb21wb25lbnQtQnV2c29mLVkuanMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2VsZW1lbnRzLWV4cGVyaW1lbnRhbC9hdXRvY29tcGxldGUtZ3JpZC9hdXRvY29tcGxldGUtZ3JpZC1jZWxsL2F1dG9jb21wbGV0ZS1ncmlkLWNlbGwuc2Nzcz9pbmxpbmUiLCIuLi8uLi8uLi9zcmMvZWxlbWVudHMtZXhwZXJpbWVudGFsL2F1dG9jb21wbGV0ZS1ncmlkL2F1dG9jb21wbGV0ZS1ncmlkLWNlbGwvYXV0b2NvbXBsZXRlLWdyaWQtY2VsbC5jb21wb25lbnQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiQHVzZSAnQHNiYi1lc3RhL2x5bmUtZWxlbWVudHMvY29yZS9zdHlsZXMnIGFzIHNiYjtcblxuOmhvc3Qge1xuICAtLXNiYi1hdXRvY29tcGxldGUtZ3JpZC1jZWxsLWdhcDogdmFyKC0tc2JiLXNwYWNpbmctZml4ZWQtNngpO1xuXG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuXG4uc2JiLWF1dG9jb21wbGV0ZS1ncmlkLWNlbGwge1xuICBkaXNwbGF5OiBmbGV4O1xuICBjb2x1bW4tZ2FwOiB2YXIoLS1zYmItYXV0b2NvbXBsZXRlLWdyaWQtY2VsbC1nYXApO1xufVxuIiwiaW1wb3J0IHsgYm94U2l6aW5nU3R5bGVzLCBTYmJFbGVtZW50IH0gZnJvbSAnQHNiYi1lc3RhL2x5bmUtZWxlbWVudHMvY29yZS5qcyc7XG5pbXBvcnQgeyB0eXBlIENTU1Jlc3VsdEdyb3VwLCBodG1sLCB0eXBlIFRlbXBsYXRlUmVzdWx0LCB1bnNhZmVDU1MgfSBmcm9tICdsaXQnO1xuXG5pbXBvcnQgc3R5bGUgZnJvbSAnLi9hdXRvY29tcGxldGUtZ3JpZC1jZWxsLnNjc3M/aW5saW5lJztcblxuLyoqXG4gKiBBIHdyYXBwZXIgY29tcG9uZW50IGZvciBhdXRvY29tcGxldGUtZ3JpZCBhY3Rpb24gYnV0dG9uLlxuICpcbiAqIEBzbG90IC0gVXNlIHRoZSB1bm5hbWVkIHNsb3QgdG8gYWRkIGEgYHNiYi1hdXRvY29tcGxldGUtZ3JpZC1idXR0b25gIGVsZW1lbnQuXG4gKi9cbmV4cG9ydCBjbGFzcyBTYmJBdXRvY29tcGxldGVHcmlkQ2VsbEVsZW1lbnQgZXh0ZW5kcyBTYmJFbGVtZW50IHtcbiAgcHVibGljIHN0YXRpYyBvdmVycmlkZSByZWFkb25seSBlbGVtZW50TmFtZTogc3RyaW5nID0gJ3NiYi1hdXRvY29tcGxldGUtZ3JpZC1jZWxsJztcbiAgcHVibGljIHN0YXRpYyBvdmVycmlkZSByZWFkb25seSByb2xlID0gJ2dyaWRjZWxsJztcbiAgcHVibGljIHN0YXRpYyBvdmVycmlkZSBzdHlsZXM6IENTU1Jlc3VsdEdyb3VwID0gW2JveFNpemluZ1N0eWxlcywgdW5zYWZlQ1NTKHN0eWxlKV07XG5cbiAgcHJvdGVjdGVkIG92ZXJyaWRlIHJlbmRlcigpOiBUZW1wbGF0ZVJlc3VsdCB7XG4gICAgcmV0dXJuIGh0bWxgXG4gICAgICA8c3BhbiBjbGFzcz1cInNiYi1hdXRvY29tcGxldGUtZ3JpZC1jZWxsXCI+XG4gICAgICAgIDxzbG90Pjwvc2xvdD5cbiAgICAgIDwvc3Bhbj5cbiAgICBgO1xuICB9XG59XG5cbmRlY2xhcmUgZ2xvYmFsIHtcbiAgaW50ZXJmYWNlIEhUTUxFbGVtZW50VGFnTmFtZU1hcCB7XG4gICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uYW1pbmctY29udmVudGlvblxuICAgICdzYmItYXV0b2NvbXBsZXRlLWdyaWQtY2VsbCc6IFNiYkF1dG9jb21wbGV0ZUdyaWRDZWxsRWxlbWVudDtcbiAgfVxufVxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQ1VBLElBQWEsaUNBQWIsY0FBb0QsV0FBVTs7QUFDNUIsT0FBQSxjQUFzQjs7O0FBQ3RCLE9BQUEsT0FBTzs7O0FBQ2hCLE9BQUEsU0FBeUIsQ0FBQyxpQkFBaUIsVUFBVSwrQkFBTSxDQUFDOztDQUVoRSxTQUFNO0FBQ3ZCLFNBQU8sSUFBSSJ9
|