@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,248 @@
1
+ var dt = (o) => {
2
+ throw TypeError(o);
3
+ };
4
+ var vt = (o, n, c) => n.has(o) || dt("Cannot " + c);
5
+ var l = (o, n, c) => (vt(o, n, "read from private field"), c ? c.call(o) : n.get(o)), b = (o, n, c) => n.has(o) ? dt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, c), s = (o, n, c, h) => (vt(o, n, "write to private field"), h ? h.call(o, c) : n.set(o, c), c);
6
+ import { __runInitializers as i, __esDecorate as d } from "tslib";
7
+ import { SbbLanguageController as ut } from "@sbb-esta/lyne-elements/core/controllers.js";
8
+ import { forceType as _ } from "@sbb-esta/lyne-elements/core/decorators.js";
9
+ import { EventEmitter as ht } from "@sbb-esta/lyne-elements/core/eventing.js";
10
+ import { css as mt, LitElement as ft, nothing as z, html as u } from "lit";
11
+ import { customElement as pt, property as v } from "lit/decorators.js";
12
+ import { classMap as _t } from "lit/directives/class-map.js";
13
+ import { getI18nSeatReservation as E } from "../../common/translations.js";
14
+ import "@sbb-esta/lyne-elements/screen-reader-only.js";
15
+ import "../seat-reservation-navigation-services.js";
16
+ const xt = mt`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-navigation-travelclass-spacing: .625rem;--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-granite);--sbb-seat-reservation-navigation-btn-outline-width: var(--sbb-border-width-1x);--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color-selected: var(--sbb-color-black);--sbb-seat-reservation-navigation-btn-outline-width-hover: var(--sbb-border-width-2x);--sbb-seat-reservation-navigation-btn-background-color-hover: var(--sbb-color-cloud)}.sbb-sr-navigation__item-coach{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-2x);width:var(--sbb-train-formation-wagon-width);list-style-type:none}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{width:calc(100% - 1.125rem)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation__ctrl-button:not(.sbb-seat-reservation-navigation-driver-area){border-start-start-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class{margin-inline-start:var(--sbb-seat-reservation-navigation-travelclass-spacing)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-end-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__additional-information{padding-inline-end:var(--sbb-seat-reservation-navigation-travelclass-spacing)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{margin-inline-end:var(--sbb-seat-reservation-navigation-travelclass-spacing)}.sbb-sr-navigation__item-coach.vertical-coach{flex-direction:row}.sbb-sr-navigation__ctrl-button{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;flex-direction:column;justify-content:center;height:2.25rem;position:relative;outline:var(--sbb-seat-reservation-navigation-btn-outline-width) solid var(--sbb-seat-reservation-navigation-btn-outline-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-seat-reservation-navigation-btn-background-color);cursor:pointer}.sbb-sr-navigation__ctrl-button.sbb-sr-navigation-driver-area{border-radius:var(--sbb-border-radius-8x);cursor:initial}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button,.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled,.sbb-sr-navigation-driver-area),.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-outline-width: var( --sbb-seat-reservation-navigation-btn-outline-width-hover );--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-silver)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-metal)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-anthracite)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button{--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-milk)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-black)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-smoke)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-iron)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-platinum);cursor:unset;pointer-events:unset}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-graphite)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-graphite)}.sbb-sr-navigation__additional-information{display:flex;justify-content:space-between;align-items:center;flex:1;column-gap:var(--sbb-spacing-fixed-2x);padding-inline:1rem 1rem;font-family:var(--sbb-typo-font-family);font-weight:700;color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__additional-information{color:var(--sbb-color-milk)}}.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}}@media (forced-colors: active) and (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:inherit}}.sbb-sr-navigation__item-coach-number .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-charcoal)}.sbb-sr-navigation--first-class{width:calc(100% - .5rem);position:absolute;inset-block-start:.1875rem;inset-inline-start:.25rem;border:var(--sbb-border-width-1x) solid transparent;border-radius:var(--sbb-border-radius-1x);margin:auto;background-color:var(--sbb-color-lemon)}.sbb-sr-navigation__item-coach-travelclass{display:flex;align-items:center;justify-content:center;min-height:1.25rem;min-width:1.25rem;border-radius:var(--sbb-border-radius-1x);text-align:center;background-color:var(--sbb-color-granite);color:var(--sbb-color-white)}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation__ctrl-button{flex-direction:row-reverse;height:5rem;min-width:2.25rem}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation__additional-information{flex-direction:column-reverse;padding-block:1rem 1rem;padding-inline-start:unset;padding-inline-end:unset}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation--first-class{height:calc(100% - .5rem);width:initial;inset-inline-end:.1875rem;inset-block-start:.25rem;inset-inline-start:initial}.sbb-sr-navigation__item-coach.vertical-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.vertical-coach.last-coach .sbb-sr-navigation--first-class{height:calc(100% - 1.125rem)}.sbb-sr-navigation__item-coach.vertical-coach.first-coach:not(.last-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-2x)}.sbb-sr-navigation__item-coach.vertical-coach.first-coach:not(.last-coach) .sbb-sr-navigation--first-class{margin-block-start:var(--sbb-seat-reservation-navigation-travelclass-spacing);margin-inline-start:initial}.sbb-sr-navigation__item-coach.vertical-coach.last-coach:not(.first-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-2x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.vertical-coach.last-coach:not(.first-coach) .sbb-sr-navigation--first-class{margin-block-end:var(--sbb-seat-reservation-navigation-travelclass-spacing);margin-inline-end:initial}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation-driver-area{height:5rem;min-width:2.25rem}`, yt = 3;
17
+ let Rt = (() => {
18
+ var m, f, p, x, y, C, I, k, S, A, w, r;
19
+ let o = [pt("sbb-seat-reservation-navigation-coach")], n, c = [], h, B = ft, $, T = [], R = [], D, O = [], L = [], V, j = [], H = [], G, K = [], U = [], q, F = [], M = [], Y, P = [], X = [], J, Q = [], W = [], Z, tt = [], at = [], et, st = [], it = [], rt, ot = [], nt = [], ct, lt = [], bt = [];
20
+ var N = (r = class extends B {
21
+ constructor() {
22
+ super(...arguments);
23
+ b(this, m);
24
+ b(this, f);
25
+ b(this, p);
26
+ b(this, x);
27
+ b(this, y);
28
+ b(this, C);
29
+ b(this, I);
30
+ b(this, k);
31
+ b(this, S);
32
+ b(this, A);
33
+ b(this, w);
34
+ s(this, m, i(this, T, "")), s(this, f, (i(this, R), i(this, O, []))), s(this, p, (i(this, L), i(this, j, !1))), s(this, x, (i(this, H), i(this, K, !1))), s(this, y, (i(this, U), i(this, F, 0))), s(this, C, (i(this, M), i(this, P, ["ANY_CLASS"]))), s(this, I, (i(this, X), i(this, Q, !1))), s(this, k, (i(this, W), i(this, tt, !1))), s(this, S, (i(this, at), i(this, st, !1))), s(this, A, (i(this, it), i(this, ot, !1))), s(this, w, (i(this, nt), i(this, lt, !1))), this._language = (i(this, bt), new ut(this)), this.selectNavCoach = new ht(this, N.events.selectCoach), this.focusNavCoach = new ht(this, N.events.focusCoach);
35
+ }
36
+ /** Coach ID, which is used to identify the coach in the navigation */
37
+ get coachId() {
38
+ return l(this, m);
39
+ }
40
+ set coachId(a) {
41
+ s(this, m, a);
42
+ }
43
+ /** Coach service property ids, which are used to display the services in the navigation */
44
+ get propertyIds() {
45
+ return l(this, f);
46
+ }
47
+ set propertyIds(a) {
48
+ s(this, f, a);
49
+ }
50
+ /* pre-selected Coach index property */
51
+ get selected() {
52
+ return l(this, p);
53
+ }
54
+ set selected(a) {
55
+ s(this, p, a);
56
+ }
57
+ /* focus Coach index property */
58
+ get focused() {
59
+ return l(this, x);
60
+ }
61
+ set focused(a) {
62
+ s(this, x, a);
63
+ }
64
+ get index() {
65
+ return l(this, y);
66
+ }
67
+ set index(a) {
68
+ s(this, y, a);
69
+ }
70
+ /** Travel class of the coach */
71
+ get travelClass() {
72
+ return l(this, C);
73
+ }
74
+ set travelClass(a) {
75
+ s(this, C, a);
76
+ }
77
+ /** If the coach is a driver/restricted area */
78
+ get driverArea() {
79
+ return l(this, I);
80
+ }
81
+ set driverArea(a) {
82
+ s(this, I, a);
83
+ }
84
+ /** If the coach is the first in the navigation */
85
+ get first() {
86
+ return l(this, k);
87
+ }
88
+ set first(a) {
89
+ s(this, k, a);
90
+ }
91
+ /** If the coach is the last in the navigation */
92
+ get last() {
93
+ return l(this, S);
94
+ }
95
+ set last(a) {
96
+ s(this, S, a);
97
+ }
98
+ /** Disable the coach navigation */
99
+ get disable() {
100
+ return l(this, A);
101
+ }
102
+ set disable(a) {
103
+ s(this, A, a);
104
+ }
105
+ /** If the coach navigation should be displayed vertically */
106
+ get vertical() {
107
+ return l(this, w);
108
+ }
109
+ set vertical(a) {
110
+ s(this, w, a);
111
+ }
112
+ willUpdate(a) {
113
+ var t, e;
114
+ if (super.willUpdate(a), a.has("selected")) {
115
+ const g = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".sbb-sr-navigation__ctrl-button");
116
+ this.selected && g && (g.focus(), this.focusNavCoach.emit());
117
+ }
118
+ if (a.has("focused") && this.focused) {
119
+ const g = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".sbb-sr-navigation__ctrl-button");
120
+ g && g.focus();
121
+ }
122
+ }
123
+ /**
124
+ * Render a maximum of 3 of the service sign icons (slice(0,3)) regardless of the input from Backend,
125
+ * otherwise the layout could be destroyed. Furthermore, we have to filter out the value ANY_SEAT,
126
+ * since this is also passed as a property and does not need to be used here
127
+ *
128
+ * @protected
129
+ */
130
+ render() {
131
+ var a;
132
+ return this.propertyIds = this.propertyIds.filter((t) => t !== "ANY_SEAT").slice(0, yt), u`
133
+ <div
134
+ class="${_t({
135
+ "sbb-sr-navigation__item-coach": !0,
136
+ "last-coach": this.last,
137
+ "first-coach": this.first,
138
+ "vertical-coach": this.vertical,
139
+ "sbb-sr-navigation__item-coach--selected": this.selected
140
+ })}"
141
+ >
142
+ ${this._getNavigationButton()}
143
+ ${(a = this.propertyIds) != null && a.length ? u`<sbb-seat-reservation-navigation-services
144
+ ?vertical="${this.vertical}"
145
+ .propertyIds="${this.propertyIds}"
146
+ ></sbb-seat-reservation-navigation-services>` : z}
147
+ </div>
148
+ `;
149
+ }
150
+ _getNavigationButton() {
151
+ const a = this._getCoachServiceClassNumber(), t = this._getTitleDescriptionNavCoachButton(a), e = this._getAriaDescriptionCoachServices();
152
+ return u` <button
153
+ type="button"
154
+ ?disabled="${this.disable}"
155
+ class="${_t({
156
+ "sbb-sr-navigation__ctrl-button": !0,
157
+ "sbb-sr-navigation-driver-area": this.driverArea
158
+ })}"
159
+ title="${t}"
160
+ aria-describedby="nav-coach-service-descriptions-${this.index}"
161
+ @click=${() => this._selectNavCoach(this.index)}
162
+ >
163
+ ${this._getBtnInformation(a)}
164
+ </button>
165
+ <sbb-screen-reader-only id="nav-coach-service-descriptions-${this.index}"
166
+ >${e}</sbb-screen-reader-only
167
+ >`;
168
+ }
169
+ _getBtnInformation(a) {
170
+ var t;
171
+ return this.driverArea ? null : u`
172
+ ${a === 1 ? u`<span class="sbb-sr-navigation--first-class"></span>` : z}
173
+ ${((t = this.travelClass) == null ? void 0 : t.length) > 0 || this.coachId ? u`<div class="sbb-sr-navigation__additional-information">
174
+ ${this.coachId ? u`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
175
+ ${this.coachId}
176
+ </div>` : z}
177
+ <div
178
+ ${a ?? z}
179
+ class="sbb-sr-navigation__item-coach-travelclass"
180
+ aria-hidden="true"
181
+ >
182
+ ${a}
183
+ </div>
184
+ </div>` : z}
185
+ `;
186
+ }
187
+ _getTitleDescriptionNavCoachButton(a) {
188
+ if (this.driverArea)
189
+ return E("NAVIGATE_COACH_BLOCKED", this._language.current, [
190
+ this.coachId
191
+ ]);
192
+ let t = E("NAVIGATE_TO_COACH", this._language.current, [this.coachId]);
193
+ if (a) {
194
+ const g = E(a === 1 ? "SERVICE_CLASS_FIRST" : "SERVICE_CLASS_SECOND", this._language.current), gt = E("NAVIGATE_TO_COACH_SERVICE_CLASS_SUB", this._language.current, [g]);
195
+ t = t.concat(gt);
196
+ }
197
+ return t;
198
+ }
199
+ _getAriaDescriptionCoachServices() {
200
+ let a = null;
201
+ return this.propertyIds.length && (a = E("COACH_AVAILABLE_SERVICES", this._language.current) + ": ", a += this.propertyIds.map((t) => E(t, this._language.current)).join()), a;
202
+ }
203
+ /**
204
+ * emits the index of the coach array for the main navigation.
205
+ * @param coachIndex
206
+ * @private
207
+ */
208
+ _selectNavCoach(a) {
209
+ this.driverArea || this.selectNavCoach.emit(a);
210
+ }
211
+ _getCoachServiceClassNumber() {
212
+ var a, t;
213
+ return (a = this.travelClass) != null && a.includes("FIRST") ? 1 : (t = this.travelClass) != null && t.includes("SECOND") ? 2 : null;
214
+ }
215
+ }, m = new WeakMap(), f = new WeakMap(), p = new WeakMap(), x = new WeakMap(), y = new WeakMap(), C = new WeakMap(), I = new WeakMap(), k = new WeakMap(), S = new WeakMap(), A = new WeakMap(), w = new WeakMap(), h = r, (() => {
216
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(B[Symbol.metadata] ?? null) : void 0;
217
+ $ = [_(), v({ attribute: "coach-id" })], D = [v({ attribute: "property-ids", type: Array })], V = [_(), v({ type: Boolean })], G = [_(), v({ type: Boolean })], q = [_(), v({ type: Number })], Y = [v({ attribute: "travel-class", type: Array })], J = [_(), v({ attribute: "driver-area", type: Boolean })], Z = [_(), v({ type: Boolean })], et = [_(), v({ type: Boolean })], rt = [_(), v({ attribute: "disable", type: Boolean })], ct = [_(), v({ type: Boolean })], d(r, null, $, { kind: "accessor", name: "coachId", static: !1, private: !1, access: { has: (t) => "coachId" in t, get: (t) => t.coachId, set: (t, e) => {
218
+ t.coachId = e;
219
+ } }, metadata: a }, T, R), d(r, null, D, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (t) => "propertyIds" in t, get: (t) => t.propertyIds, set: (t, e) => {
220
+ t.propertyIds = e;
221
+ } }, metadata: a }, O, L), d(r, null, V, { kind: "accessor", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, get: (t) => t.selected, set: (t, e) => {
222
+ t.selected = e;
223
+ } }, metadata: a }, j, H), d(r, null, G, { kind: "accessor", name: "focused", static: !1, private: !1, access: { has: (t) => "focused" in t, get: (t) => t.focused, set: (t, e) => {
224
+ t.focused = e;
225
+ } }, metadata: a }, K, U), d(r, null, q, { kind: "accessor", name: "index", static: !1, private: !1, access: { has: (t) => "index" in t, get: (t) => t.index, set: (t, e) => {
226
+ t.index = e;
227
+ } }, metadata: a }, F, M), d(r, null, Y, { kind: "accessor", name: "travelClass", static: !1, private: !1, access: { has: (t) => "travelClass" in t, get: (t) => t.travelClass, set: (t, e) => {
228
+ t.travelClass = e;
229
+ } }, metadata: a }, P, X), d(r, null, J, { kind: "accessor", name: "driverArea", static: !1, private: !1, access: { has: (t) => "driverArea" in t, get: (t) => t.driverArea, set: (t, e) => {
230
+ t.driverArea = e;
231
+ } }, metadata: a }, Q, W), d(r, null, Z, { kind: "accessor", name: "first", static: !1, private: !1, access: { has: (t) => "first" in t, get: (t) => t.first, set: (t, e) => {
232
+ t.first = e;
233
+ } }, metadata: a }, tt, at), d(r, null, et, { kind: "accessor", name: "last", static: !1, private: !1, access: { has: (t) => "last" in t, get: (t) => t.last, set: (t, e) => {
234
+ t.last = e;
235
+ } }, metadata: a }, st, it), d(r, null, rt, { kind: "accessor", name: "disable", static: !1, private: !1, access: { has: (t) => "disable" in t, get: (t) => t.disable, set: (t, e) => {
236
+ t.disable = e;
237
+ } }, metadata: a }, ot, nt), d(r, null, ct, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (t) => "vertical" in t, get: (t) => t.vertical, set: (t, e) => {
238
+ t.vertical = e;
239
+ } }, metadata: a }, lt, bt), d(null, n = { value: h }, o, { kind: "class", name: h.name, metadata: a }, null, c), N = h = n.value, a && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
240
+ })(), r.styles = xt, r.events = {
241
+ selectCoach: "selectCoach",
242
+ focusCoach: "focusCoach"
243
+ }, i(h, c), r);
244
+ return N = h;
245
+ })();
246
+ export {
247
+ Rt as SbbSeatReservationNavigationCoachElement
248
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @entrypoint
3
+ */
4
+ export * from './seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js';
5
+ //# sourceMappingURL=seat-reservation-navigation-coach.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-navigation-coach.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oFAAoF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SbbSeatReservationNavigationCoachElement as o } from "./seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js";
2
+ export {
3
+ o as SbbSeatReservationNavigationCoachElement
4
+ };
@@ -0,0 +1,21 @@
1
+ import { CSSResultGroup, TemplateResult, LitElement } from 'lit';
2
+ /**
3
+ * Component displays the available service icons of one coach.
4
+ *
5
+ */
6
+ export declare class SbbSeatReservationNavigationServicesElement extends LitElement {
7
+ static styles: CSSResultGroup;
8
+ /** Coach service property ids, which are used to display the services in the navigation */
9
+ accessor propertyIds: string[];
10
+ /** If true, the service icons are displayed vertically */
11
+ accessor vertical: boolean;
12
+ private _language;
13
+ protected render(): TemplateResult;
14
+ private _getServiceLabelDescription;
15
+ }
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ 'sbb-seat-reservation-navigation-services': SbbSeatReservationNavigationServicesElement;
19
+ }
20
+ }
21
+ //# sourceMappingURL=seat-reservation-navigation-services.component.d.ts.map
@@ -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,80 @@
1
+ var x = (e) => {
2
+ throw TypeError(e);
3
+ };
4
+ var L = (e, s, a) => s.has(e) || x("Cannot " + a);
5
+ var _ = (e, s, a) => (L(e, s, "read from private field"), a ? a.call(e) : s.get(e)), d = (e, s, a) => s.has(e) ? x("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, a), p = (e, s, a, i) => (L(e, s, "write to private field"), i ? i.call(e, a) : s.set(e, a), a);
6
+ import { __runInitializers as b, __esDecorate as g } from "tslib";
7
+ import { SbbLanguageController as $ } 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 A, LitElement as j, nothing as z, html as E } from "lit";
10
+ import { customElement as C, property as D } from "lit/decorators.js";
11
+ import { classMap as k } from "lit/directives/class-map.js";
12
+ import { getI18nSeatReservation as m } from "../../common.js";
13
+ import "@sbb-esta/lyne-elements/screen-reader-only.js";
14
+ import "../../seat-reservation-graphic.js";
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
+ let J = (() => {
17
+ var o, c, n;
18
+ let e = [C("sbb-seat-reservation-navigation-services")], s, a = [], i, u = j, v, h = [], y = [], f, I = [], S = [];
19
+ return n = class extends u {
20
+ constructor() {
21
+ super(...arguments);
22
+ d(this, o);
23
+ d(this, c);
24
+ p(this, o, b(this, h, [])), p(this, c, (b(this, y), b(this, I, !1))), this._language = (b(this, S), new $(this));
25
+ }
26
+ /** Coach service property ids, which are used to display the services in the navigation */
27
+ get propertyIds() {
28
+ return _(this, o);
29
+ }
30
+ set propertyIds(r) {
31
+ p(this, o, r);
32
+ }
33
+ /** If true, the service icons are displayed vertically */
34
+ get vertical() {
35
+ return _(this, c);
36
+ }
37
+ set vertical(r) {
38
+ p(this, c, r);
39
+ }
40
+ render() {
41
+ var t;
42
+ const r = this.propertyIds.length ? this._getServiceLabelDescription() : null;
43
+ return E` <div
44
+ class="${k({
45
+ "sbb-sr-navigation__signs": !0,
46
+ "sbb-sr-navigation__signs--vertical": this.vertical
47
+ })}"
48
+ >
49
+ <sbb-screen-reader-only ${r || z}
50
+ >${r}</sbb-screen-reader-only
51
+ >
52
+ ${(t = this.propertyIds) == null ? void 0 : t.map((l) => E`
53
+ <sbb-seat-reservation-graphic
54
+ name=${l ?? z}
55
+ width="20"
56
+ height="20"
57
+ title=${m(l, this._language.current)}
58
+ aria-hidden="true"
59
+ ></sbb-seat-reservation-graphic>
60
+ `)}
61
+ </div>`;
62
+ }
63
+ //Generate the translated service label from the available properties
64
+ _getServiceLabelDescription() {
65
+ let r = null;
66
+ const t = this.propertyIds.map((l) => m(l, this._language.current)).filter((l) => !!l).join(", ");
67
+ return t && (r = m("COACH_AVAILABLE_SERVICES", this._language.current).concat(":").concat(t)), r;
68
+ }
69
+ }, o = new WeakMap(), c = new WeakMap(), i = n, (() => {
70
+ 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(n, null, v, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (t) => "propertyIds" in t, get: (t) => t.propertyIds, set: (t, l) => {
72
+ t.propertyIds = l;
73
+ } }, metadata: r }, h, y), g(n, null, f, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (t) => "vertical" in t, get: (t) => t.vertical, set: (t, l) => {
74
+ t.vertical = l;
75
+ } }, 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
+ })(), n.styles = O, b(i, a), i;
77
+ })();
78
+ export {
79
+ J as SbbSeatReservationNavigationServicesElement
80
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @entrypoint
3
+ */
4
+ export * from './seat-reservation-navigation-services/seat-reservation-navigation-services.component.js';
5
+ //# sourceMappingURL=seat-reservation-navigation-services.d.ts.map
@@ -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;;GAEG;AACH,cAAc,0FAA0F,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SbbSeatReservationNavigationServicesElement as a } from "./seat-reservation-navigation-services/seat-reservation-navigation-services.component.js";
2
+ export {
3
+ a as SbbSeatReservationNavigationServicesElement
4
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @entrypoint
3
+ */
4
+ export * from './seat-reservation-navigation/seat-reservation-navigation-coach.js';
5
+ export * from './seat-reservation-navigation/seat-reservation-navigation-services.js';
6
+ //# sourceMappingURL=seat-reservation-navigation.d.ts.map
@@ -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
+ };
@@ -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 '../common.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 identifier 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,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"}