@sbb-esta/lyne-elements-experimental 4.13.0 → 4.13.1
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-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.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/core/datetime/date-helper.js +1 -1
- package/core/datetime.js +1 -1
- package/custom-elements.json +0 -9
- package/{date-helper-CGproP5d.js → date-helper-NgYaHPR7.js} +3 -3
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid.js +1 -1
- package/development/{autocomplete-grid-cell.component-BxkWGaX0.js → autocomplete-grid-cell.component-CTC6s1q3.js} +1 -1
- package/development/{autocomplete-grid-option.component-5mPGswUO.js → autocomplete-grid-option.component-DqkLWHcg.js} +1 -1
- package/development/{autocomplete-grid-row.component-DEm6zyHZ.js → autocomplete-grid-row.component-CvF3ZWDZ.js} +1 -1
- package/development/autocomplete-grid.js +4 -4
- 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/core/timetable/access-leg-helper.js +1 -1
- package/development/core/timetable/timetable-helper.js +1 -1
- package/development/date-helper-QhWjANc3.js +539 -0
- package/development/{differenceInMinutes-B7_GTDq7.js → differenceInMinutes-CxAbGYQ3.js} +2 -2
- package/development/{format-DFx4997p.js → format-Cx3zmmaF.js} +3 -3
- package/development/{isValid-JpZ7FphI.js → isValid-40Olgzo1.js} +2 -2
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/{journey-summary.component-BZwgD4im.js → journey-summary.component-BTaPGCGZ.js} +3 -3
- package/development/journey-summary.js +2 -2
- package/development/journey-summary.pure.js +1 -1
- package/development/{mapper-hWWm7Uke.js → mapper-BrZOqqfe.js} +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/{pearl-chain-time.component-B2_BI6E_.js → pearl-chain-time.component-BMHLITah.js} +2 -2
- package/development/pearl-chain-time.js +2 -2
- package/development/pearl-chain-time.pure.js +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.js +1 -1
- package/development/{pearl-chain-vertical-item.component-D4clzjjQ.js → pearl-chain-vertical-item.component-JYDWs8ta.js} +1 -1
- package/development/pearl-chain-vertical-item.js +2 -2
- package/development/pearl-chain-vertical-item.pure.js +1 -1
- package/development/{pearl-chain-vertical.component-CpcNFl-x.js → pearl-chain-vertical.component-YYXS_74c.js} +1 -1
- package/development/pearl-chain-vertical.js +2 -2
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/{pearl-chain.component-oQZUzsyW.js → pearl-chain.component-DUAGFkcu.js} +12 -6
- package/development/pearl-chain.js +2 -2
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +1 -1
- package/development/seat-reservation/common/mapper.js +1 -1
- package/development/seat-reservation/common/svgs.js +1 -1
- package/development/seat-reservation/common/translations/i18n.js +1 -1
- package/development/seat-reservation/common.js +3 -3
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +8 -8
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area.js +2 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +2 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +0 -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 +2 -2
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/development/seat-reservation/seat-reservation-scoped.js +2 -2
- package/development/seat-reservation/seat-reservation.js +2 -2
- package/development/{seat-reservation-area.component-BWdrKqek.js → seat-reservation-area.component-dG1GXJQP.js} +1 -1
- package/development/{seat-reservation-graphic.component-CN5sWn0I.js → seat-reservation-graphic.component-BmhZpVL0.js} +1 -1
- package/development/{seat-reservation-navigation-coach.component-tDZkXl-3.js → seat-reservation-navigation-coach.component-Be9CBw62.js} +1 -1
- package/development/{seat-reservation-navigation-services.component-CGel7__P.js → seat-reservation-navigation-services.component-B2uWa_VN.js} +1 -1
- package/development/{seat-reservation-place-control.component-CM9efId7.js → seat-reservation-place-control.component-CdL6yPUZ.js} +21 -26
- package/development/{seat-reservation-scoped.component-CFA_bJ3o.js → seat-reservation-scoped.component-CJCkuKGz.js} +1 -1
- package/development/{seat-reservation.component-44IHFFlM.js → seat-reservation.component-B4BxXyLr.js} +1 -1
- package/development/seat-reservation.js +10 -10
- package/development/seat-reservation.pure.js +9 -9
- package/development/{svgs-kDpBCto5.js → svgs-Dj-RKmRs.js} +1 -1
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/{timetable-duration.component-BhFlqYbV.js → timetable-duration.component-CXF0oJbO.js} +1 -1
- package/development/timetable-duration.js +2 -2
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/{timetable-row.component-Dko8laRT.js → timetable-row.component-BCufuA05.js} +3 -3
- package/development/timetable-row.js +2 -2
- package/development/timetable-row.pure.js +1 -1
- package/development/{toDate-DOFAOjP-.js → toDate-CDWut5fS.js} +1 -1
- package/{differenceInMinutes-Dr9gRqtu.js → differenceInMinutes-BAZ-Fham.js} +1 -1
- package/{format-DbUuNYFU.js → format-DjgG1QPc.js} +2 -2
- package/{isValid-B9oVW3lA.js → isValid-CXnsFZVu.js} +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-OFYXlkzg.js → journey-summary.component-DyTUTCOU.js} +2 -2
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/package.json +3 -3
- 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-CNKsGfIp.js → pearl-chain-time.component-DXe2o6S1.js} +1 -1
- 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.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-CpISVoAu.js → pearl-chain.component-CPaCcW_1.js} +2 -2
- 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/svgs.js +1 -1
- package/seat-reservation/common.js +2 -2
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +4 -4
- 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-place-control.component-CE7d9M2b.js → seat-reservation-place-control.component-kx07J_YK.js} +14 -21
- package/seat-reservation.js +9 -9
- package/seat-reservation.pure.js +9 -9
- package/timetable-duration/timetable-duration.component.js +1 -1
- 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-Cd_7Pu_E.js → timetable-row.component-a5CWXLAQ.js} +2 -2
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/development/date-helper-qNdwgC9O.js +0 -520
- /package/{autocomplete-grid-cell.component-DkD9aFKc.js → autocomplete-grid-cell.component-D-Kk9HwQ.js} +0 -0
- /package/{autocomplete-grid-option.component-CtATJy7n.js → autocomplete-grid-option.component-qBUSf0mD.js} +0 -0
- /package/{autocomplete-grid-row.component-6nJv5PMj.js → autocomplete-grid-row.component-57jjeZWF.js} +0 -0
- /package/{mapper-Cqie5ivY.js → mapper-Dcou8VEf.js} +0 -0
- /package/{pearl-chain-vertical-item.component-CGYNzFlK.js → pearl-chain-vertical-item.component-Bby13csG.js} +0 -0
- /package/{pearl-chain-vertical.component-Df9CvRxo.js → pearl-chain-vertical.component-0EgQ4knk.js} +0 -0
- /package/{seat-reservation-area.component-B5_N7H_a.js → seat-reservation-area.component-DZsXvaMQ.js} +0 -0
- /package/{seat-reservation-graphic.component-Dh1e2Pve.js → seat-reservation-graphic.component-BnJuHVZQ.js} +0 -0
- /package/{seat-reservation-navigation-coach.component-BdCUfksf.js → seat-reservation-navigation-coach.component-DgdpqMzG.js} +0 -0
- /package/{seat-reservation-navigation-services.component-C9dDYD_M.js → seat-reservation-navigation-services.component-6ECATtWB.js} +0 -0
- /package/{seat-reservation-scoped.component-DVyP2JGE.js → seat-reservation-scoped.component-L1wMt65t.js} +0 -0
- /package/{seat-reservation.component-CtEqqosF.js → seat-reservation.component-B_T6eTf6.js} +0 -0
- /package/{svgs-D5DhLHxC.js → svgs-D4fuYTHV.js} +0 -0
- /package/{timetable-duration.component-BnJA8wSb.js → timetable-duration.component-Bqo5N_De.js} +0 -0
- /package/{toDate-p-Tpkb7t.js → toDate-BhNUyM4s.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./toDate-
|
|
2
|
-
import { r as t, t as n } from "./differenceInMinutes-
|
|
1
|
+
import { t as e } from "./toDate-BhNUyM4s.js";
|
|
2
|
+
import { r as t, t as n } from "./differenceInMinutes-BAZ-Fham.js";
|
|
3
3
|
import { __esDecorate as r, __runInitializers as i } from "tslib";
|
|
4
4
|
import { SbbElement as a } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
5
5
|
import { forceType as o } from "@sbb-esta/lyne-elements/core/decorators.js";
|
package/pearl-chain.js
CHANGED
package/pearl-chain.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain.component-
|
|
1
|
+
import { t as e } from "./pearl-chain.component-CPaCcW_1.js";
|
|
2
2
|
export { e as SbbPearlChainElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
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-Dcou8VEf.js";
|
|
2
2
|
export { r as mapCoachInfosToCoachSelection, t as mapPlaceAndCoachToSeatReservationPlaceSelection, n as mapPlaceInfosToPlaceSelection, e as mapRawDataToSeatReservation };
|
|
@@ -1,3 +1,3 @@
|
|
|
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-Dcou8VEf.js";
|
|
2
2
|
import { mapIconToSvg as i } from "./mapper/icon-mapper.js";
|
|
3
3
|
export { r as mapCoachInfosToCoachSelection, i as mapIconToSvg, t as mapPlaceAndCoachToSeatReservationPlaceSelection, n as mapPlaceInfosToPlaceSelection, e as mapRawDataToSeatReservation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../svgs-
|
|
1
|
+
import { t as e } from "../../svgs-D4fuYTHV.js";
|
|
2
2
|
export { e as svgs };
|
|
@@ -1,7 +1,7 @@
|
|
|
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-Dcou8VEf.js";
|
|
2
2
|
import { mapIconToSvg as i } from "./common/mapper/icon-mapper.js";
|
|
3
3
|
import "./common/mapper.js";
|
|
4
|
-
import { t as a } from "../svgs-
|
|
4
|
+
import { t as a } from "../svgs-D4fuYTHV.js";
|
|
5
5
|
import { getI18nSeatReservation as o } from "./common/translations/i18n.js";
|
|
6
6
|
//#region src/elements-experimental/seat-reservation/common.ts
|
|
7
7
|
console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/common.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
@@ -818,7 +818,7 @@ var ne = 3, re = [
|
|
|
818
818
|
deckCoaches: []
|
|
819
819
|
};
|
|
820
820
|
e?.coachItems?.forEach((e) => {
|
|
821
|
-
let t = (e.graphicElements?.filter((e) => e.icon && !this.notAreaElements.includes(e.icon)))?.concat(e.serviceElements || []).concat(e.places || []) || [], r = this._isOverhangingElementsPresent(e.dimension.w, t), i = e.graphicElements?.filter((e) => !this.notAreaElements.includes(e.icon)).map((t) => this._getCalculatedDimensionPositionElement(t, e.dimension, !0)), a = e.graphicElements?.filter((e) => this.notAreaElements.includes(e.icon)).map((t) => this._getCalculatedDimensionPositionElement(t, e.dimension, !1)), o = e.serviceElements?.map((t) => this._getCalculatedDimensionPositionElement(t, e.dimension, !
|
|
821
|
+
let t = (e.graphicElements?.filter((e) => e.icon && !this.notAreaElements.includes(e.icon)))?.concat(e.serviceElements || []).concat(e.places || []) || [], r = this._isOverhangingElementsPresent(e.dimension.w, t), i = e.graphicElements?.filter((e) => !this.notAreaElements.includes(e.icon)).map((t) => this._getCalculatedDimensionPositionElement(t, e.dimension, !0)), a = e.graphicElements?.filter((e) => this.notAreaElements.includes(e.icon)).map((t) => this._getCalculatedDimensionPositionElement(t, e.dimension, !1)), o = e.serviceElements?.map((t) => this._getCalculatedDimensionPositionElement(t, e.dimension, !0)), s = this._getCalculatedMiddleBorderElement(e), c = this.getCalculatedDimension({ ...e.dimension }), l = {
|
|
822
822
|
width: c.w,
|
|
823
823
|
height: c.h,
|
|
824
824
|
otherElements: a || [],
|
|
@@ -846,12 +846,12 @@ var ne = 3, re = [
|
|
|
846
846
|
let i = this.coachBorderPadding * -1;
|
|
847
847
|
return {
|
|
848
848
|
position: {
|
|
849
|
-
x: n * this.baseGridSize,
|
|
849
|
+
x: Math.floor(n * this.baseGridSize) - 1,
|
|
850
850
|
y: i,
|
|
851
851
|
z: 0
|
|
852
852
|
},
|
|
853
853
|
dimension: {
|
|
854
|
-
w: r * this.baseGridSize,
|
|
854
|
+
w: Math.floor(r * this.baseGridSize) + 2,
|
|
855
855
|
h: t
|
|
856
856
|
}
|
|
857
857
|
};
|
|
@@ -869,7 +869,7 @@ var ne = 3, re = [
|
|
|
869
869
|
let n = e.icon?.indexOf("TABLE") === -1, a = e.icon && n ? e.icon : null, o = this.isElementDirectlyOnBorder(e, t) && a !== "ENTRY_EXIT";
|
|
870
870
|
e.position.y === 0 ? (c = "upper-border", i.y -= this.coachBorderOffset - this.coachBorderOffset / 3) : e.position.y + e.dimension.h === t.h && (c = "lower-border", o || (i.y += this.coachBorderOffset - this.coachBorderOffset / 3)), o && (r.h += this.coachBorderOffset - this.coachBorderOffset / 3);
|
|
871
871
|
} else e.position.y === 0 && (i.y -= this.coachBorderOffset), t.h === e.position.y + e.dimension.h && (r.h += this.coachBorderOffset * 2);
|
|
872
|
-
return r.w = Math.
|
|
872
|
+
return r.w = Math.floor(r.w * this.baseGridSize), r.h = Math.floor(r.h * this.baseGridSize), i.x = Math.floor(i.x * this.baseGridSize), i.y = Math.floor(i.y * this.baseGridSize), {
|
|
873
873
|
icon: e.icon && e.icon.endsWith("DRIVER_AREA") ? e.icon?.concat("_", this.seatReservations[this.currSelectedDeckIndex].vehicleType) : e.icon,
|
|
874
874
|
rotation: s,
|
|
875
875
|
dimension: r,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation.component-B_T6eTf6.js";
|
|
2
2
|
export { e as SbbSeatReservationElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-area.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-area.component-DZsXvaMQ.js";
|
|
2
2
|
export { e as SbbSeatReservationAreaElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../seat-reservation-area.component-
|
|
1
|
+
import { t as e } from "../seat-reservation-area.component-DZsXvaMQ.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-area.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbSeatReservationAreaElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-graphic.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-graphic.component-BnJuHVZQ.js";
|
|
2
2
|
import { html as t } from "lit";
|
|
3
3
|
import { unsafeHTML as n } from "lit/directives/unsafe-html.js";
|
|
4
4
|
import { mapIconToSvg as r } from "../common/mapper.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-graphic.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-graphic.component-BnJuHVZQ.js";
|
|
2
2
|
export { e as SbbSeatReservationGraphicElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../seat-reservation-graphic.component-
|
|
1
|
+
import { t as e } from "../seat-reservation-graphic.component-BnJuHVZQ.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-graphic.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbSeatReservationGraphicElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-navigation-coach.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-navigation-coach.component-DgdpqMzG.js";
|
|
2
2
|
export { e as SbbSeatReservationNavigationCoachElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../seat-reservation-navigation-coach.component-
|
|
1
|
+
import { t as e } from "../seat-reservation-navigation-coach.component-DgdpqMzG.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-navigation-coach.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbSeatReservationNavigationCoachElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-navigation-services.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-navigation-services.component-6ECATtWB.js";
|
|
2
2
|
export { e as SbbSeatReservationNavigationServicesElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../seat-reservation-navigation-services.component-
|
|
1
|
+
import { t as e } from "../seat-reservation-navigation-services.component-6ECATtWB.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-navigation-services.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbSeatReservationNavigationServicesElement };
|
package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-place-control.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-place-control.component-kx07J_YK.js";
|
|
2
2
|
export { e as SbbSeatReservationPlaceControlElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../seat-reservation-place-control.component-
|
|
1
|
+
import { t as e } from "../seat-reservation-place-control.component-kx07J_YK.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-place-control.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbSeatReservationPlaceControlElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-scoped.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-scoped.component-L1wMt65t.js";
|
|
2
2
|
export { e as SbbSeatReservationScopedElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../seat-reservation-scoped.component-
|
|
1
|
+
import { t as e } from "../seat-reservation-scoped.component-L1wMt65t.js";
|
|
2
2
|
e.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation-scoped.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as SbbSeatReservationScopedElement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SeatReservationBaseElement as e } from "./seat-reservation/seat-reservation-base-element.js";
|
|
2
|
-
import { t } from "../seat-reservation.component-
|
|
2
|
+
import { t } from "../seat-reservation.component-B_T6eTf6.js";
|
|
3
3
|
t.define(), console.warn("The entrypoint '@sbb-esta/elements-experimental/seat-reservation/seat-reservation.js' has been deprecated.\nUse either '@sbb-esta/elements-experimental/seat-reservation.js' or '@sbb-esta/elements-experimental/seat-reservation.pure.js' instead.");
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t as SbbSeatReservationElement, e as SeatReservationBaseElement };
|
|
@@ -253,36 +253,29 @@ var m = (() => {
|
|
|
253
253
|
this.#l = e;
|
|
254
254
|
}
|
|
255
255
|
constructor() {
|
|
256
|
-
super(), this.#e = t(this, h, "SEAT"), this.#t = (t(this, g), t(this, v, "FREE")), this.#n = (t(this, y), t(this, x, "NONE")), this.#r = (t(this, S), t(this, w, [])), this.#i = (t(this, T), t(this, D, "")), this.#a = (t(this, O), t(this, A, null)), this.#o = (t(this, j), t(this, N, null)), this.#s = (t(this, P), t(this, I, !1)), this.#c = (t(this, L), t(this, z, "unfocus")), this.#l = (t(this, B), t(this, H, !1)), this.
|
|
256
|
+
super(), this.#e = t(this, h, "SEAT"), this.#t = (t(this, g), t(this, v, "FREE")), this.#n = (t(this, y), t(this, x, "NONE")), this.#r = (t(this, S), t(this, w, [])), this.#i = (t(this, T), t(this, D, "")), this.#a = (t(this, O), t(this, A, null)), this.#o = (t(this, j), t(this, N, null)), this.#s = (t(this, P), t(this, I, !1)), this.#c = (t(this, L), t(this, z, "unfocus")), this.#l = (t(this, B), t(this, H, !1)), this._language = (t(this, U), new r(this)), this.addEventListener("click", () => this._selectPlace());
|
|
257
257
|
}
|
|
258
258
|
willUpdate(e) {
|
|
259
|
-
super.willUpdate(e), e.has("keyfocus") && this.keyfocus === "focus" && this.focus()
|
|
259
|
+
super.willUpdate(e), e.has("keyfocus") && this.keyfocus === "focus" && this.focus();
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
|
-
let e = this._getPlaceSvg(this.placeType, this.state), t = this.type.toLowerCase(), n = this.state.toLowerCase(), r = this.text, i = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-width"), a = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-height"), c = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-rotation"), l = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-text-rotation"), d = Number(l) - Number(c), f = this.preventClick ? "sbb-reservation-place-control--disabled" : null;
|
|
263
|
-
return this.showTitleInfo ? this.title = this.
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
let e = this._getPlaceSvg(this.placeType, this.state), t = this.type.toLowerCase(), n = this.state.toLowerCase(), r = this.text, i = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-width"), a = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-height"), c = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-rotation"), l = this.style?.getPropertyValue("--sbb-seat-reservation-place-control-text-rotation"), d = Number(l) - Number(c), f = this.preventClick ? "sbb-reservation-place-control--disabled" : null, p = this._getTitleDescriptionPlace(c);
|
|
263
|
+
return this.showTitleInfo ? (this.title = p, this.internals.ariaLabel = null) : (this.internals.ariaLabel = p, this.removeAttribute("title")), this.tabIndex = -1, o` <div
|
|
264
|
+
part="sbb-sr-place-part"
|
|
265
|
+
class="sbb-sr-place-ctrl sbb-sr-place-ctrl--orientation-${c} sbb-sr-place-ctrl--state-${n} sbb-sr-place-ctrl--type-${t} ${f}"
|
|
266
|
+
aria-hidden="true"
|
|
267
|
+
>
|
|
268
|
+
<sbb-seat-reservation-graphic
|
|
269
|
+
style=${u({
|
|
270
270
|
"--sbb-seat-reservation-graphic-width": i,
|
|
271
271
|
"--sbb-seat-reservation-graphic-height": a,
|
|
272
272
|
"--sbb-seat-reservation-graphic-rotation": c,
|
|
273
273
|
"--sbb-seat-reservation-graphic-inverse-rotation": d
|
|
274
274
|
})}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
>${r}</span
|
|
280
|
-
>
|
|
281
|
-
${this.showTitleInfo ? s : o`<sbb-screen-reader-only id="${this.id}"
|
|
282
|
-
>${this._optionalScreenreaderInfo}</sbb-screen-reader-only
|
|
283
|
-
>`}
|
|
284
|
-
</div>
|
|
285
|
-
`;
|
|
275
|
+
.name=${e}
|
|
276
|
+
></sbb-seat-reservation-graphic>
|
|
277
|
+
<span ${this.text ?? s} class="sbb-sr-place-ctrl__text">${r} </span>
|
|
278
|
+
</div>`;
|
|
286
279
|
}
|
|
287
280
|
_getPlaceSvg(e, t) {
|
|
288
281
|
return `PLACE_${e}_${t}`;
|
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-Dcou8VEf.js";
|
|
2
2
|
import { mapIconToSvg as i } from "./seat-reservation/common/mapper/icon-mapper.js";
|
|
3
|
-
import { t as a } from "./svgs-
|
|
3
|
+
import { t as a } from "./svgs-D4fuYTHV.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-DZsXvaMQ.js";
|
|
6
|
+
import { t as c } from "./seat-reservation-graphic.component-BnJuHVZQ.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-DgdpqMzG.js";
|
|
9
|
+
import { t as f } from "./seat-reservation-navigation-services.component-6ECATtWB.js";
|
|
10
|
+
import { t as p } from "./seat-reservation-place-control.component-kx07J_YK.js";
|
|
11
|
+
import { t as m } from "./seat-reservation-scoped.component-L1wMt65t.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-B_T6eTf6.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-Dcou8VEf.js";
|
|
2
2
|
import { mapIconToSvg as i } from "./seat-reservation/common/mapper/icon-mapper.js";
|
|
3
3
|
import "./seat-reservation/common/mapper.js";
|
|
4
|
-
import { t as a } from "./svgs-
|
|
4
|
+
import { t as a } from "./svgs-D4fuYTHV.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-DZsXvaMQ.js";
|
|
7
|
+
import { t as c } from "./seat-reservation-graphic.component-BnJuHVZQ.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-DgdpqMzG.js";
|
|
10
|
+
import { t as f } from "./seat-reservation-navigation-services.component-6ECATtWB.js";
|
|
11
|
+
import { t as p } from "./seat-reservation-place-control.component-kx07J_YK.js";
|
|
12
|
+
import { t as m } from "./seat-reservation-scoped.component-L1wMt65t.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-B_T6eTf6.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-Bqo5N_De.js";
|
|
2
2
|
export { e as SbbTimetableDurationElement };
|
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-Bqo5N_De.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-a5CWXLAQ.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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./format-
|
|
1
|
+
import { t as e } from "./format-DjgG1QPc.js";
|
|
2
2
|
import { __esDecorate as t, __runInitializers as n } from "tslib";
|
|
3
3
|
import { SbbElement as r } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
4
4
|
import { SbbLanguageController as i } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
@@ -37,7 +37,7 @@ var k = ":host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timeta
|
|
|
37
37
|
CONSTRUCTION_SITE: 4,
|
|
38
38
|
END_MESSAGE: 5
|
|
39
39
|
};
|
|
40
|
-
return [...e]
|
|
40
|
+
return [...e].sort((e, n) => t[e.cause] - t[n.cause]);
|
|
41
41
|
}, L = (e) => {
|
|
42
42
|
switch (e?.cause) {
|
|
43
43
|
case "DISTURBANCE": return {
|
package/timetable-row.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-a5CWXLAQ.js";
|
|
2
2
|
import "./timetable-row.pure.js";
|
|
3
3
|
//#region src/elements-experimental/timetable-row.ts
|
|
4
4
|
s.define();
|
package/timetable-row.pure.js
CHANGED
|
@@ -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-a5CWXLAQ.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 };
|