@sbb-esta/lyne-elements-experimental 2.10.1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/custom-elements.json +4286 -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.d.ts +5 -0
  24. package/development/seat-reservation/common.d.ts.map +1 -0
  25. package/development/seat-reservation/common.js +18 -0
  26. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +156 -0
  27. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
  28. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +706 -0
  29. package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts +29 -0
  30. package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +1 -0
  31. package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js +196 -0
  32. package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +2 -0
  33. package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +1 -0
  34. package/development/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +5 -0
  35. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
  36. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
  37. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +615 -0
  38. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
  39. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
  40. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +108 -0
  41. package/development/seat-reservation/seat-reservation-area.d.ts +2 -0
  42. package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -0
  43. package/development/seat-reservation/seat-reservation-area.js +5 -0
  44. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
  45. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
  46. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +326 -0
  47. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
  48. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
  49. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +224 -0
  50. package/development/seat-reservation/seat-reservation-graphic.d.ts +2 -0
  51. package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
  52. package/development/seat-reservation/seat-reservation-graphic.js +5 -0
  53. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +65 -0
  54. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
  55. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +576 -0
  56. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +2 -0
  57. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
  58. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +5 -0
  59. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
  60. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
  61. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +123 -0
  62. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +2 -0
  63. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
  64. package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +5 -0
  65. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
  66. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
  67. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +446 -0
  68. package/development/seat-reservation/seat-reservation-place-control.d.ts +2 -0
  69. package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
  70. package/development/seat-reservation/seat-reservation-place-control.js +5 -0
  71. package/development/seat-reservation/seat-reservation.d.ts +73 -0
  72. package/development/seat-reservation/seat-reservation.d.ts.map +1 -0
  73. package/development/seat-reservation/seat-reservation.js +7 -0
  74. package/development/seat-reservation.d.ts +5 -0
  75. package/development/seat-reservation.d.ts.map +1 -0
  76. package/development/seat-reservation.js +7 -0
  77. package/index.d.ts +14 -0
  78. package/index.js +14 -0
  79. package/package.json +7 -2
  80. package/seat-reservation/common/mapper/icon-mapper.d.ts +112 -0
  81. package/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -0
  82. package/seat-reservation/common/mapper/icon-mapper.js +71 -0
  83. package/seat-reservation/common/mapper/mapper.d.ts +29 -0
  84. package/seat-reservation/common/mapper/mapper.d.ts.map +1 -0
  85. package/seat-reservation/common/mapper/mapper.js +87 -0
  86. package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +225 -0
  87. package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -0
  88. package/seat-reservation/common/mapper/seat-reservation-sample-data.js +6149 -0
  89. package/seat-reservation/common/mapper.d.ts +3 -0
  90. package/seat-reservation/common/mapper.d.ts.map +1 -0
  91. package/seat-reservation/common/mapper.js +9 -0
  92. package/seat-reservation/common/svgs.d.ts +25 -0
  93. package/seat-reservation/common/svgs.d.ts.map +1 -0
  94. package/seat-reservation/common/svgs.js +250 -0
  95. package/seat-reservation/common/translations/i18n.d.ts +19 -0
  96. package/seat-reservation/common/translations/i18n.d.ts.map +1 -0
  97. package/seat-reservation/common/translations/i18n.js +460 -0
  98. package/seat-reservation/common/translations.d.ts +2 -0
  99. package/seat-reservation/common/translations.d.ts.map +1 -0
  100. package/seat-reservation/common/translations.js +4 -0
  101. package/seat-reservation/common.d.ts +5 -0
  102. package/seat-reservation/common.d.ts.map +1 -0
  103. package/seat-reservation/common.js +17 -0
  104. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +156 -0
  105. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -0
  106. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +435 -0
  107. package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts +29 -0
  108. package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.d.ts.map +1 -0
  109. package/seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js +107 -0
  110. package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts +2 -0
  111. package/seat-reservation/seat-reservation/seat-reservation-scoped-component.d.ts.map +1 -0
  112. package/seat-reservation/seat-reservation/seat-reservation-scoped-component.js +4 -0
  113. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +62 -0
  114. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -0
  115. package/seat-reservation/seat-reservation/seat-reservation.component.js +404 -0
  116. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +18 -0
  117. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -0
  118. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +49 -0
  119. package/seat-reservation/seat-reservation-area.d.ts +2 -0
  120. package/seat-reservation/seat-reservation-area.d.ts.map +1 -0
  121. package/seat-reservation/seat-reservation-area.js +4 -0
  122. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +9 -0
  123. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -0
  124. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +317 -0
  125. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +29 -0
  126. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -0
  127. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +113 -0
  128. package/seat-reservation/seat-reservation-graphic.d.ts +2 -0
  129. package/seat-reservation/seat-reservation-graphic.d.ts.map +1 -0
  130. package/seat-reservation/seat-reservation-graphic.js +4 -0
  131. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +65 -0
  132. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -0
  133. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +248 -0
  134. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts +2 -0
  135. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.d.ts.map +1 -0
  136. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach.js +4 -0
  137. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +21 -0
  138. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -0
  139. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +80 -0
  140. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts +2 -0
  141. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.d.ts.map +1 -0
  142. package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services.js +4 -0
  143. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +53 -0
  144. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -0
  145. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +190 -0
  146. package/seat-reservation/seat-reservation-place-control.d.ts +2 -0
  147. package/seat-reservation/seat-reservation-place-control.d.ts.map +1 -0
  148. package/seat-reservation/seat-reservation-place-control.js +4 -0
  149. package/seat-reservation/seat-reservation.d.ts +73 -0
  150. package/seat-reservation/seat-reservation.d.ts.map +1 -0
  151. package/seat-reservation/seat-reservation.js +6 -0
  152. package/seat-reservation.d.ts +5 -0
  153. package/seat-reservation.d.ts.map +1 -0
  154. package/seat-reservation.js +6 -0
