@sbb-esta/lyne-elements-experimental 4.7.0 → 4.8.0
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 +66 -85
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +72 -53
- package/autocomplete-grid/autocomplete-grid-button.js +4 -4
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -25
- package/autocomplete-grid/autocomplete-grid-cell.js +4 -4
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -28
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -41
- package/autocomplete-grid/autocomplete-grid-option.js +4 -5
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -28
- package/autocomplete-grid/autocomplete-grid-row.js +4 -4
- package/autocomplete-grid/autocomplete-grid.js +4 -4
- package/autocomplete-grid-cell.component-Dak9wlBr.js +24 -0
- package/autocomplete-grid-option.component-DNRFHOwc.js +37 -0
- package/autocomplete-grid-row.component-DBHZQ0GQ.js +27 -0
- package/autocomplete-grid.js +10 -15
- package/autocomplete-grid.pure.js +7 -0
- package/core/datetime/date-helper.js +2 -191
- package/core/datetime.js +2 -5
- package/core/timetable/access-leg-helper.js +76 -71
- package/core/timetable/timetable-helper.js +9 -11
- package/core/timetable/timetable-properties.js +0 -1
- package/core/timetable.js +3 -7
- package/custom-elements.json +457 -368
- package/date-helper-CGproP5d.js +185 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +2 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +115 -136
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +3 -2
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +92 -71
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +9 -4
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +4 -4
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -41
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +10 -5
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +3 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +28 -38
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +9 -4
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -121
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +10 -6
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +4 -4
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -103
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +10 -5
- package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid.js +9 -4
- package/development/autocomplete-grid-cell.component-BBvM4o2H.js +42 -0
- package/development/autocomplete-grid-option.component-QzfM5eIE.js +123 -0
- package/development/autocomplete-grid-row.component-H8sCTCkT.js +104 -0
- package/development/autocomplete-grid.d.ts +1 -9
- package/development/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid.js +17 -14
- package/development/autocomplete-grid.pure.d.ts +8 -0
- package/development/autocomplete-grid.pure.d.ts.map +1 -0
- package/development/autocomplete-grid.pure.js +7 -0
- package/development/core/datetime/date-helper.js +2 -285
- package/development/core/datetime.d.ts +1 -3
- package/development/core/datetime.d.ts.map +1 -1
- package/development/core/datetime.js +2 -6
- package/development/core/timetable/access-leg-helper.js +104 -82
- package/development/core/timetable/timetable-helper.js +16 -17
- package/development/core/timetable/timetable-properties.d.ts +30 -30
- package/development/core/timetable/timetable-properties.d.ts.map +1 -1
- package/development/core/timetable/timetable-properties.js +0 -2
- package/development/core/timetable.d.ts +1 -3
- package/development/core/timetable.d.ts.map +1 -1
- package/development/core/timetable.js +3 -8
- package/development/date-helper-8_Y-PuHh.js +520 -0
- package/development/differenceInMinutes-DN_1Rk3O.js +110 -0
- package/development/format-Bbrn2bgo.js +1848 -0
- package/development/isValid-C-HzKv4v.js +178 -0
- package/development/journey-summary/journey-summary.component.d.ts +4 -2
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +2 -294
- package/development/journey-summary.component-uGhZvA4p.js +385 -0
- package/development/journey-summary.d.ts +1 -4
- package/development/journey-summary.d.ts.map +1 -1
- package/development/journey-summary.js +9 -5
- package/development/journey-summary.pure.d.ts +3 -0
- package/development/journey-summary.pure.d.ts.map +1 -0
- package/development/journey-summary.pure.js +2 -0
- package/development/mapper-hWWm7Uke.js +11454 -0
- package/development/pearl-chain/pearl-chain.component.d.ts +4 -2
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +2 -640
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +4 -2
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +2 -312
- package/development/pearl-chain-time.component-B8mayTWD.js +415 -0
- package/development/pearl-chain-time.d.ts +1 -4
- package/development/pearl-chain-time.d.ts.map +1 -1
- package/development/pearl-chain-time.js +9 -5
- package/development/pearl-chain-time.pure.d.ts +3 -0
- package/development/pearl-chain-time.pure.d.ts.map +1 -0
- package/development/pearl-chain-time.pure.js +2 -0
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +4 -2
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -40
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +4 -2
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -399
- package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +435 -0
- package/development/pearl-chain-vertical-item.d.ts +1 -4
- package/development/pearl-chain-vertical-item.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item.js +9 -5
- package/development/pearl-chain-vertical-item.pure.d.ts +3 -0
- package/development/pearl-chain-vertical-item.pure.d.ts.map +1 -0
- package/development/pearl-chain-vertical-item.pure.js +2 -0
- package/development/pearl-chain-vertical.component-CswE7b3M.js +39 -0
- package/development/pearl-chain-vertical.d.ts +1 -4
- package/development/pearl-chain-vertical.d.ts.map +1 -1
- package/development/pearl-chain-vertical.js +9 -5
- package/development/pearl-chain-vertical.pure.d.ts +3 -0
- package/development/pearl-chain-vertical.pure.d.ts.map +1 -0
- package/development/pearl-chain-vertical.pure.js +2 -0
- package/development/pearl-chain.component-wpsTvoSe.js +704 -0
- package/development/pearl-chain.d.ts +1 -4
- package/development/pearl-chain.d.ts.map +1 -1
- package/development/pearl-chain.js +9 -5
- package/development/pearl-chain.pure.d.ts +3 -0
- package/development/pearl-chain.pure.d.ts.map +1 -0
- package/development/pearl-chain.pure.js +2 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts +2 -2
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +168 -71
- package/development/seat-reservation/common/mapper/mapper.js +2 -131
- package/development/seat-reservation/common/mapper.js +2 -9
- package/development/seat-reservation/common/svgs.js +2 -46
- package/development/seat-reservation/common/translations/i18n.js +1118 -900
- package/development/seat-reservation/common/translations.js +1 -4
- package/development/seat-reservation/common/types.d.ts +22 -22
- package/development/seat-reservation/common/types.d.ts.map +1 -1
- package/development/seat-reservation/common/types.js +0 -2
- package/development/seat-reservation/common.d.ts +1 -3
- package/development/seat-reservation/common.d.ts.map +1 -1
- package/development/seat-reservation/common.js +10 -12
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +4 -3
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1309 -1231
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +2 -867
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +4 -2
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -112
- package/development/seat-reservation/seat-reservation-area.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area.js +10 -5
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +39 -36
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +4 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -167
- package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic.js +10 -5
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +5 -3
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -718
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +10 -5
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +4 -2
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -136
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +10 -5
- 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 +2 -607
- package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control.js +10 -5
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +4 -2
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -34
- package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped.js +10 -5
- package/development/seat-reservation/seat-reservation.d.ts +0 -3
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation.js +10 -6
- package/development/seat-reservation-area.component-ORuli_DC.js +138 -0
- package/development/seat-reservation-graphic.component-lZXqHWIz.js +193 -0
- package/development/seat-reservation-navigation-coach.component-D2QXTMJJ.js +828 -0
- package/development/seat-reservation-navigation-services.component-Bg1adRlU.js +179 -0
- package/development/seat-reservation-place-control.component-CwUX-QYO.js +726 -0
- package/development/seat-reservation-scoped.component-uLT33P9y.js +31 -0
- package/development/seat-reservation.component-MOv5kHDC.js +821 -0
- package/development/seat-reservation.d.ts +1 -11
- package/development/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation.js +24 -27
- package/development/seat-reservation.pure.d.ts +15 -0
- package/development/seat-reservation.pure.d.ts.map +1 -0
- package/development/seat-reservation.pure.js +15 -0
- package/development/svgs-kDpBCto5.js +28 -0
- package/development/timetable-duration/timetable-duration.component.d.ts +4 -2
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +2 -114
- package/development/timetable-duration.component-D21SXsQq.js +125 -0
- package/development/timetable-duration.d.ts +1 -4
- package/development/timetable-duration.d.ts.map +1 -1
- package/development/timetable-duration.js +9 -5
- package/development/timetable-duration.pure.d.ts +3 -0
- package/development/timetable-duration.pure.d.ts.map +1 -0
- package/development/timetable-duration.pure.js +2 -0
- package/development/timetable-row/timetable-row.component.d.ts +4 -2
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +2 -787
- package/development/timetable-row.component-Y5w8vEwP.js +932 -0
- package/development/timetable-row.d.ts +1 -4
- package/development/timetable-row.d.ts.map +1 -1
- package/development/timetable-row.js +9 -12
- package/development/timetable-row.pure.d.ts +3 -0
- package/development/timetable-row.pure.d.ts.map +1 -0
- package/development/timetable-row.pure.js +2 -0
- package/development/toDate-Biiv3kyf.js +150 -0
- package/differenceInMinutes-Dr9gRqtu.js +27 -0
- package/format-CM5exOsN.js +1103 -0
- package/index.d.ts +9 -20
- package/index.js +9 -20
- package/isValid-B9oVW3lA.js +36 -0
- package/journey-summary/journey-summary.component.js +2 -193
- package/journey-summary.component-Cq_4kaOp.js +264 -0
- package/journey-summary.js +6 -4
- package/journey-summary.pure.js +2 -0
- package/mapper-DkiDDseD.js +11382 -0
- package/package.json +47 -2
- package/pearl-chain/pearl-chain.component.js +2 -164
- package/pearl-chain-time/pearl-chain-time.component.js +2 -156
- package/pearl-chain-time.component-DGDW5S1c.js +239 -0
- package/pearl-chain-time.js +6 -4
- package/pearl-chain-time.pure.js +2 -0
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -24
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -76
- package/pearl-chain-vertical-item.component-G22bWhLU.js +108 -0
- package/pearl-chain-vertical-item.js +6 -4
- package/pearl-chain-vertical-item.pure.js +2 -0
- package/pearl-chain-vertical.component-CXIDT5RD.js +21 -0
- package/pearl-chain-vertical.js +6 -4
- package/pearl-chain-vertical.pure.js +2 -0
- package/pearl-chain.component-DmjkVIva.js +194 -0
- package/pearl-chain.js +6 -4
- package/pearl-chain.pure.js +2 -0
- package/seat-reservation/common/mapper/icon-mapper.js +71 -71
- package/seat-reservation/common/mapper/mapper.js +2 -91
- package/seat-reservation/common/mapper.js +3 -9
- package/seat-reservation/common/svgs.js +2 -243
- package/seat-reservation/common/translations/i18n.js +1084 -891
- package/seat-reservation/common/translations.js +2 -4
- package/seat-reservation/common/types.js +0 -1
- package/seat-reservation/common.js +9 -13
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +834 -809
- package/seat-reservation/seat-reservation/seat-reservation.component.js +2 -422
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -50
- package/seat-reservation/seat-reservation-area.js +4 -4
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +69 -70
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -73
- package/seat-reservation/seat-reservation-graphic.js +4 -4
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -232
- package/seat-reservation/seat-reservation-navigation-coach.js +4 -4
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -83
- package/seat-reservation/seat-reservation-navigation-services.js +4 -4
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -202
- package/seat-reservation/seat-reservation-place-control.js +4 -4
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -20
- package/seat-reservation/seat-reservation-scoped.js +4 -4
- package/seat-reservation/seat-reservation.js +5 -6
- package/seat-reservation-area.component-COD6CXhP.js +75 -0
- package/seat-reservation-graphic.component-BNfU5tQM.js +102 -0
- package/seat-reservation-navigation-coach.component-Bh9ILq60.js +333 -0
- package/seat-reservation-navigation-services.component-QL0UnilZ.js +127 -0
- package/seat-reservation-place-control.component-BfnZUyHv.js +322 -0
- package/seat-reservation-scoped.component-CY04BT_4.js +17 -0
- package/seat-reservation.component-zrQHTRl3.js +364 -0
- package/seat-reservation.js +17 -29
- package/seat-reservation.pure.js +15 -0
- package/svgs-D5DhLHxC.js +26 -0
- package/timetable-duration/timetable-duration.component.js +2 -56
- package/timetable-duration.component-DaYoJUGS.js +65 -0
- package/timetable-duration.js +6 -4
- package/timetable-duration.pure.js +2 -0
- package/timetable-row/timetable-row.component.js +2 -426
- package/timetable-row.component-BDMAEsbR.js +559 -0
- package/timetable-row.js +6 -11
- package/timetable-row.pure.js +2 -0
- package/toDate-p-Tpkb7t.js +16 -0
- package/development/differenceInMinutes-B0dawX-5.js +0 -26
- package/development/format-BMkeaqaF.js +0 -1433
- package/development/isValid-BYRch7pV.js +0 -53
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.d.ts +0 -69
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +0 -559
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.d.ts +0 -123
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +0 -972
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.d.ts +0 -114
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +0 -20368
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.d.ts +0 -85
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +0 -1739
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.d.ts +0 -69
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +0 -9783
- package/development/toDate-BWb6Z1JD.js +0 -24
- package/differenceInMinutes-COvvdYsJ.js +0 -23
- package/format-CmKROkbc.js +0 -1186
- package/isValid-m3_OsPaB.js +0 -45
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +0 -558
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +0 -970
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +0 -20367
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +0 -1738
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +0 -9782
- package/toDate-Bw2KTWeq.js +0 -15
|
@@ -1,56 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var S = (t, e, a) => e.has(t) || v("Cannot " + a);
|
|
5
|
-
var $ = (t, e, a) => (S(t, e, "read from private field"), a ? a.call(t) : e.get(t)), w = (t, e, a) => e.has(t) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), g = (t, e, a, s) => (S(t, e, "write to private field"), s ? s.call(t, a) : e.set(t, a), a);
|
|
6
|
-
import { __runInitializers as m, __esDecorate as z } from "tslib";
|
|
7
|
-
import { SbbLanguageController as L } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
8
|
-
import { forceType as D } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
9
|
-
import { i18nDurationHour as h, i18nDurationMinute as p } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
10
|
-
import { boxSizingStyles as E } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
11
|
-
import { css as T, LitElement as k, html as I } from "lit";
|
|
12
|
-
import { customElement as O, property as j } from "lit/decorators.js";
|
|
13
|
-
const C = T`:host{display:inline-block}.duration{--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);margin:0;white-space:nowrap}.duration__text--visually-hidden{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
|
|
14
|
-
let G = (() => {
|
|
15
|
-
var o, n;
|
|
16
|
-
let t = [O("sbb-timetable-duration")], e, a = [], s, f = k, b, d = [], _ = [];
|
|
17
|
-
return n = class extends f {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
w(this, o);
|
|
21
|
-
g(this, o, m(this, d, "")), this._language = (m(this, _), new L(this));
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Stringified JSON which defines most of the
|
|
25
|
-
* content of the component. Please check the
|
|
26
|
-
* individual stories to get an idea of the
|
|
27
|
-
* structure.
|
|
28
|
-
*/
|
|
29
|
-
get config() {
|
|
30
|
-
return $(this, o);
|
|
31
|
-
}
|
|
32
|
-
set config(i) {
|
|
33
|
-
g(this, o, i);
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
const i = JSON.parse(this.config), r = h.multiple.short[this._language.current], u = p.multiple.short[this._language.current];
|
|
37
|
-
let c = "", l = "", y = h.multiple.long[this._language.current], x = p.multiple.long[this._language.current];
|
|
38
|
-
return i.hours === 1 && (y = h.single.long[this._language.current]), i.minutes === 1 && (x = p.single.long[this._language.current]), i.hours !== 0 && (c += `${i.hours} ${r}`, l += `${i.hours} ${y}`), c += ` ${i.minutes} ${u}`, l += ` ${i.minutes} ${x}.`, I`
|
|
39
|
-
<p aria-label=${l} class="duration" role="text">
|
|
40
|
-
<span aria-hidden="true" class="duration__text--visual" role="presentation">
|
|
41
|
-
${c}
|
|
42
|
-
</span>
|
|
43
|
-
<span class="duration__text--visually-hidden">${l}</span>
|
|
44
|
-
</p>
|
|
45
|
-
`;
|
|
46
|
-
}
|
|
47
|
-
}, o = new WeakMap(), s = n, (() => {
|
|
48
|
-
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
49
|
-
b = [D(), j()], z(n, null, b, { kind: "accessor", name: "config", static: !1, private: !1, access: { has: (r) => "config" in r, get: (r) => r.config, set: (r, u) => {
|
|
50
|
-
r.config = u;
|
|
51
|
-
} }, metadata: i }, d, _), z(null, e = { value: s }, t, { kind: "class", name: s.name, metadata: i }, null, a), s = e.value, i && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
52
|
-
})(), n.styles = [E, C], m(s, a), s;
|
|
53
|
-
})();
|
|
54
|
-
export {
|
|
55
|
-
G as SbbTimetableDurationElement
|
|
56
|
-
};
|
|
1
|
+
import { t as e } from "../timetable-duration.component-DaYoJUGS.js";
|
|
2
|
+
export { e as SbbTimetableDurationElement };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
3
|
+
import { SbbLanguageController as r } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
4
|
+
import { forceType as i } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
5
|
+
import { boxSizingStyles as a } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
6
|
+
import { css as o, html as s } from "lit";
|
|
7
|
+
import { i18nDurationHour as c, i18nDurationMinute as l } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
8
|
+
import { property as u } from "lit/decorators.js";
|
|
9
|
+
//#region src/elements-experimental/timetable-duration/timetable-duration.scss?lit&inline
|
|
10
|
+
var d = o`:host{display:inline-block}.duration{--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);white-space:nowrap;margin:0}.duration__text--visually-hidden{clip-path:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`, f = (() => {
|
|
11
|
+
let o = n, f, p = [], m = [];
|
|
12
|
+
return class extends o {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.#e = t(this, p, ""), this._language = (t(this, m), new r(this));
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
18
|
+
f = [i(), u()], e(this, null, f, {
|
|
19
|
+
kind: "accessor",
|
|
20
|
+
name: "config",
|
|
21
|
+
static: !1,
|
|
22
|
+
private: !1,
|
|
23
|
+
access: {
|
|
24
|
+
has: (e) => "config" in e,
|
|
25
|
+
get: (e) => e.config,
|
|
26
|
+
set: (e, t) => {
|
|
27
|
+
e.config = t;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
metadata: t
|
|
31
|
+
}, p, m), t && Object.defineProperty(this, Symbol.metadata, {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
configurable: !0,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: t
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
static {
|
|
39
|
+
this.elementName = "sbb-timetable-duration";
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.styles = [a, d];
|
|
43
|
+
}
|
|
44
|
+
#e;
|
|
45
|
+
get config() {
|
|
46
|
+
return this.#e;
|
|
47
|
+
}
|
|
48
|
+
set config(e) {
|
|
49
|
+
this.#e = e;
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
let e = JSON.parse(this.config), t = c.multiple.short[this._language.current], n = l.multiple.short[this._language.current], r = "", i = "", a = c.multiple.long[this._language.current], o = l.multiple.long[this._language.current];
|
|
53
|
+
return e.hours === 1 && (a = c.single.long[this._language.current]), e.minutes === 1 && (o = l.single.long[this._language.current]), e.hours !== 0 && (r += `${e.hours} ${t}`, i += `${e.hours} ${a}`), r += ` ${e.minutes} ${n}`, i += ` ${e.minutes} ${o}.`, s`
|
|
54
|
+
<p aria-label=${i} class="duration" role="text">
|
|
55
|
+
<span aria-hidden="true" class="duration__text--visual" role="presentation">
|
|
56
|
+
${r}
|
|
57
|
+
</span>
|
|
58
|
+
<span class="duration__text--visually-hidden">${i}</span>
|
|
59
|
+
</p>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
64
|
+
//#endregion
|
|
65
|
+
export { f as t };
|
package/timetable-duration.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { t as e } from "./timetable-duration.component-DaYoJUGS.js";
|
|
2
|
+
import "./timetable-duration.pure.js";
|
|
3
|
+
//#region src/elements-experimental/timetable-duration.ts
|
|
4
|
+
e.define();
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as SbbTimetableDurationElement };
|
|
@@ -1,426 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var Ne = (t, i, s) => i.has(t) || ke("Cannot " + s);
|
|
5
|
-
var f = (t, i, s) => (Ne(t, i, "read from private field"), s ? s.call(t) : i.get(t)), y = (t, i, s) => i.has(t) ? ke("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, s), l = (t, i, s, n) => (Ne(t, i, "write to private field"), n ? n.call(t, s) : i.set(t, s), s);
|
|
6
|
-
import { __runInitializers as o, __esDecorate as _ } from "tslib";
|
|
7
|
-
import { SbbLanguageController as nt } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
8
|
-
import { defaultDateAdapter as Ie } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
9
|
-
import { forceType as N } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
10
|
-
import { setOrRemoveAttribute as ot } from "@sbb-esta/lyne-elements/core/dom.js";
|
|
11
|
-
import { i18nFromPlatform as lt, i18nDeparture as ze, i18nMeansOfTransport as J, i18nDirection as Le, i18nRealTimeInfo as Re, i18nSupersaver as Me, i18nTransferProcedures as ct, i18nTransferProcedure as bt, i18nArrival as dt, i18nClass as Ee, i18nOccupancy as Oe, i18nTravelhints as gt, i18nTripDuration as Pe, i18nNew as De, i18nTripQuayChange as pt } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
12
|
-
import { boxSizingStyles as ut } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
13
|
-
import { css as ht, LitElement as mt, nothing as g, html as c } from "lit";
|
|
14
|
-
import { customElement as _t, property as v } from "lit/decorators.js";
|
|
15
|
-
import { removeTimezoneFromISOTimeString as Fe, durationToTime as qe } from "../core/datetime.js";
|
|
16
|
-
import { isRideLeg as Je, getDepartureArrivalTimeAttribute as ft } from "../core/timetable.js";
|
|
17
|
-
import "@sbb-esta/lyne-elements/card.js";
|
|
18
|
-
import "@sbb-esta/lyne-elements/icon.js";
|
|
19
|
-
import "@sbb-esta/lyne-elements/timetable-occupancy.js";
|
|
20
|
-
import "../pearl-chain-time.js";
|
|
21
|
-
import { f as Be } from "../format-CmKROkbc.js";
|
|
22
|
-
const yt = ht`:host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timetable-row-height: 1.5625rem;--sbb-timetable-row-height-header: 1.25rem;--sbb-timetable-row-height-footer: 1rem;--sbb-timetable-row-skeleton-pulse-duration: 1.8s;display:block}:host([disable-animation]){--sbb-timetable-row-skeleton-pulse-duration: 0}.sbb-timetable__row-transport-icon{--sbb-icon-svg-width: 1.25rem;--sbb-icon-svg-height: 1.25rem}.sbb-travel-hints__item{--sbb-icon-svg-height: .875rem}.sbb-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-timetable__row--quay{margin-inline-end:var(--sbb-spacing-fixed-1x)}.sbb-timetable__row--quay-type{float:left}ul{list-style:none;margin:0;padding:0;font-size:inherit;display:inline-flex}li,.sbb-timetable__row-transport{display:inline-flex;align-self:center}.sbb-timetable__row-transportnumber,.sbb-timetable__row-time{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700;line-height:unset;white-space:nowrap;align-self:center}.sbb-timetable__row{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;flex-direction:column;gap:var(--sbb-timetable-row-gap)}.sbb-timetable__row-header,.sbb-timetable__row-footer{animation:none}.sbb-timetable__row-header{display:flex;gap:var(--sbb-spacing-fixed-2x);align-items:center;line-height:var(--sbb-timetable-row-height-header)}.sbb-timetable__row-details,.sbb-timetable__row-hints{display:inline-flex;gap:var(--sbb-spacing-fixed-1x);align-items:center}.sbb-timetable__row-header p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;align-self:center}.sbb-timetable__row-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--sbb-spacing-fixed-2x);line-height:var(--sbb-timetable-row-height-footer)}.sbb-timetable__row-footer>span{align-self:center}.sbb-timetable__row-footer :only-child{margin-inline-start:auto}.sbb-timetable__row-quay--changed{color:var(--sbb-color-primary)}.sbb-timetable__row-transport-wrapper,.sbb-timetable__row-warning{display:inline-flex}.sbb-loading{pointer-events:none}.sbb-loading__wrapper{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-2x)}.sbb-loading__row{width:100%;border-radius:var(--sbb-border-radius-1x);height:var(--sbb-timetable-row-height)}@media(min-width:64rem){.sbb-loading__row{height:1.75rem}}@media(forced-colors:active){.sbb-loading__row{border:var(--sbb-border-width-1x) solid ButtonBorder!important}}.sbb-loading__row,.sbb-loading__badge{background:var(--sbb-background-color-4);animation:skeleton-pulse var(--sbb-timetable-row-skeleton-pulse-duration) ease-out infinite}.sbb-loading__row:first-of-type{height:var(--sbb-timetable-row-height-header);width:50%}.sbb-loading__row:last-of-type{height:var(--sbb-timetable-row-height-footer)}.sbb-loading__badge{margin-inline:auto calc(var(--sbb-spacing-fixed-3x) * -1);padding-inline-end:var(--sbb-spacing-fixed-6x);border-end-start-radius:var(--sbb-card-badge-border-radius);transform:var(--sbb-card-badge-skew);width:7.1875rem;height:1.25rem}@keyframes skeleton-pulse{0%{background:var(--sbb-background-color-4)}17%{background:var(--sbb-background-color-4)}50%{background:var(--sbb-background-color-3)}67%{background:var(--sbb-background-color-3)}to{background:var(--sbb-background-color-4)}}`, vt = (t, i) => c`<span class="sbb-timetable__row-transport">
|
|
23
|
-
<sbb-icon name=${t}></sbb-icon>
|
|
24
|
-
<span class="sbb-screen-reader-only">${i}</span>
|
|
25
|
-
</span>`, xt = (t, i) => {
|
|
26
|
-
const s = ["M", "B", "T"].includes(t) ? " " : "";
|
|
27
|
-
return c`<span class="sbb-timetable__row-transportnumber">
|
|
28
|
-
${i !== null ? t + s + i : t}
|
|
29
|
-
</span>`;
|
|
30
|
-
}, Ue = (t) => t?.find((i) => i.serviceJourney?.serviceAlteration?.reachableText)?.serviceJourney?.serviceAlteration?.reachableText, wt = (t) => t?.find((i) => i.serviceJourney?.serviceAlteration?.delayText)?.serviceJourney?.serviceAlteration?.delayText, We = (t) => t?.find((i) => !!i.serviceJourney?.serviceAlteration?.redirectedText)?.serviceJourney?.serviceAlteration?.redirectedText, je = (t) => t?.find((i) => !!i.serviceJourney?.serviceAlteration?.unplannedStopPointsText)?.serviceJourney?.serviceAlteration?.unplannedStopPointsText, $t = (t) => {
|
|
31
|
-
const i = {
|
|
32
|
-
DISTURBANCE: 0,
|
|
33
|
-
INFORMATION: 1,
|
|
34
|
-
DELAY: 2,
|
|
35
|
-
TRAIN_REPLACEMENT_BY_BUS: 3,
|
|
36
|
-
CONSTRUCTION_SITE: 4,
|
|
37
|
-
END_MESSAGE: 5
|
|
38
|
-
};
|
|
39
|
-
return [...t].sort((s, n) => i[s.cause] - i[n.cause]);
|
|
40
|
-
}, Tt = (t) => {
|
|
41
|
-
switch (t?.cause) {
|
|
42
|
-
case "DISTURBANCE":
|
|
43
|
-
return {
|
|
44
|
-
name: "disruption",
|
|
45
|
-
text: t?.broadcastMessages?.length ? t?.broadcastMessages[0].title : ""
|
|
46
|
-
};
|
|
47
|
-
case "INFORMATION":
|
|
48
|
-
return {
|
|
49
|
-
name: "info",
|
|
50
|
-
text: t?.broadcastMessages.length ? t?.broadcastMessages[0].title : ""
|
|
51
|
-
};
|
|
52
|
-
case "DELAY":
|
|
53
|
-
return {
|
|
54
|
-
name: "delay",
|
|
55
|
-
text: t?.broadcastMessages.length ? t?.broadcastMessages[0].title : ""
|
|
56
|
-
};
|
|
57
|
-
case "TRAIN_REPLACEMENT_BY_BUS":
|
|
58
|
-
return {
|
|
59
|
-
name: "replacementbus",
|
|
60
|
-
text: t?.broadcastMessages.length ? t?.broadcastMessages[0].title : ""
|
|
61
|
-
};
|
|
62
|
-
case "CONSTRUCTION_SITE":
|
|
63
|
-
return {
|
|
64
|
-
name: "construction",
|
|
65
|
-
text: t?.broadcastMessages.length ? t?.broadcastMessages[0].title : ""
|
|
66
|
-
};
|
|
67
|
-
default:
|
|
68
|
-
return {
|
|
69
|
-
name: "info",
|
|
70
|
-
text: t?.broadcastMessages.length ? t?.broadcastMessages[0].title : ""
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}, At = (t, i) => {
|
|
74
|
-
const { summary: s, legs: n } = t || {}, p = n?.filter((S) => Je(S)), { tripStatus: h } = s || {};
|
|
75
|
-
if (h?.cancelled || h?.partiallyCancelled)
|
|
76
|
-
return { name: "cancellation", text: h?.cancelledText };
|
|
77
|
-
if (Ue(p))
|
|
78
|
-
return { name: "missed-connection", text: Ue(p) };
|
|
79
|
-
if (h?.alternative)
|
|
80
|
-
return { name: "alternative", text: h.alternativeText };
|
|
81
|
-
if (We(p))
|
|
82
|
-
return { name: "reroute", text: We(p) };
|
|
83
|
-
if (je(p))
|
|
84
|
-
return { name: "add-stop", text: je(p) };
|
|
85
|
-
if (h?.delayed || h?.delayedUnknown)
|
|
86
|
-
return { name: "delay", text: wt(p) };
|
|
87
|
-
if (h?.quayChanged) {
|
|
88
|
-
const S = p[0].departure;
|
|
89
|
-
return {
|
|
90
|
-
name: "platform-change",
|
|
91
|
-
text: S.quayChanged ? S.quayChangedText : pt[i]
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
return {};
|
|
95
|
-
}, St = (t) => {
|
|
96
|
-
const i = ["RR", "RK", "RC", "RL", "RM", "RS", "RU", "XP", "XR", "XT"];
|
|
97
|
-
return t.reduce((s, n) => {
|
|
98
|
-
if (s)
|
|
99
|
-
return s;
|
|
100
|
-
if (i.includes(n.name))
|
|
101
|
-
return { ...n, name: "RR" };
|
|
102
|
-
}, void 0);
|
|
103
|
-
}, Ct = (t) => {
|
|
104
|
-
const i = ["Z", "SB", "SZ", "VR", "TG"];
|
|
105
|
-
return t.filter((n, p) => t.findIndex((h) => h.name === n.name) === p).filter((n) => i.includes(n.name)).sort((n, p) => i.indexOf(n.name) - i.indexOf(p.name));
|
|
106
|
-
}, Y = (t) => {
|
|
107
|
-
const i = St(t), s = Ct(t);
|
|
108
|
-
return i === void 0 ? s : s.length ? s[0].name === "Z" && s[1] ? [s[0], i, s[1]].concat(s.slice(2)) : [i, ...s] : [i];
|
|
109
|
-
};
|
|
110
|
-
let Ht = (() => {
|
|
111
|
-
var I, z, L, R, M, E, O, P, D, F, b;
|
|
112
|
-
let t = [_t("sbb-timetable-row")], i, s = [], n, p = mt, h = [], S, X = [], Z = [], G, V = [], ee = [], te, ae = [], ie = [], se, re = [], ne = [], oe, le = [], ce = [], be, de = [], ge = [], pe, ue = [], he = [], me, _e = [], fe = [], ye, ve = [], xe = [], we, $e = [], Te = [], Ae;
|
|
113
|
-
return b = class extends p {
|
|
114
|
-
constructor() {
|
|
115
|
-
super(...arguments);
|
|
116
|
-
y(this, I);
|
|
117
|
-
y(this, z);
|
|
118
|
-
y(this, L);
|
|
119
|
-
y(this, R);
|
|
120
|
-
y(this, M);
|
|
121
|
-
y(this, E);
|
|
122
|
-
y(this, O);
|
|
123
|
-
y(this, P);
|
|
124
|
-
y(this, D);
|
|
125
|
-
y(this, F);
|
|
126
|
-
l(this, I, (o(this, h), o(this, X, null))), l(this, z, (o(this, Z), o(this, V, null))), l(this, L, (o(this, ee), o(this, ae, !1))), l(this, R, (o(this, ie), o(this, re, null))), l(this, M, (o(this, ne), o(this, le, !1))), l(this, E, (o(this, ce), o(this, de, !1))), l(this, O, (o(this, ge), o(this, ue, !1))), l(this, P, (o(this, he), o(this, _e, ""))), l(this, D, (o(this, fe), o(this, ve, !1))), l(this, F, (o(this, xe), o(this, $e, !1))), this._now = (o(this, Te), null), this._language = new nt(this);
|
|
127
|
-
}
|
|
128
|
-
/** The trip Prop. */
|
|
129
|
-
get trip() {
|
|
130
|
-
return f(this, I);
|
|
131
|
-
}
|
|
132
|
-
set trip(a) {
|
|
133
|
-
l(this, I, a);
|
|
134
|
-
}
|
|
135
|
-
/** The price Prop, which consists of the data for the badge. */
|
|
136
|
-
get price() {
|
|
137
|
-
return f(this, z);
|
|
138
|
-
}
|
|
139
|
-
set price(a) {
|
|
140
|
-
l(this, z, a);
|
|
141
|
-
}
|
|
142
|
-
/** This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated. */
|
|
143
|
-
get disableAnimation() {
|
|
144
|
-
return f(this, L);
|
|
145
|
-
}
|
|
146
|
-
set disableAnimation(a) {
|
|
147
|
-
l(this, L, a);
|
|
148
|
-
}
|
|
149
|
-
/** This will be forwarded to the notices section */
|
|
150
|
-
get boarding() {
|
|
151
|
-
return f(this, R);
|
|
152
|
-
}
|
|
153
|
-
set boarding(a) {
|
|
154
|
-
l(this, R, a);
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* The loading state -
|
|
158
|
-
* when this is true it will be render skeleton with an idling animation
|
|
159
|
-
*/
|
|
160
|
-
get loadingTrip() {
|
|
161
|
-
return f(this, M);
|
|
162
|
-
}
|
|
163
|
-
set loadingTrip(a) {
|
|
164
|
-
l(this, M, a);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* The Footpath attribute for rendering different icons
|
|
168
|
-
* true: render a11y-icon
|
|
169
|
-
* false: render walk-icon
|
|
170
|
-
* default: render walk-icon
|
|
171
|
-
*/
|
|
172
|
-
get a11yFootpath() {
|
|
173
|
-
return f(this, E);
|
|
174
|
-
}
|
|
175
|
-
set a11yFootpath(a) {
|
|
176
|
-
l(this, E, a);
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* The loading state -
|
|
180
|
-
* when this is true it will be render skeleton with an idling animation
|
|
181
|
-
*/
|
|
182
|
-
get loadingPrice() {
|
|
183
|
-
return f(this, O);
|
|
184
|
-
}
|
|
185
|
-
set loadingPrice(a) {
|
|
186
|
-
l(this, O, a);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Hidden label for the card action. It overrides the automatically generated accessibility text for the component. Use this prop to provide custom accessibility information for the component.
|
|
190
|
-
*/
|
|
191
|
-
get cardActionLabel() {
|
|
192
|
-
return f(this, P);
|
|
193
|
-
}
|
|
194
|
-
set cardActionLabel(a) {
|
|
195
|
-
l(this, P, a);
|
|
196
|
-
}
|
|
197
|
-
/** This will be forwarded to the sbb-card component as aria-expanded. */
|
|
198
|
-
get accessibilityExpanded() {
|
|
199
|
-
return f(this, D);
|
|
200
|
-
}
|
|
201
|
-
set accessibilityExpanded(a) {
|
|
202
|
-
l(this, D, a);
|
|
203
|
-
}
|
|
204
|
-
/** When this prop is true the sbb-card will be in the active state. */
|
|
205
|
-
get active() {
|
|
206
|
-
return f(this, F);
|
|
207
|
-
}
|
|
208
|
-
set active(a) {
|
|
209
|
-
l(this, F, a);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* A configured date which acts as the current date instead of the real current date.
|
|
213
|
-
* Only recommended for testing purposes.
|
|
214
|
-
*/
|
|
215
|
-
set now(a) {
|
|
216
|
-
this._now = Ie.getValidDateOrNull(Ie.deserialize(a));
|
|
217
|
-
}
|
|
218
|
-
get now() {
|
|
219
|
-
return this._now ?? /* @__PURE__ */ new Date();
|
|
220
|
-
}
|
|
221
|
-
willUpdate(a) {
|
|
222
|
-
super.willUpdate(a), a.has("loadingTrip") && ot(this, "role", this.loadingTrip ? null : "rowgroup");
|
|
223
|
-
}
|
|
224
|
-
/** The skeleton render function for the loading state */
|
|
225
|
-
_renderSkeleton() {
|
|
226
|
-
return c`
|
|
227
|
-
<sbb-card class="sbb-loading sbb-card-spacing-4x-xxs">
|
|
228
|
-
${this.loadingPrice ? c`<div class="sbb-loading__badge" slot="badge"></div>` : g}
|
|
229
|
-
<div class="sbb-loading__wrapper">
|
|
230
|
-
<div class="sbb-loading__row"></div>
|
|
231
|
-
<div class="sbb-loading__row"></div>
|
|
232
|
-
<div class="sbb-loading__row"></div>
|
|
233
|
-
</div>
|
|
234
|
-
</sbb-card>
|
|
235
|
-
`;
|
|
236
|
-
}
|
|
237
|
-
_getRideLegs() {
|
|
238
|
-
return this.trip?.legs?.filter((a) => Je(a)) ?? [];
|
|
239
|
-
}
|
|
240
|
-
_getQuayTypeStrings() {
|
|
241
|
-
if (!this.trip.summary?.product)
|
|
242
|
-
return null;
|
|
243
|
-
const a = this._getRideLegs(), r = this.trip.summary.product?.vehicleMode === "TRAIN" ? a[0].serviceJourney.quayTypeShortName || "" : a[0].serviceJourney.quayTypeName || "";
|
|
244
|
-
return {
|
|
245
|
-
long: lt[this._language.current] + " " + r,
|
|
246
|
-
short: r
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
/** map Quay */
|
|
250
|
-
_renderQuayType() {
|
|
251
|
-
if (!this.trip.summary?.product)
|
|
252
|
-
return;
|
|
253
|
-
const a = this._getQuayTypeStrings();
|
|
254
|
-
return c`
|
|
255
|
-
<span class="sbb-timetable__row--quay">
|
|
256
|
-
<span class="sbb-screen-reader-only">${a?.long} </span>
|
|
257
|
-
<span class="sbb-timetable__row--quay-type" aria-hidden="true"
|
|
258
|
-
>${a?.short}</span
|
|
259
|
-
>
|
|
260
|
-
</span>
|
|
261
|
-
`;
|
|
262
|
-
}
|
|
263
|
-
_handleHimCus(a) {
|
|
264
|
-
const { situations: e } = a || {}, r = e && $t(e), w = At(a, this._language.current);
|
|
265
|
-
return {
|
|
266
|
-
cus: Object.keys(w)?.length ? w : null,
|
|
267
|
-
him: e?.length ? Tt(r[0]) : null
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
_getAccessibilityText(a) {
|
|
271
|
-
const { summary: e, legs: r, notices: w } = a || {}, { departureWalk: d, arrivalWalk: W, departure: C, arrival: $, product: x, direction: H, occupancy: u, duration: T } = e || {}, { departureTimeAttribute: m, arrivalTimeAttribute: q } = ft(r, d || 0, W || 0, this._language.current, this.a11yFootpath), A = this._getRideLegs(), B = C?.time ? Fe(C.time) : void 0, U = $?.time ? Fe($.time) : void 0, Q = m ? `${m.text} ${m.duration}, ` : "", He = q ? `${q.text} ${q.duration}, ` : "", Qe = B ? `${ze[this._language.current]}: ${Be(B, "HH:mm")}, ` : "", Ke = () => C?.quayFormatted ? `${C?.quayChanged ? `${De[this._language.current]} ` : ""}${this._getQuayTypeStrings()?.long} ${C?.quayFormatted}, ` : "", Ye = x && x.vehicleMode ? J[x.vehicleMode.toLowerCase()] && `${J[x.vehicleMode.toLowerCase()][this._language.current]}, ` : "", Xe = x?.vehicleSubModeShortName ? `${x.vehicleSubModeShortName} ${x.line || ""}, ` : "", Ze = `${Le[this._language.current]} ${H}, `, j = this._handleHimCus(a), Se = j?.cus?.text ? `${Re[this._language.current]}: ${j?.cus?.text}, ` : "", Ge = j?.him?.text ? `${Re[this._language.current]}: ${j?.him?.text}, ` : "", Ve = this.boarding ? `${this.boarding.text}, ` : "", et = `${this.price?.isDiscount ? Me[this._language.current] : ""} ${this.price?.text && this.price?.price ? (this.price?.text || "") + " " + (this.price?.price || "") + ", " : ""}`, tt = A.length > 2 ? `${A.length - 1} ${ct[this._language.current]}, ` : A.length > 1 ? `${A.length - 1} ${bt[this._language.current]}, ` : "", at = U ? `${dt[this._language.current]}: ${Be(U, "HH:mm")}, ` : "";
|
|
272
|
-
let K = "";
|
|
273
|
-
u && (u.firstClass && u.firstClass !== "UNKNOWN" && (K += `${Ee.first[this._language.current]} ${Oe[u.firstClass.toLowerCase()]?.[this._language.current]}.`), u.secondClass && u.secondClass !== "UNKNOWN" && (K += ` ${Ee.second[this._language.current]} ${Oe[u.secondClass.toLowerCase()]?.[this._language.current]}.`));
|
|
274
|
-
const Ce = w && Y(w).length && Y(w)?.map((k, rt) => rt < 4 && k.text?.template).join(", ") + ", ", it = Ce ? `${gt[this._language.current]}: ${Ce}` : "", st = T && T > 0 ? `${Pe[this._language.current]} ${qe(T, this._language.current).long}, ` : "";
|
|
275
|
-
return [
|
|
276
|
-
Q,
|
|
277
|
-
Qe,
|
|
278
|
-
Ke(),
|
|
279
|
-
Ye,
|
|
280
|
-
Xe,
|
|
281
|
-
Ze,
|
|
282
|
-
Se,
|
|
283
|
-
Ve,
|
|
284
|
-
et,
|
|
285
|
-
Se ? "" : Ge,
|
|
286
|
-
at,
|
|
287
|
-
He,
|
|
288
|
-
st,
|
|
289
|
-
tt,
|
|
290
|
-
K,
|
|
291
|
-
it
|
|
292
|
-
].map((k) => k?.trim()).filter((k) => k && k.length > 0).join(" ");
|
|
293
|
-
}
|
|
294
|
-
render() {
|
|
295
|
-
if (this.loadingTrip)
|
|
296
|
-
return this._renderSkeleton();
|
|
297
|
-
const { legs: a, id: e, notices: r, summary: w } = this.trip || {}, { product: d, direction: W, departureWalk: C, departure: $, arrival: x, arrivalWalk: H, occupancy: u, duration: T } = w || {}, m = this._handleHimCus(this.trip), q = !!m.cus || !!m.him, A = r && Y(r), B = T ? qe(T, this._language.current) : null;
|
|
298
|
-
return c`
|
|
299
|
-
<sbb-card class="sbb-card-spacing-4x-xxs" id=${e}>
|
|
300
|
-
<sbb-card-button
|
|
301
|
-
?active=${this.active}
|
|
302
|
-
aria-expanded=${this.accessibilityExpanded ? "true" : g}
|
|
303
|
-
>
|
|
304
|
-
${this.cardActionLabel ? this.cardActionLabel : this._getAccessibilityText(this.trip)}
|
|
305
|
-
</sbb-card-button>
|
|
306
|
-
${this.loadingPrice ? c`<div class="sbb-loading__badge" slot="badge"></div>` : g}
|
|
307
|
-
${this.price && !this.loadingPrice ? c`<sbb-card-badge color=${this.price.isDiscount ? "charcoal" : "white"}>
|
|
308
|
-
${this.price.isDiscount ? c`<span aria-hidden="true">
|
|
309
|
-
%<span class="sbb-screen-reader-only"
|
|
310
|
-
>${Me[this._language.current]}</span
|
|
311
|
-
>
|
|
312
|
-
</span>` : g}
|
|
313
|
-
${this.price.text ? c`<span>${this.price.text}</span>` : g}
|
|
314
|
-
${this.price.price ? c`<span>${this.price.price}</span>` : g}
|
|
315
|
-
</sbb-card-badge>` : g}
|
|
316
|
-
<div class="sbb-timetable__row" role="row">
|
|
317
|
-
<div class="sbb-timetable__row-header" role="gridcell">
|
|
318
|
-
<div class="sbb-timetable__row-details">
|
|
319
|
-
${d?.corporateIdentityPictogram && c`<span class="sbb-timetable__row-transport-wrapper">
|
|
320
|
-
<sbb-icon
|
|
321
|
-
class="sbb-timetable__row-transport-icon"
|
|
322
|
-
name="picto:${d.corporateIdentityPictogram}"
|
|
323
|
-
></sbb-icon>
|
|
324
|
-
<span class="sbb-screen-reader-only">
|
|
325
|
-
${d && d.vehicleMode && J[d.vehicleMode.toLowerCase()] && J[d.vehicleMode.toLowerCase()][this._language.current]}
|
|
326
|
-
|
|
327
|
-
</span>
|
|
328
|
-
</span>`}
|
|
329
|
-
${d && (d.corporateIdentityIcon ? vt(d.corporateIdentityIcon, d.name) : d.vehicleSubModeShortName && xt(d.vehicleSubModeShortName, d?.line))}
|
|
330
|
-
</div>
|
|
331
|
-
${W ? c`<p>${`${Le[this._language.current]} ${W}`}</p>` : g}
|
|
332
|
-
</div>
|
|
333
|
-
<sbb-pearl-chain-time
|
|
334
|
-
role="gridcell"
|
|
335
|
-
.legs=${a}
|
|
336
|
-
.departureTime=${$?.time}
|
|
337
|
-
.arrivalTime=${x?.time}
|
|
338
|
-
.departureWalk=${C}
|
|
339
|
-
.arrivalWalk=${H}
|
|
340
|
-
?disable-animation=${this.disableAnimation}
|
|
341
|
-
?a11y-footpath=${this.a11yFootpath}
|
|
342
|
-
.now=${this.now}
|
|
343
|
-
></sbb-pearl-chain-time>
|
|
344
|
-
<div class="sbb-timetable__row-footer" role="gridcell">
|
|
345
|
-
${d && $?.quayFormatted ? c`<span
|
|
346
|
-
class=${$?.quayChanged ? "sbb-timetable__row-quay--changed" : g}
|
|
347
|
-
>
|
|
348
|
-
<span class="sbb-screen-reader-only">
|
|
349
|
-
${`${ze[this._language.current]} ${$?.quayChanged ? De[this._language.current] : ""}`}
|
|
350
|
-
|
|
351
|
-
</span>
|
|
352
|
-
${this._renderQuayType()} ${$?.quayFormatted}
|
|
353
|
-
</span>` : g}
|
|
354
|
-
${u?.firstClass && u?.firstClass !== "UNKNOWN" || u?.secondClass && u.secondClass !== "UNKNOWN" ? c`<sbb-timetable-occupancy
|
|
355
|
-
.firstClassOccupancy=${u?.firstClass?.toLowerCase()}
|
|
356
|
-
.secondClassOccupancy=${u?.secondClass?.toLowerCase()}
|
|
357
|
-
></sbb-timetable-occupancy>` : g}
|
|
358
|
-
${A && A.length || this.boarding ? c`<ul class="sbb-timetable__row-hints" role="list">
|
|
359
|
-
${A?.map((U, Q) => Q < 4 ? c`<li>
|
|
360
|
-
<sbb-icon
|
|
361
|
-
class="sbb-travel-hints__item"
|
|
362
|
-
name=${"sa-" + U.name?.toLowerCase()}
|
|
363
|
-
></sbb-icon>
|
|
364
|
-
<span class="sbb-screen-reader-only">${U.text?.template}</span>
|
|
365
|
-
</li>` : g)}
|
|
366
|
-
${this.boarding ? c`<li>
|
|
367
|
-
<sbb-icon
|
|
368
|
-
class="sbb-travel-hints__item"
|
|
369
|
-
name=${this.boarding?.name}
|
|
370
|
-
aria-label=${this.boarding?.text}
|
|
371
|
-
aria-hidden="false"
|
|
372
|
-
></sbb-icon>
|
|
373
|
-
</li>` : g}
|
|
374
|
-
</ul>` : g}
|
|
375
|
-
${T && T > 0 ? c`<time>
|
|
376
|
-
<span class="sbb-screen-reader-only">
|
|
377
|
-
${`${Pe[this._language.current]} ${B.long}`}
|
|
378
|
-
</span>
|
|
379
|
-
<span aria-hidden="true">${B.short}</span>
|
|
380
|
-
</time>` : g}
|
|
381
|
-
${q && (m.cus || m.him) ? c`<span class="sbb-timetable__row-warning">
|
|
382
|
-
<sbb-icon name=${(m.cus || m.him).name}></sbb-icon>
|
|
383
|
-
<span class="sbb-screen-reader-only">${(m.cus || m.him).text}</span>
|
|
384
|
-
</span>` : g}
|
|
385
|
-
</div>
|
|
386
|
-
</div>
|
|
387
|
-
</sbb-card>
|
|
388
|
-
`;
|
|
389
|
-
}
|
|
390
|
-
}, I = new WeakMap(), z = new WeakMap(), L = new WeakMap(), R = new WeakMap(), M = new WeakMap(), E = new WeakMap(), O = new WeakMap(), P = new WeakMap(), D = new WeakMap(), F = new WeakMap(), n = b, (() => {
|
|
391
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
392
|
-
S = [v({ type: Object })], G = [v({ type: Object })], te = [N(), v({ attribute: "disable-animation", reflect: !0, type: Boolean })], se = [v({ type: Object })], oe = [N(), v({ attribute: "loading-trip", type: Boolean })], be = [N(), v({ attribute: "a11y-footpath", type: Boolean })], pe = [N(), v({ attribute: "loading-price", type: Boolean })], me = [N(), v({ attribute: "card-action-label" })], ye = [N(), v({ attribute: "accessibility-expanded", type: Boolean })], we = [N(), v({ type: Boolean })], Ae = [v()], _(b, null, S, { kind: "accessor", name: "trip", static: !1, private: !1, access: { has: (e) => "trip" in e, get: (e) => e.trip, set: (e, r) => {
|
|
393
|
-
e.trip = r;
|
|
394
|
-
} }, metadata: a }, X, Z), _(b, null, G, { kind: "accessor", name: "price", static: !1, private: !1, access: { has: (e) => "price" in e, get: (e) => e.price, set: (e, r) => {
|
|
395
|
-
e.price = r;
|
|
396
|
-
} }, metadata: a }, V, ee), _(b, null, te, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, r) => {
|
|
397
|
-
e.disableAnimation = r;
|
|
398
|
-
} }, metadata: a }, ae, ie), _(b, null, se, { kind: "accessor", name: "boarding", static: !1, private: !1, access: { has: (e) => "boarding" in e, get: (e) => e.boarding, set: (e, r) => {
|
|
399
|
-
e.boarding = r;
|
|
400
|
-
} }, metadata: a }, re, ne), _(b, null, oe, { kind: "accessor", name: "loadingTrip", static: !1, private: !1, access: { has: (e) => "loadingTrip" in e, get: (e) => e.loadingTrip, set: (e, r) => {
|
|
401
|
-
e.loadingTrip = r;
|
|
402
|
-
} }, metadata: a }, le, ce), _(b, null, be, { kind: "accessor", name: "a11yFootpath", static: !1, private: !1, access: { has: (e) => "a11yFootpath" in e, get: (e) => e.a11yFootpath, set: (e, r) => {
|
|
403
|
-
e.a11yFootpath = r;
|
|
404
|
-
} }, metadata: a }, de, ge), _(b, null, pe, { kind: "accessor", name: "loadingPrice", static: !1, private: !1, access: { has: (e) => "loadingPrice" in e, get: (e) => e.loadingPrice, set: (e, r) => {
|
|
405
|
-
e.loadingPrice = r;
|
|
406
|
-
} }, metadata: a }, ue, he), _(b, null, me, { kind: "accessor", name: "cardActionLabel", static: !1, private: !1, access: { has: (e) => "cardActionLabel" in e, get: (e) => e.cardActionLabel, set: (e, r) => {
|
|
407
|
-
e.cardActionLabel = r;
|
|
408
|
-
} }, metadata: a }, _e, fe), _(b, null, ye, { kind: "accessor", name: "accessibilityExpanded", static: !1, private: !1, access: { has: (e) => "accessibilityExpanded" in e, get: (e) => e.accessibilityExpanded, set: (e, r) => {
|
|
409
|
-
e.accessibilityExpanded = r;
|
|
410
|
-
} }, metadata: a }, ve, xe), _(b, null, we, { kind: "accessor", name: "active", static: !1, private: !1, access: { has: (e) => "active" in e, get: (e) => e.active, set: (e, r) => {
|
|
411
|
-
e.active = r;
|
|
412
|
-
} }, metadata: a }, $e, Te), _(b, null, Ae, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, r) => {
|
|
413
|
-
e.now = r;
|
|
414
|
-
} }, metadata: a }, null, h), _(null, i = { value: n }, t, { kind: "class", name: n.name, metadata: a }, null, s), n = i.value, a && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
415
|
-
})(), b.styles = [ut, yt], o(n, s), n;
|
|
416
|
-
})();
|
|
417
|
-
export {
|
|
418
|
-
Ht as SbbTimetableRowElement,
|
|
419
|
-
Ct as filterNotices,
|
|
420
|
-
At as getCus,
|
|
421
|
-
Tt as getHimIcon,
|
|
422
|
-
Y as handleNotices,
|
|
423
|
-
vt as renderIconProduct,
|
|
424
|
-
xt as renderStringProduct,
|
|
425
|
-
$t as sortSituation
|
|
426
|
-
};
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../timetable-row.component-BDMAEsbR.js";
|
|
2
|
+
export { s as SbbTimetableRowElement, r as filterNotices, a as getCus, n as getHimIcon, e as handleNotices, i as renderIconProduct, o as renderStringProduct, t as sortSituation };
|