@sbb-esta/lyne-elements-experimental 4.9.0 → 4.11.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-button/autocomplete-grid-button.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-cell.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row.js +1 -1
- package/{autocomplete-grid-cell.component-DnCfVJ2l.js → autocomplete-grid-cell.component-DkD9aFKc.js} +5 -5
- package/autocomplete-grid-option.component-CtATJy7n.js +37 -0
- package/autocomplete-grid-row.component-6nJv5PMj.js +27 -0
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +1 -1
- 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.js +3 -3
- package/development/autocomplete-grid.pure.js +3 -3
- package/development/core/datetime/date-helper.js +1 -1
- package/development/core/datetime.js +1 -1
- package/development/{date-helper-8_Y-PuHh.js → date-helper-qNdwgC9O.js} +4 -4
- package/development/{differenceInMinutes-DN_1Rk3O.js → differenceInMinutes-B7_GTDq7.js} +2 -2
- package/development/{format-Bbrn2bgo.js → format-DFx4997p.js} +3 -3
- package/development/{isValid-C-HzKv4v.js → isValid-JpZ7FphI.js} +2 -2
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/journey-summary.component-BZwgD4im.js +340 -0
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/pearl-chain-time.component-B2_BI6E_.js +319 -0
- package/development/pearl-chain-time.js +1 -1
- package/development/pearl-chain-time.pure.js +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/pearl-chain-vertical-item.component-DcmH13Vb.js +133 -0
- package/development/pearl-chain-vertical-item.js +1 -1
- package/development/pearl-chain-vertical-item.pure.js +1 -1
- package/development/pearl-chain-vertical.component-CpcNFl-x.js +31 -0
- package/development/pearl-chain-vertical.js +1 -1
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/pearl-chain.component-oQZUzsyW.js +316 -0
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +8 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control.js +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/development/seat-reservation/seat-reservation-scoped.js +1 -1
- package/development/seat-reservation/seat-reservation.js +1 -1
- 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.js +7 -7
- package/development/seat-reservation.pure.js +7 -7
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-duration.component-BhFlqYbV.js +100 -0
- package/development/timetable-duration.js +1 -1
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/timetable-row.component-Dko8laRT.js +729 -0
- package/development/timetable-row.js +1 -1
- package/development/timetable-row.pure.js +1 -1
- package/development/{toDate-Biiv3kyf.js → toDate-DOFAOjP-.js} +2 -2
- package/{format-CM5exOsN.js → format-DbUuNYFU.js} +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-DcpXXucp.js → journey-summary.component-OFYXlkzg.js} +39 -39
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/{mapper-DkiDDseD.js → mapper-Cqie5ivY.js} +1 -1
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.js +1 -1
- package/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/{pearl-chain-time.component-v6zRg_3j.js → pearl-chain-time.component-CNKsGfIp.js} +29 -29
- package/pearl-chain-time.js +1 -1
- package/pearl-chain-time.pure.js +1 -1
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/pearl-chain-vertical-item.component-BUqZ-3Ay.js +108 -0
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-BvJwcGpS.js → pearl-chain-vertical.component-Df9CvRxo.js} +5 -5
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/pearl-chain.component-CpISVoAu.js +194 -0
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/common/mapper/mapper.js +1 -1
- package/seat-reservation/common/mapper.js +1 -1
- package/seat-reservation/common.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +6 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-area.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services.js +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/seat-reservation/seat-reservation-place-control.js +1 -1
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/seat-reservation/seat-reservation-scoped.js +1 -1
- package/seat-reservation/seat-reservation.js +1 -1
- 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-ViyU_adt.js → seat-reservation-navigation-services.component-C9dDYD_M.js} +19 -19
- package/seat-reservation-place-control.component-CE7d9M2b.js +322 -0
- package/seat-reservation-scoped.component-DVyP2JGE.js +17 -0
- package/{seat-reservation.component-Dl6bnC7-.js → seat-reservation.component-DajC6fqU.js} +51 -51
- package/seat-reservation.js +8 -8
- package/seat-reservation.pure.js +8 -8
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/{timetable-duration.component-Puonwsnr.js → timetable-duration.component-BnJA8wSb.js} +12 -12
- package/timetable-duration.js +1 -1
- package/timetable-duration.pure.js +1 -1
- package/timetable-row/timetable-row.component.js +1 -1
- package/{timetable-row.component-DMCZaOPM.js → timetable-row.component-Cd_7Pu_E.js} +60 -60
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/autocomplete-grid-option.component-BlMPM6eh.js +0 -37
- package/autocomplete-grid-row.component-Bo2ZbXVX.js +0 -27
- package/development/autocomplete-grid-cell.component-BBvM4o2H.js +0 -42
- package/development/autocomplete-grid-option.component-QzfM5eIE.js +0 -123
- package/development/autocomplete-grid-row.component-H8sCTCkT.js +0 -104
- package/development/journey-summary.component-uGhZvA4p.js +0 -385
- package/development/pearl-chain-time.component-B8mayTWD.js +0 -415
- package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +0 -435
- package/development/pearl-chain-vertical.component-CswE7b3M.js +0 -39
- package/development/pearl-chain.component-wpsTvoSe.js +0 -704
- package/development/seat-reservation-area.component-ORuli_DC.js +0 -138
- package/development/seat-reservation-graphic.component-D0xEXmP9.js +0 -203
- package/development/seat-reservation-navigation-coach.component-D2QXTMJJ.js +0 -828
- package/development/seat-reservation-navigation-services.component-Bg1adRlU.js +0 -179
- package/development/seat-reservation-place-control.component-CwUX-QYO.js +0 -726
- package/development/seat-reservation-scoped.component-uLT33P9y.js +0 -31
- package/development/seat-reservation.component-BS53sZR3.js +0 -824
- package/development/timetable-duration.component-D21SXsQq.js +0 -125
- package/development/timetable-row.component-Y5w8vEwP.js +0 -932
- package/pearl-chain-vertical-item.component-M2KRK6Xv.js +0 -108
- package/pearl-chain.component-B-XTTo6h.js +0 -194
- package/seat-reservation-area.component-CY56r75x.js +0 -75
- package/seat-reservation-graphic.component-DCMFf9uY.js +0 -102
- package/seat-reservation-navigation-coach.component-CXUv1pZM.js +0 -333
- package/seat-reservation-place-control.component-Dj5Tm0Oa.js +0 -322
- package/seat-reservation-scoped.component-CuACI8ST.js +0 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeatReservationBaseElement as e } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
2
2
|
import { SbbLanguageController as t } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
3
3
|
import { boxSizingStyles as n } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
4
|
-
import {
|
|
4
|
+
import { html as r, isServer as i, nothing as a, unsafeCSS as o } from "lit";
|
|
5
5
|
import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
6
6
|
import { styleMap as s } from "lit/directives/style-map.js";
|
|
7
7
|
import { SbbSeatReservationAreaElement as c } from "./seat-reservation/seat-reservation-area/seat-reservation-area.component.js";
|
|
@@ -14,8 +14,8 @@ import { SbbSeatReservationPlaceControlElement as m } from "./seat-reservation/s
|
|
|
14
14
|
import { SbbSeatReservationScopedElement as h } from "./seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js";
|
|
15
15
|
import "@sbb-esta/lyne-elements/button.js";
|
|
16
16
|
import "@sbb-esta/lyne-elements/popover.js";
|
|
17
|
-
//#region src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.scss?
|
|
18
|
-
var g =
|
|
17
|
+
//#region src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.scss?inline
|
|
18
|
+
var g = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-height: 0;--sbb-seat-reservation-decks: 1;display:block;height:inherit}:host ::part(coach-floor){fill:var(--sbb-background-color-2)}@media(forced-colors:active){:host ::part(coach-floor){fill:transparent}}:host(:dir(rtl)) :not(.sbb-sr-place-ctrl--type-bicycle,.sbb-sr-place-ctrl--orientation-90,.sbb-sr-place-ctrl--orientation-270,.sbb-sr-place-ctrl--state-selected) ::part(coach-floor){rotate:180deg}[popover]:where(sbb-popover){margin:0;padding:0;border:none;width:auto;height:auto;background-color:transparent;color:inherit;pointer-events:none}[popover]:where(sbb-popover) .sbb-sr-popover{margin-block:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host([align-vertical]) .sbb-sr__component{flex-direction:row-reverse;justify-content:flex-end;gap:calc(22 * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:inherit}@media(min-width:37.5rem){:host([align-vertical]) .sbb-sr__component{gap:calc(54 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation,:host([align-vertical]) .sbb-sr__component ul.sbb-sr-navigation__list-coaches{flex-direction:column}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation{padding:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) 0}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation .sbb-sr__navigation-control-button{left:calc(1 * var(--sbb-seat-reservation-one-px-rem, .0625rem));top:0;rotate:90deg}@media(min-width:64rem){:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation .sbb-sr__navigation-control-button{left:calc(-1 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation ul.sbb-sr-navigation__list-coaches{max-width:initial;padding:calc(5 * var(--sbb-seat-reservation-one-px-rem, .0625rem));overflow:hidden scroll}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation ul.sbb-sr-navigation__list-coaches li{display:flex}:host([align-vertical]) .sbb-sr__wrapper-coach-decks{flex-direction:column}:host([align-vertical]) .sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels{flex-direction:column-reverse;width:calc((var(--sbb-seat-reservation-height) + 24) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:initial}:host([align-vertical]) .sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels b{inline-size:calc(50% - 16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));block-size:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-bottom:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));rotate:initial;writing-mode:initial}:host([align-vertical]) .sbb-sr__wrapper-scrollarea{width:calc((var(--sbb-seat-reservation-height) + 24) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:100%;overflow:hidden scroll}:host([align-vertical]) .sbb-sr__wrapper-scrollarea .sbb-sr__parent{rotate:90deg}:host([align-vertical]) .sbb-sr-travel-direction-wrapper{width:calc(var(--sbb-seat-reservation-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-block-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation{gap:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation .sbb-sr__navigation-control-button{position:relative;top:calc(2 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}@media(min-width:64rem){.sbb-sr-navigation .sbb-sr__navigation-control-button{top:0}}.sbb-sr__component{display:flex;flex-direction:column;gap:calc(64 * var(--sbb-seat-reservation-one-px-rem, .0625rem) - 16px)}.sbb-sr-travel-direction-wrapper{display:flex;justify-content:center;align-items:center;column-gap:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-block:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));font-size:var(--sbb-text-font-size-s)}.sbb-sr-travel-direction-wrapper .sbb-sr__travel-direction--arrow{display:flex;align-items:center}.sbb-sr-navigation-wrapper{display:flex}.sbb-sr-navigation{display:flex;justify-content:center;width:100%;padding-inline:16px}.sbb-sr-navigation__list-coaches{list-style:none;margin:0;padding:0;font-size:inherit;--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-sr-navigation__list-coaches::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-sr-navigation__list-coaches::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-sr-navigation__list-coaches::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-sr-navigation__list-coaches::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-sr-navigation__list-coaches::-webkit-scrollbar-button,.sbb-sr-navigation__list-coaches::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-sr-navigation__list-coaches{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-sr-navigation__list-coaches{display:flex;flex-wrap:nowrap;gap:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding:calc(6 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) calc(5 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) 0;max-width:856px;--sbb-scrollbar-color: transparent;overflow:scroll hidden;position:relative}.sbb-sr__wrapper-coach-decks{display:flex;overflow:hidden;height:inherit}.sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels{display:flex;justify-content:space-between;height:calc(var(--sbb-seat-reservation-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));writing-mode:vertical-lr}.sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels b{height:calc(50% - 16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-block-end:16px;rotate:180deg;text-align:center;line-height:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr__wrapper-scrollarea{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-sr__wrapper-scrollarea::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-sr__wrapper-scrollarea::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-sr__wrapper-scrollarea::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-sr__wrapper-scrollarea::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-sr__wrapper-scrollarea::-webkit-scrollbar-button,.sbb-sr__wrapper-scrollarea::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-sr__wrapper-scrollarea{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-sr__wrapper-scrollarea{overflow:scroll hidden;padding-block:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr__wrapper-scrollarea .sbb-sr__parent{display:flex;flex-direction:column;position:relative}.sbb-sr__list-decks{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;flex-direction:column}.sbb-sr__list-decks--gap{gap:calc(48 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr__list-item-deck{position:relative}.sbb-sr__list-coaches{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;gap:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr__list-decks:has(.sbb-sr-coach-has-overhanging-elements) .sbb-sr__list-coaches{gap:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr__item-coach{position:relative}.sbb-sr-coach-wrapper__table{outline:0}";
|
|
19
19
|
c.define(), d.define(), m.define(), p.define(), h.define();
|
|
20
20
|
var _ = class extends e {
|
|
21
21
|
constructor() {
|
|
@@ -25,7 +25,7 @@ var _ = class extends e {
|
|
|
25
25
|
this.elementName = "sbb-seat-reservation";
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
28
|
-
this.styles = [n, g];
|
|
28
|
+
this.styles = [n, o(g)];
|
|
29
29
|
}
|
|
30
30
|
willUpdate(e) {
|
|
31
31
|
super.willUpdate(e), e.has("hasNavigation") && (this.hasNavigation ? this.shadowRoot?.querySelectorAll("table").forEach((e) => e.removeAttribute("tabindex")) : this.shadowRoot?.querySelectorAll("table").forEach((e) => e.setAttribute("tabindex", "0")));
|
|
@@ -39,7 +39,7 @@ var _ = class extends e {
|
|
|
39
39
|
return this._initVehicleSeatReservationConstruction(), this._coachesHtmlTemplate || null;
|
|
40
40
|
}
|
|
41
41
|
_initVehicleSeatReservationConstruction() {
|
|
42
|
-
this._coachesHtmlTemplate =
|
|
42
|
+
this._coachesHtmlTemplate = r`
|
|
43
43
|
${this._renderTravelDirection()}
|
|
44
44
|
<div class="sbb-sr__component">
|
|
45
45
|
${this._renderNavigation()}
|
|
@@ -61,7 +61,7 @@ var _ = class extends e {
|
|
|
61
61
|
"sbb-sr__list-decks--gap": this.hasMultipleDecks
|
|
62
62
|
})}"
|
|
63
63
|
>
|
|
64
|
-
${this.seatReservations?.map((e, t) =>
|
|
64
|
+
${this.seatReservations?.map((e, t) => r`<li class="sbb-sr__list-item-deck">
|
|
65
65
|
<ul class="sbb-sr__list-coaches" role="presentation">
|
|
66
66
|
${this._renderCoaches(e, t)}
|
|
67
67
|
</ul>
|
|
@@ -74,12 +74,12 @@ var _ = class extends e {
|
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
_renderDeckLabels() {
|
|
77
|
-
return this.hasMultipleDecks ? this.seatReservations.map((e) =>
|
|
77
|
+
return this.hasMultipleDecks ? this.seatReservations.map((e) => r`<b aria-hidden="true">${u(e.deckCoachLevel, this._language.current)}</b>`) : null;
|
|
78
78
|
}
|
|
79
79
|
_renderNavigationControlButton(e) {
|
|
80
80
|
if (!this.hasNavigation || !this.seatReservations) return null;
|
|
81
|
-
let t = e == "DIRECTION_RIGHT" ? "sbb-sr-navigation__wrapper-button-direction--right" : "sbb-sr-navigation__wrapper-button-direction--left", n = e == "DIRECTION_RIGHT" ? "chevron-small-right-small" : "chevron-small-left-small",
|
|
82
|
-
return (e == "DIRECTION_LEFT" && this.selectedCoachIndex > 0 || e == "DIRECTION_RIGHT" && this.selectedCoachIndex < this.coachItemDetailsElements.length - 1) && (
|
|
81
|
+
let t = e == "DIRECTION_RIGHT" ? "sbb-sr-navigation__wrapper-button-direction--right" : "sbb-sr-navigation__wrapper-button-direction--left", n = e == "DIRECTION_RIGHT" ? "chevron-small-right-small" : "chevron-small-left-small", i = u(e == "DIRECTION_RIGHT" ? "SEAT_RESERVATION_END" : "SEAT_RESERVATION_BEGIN", this._language.current), o = !0;
|
|
82
|
+
return (e == "DIRECTION_LEFT" && this.selectedCoachIndex > 0 || e == "DIRECTION_RIGHT" && this.selectedCoachIndex < this.coachItemDetailsElements.length - 1) && (o = !1), r`<div class="sbb-sr-navigation__wrapper-button-direction">
|
|
83
83
|
<sbb-secondary-button
|
|
84
84
|
@click="${() => this.navigateByDirectionBtn(e)}"
|
|
85
85
|
@focus="${() => this.onFocusNavDirectionButton()}"
|
|
@@ -88,17 +88,17 @@ var _ = class extends e {
|
|
|
88
88
|
size="m"
|
|
89
89
|
icon-name="${n}"
|
|
90
90
|
type="button"
|
|
91
|
-
aria-label="${
|
|
91
|
+
aria-label="${i}"
|
|
92
92
|
role="button"
|
|
93
|
-
.disabledInteractive="${
|
|
94
|
-
.disabled="${
|
|
93
|
+
.disabledInteractive="${o || a}"
|
|
94
|
+
.disabled="${o || a}"
|
|
95
95
|
></sbb-secondary-button>
|
|
96
96
|
</div>`;
|
|
97
97
|
}
|
|
98
98
|
_renderTravelDirection() {
|
|
99
99
|
if (!this.travelDirection || this.travelDirection === "NONE") return null;
|
|
100
100
|
let e = u("SEAT_RESERVATION_TRAVEL_DIRECTION", this._language.current);
|
|
101
|
-
return
|
|
101
|
+
return r`<div class="sbb-sr-travel-direction-wrapper">
|
|
102
102
|
<div class="sbb-sr__travel-direction--arrow">
|
|
103
103
|
<sbb-icon slot="icon" name="${`arrow-${this.alignVertical ? this.travelDirection === "RIGHT" ? "down" : "up" : this.travelDirection === "RIGHT" ? "right" : "left"}-small`}"></sbb-icon>
|
|
104
104
|
</div>
|
|
@@ -106,7 +106,7 @@ var _ = class extends e {
|
|
|
106
106
|
</div>`;
|
|
107
107
|
}
|
|
108
108
|
_renderNavigation() {
|
|
109
|
-
return
|
|
109
|
+
return i || !this.hasNavigation || !this.seatReservations ? null : r`<div class="sbb-sr-navigation-wrapper">
|
|
110
110
|
<nav id="sbb-sr-navigation" class="sbb-sr-navigation">
|
|
111
111
|
${this._renderNavigationControlButton("DIRECTION_LEFT")}
|
|
112
112
|
<ul
|
|
@@ -114,7 +114,7 @@ var _ = class extends e {
|
|
|
114
114
|
class="sbb-sr-navigation__list-coaches"
|
|
115
115
|
aria-label="${u("SEAT_RESERVATION_NAVIGATION", this._language.current)}"
|
|
116
116
|
>
|
|
117
|
-
${this.coachItemDetailsElements.map((e, t) =>
|
|
117
|
+
${this.coachItemDetailsElements.map((e, t) => r`<li>
|
|
118
118
|
<sbb-seat-reservation-navigation-coach
|
|
119
119
|
@selectcoach=${(e) => this._onSelectNavCoach(e)}
|
|
120
120
|
@focuscoach=${() => this._onFocusNavCoach()}
|
|
@@ -137,15 +137,15 @@ var _ = class extends e {
|
|
|
137
137
|
}
|
|
138
138
|
_renderCoaches(e, t) {
|
|
139
139
|
let n = JSON.parse(JSON.stringify(e?.coachItems));
|
|
140
|
-
return !n ||
|
|
140
|
+
return !n || i ? null : n.map((n, i) => r`
|
|
141
141
|
<li class="sbb-sr__item-coach">
|
|
142
|
-
${this._renderCoachElement(n,
|
|
142
|
+
${this._renderCoachElement(n, i, t, e.deckCoachIndex)}
|
|
143
143
|
</li>
|
|
144
144
|
`);
|
|
145
145
|
}
|
|
146
|
-
_renderCoachElement(e, t, n,
|
|
146
|
+
_renderCoachElement(e, t, n, i) {
|
|
147
147
|
let a = this.getCalculatedDimension(e.dimension), o = this._getDescriptionTableCoach(e);
|
|
148
|
-
return
|
|
148
|
+
return r`<sbb-seat-reservation-scoped
|
|
149
149
|
style=${s({
|
|
150
150
|
"--sbb-seat-reservation-scoped-width": a.w,
|
|
151
151
|
"--sbb-seat-reservation-scoped-height": a.h
|
|
@@ -165,18 +165,18 @@ var _ = class extends e {
|
|
|
165
165
|
<caption id="sbb-sr-coach-caption-${t}" tabindex="-1">
|
|
166
166
|
<sbb-screen-reader-only>${o}</sbb-screen-reader-only>
|
|
167
167
|
</caption>
|
|
168
|
-
${this._getRenderedRowPlaces(e, t, n,
|
|
168
|
+
${this._getRenderedRowPlaces(e, t, n, i)}
|
|
169
169
|
</table>
|
|
170
170
|
</sbb-seat-reservation-scoped>`;
|
|
171
171
|
}
|
|
172
172
|
_getRenderedCoachBorders(e, t) {
|
|
173
173
|
if (!e.graphicElements) return null;
|
|
174
|
-
let n = this.coachItemDetailsElements[t]?.driverAreaElements?.driverArea,
|
|
174
|
+
let n = this.coachItemDetailsElements[t]?.driverAreaElements?.driverArea, i = this.coachItemDetailsElements[t]?.driverAreaElements?.driverAreaNoVerticalWall, a = n ? e.dimension.w - n.dimension.w - 1 : e.dimension.w - 2;
|
|
175
175
|
a *= this.baseGridSize;
|
|
176
176
|
let o = (e.dimension.h + this.coachBorderOffset * 2) * this.baseGridSize, c = n && n.position.x === 0 ? n?.dimension.w * this.baseGridSize : this.baseGridSize;
|
|
177
|
-
|
|
177
|
+
i && (a = this.getCalculatedDimension(e.dimension).w - 2 * (i.dimension.w * this.baseGridSize), c = i.dimension.w * this.baseGridSize);
|
|
178
178
|
let u = this.overHangingElementInformation.find((t) => t.coachId === e.id);
|
|
179
|
-
return (u?.overhangingPlaces || u?.overhangingGraphicAreas) && (a += 2 * this.baseGridSize, c = 0),
|
|
179
|
+
return (u?.overhangingPlaces || u?.overhangingGraphicAreas) && (a += 2 * this.baseGridSize, c = 0), r`
|
|
180
180
|
<sbb-seat-reservation-graphic
|
|
181
181
|
class="${l({ "sbb-sr-coach-has-overhanging-elements": u?.overhangingPlaces || u?.overhangingGraphicAreas || !1 })}"
|
|
182
182
|
style=${s({
|
|
@@ -192,22 +192,22 @@ var _ = class extends e {
|
|
|
192
192
|
></sbb-seat-reservation-graphic>
|
|
193
193
|
`;
|
|
194
194
|
}
|
|
195
|
-
_getRenderedRowPlaces(e, t, n,
|
|
195
|
+
_getRenderedRowPlaces(e, t, n, i) {
|
|
196
196
|
if (!e.places) return null;
|
|
197
197
|
let a = {};
|
|
198
198
|
for (let t of e.places) a[t.position.y] ? a[t.position.y].push(t) : a[t.position.y] = [t];
|
|
199
|
-
return Object.values(a).map((e, a) =>
|
|
199
|
+
return Object.values(a).map((e, a) => r`
|
|
200
200
|
<tr id="row-${t}-${e[0].position.y}" data-row-index=${a}>
|
|
201
|
-
${this._getRenderedColumnPlaces(e, t, n,
|
|
201
|
+
${this._getRenderedColumnPlaces(e, t, n, i)}
|
|
202
202
|
</tr>
|
|
203
203
|
`).flatMap((e) => e);
|
|
204
204
|
}
|
|
205
|
-
_getRenderedColumnPlaces(e, t, n,
|
|
205
|
+
_getRenderedColumnPlaces(e, t, n, i) {
|
|
206
206
|
e.sort((e, t) => Number(e.position.x) - Number(t.position.x));
|
|
207
|
-
let a = t + "-" +
|
|
208
|
-
return
|
|
207
|
+
let a = t + "-" + i;
|
|
208
|
+
return r`${f(e, (e) => a + "-" + e.number, (e, a) => {
|
|
209
209
|
let o = this.getCalculatedDimension(e.dimension), c = this.getCalculatedPosition(e.position), l = e.rotation || 0, u = this.alignVertical ? -90 : 0, d = this.getPlaceElementId(n, t, e.number);
|
|
210
|
-
return
|
|
210
|
+
return r`
|
|
211
211
|
<td
|
|
212
212
|
id="cell-${n}-${t}-${e.position.y}-${a}"
|
|
213
213
|
class="graphical-element"
|
|
@@ -231,7 +231,7 @@ var _ = class extends e {
|
|
|
231
231
|
state=${e.state}
|
|
232
232
|
travel-direction=${this.travelDirection}
|
|
233
233
|
coach-index=${t}
|
|
234
|
-
deck-index=${
|
|
234
|
+
deck-index=${i}
|
|
235
235
|
data-deck-index=${n}
|
|
236
236
|
.propertyIds=${e.propertyIds}
|
|
237
237
|
.preventClick=${this.preventPlaceClick}
|
|
@@ -247,9 +247,9 @@ var _ = class extends e {
|
|
|
247
247
|
return this.notAreaElements.findIndex((e) => e === i) > -1 ? this._getRenderElementWithoutArea(e, a, t) : this._getRenderElementWithArea(e, s, t, n, r);
|
|
248
248
|
}) : null;
|
|
249
249
|
}
|
|
250
|
-
_getRenderElementWithArea(e, t, n,
|
|
251
|
-
let c = e.icon?.indexOf("TABLE") === -1, d = e.icon && c ? e.icon : null, f = this.isElementDirectlyOnBorder(e, n) && d !== "ENTRY_EXIT", p = e.icon ? u(e.icon, this._language.current) :
|
|
252
|
-
return e.position.y === this.coachBorderOffset * -1 ? _ = "upper-border" : e.position.y + e.dimension.h === n.h + this.coachBorderOffset && (_ = "lower-border"), _ !== "free" && (h.y += _ === "upper-border" ? 2 : 1, m.h -= 3),
|
|
250
|
+
_getRenderElementWithArea(e, t, n, i, o) {
|
|
251
|
+
let c = e.icon?.indexOf("TABLE") === -1, d = e.icon && c ? e.icon : null, f = this.isElementDirectlyOnBorder(e, n) && d !== "ENTRY_EXIT", p = e.icon ? u(e.icon, this._language.current) : a, m = this.getCalculatedDimension(e.dimension, n, !0, f), h = this.getCalculatedPosition(e.position, e.dimension, n, !0), g = `popover-trigger-${o}-${i}-${h.x}-${h.y}`, _ = "free";
|
|
252
|
+
return e.position.y === this.coachBorderOffset * -1 ? _ = "upper-border" : e.position.y + e.dimension.h === n.h + this.coachBorderOffset && (_ = "lower-border"), _ !== "free" && (h.y += _ === "upper-border" ? 2 : 1, m.h -= 3), r`
|
|
253
253
|
<sbb-seat-reservation-area
|
|
254
254
|
id="${g}"
|
|
255
255
|
class="${l({ "sbb-seat-reservation-area--cursor-pointer": d !== null })}"
|
|
@@ -263,7 +263,7 @@ var _ = class extends e {
|
|
|
263
263
|
background="dark"
|
|
264
264
|
aria-hidden="true"
|
|
265
265
|
>
|
|
266
|
-
${d ?
|
|
266
|
+
${d ? r`
|
|
267
267
|
<sbb-seat-reservation-graphic
|
|
268
268
|
style=${s({
|
|
269
269
|
"--sbb-seat-reservation-graphic-max-width": this.globalAreaIconDim.w,
|
|
@@ -278,47 +278,47 @@ var _ = class extends e {
|
|
|
278
278
|
aria-hidden="true"
|
|
279
279
|
class="sbb-sr-graphic__dimension--square-dim"
|
|
280
280
|
></sbb-seat-reservation-graphic>
|
|
281
|
-
` :
|
|
281
|
+
` : a}
|
|
282
282
|
</sbb-seat-reservation-area>
|
|
283
|
-
${d ? this._popover(g, p) :
|
|
283
|
+
${d ? this._popover(g, p) : a}
|
|
284
284
|
`;
|
|
285
285
|
}
|
|
286
286
|
_getRenderElementWithoutArea(e, t, n) {
|
|
287
|
-
let
|
|
288
|
-
return
|
|
287
|
+
let i = this.getCalculatedDimension(e.dimension, n), o = this.getCalculatedPosition(e.position, e.dimension, n), c = e.icon && e.icon.endsWith("DRIVER_AREA") ? e.icon?.concat("_", this.seatReservations[this.currSelectedDeckIndex].vehicleType) : e.icon;
|
|
288
|
+
return r` <sbb-seat-reservation-graphic
|
|
289
289
|
style=${s({
|
|
290
|
-
"--sbb-seat-reservation-graphic-width":
|
|
291
|
-
"--sbb-seat-reservation-graphic-height":
|
|
292
|
-
"--sbb-seat-reservation-graphic-top":
|
|
293
|
-
"--sbb-seat-reservation-graphic-left":
|
|
290
|
+
"--sbb-seat-reservation-graphic-width": i.w,
|
|
291
|
+
"--sbb-seat-reservation-graphic-height": i.h,
|
|
292
|
+
"--sbb-seat-reservation-graphic-top": o.y,
|
|
293
|
+
"--sbb-seat-reservation-graphic-left": o.x,
|
|
294
294
|
"--sbb-seat-reservation-graphic-position": "absolute",
|
|
295
295
|
"--sbb-seat-reservation-graphic-rotation": t
|
|
296
296
|
})}
|
|
297
|
-
name=${c ??
|
|
297
|
+
name=${c ?? a}
|
|
298
298
|
aria-hidden="true"
|
|
299
299
|
?stretch=${!0}
|
|
300
300
|
></sbb-seat-reservation-graphic>`;
|
|
301
301
|
}
|
|
302
302
|
_getRenderedServiceElements(e, t, n) {
|
|
303
303
|
return n ? n?.map((n) => {
|
|
304
|
-
let
|
|
305
|
-
return
|
|
304
|
+
let i = n.icon ? u(n.icon, this._language.current) : null, o = this.getCalculatedDimension(n.dimension), c = this.getCalculatedPosition(n.position), l = n.rotation || 0, d = this.alignVertical ? l - 90 : l, f = `popover-trigger-${t}-${e}-${c.x}-${c.y}`;
|
|
305
|
+
return r`
|
|
306
306
|
<sbb-seat-reservation-graphic
|
|
307
307
|
id="${f}"
|
|
308
308
|
style=${s({
|
|
309
|
-
"--sbb-seat-reservation-graphic-width":
|
|
310
|
-
"--sbb-seat-reservation-graphic-height":
|
|
309
|
+
"--sbb-seat-reservation-graphic-width": o.w,
|
|
310
|
+
"--sbb-seat-reservation-graphic-height": o.h,
|
|
311
311
|
"--sbb-seat-reservation-graphic-top": c.y,
|
|
312
312
|
"--sbb-seat-reservation-graphic-left": c.x,
|
|
313
313
|
"--sbb-seat-reservation-graphic-position": "absolute",
|
|
314
314
|
"--sbb-seat-reservation-graphic-rotation": d
|
|
315
315
|
})}
|
|
316
316
|
class="sbb-seat-reservation-graphic--cursor-pointer"
|
|
317
|
-
name=${n.icon ??
|
|
317
|
+
name=${n.icon ?? a}
|
|
318
318
|
role="img"
|
|
319
319
|
aria-hidden="true"
|
|
320
320
|
></sbb-seat-reservation-graphic>
|
|
321
|
-
${this._popover(f,
|
|
321
|
+
${this._popover(f, i)}
|
|
322
322
|
`;
|
|
323
323
|
}) : null;
|
|
324
324
|
}
|
|
@@ -334,7 +334,7 @@ var _ = class extends e {
|
|
|
334
334
|
this.preventCoachScrollByPlaceClick ? this.focusPlaceElement(this.currSelectedPlace) : this.preselectPlaceInCoach(), this.isAutoScrolling = !1;
|
|
335
335
|
}
|
|
336
336
|
_popover(e, t) {
|
|
337
|
-
return
|
|
337
|
+
return r`
|
|
338
338
|
<sbb-popover trigger="${e}" hover-trigger="">
|
|
339
339
|
<p class="sbb-text-s sbb-sr-popover">${t}</p>
|
|
340
340
|
</sbb-popover>
|
package/seat-reservation.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./mapper-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./mapper-Cqie5ivY.js";
|
|
2
2
|
import { mapIconToSvg as i } from "./seat-reservation/common/mapper/icon-mapper.js";
|
|
3
3
|
import { t as a } from "./svgs-D5DhLHxC.js";
|
|
4
4
|
import { getI18nSeatReservation as o } from "./seat-reservation/common/translations/i18n.js";
|
|
5
|
-
import { t as s } from "./seat-reservation-area.component-
|
|
6
|
-
import { t as c } from "./seat-reservation-graphic.component-
|
|
5
|
+
import { t as s } from "./seat-reservation-area.component-CtYawDjE.js";
|
|
6
|
+
import { t as c } from "./seat-reservation-graphic.component-Cm_pVxaB.js";
|
|
7
7
|
import { assetsTemplate as l, svgImageByOSDMCode as u } from "./seat-reservation/seat-reservation-graphic/seat-reservation-assets.js";
|
|
8
|
-
import { t as d } from "./seat-reservation-navigation-coach.component-
|
|
9
|
-
import { t as f } from "./seat-reservation-navigation-services.component-
|
|
10
|
-
import { t as p } from "./seat-reservation-place-control.component-
|
|
11
|
-
import { t as m } from "./seat-reservation-scoped.component-
|
|
8
|
+
import { t as d } from "./seat-reservation-navigation-coach.component-sug9IBTH.js";
|
|
9
|
+
import { t as f } from "./seat-reservation-navigation-services.component-C9dDYD_M.js";
|
|
10
|
+
import { t as p } from "./seat-reservation-place-control.component-CE7d9M2b.js";
|
|
11
|
+
import { t as m } from "./seat-reservation-scoped.component-DVyP2JGE.js";
|
|
12
12
|
import { SeatReservationBaseElement as h } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
13
|
-
import { t as g } from "./seat-reservation.component-
|
|
13
|
+
import { t as g } from "./seat-reservation.component-DajC6fqU.js";
|
|
14
14
|
import "./seat-reservation.pure.js";
|
|
15
15
|
g.define(), s.define(), c.define(), d.define(), f.define(), p.define(), m.define();
|
|
16
16
|
//#endregion
|
package/seat-reservation.pure.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./mapper-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./mapper-Cqie5ivY.js";
|
|
2
2
|
import { mapIconToSvg as i } from "./seat-reservation/common/mapper/icon-mapper.js";
|
|
3
3
|
import "./seat-reservation/common/mapper.js";
|
|
4
4
|
import { t as a } from "./svgs-D5DhLHxC.js";
|
|
5
5
|
import { getI18nSeatReservation as o } from "./seat-reservation/common/translations/i18n.js";
|
|
6
|
-
import { t as s } from "./seat-reservation-area.component-
|
|
7
|
-
import { t as c } from "./seat-reservation-graphic.component-
|
|
6
|
+
import { t as s } from "./seat-reservation-area.component-CtYawDjE.js";
|
|
7
|
+
import { t as c } from "./seat-reservation-graphic.component-Cm_pVxaB.js";
|
|
8
8
|
import { assetsTemplate as l, svgImageByOSDMCode as u } from "./seat-reservation/seat-reservation-graphic/seat-reservation-assets.js";
|
|
9
|
-
import { t as d } from "./seat-reservation-navigation-coach.component-
|
|
10
|
-
import { t as f } from "./seat-reservation-navigation-services.component-
|
|
11
|
-
import { t as p } from "./seat-reservation-place-control.component-
|
|
12
|
-
import { t as m } from "./seat-reservation-scoped.component-
|
|
9
|
+
import { t as d } from "./seat-reservation-navigation-coach.component-sug9IBTH.js";
|
|
10
|
+
import { t as f } from "./seat-reservation-navigation-services.component-C9dDYD_M.js";
|
|
11
|
+
import { t as p } from "./seat-reservation-place-control.component-CE7d9M2b.js";
|
|
12
|
+
import { t as m } from "./seat-reservation-scoped.component-DVyP2JGE.js";
|
|
13
13
|
import { SeatReservationBaseElement as h } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
14
|
-
import { t as g } from "./seat-reservation.component-
|
|
14
|
+
import { t as g } from "./seat-reservation.component-DajC6fqU.js";
|
|
15
15
|
export { s as SbbSeatReservationAreaElement, g as SbbSeatReservationElement, c as SbbSeatReservationGraphicElement, d as SbbSeatReservationNavigationCoachElement, f as SbbSeatReservationNavigationServicesElement, p as SbbSeatReservationPlaceControlElement, m as SbbSeatReservationScopedElement, h as SeatReservationBaseElement, l as assetsTemplate, o as getI18nSeatReservation, r as mapCoachInfosToCoachSelection, i as mapIconToSvg, t as mapPlaceAndCoachToSeatReservationPlaceSelection, n as mapPlaceInfosToPlaceSelection, e as mapRawDataToSeatReservation, u as svgImageByOSDMCode, a as svgs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../timetable-duration.component-
|
|
1
|
+
import { t as e } from "../timetable-duration.component-BnJA8wSb.js";
|
|
2
2
|
export { e as SbbTimetableDurationElement };
|
package/{timetable-duration.component-Puonwsnr.js → timetable-duration.component-BnJA8wSb.js}
RENAMED
|
@@ -3,19 +3,19 @@ import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
|
3
3
|
import { SbbLanguageController as r } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
4
4
|
import { forceType as i } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
5
5
|
import { boxSizingStyles as a } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
6
|
-
import {
|
|
6
|
+
import { html as o, unsafeCSS as s } from "lit";
|
|
7
7
|
import { i18nDurationHour as c, i18nDurationMinute as l } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
8
8
|
import { property as u } from "lit/decorators.js";
|
|
9
|
-
//#region src/elements-experimental/timetable-duration/timetable-duration.scss?
|
|
10
|
-
var d =
|
|
11
|
-
let
|
|
12
|
-
return class extends
|
|
9
|
+
//#region src/elements-experimental/timetable-duration/timetable-duration.scss?inline
|
|
10
|
+
var d = ":host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);margin:0;white-space:nowrap}.duration__text--visually-hidden{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}", f = (() => {
|
|
11
|
+
let f = n, p, m = [], h = [];
|
|
12
|
+
return class extends f {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.#e = t(this,
|
|
14
|
+
super(...arguments), this.#e = t(this, m, ""), this._language = (t(this, h), new r(this));
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
18
|
-
|
|
17
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
18
|
+
p = [i(), u()], e(this, null, p, {
|
|
19
19
|
kind: "accessor",
|
|
20
20
|
name: "config",
|
|
21
21
|
static: !1,
|
|
@@ -28,7 +28,7 @@ var d = o`:host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-t
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
metadata: t
|
|
31
|
-
},
|
|
31
|
+
}, m, h), t && Object.defineProperty(this, Symbol.metadata, {
|
|
32
32
|
enumerable: !0,
|
|
33
33
|
configurable: !0,
|
|
34
34
|
writable: !0,
|
|
@@ -39,7 +39,7 @@ var d = o`:host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-t
|
|
|
39
39
|
this.elementName = "sbb-timetable-duration";
|
|
40
40
|
}
|
|
41
41
|
static {
|
|
42
|
-
this.styles = [a, d];
|
|
42
|
+
this.styles = [a, s(d)];
|
|
43
43
|
}
|
|
44
44
|
#e;
|
|
45
45
|
get config() {
|
|
@@ -49,8 +49,8 @@ var d = o`:host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-t
|
|
|
49
49
|
this.#e = e;
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
let e = JSON.parse(this.config), t = c.multiple.short[this._language.current], n = l.multiple.short[this._language.current], r = "", i = "", a = c.multiple.long[this._language.current],
|
|
53
|
-
return e.hours === 1 && (a = c.single.long[this._language.current]), e.minutes === 1 && (
|
|
52
|
+
let e = JSON.parse(this.config), t = c.multiple.short[this._language.current], n = l.multiple.short[this._language.current], r = "", i = "", a = c.multiple.long[this._language.current], s = l.multiple.long[this._language.current];
|
|
53
|
+
return e.hours === 1 && (a = c.single.long[this._language.current]), e.minutes === 1 && (s = l.single.long[this._language.current]), e.hours !== 0 && (r += `${e.hours} ${t}`, i += `${e.hours} ${a}`), r += ` ${e.minutes} ${n}`, i += ` ${e.minutes} ${s}.`, o`
|
|
54
54
|
<p aria-label=${i} class="duration" role="text">
|
|
55
55
|
<span aria-hidden="true" class="duration__text--visual" role="presentation">
|
|
56
56
|
${r}
|
package/timetable-duration.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./timetable-duration.component-
|
|
1
|
+
import { t as e } from "./timetable-duration.component-BnJA8wSb.js";
|
|
2
2
|
export { e as SbbTimetableDurationElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../timetable-row.component-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../timetable-row.component-Cd_7Pu_E.js";
|
|
2
2
|
export { s as SbbTimetableRowElement, r as filterNotices, a as getCus, n as getHimIcon, e as handleNotices, i as renderIconProduct, o as renderStringProduct, t as sortSituation };
|