@sbb-esta/lyne-elements-experimental-dev 4.12.0-dev.1777534804 → 4.12.0-dev.1777541244

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 (45) hide show
  1. package/custom-elements.json +288 -167
  2. package/development/seat-reservation/common/types.d.ts +3 -4
  3. package/development/seat-reservation/common/types.d.ts.map +1 -1
  4. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +38 -7
  5. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  6. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +143 -32
  7. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -13
  8. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  9. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  10. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  11. package/development/seat-reservation/seat-reservation-area.js +1 -1
  12. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -1
  13. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  14. package/development/seat-reservation/seat-reservation-graphic.js +1 -1
  15. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  16. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
  17. package/development/seat-reservation/seat-reservation-navigation-coach.js +1 -1
  18. package/development/seat-reservation/seat-reservation.js +1 -1
  19. package/development/seat-reservation-area.component-BWdrKqek.js +96 -0
  20. package/development/seat-reservation-graphic.component-CN5sWn0I.js +129 -0
  21. package/development/{seat-reservation-navigation-coach.component-CjoDkcVU.js → seat-reservation-navigation-coach.component-tDZkXl-3.js} +3 -3
  22. package/development/seat-reservation.component-DyB5FVpD.js +464 -0
  23. package/development/seat-reservation.js +4 -4
  24. package/development/seat-reservation.pure.js +4 -4
  25. package/package.json +2 -2
  26. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +130 -77
  27. package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  28. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  29. package/seat-reservation/seat-reservation-area.js +1 -1
  30. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -1
  31. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  32. package/seat-reservation/seat-reservation-graphic.js +1 -1
  33. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
  34. package/seat-reservation/seat-reservation-navigation-coach.js +1 -1
  35. package/seat-reservation/seat-reservation.js +1 -1
  36. package/{seat-reservation-area.component-CtYawDjE.js → seat-reservation-area.component-B5_N7H_a.js} +1 -1
  37. package/seat-reservation-graphic.component-Dh1e2Pve.js +102 -0
  38. package/{seat-reservation-navigation-coach.component-sug9IBTH.js → seat-reservation-navigation-coach.component-BdCUfksf.js} +2 -2
  39. package/{seat-reservation.component-DajC6fqU.js → seat-reservation.component-DEtsEzex.js} +74 -81
  40. package/seat-reservation.js +4 -4
  41. package/seat-reservation.pure.js +4 -4
  42. package/development/seat-reservation-area.component-DbeuTnXT.js +0 -96
  43. package/development/seat-reservation-graphic.component-DlrHtlia.js +0 -129
  44. package/development/seat-reservation.component-DFJVFmrI.js +0 -510
  45. package/seat-reservation-graphic.component-Cm_pVxaB.js +0 -102
@@ -3056,74 +3056,6 @@
3056
3056
  "declarations": [],
3057
3057
  "exports": []
3058
3058
  },
3059
- {
3060
- "kind": "javascript-module",
3061
- "path": "seat-reservation/common/mapper.js",
3062
- "declarations": [],
3063
- "exports": [
3064
- {
3065
- "kind": "js",
3066
- "name": "*",
3067
- "declaration": {
3068
- "name": "*",
3069
- "module": "seat-reservation/common/mapper/mapper.js"
3070
- }
3071
- },
3072
- {
3073
- "kind": "js",
3074
- "name": "*",
3075
- "declaration": {
3076
- "name": "*",
3077
- "module": "seat-reservation/common/mapper/icon-mapper.js"
3078
- }
3079
- }
3080
- ]
3081
- },
3082
- {
3083
- "kind": "javascript-module",
3084
- "path": "seat-reservation/common/svgs.js",
3085
- "declarations": [
3086
- {
3087
- "kind": "variable",
3088
- "name": "svgs",
3089
- "type": {
3090
- "text": "object"
3091
- },
3092
- "default": "{ chassisDriverBus, chassisDriverTrain, chassisDriverTrainFull, chassisPassageCompartmentLeftTop, chassisPassageCompartmentMiddle, chassisPassageCompartmentRightBottom, chassisPassageWaggonBottomRight, chassisPassageWaggonTopLeft, chassisRowOuter, chassisRowMiddle, chassisSeparator, interiorPlaceBikeDefault, interiorPlaceBikeNotBookable, interiorPlaceBikeSelected, interiorPlaceBikeUnavailable, interiorPlaceSeatDefault, interiorPlaceSeatNotBookable, interiorPlaceSeatSelected, interiorPlaceSeatUnavailable, layoutEntrance, }"
3093
- }
3094
- ],
3095
- "exports": [
3096
- {
3097
- "kind": "js",
3098
- "name": "svgs",
3099
- "declaration": {
3100
- "name": "svgs",
3101
- "module": "seat-reservation/common/svgs.js"
3102
- }
3103
- }
3104
- ]
3105
- },
3106
- {
3107
- "kind": "javascript-module",
3108
- "path": "seat-reservation/common/translations.js",
3109
- "declarations": [],
3110
- "exports": [
3111
- {
3112
- "kind": "js",
3113
- "name": "*",
3114
- "declaration": {
3115
- "name": "*",
3116
- "module": "seat-reservation/common/translations/i18n.js"
3117
- }
3118
- }
3119
- ]
3120
- },
3121
- {
3122
- "kind": "javascript-module",
3123
- "path": "seat-reservation/common/types.js",
3124
- "declarations": [],
3125
- "exports": []
3126
- },
3127
3059
  {
3128
3060
  "kind": "javascript-module",
3129
3061
  "path": "seat-reservation/seat-reservation/seat-reservation-base-element.js",
@@ -3539,6 +3471,24 @@
3539
3471
  "text": "{\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Tab: 'Tab',\n Enter: 'Enter',\n }"
3540
3472
  }
