@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773149682 → 4.7.0-dev.1773159924
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/autocomplete-grid.component.js +74 -82
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +9 -10
- package/autocomplete-grid/autocomplete-grid-button.js +5 -2
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +11 -19
- package/autocomplete-grid/autocomplete-grid-cell.js +5 -2
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -27
- package/autocomplete-grid/autocomplete-grid-optgroup.js +5 -2
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +30 -38
- package/autocomplete-grid/autocomplete-grid-option.js +5 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +16 -22
- package/autocomplete-grid/autocomplete-grid-row.js +5 -2
- package/autocomplete-grid/autocomplete-grid.js +5 -2
- package/autocomplete-grid.js +20 -13
- package/autocomplete-grid.pure.js +15 -0
- package/custom-elements.json +486 -261
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +2 -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 +109 -122
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +3 -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 -4
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +4 -4
- 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 +12 -24
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +3 -2
- 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 +21 -36
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -0
- 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 +32 -44
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +6 -2
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +4 -4
- 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 +16 -28
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid.js +4 -1
- package/development/autocomplete-grid.d.ts +1 -9
- package/development/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid.js +10 -3
- package/development/autocomplete-grid.pure.d.ts +8 -0
- package/development/autocomplete-grid.pure.d.ts.map +1 -0
- package/development/autocomplete-grid.pure.js +16 -0
- package/development/core/datetime.d.ts +1 -3
- package/development/core/datetime.d.ts.map +1 -1
- package/development/core/timetable/timetable-properties.d.ts +30 -30
- package/development/core/timetable/timetable-properties.d.ts.map +1 -1
- package/development/core/timetable.d.ts +1 -3
- package/development/core/timetable.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.d.ts +4 -2
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +9 -15
- package/development/journey-summary.d.ts +1 -4
- package/development/journey-summary.d.ts.map +1 -1
- package/development/journey-summary.js +2 -1
- package/development/journey-summary.pure.d.ts +3 -0
- package/development/journey-summary.pure.d.ts.map +1 -0
- package/development/journey-summary.pure.js +5 -0
- package/development/pearl-chain/pearl-chain.component.d.ts +4 -2
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +9 -15
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +4 -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 +9 -15
- package/development/pearl-chain-time.d.ts +1 -4
- package/development/pearl-chain-time.d.ts.map +1 -1
- package/development/pearl-chain-time.js +2 -1
- package/development/pearl-chain-time.pure.d.ts +3 -0
- package/development/pearl-chain-time.pure.d.ts.map +1 -0
- package/development/pearl-chain-time.pure.js +5 -0
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +4 -2
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +11 -23
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +4 -2
- 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 +9 -15
- package/development/pearl-chain-vertical-item.d.ts +1 -4
- package/development/pearl-chain-vertical-item.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item.js +2 -1
- package/development/pearl-chain-vertical-item.pure.d.ts +3 -0
- package/development/pearl-chain-vertical-item.pure.d.ts.map +1 -0
- package/development/pearl-chain-vertical-item.pure.js +5 -0
- package/development/pearl-chain-vertical.d.ts +1 -4
- package/development/pearl-chain-vertical.d.ts.map +1 -1
- package/development/pearl-chain-vertical.js +2 -1
- package/development/pearl-chain-vertical.pure.d.ts +3 -0
- package/development/pearl-chain-vertical.pure.d.ts.map +1 -0
- package/development/pearl-chain-vertical.pure.js +5 -0
- package/development/pearl-chain.d.ts +1 -4
- package/development/pearl-chain.d.ts.map +1 -1
- package/development/pearl-chain.js +2 -1
- package/development/pearl-chain.pure.d.ts +3 -0
- package/development/pearl-chain.pure.d.ts.map +1 -0
- package/development/pearl-chain.pure.js +5 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts +2 -2
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/types.d.ts +22 -22
- package/development/seat-reservation/common/types.d.ts.map +1 -1
- package/development/seat-reservation/common.d.ts +1 -3
- package/development/seat-reservation/common.d.ts.map +1 -1
- package/development/seat-reservation/common.js +3 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +4 -3
- 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 +4 -3
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +1 -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 +344 -352
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +4 -2
- 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 +9 -15
- package/development/seat-reservation/seat-reservation-area.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area.js +4 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +6 -4
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +4 -2
- 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 +11 -16
- package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic.js +4 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +5 -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 +12 -17
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +4 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +4 -2
- 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 +12 -17
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +4 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -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 +10 -16
- package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control.js +4 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +4 -2
- 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 +11 -23
- package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped.js +4 -1
- package/development/seat-reservation/seat-reservation.d.ts +0 -3
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation.js +4 -1
- package/development/seat-reservation.d.ts +1 -11
- package/development/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation.js +13 -3
- package/development/seat-reservation.pure.d.ts +15 -0
- package/development/seat-reservation.pure.d.ts.map +1 -0
- package/development/seat-reservation.pure.js +33 -0
- package/development/timetable-duration/timetable-duration.component.d.ts +4 -2
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +9 -15
- package/development/timetable-duration.d.ts +1 -4
- package/development/timetable-duration.d.ts.map +1 -1
- package/development/timetable-duration.js +2 -1
- package/development/timetable-duration.pure.d.ts +3 -0
- package/development/timetable-duration.pure.d.ts.map +1 -0
- package/development/timetable-duration.pure.js +5 -0
- package/development/timetable-row/timetable-row.component.d.ts +4 -2
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +9 -15
- package/development/timetable-row.d.ts +1 -4
- package/development/timetable-row.d.ts.map +1 -1
- package/development/timetable-row.js +4 -2
- package/development/timetable-row.pure.d.ts +3 -0
- package/development/timetable-row.pure.d.ts.map +1 -0
- package/development/timetable-row.pure.js +12 -0
- package/index.d.ts +9 -20
- package/index.js +9 -20
- package/journey-summary/journey-summary.component.js +88 -87
- package/journey-summary.js +3 -2
- package/journey-summary.pure.js +4 -0
- package/package.json +47 -2
- package/pearl-chain/pearl-chain.component.js +74 -73
- package/pearl-chain-time/pearl-chain-time.component.js +64 -63
- package/pearl-chain-time.js +3 -2
- package/pearl-chain-time.pure.js +4 -0
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +11 -18
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +39 -38
- package/pearl-chain-vertical-item.js +3 -2
- package/pearl-chain-vertical-item.pure.js +4 -0
- package/pearl-chain-vertical.js +3 -2
- package/pearl-chain-vertical.pure.js +4 -0
- package/pearl-chain.js +3 -2
- package/pearl-chain.pure.js +4 -0
- package/seat-reservation/common.js +10 -8
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +4 -3
- package/seat-reservation/seat-reservation/seat-reservation.component.js +261 -263
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +32 -31
- package/seat-reservation/seat-reservation-area.js +5 -2
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +18 -16
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +42 -40
- package/seat-reservation/seat-reservation-graphic.js +5 -2
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +117 -115
- package/seat-reservation/seat-reservation-navigation-coach.js +5 -2
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +53 -51
- package/seat-reservation/seat-reservation-navigation-services.js +5 -2
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +79 -78
- package/seat-reservation/seat-reservation-place-control.js +5 -2
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +11 -18
- package/seat-reservation/seat-reservation-scoped.js +5 -2
- package/seat-reservation/seat-reservation.js +5 -2
- package/seat-reservation.js +37 -27
- package/seat-reservation.pure.js +32 -0
- package/timetable-duration/timetable-duration.component.js +29 -28
- package/timetable-duration.js +3 -2
- package/timetable-duration.pure.js +4 -0
- package/timetable-row/timetable-row.component.js +152 -151
- package/timetable-row.js +11 -9
- package/timetable-row.pure.js +11 -0
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Te = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as o, __esDecorate as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
4
|
+
var Ae = (t, i, s) => i.has(t) || Te("Cannot " + s);
|
|
5
|
+
var _ = (t, i, s) => (Ae(t, i, "read from private field"), s ? s.call(t) : i.get(t)), f = (t, i, s) => i.has(t) ? Te("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, s), n = (t, i, s, d) => (Ae(t, i, "write to private field"), d ? d.call(t, s) : i.set(t, s), s);
|
|
6
|
+
import { __runInitializers as o, __esDecorate as y } from "tslib";
|
|
7
|
+
import { SbbElement as at } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
8
|
+
import { SbbLanguageController as it } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
9
|
+
import { defaultDateAdapter as Ce } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
10
|
+
import { forceType as S } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
11
|
+
import { setOrRemoveAttribute as st } from "@sbb-esta/lyne-elements/core/dom.js";
|
|
12
|
+
import { i18nFromPlatform as rt, i18nDeparture as ke, i18nMeansOfTransport as J, i18nDirection as Ne, i18nRealTimeInfo as Se, i18nSupersaver as Ie, i18nTransferProcedures as nt, i18nTransferProcedure as ot, i18nArrival as lt, i18nClass as ze, i18nOccupancy as Le, i18nTravelhints as ct, i18nTripDuration as Me, i18nNew as Oe, i18nTripQuayChange as dt } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
13
|
+
import { boxSizingStyles as bt } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
14
|
+
import { css as gt, nothing as g, html as l } from "lit";
|
|
15
|
+
import { property as v } from "lit/decorators.js";
|
|
16
|
+
import { removeTimezoneFromISOTimeString as Pe, durationToTime as Fe } from "../core/datetime.js";
|
|
17
|
+
import { isRideLeg as Ee, getDepartureArrivalTimeAttribute as pt } from "../core/timetable.js";
|
|
17
18
|
import "@sbb-esta/lyne-elements/card.js";
|
|
18
19
|
import "@sbb-esta/lyne-elements/icon.js";
|
|
19
20
|
import "@sbb-esta/lyne-elements/timetable-occupancy.js";
|
|
20
21
|
import "../pearl-chain-time.js";
|
|
21
|
-
import { f as
|
|
22
|
-
const
|
|
22
|
+
import { f as Re } from "../format-CmKROkbc.js";
|
|
23
|
+
const ht = gt`: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)}}`, ut = (t, i) => l`<span class="sbb-timetable__row-transport">
|
|
23
24
|
<sbb-icon name=${t}></sbb-icon>
|
|
24
25
|
<span class="sbb-screen-reader-only">${i}</span>
|
|
25
|
-
</span>`,
|
|
26
|
+
</span>`, mt = (t, i) => {
|
|
26
27
|
const s = ["M", "B", "T"].includes(t) ? " " : "";
|
|
27
|
-
return
|
|
28
|
+
return l`<span class="sbb-timetable__row-transportnumber">
|
|
28
29
|
${i !== null ? t + s + i : t}
|
|
29
30
|
</span>`;
|
|
30
|
-
},
|
|
31
|
+
}, qe = (t) => t?.find((i) => i.serviceJourney?.serviceAlteration?.reachableText)?.serviceJourney?.serviceAlteration?.reachableText, _t = (t) => t?.find((i) => i.serviceJourney?.serviceAlteration?.delayText)?.serviceJourney?.serviceAlteration?.delayText, De = (t) => t?.find((i) => !!i.serviceJourney?.serviceAlteration?.redirectedText)?.serviceJourney?.serviceAlteration?.redirectedText, Be = (t) => t?.find((i) => !!i.serviceJourney?.serviceAlteration?.unplannedStopPointsText)?.serviceJourney?.serviceAlteration?.unplannedStopPointsText, ft = (t) => {
|
|
31
32
|
const i = {
|
|
32
33
|
DISTURBANCE: 0,
|
|
33
34
|
INFORMATION: 1,
|
|
@@ -36,8 +37,8 @@ const yt = ht`:host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-t
|
|
|
36
37
|
CONSTRUCTION_SITE: 4,
|
|
37
38
|
END_MESSAGE: 5
|
|
38
39
|
};
|
|
39
|
-
return [...t].sort((s,
|
|
40
|
-
},
|
|
40
|
+
return [...t].sort((s, d) => i[s.cause] - i[d.cause]);
|
|
41
|
+
}, yt = (t) => {
|
|
41
42
|
switch (t?.cause) {
|
|
42
43
|
case "DISTURBANCE":
|
|
43
44
|
return {
|
|
@@ -70,98 +71,98 @@ const yt = ht`:host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-t
|
|
|
70
71
|
text: t?.broadcastMessages.length ? t?.broadcastMessages[0].title : ""
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
},
|
|
74
|
-
const { summary: s, legs:
|
|
75
|
-
if (
|
|
76
|
-
return { name: "cancellation", text:
|
|
77
|
-
if (
|
|
78
|
-
return { name: "missed-connection", text:
|
|
79
|
-
if (
|
|
80
|
-
return { name: "alternative", text:
|
|
81
|
-
if (
|
|
82
|
-
return { name: "reroute", text:
|
|
83
|
-
if (
|
|
84
|
-
return { name: "add-stop", text:
|
|
85
|
-
if (
|
|
86
|
-
return { name: "delay", text:
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
74
|
+
}, vt = (t, i) => {
|
|
75
|
+
const { summary: s, legs: d } = t || {}, p = d?.filter((C) => Ee(C)), { tripStatus: u } = s || {};
|
|
76
|
+
if (u?.cancelled || u?.partiallyCancelled)
|
|
77
|
+
return { name: "cancellation", text: u?.cancelledText };
|
|
78
|
+
if (qe(p))
|
|
79
|
+
return { name: "missed-connection", text: qe(p) };
|
|
80
|
+
if (u?.alternative)
|
|
81
|
+
return { name: "alternative", text: u.alternativeText };
|
|
82
|
+
if (De(p))
|
|
83
|
+
return { name: "reroute", text: De(p) };
|
|
84
|
+
if (Be(p))
|
|
85
|
+
return { name: "add-stop", text: Be(p) };
|
|
86
|
+
if (u?.delayed || u?.delayedUnknown)
|
|
87
|
+
return { name: "delay", text: _t(p) };
|
|
88
|
+
if (u?.quayChanged) {
|
|
89
|
+
const C = p[0].departure;
|
|
89
90
|
return {
|
|
90
91
|
name: "platform-change",
|
|
91
|
-
text:
|
|
92
|
+
text: C.quayChanged ? C.quayChangedText : dt[i]
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
return {};
|
|
95
|
-
},
|
|
96
|
+
}, xt = (t) => {
|
|
96
97
|
const i = ["RR", "RK", "RC", "RL", "RM", "RS", "RU", "XP", "XR", "XT"];
|
|
97
|
-
return t.reduce((s,
|
|
98
|
+
return t.reduce((s, d) => {
|
|
98
99
|
if (s)
|
|
99
100
|
return s;
|
|
100
|
-
if (i.includes(
|
|
101
|
-
return { ...
|
|
101
|
+
if (i.includes(d.name))
|
|
102
|
+
return { ...d, name: "RR" };
|
|
102
103
|
}, void 0);
|
|
103
|
-
},
|
|
104
|
+
}, wt = (t) => {
|
|
104
105
|
const i = ["Z", "SB", "SZ", "VR", "TG"];
|
|
105
|
-
return t.filter((
|
|
106
|
+
return t.filter((d, p) => t.findIndex((u) => u.name === d.name) === p).filter((d) => i.includes(d.name)).sort((d, p) => i.indexOf(d.name) - i.indexOf(p.name));
|
|
106
107
|
}, Y = (t) => {
|
|
107
|
-
const i =
|
|
108
|
+
const i = xt(t), s = wt(t);
|
|
108
109
|
return i === void 0 ? s : s.length ? s[0].name === "Z" && s[1] ? [s[0], i, s[1]].concat(s.slice(2)) : [i, ...s] : [i];
|
|
109
110
|
};
|
|
110
|
-
let
|
|
111
|
-
var I, z, L,
|
|
112
|
-
let t =
|
|
113
|
-
return
|
|
111
|
+
let Ut = (() => {
|
|
112
|
+
var I, z, L, M, O, P, F, R, q, D, c;
|
|
113
|
+
let t = at, i = [], s, d = [], p = [], u, C = [], X = [], Z, G = [], V = [], ee, te = [], ae = [], ie, se = [], re = [], ne, oe = [], le = [], ce, de = [], be = [], ge, pe = [], he = [], ue, me = [], _e = [], fe, ye = [], ve = [], xe;
|
|
114
|
+
return c = class extends t {
|
|
114
115
|
constructor() {
|
|
115
116
|
super(...arguments);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
117
|
+
f(this, I);
|
|
118
|
+
f(this, z);
|
|
119
|
+
f(this, L);
|
|
120
|
+
f(this, M);
|
|
121
|
+
f(this, O);
|
|
122
|
+
f(this, P);
|
|
123
|
+
f(this, F);
|
|
124
|
+
f(this, R);
|
|
125
|
+
f(this, q);
|
|
126
|
+
f(this, D);
|
|
127
|
+
n(this, I, (o(this, i), o(this, d, null))), n(this, z, (o(this, p), o(this, C, null))), n(this, L, (o(this, X), o(this, G, !1))), n(this, M, (o(this, V), o(this, te, null))), n(this, O, (o(this, ae), o(this, se, !1))), n(this, P, (o(this, re), o(this, oe, !1))), n(this, F, (o(this, le), o(this, de, !1))), n(this, R, (o(this, be), o(this, pe, ""))), n(this, q, (o(this, he), o(this, me, !1))), n(this, D, (o(this, _e), o(this, ye, !1))), this._now = (o(this, ve), null), this._language = new it(this);
|
|
127
128
|
}
|
|
128
129
|
/** The trip Prop. */
|
|
129
130
|
get trip() {
|
|
130
|
-
return
|
|
131
|
+
return _(this, I);
|
|
131
132
|
}
|
|
132
133
|
set trip(a) {
|
|
133
|
-
|
|
134
|
+
n(this, I, a);
|
|
134
135
|
}
|
|
135
136
|
/** The price Prop, which consists of the data for the badge. */
|
|
136
137
|
get price() {
|
|
137
|
-
return
|
|
138
|
+
return _(this, z);
|
|
138
139
|
}
|
|
139
140
|
set price(a) {
|
|
140
|
-
|
|
141
|
+
n(this, z, a);
|
|
141
142
|
}
|
|
142
143
|
/** This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated. */
|
|
143
144
|
get disableAnimation() {
|
|
144
|
-
return
|
|
145
|
+
return _(this, L);
|
|
145
146
|
}
|
|
146
147
|
set disableAnimation(a) {
|
|
147
|
-
|
|
148
|
+
n(this, L, a);
|
|
148
149
|
}
|
|
149
150
|
/** This will be forwarded to the notices section */
|
|
150
151
|
get boarding() {
|
|
151
|
-
return
|
|
152
|
+
return _(this, M);
|
|
152
153
|
}
|
|
153
154
|
set boarding(a) {
|
|
154
|
-
|
|
155
|
+
n(this, M, a);
|
|
155
156
|
}
|
|
156
157
|
/**
|
|
157
158
|
* The loading state -
|
|
158
159
|
* when this is true it will be render skeleton with an idling animation
|
|
159
160
|
*/
|
|
160
161
|
get loadingTrip() {
|
|
161
|
-
return
|
|
162
|
+
return _(this, O);
|
|
162
163
|
}
|
|
163
164
|
set loadingTrip(a) {
|
|
164
|
-
|
|
165
|
+
n(this, O, a);
|
|
165
166
|
}
|
|
166
167
|
/**
|
|
167
168
|
* The Footpath attribute for rendering different icons
|
|
@@ -170,62 +171,62 @@ let Ht = (() => {
|
|
|
170
171
|
* default: render walk-icon
|
|
171
172
|
*/
|
|
172
173
|
get a11yFootpath() {
|
|
173
|
-
return
|
|
174
|
+
return _(this, P);
|
|
174
175
|
}
|
|
175
176
|
set a11yFootpath(a) {
|
|
176
|
-
|
|
177
|
+
n(this, P, a);
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
179
180
|
* The loading state -
|
|
180
181
|
* when this is true it will be render skeleton with an idling animation
|
|
181
182
|
*/
|
|
182
183
|
get loadingPrice() {
|
|
183
|
-
return
|
|
184
|
+
return _(this, F);
|
|
184
185
|
}
|
|
185
186
|
set loadingPrice(a) {
|
|
186
|
-
|
|
187
|
+
n(this, F, a);
|
|
187
188
|
}
|
|
188
189
|
/**
|
|
189
190
|
* Hidden label for the card action. It overrides the automatically generated accessibility text for the component. Use this prop to provide custom accessibility information for the component.
|
|
190
191
|
*/
|
|
191
192
|
get cardActionLabel() {
|
|
192
|
-
return
|
|
193
|
+
return _(this, R);
|
|
193
194
|
}
|
|
194
195
|
set cardActionLabel(a) {
|
|
195
|
-
|
|
196
|
+
n(this, R, a);
|
|
196
197
|
}
|
|
197
198
|
/** This will be forwarded to the sbb-card component as aria-expanded. */
|
|
198
199
|
get accessibilityExpanded() {
|
|
199
|
-
return
|
|
200
|
+
return _(this, q);
|
|
200
201
|
}
|
|
201
202
|
set accessibilityExpanded(a) {
|
|
202
|
-
|
|
203
|
+
n(this, q, a);
|
|
203
204
|
}
|
|
204
205
|
/** When this prop is true the sbb-card will be in the active state. */
|
|
205
206
|
get active() {
|
|
206
|
-
return
|
|
207
|
+
return _(this, D);
|
|
207
208
|
}
|
|
208
209
|
set active(a) {
|
|
209
|
-
|
|
210
|
+
n(this, D, a);
|
|
210
211
|
}
|
|
211
212
|
/**
|
|
212
213
|
* A configured date which acts as the current date instead of the real current date.
|
|
213
214
|
* Only recommended for testing purposes.
|
|
214
215
|
*/
|
|
215
216
|
set now(a) {
|
|
216
|
-
this._now =
|
|
217
|
+
this._now = Ce.getValidDateOrNull(Ce.deserialize(a));
|
|
217
218
|
}
|
|
218
219
|
get now() {
|
|
219
220
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
220
221
|
}
|
|
221
222
|
willUpdate(a) {
|
|
222
|
-
super.willUpdate(a), a.has("loadingTrip") &&
|
|
223
|
+
super.willUpdate(a), a.has("loadingTrip") && st(this, "role", this.loadingTrip ? null : "rowgroup");
|
|
223
224
|
}
|
|
224
225
|
/** The skeleton render function for the loading state */
|
|
225
226
|
_renderSkeleton() {
|
|
226
|
-
return
|
|
227
|
+
return l`
|
|
227
228
|
<sbb-card class="sbb-loading sbb-card-spacing-4x-xxs">
|
|
228
|
-
${this.loadingPrice ?
|
|
229
|
+
${this.loadingPrice ? l`<div class="sbb-loading__badge" slot="badge"></div>` : g}
|
|
229
230
|
<div class="sbb-loading__wrapper">
|
|
230
231
|
<div class="sbb-loading__row"></div>
|
|
231
232
|
<div class="sbb-loading__row"></div>
|
|
@@ -235,14 +236,14 @@ let Ht = (() => {
|
|
|
235
236
|
`;
|
|
236
237
|
}
|
|
237
238
|
_getRideLegs() {
|
|
238
|
-
return this.trip?.legs?.filter((a) =>
|
|
239
|
+
return this.trip?.legs?.filter((a) => Ee(a)) ?? [];
|
|
239
240
|
}
|
|
240
241
|
_getQuayTypeStrings() {
|
|
241
242
|
if (!this.trip.summary?.product)
|
|
242
243
|
return null;
|
|
243
244
|
const a = this._getRideLegs(), r = this.trip.summary.product?.vehicleMode === "TRAIN" ? a[0].serviceJourney.quayTypeShortName || "" : a[0].serviceJourney.quayTypeName || "";
|
|
244
245
|
return {
|
|
245
|
-
long:
|
|
246
|
+
long: rt[this._language.current] + " " + r,
|
|
246
247
|
short: r
|
|
247
248
|
};
|
|
248
249
|
}
|
|
@@ -251,7 +252,7 @@ let Ht = (() => {
|
|
|
251
252
|
if (!this.trip.summary?.product)
|
|
252
253
|
return;
|
|
253
254
|
const a = this._getQuayTypeStrings();
|
|
254
|
-
return
|
|
255
|
+
return l`
|
|
255
256
|
<span class="sbb-timetable__row--quay">
|
|
256
257
|
<span class="sbb-screen-reader-only">${a?.long} </span>
|
|
257
258
|
<span class="sbb-timetable__row--quay-type" aria-hidden="true"
|
|
@@ -261,41 +262,41 @@ let Ht = (() => {
|
|
|
261
262
|
`;
|
|
262
263
|
}
|
|
263
264
|
_handleHimCus(a) {
|
|
264
|
-
const { situations: e } = a || {}, r = e &&
|
|
265
|
+
const { situations: e } = a || {}, r = e && ft(e), w = vt(a, this._language.current);
|
|
265
266
|
return {
|
|
266
267
|
cus: Object.keys(w)?.length ? w : null,
|
|
267
|
-
him: e?.length ?
|
|
268
|
+
him: e?.length ? yt(r[0]) : null
|
|
268
269
|
};
|
|
269
270
|
}
|
|
270
271
|
_getAccessibilityText(a) {
|
|
271
|
-
const { summary: e, legs: r, notices: w } = a || {}, { departureWalk:
|
|
272
|
+
const { summary: e, legs: r, notices: w } = a || {}, { departureWalk: b, arrivalWalk: W, departure: k, arrival: $, product: x, direction: H, occupancy: h, duration: T } = e || {}, { departureTimeAttribute: m, arrivalTimeAttribute: B } = pt(r, b || 0, W || 0, this._language.current, this.a11yFootpath), A = this._getRideLegs(), E = k?.time ? Pe(k.time) : void 0, U = $?.time ? Pe($.time) : void 0, Q = m ? `${m.text} ${m.duration}, ` : "", Ue = B ? `${B.text} ${B.duration}, ` : "", We = E ? `${ke[this._language.current]}: ${Re(E, "HH:mm")}, ` : "", je = () => k?.quayFormatted ? `${k?.quayChanged ? `${Oe[this._language.current]} ` : ""}${this._getQuayTypeStrings()?.long} ${k?.quayFormatted}, ` : "", Je = x && x.vehicleMode ? J[x.vehicleMode.toLowerCase()] && `${J[x.vehicleMode.toLowerCase()][this._language.current]}, ` : "", He = x?.vehicleSubModeShortName ? `${x.vehicleSubModeShortName} ${x.line || ""}, ` : "", Qe = `${Ne[this._language.current]} ${H}, `, j = this._handleHimCus(a), we = j?.cus?.text ? `${Se[this._language.current]}: ${j?.cus?.text}, ` : "", Ke = j?.him?.text ? `${Se[this._language.current]}: ${j?.him?.text}, ` : "", Ye = this.boarding ? `${this.boarding.text}, ` : "", Xe = `${this.price?.isDiscount ? Ie[this._language.current] : ""} ${this.price?.text && this.price?.price ? (this.price?.text || "") + " " + (this.price?.price || "") + ", " : ""}`, Ze = A.length > 2 ? `${A.length - 1} ${nt[this._language.current]}, ` : A.length > 1 ? `${A.length - 1} ${ot[this._language.current]}, ` : "", Ge = U ? `${lt[this._language.current]}: ${Re(U, "HH:mm")}, ` : "";
|
|
272
273
|
let K = "";
|
|
273
|
-
|
|
274
|
-
const
|
|
274
|
+
h && (h.firstClass && h.firstClass !== "UNKNOWN" && (K += `${ze.first[this._language.current]} ${Le[h.firstClass.toLowerCase()]?.[this._language.current]}.`), h.secondClass && h.secondClass !== "UNKNOWN" && (K += ` ${ze.second[this._language.current]} ${Le[h.secondClass.toLowerCase()]?.[this._language.current]}.`));
|
|
275
|
+
const $e = w && Y(w).length && Y(w)?.map((N, tt) => tt < 4 && N.text?.template).join(", ") + ", ", Ve = $e ? `${ct[this._language.current]}: ${$e}` : "", et = T && T > 0 ? `${Me[this._language.current]} ${Fe(T, this._language.current).long}, ` : "";
|
|
275
276
|
return [
|
|
276
277
|
Q,
|
|
278
|
+
We,
|
|
279
|
+
je(),
|
|
280
|
+
Je,
|
|
281
|
+
He,
|
|
277
282
|
Qe,
|
|
278
|
-
|
|
283
|
+
we,
|
|
279
284
|
Ye,
|
|
280
285
|
Xe,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
286
|
+
we ? "" : Ke,
|
|
287
|
+
Ge,
|
|
288
|
+
Ue,
|
|
284
289
|
et,
|
|
285
|
-
|
|
286
|
-
at,
|
|
287
|
-
He,
|
|
288
|
-
st,
|
|
289
|
-
tt,
|
|
290
|
+
Ze,
|
|
290
291
|
K,
|
|
291
|
-
|
|
292
|
-
].map((
|
|
292
|
+
Ve
|
|
293
|
+
].map((N) => N?.trim()).filter((N) => N && N.length > 0).join(" ");
|
|
293
294
|
}
|
|
294
295
|
render() {
|
|
295
296
|
if (this.loadingTrip)
|
|
296
297
|
return this._renderSkeleton();
|
|
297
|
-
const { legs: a, id: e, notices: r, summary: w } = this.trip || {}, { product:
|
|
298
|
-
return
|
|
298
|
+
const { legs: a, id: e, notices: r, summary: w } = this.trip || {}, { product: b, direction: W, departureWalk: k, departure: $, arrival: x, arrivalWalk: H, occupancy: h, duration: T } = w || {}, m = this._handleHimCus(this.trip), B = !!m.cus || !!m.him, A = r && Y(r), E = T ? Fe(T, this._language.current) : null;
|
|
299
|
+
return l`
|
|
299
300
|
<sbb-card class="sbb-card-spacing-4x-xxs" id=${e}>
|
|
300
301
|
<sbb-card-button
|
|
301
302
|
?active=${this.active}
|
|
@@ -303,67 +304,67 @@ let Ht = (() => {
|
|
|
303
304
|
>
|
|
304
305
|
${this.cardActionLabel ? this.cardActionLabel : this._getAccessibilityText(this.trip)}
|
|
305
306
|
</sbb-card-button>
|
|
306
|
-
${this.loadingPrice ?
|
|
307
|
-
${this.price && !this.loadingPrice ?
|
|
308
|
-
${this.price.isDiscount ?
|
|
307
|
+
${this.loadingPrice ? l`<div class="sbb-loading__badge" slot="badge"></div>` : g}
|
|
308
|
+
${this.price && !this.loadingPrice ? l`<sbb-card-badge color=${this.price.isDiscount ? "charcoal" : "white"}>
|
|
309
|
+
${this.price.isDiscount ? l`<span aria-hidden="true">
|
|
309
310
|
%<span class="sbb-screen-reader-only"
|
|
310
|
-
>${
|
|
311
|
+
>${Ie[this._language.current]}</span
|
|
311
312
|
>
|
|
312
313
|
</span>` : g}
|
|
313
|
-
${this.price.text ?
|
|
314
|
-
${this.price.price ?
|
|
314
|
+
${this.price.text ? l`<span>${this.price.text}</span>` : g}
|
|
315
|
+
${this.price.price ? l`<span>${this.price.price}</span>` : g}
|
|
315
316
|
</sbb-card-badge>` : g}
|
|
316
317
|
<div class="sbb-timetable__row" role="row">
|
|
317
318
|
<div class="sbb-timetable__row-header" role="gridcell">
|
|
318
319
|
<div class="sbb-timetable__row-details">
|
|
319
|
-
${
|
|
320
|
+
${b?.corporateIdentityPictogram && l`<span class="sbb-timetable__row-transport-wrapper">
|
|
320
321
|
<sbb-icon
|
|
321
322
|
class="sbb-timetable__row-transport-icon"
|
|
322
|
-
name="picto:${
|
|
323
|
+
name="picto:${b.corporateIdentityPictogram}"
|
|
323
324
|
></sbb-icon>
|
|
324
325
|
<span class="sbb-screen-reader-only">
|
|
325
|
-
${
|
|
326
|
+
${b && b.vehicleMode && J[b.vehicleMode.toLowerCase()] && J[b.vehicleMode.toLowerCase()][this._language.current]}
|
|
326
327
|
|
|
327
328
|
</span>
|
|
328
329
|
</span>`}
|
|
329
|
-
${
|
|
330
|
+
${b && (b.corporateIdentityIcon ? ut(b.corporateIdentityIcon, b.name) : b.vehicleSubModeShortName && mt(b.vehicleSubModeShortName, b?.line))}
|
|
330
331
|
</div>
|
|
331
|
-
${W ?
|
|
332
|
+
${W ? l`<p>${`${Ne[this._language.current]} ${W}`}</p>` : g}
|
|
332
333
|
</div>
|
|
333
334
|
<sbb-pearl-chain-time
|
|
334
335
|
role="gridcell"
|
|
335
336
|
.legs=${a}
|
|
336
337
|
.departureTime=${$?.time}
|
|
337
338
|
.arrivalTime=${x?.time}
|
|
338
|
-
.departureWalk=${
|
|
339
|
+
.departureWalk=${k}
|
|
339
340
|
.arrivalWalk=${H}
|
|
340
341
|
?disable-animation=${this.disableAnimation}
|
|
341
342
|
?a11y-footpath=${this.a11yFootpath}
|
|
342
343
|
.now=${this.now}
|
|
343
344
|
></sbb-pearl-chain-time>
|
|
344
345
|
<div class="sbb-timetable__row-footer" role="gridcell">
|
|
345
|
-
${
|
|
346
|
+
${b && $?.quayFormatted ? l`<span
|
|
346
347
|
class=${$?.quayChanged ? "sbb-timetable__row-quay--changed" : g}
|
|
347
348
|
>
|
|
348
349
|
<span class="sbb-screen-reader-only">
|
|
349
|
-
${`${
|
|
350
|
+
${`${ke[this._language.current]} ${$?.quayChanged ? Oe[this._language.current] : ""}`}
|
|
350
351
|
|
|
351
352
|
</span>
|
|
352
353
|
${this._renderQuayType()} ${$?.quayFormatted}
|
|
353
354
|
</span>` : g}
|
|
354
|
-
${
|
|
355
|
-
.firstClassOccupancy=${
|
|
356
|
-
.secondClassOccupancy=${
|
|
355
|
+
${h?.firstClass && h?.firstClass !== "UNKNOWN" || h?.secondClass && h.secondClass !== "UNKNOWN" ? l`<sbb-timetable-occupancy
|
|
356
|
+
.firstClassOccupancy=${h?.firstClass?.toLowerCase()}
|
|
357
|
+
.secondClassOccupancy=${h?.secondClass?.toLowerCase()}
|
|
357
358
|
></sbb-timetable-occupancy>` : g}
|
|
358
|
-
${A && A.length || this.boarding ?
|
|
359
|
-
${A?.map((U, Q) => Q < 4 ?
|
|
359
|
+
${A && A.length || this.boarding ? l`<ul class="sbb-timetable__row-hints" role="list">
|
|
360
|
+
${A?.map((U, Q) => Q < 4 ? l`<li>
|
|
360
361
|
<sbb-icon
|
|
361
362
|
class="sbb-travel-hints__item"
|
|
362
363
|
name=${"sa-" + U.name?.toLowerCase()}
|
|
363
364
|
></sbb-icon>
|
|
364
365
|
<span class="sbb-screen-reader-only">${U.text?.template}</span>
|
|
365
366
|
</li>` : g)}
|
|
366
|
-
${this.boarding ?
|
|
367
|
+
${this.boarding ? l`<li>
|
|
367
368
|
<sbb-icon
|
|
368
369
|
class="sbb-travel-hints__item"
|
|
369
370
|
name=${this.boarding?.name}
|
|
@@ -372,13 +373,13 @@ let Ht = (() => {
|
|
|
372
373
|
></sbb-icon>
|
|
373
374
|
</li>` : g}
|
|
374
375
|
</ul>` : g}
|
|
375
|
-
${T && T > 0 ?
|
|
376
|
+
${T && T > 0 ? l`<time>
|
|
376
377
|
<span class="sbb-screen-reader-only">
|
|
377
|
-
${`${
|
|
378
|
+
${`${Me[this._language.current]} ${E.long}`}
|
|
378
379
|
</span>
|
|
379
|
-
<span aria-hidden="true">${
|
|
380
|
+
<span aria-hidden="true">${E.short}</span>
|
|
380
381
|
</time>` : g}
|
|
381
|
-
${
|
|
382
|
+
${B && (m.cus || m.him) ? l`<span class="sbb-timetable__row-warning">
|
|
382
383
|
<sbb-icon name=${(m.cus || m.him).name}></sbb-icon>
|
|
383
384
|
<span class="sbb-screen-reader-only">${(m.cus || m.him).text}</span>
|
|
384
385
|
</span>` : g}
|
|
@@ -387,40 +388,40 @@ let Ht = (() => {
|
|
|
387
388
|
</sbb-card>
|
|
388
389
|
`;
|
|
389
390
|
}
|
|
390
|
-
}, I = new WeakMap(), z = new WeakMap(), L = new WeakMap(),
|
|
391
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
392
|
-
|
|
391
|
+
}, I = new WeakMap(), z = new WeakMap(), L = new WeakMap(), M = new WeakMap(), O = new WeakMap(), P = new WeakMap(), F = new WeakMap(), R = new WeakMap(), q = new WeakMap(), D = new WeakMap(), (() => {
|
|
392
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(t[Symbol.metadata] ?? null) : void 0;
|
|
393
|
+
s = [v({ type: Object })], u = [v({ type: Object })], Z = [S(), v({ attribute: "disable-animation", reflect: !0, type: Boolean })], ee = [v({ type: Object })], ie = [S(), v({ attribute: "loading-trip", type: Boolean })], ne = [S(), v({ attribute: "a11y-footpath", type: Boolean })], ce = [S(), v({ attribute: "loading-price", type: Boolean })], ge = [S(), v({ attribute: "card-action-label" })], ue = [S(), v({ attribute: "accessibility-expanded", type: Boolean })], fe = [S(), v({ type: Boolean })], xe = [v()], y(c, null, s, { kind: "accessor", name: "trip", static: !1, private: !1, access: { has: (e) => "trip" in e, get: (e) => e.trip, set: (e, r) => {
|
|
393
394
|
e.trip = r;
|
|
394
|
-
} }, metadata: a },
|
|
395
|
+
} }, metadata: a }, d, p), y(c, null, u, { kind: "accessor", name: "price", static: !1, private: !1, access: { has: (e) => "price" in e, get: (e) => e.price, set: (e, r) => {
|
|
395
396
|
e.price = r;
|
|
396
|
-
} }, metadata: a },
|
|
397
|
+
} }, metadata: a }, C, X), y(c, null, Z, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, r) => {
|
|
397
398
|
e.disableAnimation = r;
|
|
398
|
-
} }, metadata: a },
|
|
399
|
+
} }, metadata: a }, G, V), y(c, null, ee, { kind: "accessor", name: "boarding", static: !1, private: !1, access: { has: (e) => "boarding" in e, get: (e) => e.boarding, set: (e, r) => {
|
|
399
400
|
e.boarding = r;
|
|
400
|
-
} }, metadata: a },
|
|
401
|
+
} }, metadata: a }, te, ae), y(c, null, ie, { kind: "accessor", name: "loadingTrip", static: !1, private: !1, access: { has: (e) => "loadingTrip" in e, get: (e) => e.loadingTrip, set: (e, r) => {
|
|
401
402
|
e.loadingTrip = r;
|
|
402
|
-
} }, metadata: a },
|
|
403
|
+
} }, metadata: a }, se, re), y(c, null, ne, { kind: "accessor", name: "a11yFootpath", static: !1, private: !1, access: { has: (e) => "a11yFootpath" in e, get: (e) => e.a11yFootpath, set: (e, r) => {
|
|
403
404
|
e.a11yFootpath = r;
|
|
404
|
-
} }, metadata: a },
|
|
405
|
+
} }, metadata: a }, oe, le), y(c, null, ce, { kind: "accessor", name: "loadingPrice", static: !1, private: !1, access: { has: (e) => "loadingPrice" in e, get: (e) => e.loadingPrice, set: (e, r) => {
|
|
405
406
|
e.loadingPrice = r;
|
|
406
|
-
} }, metadata: a },
|
|
407
|
+
} }, metadata: a }, de, be), y(c, null, ge, { kind: "accessor", name: "cardActionLabel", static: !1, private: !1, access: { has: (e) => "cardActionLabel" in e, get: (e) => e.cardActionLabel, set: (e, r) => {
|
|
407
408
|
e.cardActionLabel = r;
|
|
408
|
-
} }, metadata: a },
|
|
409
|
+
} }, metadata: a }, pe, he), y(c, null, ue, { kind: "accessor", name: "accessibilityExpanded", static: !1, private: !1, access: { has: (e) => "accessibilityExpanded" in e, get: (e) => e.accessibilityExpanded, set: (e, r) => {
|
|
409
410
|
e.accessibilityExpanded = r;
|
|
410
|
-
} }, metadata: a },
|
|
411
|
+
} }, metadata: a }, me, _e), y(c, null, fe, { kind: "accessor", name: "active", static: !1, private: !1, access: { has: (e) => "active" in e, get: (e) => e.active, set: (e, r) => {
|
|
411
412
|
e.active = r;
|
|
412
|
-
} }, metadata: a },
|
|
413
|
+
} }, metadata: a }, ye, ve), y(c, null, xe, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, r) => {
|
|
413
414
|
e.now = r;
|
|
414
|
-
} }, metadata: a }, null,
|
|
415
|
-
})(),
|
|
415
|
+
} }, metadata: a }, null, i), a && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
416
|
+
})(), c.elementName = "sbb-timetable-row", c.styles = [bt, ht], c;
|
|
416
417
|
})();
|
|
417
418
|
export {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
419
|
+
Ut as SbbTimetableRowElement,
|
|
420
|
+
wt as filterNotices,
|
|
421
|
+
vt as getCus,
|
|
422
|
+
yt as getHimIcon,
|
|
422
423
|
Y as handleNotices,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
ut as renderIconProduct,
|
|
425
|
+
mt as renderStringProduct,
|
|
426
|
+
ft as sortSituation
|
|
426
427
|
};
|
package/timetable-row.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { SbbTimetableRowElement as
|
|
1
|
+
import { SbbTimetableRowElement as e } from "./timetable-row/timetable-row.component.js";
|
|
2
|
+
import { filterNotices as i, getCus as n, getHimIcon as c, handleNotices as d, renderIconProduct as m, renderStringProduct as f, sortSituation as l } from "./timetable-row/timetable-row.component.js";
|
|
3
|
+
e.define();
|
|
2
4
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
e as SbbTimetableRowElement,
|
|
6
|
+
i as filterNotices,
|
|
7
|
+
n as getCus,
|
|
8
|
+
c as getHimIcon,
|
|
9
|
+
d as handleNotices,
|
|
10
|
+
m as renderIconProduct,
|
|
11
|
+
f as renderStringProduct,
|
|
12
|
+
l as sortSituation
|
|
11
13
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SbbTimetableRowElement as o, filterNotices as r, getCus as i, getHimIcon as n, handleNotices as c, renderIconProduct as d, renderStringProduct as l, sortSituation as m } from "./timetable-row/timetable-row.component.js";
|
|
2
|
+
export {
|
|
3
|
+
o as SbbTimetableRowElement,
|
|
4
|
+
r as filterNotices,
|
|
5
|
+
i as getCus,
|
|
6
|
+
n as getHimIcon,
|
|
7
|
+
c as handleNotices,
|
|
8
|
+
d as renderIconProduct,
|
|
9
|
+
l as renderStringProduct,
|
|
10
|
+
m as sortSituation
|
|
11
|
+
};
|