@sbb-esta/lyne-elements-experimental-dev 4.13.1-dev.1781017616 → 5.0.0-dev.1781073747
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +2 -0
- package/autocomplete-grid/_autocomplete-grid.global.scss +14 -0
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +16 -19
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +42 -71
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/{autocomplete-grid-cell.component-D-Kk9HwQ.js → autocomplete-grid-cell.component-79IjA__I.js} +6 -7
- package/autocomplete-grid-option.component-DUFBhQwI.js +35 -0
- package/{autocomplete-grid-row.component-57jjeZWF.js → autocomplete-grid-row.component-B3U15Rwa.js} +7 -8
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/core/datetime/date-helper.js +1 -1
- package/core/styles/_theme.scss +19 -0
- package/core/styles/lean-off-brand-theme.scss +3 -0
- package/core/styles/lean-safety-theme.scss +3 -0
- package/core/timetable/access-leg-helper.js +27 -27
- package/core.js +5 -0
- package/custom-elements.json +5120 -5186
- package/{date-helper-NgYaHPR7.js → date-helper-DNzMLcyb.js} +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +7 -10
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +2 -2
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +55 -89
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -2
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/autocomplete-grid-cell.component-BbdELDro.js +33 -0
- package/development/autocomplete-grid-option.component-C7WuqRit.js +57 -0
- package/development/{autocomplete-grid-row.component-CvF3ZWDZ.js → autocomplete-grid-row.component-DoXbOsQM.js} +3 -4
- package/development/autocomplete-grid.js +4 -4
- package/development/autocomplete-grid.pure.js +3 -3
- package/development/core/datetime/date-helper.js +1 -1
- package/development/core/timetable/access-leg-helper.d.ts.map +1 -1
- package/development/core/timetable/access-leg-helper.js +3 -3
- package/development/core.d.ts +6 -0
- package/development/core.d.ts.map +1 -0
- package/development/core.js +5 -0
- package/development/{date-helper-QhWjANc3.js → date-helper-BcTDWVeP.js} +2 -2
- package/development/journey-summary/journey-summary.component.d.ts +4 -4
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/journey-summary.component-BsC7wBIn.js +341 -0
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts +2 -2
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +3 -2
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/{pearl-chain-time.component-BMHLITah.js → pearl-chain-time.component-C-CuC1ke.js} +11 -13
- package/development/pearl-chain-time.js +1 -1
- package/development/pearl-chain-time.pure.js +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/{pearl-chain-vertical-item.component-JYDWs8ta.js → pearl-chain-vertical-item.component-CLu9QrqJ.js} +4 -6
- package/development/pearl-chain-vertical-item.js +1 -1
- package/development/pearl-chain-vertical-item.pure.js +1 -1
- package/development/pearl-chain-vertical.component-DbPz5k_R.js +30 -0
- package/development/pearl-chain-vertical.js +1 -1
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/{pearl-chain.component-DUAGFkcu.js → pearl-chain.component-10OsJZIX.js} +7 -11
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -1
- package/development/seat-reservation/common/translations/i18n.js +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +12 -2
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +35 -20
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +2 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +8 -3
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -2
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +2 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +9 -3
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -2
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/development/{seat-reservation-area.component-dG1GXJQP.js → seat-reservation-area.component-DPhQJFid.js} +4 -6
- package/development/{seat-reservation-graphic.component-BmhZpVL0.js → seat-reservation-graphic.component-0LYsmerm.js} +9 -9
- package/development/seat-reservation-navigation-coach.component-B97jKD7Y.js +438 -0
- package/development/{seat-reservation-navigation-services.component-B2uWa_VN.js → seat-reservation-navigation-services.component-Cx0Is97w.js} +11 -11
- package/development/{seat-reservation-place-control.component-CdL6yPUZ.js → seat-reservation-place-control.component-DaL1g8WH.js} +24 -17
- package/development/{seat-reservation-scoped.component-CJCkuKGz.js → seat-reservation-scoped.component-BHbORVsR.js} +3 -4
- package/development/seat-reservation.component-DI9pSlzt.js +473 -0
- package/development/seat-reservation.js +10 -11
- package/development/seat-reservation.pure.d.ts +0 -1
- package/development/seat-reservation.pure.d.ts.map +1 -1
- package/development/seat-reservation.pure.js +9 -10
- package/development/timetable-duration/timetable-duration.component.d.ts +1 -1
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-duration.component-Chk5D4Is.js +96 -0
- package/development/timetable-duration.js +1 -1
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts +3 -2
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/timetable-row.component-nzrQzxL6.js +736 -0
- package/development/timetable-row.js +1 -1
- package/development/timetable-row.pure.js +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-DyTUTCOU.js → journey-summary.component-DNoO3OCf.js} +42 -41
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/lean-safety-theme.css +13 -0
- package/lean-theme.css +13 -0
- package/package.json +22 -85
- package/pearl-chain/pearl-chain.component.js +1 -1
- package/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/{pearl-chain-time.component-DXe2o6S1.js → pearl-chain-time.component-BuvA6IE1.js} +42 -44
- package/pearl-chain-time.js +1 -1
- package/pearl-chain-time.pure.js +1 -1
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/{pearl-chain-vertical-item.component-Bby13csG.js → pearl-chain-vertical-item.component-QZ4s8Jbv.js} +33 -35
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/pearl-chain-vertical.component-Dc3vaHsQ.js +20 -0
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-CPaCcW_1.js → pearl-chain.component-DtGXXkY6.js} +29 -33
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +87 -75
- package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -2
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -2
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/{seat-reservation-area.component-DZsXvaMQ.js → seat-reservation-area.component-G9lHb7S8.js} +20 -22
- package/{seat-reservation-graphic.component-BnJuHVZQ.js → seat-reservation-graphic.component-BXFcQDxY.js} +26 -26
- package/seat-reservation-navigation-coach.component-BXy8EkJe.js +338 -0
- package/{seat-reservation-navigation-services.component-6ECATtWB.js → seat-reservation-navigation-services.component-49XmV9rv.js} +30 -33
- package/{seat-reservation-place-control.component-kx07J_YK.js → seat-reservation-place-control.component-DToIW328.js} +64 -62
- package/{seat-reservation-scoped.component-L1wMt65t.js → seat-reservation-scoped.component-D8dAmrP7.js} +6 -7
- package/seat-reservation.component--0XnrCkk.js +372 -0
- package/seat-reservation.js +10 -11
- package/seat-reservation.pure.js +9 -10
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/timetable-duration.component-iMCvh1zr.js +61 -0
- package/timetable-duration.js +1 -1
- package/timetable-duration.pure.js +1 -1
- package/timetable-row/timetable-row.component.js +1 -1
- package/timetable-row.component-mNKmhRmP.js +566 -0
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +0 -4
- package/autocomplete-grid/autocomplete-grid-cell.js +0 -4
- package/autocomplete-grid/autocomplete-grid-optgroup.js +0 -4
- package/autocomplete-grid/autocomplete-grid-option.js +0 -4
- package/autocomplete-grid/autocomplete-grid-row.js +0 -4
- package/autocomplete-grid/autocomplete-grid.js +0 -4
- package/autocomplete-grid-option.component-qBUSf0mD.js +0 -37
- package/core/datetime.js +0 -2
- package/core/styles/core.scss +0 -13
- package/core/styles/theme.scss +0 -5
- package/core/timetable.js +0 -4
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid.js +0 -10
- package/development/autocomplete-grid-cell.component-CTC6s1q3.js +0 -34
- package/development/autocomplete-grid-option.component-DqkLWHcg.js +0 -61
- package/development/core/datetime.d.ts +0 -3
- package/development/core/datetime.d.ts.map +0 -1
- package/development/core/datetime.js +0 -2
- package/development/core/timetable.d.ts +0 -5
- package/development/core/timetable.d.ts.map +0 -1
- package/development/core/timetable.js +0 -4
- package/development/journey-summary.component-BTaPGCGZ.js +0 -340
- package/development/pearl-chain-vertical.component-YYXS_74c.js +0 -31
- package/development/seat-reservation/common.d.ts +0 -6
- package/development/seat-reservation/common.d.ts.map +0 -1
- package/development/seat-reservation/common.js +0 -12
- package/development/seat-reservation/seat-reservation-area.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-area.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-area.js +0 -10
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +0 -9
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -306
- package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic.js +0 -10
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +0 -10
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +0 -10
- package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-place-control.js +0 -10
- package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-scoped.js +0 -10
- package/development/seat-reservation/seat-reservation.d.ts +0 -3
- package/development/seat-reservation/seat-reservation.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation.js +0 -11
- package/development/seat-reservation-navigation-coach.component-Be9CBw62.js +0 -428
- package/development/seat-reservation.component-B4BxXyLr.js +0 -464
- package/development/timetable-duration.component-CXF0oJbO.js +0 -100
- package/development/timetable-row.component-BCufuA05.js +0 -729
- package/pearl-chain-vertical.component-0EgQ4knk.js +0 -21
- package/seat-reservation/common.js +0 -9
- package/seat-reservation/seat-reservation-area.js +0 -4
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -291
- package/seat-reservation/seat-reservation-graphic.js +0 -4
- package/seat-reservation/seat-reservation-navigation-coach.js +0 -4
- package/seat-reservation/seat-reservation-navigation-services.js +0 -4
- package/seat-reservation/seat-reservation-place-control.js +0 -4
- package/seat-reservation/seat-reservation-scoped.js +0 -4
- package/seat-reservation/seat-reservation.js +0 -5
- package/seat-reservation-navigation-coach.component-DgdpqMzG.js +0 -333
- package/seat-reservation.component-B_T6eTf6.js +0 -360
- package/timetable-duration.component-Bqo5N_De.js +0 -65
- package/timetable-row.component-a5CWXLAQ.js +0 -559
- /package/{core.css → lean-off-brand-theme.css} +0 -0
|
@@ -1,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-nzrQzxL6.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-nzrQzxL6.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-DNoO3OCf.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
|
@@ -1,41 +1,35 @@
|
|
|
1
1
|
import { t as e } from "./format-DjgG1QPc.js";
|
|
2
2
|
import { t } from "./isValid-CXnsFZVu.js";
|
|
3
|
-
import {
|
|
4
|
-
import { SbbElement as i } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
5
|
-
import { SbbLanguageController as a } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
6
|
-
import { forceType as o } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
7
|
-
import { boxSizingStyles as s } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
3
|
+
import { SbbElement as n, SbbLanguageController as r, defaultDateAdapter as i, forceType as a, i18nTripDuration as o, screenReaderOnlyStyles as s } from "@sbb-esta/lyne-elements/core.js";
|
|
8
4
|
import { html as c, nothing as l, unsafeCSS as u } from "lit";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "@sbb-esta/lyne-elements/journey-header.js";
|
|
16
|
-
import "./pearl-chain-time.js";
|
|
5
|
+
import { __esDecorate as d, __runInitializers as f } from "tslib";
|
|
6
|
+
import { SbbDividerElement as p } from "@sbb-esta/lyne-elements/divider.pure.js";
|
|
7
|
+
import { SbbJourneyHeaderElement as m } from "@sbb-esta/lyne-elements/journey-header.pure.js";
|
|
8
|
+
import { property as h } from "lit/decorators.js";
|
|
9
|
+
import { durationToTime as g, removeTimezoneFromISOTimeString as _ } from "./core.js";
|
|
10
|
+
import { SbbPearlChainTimeElement as v } 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 y = ":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}", b = (() => {
|
|
13
|
+
let b = n, x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, M = [], N = [], P, F = [], I = [], L, R = [], z = [], B;
|
|
14
|
+
return class extends b {
|
|
21
15
|
constructor() {
|
|
22
|
-
super(...arguments), this.#e = (
|
|
16
|
+
super(...arguments), this.#e = (f(this, x), f(this, C, null)), this.#t = (f(this, w), f(this, E, null)), this.#n = (f(this, D), f(this, k, !1)), this.#r = (f(this, A), f(this, M, "3")), this.#i = (f(this, N), f(this, F, !1)), this.#a = (f(this, I), f(this, R, !1)), this._now = (f(this, z), null), this._hasContentSlot = !1, this._language = new r(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(b[Symbol.metadata] ?? null) : void 0;
|
|
20
|
+
S = [h({ type: Object })], T = [h({
|
|
27
21
|
attribute: "trip-back",
|
|
28
22
|
type: Object
|
|
29
|
-
})],
|
|
23
|
+
})], O = [a(), h({
|
|
30
24
|
attribute: "round-trip",
|
|
31
25
|
type: Boolean
|
|
32
|
-
})],
|
|
26
|
+
})], j = [h({ attribute: "header-level" })], P = [a(), h({
|
|
33
27
|
attribute: "disable-animation",
|
|
34
28
|
type: Boolean
|
|
35
|
-
})],
|
|
29
|
+
})], L = [a(), h({
|
|
36
30
|
attribute: "a11y-footpath",
|
|
37
31
|
type: Boolean
|
|
38
|
-
})],
|
|
32
|
+
})], B = [h()], d(this, null, S, {
|
|
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
|
+
}, C, w), d(this, null, T, {
|
|
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
|
+
}, E, D), d(this, null, O, {
|
|
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
|
+
}, k, A), d(this, null, j, {
|
|
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
|
+
}, M, N), d(this, null, P, {
|
|
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
|
+
}, F, I), d(this, null, L, {
|
|
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
|
+
}, R, z), d(this, null, B, {
|
|
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, x), e && Object.defineProperty(this, Symbol.metadata, {
|
|
129
123
|
enumerable: !0,
|
|
130
124
|
configurable: !0,
|
|
131
125
|
writable: !0,
|
|
@@ -136,7 +130,14 @@ 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
|
+
p,
|
|
135
|
+
m,
|
|
136
|
+
v
|
|
137
|
+
];
|
|
138
|
+
}
|
|
139
|
+
static {
|
|
140
|
+
this.styles = [s, u(y)];
|
|
140
141
|
}
|
|
141
142
|
#e;
|
|
142
143
|
get trip() {
|
|
@@ -181,7 +182,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
181
182
|
this.#a = e;
|
|
182
183
|
}
|
|
183
184
|
set now(e) {
|
|
184
|
-
this._now =
|
|
185
|
+
this._now = i.getValidDateOrNull(i.deserialize(e));
|
|
185
186
|
}
|
|
186
187
|
get now() {
|
|
187
188
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
@@ -190,15 +191,15 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
190
191
|
super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
|
|
191
192
|
}
|
|
192
193
|
_renderJourneyStart(n, r) {
|
|
193
|
-
let
|
|
194
|
+
let a = i, s = r ? g(r, this._language.current) : null;
|
|
194
195
|
if (t(n)) return c`
|
|
195
196
|
<time datetime=${e(n, "d") + " " + e(n, "M")}>
|
|
196
|
-
${
|
|
197
|
+
${a.format(n).replace(",", ".")}</time
|
|
197
198
|
>${r && r > 0 ? c`,<time>
|
|
198
|
-
<sbb-screen-reader-only>
|
|
199
|
-
${
|
|
200
|
-
</
|
|
201
|
-
<span aria-hidden="true">${
|
|
199
|
+
<span class="sbb-screen-reader-only">
|
|
200
|
+
${o[this._language.current]} ${s.long}
|
|
201
|
+
</span>
|
|
202
|
+
<span aria-hidden="true">${s.short}</span>
|
|
202
203
|
</time>` : l}
|
|
203
204
|
`;
|
|
204
205
|
}
|
|
@@ -221,7 +222,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
221
222
|
<div>
|
|
222
223
|
${t && t.length > 0 ? this._renderJourneyVias(t) : l}
|
|
223
224
|
<div class="sbb-journey-summary__date">
|
|
224
|
-
${this._renderJourneyStart(
|
|
225
|
+
${this._renderJourneyStart(_(i), n)}
|
|
225
226
|
</div>
|
|
226
227
|
<sbb-pearl-chain-time
|
|
227
228
|
.arrivalTime=${o}
|
|
@@ -241,7 +242,7 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
241
242
|
return c`
|
|
242
243
|
<div class="sbb-journey-summary">
|
|
243
244
|
${e ? c`<sbb-journey-header
|
|
244
|
-
|
|
245
|
+
visual-level="4"
|
|
245
246
|
.level=${this.headerLevel || l}
|
|
246
247
|
.origin=${e}
|
|
247
248
|
.destination=${t}
|
|
@@ -261,4 +262,4 @@ var g = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
261
262
|
};
|
|
262
263
|
})();
|
|
263
264
|
//#endregion
|
|
264
|
-
export {
|
|
265
|
+
export { b 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-DNoO3OCf.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--sbb-autocomplete-grid-row-color: var(--sbb-color-3);
|
|
3
|
+
--sbb-autocomplete-grid-row-background-color-hover: var(--sbb-background-color-3);
|
|
4
|
+
--sbb-autocomplete-grid-row-disabled-border-color: var(--sbb-color-graphite);
|
|
5
|
+
--sbb-autocomplete-grid-row-disabled-border-color: light-dark(
|
|
6
|
+
var(--sbb-color-graphite),
|
|
7
|
+
var(--sbb-color-smoke)
|
|
8
|
+
);
|
|
9
|
+
--sbb-autocomplete-grid-row-disabled-background-color: var(--sbb-background-color-3);
|
|
10
|
+
--sbb-autocomplete-grid-row-padding-inline-end: var(--sbb-spacing-responsive-xxxs);
|
|
11
|
+
--sbb-autocomplete-grid-row-justify-content: space-between;
|
|
12
|
+
--sbb-autocomplete-grid-row-cursor: var(--sbb-cursor-pointer);
|
|
13
|
+
}
|
package/lean-theme.css
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--sbb-autocomplete-grid-row-color: var(--sbb-color-3);
|
|
3
|
+
--sbb-autocomplete-grid-row-background-color-hover: var(--sbb-background-color-3);
|
|
4
|
+
--sbb-autocomplete-grid-row-disabled-border-color: var(--sbb-color-graphite);
|
|
5
|
+
--sbb-autocomplete-grid-row-disabled-border-color: light-dark(
|
|
6
|
+
var(--sbb-color-graphite),
|
|
7
|
+
var(--sbb-color-smoke)
|
|
8
|
+
);
|
|
9
|
+
--sbb-autocomplete-grid-row-disabled-background-color: var(--sbb-background-color-3);
|
|
10
|
+
--sbb-autocomplete-grid-row-padding-inline-end: var(--sbb-spacing-responsive-xxxs);
|
|
11
|
+
--sbb-autocomplete-grid-row-justify-content: space-between;
|
|
12
|
+
--sbb-autocomplete-grid-row-cursor: var(--sbb-cursor-pointer);
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental-dev",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-dev.1781073747",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
9
|
"storybook",
|
|
10
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
10
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/788f982add6f9cef519196d080816342e2c382c7"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -15,9 +15,21 @@
|
|
|
15
15
|
"types": "./index.d.ts",
|
|
16
16
|
"default": "./index.js"
|
|
17
17
|
},
|
|
18
|
-
"./
|
|
19
|
-
"
|
|
20
|
-
"default": "./
|
|
18
|
+
"./_index.scss": {
|
|
19
|
+
"sass": "./_index.scss",
|
|
20
|
+
"default": "./_index.scss"
|
|
21
|
+
},
|
|
22
|
+
"./lean-off-brand-theme.css": {
|
|
23
|
+
"style": "./lean-off-brand-theme.css",
|
|
24
|
+
"default": "./lean-off-brand-theme.css"
|
|
25
|
+
},
|
|
26
|
+
"./lean-safety-theme.css": {
|
|
27
|
+
"style": "./lean-safety-theme.css",
|
|
28
|
+
"default": "./lean-safety-theme.css"
|
|
29
|
+
},
|
|
30
|
+
"./lean-theme.css": {
|
|
31
|
+
"style": "./lean-theme.css",
|
|
32
|
+
"default": "./lean-theme.css"
|
|
21
33
|
},
|
|
22
34
|
"./off-brand-theme.css": {
|
|
23
35
|
"style": "./off-brand-theme.css",
|
|
@@ -44,45 +56,10 @@
|
|
|
44
56
|
"development": "./development/autocomplete-grid.pure.js",
|
|
45
57
|
"default": "./autocomplete-grid.pure.js"
|
|
46
58
|
},
|
|
47
|
-
"./
|
|
48
|
-
"types": "./development/
|
|
49
|
-
"development": "./development/
|
|
50
|
-
"default": "./
|
|
51
|
-
},
|
|
52
|
-
"./autocomplete-grid/autocomplete-grid-button.js": {
|
|
53
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-button.d.ts",
|
|
54
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-button.js",
|
|
55
|
-
"default": "./autocomplete-grid/autocomplete-grid-button.js"
|
|
56
|
-
},
|
|
57
|
-
"./autocomplete-grid/autocomplete-grid-cell.js": {
|
|
58
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-cell.d.ts",
|
|
59
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-cell.js",
|
|
60
|
-
"default": "./autocomplete-grid/autocomplete-grid-cell.js"
|
|
61
|
-
},
|
|
62
|
-
"./autocomplete-grid/autocomplete-grid-optgroup.js": {
|
|
63
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-optgroup.d.ts",
|
|
64
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-optgroup.js",
|
|
65
|
-
"default": "./autocomplete-grid/autocomplete-grid-optgroup.js"
|
|
66
|
-
},
|
|
67
|
-
"./autocomplete-grid/autocomplete-grid-option.js": {
|
|
68
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-option.d.ts",
|
|
69
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-option.js",
|
|
70
|
-
"default": "./autocomplete-grid/autocomplete-grid-option.js"
|
|
71
|
-
},
|
|
72
|
-
"./autocomplete-grid/autocomplete-grid-row.js": {
|
|
73
|
-
"types": "./development/autocomplete-grid/autocomplete-grid-row.d.ts",
|
|
74
|
-
"development": "./development/autocomplete-grid/autocomplete-grid-row.js",
|
|
75
|
-
"default": "./autocomplete-grid/autocomplete-grid-row.js"
|
|
76
|
-
},
|
|
77
|
-
"./core/datetime.js": {
|
|
78
|
-
"types": "./development/core/datetime.d.ts",
|
|
79
|
-
"development": "./development/core/datetime.js",
|
|
80
|
-
"default": "./core/datetime.js"
|
|
81
|
-
},
|
|
82
|
-
"./core/timetable.js": {
|
|
83
|
-
"types": "./development/core/timetable.d.ts",
|
|
84
|
-
"development": "./development/core/timetable.js",
|
|
85
|
-
"default": "./core/timetable.js"
|
|
59
|
+
"./core.js": {
|
|
60
|
+
"types": "./development/core.d.ts",
|
|
61
|
+
"development": "./development/core.js",
|
|
62
|
+
"default": "./core.js"
|
|
86
63
|
},
|
|
87
64
|
"./journey-summary.js": {
|
|
88
65
|
"types": "./development/journey-summary.d.ts",
|
|
@@ -144,46 +121,6 @@
|
|
|
144
121
|
"development": "./development/seat-reservation.pure.js",
|
|
145
122
|
"default": "./seat-reservation.pure.js"
|
|
146
123
|
},
|
|
147
|
-
"./seat-reservation/common.js": {
|
|
148
|
-
"types": "./development/seat-reservation/common.d.ts",
|
|
149
|
-
"development": "./development/seat-reservation/common.js",
|
|
150
|
-
"default": "./seat-reservation/common.js"
|
|
151
|
-
},
|
|
152
|
-
"./seat-reservation/seat-reservation.js": {
|
|
153
|
-
"types": "./development/seat-reservation/seat-reservation.d.ts",
|
|
154
|
-
"development": "./development/seat-reservation/seat-reservation.js",
|
|
155
|
-
"default": "./seat-reservation/seat-reservation.js"
|
|
156
|
-
},
|
|
157
|
-
"./seat-reservation/seat-reservation-area.js": {
|
|
158
|
-
"types": "./development/seat-reservation/seat-reservation-area.d.ts",
|
|
159
|
-
"development": "./development/seat-reservation/seat-reservation-area.js",
|
|
160
|
-
"default": "./seat-reservation/seat-reservation-area.js"
|
|
161
|
-
},
|
|
162
|
-
"./seat-reservation/seat-reservation-graphic.js": {
|
|
163
|
-
"types": "./development/seat-reservation/seat-reservation-graphic.d.ts",
|
|
164
|
-
"development": "./development/seat-reservation/seat-reservation-graphic.js",
|
|
165
|
-
"default": "./seat-reservation/seat-reservation-graphic.js"
|
|
166
|
-
},
|
|
167
|
-
"./seat-reservation/seat-reservation-navigation-coach.js": {
|
|
168
|
-
"types": "./development/seat-reservation/seat-reservation-navigation-coach.d.ts",
|
|
169
|
-
"development": "./development/seat-reservation/seat-reservation-navigation-coach.js",
|
|
170
|
-
"default": "./seat-reservation/seat-reservation-navigation-coach.js"
|
|
171
|
-
},
|
|
172
|
-
"./seat-reservation/seat-reservation-navigation-services.js": {
|
|
173
|
-
"types": "./development/seat-reservation/seat-reservation-navigation-services.d.ts",
|
|
174
|
-
"development": "./development/seat-reservation/seat-reservation-navigation-services.js",
|
|
175
|
-
"default": "./seat-reservation/seat-reservation-navigation-services.js"
|
|
176
|
-
},
|
|
177
|
-
"./seat-reservation/seat-reservation-place-control.js": {
|
|
178
|
-
"types": "./development/seat-reservation/seat-reservation-place-control.d.ts",
|
|
179
|
-
"development": "./development/seat-reservation/seat-reservation-place-control.js",
|
|
180
|
-
"default": "./seat-reservation/seat-reservation-place-control.js"
|
|
181
|
-
},
|
|
182
|
-
"./seat-reservation/seat-reservation-scoped.js": {
|
|
183
|
-
"types": "./development/seat-reservation/seat-reservation-scoped.d.ts",
|
|
184
|
-
"development": "./development/seat-reservation/seat-reservation-scoped.js",
|
|
185
|
-
"default": "./seat-reservation/seat-reservation-scoped.js"
|
|
186
|
-
},
|
|
187
124
|
"./timetable-duration.js": {
|
|
188
125
|
"types": "./development/timetable-duration.d.ts",
|
|
189
126
|
"development": "./development/timetable-duration.js",
|
|
@@ -207,7 +144,7 @@
|
|
|
207
144
|
},
|
|
208
145
|
"customElements": "custom-elements.json",
|
|
209
146
|
"peerDependencies": {
|
|
210
|
-
"@sbb-esta/lyne-elements": "
|
|
147
|
+
"@sbb-esta/lyne-elements": "5.0.0"
|
|
211
148
|
},
|
|
212
149
|
"dependencies": {
|
|
213
150
|
"lit": "^3.3.3",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain.component-
|
|
1
|
+
import { t as e } from "../pearl-chain.component-DtGXXkY6.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-BuvA6IE1.js";
|
|
2
2
|
export { e as SbbPearlChainTimeElement };
|
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
import { t as e } from "./format-DjgG1QPc.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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";
|
|
2
|
+
import { SbbElement as t, SbbLanguageController as n, defaultDateAdapter as r, forceType as i, i18nArrival as a, i18nDeparture as o, i18nTransferProcedures as s, screenReaderOnlyStyles as c } from "@sbb-esta/lyne-elements/core.js";
|
|
3
|
+
import { SbbIconElement as l } from "@sbb-esta/lyne-elements/icon.pure.js";
|
|
4
|
+
import { html as u, nothing as d, unsafeCSS as f } from "lit";
|
|
5
|
+
import { __esDecorate as p, __runInitializers as m } from "tslib";
|
|
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)}", x = (() => {
|
|
11
|
+
let x = t, 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 = (
|
|
14
|
+
super(...arguments), this.#e = (m(this, S), m(this, w, [])), this.#t = (m(this, T), m(this, D, "")), this.#n = (m(this, O), m(this, A, "")), this.#r = (m(this, j), m(this, N, NaN)), this.#i = (m(this, P), m(this, I, NaN)), this.#a = (m(this, L), m(this, z, !1)), this.#o = (m(this, B), m(this, H, !1)), this._now = (m(this, U), null), this._language = new n(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 = [i(), h({ attribute: "departure-time" })], k = [i(), h({ attribute: "arrival-time" })], M = [i(), h({
|
|
24
19
|
attribute: "departure-walk",
|
|
25
20
|
type: Number
|
|
26
|
-
})],
|
|
21
|
+
})], F = [i(), h({
|
|
27
22
|
attribute: "arrival-walk",
|
|
28
23
|
type: Number
|
|
29
|
-
})],
|
|
24
|
+
})], R = [i(), h({
|
|
30
25
|
attribute: "disable-animation",
|
|
31
26
|
type: Boolean
|
|
32
|
-
})],
|
|
27
|
+
})], V = [i(), h({
|
|
33
28
|
attribute: "a11y-footpath",
|
|
34
29
|
type: Boolean
|
|
35
|
-
})],
|
|
30
|
+
})], W = [h()], p(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), p(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), p(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), p(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), p(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), p(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), p(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), p(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 = [l, y];
|
|
145
|
+
}
|
|
146
|
+
static {
|
|
147
|
+
this.styles = [c, f(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 = r.getValidDateOrNull(r.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), c = this.legs?.filter((e) => _(e));
|
|
206
|
+
return u`
|
|
209
207
|
<div class="sbb-pearl-chain__time">
|
|
210
208
|
${r()}
|
|
211
|
-
${t ?
|
|
209
|
+
${t ? u`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
|
|
212
210
|
<span class="sbb-screen-reader-only"
|
|
213
|
-
>${
|
|
211
|
+
>${o[this._language.current]}: </span
|
|
214
212
|
>
|
|
215
213
|
${e(t, "HH:mm")}
|
|
216
|
-
</time>` :
|
|
217
|
-
${
|
|
218
|
-
${
|
|
219
|
-
</span>` :
|
|
214
|
+
</time>` : d}
|
|
215
|
+
${c?.length > 1 ? u`<span class="sbb-screen-reader-only" role="paragraph">
|
|
216
|
+
${c?.length - 1} ${s[this._language.current]}
|
|
217
|
+
</span>` : d}
|
|
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 ? u`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
|
|
227
225
|
<span class="sbb-screen-reader-only"
|
|
228
|
-
>${
|
|
226
|
+
>${a[this._language.current]}: </span
|
|
229
227
|
>
|
|
230
228
|
${e(n, "HH:mm")}
|
|
231
|
-
</time>` :
|
|
229
|
+
</time>` : d}
|
|
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-BuvA6IE1.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-Dc3vaHsQ.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain-vertical-item.component-
|
|
1
|
+
import { t as e } from "../pearl-chain-vertical-item.component-QZ4s8Jbv.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalItemElement };
|