@sbb-esta/lyne-elements-experimental 2.10.1 → 2.11.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.
Files changed (166) hide show
  1. package/custom-elements.json +4357 -0
  2. package/development/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
  3. package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
  4. package/development/seat-reservation/common/mapper/icon-mapper.js +72 -0
  5. package/development/seat-reservation/common/mapper/mapper.d.ts +29 -0
  6. package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
  7. package/development/seat-reservation/common/mapper/mapper.js +117 -0
  8. package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
  9. package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
  10. package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +6152 -0
  11. package/development/seat-reservation/common/mapper.d.ts +3 -0
  12. package/development/seat-reservation/common/mapper.d.ts.map +1 -0
  13. package/development/seat-reservation/common/mapper.js +10 -0
  14. package/development/seat-reservation/common/svgs.d.ts +25 -0
  15. package/development/seat-reservation/common/svgs.d.ts.map +1 -0
  16. package/development/seat-reservation/common/svgs.js +48 -0
  17. package/development/seat-reservation/common/translations/i18n.d.ts +19 -0
  18. package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -0
  19. package/development/seat-reservation/common/translations/i18n.js +462 -0
  20. package/development/seat-reservation/common/translations.d.ts +2 -0
  21. package/development/seat-reservation/common/translations.d.ts.map +1 -0
  22. package/development/seat-reservation/common/translations.js +5 -0
  23. package/development/seat-reservation/common/types.d.ts +71 -0
  24. package/development/seat-reservation/common/types.d.ts.map +1 -0
  25. package/development/seat-reservation/common/types.js +2 -0
  26. package/development/seat-reservation/common.d.ts +8 -0
  27. package/development/seat-reservation/common.d.ts.map +1 -0
  28. package/development/seat-reservation/common.js +14 -0
  29. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +157 -0
  30. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
  31. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +706 -0
  32. package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +29 -0
  33. package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -0
  34. package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +196 -0
  35. package/development/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts +5 -0
  36. package/development/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts.map +1 -0
  37. package/development/seat-reservation/seat-reservation/seat-reservation-scoped.js +5 -0
  38. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
  39. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
  40. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +615 -0
  41. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
  42. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
  43. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +108 -0
  44. package/development/seat-reservation/seat-reservation-area.d.ts +5 -0
  45. package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -0
  46. package/development/seat-reservation/seat-reservation-area.js +5 -0
  47. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
  48. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
  49. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +326 -0
  50. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
  51. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
  52. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +224 -0
  53. package/development/seat-reservation/seat-reservation-graphic.d.ts +5 -0
  54. package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
  55. package/development/seat-reservation/seat-reservation-graphic.js +5 -0
  56. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +66 -0
  57. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
  58. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +576 -0
  59. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +5 -0
  60. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
  61. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +5 -0
  62. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
  63. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
  64. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +123 -0
  65. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +5 -0
  66. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
  67. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +5 -0
  68. package/development/seat-reservation/seat-reservation-navigation.d.ts +6 -0
  69. package/development/seat-reservation/seat-reservation-navigation.d.ts.map +1 -0
  70. package/development/seat-reservation/seat-reservation-navigation.js +7 -0
  71. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
  72. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
  73. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +446 -0
  74. package/development/seat-reservation/seat-reservation-place-control.d.ts +5 -0
  75. package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
  76. package/development/seat-reservation/seat-reservation-place-control.js +5 -0
  77. package/development/seat-reservation/seat-reservation.d.ts +7 -0
  78. package/development/seat-reservation/seat-reservation.d.ts.map +1 -0
  79. package/development/seat-reservation/seat-reservation.js +9 -0
  80. package/development/seat-reservation.d.ts +10 -0
  81. package/development/seat-reservation.d.ts.map +1 -0
  82. package/development/seat-reservation.js +30 -0
  83. package/index.d.ts +14 -0
  84. package/index.js +14 -0
  85. package/package.json +52 -2
  86. package/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
  87. package/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
  88. package/seat-reservation/common/mapper/icon-mapper.js +71 -0
  89. package/seat-reservation/common/mapper/mapper.d.ts +29 -0
  90. package/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
  91. package/seat-reservation/common/mapper/mapper.js +87 -0
  92. package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
  93. package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
  94. package/seat-reservation/common/mapper/seat-reservation-sample-data.js +6149 -0
  95. package/seat-reservation/common/mapper.d.ts +3 -0
  96. package/seat-reservation/common/mapper.d.ts.map +1 -0
  97. package/seat-reservation/common/mapper.js +9 -0
  98. package/seat-reservation/common/svgs.d.ts +25 -0
  99. package/seat-reservation/common/svgs.d.ts.map +1 -0
  100. package/seat-reservation/common/svgs.js +250 -0
  101. package/seat-reservation/common/translations/i18n.d.ts +19 -0
  102. package/seat-reservation/common/translations/i18n.d.ts.map +1 -0
  103. package/seat-reservation/common/translations/i18n.js +460 -0
  104. package/seat-reservation/common/translations.d.ts +2 -0
  105. package/seat-reservation/common/translations.d.ts.map +1 -0
  106. package/seat-reservation/common/translations.js +4 -0
  107. package/seat-reservation/common/types.d.ts +71 -0
  108. package/seat-reservation/common/types.d.ts.map +1 -0
  109. package/seat-reservation/common/types.js +1 -0
  110. package/seat-reservation/common.d.ts +8 -0
  111. package/seat-reservation/common.d.ts.map +1 -0
  112. package/seat-reservation/common.js +13 -0
  113. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +157 -0
  114. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
  115. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +435 -0
  116. package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +29 -0
  117. package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -0
  118. package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +107 -0
  119. package/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts +5 -0
  120. package/seat-reservation/seat-reservation/seat-reservation-scoped.d.ts.map +1 -0
  121. package/seat-reservation/seat-reservation/seat-reservation-scoped.js +4 -0
  122. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
  123. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
  124. package/seat-reservation/seat-reservation/seat-reservation.component.js +404 -0
  125. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
  126. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
  127. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +49 -0
  128. package/seat-reservation/seat-reservation-area.d.ts +5 -0
  129. package/seat-reservation/seat-reservation-area.d.ts.map +1 -0
  130. package/seat-reservation/seat-reservation-area.js +4 -0
  131. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
  132. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
  133. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +317 -0
  134. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
  135. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
  136. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +113 -0
  137. package/seat-reservation/seat-reservation-graphic.d.ts +5 -0
  138. package/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
  139. package/seat-reservation/seat-reservation-graphic.js +4 -0
  140. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +66 -0
  141. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
  142. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +248 -0
  143. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +5 -0
  144. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
  145. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +4 -0
  146. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
  147. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
  148. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +80 -0
  149. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +5 -0
  150. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
  151. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +4 -0
  152. package/seat-reservation/seat-reservation-navigation.d.ts +6 -0
  153. package/seat-reservation/seat-reservation-navigation.d.ts.map +1 -0
  154. package/seat-reservation/seat-reservation-navigation.js +6 -0
  155. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
  156. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
  157. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +190 -0
  158. package/seat-reservation/seat-reservation-place-control.d.ts +5 -0
  159. package/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
  160. package/seat-reservation/seat-reservation-place-control.js +4 -0
  161. package/seat-reservation/seat-reservation.d.ts +7 -0
  162. package/seat-reservation/seat-reservation.d.ts.map +1 -0
  163. package/seat-reservation/seat-reservation.js +8 -0
  164. package/seat-reservation.d.ts +10 -0
  165. package/seat-reservation.d.ts.map +1 -0
  166. package/seat-reservation.js +29 -0
