@sbb-esta/lyne-elements-experimental 4.12.0 → 4.12.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 (45) hide show
  1. package/custom-elements.json +460 -339
  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
@@ -3124,246 +3124,6 @@
3124
3124
  "declarations": [],
3125
3125
  "exports": []
3126
3126
  },
3127
- {
3128
- "kind": "javascript-module",
3129
- "path": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js",
3130
- "declarations": [
3131
- {
3132
- "kind": "function",
3133
- "name": "svgImageByOSDMCode",
3134
- "return": {
3135
- "type": {
3136
- "text": ""
3137
- }
3138
- },
3139
- "parameters": [
3140
- {
3141
- "name": "osdmCode",
3142
- "type": {
3143
- "text": "string"
3144
- }
3145
- }
3146
- ],
3147
- "description": "svgImageByOSDMCode Function returns the corresponding svg image by OSDM Code"
3148
- },
3149
- {
3150
- "kind": "variable",
3151
- "name": "assetsTemplate",
3152
- "type": {
3153
- "text": "TemplateResult"
3154
- },
3155
- "default": "html` <style> .story-asset { width: max-content; background-color: var(--sbb-color-white); } </style> <h1>List of all currently available assets.</h1> <h2>Interior</h2> ${interiorTable} <h2>Layout</h2> ${layoutItemsTable} <h2>Service Icons</h2> ${serviceIconTable} <h2>Chassis</h2> ${chassisTable} `"
3156
- }
3157
- ],
3158
- "exports": [
3159
- {
3160
- "kind": "js",
3161
- "name": "svgImageByOSDMCode",
3162
- "declaration": {
3163
- "name": "svgImageByOSDMCode",
3164
- "module": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js"
3165
- }
3166
- },
3167
- {
3168
- "kind": "js",
3169
- "name": "assetsTemplate",
3170
- "declaration": {
3171
- "name": "assetsTemplate",
3172
- "module": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js"
3173
- }
3174
- }
3175
- ]
3176
- },
3177
- {
3178
- "kind": "javascript-module",
3179
- "path": "seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js",
3180
- "declarations": [
3181
- {
3182
- "kind": "class",
3183
- "description": "Output one of the SVG graphics based on its code.",
3184
- "name": "SbbSeatReservationGraphicElement",
3185
- "members": [
3186
- {
3187
- "kind": "field",
3188
- "name": "elementName",
3189
- "type": {
3190
- "text": "string"
3191
- },
3192
- "privacy": "public",
3193
- "static": true,
3194
- "readonly": true,
3195
- "default": "'sbb-seat-reservation-graphic'"
3196
- },
3197
- {
3198
- "kind": "field",
3199
- "name": "name",
3200
- "type": {
3201
- "text": "string"
3202
- },
3203
- "privacy": "public",
3204
- "default": "''",
3205
- "description": "Name of the SVG graphic to be displayed.",
3206
- "attribute": "name"
3207
- },
3208
- {
3209
- "kind": "field",
3210
- "name": "stretch",
3211
- "type": {
3212
- "text": "boolean"
3213
- },
3214
- "privacy": "public",
3215
- "default": "false",
3216
- "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
3217
- "attribute": "stretch"
3218
- },
3219
- {
3220
- "kind": "field",
3221
- "name": "_language",
3222
- "privacy": "private",
3223
- "default": "new SbbLanguageController(this)"
3224
- },
3225
- {
3226
- "kind": "method",
3227
- "name": "_getSvgElement",
3228
- "privacy": "private",
3229
- "return": {
3230
- "type": {
3231
- "text": "Element | null"
3232
- }
3233
- },
3234
- "parameters": [
3235
- {
3236
- "name": "svg",
3237
- "type": {
3238
- "text": "string"
3239
- }
3240
- }
3241
- ]
3242
- }
3243
- ],
3244
- "attributes": [
3245
- {
3246
- "name": "name",
3247
- "type": {
3248
- "text": "string"
3249
- },
3250
- "default": "''",
3251
- "description": "Name of the SVG graphic to be displayed.",
3252
- "fieldName": "name"
3253
- },
3254
- {
3255
- "name": "stretch",
3256
- "type": {
3257
- "text": "boolean"
3258
- },
3259
- "default": "false",
3260
- "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
3261
- "fieldName": "stretch"
3262
- }
3263
- ],
3264
- "superclass": {
3265
- "name": "SbbElement",
3266
- "package": "@sbb-esta/lyne-elements/core/base-elements.js"
3267
- },
3268
- "tagName": "sbb-seat-reservation-graphic",
3269
- "customElement": true
3270
- }
3271
- ],
3272
- "exports": [
3273
- {
3274
- "kind": "js",
3275
- "name": "SbbSeatReservationGraphicElement",
3276
- "declaration": {
3277
- "name": "SbbSeatReservationGraphicElement",
3278
- "module": "seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js"
3279
- }
3280
- }
3281
- ]
3282
- },
3283
- {
3284
- "kind": "javascript-module",
3285
- "path": "seat-reservation/seat-reservation-area/seat-reservation-area.component.js",
3286
- "declarations": [
3287
- {
3288
- "kind": "class",
3289
- "description": "Visualize an area with a special meaning within a wagon.",
3290
- "name": "SbbSeatReservationAreaElement",
3291
- "members": [
3292
- {
3293
- "kind": "field",
3294
- "name": "elementName",
3295
- "type": {
3296
- "text": "string"
3297
- },
3298
- "privacy": "public",
3299
- "static": true,
3300
- "readonly": true,
3301
- "default": "'sbb-seat-reservation-area'"
3302
- },
3303
- {
3304
- "kind": "field",
3305
- "name": "mounting",
3306
- "type": {
3307
- "text": "'free' | 'upper-border' | 'lower-border' | 'upper-to-lower-border'"
3308
- },
3309
- "privacy": "public",
3310
- "default": "'free'",
3311
- "description": "Mounting Prop",
3312
- "attribute": "mounting",
3313
- "reflects": true
3314
- },
3315
- {
3316
- "kind": "field",
3317
- "name": "background",
3318
- "type": {
3319
- "text": "'light' | 'dark'"
3320
- },
3321
- "privacy": "public",
3322
- "default": "'light'",
3323
- "description": "the background of the area",
3324
- "attribute": "background",
3325
- "reflects": true
3326
- }
3327
- ],
3328
- "attributes": [
3329
- {
3330
- "name": "mounting",
3331
- "type": {
3332
- "text": "'free' | 'upper-border' | 'lower-border' | 'upper-to-lower-border'"
3333
- },
3334
- "default": "'free'",
3335
- "description": "Mounting Prop",
3336
- "fieldName": "mounting"
3337
- },
3338
- {
3339
- "name": "background",
3340
- "type": {
3341
- "text": "'light' | 'dark'"
3342
- },
3343
- "default": "'light'",
3344
- "description": "the background of the area",
3345
- "fieldName": "background"
3346
- }
3347
- ],
3348
- "superclass": {
3349
- "name": "SbbElement",
3350
- "package": "@sbb-esta/lyne-elements/core/base-elements.js"
3351
- },
3352
- "tagName": "sbb-seat-reservation-area",
3353
- "customElement": true
3354
- }
3355
- ],
3356
- "exports": [
3357
- {
3358
- "kind": "js",
3359
- "name": "SbbSeatReservationAreaElement",
3360
- "declaration": {
3361
- "name": "SbbSeatReservationAreaElement",
3362
- "module": "seat-reservation/seat-reservation-area/seat-reservation-area.component.js"
3363
- }
3364
- }
3365
- ]
3366
- },
3367
3127
  {
3368
3128
  "kind": "javascript-module",
3369
3129
  "path": "seat-reservation/seat-reservation/seat-reservation-base-element.js",
@@ -3779,6 +3539,24 @@
3779
3539
  "text": "{\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Tab: 'Tab',\n Enter: 'Enter',\n }"
3780
3540
  }