3541
3473
  },
3474
+ {
3475
+ "kind": "field",
3476
+ "name": "seatReservationStructure",
3477
+ "type": {
3478
+ "text": "SeatreservationStructure"
3479
+ },
3480
+ "privacy": "protected",
3481
+ "default": "{ decks: [], }"
3482
+ },
3483
+ {
3484
+ "kind": "field",
3485
+ "name": "notFixedRotatableAreaIcons",
3486
+ "type": {
3487
+ "text": "array"
3488
+ },
3489
+ "privacy": "protected",
3490
+ "default": "['ENTRY_EXIT']"
3491
+ },
3542
3492
  {
3543
3493
  "kind": "field",
3544
3494
  "name": "notAreaElements",
@@ -3550,12 +3500,12 @@
3550
3500
  },
3551
3501
  {
3552
3502
  "kind": "field",
3553
- "name": "overHangingElementInformation",
3503
+ "name": "middleBorderDockingElements",
3554
3504
  "type": {
3555
- "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
3505
+ "text": "array"
3556
3506
  },
3557
3507
  "privacy": "protected",
3558
- "default": "[]"
3508
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', ]"
3559
3509
  },
3560
3510
  {
3561
3511
  "kind": "field",
@@ -4440,7 +4390,7 @@
4440
4390
  },
4441
4391
  {
4442
4392
  "kind": "method",
4443
- "name": "_prepareCoachWidthAndGapCalculations",
4393
+ "name": "_prepareSeatReservationStructureInformation",
4444
4394
  "privacy": "private",
4445
4395
  "return": {
4446
4396
  "type": {
@@ -4448,6 +4398,75 @@
4448
4398
  }
4449
4399
  }
4450
4400
  },
4401
+ {
4402
+ "kind": "method",
4403
+ "name": "_getCalculatedMiddleBorderElement",
4404
+ "privacy": "private",
4405
+ "return": {
4406
+ "type": {
4407
+ "text": ""
4408
+ }
4409
+ },
4410
+ "parameters": [
4411
+ {
4412
+ "name": "coach",
4413
+ "type": {
4414
+ "text": "CoachItem"
4415
+ }
4416
+ }
4417
+ ],
4418
+ "description": "Returns the calculated position and dimension of the middle border.\nTo calculate the start + end coordinate and the dimension of the middle border coach graphic,\nthe existing docking coach graphics are analysed and used to calculate the required position and diemension information."
4419
+ },
4420
+ {
4421
+ "kind": "method",
4422
+ "name": "_getFirstLastDockingElements",
4423
+ "privacy": "private",
4424
+ "return": {
4425
+ "type": {
4426
+ "text": ""
4427
+ }
4428
+ },
4429
+ "parameters": [
4430
+ {
4431
+ "name": "graphicElements",
4432
+ "type": {
4433
+ "text": "BaseElement[]"
4434
+ }
4435
+ }
4436
+ ],
4437
+ "description": "Returns graphical elements describing the start and end border elements of the coach."
4438
+ },
4439
+ {
4440
+ "kind": "method",
4441
+ "name": "_getCalculatedDimensionPositionElement",
4442
+ "privacy": "private",
4443
+ "return": {
4444
+ "type": {
4445
+ "text": ""
4446
+ }
4447
+ },
4448
+ "parameters": [
4449
+ {
4450
+ "name": "element",
4451
+ "type": {
4452
+ "text": "BaseElement"
4453
+ }
4454
+ },
4455
+ {
4456
+ "name": "coachDimension",
4457
+ "type": {
4458
+ "text": "ElementDimension"
4459
+ }
4460
+ },
4461
+ {
4462
+ "name": "isCalcAreaElement",
4463
+ "type": {
4464
+ "text": "boolean"
4465
+ }
4466
+ }
4467
+ ],
4468
+ "description": "Returns the calculated positions and dimensions of graphical, service and area elements"
4469
+ },
4451
4470
  {
4452
4471
  "kind": "method",
4453
4472
  "name": "_getPlaceHtmlElement",
@@ -4553,11 +4572,11 @@
4553
4572
  },