@@ -0,0 +1,49 @@
1
+ var x = (r) => {
2
+ throw TypeError(r);
3
+ };
4
+ var y = (r, e, t) => e.has(r) || x("Cannot " + t);
5
+ var c = (r, e, t) => (y(r, e, "read from private field"), t ? t.call(r) : e.get(r)), u = (r, e, t) => e.has(r) ? x("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), m = (r, e, t, o) => (y(r, e, "write to private field"), o ? o.call(r, t) : e.set(r, t), t);
6
+ import { __esDecorate as g, __runInitializers as l } from "tslib";
7
+ import { forceType as z } from "@sbb-esta/lyne-elements/core/decorators.js";
8
+ import { css as E, LitElement as I, html as j } from "lit";
9
+ import { customElement as D, property as S } from "lit/decorators.js";
10
+ const O = E`*,:before,:after{box-sizing:border-box}:host{--sbb-reservation-area-border-radius: var(--sbb-border-width-4x);--sbb-reservation-area-rotation: 0;display:flex;justify-content:center;align-items:center;height:calc(var(--sbb-reservation-area-height) * .0625rem);width:calc(var(--sbb-reservation-area-width) * .0625rem);border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border-radius:var(--sbb-reservation-area-border-radius);position:inherit;rotate:calc(var(--sbb-reservation-area-rotation) * 1deg);background-color:var(--sbb-color-white)}:host([background=dark]){background-color:var(--sbb-color-milk)}:host([mounting=upper-border]){border-block-start-width:var(--sbb-border-width-2x);border-radius:0 0 var(--sbb-reservation-area-border-radius) var(--sbb-reservation-area-border-radius)}:host([mounting=lower-border]){border-block-end-width:var(--sbb-border-width-2x);border-radius:var(--sbb-reservation-area-border-radius) var(--sbb-reservation-area-border-radius) 0 0}:host([mounting=upper-to-lower-border]){border-block-start:none;border-block-end:none;border-radius:0}`;
11
+ let B = (() => {
12
+ var n, b, s;
13
+ let r = [D("sbb-seat-reservation-area")], e, t = [], o, h = I, v, _ = [], k = [], p, f = [], w = [];
14
+ return s = class extends h {
15
+ constructor() {
16
+ super(...arguments);
17
+ u(this, n, l(this, _, "free"));
18
+ u(this, b, (l(this, k), l(this, f, "light")));
19
+ l(this, w);
20
+ }
21
+ /** Mounting Prop */
22
+ get mounting() {
23
+ return c(this, n);
24
+ }
25
+ set mounting(i) {
26
+ m(this, n, i);
27
+ }
28
+ /** the background of the area */
29
+ get background() {
30
+ return c(this, b);
31
+ }
32
+ set background(i) {
33
+ m(this, b, i);
34
+ }
35
+ render() {
36
+ return j`<slot></slot>`;
37
+ }
38
+ }, n = new WeakMap(), b = new WeakMap(), o = s, (() => {
39
+ const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
40
+ v = [z(), S({ reflect: !0 })], p = [z(), S({ reflect: !0 })], g(s, null, v, { kind: "accessor", name: "mounting", static: !1, private: !1, access: { has: (a) => "mounting" in a, get: (a) => a.mounting, set: (a, d) => {
41
+ a.mounting = d;
42
+ } }, metadata: i }, _, k), g(s, null, p, { kind: "accessor", name: "background", static: !1, private: !1, access: { has: (a) => "background" in a, get: (a) => a.background, set: (a, d) => {
43
+ a.background = d;
44
+ } }, metadata: i }, f, w), g(null, e = { value: o }, r, { kind: "class", name: o.name, metadata: i }, null, t), o = e.value, i && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
45
+ })(), s.styles = O, l(o, t), o;
46
+ })();
47
+ export {
48
+ B as SbbSeatReservationAreaElement
49
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @entrypoint
3
+ */
4
+ export * from './seat-reservation-area/seat-reservation-area.component.js';
5
+ //# sourceMappingURL=seat-reservation-area.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-area.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation-area.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,4DAA4D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SbbSeatReservationAreaElement as t } from "./seat-reservation-area/seat-reservation-area.component.js";
2
+ export {
3
+ t as SbbSeatReservationAreaElement
4
+ };
@@ -0,0 +1,9 @@
1
+ import { TemplateResult } from 'lit';
2
+ /**
3
+ * svgImageByOSDMCode Function returns the corresponding svg image by OSDM Code
4
+ * @param osdmCode
5
+ * @returns The SVG Image as TemplateResult if it matches the OSDM code, or null if it's not found.
6
+ */
7
+ export declare const svgImageByOSDMCode: (osdmCode: string) => TemplateResult | null;
8
+ export declare const assetsTemplate: TemplateResult;
9
+ //# sourceMappingURL=seat-reservation-assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-assets.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-graphic/seat-reservation-assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKhD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AAUxC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,cAAc,GAAG,IAMtE,CAAC;AAmSF,eAAO,MAAM,cAAc,EAAE,cAgB5B,CAAC"}
@@ -0,0 +1,317 @@
1
+ import { html as d } from "lit";
2
+ import { unsafeHTML as s } from "lit/directives/unsafe-html.js";
3
+ import { svgs as _, mapIconToSvg as r } from "../common.js";
4
+ import "@sbb-esta/lyne-elements/table.js";
5
+ import "../seat-reservation-graphic.js";
6
+ const E = (A) => d`
7
+ <div class="story-asset">
8
+ <span class="story-asset__preview">${s(A)}</span>
9
+ </div>
10
+ `, t = (A) => {
11
+ var e, a;
12
+ return (e = r[A]) != null && e.svg ? E(r[A].svg) : (a = r[A]) != null && a.svgName ? d`<sbb-icon name="${r[A].svgName}"></sbb-icon>` : null;
13
+ }, R = d`
14
+ <sbb-table-wrapper>
15
+ <table class="sbb-table">
16
+ <thead>
17
+ <tr>
18
+ <th scope="col">SVG</th>
19
+ <th scope="col">Figma</th>
20
+ <th scope="col">Code</th>
21
+ </tr>
22
+ </thead>
23
+ <tbody>
24
+ <tr>
25
+ <td>${t("PLACE_BICYCLE_FREE")}</td>
26
+ <td>Place-Bike: Available</td>
27
+ <td>PLACE_BICYCLE_FREE</td>
28
+ </tr>
29
+ <tr>
30
+ <td>${t("PLACE_BICYCLE_SELECTED")}</td>
31
+ <td>Place-Bike: Selected</td>
32
+ <td>PLACE_BICYCLE_SELECTED</td>
33
+ </tr>
34
+ <tr>
35
+ <td>${t("PLACE_BICYCLE_ALLOCATED")}</td>
36
+ <td>Place-Bike: Unavailable</td>
37
+ <td>PLACE_BICYCLE_ALLOCATED</td>
38
+ </tr>
39
+ <tr>
40
+ <td>${t("PLACE_BICYCLE_RESTRICTED")}</td>
41
+ <td>Place-Bike: Not bookable</td>
42
+ <td>PLACE_BICYCLE_RESTRICTED</td>
43
+ </tr>
44
+ <tr>
45
+ <td>${t("PLACE_SEAT_FREE")}</td>
46
+ <td>Place-Seat: Available</td>
47
+ <td>PLACE_SEAT_FREE</td>
48
+ </tr>
49
+ <tr>
50
+ <td>${t("PLACE_SEAT_SELECTED")}</td>
51
+ <td>Place-Seat: Selected</td>
52
+ <td>PLACE_SEAT_SELECTED</td>
53
+ </tr>
54
+ <tr>
55
+ <td>${t("PLACE_SEAT_ALLOCATED")}</td>
56
+ <td>Place-Seat: Unavailable</td>
57
+ <td>PLACE_SEAT_ALLOCATED</td>
58
+ </tr>
59
+ <tr>
60
+ <td>${t("PLACE_SEAT_RESTRICTED")}</td>
61
+ <td>Place-Seat: Not bookable</td>
62
+ <td>PLACE_SEAT_RESTRICTED</td>
63
+ </tr>
64
+ </tbody>
65
+ </table>
66
+ </sbb-table-wrapper>
67
+ `, o = d`
68
+ <sbb-table-wrapper>
69
+ <table class="sbb-table">
70
+ <thead>
71
+ <tr>
72
+ <th scope="col">SVG</th>
73
+ <th scope="col">Figma</th>
74
+ <th scope="col">OSDM Code</th>
75
+ </tr>
76
+ </thead>
77
+ <tbody>
78
+ <tr>
79
+ <td>${t("EASY_ACCESS_AREA")}</td>
80
+ <td>Easy Access Area</td>
81
+ <td>EASY_ACCESS_AREA</td>
82
+ </tr>
83
+ <tr>
84
+ <td>${t("ENTRY_EXIT")}</td>
85
+ <td>Entrance</td>
86
+ <td>ENTRY_EXIT</td>
87
+ </tr>
88
+ <tr>
89
+ <td>${t("LUGGAGE_AREA")}</td>
90
+ <td>Luggage</td>
91
+ <td>LUGGAGE_AREA</td>
92
+ </tr>
93
+ <tr>
94
+ <td>${t("MULTI_FUNCTION_AREA")}</td>
95
+ <td>Multi Function Area</td>
96
+ <td>MULTI_FUNCTION_AREA</td>
97
+ </tr>
98
+ <tr>
99
+ <td>${t("PLAYGROUND_AREA")}</td>
100
+ <td>Playground</td>
101
+ <td>PLAYGROUND_AREA</td>
102
+ </tr>
103
+ <tr>
104
+ <td>${t("PRAM_AREA")}</td>
105
+ <td>Pram</td>
106
+ <td>PRAM_AREA</td>
107
+ </tr>
108
+ <tr>
109
+ <td>${t("SKI_AREA")}</td>
110
+ <td>Ski</td>
111
+ <td>SKI_AREA</td>
112
+ </tr>
113
+ <tr>
114
+ <td>${t("STAIR_AREA")}</td>
115
+ <td>Stair</td>
116
+ <td>STAIR_AREA</td>
117
+ </tr>
118
+ <tr>
119
+ <td>${t("TOILET_AREA")}</td>
120
+ <td>Toilet</td>
121
+ <td>TOILET_AREA</td>
122
+ </tr>
123
+ <tr>
124
+ <td>${t("TOILET_WHEELCHAIR_AREA")}</td>
125
+ <td>Toilet-Handicap</td>
126
+ <td>TOILET_WHEELCHAIR_AREA</td>
127
+ </tr>
128
+ <tr>
129
+ <td>${t("WARDROBE_AREA")}</td>
130
+ <td>Wardrobe</td>
131
+ <td>WARDROBE_AREA</td>
132
+ </tr>
133
+ </tbody>
134
+ </table>
135
+ </sbb-table-wrapper>
136
+ `, l = d`
137
+ <sbb-table-wrapper>
138
+ <table aria-label="Available Service Icons" class="sbb-table">
139
+ <thead>
140
+ <tr>
141
+ <th scope="col">SVG</th>
142
+ <th scope="col">Figma</th>
143
+ <th scope="col">OSDM Code</th>
144
+ </tr>
145
+ </thead>
146
+ <tbody>
147
+ <tr>
148
+ <td>${t("BISTRO")}</td>
149
+ <td>Bistro</td>
150
+ <td>BISTRO</td>
151
+ </tr>
152
+ <tr>
153
+ <td>${t("BUSINESS")}</td>
154
+ <td>Business</td>
155
+ <td>BUSINESS</td>
156
+ </tr>
157
+ <tr>
158
+ <td>${t("PLAYGROUND_ICON")}</td>
159
+ <td>Family</td>
160
+ <td>PLAYGROUND_ICON</td>
161
+ </tr>
162
+ <tr>
163
+ <td>${t("LUGGAGE_AREA")}</td>
164
+ <td>Luggage</td>
165
+ <td>LUGGAGE_AREA</td>
166
+ </tr>
167
+ <tr>
168
+ <td>${t("MULTI_FUNCTION_AREA")}</td>
169
+ <td>Multifunction</td>
170
+ <td>MULTI_FUNCTION_AREA</td>
171
+ </tr>
172
+ <tr>
173
+ <td>${t("PRAM_ICON")}</td>
174
+ <td>Pram</td>
175
+ <td>PRAM_ICON</td>
176
+ </tr>
177
+ <tr>
178
+ <td>${t("EASY_ACCESS_AREA")}</td>
179
+ <td>Easy Access Area</td>
180
+ <td>EASY_ACCESS_AREA</td>
181
+ </tr>
182
+ <tr>
183
+ <td>${t("RESTAURANT_ICON")}</td>
184
+ <td>Restaurant</td>
185
+ <td>RESTAURANT_ICON</td>
186
+ </tr>
187
+ <tr>
188
+ <td>${t("SILENCE_AREA_ICON")}</td>
189
+ <td>Silence</td>
190
+ <td>SILENCE_AREA_ICON</td>
191
+ </tr>
192
+ <tr>
193
+ <td>${t("TOILET_AREA")}</td>
194
+ <td>Toilet</td>
195
+ <td>TOILET_AREA</td>
196
+ </tr>
197
+ <tr>
198
+ <td>${t("TOILET_WHEELCHAIR_AREA")}</td>
199
+ <td>Toilet-PRM</td>
200
+ <td>TOILET_WHEELCHAIR_AREA</td>
201
+ </tr>
202
+ <tr>
203
+ <td>${t("WHEELCHAIR_ICON")}</td>
204
+ <td>Wheelchair</td>
205
+ <td>WHEELCHAIR_ICON</td>
206
+ </tr>
207
+ <tr>
208
+ <td>${t("WIFI")}</td>
209
+ <td>Wifi</td>
210
+ <td>WIFI</td>
211
+ </tr>
212
+ </tbody>
213
+ </table>
214
+ </sbb-table-wrapper>
215
+ `, T = d`
216
+ <sbb-table-wrapper>
217
+ <table class="sbb-table">
218
+ <thead>
219
+ <tr>
220
+ <th scope="col">SVG</th>
221
+ <th scope="col">Figma</th>
222
+ <th scope="col">OSDM Code</th>
223
+ </tr>
224
+ </thead>
225
+ <tbody>
226
+ <tr>
227
+ <td>${t("DRIVER_AREA")}</td>
228
+ <td>Driver: Train</td>
229
+ <td>DRIVER_AREA</td>
230
+ </tr>
231
+ <tr>
232
+ <td>${t("DRIVER_AREA_FULL_TRAIN")}</td>
233
+ <td>Driver: Train</td>
234
+ <td>DRIVER_AREA_FULL_TRAIN</td>
235
+ </tr>
236
+ <tr>
237
+ <td>${t("DRIVER_AREA_FULL_BUS")}</td>
238
+ <td>Driver: Bus</td>
239
+ <td>DRIVER_AREA_FULL_BUS</td>
240
+ </tr>
241
+ <tr>
242
+ <td>${t("COMPARTMENT_PASSAGE_HIGH")}</td>
243
+ <td>Passage-Compartment: Top</td>
244
+ <td>COMPARTMENT_PASSAGE<br />COMPARTMENT_PASSAGE_HIGH</td>
245
+ </tr>
246
+ <tr>
247
+ <td>${t("COMPARTMENT_PASSAGE")}</td>
248
+ <td>Passage-Compartment: Middle</td>
249
+ <td>COMPARTMENT_PASSAGE<br />COMPARTMENT_PASSAGE_MIDDLE</td>
250
+ </tr>
251
+ <tr>
252
+ <td>${t("COMPARTMENT_PASSAGE_LOW")}</td>
253
+ <td>Passage-Compartment: Bottom</td>
254
+ <td>COMPARTMENT_PASSAGE<br />COMPARTMENT_PASSAGE_LOW</td>
255
+ </tr>
256
+ <tr>
257
+ <td>${t("COACH_PASSAGE")}</td>
258
+ <td>Passage-Waggon Type: Left</td>
259
+ <td>COACH_PASSAGE</td>
260
+ </tr>
261
+ <tr>
262
+ <td>${E(_.chassisPassageWaggonBottomRight)}</td>
263
+ <td>Passage-Waggon Type: Right</td>
264
+ <td
265
+ style="background: linear-gradient(90deg, var(--sbb-color-white) 5%, var(--sbb-color-red));"
266
+ >
267
+ TODO: check if still in use, may be deleted
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <td>${t("COACH_WALL_NO_PASSAGE")}</td>
272
+ <td>Row-Empty: Top/Left</td>
273
+ <td>COACH_WALL_NO_PASSAGE</td>
274
+ </tr>
275
+ <tr>
276
+ <td>${t("COACH_BORDER_MIDDLE")}</td>
277
+ <td>Row-Empty: Middle</td>
278
+ <td>COACH_BORDER_MIDDLE</td>
279
+ </tr>
280
+ <tr>
281
+ <td>${E(_.chassisSeparator)}</td>
282
+ <td>Separator</td>
283
+ <td
284
+ style="background: linear-gradient(90deg, var(--sbb-color-white) 5%, var(--sbb-color-red))"
285
+ >
286
+ TODO: check if still in use, may be deleted
287
+ </td>
288
+ </tr>
289
+ <tr>
290
+ <td>${t("TABLE")}</td>
291
+ <td>Table</td>
292
+ <td>TABLE</td>
293
+ </tr>
294
+ </tbody>
295
+ </table>
296
+ </sbb-table-wrapper>
297
+ `, I = d`
298
+ <style>
299
+ .story-asset {
300
+ width: max-content;
301
+ background-color: var(--sbb-color-white);
302
+ }
303
+ </style>
304
+ <h1>List of all currently available assets.</h1>
305
+ <h2>Interior</h2>
306
+ ${R}
307
+ <h2>Layout</h2>
308
+ ${o}
309
+ <h2>Service Icons</h2>
310
+ ${l}
311
+ <h2>Chassis</h2>
312
+ ${T}
313
+ `;
314
+ export {
315
+ I as assetsTemplate,
316
+ t as svgImageByOSDMCode
317
+ };
@@ -0,0 +1,29 @@
1
+ import { CSSResultGroup, PropertyValues, TemplateResult, LitElement } from 'lit';
2
+ /**
3
+ * Output one of the SVG graphics based on its code.
4
+ */
5
+ export declare class SbbSeatReservationGraphicElement extends LitElement {
6
+ static styles: CSSResultGroup;
7
+ /** Name of the SVG graphic to be displayed. */
8
+ accessor name: string;
9
+ /** if true, scale the graphic content of the given element non-uniformly if necessary */
10
+ accessor stretch: boolean;
11
+ /** handles the rotation of the SVG graphic */
12
+ accessor rotation: number;
13
+ /** Inverse rotation for part of an SVG that can be rotated opposite to the normal rotation */
14
+ accessor inverseRotation: number;
15
+ /** width of the svg in pixels (without unit) */
16
+ accessor width: number;
17
+ /** height of the svg in pixels (without unit) */
18
+ accessor height: number;
19
+ private _language;
20
+ protected willUpdate(_changedProperties: PropertyValues): void;
21
+ protected render(): TemplateResult | null;
22
+ private _getSvgElement;
23
+ }
24
+ declare global {
25
+ interface HTMLElementTagNameMap {
26
+ 'sbb-seat-reservation-graphic': SbbSeatReservationGraphicElement;
27
+ }
28
+ }
29
+ //# sourceMappingURL=seat-reservation-graphic.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-graphic.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACpF,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAQvC,OAAO,iCAAiC,CAAC;AAEzC;;GAEG;AACH,qBAEM,gCAAiC,SAAQ,UAAU;IACvD,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,+CAA+C;IAC/C,SAEgB,IAAI,EAAE,MAAM,CAAM;IAElC,yFAAyF;IACzF,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,8CAA8C;IAC9C,SAEgB,QAAQ,EAAE,MAAM,CAAK;IAErC,8FAA8F;IAC9F,SAEgB,eAAe,EAAE,MAAM,CAAK;IAE5C,gDAAgD;IAChD,SAEgB,KAAK,EAAE,MAAM,CAAS;IAEtC,iDAAiD;IACjD,SAEgB,MAAM,EAAE,MAAM,CAAS;IAEvC,OAAO,CAAC,SAAS,CAAmC;cAEjC,UAAU,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;cAsBpD,MAAM,IAAI,cAAc,GAAG,IAAI;IAuBlD,OAAO,CAAC,cAAc;CASvB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,8BAA8B,EAAE,gCAAgC,CAAC;KAClE;CACF"}
@@ -0,0 +1,113 @@
1
+ var q = (i) => {
2
+ throw TypeError(i);
3
+ };
4
+ var H = (i, r, a) => r.has(i) || q("Cannot " + a);
5
+ var g = (i, r, a) => (H(i, r, "read from private field"), a ? a.call(i) : r.get(i)), b = (i, r, a) => r.has(i) ? q("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, a), o = (i, r, a, c) => (H(i, r, "write to private field"), c ? c.call(i, a) : r.set(i, a), a);
6
+ import { __runInitializers as h, __esDecorate as m } from "tslib";
7
+ import { SbbLanguageController as J } from "@sbb-esta/lyne-elements/core/controllers.js";
8
+ import { forceType as w } from "@sbb-esta/lyne-elements/core/decorators.js";
9
+ import { css as K, LitElement as O, html as z } from "lit";
10
+ import { customElement as Q, property as y } from "lit/decorators.js";
11
+ import { classMap as V } from "lit/directives/class-map.js";
12
+ import { mapIconToSvg as W, getI18nSeatReservation as X } from "../common.js";
13
+ import "@sbb-esta/lyne-elements/icon.js";
14
+ const Y = K`*,:before,:after{box-sizing:border-box}:host{--sbb-reservation-graphic-width: 16;--sbb-reservation-graphic-height: 16;--sbb-reservation-graphic-rotation: 0;--sbb-reservation-graphic-inverse-rotation: 0}.sbb-sr-icon,.sbb-sr-graphic{--sbb-icon-svg-width: calc(var(--sbb-reservation-graphic-width) * .0625rem);--sbb-icon-svg-height: calc(var(--sbb-reservation-graphic-height) * .0625rem);display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-reservation-graphic-width) * .0625rem);height:calc(var(--sbb-reservation-graphic-height) * .0625rem);transform-origin:center;rotate:calc(var(--sbb-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite)}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-reservation-graphic-inverse-rotation) * 1deg)}@media (forced-colors: active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}.sbb-sr-graphic .no-bg{fill:transparent}}`;
15
+ let ct = (() => {
16
+ var v, p, _, d, u, f, n;
17
+ let i = [Q("sbb-seat-reservation-graphic")], r, a = [], c, R = O, x, S = [], I = [], N, $ = [], k = [], E, D = [], C = [], L, T = [], A = [], M, P = [], U = [], B, F = [], G = [];
18
+ return n = class extends R {
19
+ constructor() {
20
+ super(...arguments);
21
+ b(this, v);
22
+ b(this, p);
23
+ b(this, _);
24
+ b(this, d);
25
+ b(this, u);
26
+ b(this, f);
27
+ o(this, v, h(this, S, "")), o(this, p, (h(this, I), h(this, $, !1))), o(this, _, (h(this, k), h(this, D, 0))), o(this, d, (h(this, C), h(this, T, 0))), o(this, u, (h(this, A), h(this, P, null))), o(this, f, (h(this, U), h(this, F, null))), this._language = (h(this, G), new J(this));
28
+ }
29
+ /** Name of the SVG graphic to be displayed. */
30
+ get name() {
31
+ return g(this, v);
32
+ }
33
+ set name(t) {
34
+ o(this, v, t);
35
+ }
36
+ /** if true, scale the graphic content of the given element non-uniformly if necessary */
37
+ get stretch() {
38
+ return g(this, p);
39
+ }
40
+ set stretch(t) {
41
+ o(this, p, t);
42
+ }
43
+ /** handles the rotation of the SVG graphic */
44
+ get rotation() {
45
+ return g(this, _);
46
+ }
47
+ set rotation(t) {
48
+ o(this, _, t);
49
+ }
50
+ /** Inverse rotation for part of an SVG that can be rotated opposite to the normal rotation */
51
+ get inverseRotation() {
52
+ return g(this, d);
53
+ }
54
+ set inverseRotation(t) {
55
+ o(this, d, t);
56
+ }
57
+ /** width of the svg in pixels (without unit) */
58
+ get width() {
59
+ return g(this, u);
60
+ }
61
+ set width(t) {
62
+ o(this, u, t);
63
+ }
64
+ /** height of the svg in pixels (without unit) */
65
+ get height() {
66
+ return g(this, f);
67
+ }
68
+ set height(t) {
69
+ o(this, f, t);
70
+ }
71
+ willUpdate(t) {
72
+ var e, s, l, j;
73
+ super.willUpdate(t), t.has("width") && this.width && ((e = this.style) == null || e.setProperty("--sbb-reservation-graphic-width", `${this.width}`)), t.has("height") && this.height && ((s = this.style) == null || s.setProperty("--sbb-reservation-graphic-height", `${this.height}`)), t.has("rotation") && ((l = this.style) == null || l.setProperty("--sbb-reservation-graphic-rotation", `${this.rotation}`)), t.has("inverseRotation") && ((j = this.style) == null || j.setProperty("--sbb-reservation-graphic-inverse-rotation", `${this.inverseRotation}`));
74
+ }
75
+ render() {
76
+ const t = W[this.name];
77
+ return !(t != null && t.svg) && !(t != null && t.svgName) ? null : z`<span
78
+ class="${V({
79
+ "sbb-sr-icon": !!t.svgName,
80
+ "sbb-sr-graphic": !!t.svg
81
+ })}"
82
+ >
83
+ ${t.svgName ? z` <sbb-icon
84
+ name="${t.svgName || ""}"
85
+ aria-hidden="false"
86
+ aria-label="${X(t.svgName, this._language.current)}"
87
+ ></sbb-icon>` : z`${this._getSvgElement(t.svg)}`}
88
+ </span>`;
89
+ }
90
+ _getSvgElement(t) {
91
+ const e = new DOMParser(), s = t || "<svg></svg>", l = e.parseFromString(s, "image/svg+xml").firstElementChild;
92
+ return this.stretch && (l == null ? void 0 : l.nodeName.toLowerCase()) === "svg" && l.setAttribute("preserveAspectRatio", "none"), l;
93
+ }
94
+ }, v = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), d = new WeakMap(), u = new WeakMap(), f = new WeakMap(), c = n, (() => {
95
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(R[Symbol.metadata] ?? null) : void 0;
96
+ x = [w(), y({ attribute: "name" })], N = [w(), y({ attribute: "stretch", type: Boolean })], E = [w(), y({ attribute: "rotation", type: Number })], L = [w(), y({ attribute: "inverse-roration", type: Number })], M = [w(), y({ attribute: "width", type: Number })], B = [w(), y({ attribute: "height", type: Number })], m(n, null, x, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (e) => "name" in e, get: (e) => e.name, set: (e, s) => {
97
+ e.name = s;
98
+ } }, metadata: t }, S, I), m(n, null, N, { kind: "accessor", name: "stretch", static: !1, private: !1, access: { has: (e) => "stretch" in e, get: (e) => e.stretch, set: (e, s) => {
99
+ e.stretch = s;
100
+ } }, metadata: t }, $, k), m(n, null, E, { kind: "accessor", name: "rotation", static: !1, private: !1, access: { has: (e) => "rotation" in e, get: (e) => e.rotation, set: (e, s) => {
101
+ e.rotation = s;
102
+ } }, metadata: t }, D, C), m(n, null, L, { kind: "accessor", name: "inverseRotation", static: !1, private: !1, access: { has: (e) => "inverseRotation" in e, get: (e) => e.inverseRotation, set: (e, s) => {
103
+ e.inverseRotation = s;
104
+ } }, metadata: t }, T, A), m(n, null, M, { kind: "accessor", name: "width", static: !1, private: !1, access: { has: (e) => "width" in e, get: (e) => e.width, set: (e, s) => {
105
+ e.width = s;
106
+ } }, metadata: t }, P, U), m(n, null, B, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (e) => "height" in e, get: (e) => e.height, set: (e, s) => {
107
+ e.height = s;
108
+ } }, metadata: t }, F, G), m(null, r = { value: c }, i, { kind: "class", name: c.name, metadata: t }, null, a), c = r.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
109
+ })(), n.styles = Y, h(c, a), c;
110
+ })();
111
+ export {
112
+ ct as SbbSeatReservationGraphicElement
113
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @entrypoint
3
+ */
4
+ export * from './seat-reservation-graphic/seat-reservation-graphic.component.js';
5
+ //# sourceMappingURL=seat-reservation-graphic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-graphic.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/seat-reservation/seat-reservation-graphic.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kEAAkE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SbbSeatReservationGraphicElement as t } from "./seat-reservation-graphic/seat-reservation-graphic.component.js";
2
+ export {
3
+ t as SbbSeatReservationGraphicElement
4
+ };
@@ -0,0 +1,66 @@
1
+ import { EventEmitter } from '@sbb-esta/lyne-elements/core/eventing.js';
2
+ import { CSSResultGroup, PropertyValues, TemplateResult, LitElement } from 'lit';
3
+ import { PlaceTravelClass } from '../../common.js';
4
+ export type SelectCoachEventDetails = number;
5
+ /**
6
+ * This component will display the navigation coach item for Seat reservation.
7
+ *
8
+ * @event {CustomEvent<SelectCoachEventDetails>} selectCoach - Emits when a coach within the navigation was selected and returns the clicked coach nav index
9
+ * @event {CustomEvent<void>} focusCoach - Emits when a nav coach has the focus
10
+ */
11
+ export declare class SbbSeatReservationNavigationCoachElement extends LitElement {
12
+ static styles: CSSResultGroup;
13
+ static readonly events: {
14
+ readonly selectCoach: "selectCoach";
15
+ readonly focusCoach: "focusCoach";
16
+ };
17
+ /** Coach ID, which is used to identify the coach in the navigation */
18
+ accessor coachId: string;
19
+ /** Coach service property ids, which are used to display the services in the navigation */
20
+ accessor propertyIds: string[];
21
+ accessor selected: boolean;
22
+ accessor focused: boolean;
23
+ accessor index: number;
24
+ /** Travel class of the coach */
25
+ accessor travelClass: PlaceTravelClass[];
26
+ /** If the coach is a driver/restricted area */
27
+ accessor driverArea: boolean;
28
+ /** If the coach is the first in the navigation */
29
+ accessor first: boolean;
30
+ /** If the coach is the last in the navigation */
31
+ accessor last: boolean;
32
+ /** Disable the coach navigation */
33
+ accessor disable: boolean;
34
+ /** If the coach navigation should be displayed vertically */
35
+ accessor vertical: boolean;
36
+ private _language;
37
+ /** Emits when a coach within the navigation was selected */
38
+ protected selectNavCoach: EventEmitter<SelectCoachEventDetails>;
39
+ protected focusNavCoach: EventEmitter<void>;
40
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
41
+ /**
42
+ * Render a maximum of 3 of the service sign icons (slice(0,3)) regardless of the input from Backend,
43
+ * otherwise the layout could be destroyed. Furthermore, we have to filter out the value ANY_SEAT,
44
+ * since this is also passed as a property and does not need to be used here
45
+ *
46
+ * @protected
47
+ */
48
+ protected render(): TemplateResult;
49
+ private _getNavigationButton;
50
+ private _getBtnInformation;
51
+ private _getTitleDescriptionNavCoachButton;
52
+ private _getAriaDescriptionCoachServices;
53
+ /**
54
+ * emits the index of the coach array for the main navigation.
55
+ * @param coachIndex
56
+ * @private
57
+ */
58
+ private _selectNavCoach;
59
+ private _getCoachServiceClassNumber;
60
+ }
61
+ declare global {
62
+ interface HTMLElementTagNameMap {
63
+ 'sbb-seat-reservation-navigation-coach': SbbSeatReservationNavigationCoachElement;
64
+ }
65
+ }
66
+ //# sourceMappingURL=seat-reservation-navigation-coach.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-navigation-coach.component.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC7F,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIxD,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AAIpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C;;;;;GAKG;AACH,qBAEM,wCAAyC,SAAQ,UAAU;IAC/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX,sEAAsE;IACtE,SAEgB,OAAO,EAAE,MAAM,CAAM;IAErC,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAG3C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAG1C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,SAEgB,KAAK,EAAE,MAAM,CAAK;IAElC,gCAAgC;IAChC,SACgB,WAAW,EAAE,gBAAgB,EAAE,CAAiB;IAEhE,+CAA+C;IAC/C,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C,kDAAkD;IAClD,SAEgB,KAAK,EAAE,OAAO,CAAS;IAEvC,iDAAiD;IACjD,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC,mCAAmC;IACnC,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,6DAA6D;IAC7D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;IAEpD,4DAA4D;IAC5D,SAAS,CAAC,cAAc,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAG7D;IACF,SAAS,CAAC,aAAa,EAAE,YAAY,CAAC,IAAI,CAAC,CAGzC;cAEiB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAuB5E;;;;;;OAMG;cACgB,MAAM,IAAI,cAAc;IAyB3C,OAAO,CAAC,oBAAoB;IAwB5B,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,kCAAkC;IA4B1C,OAAO,CAAC,gCAAgC;IAYxC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,2BAA2B;CASpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uCAAuC,EAAE,wCAAwC,CAAC;KACnF;CACF"}