3781
3541
  },
3542
+ {
3543
+ "kind": "field",
3544
+ "name": "seatReservationStructure",
3545
+ "type": {
3546
+ "text": "SeatreservationStructure"
3547
+ },
3548
+ "privacy": "protected",
3549
+ "default": "{ decks: [], }"
3550
+ },
3551
+ {
3552
+ "kind": "field",
3553
+ "name": "notFixedRotatableAreaIcons",
3554
+ "type": {
3555
+ "text": "array"
3556
+ },
3557
+ "privacy": "protected",
3558
+ "default": "['ENTRY_EXIT']"
3559
+ },
3782
3560
  {
3783
3561
  "kind": "field",
3784
3562
  "name": "notAreaElements",
@@ -3790,12 +3568,12 @@
3790
3568
  },
3791
3569
  {
3792
3570
  "kind": "field",
3793
- "name": "overHangingElementInformation",
3571
+ "name": "middleBorderDockingElements",
3794
3572
  "type": {
3795
- "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
3573
+ "text": "array"
3796
3574
  },
3797
3575
  "privacy": "protected",
3798
- "default": "[]"
3576
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', ]"
3799
3577
  },
3800
3578
  {
3801
3579
  "kind": "field",
@@ -4680,7 +4458,7 @@
4680
4458
  },
