@sbb-esta/lyne-elements-experimental-dev 0.0.0 → 4.0.0-dev.1775550888
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/README.md +55 -0
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +67 -0
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +73 -0
- package/autocomplete-grid/autocomplete-grid-button.js +4 -0
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -0
- package/autocomplete-grid/autocomplete-grid-cell.js +4 -0
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +21 -0
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -0
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -0
- package/autocomplete-grid/autocomplete-grid-option.js +4 -0
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -0
- package/autocomplete-grid/autocomplete-grid-row.js +4 -0
- package/autocomplete-grid/autocomplete-grid.js +4 -0
- package/autocomplete-grid-cell.component-DkD9aFKc.js +24 -0
- package/autocomplete-grid-option.component-CtATJy7n.js +37 -0
- package/autocomplete-grid-row.component-6nJv5PMj.js +27 -0
- package/autocomplete-grid.js +10 -0
- package/autocomplete-grid.pure.js +7 -0
- package/core/datetime/date-helper.js +2 -0
- package/core/datetime.js +2 -0
- package/core/styles/core.scss +13 -0
- package/core/styles/lean-theme.scss +3 -0
- package/core/styles/off-brand-theme.scss +3 -0
- package/core/styles/safety-theme.scss +3 -0
- package/core/styles/standard-theme.scss +3 -0
- package/core/styles/theme.scss +5 -0
- package/core/timetable/access-leg-helper.js +96 -0
- package/core/timetable/timetable-helper.js +10 -0
- package/core/timetable/timetable-properties.js +0 -0
- package/core/timetable.js +4 -0
- package/core.css +13 -0
- package/custom-elements.json +8629 -0
- package/date-helper-CGproP5d.js +185 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +40 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +120 -0
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +32 -0
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +103 -0
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +2 -0
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-button.js +10 -0
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +19 -0
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -0
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +2 -0
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-cell.js +10 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +20 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +30 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +2 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +10 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +27 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -0
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +2 -0
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-option.js +10 -0
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +20 -0
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -0
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +2 -0
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid-row.js +10 -0
- package/development/autocomplete-grid/autocomplete-grid.d.ts +2 -0
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +1 -0
- package/development/autocomplete-grid/autocomplete-grid.js +10 -0
- package/development/autocomplete-grid-cell.component-BxkWGaX0.js +34 -0
- package/development/autocomplete-grid-option.component-5mPGswUO.js +61 -0
- package/development/autocomplete-grid-row.component-DEm6zyHZ.js +39 -0
- package/development/autocomplete-grid.d.ts +2 -0
- package/development/autocomplete-grid.d.ts.map +1 -0
- package/development/autocomplete-grid.js +19 -0
- 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.d.ts +27 -0
- package/development/core/datetime/date-helper.d.ts.map +1 -0
- package/development/core/datetime/date-helper.js +2 -0
- package/development/core/datetime.d.ts +3 -0
- package/development/core/datetime.d.ts.map +1 -0
- package/development/core/datetime.js +2 -0
- package/development/core/timetable/access-leg-helper.d.ts +26 -0
- package/development/core/timetable/access-leg-helper.d.ts.map +1 -0
- package/development/core/timetable/access-leg-helper.js +147 -0
- package/development/core/timetable/timetable-helper.d.ts +12 -0
- package/development/core/timetable/timetable-helper.d.ts.map +1 -0
- package/development/core/timetable/timetable-helper.js +19 -0
- package/development/core/timetable/timetable-properties.d.ts +308 -0
- package/development/core/timetable/timetable-properties.d.ts.map +1 -0
- package/development/core/timetable/timetable-properties.js +0 -0
- package/development/core/timetable.d.ts +5 -0
- package/development/core/timetable.d.ts.map +1 -0
- package/development/core/timetable.js +4 -0
- package/development/date-helper-qNdwgC9O.js +520 -0
- package/development/differenceInMinutes-B7_GTDq7.js +110 -0
- package/development/format-DFx4997p.js +1848 -0
- package/development/isValid-JpZ7FphI.js +178 -0
- package/development/journey-summary/journey-summary.component.d.ts +67 -0
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -0
- package/development/journey-summary/journey-summary.component.js +2 -0
- package/development/journey-summary.component-BZwgD4im.js +340 -0
- package/development/journey-summary.d.ts +2 -0
- package/development/journey-summary.d.ts.map +1 -0
- package/development/journey-summary.js +9 -0
- 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 +44 -0
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -0
- package/development/pearl-chain/pearl-chain.component.js +2 -0
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +49 -0
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -0
- package/development/pearl-chain-time/pearl-chain-time.component.js +2 -0
- package/development/pearl-chain-time.component-B2_BI6E_.js +319 -0
- package/development/pearl-chain-time.d.ts +2 -0
- package/development/pearl-chain-time.d.ts.map +1 -0
- package/development/pearl-chain-time.js +9 -0
- 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 +18 -0
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -0
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -0
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +36 -0
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -0
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -0
- package/development/pearl-chain-vertical-item.component-DcmH13Vb.js +133 -0
- package/development/pearl-chain-vertical-item.d.ts +2 -0
- package/development/pearl-chain-vertical-item.d.ts.map +1 -0
- package/development/pearl-chain-vertical-item.js +9 -0
- 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-CpcNFl-x.js +31 -0
- package/development/pearl-chain-vertical.d.ts +2 -0
- package/development/pearl-chain-vertical.d.ts.map +1 -0
- package/development/pearl-chain-vertical.js +9 -0
- 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-oQZUzsyW.js +316 -0
- package/development/pearl-chain.d.ts +2 -0
- package/development/pearl-chain.d.ts.map +1 -0
- package/development/pearl-chain.js +9 -0
- 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 +106 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/icon-mapper.js +170 -0
- package/development/seat-reservation/common/mapper/mapper.d.ts +34 -0
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/mapper.js +2 -0
- package/development/seat-reservation/common/mapper.d.ts +3 -0
- package/development/seat-reservation/common/mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper.js +3 -0
- package/development/seat-reservation/common/svgs.d.ts +24 -0
- package/development/seat-reservation/common/svgs.d.ts.map +1 -0
- package/development/seat-reservation/common/svgs.js +2 -0
- package/development/seat-reservation/common/translations/i18n.d.ts +28 -0
- package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -0
- package/development/seat-reservation/common/translations/i18n.js +1120 -0
- package/development/seat-reservation/common/translations.d.ts +2 -0
- package/development/seat-reservation/common/translations.d.ts.map +1 -0
- package/development/seat-reservation/common/translations.js +2 -0
- package/development/seat-reservation/common/types.d.ts +102 -0
- package/development/seat-reservation/common/types.d.ts.map +1 -0
- package/development/seat-reservation/common/types.js +0 -0
- package/development/seat-reservation/common.d.ts +6 -0
- package/development/seat-reservation/common.d.ts.map +1 -0
- package/development/seat-reservation/common.js +12 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +294 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1350 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +77 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +2 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +20 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -0
- package/development/seat-reservation/seat-reservation-area.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-area.js +10 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +306 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +22 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic.js +10 -0
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +56 -0
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -0
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation-coach.js +10 -0
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +25 -0
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -0
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation-services.js +10 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +49 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-place-control.js +10 -0
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +16 -0
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -0
- package/development/seat-reservation/seat-reservation-scoped.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-scoped.js +10 -0
- package/development/seat-reservation/seat-reservation.d.ts +3 -0
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation.js +11 -0
- package/development/seat-reservation-area.component-DbeuTnXT.js +96 -0
- package/development/seat-reservation-graphic.component-DlrHtlia.js +129 -0
- package/development/seat-reservation-navigation-coach.component-CjoDkcVU.js +428 -0
- package/development/seat-reservation-navigation-services.component-CGel7__P.js +159 -0
- package/development/seat-reservation-place-control.component-CM9efId7.js +429 -0
- package/development/seat-reservation-scoped.component-CFA_bJ3o.js +25 -0
- package/development/seat-reservation.component-DFJVFmrI.js +510 -0
- package/development/seat-reservation.d.ts +2 -0
- package/development/seat-reservation.d.ts.map +1 -0
- package/development/seat-reservation.js +27 -0
- 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 +24 -0
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -0
- package/development/timetable-duration/timetable-duration.component.js +2 -0
- package/development/timetable-duration.component-BhFlqYbV.js +100 -0
- package/development/timetable-duration.d.ts +2 -0
- package/development/timetable-duration.d.ts.map +1 -0
- package/development/timetable-duration.js +9 -0
- 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 +89 -0
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -0
- package/development/timetable-row/timetable-row.component.js +2 -0
- package/development/timetable-row.component-Dko8laRT.js +729 -0
- package/development/timetable-row.d.ts +2 -0
- package/development/timetable-row.d.ts.map +1 -0
- package/development/timetable-row.js +9 -0
- 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-DOFAOjP-.js +150 -0
- package/differenceInMinutes-Dr9gRqtu.js +27 -0
- package/format-CM5exOsN.js +1103 -0
- package/index.d.ts +33 -0
- package/index.js +32 -0
- package/isValid-B9oVW3lA.js +36 -0
- package/journey-summary/journey-summary.component.js +2 -0
- package/journey-summary.component-DC7-qPHY.js +264 -0
- package/journey-summary.js +6 -0
- package/journey-summary.pure.js +2 -0
- package/mapper-DkiDDseD.js +11382 -0
- package/off-brand-theme.css +13 -0
- package/package.json +222 -1
- package/pearl-chain/pearl-chain.component.js +2 -0
- package/pearl-chain-time/pearl-chain-time.component.js +2 -0
- package/pearl-chain-time.component-CkKsrbgQ.js +239 -0
- package/pearl-chain-time.js +6 -0
- package/pearl-chain-time.pure.js +2 -0
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -0
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -0
- package/pearl-chain-vertical-item.component-BUqZ-3Ay.js +108 -0
- package/pearl-chain-vertical-item.js +6 -0
- package/pearl-chain-vertical-item.pure.js +2 -0
- package/pearl-chain-vertical.component-Df9CvRxo.js +21 -0
- package/pearl-chain-vertical.js +6 -0
- package/pearl-chain-vertical.pure.js +2 -0
- package/pearl-chain.component-CpISVoAu.js +194 -0
- package/pearl-chain.js +6 -0
- package/pearl-chain.pure.js +2 -0
- package/safety-theme.css +13 -0
- package/seat-reservation/common/mapper/icon-mapper.js +72 -0
- package/seat-reservation/common/mapper/mapper.js +2 -0
- package/seat-reservation/common/mapper.js +3 -0
- package/seat-reservation/common/svgs.js +2 -0
- package/seat-reservation/common/translations/i18n.js +1085 -0
- package/seat-reservation/common/translations.js +2 -0
- package/seat-reservation/common/types.js +0 -0
- package/seat-reservation/common.js +9 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +861 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.js +2 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -0
- package/seat-reservation/seat-reservation-area.js +4 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +291 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -0
- package/seat-reservation/seat-reservation-graphic.js +4 -0
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -0
- package/seat-reservation/seat-reservation-navigation-coach.js +4 -0
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -0
- package/seat-reservation/seat-reservation-navigation-services.js +4 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -0
- package/seat-reservation/seat-reservation-place-control.js +4 -0
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -0
- package/seat-reservation/seat-reservation-scoped.js +4 -0
- package/seat-reservation/seat-reservation.js +5 -0
- package/seat-reservation-area.component-CtYawDjE.js +75 -0
- package/seat-reservation-graphic.component-Cm_pVxaB.js +102 -0
- package/seat-reservation-navigation-coach.component-sug9IBTH.js +333 -0
- package/seat-reservation-navigation-services.component-C9dDYD_M.js +127 -0
- package/seat-reservation-place-control.component-CE7d9M2b.js +322 -0
- package/seat-reservation-scoped.component-DVyP2JGE.js +17 -0
- package/seat-reservation.component-DajC6fqU.js +367 -0
- package/seat-reservation.js +17 -0
- package/seat-reservation.pure.js +15 -0
- package/standard-theme.css +13 -0
- package/svgs-D5DhLHxC.js +26 -0
- package/timetable-duration/timetable-duration.component.js +2 -0
- package/timetable-duration.component-BnJA8wSb.js +65 -0
- package/timetable-duration.js +6 -0
- package/timetable-duration.pure.js +2 -0
- package/timetable-row/timetable-row.component.js +2 -0
- package/timetable-row.component-DbzBCpKR.js +559 -0
- package/timetable-row.js +6 -0
- package/timetable-row.pure.js +2 -0
- package/toDate-p-Tpkb7t.js +16 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { t as e } from "../seat-reservation-area.component-CtYawDjE.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-area.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbSeatReservationAreaElement };
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { t as e } from "../../seat-reservation-graphic.component-Cm_pVxaB.js";
|
|
2
|
+
import { html as t } from "lit";
|
|
3
|
+
import { unsafeHTML as n } from "lit/directives/unsafe-html.js";
|
|
4
|
+
import { mapIconToSvg as r } from "../common/mapper.js";
|
|
5
|
+
import { SbbSeatReservationAreaElement as i } from "../seat-reservation-area/seat-reservation-area.component.js";
|
|
6
|
+
import "@sbb-esta/lyne-elements/table.js";
|
|
7
|
+
e.define(), i.define();
|
|
8
|
+
var a = (e) => t`
|
|
9
|
+
<div class="story-asset">
|
|
10
|
+
<span class="story-asset__preview">${n(e)}</span>
|
|
11
|
+
</div>
|
|
12
|
+
`, o = (e) => r[e]?.svg ? a(r[e].svg) : r[e]?.svgName ? t`<sbb-icon name="${r[e].svgName}"></sbb-icon>` : null, s = t`
|
|
13
|
+
<style>
|
|
14
|
+
.story-asset {
|
|
15
|
+
width: max-content;
|
|
16
|
+
background-color: var(--sbb-color-white);
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
19
|
+
<h1>List of all currently available assets.</h1>
|
|
20
|
+
<h2>Interior</h2>
|
|
21
|
+
${t`
|
|
22
|
+
<sbb-table-wrapper>
|
|
23
|
+
<table class="sbb-table">
|
|
24
|
+
<thead>
|
|
25
|
+
<tr>
|
|
26
|
+
<th scope="col">SVG</th>
|
|
27
|
+
<th scope="col">Figma</th>
|
|
28
|
+
<th scope="col">Code</th>
|
|
29
|
+
</tr>
|
|
30
|
+
</thead>
|
|
31
|
+
<tbody>
|
|
32
|
+
<tr>
|
|
33
|
+
<td>${o("PLACE_BICYCLE_FREE")}</td>
|
|
34
|
+
<td>Place-Bike: Available</td>
|
|
35
|
+
<td>PLACE_BICYCLE_FREE</td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td>${o("PLACE_BICYCLE_SELECTED")}</td>
|
|
39
|
+
<td>Place-Bike: Selected</td>
|
|
40
|
+
<td>PLACE_BICYCLE_SELECTED</td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr>
|
|
43
|
+
<td>${o("PLACE_BICYCLE_ALLOCATED")}</td>
|
|
44
|
+
<td>Place-Bike: Unavailable</td>
|
|
45
|
+
<td>PLACE_BICYCLE_ALLOCATED</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td>${o("PLACE_BICYCLE_RESTRICTED")}</td>
|
|
49
|
+
<td>Place-Bike: Not bookable</td>
|
|
50
|
+
<td>PLACE_BICYCLE_RESTRICTED</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<td>${o("PLACE_SEAT_FREE")}</td>
|
|
54
|
+
<td>Place-Seat: Available</td>
|
|
55
|
+
<td>PLACE_SEAT_FREE</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td>${o("PLACE_SEAT_SELECTED")}</td>
|
|
59
|
+
<td>Place-Seat: Selected</td>
|
|
60
|
+
<td>PLACE_SEAT_SELECTED</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>${o("PLACE_SEAT_ALLOCATED")}</td>
|
|
64
|
+
<td>Place-Seat: Unavailable</td>
|
|
65
|
+
<td>PLACE_SEAT_ALLOCATED</td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>${o("PLACE_SEAT_RESTRICTED")}</td>
|
|
69
|
+
<td>Place-Seat: Not bookable</td>
|
|
70
|
+
<td>PLACE_SEAT_RESTRICTED</td>
|
|
71
|
+
</tr>
|
|
72
|
+
</tbody>
|
|
73
|
+
</table>
|
|
74
|
+
</sbb-table-wrapper>
|
|
75
|
+
`}
|
|
76
|
+
<h2>Layout</h2>
|
|
77
|
+
${t`
|
|
78
|
+
<sbb-table-wrapper>
|
|
79
|
+
<table class="sbb-table">
|
|
80
|
+
<thead>
|
|
81
|
+
<tr>
|
|
82
|
+
<th scope="col">SVG</th>
|
|
83
|
+
<th scope="col">Figma</th>
|
|
84
|
+
<th scope="col">OSDM Code</th>
|
|
85
|
+
</tr>
|
|
86
|
+
</thead>
|
|
87
|
+
<tbody>
|
|
88
|
+
<tr>
|
|
89
|
+
<td>${o("EASY_ACCESS_AREA")}</td>
|
|
90
|
+
<td>Easy Access Area</td>
|
|
91
|
+
<td>EASY_ACCESS_AREA</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<td>${o("ENTRY_EXIT")}</td>
|
|
95
|
+
<td>Entrance</td>
|
|
96
|
+
<td>ENTRY_EXIT</td>
|
|
97
|
+
</tr>
|
|
98
|
+
<tr>
|
|
99
|
+
<td>${o("LUGGAGE_AREA")}</td>
|
|
100
|
+
<td>Luggage</td>
|
|
101
|
+
<td>LUGGAGE_AREA</td>
|
|
102
|
+
</tr>
|
|
103
|
+
<tr>
|
|
104
|
+
<td>${o("MULTI_FUNCTION_AREA")}</td>
|
|
105
|
+
<td>Multi Function Area</td>
|
|
106
|
+
<td>MULTI_FUNCTION_AREA</td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<td>${o("PLAYGROUND_AREA")}</td>
|
|
110
|
+
<td>Playground</td>
|
|
111
|
+
<td>PLAYGROUND_AREA</td>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr>
|
|
114
|
+
<td>${o("PRAM_AREA")}</td>
|
|
115
|
+
<td>Pram</td>
|
|
116
|
+
<td>PRAM_AREA</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<tr>
|
|
119
|
+
<td>${o("SKI_AREA")}</td>
|
|
120
|
+
<td>Ski</td>
|
|
121
|
+
<td>SKI_AREA</td>
|
|
122
|
+
</tr>
|
|
123
|
+
<tr>
|
|
124
|
+
<td>${o("STAIR_AREA")}</td>
|
|
125
|
+
<td>Stair</td>
|
|
126
|
+
<td>STAIR_AREA</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
129
|
+
<td>${o("TOILET_AREA")}</td>
|
|
130
|
+
<td>Toilet</td>
|
|
131
|
+
<td>TOILET_AREA</td>
|
|
132
|
+
</tr>
|
|
133
|
+
<tr>
|
|
134
|
+
<td>${o("TOILET_WHEELCHAIR_AREA")}</td>
|
|
135
|
+
<td>Toilet-Handicap</td>
|
|
136
|
+
<td>TOILET_WHEELCHAIR_AREA</td>
|
|
137
|
+
</tr>
|
|
138
|
+
<tr>
|
|
139
|
+
<td>${o("WARDROBE_AREA")}</td>
|
|
140
|
+
<td>Wardrobe</td>
|
|
141
|
+
<td>WARDROBE_AREA</td>
|
|
142
|
+
</tr>
|
|
143
|
+
</tbody>
|
|
144
|
+
</table>
|
|
145
|
+
</sbb-table-wrapper>
|
|
146
|
+
`}
|
|
147
|
+
<h2>Service Icons</h2>
|
|
148
|
+
${t`
|
|
149
|
+
<sbb-table-wrapper>
|
|
150
|
+
<table aria-label="Available Service Icons" class="sbb-table">
|
|
151
|
+
<thead>
|
|
152
|
+
<tr>
|
|
153
|
+
<th scope="col">SVG</th>
|
|
154
|
+
<th scope="col">Figma</th>
|
|
155
|
+
<th scope="col">OSDM Code</th>
|
|
156
|
+
</tr>
|
|
157
|
+
</thead>
|
|
158
|
+
<tbody>
|
|
159
|
+
<tr>
|
|
160
|
+
<td>${o("BISTRO")}</td>
|
|
161
|
+
<td>Bistro</td>
|
|
162
|
+
<td>BISTRO</td>
|
|
163
|
+
</tr>
|
|
164
|
+
<tr>
|
|
165
|
+
<td>${o("BUSINESS")}</td>
|
|
166
|
+
<td>Business</td>
|
|
167
|
+
<td>BUSINESS</td>
|
|
168
|
+
</tr>
|
|
169
|
+
<tr>
|
|
170
|
+
<td>${o("PLAYGROUND_ICON")}</td>
|
|
171
|
+
<td>Family</td>
|
|
172
|
+
<td>PLAYGROUND_ICON</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td>${o("LUGGAGE_AREA")}</td>
|
|
176
|
+
<td>Luggage</td>
|
|
177
|
+
<td>LUGGAGE_AREA</td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr>
|
|
180
|
+
<td>${o("PRAM_ICON")}</td>
|
|
181
|
+
<td>Pram</td>
|
|
182
|
+
<td>PRAM_ICON</td>
|
|
183
|
+
</tr>
|
|
184
|
+
<tr>
|
|
185
|
+
<td>${o("EASY_ACCESS_AREA")}</td>
|
|
186
|
+
<td>Easy Access Area</td>
|
|
187
|
+
<td>EASY_ACCESS_AREA</td>
|
|
188
|
+
</tr>
|
|
189
|
+
<tr>
|
|
190
|
+
<td>${o("RESTAURANT_ICON")}</td>
|
|
191
|
+
<td>Restaurant</td>
|
|
192
|
+
<td>RESTAURANT_ICON</td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td>${o("SILENCE_AREA_ICON")}</td>
|
|
196
|
+
<td>Silence</td>
|
|
197
|
+
<td>SILENCE_AREA_ICON</td>
|
|
198
|
+
</tr>
|
|
199
|
+
<tr>
|
|
200
|
+
<td>${o("TOILET_AREA")}</td>
|
|
201
|
+
<td>Toilet</td>
|
|
202
|
+
<td>TOILET_AREA</td>
|
|
203
|
+
</tr>
|
|
204
|
+
<tr>
|
|
205
|
+
<td>${o("TOILET_WHEELCHAIR_AREA")}</td>
|
|
206
|
+
<td>Toilet-PRM</td>
|
|
207
|
+
<td>TOILET_WHEELCHAIR_AREA</td>
|
|
208
|
+
</tr>
|
|
209
|
+
<tr>
|
|
210
|
+
<td>${o("WHEELCHAIR_ICON")}</td>
|
|
211
|
+
<td>Wheelchair</td>
|
|
212
|
+
<td>WHEELCHAIR_ICON</td>
|
|
213
|
+
</tr>
|
|
214
|
+
<tr>
|
|
215
|
+
<td>${o("WIFI")}</td>
|
|
216
|
+
<td>Wifi</td>
|
|
217
|
+
<td>WIFI</td>
|
|
218
|
+
</tr>
|
|
219
|
+
</tbody>
|
|
220
|
+
</table>
|
|
221
|
+
</sbb-table-wrapper>
|
|
222
|
+
`}
|
|
223
|
+
<h2>Chassis</h2>
|
|
224
|
+
${t`
|
|
225
|
+
<sbb-table-wrapper>
|
|
226
|
+
<table class="sbb-table">
|
|
227
|
+
<thead>
|
|
228
|
+
<tr>
|
|
229
|
+
<th scope="col">SVG</th>
|
|
230
|
+
<th scope="col">Figma</th>
|
|
231
|
+
<th scope="col">OSDM Code</th>
|
|
232
|
+
</tr>
|
|
233
|
+
</thead>
|
|
234
|
+
<tbody>
|
|
235
|
+
<tr>
|
|
236
|
+
<td>${o("DRIVER_AREA_TRAIN")}</td>
|
|
237
|
+
<td>Driver Area<br />(Dependent on Vehicle-Type: TRAIN)</td>
|
|
238
|
+
<td>DRIVER_AREA</td>
|
|
239
|
+
</tr>
|
|
240
|
+
<tr>
|
|
241
|
+
<td>${o("DRIVER_AREA_BUS")}</td>
|
|
242
|
+
<td>Driver Area<br />(Dependent on Vehicle-Type: BUS)</td>
|
|
243
|
+
<td>DRIVER_AREA</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<td>${o("COMPARTMENT_PASSAGE_HIGH")}</td>
|
|
247
|
+
<td>Compartment Passage High</td>
|
|
248
|
+
<td>COMPARTMENT_PASSAGE_HIGH</td>
|
|
249
|
+
</tr>
|
|
250
|
+
<tr>
|
|
251
|
+
<td>${o("COMPARTMENT_PASSAGE")}</td>
|
|
252
|
+
<td>Compartment Passage</td>
|
|
253
|
+
<td>COMPARTMENT_PASSAGE</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr>
|
|
256
|
+
<td>${o("COMPARTMENT_PASSAGE_LOW")}</td>
|
|
257
|
+
<td>Compartment Passage Low</td>
|
|
258
|
+
<td>COMPARTMENT_PASSAGE_LOW</td>
|
|
259
|
+
</tr>
|
|
260
|
+
<tr>
|
|
261
|
+
<td>${o("COACH_PASSAGE")}</td>
|
|
262
|
+
<td>Coach Passage</td>
|
|
263
|
+
<td>COACH_PASSAGE</td>
|
|
264
|
+
</tr>
|
|
265
|
+
<tr>
|
|
266
|
+
<td>${o("COMPARTMENT_WALL")}</td>
|
|
267
|
+
<td>Compartment Wall</td>
|
|
268
|
+
<td>COMPARTMENT_WALL</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr>
|
|
271
|
+
<td>
|
|
272
|
+
<sbb-seat-reservation-area
|
|
273
|
+
style="--sbb-seat-reservation-area-width: 100; --sbb-seat-reservation-area-height: 50; align-self: center;
|
|
274
|
+
background: var(--sbb-color-milk)"
|
|
275
|
+
></sbb-seat-reservation-area>
|
|
276
|
+
</td>
|
|
277
|
+
<td>Table Restaurant<br />(Will be rendered as CSS)</td>
|
|
278
|
+
<td>TABLE_RESTAURANT</td>
|
|
279
|
+
</tr>
|
|
280
|
+
<tr>
|
|
281
|
+
<td>${o("COACH_WALL_NO_PASSAGE")}</td>
|
|
282
|
+
<td>Coach Wall No Passage</td>
|
|
283
|
+
<td>COACH_WALL_NO_PASSAGE</td>
|
|
284
|
+
</tr>
|
|
285
|
+
</tbody>
|
|
286
|
+
</table>
|
|
287
|
+
</sbb-table-wrapper>
|
|
288
|
+
`}
|
|
289
|
+
`;
|
|
290
|
+
//#endregion
|
|
291
|
+
export { s as assetsTemplate, o as svgImageByOSDMCode };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { t as e } from "../seat-reservation-graphic.component-Cm_pVxaB.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-graphic.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbSeatReservationGraphicElement };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { t as e } from "../seat-reservation-navigation-coach.component-sug9IBTH.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-navigation-coach.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbSeatReservationNavigationCoachElement };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { t as e } from "../seat-reservation-navigation-services.component-C9dDYD_M.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-navigation-services.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbSeatReservationNavigationServicesElement };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { t as e } from "../seat-reservation-place-control.component-CE7d9M2b.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-place-control.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbSeatReservationPlaceControlElement };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { t as e } from "../seat-reservation-scoped.component-DVyP2JGE.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-scoped.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbSeatReservationScopedElement };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SeatReservationBaseElement as e } from "./seat-reservation/seat-reservation-base-element.js";
|
|
2
|
+
import { t } from "../seat-reservation.component-DajC6fqU.js";
|
|
3
|
+
t.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as SbbSeatReservationElement, e as SeatReservationBaseElement };
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
4
|
+
import { boxSizingStyles as i } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
5
|
+
import { html as a, unsafeCSS as o } from "lit";
|
|
6
|
+
import { property as s } from "lit/decorators.js";
|
|
7
|
+
//#region src/elements-experimental/seat-reservation/seat-reservation-area/seat-reservation-area.scss?inline
|
|
8
|
+
var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width-4x);--sbb-seat-reservation-area-rotation: 0;display:flex;justify-content:center;align-items:center;height:calc(var(--sbb-seat-reservation-area-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(var(--sbb-seat-reservation-area-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border:var(--sbb-border-width-1x) solid light-dark(var(--sbb-color-graphite),var(--sbb-color-granite));border-radius:var(--sbb-seat-reservation-area-border-radius);position:absolute;inset-block-start:calc(var(--sbb-seat-reservation-area-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-area-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));rotate:calc(var(--sbb-seat-reservation-area-rotation) * 1deg);line-height:normal;background-color:var(--sbb-background-color-2)}:host([background=dark]){background-color:var(--sbb-color-milk);background-color:light-dark(var(--sbb-color-milk),var(--sbb-color-iron))}:host([mounting=upper-border]){border-block-start-width:0;border-radius:0 0 var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius)}:host([mounting=lower-border]){border-block-end-width:0;border-radius:var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius) 0 0}:host([mounting=upper-to-lower-border]){border-block-start:none;border-block-end:none;border-radius:0}:host(.sbb-seat-reservation-area--cursor-pointer){cursor:var(--sbb-cursor-pointer)}", l = (() => {
|
|
9
|
+
let l = n, u, d = [], f = [], p, m = [], h = [];
|
|
10
|
+
return class extends l {
|
|
11
|
+
static {
|
|
12
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
13
|
+
u = [r(), s({ reflect: !0 })], p = [r(), s({ reflect: !0 })], e(this, null, u, {
|
|
14
|
+
kind: "accessor",
|
|
15
|
+
name: "mounting",
|
|
16
|
+
static: !1,
|
|
17
|
+
private: !1,
|
|
18
|
+
access: {
|
|
19
|
+
has: (e) => "mounting" in e,
|
|
20
|
+
get: (e) => e.mounting,
|
|
21
|
+
set: (e, t) => {
|
|
22
|
+
e.mounting = t;
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
metadata: t
|
|
26
|
+
}, d, f), e(this, null, p, {
|
|
27
|
+
kind: "accessor",
|
|
28
|
+
name: "background",
|
|
29
|
+
static: !1,
|
|
30
|
+
private: !1,
|
|
31
|
+
access: {
|
|
32
|
+
has: (e) => "background" in e,
|
|
33
|
+
get: (e) => e.background,
|
|
34
|
+
set: (e, t) => {
|
|
35
|
+
e.background = t;
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
metadata: t
|
|
39
|
+
}, m, h), t && Object.defineProperty(this, Symbol.metadata, {
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
configurable: !0,
|
|
42
|
+
writable: !0,
|
|
43
|
+
value: t
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.elementName = "sbb-seat-reservation-area";
|
|
48
|
+
}
|
|
49
|
+
static {
|
|
50
|
+
this.styles = [i, o(c)];
|
|
51
|
+
}
|
|
52
|
+
#e = t(this, d, "free");
|
|
53
|
+
get mounting() {
|
|
54
|
+
return this.#e;
|
|
55
|
+
}
|
|
56
|
+
set mounting(e) {
|
|
57
|
+
this.#e = e;
|
|
58
|
+
}
|
|
59
|
+
#t = (t(this, f), t(this, m, "light"));
|
|
60
|
+
get background() {
|
|
61
|
+
return this.#t;
|
|
62
|
+
}
|
|
63
|
+
set background(e) {
|
|
64
|
+
this.#t = e;
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return a`<slot></slot>`;
|
|
68
|
+
}
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments), t(this, h);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
})();
|
|
74
|
+
//#endregion
|
|
75
|
+
export { l as t };
|
|
@@ -0,0 +1,102 @@
|
|
|
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 "@sbb-esta/lyne-elements/icon.js";
|
|
7
|
+
import { html as o, isServer as s, unsafeCSS as c } from "lit";
|
|
8
|
+
import { property as l } from "lit/decorators.js";
|
|
9
|
+
import { mapIconToSvg as u } from "./seat-reservation/common/mapper.js";
|
|
10
|
+
import { classMap as d } from "lit/directives/class-map.js";
|
|
11
|
+
import { getI18nSeatReservation as f } from "./seat-reservation/common/translations.js";
|
|
12
|
+
//#region src/elements-experimental/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.scss?inline
|
|
13
|
+
var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reservation-graphic-max-height: auto;--sbb-seat-reservation-graphic-width: 16;--sbb-seat-reservation-graphic-height: 16;--sbb-seat-reservation-graphic-rotation: 0;--sbb-seat-reservation-graphic-inverse-rotation: 0;--sbb-seat-reservation-graphic-padding-percent: 1;--sbb-seat-reservation-graphic-position: initial;--sbb-seat-reservation-graphic-left: 0;--sbb-seat-reservation-graphic-top: 0;--sbb-icon-svg-width: calc( var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );--sbb-icon-svg-height: calc( var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:var(--sbb-seat-reservation-graphic-position);inset-inline-start:calc(var(--sbb-seat-reservation-graphic-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(var(--sbb-seat-reservation-graphic-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host(.auto-width){--sbb-icon-svg-width: auto;max-width:calc(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:auto}:host(.sbb-sr-graphic__dimension--square-dim){--sbb-icon-svg-width: min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));--sbb-icon-svg-height: min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));width:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent),min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));height:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent),min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)))}:host(.sbb-seat-reservation-graphic--cursor-pointer){cursor:var(--sbb-cursor-pointer)}.sbb-sr-icon,.sbb-sr-graphic{width:inherit;height:inherit;transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-graphite))}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-inverse-rotation) * 1deg)}@media(forced-colors:active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}.sbb-sr-graphic .no-bg{fill:transparent}}", m = (() => {
|
|
14
|
+
let m = n, h, g = [], _ = [], v, y = [], b = [];
|
|
15
|
+
return class extends m {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.#e = t(this, g, ""), this.#t = (t(this, _), t(this, y, !1)), this._language = (t(this, b), new r(this));
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
|
|
21
|
+
h = [i(), l({ attribute: "name" })], v = [i(), l({
|
|
22
|
+
attribute: "stretch",
|
|
23
|
+
type: Boolean
|
|
24
|
+
})], e(this, null, h, {
|
|
25
|
+
kind: "accessor",
|
|
26
|
+
name: "name",
|
|
27
|
+
static: !1,
|
|
28
|
+
private: !1,
|
|
29
|
+
access: {
|
|
30
|
+
has: (e) => "name" in e,
|
|
31
|
+
get: (e) => e.name,
|
|
32
|
+
set: (e, t) => {
|
|
33
|
+
e.name = t;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
metadata: t
|
|
37
|
+
}, g, _), e(this, null, v, {
|
|
38
|
+
kind: "accessor",
|
|
39
|
+
name: "stretch",
|
|
40
|
+
static: !1,
|
|
41
|
+
private: !1,
|
|
42
|
+
access: {
|
|
43
|
+
has: (e) => "stretch" in e,
|
|
44
|
+
get: (e) => e.stretch,
|
|
45
|
+
set: (e, t) => {
|
|
46
|
+
e.stretch = t;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
metadata: t
|
|
50
|
+
}, y, b), t && Object.defineProperty(this, Symbol.metadata, {
|
|
51
|
+
enumerable: !0,
|
|
52
|
+
configurable: !0,
|
|
53
|
+
writable: !0,
|
|
54
|
+
value: t
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
static {
|
|
58
|
+
this.elementName = "sbb-seat-reservation-graphic";
|
|
59
|
+
}
|
|
60
|
+
static {
|
|
61
|
+
this.styles = [a, c(p)];
|
|
62
|
+
}
|
|
63
|
+
#e;
|
|
64
|
+
get name() {
|
|
65
|
+
return this.#e;
|
|
66
|
+
}
|
|
67
|
+
set name(e) {
|
|
68
|
+
this.#e = e;
|
|
69
|
+
}
|
|
70
|
+
#t;
|
|
71
|
+
get stretch() {
|
|
72
|
+
return this.#t;
|
|
73
|
+
}
|
|
74
|
+
set stretch(e) {
|
|
75
|
+
this.#t = e;
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
let e = u[this.name];
|
|
79
|
+
return !e?.svg && !e?.svgName ? null : o`<span
|
|
80
|
+
class="${d({
|
|
81
|
+
"sbb-sr-icon": !!e.svgName,
|
|
82
|
+
"sbb-sr-graphic": !!e.svg
|
|
83
|
+
})}"
|
|
84
|
+
>
|
|
85
|
+
${e.svgName ? o` <sbb-icon
|
|
86
|
+
name="${e.svgName || ""}"
|
|
87
|
+
aria-hidden="false"
|
|
88
|
+
aria-label="${f(e.svgName, this._language.current)}"
|
|
89
|
+
></sbb-icon>` : o`${this._getSvgElement(e.svg)}`}
|
|
90
|
+
</span>`;
|
|
91
|
+
}
|
|
92
|
+
_getSvgElement(e) {
|
|
93
|
+
if (!s) {
|
|
94
|
+
let t = new DOMParser(), n = e || "<svg></svg>", r = t.parseFromString(n, "image/svg+xml").firstElementChild;
|
|
95
|
+
return this.stretch && r?.nodeName.toLowerCase() === "svg" && r.setAttribute("preserveAspectRatio", "none"), r;
|
|
96
|
+
}
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
})();
|
|
101
|
+
//#endregion
|
|
102
|
+
export { m as t };
|