@sbb-esta/lyne-elements-experimental 2.11.0 → 2.11.2
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/core/datetime/date-helper.js +142 -142
- package/core/timetable/access-leg-helper.js +49 -52
- package/core/timetable/timetable-helper.js +7 -8
- package/custom-elements.json +106 -35
- package/development/core/datetime/date-helper.js +10 -10
- package/development/core/timetable/access-leg-helper.js +12 -15
- package/development/core/timetable/timetable-helper.js +6 -7
- package/development/{differenceInMinutes-CHSyWiQs.js → differenceInMinutes-D5Nj8Stc.js} +3 -3
- package/development/{format-D0-yhzi4.js → format-BQfaa1ZT.js} +22 -26
- package/development/{isValid-Bo4R7iA7.js → isValid-DvieCZVi.js} +3 -3
- package/development/journey-summary/journey-summary.component.js +4 -5
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +28 -39
- package/development/pearl-chain-time/pearl-chain-time.component.js +5 -6
- 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/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/mapper/mapper.d.ts +5 -5
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +17 -19
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +1 -1
- package/development/seat-reservation/common/svgs.js +1 -1
- package/development/seat-reservation/common/translations/i18n.js +2 -3
- package/development/seat-reservation/common/types.d.ts +71 -0
- package/development/seat-reservation/common/types.d.ts.map +1 -0
- package/development/seat-reservation/common/types.js +2 -0
- package/development/seat-reservation/common.d.ts +6 -3
- package/development/seat-reservation/common.d.ts.map +1 -1
- package/development/seat-reservation/common.js +3 -7
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +4 -3
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +27 -38
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/{seat-reservation-scoped-component → seat-reservation-scoped}/seat-reservation-scoped.component.js +6 -7
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts +5 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped.js +5 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +4 -4
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +20 -27
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area.d.ts +3 -0
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +2 -3
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +7 -8
- package/development/seat-reservation/seat-reservation-graphic.d.ts +3 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +6 -5
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +7 -11
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +3 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -3
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +3 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation.d.ts +6 -0
- package/development/seat-reservation/seat-reservation-navigation.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation.js +7 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -2
- 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 +5 -6
- package/development/seat-reservation/seat-reservation-place-control.d.ts +3 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation.d.ts +5 -71
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation.js +4 -2
- package/development/seat-reservation.d.ts +5 -0
- package/development/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation.js +26 -3
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-row/timetable-row.component.js +58 -89
- package/differenceInMinutes-CP_C5onR.js +23 -0
- package/{format-Dg8rkk7h.js → format-lqeCzmzS.js} +438 -442
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/isValid-Ceq2O0NQ.js +45 -0
- package/journey-summary/journey-summary.component.js +3 -4
- package/package.json +47 -2
- package/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/pearl-chain/pearl-chain.component.js +78 -95
- package/pearl-chain-time/pearl-chain-time.component.js +44 -45
- package/seat-reservation/common/mapper/mapper.d.ts +5 -5
- package/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
- package/seat-reservation/common/mapper/mapper.js +50 -54
- package/seat-reservation/common/translations/i18n.js +5 -6
- package/seat-reservation/common/types.d.ts +71 -0
- package/seat-reservation/common/types.d.ts.map +1 -0
- package/seat-reservation/common/types.js +1 -0
- package/seat-reservation/common.d.ts +6 -3
- package/seat-reservation/common.d.ts.map +1 -1
- package/seat-reservation/common.js +11 -15
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +4 -3
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +107 -118
- package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/{seat-reservation-scoped-component → seat-reservation-scoped}/seat-reservation-scoped.component.js +40 -41
- package/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts +5 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/{seat-reservation-scoped-component.js → seat-reservation-scoped.js} +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +4 -4
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +82 -91
- package/seat-reservation/seat-reservation-area.d.ts +3 -0
- package/seat-reservation/seat-reservation-area.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +15 -18
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +58 -59
- package/seat-reservation/seat-reservation-graphic.d.ts +3 -0
- package/seat-reservation/seat-reservation-graphic.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +6 -5
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +71 -75
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +3 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +12 -13
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +3 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-navigation.d.ts +6 -0
- package/seat-reservation/seat-reservation-navigation.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation.js +6 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -2
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +24 -25
- package/seat-reservation/seat-reservation-place-control.d.ts +3 -0
- package/seat-reservation/seat-reservation-place-control.d.ts.map +1 -1
- package/seat-reservation/seat-reservation.d.ts +5 -71
- package/seat-reservation/seat-reservation.d.ts.map +1 -1
- package/seat-reservation/seat-reservation.js +6 -4
- package/seat-reservation.d.ts +5 -0
- package/seat-reservation.d.ts.map +1 -1
- package/seat-reservation.js +27 -4
- package/timetable-row/timetable-row.component.js +207 -247
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +0 -2
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +0 -5
- package/differenceInMinutes-BMqUZdhj.js +0 -23
- package/isValid-DJ69OMZJ.js +0 -45
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +0 -1
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +0 -2
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +0 -1
- /package/development/seat-reservation/seat-reservation/{seat-reservation-scoped-component → seat-reservation-scoped}/seat-reservation-scoped.component.d.ts +0 -0
- /package/seat-reservation/seat-reservation/{seat-reservation-scoped-component → seat-reservation-scoped}/seat-reservation-scoped.component.d.ts +0 -0
|
@@ -14,9 +14,9 @@ import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
|
14
14
|
import "../../seat-reservation-graphic.js";
|
|
15
15
|
const O = A`*,:before,:after{box-sizing:border-box}.sbb-sr-navigation__signs{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--sbb-spacing-fixed-2x);color:var(--sbb-color-granite)}.sbb-sr-navigation__signs--vertical{align-content:center;height:100%}`;
|
|
16
16
|
let J = (() => {
|
|
17
|
-
var o, c,
|
|
17
|
+
var o, c, l;
|
|
18
18
|
let e = [C("sbb-seat-reservation-navigation-services")], s, a = [], i, u = j, v, h = [], y = [], f, I = [], S = [];
|
|
19
|
-
return
|
|
19
|
+
return l = class extends u {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
d(this, o);
|
|
@@ -38,7 +38,6 @@ let J = (() => {
|
|
|
38
38
|
p(this, c, r);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
var t;
|
|
42
41
|
const r = this.propertyIds.length ? this._getServiceLabelDescription() : null;
|
|
43
42
|
return E` <div
|
|
44
43
|
class="${k({
|
|
@@ -49,12 +48,12 @@ let J = (() => {
|
|
|
49
48
|
<sbb-screen-reader-only ${r || z}
|
|
50
49
|
>${r}</sbb-screen-reader-only
|
|
51
50
|
>
|
|
52
|
-
${
|
|
51
|
+
${this.propertyIds?.map((t) => E`
|
|
53
52
|
<sbb-seat-reservation-graphic
|
|
54
|
-
name=${
|
|
53
|
+
name=${t ?? z}
|
|
55
54
|
width="20"
|
|
56
55
|
height="20"
|
|
57
|
-
title=${m(
|
|
56
|
+
title=${m(t, this._language.current)}
|
|
58
57
|
aria-hidden="true"
|
|
59
58
|
></sbb-seat-reservation-graphic>
|
|
60
59
|
`)}
|
|
@@ -63,17 +62,17 @@ let J = (() => {
|
|
|
63
62
|
//Generate the translated service label from the available properties
|
|
64
63
|
_getServiceLabelDescription() {
|
|
65
64
|
let r = null;
|
|
66
|
-
const t = this.propertyIds.map((
|
|
65
|
+
const t = this.propertyIds.map((n) => m(n, this._language.current)).filter((n) => !!n).join(", ");
|
|
67
66
|
return t && (r = m("COACH_AVAILABLE_SERVICES", this._language.current).concat(":").concat(t)), r;
|
|
68
67
|
}
|
|
69
|
-
}, o = new WeakMap(), c = new WeakMap(), i =
|
|
68
|
+
}, o = new WeakMap(), c = new WeakMap(), i = l, (() => {
|
|
70
69
|
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
|
|
71
|
-
v = [D({ attribute: "property-ids", type: Array })], f = [w(), D({ type: Boolean })], g(
|
|
72
|
-
t.propertyIds =
|
|
73
|
-
} }, metadata: r }, h, y), g(
|
|
74
|
-
t.vertical =
|
|
70
|
+
v = [D({ attribute: "property-ids", type: Array })], f = [w(), D({ type: Boolean })], g(l, null, v, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (t) => "propertyIds" in t, get: (t) => t.propertyIds, set: (t, n) => {
|
|
71
|
+
t.propertyIds = n;
|
|
72
|
+
} }, metadata: r }, h, y), g(l, null, f, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (t) => "vertical" in t, get: (t) => t.vertical, set: (t, n) => {
|
|
73
|
+
t.vertical = n;
|
|
75
74
|
} }, metadata: r }, I, S), g(null, s = { value: i }, e, { kind: "class", name: i.name, metadata: r }, null, a), i = s.value, r && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
76
|
-
})(),
|
|
75
|
+
})(), l.styles = O, b(i, a), i;
|
|
77
76
|
})();
|
|
78
77
|
export {
|
|
79
78
|
J as SbbSeatReservationNavigationServicesElement
|
package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-navigation-services.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.ts"],"names":[],"mappings":"AAAA,cAAc,0FAA0F,CAAC"}
|
|
1
|
+
{"version":3,"file":"seat-reservation-navigation-services.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,0FAA0F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seat-reservation-navigation.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation-navigation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oEAAoE,CAAC;AACnF,cAAc,uEAAuE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SbbSeatReservationNavigationCoachElement as a } from "./seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js";
|
|
2
|
+
import { SbbSeatReservationNavigationServicesElement as i } from "./seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js";
|
|
3
|
+
export {
|
|
4
|
+
a as SbbSeatReservationNavigationCoachElement,
|
|
5
|
+
i as SbbSeatReservationNavigationServicesElement
|
|
6
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SbbButtonBaseElement } from '@sbb-esta/lyne-elements/core/base-elements.js';
|
|
2
2
|
import { EventEmitter } from '@sbb-esta/lyne-elements/core/eventing.js';
|
|
3
3
|
import { CSSResultGroup, TemplateResult, PropertyValues } from 'lit';
|
|
4
|
-
import { PlaceSelection, PlaceState, PlaceType } from '../
|
|
4
|
+
import { PlaceSelection, PlaceState, PlaceType } from '../common.js';
|
|
5
5
|
/**
|
|
6
6
|
* Output the graphic of a seat or a bicycle place as a control element.
|
|
7
7
|
*
|
|
@@ -28,7 +28,7 @@ export declare class SbbSeatReservationPlaceControlElement extends SbbButtonBase
|
|
|
28
28
|
accessor text: string;
|
|
29
29
|
/** Rotation of the text in degrees (without unit) */
|
|
30
30
|
accessor textRotation: number;
|
|
31
|
-
/** Coach Index Prop to
|
|
31
|
+
/** Coach Index Prop to identifier the right place to coach */
|
|
32
32
|
accessor coachIndex: number;
|
|
33
33
|
/** Prevent click prop prevent any place action */
|
|
34
34
|
accessor preventClick: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-place-control.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAGrF,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,KAAK,cAAc,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAInG,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"seat-reservation-place-control.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAGrF,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,KAAK,cAAc,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAInG,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,gCAAgC,CAAC;AAIxC;;;;GAIG;AACH,qBAEM,qCAAsC,SAAQ,oBAAoB;IACtE,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX,qDAAqD;IACrD,SAEgB,SAAS,EAAE,SAAS,CAAU;IAE9C,6DAA6D;IAC7D,SAEgB,KAAK,EAAE,UAAU,CAAU;IAE3C,sEAAsE;IACtE,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3C,yCAAyC;IACzC,SAEgB,QAAQ,EAAE,MAAM,CAAK;IAErC,kDAAkD;IAClD,SAEgB,KAAK,EAAE,MAAM,CAAM;IAEnC,mDAAmD;IACnD,SAEgB,MAAM,EAAE,MAAM,CAAM;IAEpC,0CAA0C;IAC1C,SAEgB,IAAI,EAAE,MAAM,CAAM;IAElC,qDAAqD;IACrD,SAEgB,YAAY,EAAE,MAAM,CAAK;IAEzC,8DAA8D;IAC9D,SAEgB,UAAU,EAAE,MAAM,CAAS;IAE3C,kDAAkD;IAClD,SAEgB,YAAY,EAAE,OAAO,CAAS;IAE9C,wCAAwC;IACxC,SAEgB,QAAQ,EAAE,MAAM,CAAa;IAE7C,+CAA+C;IAC/C,SAAS,CAAC,aAAa,EAAE,YAAY,CAAC,cAAc,CAAC,CAGnD;IAEF,OAAO,CAAC,SAAS,CAAmC;;cAOjC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cA4BzD,MAAM,IAAI,cAAc;IAkC3C,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,yBAAyB;IAejC,yGAAyG;IACzG,OAAO,CAAC,YAAY;CAcrB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oCAAoC,EAAE,qCAAqC,CAAC;KAC7E;CACF"}
|
package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js
CHANGED
|
@@ -10,13 +10,13 @@ import { forceType as v } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
|
10
10
|
import { EventEmitter as ft } from "@sbb-esta/lyne-elements/core/eventing.js";
|
|
11
11
|
import { css as gt, nothing as kt, html as xt } from "lit";
|
|
12
12
|
import { customElement as yt, property as d } from "lit/decorators.js";
|
|
13
|
-
import { getI18nSeatReservation as
|
|
13
|
+
import { getI18nSeatReservation as C } from "../common.js";
|
|
14
14
|
import "../seat-reservation-graphic.js";
|
|
15
15
|
const mt = gt`*,:before,:after{box-sizing:border-box}:host{--sbb-reservation-place-control-rotation: 0;--sbb-reservation-place-control-text-rotation: 0;--sbb-reservation-place-control-text-size: calc( var(--sbb-place-control-text-scale-value, 1) * .5 );--sbb-reservation-place-control-default-text: var(--sbb-color-black);--sbb-reservation-place-control-hover-text: var(--sbb-color-iron);--sbb-reservation-place-control-focus-text: var(--sbb-color-anthracite);--sbb-reservation-place-control-allocated-text: var(--sbb-color-smoke);--sbb-reservation-place-control-free-background-default: var(--sbb-color-white);--sbb-reservation-place-control-free-background-hover: var(--sbb-color-cloud);--sbb-reservation-place-control-free-background-focus: var(--sbb-color-silver);--sbb-reservation-place-control-free-backrest-background-default: var(--sbb-color-black);--sbb-reservation-place-control-free-backrest-background-hover: var(--sbb-color-black);--sbb-reservation-place-control-free-backrest-background-focus: var(--sbb-color-black);--sbb-reservation-place-control-selected-background-default: var(--sbb-color-red);--sbb-reservation-place-control-selected-background-hover: var(--sbb-color-red125);--sbb-reservation-place-control-selected-background-focus: var(--sbb-color-red150);--sbb-reservation-place-control-selected-backrest-background-default: var(--sbb-color-red150);--sbb-reservation-place-control-selected-backrest-background-hover: #7d000f;--sbb-reservation-place-control-selected-backrest-background-focus: #5a000b;--sbb-reservation-place-control-allocated-background-default: var(--sbb-color-milk);cursor:pointer}:host(:hover) .sbb-sr-place-ctrl--state-free:not(.sbb-reservation-place-control--disabled) ::part(svg-place){fill:var(--sbb-reservation-place-control-free-background-hover)}:host(:hover) .sbb-sr-place-ctrl--state-free:not(.sbb-reservation-place-control--disabled) ::part(svg-backrest){fill:var(--sbb-reservation-place-control-free-backrest-background-hover)}:host(:hover) .sbb-sr-place-ctrl--state-free:not(.sbb-reservation-place-control--disabled) .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-free-background-hover);color:var(--sbb-reservation-place-control-free-text)}:host(:hover) .sbb-sr-place-ctrl--state-selected:not(.sbb-reservation-place-control--disabled) ::part(svg-place){fill:var(--sbb-reservation-place-control-selected-background-hover)}:host(:hover) .sbb-sr-place-ctrl--state-selected:not(.sbb-reservation-place-control--disabled) ::part(svg-backrest){fill:var(--sbb-reservation-place-control-selected-backrest-background-hover)}:host(:hover) .sbb-sr-place-ctrl--state-selected:not(.sbb-reservation-place-control--disabled) .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-selected-background-hover);color:var(--sbb-reservation-place-control-selected-text)}:host(:focus){border-radius:var(--sbb-border-width-1x);outline:var(--sbb-border-width-2x) solid var(--sbb-color-black)}:host(:focus) .sbb-sr-place-ctrl--state-free:not(.sbb-reservation-place-control--disabled) ::part(svg-place){fill:var(--sbb-reservation-place-control-free-background-focus)}:host(:focus) .sbb-sr-place-ctrl--state-free:not(.sbb-reservation-place-control--disabled) ::part(svg-backrest){fill:var(--sbb-reservation-place-control-free-backrest-background-focus)}:host(:focus) .sbb-sr-place-ctrl--state-free:not(.sbb-reservation-place-control--disabled) .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-free-background-focus);color:var(--sbb-reservation-place-control-free-text)}:host(:focus) .sbb-sr-place-ctrl--state-selected:not(.sbb-reservation-place-control--disabled) ::part(svg-place){fill:var(--sbb-reservation-place-control-selected-background-focus)}:host(:focus) .sbb-sr-place-ctrl--state-selected:not(.sbb-reservation-place-control--disabled) ::part(svg-backrest){fill:var(--sbb-reservation-place-control-selected-backrest-background-focus)}:host(:focus) .sbb-sr-place-ctrl--state-selected:not(.sbb-reservation-place-control--disabled) .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-selected-background-focus);color:var(--sbb-reservation-place-control-selected-text)}.sbb-sr-place-ctrl{width:max-content;position:relative;font-size:calc(var(--sbb-reservation-place-control-text-size) * .0625rem)}.sbb-sr-place-ctrl--state-free ::part(svg-place){fill:var(--sbb-reservation-place-control-free-background-default)}.sbb-sr-place-ctrl--state-free ::part(svg-backrest){fill:var(--sbb-reservation-place-control-free-backrest-background-default)}.sbb-sr-place-ctrl--state-free .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-free-background-default);color:var(--sbb-reservation-place-control-free-text)}.sbb-sr-place-ctrl--state-selected ::part(svg-place){fill:var(--sbb-reservation-place-control-selected-background-default)}.sbb-sr-place-ctrl--state-selected ::part(svg-backrest){fill:var(--sbb-reservation-place-control-selected-backrest-background-default)}.sbb-sr-place-ctrl--state-selected .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-selected-background-default);color:var(--sbb-reservation-place-control-selected-text)}.sbb-sr-place-ctrl--state-allocated,.sbb-sr-place-ctrl--state-restricted{cursor:not-allowed}.sbb-sr-place-ctrl--state-allocated ::part(svg-place),.sbb-sr-place-ctrl--state-restricted ::part(svg-place){fill:var(--sbb-reservation-place-control-allocated-background-default)}.sbb-sr-place-ctrl--state-allocated ::part(svg-backrest),.sbb-sr-place-ctrl--state-restricted ::part(svg-backrest){fill:var(--sbb-reservation-place-control-allocated-backrest-background-default)}.sbb-sr-place-ctrl--state-allocated .sbb-sr-place-ctrl__text,.sbb-sr-place-ctrl--state-restricted .sbb-sr-place-ctrl__text{background-color:var(--sbb-reservation-place-control-allocated-background-default);color:var(--sbb-reservation-place-control-allocated-text)}.sbb-sr-place-ctrl__text{overflow:hidden;display:none;position:absolute;inset-block-start:50%;translate:-50% -50%;rotate:calc(var(--sbb-reservation-place-control-text-rotation) * 1deg);font-family:var(--sbb-typo-font-family);font-size:.75em;line-height:initial}.sbb-sr-place-ctrl--state-free .sbb-sr-place-ctrl__text,.sbb-sr-place-ctrl--state-allocated .sbb-sr-place-ctrl__text,.sbb-sr-place-ctrl--state-restricted.sbb-sr-place-ctrl--type-bicycle .sbb-sr-place-ctrl__text{display:block}.sbb-sr-place-ctrl--type-bicycle .sbb-sr-place-ctrl__text{inset-block-start:65%;inset-inline-start:50%;transform-origin:center 16%;font-size:.6875em}.sbb-sr-place-ctrl--orientation-0.sbb-sr-place-ctrl--type-seat .sbb-sr-place-ctrl__text{inset-inline-start:45%}.sbb-sr-place-ctrl--orientation-90.sbb-sr-place-ctrl--type-seat .sbb-sr-place-ctrl__text{inset-block-start:46%;inset-inline-start:50%}.sbb-sr-place-ctrl--orientation-180.sbb-sr-place-ctrl--type-seat .sbb-sr-place-ctrl__text{inset-inline-start:55%}.sbb-sr-place-ctrl--orientation-270.sbb-sr-place-ctrl--type-seat .sbb-sr-place-ctrl__text{inset-block-start:52%;inset-inline-start:52%}`;
|
|
16
16
|
let Dt = (() => {
|
|
17
17
|
var u, _, f, g, k, x, y, m, I, z, w, c;
|
|
18
|
-
let o = [yt("sbb-seat-reservation-place-control")], l, i = [], h,
|
|
19
|
-
var
|
|
18
|
+
let o = [yt("sbb-seat-reservation-place-control")], l, i = [], h, R = ut, S, T = [], P = [], $, L = [], D = [], A, N = [], O = [], F, j = [], B = [], U, K = [], M = [], Y, q = [], G = [], H, J = [], Q = [], V, W = [], X = [], Z, tt = [], et = [], st, rt = [], at = [], ct, ot = [], lt = [];
|
|
19
|
+
var E = (c = class extends R {
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
22
|
b(this, u);
|
|
@@ -30,7 +30,7 @@ let Dt = (() => {
|
|
|
30
30
|
b(this, I);
|
|
31
31
|
b(this, z);
|
|
32
32
|
b(this, w);
|
|
33
|
-
r(this, u, a(this,
|
|
33
|
+
r(this, u, a(this, T, "SEAT")), r(this, _, (a(this, P), a(this, L, "FREE"))), r(this, f, (a(this, D), a(this, N, []))), r(this, g, (a(this, O), a(this, j, 0))), r(this, k, (a(this, B), a(this, K, 32))), r(this, x, (a(this, M), a(this, q, 32))), r(this, y, (a(this, G), a(this, J, ""))), r(this, m, (a(this, Q), a(this, W, 0))), r(this, I, (a(this, X), a(this, tt, null))), r(this, z, (a(this, et), a(this, rt, !1))), r(this, w, (a(this, at), a(this, ot, "unfocus"))), this.placeSelected = (a(this, lt), new ft(this, E.events.selectPlace)), this._language = new _t(this), this.addEventListener("click", () => this._selectPlace());
|
|
34
34
|
}
|
|
35
35
|
/** placeType of the place, e.g. 'SEAT', 'BICYCLE' */
|
|
36
36
|
get placeType() {
|
|
@@ -88,7 +88,7 @@ let Dt = (() => {
|
|
|
88
88
|
set textRotation(e) {
|
|
89
89
|
r(this, m, e);
|
|
90
90
|
}
|
|
91
|
-
/** Coach Index Prop to
|
|
91
|
+
/** Coach Index Prop to identifier the right place to coach */
|
|
92
92
|
get coachIndex() {
|
|
93
93
|
return n(this, I);
|
|
94
94
|
}
|
|
@@ -110,11 +110,10 @@ let Dt = (() => {
|
|
|
110
110
|
r(this, w, e);
|
|
111
111
|
}
|
|
112
112
|
willUpdate(e) {
|
|
113
|
-
|
|
114
|
-
super.willUpdate(e), (e.has("width") || e.has("height")) && ((t = this.style) == null || t.setProperty("--sbb-place-control-text-scale-value", `${Math.min(this.width, this.height)}`)), e.has("textRotation") && ((s = this.style) == null || s.setProperty("--sbb-reservation-place-control-text-rotation", `${this.textRotation}`)), e.has("rotation") && ((E = this.style) == null || E.setProperty("--sbb-reservation-place-control-rotation", `${this.rotation}`)), e.has("keyfocus") && this.keyfocus === "focus" && this.focus();
|
|
113
|
+
super.willUpdate(e), (e.has("width") || e.has("height")) && this.style?.setProperty("--sbb-place-control-text-scale-value", `${Math.min(this.width, this.height)}`), e.has("textRotation") && this.style?.setProperty("--sbb-reservation-place-control-text-rotation", `${this.textRotation}`), e.has("rotation") && this.style?.setProperty("--sbb-reservation-place-control-rotation", `${this.rotation}`), e.has("keyfocus") && this.keyfocus === "focus" && this.focus();
|
|
115
114
|
}
|
|
116
115
|
render() {
|
|
117
|
-
const e = this._getPlaceSvg(this.placeType, this.state), t = this.type.toLowerCase(), s = this.state.toLowerCase(),
|
|
116
|
+
const e = this._getPlaceSvg(this.placeType, this.state), t = this.type.toLowerCase(), s = this.state.toLowerCase(), it = this.text, pt = this.width, dt = this.height, ht = this.textRotation - this.rotation, vt = this.preventClick ? "sbb-reservation-place-control--disabled" : null;
|
|
118
117
|
return this.title = this._getTitleDescriptionPlace(), this.tabIndex = -1, xt`
|
|
119
118
|
<div
|
|
120
119
|
part="sbb-sr-place-part"
|
|
@@ -129,7 +128,7 @@ let Dt = (() => {
|
|
|
129
128
|
aria-hidden="true"
|
|
130
129
|
></sbb-seat-reservation-graphic>
|
|
131
130
|
<span ${this.text ?? kt} class="sbb-sr-place-ctrl__text" aria-hidden="true"
|
|
132
|
-
>${
|
|
131
|
+
>${it}</span
|
|
133
132
|
>
|
|
134
133
|
</div>
|
|
135
134
|
`;
|
|
@@ -139,8 +138,8 @@ let Dt = (() => {
|
|
|
139
138
|
}
|
|
140
139
|
_getTitleDescriptionPlace() {
|
|
141
140
|
const e = "PLACE_CONTROL_" + this.type + "_" + this.state;
|
|
142
|
-
let t =
|
|
143
|
-
return this.propertyIds.length && (t += ". " +
|
|
141
|
+
let t = C(e, this._language.current, [this.text]);
|
|
142
|
+
return this.propertyIds.length && (t += ". " + C("PLACE_PROPERTY", this._language.current).concat(": "), t += this.propertyIds.map((s) => C(s, this._language.current)).join(", ")), t;
|
|
144
143
|
}
|
|
145
144
|
/** If the place selectable, we emit the placeSelection object which contains infos to the place state */
|
|
146
145
|
_selectPlace() {
|
|
@@ -156,34 +155,34 @@ let Dt = (() => {
|
|
|
156
155
|
}
|
|
157
156
|
}
|
|
158
157
|
}, u = new WeakMap(), _ = new WeakMap(), f = new WeakMap(), g = new WeakMap(), k = new WeakMap(), x = new WeakMap(), y = new WeakMap(), m = new WeakMap(), I = new WeakMap(), z = new WeakMap(), w = new WeakMap(), h = c, (() => {
|
|
159
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
160
|
-
|
|
158
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(R[Symbol.metadata] ?? null) : void 0;
|
|
159
|
+
S = [v(), d({ attribute: "type" })], $ = [v(), d({ attribute: "state" })], A = [d({ attribute: "propertyIds", type: Array })], F = [v(), d({ attribute: "rotation", type: Number })], U = [v(), d({ attribute: "width", type: Number })], Y = [v(), d({ attribute: "height", type: Number })], H = [v(), d({ attribute: "text" })], V = [v(), d({ attribute: "text-rotation" })], Z = [v(), d({ attribute: "coach-index", type: Number })], st = [v(), d({ attribute: "prevent-click", type: Boolean })], ct = [v(), d({ attribute: "keyfocus" })], p(c, null, S, { kind: "accessor", name: "placeType", static: !1, private: !1, access: { has: (t) => "placeType" in t, get: (t) => t.placeType, set: (t, s) => {
|
|
161
160
|
t.placeType = s;
|
|
162
|
-
} }, metadata: e },
|
|
161
|
+
} }, metadata: e }, T, P), p(c, null, $, { kind: "accessor", name: "state", static: !1, private: !1, access: { has: (t) => "state" in t, get: (t) => t.state, set: (t, s) => {
|
|
163
162
|
t.state = s;
|
|
164
|
-
} }, metadata: e },
|
|
163
|
+
} }, metadata: e }, L, D), p(c, null, A, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (t) => "propertyIds" in t, get: (t) => t.propertyIds, set: (t, s) => {
|
|
165
164
|
t.propertyIds = s;
|
|
166
|
-
} }, metadata: e },
|
|
165
|
+
} }, metadata: e }, N, O), p(c, null, F, { kind: "accessor", name: "rotation", static: !1, private: !1, access: { has: (t) => "rotation" in t, get: (t) => t.rotation, set: (t, s) => {
|
|
167
166
|
t.rotation = s;
|
|
168
|
-
} }, metadata: e },
|
|
167
|
+
} }, metadata: e }, j, B), p(c, null, U, { kind: "accessor", name: "width", static: !1, private: !1, access: { has: (t) => "width" in t, get: (t) => t.width, set: (t, s) => {
|
|
169
168
|
t.width = s;
|
|
170
|
-
} }, metadata: e },
|
|
169
|
+
} }, metadata: e }, K, M), p(c, null, Y, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (t) => "height" in t, get: (t) => t.height, set: (t, s) => {
|
|
171
170
|
t.height = s;
|
|
172
|
-
} }, metadata: e },
|
|
171
|
+
} }, metadata: e }, q, G), p(c, null, H, { kind: "accessor", name: "text", static: !1, private: !1, access: { has: (t) => "text" in t, get: (t) => t.text, set: (t, s) => {
|
|
173
172
|
t.text = s;
|
|
174
|
-
} }, metadata: e },
|
|
173
|
+
} }, metadata: e }, J, Q), p(c, null, V, { kind: "accessor", name: "textRotation", static: !1, private: !1, access: { has: (t) => "textRotation" in t, get: (t) => t.textRotation, set: (t, s) => {
|
|
175
174
|
t.textRotation = s;
|
|
176
|
-
} }, metadata: e },
|
|
175
|
+
} }, metadata: e }, W, X), p(c, null, Z, { kind: "accessor", name: "coachIndex", static: !1, private: !1, access: { has: (t) => "coachIndex" in t, get: (t) => t.coachIndex, set: (t, s) => {
|
|
177
176
|
t.coachIndex = s;
|
|
178
|
-
} }, metadata: e },
|
|
177
|
+
} }, metadata: e }, tt, et), p(c, null, st, { kind: "accessor", name: "preventClick", static: !1, private: !1, access: { has: (t) => "preventClick" in t, get: (t) => t.preventClick, set: (t, s) => {
|
|
179
178
|
t.preventClick = s;
|
|
180
|
-
} }, metadata: e },
|
|
179
|
+
} }, metadata: e }, rt, at), p(c, null, ct, { kind: "accessor", name: "keyfocus", static: !1, private: !1, access: { has: (t) => "keyfocus" in t, get: (t) => t.keyfocus, set: (t, s) => {
|
|
181
180
|
t.keyfocus = s;
|
|
182
|
-
} }, metadata: e },
|
|
181
|
+
} }, metadata: e }, ot, lt), p(null, l = { value: h }, o, { kind: "class", name: h.name, metadata: e }, null, i), E = h = l.value, e && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
183
182
|
})(), c.styles = mt, c.events = {
|
|
184
183
|
selectPlace: "selectPlace"
|
|
185
184
|
}, a(h, i), c);
|
|
186
|
-
return
|
|
185
|
+
return E = h;
|
|
187
186
|
})();
|
|
188
187
|
export {
|
|
189
188
|
Dt as SbbSeatReservationPlaceControlElement
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-place-control.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation-place-control.ts"],"names":[],"mappings":"AAAA,cAAc,8EAA8E,CAAC"}
|
|
1
|
+
{"version":3,"file":"seat-reservation-place-control.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation-place-control.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8EAA8E,CAAC"}
|
|
@@ -1,73 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
deckCoachIndex: number;
|
|
5
|
-
coachItems: CoachItem[];
|
|
6
|
-
};
|
|
7
|
-
export type CoachItem = {
|
|
8
|
-
id: string;
|
|
9
|
-
number: string;
|
|
10
|
-
dimension: ElementDimension;
|
|
11
|
-
type?: CoachType;
|
|
12
|
-
places?: Place[];
|
|
13
|
-
graphicElements?: BaseElement[];
|
|
14
|
-
serviceElements?: BaseElement[];
|
|
15
|
-
travelClass: PlaceTravelClass[];
|
|
16
|
-
propertyIds?: string[];
|
|
17
|
-
};
|
|
18
|
-
export interface Place extends BaseElement {
|
|
19
|
-
number: string;
|
|
20
|
-
state: PlaceState;
|
|
21
|
-
type: PlaceType;
|
|
22
|
-
travelClass?: PlaceTravelClass;
|
|
23
|
-
remarkId?: string;
|
|
24
|
-
propertyIds?: string[];
|
|
25
|
-
selected?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export type BaseElement = {
|
|
28
|
-
icon?: string | null;
|
|
29
|
-
rotation?: number;
|
|
30
|
-
position: ElementPosition;
|
|
31
|
-
dimension: ElementDimension;
|
|
32
|
-
};
|
|
33
|
-
export type ElementDimension = {
|
|
34
|
-
w: number;
|
|
35
|
-
h: number;
|
|
36
|
-
};
|
|
37
|
-
export type ElementPosition = {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
z: number;
|
|
41
|
-
};
|
|
42
|
-
export type PlaceSelection = {
|
|
43
|
-
id: string;
|
|
44
|
-
number: string;
|
|
45
|
-
coachIndex: number;
|
|
46
|
-
state: PlaceState;
|
|
47
|
-
};
|
|
48
|
-
export type SeatReservationPlaceSelection = {
|
|
49
|
-
id: string;
|
|
50
|
-
coachId: string;
|
|
51
|
-
coachNumber: string;
|
|
52
|
-
coachIndex: number;
|
|
53
|
-
placeNumber: string;
|
|
54
|
-
placeType: PlaceType;
|
|
55
|
-
placeTravelClass: PlaceTravelClass;
|
|
56
|
-
propertyIds: string[];
|
|
57
|
-
};
|
|
58
|
-
export type SeatReservationCoachSelection = {
|
|
59
|
-
coachId: string;
|
|
60
|
-
coachNumber: string;
|
|
61
|
-
coachIndex: number;
|
|
62
|
-
coachType?: CoachType;
|
|
63
|
-
coachTravelClass: PlaceTravelClass[];
|
|
64
|
-
coachPropertyIds?: string[];
|
|
65
|
-
};
|
|
66
|
-
export type PlaceType = 'SEAT' | 'BICYCLE';
|
|
67
|
-
export type CoachType = 'RESTAURANT_COACH' | 'BICYCLE_COACH' | 'LUGGAGE_COACH' | 'TRAIN_HEAD';
|
|
68
|
-
export type PlaceState = 'FREE' | 'ALLOCATED' | 'RESTRICTED' | 'SELECTED';
|
|
69
|
-
export type PlaceTravelClass = 'FIRST' | 'SECOND' | 'ANY_CLASS';
|
|
70
|
-
export type VehicleType = 'TRAIN' | 'BUS';
|
|
71
|
-
export * from './seat-reservation/seat-reservation-base-element.js';
|
|
1
|
+
/**
|
|
2
|
+
* @entrypoint
|
|
3
|
+
*/
|
|
72
4
|
export * from './seat-reservation/seat-reservation.component.js';
|
|
5
|
+
export * from './seat-reservation/seat-reservation-base-element.js';
|
|
6
|
+
export * from './seat-reservation/seat-reservation-scoped.js';
|
|
73
7
|
//# sourceMappingURL=seat-reservation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"seat-reservation.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SbbSeatReservationElement as o } from "./seat-reservation/seat-reservation.component.js";
|
|
2
|
+
import { SeatReservationBaseElement as a } from "./seat-reservation/seat-reservation-base-element.js";
|
|
3
|
+
import { SbbSeatReservationScopedElement as n } from "./seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
o as SbbSeatReservationElement,
|
|
6
|
+
n as SbbSeatReservationScopedElement,
|
|
7
|
+
a as SeatReservationBaseElement
|
|
6
8
|
};
|
package/seat-reservation.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @entrypoint
|
|
3
3
|
*/
|
|
4
|
+
export * from './seat-reservation/common.js';
|
|
4
5
|
export * from './seat-reservation/seat-reservation.js';
|
|
6
|
+
export * from './seat-reservation/seat-reservation-area.js';
|
|
7
|
+
export * from './seat-reservation/seat-reservation-graphic.js';
|
|
8
|
+
export * from './seat-reservation/seat-reservation-navigation.js';
|
|
9
|
+
export * from './seat-reservation/seat-reservation-place-control.js';
|
|
5
10
|
//# sourceMappingURL=seat-reservation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation.d.ts","sourceRoot":"","sources":["../../src/elements-experimental/seat-reservation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,wCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"seat-reservation.d.ts","sourceRoot":"","sources":["../../src/elements-experimental/seat-reservation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC"}
|
package/seat-reservation.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { mapCoachInfosToCoachSelection as t, mapPlaceAndCoachToSeatReservationPlaceSelection as a, mapPlaceInfosToPlaceSelection as r, mapRawDataToSeatReservation as n } from "./seat-reservation/common/mapper/mapper.js";
|
|
2
|
+
import { mapIconToSvg as S } from "./seat-reservation/common/mapper/icon-mapper.js";
|
|
3
|
+
import { svgs as p } from "./seat-reservation/common/svgs.js";
|
|
4
|
+
import { getI18nSeatReservation as s } from "./seat-reservation/common/translations/i18n.js";
|
|
5
|
+
import { SbbSeatReservationElement as v } from "./seat-reservation/seat-reservation/seat-reservation.component.js";
|
|
6
|
+
import { SeatReservationBaseElement as f } from "./seat-reservation/seat-reservation/seat-reservation-base-element.js";
|
|
7
|
+
import { SbbSeatReservationScopedElement as R } from "./seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js";
|
|
8
|
+
import { SbbSeatReservationAreaElement as g } from "./seat-reservation/seat-reservation-area/seat-reservation-area.component.js";
|
|
9
|
+
import { SbbSeatReservationGraphicElement as C } from "./seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js";
|
|
10
|
+
import { SbbSeatReservationNavigationCoachElement as T } from "./seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js";
|
|
11
|
+
import { SbbSeatReservationNavigationServicesElement as d } from "./seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js";
|
|
12
|
+
import { SbbSeatReservationPlaceControlElement as N } from "./seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js";
|
|
3
13
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
14
|
+
g as SbbSeatReservationAreaElement,
|
|
15
|
+
v as SbbSeatReservationElement,
|
|
16
|
+
C as SbbSeatReservationGraphicElement,
|
|
17
|
+
T as SbbSeatReservationNavigationCoachElement,
|
|
18
|
+
d as SbbSeatReservationNavigationServicesElement,
|
|
19
|
+
N as SbbSeatReservationPlaceControlElement,
|
|
20
|
+
R as SbbSeatReservationScopedElement,
|
|
21
|
+
f as SeatReservationBaseElement,
|
|
22
|
+
s as getI18nSeatReservation,
|
|
23
|
+
t as mapCoachInfosToCoachSelection,
|
|
24
|
+
S as mapIconToSvg,
|
|
25
|
+
a as mapPlaceAndCoachToSeatReservationPlaceSelection,
|
|
26
|
+
r as mapPlaceInfosToPlaceSelection,
|
|
27
|
+
n as mapRawDataToSeatReservation,
|
|
28
|
+
p as svgs
|
|
6
29
|
};
|