4681
4459
  {
4682
4460
  "kind": "method",
4683
- "name": "_prepareCoachWidthAndGapCalculations",
4461
+ "name": "_prepareSeatReservationStructureInformation",
4684
4462
  "privacy": "private",
4685
4463
  "return": {
4686
4464
  "type": {
@@ -4688,6 +4466,75 @@
4688
4466
  }
4689
4467
  }
4690
4468
  },
4469
+ {
4470
+ "kind": "method",
4471
+ "name": "_getCalculatedMiddleBorderElement",
4472
+ "privacy": "private",
4473
+ "return": {
4474
+ "type": {
4475
+ "text": ""
4476
+ }
4477
+ },
4478
+ "parameters": [
4479
+ {
4480
+ "name": "coach",
4481
+ "type": {
4482
+ "text": "CoachItem"
4483
+ }
4484
+ }
4485
+ ],
4486
+ "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."
4487
+ },
4488
+ {
4489
+ "kind": "method",
4490
+ "name": "_getFirstLastDockingElements",
4491
+ "privacy": "private",
4492
+ "return": {
4493
+ "type": {
4494
+ "text": ""
4495
+ }
4496
+ },
4497
+ "parameters": [
4498
+ {
4499
+ "name": "graphicElements",
4500
+ "type": {
4501
+ "text": "BaseElement[]"
4502
+ }
4503
+ }
4504
+ ],
4505
+ "description": "Returns graphical elements describing the start and end border elements of the coach."
4506
+ },
4507
+ {
4508
+ "kind": "method",
4509
+ "name": "_getCalculatedDimensionPositionElement",
4510
+ "privacy": "private",
4511
+ "return": {
4512
+ "type": {
4513
+ "text": ""
4514
+ }
4515
+ },
4516
+ "parameters": [
4517
+ {
4518
+ "name": "element",
4519
+ "type": {
4520
+ "text": "BaseElement"
4521
+ }
4522
+ },
4523
+ {
4524
+ "name": "coachDimension",
4525
+ "type": {
4526
+ "text": "ElementDimension"
4527
+ }
4528
+ },
4529
+ {
4530
+ "name": "isCalcAreaElement",
4531
+ "type": {
4532
+ "text": "boolean"
4533
+ }
4534
+ }
4535
+ ],
4536
+ "description": "Returns the calculated positions and dimensions of graphical, service and area elements"
4537
+ },
4691
4538
  {
4692
4539
  "kind": "method",
4693
4540
  "name": "_getPlaceHtmlElement",
@@ -4793,11 +4640,11 @@
4793
4640
  },
4794
4641
  {
4795
4642
  "kind": "method",
4796
- "name": "_setDriverAreasElements",
4643
+ "name": "_isLocomotive",
4797
4644
  "privacy": "private",
4798
4645
  "return": {
4799
4646
  "type": {
4800
- "text": "{\n driverArea: BaseElement | undefined;\n driverAreaNoVerticalWall: BaseElement | undefined;\n }"
4647
+ "text": "boolean"
4801
4648
  }
4802
4649
  },
4803
4650
  "parameters": [
@@ -4989,15 +4836,6 @@
4989
4836
  },
4990
4837
  "privacy": "private"
4991
4838
  },
4992
- {
4993
- "kind": "field",
4994
- "name": "_notFixedRotatableAreaIcons",
4995
- "type": {
4996
- "text": "array"
4997
- },
4998
- "privacy": "private",
4999
- "default": "['ENTRY_EXIT']"
5000
- },
5001
4839
  {
5002
4840
  "kind": "method",
5003
4841
  "name": "_initVehicleSeatReservationConstruction",
@@ -5132,6 +4970,12 @@
5132
4970
  "text": "CoachItem"
5133
4971
  }
5134
4972
  },
