@sbb-esta/lyne-elements-experimental-dev 4.13.1-dev.1781017616 → 5.0.0-dev.1781076459
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/_index.scss +2 -0
- package/autocomplete-grid/_autocomplete-grid.global.scss +14 -0
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +16 -19
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +42 -71
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/{autocomplete-grid-cell.component-D-Kk9HwQ.js → autocomplete-grid-cell.component-79IjA__I.js} +6 -7
- package/autocomplete-grid-option.component-DUFBhQwI.js +35 -0
- package/{autocomplete-grid-row.component-57jjeZWF.js → autocomplete-grid-row.component-B3U15Rwa.js} +7 -8
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/core/datetime/date-helper.js +1 -1
- package/core/styles/_theme.scss +19 -0
- package/core/styles/lean-off-brand-theme.scss +3 -0
- package/core/styles/lean-safety-theme.scss +3 -0
- package/core/timetable/access-leg-helper.js +27 -27
- package/core.js +5 -0
- package/custom-elements.json +5120 -5186
- package/{date-helper-NgYaHPR7.js → date-helper-DNzMLcyb.js} +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +7 -10
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +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 +55 -89
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +1 -1
- 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-optgroup/autocomplete-grid-optgroup.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -2
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +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-BbdELDro.js +33 -0
- package/development/autocomplete-grid-option.component-C7WuqRit.js +57 -0
- package/development/{autocomplete-grid-row.component-CvF3ZWDZ.js → autocomplete-grid-row.component-DoXbOsQM.js} +3 -4
- package/development/autocomplete-grid.js +4 -4
- package/development/autocomplete-grid.pure.js +3 -3
- package/development/core/datetime/date-helper.js +1 -1
- package/development/core/timetable/access-leg-helper.d.ts.map +1 -1
- package/development/core/timetable/access-leg-helper.js +3 -3
- package/development/core.d.ts +6 -0
- package/development/core.d.ts.map +1 -0
- package/development/core.js +5 -0
- package/development/{date-helper-QhWjANc3.js → date-helper-BcTDWVeP.js} +2 -2
- package/development/journey-summary/journey-summary.component.d.ts +4 -4
- 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-BsC7wBIn.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 +2 -2
- 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 +3 -2
- 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-BMHLITah.js → pearl-chain-time.component-C-CuC1ke.js} +11 -13
- 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 +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 +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-JYDWs8ta.js → pearl-chain-vertical-item.component-CLu9QrqJ.js} +4 -6
- 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-DbPz5k_R.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-DUAGFkcu.js → pearl-chain.component-10OsJZIX.js} +7 -11
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -1
- package/development/seat-reservation/common/translations/i18n.js +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +12 -2
- 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 +35 -20
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -0
- 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 +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 +2 -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 +8 -3
- 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 +2 -2
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +2 -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 +9 -3
- 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 +2 -2
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +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-dG1GXJQP.js → seat-reservation-area.component-DPhQJFid.js} +4 -6
- package/development/{seat-reservation-graphic.component-BmhZpVL0.js → seat-reservation-graphic.component-0LYsmerm.js} +9 -9
- package/development/seat-reservation-navigation-coach.component-B97jKD7Y.js +438 -0
- package/development/{seat-reservation-navigation-services.component-B2uWa_VN.js → seat-reservation-navigation-services.component-Cx0Is97w.js} +11 -11
- package/development/{seat-reservation-place-control.component-CdL6yPUZ.js → seat-reservation-place-control.component-DaL1g8WH.js} +24 -17
- package/development/{seat-reservation-scoped.component-CJCkuKGz.js → seat-reservation-scoped.component-BHbORVsR.js} +3 -4
- package/development/seat-reservation.component-DI9pSlzt.js +473 -0
- package/development/seat-reservation.js +10 -11
- package/development/seat-reservation.pure.d.ts +0 -1
- package/development/seat-reservation.pure.d.ts.map +1 -1
- package/development/seat-reservation.pure.js +9 -10
- package/development/timetable-duration/timetable-duration.component.d.ts +1 -1
- 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-Chk5D4Is.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 +3 -2
- 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-nzrQzxL6.js +736 -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-DyTUTCOU.js → journey-summary.component-DNoO3OCf.js} +42 -41
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/lean-safety-theme.css +13 -0
- package/lean-theme.css +13 -0
- package/package.json +22 -85
- 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-DXe2o6S1.js → pearl-chain-time.component-BuvA6IE1.js} +42 -44
- 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-Bby13csG.js → pearl-chain-vertical-item.component-QZ4s8Jbv.js} +33 -35
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/pearl-chain-vertical.component-Dc3vaHsQ.js +20 -0
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-CPaCcW_1.js → pearl-chain.component-DtGXXkY6.js} +29 -33
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +87 -75
- 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 +2 -2
- 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 +2 -2
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/{seat-reservation-area.component-DZsXvaMQ.js → seat-reservation-area.component-G9lHb7S8.js} +20 -22
- package/{seat-reservation-graphic.component-BnJuHVZQ.js → seat-reservation-graphic.component-BXFcQDxY.js} +26 -26
- package/seat-reservation-navigation-coach.component-BXy8EkJe.js +338 -0
- package/{seat-reservation-navigation-services.component-6ECATtWB.js → seat-reservation-navigation-services.component-49XmV9rv.js} +30 -33
- package/{seat-reservation-place-control.component-kx07J_YK.js → seat-reservation-place-control.component-DToIW328.js} +64 -62
- package/{seat-reservation-scoped.component-L1wMt65t.js → seat-reservation-scoped.component-D8dAmrP7.js} +6 -7
- package/seat-reservation.component--0XnrCkk.js +372 -0
- package/seat-reservation.js +10 -11
- package/seat-reservation.pure.js +9 -10
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/timetable-duration.component-iMCvh1zr.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-mNKmhRmP.js +566 -0
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +0 -4
- package/autocomplete-grid/autocomplete-grid-cell.js +0 -4
- package/autocomplete-grid/autocomplete-grid-optgroup.js +0 -4
- package/autocomplete-grid/autocomplete-grid-option.js +0 -4
- package/autocomplete-grid/autocomplete-grid-row.js +0 -4
- package/autocomplete-grid/autocomplete-grid.js +0 -4
- package/autocomplete-grid-option.component-qBUSf0mD.js +0 -37
- package/core/datetime.js +0 -2
- package/core/styles/core.scss +0 -13
- package/core/styles/theme.scss +0 -5
- package/core/timetable.js +0 -4
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid.js +0 -10
- package/development/autocomplete-grid-cell.component-CTC6s1q3.js +0 -34
- package/development/autocomplete-grid-option.component-DqkLWHcg.js +0 -61
- package/development/core/datetime.d.ts +0 -3
- package/development/core/datetime.d.ts.map +0 -1
- package/development/core/datetime.js +0 -2
- package/development/core/timetable.d.ts +0 -5
- package/development/core/timetable.d.ts.map +0 -1
- package/development/core/timetable.js +0 -4
- package/development/journey-summary.component-BTaPGCGZ.js +0 -340
- package/development/pearl-chain-vertical.component-YYXS_74c.js +0 -31
- package/development/seat-reservation/common.d.ts +0 -6
- package/development/seat-reservation/common.d.ts.map +0 -1
- package/development/seat-reservation/common.js +0 -12
- package/development/seat-reservation/seat-reservation-area.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-area.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-area.js +0 -10
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +0 -9
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -306
- package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic.js +0 -10
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +0 -10
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +0 -10
- package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-place-control.js +0 -10
- package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-scoped.js +0 -10
- package/development/seat-reservation/seat-reservation.d.ts +0 -3
- package/development/seat-reservation/seat-reservation.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation.js +0 -11
- package/development/seat-reservation-navigation-coach.component-Be9CBw62.js +0 -428
- package/development/seat-reservation.component-B4BxXyLr.js +0 -464
- package/development/timetable-duration.component-CXF0oJbO.js +0 -100
- package/development/timetable-row.component-BCufuA05.js +0 -729
- package/pearl-chain-vertical.component-0EgQ4knk.js +0 -21
- package/seat-reservation/common.js +0 -9
- package/seat-reservation/seat-reservation-area.js +0 -4
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -291
- package/seat-reservation/seat-reservation-graphic.js +0 -4
- package/seat-reservation/seat-reservation-navigation-coach.js +0 -4
- package/seat-reservation/seat-reservation-navigation-services.js +0 -4
- package/seat-reservation/seat-reservation-place-control.js +0 -4
- package/seat-reservation/seat-reservation-scoped.js +0 -4
- package/seat-reservation/seat-reservation.js +0 -5
- package/seat-reservation-navigation-coach.component-DgdpqMzG.js +0 -333
- package/seat-reservation.component-B_T6eTf6.js +0 -360
- package/timetable-duration.component-Bqo5N_De.js +0 -65
- package/timetable-row.component-a5CWXLAQ.js +0 -559
- /package/{core.css → lean-off-brand-theme.css} +0 -0
|
@@ -1,559 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./format-DjgG1QPc.js";
|
|
2
|
-
import { __esDecorate as t, __runInitializers as n } from "tslib";
|
|
3
|
-
import { SbbElement as r } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
4
|
-
import { SbbLanguageController as i } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
5
|
-
import { forceType as a } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
6
|
-
import { boxSizingStyles as o } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
7
|
-
import "@sbb-esta/lyne-elements/icon.js";
|
|
8
|
-
import { html as s, nothing as c, unsafeCSS as l } from "lit";
|
|
9
|
-
import { setOrRemoveAttribute as u } from "@sbb-esta/lyne-elements/core/dom.js";
|
|
10
|
-
import { defaultDateAdapter as d } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
11
|
-
import { i18nArrival as f, i18nClass as p, i18nDeparture as m, i18nDirection as h, i18nFromPlatform as g, i18nMeansOfTransport as _, i18nNew as v, i18nOccupancy as y, i18nRealTimeInfo as b, i18nSupersaver as x, i18nTransferProcedure as S, i18nTransferProcedures as ee, i18nTravelhints as te, i18nTripDuration as C, i18nTripQuayChange as w } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
12
|
-
import { property as T } from "lit/decorators.js";
|
|
13
|
-
import { durationToTime as E, removeTimezoneFromISOTimeString as D } from "./core/datetime.js";
|
|
14
|
-
import "./pearl-chain-time.js";
|
|
15
|
-
import { getDepartureArrivalTimeAttribute as ne, isRideLeg as O } from "./core/timetable.js";
|
|
16
|
-
import "@sbb-esta/lyne-elements/card.js";
|
|
17
|
-
import "@sbb-esta/lyne-elements/timetable-occupancy.js";
|
|
18
|
-
//#region src/elements-experimental/timetable-row/timetable-row.scss?inline
|
|
19
|
-
var k = ":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-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.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)}}", A = (e, t) => s`<span class="sbb-timetable__row-transport">
|
|
20
|
-
<sbb-icon name=${e}></sbb-icon>
|
|
21
|
-
<span class="sbb-screen-reader-only">${t}</span>
|
|
22
|
-
</span>`, j = (e, t) => {
|
|
23
|
-
let n = [
|
|
24
|
-
"M",
|
|
25
|
-
"B",
|
|
26
|
-
"T"
|
|
27
|
-
].includes(e) ? " " : "";
|
|
28
|
-
return s`<span class="sbb-timetable__row-transportnumber">
|
|
29
|
-
${t === null ? e : e + n + t}
|
|
30
|
-
</span>`;
|
|
31
|
-
}, M = (e) => e?.find((e) => e.serviceJourney?.serviceAlteration?.reachableText)?.serviceJourney?.serviceAlteration?.reachableText, N = (e) => e?.find((e) => e.serviceJourney?.serviceAlteration?.delayText)?.serviceJourney?.serviceAlteration?.delayText, P = (e) => e?.find((e) => !!e.serviceJourney?.serviceAlteration?.redirectedText)?.serviceJourney?.serviceAlteration?.redirectedText, F = (e) => e?.find((e) => !!e.serviceJourney?.serviceAlteration?.unplannedStopPointsText)?.serviceJourney?.serviceAlteration?.unplannedStopPointsText, I = (e) => {
|
|
32
|
-
let t = {
|
|
33
|
-
DISTURBANCE: 0,
|
|
34
|
-
INFORMATION: 1,
|
|
35
|
-
DELAY: 2,
|
|
36
|
-
TRAIN_REPLACEMENT_BY_BUS: 3,
|
|
37
|
-
CONSTRUCTION_SITE: 4,
|
|
38
|
-
END_MESSAGE: 5
|
|
39
|
-
};
|
|
40
|
-
return [...e].sort((e, n) => t[e.cause] - t[n.cause]);
|
|
41
|
-
}, L = (e) => {
|
|
42
|
-
switch (e?.cause) {
|
|
43
|
-
case "DISTURBANCE": return {
|
|
44
|
-
name: "disruption",
|
|
45
|
-
text: e?.broadcastMessages?.length ? e?.broadcastMessages[0].title : ""
|
|
46
|
-
};
|
|
47
|
-
case "INFORMATION": return {
|
|
48
|
-
name: "info",
|
|
49
|
-
text: e?.broadcastMessages.length ? e?.broadcastMessages[0].title : ""
|
|
50
|
-
};
|
|
51
|
-
case "DELAY": return {
|
|
52
|
-
name: "delay",
|
|
53
|
-
text: e?.broadcastMessages.length ? e?.broadcastMessages[0].title : ""
|
|
54
|
-
};
|
|
55
|
-
case "TRAIN_REPLACEMENT_BY_BUS": return {
|
|
56
|
-
name: "replacementbus",
|
|
57
|
-
text: e?.broadcastMessages.length ? e?.broadcastMessages[0].title : ""
|
|
58
|
-
};
|
|
59
|
-
case "CONSTRUCTION_SITE": return {
|
|
60
|
-
name: "construction",
|
|
61
|
-
text: e?.broadcastMessages.length ? e?.broadcastMessages[0].title : ""
|
|
62
|
-
};
|
|
63
|
-
default: return {
|
|
64
|
-
name: "info",
|
|
65
|
-
text: e?.broadcastMessages.length ? e?.broadcastMessages[0].title : ""
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}, R = (e, t) => {
|
|
69
|
-
let { summary: n, legs: r } = e || {}, i = r?.filter((e) => O(e)), { tripStatus: a } = n || {};
|
|
70
|
-
if (a?.cancelled || a?.partiallyCancelled) return {
|
|
71
|
-
name: "cancellation",
|
|
72
|
-
text: a?.cancelledText
|
|
73
|
-
};
|
|
74
|
-
if (M(i)) return {
|
|
75
|
-
name: "missed-connection",
|
|
76
|
-
text: M(i)
|
|
77
|
-
};
|
|
78
|
-
if (a?.alternative) return {
|
|
79
|
-
name: "alternative",
|
|
80
|
-
text: a.alternativeText
|
|
81
|
-
};
|
|
82
|
-
if (P(i)) return {
|
|
83
|
-
name: "reroute",
|
|
84
|
-
text: P(i)
|
|
85
|
-
};
|
|
86
|
-
if (F(i)) return {
|
|
87
|
-
name: "add-stop",
|
|
88
|
-
text: F(i)
|
|
89
|
-
};
|
|
90
|
-
if (a?.delayed || a?.delayedUnknown) return {
|
|
91
|
-
name: "delay",
|
|
92
|
-
text: N(i)
|
|
93
|
-
};
|
|
94
|
-
if (a?.quayChanged) {
|
|
95
|
-
let e = i[0].departure;
|
|
96
|
-
return {
|
|
97
|
-
name: "platform-change",
|
|
98
|
-
text: e.quayChanged ? e.quayChangedText : w[t]
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
return {};
|
|
102
|
-
}, z = (e) => {
|
|
103
|
-
let t = [
|
|
104
|
-
"RR",
|
|
105
|
-
"RK",
|
|
106
|
-
"RC",
|
|
107
|
-
"RL",
|
|
108
|
-
"RM",
|
|
109
|
-
"RS",
|
|
110
|
-
"RU",
|
|
111
|
-
"XP",
|
|
112
|
-
"XR",
|
|
113
|
-
"XT"
|
|
114
|
-
];
|
|
115
|
-
return e.reduce((e, n) => {
|
|
116
|
-
if (e) return e;
|
|
117
|
-
if (t.includes(n.name)) return {
|
|
118
|
-
...n,
|
|
119
|
-
name: "RR"
|
|
120
|
-
};
|
|
121
|
-
}, void 0);
|
|
122
|
-
}, B = (e) => {
|
|
123
|
-
let t = [
|
|
124
|
-
"Z",
|
|
125
|
-
"SB",
|
|
126
|
-
"SZ",
|
|
127
|
-
"VR",
|
|
128
|
-
"TG"
|
|
129
|
-
];
|
|
130
|
-
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));
|
|
131
|
-
}, V = (e) => {
|
|
132
|
-
let t = z(e), n = B(e);
|
|
133
|
-
return t === void 0 ? n : n.length ? n[0].name === "Z" && n[1] ? [
|
|
134
|
-
n[0],
|
|
135
|
-
t,
|
|
136
|
-
n[1]
|
|
137
|
-
].concat(n.slice(2)) : [t, ...n] : [t];
|
|
138
|
-
}, H = (() => {
|
|
139
|
-
let w = r, M = [], N, P = [], F = [], z, B = [], H = [], U, W = [], G = [], K, q = [], J = [], Y, X = [], Z = [], Q, $ = [], re = [], ie, ae = [], oe = [], se, ce = [], le = [], ue, de = [], fe = [], pe, me = [], he = [], ge;
|
|
140
|
-
return class extends w {
|
|
141
|
-
constructor() {
|
|
142
|
-
super(...arguments), this.#e = (n(this, M), n(this, P, null)), this.#t = (n(this, F), n(this, B, null)), this.#n = (n(this, H), n(this, W, !1)), this.#r = (n(this, G), n(this, q, null)), this.#i = (n(this, J), n(this, X, !1)), this.#a = (n(this, Z), n(this, $, !1)), this.#o = (n(this, re), n(this, ae, !1)), this.#s = (n(this, oe), n(this, ce, "")), this.#c = (n(this, le), n(this, de, !1)), this.#l = (n(this, fe), n(this, me, !1)), this._now = (n(this, he), null), this._language = new i(this);
|
|
143
|
-
}
|
|
144
|
-
static {
|
|
145
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(w[Symbol.metadata] ?? null) : void 0;
|
|
146
|
-
N = [T({ type: Object })], z = [T({ type: Object })], U = [a(), T({
|
|
147
|
-
attribute: "disable-animation",
|
|
148
|
-
reflect: !0,
|
|
149
|
-
type: Boolean
|
|
150
|
-
})], K = [T({ type: Object })], Y = [a(), T({
|
|
151
|
-
attribute: "loading-trip",
|
|
152
|
-
type: Boolean
|
|
153
|
-
})], Q = [a(), T({
|
|
154
|
-
attribute: "a11y-footpath",
|
|
155
|
-
type: Boolean
|
|
156
|
-
})], ie = [a(), T({
|
|
157
|
-
attribute: "loading-price",
|
|
158
|
-
type: Boolean
|
|
159
|
-
})], se = [a(), T({ attribute: "card-action-label" })], ue = [a(), T({
|
|
160
|
-
attribute: "accessibility-expanded",
|
|
161
|
-
type: Boolean
|
|
162
|
-
})], pe = [a(), T({ type: Boolean })], ge = [T()], t(this, null, N, {
|
|
163
|
-
kind: "accessor",
|
|
164
|
-
name: "trip",
|
|
165
|
-
static: !1,
|
|
166
|
-
private: !1,
|
|
167
|
-
access: {
|
|
168
|
-
has: (e) => "trip" in e,
|
|
169
|
-
get: (e) => e.trip,
|
|
170
|
-
set: (e, t) => {
|
|
171
|
-
e.trip = t;
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
metadata: e
|
|
175
|
-
}, P, F), t(this, null, z, {
|
|
176
|
-
kind: "accessor",
|
|
177
|
-
name: "price",
|
|
178
|
-
static: !1,
|
|
179
|
-
private: !1,
|
|
180
|
-
access: {
|
|
181
|
-
has: (e) => "price" in e,
|
|
182
|
-
get: (e) => e.price,
|
|
183
|
-
set: (e, t) => {
|
|
184
|
-
e.price = t;
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
metadata: e
|
|
188
|
-
}, B, H), t(this, null, U, {
|
|
189
|
-
kind: "accessor",
|
|
190
|
-
name: "disableAnimation",
|
|
191
|
-
static: !1,
|
|
192
|
-
private: !1,
|
|
193
|
-
access: {
|
|
194
|
-
has: (e) => "disableAnimation" in e,
|
|
195
|
-
get: (e) => e.disableAnimation,
|
|
196
|
-
set: (e, t) => {
|
|
197
|
-
e.disableAnimation = t;
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
metadata: e
|
|
201
|
-
}, W, G), t(this, null, K, {
|
|
202
|
-
kind: "accessor",
|
|
203
|
-
name: "boarding",
|
|
204
|
-
static: !1,
|
|
205
|
-
private: !1,
|
|
206
|
-
access: {
|
|
207
|
-
has: (e) => "boarding" in e,
|
|
208
|
-
get: (e) => e.boarding,
|
|
209
|
-
set: (e, t) => {
|
|
210
|
-
e.boarding = t;
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
metadata: e
|
|
214
|
-
}, q, J), t(this, null, Y, {
|
|
215
|
-
kind: "accessor",
|
|
216
|
-
name: "loadingTrip",
|
|
217
|
-
static: !1,
|
|
218
|
-
private: !1,
|
|
219
|
-
access: {
|
|
220
|
-
has: (e) => "loadingTrip" in e,
|
|
221
|
-
get: (e) => e.loadingTrip,
|
|
222
|
-
set: (e, t) => {
|
|
223
|
-
e.loadingTrip = t;
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
metadata: e
|
|
227
|
-
}, X, Z), t(this, null, Q, {
|
|
228
|
-
kind: "accessor",
|
|
229
|
-
name: "a11yFootpath",
|
|
230
|
-
static: !1,
|
|
231
|
-
private: !1,
|
|
232
|
-
access: {
|
|
233
|
-
has: (e) => "a11yFootpath" in e,
|
|
234
|
-
get: (e) => e.a11yFootpath,
|
|
235
|
-
set: (e, t) => {
|
|
236
|
-
e.a11yFootpath = t;
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
metadata: e
|
|
240
|
-
}, $, re), t(this, null, ie, {
|
|
241
|
-
kind: "accessor",
|
|
242
|
-
name: "loadingPrice",
|
|
243
|
-
static: !1,
|
|
244
|
-
private: !1,
|
|
245
|
-
access: {
|
|
246
|
-
has: (e) => "loadingPrice" in e,
|
|
247
|
-
get: (e) => e.loadingPrice,
|
|
248
|
-
set: (e, t) => {
|
|
249
|
-
e.loadingPrice = t;
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
metadata: e
|
|
253
|
-
}, ae, oe), t(this, null, se, {
|
|
254
|
-
kind: "accessor",
|
|
255
|
-
name: "cardActionLabel",
|
|
256
|
-
static: !1,
|
|
257
|
-
private: !1,
|
|
258
|
-
access: {
|
|
259
|
-
has: (e) => "cardActionLabel" in e,
|
|
260
|
-
get: (e) => e.cardActionLabel,
|
|
261
|
-
set: (e, t) => {
|
|
262
|
-
e.cardActionLabel = t;
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
metadata: e
|
|
266
|
-
}, ce, le), t(this, null, ue, {
|
|
267
|
-
kind: "accessor",
|
|
268
|
-
name: "accessibilityExpanded",
|
|
269
|
-
static: !1,
|
|
270
|
-
private: !1,
|
|
271
|
-
access: {
|
|
272
|
-
has: (e) => "accessibilityExpanded" in e,
|
|
273
|
-
get: (e) => e.accessibilityExpanded,
|
|
274
|
-
set: (e, t) => {
|
|
275
|
-
e.accessibilityExpanded = t;
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
metadata: e
|
|
279
|
-
}, de, fe), t(this, null, pe, {
|
|
280
|
-
kind: "accessor",
|
|
281
|
-
name: "active",
|
|
282
|
-
static: !1,
|
|
283
|
-
private: !1,
|
|
284
|
-
access: {
|
|
285
|
-
has: (e) => "active" in e,
|
|
286
|
-
get: (e) => e.active,
|
|
287
|
-
set: (e, t) => {
|
|
288
|
-
e.active = t;
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
metadata: e
|
|
292
|
-
}, me, he), t(this, null, ge, {
|
|
293
|
-
kind: "setter",
|
|
294
|
-
name: "now",
|
|
295
|
-
static: !1,
|
|
296
|
-
private: !1,
|
|
297
|
-
access: {
|
|
298
|
-
has: (e) => "now" in e,
|
|
299
|
-
set: (e, t) => {
|
|
300
|
-
e.now = t;
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
metadata: e
|
|
304
|
-
}, null, M), e && Object.defineProperty(this, Symbol.metadata, {
|
|
305
|
-
enumerable: !0,
|
|
306
|
-
configurable: !0,
|
|
307
|
-
writable: !0,
|
|
308
|
-
value: e
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
static {
|
|
312
|
-
this.elementName = "sbb-timetable-row";
|
|
313
|
-
}
|
|
314
|
-
static {
|
|
315
|
-
this.styles = [o, l(k)];
|
|
316
|
-
}
|
|
317
|
-
#e;
|
|
318
|
-
get trip() {
|
|
319
|
-
return this.#e;
|
|
320
|
-
}
|
|
321
|
-
set trip(e) {
|
|
322
|
-
this.#e = e;
|
|
323
|
-
}
|
|
324
|
-
#t;
|
|
325
|
-
get price() {
|
|
326
|
-
return this.#t;
|
|
327
|
-
}
|
|
328
|
-
set price(e) {
|
|
329
|
-
this.#t = e;
|
|
330
|
-
}
|
|
331
|
-
#n;
|
|
332
|
-
get disableAnimation() {
|
|
333
|
-
return this.#n;
|
|
334
|
-
}
|
|
335
|
-
set disableAnimation(e) {
|
|
336
|
-
this.#n = e;
|
|
337
|
-
}
|
|
338
|
-
#r;
|
|
339
|
-
get boarding() {
|
|
340
|
-
return this.#r;
|
|
341
|
-
}
|
|
342
|
-
set boarding(e) {
|
|
343
|
-
this.#r = e;
|
|
344
|
-
}
|
|
345
|
-
#i;
|
|
346
|
-
get loadingTrip() {
|
|
347
|
-
return this.#i;
|
|
348
|
-
}
|
|
349
|
-
set loadingTrip(e) {
|
|
350
|
-
this.#i = e;
|
|
351
|
-
}
|
|
352
|
-
#a;
|
|
353
|
-
get a11yFootpath() {
|
|
354
|
-
return this.#a;
|
|
355
|
-
}
|
|
356
|
-
set a11yFootpath(e) {
|
|
357
|
-
this.#a = e;
|
|
358
|
-
}
|
|
359
|
-
#o;
|
|
360
|
-
get loadingPrice() {
|
|
361
|
-
return this.#o;
|
|
362
|
-
}
|
|
363
|
-
set loadingPrice(e) {
|
|
364
|
-
this.#o = e;
|
|
365
|
-
}
|
|
366
|
-
#s;
|
|
367
|
-
get cardActionLabel() {
|
|
368
|
-
return this.#s;
|
|
369
|
-
}
|
|
370
|
-
set cardActionLabel(e) {
|
|
371
|
-
this.#s = e;
|
|
372
|
-
}
|
|
373
|
-
#c;
|
|
374
|
-
get accessibilityExpanded() {
|
|
375
|
-
return this.#c;
|
|
376
|
-
}
|
|
377
|
-
set accessibilityExpanded(e) {
|
|
378
|
-
this.#c = e;
|
|
379
|
-
}
|
|
380
|
-
#l;
|
|
381
|
-
get active() {
|
|
382
|
-
return this.#l;
|
|
383
|
-
}
|
|
384
|
-
set active(e) {
|
|
385
|
-
this.#l = e;
|
|
386
|
-
}
|
|
387
|
-
set now(e) {
|
|
388
|
-
this._now = d.getValidDateOrNull(d.deserialize(e));
|
|
389
|
-
}
|
|
390
|
-
get now() {
|
|
391
|
-
return this._now ?? /* @__PURE__ */ new Date();
|
|
392
|
-
}
|
|
393
|
-
willUpdate(e) {
|
|
394
|
-
super.willUpdate(e), e.has("loadingTrip") && u(this, "role", this.loadingTrip ? null : "rowgroup");
|
|
395
|
-
}
|
|
396
|
-
_renderSkeleton() {
|
|
397
|
-
return s`
|
|
398
|
-
<sbb-card class="sbb-loading sbb-card-spacing-4x-xxs">
|
|
399
|
-
${this.loadingPrice ? s`<div class="sbb-loading__badge" slot="badge"></div>` : c}
|
|
400
|
-
<div class="sbb-loading__wrapper">
|
|
401
|
-
<div class="sbb-loading__row"></div>
|
|
402
|
-
<div class="sbb-loading__row"></div>
|
|
403
|
-
<div class="sbb-loading__row"></div>
|
|
404
|
-
</div>
|
|
405
|
-
</sbb-card>
|
|
406
|
-
`;
|
|
407
|
-
}
|
|
408
|
-
_getRideLegs() {
|
|
409
|
-
return this.trip?.legs?.filter((e) => O(e)) ?? [];
|
|
410
|
-
}
|
|
411
|
-
_getQuayTypeStrings() {
|
|
412
|
-
if (!this.trip.summary?.product) return null;
|
|
413
|
-
let e = this._getRideLegs(), t = this.trip.summary.product?.vehicleMode === "TRAIN" ? e[0].serviceJourney.quayTypeShortName || "" : e[0].serviceJourney.quayTypeName || "";
|
|
414
|
-
return {
|
|
415
|
-
long: g[this._language.current] + " " + t,
|
|
416
|
-
short: t
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
_renderQuayType() {
|
|
420
|
-
if (!this.trip.summary?.product) return;
|
|
421
|
-
let e = this._getQuayTypeStrings();
|
|
422
|
-
return s`
|
|
423
|
-
<span class="sbb-timetable__row--quay">
|
|
424
|
-
<span class="sbb-screen-reader-only">${e?.long} </span>
|
|
425
|
-
<span class="sbb-timetable__row--quay-type" aria-hidden="true"
|
|
426
|
-
>${e?.short}</span
|
|
427
|
-
>
|
|
428
|
-
</span>
|
|
429
|
-
`;
|
|
430
|
-
}
|
|
431
|
-
_handleHimCus(e) {
|
|
432
|
-
let { situations: t } = e || {}, n = t && I(t), r = R(e, this._language.current);
|
|
433
|
-
return {
|
|
434
|
-
cus: Object.keys(r)?.length ? r : null,
|
|
435
|
-
him: t?.length ? L(n[0]) : null
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
_getAccessibilityText(t) {
|
|
439
|
-
let { summary: n, legs: r, notices: i } = t || {}, { departureWalk: a, arrivalWalk: o, departure: s, arrival: c, product: l, direction: u, occupancy: d, duration: g } = n || {}, { departureTimeAttribute: w, arrivalTimeAttribute: T } = ne(r, a || 0, o || 0, this._language.current, this.a11yFootpath), O = this._getRideLegs(), k = s?.time ? D(s.time) : void 0, A = c?.time ? D(c.time) : void 0, j = w ? `${w.text} ${w.duration}, ` : "", M = T ? `${T.text} ${T.duration}, ` : "", N = k ? `${m[this._language.current]}: ${e(k, "HH:mm")}, ` : "", P = () => s?.quayFormatted ? `${s?.quayChanged ? `${v[this._language.current]} ` : ""}${this._getQuayTypeStrings()?.long} ${s?.quayFormatted}, ` : "", F = l && l.vehicleMode ? _[l.vehicleMode.toLowerCase()] && `${_[l.vehicleMode.toLowerCase()][this._language.current]}, ` : "", I = l?.vehicleSubModeShortName ? `${l.vehicleSubModeShortName} ${l.line || ""}, ` : "", L = `${h[this._language.current]} ${u}, `, R = this._handleHimCus(t), z = R?.cus?.text ? `${b[this._language.current]}: ${R?.cus?.text}, ` : "", B = R?.him?.text ? `${b[this._language.current]}: ${R?.him?.text}, ` : "", H = this.boarding ? `${this.boarding.text}, ` : "", U = `${this.price?.isDiscount ? x[this._language.current] : ""} ${this.price?.text && this.price?.price ? (this.price?.text || "") + " " + (this.price?.price || "") + ", " : ""}`, W = O.length > 2 ? `${O.length - 1} ${ee[this._language.current]}, ` : O.length > 1 ? `${O.length - 1} ${S[this._language.current]}, ` : "", G = A ? `${f[this._language.current]}: ${e(A, "HH:mm")}, ` : "", K = "";
|
|
440
|
-
d && (d.firstClass && d.firstClass !== "UNKNOWN" && (K += `${p.first[this._language.current]} ${y[d.firstClass.toLowerCase()]?.[this._language.current]}.`), d.secondClass && d.secondClass !== "UNKNOWN" && (K += ` ${p.second[this._language.current]} ${y[d.secondClass.toLowerCase()]?.[this._language.current]}.`));
|
|
441
|
-
let q = i && V(i).length && V(i)?.map((e, t) => t < 4 && e.text?.template).join(", ") + ", ", J = q ? `${te[this._language.current]}: ${q}` : "", Y = g && g > 0 ? `${C[this._language.current]} ${E(g, this._language.current).long}, ` : "";
|
|
442
|
-
return [
|
|
443
|
-
j,
|
|
444
|
-
N,
|
|
445
|
-
P(),
|
|
446
|
-
F,
|
|
447
|
-
I,
|
|
448
|
-
L,
|
|
449
|
-
z,
|
|
450
|
-
H,
|
|
451
|
-
U,
|
|
452
|
-
z ? "" : B,
|
|
453
|
-
G,
|
|
454
|
-
M,
|
|
455
|
-
Y,
|
|
456
|
-
W,
|
|
457
|
-
K,
|
|
458
|
-
J
|
|
459
|
-
].map((e) => e?.trim()).filter((e) => e && e.length > 0).join(" ");
|
|
460
|
-
}
|
|
461
|
-
render() {
|
|
462
|
-
if (this.loadingTrip) return this._renderSkeleton();
|
|
463
|
-
let { legs: e, id: t, notices: n, summary: r } = this.trip || {}, { product: i, direction: a, departureWalk: o, departure: l, arrival: u, arrivalWalk: d, occupancy: f, duration: p } = r || {}, g = this._handleHimCus(this.trip), y = !!g.cus || !!g.him, b = n && V(n), S = p ? E(p, this._language.current) : null;
|
|
464
|
-
return s`
|
|
465
|
-
<sbb-card class="sbb-card-spacing-4x-xxs" id=${t}>
|
|
466
|
-
<sbb-card-button
|
|
467
|
-
?active=${this.active}
|
|
468
|
-
aria-expanded=${this.accessibilityExpanded ? "true" : c}
|
|
469
|
-
>
|
|
470
|
-
${this.cardActionLabel ? this.cardActionLabel : this._getAccessibilityText(this.trip)}
|
|
471
|
-
</sbb-card-button>
|
|
472
|
-
${this.loadingPrice ? s`<div class="sbb-loading__badge" slot="badge"></div>` : c}
|
|
473
|
-
${this.price && !this.loadingPrice ? s`<sbb-card-badge color=${this.price.isDiscount ? "charcoal" : "white"}>
|
|
474
|
-
${this.price.isDiscount ? s`<span aria-hidden="true">
|
|
475
|
-
%<span class="sbb-screen-reader-only"
|
|
476
|
-
>${x[this._language.current]}</span
|
|
477
|
-
>
|
|
478
|
-
</span>` : c}
|
|
479
|
-
${this.price.text ? s`<span>${this.price.text}</span>` : c}
|
|
480
|
-
${this.price.price ? s`<span>${this.price.price}</span>` : c}
|
|
481
|
-
</sbb-card-badge>` : c}
|
|
482
|
-
<div class="sbb-timetable__row" role="row">
|
|
483
|
-
<div class="sbb-timetable__row-header" role="gridcell">
|
|
484
|
-
<div class="sbb-timetable__row-details">
|
|
485
|
-
${i?.corporateIdentityPictogram && s`<span class="sbb-timetable__row-transport-wrapper">
|
|
486
|
-
<sbb-icon
|
|
487
|
-
class="sbb-timetable__row-transport-icon"
|
|
488
|
-
name="picto:${i.corporateIdentityPictogram}"
|
|
489
|
-
></sbb-icon>
|
|
490
|
-
<span class="sbb-screen-reader-only">
|
|
491
|
-
${i && i.vehicleMode && _[i.vehicleMode.toLowerCase()] && _[i.vehicleMode.toLowerCase()][this._language.current]}
|
|
492
|
-
|
|
493
|
-
</span>
|
|
494
|
-
</span>`}
|
|
495
|
-
${i && (i.corporateIdentityIcon ? A(i.corporateIdentityIcon, i.name) : i.vehicleSubModeShortName && j(i.vehicleSubModeShortName, i?.line))}
|
|
496
|
-
</div>
|
|
497
|
-
${a ? s`<p>${`${h[this._language.current]} ${a}`}</p>` : c}
|
|
498
|
-
</div>
|
|
499
|
-
<sbb-pearl-chain-time
|
|
500
|
-
role="gridcell"
|
|
501
|
-
.legs=${e}
|
|
502
|
-
.departureTime=${l?.time}
|
|
503
|
-
.arrivalTime=${u?.time}
|
|
504
|
-
.departureWalk=${o}
|
|
505
|
-
.arrivalWalk=${d}
|
|
506
|
-
?disable-animation=${this.disableAnimation}
|
|
507
|
-
?a11y-footpath=${this.a11yFootpath}
|
|
508
|
-
.now=${this.now}
|
|
509
|
-
></sbb-pearl-chain-time>
|
|
510
|
-
<div class="sbb-timetable__row-footer" role="gridcell">
|
|
511
|
-
${i && l?.quayFormatted ? s`<span
|
|
512
|
-
class=${l?.quayChanged ? "sbb-timetable__row-quay--changed" : c}
|
|
513
|
-
>
|
|
514
|
-
<span class="sbb-screen-reader-only">
|
|
515
|
-
${`${m[this._language.current]} ${l?.quayChanged ? v[this._language.current] : ""}`}
|
|
516
|
-
|
|
517
|
-
</span>
|
|
518
|
-
${this._renderQuayType()} ${l?.quayFormatted}
|
|
519
|
-
</span>` : c}
|
|
520
|
-
${f?.firstClass && f?.firstClass !== "UNKNOWN" || f?.secondClass && f.secondClass !== "UNKNOWN" ? s`<sbb-timetable-occupancy
|
|
521
|
-
.firstClassOccupancy=${f?.firstClass?.toLowerCase()}
|
|
522
|
-
.secondClassOccupancy=${f?.secondClass?.toLowerCase()}
|
|
523
|
-
></sbb-timetable-occupancy>` : c}
|
|
524
|
-
${b && b.length || this.boarding ? s`<ul class="sbb-timetable__row-hints" role="list">
|
|
525
|
-
${b?.map((e, t) => t < 4 ? s`<li>
|
|
526
|
-
<sbb-icon
|
|
527
|
-
class="sbb-travel-hints__item"
|
|
528
|
-
name=${"sa-" + e.name?.toLowerCase()}
|
|
529
|
-
></sbb-icon>
|
|
530
|
-
<span class="sbb-screen-reader-only">${e.text?.template}</span>
|
|
531
|
-
</li>` : c)}
|
|
532
|
-
${this.boarding ? s`<li>
|
|
533
|
-
<sbb-icon
|
|
534
|
-
class="sbb-travel-hints__item"
|
|
535
|
-
name=${this.boarding?.name}
|
|
536
|
-
aria-label=${this.boarding?.text}
|
|
537
|
-
aria-hidden="false"
|
|
538
|
-
></sbb-icon>
|
|
539
|
-
</li>` : c}
|
|
540
|
-
</ul>` : c}
|
|
541
|
-
${p && p > 0 ? s`<time>
|
|
542
|
-
<span class="sbb-screen-reader-only">
|
|
543
|
-
${`${C[this._language.current]} ${S.long}`}
|
|
544
|
-
</span>
|
|
545
|
-
<span aria-hidden="true">${S.short}</span>
|
|
546
|
-
</time>` : c}
|
|
547
|
-
${y && (g.cus || g.him) ? s`<span class="sbb-timetable__row-warning">
|
|
548
|
-
<sbb-icon name=${(g.cus || g.him).name}></sbb-icon>
|
|
549
|
-
<span class="sbb-screen-reader-only">${(g.cus || g.him).text}</span>
|
|
550
|
-
</span>` : c}
|
|
551
|
-
</div>
|
|
552
|
-
</div>
|
|
553
|
-
</sbb-card>
|
|
554
|
-
`;
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
})();
|
|
558
|
-
//#endregion
|
|
559
|
-
export { V as a, I as c, L as i, B as n, A as o, R as r, j as s, H as t };
|
|
File without changes
|