4554
4573
  {
4555
4574
  "kind": "method",
4556
- "name": "_setDriverAreasElements",
4575
+ "name": "_isLocomotive",
4557
4576
  "privacy": "private",
4558
4577
  "return": {
4559
4578
  "type": {
4560
- "text": "{\n driverArea: BaseElement | undefined;\n driverAreaNoVerticalWall: BaseElement | undefined;\n }"
4579
+ "text": "boolean"
4561
4580
  }
4562
4581
  },
4563
4582
  "parameters": [
@@ -4749,15 +4768,6 @@
4749
4768
  },
4750
4769
  "privacy": "private"
4751
4770
  },
4752
- {
4753
- "kind": "field",
4754
- "name": "_notFixedRotatableAreaIcons",
4755
- "type": {
4756
- "text": "array"
4757
- },
4758
- "privacy": "private",
4759
- "default": "['ENTRY_EXIT']"
4760
- },
4761
4771
  {
4762
4772
  "kind": "method",
4763
4773
  "name": "_initVehicleSeatReservationConstruction",
@@ -4892,6 +4902,12 @@
4892
4902
  "text": "CoachItem"
4893
4903
  }
4894
4904
  },
4905
+ {
4906
+ "name": "deckCoachIndex",
4907
+ "type": {
4908
+ "text": "number"
4909
+ }
4910
+ },
4895
4911
  {
4896
4912
  "name": "coachIndex",
4897
4913
  "type": {
@@ -4974,7 +4990,7 @@
4974
4990
  },
4975
4991
  {
4976
4992
  "kind": "method",
4977
- "name": "_getRenderedGraphicalElements",
4993
+ "name": "_getRenderedCoachElements",
4978
4994
  "privacy": "private",
4979
4995
  "return": {
4980
4996
  "type": {
@@ -4983,25 +4999,13 @@
4983
4999
  },
4984
5000
  "parameters": [
4985
5001
  {
4986
- "name": "graphicalElements",
4987
- "type": {
4988
- "text": "BaseElement[]"
4989
- }
4990
- },
4991
- {
4992
- "name": "coachDimension",
4993
- "type": {
4994
- "text": "ElementDimension"
4995
- }
4996
- },
4997
- {
4998
- "name": "coachIndex",
5002
+ "name": "coachDeckIndex",
4999
5003
  "type": {
5000
5004
  "text": "number"
5001
5005
  }
5002
5006
  },
5003
5007
  {
5004
- "name": "coachDeckIndex",
5008
+ "name": "coachIndex",
5005
5009
  "type": {
5006
5010
  "text": "number"
5007
5011
  }
@@ -5010,76 +5014,25 @@
5010
5014
  },
5011
5015
  {
5012
5016
  "kind": "method",
5013
- "name": "_getRenderElementWithArea",
5017
+ "name": "_getRenderedAreaElements",
5014
5018
  "privacy": "private",
5015
5019
  "return": {
5016
5020
  "type": {
5017
- "text": "TemplateResult"
5021
+ "text": "TemplateResult[] | null"
5018
5022
  }
5019
5023
  },
5020
5024
  "parameters": [
5021
- {
5022
- "name": "graphicalElement",
5023
- "type": {
5024
- "text": "BaseElement"
5025
- }
5026
- },
5027
- {
5028
- "name": "rotation",
5029
- "type": {
5030
- "text": "number"
5031
- }
5032
- },
5033
- {
5034
- "name": "coachDimension",
5035
- "type": {
5036
- "text": "ElementDimension"
5037
- }
5038
- },
5039
- {
5040
- "name": "coachIndex",
5041
- "type": {
5042
- "text": "number"
5043
- },
5044
- "description": "used to generate a unique id for the popover trigger"
5045
- },
5046
5025
  {
5047
5026
  "name": "coachDeckIndex",
5048
5027
  "type": {
5049
5028
  "text": "number"
5050
- },
5051
- "description": "used to generate a unique id"
5052
- }
5053
- ],
5054
- "description": "creates a rendered element with an area component"
5055
- },
5056
- {
5057
- "kind": "method",
5058
- "name": "_getRenderElementWithoutArea",
5059
- "privacy": "private",
5060
- "return": {
5061
- "type": {
5062
- "text": "TemplateResult"
5063
- }
5064
- },
5065
- "parameters": [
5066
- {
5067
- "name": "graphicalElement",
5068
- "type": {
5069
- "text": "BaseElement"
5070
5029
  }
5071
5030
  },
5072
5031
  {
5073
- "name": "rotation",
5032
+ "name": "coachIndex",
5074
5033
  "type": {
5075
5034
  "text": "number"
5076
5035
  }
5077
- },
5078
- {
5079
- "name": "coachDimension",
5080
- "type": {
5081
- "text": "ElementDimension"
5082
- }
5083
5036
  }
5084
5037
  ]
5085
5038
  },
@@ -5093,12 +5046,6 @@
5093
5046
  }
5094
5047
  },
5095
5048
  "parameters": [
5096
- {
5097
- "name": "coachIndex",
5098
- "type": {
5099
- "text": "number"
5100
- }
5101
- },
5102
5049
  {
5103
5050
  "name": "coachDeckIndex",
5104
5051
  "type": {
@@ -5106,10 +5053,9 @@
5106
5053
  }
5107
5054
  },
5108
5055
  {
5109
- "name": "serviceElements",
5110
- "optional": true,
5056
+ "name": "coachIndex",
5111
5057
  "type": {
5112
- "text": "BaseElement[]"
5058
+ "text": "number"
5113
5059
  }
5114
5060
  }
5115
5061
  ]
@@ -5811,6 +5757,32 @@
5811
5757
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5812
5758
  }
5813
5759
  },
