@sbb-esta/lyne-elements-experimental-dev 4.9.0-dev.1775120430 → 4.9.0-dev.1775120739

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 (2) hide show
  1. package/custom-elements.json +856 -856
  2. package/package.json +2 -2
@@ -498,6 +498,52 @@
498
498
  }
499
499
  ]
500
500
  },
501
+ {
502
+ "kind": "javascript-module",
503
+ "path": "core/datetime.js",
504
+ "declarations": [],
505
+ "exports": [
506
+ {
507
+ "kind": "js",
508
+ "name": "*",
509
+ "declaration": {
510
+ "name": "*",
511
+ "module": "core/datetime/date-helper.js"
512
+ }
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ "kind": "javascript-module",
518
+ "path": "core/timetable.js",
519
+ "declarations": [],
520
+ "exports": [
521
+ {
522
+ "kind": "js",
523
+ "name": "*",
524
+ "declaration": {
525
+ "name": "*",
526
+ "module": "core/timetable/access-leg-helper.js"
527
+ }
528
+ },
529
+ {
530
+ "kind": "js",
531
+ "name": "*",
532
+ "declaration": {
533
+ "name": "*",
534
+ "module": "core/timetable/timetable-helper.js"
535
+ }
536
+ },
537
+ {
538
+ "kind": "js",
539
+ "name": "*",
540
+ "declaration": {
541
+ "name": "*",
542
+ "module": "core/timetable/timetable-properties.js"
543
+ }
544
+ }
545
+ ]
546
+ },
501
547
  {
502
548
  "kind": "javascript-module",
503
549
  "path": "journey-summary/journey-summary.component.js",
@@ -770,52 +816,6 @@
770
816
  }
771
817
  ]
772
818
  },
773
- {
774
- "kind": "javascript-module",
775
- "path": "core/datetime.js",
776
- "declarations": [],
777
- "exports": [
778
- {
779
- "kind": "js",
780
- "name": "*",
781
- "declaration": {
782
- "name": "*",
783
- "module": "core/datetime/date-helper.js"
784
- }
785
- }
786
- ]
787
- },
788
- {
789
- "kind": "javascript-module",
790
- "path": "core/timetable.js",
791
- "declarations": [],
792
- "exports": [
793
- {
794
- "kind": "js",
795
- "name": "*",
796
- "declaration": {
797
- "name": "*",
798
- "module": "core/timetable/access-leg-helper.js"
799
- }
800
- },
801
- {
802
- "kind": "js",
803
- "name": "*",
804
- "declaration": {
805
- "name": "*",
806
- "module": "core/timetable/timetable-helper.js"
807
- }
808
- },
809
- {
810
- "kind": "js",
811
- "name": "*",
812
- "declaration": {
813
- "name": "*",
814
- "module": "core/timetable/timetable-properties.js"
815
- }
816
- }
817
- ]
818
- },
819
819
  {
820
820
  "kind": "javascript-module",
821
821
  "path": "pearl-chain/pearl-chain.component.js",
@@ -1344,6 +1344,99 @@
1344
1344
  }
1345
1345
  ]
1346
1346
  },
1347
+ {
1348
+ "kind": "javascript-module",
1349
+ "path": "pearl-chain-vertical-item/pearl-chain-vertical-item.component.js",
1350
+ "declarations": [
1351
+ {
1352
+ "kind": "class",
1353
+ "description": "It displays details about connection between stations.",
1354
+ "name": "SbbPearlChainVerticalItemElement",
1355
+ "slots": [
1356
+ {
1357
+ "description": "Content of the left side of the item",
1358
+ "name": "left"
1359
+ },
1360
+ {
1361
+ "description": "Content of the right side of the item",
1362
+ "name": "right"
1363
+ }
1364
+ ],
1365
+ "members": [
1366
+ {
1367
+ "kind": "field",
1368
+ "name": "elementName",
1369
+ "type": {
1370
+ "text": "string"
1371
+ },
1372
+ "privacy": "public",
1373
+ "static": true,
1374
+ "readonly": true,
1375
+ "default": "'sbb-pearl-chain-vertical-item'"
1376
+ },
1377
+ {
1378
+ "kind": "field",
1379
+ "name": "pearlChainVerticalItemAttributes",
1380
+ "type": {
1381
+ "text": "PearlChainVerticalItemAttributes"
1382
+ },
1383
+ "privacy": "public",
1384
+ "default": "null!",
1385
+ "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
1386
+ "attribute": "pearl-chain-vertical-item-attributes"
1387
+ },
1388
+ {
1389
+ "kind": "field",
1390
+ "name": "disableAnimation",
1391
+ "type": {
1392
+ "text": "boolean"
1393
+ },
1394
+ "privacy": "public",
1395
+ "default": "false",
1396
+ "description": "If true, the position won't be animated.",
1397
+ "attribute": "disable-animation",
1398
+ "reflects": true
1399
+ }
1400
+ ],
1401
+ "attributes": [
1402
+ {
1403
+ "name": "pearl-chain-vertical-item-attributes",
1404
+ "type": {
1405
+ "text": "PearlChainVerticalItemAttributes"
1406
+ },
1407
+ "default": "null!",
1408
+ "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
1409
+ "fieldName": "pearlChainVerticalItemAttributes"
1410
+ },
1411
+ {
1412
+ "name": "disable-animation",
1413
+ "type": {
1414
+ "text": "boolean"
1415
+ },
1416
+ "default": "false",
1417
+ "description": "If true, the position won't be animated.",
1418
+ "fieldName": "disableAnimation"
1419
+ }
1420
+ ],
1421
+ "superclass": {
1422
+ "name": "SbbElement",
1423
+ "package": "@sbb-esta/lyne-elements/core/base-elements.js"
1424
+ },
1425
+ "tagName": "sbb-pearl-chain-vertical-item",
1426
+ "customElement": true
1427
+ }
1428
+ ],
1429
+ "exports": [
1430
+ {
1431
+ "kind": "js",
1432
+ "name": "SbbPearlChainVerticalItemElement",
1433
+ "declaration": {
1434
+ "name": "SbbPearlChainVerticalItemElement",
1435
+ "module": "pearl-chain-vertical-item/pearl-chain-vertical-item.component.js"
1436
+ }
1437
+ }
1438
+ ]
1439
+ },
1347
1440
  {
1348
1441
  "kind": "javascript-module",
1349
1442
  "path": "seat-reservation/common.js",
@@ -1498,22 +1591,12 @@
1498
1591
  },