4973
+ {
4974
+ "name": "deckCoachIndex",
4975
+ "type": {
4976
+ "text": "number"
4977
+ }
4978
+ },
5135
4979
  {
5136
4980
  "name": "coachIndex",
5137
4981
  "type": {
@@ -5214,7 +5058,7 @@
5214
5058
  },
5215
5059
  {
5216
5060
  "kind": "method",
5217
- "name": "_getRenderedGraphicalElements",
5061
+ "name": "_getRenderedCoachElements",
5218
5062
  "privacy": "private",
5219
5063
  "return": {
5220
5064
  "type": {
@@ -5223,25 +5067,13 @@
5223
5067
  },
5224
5068
  "parameters": [
5225
5069
  {
5226
- "name": "graphicalElements",
5227
- "type": {
5228
- "text": "BaseElement[]"
5229
- }
5230
- },
5231
- {
5232
- "name": "coachDimension",
5233
- "type": {
5234
- "text": "ElementDimension"
5235
- }
5236
- },
5237
- {
5238
- "name": "coachIndex",
5070
+ "name": "coachDeckIndex",
5239
5071
  "type": {
5240
5072
  "text": "number"
5241
5073
  }
5242
5074
  },
5243
5075
  {
5244
- "name": "coachDeckIndex",
5076
+ "name": "coachIndex",
5245
5077
  "type": {
5246
5078
  "text": "number"
5247
5079
  }
@@ -5250,76 +5082,25 @@
5250
5082
  },
5251
5083
  {
5252
5084
  "kind": "method",
5253
- "name": "_getRenderElementWithArea",
5085
+ "name": "_getRenderedAreaElements",
5254
5086
  "privacy": "private",
5255
5087
  "return": {
5256
5088
  "type": {
5257
- "text": "TemplateResult"
5089
+ "text": "TemplateResult[] | null"
5258
5090
  }
5259
5091
  },
5260
5092
  "parameters": [
5261
- {
5262
- "name": "graphicalElement",
5263
- "type": {
5264
- "text": "BaseElement"
5265
- }
5266
- },
5267
- {
5268
- "name": "rotation",
5269
- "type": {
5270
- "text": "number"
5271
- }
5272
- },
5273
- {
5274
- "name": "coachDimension",
5275
- "type": {
5276
- "text": "ElementDimension"
5277
- }
5278
- },
5279
- {
5280
- "name": "coachIndex",
5281
- "type": {
5282
- "text": "number"
5283
- },
5284
- "description": "used to generate a unique id for the popover trigger"
5285
- },
5286
5093
  {
5287
5094
  "name": "coachDeckIndex",
5288
5095
  "type": {
5289
5096
  "text": "number"
5290
- },
5291
- "description": "used to generate a unique id"
5292
- }
5293
- ],
5294
- "description": "creates a rendered element with an area component"
5295
- },
5296
- {
5297
- "kind": "method",
5298
- "name": "_getRenderElementWithoutArea",
5299
- "privacy": "private",
5300
- "return": {
5301
- "type": {
5302
- "text": "TemplateResult"
5303
- }
5304
- },
5305
- "parameters": [
5306
- {
5307
- "name": "graphicalElement",
5308
- "type": {
5309
- "text": "BaseElement"
5310
5097
  }
5311
5098
  },
5312
5099
  {
5313
- "name": "rotation",
5100
+ "name": "coachIndex",
5314
5101
  "type": {
5315
5102
  "text": "number"
5316
5103
  }
5317
- },
5318
- {
5319
- "name": "coachDimension",
5320
- "type": {
5321
- "text": "ElementDimension"
5322
- }
5323
5104
  }
5324
5105
  ]
5325
5106
  },
@@ -5333,12 +5114,6 @@
5333
5114
  }
5334
5115
  },
5335
5116
  "parameters": [
5336
- {
5337
- "name": "coachIndex",
5338
- "type": {
5339
- "text": "number"
5340
- }
5341
- },
5342
5117
  {
5343
5118
  "name": "coachDeckIndex",
5344
5119
  "type": {
@@ -5346,10 +5121,9 @@
5346
5121
  }
5347
5122
  },
5348
5123
  {
5349
- "name": "serviceElements",
5350
- "optional": true,
5124
+ "name": "coachIndex",
5351
5125
  "type": {
5352
- "text": "BaseElement[]"
5126
+ "text": "number"
5353
5127
  }
5354
5128
  }
5355
5129
  ]
@@ -6051,6 +5825,32 @@
6051
5825
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
6052
5826
  }
6053
5827
  },
