@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773349433 → 4.7.0-dev.1773388997

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 (199) hide show
  1. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +65 -76
  2. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +72 -52
  3. package/autocomplete-grid/autocomplete-grid-button.js +3 -6
  4. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -17
  5. package/autocomplete-grid/autocomplete-grid-cell.js +4 -7
  6. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -21
  7. package/autocomplete-grid/autocomplete-grid-optgroup.js +3 -6
  8. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -33
  9. package/autocomplete-grid/autocomplete-grid-option.js +4 -9
  10. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -22
  11. package/autocomplete-grid/autocomplete-grid-row.js +4 -7
  12. package/autocomplete-grid/autocomplete-grid.js +3 -6
  13. package/autocomplete-grid-cell.component-Dak9wlBr.js +24 -0
  14. package/autocomplete-grid-option.component-DNRFHOwc.js +37 -0
  15. package/autocomplete-grid-row.component-DBHZQ0GQ.js +27 -0
  16. package/autocomplete-grid.js +9 -21
  17. package/autocomplete-grid.pure.js +7 -15
  18. package/core/datetime/date-helper.js +2 -191
  19. package/core/datetime.js +2 -5
  20. package/core/timetable/access-leg-helper.js +76 -71
  21. package/core/timetable/timetable-helper.js +9 -11
  22. package/core/timetable/timetable-properties.js +0 -1
  23. package/core/timetable.js +3 -7
  24. package/date-helper-CGproP5d.js +185 -0
  25. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +114 -122
  26. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +92 -70
  27. package/development/autocomplete-grid/autocomplete-grid-button.js +6 -4
  28. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -29
  29. package/development/autocomplete-grid/autocomplete-grid-cell.js +7 -5
  30. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +27 -22
  31. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +6 -4
  32. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -109
  33. package/development/autocomplete-grid/autocomplete-grid-option.js +7 -7
  34. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -91
  35. package/development/autocomplete-grid/autocomplete-grid-row.js +7 -5
  36. package/development/autocomplete-grid/autocomplete-grid.js +6 -4
  37. package/development/autocomplete-grid-cell.component-BBvM4o2H.js +42 -0
  38. package/development/autocomplete-grid-option.component-QzfM5eIE.js +123 -0
  39. package/development/autocomplete-grid-row.component-H8sCTCkT.js +104 -0
  40. package/development/autocomplete-grid.js +10 -14
  41. package/development/autocomplete-grid.pure.js +4 -13
  42. package/development/core/datetime/date-helper.js +2 -285
  43. package/development/core/datetime.js +2 -6
  44. package/development/core/timetable/access-leg-helper.js +104 -82
  45. package/development/core/timetable/timetable-helper.js +16 -17
  46. package/development/core/timetable/timetable-properties.js +0 -2
  47. package/development/core/timetable.js +3 -8
  48. package/development/date-helper-8_Y-PuHh.js +520 -0
  49. package/development/differenceInMinutes-DN_1Rk3O.js +110 -0
  50. package/development/format-Bbrn2bgo.js +1848 -0
  51. package/development/isValid-C-HzKv4v.js +178 -0
  52. package/development/journey-summary/journey-summary.component.js +2 -288
  53. package/development/journey-summary.component-uGhZvA4p.js +385 -0
  54. package/development/journey-summary.js +8 -5
  55. package/development/journey-summary.pure.js +2 -5
  56. package/development/pearl-chain/pearl-chain.component.js +2 -634
  57. package/development/pearl-chain-time/pearl-chain-time.component.js +2 -306
  58. package/development/pearl-chain-time.component-B8mayTWD.js +415 -0
  59. package/development/pearl-chain-time.js +8 -5
  60. package/development/pearl-chain-time.pure.js +2 -5
  61. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -28
  62. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -393
  63. package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +435 -0
  64. package/development/pearl-chain-vertical-item.js +8 -5
  65. package/development/pearl-chain-vertical-item.pure.js +2 -5
  66. package/development/pearl-chain-vertical.component-CswE7b3M.js +39 -0
  67. package/development/pearl-chain-vertical.js +8 -5
  68. package/development/pearl-chain-vertical.pure.js +2 -5
  69. package/development/pearl-chain.component-wpsTvoSe.js +704 -0
  70. package/development/pearl-chain.js +8 -5
  71. package/development/pearl-chain.pure.js +2 -5
  72. package/development/seat-reservation/common/mapper/icon-mapper.js +168 -71
  73. package/development/seat-reservation/common/mapper/mapper.js +153 -122
  74. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +570 -559
  75. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +992 -972
  76. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20334 -20367
  77. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1731 -1738
  78. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9741 -9782
  79. package/development/seat-reservation/common/mapper.js +1 -8
  80. package/development/seat-reservation/common/svgs.js +2 -46
  81. package/development/seat-reservation/common/translations/i18n.js +1118 -900
  82. package/development/seat-reservation/common/translations.js +1 -4
  83. package/development/seat-reservation/common/types.js +0 -2
  84. package/development/seat-reservation/common.js +7 -11
  85. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1305 -1230
  86. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +2 -859
  87. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -106
  88. package/development/seat-reservation/seat-reservation-area.js +7 -5
  89. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +35 -34
  90. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -162
  91. package/development/seat-reservation/seat-reservation-graphic.js +7 -5
  92. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -713
  93. package/development/seat-reservation/seat-reservation-navigation-coach.js +7 -5
  94. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -131
  95. package/development/seat-reservation/seat-reservation-navigation-services.js +7 -5
  96. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -601
  97. package/development/seat-reservation/seat-reservation-place-control.js +7 -5
  98. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -22
  99. package/development/seat-reservation/seat-reservation-scoped.js +7 -5
  100. package/development/seat-reservation/seat-reservation.js +7 -6
  101. package/development/seat-reservation-area.component-BK92ZtFo.js +138 -0
  102. package/development/seat-reservation-graphic.component-cUnsHh5x.js +193 -0
  103. package/development/seat-reservation-navigation-coach.component-D6Bglus8.js +828 -0
  104. package/development/seat-reservation-navigation-services.component-DYJ6Ddkg.js +179 -0
  105. package/development/seat-reservation-place-control.component-Bg9evKBW.js +726 -0
  106. package/development/seat-reservation-scoped.component-DRQ_I702.js +31 -0
  107. package/development/seat-reservation.component-Cq_aJKR0.js +818 -0
  108. package/development/seat-reservation.js +15 -28
  109. package/development/seat-reservation.pure.js +10 -28
  110. package/development/svgs-C3JMWR26.js +28 -0
  111. package/development/timetable-duration/timetable-duration.component.js +2 -108
  112. package/development/timetable-duration.component-DI0lET17.js +125 -0
  113. package/development/timetable-duration.js +8 -5
  114. package/development/timetable-duration.pure.js +2 -5
  115. package/development/timetable-row/timetable-row.component.js +2 -781
  116. package/development/timetable-row.component-CAED6Zwc.js +932 -0
  117. package/development/timetable-row.js +8 -13
  118. package/development/timetable-row.pure.js +2 -12
  119. package/development/toDate-Biiv3kyf.js +150 -0
  120. package/differenceInMinutes-Dr9gRqtu.js +27 -0
  121. package/format-CM5exOsN.js +1103 -0
  122. package/isValid-B9oVW3lA.js +36 -0
  123. package/journey-summary/journey-summary.component.js +2 -194
  124. package/journey-summary.component-Cq_4kaOp.js +264 -0
  125. package/journey-summary.js +5 -4
  126. package/journey-summary.pure.js +2 -4
  127. package/package.json +2 -2
  128. package/pearl-chain/pearl-chain.component.js +2 -165
  129. package/pearl-chain-time/pearl-chain-time.component.js +2 -157
  130. package/pearl-chain-time.component-DGDW5S1c.js +239 -0
  131. package/pearl-chain-time.js +5 -4
  132. package/pearl-chain-time.pure.js +2 -4
  133. package/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -17
  134. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -77
  135. package/pearl-chain-vertical-item.component-G22bWhLU.js +108 -0
  136. package/pearl-chain-vertical-item.js +5 -4
  137. package/pearl-chain-vertical-item.pure.js +2 -4
  138. package/pearl-chain-vertical.component-CXIDT5RD.js +21 -0
  139. package/pearl-chain-vertical.js +5 -4
  140. package/pearl-chain-vertical.pure.js +2 -4
  141. package/pearl-chain.component-DmjkVIva.js +194 -0
  142. package/pearl-chain.js +5 -4
  143. package/pearl-chain.pure.js +2 -4
  144. package/seat-reservation/common/mapper/icon-mapper.js +71 -71
  145. package/seat-reservation/common/mapper/mapper.js +95 -89
  146. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +568 -558
  147. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +989 -970
  148. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20332 -20366
  149. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1729 -1737
  150. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9739 -9781
  151. package/seat-reservation/common/mapper.js +3 -9
  152. package/seat-reservation/common/svgs.js +2 -243
  153. package/seat-reservation/common/translations/i18n.js +1084 -891
  154. package/seat-reservation/common/translations.js +2 -4
  155. package/seat-reservation/common/types.js +0 -1
  156. package/seat-reservation/common.js +9 -15
  157. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +832 -810
  158. package/seat-reservation/seat-reservation/seat-reservation.component.js +2 -420
  159. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -51
  160. package/seat-reservation/seat-reservation-area.js +4 -7
  161. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +68 -71
  162. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -75
  163. package/seat-reservation/seat-reservation-graphic.js +4 -7
  164. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -234
  165. package/seat-reservation/seat-reservation-navigation-coach.js +4 -7
  166. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -85
  167. package/seat-reservation/seat-reservation-navigation-services.js +4 -7
  168. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -203
  169. package/seat-reservation/seat-reservation-place-control.js +4 -7
  170. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -13
  171. package/seat-reservation/seat-reservation-scoped.js +4 -7
  172. package/seat-reservation/seat-reservation.js +5 -9
  173. package/seat-reservation-area.component-n-9rGn_y.js +75 -0
  174. package/seat-reservation-graphic.component-YTXRmKt0.js +102 -0
  175. package/seat-reservation-navigation-coach.component-YJ0vaYmO.js +333 -0
  176. package/seat-reservation-navigation-services.component-C3xnLJg2.js +127 -0
  177. package/seat-reservation-place-control.component-DmBAfM6K.js +322 -0
  178. package/seat-reservation-scoped.component-DPkz6u17.js +17 -0
  179. package/seat-reservation.component-C_anMkgw.js +364 -0
  180. package/seat-reservation.js +17 -39
  181. package/seat-reservation.pure.js +15 -32
  182. package/svgs-D9arBcqr.js +26 -0
  183. package/timetable-duration/timetable-duration.component.js +2 -57
  184. package/timetable-duration.component-DCu8Phts.js +65 -0
  185. package/timetable-duration.js +5 -4
  186. package/timetable-duration.pure.js +2 -4
  187. package/timetable-row/timetable-row.component.js +2 -427
  188. package/timetable-row.component-BVRCB3xK.js +559 -0
  189. package/timetable-row.js +6 -13
  190. package/timetable-row.pure.js +2 -11
  191. package/toDate-p-Tpkb7t.js +16 -0
  192. package/development/differenceInMinutes-B0dawX-5.js +0 -26
  193. package/development/format-BMkeaqaF.js +0 -1433
  194. package/development/isValid-BYRch7pV.js +0 -53
  195. package/development/toDate-BWb6Z1JD.js +0 -24
  196. package/differenceInMinutes-COvvdYsJ.js +0 -23
  197. package/format-CmKROkbc.js +0 -1186
  198. package/isValid-m3_OsPaB.js +0 -45
  199. package/toDate-Bw2KTWeq.js +0 -15
