@sbb-esta/lyne-elements-experimental 4.10.0 → 5.0.0-next
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 +15 -18
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +6 -11
- 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-DkD9aFKc.js → autocomplete-grid-cell.component-BFzREPWp.js} +1 -2
- package/{autocomplete-grid-option.component-CtATJy7n.js → autocomplete-grid-option.component-DhmoLeEw.js} +5 -7
- package/{autocomplete-grid-row.component-6nJv5PMj.js → autocomplete-grid-row.component-BQxCxOI6.js} +1 -2
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/core/datetime/date-helper.js +1 -1
- package/core/timetable/access-leg-helper.js +27 -27
- package/core.js +5 -0
- package/custom-elements.json +226 -453
- package/{date-helper-CGproP5d.js → date-helper-CuMnZCsr.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 +3 -6
- 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 +3 -8
- 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 -1
- 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-Buvsof-Y.js +33 -0
- package/development/{autocomplete-grid-option.component-5mPGswUO.js → autocomplete-grid-option.component-B4SXR9_v.js} +3 -5
- package/development/{autocomplete-grid-row.component-DEm6zyHZ.js → autocomplete-grid-row.component-CY4UDuuj.js} +2 -3
- package/development/autocomplete-grid.js +3 -3
- 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-qNdwgC9O.js → date-helper-DGz-ztQM.js} +2 -2
- package/development/journey-summary/journey-summary.component.d.ts +4 -3
- 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-BZwgD4im.js → journey-summary.component-B9P1PAJv.js} +14 -12
- 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-B2_BI6E_.js → pearl-chain-time.component-DDnGnI77.js} +8 -10
- 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-DcmH13Vb.js → pearl-chain-vertical-item.component-CRh0l20F.js} +2 -4
- 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-Cmc3QXgd.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-oQZUzsyW.js → pearl-chain.component-Dl2RvtJo.js} +3 -7
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +1 -1
- 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 +2 -4
- 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 +2 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +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 +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 +1 -1
- 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-DbeuTnXT.js → seat-reservation-area.component-BQEtJhk0.js} +2 -4
- package/development/{seat-reservation-graphic.component-DlrHtlia.js → seat-reservation-graphic.component-XpqxL5nq.js} +7 -7
- package/development/{seat-reservation-navigation-coach.component-CjoDkcVU.js → seat-reservation-navigation-coach.component-DRCcI2ss.js} +5 -7
- package/development/{seat-reservation-navigation-services.component-CGel7__P.js → seat-reservation-navigation-services.component-ZNm77ZG-.js} +5 -7
- package/development/{seat-reservation-place-control.component-CM9efId7.js → seat-reservation-place-control.component-QF_px_in.js} +5 -6
- package/development/{seat-reservation-scoped.component-CFA_bJ3o.js → seat-reservation-scoped.component-X-Kq0-w5.js} +2 -3
- package/development/seat-reservation.component-C-ttTPW5.js +515 -0
- package/development/seat-reservation.js +9 -10
- 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 +8 -9
- 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-2JBYobDt.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-Binmks-o.js +732 -0
- package/development/timetable-row.js +1 -1
- package/development/timetable-row.pure.js +1 -1
- package/{format-CM5exOsN.js → format-DbUuNYFU.js} +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-DC7-qPHY.js → journey-summary.component-C7WPKx8k.js} +57 -55
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/{mapper-DkiDDseD.js → mapper-Cqie5ivY.js} +1 -1
- package/package.json +6 -81
- 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-CkKsrbgQ.js → pearl-chain-time.component-awU4lFdO.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-BUqZ-3Ay.js → pearl-chain-vertical-item.component-BynmUBXa.js} +3 -5
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-Df9CvRxo.js → pearl-chain-vertical.component-Lx47SlJU.js} +1 -2
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-CpISVoAu.js → pearl-chain.component-BAtmfmpA.js} +22 -26
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/common/mapper/mapper.js +1 -1
- package/seat-reservation/common/mapper.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +5 -7
- package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/{seat-reservation-area.component-CtYawDjE.js → seat-reservation-area.component-CVc6uuMG.js} +3 -5
- package/{seat-reservation-graphic.component-Cm_pVxaB.js → seat-reservation-graphic.component-Dzkv9tyR.js} +26 -26
- package/{seat-reservation-navigation-coach.component-sug9IBTH.js → seat-reservation-navigation-coach.component-CGfmiQJq.js} +51 -56
- package/{seat-reservation-navigation-services.component-C9dDYD_M.js → seat-reservation-navigation-services.component-DQviLWvy.js} +28 -33
- package/{seat-reservation-place-control.component-CE7d9M2b.js → seat-reservation-place-control.component-BYJi6aYS.js} +43 -47
- package/{seat-reservation-scoped.component-DVyP2JGE.js → seat-reservation-scoped.component-CdB7HYzl.js} +1 -2
- package/{seat-reservation.component-DajC6fqU.js → seat-reservation.component-DBtJhrR_.js} +115 -107
- package/seat-reservation.js +11 -12
- package/seat-reservation.pure.js +10 -11
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/{timetable-duration.component-BnJA8wSb.js → timetable-duration.component-PmvoOKVw.js} +6 -10
- 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-DbzBCpKR.js → timetable-row.component-BnmrhD2d.js} +120 -117
- 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/core/datetime.js +0 -2
- 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-BxkWGaX0.js +0 -34
- 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/pearl-chain-vertical.component-CpcNFl-x.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.component-DFJVFmrI.js +0 -510
- package/development/timetable-duration.component-BhFlqYbV.js +0 -100
- package/development/timetable-row.component-Dko8laRT.js +0 -729
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-
|
|
1
|
+
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-Binmks-o.js";
|
|
2
2
|
import "./timetable-row.pure.js";
|
|
3
3
|
//#region src/elements-experimental/timetable-row.ts
|
|
4
4
|
/** @entrypoint */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-
|
|
1
|
+
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-Binmks-o.js";
|
|
2
2
|
export { SbbTimetableRowElement, filterNotices, getCus, getHimIcon, handleNotices, renderIconProduct, renderStringProduct, sortSituation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../journey-summary.component-
|
|
1
|
+
import { t as e } from "../journey-summary.component-C7WPKx8k.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
|
@@ -1,41 +1,35 @@
|
|
|
1
|
-
import { t as e } from "./format-
|
|
1
|
+
import { t as e } from "./format-DbUuNYFU.js";
|
|
2
2
|
import { t } from "./isValid-B9oVW3lA.js";
|
|
3
3
|
import { __esDecorate as n, __runInitializers as r } from "tslib";
|
|
4
|
-
import { SbbElement as i } from "@sbb-esta/lyne-elements/core
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { property as p } from "lit/decorators.js";
|
|
12
|
-
import { durationToTime as m, removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
|
|
13
|
-
import "@sbb-esta/lyne-elements/divider.js";
|
|
14
|
-
import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
15
|
-
import "@sbb-esta/lyne-elements/journey-header.js";
|
|
16
|
-
import "./pearl-chain-time.js";
|
|
4
|
+
import { SbbElement as i, SbbLanguageController as a, SbbScreenReaderOnlyElement as o, boxSizingStyles as s, defaultDateAdapter as c, forceType as l, i18nTripDuration as u } from "@sbb-esta/lyne-elements/core.js";
|
|
5
|
+
import { html as d, nothing as f, unsafeCSS as p } from "lit";
|
|
6
|
+
import { SbbDividerElement as m } from "@sbb-esta/lyne-elements/divider.pure.js";
|
|
7
|
+
import { SbbJourneyHeaderElement as h } from "@sbb-esta/lyne-elements/journey-header.pure.js";
|
|
8
|
+
import { property as g } from "lit/decorators.js";
|
|
9
|
+
import { durationToTime as _, removeTimezoneFromISOTimeString as v } from "./core.js";
|
|
10
|
+
import { SbbPearlChainTimeElement as y } from "./pearl-chain-time.pure.js";
|
|
17
11
|
//#region src/elements-experimental/journey-summary/journey-summary.scss?inline
|
|
18
|
-
var
|
|
19
|
-
let
|
|
20
|
-
return class extends
|
|
12
|
+
var b = ":host{display:block}.sbb-journey-summary{--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);color:var(--sbb-color-4);display:flex;flex-direction:column}.sbb-journey-summary__via-block{display:flex}.sbb-journey-summary__vias{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-block:0;padding-inline-start:var(--sbb-spacing-fixed-1x)}.sbb-journey-summary__date{margin-block-end:var(--sbb-spacing-fixed-2x)}.sbb-journey-summary__via{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sbb-journey-summary__divider{margin-block:var(--sbb-spacing-fixed-6x)}ul li{list-style:none;display:inline}", x = (() => {
|
|
13
|
+
let x = i, S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V;
|
|
14
|
+
return class extends x {
|
|
21
15
|
constructor() {
|
|
22
|
-
super(...arguments), this.#e = (r(this,
|
|
16
|
+
super(...arguments), this.#e = (r(this, S), r(this, w, null)), this.#t = (r(this, T), r(this, D, null)), this.#n = (r(this, O), r(this, A, !1)), this.#r = (r(this, j), r(this, N, "3")), this.#i = (r(this, P), r(this, I, !1)), this.#a = (r(this, L), r(this, z, !1)), this._now = (r(this, B), null), this._hasContentSlot = !1, this._language = new a(this);
|
|
23
17
|
}
|
|
24
18
|
static {
|
|
25
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
26
|
-
|
|
19
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
20
|
+
C = [g({ type: Object })], E = [g({
|
|
27
21
|
attribute: "trip-back",
|
|
28
22
|
type: Object
|
|
29
|
-
})],
|
|
23
|
+
})], k = [l(), g({
|
|
30
24
|
attribute: "round-trip",
|
|
31
25
|
type: Boolean
|
|
32
|
-
})],
|
|
26
|
+
})], M = [g({ attribute: "header-level" })], F = [l(), g({
|
|
33
27
|
attribute: "disable-animation",
|
|
34
28
|
type: Boolean
|
|
35
|
-
})],
|
|
29
|
+
})], R = [l(), g({
|
|
36
30
|
attribute: "a11y-footpath",
|
|
37
31
|
type: Boolean
|
|
38
|
-
})],
|
|
32
|
+
})], V = [g()], n(this, null, C, {
|
|
39
33
|
kind: "accessor",
|
|
40
34
|
name: "trip",
|
|
41
35
|
static: !1,
|
|
@@ -48,7 +42,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
48
42
|
}
|
|
49
43
|
},
|
|
50
44
|
metadata: e
|
|
51
|
-
},
|
|
45
|
+
}, w, T), n(this, null, E, {
|
|
52
46
|
kind: "accessor",
|
|
53
47
|
name: "tripBack",
|
|
54
48
|
static: !1,
|
|
@@ -61,7 +55,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
61
55
|
}
|
|
62
56
|
},
|
|
63
57
|
metadata: e
|
|
64
|
-
},
|
|
58
|
+
}, D, O), n(this, null, k, {
|
|
65
59
|
kind: "accessor",
|
|
66
60
|
name: "roundTrip",
|
|
67
61
|
static: !1,
|
|
@@ -74,7 +68,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
74
68
|
}
|
|
75
69
|
},
|
|
76
70
|
metadata: e
|
|
77
|
-
},
|
|
71
|
+
}, A, j), n(this, null, M, {
|
|
78
72
|
kind: "accessor",
|
|
79
73
|
name: "headerLevel",
|
|
80
74
|
static: !1,
|
|
@@ -87,7 +81,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
87
81
|
}
|
|
88
82
|
},
|
|
89
83
|
metadata: e
|
|
90
|
-
},
|
|
84
|
+
}, N, P), n(this, null, F, {
|
|
91
85
|
kind: "accessor",
|
|
92
86
|
name: "disableAnimation",
|
|
93
87
|
static: !1,
|
|
@@ -100,7 +94,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
100
94
|
}
|
|
101
95
|
},
|
|
102
96
|
metadata: e
|
|
103
|
-
},
|
|
97
|
+
}, I, L), n(this, null, R, {
|
|
104
98
|
kind: "accessor",
|
|
105
99
|
name: "a11yFootpath",
|
|
106
100
|
static: !1,
|
|
@@ -113,7 +107,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
113
107
|
}
|
|
114
108
|
},
|
|
115
109
|
metadata: e
|
|
116
|
-
},
|
|
110
|
+
}, z, B), n(this, null, V, {
|
|
117
111
|
kind: "setter",
|
|
118
112
|
name: "now",
|
|
119
113
|
static: !1,
|
|
@@ -125,7 +119,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
125
119
|
}
|
|
126
120
|
},
|
|
127
121
|
metadata: e
|
|
128
|
-
}, null,
|
|
122
|
+
}, null, S), e && Object.defineProperty(this, Symbol.metadata, {
|
|
129
123
|
enumerable: !0,
|
|
130
124
|
configurable: !0,
|
|
131
125
|
writable: !0,
|
|
@@ -136,7 +130,15 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
136
130
|
this.elementName = "sbb-journey-summary";
|
|
137
131
|
}
|
|
138
132
|
static {
|
|
139
|
-
this.
|
|
133
|
+
this.elementDependencies = [
|
|
134
|
+
m,
|
|
135
|
+
h,
|
|
136
|
+
y,
|
|
137
|
+
o
|
|
138
|
+
];
|
|
139
|
+
}
|
|
140
|
+
static {
|
|
141
|
+
this.styles = [s, p(b)];
|
|
140
142
|
}
|
|
141
143
|
#e;
|
|
142
144
|
get trip() {
|
|
@@ -181,7 +183,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
181
183
|
this.#a = e;
|
|
182
184
|
}
|
|
183
185
|
set now(e) {
|
|
184
|
-
this._now =
|
|
186
|
+
this._now = c.getValidDateOrNull(c.deserialize(e));
|
|
185
187
|
}
|
|
186
188
|
get now() {
|
|
187
189
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
@@ -190,26 +192,26 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
190
192
|
super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
|
|
191
193
|
}
|
|
192
194
|
_renderJourneyStart(n, r) {
|
|
193
|
-
let i =
|
|
194
|
-
if (t(n)) return
|
|
195
|
+
let i = c, a = r ? _(r, this._language.current) : null;
|
|
196
|
+
if (t(n)) return d`
|
|
195
197
|
<time datetime=${e(n, "d") + " " + e(n, "M")}>
|
|
196
198
|
${i.format(n).replace(",", ".")}</time
|
|
197
|
-
>${r && r > 0 ?
|
|
199
|
+
>${r && r > 0 ? d`,<time>
|
|
198
200
|
<sbb-screen-reader-only>
|
|
199
|
-
${
|
|
201
|
+
${u[this._language.current]} ${a.long}
|
|
200
202
|
</sbb-screen-reader-only>
|
|
201
203
|
<span aria-hidden="true">${a.short}</span>
|
|
202
|
-
</time>` :
|
|
204
|
+
</time>` : f}
|
|
203
205
|
`;
|
|
204
206
|
}
|
|
205
207
|
_renderJourneyVias(e) {
|
|
206
208
|
let t = e.slice(0, 5);
|
|
207
|
-
return
|
|
209
|
+
return d`
|
|
208
210
|
<div class="sbb-journey-summary__via-block">
|
|
209
211
|
<span class="sbb-journey-summary__via-text">Via</span>
|
|
210
|
-
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" :
|
|
211
|
-
${t.map((e, n) =>
|
|
212
|
-
${e}${n !== t.length - 1 && n < 4 ?
|
|
212
|
+
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : f}>
|
|
213
|
+
${t.map((e, n) => d`<li class="sbb-journey-summary__via">
|
|
214
|
+
${e}${n !== t.length - 1 && n < 4 ? d`<span>,</span>` : f}
|
|
213
215
|
</li>`)}
|
|
214
216
|
</ul>
|
|
215
217
|
</div>
|
|
@@ -217,11 +219,11 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
217
219
|
}
|
|
218
220
|
_renderJourneyInformation(e) {
|
|
219
221
|
let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
|
|
220
|
-
return
|
|
222
|
+
return d`
|
|
221
223
|
<div>
|
|
222
|
-
${t && t.length > 0 ? this._renderJourneyVias(t) :
|
|
224
|
+
${t && t.length > 0 ? this._renderJourneyVias(t) : f}
|
|
223
225
|
<div class="sbb-journey-summary__date">
|
|
224
|
-
${this._renderJourneyStart(
|
|
226
|
+
${this._renderJourneyStart(v(i), n)}
|
|
225
227
|
</div>
|
|
226
228
|
<sbb-pearl-chain-time
|
|
227
229
|
.arrivalTime=${o}
|
|
@@ -238,27 +240,27 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
238
240
|
}
|
|
239
241
|
render() {
|
|
240
242
|
let { origin: e, destination: t } = this.trip || {};
|
|
241
|
-
return
|
|
243
|
+
return d`
|
|
242
244
|
<div class="sbb-journey-summary">
|
|
243
|
-
${e ?
|
|
245
|
+
${e ? d`<sbb-journey-header
|
|
244
246
|
size="l"
|
|
245
|
-
.level=${this.headerLevel ||
|
|
247
|
+
.level=${this.headerLevel || f}
|
|
246
248
|
.origin=${e}
|
|
247
249
|
.destination=${t}
|
|
248
|
-
.roundTrip=${this.roundTrip ??
|
|
249
|
-
></sbb-journey-header>` :
|
|
250
|
+
.roundTrip=${this.roundTrip ?? f}
|
|
251
|
+
></sbb-journey-header>` : f}
|
|
250
252
|
${this._renderJourneyInformation(this.trip)}
|
|
251
|
-
${this.tripBack ?
|
|
253
|
+
${this.tripBack ? d`<div>
|
|
252
254
|
<sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
|
|
253
255
|
${this._renderJourneyInformation(this.tripBack)}
|
|
254
|
-
</div>` :
|
|
255
|
-
${this._hasContentSlot ?
|
|
256
|
+
</div>` : f}
|
|
257
|
+
${this._hasContentSlot ? d` <div class="sbb-journey-summary__slot">
|
|
256
258
|
<slot name="content"></slot>
|
|
257
|
-
</div>` :
|
|
259
|
+
</div>` : f}
|
|
258
260
|
</div>
|
|
259
261
|
`;
|
|
260
262
|
}
|
|
261
263
|
};
|
|
262
264
|
})();
|
|
263
265
|
//#endregion
|
|
264
|
-
export {
|
|
266
|
+
export { x as t };
|
package/journey-summary.js
CHANGED
package/journey-summary.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./journey-summary.component-
|
|
1
|
+
import { t as e } from "./journey-summary.component-C7WPKx8k.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
|
@@ -11291,7 +11291,7 @@ function i(i, a) {
|
|
|
11291
11291
|
return i === null ? a === "LOWER_DECK" ? t : a === "UPPER_DECK" ? n : r : i === "TRAIN" ? r : e;
|
|
11292
11292
|
}
|
|
11293
11293
|
var a = (e, t = null) => {
|
|
11294
|
-
let n = i(e, t), r = t === "LOWER_DECK"
|
|
11294
|
+
let n = i(e, t), r = +(t === "LOWER_DECK"), a = n.map((e) => {
|
|
11295
11295
|
let t = e?.coachDeckLayout, n = [], r = [], i = t.placeGroups.map((e) => (n.indexOf(e.travelClass) === -1 && n.push(e.travelClass), r.indexOf(e.accommodationSubType) === -1 && r.push(e.accommodationSubType), e.places?.map((t) => ({
|
|
11296
11296
|
number: t?.number,
|
|
11297
11297
|
state: t?.state,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-next",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -43,45 +43,10 @@
|
|
|
43
43
|
"development": "./development/autocomplete-grid.pure.js",
|
|
44
44
|
"default": "./autocomplete-grid.pure.js"
|
|
45
45
|
},
|
|
46
|
-
"./
|
|
47
|
-
"types": "./development/
|
|
48
|
-
"development": "./development/
|
|
49
|
-
"default": "./
|
|
50
|
-
},
|
|
51
|
-
"./autocomplete-grid/autocomplete-grid-button.js": {
|
|
52
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-button.d.ts",
|
|
53
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-button.js",
|
|
54
|
-
"default": "./autocomplete-grid/autocomplete-grid-button.js"
|
|
55
|
-
},
|
|
56
|
-
"./autocomplete-grid/autocomplete-grid-cell.js": {
|
|
57
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-cell.d.ts",
|
|
58
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-cell.js",
|
|
59
|
-
"default": "./autocomplete-grid/autocomplete-grid-cell.js"
|
|
60
|
-
},
|
|
61
|
-
"./autocomplete-grid/autocomplete-grid-optgroup.js": {
|
|
62
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-optgroup.d.ts",
|
|
63
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-optgroup.js",
|
|
64
|
-
"default": "./autocomplete-grid/autocomplete-grid-optgroup.js"
|
|
65
|
-
},
|
|
66
|
-
"./autocomplete-grid/autocomplete-grid-option.js": {
|
|
67
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-option.d.ts",
|
|
68
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-option.js",
|
|
69
|
-
"default": "./autocomplete-grid/autocomplete-grid-option.js"
|
|
70
|
-
},
|
|
71
|
-
"./autocomplete-grid/autocomplete-grid-row.js": {
|
|
72
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-row.d.ts",
|
|
73
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-row.js",
|
|
74
|
-
"default": "./autocomplete-grid/autocomplete-grid-row.js"
|
|
75
|
-
},
|
|
76
|
-
"./core/datetime.js": {
|
|
77
|
-
"types": "./development/core/datetime.d.ts",
|
|
78
|
-
"development": "./development/core/datetime.js",
|
|
79
|
-
"default": "./core/datetime.js"
|
|
80
|
-
},
|
|
81
|
-
"./core/timetable.js": {
|
|
82
|
-
"types": "./development/core/timetable.d.ts",
|
|
83
|
-
"development": "./development/core/timetable.js",
|
|
84
|
-
"default": "./core/timetable.js"
|
|
46
|
+
"./core.js": {
|
|
47
|
+
"types": "./development/core.d.ts",
|
|
48
|
+
"development": "./development/core.js",
|
|
49
|
+
"default": "./core.js"
|
|
85
50
|
},
|
|
86
51
|
"./journey-summary.js": {
|
|
87
52
|
"types": "./development/journey-summary.d.ts",
|
|
@@ -143,46 +108,6 @@
|
|
|
143
108
|
"development": "./development/seat-reservation.pure.js",
|
|
144
109
|
"default": "./seat-reservation.pure.js"
|
|
145
110
|
},
|
|
146
|
-
"./seat-reservation/common.js": {
|
|
147
|
-
"types": "./development/seat-reservation/common.d.ts",
|
|
148
|
-
"development": "./development/seat-reservation/common.js",
|
|
149
|
-
"default": "./seat-reservation/common.js"
|
|
150
|
-
},
|
|
151
|
-
"./seat-reservation/seat-reservation.js": {
|
|
152
|
-
"types": "./development/seat-reservation/seat-reservation.d.ts",
|
|
153
|
-
"development": "./development/seat-reservation/seat-reservation.js",
|
|
154
|
-
"default": "./seat-reservation/seat-reservation.js"
|
|
155
|
-
},
|
|
156
|
-
"./seat-reservation/seat-reservation-area.js": {
|
|
157
|
-
"types": "./development/seat-reservation/seat-reservation-area.d.ts",
|
|
158
|
-
"development": "./development/seat-reservation/seat-reservation-area.js",
|
|
159
|
-
"default": "./seat-reservation/seat-reservation-area.js"
|
|
160
|
-
},
|
|
161
|
-
"./seat-reservation/seat-reservation-graphic.js": {
|
|
162
|
-
"types": "./development/seat-reservation/seat-reservation-graphic.d.ts",
|
|
163
|
-
"development": "./development/seat-reservation/seat-reservation-graphic.js",
|
|
164
|
-
"default": "./seat-reservation/seat-reservation-graphic.js"
|
|
165
|
-
},
|
|
166
|
-
"./seat-reservation/seat-reservation-navigation-coach.js": {
|
|
167
|
-
"types": "./development/seat-reservation/seat-reservation-navigation-coach.d.ts",
|
|
168
|
-
"development": "./development/seat-reservation/seat-reservation-navigation-coach.js",
|
|
169
|
-
"default": "./seat-reservation/seat-reservation-navigation-coach.js"
|
|
170
|
-
},
|
|
171
|
-
"./seat-reservation/seat-reservation-navigation-services.js": {
|
|
172
|
-
"types": "./development/seat-reservation/seat-reservation-navigation-services.d.ts",
|
|
173
|
-
"development": "./development/seat-reservation/seat-reservation-navigation-services.js",
|
|
174
|
-
"default": "./seat-reservation/seat-reservation-navigation-services.js"
|
|
175
|
-
},
|
|
176
|
-
"./seat-reservation/seat-reservation-place-control.js": {
|
|
177
|
-
"types": "./development/seat-reservation/seat-reservation-place-control.d.ts",
|
|
178
|
-
"development": "./development/seat-reservation/seat-reservation-place-control.js",
|
|
179
|
-
"default": "./seat-reservation/seat-reservation-place-control.js"
|
|
180
|
-
},
|
|
181
|
-
"./seat-reservation/seat-reservation-scoped.js": {
|
|
182
|
-
"types": "./development/seat-reservation/seat-reservation-scoped.d.ts",
|
|
183
|
-
"development": "./development/seat-reservation/seat-reservation-scoped.js",
|
|
184
|
-
"default": "./seat-reservation/seat-reservation-scoped.js"
|
|
185
|
-
},
|
|
186
111
|
"./timetable-duration.js": {
|
|
187
112
|
"types": "./development/timetable-duration.d.ts",
|
|
188
113
|
"development": "./development/timetable-duration.js",
|
|
@@ -206,7 +131,7 @@
|
|
|
206
131
|
},
|
|
207
132
|
"customElements": "custom-elements.json",
|
|
208
133
|
"peerDependencies": {
|
|
209
|
-
"@sbb-esta/lyne-elements": "
|
|
134
|
+
"@sbb-esta/lyne-elements": "5.0.0-next"
|
|
210
135
|
},
|
|
211
136
|
"dependencies": {
|
|
212
137
|
"lit": "^3.3.2",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain.component-
|
|
1
|
+
import { t as e } from "../pearl-chain.component-BAtmfmpA.js";
|
|
2
2
|
export { e as SbbPearlChainElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain-time.component-
|
|
1
|
+
import { t as e } from "../pearl-chain-time.component-awU4lFdO.js";
|
|
2
2
|
export { e as SbbPearlChainTimeElement };
|
|
@@ -1,38 +1,33 @@
|
|
|
1
|
-
import { t as e } from "./format-
|
|
1
|
+
import { t as e } from "./format-DbUuNYFU.js";
|
|
2
2
|
import { __esDecorate as t, __runInitializers as n } from "tslib";
|
|
3
|
-
import { SbbElement as r } from "@sbb-esta/lyne-elements/core
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { i18nArrival as d, i18nDeparture as f, i18nTransferProcedures as p } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
10
|
-
import { property as m } from "lit/decorators.js";
|
|
11
|
-
import { removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
|
|
12
|
-
import { getDepartureArrivalTimeAttribute as g, isRideLeg as _ } from "./core/timetable.js";
|
|
13
|
-
import "./pearl-chain.js";
|
|
3
|
+
import { SbbElement as r, SbbLanguageController as i, boxSizingStyles as a, defaultDateAdapter as o, forceType as s, i18nArrival as c, i18nDeparture as l, i18nTransferProcedures as u } from "@sbb-esta/lyne-elements/core.js";
|
|
4
|
+
import { SbbIconElement as d } from "@sbb-esta/lyne-elements/icon.pure.js";
|
|
5
|
+
import { html as f, nothing as p, unsafeCSS as m } from "lit";
|
|
6
|
+
import { property as h } from "lit/decorators.js";
|
|
7
|
+
import { getDepartureArrivalTimeAttribute as g, isRideLeg as _, removeTimezoneFromISOTimeString as v } from "./core.js";
|
|
8
|
+
import { SbbPearlChainElement as y } from "./pearl-chain.pure.js";
|
|
14
9
|
//#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
|
|
15
|
-
var
|
|
16
|
-
let
|
|
17
|
-
return class extends
|
|
10
|
+
var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);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:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-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;color:var(--sbb-color-2)}.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}", x = (() => {
|
|
11
|
+
let x = r, S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V, H = [], U = [], W;
|
|
12
|
+
return class extends x {
|
|
18
13
|
constructor() {
|
|
19
|
-
super(...arguments), this.#e = (n(this,
|
|
14
|
+
super(...arguments), this.#e = (n(this, S), n(this, w, [])), this.#t = (n(this, T), n(this, D, "")), this.#n = (n(this, O), n(this, A, "")), this.#r = (n(this, j), n(this, N, NaN)), this.#i = (n(this, P), n(this, I, NaN)), this.#a = (n(this, L), n(this, z, !1)), this.#o = (n(this, B), n(this, H, !1)), this._now = (n(this, U), null), this._language = new i(this);
|
|
20
15
|
}
|
|
21
16
|
static {
|
|
22
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
23
|
-
|
|
17
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
18
|
+
C = [h({ type: Array })], E = [s(), h({ attribute: "departure-time" })], k = [s(), h({ attribute: "arrival-time" })], M = [s(), h({
|
|
24
19
|
attribute: "departure-walk",
|
|
25
20
|
type: Number
|
|
26
|
-
})],
|
|
21
|
+
})], F = [s(), h({
|
|
27
22
|
attribute: "arrival-walk",
|
|
28
23
|
type: Number
|
|
29
|
-
})],
|
|
24
|
+
})], R = [s(), h({
|
|
30
25
|
attribute: "disable-animation",
|
|
31
26
|
type: Boolean
|
|
32
|
-
})],
|
|
27
|
+
})], V = [s(), h({
|
|
33
28
|
attribute: "a11y-footpath",
|
|
34
29
|
type: Boolean
|
|
35
|
-
})],
|
|
30
|
+
})], W = [h()], t(this, null, C, {
|
|
36
31
|
kind: "accessor",
|
|
37
32
|
name: "legs",
|
|
38
33
|
static: !1,
|
|
@@ -45,7 +40,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
45
40
|
}
|
|
46
41
|
},
|
|
47
42
|
metadata: e
|
|
48
|
-
},
|
|
43
|
+
}, w, T), t(this, null, E, {
|
|
49
44
|
kind: "accessor",
|
|
50
45
|
name: "departureTime",
|
|
51
46
|
static: !1,
|
|
@@ -58,7 +53,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
58
53
|
}
|
|
59
54
|
},
|
|
60
55
|
metadata: e
|
|
61
|
-
},
|
|
56
|
+
}, D, O), t(this, null, k, {
|
|
62
57
|
kind: "accessor",
|
|
63
58
|
name: "arrivalTime",
|
|
64
59
|
static: !1,
|
|
@@ -71,7 +66,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
71
66
|
}
|
|
72
67
|
},
|
|
73
68
|
metadata: e
|
|
74
|
-
},
|
|
69
|
+
}, A, j), t(this, null, M, {
|
|
75
70
|
kind: "accessor",
|
|
76
71
|
name: "departureWalk",
|
|
77
72
|
static: !1,
|
|
@@ -84,7 +79,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
84
79
|
}
|
|
85
80
|
},
|
|
86
81
|
metadata: e
|
|
87
|
-
},
|
|
82
|
+
}, N, P), t(this, null, F, {
|
|
88
83
|
kind: "accessor",
|
|
89
84
|
name: "arrivalWalk",
|
|
90
85
|
static: !1,
|
|
@@ -97,7 +92,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
97
92
|
}
|
|
98
93
|
},
|
|
99
94
|
metadata: e
|
|
100
|
-
},
|
|
95
|
+
}, I, L), t(this, null, R, {
|
|
101
96
|
kind: "accessor",
|
|
102
97
|
name: "disableAnimation",
|
|
103
98
|
static: !1,
|
|
@@ -110,7 +105,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
110
105
|
}
|
|
111
106
|
},
|
|
112
107
|
metadata: e
|
|
113
|
-
},
|
|
108
|
+
}, z, B), t(this, null, V, {
|
|
114
109
|
kind: "accessor",
|
|
115
110
|
name: "a11yFootpath",
|
|
116
111
|
static: !1,
|
|
@@ -123,7 +118,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
123
118
|
}
|
|
124
119
|
},
|
|
125
120
|
metadata: e
|
|
126
|
-
},
|
|
121
|
+
}, H, U), t(this, null, W, {
|
|
127
122
|
kind: "setter",
|
|
128
123
|
name: "now",
|
|
129
124
|
static: !1,
|
|
@@ -135,7 +130,7 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
135
130
|
}
|
|
136
131
|
},
|
|
137
132
|
metadata: e
|
|
138
|
-
}, null,
|
|
133
|
+
}, null, S), e && Object.defineProperty(this, Symbol.metadata, {
|
|
139
134
|
enumerable: !0,
|
|
140
135
|
configurable: !0,
|
|
141
136
|
writable: !0,
|
|
@@ -146,7 +141,10 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
146
141
|
this.elementName = "sbb-pearl-chain-time";
|
|
147
142
|
}
|
|
148
143
|
static {
|
|
149
|
-
this.
|
|
144
|
+
this.elementDependencies = [d, y];
|
|
145
|
+
}
|
|
146
|
+
static {
|
|
147
|
+
this.styles = [a, m(b)];
|
|
150
148
|
}
|
|
151
149
|
#e;
|
|
152
150
|
get legs() {
|
|
@@ -198,37 +196,37 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
198
196
|
this.#o = e;
|
|
199
197
|
}
|
|
200
198
|
set now(e) {
|
|
201
|
-
this._now =
|
|
199
|
+
this._now = o.getValidDateOrNull(o.deserialize(e));
|
|
202
200
|
}
|
|
203
201
|
get now() {
|
|
204
202
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
205
203
|
}
|
|
206
204
|
render() {
|
|
207
|
-
let t = this.departureTime ?
|
|
208
|
-
return
|
|
205
|
+
let t = this.departureTime ? v(this.departureTime) : void 0, n = this.arrivalTime ? v(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: r, renderArrivalTimeAttribute: i } = g(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), a = this.legs?.filter((e) => _(e));
|
|
206
|
+
return f`
|
|
209
207
|
<div class="sbb-pearl-chain__time">
|
|
210
208
|
${r()}
|
|
211
|
-
${t ?
|
|
209
|
+
${t ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
|
|
212
210
|
<span class="sbb-screen-reader-only"
|
|
213
|
-
>${
|
|
211
|
+
>${l[this._language.current]}: </span
|
|
214
212
|
>
|
|
215
213
|
${e(t, "HH:mm")}
|
|
216
|
-
</time>` :
|
|
217
|
-
${a?.length > 1 ?
|
|
218
|
-
${a?.length - 1} ${
|
|
219
|
-
</span>` :
|
|
214
|
+
</time>` : p}
|
|
215
|
+
${a?.length > 1 ? f`<span class="sbb-screen-reader-only" role="paragraph">
|
|
216
|
+
${a?.length - 1} ${u[this._language.current]}
|
|
217
|
+
</span>` : p}
|
|
220
218
|
<sbb-pearl-chain
|
|
221
219
|
class="sbb-pearl-chain__time-chain"
|
|
222
220
|
.legs=${this.legs}
|
|
223
221
|
.disableAnimation=${this.disableAnimation}
|
|
224
222
|
.now=${this.now}
|
|
225
223
|
></sbb-pearl-chain>
|
|
226
|
-
${n ?
|
|
224
|
+
${n ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
|
|
227
225
|
<span class="sbb-screen-reader-only"
|
|
228
|
-
>${
|
|
226
|
+
>${c[this._language.current]}: </span
|
|
229
227
|
>
|
|
230
228
|
${e(n, "HH:mm")}
|
|
231
|
-
</time>` :
|
|
229
|
+
</time>` : p}
|
|
232
230
|
${i()}
|
|
233
231
|
</div>
|
|
234
232
|
`;
|
|
@@ -236,4 +234,4 @@ var v = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
236
234
|
};
|
|
237
235
|
})();
|
|
238
236
|
//#endregion
|
|
239
|
-
export {
|
|
237
|
+
export { x as t };
|
package/pearl-chain-time.js
CHANGED
package/pearl-chain-time.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-time.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-time.component-awU4lFdO.js";
|
|
2
2
|
export { e as SbbPearlChainTimeElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain-vertical.component-
|
|
1
|
+
import { t as e } from "../pearl-chain-vertical.component-Lx47SlJU.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalElement };
|