@sbb-esta/lyne-elements-experimental 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +4286 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/icon-mapper.js +72 -0
- package/development/seat-reservation/common/mapper/mapper.d.ts +29 -0
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/mapper.js +117 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +6152 -0
- package/development/seat-reservation/common/mapper.d.ts +3 -0
- package/development/seat-reservation/common/mapper.d.ts.map +1 -0
- package/development/seat-reservation/common/mapper.js +10 -0
- package/development/seat-reservation/common/svgs.d.ts +25 -0
- package/development/seat-reservation/common/svgs.d.ts.map +1 -0
- package/development/seat-reservation/common/svgs.js +48 -0
- package/development/seat-reservation/common/translations/i18n.d.ts +19 -0
- package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -0
- package/development/seat-reservation/common/translations/i18n.js +462 -0
- package/development/seat-reservation/common/translations.d.ts +2 -0
- package/development/seat-reservation/common/translations.d.ts.map +1 -0
- package/development/seat-reservation/common/translations.js +5 -0
- package/development/seat-reservation/common.d.ts +5 -0
- package/development/seat-reservation/common.d.ts.map +1 -0
- package/development/seat-reservation/common.js +18 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +156 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +706 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts +29 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js +196 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +2 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +5 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +615 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +108 -0
- package/development/seat-reservation/seat-reservation-area.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-area.js +5 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +326 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +224 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-graphic.js +5 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +65 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +576 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +5 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +123 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +5 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +446 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation-place-control.js +5 -0
- package/development/seat-reservation/seat-reservation.d.ts +73 -0
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -0
- package/development/seat-reservation/seat-reservation.js +7 -0
- package/development/seat-reservation.d.ts +5 -0
- package/development/seat-reservation.d.ts.map +1 -0
- package/development/seat-reservation.js +7 -0
- package/index.d.ts +14 -0
- package/index.js +14 -0
- package/package.json +7 -2
- package/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
- package/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
- package/seat-reservation/common/mapper/icon-mapper.js +71 -0
- package/seat-reservation/common/mapper/mapper.d.ts +29 -0
- package/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
- package/seat-reservation/common/mapper/mapper.js +87 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.js +6149 -0
- package/seat-reservation/common/mapper.d.ts +3 -0
- package/seat-reservation/common/mapper.d.ts.map +1 -0
- package/seat-reservation/common/mapper.js +9 -0
- package/seat-reservation/common/svgs.d.ts +25 -0
- package/seat-reservation/common/svgs.d.ts.map +1 -0
- package/seat-reservation/common/svgs.js +250 -0
- package/seat-reservation/common/translations/i18n.d.ts +19 -0
- package/seat-reservation/common/translations/i18n.d.ts.map +1 -0
- package/seat-reservation/common/translations/i18n.js +460 -0
- package/seat-reservation/common/translations.d.ts +2 -0
- package/seat-reservation/common/translations.d.ts.map +1 -0
- package/seat-reservation/common/translations.js +4 -0
- package/seat-reservation/common.d.ts +5 -0
- package/seat-reservation/common.d.ts.map +1 -0
- package/seat-reservation/common.js +17 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +156 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +435 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts +29 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js +107 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +2 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +4 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation/seat-reservation.component.js +404 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +49 -0
- package/seat-reservation/seat-reservation-area.d.ts +2 -0
- package/seat-reservation/seat-reservation-area.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-area.js +4 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +317 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +113 -0
- package/seat-reservation/seat-reservation-graphic.d.ts +2 -0
- package/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-graphic.js +4 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +65 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +248 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +2 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +4 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +80 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +2 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +4 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +190 -0
- package/seat-reservation/seat-reservation-place-control.d.ts +2 -0
- package/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
- package/seat-reservation/seat-reservation-place-control.js +4 -0
- package/seat-reservation/seat-reservation.d.ts +73 -0
- package/seat-reservation/seat-reservation.d.ts.map +1 -0
- package/seat-reservation/seat-reservation.js +6 -0
- package/seat-reservation.d.ts +5 -0
- package/seat-reservation.d.ts.map +1 -0
- package/seat-reservation.js +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seat-reservation-navigation-services.component.d.ts","sourceRoot":"","sources":["../../../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,mCAAmC,CAAC;AAI3C;;;GAGG;AACH,qBAEM,2CAA4C,SAAQ,UAAU;IAClE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3C,0DAA0D;IAC1D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;IA4B3C,OAAO,CAAC,2BAA2B;CAcpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0CAA0C,EAAE,2CAA2C,CAAC;KACzF;CACF"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
3
|
+
};
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
+
import { __runInitializers, __esDecorate } from "tslib";
|
|
9
|
+
import { SbbLanguageController } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
10
|
+
import { forceType } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
11
|
+
import { css, LitElement, nothing, html } from "lit";
|
|
12
|
+
import { customElement, property } from "lit/decorators.js";
|
|
13
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
14
|
+
import { getI18nSeatReservation } from "../../common.js";
|
|
15
|
+
import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
16
|
+
import "../../seat-reservation-graphic.js";
|
|
17
|
+
const style = css`*,
|
|
18
|
+
::before,
|
|
19
|
+
::after {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sbb-sr-navigation__signs {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
gap: var(--sbb-spacing-fixed-2x);
|
|
28
|
+
color: var(--sbb-color-granite);
|
|
29
|
+
}
|
|
30
|
+
.sbb-sr-navigation__signs--vertical {
|
|
31
|
+
align-content: center;
|
|
32
|
+
height: 100%;
|
|
33
|
+
}`;
|
|
34
|
+
let SbbSeatReservationNavigationServicesElement = (() => {
|
|
35
|
+
var _propertyIds_accessor_storage, _vertical_accessor_storage, _a;
|
|
36
|
+
let _classDecorators = [customElement("sbb-seat-reservation-navigation-services")];
|
|
37
|
+
let _classDescriptor;
|
|
38
|
+
let _classExtraInitializers = [];
|
|
39
|
+
let _classThis;
|
|
40
|
+
let _classSuper = LitElement;
|
|
41
|
+
let _propertyIds_decorators;
|
|
42
|
+
let _propertyIds_initializers = [];
|
|
43
|
+
let _propertyIds_extraInitializers = [];
|
|
44
|
+
let _vertical_decorators;
|
|
45
|
+
let _vertical_initializers = [];
|
|
46
|
+
let _vertical_extraInitializers = [];
|
|
47
|
+
_a = class extends _classSuper {
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments);
|
|
50
|
+
__privateAdd(this, _propertyIds_accessor_storage);
|
|
51
|
+
__privateAdd(this, _vertical_accessor_storage);
|
|
52
|
+
__privateSet(this, _propertyIds_accessor_storage, __runInitializers(this, _propertyIds_initializers, []));
|
|
53
|
+
__privateSet(this, _vertical_accessor_storage, (__runInitializers(this, _propertyIds_extraInitializers), __runInitializers(this, _vertical_initializers, false)));
|
|
54
|
+
this._language = (__runInitializers(this, _vertical_extraInitializers), new SbbLanguageController(this));
|
|
55
|
+
}
|
|
56
|
+
/** Coach service property ids, which are used to display the services in the navigation */
|
|
57
|
+
get propertyIds() {
|
|
58
|
+
return __privateGet(this, _propertyIds_accessor_storage);
|
|
59
|
+
}
|
|
60
|
+
set propertyIds(value) {
|
|
61
|
+
__privateSet(this, _propertyIds_accessor_storage, value);
|
|
62
|
+
}
|
|
63
|
+
/** If true, the service icons are displayed vertically */
|
|
64
|
+
get vertical() {
|
|
65
|
+
return __privateGet(this, _vertical_accessor_storage);
|
|
66
|
+
}
|
|
67
|
+
set vertical(value) {
|
|
68
|
+
__privateSet(this, _vertical_accessor_storage, value);
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
var _a2;
|
|
72
|
+
const serviceLabelDescription = this.propertyIds.length ? this._getServiceLabelDescription() : null;
|
|
73
|
+
return html` <div
|
|
74
|
+
class="${classMap({
|
|
75
|
+
"sbb-sr-navigation__signs": true,
|
|
76
|
+
"sbb-sr-navigation__signs--vertical": this.vertical
|
|
77
|
+
})}"
|
|
78
|
+
>
|
|
79
|
+
<sbb-screen-reader-only ${serviceLabelDescription ? serviceLabelDescription : nothing}
|
|
80
|
+
>${serviceLabelDescription}</sbb-screen-reader-only
|
|
81
|
+
>
|
|
82
|
+
${(_a2 = this.propertyIds) == null ? void 0 : _a2.map((signIcon) => {
|
|
83
|
+
return html`
|
|
84
|
+
<sbb-seat-reservation-graphic
|
|
85
|
+
name=${signIcon ?? nothing}
|
|
86
|
+
width="20"
|
|
87
|
+
height="20"
|
|
88
|
+
title=${getI18nSeatReservation(signIcon, this._language.current)}
|
|
89
|
+
aria-hidden="true"
|
|
90
|
+
></sbb-seat-reservation-graphic>
|
|
91
|
+
`;
|
|
92
|
+
})}
|
|
93
|
+
</div>`;
|
|
94
|
+
}
|
|
95
|
+
//Generate the translated service label from the available properties
|
|
96
|
+
_getServiceLabelDescription() {
|
|
97
|
+
let label = null;
|
|
98
|
+
const translatedServiceLabels = this.propertyIds.map((prop) => getI18nSeatReservation(prop, this._language.current)).filter((propTranslation) => !!propTranslation).join(", ");
|
|
99
|
+
if (translatedServiceLabels) {
|
|
100
|
+
label = getI18nSeatReservation("COACH_AVAILABLE_SERVICES", this._language.current).concat(":").concat(translatedServiceLabels);
|
|
101
|
+
}
|
|
102
|
+
return label;
|
|
103
|
+
}
|
|
104
|
+
}, _propertyIds_accessor_storage = new WeakMap(), _vertical_accessor_storage = new WeakMap(), _classThis = _a, (() => {
|
|
105
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
106
|
+
_propertyIds_decorators = [property({ attribute: "property-ids", type: Array })];
|
|
107
|
+
_vertical_decorators = [forceType(), property({ type: Boolean })];
|
|
108
|
+
__esDecorate(_a, null, _propertyIds_decorators, { kind: "accessor", name: "propertyIds", static: false, private: false, access: { has: (obj) => "propertyIds" in obj, get: (obj) => obj.propertyIds, set: (obj, value) => {
|
|
109
|
+
obj.propertyIds = value;
|
|
110
|
+
} }, metadata: _metadata }, _propertyIds_initializers, _propertyIds_extraInitializers);
|
|
111
|
+
__esDecorate(_a, null, _vertical_decorators, { kind: "accessor", name: "vertical", static: false, private: false, access: { has: (obj) => "vertical" in obj, get: (obj) => obj.vertical, set: (obj, value) => {
|
|
112
|
+
obj.vertical = value;
|
|
113
|
+
} }, metadata: _metadata }, _vertical_initializers, _vertical_extraInitializers);
|
|
114
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
115
|
+
_classThis = _classDescriptor.value;
|
|
116
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
117
|
+
})(), _a.styles = style, __runInitializers(_classThis, _classExtraInitializers), _a;
|
|
118
|
+
return _classThis;
|
|
119
|
+
})();
|
|
120
|
+
export {
|
|
121
|
+
SbbSeatReservationNavigationServicesElement
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhdC1yZXNlcnZhdGlvbi1uYXZpZ2F0aW9uLXNlcnZpY2VzLmNvbXBvbmVudC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2VsZW1lbnRzLWV4cGVyaW1lb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NQUFBLFlBQUEsTUFBQSxZQUFBLFFBQUEsT0FBQSxTQUFBLE9BQUEsUUFBQSxFQUFBLEtBQUEsQ0FBQSxRQUFBLGNBQUEsS0FBQSxLQUFBLENBQUEsUUFBQSxJQUFBLFVBQUEsS0FBQSxDQUFBLEtBQUEsVUFBQTtBQUFBLFVBQUEsV0FBMEI7QUFBQSxTQUFBLFVBQUEsYUFBQSx3QkFBQSwyQkFBQTtBQVY1QyxpQkF3REMsTUFBQSxtQkFBQSxFQUFBLE9BQUEsV0FBQSxHQUFBLGtCQUFBLEVBQUEsTUFBQSxTQUFBLE1BQUEsV0FBQSxNQUFBLFVBQUEsVUFBQSxHQUFBLE1BQUEsdUJBQUE7OztRQXZEd0IsR0FBTSxTQUFtQixPQUQ1QyxrQkFBMkMsWUFBQSx1QkFBQSxHQUFDOzs7In0=
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SbbSeatReservationNavigationServicesElement } from "./seat-reservation-navigation-services/seat-reservation-navigation-services.component.js";
|
|
2
|
+
export {
|
|
3
|
+
SbbSeatReservationNavigationServicesElement
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhdC1yZXNlcnZhdGlvbi1uYXZpZ2F0aW9uLXNlcnZpY2VzLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjsifQ==
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SbbButtonBaseElement } from '@sbb-esta/lyne-elements/core/base-elements.js';
|
|
2
|
+
import { EventEmitter } from '@sbb-esta/lyne-elements/core/eventing.js';
|
|
3
|
+
import { CSSResultGroup, TemplateResult, PropertyValues } from 'lit';
|
|
4
|
+
import { PlaceSelection, PlaceState, PlaceType } from '../seat-reservation.js';
|
|
5
|
+
/**
|
|
6
|
+
* Output the graphic of a seat or a bicycle place as a control element.
|
|
7
|
+
*
|
|
8
|
+
* @event {CustomEvent<PlaceSelection>} selectPlace - Emits when a place was selected and returns a PlaceSelection object with necessary place information
|
|
9
|
+
*/
|
|
10
|
+
export declare class SbbSeatReservationPlaceControlElement extends SbbButtonBaseElement {
|
|
11
|
+
static styles: CSSResultGroup;
|
|
12
|
+
static readonly events: {
|
|
13
|
+
readonly selectPlace: "selectPlace";
|
|
14
|
+
};
|
|
15
|
+
/** placeType of the place, e.g. 'SEAT', 'BICYCLE' */
|
|
16
|
+
accessor placeType: PlaceType;
|
|
17
|
+
/** state of the place, e.g. 'FREE', 'SELECTED', 'BLOCKED' */
|
|
18
|
+
accessor state: PlaceState;
|
|
19
|
+
/** property ids of the place, to display more info about the place */
|
|
20
|
+
accessor propertyIds: string[];
|
|
21
|
+
/** rotation in degrees (without unit) */
|
|
22
|
+
accessor rotation: number;
|
|
23
|
+
/** width of the place in pixels (without unit) */
|
|
24
|
+
accessor width: number;
|
|
25
|
+
/** height of the place in pixels (without unit) */
|
|
26
|
+
accessor height: number;
|
|
27
|
+
/** label of the place, e.g. '1A', '2B' */
|
|
28
|
+
accessor text: string;
|
|
29
|
+
/** Rotation of the text in degrees (without unit) */
|
|
30
|
+
accessor textRotation: number;
|
|
31
|
+
/** Coach Index Prop to identifer the right place to coach */
|
|
32
|
+
accessor coachIndex: number;
|
|
33
|
+
/** Prevent click prop prevent any place action */
|
|
34
|
+
accessor preventClick: boolean;
|
|
35
|
+
/** Set the place focus outline style */
|
|
36
|
+
accessor keyfocus: string;
|
|
37
|
+
/** Emits when a place was selected by user. */
|
|
38
|
+
protected placeSelected: EventEmitter<PlaceSelection>;
|
|
39
|
+
private _language;
|
|
40
|
+
constructor();
|
|
41
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
42
|
+
protected render(): TemplateResult;
|
|
43
|
+
private _getPlaceSvg;
|
|
44
|
+
private _getTitleDescriptionPlace;
|
|
45
|
+
/** If the place selectable, we emit the placeSelection object which contains infos to the place state */
|
|
46
|
+
private _selectPlace;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLElementTagNameMap {
|
|
50
|
+
'sbb-seat-reservation-place-control': SbbSeatReservationPlaceControlElement;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=seat-reservation-place-control.component.d.ts.map
|
|
@@ -0,0 +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,wBAAwB,CAAC;AAEpF,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,KAA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