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

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 +868 -868
  2. package/package.json +2 -2
@@ -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",
@@ -1496,99 +1589,6 @@
1496
1589
  }
1497
1590
  ]
1498
1591
  },
1499
- {
1500
- "kind": "javascript-module",
1501
- "path": "pearl-chain-vertical-item/pearl-chain-vertical-item.component.js",
1502
- "declarations": [
1503
- {
1504
- "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
- ],
1517
- "members": [
1518
- {
1519
- "kind": "field",
1520
- "name": "elementName",
1521
- "type": {
1522
- "text": "string"
1523
- },
1524
- "privacy": "public",
1525
- "static": true,
1526
- "readonly": true,
1527
- "default": "'sbb-pearl-chain-vertical-item'"
1528
- },
1529
- {
1530
- "kind": "field",
1531
- "name": "pearlChainVerticalItemAttributes",
1532
- "type": {
1533
- "text": "PearlChainVerticalItemAttributes"
1534
- },
1535
- "privacy": "public",
1536
- "default": "null!",
1537
- "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
1538
- "attribute": "pearl-chain-vertical-item-attributes"
1539
- },
1540
- {
1541
- "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
1551
- }
1552
- ],
1553
- "attributes": [
1554
- {
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",
1565
- "type": {
1566
- "text": "boolean"
1567
- },
1568
- "default": "false",
1569
- "description": "If true, the position won't be animated.",
1570
- "fieldName": "disableAnimation"
1571
- }
1572
- ],
1573
- "superclass": {
1574
- "name": "SbbElement",
1575
- "package": "@sbb-esta/lyne-elements/core/base-elements.js"
1576
- },
1577
- "tagName": "sbb-pearl-chain-vertical-item",
1578
- "customElement": true
1579
- }
1580
- ],
1581
- "exports": [
1582
- {
1583
- "kind": "js",
1584
- "name": "SbbPearlChainVerticalItemElement",
1585
- "declaration": {
1586
- "name": "SbbPearlChainVerticalItemElement",
1587
- "module": "pearl-chain-vertical-item/pearl-chain-vertical-item.component.js"
1588
- }
1589
- }
1590
- ]
1591
- },
1592
1592
  {
1593
1593
  "kind": "javascript-module",
1594
1594
  "path": "timetable-duration/timetable-duration.component.js",
@@ -3126,1036 +3126,543 @@
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",
3205
+ "name": "height",
3206
+ "type": {
3207
+ "text": "number"
3208
+ },
3306
3209
  "privacy": "public",
3307
- "static": true,
3308
- "readonly": true,
3309
- "default": "{ selectcoach: 'selectcoach', focuscoach: 'focuscoach', }",
3210
+ "default": "null!",
3211
+ "description": "The seat reservation area's width",
3212
+ "attribute": "height"
3213
+ },
3214
+ {
3215
+ "kind": "field",
3216
+ "name": "maxSeatReservations",
3310
3217
  "type": {
3311
- "text": "{\n selectcoach: 'selectcoach',\n focuscoach: 'focuscoach',\n }"
3312
- }
3218
+ "text": "number"
3219
+ },
3220
+ "privacy": "public",
3221
+ "default": "-1",
3222
+ "description": "Maximal number of possible clickable seats",
3223
+ "attribute": "max-seat-reservations"
3313
3224
  },
3314
3225
  {
3315
3226
  "kind": "field",
3316
- "name": "selected",
3227
+ "name": "maxBicycleReservations",
3317
3228
  "type": {
3318
- "text": "boolean"
3229
+ "text": "number"
3319
3230
  },
3320
3231
  "privacy": "public",
3321
- "default": "false",
3322
- "description": "Select coach property",
3323
- "attribute": "selected"
3232
+ "default": "-1",
3233
+ "description": "Maximal number of possible clickable bicycle places",
3234
+ "attribute": "max-bicycle-reservations"
3324
3235
  },