@@ -1,72 +1,72 @@
1
- import { svgs as a } from "../svgs.js";
2
- const E = {
3
- BICYCLE: { svgName: "sa-vo" },
4
- BICYCLE_HIGH: { svgName: "sa-vo" },
5
- BICYCLE_HIGH_ICON: { svgName: "sa-vo" },
6
- BICYCLE_ICON: { svgName: "sa-vo" },
7
- BICYCLE_LOW: { svgName: "sa-vo" },
8
- BICYCLE_LOW_ICON: { svgName: "sa-vo" },
9
- BICYCLE_MIDDLE: { svgName: "sa-vo" },
10
- BICYCLE_MIDDLE_ICON: { svgName: "sa-vo" },
11
- BISTRO: { svgName: "sa-mi" },
12
- BISTRO_ICON: { svgName: "sa-mi" },
13
- BUSINESS: { svgName: "sa-bz" },
14
- BUSINESS_COMFORT: { svgName: "sa-bz" },
15
- BUSINESS_ICON: { svgName: "sa-bz" },
16
- COACH_BORDER_MIDDLE: { svg: a.chassisRowMiddle },
17
- COACH_WALL_NO_PASSAGE: { svg: a.chassisRowOuter },
18
- COACH_PASSAGE: { svg: a.chassisPassageWaggonTopLeft },
19
- COMPARTMENT_PASSAGE: { svg: a.chassisPassageCompartmentMiddle },
20
- COMPARTMENT_PASSAGE_HIGH: { svg: a.chassisPassageCompartmentLeftTop },
21
- COMPARTMENT_PASSAGE_LOW: { svg: a.chassisPassageCompartmentRightBottom },
22
- COMPARTMENT_WALL: { svg: a.chassisSeparator },
23
- DRIVER_AREA: { svg: a.chassisDriverTrain },
24
- DRIVER_AREA_BUS: { svg: a.chassisDriverBus },
25
- DRIVER_AREA_TRAIN: { svg: a.chassisDriverTrainFull },
26
- DRIVER_AREA_NO_VERTICAL_WALL: { svg: a.chassisDriverTrain },
27
- EASY_ACCESS: { svgName: "sa-em" },
28
- EASY_ACCESS_AREA: { svgName: "sa-em" },
29
- EASY_ACCESS_ICON: { svgName: "sa-em" },
30
- ENTRY_EXIT: { svg: a.layoutEntrance },
31
- FAMILY: { svgName: "sa-fa" },
32
- LUGGAGE_AREA: { svgName: "sa-ga" },
33
- LUGGAGE_ICON: { svgName: "sa-ga" },
34
- MULTI_FUNCTION_AREA: { svgName: "sa-mf" },
35
- MULTI_FUNCTION_ICON: { svgName: "sa-mf" },
36
- PLACE_BICYCLE_ALLOCATED: { svg: a.interiorPlaceBikeUnavailable },
37
- PLACE_BICYCLE_FREE: { svg: a.interiorPlaceBikeDefault },
38
- PLACE_BICYCLE_RESTRICTED: { svg: a.interiorPlaceBikeNotBookable },
39
- PLACE_BICYCLE_SELECTED: { svg: a.interiorPlaceBikeSelected },
40
- PLACE_SEAT_ALLOCATED: { svg: a.interiorPlaceSeatUnavailable },
41
- PLACE_SEAT_FREE: { svg: a.interiorPlaceSeatDefault },
42
- PLACE_SEAT_RESTRICTED: { svg: a.interiorPlaceSeatNotBookable },
43
- PLACE_SEAT_SELECTED: { svg: a.interiorPlaceSeatSelected },
44
- PLAYGROUND_AREA: { svgName: "sa-fa" },
45
- PLAYGROUND_ICON: { svgName: "sa-fa" },
46
- PRAM: { svgName: "sa-abteilkinderwagen" },
47
- PRAM_AREA: { svgName: "sa-abteilkinderwagen" },
48
- PRAM_ICON: { svgName: "sa-abteilkinderwagen" },
49
- RESTAURANT: { svgName: "sa-wr" },
50
- RESTAURANT_AREA: { svgName: "sa-wr" },
51
- RESTAURANT_ICON: { svgName: "sa-wr" },
52
- SILENCE: { svgName: "sa-rz" },
53
- SILENCE_AREA_ICON: { svgName: "sa-rz" },
54
- SILENCE_ICON: { svgName: "sa-rz" },
55
- SKI_AREA: { svgName: "sa-sa" },
56
- SKI_ICON: { svgName: "sa-sa" },
57
- STAFF_AREA: { svgName: "avatar-train-staff-medium" },
58
- STAIR_AREA: { svgName: "sa-ac" },
59
- TOILET_AREA: { svgName: "sa-wc" },
60
- TOILET_ICON: { svgName: "sa-wc" },
61
- TOILET_WHEELCHAIR_AREA: { svgName: "sa-rw" },
62
- TOILET_WHEELCHAIR_ICON: { svgName: "sa-rw" },
63
- WARDROBE_AREA: { svgName: "sa-ka" },
64
- WHEELCHAIR: { svgName: "sa-rs" },
65
- WHEELCHAIR_AND_SEAT: { svgName: "sa-rs" },
66
- WHEELCHAIR_ICON: { svgName: "sa-rs" },
67
- WHEELCHAIR_NO_SEAT: { svgName: "sa-rn" },
68
- WIFI: { svgName: "sa-wv" }
69
- };
70
- export {
71
- E as mapIconToSvg
1
+ import { svgs as e } from "../svgs.js";
2
+ //#region src/elements-experimental/seat-reservation/common/mapper/icon-mapper.ts
3
+ var t = {
4
+ BICYCLE: { svgName: "sa-vo" },
5
+ BICYCLE_HIGH: { svgName: "sa-vo" },
6
+ BICYCLE_HIGH_ICON: { svgName: "sa-vo" },
7
+ BICYCLE_ICON: { svgName: "sa-vo" },
8
+ BICYCLE_LOW: { svgName: "sa-vo" },
9
+ BICYCLE_LOW_ICON: { svgName: "sa-vo" },
10
+ BICYCLE_MIDDLE: { svgName: "sa-vo" },
11
+ BICYCLE_MIDDLE_ICON: { svgName: "sa-vo" },
12
+ BISTRO: { svgName: "sa-mi" },
13
+ BISTRO_ICON: { svgName: "sa-mi" },
14
+ BUSINESS: { svgName: "sa-bz" },
15
+ BUSINESS_COMFORT: { svgName: "sa-bz" },
16
+ BUSINESS_ICON: { svgName: "sa-bz" },
17
+ COACH_BORDER_MIDDLE: { svg: e.chassisRowMiddle },
18
+ COACH_WALL_NO_PASSAGE: { svg: e.chassisRowOuter },
19
+ COACH_PASSAGE: { svg: e.chassisPassageWaggonTopLeft },
20
+ COMPARTMENT_PASSAGE: { svg: e.chassisPassageCompartmentMiddle },
21
+ COMPARTMENT_PASSAGE_HIGH: { svg: e.chassisPassageCompartmentLeftTop },
22
+ COMPARTMENT_PASSAGE_LOW: { svg: e.chassisPassageCompartmentRightBottom },
23
+ COMPARTMENT_WALL: { svg: e.chassisSeparator },
24
+ DRIVER_AREA: { svg: e.chassisDriverTrain },
25
+ DRIVER_AREA_BUS: { svg: e.chassisDriverBus },
26
+ DRIVER_AREA_TRAIN: { svg: e.chassisDriverTrainFull },
27
+ DRIVER_AREA_NO_VERTICAL_WALL: { svg: e.chassisDriverTrain },
28
+ EASY_ACCESS: { svgName: "sa-em" },
29
+ EASY_ACCESS_AREA: { svgName: "sa-em" },
30
+ EASY_ACCESS_ICON: { svgName: "sa-em" },
31
+ ENTRY_EXIT: { svg: e.layoutEntrance },
32
+ FAMILY: { svgName: "sa-fa" },
33
+ LUGGAGE_AREA: { svgName: "sa-ga" },
34
+ LUGGAGE_ICON: { svgName: "sa-ga" },
35
+ MULTI_FUNCTION_AREA: { svgName: "sa-mf" },
36
+ MULTI_FUNCTION_ICON: { svgName: "sa-mf" },
37
+ PLACE_BICYCLE_ALLOCATED: { svg: e.interiorPlaceBikeUnavailable },
38
+ PLACE_BICYCLE_FREE: { svg: e.interiorPlaceBikeDefault },
39
+ PLACE_BICYCLE_RESTRICTED: { svg: e.interiorPlaceBikeNotBookable },
40
+ PLACE_BICYCLE_SELECTED: { svg: e.interiorPlaceBikeSelected },
41
+ PLACE_SEAT_ALLOCATED: { svg: e.interiorPlaceSeatUnavailable },
42
+ PLACE_SEAT_FREE: { svg: e.interiorPlaceSeatDefault },
43
+ PLACE_SEAT_RESTRICTED: { svg: e.interiorPlaceSeatNotBookable },
44
+ PLACE_SEAT_SELECTED: { svg: e.interiorPlaceSeatSelected },
45
+ PLAYGROUND_AREA: { svgName: "sa-fa" },
46
+ PLAYGROUND_ICON: { svgName: "sa-fa" },
47
+ PRAM: { svgName: "sa-abteilkinderwagen" },
48
+ PRAM_AREA: { svgName: "sa-abteilkinderwagen" },
49
+ PRAM_ICON: { svgName: "sa-abteilkinderwagen" },
50
+ RESTAURANT: { svgName: "sa-wr" },
51
+ RESTAURANT_AREA: { svgName: "sa-wr" },
52
+ RESTAURANT_ICON: { svgName: "sa-wr" },
53
+ SILENCE: { svgName: "sa-rz" },
54
+ SILENCE_AREA_ICON: { svgName: "sa-rz" },
55
+ SILENCE_ICON: { svgName: "sa-rz" },
56
+ SKI_AREA: { svgName: "sa-sa" },
57
+ SKI_ICON: { svgName: "sa-sa" },
58
+ STAFF_AREA: { svgName: "avatar-train-staff-medium" },
59
+ STAIR_AREA: { svgName: "sa-ac" },
60
+ TOILET_AREA: { svgName: "sa-wc" },
61
+ TOILET_ICON: { svgName: "sa-wc" },
62
+ TOILET_WHEELCHAIR_AREA: { svgName: "sa-rw" },
63
+ TOILET_WHEELCHAIR_ICON: { svgName: "sa-rw" },
64
+ WARDROBE_AREA: { svgName: "sa-ka" },
65
+ WHEELCHAIR: { svgName: "sa-rs" },
66
+ WHEELCHAIR_AND_SEAT: { svgName: "sa-rs" },
67
+ WHEELCHAIR_ICON: { svgName: "sa-rs" },
68
+ WHEELCHAIR_NO_SEAT: { svgName: "sa-rn" },
69
+ WIFI: { svgName: "sa-wv" }
72
70
  };
71
+ //#endregion
72
+ export { t as mapIconToSvg };
@@ -1,91 +1,97 @@
1
- import { MOCK_COACHES_RAW_BUS as u } from "./sample-data/seat-reservation-sample-data-bus.js";
2
- import { MOCK_COACHE_RAW_DECK_LOWER as y, MOCK_COACHE_RAW_DECK_UPPPER as g } from "./sample-data/seat-reservation-sample-data-decks.js";
3
- import { MOCK_COACHES_RAW_TRAIN as d } from "./sample-data/seat-reservation-sample-data-train.js";
4
- function E(e, n) {
5
- return e !== null ? e === "TRAIN" ? d : u : n === "LOWER_DECK" ? y : n === "UPPER_DECK" ? g : d;
1
+ import { MOCK_COACHES_RAW_BUS as e } from "./sample-data/seat-reservation-sample-data-bus.js";
2
+ import { MOCK_COACHE_RAW_DECK_LOWER as t, MOCK_COACHE_RAW_DECK_UPPPER as n } from "./sample-data/seat-reservation-sample-data-decks.js";
3
+ import { MOCK_COACHES_RAW_TRAIN as r } from "./sample-data/seat-reservation-sample-data-train.js";
4
+ //#region src/elements-experimental/seat-reservation/common/mapper/mapper.ts
5
+ function i(i, a) {
6
+ return i === null ? a === "LOWER_DECK" ? t : a === "UPPER_DECK" ? n : r : i === "TRAIN" ? r : e;
6
7
  }
7
- const I = (e, n = null) => {
8
- const i = E(e, n), s = n === "LOWER_DECK" ? 1 : 0, a = i.map((C) => {
9
- const r = C?.coachDeckLayout, c = [], m = [], p = r.placeGroups.map((t) => (c.indexOf(t.travelClass) === -1 && c.push(t.travelClass), m.indexOf(t.accommodationSubType) === -1 && m.push(t.accommodationSubType), t.places?.map((o) => ({
10
- number: o?.number,
11
- state: o?.state,
12
- type: t.accommodationSubType.indexOf("BICYCLE") === -1 ? "SEAT" : "BICYCLE",
13
- dimension: { w: o.rectangle.dimension.width, h: o.rectangle.dimension.height },
14
- position: {
15
- x: o.rectangle.position.x,
16
- y: o.rectangle.position.y,
17
- z: o.rectangle.position.z
18
- },
19
- rotation: o?.orientation || 0,
20
- travelClass: t?.travelClass,
21
- propertyIds: o.placeProperties || []
22
- })))).flat(), l = r.serviceIcons.map((t) => ({
23
- icon: t.type,
24
- position: {
25
- x: t.rectangle.position.x,
26
- y: t.rectangle.position.y,
27
- z: t.rectangle.position.z
28
- },
29
- dimension: {
30
- w: t.rectangle.dimension.width,
31
- h: t.rectangle.dimension.height
32
- }
33
- })), h = r.graphicElements.map((t) => ({
34
- icon: t?.type,
35
- position: {
36
- x: t.rectangle.position.x,
37
- y: t.rectangle.position.y,
38
- z: t.rectangle.position.z
39
- },
40
- dimension: { w: t.rectangle.dimension.width, h: t.rectangle.dimension.height },
41
- rotation: t.orientation
42
- }));
43
- return {
44
- id: r?.id,
45
- number: r?.name,
46
- dimension: { w: r.dimension?.width, h: r.dimension?.height },
47
- places: p,
48
- serviceElements: l,
49
- graphicElements: h,
50
- travelClass: c,
51
- propertyIds: m
52
- };
53
- });
54
- return {
55
- vehicleType: e || "TRAIN",
56
- deckCoachIndex: s,
57
- deckCoachLevel: "SINGLE_DECK",
58
- coachItems: a
59
- };
60
- }, f = (e, n, i, s) => ({
61
- id: n,
62
- number: e.number,
63
- deckIndex: i,
64
- coachIndex: s,
65
- state: e.state,
66
- placeType: e.type
67
- }), O = (e, n, i, s, a) => ({
68
- id: i,
69
- coachId: n.id,
70
- coachNumber: n.number,
71
- coachIndex: a,
72
- deckIndex: s,
73
- placeNumber: e.number,
74
- placeType: e.type,
75
- placeTravelClass: e.travelClass || "ANY_CLASS",
76
- propertyIds: e.propertyIds || []
77
- }), R = (e, n, i) => ({
78
- coachId: n.id,
79
- coachNumber: n.number,
80
- coachIndex: e,
81
- coachType: n?.type,
82
- coachTravelClass: n?.travelClass,
83
- coachPropertyIds: n?.propertyIds,
84
- coachNumberOfFreePlaces: i
8
+ var a = (e, t = null) => {
9
+ let n = i(e, t), r = t === "LOWER_DECK" ? 1 : 0, a = n.map((e) => {
10
+ let t = e?.coachDeckLayout, n = [], r = [], i = t.placeGroups.map((e) => (n.indexOf(e.travelClass) === -1 && n.push(e.travelClass), r.indexOf(e.accommodationSubType) === -1 && r.push(e.accommodationSubType), e.places?.map((t) => ({
11
+ number: t?.number,
12
+ state: t?.state,
13
+ type: e.accommodationSubType.indexOf("BICYCLE") === -1 ? "SEAT" : "BICYCLE",
14
+ dimension: {
15
+ w: t.rectangle.dimension.width,
16
+ h: t.rectangle.dimension.height
17
+ },
18
+ position: {
19
+ x: t.rectangle.position.x,
20
+ y: t.rectangle.position.y,
21
+ z: t.rectangle.position.z
22
+ },
23
+ rotation: t?.orientation || 0,
24
+ travelClass: e?.travelClass,
25
+ propertyIds: t.placeProperties || []
26
+ })))).flat(), a = t.serviceIcons.map((e) => ({
27
+ icon: e.type,
28
+ position: {
29
+ x: e.rectangle.position.x,
30
+ y: e.rectangle.position.y,
31
+ z: e.rectangle.position.z
32
+ },
33
+ dimension: {
34
+ w: e.rectangle.dimension.width,
35
+ h: e.rectangle.dimension.height
36
+ }
37
+ })), o = t.graphicElements.map((e) => ({
38
+ icon: e?.type,
39
+ position: {
40
+ x: e.rectangle.position.x,
41
+ y: e.rectangle.position.y,
42
+ z: e.rectangle.position.z
43
+ },
44
+ dimension: {
45
+ w: e.rectangle.dimension.width,
46
+ h: e.rectangle.dimension.height
47
+ },
48
+ rotation: e.orientation
49
+ }));
50
+ return {
51
+ id: t?.id,
52
+ number: t?.name,
53
+ dimension: {
54
+ w: t.dimension?.width,
55
+ h: t.dimension?.height
56
+ },
57
+ places: i,
58
+ serviceElements: a,
59
+ graphicElements: o,
60
+ travelClass: n,
61
+ propertyIds: r
62
+ };
63
+ });
64
+ return {
65
+ vehicleType: e || "TRAIN",
66
+ deckCoachIndex: r,
67
+ deckCoachLevel: "SINGLE_DECK",
68
+ coachItems: a
69
+ };
70
+ }, o = (e, t, n, r) => ({
71
+ id: t,
72
+ number: e.number,
73
+ deckIndex: n,
74
+ coachIndex: r,
75
+ state: e.state,
76
+ placeType: e.type
77
+ }), s = (e, t, n, r, i) => ({
78
+ id: n,
79
+ coachId: t.id,
80
+ coachNumber: t.number,
81
+ coachIndex: i,
82
+ deckIndex: r,
83
+ placeNumber: e.number,
84
+ placeType: e.type,
85
+ placeTravelClass: e.travelClass || "ANY_CLASS",
86
+ propertyIds: e.propertyIds || []
87
+ }), c = (e, t, n) => ({
88
+ coachId: t.id,
89
+ coachNumber: t.number,
90
+ coachIndex: e,
91
+ coachType: t?.type,
92
+ coachTravelClass: t?.travelClass,
93
+ coachPropertyIds: t?.propertyIds,
94
+ coachNumberOfFreePlaces: n
85
95
  });
86
- export {
87
- R as mapCoachInfosToCoachSelection,
88
- O as mapPlaceAndCoachToSeatReservationPlaceSelection,
89
- f as mapPlaceInfosToPlaceSelection,
90
- I as mapRawDataToSeatReservation
91
- };
96
+ //#endregion
97
+ export { c as mapCoachInfosToCoachSelection, s as mapPlaceAndCoachToSeatReservationPlaceSelection, o as mapPlaceInfosToPlaceSelection, a as mapRawDataToSeatReservation };