package/index.js CHANGED
@@ -1,5 +1,12 @@
1
1
  import { SbbTimetableRowElement } from "./timetable-row/timetable-row.component.js";
2
2
  import { SbbTimetableDurationElement } from "./timetable-duration/timetable-duration.component.js";
3
+ import { SbbSeatReservationPlaceControlElement } from "./seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js";
4
+ import { SbbSeatReservationNavigationServicesElement } from "./seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js";
5
+ import { SbbSeatReservationNavigationCoachElement } from "./seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js";
6
+ import { SbbSeatReservationGraphicElement } from "./seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js";
7
+ import { SbbSeatReservationAreaElement } from "./seat-reservation/seat-reservation-area/seat-reservation-area.component.js";
8
+ import { SbbSeatReservationElement } from "./seat-reservation/seat-reservation/seat-reservation.component.js";
9
+ import { SbbSeatReservationScopedElement } from "./seat-reservation/seat-reservation/seat-reservation-scoped-component/seat-reservation-scoped.component.js";
3
10
  import { SbbPearlChainVerticalItemElement } from "./pearl-chain-vertical-item/pearl-chain-vertical-item.component.js";
4
11
  import { SbbPearlChainVerticalElement } from "./pearl-chain-vertical/pearl-chain-vertical.component.js";
5
12
  import { SbbPearlChainTimeElement } from "./pearl-chain-time/pearl-chain-time.component.js";
@@ -11,6 +18,13 @@ globalThis.SbbPearlChainElement = SbbPearlChainElement;
11
18
  globalThis.SbbPearlChainTimeElement = SbbPearlChainTimeElement;
12
19
  globalThis.SbbPearlChainVerticalElement = SbbPearlChainVerticalElement;
13
20
  globalThis.SbbPearlChainVerticalItemElement = SbbPearlChainVerticalItemElement;
21
+ globalThis.SbbSeatReservationAreaElement = SbbSeatReservationAreaElement;
22
+ globalThis.SbbSeatReservationElement = SbbSeatReservationElement;
23
+ globalThis.SbbSeatReservationGraphicElement = SbbSeatReservationGraphicElement;
24
+ globalThis.SbbSeatReservationNavigationCoachElement = SbbSeatReservationNavigationCoachElement;
25
+ globalThis.SbbSeatReservationNavigationServicesElement = SbbSeatReservationNavigationServicesElement;
26
+ globalThis.SbbSeatReservationPlaceControlElement = SbbSeatReservationPlaceControlElement;
27
+ globalThis.SbbSeatReservationScopedElement = SbbSeatReservationScopedElement;
14
28
  globalThis.SbbTimetableDurationElement = SbbTimetableDurationElement;
15
29
  globalThis.SbbTimetableRowElement = SbbTimetableRowElement;