3325
3236
  {
3326
3237
  "kind": "field",
3327
- "name": "focused",
3238
+ "name": "preventPlaceClick",
3328
3239
  "type": {
3329
3240
  "text": "boolean"
3330
3241
  },
3331
3242
  "privacy": "public",
3332
3243
  "default": "false",
3333
- "description": "Focus coach property",
3334
- "attribute": "focused"
3244
+ "description": "Any click functionality is prevented",
3245
+ "attribute": "prevent-place-click"
3335
3246
  },
3336
3247
  {
3337
3248
  "kind": "field",
3338
- "name": "hovered",
3249
+ "name": "preselectCoachIndex",
3339
3250
  "type": {
3340
- "text": "boolean"
3251
+ "text": "number"
3341
3252
  },
3342
3253
  "privacy": "public",
3343
- "default": "false",
3344
- "description": "Hover coach property",
3345
- "attribute": "hovered"
3254
+ "default": "-1",
3255
+ "attribute": "preselect-coach-index"
3346
3256
  },
3347
3257
  {
3348
3258
  "kind": "field",
3349
- "name": "nativeFocusActive",
3259
+ "name": "showTitleInfo",
3350
3260
  "type": {
3351
3261
  "text": "boolean"
3352
3262
  },
3353
3263
  "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"
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"
3357
3267
  },
3358
3268
  {
3359
3269
  "kind": "field",
3360
- "name": "index",
3270
+ "name": "selectedCoachIndex",
3361
3271
  "type": {
3362
3272
  "text": "number"
3363
3273
  },
3364
- "privacy": "public",
3365
- "default": "0",
3366
- "attribute": "index"
3274
+ "privacy": "protected",
3275
+ "default": "-1"
3367
3276
  },
3368
3277
  {
3369
3278
  "kind": "field",
3370
- "name": "coachItemDetails",
3279
+ "name": "focusedCoachIndex",
3371
3280
  "type": {
3372
- "text": "CoachItemDetails"
3281
+ "text": "number"
3373
3282
  },
3374
- "privacy": "public",
3375
- "default": "<CoachItemDetails>{}",
3376
- "attribute": "coach-item-details"
3283
+ "privacy": "protected",
3284
+ "default": "-1"
3377
3285
  },
3378
3286
  {
3379
3287
  "kind": "field",
3380
- "name": "disable",
3288
+ "name": "hoveredCoachIndex",
3381
3289
  "type": {
3382
- "text": "boolean"
3290
+ "text": "number"
3383
3291
  },
3384
- "privacy": "public",
3385
- "default": "false",
3386
- "description": "Disable the coach navigation",
3387
- "attribute": "disable"
3292
+ "privacy": "protected",
3293
+ "default": "-1"
3388
3294
  },
3389
3295
  {
3390
3296
  "kind": "field",
3391
- "name": "vertical",
3297
+ "name": "coachBorderPadding",
3392
3298
  "type": {
3393
- "text": "boolean"
3299
+ "text": "number"
3394
3300
  },
3395
- "privacy": "public",
3396
- "default": "false",
3397
- "description": "If the coach navigation should be displayed vertically",
3398
- "attribute": "vertical",
3399
- "reflects": true
3301
+ "privacy": "protected",
3302
+ "default": "6"
3400
3303
  },
3401
3304
  {
3402
3305
  "kind": "field",
3403
- "name": "showTitleInfo",
3306
+ "name": "gapBetweenCoaches",
3404
3307
  "type": {
3405
- "text": "boolean"
3308
+ "text": "number"
3406
3309
  },
3407
- "privacy": "public",
3408
- "default": "false",
3409
- "description": "Disable the mouse over title information",
3410
- "attribute": "showTitleInfo"
3310
+ "privacy": "protected",
3311
+ "default": "4"
3411
3312
  },
3412
3313
  {
3413
3314
  "kind": "field",
3414
- "name": "_language",
3415
- "privacy": "private",
3416
- "default": "new SbbLanguageController(this)"
3315
+ "name": "coachBorderOffset",
3316
+ "privacy": "protected"
3417
3317
  },
3418
3318
  {
3419
- "kind": "method",
3420
- "name": "_getNavigationButton",
3421
- "privacy": "private",
3422
- "return": {
3423
- "type": {
3424
- "text": "TemplateResult | null"
3425
- }
3426
- }
3319
+ "kind": "field",
3320
+ "name": "gapBetweenCoachDecks",
3321
+ "type": {
3322
+ "text": "number"
3323
+ },
3324
+ "privacy": "protected",
3325
+ "default": "48"
3427
3326
  },
3428
3327
  {
3429
- "kind": "method",
3430
- "name": "_getBtnInformation",
3431
- "privacy": "private",
3432
- "return": {
3433
- "type": {
3434
- "text": "TemplateResult | null"
3435
- }
3328
+ "kind": "field",
3329
+ "name": "coachNavButtonDim",
3330
+ "type": {
3331
+ "text": "number"
3436
3332
  },
3437
- "parameters": [
3438
- {
3439
- "name": "serviceClassNumber",
3440
- "type": {
3441
- "text": "number | null"
3442
- }
3443
- }
3444
- ]
3333
+ "privacy": "protected",
3334
+ "default": "0"
3445
3335
  },
3446
3336
  {
3447
- "kind": "method",
3448
- "name": "_getTitleDescriptionNavCoachButton",
3449
- "privacy": "private",
3450
- "return": {
3451
- "type": {
3452
- "text": "string"
3453
- }
3454
- },
3455
- "parameters": [
3456
- {
3457
- "name": "serviceClassNumber",
3458
- "type": {
3459
- "text": "number | null"
3460
- }
3461
- }
3462
- ]
3463
- },
3464
- {
3465
- "kind": "method",
3466
- "name": "_getAriaDescriptionCoachServices",
3467
- "privacy": "private",
3468
- "return": {
3469
- "type": {
3470
- "text": "string | null"
3471
- }
3472
- }
3337
+ "kind": "field",
3338
+ "name": "globalAreaIconDim",
3339
+ "type": {
3340
+ "text": "ElementDimension"
3341
+ },
3342
+ "privacy": "protected",
3343
+ "default": "{ w: 2, h: 2 }"
3473
3344
  },
3474
3345
  {
3475
- "kind": "method",
3476
- "name": "_selectNavCoach",
3477
- "privacy": "private",
3478
- "return": {
3479
- "type": {
3480
- "text": "void"
3481
- }
3346
+ "kind": "field",
3347
+ "name": "globalAreaIconPadding",
3348
+ "type": {
3349
+ "text": "number"
3482
3350
  },
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."
3351
+ "privacy": "protected",
3352
+ "default": "0.8"
3492
3353
  },
3493
3354
  {
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",
3355
+ "kind": "field",
3356
+ "name": "coachItemDetailsElements",
3507
3357
  "type": {
3508
- "text": "Event"
3358
+ "text": "CoachItemDetails[]"
3509
3359
  },
3510
- "description": "Emits when a nav coach has the focus"
3360
+ "privacy": "protected",
3361
+ "default": "[]"
3511
3362
  },
3512
3363
  {
3513
- "name": "selectcoach",
3364
+ "kind": "field",
3365
+ "name": "currScrollDirection",
3514
3366
  "type": {
3515
- "text": "CustomEvent<SelectCoachEventDetails>"
3367
+ "text": "ScrollDirection"
3516
3368
  },
3517
- "description": "Emits when a coach within the navigation was selected and returns the clicked coach nav index."
3518
- }
3519
- ],
3520
- "attributes": [
3369
+ "privacy": "protected"
3370
+ },
3521
3371
  {
3522
- "name": "selected",
3372
+ "kind": "field",
3373
+ "name": "maxCalcCoachesWidth",
3523
3374
  "type": {
3524
- "text": "boolean"
3375
+ "text": "number"
3525
3376
  },
3526
- "default": "false",
3527
- "description": "Select coach property",
3528
- "fieldName": "selected"
3377
+ "privacy": "protected",
3378
+ "default": "0"
3529
3379
  },
3530
3380
  {
3531
- "name": "focused",
3381
+ "kind": "field",
3382
+ "name": "scrollCoachesAreaWidth",
3532
3383
  "type": {
3533
- "text": "boolean"
3384
+ "text": "number"
3534
3385
  },
3535
- "default": "false",
3536
- "description": "Focus coach property",
3537
- "fieldName": "focused"
3386
+ "privacy": "protected",
3387
+ "default": "0"
3538
3388
  },
3539
3389
  {
3540
- "name": "hovered",
3390
+ "kind": "field",
3391
+ "name": "scrollNavigationAreaDim",
3541
3392
  "type": {
3542
- "text": "boolean"
3393
+ "text": "number"
3543
3394
  },
3544
- "default": "false",
3545
- "description": "Hover coach property",
3546
- "fieldName": "hovered"
3395
+ "privacy": "protected",
3396
+ "default": "0"
3547
3397
  },
3548
3398
  {
3549
- "name": "nativeFocusActive",
3399
+ "kind": "field",
3400
+ "name": "triggerCoachPositionsCollection",
3550
3401
  "type": {
3551
- "text": "boolean"
3402
+ "text": "CoachScrollTriggerPoint[]"
3552
3403
  },
3553
- "default": "true",
3554
- "description": "Native focus for this navigation coach is also set when the focused property is changed",
3555
- "fieldName": "nativeFocusActive"
3404
+ "privacy": "protected",
3405
+ "default": "[]"
3556
3406
  },
3557
3407
  {
3558
- "name": "index",
3408
+ "kind": "field",
3409
+ "name": "navigationScrollArea",
3559
3410
  "type": {
3560
- "text": "number"
3411
+ "text": "HTMLElement"
3561
3412
  },
3562
- "default": "0",
3563
- "fieldName": "index"
3413
+ "privacy": "protected",
3414
+ "default": "null!"
3564
3415
  },
3565
3416
  {
3566
- "name": "coach-item-details",
3417
+ "kind": "field",
3418
+ "name": "coachScrollArea",
3567
3419
  "type": {
3568
- "text": "CoachItemDetails"
3420
+ "text": "HTMLElement"
3569
3421
  },
3570
- "default": "<CoachItemDetails>{}",
3571
- "fieldName": "coachItemDetails"
3422
+ "privacy": "protected",
3423
+ "default": "null!"
3572
3424
  },
3573
3425
  {
3574
- "name": "disable",
3426
+ "kind": "field",
3427
+ "name": "currSelectedPlace",
3575
3428
  "type": {
3576
- "text": "boolean"
3429
+ "text": "Place | null"
3577
3430
  },
3578
- "default": "false",
3579
- "description": "Disable the coach navigation",
3580
- "fieldName": "disable"
3431
+ "privacy": "protected",
3432
+ "default": "null"
3581
3433
  },
3582
3434
  {
3583
- "name": "vertical",
3435
+ "kind": "field",
3436
+ "name": "currSelectedPlaceElementId",
3584
3437
  "type": {
3585
- "text": "boolean"
3438
+ "text": "string | null"
3586
3439
  },
3587
- "default": "false",
3588
- "description": "If the coach navigation should be displayed vertically",
3589
- "fieldName": "vertical"
3440
+ "privacy": "protected",
3441
+ "default": "null"
3590
3442
  },
3591
3443
  {
3592
- "name": "showTitleInfo",
3444
+ "kind": "field",
3445
+ "name": "currSelectedCoachIndex",
3593
3446
  "type": {
3594
- "text": "boolean"
3447
+ "text": "number"
3595
3448
  },
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": [
3449
+ "privacy": "protected",
3450
+ "default": "-1"
3451
+ },
3629
3452
  {
3630
3453
  "kind": "field",
3631
- "name": "events",
3632
- "privacy": "public",
3633
- "static": true,
3634
- "readonly": true,
3635
- "default": "{ selectedplaces: 'selectedplaces', selectedcoach: 'selectedcoach', }",
3454
+ "name": "currSelectedDeckIndex",
3636
3455
  "type": {
3637
- "text": "{\n selectedplaces: 'selectedplaces',\n selectedcoach: 'selectedcoach',\n }"
3638
- }
3456
+ "text": "number"
3457
+ },
3458
+ "privacy": "protected",
3459
+ "default": "0"
3639
3460
  },
3640
3461
  {
3641
3462
  "kind": "field",
3642
- "name": "seatReservations",
3463
+ "name": "preventCoachScrollByPlaceClick",
3643
3464
  "type": {
3644
- "text": "SeatReservation[]"
3465
+ "text": "boolean"
3645
3466
  },
3646
- "privacy": "public",
3647
- "default": "null!",
3648
- "description": "The seat reservations array contains all coaches and places",
3649
- "attribute": "seat-reservations"
3467
+ "privacy": "protected",
3468
+ "default": "false"
3650
3469
  },
3651
3470
  {
3652
3471
  "kind": "field",
3653
- "name": "travelDirection",
3472
+ "name": "selectedSeatReservationPlaces",
3654
3473
  "type": {
3655
- "text": "TravelDirection"
3474
+ "text": "SeatReservationSelectedPlaces"
3656
3475
  },
3657
- "privacy": "public",
3658
- "default": "'NONE'",
3659
- "description": "Displays an arrow showing what direction does train drive",
3660
- "attribute": "travel-direction"
3476
+ "privacy": "protected",
3477
+ "default": "{ seats: [], bicycles: [], }"
3661
3478
  },
3662
3479
  {
3663
3480
  "kind": "field",
3664
- "name": "hasNavigation",
3481
+ "name": "seatReservationWithoutNavigationHasFocus",
3665
3482
  "type": {
3666
3483
  "text": "boolean"
3667
3484
  },
3668
- "privacy": "public",
3669
- "default": "true",
3670
- "description": "The seat reservation navigation can be toggled by this property",
3671
- "attribute": "has-navigation"
3485
+ "privacy": "protected",
3486
+ "default": "false"
3672
3487
  },
3673
3488
  {
3674
3489
  "kind": "field",
3675
- "name": "alignVertical",
3490
+ "name": "isCoachGridFocusable",
3676
3491
  "type": {
3677
3492
  "text": "boolean"
3678
3493
  },
3679
- "privacy": "public",
3680
- "default": "false",
3681
- "description": "The seat reservation area is aligned vertically",
3682
- "attribute": "align-vertical",
3683
- "reflects": true
3494
+ "privacy": "protected",
3495
+ "default": "false"
3684
3496
  },
3685
3497
  {
3686
3498
  "kind": "field",
3687
- "name": "baseGridSize",
3499
+ "name": "isAutoScrolling",
3688
3500
  "type": {
3689
- "text": "number"
3501
+ "text": "boolean"
3690
3502
  },
3691
- "privacy": "public",
3692
- "default": "16",
3693
- "description": "The seat reservation area's base grid size",
3694
- "attribute": "base-grid-size"
3503
+ "privacy": "protected",
3504
+ "default": "false"
3695
3505
  },
3696
3506
  {
3697
3507
  "kind": "field",
3698
- "name": "height",
3699
- "type": {
3700
- "text": "number"
3701
- },
3702
- "privacy": "public",
3703
- "default": "null!",
3704
- "description": "The seat reservation area's width",
3705
- "attribute": "height"
3706
- },
3707
- {
3708
- "kind": "field",
3709
- "name": "maxSeatReservations",
3710
- "type": {
3711
- "text": "number"
3712
- },
3713
- "privacy": "public",
3714
- "default": "-1",
3715
- "description": "Maximal number of possible clickable seats",
3716
- "attribute": "max-seat-reservations"
3717
- },
3718
- {
3719
- "kind": "field",
3720
- "name": "maxBicycleReservations",
3721
- "type": {
3722
- "text": "number"
3723
- },
3724
- "privacy": "public",
3725
- "default": "-1",
3726
- "description": "Maximal number of possible clickable bicycle places",
3727
- "attribute": "max-bicycle-reservations"
3728
- },
3729
- {
3730
- "kind": "field",
3731
- "name": "preventPlaceClick",
3508
+ "name": "isKeyboardNavigation",
3732
3509
  "type": {
3733
3510
  "text": "boolean"
3734
3511
  },
3735
- "privacy": "public",
3736
- "default": "false",
3737
- "description": "Any click functionality is prevented",
3738
- "attribute": "prevent-place-click"
3739
- },
3740
- {
3741
- "kind": "field",
3742
- "name": "preselectCoachIndex",
3743
- "type": {
3744
- "text": "number"
3745
- },
3746
- "privacy": "public",
3747
- "default": "-1",
3748
- "attribute": "preselect-coach-index"
3512
+ "privacy": "protected",
3513
+ "default": "false"
3749
3514
  },
3750
3515
  {
3751
3516
  "kind": "field",
3752
- "name": "showTitleInfo",
3517
+ "name": "hasMultipleDecks",
3753
3518
  "type": {
3754
3519
  "text": "boolean"
3755
3520
  },
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
3521
  "privacy": "protected",
3768
- "default": "-1"
3522
+ "default": "false"
3769
3523
  },
3770
3524
  {
3771
3525
  "kind": "field",
3772
- "name": "focusedCoachIndex",
3526
+ "name": "hasSeatReservationNativeFocus",
3773
3527
  "type": {
3774
- "text": "number"
3528
+ "text": "boolean"
3775
3529
  },
3776
3530
  "privacy": "protected",
3777
- "default": "-1"
3531
+ "default": "false"
3778
3532
  },
3779
3533
  {
3780
3534
  "kind": "field",
3781
- "name": "hoveredCoachIndex",
3782
- "type": {
3783
- "text": "number"
3784
- },
3535
+ "name": "keyboardNavigationEvents",
3785
3536
  "privacy": "protected",
3786
- "default": "-1"
3787
- },
3788
- {
3789
- "kind": "field",
3790
- "name": "coachBorderPadding",
3537
+ "default": "{ ArrowLeft: 'ArrowLeft', ArrowRight: 'ArrowRight', ArrowUp: 'ArrowUp', ArrowDown: 'ArrowDown', Tab: 'Tab', Enter: 'Enter', }",
3791
3538
  "type": {
3792
- "text": "number"
3793
- },
3794
- "privacy": "protected",
3795
- "default": "6"
3539
+ "text": "{\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Tab: 'Tab',\n Enter: 'Enter',\n }"
3540
+ }
3796
3541
  },
3797
3542
  {
3798
3543
  "kind": "field",
3799
- "name": "gapBetweenCoaches",
3544
+ "name": "notAreaElements",
3800
3545
  "type": {
3801
- "text": "number"
3546
+ "text": "array"
3802
3547
  },
3803
3548
  "privacy": "protected",
3804
- "default": "4"
3805
- },
3806
- {
3807
- "kind": "field",
3808
- "name": "coachBorderOffset",
3809
- "privacy": "protected"
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', ]"
3810
3550
  },
3811
3551
  {
3812
3552
  "kind": "field",
3813
- "name": "gapBetweenCoachDecks",
3553
+ "name": "overHangingElementInformation",
3814
3554
  "type": {
3815
- "text": "number"
3555
+ "text": "{\n coachId: string;\n overhangingPlaces: boolean;\n overhangingGraphicAreas: boolean;\n }[]"
3816
3556
  },
3817
3557
  "privacy": "protected",
3818
- "default": "48"
3558
+ "default": "[]"
3819
3559
  },
3820
3560
  {
3821
3561
  "kind": "field",
3822
- "name": "coachNavButtonDim",
3562
+ "name": "_isRunningInitPreselectCoachIndex",
3823
3563
  "type": {
3824
- "text": "number"
3564
+ "text": "boolean"
3825
3565
  },
3826
- "privacy": "protected",
3827
- "default": "0"
3566
+ "privacy": "private",
3567
+ "default": "false"
3828
3568
  },
3829
3569
  {
3830
3570
  "kind": "field",
3831
- "name": "globalAreaIconDim",
3571
+ "name": "_scrollTimeout",
3832
3572
  "type": {
3833
- "text": "ElementDimension"
3573
+ "text": "ReturnType<typeof setTimeout> | undefined"
3834
3574
  },
3835
- "privacy": "protected",
3836
- "default": "{ w: 2, h: 2 }"
3575
+ "privacy": "private"
3837
3576
  },