1499
1592
  {
1500
1593
  "kind": "javascript-module",
1501
- "path": "pearl-chain-vertical-item/pearl-chain-vertical-item.component.js",
1594
+ "path": "timetable-duration/timetable-duration.component.js",
1502
1595
  "declarations": [
1503
1596
  {
1504
1597
  "kind": "class",
1505
- "description": "It displays details about connection between stations.",
1506
- "name": "SbbPearlChainVerticalItemElement",
1507
- "slots": [
1508
- {
1509
- "description": "Content of the left side of the item",
1510
- "name": "left"
1511
- },
1512
- {
1513
- "description": "Content of the right side of the item",
1514
- "name": "right"
1515
- }
1516
- ],
1598
+ "description": "Used in `sbb-timetable-row`, it displays information about the trip duration.",
1599
+ "name": "SbbTimetableDurationElement",
1517
1600
  "members": [
1518
1601
  {
1519
1602
  "kind": "field",
@@ -1524,142 +1607,59 @@
1524
1607
  "privacy": "public",
1525
1608
  "static": true,
1526
1609
  "readonly": true,
1527
- "default": "'sbb-pearl-chain-vertical-item'"
1610
+ "default": "'sbb-timetable-duration'"
1528
1611
  },
1529
1612
  {
1530
1613
  "kind": "field",
1531
- "name": "pearlChainVerticalItemAttributes",
1614
+ "name": "config",
1532
1615
  "type": {
1533
- "text": "PearlChainVerticalItemAttributes"
1616
+ "text": "string"
1534
1617
  },
1535
1618
  "privacy": "public",
1536
- "default": "null!",
1537
- "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
1538
- "attribute": "pearl-chain-vertical-item-attributes"
1619
+ "default": "''",
1620
+ "description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
1621
+ "attribute": "config"
1539
1622
  },
1540
1623
  {
1541
1624
  "kind": "field",
1542
- "name": "disableAnimation",
1543
- "type": {
1544
- "text": "boolean"
1545
- },
1546
- "privacy": "public",
1547
- "default": "false",
1548
- "description": "If true, the position won't be animated.",
1549
- "attribute": "disable-animation",
1550
- "reflects": true
1625
+ "name": "_language",
1626
+ "privacy": "private",
1627
+ "default": "new SbbLanguageController(this)"
1551
1628
  }
1552
1629
  ],
1553
1630
  "attributes": [
1554
1631
  {
1555
- "name": "pearl-chain-vertical-item-attributes",
1556
- "type": {
1557
- "text": "PearlChainVerticalItemAttributes"
1558
- },
1559
- "default": "null!",
1560
- "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
1561
- "fieldName": "pearlChainVerticalItemAttributes"
1562
- },
1563
- {
1564
- "name": "disable-animation",
1632
+ "name": "config",
1565
1633
  "type": {
1566
- "text": "boolean"
1634
+ "text": "string"
1567
1635
  },
1568
- "default": "false",
1569
- "description": "If true, the position won't be animated.",
1570
- "fieldName": "disableAnimation"
1636
+ "default": "''",
1637
+ "description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
1638
+ "fieldName": "config"
1571
1639
  }
1572
1640
  ],
1573
1641
  "superclass": {
1574
1642
  "name": "SbbElement",
1575
1643
  "package": "@sbb-esta/lyne-elements/core/base-elements.js"
1576
1644
  },
1577
- "tagName": "sbb-pearl-chain-vertical-item",
1645
+ "tagName": "sbb-timetable-duration",
1578
1646
  "customElement": true
1579
1647
  }
1580
1648
  ],
1581
1649
  "exports": [
1582
1650
  {
1583
1651
  "kind": "js",
1584
- "name": "SbbPearlChainVerticalItemElement",
1652
+ "name": "SbbTimetableDurationElement",
1585
1653
  "declaration": {
1586
- "name": "SbbPearlChainVerticalItemElement",
1587
- "module": "pearl-chain-vertical-item/pearl-chain-vertical-item.component.js"
1654
+ "name": "SbbTimetableDurationElement",
1655
+ "module": "timetable-duration/timetable-duration.component.js"
1588
1656
  }
1589
1657
  }
1590
1658
  ]
1591
1659
  },
