@sbb-esta/lyne-elements-experimental-dev 5.0.0-next.1-dev.1777896783 → 5.0.0-next.1-dev.1777898769
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 +18 -18
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/{autocomplete-grid-cell.component-BFzREPWp.js → autocomplete-grid-cell.component-DAsWZlTn.js} +6 -6
- package/{autocomplete-grid-row.component-BQxCxOI6.js → autocomplete-grid-row.component-VbyYP0U-.js} +7 -7
- package/autocomplete-grid.js +2 -2
- package/autocomplete-grid.pure.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -3
- 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-row/autocomplete-grid-row.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/autocomplete-grid-cell.component-BF8i4388.js +33 -0
- package/development/{autocomplete-grid-row.component-CY4UDuuj.js → autocomplete-grid-row.component-CBHh50jC.js} +3 -3
- package/development/autocomplete-grid.js +2 -2
- package/development/autocomplete-grid.pure.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-De1ioDRq.js +341 -0
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts.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-f2y8Jebp.js → pearl-chain-time.component-BxVQ1z-Z.js} +3 -7
- 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-DHsk3J8I.js → pearl-chain-vertical-item.component-DJioJtxP.js} +3 -3
- 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-zSOeIkhh.js +30 -0
- package/development/pearl-chain-vertical.js +1 -1
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/{pearl-chain.component-bTvnaUEj.js → pearl-chain.component-B83OsEx8.js} +3 -7
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -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-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.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-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.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-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/development/{seat-reservation-area.component-DlH14rY-.js → seat-reservation-area.component-CMqjbUtV.js} +3 -3
- package/development/{seat-reservation-graphic.component-B771YtOf.js → seat-reservation-graphic.component-C2r57590.js} +3 -3
- package/development/{seat-reservation-navigation-coach.component-CnA9MEBr.js → seat-reservation-navigation-coach.component-BwLbiHCG.js} +3 -7
- package/development/{seat-reservation-navigation-services.component-CLho6RnU.js → seat-reservation-navigation-services.component-Do8JLJh3.js} +3 -7
- package/development/{seat-reservation-place-control.component-BEeaDOS6.js → seat-reservation-place-control.component-BfuOGZYq.js} +3 -7
- package/development/{seat-reservation-scoped.component-X-Kq0-w5.js → seat-reservation-scoped.component-D-Mvw-Q3.js} +3 -3
- package/development/seat-reservation.component-B2nJ13F1.js +472 -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-fBla8Kue.js +96 -0
- package/development/timetable-duration.js +1 -1
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/timetable-row.component-C9Y9Rev1.js +732 -0
- package/development/timetable-row.js +1 -1
- package/development/timetable-row.pure.js +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-DZ9M06Nt.js → journey-summary.component-CkDRawn9.js} +50 -54
- package/journey-summary.js +1 -1
- package/journey-summary.pure.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-DGilJDFx.js → pearl-chain-time.component-D5OCEBJ_.js} +39 -43
- 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-CO6HUZFL.js → pearl-chain-vertical-item.component-IdquCJMy.js} +28 -28
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-Lx47SlJU.js → pearl-chain-vertical.component-CDOWaup3.js} +6 -6
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-D7Dz_ruc.js → pearl-chain.component-C6lcD7Xl.js} +37 -41
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/{seat-reservation-area.component-B_T7k-dq.js → seat-reservation-area.component-BcmwKJSK.js} +16 -16
- package/{seat-reservation-graphic.component-BNtFgIVM.js → seat-reservation-graphic.component-C3wc4DKr.js} +26 -26
- package/{seat-reservation-navigation-coach.component-BF2dTeIb.js → seat-reservation-navigation-coach.component-D1SgS8BU.js} +49 -53
- package/{seat-reservation-navigation-services.component-BSeCIGnn.js → seat-reservation-navigation-services.component-CfAQa7pa.js} +26 -30
- package/{seat-reservation-place-control.component-DOEKL6FP.js → seat-reservation-place-control.component-DrzEDW8Z.js} +41 -45
- package/{seat-reservation-scoped.component-CdB7HYzl.js → seat-reservation-scoped.component-BohQUGVW.js} +6 -6
- package/{seat-reservation.component-SoXTIEnc.js → seat-reservation.component-CB2IWgM9.js} +76 -77
- package/seat-reservation.js +7 -7
- package/seat-reservation.pure.js +7 -7
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/{timetable-duration.component-B2Wq8dP0.js → timetable-duration.component-DPRcG1LP.js} +14 -18
- 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-BPH5pFQO.js → timetable-row.component-BqIVlISS.js} +113 -117
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/development/autocomplete-grid-cell.component-Buvsof-Y.js +0 -33
- package/development/journey-summary.component-Ch38LiQx.js +0 -345
- package/development/pearl-chain-vertical.component-Cmc3QXgd.js +0 -30
- package/development/seat-reservation.component-BtAwrvVE.js +0 -473
- package/development/timetable-duration.component-BhIBA6le.js +0 -100
- package/development/timetable-row.component-BjaJFKLW.js +0 -736
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { SeatReservationBaseElement as e } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
2
2
|
import { SbbSecondaryButtonElement as t } from "@sbb-esta/lyne-elements/button.pure.js";
|
|
3
|
-
import { SbbLanguageController as n,
|
|
4
|
-
import { html as
|
|
5
|
-
import { styleMap as
|
|
6
|
-
import { classMap as
|
|
7
|
-
import { getI18nSeatReservation as
|
|
8
|
-
import { SbbSeatReservationGraphicElement as
|
|
9
|
-
import { SbbPopoverElement as
|
|
10
|
-
import { repeat as
|
|
11
|
-
import { SbbSeatReservationAreaElement as
|
|
12
|
-
import { SbbSeatReservationNavigationCoachElement as
|
|
13
|
-
import { SbbSeatReservationPlaceControlElement as
|
|
14
|
-
import { SbbSeatReservationScopedElement as
|
|
3
|
+
import { SbbLanguageController as n, screenReaderOnlyStyles as r, scrollbarStyles as i } from "@sbb-esta/lyne-elements/core.js";
|
|
4
|
+
import { html as a, isServer as o, nothing as s, unsafeCSS as c } from "lit";
|
|
5
|
+
import { styleMap as l } from "lit/directives/style-map.js";
|
|
6
|
+
import { classMap as u } from "lit/directives/class-map.js";
|
|
7
|
+
import { getI18nSeatReservation as d } from "./seat-reservation/common/translations.js";
|
|
8
|
+
import { SbbSeatReservationGraphicElement as f } from "./seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js";
|
|
9
|
+
import { SbbPopoverElement as p } from "@sbb-esta/lyne-elements/popover.pure.js";
|
|
10
|
+
import { repeat as m } from "lit/directives/repeat.js";
|
|
11
|
+
import { SbbSeatReservationAreaElement as h } from "./seat-reservation/seat-reservation-area/seat-reservation-area.component.js";
|
|
12
|
+
import { SbbSeatReservationNavigationCoachElement as g } from "./seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js";
|
|
13
|
+
import { SbbSeatReservationPlaceControlElement as _ } from "./seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js";
|
|
14
|
+
import { SbbSeatReservationScopedElement as v } from "./seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js";
|
|
15
15
|
//#region src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.scss?inline
|
|
16
|
-
var
|
|
16
|
+
var y = ":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;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{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}", b = class extends e {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._language = new n(this);
|
|
19
19
|
}
|
|
@@ -23,20 +23,19 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
23
23
|
static {
|
|
24
24
|
this.elementDependencies = [
|
|
25
25
|
t,
|
|
26
|
-
m,
|
|
27
|
-
g,
|
|
28
26
|
p,
|
|
29
|
-
|
|
27
|
+
h,
|
|
28
|
+
f,
|
|
30
29
|
_,
|
|
31
|
-
|
|
30
|
+
g,
|
|
31
|
+
v
|
|
32
32
|
];
|
|
33
33
|
}
|
|
34
34
|
static {
|
|
35
35
|
this.styles = [
|
|
36
|
-
r,
|
|
37
|
-
a,
|
|
38
36
|
i,
|
|
39
|
-
|
|
37
|
+
r,
|
|
38
|
+
c(y)
|
|
40
39
|
];
|
|
41
40
|
}
|
|
42
41
|
willUpdate(e) {
|
|
@@ -51,7 +50,7 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
51
50
|
return this._initVehicleSeatReservationConstruction(), this._coachesHtmlTemplate || null;
|
|
52
51
|
}
|
|
53
52
|
_initVehicleSeatReservationConstruction() {
|
|
54
|
-
this._coachesHtmlTemplate =
|
|
53
|
+
this._coachesHtmlTemplate = a`
|
|
55
54
|
${this._renderTravelDirection()}
|
|
56
55
|
<div class="sbb-sr__component">
|
|
57
56
|
${this._renderNavigation()}
|
|
@@ -68,12 +67,12 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
68
67
|
>
|
|
69
68
|
<div id="sbb-sr__parent-area" class="sbb-sr__parent">
|
|
70
69
|
<ul
|
|
71
|
-
class="${
|
|
70
|
+
class="${u({
|
|
72
71
|
"sbb-sr__list-decks": !0,
|
|
73
72
|
"sbb-sr__list-decks--gap": this.hasMultipleDecks
|
|
74
73
|
})}"
|
|
75
74
|
>
|
|
76
|
-
${this.seatReservations?.map((e, t) =>
|
|
75
|
+
${this.seatReservations?.map((e, t) => a`<li class="sbb-sr__list-item-deck">
|
|
77
76
|
<ul class="sbb-sr__list-coaches" role="presentation">
|
|
78
77
|
${this._renderCoaches(e, t)}
|
|
79
78
|
</ul>
|
|
@@ -86,12 +85,12 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
86
85
|
`;
|
|
87
86
|
}
|
|
88
87
|
_renderDeckLabels() {
|
|
89
|
-
return this.hasMultipleDecks ? this.seatReservations.map((e) =>
|
|
88
|
+
return this.hasMultipleDecks ? this.seatReservations.map((e) => a`<b aria-hidden="true">${d(e.deckCoachLevel, this._language.current)}</b>`) : null;
|
|
90
89
|
}
|
|
91
90
|
_renderNavigationControlButton(e) {
|
|
92
91
|
if (!this.hasNavigation || !this.seatReservations) return null;
|
|
93
|
-
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", r =
|
|
94
|
-
return (e == "DIRECTION_LEFT" && this.selectedCoachIndex > 0 || e == "DIRECTION_RIGHT" && this.selectedCoachIndex < this.coachItemDetailsElements.length - 1) && (i = !1),
|
|
92
|
+
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", r = d(e == "DIRECTION_RIGHT" ? "SEAT_RESERVATION_END" : "SEAT_RESERVATION_BEGIN", this._language.current), i = !0;
|
|
93
|
+
return (e == "DIRECTION_LEFT" && this.selectedCoachIndex > 0 || e == "DIRECTION_RIGHT" && this.selectedCoachIndex < this.coachItemDetailsElements.length - 1) && (i = !1), a`<div class="sbb-sr-navigation__wrapper-button-direction">
|
|
95
94
|
<sbb-secondary-button
|
|
96
95
|
@click="${() => this.navigateByDirectionBtn(e)}"
|
|
97
96
|
@focus="${() => this.onFocusNavDirectionButton()}"
|
|
@@ -102,15 +101,15 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
102
101
|
type="button"
|
|
103
102
|
aria-label="${r}"
|
|
104
103
|
role="button"
|
|
105
|
-
.disabledInteractive="${i ||
|
|
106
|
-
.disabled="${i ||
|
|
104
|
+
.disabledInteractive="${i || s}"
|
|
105
|
+
.disabled="${i || s}"
|
|
107
106
|
></sbb-secondary-button>
|
|
108
107
|
</div>`;
|
|
109
108
|
}
|
|
110
109
|
_renderTravelDirection() {
|
|
111
110
|
if (!this.travelDirection || this.travelDirection === "NONE") return null;
|
|
112
|
-
let e =
|
|
113
|
-
return
|
|
111
|
+
let e = d("SEAT_RESERVATION_TRAVEL_DIRECTION", this._language.current);
|
|
112
|
+
return a`<div class="sbb-sr-travel-direction-wrapper">
|
|
114
113
|
<div class="sbb-sr__travel-direction--arrow">
|
|
115
114
|
<sbb-icon slot="icon" name="${`arrow-${this.alignVertical ? this.travelDirection === "RIGHT" ? "down" : "up" : this.travelDirection === "RIGHT" ? "right" : "left"}-small`}"></sbb-icon>
|
|
116
115
|
</div>
|
|
@@ -118,15 +117,15 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
118
117
|
</div>`;
|
|
119
118
|
}
|
|
120
119
|
_renderNavigation() {
|
|
121
|
-
return
|
|
120
|
+
return o || !this.hasNavigation || !this.seatReservations ? null : a`<div class="sbb-sr-navigation-wrapper">
|
|
122
121
|
<nav id="sbb-sr-navigation" class="sbb-sr-navigation">
|
|
123
122
|
${this._renderNavigationControlButton("DIRECTION_LEFT")}
|
|
124
123
|
<ul
|
|
125
124
|
id="sbb-sr__navigation-list-coaches"
|
|
126
125
|
class="sbb-sr-navigation__list-coaches sbb-scrollbar"
|
|
127
|
-
aria-label="${
|
|
126
|
+
aria-label="${d("SEAT_RESERVATION_NAVIGATION", this._language.current)}"
|
|
128
127
|
>
|
|
129
|
-
${this.coachItemDetailsElements.map((e, t) =>
|
|
128
|
+
${this.coachItemDetailsElements.map((e, t) => a`<li>
|
|
130
129
|
<sbb-seat-reservation-navigation-coach
|
|
131
130
|
@selectcoach=${(e) => this._onSelectNavCoach(e)}
|
|
132
131
|
@focuscoach=${() => this._onFocusNavCoach()}
|
|
@@ -149,16 +148,16 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
149
148
|
}
|
|
150
149
|
_renderCoaches(e, t) {
|
|
151
150
|
let n = JSON.parse(JSON.stringify(e?.coachItems));
|
|
152
|
-
return !n ||
|
|
151
|
+
return !n || o ? null : n.map((n, r) => a`
|
|
153
152
|
<li class="sbb-sr__item-coach">
|
|
154
153
|
${this._renderCoachElement(n, r, t, e.deckCoachIndex)}
|
|
155
154
|
</li>
|
|
156
155
|
`);
|
|
157
156
|
}
|
|
158
157
|
_renderCoachElement(e, t, n, r) {
|
|
159
|
-
let i = this.getCalculatedDimension(e.dimension),
|
|
160
|
-
return
|
|
161
|
-
style=${
|
|
158
|
+
let i = this.getCalculatedDimension(e.dimension), o = this._getDescriptionTableCoach(e);
|
|
159
|
+
return a`<sbb-seat-reservation-scoped
|
|
160
|
+
style=${l({
|
|
162
161
|
"--sbb-seat-reservation-scoped-width": i.w,
|
|
163
162
|
"--sbb-seat-reservation-scoped-height": i.h
|
|
164
163
|
})}
|
|
@@ -176,7 +175,7 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
176
175
|
tabindex="-1"
|
|
177
176
|
>
|
|
178
177
|
<caption id="sbb-sr-coach-caption-${t}" tabindex="-1">
|
|
179
|
-
<span class="sbb-screen-reader-only">${
|
|
178
|
+
<span class="sbb-screen-reader-only">${o}</span>
|
|
180
179
|
</caption>
|
|
181
180
|
${this._getRenderedRowPlaces(e, t, n, r)}
|
|
182
181
|
</table>
|
|
@@ -184,11 +183,11 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
184
183
|
}
|
|
185
184
|
_getRenderedCoachBorders(e, t, n) {
|
|
186
185
|
if (!e.graphicElements) return null;
|
|
187
|
-
let r = this.seatReservationStructure.decks[t].deckCoaches[n], i = r.borderMiddleElement,
|
|
188
|
-
return
|
|
186
|
+
let r = this.seatReservationStructure.decks[t].deckCoaches[n], i = r.borderMiddleElement, o = r.hasOverhangingElements;
|
|
187
|
+
return a`
|
|
189
188
|
<sbb-seat-reservation-graphic
|
|
190
|
-
class="${
|
|
191
|
-
style=${
|
|
189
|
+
class="${u({ "sbb-sr-coach-has-overhanging-elements": o || !1 })}"
|
|
190
|
+
style=${l({
|
|
192
191
|
"--sbb-seat-reservation-graphic-width": i.dimension.w,
|
|
193
192
|
"--sbb-seat-reservation-graphic-height": i.dimension.h,
|
|
194
193
|
"--sbb-seat-reservation-graphic-top": i.position.y,
|
|
@@ -205,7 +204,7 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
205
204
|
if (!e.places) return null;
|
|
206
205
|
let i = {};
|
|
207
206
|
for (let t of e.places) i[t.position.y] ? i[t.position.y].push(t) : i[t.position.y] = [t];
|
|
208
|
-
return Object.values(i).map((e, i) =>
|
|
207
|
+
return Object.values(i).map((e, i) => a`
|
|
209
208
|
<tr id="row-${t}-${e[0].position.y}" data-row-index=${i}>
|
|
210
209
|
${this._getRenderedColumnPlaces(e, t, n, r)}
|
|
211
210
|
</tr>
|
|
@@ -214,22 +213,22 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
214
213
|
_getRenderedColumnPlaces(e, t, n, r) {
|
|
215
214
|
e.sort((e, t) => Number(e.position.x) - Number(t.position.x));
|
|
216
215
|
let i = t + "-" + r;
|
|
217
|
-
return
|
|
218
|
-
let
|
|
219
|
-
return
|
|
216
|
+
return a`${m(e, (e) => i + "-" + e.number, (e, i) => {
|
|
217
|
+
let o = this.getCalculatedDimension(e.dimension), s = this.getCalculatedPosition(e.position), c = e.rotation || 0, u = this.alignVertical ? -90 : 0, d = this.getPlaceElementId(n, t, e.number);
|
|
218
|
+
return a`
|
|
220
219
|
<td
|
|
221
220
|
id="cell-${n}-${t}-${e.position.y}-${i}"
|
|
222
221
|
class="graphical-element"
|
|
223
222
|
>
|
|
224
223
|
<sbb-seat-reservation-place-control
|
|
225
|
-
style=${
|
|
226
|
-
"--sbb-seat-reservation-place-control-text-scale-value": Math.min(
|
|
227
|
-
"--sbb-seat-reservation-place-control-width":
|
|
228
|
-
"--sbb-seat-reservation-place-control-height":
|
|
224
|
+
style=${l({
|
|
225
|
+
"--sbb-seat-reservation-place-control-text-scale-value": Math.min(o.w, o.h),
|
|
226
|
+
"--sbb-seat-reservation-place-control-width": o.w,
|
|
227
|
+
"--sbb-seat-reservation-place-control-height": o.h,
|
|
229
228
|
"--sbb-seat-reservation-place-control-top": s.y,
|
|
230
229
|
"--sbb-seat-reservation-place-control-left": s.x,
|
|
231
230
|
"--sbb-seat-reservation-place-control-rotation": c,
|
|
232
|
-
"--sbb-seat-reservation-place-control-text-rotation":
|
|
231
|
+
"--sbb-seat-reservation-place-control-text-rotation": u
|
|
233
232
|
})}
|
|
234
233
|
@selectplace=${(e) => this._onSelectPlace(e)}
|
|
235
234
|
exportparts="sbb-sr-place-part"
|
|
@@ -251,8 +250,8 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
251
250
|
})}`;
|
|
252
251
|
}
|
|
253
252
|
_getRenderedCoachElements(e, t) {
|
|
254
|
-
return this.seatReservationStructure.decks[e].deckCoaches[t].otherElements.map((e) =>
|
|
255
|
-
style=${
|
|
253
|
+
return this.seatReservationStructure.decks[e].deckCoaches[t].otherElements.map((e) => a` <sbb-seat-reservation-graphic
|
|
254
|
+
style=${l({
|
|
256
255
|
"--sbb-seat-reservation-graphic-width": e.dimension.w,
|
|
257
256
|
"--sbb-seat-reservation-graphic-height": e.dimension.h,
|
|
258
257
|
"--sbb-seat-reservation-graphic-top": e.position.y,
|
|
@@ -260,57 +259,57 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
260
259
|
"--sbb-seat-reservation-graphic-position": "absolute",
|
|
261
260
|
"--sbb-seat-reservation-graphic-rotation": e.rotation
|
|
262
261
|
})}
|
|
263
|
-
name=${e.icon ??
|
|
262
|
+
name=${e.icon ?? s}
|
|
264
263
|
aria-hidden="true"
|
|
265
264
|
?stretch=${!0}
|
|
266
265
|
></sbb-seat-reservation-graphic>`);
|
|
267
266
|
}
|
|
268
267
|
_getRenderedAreaElements(e, t) {
|
|
269
268
|
return this.seatReservationStructure.decks[e].deckCoaches[t].areaElements.map((n) => {
|
|
270
|
-
let r = `popover-trigger-${e}-${t}-${n.position.x}-${n.position.y}`, i = n.icon?.indexOf("TABLE") === -1,
|
|
271
|
-
return
|
|
269
|
+
let r = `popover-trigger-${e}-${t}-${n.position.x}-${n.position.y}`, i = n.icon?.indexOf("TABLE") === -1, o = n.icon && i ? n.icon : null, c = n.icon ? d(n.icon, this._language.current) : s;
|
|
270
|
+
return a`
|
|
272
271
|
<sbb-seat-reservation-area
|
|
273
272
|
id="${r}"
|
|
274
|
-
class="${
|
|
275
|
-
style=${
|
|
273
|
+
class="${u({ "sbb-seat-reservation-area--cursor-pointer": o !== null })}"
|
|
274
|
+
style=${l({
|
|
276
275
|
"--sbb-seat-reservation-area-width": n.dimension.w,
|
|
277
276
|
"--sbb-seat-reservation-area-height": n.dimension.h,
|
|
278
277
|
"--sbb-seat-reservation-area-top": n.position.y,
|
|
279
278
|
"--sbb-seat-reservation-area-left": n.position.x,
|
|
280
279
|
"--sbb-seat-reservation-area-z-index": n.position.z
|
|
281
280
|
})}
|
|
282
|
-
mounting=${n.mounting ??
|
|
281
|
+
mounting=${n.mounting ?? s}
|
|
283
282
|
background="dark"
|
|
284
283
|
aria-hidden="true"
|
|
285
284
|
>
|
|
286
|
-
${
|
|
285
|
+
${o ? a`
|
|
287
286
|
<sbb-seat-reservation-graphic
|
|
288
|
-
style=${
|
|
287
|
+
style=${l({
|
|
289
288
|
"--sbb-seat-reservation-graphic-max-width": this.globalAreaIconDim.w,
|
|
290
289
|
"--sbb-seat-reservation-graphic-max-height": this.globalAreaIconDim.h,
|
|
291
290
|
"--sbb-seat-reservation-graphic-width": n.dimension.w,
|
|
292
291
|
"--sbb-seat-reservation-graphic-height": n.dimension.h,
|
|
293
292
|
"--sbb-seat-reservation-graphic-rotation": n.rotation,
|
|
294
|
-
"--sbb-seat-reservation-graphic-padding-percent":
|
|
293
|
+
"--sbb-seat-reservation-graphic-padding-percent": o === "ENTRY_EXIT" ? 1 : this.globalAreaIconPadding
|
|
295
294
|
})}
|
|
296
|
-
name=${
|
|
295
|
+
name=${o}
|
|
297
296
|
role="img"
|
|
298
297
|
aria-hidden="true"
|
|
299
298
|
class="sbb-sr-graphic__dimension--square-dim"
|
|
300
299
|
></sbb-seat-reservation-graphic>
|
|
301
|
-
` :
|
|
300
|
+
` : s}
|
|
302
301
|
</sbb-seat-reservation-area>
|
|
303
|
-
${
|
|
302
|
+
${o ? this._popover(r, c) : s}
|
|
304
303
|
`;
|
|
305
304
|
});
|
|
306
305
|
}
|
|
307
306
|
_getRenderedServiceElements(e, t) {
|
|
308
307
|
return this.seatReservationStructure.decks[e].deckCoaches[t].serviceElements.map((n) => {
|
|
309
|
-
let r = `popover-trigger-${e}-${t}-${n.position.x}-${n.position.y}`, i = n.icon ?
|
|
310
|
-
return
|
|
308
|
+
let r = `popover-trigger-${e}-${t}-${n.position.x}-${n.position.y}`, i = n.icon ? d(n.icon, this._language.current) : null;
|
|
309
|
+
return a`
|
|
311
310
|
<sbb-seat-reservation-graphic
|
|
312
311
|
id="${r}"
|
|
313
|
-
style=${
|
|
312
|
+
style=${l({
|
|
314
313
|
"--sbb-seat-reservation-graphic-width": n.dimension.w,
|
|
315
314
|
"--sbb-seat-reservation-graphic-height": n.dimension.h,
|
|
316
315
|
"--sbb-seat-reservation-graphic-top": n.position.y,
|
|
@@ -319,7 +318,7 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
319
318
|
"--sbb-seat-reservation-graphic-rotation": n.rotation
|
|
320
319
|
})}
|
|
321
320
|
class="sbb-seat-reservation-graphic--cursor-pointer"
|
|
322
|
-
name=${n.icon ??
|
|
321
|
+
name=${n.icon ?? s}
|
|
323
322
|
role="img"
|
|
324
323
|
aria-hidden="true"
|
|
325
324
|
></sbb-seat-reservation-graphic>
|
|
@@ -339,7 +338,7 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
339
338
|
this.preventCoachScrollByPlaceClick ? this.focusPlaceElement(this.currSelectedPlace) : this.preselectPlaceInCoach(), this.isAutoScrolling = !1;
|
|
340
339
|
}
|
|
341
340
|
_popover(e, t) {
|
|
342
|
-
return
|
|
341
|
+
return a`
|
|
343
342
|
<sbb-popover trigger="${e}" hover-trigger="">
|
|
344
343
|
<p class="sbb-text-s sbb-sr-popover">${t}</p>
|
|
345
344
|
</sbb-popover>
|
|
@@ -349,24 +348,24 @@ var b = ":host{--sbb-seat-reservation-grid-size: 16px;--sbb-seat-reservation-hei
|
|
|
349
348
|
this.shadowRoot?.querySelectorAll("sbb-popover:is(:state(state-opened),[state--state-opened])").forEach((e) => e.close());
|
|
350
349
|
}
|
|
351
350
|
_getDescriptionTableCoach(e) {
|
|
352
|
-
if (e.type === "LOCOMOTIVE_COACH") return
|
|
353
|
-
if (!e.places?.length) return
|
|
351
|
+
if (e.type === "LOCOMOTIVE_COACH") return d("COACH_LOCOMOTIVE", this._language.current);
|
|
352
|
+
if (!e.places?.length) return d("COACH_BLOCKED_TABLE_CAPTION", this._language.current, [e.id]);
|
|
354
353
|
let t, n = this._getTitleDescriptionListString(e.graphicElements), r = this._getTitleDescriptionListString(e.serviceElements);
|
|
355
|
-
if (t =
|
|
356
|
-
let n = this.getAvailableFreePlacesNumFromCoach(e.places), r =
|
|
354
|
+
if (t = d("COACH_TABLE_CAPTION", this._language.current, [e.id]), !this.hasNavigation) {
|
|
355
|
+
let n = this.getAvailableFreePlacesNumFromCoach(e.places), r = d("COACH_AVAILABLE_NUMBER_OF_PLACES", this._language.current, [n.seats, n.bicycles]);
|
|
357
356
|
t = t.concat(". ").concat(r).concat(". ");
|
|
358
357
|
}
|
|
359
|
-
return (n || r) && (t += ". " +
|
|
358
|
+
return (n || r) && (t += ". " + d("COACH_AVAILABLE_SERVICES", this._language.current) + ": ", t += r + ", " + n + "."), t;
|
|
360
359
|
}
|
|
361
360
|
_getTitleDescriptionListString(e) {
|
|
362
361
|
let t = [];
|
|
363
362
|
return e?.map((e) => {
|
|
364
363
|
let n = e.icon;
|
|
365
364
|
if (!n) return null;
|
|
366
|
-
let r = t.indexOf(n) > -1, i =
|
|
365
|
+
let r = t.indexOf(n) > -1, i = d(e.icon, this._language.current), a = this.notFixedRotatableAreaIcons.indexOf(n) === -1 && this.notAreaElements.indexOf(n) === -1;
|
|
367
366
|
return r || t.push(e.icon), i && !r && a ? i : null;
|
|
368
367
|
}).filter((e) => !!e).join(", ");
|
|
369
368
|
}
|
|
370
369
|
};
|
|
371
370
|
//#endregion
|
|
372
|
-
export {
|
|
371
|
+
export { b as t };
|
package/seat-reservation.js
CHANGED
|
@@ -2,14 +2,14 @@ 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-
|
|
7
|
-
import { t as l } from "./seat-reservation-navigation-coach.component-
|
|
8
|
-
import { t as u } from "./seat-reservation-navigation-services.component-
|
|
9
|
-
import { t as d } from "./seat-reservation-place-control.component-
|
|
10
|
-
import { t as f } from "./seat-reservation-scoped.component-
|
|
5
|
+
import { t as s } from "./seat-reservation-area.component-BcmwKJSK.js";
|
|
6
|
+
import { t as c } from "./seat-reservation-graphic.component-C3wc4DKr.js";
|
|
7
|
+
import { t as l } from "./seat-reservation-navigation-coach.component-D1SgS8BU.js";
|
|
8
|
+
import { t as u } from "./seat-reservation-navigation-services.component-CfAQa7pa.js";
|
|
9
|
+
import { t as d } from "./seat-reservation-place-control.component-DrzEDW8Z.js";
|
|
10
|
+
import { t as f } from "./seat-reservation-scoped.component-BohQUGVW.js";
|
|
11
11
|
import { SeatReservationBaseElement as p } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
12
|
-
import { t as m } from "./seat-reservation.component-
|
|
12
|
+
import { t as m } from "./seat-reservation.component-CB2IWgM9.js";
|
|
13
13
|
import "./seat-reservation.pure.js";
|
|
14
14
|
m.define(), s.define(), c.define(), l.define(), u.define(), d.define(), f.define();
|
|
15
15
|
//#endregion
|
package/seat-reservation.pure.js
CHANGED
|
@@ -3,12 +3,12 @@ import { mapIconToSvg as i } from "./seat-reservation/common/mapper/icon-mapper.
|
|
|
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-
|
|
8
|
-
import { t as l } from "./seat-reservation-navigation-coach.component-
|
|
9
|
-
import { t as u } from "./seat-reservation-navigation-services.component-
|
|
10
|
-
import { t as d } from "./seat-reservation-place-control.component-
|
|
11
|
-
import { t as f } from "./seat-reservation-scoped.component-
|
|
6
|
+
import { t as s } from "./seat-reservation-area.component-BcmwKJSK.js";
|
|
7
|
+
import { t as c } from "./seat-reservation-graphic.component-C3wc4DKr.js";
|
|
8
|
+
import { t as l } from "./seat-reservation-navigation-coach.component-D1SgS8BU.js";
|
|
9
|
+
import { t as u } from "./seat-reservation-navigation-services.component-CfAQa7pa.js";
|
|
10
|
+
import { t as d } from "./seat-reservation-place-control.component-DrzEDW8Z.js";
|
|
11
|
+
import { t as f } from "./seat-reservation-scoped.component-BohQUGVW.js";
|
|
12
12
|
import { SeatReservationBaseElement as p } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
13
|
-
import { t as m } from "./seat-reservation.component-
|
|
13
|
+
import { t as m } from "./seat-reservation.component-CB2IWgM9.js";
|
|
14
14
|
export { s as SbbSeatReservationAreaElement, m as SbbSeatReservationElement, c as SbbSeatReservationGraphicElement, l as SbbSeatReservationNavigationCoachElement, u as SbbSeatReservationNavigationServicesElement, d as SbbSeatReservationPlaceControlElement, f as SbbSeatReservationScopedElement, p as SeatReservationBaseElement, o as getI18nSeatReservation, r as mapCoachInfosToCoachSelection, i as mapIconToSvg, t as mapPlaceAndCoachToSeatReservationPlaceSelection, n as mapPlaceInfosToPlaceSelection, e as mapRawDataToSeatReservation, 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-DPRcG1LP.js";
|
|
2
2
|
export { e as SbbTimetableDurationElement };
|
package/{timetable-duration.component-B2Wq8dP0.js → timetable-duration.component-DPRcG1LP.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { SbbElement as n, SbbLanguageController as r,
|
|
3
|
-
import { html as
|
|
4
|
-
import { property as
|
|
2
|
+
import { SbbElement as n, SbbLanguageController as r, forceType as i, i18nDurationHour as a, i18nDurationMinute as o, screenReaderOnlyStyles as s } from "@sbb-esta/lyne-elements/core.js";
|
|
3
|
+
import { html as c, unsafeCSS as l } from "lit";
|
|
4
|
+
import { property as u } from "lit/decorators.js";
|
|
5
5
|
//#region src/elements-experimental/timetable-duration/timetable-duration.scss?inline
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
return class extends
|
|
6
|
+
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}", f = (() => {
|
|
7
|
+
let f = n, p, m = [], h = [];
|
|
8
|
+
return class extends f {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(...arguments), this.#e = t(this,
|
|
10
|
+
super(...arguments), this.#e = t(this, m, ""), this._language = (t(this, h), new r(this));
|
|
11
11
|
}
|
|
12
12
|
static {
|
|
13
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
14
|
-
|
|
13
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
14
|
+
p = [i(), u()], e(this, null, p, {
|
|
15
15
|
kind: "accessor",
|
|
16
16
|
name: "config",
|
|
17
17
|
static: !1,
|
|
@@ -24,7 +24,7 @@ var f = ":host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-te
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
metadata: t
|
|
27
|
-
},
|
|
27
|
+
}, m, h), t && Object.defineProperty(this, Symbol.metadata, {
|
|
28
28
|
enumerable: !0,
|
|
29
29
|
configurable: !0,
|
|
30
30
|
writable: !0,
|
|
@@ -35,11 +35,7 @@ var f = ":host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-te
|
|
|
35
35
|
this.elementName = "sbb-timetable-duration";
|
|
36
36
|
}
|
|
37
37
|
static {
|
|
38
|
-
this.styles = [
|
|
39
|
-
i,
|
|
40
|
-
c,
|
|
41
|
-
u(f)
|
|
42
|
-
];
|
|
38
|
+
this.styles = [s, l(d)];
|
|
43
39
|
}
|
|
44
40
|
#e;
|
|
45
41
|
get config() {
|
|
@@ -49,8 +45,8 @@ var f = ":host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-te
|
|
|
49
45
|
this.#e = e;
|
|
50
46
|
}
|
|
51
47
|
render() {
|
|
52
|
-
let e = JSON.parse(this.config), t =
|
|
53
|
-
return e.hours === 1 && (
|
|
48
|
+
let e = JSON.parse(this.config), t = a.multiple.short[this._language.current], n = o.multiple.short[this._language.current], r = "", i = "", s = a.multiple.long[this._language.current], l = o.multiple.long[this._language.current];
|
|
49
|
+
return e.hours === 1 && (s = a.single.long[this._language.current]), e.minutes === 1 && (l = o.single.long[this._language.current]), e.hours !== 0 && (r += `${e.hours} ${t}`, i += `${e.hours} ${s}`), r += ` ${e.minutes} ${n}`, i += ` ${e.minutes} ${l}.`, c`
|
|
54
50
|
<p aria-label=${i} class="duration" role="text">
|
|
55
51
|
<span aria-hidden="true" class="duration__text--visual" role="presentation">
|
|
56
52
|
${r}
|
|
@@ -62,4 +58,4 @@ var f = ":host{display:inline-block}.duration{--sbb-text-font-size: var(--sbb-te
|
|
|
62
58
|
};
|
|
63
59
|
})();
|
|
64
60
|
//#endregion
|
|
65
|
-
export {
|
|
61
|
+
export { f as t };
|
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-DPRcG1LP.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-BqIVlISS.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 };
|