@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
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { t as e } from "./toDate-p-Tpkb7t.js";
|
|
2
|
+
import { r as t, t as n } from "./differenceInMinutes-Dr9gRqtu.js";
|
|
3
|
+
import { __esDecorate as r, __runInitializers as i } from "tslib";
|
|
4
|
+
import { SbbElement as a } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
5
|
+
import { forceType as o } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
6
|
+
import { boxSizingStyles as s } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
7
|
+
import { css as c, html as l, nothing as u } from "lit";
|
|
8
|
+
import { defaultDateAdapter as d } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
9
|
+
import { property as f } from "lit/decorators.js";
|
|
10
|
+
import { removeTimezoneFromISOTimeString as p } from "./core/datetime.js";
|
|
11
|
+
import { isRideLeg as m } from "./core/timetable.js";
|
|
12
|
+
import { styleMap as h } from "lit/directives/style-map.js";
|
|
13
|
+
//#region node_modules/date-fns/isAfter.js
|
|
14
|
+
function g(t, n) {
|
|
15
|
+
return +e(t) > +e(n);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region node_modules/date-fns/isBefore.js
|
|
19
|
+
function _(t, n) {
|
|
20
|
+
return +e(t) < +e(n);
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/elements-experimental/pearl-chain/pearl-chain.scss?lit&inline
|
|
24
|
+
var v = c`:host{--sbb-pearl-chain-height:var(--sbb-border-width-2x);--sbb-pearl-chain-spacing-small:.125rem;--sbb-pearl-chain-color:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-color-disruption:var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-color-past:var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-leg-width:100%;--sbb-pearl-chain-position-color:var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end:.625rem;--sbb-pearl-chain-bullet-size-stop:.5rem;--sbb-pearl-chain-bullet-color:var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past:var(--lightningcss-light,var(--sbb-color-metal))var(--lightningcss-dark,var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant:var(--lightningcss-light,var(--sbb-color-metal))var(--lightningcss-dark,var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-disruption:var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width:var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration:1.92s;--sbb-pearl-chain-bullet-animation-easing:ease-out;--sbb-pearl-chain-bullet-crossed-width:.88375rem;--sbb-pearl-chain-bullet-crossed-height:.21875rem;--sbb-pearl-chain-bullet-crossed-border-width:.09375rem;display:block}.sbb-pearl-chain{color:var(--sbb-pearl-chain-color);width:100%;padding-block:calc((var(--sbb-pearl-chain-bullet-size-start-end) - var(--sbb-pearl-chain-height)) / 2);flex-wrap:nowrap;justify-content:space-between;padding-inline-end:var(--sbb-pearl-chain-bullet-size-start-end);display:flex;position:relative}.sbb-pearl-chain__bullet{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors:active){.sbb-pearl-chain__bullet{--sbb-pearl-chain-bullet-color:CanvasText}}.sbb-pearl-chain__bullet{content:"";z-index:3;background-color:currentColor;position:absolute;inset-block-start:0}.sbb-pearl-chain__bullet:first-of-type{inset-inline-start:0}.sbb-pearl-chain__bullet:last-of-type{inset-inline-end:0}.sbb-pearl-chain__leg{height:var(--sbb-pearl-chain-height);border-inline-end:var(--sbb-pearl-chain-spacing-small) solid Canvas;width:var(--sbb-pearl-chain-leg-width);background-color:currentColor;flex-grow:0;flex-shrink:0;align-items:center;display:flex;position:relative}@media (forced-colors:active){.sbb-pearl-chain__leg{background-color:canvastext}.sbb-pearl-chain--past .sbb-pearl-chain__leg{background-color:graytext}}.sbb-pearl-chain__leg:last-of-type{border:none}.sbb-pearl-chain__stop{z-index:2;background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%;position:relative}@media (forced-colors:active){.sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color:CanvasText}}.sbb-pearl-chain__stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain__bullet--future{background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors:active){.sbb-pearl-chain__bullet--future{--sbb-pearl-chain-bullet-color:CanvasText}}.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{color:var(--sbb-pearl-chain-color-past);--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-past)}@media (forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{--sbb-pearl-chain-bullet-color:GrayText!important;background-color:graytext!important}}.sbb-pearl-chain__bullet--progress{background:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-past)}@media (forced-colors:active){.sbb-pearl-chain__bullet--progress{--sbb-pearl-chain-bullet-color:GrayText!important}}.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:var(--sbb-pearl-chain-color-disruption);--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{--sbb-pearl-chain-bullet-color:Highlight;color:highlight;background:highlight}}.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors:active){.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color:Highlight}}.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-past)}@media (forced-colors:active){.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color:GrayText!important}}.sbb-pearl-chain__leg--disruption:after{background-color:unset;background-image:linear-gradient(90deg,currentColor 0% 50%,canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media (forced-colors:active){.sbb-pearl-chain__leg--disruption:after{background:unset;border-block-start:.0625rem dashed highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__leg--skipped{color:var(--sbb-pearl-chain-color-disruption)}.sbb-pearl-chain__leg--skipped:after{background-color:unset;background-image:linear-gradient(90deg,currentColor 0% 50%,canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media (forced-colors:active){.sbb-pearl-chain__leg--skipped:after{background:unset;border-block-start:.0625rem dashed highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__stop--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain__stop--departure-skipped:before{content:"";border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width);position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)rotate(45deg)}@media (forced-colors:active){.sbb-pearl-chain__stop--departure-skipped:before{background:highlight}}.sbb-pearl-chain--arrival-skipped,.sbb-pearl-chain--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{content:"";border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width);position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)rotate(45deg)}@media (forced-colors:active){.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{background:highlight}}.sbb-pearl-chain__leg:after{content:"";border-radius:var(--sbb-pearl-chain-height);z-index:1;background-color:currentColor;position:absolute;inset-block:0;inset-inline-start:0}@media (forced-colors:active){.sbb-pearl-chain__leg:after{background-color:canvastext}.sbb-pearl-chain--past .sbb-pearl-chain__leg:after{background-color:graytext}}.sbb-pearl-chain__leg:last-of-type:after{inset-inline-end:calc(-1 * var(--sbb-pearl-chain-height))}.sbb-pearl-chain__leg--progress:after{background-color:var(--sbb-pearl-chain-color-past);width:var(--sbb-pearl-chain-leg-status)}.sbb-pearl-chain__position{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color:CanvasText}}.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-position-color)}@media (forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-position-color:Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb, var(--sbb-pearl-chain-position-color) 20%, transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain__position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;z-index:4;position:absolute;inset-block-start:-200%;inset-inline-start:var(--sbb-pearl-chain-status-position)}.sbb-pearl-chain__position--no-animation{animation:unset}.sbb-screen-reader-only{clip-path:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`, y = (() => {
|
|
25
|
+
let e = a, c = [], y, b = [], x = [], S, C = [], w = [], T;
|
|
26
|
+
return class extends e {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments), this.#e = (i(this, c), i(this, b, [])), this.#t = (i(this, x), i(this, C, !1)), this._now = (i(this, w), null);
|
|
29
|
+
}
|
|
30
|
+
static {
|
|
31
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
32
|
+
y = [f({ type: Array })], S = [o(), f({
|
|
33
|
+
attribute: "disable-animation",
|
|
34
|
+
type: Boolean
|
|
35
|
+
})], T = [f()], r(this, null, y, {
|
|
36
|
+
kind: "accessor",
|
|
37
|
+
name: "legs",
|
|
38
|
+
static: !1,
|
|
39
|
+
private: !1,
|
|
40
|
+
access: {
|
|
41
|
+
has: (e) => "legs" in e,
|
|
42
|
+
get: (e) => e.legs,
|
|
43
|
+
set: (e, t) => {
|
|
44
|
+
e.legs = t;
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
metadata: t
|
|
48
|
+
}, b, x), r(this, null, S, {
|
|
49
|
+
kind: "accessor",
|
|
50
|
+
name: "disableAnimation",
|
|
51
|
+
static: !1,
|
|
52
|
+
private: !1,
|
|
53
|
+
access: {
|
|
54
|
+
has: (e) => "disableAnimation" in e,
|
|
55
|
+
get: (e) => e.disableAnimation,
|
|
56
|
+
set: (e, t) => {
|
|
57
|
+
e.disableAnimation = t;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
metadata: t
|
|
61
|
+
}, C, w), r(this, null, T, {
|
|
62
|
+
kind: "setter",
|
|
63
|
+
name: "now",
|
|
64
|
+
static: !1,
|
|
65
|
+
private: !1,
|
|
66
|
+
access: {
|
|
67
|
+
has: (e) => "now" in e,
|
|
68
|
+
set: (e, t) => {
|
|
69
|
+
e.now = t;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
metadata: t
|
|
73
|
+
}, null, c), t && Object.defineProperty(this, Symbol.metadata, {
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
configurable: !0,
|
|
76
|
+
writable: !0,
|
|
77
|
+
value: t
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
static {
|
|
81
|
+
this.elementName = "sbb-pearl-chain";
|
|
82
|
+
}
|
|
83
|
+
static {
|
|
84
|
+
this.styles = [s, v];
|
|
85
|
+
}
|
|
86
|
+
#e;
|
|
87
|
+
get legs() {
|
|
88
|
+
return this.#e;
|
|
89
|
+
}
|
|
90
|
+
set legs(e) {
|
|
91
|
+
this.#e = e;
|
|
92
|
+
}
|
|
93
|
+
#t;
|
|
94
|
+
get disableAnimation() {
|
|
95
|
+
return this.#t;
|
|
96
|
+
}
|
|
97
|
+
set disableAnimation(e) {
|
|
98
|
+
this.#t = e;
|
|
99
|
+
}
|
|
100
|
+
set now(e) {
|
|
101
|
+
this._now = d.getValidDateOrNull(d.deserialize(e));
|
|
102
|
+
}
|
|
103
|
+
get now() {
|
|
104
|
+
return this._now;
|
|
105
|
+
}
|
|
106
|
+
_getAllDuration(e) {
|
|
107
|
+
return e?.reduce((e, t) => {
|
|
108
|
+
let r = p(t.arrival?.time), i = p(t.departure?.time);
|
|
109
|
+
return r && i ? e + n(p(t.arrival.time), p(t.departure.time)) : e;
|
|
110
|
+
}, 0);
|
|
111
|
+
}
|
|
112
|
+
_isAllCancelled(e) {
|
|
113
|
+
return e?.every((e) => e?.serviceJourney?.serviceAlteration?.cancelled);
|
|
114
|
+
}
|
|
115
|
+
_getRelativeDuration(e, t) {
|
|
116
|
+
let r = p(t.arrival?.time), i = p(t.departure?.time);
|
|
117
|
+
if (r && i) {
|
|
118
|
+
let r = n(p(t.arrival.time), p(t.departure.time)), i = this._getAllDuration(e);
|
|
119
|
+
return i === 0 ? 100 : r / i * 100;
|
|
120
|
+
}
|
|
121
|
+
return 0;
|
|
122
|
+
}
|
|
123
|
+
_getProgress(e, r, i) {
|
|
124
|
+
if (!r?.time || !i?.time) return 0;
|
|
125
|
+
let a = t(r.time, r.delay ?? 0), o = n(t(i.time, i.delay ?? 0), a), s = n(e, a);
|
|
126
|
+
return o && s / o * 100;
|
|
127
|
+
}
|
|
128
|
+
_getStatus(e, n, r) {
|
|
129
|
+
let i = n && n.time && t(n.time, n.delay ?? 0), a = r && r.time && t(r.time, r.delay ?? 0);
|
|
130
|
+
return i && _(i, e) && a && g(a, e) ? "progress" : a && _(a, e) ? "past" : "future";
|
|
131
|
+
}
|
|
132
|
+
_renderPosition(e, t, n) {
|
|
133
|
+
let r = this._getProgress(e, t, n);
|
|
134
|
+
if (r < 0 && r > 100) return;
|
|
135
|
+
let i = () => ({
|
|
136
|
+
"--sbb-pearl-chain-status-position": `${r}%`,
|
|
137
|
+
...r >= 50 ? { transform: "translateX(-100%)" } : {}
|
|
138
|
+
}), a = this.disableAnimation ? "sbb-pearl-chain__position--no-animation" : "";
|
|
139
|
+
return l`<span
|
|
140
|
+
style=${h(i())}
|
|
141
|
+
class="sbb-pearl-chain__position ${a}"
|
|
142
|
+
></span>`;
|
|
143
|
+
}
|
|
144
|
+
render() {
|
|
145
|
+
let e = this.now ?? /* @__PURE__ */ new Date(), t = this.legs?.filter((e) => m(e)), n = t?.length && p(t[0]?.departure?.time), r = n && {
|
|
146
|
+
time: n,
|
|
147
|
+
delay: t[0].departure.delay ?? 0
|
|
148
|
+
}, i = t?.length && p(t[t.length - 1].arrival?.time), a = i && {
|
|
149
|
+
time: i,
|
|
150
|
+
delay: t[t.length - 1]?.arrival.delay ?? 0
|
|
151
|
+
}, o = t && t[0]?.serviceJourney?.stopPoints && t[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "", s = (() => {
|
|
152
|
+
let e = t && t[t.length - 1], n = e && e.serviceJourney?.stopPoints;
|
|
153
|
+
return n && n[n.length - 1].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--arrival-skipped" : "";
|
|
154
|
+
})(), c = t && t[0]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--departure-disruption" : "", d = t && t[t.length - 1]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--arrival-disruption" : "", f = r && a && this._getStatus(e, r, a), g = t && f && !c ? "sbb-pearl-chain__bullet--" + f : "", _ = t && f && !d ? "sbb-pearl-chain__bullet--" + this._getStatus(e, void 0, a) : "";
|
|
155
|
+
return this._isAllCancelled(t) ? l`
|
|
156
|
+
<div class="sbb-pearl-chain">
|
|
157
|
+
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
158
|
+
<div class="sbb-pearl-chain__leg sbb-pearl-chain__leg--disruption"></div>
|
|
159
|
+
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
160
|
+
</div>
|
|
161
|
+
` : l`
|
|
162
|
+
<div class="sbb-pearl-chain">
|
|
163
|
+
<span
|
|
164
|
+
class="sbb-pearl-chain__bullet ${g} ${o} ${c}"
|
|
165
|
+
></span>
|
|
166
|
+
${t?.map((n, r) => {
|
|
167
|
+
let { stopPoints: i, serviceAlteration: a } = n?.serviceJourney || {}, o = this._getRelativeDuration(t, n), s = p(n.departure?.time), c = p(n.arrival?.time), d = i && i[i.length - 1]?.stopStatus === "NOT_SERVICED", f = i && i[i.length - 1]?.stopStatus === "PLANNED", m = i && i[0]?.stopStatus === "NOT_SERVICED", g = r > 0 && t[r - 1].serviceJourney.stopPoints, _ = g && g[g.length - 1]?.stopStatus === "NOT_SERVICED", v = d || m && f ? "sbb-pearl-chain__leg--skipped" : "", y = m || _ ? "sbb-pearl-chain__stop--departure-skipped" : "", b = a?.cancelled || a?.partiallyCancelled ? "sbb-pearl-chain__leg--disruption" : "", x = {
|
|
168
|
+
time: s,
|
|
169
|
+
delay: n.departure?.delay ?? 0
|
|
170
|
+
}, S = {
|
|
171
|
+
time: c,
|
|
172
|
+
delay: n.arrival?.delay ?? 0
|
|
173
|
+
}, C = this._getStatus(e, x, S);
|
|
174
|
+
return l` <div
|
|
175
|
+
class="sbb-pearl-chain__leg ${!b && !v && "sbb-pearl-chain__leg--" + C || ""} ${b} ${v}"
|
|
176
|
+
style=${h({
|
|
177
|
+
"--sbb-pearl-chain-leg-width": `${o}%`,
|
|
178
|
+
...C === "progress" && !b && !v ? { "--sbb-pearl-chain-leg-status": `${this._getProgress(e, x, S)}%` } : {}
|
|
179
|
+
})}
|
|
180
|
+
>
|
|
181
|
+
${r > 0 && r < t.length ? l`<span class="sbb-pearl-chain__stop ${y}"></span>` : u}
|
|
182
|
+
${C === "progress" && !b && !v ? this._renderPosition(e, x, S) : u}
|
|
183
|
+
</div>`;
|
|
184
|
+
})}
|
|
185
|
+
<span
|
|
186
|
+
class="sbb-pearl-chain__bullet ${_} ${s} ${d}"
|
|
187
|
+
></span>
|
|
188
|
+
</div>
|
|
189
|
+
`;
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
})();
|
|
193
|
+
//#endregion
|
|
194
|
+
export { y as t };
|
package/pearl-chain.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { t as e } from "./pearl-chain.component-DmjkVIva.js";
|
|
2
|
+
import "./pearl-chain.pure.js";
|
|
3
|
+
//#region src/elements-experimental/pearl-chain.ts
|
|
4
|
+
e.define();
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as SbbPearlChainElement };
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { svgs as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
E as mapIconToSvg
|
|
1
|
+
import { svgs as e } from "../svgs.js";
|
|
2
|
+
//#region src/elements-experimental/seat-reservation/common/mapper/icon-mapper.ts
|
|
3
|
+
var t = {
|
|
4
|
+
BICYCLE: { svgName: "sa-vo" },
|
|
5
|
+
BICYCLE_HIGH: { svgName: "sa-vo" },
|
|
6
|
+
BICYCLE_HIGH_ICON: { svgName: "sa-vo" },
|
|
7
|
+
BICYCLE_ICON: { svgName: "sa-vo" },
|
|
8
|
+
BICYCLE_LOW: { svgName: "sa-vo" },
|
|
9
|
+
BICYCLE_LOW_ICON: { svgName: "sa-vo" },
|
|
10
|
+
BICYCLE_MIDDLE: { svgName: "sa-vo" },
|
|
11
|
+
BICYCLE_MIDDLE_ICON: { svgName: "sa-vo" },
|
|
12
|
+
BISTRO: { svgName: "sa-mi" },
|
|
13
|
+
BISTRO_ICON: { svgName: "sa-mi" },
|
|
14
|
+
BUSINESS: { svgName: "sa-bz" },
|
|
15
|
+
BUSINESS_COMFORT: { svgName: "sa-bz" },
|
|
16
|
+
BUSINESS_ICON: { svgName: "sa-bz" },
|
|
17
|
+
COACH_BORDER_MIDDLE: { svg: e.chassisRowMiddle },
|
|
18
|
+
COACH_WALL_NO_PASSAGE: { svg: e.chassisRowOuter },
|
|
19
|
+
COACH_PASSAGE: { svg: e.chassisPassageWaggonTopLeft },
|
|
20
|
+
COMPARTMENT_PASSAGE: { svg: e.chassisPassageCompartmentMiddle },
|
|
21
|
+
COMPARTMENT_PASSAGE_HIGH: { svg: e.chassisPassageCompartmentLeftTop },
|
|
22
|
+
COMPARTMENT_PASSAGE_LOW: { svg: e.chassisPassageCompartmentRightBottom },
|
|
23
|
+
COMPARTMENT_WALL: { svg: e.chassisSeparator },
|
|
24
|
+
DRIVER_AREA: { svg: e.chassisDriverTrain },
|
|
25
|
+
DRIVER_AREA_BUS: { svg: e.chassisDriverBus },
|
|
26
|
+
DRIVER_AREA_TRAIN: { svg: e.chassisDriverTrainFull },
|
|
27
|
+
DRIVER_AREA_NO_VERTICAL_WALL: { svg: e.chassisDriverTrain },
|
|
28
|
+
EASY_ACCESS: { svgName: "sa-em" },
|
|
29
|
+
EASY_ACCESS_AREA: { svgName: "sa-em" },
|
|
30
|
+
EASY_ACCESS_ICON: { svgName: "sa-em" },
|
|
31
|
+
ENTRY_EXIT: { svg: e.layoutEntrance },
|
|
32
|
+
FAMILY: { svgName: "sa-fa" },
|
|
33
|
+
LUGGAGE_AREA: { svgName: "sa-ga" },
|
|
34
|
+
LUGGAGE_ICON: { svgName: "sa-ga" },
|
|
35
|
+
MULTI_FUNCTION_AREA: { svgName: "sa-mf" },
|
|
36
|
+
MULTI_FUNCTION_ICON: { svgName: "sa-mf" },
|
|
37
|
+
PLACE_BICYCLE_ALLOCATED: { svg: e.interiorPlaceBikeUnavailable },
|
|
38
|
+
PLACE_BICYCLE_FREE: { svg: e.interiorPlaceBikeDefault },
|
|
39
|
+
PLACE_BICYCLE_RESTRICTED: { svg: e.interiorPlaceBikeNotBookable },
|
|
40
|
+
PLACE_BICYCLE_SELECTED: { svg: e.interiorPlaceBikeSelected },
|
|
41
|
+
PLACE_SEAT_ALLOCATED: { svg: e.interiorPlaceSeatUnavailable },
|
|
42
|
+
PLACE_SEAT_FREE: { svg: e.interiorPlaceSeatDefault },
|
|
43
|
+
PLACE_SEAT_RESTRICTED: { svg: e.interiorPlaceSeatNotBookable },
|
|
44
|
+
PLACE_SEAT_SELECTED: { svg: e.interiorPlaceSeatSelected },
|
|
45
|
+
PLAYGROUND_AREA: { svgName: "sa-fa" },
|
|
46
|
+
PLAYGROUND_ICON: { svgName: "sa-fa" },
|
|
47
|
+
PRAM: { svgName: "sa-abteilkinderwagen" },
|
|
48
|
+
PRAM_AREA: { svgName: "sa-abteilkinderwagen" },
|
|
49
|
+
PRAM_ICON: { svgName: "sa-abteilkinderwagen" },
|
|
50
|
+
RESTAURANT: { svgName: "sa-wr" },
|
|
51
|
+
RESTAURANT_AREA: { svgName: "sa-wr" },
|
|
52
|
+
RESTAURANT_ICON: { svgName: "sa-wr" },
|
|
53
|
+
SILENCE: { svgName: "sa-rz" },
|
|
54
|
+
SILENCE_AREA_ICON: { svgName: "sa-rz" },
|
|
55
|
+
SILENCE_ICON: { svgName: "sa-rz" },
|
|
56
|
+
SKI_AREA: { svgName: "sa-sa" },
|
|
57
|
+
SKI_ICON: { svgName: "sa-sa" },
|
|
58
|
+
STAFF_AREA: { svgName: "avatar-train-staff-medium" },
|
|
59
|
+
STAIR_AREA: { svgName: "sa-ac" },
|
|
60
|
+
TOILET_AREA: { svgName: "sa-wc" },
|
|
61
|
+
TOILET_ICON: { svgName: "sa-wc" },
|
|
62
|
+
TOILET_WHEELCHAIR_AREA: { svgName: "sa-rw" },
|
|
63
|
+
TOILET_WHEELCHAIR_ICON: { svgName: "sa-rw" },
|
|
64
|
+
WARDROBE_AREA: { svgName: "sa-ka" },
|
|
65
|
+
WHEELCHAIR: { svgName: "sa-rs" },
|
|
66
|
+
WHEELCHAIR_AND_SEAT: { svgName: "sa-rs" },
|
|
67
|
+
WHEELCHAIR_ICON: { svgName: "sa-rs" },
|
|
68
|
+
WHEELCHAIR_NO_SEAT: { svgName: "sa-rn" },
|
|
69
|
+
WIFI: { svgName: "sa-wv" }
|
|
72
70
|
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { t as mapIconToSvg };
|
|
@@ -1,91 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { MOCK_COACHES_RAW_TRAIN as d } from "./sample-data/seat-reservation-sample-data-train.js";
|
|
4
|
-
function E(e, n) {
|
|
5
|
-
return e !== null ? e === "TRAIN" ? d : u : n === "LOWER_DECK" ? y : n === "UPPER_DECK" ? g : d;
|
|
6
|
-
}
|
|
7
|
-
const I = (e, n = null) => {
|
|
8
|
-
const i = E(e, n), s = n === "LOWER_DECK" ? 1 : 0, a = i.map((C) => {
|
|
9
|
-
const r = C?.coachDeckLayout, c = [], m = [], p = r.placeGroups.map((t) => (c.indexOf(t.travelClass) === -1 && c.push(t.travelClass), m.indexOf(t.accommodationSubType) === -1 && m.push(t.accommodationSubType), t.places?.map((o) => ({
|
|
10
|
-
number: o?.number,
|
|
11
|
-
state: o?.state,
|
|
12
|
-
type: t.accommodationSubType.indexOf("BICYCLE") === -1 ? "SEAT" : "BICYCLE",
|
|
13
|
-
dimension: { w: o.rectangle.dimension.width, h: o.rectangle.dimension.height },
|
|
14
|
-
position: {
|
|
15
|
-
x: o.rectangle.position.x,
|
|
16
|
-
y: o.rectangle.position.y,
|
|
17
|
-
z: o.rectangle.position.z
|
|
18
|
-
},
|
|
19
|
-
rotation: o?.orientation || 0,
|
|
20
|
-
travelClass: t?.travelClass,
|
|
21
|
-
propertyIds: o.placeProperties || []
|
|
22
|
-
})))).flat(), l = r.serviceIcons.map((t) => ({
|
|
23
|
-
icon: t.type,
|
|
24
|
-
position: {
|
|
25
|
-
x: t.rectangle.position.x,
|
|
26
|
-
y: t.rectangle.position.y,
|
|
27
|
-
z: t.rectangle.position.z
|
|
28
|
-
},
|
|
29
|
-
dimension: {
|
|
30
|
-
w: t.rectangle.dimension.width,
|
|
31
|
-
h: t.rectangle.dimension.height
|
|
32
|
-
}
|
|
33
|
-
})), h = r.graphicElements.map((t) => ({
|
|
34
|
-
icon: t?.type,
|
|
35
|
-
position: {
|
|
36
|
-
x: t.rectangle.position.x,
|
|
37
|
-
y: t.rectangle.position.y,
|
|
38
|
-
z: t.rectangle.position.z
|
|
39
|
-
},
|
|
40
|
-
dimension: { w: t.rectangle.dimension.width, h: t.rectangle.dimension.height },
|
|
41
|
-
rotation: t.orientation
|
|
42
|
-
}));
|
|
43
|
-
return {
|
|
44
|
-
id: r?.id,
|
|
45
|
-
number: r?.name,
|
|
46
|
-
dimension: { w: r.dimension?.width, h: r.dimension?.height },
|
|
47
|
-
places: p,
|
|
48
|
-
serviceElements: l,
|
|
49
|
-
graphicElements: h,
|
|
50
|
-
travelClass: c,
|
|
51
|
-
propertyIds: m
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return {
|
|
55
|
-
vehicleType: e || "TRAIN",
|
|
56
|
-
deckCoachIndex: s,
|
|
57
|
-
deckCoachLevel: "SINGLE_DECK",
|
|
58
|
-
coachItems: a
|
|
59
|
-
};
|
|
60
|
-
}, f = (e, n, i, s) => ({
|
|
61
|
-
id: n,
|
|
62
|
-
number: e.number,
|
|
63
|
-
deckIndex: i,
|
|
64
|
-
coachIndex: s,
|
|
65
|
-
state: e.state,
|
|
66
|
-
placeType: e.type
|
|
67
|
-
}), O = (e, n, i, s, a) => ({
|
|
68
|
-
id: i,
|
|
69
|
-
coachId: n.id,
|
|
70
|
-
coachNumber: n.number,
|
|
71
|
-
coachIndex: a,
|
|
72
|
-
deckIndex: s,
|
|
73
|
-
placeNumber: e.number,
|
|
74
|
-
placeType: e.type,
|
|
75
|
-
placeTravelClass: e.travelClass || "ANY_CLASS",
|
|
76
|
-
propertyIds: e.propertyIds || []
|
|
77
|
-
}), R = (e, n, i) => ({
|
|
78
|
-
coachId: n.id,
|
|
79
|
-
coachNumber: n.number,
|
|
80
|
-
coachIndex: e,
|
|
81
|
-
coachType: n?.type,
|
|
82
|
-
coachTravelClass: n?.travelClass,
|
|
83
|
-
coachPropertyIds: n?.propertyIds,
|
|
84
|
-
coachNumberOfFreePlaces: i
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
R as mapCoachInfosToCoachSelection,
|
|
88
|
-
O as mapPlaceAndCoachToSeatReservationPlaceSelection,
|
|
89
|
-
f as mapPlaceInfosToPlaceSelection,
|
|
90
|
-
I as mapRawDataToSeatReservation
|
|
91
|
-
};
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../../mapper-DkiDDseD.js";
|
|
2
|
+
export { r as mapCoachInfosToCoachSelection, t as mapPlaceAndCoachToSeatReservationPlaceSelection, n as mapPlaceInfosToPlaceSelection, e as mapRawDataToSeatReservation };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mapIconToSvg as
|
|
3
|
-
export {
|
|
4
|
-
e as mapCoachInfosToCoachSelection,
|
|
5
|
-
m as mapIconToSvg,
|
|
6
|
-
c as mapPlaceAndCoachToSeatReservationPlaceSelection,
|
|
7
|
-
t as mapPlaceInfosToPlaceSelection,
|
|
8
|
-
n as mapRawDataToSeatReservation
|
|
9
|
-
};
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../mapper-DkiDDseD.js";
|
|
2
|
+
import { mapIconToSvg as i } from "./mapper/icon-mapper.js";
|
|
3
|
+
export { r as mapCoachInfosToCoachSelection, i as mapIconToSvg, t as mapPlaceAndCoachToSeatReservationPlaceSelection, n as mapPlaceInfosToPlaceSelection, e as mapRawDataToSeatReservation };
|