1592
1660
  {
1593
1661
  "kind": "javascript-module",
1594
- "path": "timetable-duration/timetable-duration.component.js",
1595
- "declarations": [
1596
- {
1597
- "kind": "class",
1598
- "description": "Used in `sbb-timetable-row`, it displays information about the trip duration.",
1599
- "name": "SbbTimetableDurationElement",
1600
- "members": [
1601
- {
1602
- "kind": "field",
1603
- "name": "elementName",
1604
- "type": {
1605
- "text": "string"
1606
- },
1607
- "privacy": "public",
1608
- "static": true,
1609
- "readonly": true,
1610
- "default": "'sbb-timetable-duration'"
1611
- },
1612
- {
1613
- "kind": "field",
1614
- "name": "config",
1615
- "type": {
1616
- "text": "string"
1617
- },
1618
- "privacy": "public",
1619
- "default": "''",
1620
- "description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
1621
- "attribute": "config"
1622
- },
1623
- {
1624
- "kind": "field",
1625
- "name": "_language",
1626
- "privacy": "private",
1627
- "default": "new SbbLanguageController(this)"
1628
- }
1629
- ],
1630
- "attributes": [
1631
- {
1632
- "name": "config",
1633
- "type": {
1634
- "text": "string"
1635
- },
1636
- "default": "''",
1637
- "description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
1638
- "fieldName": "config"
1639
- }
1640
- ],
1641
- "superclass": {
1642
- "name": "SbbElement",
1643
- "package": "@sbb-esta/lyne-elements/core/base-elements.js"
1644
- },
1645
- "tagName": "sbb-timetable-duration",
1646
- "customElement": true
1647
- }
1648
- ],
1649
- "exports": [
1650
- {
1651
- "kind": "js",
1652
- "name": "SbbTimetableDurationElement",
1653
- "declaration": {
1654
- "name": "SbbTimetableDurationElement",
1655
- "module": "timetable-duration/timetable-duration.component.js"
1656
- }
1657
- }
1658
- ]
1659
- },
1660
- {
1661
- "kind": "javascript-module",
1662
- "path": "timetable-row/timetable-row.component.js",
1662
+ "path": "timetable-row/timetable-row.component.js",
1663
1663
  "declarations": [
1664
1664
  {
1665
1665
  "kind": "function",
@@ -3126,950 +3126,457 @@
3126
3126
  },
3127
3127
  {
3128
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",
3129
+ "path": "seat-reservation/seat-reservation/seat-reservation-base-element.js",
3180
3130
  "declarations": [
3181
3131
  {
3182
3132
  "kind": "class",
3183
- "description": "Output one of the SVG graphics based on its code.",
3184
- "name": "SbbSeatReservationGraphicElement",
3133
+ "description": "",
3134
+ "name": "SeatReservationBaseElement",
3185
3135
  "members": [
3186
3136
  {
3187
3137
  "kind": "field",
3188
- "name": "elementName",
3189
- "type": {
3190
- "text": "string"
3191
- },
3138
+ "name": "events",
3192
3139
  "privacy": "public",
3193
3140
  "static": true,
3194
3141
  "readonly": true,
3195
- "default": "'sbb-seat-reservation-graphic'"
3142
+ "default": "{ selectedplaces: 'selectedplaces', selectedcoach: 'selectedcoach', }",
3143
+ "type": {
3144
+ "text": "{\n selectedplaces: 'selectedplaces',\n selectedcoach: 'selectedcoach',\n }"
3145
+ }
3196
3146
  },
3197
3147
  {
3198
3148
  "kind": "field",
3199
- "name": "name",
3149
+ "name": "seatReservations",
3200
3150
  "type": {
3201
- "text": "string"
3151
+ "text": "SeatReservation[]"
3202
3152
  },
3203
3153
  "privacy": "public",
3204
- "default": "''",
3205
- "description": "Name of the SVG graphic to be displayed.",
3206
- "attribute": "name"
3154
+ "default": "null!",
3155
+ "description": "The seat reservations array contains all coaches and places",
3156
+ "attribute": "seat-reservations"
3207
3157
  },
3208
3158
  {
3209
3159
  "kind": "field",
3210
- "name": "stretch",
3160
+ "name": "travelDirection",
3211
3161
  "type": {
3212
- "text": "boolean"
3162
+ "text": "TravelDirection"
3213
3163
  },
3214
3164
  "privacy": "public",
3215
- "default": "false",
3216
- "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
3217
- "attribute": "stretch"
3165
+ "default": "'NONE'",
3166
+ "description": "Displays an arrow showing what direction does train drive",
3167
+ "attribute": "travel-direction"
3218
3168
  },
3219
3169
  {
3220
3170
  "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",
3171
+ "name": "hasNavigation",
3247
3172
  "type": {
3248
- "text": "string"
3173
+ "text": "boolean"
3249
3174
  },
3250
- "default": "''",
3251
- "description": "Name of the SVG graphic to be displayed.",
3252
- "fieldName": "name"
3175
+ "privacy": "public",
3176
+ "default": "true",
3177
+ "description": "The seat reservation navigation can be toggled by this property",
3178
+ "attribute": "has-navigation"
3253
3179
  },
3254
3180
  {
3255
- "name": "stretch",
3181
+ "kind": "field",
3182
+ "name": "alignVertical",
3256
3183
  "type": {
3257
3184
  "text": "boolean"
3258
3185
  },
3186
+ "privacy": "public",
3259
3187
  "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-navigation-coach/seat-reservation-navigation-coach.component.js",
3286
- "declarations": [
3287
- {
3288
- "kind": "class",
3289
- "description": "This component will display the navigation coach item for Seat reservation.",
3290
- "name": "SbbSeatReservationNavigationCoachElement",
3291
- "members": [
3188
+ "description": "The seat reservation area is aligned vertically",
3189
+ "attribute": "align-vertical",
3190
+ "reflects": true
3191
+ },
3292
3192
  {
3293
3193
  "kind": "field",
3294
- "name": "elementName",
3194
+ "name": "baseGridSize",
3295
3195
  "type": {
3296
- "text": "string"
3196
+ "text": "number"
3297
3197
  },
3298
3198
  "privacy": "public",
3299
- "static": true,
3300
- "readonly": true,
3301
- "default": "'sbb-seat-reservation-navigation-coach'"
3199
+ "default": "16",
3200
+ "description": "The seat reservation area's base grid size",
3201
+ "attribute": "base-grid-size"
3302
3202
  },
3303
3203
  {
3304
3204
  "kind": "field",
3305
- "name": "events",
3306
- "privacy": "public",
3307
- "static": true,
3308
- "readonly": true,
3309
- "default": "{ selectcoach: 'selectcoach', focuscoach: 'focuscoach', }",
3205
+ "name": "height",
3310
3206
  "type": {
3311
- "text": "{\n selectcoach: 'selectcoach',\n focuscoach: 'focuscoach',\n }"
3312
- }
3207
+ "text": "number"
3208
+ },
3209
+ "privacy": "public",
3210
+ "default": "null!",
3211
+ "description": "The seat reservation area's width",
3212
+ "attribute": "height"
3313
3213
  },
3314
3214
  {
3315
3215
  "kind": "field",
3316
- "name": "selected",
3216
+ "name": "maxSeatReservations",
3317
3217
  "type": {
3318
- "text": "boolean"
3218
+ "text": "number"
3319
3219
  },
3320
3220
  "privacy": "public",
3321
- "default": "false",
3322
- "description": "Select coach property",
3323
- "attribute": "selected"
3221
+ "default": "-1",
3222
+ "description": "Maximal number of possible clickable seats",
3223
+ "attribute": "max-seat-reservations"
3324
3224
  },
3325
3225
  {
3326
3226
  "kind": "field",
3327
- "name": "focused",
3227
+ "name": "maxBicycleReservations",
3328
3228
  "type": {
3329
- "text": "boolean"
3229
+ "text": "number"
3330
3230
  },
3331
3231
  "privacy": "public",
3332
- "default": "false",
3333
- "description": "Focus coach property",
3334
- "attribute": "focused"
3232
+ "default": "-1",
3233
+ "description": "Maximal number of possible clickable bicycle places",
3234
+ "attribute": "max-bicycle-reservations"
3335
3235
  },
3336
3236
  {
3337
3237
  "kind": "field",
3338
- "name": "hovered",
3238
+ "name": "preventPlaceClick",
3339
3239
  "type": {
3340
3240
  "text": "boolean"
3341
3241
  },
3342
3242
  "privacy": "public",
3343
3243
  "default": "false",
3344
- "description": "Hover coach property",
3345
- "attribute": "hovered"
3244
+ "description": "Any click functionality is prevented",
3245
+ "attribute": "prevent-place-click"
3346
3246
  },
3347
3247
  {
3348
3248
  "kind": "field",
3349
- "name": "nativeFocusActive",
3249
+ "name": "preselectCoachIndex",
3350
3250
  "type": {
3351
- "text": "boolean"
3251
+ "text": "number"
3352
3252
  },
3353
3253
  "privacy": "public",
3354
- "default": "true",
3355
- "description": "Native focus for this navigation coach is also set when the focused property is changed",
3356
- "attribute": "nativeFocusActive"
3254
+ "default": "-1",
3255
+ "attribute": "preselect-coach-index"
3357
3256
  },
3358
3257
  {
3359
3258
  "kind": "field",
3360
- "name": "index",
3259
+ "name": "showTitleInfo",
3361
3260
  "type": {
3362
- "text": "number"
3261
+ "text": "boolean"
3363
3262
  },
3364
3263
  "privacy": "public",
3365
- "default": "0",
3366
- "attribute": "index"
3264
+ "default": "false",
3265
+ "description": "The seat reservation title information at place-controls, navigation-coaches and navigation-services can be toggled by this property",
3266
+ "attribute": "show-title-info"
3367
3267
  },
3368
3268
  {
3369
3269
  "kind": "field",
3370
- "name": "coachItemDetails",
3270
+ "name": "selectedCoachIndex",
3371
3271
  "type": {
3372
- "text": "CoachItemDetails"
3272
+ "text": "number"
3373
3273
  },
3374
- "privacy": "public",
3375
- "default": "<CoachItemDetails>{}",
3376
- "attribute": "coach-item-details"
3274
+ "privacy": "protected",
3275
+ "default": "-1"
3377
3276
  },
3378
3277
  {
3379
3278
  "kind": "field",
3380
- "name": "disable",
3279
+ "name": "focusedCoachIndex",
3381
3280
  "type": {
3382
- "text": "boolean"
3281
+ "text": "number"
3383
3282
  },
3384
- "privacy": "public",
3385
- "default": "false",
3386
- "description": "Disable the coach navigation",
3387
- "attribute": "disable"
3283
+ "privacy": "protected",
3284
+ "default": "-1"
3388
3285
  },
3389
3286
  {
3390
3287
  "kind": "field",
3391
- "name": "vertical",
3288
+ "name": "hoveredCoachIndex",
3392
3289
  "type": {
3393
- "text": "boolean"
3290
+ "text": "number"
3394
3291
  },
3395
- "privacy": "public",
3396
- "default": "false",
3397
- "description": "If the coach navigation should be displayed vertically",
3398
- "attribute": "vertical",
3399
- "reflects": true
3292
+ "privacy": "protected",
3293
+ "default": "-1"
3400
3294
  },
3401
3295
  {
3402
3296
  "kind": "field",
3403
- "name": "showTitleInfo",
3297
+ "name": "coachBorderPadding",
3404
3298
  "type": {
3405
- "text": "boolean"
3299
+ "text": "number"
3406
3300
  },
3407
- "privacy": "public",
3408
- "default": "false",
3409
- "description": "Disable the mouse over title information",
3410
- "attribute": "showTitleInfo"
3301
+ "privacy": "protected",
3302
+ "default": "6"
3411
3303
  },
3412
3304
  {
3413
3305
  "kind": "field",
3414
- "name": "_language",
3415
- "privacy": "private",
3416
- "default": "new SbbLanguageController(this)"
3417
- },
3418
- {
3419
- "kind": "method",
3420
- "name": "_getNavigationButton",
3421
- "privacy": "private",
3422
- "return": {
3423
- "type": {
3424
- "text": "TemplateResult | null"
3425
- }
3426
- }
3427
- },
3428
- {
3429
- "kind": "method",
3430
- "name": "_getBtnInformation",
3431
- "privacy": "private",
3432
- "return": {
3433
- "type": {
3434
- "text": "TemplateResult | null"
3435
- }
3436
- },
3437
- "parameters": [
3438
- {
3439
- "name": "serviceClassNumber",
3440
- "type": {
3441
- "text": "number | null"
3442
- }
3443
- }
3444
- ]
3445
- },
3446
- {
3447
- "kind": "method",
3448
- "name": "_getTitleDescriptionNavCoachButton",
3449
- "privacy": "private",
3450
- "return": {
3451
- "type": {
3452
- "text": "string"
3453
- }
3306
+ "name": "gapBetweenCoaches",
3307
+ "type": {
3308
+ "text": "number"
3454
3309
  },
3455
- "parameters": [
3456
- {
3457
- "name": "serviceClassNumber",
3458
- "type": {
3459
- "text": "number | null"
3460
- }
3461
- }
3462
- ]
3310
+ "privacy": "protected",
3311
+ "default": "4"
3463
3312
  },
3464
3313
  {
3465
- "kind": "method",
3466
- "name": "_getAriaDescriptionCoachServices",
3467
- "privacy": "private",
3468
- "return": {
3469
- "type": {
3470
- "text": "string | null"
3471
- }
3472
- }
3314
+ "kind": "field",
3315
+ "name": "coachBorderOffset",
3316
+ "privacy": "protected"
3473
3317
  },
3474
3318
  {
3475
- "kind": "method",
3476
- "name": "_selectNavCoach",
3477
- "privacy": "private",
3478
- "return": {
3479
- "type": {
3480
- "text": "void"
3481
- }
3319
+ "kind": "field",
3320
+ "name": "gapBetweenCoachDecks",
3321
+ "type": {
3322
+ "text": "number"
3482
3323
  },
3483
- "parameters": [
3484
- {
3485
- "name": "coachIndex",
3486
- "type": {
3487
- "text": "number"
3488
- }
3489
- }
3490
- ],
3491
- "description": "emits the index of the coach array for the main navigation."
3324
+ "privacy": "protected",
3325
+ "default": "48"
3492
3326
  },
3493
3327
  {
3494
- "kind": "method",
3495
- "name": "_getCoachServiceClassNumber",
3496
- "privacy": "private",
3497
- "return": {
3498
- "type": {
3499
- "text": "number | null"
3500
- }
3501
- }
3502
- }
3503
- ],
3504
- "events": [
3505
- {
3506
- "name": "focuscoach",
3328
+ "kind": "field",
3329
+ "name": "coachNavButtonDim",
3507
3330
  "type": {
3508
- "text": "Event"
3331
+ "text": "number"
3509
3332
  },
3510
- "description": "Emits when a nav coach has the focus"
3333
+ "privacy": "protected",
3334
+ "default": "0"
3511
3335
  },
3512
3336
  {
3513
- "name": "selectcoach",
3337
+ "kind": "field",
3338
+ "name": "globalAreaIconDim",
3514
3339
  "type": {
3515
- "text": "CustomEvent<SelectCoachEventDetails>"
3340
+ "text": "ElementDimension"
3516
3341
  },
3517
- "description": "Emits when a coach within the navigation was selected and returns the clicked coach nav index."
3518
- }
3519
- ],
3520
- "attributes": [
3342
+ "privacy": "protected",
3343
+ "default": "{ w: 2, h: 2 }"
3344
+ },
3521
3345
  {
3522
- "name": "selected",
3346
+ "kind": "field",
3347
+ "name": "globalAreaIconPadding",
3523
3348
  "type": {
3524
- "text": "boolean"
3349
+ "text": "number"
3525
3350
  },
3526
- "default": "false",
3527
- "description": "Select coach property",
3528
- "fieldName": "selected"
3351
+ "privacy": "protected",
3352
+ "default": "0.8"
3529
3353
  },
3530
3354
  {
3531
- "name": "focused",
3355
+ "kind": "field",
3356
+ "name": "coachItemDetailsElements",
3532
3357
  "type": {
3533
- "text": "boolean"
3358
+ "text": "CoachItemDetails[]"
3534
3359
  },
3535
- "default": "false",
3536
- "description": "Focus coach property",
3537
- "fieldName": "focused"
3360
+ "privacy": "protected",
3361
+ "default": "[]"
3538
3362
  },
3539
3363
  {
3540
- "name": "hovered",
3364
+ "kind": "field",
3365
+ "name": "currScrollDirection",
3541
3366
  "type": {
3542
- "text": "boolean"
3367
+ "text": "ScrollDirection"
3543
3368
  },
3544
- "default": "false",
3545
- "description": "Hover coach property",
3546
- "fieldName": "hovered"
3369
+ "privacy": "protected"
3547
3370
  },
3548
3371
  {
3549
- "name": "nativeFocusActive",
3372
+ "kind": "field",
3373
+ "name": "maxCalcCoachesWidth",
3550
3374
  "type": {
3551
- "text": "boolean"
3375
+ "text": "number"
3552
3376
  },
3553
- "default": "true",
3554
- "description": "Native focus for this navigation coach is also set when the focused property is changed",
3555
- "fieldName": "nativeFocusActive"
3377
+ "privacy": "protected",
3378
+ "default": "0"
3556
3379
  },
3557
3380
  {
3558
- "name": "index",
3381
+ "kind": "field",
3382
+ "name": "scrollCoachesAreaWidth",
3559
3383
  "type": {
3560
3384
  "text": "number"
3561
3385
  },
3562
- "default": "0",
3563
- "fieldName": "index"
3386
+ "privacy": "protected",
3387
+ "default": "0"
3564
3388
  },
3565
3389
  {
3566
- "name": "coach-item-details",
3390
+ "kind": "field",
3391
+ "name": "scrollNavigationAreaDim",
3567
3392
  "type": {
3568
- "text": "CoachItemDetails"
3393
+ "text": "number"
3569
3394
  },
3570
- "default": "<CoachItemDetails>{}",
3571
- "fieldName": "coachItemDetails"
3395
+ "privacy": "protected",
3396
+ "default": "0"
3572
3397
  },
3573
3398
  {
3574
- "name": "disable",
3399
+ "kind": "field",
3400
+ "name": "triggerCoachPositionsCollection",
3575
3401
  "type": {
3576
- "text": "boolean"
3577
- },
3578
- "default": "false",
3579
- "description": "Disable the coach navigation",
3580
- "fieldName": "disable"
3581
- },
3582
- {
3583
- "name": "vertical",
3584
- "type": {
3585
- "text": "boolean"
3586
- },
3587
- "default": "false",
3588
- "description": "If the coach navigation should be displayed vertically",
3589
- "fieldName": "vertical"
3590
- },
3591
- {
3592
- "name": "showTitleInfo",
3593
- "type": {
3594
- "text": "boolean"
3595
- },
3596
- "default": "false",
3597
- "description": "Disable the mouse over title information",
3598
- "fieldName": "showTitleInfo"
3599
- }
3600
- ],
3601
- "superclass": {
3602
- "name": "SbbElement",
3603
- "package": "@sbb-esta/lyne-elements/core/base-elements.js"
3604
- },
3605
- "tagName": "sbb-seat-reservation-navigation-coach",
3606
- "customElement": true
3607
- }
3608
- ],
3609
- "exports": [
3610
- {
3611
- "kind": "js",
3612
- "name": "SbbSeatReservationNavigationCoachElement",
3613
- "declaration": {
3614
- "name": "SbbSeatReservationNavigationCoachElement",
3615
- "module": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js"
3616
- }
3617
- }
3618
- ]
3619
- },
3620
- {
3621
- "kind": "javascript-module",
3622
- "path": "seat-reservation/seat-reservation/seat-reservation-base-element.js",
3623
- "declarations": [
3624
- {
3625
- "kind": "class",
3626
- "description": "",
3627
- "name": "SeatReservationBaseElement",
3628
- "members": [
3629
- {
3630
- "kind": "field",
3631
- "name": "events",
3632
- "privacy": "public",
3633
- "static": true,
3634
- "readonly": true,
3635
- "default": "{ selectedplaces: 'selectedplaces', selectedcoach: 'selectedcoach', }",
3636
- "type": {
3637
- "text": "{\n selectedplaces: 'selectedplaces',\n selectedcoach: 'selectedcoach',\n }"
3638
- }
3639
- },
3640
- {
3641
- "kind": "field",
3642
- "name": "seatReservations",
3643
- "type": {
3644
- "text": "SeatReservation[]"
3645
- },
3646
- "privacy": "public",
3647
- "default": "null!",
3648
- "description": "The seat reservations array contains all coaches and places",
3649
- "attribute": "seat-reservations"
3650
- },
3651
- {
3652
- "kind": "field",
3653
- "name": "travelDirection",
3654
- "type": {
3655
- "text": "TravelDirection"
3402
+ "text": "CoachScrollTriggerPoint[]"
3656
3403
  },
3657
- "privacy": "public",
3658
- "default": "'NONE'",
3659
- "description": "Displays an arrow showing what direction does train drive",
3660
- "attribute": "travel-direction"
3404
+ "privacy": "protected",
3405
+ "default": "[]"
3661
3406
  },
3662
3407
  {
3663
3408
  "kind": "field",
3664
- "name": "hasNavigation",
3409
+ "name": "navigationScrollArea",
3665
3410
  "type": {
3666
- "text": "boolean"
3411
+ "text": "HTMLElement"
3667
3412
  },
3668
- "privacy": "public",
3669
- "default": "true",
3670
- "description": "The seat reservation navigation can be toggled by this property",
3671
- "attribute": "has-navigation"
3413
+ "privacy": "protected",
3414
+ "default": "null!"
3672
3415
  },
3673
3416
  {
3674
3417
  "kind": "field",
3675
- "name": "alignVertical",
3418
+ "name": "coachScrollArea",
3676
3419
  "type": {
3677
- "text": "boolean"
3420
+ "text": "HTMLElement"
3678
3421
  },
3679
- "privacy": "public",
3680
- "default": "false",
3681
- "description": "The seat reservation area is aligned vertically",
3682
- "attribute": "align-vertical",
3683
- "reflects": true
3422
+ "privacy": "protected",
3423
+ "default": "null!"
3684
3424
  },
3685
3425
  {
3686
3426
  "kind": "field",
3687
- "name": "baseGridSize",
3427
+ "name": "currSelectedPlace",
3688
3428
  "type": {
3689
- "text": "number"
3429
+ "text": "Place | null"
3690
3430
  },
3691
- "privacy": "public",
3692
- "default": "16",
3693
- "description": "The seat reservation area's base grid size",
3694
- "attribute": "base-grid-size"
3431
+ "privacy": "protected",
3432
+ "default": "null"
3695
3433
  },
3696
3434
  {
3697
3435
  "kind": "field",
3698
- "name": "height",
3436
+ "name": "currSelectedPlaceElementId",
3699
3437
  "type": {
3700
- "text": "number"
3438
+ "text": "string | null"
3701
3439
  },
3702
- "privacy": "public",
3703
- "default": "null!",
3704
- "description": "The seat reservation area's width",
3705
- "attribute": "height"
3440
+ "privacy": "protected",
3441
+ "default": "null"
3706
3442
  },
3707
3443
  {
3708
3444
  "kind": "field",
3709
- "name": "maxSeatReservations",
3445
+ "name": "currSelectedCoachIndex",
3710
3446
  "type": {
3711
3447
  "text": "number"
3712
3448
  },
3713
- "privacy": "public",
3714
- "default": "-1",
3715
- "description": "Maximal number of possible clickable seats",
3716
- "attribute": "max-seat-reservations"
3449
+ "privacy": "protected",
3450
+ "default": "-1"
3717
3451
  },
3718
3452
  {
3719
3453
  "kind": "field",
3720
- "name": "maxBicycleReservations",
3454
+ "name": "currSelectedDeckIndex",
3721
3455
  "type": {
3722
3456
  "text": "number"
3723
3457
  },
3724
- "privacy": "public",
3725
- "default": "-1",
3726
- "description": "Maximal number of possible clickable bicycle places",
3727
- "attribute": "max-bicycle-reservations"
3458
+ "privacy": "protected",
3459
+ "default": "0"
3728
3460
  },
3729
3461
  {
3730
3462
  "kind": "field",
3731
- "name": "preventPlaceClick",
3463
+ "name": "preventCoachScrollByPlaceClick",
3732
3464
  "type": {
3733
3465
  "text": "boolean"
3734
3466
  },
3735
- "privacy": "public",
3736
- "default": "false",
3737
- "description": "Any click functionality is prevented",
3738
- "attribute": "prevent-place-click"
3467
+ "privacy": "protected",
3468
+ "default": "false"
3739
3469
  },
3740
3470
  {
3741
3471
  "kind": "field",
3742
- "name": "preselectCoachIndex",
3472
+ "name": "selectedSeatReservationPlaces",
3743
3473
  "type": {
3744
- "text": "number"
3474
+ "text": "SeatReservationSelectedPlaces"
3745
3475
  },
3746
- "privacy": "public",
3747
- "default": "-1",
3748
- "attribute": "preselect-coach-index"
3476
+ "privacy": "protected",
3477
+ "default": "{ seats: [], bicycles: [], }"
3749
3478
  },
3750
3479
  {
3751
3480
  "kind": "field",
3752
- "name": "showTitleInfo",
3481
+ "name": "seatReservationWithoutNavigationHasFocus",
3753
3482
  "type": {
3754
3483
  "text": "boolean"
3755
3484
  },
3756
- "privacy": "public",
3757
- "default": "false",
3758
- "description": "The seat reservation title information at place-controls, navigation-coaches and navigation-services can be toggled by this property",
3759
- "attribute": "show-title-info"
3760
- },
3761
- {
3762
- "kind": "field",
3763
- "name": "selectedCoachIndex",
3764
- "type": {
3765
- "text": "number"
3766
- },
3767
3485
  "privacy": "protected",
3768
- "default": "-1"
3486
+ "default": "false"
3769
3487
  },
3770
3488
  {
3771
3489
  "kind": "field",
3772
- "name": "focusedCoachIndex",
3490
+ "name": "isCoachGridFocusable",
3773
3491
  "type": {
3774
- "text": "number"
3492
+ "text": "boolean"
3775
3493
  },
3776
3494
  "privacy": "protected",
3777
- "default": "-1"
3495
+ "default": "false"
3778
3496
  },
3779
3497
  {
3780
3498
  "kind": "field",
3781
- "name": "hoveredCoachIndex",
3499
+ "name": "isAutoScrolling",
3782
3500
  "type": {
3783
- "text": "number"
3501
+ "text": "boolean"
3784
3502
  },
3785
3503
  "privacy": "protected",
3786
- "default": "-1"
3504
+ "default": "false"
3787
3505
  },
3788
3506
  {
3789
3507
  "kind": "field",
3790
- "name": "coachBorderPadding",
3508
+ "name": "isKeyboardNavigation",
3791
3509
  "type": {
3792
- "text": "number"
3510
+ "text": "boolean"
3793
3511
  },
3794
3512
  "privacy": "protected",
3795
- "default": "6"
3513
+ "default": "false"
3796
3514
  },
3797
3515
  {
3798
3516
  "kind": "field",
3799
- "name": "gapBetweenCoaches",
3517
+ "name": "hasMultipleDecks",
3800
3518
  "type": {
3801
- "text": "number"
3519
+ "text": "boolean"
3802
3520
  },
3803
3521
  "privacy": "protected",
3804
- "default": "4"
3805
- },
3806
- {
3807
- "kind": "field",
3808
- "name": "coachBorderOffset",
3809
- "privacy": "protected"
3522
+ "default": "false"
3810
3523
  },
3811
3524
  {
3812
3525
  "kind": "field",
3813
- "name": "gapBetweenCoachDecks",
3526
+ "name": "hasSeatReservationNativeFocus",
3814
3527
  "type": {
3815
- "text": "number"
3528
+ "text": "boolean"
3816
3529
  },
3817
3530
  "privacy": "protected",
3818
- "default": "48"
3531
+ "default": "false"
3819
3532
  },
3820
3533
  {
3821
3534
  "kind": "field",
3822
- "name": "coachNavButtonDim",
3823
- "type": {
3824
- "text": "number"
3825
- },
3535
+ "name": "keyboardNavigationEvents",
3826
3536
  "privacy": "protected",
3827
- "default": "0"
3828
- },
3829
- {
3830
- "kind": "field",
3831
- "name": "globalAreaIconDim",
3537
+ "default": "{ ArrowLeft: 'ArrowLeft', ArrowRight: 'ArrowRight', ArrowUp: 'ArrowUp', ArrowDown: 'ArrowDown', Tab: 'Tab', Enter: 'Enter', }",
3832
3538
  "type": {
3833
- "text": "ElementDimension"
3834
- },
3835
- "privacy": "protected",
3836
- "default": "{ w: 2, h: 2 }"
3539
+ "text": "{\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Tab: 'Tab',\n Enter: 'Enter',\n }"
3540
+ }
3837
3541
  },
3838
3542
  {
3839
3543
  "kind": "field",
3840
- "name": "globalAreaIconPadding",
3544
+ "name": "notAreaElements",
3841
3545
  "type": {
3842
- "text": "number"
3546
+ "text": "array"
3843
3547
  },
3844
3548
  "privacy": "protected",
3845
- "default": "0.8"
3549
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', 'COMPARTMENT_PASSAGE', 'COMPARTMENT_PASSAGE_HIGH', 'COMPARTMENT_PASSAGE_MIDDLE', 'COMPARTMENT_PASSAGE_LOW', 'COMPARTMENT_WALL', ]"
3846
3550
  },
3847
3551
  {
3848
3552
  "kind": "field",
3849
- "name": "coachItemDetailsElements",
3553
+ "name": "overHangingElementInformation",
3850
3554
  "type": {
3851
- "text": "CoachItemDetails[]"
3555
+ "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
3852
3556
  },
3853
3557
  "privacy": "protected",
3854
3558
  "default": "[]"
3855
3559
  },
3856
3560
  {
3857
3561
  "kind": "field",
3858
- "name": "currScrollDirection",
3562
+ "name": "_isRunningInitPreselectCoachIndex",
3859
3563
  "type": {
3860
- "text": "ScrollDirection"
3564
+ "text": "boolean"
3861
3565
  },
3862
- "privacy": "protected"
3566
+ "privacy": "private",
3567
+ "default": "false"
3863
3568
  },
3864
3569
  {
3865
3570
  "kind": "field",
3866
- "name": "maxCalcCoachesWidth",
3571
+ "name": "_scrollTimeout",
3867
3572
  "type": {
3868
- "text": "number"
3573
+ "text": "ReturnType<typeof setTimeout> | undefined"
3869
3574
  },
3870
- "privacy": "protected",
3871
- "default": "0"
3575
+ "privacy": "private"
3872
3576
  },
3873
3577
  {
3874
3578
  "kind": "field",
3875
- "name": "scrollCoachesAreaWidth",
3876
- "type": {
3877
- "text": "number"
3878
- },
3879
- "privacy": "protected",
3880
- "default": "0"
3881
- },
3882
- {
3883
- "kind": "field",
3884
- "name": "scrollNavigationAreaDim",
3885
- "type": {
3886
- "text": "number"
3887
- },
3888
- "privacy": "protected",
3889
- "default": "0"
3890
- },
3891
- {
3892
- "kind": "field",
3893
- "name": "triggerCoachPositionsCollection",
3894
- "type": {
3895
- "text": "CoachScrollTriggerPoint[]"
3896
- },
3897
- "privacy": "protected",
3898
- "default": "[]"
3899
- },
3900
- {
3901
- "kind": "field",
3902
- "name": "navigationScrollArea",
3903
- "type": {
3904
- "text": "HTMLElement"
3905
- },
3906
- "privacy": "protected",
3907
- "default": "null!"
3908
- },
3909
- {
3910
- "kind": "field",
3911
- "name": "coachScrollArea",
3912
- "type": {
3913
- "text": "HTMLElement"
3914
- },
3915
- "privacy": "protected",
3916
- "default": "null!"
3917
- },
3918
- {
3919
- "kind": "field",
3920
- "name": "currSelectedPlace",
3921
- "type": {
3922
- "text": "Place | null"
3923
- },
3924
- "privacy": "protected",
3925
- "default": "null"
3926
- },
3927
- {
3928
- "kind": "field",
3929
- "name": "currSelectedPlaceElementId",
3930
- "type": {
3931
- "text": "string | null"
3932
- },
3933
- "privacy": "protected",
3934
- "default": "null"
3935
- },
3936
- {
3937
- "kind": "field",
3938
- "name": "currSelectedCoachIndex",
3939
- "type": {
3940
- "text": "number"
3941
- },
3942
- "privacy": "protected",
3943
- "default": "-1"
3944
- },
3945
- {
3946
- "kind": "field",
3947
- "name": "currSelectedDeckIndex",
3948
- "type": {
3949
- "text": "number"
3950
- },
3951
- "privacy": "protected",
3952
- "default": "0"
3953
- },
3954
- {
3955
- "kind": "field",
3956
- "name": "preventCoachScrollByPlaceClick",
3957
- "type": {
3958
- "text": "boolean"
3959
- },
3960
- "privacy": "protected",
3961
- "default": "false"
3962
- },
3963
- {
3964
- "kind": "field",
3965
- "name": "selectedSeatReservationPlaces",
3966
- "type": {
3967
- "text": "SeatReservationSelectedPlaces"
3968
- },
3969
- "privacy": "protected",
3970
- "default": "{ seats: [], bicycles: [], }"
3971
- },
3972
- {
3973
- "kind": "field",
3974
- "name": "seatReservationWithoutNavigationHasFocus",
3975
- "type": {
3976
- "text": "boolean"
3977
- },
3978
- "privacy": "protected",
3979
- "default": "false"
3980
- },
3981
- {
3982
- "kind": "field",
3983
- "name": "isCoachGridFocusable",
3984
- "type": {
3985
- "text": "boolean"
3986
- },
3987
- "privacy": "protected",
3988
- "default": "false"
3989
- },
3990
- {
3991
- "kind": "field",
3992
- "name": "isAutoScrolling",
3993
- "type": {
3994
- "text": "boolean"
3995
- },
3996
- "privacy": "protected",
3997
- "default": "false"
3998
- },
3999
- {
4000
- "kind": "field",
4001
- "name": "isKeyboardNavigation",
4002
- "type": {
4003
- "text": "boolean"
4004
- },
4005
- "privacy": "protected",
4006
- "default": "false"
4007
- },
4008
- {
4009
- "kind": "field",
4010
- "name": "hasMultipleDecks",
4011
- "type": {
4012
- "text": "boolean"
4013
- },
4014
- "privacy": "protected",
4015
- "default": "false"
4016
- },
4017
- {
4018
- "kind": "field",
4019
- "name": "hasSeatReservationNativeFocus",
4020
- "type": {
4021
- "text": "boolean"
4022
- },
4023
- "privacy": "protected",
4024
- "default": "false"
4025
- },
4026
- {
4027
- "kind": "field",
4028
- "name": "keyboardNavigationEvents",
4029
- "privacy": "protected",
4030
- "default": "{ ArrowLeft: 'ArrowLeft', ArrowRight: 'ArrowRight', ArrowUp: 'ArrowUp', ArrowDown: 'ArrowDown', Tab: 'Tab', Enter: 'Enter', }",
4031
- "type": {
4032
- "text": "{\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Tab: 'Tab',\n Enter: 'Enter',\n }"
4033
- }
4034
- },
4035
- {
4036
- "kind": "field",
4037
- "name": "notAreaElements",
4038
- "type": {
4039
- "text": "array"
4040
- },
4041
- "privacy": "protected",
4042
- "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', 'COMPARTMENT_PASSAGE', 'COMPARTMENT_PASSAGE_HIGH', 'COMPARTMENT_PASSAGE_MIDDLE', 'COMPARTMENT_PASSAGE_LOW', 'COMPARTMENT_WALL', ]"
4043
- },
4044
- {
4045
- "kind": "field",
4046
- "name": "overHangingElementInformation",
4047
- "type": {
4048
- "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
4049
- },
4050
- "privacy": "protected",
4051
- "default": "[]"
4052
- },
4053
- {
4054
- "kind": "field",
4055
- "name": "_isRunningInitPreselectCoachIndex",
4056
- "type": {
4057
- "text": "boolean"
4058
- },
4059
- "privacy": "private",
4060
- "default": "false"
4061
- },
4062
- {
4063
- "kind": "field",
4064
- "name": "_scrollTimeout",
4065
- "type": {
4066
- "text": "ReturnType<typeof setTimeout> | undefined"
4067
- },
4068
- "privacy": "private"
4069
- },
4070
- {
4071
- "kind": "field",
4072
- "name": "_lastStartScrollPos",
3579
+ "name": "_lastStartScrollPos",
4073
3580
  "type": {
4074
3581
  "text": "number"
4075
3582
  },
@@ -7870,6 +7377,499 @@
7870
7377
  }
7871
7378
  ]
7872
7379
  },
7380
+ {
7381
+ "kind": "javascript-module",
7382
+ "path": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js",
7383
+ "declarations": [
7384
+ {
7385
+ "kind": "function",
7386
+ "name": "svgImageByOSDMCode",
7387
+ "return": {
7388
+ "type": {
7389
+ "text": ""
7390
+ }
7391
+ },
7392
+ "parameters": [
7393
+ {
7394
+ "name": "osdmCode",
7395
+ "type": {
7396
+ "text": "string"
7397
+ }
7398
+ }
7399
+ ],
7400
+ "description": "svgImageByOSDMCode Function returns the corresponding svg image by OSDM Code"
7401
+ },
7402
+ {
7403
+ "kind": "variable",
7404
+ "name": "assetsTemplate",
7405
+ "type": {
7406
+ "text": "TemplateResult"
7407
+ },
7408
+ "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} `"
7409
+ }
7410
+ ],
7411
+ "exports": [
7412
+ {
7413
+ "kind": "js",
7414
+ "name": "svgImageByOSDMCode",
7415
+ "declaration": {
7416
+ "name": "svgImageByOSDMCode",
7417
+ "module": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js"
7418
+ }
7419
+ },
7420
+ {
7421
+ "kind": "js",
7422
+ "name": "assetsTemplate",
7423
+ "declaration": {
7424
+ "name": "assetsTemplate",
7425
+ "module": "seat-reservation/seat-reservation-graphic/seat-reservation-assets.js"
7426
+ }
7427
+ }
7428
+ ]
7429
+ },
7430
+ {
7431
+ "kind": "javascript-module",
7432
+ "path": "seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js",
7433
+ "declarations": [
7434
+ {
7435
+ "kind": "class",
7436
+ "description": "Output one of the SVG graphics based on its code.",
7437
+ "name": "SbbSeatReservationGraphicElement",
7438
+ "members": [
7439
+ {
7440
+ "kind": "field",
7441
+ "name": "elementName",
7442
+ "type": {
7443
+ "text": "string"
7444
+ },
7445
+ "privacy": "public",
7446
+ "static": true,
7447
+ "readonly": true,
7448
+ "default": "'sbb-seat-reservation-graphic'"
7449
+ },
7450
+ {
7451
+ "kind": "field",
7452
+ "name": "name",
7453
+ "type": {
7454
+ "text": "string"
7455
+ },
7456
+ "privacy": "public",
7457
+ "default": "''",
7458
+ "description": "Name of the SVG graphic to be displayed.",
7459
+ "attribute": "name"
7460
+ },
7461
+ {
7462
+ "kind": "field",
7463
+ "name": "stretch",
7464
+ "type": {
7465
+ "text": "boolean"
7466
+ },
7467
+ "privacy": "public",
7468
+ "default": "false",
7469
+ "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
7470
+ "attribute": "stretch"
7471
+ },
7472
+ {
7473
+ "kind": "field",
7474
+ "name": "_language",
7475
+ "privacy": "private",
7476
+ "default": "new SbbLanguageController(this)"
7477
+ },
7478
+ {
7479
+ "kind": "method",
7480
+ "name": "_getSvgElement",
7481
+ "privacy": "private",
7482
+ "return": {
7483
+ "type": {
7484
+ "text": "Element | null"
7485
+ }
7486
+ },
7487
+ "parameters": [
7488
+ {
7489
+ "name": "svg",
7490
+ "type": {
7491
+ "text": "string"
7492
+ }
7493
+ }
7494
+ ]
7495
+ }
7496
+ ],
7497
+ "attributes": [
7498
+ {
7499
+ "name": "name",
7500
+ "type": {
7501
+ "text": "string"
7502
+ },
7503
+ "default": "''",
7504
+ "description": "Name of the SVG graphic to be displayed.",
7505
+ "fieldName": "name"
7506
+ },
7507
+ {
7508
+ "name": "stretch",
7509
+ "type": {
7510
+ "text": "boolean"
7511
+ },
7512
+ "default": "false",
7513
+ "description": "if true, scale the graphic content of the given element non-uniformly if necessary",
7514
+ "fieldName": "stretch"
7515
+ }
7516
+ ],
7517
+ "superclass": {
7518
+ "name": "SbbElement",
7519
+ "package": "@sbb-esta/lyne-elements/core/base-elements.js"
7520
+ },
7521
+ "tagName": "sbb-seat-reservation-graphic",
7522
+ "customElement": true
7523
+ }
7524
+ ],
7525
+ "exports": [
7526
+ {
7527
+ "kind": "js",
7528
+ "name": "SbbSeatReservationGraphicElement",
7529
+ "declaration": {
7530
+ "name": "SbbSeatReservationGraphicElement",
7531
+ "module": "seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js"
7532
+ }
7533
+ }
7534
+ ]
7535
+ },
7536
+ {
7537
+ "kind": "javascript-module",
7538
+ "path": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js",
7539
+ "declarations": [
7540
+ {
7541
+ "kind": "class",
7542
+ "description": "This component will display the navigation coach item for Seat reservation.",
7543
+ "name": "SbbSeatReservationNavigationCoachElement",
7544
+ "members": [
7545
+ {
7546
+ "kind": "field",
7547
+ "name": "elementName",
7548
+ "type": {
7549
+ "text": "string"
7550
+ },
7551
+ "privacy": "public",
7552
+ "static": true,
7553
+ "readonly": true,
7554
+ "default": "'sbb-seat-reservation-navigation-coach'"
7555
+ },
7556
+ {
7557
+ "kind": "field",
7558
+ "name": "events",
7559
+ "privacy": "public",
7560
+ "static": true,
7561
+ "readonly": true,
7562
+ "default": "{ selectcoach: 'selectcoach', focuscoach: 'focuscoach', }",
7563
+ "type": {
7564
+ "text": "{\n selectcoach: 'selectcoach',\n focuscoach: 'focuscoach',\n }"
7565
+ }
7566
+ },
7567
+ {
7568
+ "kind": "field",
7569
+ "name": "selected",
7570
+ "type": {
7571
+ "text": "boolean"
7572
+ },
7573
+ "privacy": "public",
7574
+ "default": "false",
7575
+ "description": "Select coach property",
7576
+ "attribute": "selected"
7577
+ },
7578
+ {
7579
+ "kind": "field",
7580
+ "name": "focused",
7581
+ "type": {
7582
+ "text": "boolean"
7583
+ },
7584
+ "privacy": "public",
7585
+ "default": "false",
7586
+ "description": "Focus coach property",
7587
+ "attribute": "focused"
7588
+ },
7589
+ {
7590
+ "kind": "field",
7591
+ "name": "hovered",
7592
+ "type": {
7593
+ "text": "boolean"
7594
+ },
7595
+ "privacy": "public",
7596
+ "default": "false",
7597
+ "description": "Hover coach property",
7598
+ "attribute": "hovered"
7599
+ },
7600
+ {
7601
+ "kind": "field",
7602
+ "name": "nativeFocusActive",
7603
+ "type": {
7604
+ "text": "boolean"
7605
+ },
7606
+ "privacy": "public",
7607
+ "default": "true",
7608
+ "description": "Native focus for this navigation coach is also set when the focused property is changed",
7609
+ "attribute": "nativeFocusActive"
7610
+ },
7611
+ {
7612
+ "kind": "field",
7613
+ "name": "index",
7614
+ "type": {
7615
+ "text": "number"
7616
+ },
7617
+ "privacy": "public",
7618
+ "default": "0",
7619
+ "attribute": "index"
7620
+ },
7621
+ {
7622
+ "kind": "field",
7623
+ "name": "coachItemDetails",
7624
+ "type": {
7625
+ "text": "CoachItemDetails"
7626
+ },
7627
+ "privacy": "public",
7628
+ "default": "<CoachItemDetails>{}",
7629
+ "attribute": "coach-item-details"
7630
+ },
7631
+ {
7632
+ "kind": "field",
7633
+ "name": "disable",
7634
+ "type": {
7635
+ "text": "boolean"
7636
+ },
7637
+ "privacy": "public",
7638
+ "default": "false",
7639
+ "description": "Disable the coach navigation",
7640
+ "attribute": "disable"
7641
+ },
7642
+ {
7643
+ "kind": "field",
7644
+ "name": "vertical",
7645
+ "type": {
7646
+ "text": "boolean"
7647
+ },
7648
+ "privacy": "public",
7649
+ "default": "false",
7650
+ "description": "If the coach navigation should be displayed vertically",
7651
+ "attribute": "vertical",
7652
+ "reflects": true
7653
+ },
7654
+ {
7655
+ "kind": "field",
7656
+ "name": "showTitleInfo",
7657
+ "type": {
7658
+ "text": "boolean"
7659
+ },
7660
+ "privacy": "public",
7661
+ "default": "false",
7662
+ "description": "Disable the mouse over title information",
7663
+ "attribute": "showTitleInfo"
7664
+ },
7665
+ {
7666
+ "kind": "field",
7667
+ "name": "_language",
7668
+ "privacy": "private",
7669
+ "default": "new SbbLanguageController(this)"
7670
+ },
7671
+ {
7672
+ "kind": "method",
7673
+ "name": "_getNavigationButton",
7674
+ "privacy": "private",
7675
+ "return": {
7676
+ "type": {
7677
+ "text": "TemplateResult | null"
7678
+ }
7679
+ }
7680
+ },
7681
+ {
7682
+ "kind": "method",
7683
+ "name": "_getBtnInformation",
7684
+ "privacy": "private",
7685
+ "return": {
7686
+ "type": {
7687
+ "text": "TemplateResult | null"
7688
+ }
7689
+ },
7690
+ "parameters": [
7691
+ {
7692
+ "name": "serviceClassNumber",
7693
+ "type": {
7694
+ "text": "number | null"
7695
+ }
7696
+ }
7697
+ ]
7698
+ },
7699
+ {
7700
+ "kind": "method",
7701
+ "name": "_getTitleDescriptionNavCoachButton",
7702
+ "privacy": "private",
7703
+ "return": {
7704
+ "type": {
7705
+ "text": "string"
7706
+ }
7707
+ },
7708
+ "parameters": [
7709
+ {
7710
+ "name": "serviceClassNumber",
7711
+ "type": {
7712
+ "text": "number | null"
7713
+ }
7714
+ }
7715
+ ]
7716
+ },
7717
+ {
7718
+ "kind": "method",
7719
+ "name": "_getAriaDescriptionCoachServices",
7720
+ "privacy": "private",
7721
+ "return": {
7722
+ "type": {
7723
+ "text": "string | null"
7724
+ }
7725
+ }
7726
+ },
7727
+ {
7728
+ "kind": "method",
7729
+ "name": "_selectNavCoach",
7730
+ "privacy": "private",
7731
+ "return": {
7732
+ "type": {
7733
+ "text": "void"
7734
+ }
7735
+ },
7736
+ "parameters": [
7737
+ {
7738
+ "name": "coachIndex",
7739
+ "type": {
7740
+ "text": "number"
7741
+ }
7742
+ }
7743
+ ],
7744
+ "description": "emits the index of the coach array for the main navigation."
7745
+ },
7746
+ {
7747
+ "kind": "method",
7748
+ "name": "_getCoachServiceClassNumber",
7749
+ "privacy": "private",
7750
+ "return": {
7751
+ "type": {
7752
+ "text": "number | null"
7753
+ }
7754
+ }
7755
+ }
7756
+ ],
7757
+ "events": [
7758
+ {
7759
+ "name": "focuscoach",
7760
+ "type": {
7761
+ "text": "Event"
7762
+ },
7763
+ "description": "Emits when a nav coach has the focus"
7764
+ },
7765
+ {
7766
+ "name": "selectcoach",
7767
+ "type": {
7768
+ "text": "CustomEvent<SelectCoachEventDetails>"
7769
+ },
7770
+ "description": "Emits when a coach within the navigation was selected and returns the clicked coach nav index."
7771
+ }
7772
+ ],
7773
+ "attributes": [
7774
+ {
7775
+ "name": "selected",
7776
+ "type": {
7777
+ "text": "boolean"
7778
+ },
7779
+ "default": "false",
7780
+ "description": "Select coach property",
7781
+ "fieldName": "selected"
7782
+ },
7783
+ {
7784
+ "name": "focused",
7785
+ "type": {
7786
+ "text": "boolean"
7787
+ },
7788
+ "default": "false",
7789
+ "description": "Focus coach property",
7790
+ "fieldName": "focused"
7791
+ },
7792
+ {
7793
+ "name": "hovered",
7794
+ "type": {
7795
+ "text": "boolean"
7796
+ },
7797
+ "default": "false",
7798
+ "description": "Hover coach property",
7799
+ "fieldName": "hovered"
7800
+ },
7801
+ {
7802
+ "name": "nativeFocusActive",
7803
+ "type": {
7804
+ "text": "boolean"
7805
+ },
7806
+ "default": "true",
7807
+ "description": "Native focus for this navigation coach is also set when the focused property is changed",
7808
+ "fieldName": "nativeFocusActive"
7809
+ },
7810
+ {
7811
+ "name": "index",
7812
+ "type": {
7813
+ "text": "number"
7814
+ },
7815
+ "default": "0",
7816
+ "fieldName": "index"
7817
+ },
7818
+ {
7819
+ "name": "coach-item-details",
7820
+ "type": {
7821
+ "text": "CoachItemDetails"
7822
+ },
7823
+ "default": "<CoachItemDetails>{}",
7824
+ "fieldName": "coachItemDetails"
7825
+ },
7826
+ {
7827
+ "name": "disable",
7828
+ "type": {
7829
+ "text": "boolean"
7830
+ },
7831
+ "default": "false",
7832
+ "description": "Disable the coach navigation",
7833
+ "fieldName": "disable"
7834
+ },
7835
+ {
7836
+ "name": "vertical",
7837
+ "type": {
7838
+ "text": "boolean"
7839
+ },
7840
+ "default": "false",
7841
+ "description": "If the coach navigation should be displayed vertically",
7842
+ "fieldName": "vertical"
7843
+ },
7844
+ {
7845
+ "name": "showTitleInfo",
7846
+ "type": {
7847
+ "text": "boolean"
7848
+ },
7849
+ "default": "false",
7850
+ "description": "Disable the mouse over title information",
7851
+ "fieldName": "showTitleInfo"
7852
+ }
7853
+ ],
7854
+ "superclass": {
7855
+ "name": "SbbElement",
7856
+ "package": "@sbb-esta/lyne-elements/core/base-elements.js"
7857
+ },
7858
+ "tagName": "sbb-seat-reservation-navigation-coach",
7859
+ "customElement": true
7860
+ }
7861
+ ],
7862
+ "exports": [
7863
+ {
7864
+ "kind": "js",
7865
+ "name": "SbbSeatReservationNavigationCoachElement",
7866
+ "declaration": {
7867
+ "name": "SbbSeatReservationNavigationCoachElement",
7868
+ "module": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js"
7869
+ }
7870
+ }
7871
+ ]
7872
+ },
7873
7873
  {
7874
7874
  "kind": "javascript-module",
7875
7875
  "path": "seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js",