5760
+ {
5761
+ "kind": "field",
5762
+ "name": "seatReservationStructure",
5763
+ "type": {
5764
+ "text": "SeatreservationStructure"
5765
+ },
5766
+ "privacy": "protected",
5767
+ "default": "{ decks: [], }",
5768
+ "inheritedFrom": {
5769
+ "name": "SeatReservationBaseElement",
5770
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5771
+ }
5772
+ },
5773
+ {
5774
+ "kind": "field",
5775
+ "name": "notFixedRotatableAreaIcons",
5776
+ "type": {
5777
+ "text": "array"
5778
+ },
5779
+ "privacy": "protected",
5780
+ "default": "['ENTRY_EXIT']",
5781
+ "inheritedFrom": {
5782
+ "name": "SeatReservationBaseElement",
5783
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5784
+ }
5785
+ },
5814
5786
  {
5815
5787
  "kind": "field",
5816
5788
  "name": "notAreaElements",
@@ -5826,12 +5798,12 @@
5826
5798
  },
5827
5799
  {
5828
5800
  "kind": "field",
5829
- "name": "overHangingElementInformation",
5801
+ "name": "middleBorderDockingElements",
5830
5802
  "type": {
5831
- "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
5803
+ "text": "array"
5832
5804
  },
5833
5805
  "privacy": "protected",
5834
- "default": "[]",
5806
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', ]",
5835
5807
  "inheritedFrom": {
5836
5808
  "name": "SeatReservationBaseElement",
5837
5809
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
@@ -6928,7 +6900,7 @@
6928
6900
  },
6929
6901
  {
6930
6902
  "kind": "method",
6931
- "name": "_prepareCoachWidthAndGapCalculations",
6903
+ "name": "_prepareSeatReservationStructureInformation",
6932
6904
  "privacy": "private",
6933
6905
  "return": {
6934
6906
  "type": {
@@ -6940,6 +6912,87 @@
6940
6912
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
6941
6913
  }
6942
6914
  },
6915
+ {
6916
+ "kind": "method",
6917
+ "name": "_getCalculatedMiddleBorderElement",
6918
+ "privacy": "private",
6919
+ "return": {
6920
+ "type": {
6921
+ "text": ""
6922
+ }
6923
+ },
6924
+ "parameters": [
6925
+ {
6926
+ "name": "coach",
6927
+ "type": {
6928
+ "text": "CoachItem"
6929
+ }
6930
+ }
6931
+ ],
6932
+ "description": "Returns the calculated position and dimension of the middle border.\nTo calculate the start + end coordinate and the dimension of the middle border coach graphic,\nthe existing docking coach graphics are analysed and used to calculate the required position and diemension information.",
6933
+ "inheritedFrom": {
6934
+ "name": "SeatReservationBaseElement",
6935
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
6936
+ }
6937
+ },
6938
+ {
6939
+ "kind": "method",
6940
+ "name": "_getFirstLastDockingElements",
6941
+ "privacy": "private",
6942
+ "return": {
6943
+ "type": {
6944
+ "text": ""
6945
+ }
6946
+ },
6947
+ "parameters": [
6948
+ {
6949
+ "name": "graphicElements",
6950
+ "type": {
6951
+ "text": "BaseElement[]"
6952
+ }
6953
+ }
6954
+ ],
6955
+ "description": "Returns graphical elements describing the start and end border elements of the coach.",
6956
+ "inheritedFrom": {
6957
+ "name": "SeatReservationBaseElement",
6958
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
6959
+ }
6960
+ },
6961
+ {
6962
+ "kind": "method",
6963
+ "name": "_getCalculatedDimensionPositionElement",
6964
+ "privacy": "private",
6965
+ "return": {
6966
+ "type": {
6967
+ "text": ""
6968
+ }
6969
+ },
6970
+ "parameters": [
6971
+ {
6972
+ "name": "element",
6973
+ "type": {
6974
+ "text": "BaseElement"
6975
+ }
6976
+ },
6977
+ {
6978
+ "name": "coachDimension",
6979
+ "type": {
6980
+ "text": "ElementDimension"
6981
+ }
6982
+ },
6983
+ {
6984
+ "name": "isCalcAreaElement",
6985
+ "type": {
6986
+ "text": "boolean"
6987
+ }
6988
+ }
6989
+ ],
6990
+ "description": "Returns the calculated positions and dimensions of graphical, service and area elements",
6991
+ "inheritedFrom": {
6992
+ "name": "SeatReservationBaseElement",
6993
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
6994
+ }
6995
+ },
6943
6996
  {
6944
6997
  "kind": "method",
6945
6998
  "name": "_getPlaceHtmlElement",
@@ -7069,11 +7122,11 @@
7069
7122
  },
7070
7123
  {
7071
7124
  "kind": "method",
7072
- "name": "_setDriverAreasElements",
7125
+ "name": "_isLocomotive",
7073
7126
  "privacy": "private",
7074
7127
  "return": {
7075
7128
  "type": {
7076
- "text": "{\n driverArea: BaseElement | undefined;\n driverAreaNoVerticalWall: BaseElement | undefined;\n }"
7129
+ "text": "boolean"
7077
7130
  }
7078
7131
  },
7079
7132
  "parameters": [
@@ -7293,6 +7346,74 @@
7293
7346
  }
7294
7347
  ]
7295
7348
  },
7349
+ {
7350
+ "kind": "javascript-module",
7351
+ "path": "seat-reservation/common/mapper.js",
7352
+ "declarations": [],
7353
+ "exports": [
7354
+ {
7355
+ "kind": "js",
7356
+ "name": "*",
7357
+ "declaration": {
7358
+ "name": "*",
7359
+ "module": "seat-reservation/common/mapper/mapper.js"
7360
+ }
7361
+ },
7362
+ {
7363
+ "kind": "js",
7364
+ "name": "*",
7365
+ "declaration": {
7366
+ "name": "*",
7367
+ "module": "seat-reservation/common/mapper/icon-mapper.js"
7368
+ }
7369
+ }
7370
+ ]
7371
+ },
7372
+ {
7373
+ "kind": "javascript-module",
7374
+ "path": "seat-reservation/common/svgs.js",
7375
+ "declarations": [
7376
+ {
7377
+ "kind": "variable",
7378
+ "name": "svgs",
7379
+ "type": {
7380
+ "text": "object"
7381
+ },
7382
+ "default": "{ chassisDriverBus, chassisDriverTrain, chassisDriverTrainFull, chassisPassageCompartmentLeftTop, chassisPassageCompartmentMiddle, chassisPassageCompartmentRightBottom, chassisPassageWaggonBottomRight, chassisPassageWaggonTopLeft, chassisRowOuter, chassisRowMiddle, chassisSeparator, interiorPlaceBikeDefault, interiorPlaceBikeNotBookable, interiorPlaceBikeSelected, interiorPlaceBikeUnavailable, interiorPlaceSeatDefault, interiorPlaceSeatNotBookable, interiorPlaceSeatSelected, interiorPlaceSeatUnavailable, layoutEntrance, }"
7383
+ }
7384
+ ],
7385
+ "exports": [
7386
+ {
7387
+ "kind": "js",
7388
+ "name": "svgs",
7389
+ "declaration": {
7390
+ "name": "svgs",
7391
+ "module": "seat-reservation/common/svgs.js"
7392
+ }
7393
+ }
7394
+ ]
7395
+ },
7396
+ {
7397
+ "kind": "javascript-module",
7398
+ "path": "seat-reservation/common/translations.js",
7399
+ "declarations": [],
7400
+ "exports": [
7401
+ {
7402
+ "kind": "js",
7403
+ "name": "*",
7404
+ "declaration": {
7405
+ "name": "*",
7406
+ "module": "seat-reservation/common/translations/i18n.js"
7407
+ }
7408
+ }
7409
+ ]
7410
+ },
7411
+ {
7412
+ "kind": "javascript-module",
7413
+ "path": "seat-reservation/common/types.js",
7414
+ "declarations": [],
7415
+ "exports": []
7416
+ },
7296
7417
  {
7297
7418
  "kind": "javascript-module",
7298
7419
  "path": "seat-reservation/seat-reservation-area/seat-reservation-area.component.js",
@@ -24,11 +24,8 @@ export interface CoachItemDetails {
24
24
  propertyIds: string[];
25
25
  freePlaces: CoachNumberOfFreePlaces;
26
26
  isDriverArea: boolean;
27
+ isLocomotive?: boolean;
27
28
  driverAreaSide?: Record<string, boolean>;
28
- driverAreaElements: {
29
- driverArea: BaseElement | undefined;
30
- driverAreaNoVerticalWall: BaseElement | undefined;
31
- };
32
29
  }
33
30
  /** Extends BaseElement with seat-specific data. */
34
31
  export interface Place extends BaseElement {
@@ -44,6 +41,7 @@ export interface BaseElement {
44
41
  rotation?: number;
45
42
  position: ElementPosition;
46
43
  dimension: ElementDimension;
44
+ mounting?: ElementMounting | null;
47
45
  }
48
46
  export interface ElementDimension {
49
47
  w: number;
@@ -99,4 +97,5 @@ export type PlaceState = 'FREE' | 'ALLOCATED' | 'RESTRICTED' | 'SELECTED';
99
97
  export type PlaceTravelClass = 'FIRST' | 'SECOND' | 'ANY_CLASS';
100
98
  export type VehicleType = 'TRAIN' | 'BUS';
101
99
  export type TravelDirection = 'LEFT' | 'RIGHT' | 'NONE';
100
+ export type ElementMounting = 'free' | 'upper-border' | 'lower-border';
102
101
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/types.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED,oDAAoD;AACpD,MAAM,WAAW,SAAS;IAExB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,wCAAwC;AACxC,MAAM,WAAW,gBAAgB;IAE/B,EAAE,EAAE,MAAM,CAAC;IAEX,WAAW,EAAE,gBAAgB,CAAC;IAE9B,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB,UAAU,EAAE,uBAAuB,CAAC;IAEpC,YAAY,EAAE,OAAO,CAAC;IAEtB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEzC,kBAAkB,EAAE;QAClB,UAAU,EAAE,WAAW,GAAG,SAAS,CAAC;QACpC,wBAAwB,EAAE,WAAW,GAAG,SAAS,CAAC;KACnD,CAAC;CACH;AAED,mDAAmD;AACnD,MAAM,WA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CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,6BAA6B,EAAE,CAAC;IACvC,QAAQ,EAAE,6BAA6B,EAAE,CAAC;CAC3C;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,YAAY,CAAC;AACzF,MAAM,MAAM,SAAS,GACjB,kBAAkB,GAClB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,kBAAkB,CAAC;AACvB,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/types.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED,oDAAoD;AACpD,MAAM,WAAW,SAAS;IAExB,EAAE,EAAE,MAAM,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