5828
+ {
5829
+ "kind": "field",
5830
+ "name": "seatReservationStructure",
5831
+ "type": {
5832
+ "text": "SeatreservationStructure"
5833
+ },
5834
+ "privacy": "protected",
5835
+ "default": "{ decks: [], }",
5836
+ "inheritedFrom": {
5837
+ "name": "SeatReservationBaseElement",
5838
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5839
+ }
5840
+ },
5841
+ {
5842
+ "kind": "field",
5843
+ "name": "notFixedRotatableAreaIcons",
5844
+ "type": {
5845
+ "text": "array"
5846
+ },
5847
+ "privacy": "protected",
5848
+ "default": "['ENTRY_EXIT']",
5849
+ "inheritedFrom": {
5850
+ "name": "SeatReservationBaseElement",
5851
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5852
+ }
5853
+ },
6054
5854
  {
6055
5855
  "kind": "field",
6056
5856
  "name": "notAreaElements",
@@ -6066,12 +5866,12 @@
6066
5866
  },
6067
5867
  {
6068
5868
  "kind": "field",
6069
- "name": "overHangingElementInformation",
5869
+ "name": "middleBorderDockingElements",
6070
5870
  "type": {
6071
- "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
5871
+ "text": "array"
6072
5872
  },
6073
5873
  "privacy": "protected",
6074
- "default": "[]",
5874
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', ]",
6075
5875
  "inheritedFrom": {
6076
5876
  "name": "SeatReservationBaseElement",
6077
5877
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
@@ -7168,7 +6968,7 @@
7168
6968
  },
7169
6969
  {
7170
6970
  "kind": "method",
7171
- "name": "_prepareCoachWidthAndGapCalculations",
6971
+ "name": "_prepareSeatReservationStructureInformation",
7172
6972
  "privacy": "private",
7173
6973
  "return": {
7174
6974
  "type": {
@@ -7180,6 +6980,87 @@
7180
6980
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
7181
6981
  }
7182
6982
  },
6983
+ {
6984
+ "kind": "method",
6985
+ "name": "_getCalculatedMiddleBorderElement",
6986
+ "privacy": "private",
6987
+ "return": {
6988
+ "type": {
6989
+ "text": ""
6990
+ }
6991
+ },
6992
+ "parameters": [
6993
+ {
6994
+ "name": "coach",
6995
+ "type": {
6996
+ "text": "CoachItem"
6997
+ }
6998
+ }
6999
+ ],
7000
+ "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.",
7001
+ "inheritedFrom": {
7002
+ "name": "SeatReservationBaseElement",
7003
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
7004
+ }
7005
+ },
7006
+ {
7007
+ "kind": "method",
7008
+ "name": "_getFirstLastDockingElements",
7009
+ "privacy": "private",
7010
+ "return": {
7011
+ "type": {
7012
+ "text": ""
7013
+ }
7014
+ },
7015
+ "parameters": [
7016
+ {
7017
+ "name": "graphicElements",
7018
+ "type": {
7019
+ "text": "BaseElement[]"
7020
+ }
7021
+ }
7022
+ ],
7023
+ "description": "Returns graphical elements describing the start and end border elements of the coach.",
7024
+ "inheritedFrom": {
7025
+ "name": "SeatReservationBaseElement",
7026
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
7027
+ }
7028
+ },
7029
+ {
7030
+ "kind": "method",
7031
+ "name": "_getCalculatedDimensionPositionElement",
7032
+ "privacy": "private",
7033
+ "return": {
7034
+ "type": {
7035
+ "text": ""
7036
+ }
7037
+ },
7038
+ "parameters": [
7039
+ {
7040
+ "name": "element",
7041
+ "type": {
7042
+ "text": "BaseElement"
7043
+ }
7044
+ },
7045
+ {
7046
+ "name": "coachDimension",
7047
+ "type": {
7048
+ "text": "ElementDimension"
7049
+ }
7050
+ },
7051
+ {
7052
+ "name": "isCalcAreaElement",
7053
+ "type": {
7054
+ "text": "boolean"
7055
+ }
7056
+ }
7057
+ ],
7058
+ "description": "Returns the calculated positions and dimensions of graphical, service and area elements",
7059
+ "inheritedFrom": {
7060
+ "name": "SeatReservationBaseElement",
7061
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
7062
+ }
7063
+ },
7183
7064
  {
7184
7065
  "kind": "method",
7185
7066
  "name": "_getPlaceHtmlElement",
@@ -7309,11 +7190,11 @@
7309
7190
  },
7310
7191
  {
7311
7192
  "kind": "method",
7312
- "name": "_setDriverAreasElements",
7193
+ "name": "_isLocomotive",
7313
7194
  "privacy": "private",
7314
7195
  "return": {
7315
7196
  "type": {
7316
- "text": "{\n driverArea: BaseElement | undefined;\n driverAreaNoVerticalWall: BaseElement | undefined;\n }"
7197
+ "text": "boolean"
7317
7198
  }
7318
7199
  },
7319
7200
  "parameters": [
@@ -7533,6 +7414,246 @@
7533
7414
  }
7534
7415
  ]
7535
7416
  },
7417
+ {
7418
+ "kind": "javascript-module",
7419
+ "path": "seat-reservation/seat-reservation-area/seat-reservation-area.component.js",
7420
+ "declarations": [
7421
+ {
7422
+ "kind": "class",
7423
+ "description": "Visualize an area with a special meaning within a wagon.",
7424
+ "name": "SbbSeatReservationAreaElement",
7425
+ "members": [
7426
+ {
7427
+ "kind": "field",
7428
+ "name": "elementName",
7429
+ "type": {
7430
+ "text": "string"
7431
+ },
7432
+ "privacy": "public",
7433
+ "static": true,
7434
+ "readonly": true,
7435
+ "default": "'sbb-seat-reservation-area'"
7436
+ },
7437
+ {
7438
+ "kind": "field",
7439
+ "name": "mounting",
7440
+ "type": {
7441
+ "text": "'free' | 'upper-border' | 'lower-border' | 'upper-to-lower-border'"
7442
+ },
7443
+ "privacy": "public",
7444
+ "default": "'free'",
7445
+ "description": "Mounting Prop",
7446
+ "attribute": "mounting",
7447
+ "reflects": true
7448
+ },
7449
+ {
7450
+ "kind": "field",
7451
+ "name": "background",
7452
+ "type": {
7453
+ "text": "'light' | 'dark'"
7454
+ },
7455
+ "privacy": "public",
7456
+ "default": "'light'",
7457
+ "description": "the background of the area",
7458
+ "attribute": "background",
7459
+ "reflects": true
7460
+ }
7461
+ ],
7462
+ "attributes": [
7463
+ {
7464
+ "name": "mounting",
7465
+ "type": {
7466
+ "text": "'free' | 'upper-border' | 'lower-border' | 'upper-to-lower-border'"
7467
+ },
7468
+ "default": "'free'",
7469
+ "description": "Mounting Prop",
7470
+ "fieldName": "mounting"
7471
+ },
7472
+ {
7473
+ "name": "background",
7474
+ "type": {
7475
+ "text": "'light' | 'dark'"
7476
+ },
7477
+ "default": "'light'",
7478
+ "description": "the background of the area",
7479
+ "fieldName": "background"
7480
+ }
7481
+ ],
7482
+ "superclass": {
7483
+ "name": "SbbElement",
7484
+ "package": "@sbb-esta/lyne-elements/core/base-elements.js"
7485
+ },
7486
+ "tagName": "sbb-seat-reservation-area",
7487
+ "customElement": true
7488
+ }
7489
+ ],
7490
+ "exports": [
7491
+ {
7492
+ "kind": "js",
7493
+ "name": "SbbSeatReservationAreaElement",
7494
+ "declaration": {
7495
+ "name": "SbbSeatReservationAreaElement",
7496
+ "module": "seat-reservation/seat-reservation-area/seat-reservation-area.component.js"
7497
+ }
7498
+ }
7499
+ ]
7500
+ },
7501
+ {
7502
+ "kind": "javascript-module",
7503
+ "path": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js",
7504
+ "declarations": [
7505
+ {
7506
+ "kind": "function",
7507
+ "name": "svgImageByOSDMCode",
7508
+ "return": {
7509
+ "type": {
7510
+ "text": ""
7511
+ }
7512
+ },
7513
+ "parameters": [
7514
+ {
7515
+ "name": "osdmCode",
7516
+ "type": {
7517
+ "text": "string"
7518
+ }
7519
+ }
7520
+ ],
7521
+ "description": "svgImageByOSDMCode Function returns the corresponding svg image by OSDM Code"
7522
+ },
7523
+ {
7524
+ "kind": "variable",
7525
+ "name": "assetsTemplate",
7526
+ "type": {
7527
+ "text": "TemplateResult"
7528
+ },
7529
+ "default": "html` <style> .story-asset { width: max-content; background-color: var(--sbb-color-white); } </style> <h1>List of all currently available assets.</h1> <h2>Interior</h2> ${interiorTable} <h2>Layout</h2> ${layoutItemsTable} <h2>Service Icons</h2> ${serviceIconTable} <h2>Chassis</h2> ${chassisTable} `"
7530
+ }
7531
+ ],
7532
+ "exports": [
7533
+ {
7534
+ "kind": "js",
7535
+ "name": "svgImageByOSDMCode",
7536
+ "declaration": {
7537
+ "name": "svgImageByOSDMCode",
7538
+ "module": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js"
7539
+ }
7540
+ },
7541
+ {
7542
+ "kind": "js",
7543
+ "name": "assetsTemplate",
7544
+ "declaration": {
7545
+ "name": "assetsTemplate",
7546
+ "module": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js"
7547
+ }
7548
+ }
7549
+ ]
7550
+ },
7551
+ {
7552
+ "kind": "javascript-module",
7553
+ "path": "seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js",
7554
+ "declarations": [
7555
+ {
7556
+ "kind": "class",
7557
+ "description": "Output one of the SVG graphics based on its code.",
7558
+ "name": "SbbSeatReservationGraphicElement",
7559
+ "members": [
7560
+ {
7561
+ "kind": "field",
7562
+ "name": "elementName",
7563
+ "type": {
7564
+ "text": "string"
7565
+ },
7566
+ "privacy": "public",
7567
+ "static": true,
7568
+ "readonly": true,
7569
+ "default": "'sbb-seat-reservation-graphic'"
7570
+ },
7571
+ {
7572
+ "kind": "field",
7573
+ "name": "name",
7574
+ "type": {
7575
+ "text": "string"
7576
+ },
7577
+ "privacy": "public",
7578
+ "default": "''",
7579
+ "description": "Name of the SVG graphic to be displayed.",
7580
+ "attribute": "name"
7581
+ },
7582
+ {
7583
+ "kind": "field",
7584
+ "name": "stretch",
7585
+ "type": {
7586
+ "text": "boolean"
7587
+ },
7588
+ "privacy": "public",
7589
+ "default": "false",
7590
+ "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
7591
+ "attribute": "stretch"
7592
+ },
7593
+ {
7594
+ "kind": "field",
7595
+ "name": "_language",
7596
+ "privacy": "private",
7597
+ "default": "new SbbLanguageController(this)"
7598
+ },
7599
+ {
7600
+ "kind": "method",
7601
+ "name": "_getSvgElement",
7602
+ "privacy": "private",
7603
+ "return": {
7604
+ "type": {
7605
+ "text": "Element | null"
7606
+ }
7607
+ },
7608
+ "parameters": [
7609
+ {
7610
+ "name": "svg",
7611
+ "type": {
7612
+ "text": "string"
7613
+ }
7614
+ }
7615
+ ]
7616
+ }
7617
+ ],
7618
+ "attributes": [
7619
+ {
7620
+ "name": "name",
7621
+ "type": {
7622
+ "text": "string"
7623
+ },
7624
+ "default": "''",
7625
+ "description": "Name of the SVG graphic to be displayed.",
7626
+ "fieldName": "name"
7627
+ },
7628
+ {
7629
+ "name": "stretch",
7630
+ "type": {
7631
+ "text": "boolean"
7632
+ },
7633
+ "default": "false",
7634
+ "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
7635
+ "fieldName": "stretch"
7636
+ }
7637
+ ],
7638
+ "superclass": {
7639
+ "name": "SbbElement",
7640
+ "package": "@sbb-esta/lyne-elements/core/base-elements.js"
7641
+ },
7642
+ "tagName": "sbb-seat-reservation-graphic",
7643
+ "customElement": true
7644
+ }
7645
+ ],
7646
+ "exports": [
7647
+ {
7648
+ "kind": "js",
7649
+ "name": "SbbSeatReservationGraphicElement",
7650
+ "declaration": {
7651
+ "name": "SbbSeatReservationGraphicElement",
7652
+ "module": "seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js"
7653
+ }
7654
+ }
7655
+ ]
7656
+ },
7536
7657
  {
7537
7658
  "kind": "javascript-module",
7538
7659
  "path": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js",