16
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-experimental",
3
- "version": "2.10.1",
3
+ "version": "2.11.0",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
@@ -11,7 +11,7 @@
11
11
  "type": "module",
12
12
  "customElements": "custom-elements.json",
13
13
  "peerDependencies": {
14
- "@sbb-esta/lyne-elements": "2.10.1"
14
+ "@sbb-esta/lyne-elements": "2.11.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "lit": "^3.3.0",
@@ -72,6 +72,11 @@
72
72
  "development": "./development/pearl-chain-vertical-item.js",
73
73
  "default": "./pearl-chain-vertical-item.js"
74
74
  },
75
+ "./seat-reservation.js": {
76
+ "types": "./development/seat-reservation.d.ts",
77
+ "development": "./development/seat-reservation.js",
78
+ "default": "./seat-reservation.js"
79
+ },
75
80
  "./timetable-duration.js": {
76
81
  "types": "./development/timetable-duration.d.ts",
77
82
  "development": "./development/timetable-duration.js",
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Map Object from OSDM Code to SVG icon name represented in svg-icon
3
+ * component regarding the namespace "fpl".
4
+ */
5
+ export type SeatReservationIcon = {
6
+ svgName?: string;
7
+ svg?: string;
8
+ };
9
+ export declare const mapIconToSvg: Record<string, SeatReservationIcon>;
10
+ /**
11
+ * Current icons that could be supported, but not necessarily will be
12
+ * Status: 14.05.2025
13
+ *
14
+ * GraphicElement:
15
+ * type: string
16
+ * enum:
17
+ * - EASY_ACCESS_AREA
18
+ * - LUGGAGE_AREA
19
+ * - MULTI_FUNCTION_AREA
20
+ * - PLAYGROUND_AREA
21
+ * - PRAM_AREA
22
+ * - RESTAURANT_AREA
23
+ * - SKI_AREA
24
+ * - STAFF_AREA
25
+ * - TOILET_AREA
26
+ * - TOILET_WHEELCHAIR_AREA
27
+ * - COACH_PASSAGE
28
+ * - COMPARTMENT_PASSAGE
29
+ * - COMPARTMENT_PASSAGE_HIGH
30
+ * - COMPARTMENT_PASSAGE_LOW
31
+ * - DRIVER_AREA
32
+ * - DRIVER_AREA_LEFT
33
+ * - DRIVER_AREA_RIGHT
34
+ * - ENTRY_EXIT
35
+ * - STAIR_AREA
36
+ * - TABLE
37
+ * - TABLE_RESTAURANT
38
+ *
39
+ * AccommodationSubType:
40
+ * type: string
41
+ * enum:
42
+ * - BISTRO
43
+ * - BUSINESS
44
+ * - BUSINESS_COMFORT
45
+ * - CHILDREN_AREA
46
+ * - COMPARTMENT
47
+ * - EXCELLENCE
48
+ * - FAMILY
49
+ * - OPEN_SPACE
50
+ * - PANORAMA
51
+ * - PREMIUM
52
+ * - RESTAURANT
53
+ * - SILENCE
54
+ * - SALON
55
+ *
56
+ * PlaceProperty:
57
+ * type: string
58
+ * enum:
59
+ * - AISLE
60
+ * - AIR_CONDITIONED
61
+ * - BICYCLE
62
+ * - BICYCLE_LOW
63
+ * - BICYCLE_MIDDLE
64
+ * - BICYCLE_HIGH
65
+ * - EASY_ACCESS
66
+ * - FRONT_VIEW
67
+ * - MIDDLE_SEAT
68
+ * - NEAR_ANIMALS
69
+ * - NEAR_BICYCLE_AREA
70
+ * - NEAR_DINING
71
+ * - NEAR_PLAY_AREA
72
+ * - NEAR_WHEELCHAIR_AREA
73
+ * - PHONE
74
+ * - POWER
75
+ * - PRAM
76
+ * - PRAM_WITH_SEAT
77
+ * - SIDE_BY_SIDE
78
+ * - TANDEM
79
+ * - WHEELCHAIR
80
+ * - WHEELCHAIR_AND_SEAT
81
+ * - WHEELCHAIR_NO_SEAT
82
+ * - WIFI
83
+ * - WINDOW
84
+ * - WITH_ANIMALS
85
+ * - WITH_SMALL_CHILDREN
86
+ * - WITHOUT_ANIMALS
87
+ *
88
+ * ServiceIcon:
89
+ * type: string
90
+ * enum:
91
+ * - BICYCLE_ICON
92
+ * - BICYCLE_LOW_ICON
93
+ * - BICYCLE_MIDDLE_ICON
94
+ * - BICYCLE_HIGH_ICON
95
+ * - BISTRO_ICON
96
+ * - BUSINESS_ICON
97
+ * - CHILDREN_ICON
98
+ * - EASY_ACCESS_ICON
99
+ * - LUGGAGE_ICON
100
+ * - MULTI_FUNCTION_ICON
101
+ * - PLAYGROUND_ICON
102
+ * - PRAM_ICON
103
+ * - RESTAURANT_ICON
104
+ * - SILENCE_AREA_ICON
105
+ * - SKI_ICON
106
+ * - TOILET_ICON
107
+ * - TOILET_PRAM_ICON
108
+ * - TOILET_WHEELCHAIR_ICON
109
+ * - TROLLEY_ICON
110
+ * - WHEELCHAIR_ICON
111
+ */
112
+ //# sourceMappingURL=icon-mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-mapper.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/mapper/icon-mapper.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAkE5D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG"}
@@ -0,0 +1,71 @@
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
+ DRIVER_AREA: { svg: a.chassisDriverTrain },
23
+ DRIVER_AREA_FULL_BUS: { svg: a.chassisDriverBus },
24
+ DRIVER_AREA_FULL_TRAIN: { svg: a.chassisDriverTrainFull },
25
+ EASY_ACCESS: { svgName: "sa-em" },
26
+ EASY_ACCESS_AREA: { svgName: "sa-em" },
27
+ EASY_ACCESS_ICON: { svgName: "sa-em" },
28
+ ENTRY_EXIT: { svg: a.layoutEntrance },
29
+ FAMILY: { svgName: "sa-fa" },
30
+ LUGGAGE_AREA: { svgName: "sa-ga" },
31
+ LUGGAGE_ICON: { svgName: "sa-ga" },
32
+ MULTI_FUNCTION_AREA: { svgName: "sa-mf" },
33
+ MULTI_FUNCTION_ICON: { svgName: "sa-mf" },
34
+ PLACE_BICYCLE_ALLOCATED: { svg: a.interiorPlaceBikeUnavailable },
35
+ PLACE_BICYCLE_FREE: { svg: a.interiorPlaceBikeDefault },
36
+ PLACE_BICYCLE_RESTRICTED: { svg: a.interiorPlaceBikeNotBookable },
37
+ PLACE_BICYCLE_SELECTED: { svg: a.interiorPlaceBikeSelected },
38
+ PLACE_SEAT_ALLOCATED: { svg: a.interiorPlaceSeatUnavailable },
39
+ PLACE_SEAT_FREE: { svg: a.interiorPlaceSeatDefault },
40
+ PLACE_SEAT_RESTRICTED: { svg: a.interiorPlaceSeatNotBookable },
41
+ PLACE_SEAT_SELECTED: { svg: a.interiorPlaceSeatSelected },
42
+ PLAYGROUND_AREA: { svgName: "sa-fa" },
43
+ PLAYGROUND_ICON: { svgName: "sa-fa" },
44
+ PRAM: { svgName: "sa-abteilkinderwagen" },
45
+ PRAM_AREA: { svgName: "sa-abteilkinderwagen" },
46
+ PRAM_ICON: { svgName: "sa-abteilkinderwagen" },
47
+ RESTAURANT: { svgName: "sa-wr" },
48
+ RESTAURANT_AREA: { svgName: "sa-wr" },
49
+ RESTAURANT_ICON: { svgName: "sa-wr" },
50
+ SILENCE: { svgName: "sa-rz" },
51
+ SILENCE_AREA_ICON: { svgName: "sa-rz" },
52
+ SILENCE_ICON: { svgName: "sa-rz" },
53
+ SKI_AREA: { svgName: "sa-sa" },
54
+ SKI_ICON: { svgName: "sa-sa" },
55
+ STAIR_AREA: { svgName: "sa-ac" },
56
+ TABLE: { svg: a.interiorTable },
57
+ TABLE_RESTAURANT: { svg: a.interiorTable },
58
+ TOILET_AREA: { svgName: "sa-wc" },
59
+ TOILET_ICON: { svgName: "sa-wc" },
60
+ TOILET_WHEELCHAIR_AREA: { svgName: "sa-rw" },
61
+ TOILET_WHEELCHAIR_ICON: { svgName: "sa-rw" },
62
+ WARDROBE_AREA: { svgName: "sa-ka" },
63
+ WHEELCHAIR: { svgName: "sa-rs" },
64
+ WHEELCHAIR_AND_SEAT: { svgName: "sa-rs" },
65
+ WHEELCHAIR_ICON: { svgName: "sa-rs" },
66
+ WHEELCHAIR_NO_SEAT: { svgName: "sa-rn" },
67
+ WIFI: { svgName: "sa-wv" }
68
+ };
69
+ export {
70
+ E as mapIconToSvg
71
+ };
@@ -0,0 +1,29 @@
1
+ import { CoachItem, Place, PlaceSelection, SeatReservation, SeatReservationCoachSelection, SeatReservationPlaceSelection, VehicleType } from '../../seat-reservation.js';
2
+ /**
3
+ * Map function that converts the RAW OSDM mock data into SeatReservation
4
+ */
5
+ export declare const mapRawDataToSeatReservation: (vehicleType: VehicleType) => SeatReservation;
6
+ /**
7
+ * Mapped place and coach informations to place selection
8
+ * @param place
9
+ * @param coachIndex
10
+ * @returns PlaceSelection
11
+ */
12
+ export declare const mapPlaceInfosToPlaceSelection: (place: Place, coachIndex: number) => PlaceSelection;
13
+ /**
14
+ * Mapped informations from place, coach and the coachiondex to the seatReaservationPlaceSelection.
15
+ * This Object information is emitted outwards
16
+ * @param place
17
+ * @param CoachItem
18
+ * @param coachIndex
19
+ * @returns SeatReservationPlaceSelection
20
+ */
21
+ export declare const mapPlaceAndCoachToSeatReservationPlaceSelection: (place: Place, coach: CoachItem, coachIndex: number) => SeatReservationPlaceSelection;
22
+ /**
23
+ * Mapped coach informations to coach selection
24
+ * @param place
25
+ * @param coachIndex
26
+ * @returns PlaceSelection
27
+ */
28
+ export declare const mapCoachInfosToCoachSelection: (coachIndex: number, coach: CoachItem) => SeatReservationCoachSelection;
29
+ //# sourceMappingURL=mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/mapper/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,KAAK,EACL,cAAc,EAEd,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,EAC7B,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,eAAO,MAAM,2BAA2B,GAAI,aAAa,WAAW,KAAG,eAoFtE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,KAAK,EAAE,YAAY,MAAM,KAAG,cAQhF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,+CAA+C,GAC1D,OAAO,KAAK,EACZ,OAAO,SAAS,EAChB,YAAY,MAAM,KACjB,6BAYF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GACxC,YAAY,MAAM,EAClB,OAAO,SAAS,KACf,6BASF,CAAC"}
@@ -0,0 +1,87 @@
1
+ import { MOCK_COACHES_RAW_0 as y, MOCK_COACHES_RAW_1 as I } from "./seat-reservation-sample-data.js";
2
+ const u = (i) => {
3
+ const r = (i === "TRAIN" ? y : I).map((o) => {
4
+ var m, C;
5
+ const e = o == null ? void 0 : o.coachDeckLayout, d = [], a = [], b = e.placeGroups.map((t) => {
6
+ var g;
7
+ return d.indexOf(t.travelClass) === -1 && d.push(t.travelClass), a.indexOf(t.accommodationSubType) === -1 && a.push(t.accommodationSubType), (g = t.places) == null ? void 0 : g.map((s) => ({
8
+ number: s == null ? void 0 : s.number,
9
+ state: s == null ? void 0 : s.state,
10
+ type: t.accommodationSubType.indexOf("BICYCLE") === -1 ? "SEAT" : "BICYCLE",
11
+ dimension: { w: s.rectangle.dimension.width, h: s.rectangle.dimension.height },
12
+ position: {
13
+ x: s.rectangle.position.x,
14
+ y: s.rectangle.position.y,
15
+ z: s.rectangle.position.z
16
+ },
17
+ rotation: (s == null ? void 0 : s.orientation) || 0,
18
+ travelClass: t == null ? void 0 : t.travelClass,
19
+ remarkId: "",
20
+ propertyIds: s.placeProperties || [],
21
+ selected: !1
22
+ }));
23
+ }).flat(), p = e.serviceIcons.map((t) => ({
24
+ icon: t.type,
25
+ position: {
26
+ x: t.rectangle.position.x,
27
+ y: t.rectangle.position.y,
28
+ z: t.rectangle.position.z
29
+ },
30
+ dimension: {
31
+ w: t.rectangle.dimension.width,
32
+ h: t.rectangle.dimension.height
33
+ }
34
+ })), l = e.graphicElements.map((t) => ({
35
+ icon: t == null ? void 0 : t.type,
36
+ position: {
37
+ x: t.rectangle.position.x,
38
+ y: t.rectangle.position.y,
39
+ z: t.rectangle.position.z
40
+ },
41
+ dimension: { w: t.rectangle.dimension.width, h: t.rectangle.dimension.height },
42
+ rotation: t.orientation
43
+ }));
44
+ return {
45
+ id: e == null ? void 0 : e.id,
46
+ number: e == null ? void 0 : e.name,
47
+ dimension: { w: (m = e.dimension) == null ? void 0 : m.width, h: (C = e.dimension) == null ? void 0 : C.height },
48
+ places: b,
49
+ serviceElements: p,
50
+ graphicElements: l,
51
+ travelClass: d,
52
+ propertyIds: a
53
+ };
54
+ });
55
+ return {
56
+ vehicleType: i,
57
+ deckCoachIndex: 0,
58
+ coachItems: r
59
+ };
60
+ }, A = (i, n) => ({
61
+ id: "seat-reservation__place-button-" + n + "-" + i.number,
62
+ number: i.number,
63
+ coachIndex: n,
64
+ state: i.state
65
+ }), S = (i, n, r) => ({
66
+ id: "seat-reservation__place-button-" + r + "-" + i.number,
67
+ coachId: n.id,
68
+ coachNumber: n.number,
69
+ coachIndex: r,
70
+ placeNumber: i.number,
71
+ placeType: i.type,
72
+ placeTravelClass: i.travelClass || "ANY_CLASS",
73
+ propertyIds: i.propertyIds || []
74
+ }), _ = (i, n) => ({
75
+ coachId: n.id,
76
+ coachNumber: n.number,
77
+ coachIndex: i,
78
+ coachType: n == null ? void 0 : n.type,
79
+ coachTravelClass: n == null ? void 0 : n.travelClass,
80
+ coachPropertyIds: n == null ? void 0 : n.propertyIds
81
+ });
82
+ export {
83
+ _ as mapCoachInfosToCoachSelection,
84
+ S as mapPlaceAndCoachToSeatReservationPlaceSelection,
85
+ A as mapPlaceInfosToPlaceSelection,
86
+ u as mapRawDataToSeatReservation
87
+ };
@@ -0,0 +1,225 @@
1
+ export declare const MOCK_COACHES_RAW_0: {
2
+ warnings: null;
3
+ coachDeckLayout: {
4
+ id: string;
5
+ name: string;
6
+ dimension: {
7
+ width: number;
8
+ height: number;
9
+ borderRadius: null;
10
+ };
11
+ lowFloorEntry: boolean;
12
+ deckLevel: string;
13
+ placeGroups: {
14
+ travelClass: string;
15
+ accommodationSubType: string;
16
+ places: {
17
+ number: string;
18
+ rectangle: {
19
+ position: {
20
+ x: number;
21
+ y: number;
22
+ z: number;
23
+ };
24
+ dimension: {
25
+ width: number;
26
+ height: number;
27
+ borderRadius: null;
28
+ };
29
+ };
30
+ orientation: number;
31
+ placeLocations: string[];
32
+ placeProperties: string[];
33
+ state: string;
34
+ }[];
35
+ }[];
36
+ graphicElements: {
37
+ rectangle: {
38
+ position: {
39
+ x: number;
40
+ y: number;
41
+ z: number;
42
+ };
43
+ dimension: {
44
+ width: number;
45
+ height: number;
46
+ borderRadius: null;
47
+ };
48
+ };
49
+ orientation: number;
50
+ type: string;
51
+ }[];
52
+ serviceIcons: {
53
+ rectangle: {
54
+ position: {
55
+ x: number;
56
+ y: number;
57
+ z: number;
58
+ };
59
+ dimension: {
60
+ width: number;
61
+ height: number;
62
+ borderRadius: null;
63
+ };
64
+ };
65
+ type: string;
66
+ }[];
67
+ };
68
+ }[];
69
+ export declare const MOCK_COACHES_RAW_1: {
70
+ warnings: null;
71
+ coachDeckLayout: {
72
+ id: string;
73
+ name: string;
74
+ dimension: {
75
+ width: number;
76
+ height: number;
77
+ borderRadius: null;
78
+ };
79
+ lowFloorEntry: boolean;
80
+ deckLevel: string;
81
+ placeGroups: {
82
+ travelClass: string;
83
+ accommodationSubType: string;
84
+ places: {
85
+ number: string;
86
+ rectangle: {
87
+ position: {
88
+ x: number;
89
+ y: number;
90
+ z: number;
91
+ };
92
+ dimension: {
93
+ width: number;
94
+ height: number;
95
+ borderRadius: null;
96
+ };
97
+ };
98
+ orientation: number;
99
+ placeLocations: string[];
100
+ placeProperties: string[];
101
+ state: string;
102
+ }[];
103
+ }[];
104
+ graphicElements: {
105
+ rectangle: {
106
+ position: {
107
+ x: number;
108
+ y: number;
109
+ z: number;
110
+ };
111
+ dimension: {
112
+ width: number;
113
+ height: number;
114
+ borderRadius: null;
115
+ };
116
+ };
117
+ orientation: number;
118
+ type: string;
119
+ }[];
120
+ serviceIcons: {
121
+ rectangle: {
122
+ position: {
123
+ x: number;
124
+ y: number;
125
+ z: number;
126
+ };
127
+ dimension: {
128
+ width: number;
129
+ height: number;
130
+ borderRadius: null;
131
+ };
132
+ };
133
+ type: string;
134
+ }[];
135
+ };
136
+ }[];
137
+ /**
138
+ * taken from json provided by VAKE;
139
+ * Attention: <b>all the type information does not reflect our assumptions</b> and the data was
140
+ * manuelly adjusted.
141
+ */
142
+ export declare const MOCK_COACHES_RAW_REAL_DATA: {
143
+ notifications: never[];
144
+ coachDeckLayout: {
145
+ name: string;
146
+ dimension: {
147
+ width: number;
148
+ height: number;
149
+ };
150
+ lowFloorEntry: boolean;
151
+ id: string;
152
+ deckLevel: string;
153
+ placeGroups: {
154
+ serviceClass: string;
155
+ accommodationSubType: string;
156
+ places: {
157
+ number: string;
158
+ rectangle: {
159
+ position: {
160
+ x: number;
161
+ y: number;
162
+ z: number;
163
+ };
164
+ dimension: {
165
+ width: number;
166
+ height: number;
167
+ };
168
+ };
169
+ orientation: number;
170
+ placeProperties: never[];
171
+ }[];
172
+ }[];
173
+ graphicElements: ({
174
+ rectangle: {
175
+ position: {
176
+ x: number;
177
+ y: number;
178
+ z: number;
179
+ };
180
+ dimension: {
181
+ width: number;
182
+ height: number;
183
+ borderRadius: {
184
+ topLeft: number;
185
+ topRight: number;
186
+ bottomRight: number;
187
+ bottomLeft: number;
188
+ };
189
+ };
190
+ };
191
+ orientation: number;
192
+ type: string;
193
+ } | {
194
+ rectangle: {
195
+ position: {
196
+ x: number;
197
+ y: number;
198
+ z: number;
199
+ };
200
+ dimension: {
201
+ width: number;
202
+ height: number;
203
+ borderRadius?: undefined;
204
+ };
205
+ };
206
+ orientation: number;
207
+ type: string;
208
+ })[];
209
+ serviceIcons: {
210
+ rectangle: {
211
+ position: {
212
+ x: number;
213
+ y: number;
214
+ z: number;
215
+ };
216
+ dimension: {
217
+ width: number;
218
+ height: number;
219
+ };
220
+ };
221
+ type: string;
222
+ }[];
223
+ };
224
+ }[];
225
+ //# sourceMappingURL=seat-reservation-sample-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seat-reservation-sample-data.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/mapper/seat-reservation-sample-data.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4rJ9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0hB9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4yBtC,CAAC"}