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

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 +456 -456
  2. package/package.json +2 -2
@@ -124171,261 +124171,6 @@
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
- },
124429
124174
  {
124430
124175
  "kind": "javascript-module",
124431
124176
  "path": "stepper/stepper/stepper.component.js",
@@ -125059,7 +124804,262 @@
125059
124804
  },
125060
124805
  {
125061
124806
  "kind": "javascript-module",
125062
- "path": "tabs/common/styles.js",
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
+ {
125061
+ "kind": "javascript-module",
125062
+ "path": "tabs/common/styles.js",
125063
125063
  "declarations": [
125064
125064
  {
125065
125065
  "kind": "variable",
@@ -133146,15 +133146,22 @@
133146
133146
  },
133147
133147
  {
133148
133148
  "kind": "javascript-module",
133149
- "path": "train/train-wagon/train-wagon.component.js",
133149
+ "path": "train/train-formation/train-formation.component.js",
133150
133150
  "declarations": [
133151
133151
  {
133152
133152
  "kind": "class",
133153
- "description": "It displays a train compartment within a `sbb-train` component.",
133154
- "name": "SbbTrainWagonElement",
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
+ ],
133155
133162
  "slots": [
133156
133163
  {
133157
- "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
133164
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
133158
133165
  "name": ""
133159
133166
  }
133160
133167
  ],
@@ -133168,35 +133175,12 @@
133168
133175
  "privacy": "public",
133169
133176
  "static": true,
133170
133177
  "readonly": true,
133171
- "default": "'sbb-train-wagon'",
133178
+ "default": "'sbb-train-formation'",
133172
133179
  "inheritedFrom": {
133173
133180
  "name": "SbbElement",
133174
133181
  "module": "core/base-elements/element.js"
133175
133182
  }
133176
133183
  },
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
- },
133200
133184
  {
133201
133185
  "kind": "field",
133202
133186
  "name": "listChildLocalNames",
@@ -133206,7 +133190,7 @@
133206
133190
  "privacy": "protected",
133207
133191
  "readonly": true,
133208
133192
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
133209
- "default": "['sbb-icon']",
133193
+ "default": "['sbb-train']",
133210
133194
  "inheritedFrom": {
133211
133195
  "name": "SbbNamedSlotListMixin",
133212
133196
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -133214,71 +133198,24 @@
133214
133198
  },
133215
133199
  {
133216
133200
  "kind": "field",
133217
- "name": "occupancy",
133218
- "type": {
133219
- "text": "SbbOccupancy | null"
133220
- },
133221
- "privacy": "public",
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",
133236
- "reflects": true
133237
- },
133238
- {
133239
- "kind": "field",
133240
- "name": "blockedPassage",
133241
- "type": {
133242
- "text": "'previous' | 'next' | 'both' | 'none'"
133243
- },
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",
133201
+ "name": "view",
133263
133202
  "type": {
133264
- "text": "string"
133203
+ "text": "'side' | 'top'"
133265
133204
  },
133266
133205
  "privacy": "public",
133267
- "default": "''",
133268
- "description": "Wagon number",
133269
- "attribute": "label",
133206
+ "default": "'side'",
133207
+ "description": "Whether the view of the wagons is from side or top perspective.",
133208
+ "attribute": "view",
133270
133209
  "reflects": true
133271
133210
  },
133272
133211
  {
133273
133212
  "kind": "field",
133274
- "name": "additionalAccessibilityText",
133213
+ "name": "_sectors",
133275
133214
  "type": {
133276
- "text": "string"
133215
+ "text": "AggregatedSector[]"
133277
133216
  },
133278
- "privacy": "public",
133279
- "default": "''",
133280
- "description": "Additional accessibility text which will be appended to the end.",
133281
- "attribute": "additional-accessibility-text"
133217
+ "privacy": "private",
133218
+ "default": "[]"
133282
133219
  },
133283
133220
  {
133284
133221
  "kind": "field",
@@ -133288,23 +133225,22 @@
133288
133225
  },
133289
133226
  {
133290
133227
  "kind": "method",
133291
- "name": "_sectorChanged",
133228
+ "name": "_readSectors",
133292
133229
  "privacy": "private",
133293
133230
  "return": {
133294
133231
  "type": {
133295
133232
  "text": "void"
133296
133233
  }
133297
- }
133298
- },
133299
- {
133300
- "kind": "method",
133301
- "name": "_typeLabel",
133302
- "privacy": "private",
133303
- "return": {
133304
- "type": {
133305
- "text": "string"
133234
+ },
133235
+ "parameters": [
133236
+ {
133237
+ "name": "event",
133238
+ "optional": true,
133239
+ "type": {
133240
+ "text": "Event"
133241
+ }
133306
133242
  }
133307
- }
133243
+ ]
133308
133244
  },
133309
133245
  {
133310
133246
  "kind": "field",
@@ -133506,67 +133442,13 @@
133506
133442
  ],
133507
133443
  "attributes": [
133508
133444
  {
133509
- "name": "type",
133510
- "type": {
133511
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133512
- },
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",
133445
+ "name": "view",
133564
133446
  "type": {
133565
- "text": "string"
133447
+ "text": "'side' | 'top'"
133566
133448
  },
133567
- "default": "''",
133568
- "description": "Additional accessibility text which will be appended to the end.",
133569
- "fieldName": "additionalAccessibilityText"
133449
+ "default": "'side'",
133450
+ "description": "Whether the view of the wagons is from side or top perspective.",
133451
+ "fieldName": "view"
133570
133452
  }
133571
133453
  ],
133572
133454
  "mixins": [
@@ -133579,39 +133461,32 @@
133579
133461
  "name": "SbbElement",
133580
133462
  "module": "core/base-elements.js"
133581
133463
  },
133582
- "tagName": "sbb-train-wagon",
133464
+ "tagName": "sbb-train-formation",
133583
133465
  "customElement": true
133584
133466
  }
133585
133467
  ],
133586
133468
  "exports": [
133587
133469
  {
133588
133470
  "kind": "js",
133589
- "name": "SbbTrainWagonElement",
133471
+ "name": "SbbTrainFormationElement",
133590
133472
  "declaration": {
133591
- "name": "SbbTrainWagonElement",
133592
- "module": "train/train-wagon/train-wagon.component.js"
133473
+ "name": "SbbTrainFormationElement",
133474
+ "module": "train/train-formation/train-formation.component.js"
133593
133475
  }
133594
133476
  }
133595
133477
  ]
133596
133478
  },
133597
133479
  {
133598
133480
  "kind": "javascript-module",
133599
- "path": "train/train-formation/train-formation.component.js",
133481
+ "path": "train/train-wagon/train-wagon.component.js",
133600
133482
  "declarations": [
133601
133483
  {
133602
133484
  "kind": "class",
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
- ],
133485
+ "description": "It displays a train compartment within a `sbb-train` component.",
133486
+ "name": "SbbTrainWagonElement",
133612
133487
  "slots": [
133613
133488
  {
133614
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
133489
+ "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
133615
133490
  "name": ""
133616
133491
  }
133617
133492
  ],
@@ -133625,12 +133500,35 @@
133625
133500
  "privacy": "public",
133626
133501
  "static": true,
133627
133502
  "readonly": true,
133628
- "default": "'sbb-train-formation'",
133503
+ "default": "'sbb-train-wagon'",
133629
133504
  "inheritedFrom": {
133630
133505
  "name": "SbbElement",
133631
133506
  "module": "core/base-elements/element.js"
133632
133507
  }
133633
133508
  },
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
+ },
133634
133532
  {
133635
133533
  "kind": "field",
133636
133534
  "name": "listChildLocalNames",
@@ -133640,7 +133538,7 @@
133640
133538
  "privacy": "protected",
133641
133539
  "readonly": true,
133642
133540
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
133643
- "default": "['sbb-train']",
133541
+ "default": "['sbb-icon']",
133644
133542
  "inheritedFrom": {
133645
133543
  "name": "SbbNamedSlotListMixin",
133646
133544
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -133648,24 +133546,71 @@
133648
133546
  },
133649
133547
  {
133650
133548
  "kind": "field",
133651
- "name": "view",
133549
+ "name": "occupancy",
133652
133550
  "type": {
133653
- "text": "'side' | 'top'"
133551
+ "text": "SbbOccupancy | null"
133654
133552
  },
133655
133553
  "privacy": "public",
133656
- "default": "'side'",
133657
- "description": "Whether the view of the wagons is from side or top perspective.",
133658
- "attribute": "view",
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",
133659
133568
  "reflects": true
133660
133569
  },
133661
133570
  {
133662
133571
  "kind": "field",
133663
- "name": "_sectors",
133572
+ "name": "blockedPassage",
133664
133573
  "type": {
133665
- "text": "AggregatedSector[]"
133574
+ "text": "'previous' | 'next' | 'both' | 'none'"
133666
133575
  },
133667
- "privacy": "private",
133668
- "default": "[]"
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",
133595
+ "type": {
133596
+ "text": "string"
133597
+ },
133598
+ "privacy": "public",
133599
+ "default": "''",
133600
+ "description": "Wagon number",
133601
+ "attribute": "label",
133602
+ "reflects": true
133603
+ },
133604
+ {
133605
+ "kind": "field",
133606
+ "name": "additionalAccessibilityText",
133607
+ "type": {
133608
+ "text": "string"
133609
+ },
133610
+ "privacy": "public",
133611
+ "default": "''",
133612
+ "description": "Additional accessibility text which will be appended to the end.",
133613
+ "attribute": "additional-accessibility-text"
133669
133614
  },
133670
133615
  {
133671
133616
  "kind": "field",
@@ -133675,22 +133620,23 @@
133675
133620
  },
133676
133621
  {
133677
133622
  "kind": "method",
133678
- "name": "_readSectors",
133623
+ "name": "_sectorChanged",
133679
133624
  "privacy": "private",
133680
133625
  "return": {
133681
133626
  "type": {
133682
133627
  "text": "void"
133683
133628
  }
133684
- },
133685
- "parameters": [
133686
- {
133687
- "name": "event",
133688
- "optional": true,
133689
- "type": {
133690
- "text": "Event"
133691
- }
133629
+ }
133630
+ },
133631
+ {
133632
+ "kind": "method",
133633
+ "name": "_typeLabel",
133634
+ "privacy": "private",
133635
+ "return": {
133636
+ "type": {
133637
+ "text": "string"
133692
133638
  }
133693
- ]
133639
+ }
133694
133640
  },
133695
133641
  {
133696
133642
  "kind": "field",
@@ -133892,13 +133838,67 @@
133892
133838
  ],
133893
133839
  "attributes": [
133894
133840
  {
133895
- "name": "view",
133841
+ "name": "type",
133896
133842
  "type": {
133897
- "text": "'side' | 'top'"
133843
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133898
133844
  },
133899
- "default": "'side'",
133900
- "description": "Whether the view of the wagons is from side or top perspective.",
133901
- "fieldName": "view"
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",
133896
+ "type": {
133897
+ "text": "string"
133898
+ },
133899
+ "default": "''",
133900
+ "description": "Additional accessibility text which will be appended to the end.",
133901
+ "fieldName": "additionalAccessibilityText"
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-formation",
133914
+ "tagName": "sbb-train-wagon",
133915
133915
  "customElement": true
133916
133916
  }
133917
133917
  ],
133918
133918
  "exports": [
133919
133919
  {
133920
133920
  "kind": "js",
133921
- "name": "SbbTrainFormationElement",
133921
+ "name": "SbbTrainWagonElement",
133922
133922
  "declaration": {
133923
- "name": "SbbTrainFormationElement",
133924
- "module": "train/train-formation/train-formation.component.js"
133923
+ "name": "SbbTrainWagonElement",
133924
+ "module": "train/train-wagon/train-wagon.component.js"
133925
133925
  }
133926
133926
  }
133927
133927
  ]
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-dev",
3
- "version": "4.13.0-dev.1780579288",
3
+ "version": "4.13.0-dev.1780713964",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
7
7
  "web components",
8
8
  "lit",
9
- "https://github.com/sbb-design-systems/lyne-components/commit/c4808a2636f2f2f5c5534c1347291e4c341f891e"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/84c01e3779fbc246e91739abd604b4b3aa25a219"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {