@sbb-esta/lyne-elements-dev 4.13.0-dev.1780484160 → 4.13.0-dev.1780579288

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.
@@ -124171,6 +124171,261 @@
124171
124171
  }
124172
124172
  ]
124173
124173
  },
124174
+ {
124175
+ "kind": "javascript-module",
124176
+ "path": "table/table-wrapper/table-wrapper.component.js",
124177
+ "declarations": [
124178
+ {
124179
+ "kind": "class",
124180
+ "description": "Wraps a table to enhance its functionality.",
124181
+ "name": "SbbTableWrapperElement",
124182
+ "slots": [
124183
+ {
124184
+ "description": "Use the unnamed slot to add the table.",
124185
+ "name": ""
124186
+ }
124187
+ ],
124188
+ "members": [
124189
+ {
124190
+ "kind": "field",
124191
+ "name": "elementName",
124192
+ "type": {
124193
+ "text": "string"
124194
+ },
124195
+ "privacy": "public",
124196
+ "static": true,
124197
+ "readonly": true,
124198
+ "default": "'sbb-table-wrapper'",
124199
+ "inheritedFrom": {
124200
+ "name": "SbbElement",
124201
+ "module": "core/base-elements/element.js"
124202
+ }
124203
+ },
124204
+ {
124205
+ "kind": "field",
124206
+ "name": "role",
124207
+ "type": {
124208
+ "text": "string"
124209
+ },
124210
+ "privacy": "public",
124211
+ "static": true,
124212
+ "readonly": true,
124213
+ "default": "'section'"
124214
+ },
124215
+ {
124216
+ "kind": "field",
124217
+ "name": "focusable",
124218
+ "type": {
124219
+ "text": "boolean"
124220
+ },
124221
+ "privacy": "public",
124222
+ "default": "false",
124223
+ "description": "Whether the table wrapper is focusable.",
124224
+ "attribute": "focusable",
124225
+ "reflects": true
124226
+ },
124227
+ {
124228
+ "kind": "method",
124229
+ "name": "_updateScrollbarClass",
124230
+ "privacy": "private",
124231
+ "return": {
124232
+ "type": {
124233
+ "text": "void"
124234
+ }
124235
+ }
124236
+ },
124237
+ {
124238
+ "kind": "method",
124239
+ "name": "_checkHorizontalScrollbarOffset",
124240
+ "privacy": "private",
124241
+ "return": {
124242
+ "type": {
124243
+ "text": "void"
124244
+ }
124245
+ },
124246
+ "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124247
+ },
124248
+ {
124249
+ "kind": "method",
124250
+ "name": "_calculateScrollOffset",
124251
+ "privacy": "private",
124252
+ "return": {
124253
+ "type": {
124254
+ "text": "'none' | 'left' | 'right' | 'both'"
124255
+ }
124256
+ }
124257
+ },
124258
+ {
124259
+ "kind": "field",
124260
+ "name": "negative",
124261
+ "type": {
124262
+ "text": "boolean"
124263
+ },
124264
+ "privacy": "public",
124265
+ "default": "false",
124266
+ "description": "Negative coloring variant flag.",
124267
+ "attribute": "negative",
124268
+ "reflects": true,
124269
+ "inheritedFrom": {
124270
+ "name": "SbbNegativeMixin",
124271
+ "module": "core/mixins/negative-mixin.js"
124272
+ }
124273
+ },
124274
+ {
124275
+ "kind": "field",
124276
+ "name": "_hydrationRequired",
124277
+ "type": {
124278
+ "text": "boolean"
124279
+ },
124280
+ "privacy": "private",
124281
+ "default": "!!this.shadowRoot",
124282
+ "inheritedFrom": {
124283
+ "name": "SbbElement",
124284
+ "module": "core/base-elements/element.js"
124285
+ }
124286
+ },
124287
+ {
124288
+ "kind": "field",
124289
+ "name": "_hydrationComplete",
124290
+ "privacy": "private",
124291
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124292
+ "inheritedFrom": {
124293
+ "name": "SbbElement",
124294
+ "module": "core/base-elements/element.js"
124295
+ }
124296
+ },
124297
+ {
124298
+ "kind": "field",
124299
+ "name": "_resolveHydration",
124300
+ "type": {
124301
+ "text": "(hydrationRequired: boolean) => void"
124302
+ },
124303
+ "privacy": "private",
124304
+ "inheritedFrom": {
124305
+ "name": "SbbElement",
124306
+ "module": "core/base-elements/element.js"
124307
+ }
124308
+ },
124309
+ {
124310
+ "kind": "field",
124311
+ "name": "hydrationRequired",
124312
+ "type": {
124313
+ "text": "boolean"
124314
+ },
124315
+ "privacy": "protected",
124316
+ "description": "Returns whether hydration is required and not completed.",
124317
+ "readonly": true,
124318
+ "inheritedFrom": {
124319
+ "name": "SbbElement",
124320
+ "module": "core/base-elements/element.js"
124321
+ },
124322
+ "default": "!!this.shadowRoot"
124323
+ },
124324
+ {
124325
+ "kind": "method",
124326
+ "name": "toggleState",
124327
+ "privacy": "protected",
124328
+ "return": {
124329
+ "type": {
124330
+ "text": "void"
124331
+ }
124332
+ },
124333
+ "parameters": [
124334
+ {
124335
+ "name": "value",
124336
+ "type": {
124337
+ "text": "string"
124338
+ }
124339
+ },
124340
+ {
124341
+ "name": "force",
124342
+ "optional": true,
124343
+ "type": {
124344
+ "text": "boolean"
124345
+ }
124346
+ }
124347
+ ],
124348
+ "inheritedFrom": {
124349
+ "name": "SbbElement",
124350
+ "module": "core/base-elements/element.js"
124351
+ }
124352
+ },
124353
+ {
124354
+ "kind": "field",
124355
+ "name": "['_$sbbElement$']",
124356
+ "type": {
124357
+ "text": "boolean"
124358
+ },
124359
+ "privacy": "public",
124360
+ "static": true,
124361
+ "default": "true",
124362
+ "inheritedFrom": {
124363
+ "name": "SbbElement",
124364
+ "module": "core/base-elements/element.js"
124365
+ }
124366
+ },
124367
+ {
124368
+ "kind": "field",
124369
+ "name": "_controllers",
124370
+ "type": {
124371
+ "text": "Set<SbbReactiveController> | undefined"
124372
+ },
124373
+ "privacy": "private",
124374
+ "inheritedFrom": {
124375
+ "name": "SbbElement",
124376
+ "module": "core/base-elements/element.js"
124377
+ }
124378
+ }
124379
+ ],
124380
+ "attributes": [
124381
+ {
124382
+ "name": "focusable",
124383
+ "type": {
124384
+ "text": "boolean"
124385
+ },
124386
+ "default": "false",
124387
+ "description": "Whether the table wrapper is focusable.",
124388
+ "fieldName": "focusable"
124389
+ },
124390
+ {
124391
+ "name": "negative",
124392
+ "type": {
124393
+ "text": "boolean"
124394
+ },
124395
+ "default": "false",
124396
+ "description": "Negative coloring variant flag.",
124397
+ "fieldName": "negative",
124398
+ "inheritedFrom": {
124399
+ "name": "SbbNegativeMixin",
124400
+ "module": "core/mixins/negative-mixin.js"
124401
+ }
124402
+ }
124403
+ ],
124404
+ "mixins": [
124405
+ {
124406
+ "name": "SbbNegativeMixin",
124407
+ "module": "core/mixins.js"
124408
+ }
124409
+ ],
124410
+ "superclass": {
124411
+ "name": "SbbElement",
124412
+ "module": "core/base-elements.js"
124413
+ },
124414
+ "tagName": "sbb-table-wrapper",
124415
+ "customElement": true
124416
+ }
124417
+ ],
124418
+ "exports": [
124419
+ {
124420
+ "kind": "js",
124421
+ "name": "SbbTableWrapperElement",
124422
+ "declaration": {
124423
+ "name": "SbbTableWrapperElement",
124424
+ "module": "table/table-wrapper/table-wrapper.component.js"
124425
+ }
124426
+ }
124427
+ ]
124428
+ },
124174
124429
  {
124175
124430
  "kind": "javascript-module",
124176
124431
  "path": "stepper/stepper/stepper.component.js",
@@ -124802,261 +125057,6 @@
124802
125057
  }
124803
125058
  ]
124804
125059
  },
124805
- {
124806
- "kind": "javascript-module",
124807
- "path": "table/table-wrapper/table-wrapper.component.js",
124808
- "declarations": [
124809
- {
124810
- "kind": "class",
124811
- "description": "Wraps a table to enhance its functionality.",
124812
- "name": "SbbTableWrapperElement",
124813
- "slots": [
124814
- {
124815
- "description": "Use the unnamed slot to add the table.",
124816
- "name": ""
124817
- }
124818
- ],
124819
- "members": [
124820
- {
124821
- "kind": "field",
124822
- "name": "elementName",
124823
- "type": {
124824
- "text": "string"
124825
- },
124826
- "privacy": "public",
124827
- "static": true,
124828
- "readonly": true,
124829
- "default": "'sbb-table-wrapper'",
124830
- "inheritedFrom": {
124831
- "name": "SbbElement",
124832
- "module": "core/base-elements/element.js"
124833
- }
124834
- },
124835
- {
124836
- "kind": "field",
124837
- "name": "role",
124838
- "type": {
124839
- "text": "string"
124840
- },
124841
- "privacy": "public",
124842
- "static": true,
124843
- "readonly": true,
124844
- "default": "'section'"
124845
- },
124846
- {
124847
- "kind": "field",
124848
- "name": "focusable",
124849
- "type": {
124850
- "text": "boolean"
124851
- },
124852
- "privacy": "public",
124853
- "default": "false",
124854
- "description": "Whether the table wrapper is focusable.",
124855
- "attribute": "focusable",
124856
- "reflects": true
124857
- },
124858
- {
124859
- "kind": "method",
124860
- "name": "_updateScrollbarClass",
124861
- "privacy": "private",
124862
- "return": {
124863
- "type": {
124864
- "text": "void"
124865
- }
124866
- }
124867
- },
124868
- {
124869
- "kind": "method",
124870
- "name": "_checkHorizontalScrollbarOffset",
124871
- "privacy": "private",
124872
- "return": {
124873
- "type": {
124874
- "text": "void"
124875
- }
124876
- },
124877
- "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124878
- },
124879
- {
124880
- "kind": "method",
124881
- "name": "_calculateScrollOffset",
124882
- "privacy": "private",
124883
- "return": {
124884
- "type": {
124885
- "text": "'none' | 'left' | 'right' | 'both'"
124886
- }
124887
- }
124888
- },
124889
- {
124890
- "kind": "field",
124891
- "name": "negative",
124892
- "type": {
124893
- "text": "boolean"
124894
- },
124895
- "privacy": "public",
124896
- "default": "false",
124897
- "description": "Negative coloring variant flag.",
124898
- "attribute": "negative",
124899
- "reflects": true,
124900
- "inheritedFrom": {
124901
- "name": "SbbNegativeMixin",
124902
- "module": "core/mixins/negative-mixin.js"
124903
- }
124904
- },
124905
- {
124906
- "kind": "field",
124907
- "name": "_hydrationRequired",
124908
- "type": {
124909
- "text": "boolean"
124910
- },
124911
- "privacy": "private",
124912
- "default": "!!this.shadowRoot",
124913
- "inheritedFrom": {
124914
- "name": "SbbElement",
124915
- "module": "core/base-elements/element.js"
124916
- }
124917
- },
124918
- {
124919
- "kind": "field",
124920
- "name": "_hydrationComplete",
124921
- "privacy": "private",
124922
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124923
- "inheritedFrom": {
124924
- "name": "SbbElement",
124925
- "module": "core/base-elements/element.js"
124926
- }
124927
- },
124928
- {
124929
- "kind": "field",
124930
- "name": "_resolveHydration",
124931
- "type": {
124932
- "text": "(hydrationRequired: boolean) => void"
124933
- },
124934
- "privacy": "private",
124935
- "inheritedFrom": {
124936
- "name": "SbbElement",
124937
- "module": "core/base-elements/element.js"
124938
- }
124939
- },
124940
- {
124941
- "kind": "field",
124942
- "name": "hydrationRequired",
124943
- "type": {
124944
- "text": "boolean"
124945
- },
124946
- "privacy": "protected",
124947
- "description": "Returns whether hydration is required and not completed.",
124948
- "readonly": true,
124949
- "inheritedFrom": {
124950
- "name": "SbbElement",
124951
- "module": "core/base-elements/element.js"
124952
- },
124953
- "default": "!!this.shadowRoot"
124954
- },
124955
- {
124956
- "kind": "method",
124957
- "name": "toggleState",
124958
- "privacy": "protected",
124959
- "return": {
124960
- "type": {
124961
- "text": "void"
124962
- }
124963
- },
124964
- "parameters": [
124965
- {
124966
- "name": "value",
124967
- "type": {
124968
- "text": "string"
124969
- }
124970
- },
124971
- {
124972
- "name": "force",
124973
- "optional": true,
124974
- "type": {
124975
- "text": "boolean"
124976
- }
124977
- }
124978
- ],
124979
- "inheritedFrom": {
124980
- "name": "SbbElement",
124981
- "module": "core/base-elements/element.js"
124982
- }
124983
- },
124984
- {
124985
- "kind": "field",
124986
- "name": "['_$sbbElement$']",
124987
- "type": {
124988
- "text": "boolean"
124989
- },
124990
- "privacy": "public",
124991
- "static": true,
124992
- "default": "true",
124993
- "inheritedFrom": {
124994
- "name": "SbbElement",
124995
- "module": "core/base-elements/element.js"
124996
- }
124997
- },
124998
- {
124999
- "kind": "field",
125000
- "name": "_controllers",
125001
- "type": {
125002
- "text": "Set<SbbReactiveController> | undefined"
125003
- },
125004
- "privacy": "private",
125005
- "inheritedFrom": {
125006
- "name": "SbbElement",
125007
- "module": "core/base-elements/element.js"
125008
- }
125009
- }
125010
- ],
125011
- "attributes": [
125012
- {
125013
- "name": "focusable",
125014
- "type": {
125015
- "text": "boolean"
125016
- },
125017
- "default": "false",
125018
- "description": "Whether the table wrapper is focusable.",
125019
- "fieldName": "focusable"
125020
- },
125021
- {
125022
- "name": "negative",
125023
- "type": {
125024
- "text": "boolean"
125025
- },
125026
- "default": "false",
125027
- "description": "Negative coloring variant flag.",
125028
- "fieldName": "negative",
125029
- "inheritedFrom": {
125030
- "name": "SbbNegativeMixin",
125031
- "module": "core/mixins/negative-mixin.js"
125032
- }
125033
- }
125034
- ],
125035
- "mixins": [
125036
- {
125037
- "name": "SbbNegativeMixin",
125038
- "module": "core/mixins.js"
125039
- }
125040
- ],
125041
- "superclass": {
125042
- "name": "SbbElement",
125043
- "module": "core/base-elements.js"
125044
- },
125045
- "tagName": "sbb-table-wrapper",
125046
- "customElement": true
125047
- }
125048
- ],
125049
- "exports": [
125050
- {
125051
- "kind": "js",
125052
- "name": "SbbTableWrapperElement",
125053
- "declaration": {
125054
- "name": "SbbTableWrapperElement",
125055
- "module": "table/table-wrapper/table-wrapper.component.js"
125056
- }
125057
- }
125058
- ]
125059
- },
125060
125060
  {
125061
125061
  "kind": "javascript-module",
125062
125062
  "path": "tabs/common/styles.js",
@@ -133146,22 +133146,15 @@
133146
133146
  },
133147
133147
  {
133148
133148
  "kind": "javascript-module",
133149
- "path": "train/train-formation/train-formation.component.js",
133149
+ "path": "train/train-wagon/train-wagon.component.js",
133150
133150
  "declarations": [
133151
133151
  {
133152
133152
  "kind": "class",
133153
- "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
133154
- "name": "SbbTrainFormationElement",
133155
- "cssProperties": [
133156
- {
133157
- "description": "Defines the inline padding inside the horizontal scrolling area.",
133158
- "name": "--sbb-train-formation-padding-inline",
133159
- "default": "0px"
133160
- }
133161
- ],
133153
+ "description": "It displays a train compartment within a `sbb-train` component.",
133154
+ "name": "SbbTrainWagonElement",
133162
133155
  "slots": [
133163
133156
  {
133164
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
133157
+ "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
133165
133158
  "name": ""
133166
133159
  }
133167
133160
  ],
@@ -133175,12 +133168,35 @@
133175
133168
  "privacy": "public",
133176
133169
  "static": true,
133177
133170
  "readonly": true,
133178
- "default": "'sbb-train-formation'",
133171
+ "default": "'sbb-train-wagon'",
133179
133172
  "inheritedFrom": {
133180
133173
  "name": "SbbElement",
133181
133174
  "module": "core/base-elements/element.js"
133182
133175
  }
133183
133176
  },
133177
+ {
133178
+ "kind": "field",
133179
+ "name": "events",
133180
+ "privacy": "public",
133181
+ "static": true,
133182
+ "readonly": true,
133183
+ "default": "{ sectorchange: 'sectorchange', }",
133184
+ "type": {
133185
+ "text": "{\n sectorchange: 'sectorchange',\n }"
133186
+ }
133187
+ },
133188
+ {
133189
+ "kind": "field",
133190
+ "name": "type",
133191
+ "type": {
133192
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133193
+ },
133194
+ "privacy": "public",
133195
+ "default": "'wagon'",
133196
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133197
+ "attribute": "type",
133198
+ "reflects": true
133199
+ },
133184
133200
  {
133185
133201
  "kind": "field",
133186
133202
  "name": "listChildLocalNames",
@@ -133190,7 +133206,7 @@
133190
133206
  "privacy": "protected",
133191
133207
  "readonly": true,
133192
133208
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
133193
- "default": "['sbb-train']",
133209
+ "default": "['sbb-icon']",
133194
133210
  "inheritedFrom": {
133195
133211
  "name": "SbbNamedSlotListMixin",
133196
133212
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -133198,24 +133214,71 @@
133198
133214
  },
133199
133215
  {
133200
133216
  "kind": "field",
133201
- "name": "view",
133217
+ "name": "occupancy",
133202
133218
  "type": {
133203
- "text": "'side' | 'top'"
133219
+ "text": "SbbOccupancy | null"
133204
133220
  },
133205
133221
  "privacy": "public",
133206
- "default": "'side'",
133207
- "description": "Whether the view of the wagons is from side or top perspective.",
133208
- "attribute": "view",
133222
+ "default": "null",
133223
+ "description": "Occupancy of a wagon.",
133224
+ "attribute": "occupancy"
133225
+ },
133226
+ {
133227
+ "kind": "field",
133228
+ "name": "sector",
133229
+ "type": {
133230
+ "text": "string"
133231
+ },
133232
+ "privacy": "public",
133233
+ "default": "''",
133234
+ "description": "Sector in which the wagon stops.",
133235
+ "attribute": "sector",
133209
133236
  "reflects": true
133210
133237
  },
133211
133238
  {
133212
133239
  "kind": "field",
133213
- "name": "_sectors",
133240
+ "name": "blockedPassage",
133214
133241
  "type": {
133215
- "text": "AggregatedSector[]"
133242
+ "text": "'previous' | 'next' | 'both' | 'none'"
133216
133243
  },
133217
- "privacy": "private",
133218
- "default": "[]"
133244
+ "privacy": "public",
133245
+ "default": "'none'",
133246
+ "description": "Accessibility text for blocked passages of the wagon.",
133247
+ "attribute": "blocked-passage"
133248
+ },
133249
+ {
133250
+ "kind": "field",
133251
+ "name": "wagonClass",
133252
+ "type": {
133253
+ "text": "'1' | '2' | null"
133254
+ },
133255
+ "privacy": "public",
133256
+ "default": "null",
133257
+ "description": "Class label",
133258
+ "attribute": "wagon-class"
133259
+ },
133260
+ {
133261
+ "kind": "field",
133262
+ "name": "label",
133263
+ "type": {
133264
+ "text": "string"
133265
+ },
133266
+ "privacy": "public",
133267
+ "default": "''",
133268
+ "description": "Wagon number",
133269
+ "attribute": "label",
133270
+ "reflects": true
133271
+ },
133272
+ {
133273
+ "kind": "field",
133274
+ "name": "additionalAccessibilityText",
133275
+ "type": {
133276
+ "text": "string"
133277
+ },
133278
+ "privacy": "public",
133279
+ "default": "''",
133280
+ "description": "Additional accessibility text which will be appended to the end.",
133281
+ "attribute": "additional-accessibility-text"
133219
133282
  },
133220
133283
  {
133221
133284
  "kind": "field",
@@ -133225,22 +133288,23 @@
133225
133288
  },
133226
133289
  {
133227
133290
  "kind": "method",
133228
- "name": "_readSectors",
133291
+ "name": "_sectorChanged",
133229
133292
  "privacy": "private",
133230
133293
  "return": {
133231
133294
  "type": {
133232
133295
  "text": "void"
133233
133296
  }
133234
- },
133235
- "parameters": [
133236
- {
133237
- "name": "event",
133238
- "optional": true,
133239
- "type": {
133240
- "text": "Event"
133241
- }
133297
+ }
133298
+ },
133299
+ {
133300
+ "kind": "method",
133301
+ "name": "_typeLabel",
133302
+ "privacy": "private",
133303
+ "return": {
133304
+ "type": {
133305
+ "text": "string"
133242
133306
  }
133243
- ]
133307
+ }
133244
133308
  },
133245
133309
  {
133246
133310
  "kind": "field",
@@ -133442,13 +133506,67 @@
133442
133506
  ],
133443
133507
  "attributes": [
133444
133508
  {
133445
- "name": "view",
133509
+ "name": "type",
133446
133510
  "type": {
133447
- "text": "'side' | 'top'"
133511
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133448
133512
  },
133449
- "default": "'side'",
133450
- "description": "Whether the view of the wagons is from side or top perspective.",
133451
- "fieldName": "view"
133513
+ "default": "'wagon'",
133514
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133515
+ "fieldName": "type"
133516
+ },
133517
+ {
133518
+ "name": "occupancy",
133519
+ "type": {
133520
+ "text": "SbbOccupancy | null"
133521
+ },
133522
+ "default": "null",
133523
+ "description": "Occupancy of a wagon.",
133524
+ "fieldName": "occupancy"
133525
+ },
133526
+ {
133527
+ "name": "sector",
133528
+ "type": {
133529
+ "text": "string"
133530
+ },
133531
+ "default": "''",
133532
+ "description": "Sector in which the wagon stops.",
133533
+ "fieldName": "sector"
133534
+ },
133535
+ {
133536
+ "name": "blocked-passage",
133537
+ "type": {
133538
+ "text": "'previous' | 'next' | 'both' | 'none'"
133539
+ },
133540
+ "default": "'none'",
133541
+ "description": "Accessibility text for blocked passages of the wagon.",
133542
+ "fieldName": "blockedPassage"
133543
+ },
133544
+ {
133545
+ "name": "wagon-class",
133546
+ "type": {
133547
+ "text": "'1' | '2' | null"
133548
+ },
133549
+ "default": "null",
133550
+ "description": "Class label",
133551
+ "fieldName": "wagonClass"
133552
+ },
133553
+ {
133554
+ "name": "label",
133555
+ "type": {
133556
+ "text": "string"
133557
+ },
133558
+ "default": "''",
133559
+ "description": "Wagon number",
133560
+ "fieldName": "label"
133561
+ },
133562
+ {
133563
+ "name": "additional-accessibility-text",
133564
+ "type": {
133565
+ "text": "string"
133566
+ },
133567
+ "default": "''",
133568
+ "description": "Additional accessibility text which will be appended to the end.",
133569
+ "fieldName": "additionalAccessibilityText"
133452
133570
  }
133453
133571
  ],
133454
133572
  "mixins": [
@@ -133461,32 +133579,39 @@
133461
133579
  "name": "SbbElement",
133462
133580
  "module": "core/base-elements.js"
133463
133581
  },
133464
- "tagName": "sbb-train-formation",
133582
+ "tagName": "sbb-train-wagon",
133465
133583
  "customElement": true
133466
133584
  }
133467
133585
  ],
133468
133586
  "exports": [
133469
133587
  {
133470
133588
  "kind": "js",
133471
- "name": "SbbTrainFormationElement",
133589
+ "name": "SbbTrainWagonElement",
133472
133590
  "declaration": {
133473
- "name": "SbbTrainFormationElement",
133474
- "module": "train/train-formation/train-formation.component.js"
133591
+ "name": "SbbTrainWagonElement",
133592
+ "module": "train/train-wagon/train-wagon.component.js"
133475
133593
  }
133476
133594
  }
133477
133595
  ]
133478
133596
  },
133479
133597
  {
133480
133598
  "kind": "javascript-module",
133481
- "path": "train/train-wagon/train-wagon.component.js",
133599
+ "path": "train/train-formation/train-formation.component.js",
133482
133600
  "declarations": [
133483
133601
  {
133484
133602
  "kind": "class",
133485
- "description": "It displays a train compartment within a `sbb-train` component.",
133486
- "name": "SbbTrainWagonElement",
133603
+ "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
133604
+ "name": "SbbTrainFormationElement",
133605
+ "cssProperties": [
133606
+ {
133607
+ "description": "Defines the inline padding inside the horizontal scrolling area.",
133608
+ "name": "--sbb-train-formation-padding-inline",
133609
+ "default": "0px"
133610
+ }
133611
+ ],
133487
133612
  "slots": [
133488
133613
  {
133489
- "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
133614
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
133490
133615
  "name": ""
133491
133616
  }
133492
133617
  ],
@@ -133500,35 +133625,12 @@
133500
133625
  "privacy": "public",
133501
133626
  "static": true,
133502
133627
  "readonly": true,
133503
- "default": "'sbb-train-wagon'",
133628
+ "default": "'sbb-train-formation'",
133504
133629
  "inheritedFrom": {
133505
133630
  "name": "SbbElement",
133506
133631
  "module": "core/base-elements/element.js"
133507
133632
  }
133508
133633
  },
133509
- {
133510
- "kind": "field",
133511
- "name": "events",
133512
- "privacy": "public",
133513
- "static": true,
133514
- "readonly": true,
133515
- "default": "{ sectorchange: 'sectorchange', }",
133516
- "type": {
133517
- "text": "{\n sectorchange: 'sectorchange',\n }"
133518
- }
133519
- },
133520
- {
133521
- "kind": "field",
133522
- "name": "type",
133523
- "type": {
133524
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133525
- },
133526
- "privacy": "public",
133527
- "default": "'wagon'",
133528
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133529
- "attribute": "type",
133530
- "reflects": true
133531
- },
133532
133634
  {
133533
133635
  "kind": "field",
133534
133636
  "name": "listChildLocalNames",
@@ -133538,7 +133640,7 @@
133538
133640
  "privacy": "protected",
133539
133641
  "readonly": true,
133540
133642
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
133541
- "default": "['sbb-icon']",
133643
+ "default": "['sbb-train']",
133542
133644
  "inheritedFrom": {
133543
133645
  "name": "SbbNamedSlotListMixin",
133544
133646
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -133546,71 +133648,24 @@
133546
133648
  },
133547
133649
  {
133548
133650
  "kind": "field",
133549
- "name": "occupancy",
133550
- "type": {
133551
- "text": "SbbOccupancy | null"
133552
- },
133553
- "privacy": "public",
133554
- "default": "null",
133555
- "description": "Occupancy of a wagon.",
133556
- "attribute": "occupancy"
133557
- },
133558
- {
133559
- "kind": "field",
133560
- "name": "sector",
133561
- "type": {
133562
- "text": "string"
133563
- },
133564
- "privacy": "public",
133565
- "default": "''",
133566
- "description": "Sector in which the wagon stops.",
133567
- "attribute": "sector",
133568
- "reflects": true
133569
- },
133570
- {
133571
- "kind": "field",
133572
- "name": "blockedPassage",
133573
- "type": {
133574
- "text": "'previous' | 'next' | 'both' | 'none'"
133575
- },
133576
- "privacy": "public",
133577
- "default": "'none'",
133578
- "description": "Accessibility text for blocked passages of the wagon.",
133579
- "attribute": "blocked-passage"
133580
- },
133581
- {
133582
- "kind": "field",
133583
- "name": "wagonClass",
133584
- "type": {
133585
- "text": "'1' | '2' | null"
133586
- },
133587
- "privacy": "public",
133588
- "default": "null",
133589
- "description": "Class label",
133590
- "attribute": "wagon-class"
133591
- },
133592
- {
133593
- "kind": "field",
133594
- "name": "label",
133651
+ "name": "view",
133595
133652
  "type": {
133596
- "text": "string"
133653
+ "text": "'side' | 'top'"
133597
133654
  },
133598
133655
  "privacy": "public",
133599
- "default": "''",
133600
- "description": "Wagon number",
133601
- "attribute": "label",
133656
+ "default": "'side'",
133657
+ "description": "Whether the view of the wagons is from side or top perspective.",
133658
+ "attribute": "view",
133602
133659
  "reflects": true
133603
133660
  },
133604
133661
  {
133605
133662
  "kind": "field",
133606
- "name": "additionalAccessibilityText",
133663
+ "name": "_sectors",
133607
133664
  "type": {
133608
- "text": "string"
133665
+ "text": "AggregatedSector[]"
133609
133666
  },
133610
- "privacy": "public",
133611
- "default": "''",
133612
- "description": "Additional accessibility text which will be appended to the end.",
133613
- "attribute": "additional-accessibility-text"
133667
+ "privacy": "private",
133668
+ "default": "[]"
133614
133669
  },
133615
133670
  {
133616
133671
  "kind": "field",
@@ -133620,23 +133675,22 @@
133620
133675
  },
133621
133676
  {
133622
133677
  "kind": "method",
133623
- "name": "_sectorChanged",
133678
+ "name": "_readSectors",
133624
133679
  "privacy": "private",
133625
133680
  "return": {
133626
133681
  "type": {
133627
133682
  "text": "void"
133628
133683
  }
133629
- }
133630
- },
133631
- {
133632
- "kind": "method",
133633
- "name": "_typeLabel",
133634
- "privacy": "private",
133635
- "return": {
133636
- "type": {
133637
- "text": "string"
133684
+ },
133685
+ "parameters": [
133686
+ {
133687
+ "name": "event",
133688
+ "optional": true,
133689
+ "type": {
133690
+ "text": "Event"
133691
+ }
133638
133692
  }
133639
- }
133693
+ ]
133640
133694
  },
133641
133695
  {
133642
133696
  "kind": "field",
@@ -133838,67 +133892,13 @@
133838
133892
  ],
133839
133893
  "attributes": [
133840
133894
  {
133841
- "name": "type",
133842
- "type": {
133843
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133844
- },
133845
- "default": "'wagon'",
133846
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133847
- "fieldName": "type"
133848
- },
133849
- {
133850
- "name": "occupancy",
133851
- "type": {
133852
- "text": "SbbOccupancy | null"
133853
- },
133854
- "default": "null",
133855
- "description": "Occupancy of a wagon.",
133856
- "fieldName": "occupancy"
133857
- },
133858
- {
133859
- "name": "sector",
133860
- "type": {
133861
- "text": "string"
133862
- },
133863
- "default": "''",
133864
- "description": "Sector in which the wagon stops.",
133865
- "fieldName": "sector"
133866
- },
133867
- {
133868
- "name": "blocked-passage",
133869
- "type": {
133870
- "text": "'previous' | 'next' | 'both' | 'none'"
133871
- },
133872
- "default": "'none'",
133873
- "description": "Accessibility text for blocked passages of the wagon.",
133874
- "fieldName": "blockedPassage"
133875
- },
133876
- {
133877
- "name": "wagon-class",
133878
- "type": {
133879
- "text": "'1' | '2' | null"
133880
- },
133881
- "default": "null",
133882
- "description": "Class label",
133883
- "fieldName": "wagonClass"
133884
- },
133885
- {
133886
- "name": "label",
133887
- "type": {
133888
- "text": "string"
133889
- },
133890
- "default": "''",
133891
- "description": "Wagon number",
133892
- "fieldName": "label"
133893
- },
133894
- {
133895
- "name": "additional-accessibility-text",
133895
+ "name": "view",
133896
133896
  "type": {
133897
- "text": "string"
133897
+ "text": "'side' | 'top'"
133898
133898
  },
133899
- "default": "''",
133900
- "description": "Additional accessibility text which will be appended to the end.",
133901
- "fieldName": "additionalAccessibilityText"
133899
+ "default": "'side'",
133900
+ "description": "Whether the view of the wagons is from side or top perspective.",
133901
+ "fieldName": "view"
133902
133902
  }
133903
133903
  ],
133904
133904
  "mixins": [
@@ -133911,17 +133911,17 @@
133911
133911
  "name": "SbbElement",
133912
133912
  "module": "core/base-elements.js"
133913
133913
  },
133914
- "tagName": "sbb-train-wagon",
133914
+ "tagName": "sbb-train-formation",
133915
133915
  "customElement": true
133916
133916
  }
133917
133917
  ],
133918
133918
  "exports": [
133919
133919
  {
133920
133920
  "kind": "js",
133921
- "name": "SbbTrainWagonElement",
133921
+ "name": "SbbTrainFormationElement",
133922
133922
  "declaration": {
133923
- "name": "SbbTrainWagonElement",
133924
- "module": "train/train-wagon/train-wagon.component.js"
133923
+ "name": "SbbTrainFormationElement",
133924
+ "module": "train/train-formation/train-formation.component.js"
133925
133925
  }
133926
133926
  }
133927
133927
  ]