3838
3577
  {
3839
3578
  "kind": "field",
3840
- "name": "globalAreaIconPadding",
3579
+ "name": "_lastStartScrollPos",
3841
3580
  "type": {
3842
3581
  "text": "number"
3843
3582
  },
3844
- "privacy": "protected",
3845
- "default": "0.8"
3583
+ "privacy": "private",
3584
+ "default": "-1"
3846
3585
  },
3847
3586
  {
3848
- "kind": "field",
3849
- "name": "coachItemDetailsElements",
3850
- "type": {
3851
- "text": "CoachItemDetails[]"
3852
- },
3587
+ "kind": "method",
3588
+ "name": "navigateByDirectionBtn",
3853
3589
  "privacy": "protected",
3854
- "default": "[]"
3855
- },
3856
- {
3857
- "kind": "field",
3858
- "name": "currScrollDirection",
3859
- "type": {
3860
- "text": "ScrollDirection"
3590
+ "return": {
3591
+ "type": {
3592
+ "text": "void"
3593
+ }
3861
3594
  },
3862
- "privacy": "protected"
3595
+ "parameters": [
3596
+ {
3597
+ "name": "btnDirection",
3598
+ "type": {
3599
+ "text": "string"
3600
+ }
3601
+ }
3602
+ ]
3863
3603
  },
3864
3604
  {
3865
- "kind": "field",
3866
- "name": "maxCalcCoachesWidth",
3867
- "type": {
3868
- "text": "number"
3605
+ "kind": "method",
3606
+ "name": "_initPrepareSeatReservationData",
3607
+ "privacy": "private",
3608
+ "return": {
3609
+ "type": {
3610
+ "text": "void"
3611
+ }
3869
3612
  },
3870
- "privacy": "protected",
3871
- "default": "0"
3613
+ "description": "Data can be prepared once for the entire component\nin order to avoid recurring iteration processes in rendering."
3872
3614
  },
3873
3615
  {
3874
- "kind": "field",
3875
- "name": "scrollCoachesAreaWidth",
3876
- "type": {
3877
- "text": "number"
3878
- },
3616
+ "kind": "method",
3617
+ "name": "initNavigationSelectionByScrollEvent",
3879
3618
  "privacy": "protected",
3880
- "default": "0"
3881
- },
3882
- {
3883
- "kind": "field",
3884
- "name": "scrollNavigationAreaDim",
3885
- "type": {
3886
- "text": "number"
3619
+ "return": {
3620
+ "type": {
3621
+ "text": "void"
3622
+ }
3887
3623
  },
3888
- "privacy": "protected",
3889
- "default": "0"
3624
+ "description": "Init scroll event handling for coach navigation"
3890
3625
  },
3891
3626
  {
3892
- "kind": "field",
3893
- "name": "triggerCoachPositionsCollection",
3894
- "type": {
3895
- "text": "CoachScrollTriggerPoint[]"
3896
- },
3627
+ "kind": "method",
3628
+ "name": "coachAreaScrollend",
3897
3629
  "privacy": "protected",
3898
- "default": "[]"
3899
- },
3900
- {
3901
- "kind": "field",
3902
- "name": "navigationScrollArea",
3903
- "type": {
3904
- "text": "HTMLElement"
3630
+ "return": {
3631
+ "type": {
3632
+ "text": "void"
3633
+ }
3905
3634
  },
3906
- "privacy": "protected",
3907
- "default": "null!"
3635
+ "description": "Scroll event handler managed the end of scrolling inside the coach scroll area.\nTimeout event handling to check if the scrolling has been completed.\nIt is required because the Safari browser does not handle scrollend event,\nand we therefore imitate this event -> scrollend."
3908
3636
  },
3909
3637
  {
3910
- "kind": "field",
3911
- "name": "coachScrollArea",
3912
- "type": {
3913
- "text": "HTMLElement"
3914
- },
3638
+ "kind": "method",
3639
+ "name": "onFocusTableCoachAndPreselectPlace",
3915
3640
  "privacy": "protected",
3916
- "default": "null!"
3917
- },
3918
- {
3919
- "kind": "field",
3920
- "name": "currSelectedPlace",
3921
- "type": {
3922
- "text": "Place | null"
3641
+ "return": {
3642
+ "type": {
3643
+ "text": "void"
3644
+ }
3923
3645
  },
3924
- "privacy": "protected",
3925
- "default": "null"
3646
+ "parameters": [
3647
+ {
3648
+ "name": "focusCoachIndex",
3649
+ "type": {
3650
+ "text": "number"
3651
+ }
3652
+ }
3653
+ ],
3654
+ "description": "If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,\nthe first place in the coach must be automatically preselected to control the place navigation via keyboard"
3926
3655
  },
3927
3656
  {
3928
- "kind": "field",
3929
- "name": "currSelectedPlaceElementId",
3930
- "type": {
3931
- "text": "string | null"
3932
- },
3657
+ "kind": "method",
3658
+ "name": "onFocusNavDirectionButton",
3933
3659
  "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",
4073
- "type": {
4074
- "text": "number"
4075
- },
4076
- "privacy": "private",
4077
- "default": "-1"
4078
- },
4079
- {
4080
- "kind": "method",
4081
- "name": "navigateByDirectionBtn",
4082
- "privacy": "protected",
4083
- "return": {
4084
- "type": {
4085
- "text": "void"
4086
- }
4087
- },
4088
- "parameters": [
4089
- {
4090
- "name": "btnDirection",
4091
- "type": {
4092
- "text": "string"
4093
- }
4094
- }
4095
- ]
4096
- },
4097
- {
4098
- "kind": "method",
4099
- "name": "_initPrepareSeatReservationData",
4100
- "privacy": "private",
4101
- "return": {
4102
- "type": {
4103
- "text": "void"
4104
- }
4105
- },
4106
- "description": "Data can be prepared once for the entire component\nin order to avoid recurring iteration processes in rendering."
4107
- },
4108
- {
4109
- "kind": "method",
4110
- "name": "initNavigationSelectionByScrollEvent",
4111
- "privacy": "protected",
4112
- "return": {
4113
- "type": {
4114
- "text": "void"
4115
- }
4116
- },
4117
- "description": "Init scroll event handling for coach navigation"
4118
- },
4119
- {
4120
- "kind": "method",
4121
- "name": "coachAreaScrollend",
4122
- "privacy": "protected",
4123
- "return": {
4124
- "type": {
4125
- "text": "void"
4126
- }
4127
- },
4128
- "description": "Scroll event handler managed the end of scrolling inside the coach scroll area.\nTimeout event handling to check if the scrolling has been completed.\nIt is required because the Safari browser does not handle scrollend event,\nand we therefore imitate this event -> scrollend."
4129
- },
4130
- {
4131
- "kind": "method",
4132
- "name": "onFocusTableCoachAndPreselectPlace",
4133
- "privacy": "protected",
4134
- "return": {
4135
- "type": {
4136
- "text": "void"
4137
- }
4138
- },
4139
- "parameters": [
4140
- {
4141
- "name": "focusCoachIndex",
4142
- "type": {
4143
- "text": "number"
4144
- }
4145
- }
4146
- ],
4147
- "description": "If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,\nthe first place in the coach must be automatically preselected to control the place navigation via keyboard"
4148
- },
4149
- {
4150
- "kind": "method",
4151
- "name": "onFocusNavDirectionButton",
4152
- "privacy": "protected",
4153
- "return": {
4154
- "type": {
4155
- "text": "void"
4156
- }
4157
- },
4158
- "description": "Will be triggered by focus navigation direction"
3660
+ "return": {
3661
+ "type": {
3662
+ "text": "void"
3663
+ }
3664
+ },
3665
+ "description": "Will be triggered by focus navigation direction"
4159
3666
  },
4160
3667
  {
4161
3668
  "kind": "method",
@@ -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",