@sbb-esta/lyne-elements-dev 5.0.0-next.2-dev.1778065336 → 5.0.0-next.2-dev.1778073979

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 +381 -381
  2. package/package.json +2 -2
@@ -165987,15 +165987,22 @@
165987
165987
  },
165988
165988
  {
165989
165989
  "kind": "javascript-module",
165990
- "path": "train/train-wagon/train-wagon.component.js",
165990
+ "path": "train/train-formation/train-formation.component.js",
165991
165991
  "declarations": [
165992
165992
  {
165993
165993
  "kind": "class",
165994
- "description": "It displays a train compartment within a `sbb-train` component.",
165995
- "name": "SbbTrainWagonElement",
165994
+ "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
165995
+ "name": "SbbTrainFormationElement",
165996
+ "cssProperties": [
165997
+ {
165998
+ "description": "Defines the inline or block padding inside the horizontal or vertical scrolling area.",
165999
+ "name": "--sbb-train-formation-scroll-padding",
166000
+ "default": "var(--sbb-spacing-fixed-1x)"
166001
+ }
166002
+ ],
165996
166003
  "slots": [
165997
166004
  {
165998
- "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the wagon.",
166005
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
165999
166006
  "name": ""
166000
166007
  }
166001
166008
  ],
@@ -166009,56 +166016,12 @@
166009
166016
  "privacy": "public",
166010
166017
  "static": true,
166011
166018
  "readonly": true,
166012
- "default": "'sbb-train-wagon'",
166013
- "inheritedFrom": {
166014
- "name": "SbbElement",
166015
- "module": "core/base-elements/element.js"
166016
- }
166017
- },
166018
- {
166019
- "kind": "field",
166020
- "name": "elementDependencies",
166021
- "type": {
166022
- "text": "SbbElementType[]"
166023
- },
166024
- "privacy": "public",
166025
- "static": true,
166026
- "default": "[ SbbIconElement, SbbTimetableOccupancyIconElement, SbbDividerElement, ]",
166019
+ "default": "'sbb-train-formation'",
166027
166020
  "inheritedFrom": {
166028
166021
  "name": "SbbElement",
166029
166022
  "module": "core/base-elements/element.js"
166030
166023
  }
166031
166024
  },
166032
- {
166033
- "kind": "field",
166034
- "name": "styles",
166035
- "type": {
166036
- "text": "CSSResultGroup"
166037
- },
166038
- "privacy": "public",
166039
- "static": true,
166040
- "default": "[unsafeCSS(style)]",
166041
- "inheritedFrom": {
166042
- "name": "SbbNamedSlotListMixin",
166043
- "module": "core/mixins/named-slot-list-mixin.js"
166044
- }
166045
- },
166046
- {
166047
- "kind": "field",
166048
- "name": "wagonType",
166049
- "type": {
166050
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
166051
- },
166052
- "privacy": "public",
166053
- "default": "'wagon'",
166054
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
166055
- "attribute": "wagon-type",
166056
- "reflects": true,
166057
- "inheritedFrom": {
166058
- "name": "SbbTrainWagonMixin",
166059
- "module": "train/train-wagon-common.js"
166060
- }
166061
- },
166062
166025
  {
166063
166026
  "kind": "field",
166064
166027
  "name": "listChildLocalNames",
@@ -166068,7 +166031,7 @@
166068
166031
  "privacy": "protected",
166069
166032
  "readonly": true,
166070
166033
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
166071
- "default": "['sbb-icon']",
166034
+ "default": "['sbb-train']",
166072
166035
  "inheritedFrom": {
166073
166036
  "name": "SbbNamedSlotListMixin",
166074
166037
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -166076,213 +166039,107 @@
166076
166039
  },
166077
166040
  {
166078
166041
  "kind": "field",
166079
- "name": "occupancy",
166080
- "type": {
166081
- "text": "SbbOccupancy | null"
166082
- },
166083
- "privacy": "public",
166084
- "default": "null",
166085
- "description": "Occupancy of a wagon.",
166086
- "attribute": "occupancy",
166087
- "inheritedFrom": {
166088
- "name": "SbbTrainWagonMixin",
166089
- "module": "train/train-wagon-common.js"
166090
- }
166091
- },
166092
- {
166093
- "kind": "field",
166094
- "name": "sector",
166095
- "type": {
166096
- "text": "string"
166097
- },
166098
- "privacy": "public",
166099
- "default": "''",
166100
- "description": "Sector in which the wagon stops.",
166101
- "attribute": "sector",
166102
- "reflects": true,
166103
- "inheritedFrom": {
166104
- "name": "SbbTrainWagonMixin",
166105
- "module": "train/train-wagon-common.js"
166106
- }
166107
- },
166108
- {
166109
- "kind": "field",
166110
- "name": "blockedPassage",
166111
- "type": {
166112
- "text": "'previous' | 'next' | 'both' | 'none'"
166113
- },
166114
- "privacy": "public",
166115
- "default": "'none'",
166116
- "description": "Accessibility text for blocked passages of the wagon.",
166117
- "attribute": "blocked-passage",
166118
- "inheritedFrom": {
166119
- "name": "SbbTrainWagonMixin",
166120
- "module": "train/train-wagon-common.js"
166121
- }
166122
- },
166123
- {
166124
- "kind": "field",
166125
- "name": "wagonClass",
166126
- "type": {
166127
- "text": "| '1'\n | '2'\n | '1-2'\n | '2-1'\n | null"
166128
- },
166129
- "privacy": "public",
166130
- "default": "null",
166131
- "description": "Class label",
166132
- "attribute": "wagon-class",
166133
- "inheritedFrom": {
166134
- "name": "SbbTrainWagonMixin",
166135
- "module": "train/train-wagon-common.js"
166136
- }
166137
- },
166138
- {
166139
- "kind": "field",
166140
- "name": "label",
166042
+ "name": "view",
166141
166043
  "type": {
166142
- "text": "string"
166044
+ "text": "'side' | 'top'"
166143
166045
  },
166144
166046
  "privacy": "public",
166145
- "default": "''",
166146
- "description": "Wagon number",
166147
- "attribute": "label",
166148
- "reflects": true,
166149
- "inheritedFrom": {
166150
- "name": "SbbTrainWagonMixin",
166151
- "module": "train/train-wagon-common.js"
166152
- }
166047
+ "default": "'side'",
166048
+ "description": "Whether the view of the wagons is from side or top perspective.",
166049
+ "attribute": "view",
166050
+ "reflects": true
166153
166051
  },
166154
166052
  {
166155
166053
  "kind": "field",
166156
- "name": "additionalAccessibilityText",
166054
+ "name": "orientation",
166157
166055
  "type": {
166158
- "text": "string"
166056
+ "text": "SbbOrientation"
166159
166057
  },
166160
166058
  "privacy": "public",
166161
- "default": "''",
166162
- "description": "Additional accessibility text which will be appended to the end.",
166163
- "attribute": "additional-accessibility-text",
166164
- "inheritedFrom": {
166165
- "name": "SbbTrainWagonMixin",
166166
- "module": "train/train-wagon-common.js"
166167
- }
166059
+ "default": "'horizontal'",
166060
+ "description": "Orientation, either horizontal or vertical.",
166061
+ "attribute": "orientation",
166062
+ "reflects": true
166168
166063
  },
166169
166064
  {
166170
166065
  "kind": "field",
166171
- "name": "_view",
166066
+ "name": "_sectors",
166172
166067
  "type": {
166173
- "text": "SbbTrainFormationElement['view'] | null"
166068
+ "text": "AggregatedSector[]"
166174
166069
  },
166175
166070
  "privacy": "private",
166176
- "default": "null",
166177
- "inheritedFrom": {
166178
- "name": "SbbTrainWagonMixin",
166179
- "module": "train/train-wagon-common.js"
166180
- }
166071
+ "default": "[]"
166181
166072
  },
166182
166073
  {
166183
166074
  "kind": "field",
166184
166075
  "name": "_language",
166185
166076
  "privacy": "private",
166186
- "default": "new SbbLanguageController(this)",
166187
- "inheritedFrom": {
166188
- "name": "SbbTrainWagonMixin",
166189
- "module": "train/train-wagon-common.js"
166190
- }
166191
- },
166192
- {
166193
- "kind": "field",
166194
- "name": "_clipStyleSheet",
166195
- "type": {
166196
- "text": "CSSStyleSheet | null"
166197
- },
166198
- "privacy": "private",
166199
- "default": "null",
166200
- "inheritedFrom": {
166201
- "name": "SbbTrainWagonMixin",
166202
- "module": "train/train-wagon-common.js"
166203
- }
166077
+ "default": "new SbbLanguageController(this)"
166204
166078
  },
166205
166079
  {
166206
166080
  "kind": "method",
166207
- "name": "_sectorChanged",
166081
+ "name": "_readDirectionLabel",
166208
166082
  "privacy": "private",
166209
166083
  "return": {
166210
166084
  "type": {
166211
166085
  "text": "void"
166212
166086
  }
166213
166087
  },
166214
- "inheritedFrom": {
166215
- "name": "SbbTrainWagonMixin",
166216
- "module": "train/train-wagon-common.js"
166217
- }
166218
- },
166219
- {
166220
- "kind": "method",
166221
- "name": "_wagonTypeLabel",
166222
- "privacy": "private",
166223
- "return": {
166224
- "type": {
166225
- "text": "string"
166088
+ "parameters": [
166089
+ {
166090
+ "name": "event",
166091
+ "optional": true,
166092
+ "type": {
166093
+ "text": "Event"
166094
+ }
166226
166095
  }
166227
- },
166228
- "inheritedFrom": {
166229
- "name": "SbbTrainWagonMixin",
166230
- "module": "train/train-wagon-common.js"
166231
- }
166096
+ ]
166232
166097
  },
166233
166098
  {
166234
166099
  "kind": "method",
166235
- "name": "_wagonShape",
166100
+ "name": "_readSectors",
166236
166101
  "privacy": "private",
166237
166102
  "return": {
166238
166103
  "type": {
166239
- "text": "string"
166104
+ "text": "void"
166240
166105
  }
166241
166106
  },
166242
- "inheritedFrom": {
166243
- "name": "SbbTrainWagonMixin",
166244
- "module": "train/train-wagon-common.js"
166245
- }
166246
- },
166247
- {
166248
- "kind": "method",
166249
- "name": "_classLabel",
166250
- "privacy": "private",
166251
- "return": {
166252
- "type": {
166253
- "text": "string"
166107
+ "parameters": [
166108
+ {
166109
+ "name": "event",
166110
+ "optional": true,
166111
+ "type": {
166112
+ "text": "Event"
166113
+ }
166254
166114
  }
166255
- },
166256
- "inheritedFrom": {
166257
- "name": "SbbTrainWagonMixin",
166258
- "module": "train/train-wagon-common.js"
166259
- }
166115
+ ]
166260
166116
  },
166261
166117
  {
166262
- "kind": "method",
166263
- "name": "renderTemplate",
166264
- "privacy": "protected",
166265
- "return": {
166266
- "type": {
166267
- "text": "TemplateResult"
166268
- }
166118
+ "kind": "field",
166119
+ "name": "elementDependencies",
166120
+ "type": {
166121
+ "text": "SbbElementType[]"
166269
166122
  },
166123
+ "privacy": "public",
166124
+ "static": true,
166125
+ "default": "[]",
166270
166126
  "inheritedFrom": {
166271
- "name": "SbbTrainWagonMixin",
166272
- "module": "train/train-wagon-common.js"
166127
+ "name": "SbbElement",
166128
+ "module": "core/base-elements/element.js"
166273
166129
  }
166274
166130
  },
166275
166131
  {
166276
166132
  "kind": "field",
166277
- "name": "orientation",
166133
+ "name": "styles",
166278
166134
  "type": {
166279
- "text": "SbbOrientation | null"
166135
+ "text": "CSSResultGroup"
166280
166136
  },
166281
- "privacy": "protected",
166282
- "default": "null",
166137
+ "privacy": "public",
166138
+ "static": true,
166139
+ "default": "[screenReaderOnlyStyles]",
166283
166140
  "inheritedFrom": {
166284
- "name": "SbbTrainFormationOrientationMixin",
166285
- "module": "train/train-formation-orientation-mixin.js"
166141
+ "name": "SbbNamedSlotListMixin",
166142
+ "module": "core/mixins/named-slot-list-mixin.js"
166286
166143
  }
166287
166144
  },
166288
166145
  {
@@ -166648,279 +166505,349 @@
166648
166505
  }
166649
166506
  }
166650
166507
  ],
166508
+ "attributes": [
166509
+ {
166510
+ "name": "view",
166511
+ "type": {
166512
+ "text": "'side' | 'top'"
166513
+ },
166514
+ "default": "'side'",
166515
+ "description": "Whether the view of the wagons is from side or top perspective.",
166516
+ "fieldName": "view"
166517
+ },
166518
+ {
166519
+ "name": "orientation",
166520
+ "type": {
166521
+ "text": "SbbOrientation"
166522
+ },
166523
+ "default": "'horizontal'",
166524
+ "description": "Orientation, either horizontal or vertical.",
166525
+ "fieldName": "orientation"
166526
+ }
166527
+ ],
166651
166528
  "mixins": [
166652
166529
  {
166653
- "name": "SbbTrainWagonMixin",
166654
- "module": "train/train-wagon-common.js"
166530
+ "name": "SbbNamedSlotListMixin",
166531
+ "module": "core.js"
166655
166532
  }
166656
166533
  ],
166657
166534
  "superclass": {
166658
166535
  "name": "SbbElement",
166659
166536
  "module": "core.js"
166660
166537
  },
166661
- "tagName": "sbb-train-wagon",
166662
- "customElement": true,
166663
- "attributes": [
166538
+ "tagName": "sbb-train-formation",
166539
+ "customElement": true
166540
+ }
166541
+ ],
166542
+ "exports": [
166543
+ {
166544
+ "kind": "js",
166545
+ "name": "SbbTrainFormationElement",
166546
+ "declaration": {
166547
+ "name": "SbbTrainFormationElement",
166548
+ "module": "train/train-formation/train-formation.component.js"
166549
+ }
166550
+ }
166551
+ ]
166552
+ },
166553
+ {
166554
+ "kind": "javascript-module",
166555
+ "path": "train/train-wagon/train-wagon.component.js",
166556
+ "declarations": [
166557
+ {
166558
+ "kind": "class",
166559
+ "description": "It displays a train compartment within a `sbb-train` component.",
166560
+ "name": "SbbTrainWagonElement",
166561
+ "slots": [
166664
166562
  {
166665
- "name": "wagon-type",
166563
+ "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the wagon.",
166564
+ "name": ""
166565
+ }
166566
+ ],
166567
+ "members": [
166568
+ {
166569
+ "kind": "field",
166570
+ "name": "elementName",
166666
166571
  "type": {
166667
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
166572
+ "text": "string"
166668
166573
  },
166669
- "default": "'wagon'",
166670
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
166671
- "fieldName": "wagonType",
166574
+ "privacy": "public",
166575
+ "static": true,
166576
+ "readonly": true,
166577
+ "default": "'sbb-train-wagon'",
166672
166578
  "inheritedFrom": {
166673
- "name": "SbbTrainWagonMixin",
166674
- "module": "train/train-wagon-common.js"
166579
+ "name": "SbbElement",
166580
+ "module": "core/base-elements/element.js"
166675
166581
  }
166676
166582
  },
166677
166583
  {
166678
- "name": "occupancy",
166584
+ "kind": "field",
166585
+ "name": "elementDependencies",
166679
166586
  "type": {
166680
- "text": "SbbOccupancy | null"
166587
+ "text": "SbbElementType[]"
166681
166588
  },
166682
- "default": "null",
166683
- "description": "Occupancy of a wagon.",
166684
- "fieldName": "occupancy",
166589
+ "privacy": "public",
166590
+ "static": true,
166591
+ "default": "[ SbbIconElement, SbbTimetableOccupancyIconElement, SbbDividerElement, ]",
166685
166592
  "inheritedFrom": {
166686
- "name": "SbbTrainWagonMixin",
166687
- "module": "train/train-wagon-common.js"
166593
+ "name": "SbbElement",
166594
+ "module": "core/base-elements/element.js"
166688
166595
  }
166689
166596
  },
166690
166597
  {
166691
- "name": "sector",
166598
+ "kind": "field",
166599
+ "name": "styles",
166692
166600
  "type": {
166693
- "text": "string"
166601
+ "text": "CSSResultGroup"
166694
166602
  },
166695
- "default": "''",
166696
- "description": "Sector in which the wagon stops.",
166697
- "fieldName": "sector",
166603
+ "privacy": "public",
166604
+ "static": true,
166605
+ "default": "[unsafeCSS(style)]",
166698
166606
  "inheritedFrom": {
166699
- "name": "SbbTrainWagonMixin",
166700
- "module": "train/train-wagon-common.js"
166607
+ "name": "SbbNamedSlotListMixin",
166608
+ "module": "core/mixins/named-slot-list-mixin.js"
166701
166609
  }
166702
166610
  },
166703
166611
  {
166704
- "name": "blocked-passage",
166612
+ "kind": "field",
166613
+ "name": "wagonType",
166705
166614
  "type": {
166706
- "text": "'previous' | 'next' | 'both' | 'none'"
166615
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
166707
166616
  },
166708
- "default": "'none'",
166709
- "description": "Accessibility text for blocked passages of the wagon.",
166710
- "fieldName": "blockedPassage",
166617
+ "privacy": "public",
166618
+ "default": "'wagon'",
166619
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
166620
+ "attribute": "wagon-type",
166621
+ "reflects": true,
166711
166622
  "inheritedFrom": {
166712
166623
  "name": "SbbTrainWagonMixin",
166713
166624
  "module": "train/train-wagon-common.js"
166714
166625
  }
166715
166626
  },
166716
166627
  {
166717
- "name": "wagon-class",
166628
+ "kind": "field",
166629
+ "name": "listChildLocalNames",
166718
166630
  "type": {
166719
- "text": "| '1'\n | '2'\n | '1-2'\n | '2-1'\n | null"
166631
+ "text": "array"
166720
166632
  },
166721
- "default": "null",
166722
- "description": "Class label",
166723
- "fieldName": "wagonClass",
166633
+ "privacy": "protected",
166634
+ "readonly": true,
166635
+ "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
166636
+ "default": "['sbb-icon']",
166724
166637
  "inheritedFrom": {
166725
- "name": "SbbTrainWagonMixin",
166726
- "module": "train/train-wagon-common.js"
166638
+ "name": "SbbNamedSlotListMixin",
166639
+ "module": "core/mixins/named-slot-list-mixin.js"
166727
166640
  }
166728
166641
  },
166729
166642
  {
166730
- "name": "label",
166643
+ "kind": "field",
166644
+ "name": "occupancy",
166731
166645
  "type": {
166732
- "text": "string"
166646
+ "text": "SbbOccupancy | null"
166733
166647
  },
166734
- "default": "''",
166735
- "description": "Wagon number",
166736
- "fieldName": "label",
166648
+ "privacy": "public",
166649
+ "default": "null",
166650
+ "description": "Occupancy of a wagon.",
166651
+ "attribute": "occupancy",
166737
166652
  "inheritedFrom": {
166738
166653
  "name": "SbbTrainWagonMixin",
166739
166654
  "module": "train/train-wagon-common.js"
166740
166655
  }
166741
166656
  },
166742
166657
  {
166743
- "name": "additional-accessibility-text",
166658
+ "kind": "field",
166659
+ "name": "sector",
166744
166660
  "type": {
166745
166661
  "text": "string"
166746
166662
  },
166663
+ "privacy": "public",
166747
166664
  "default": "''",
166748
- "description": "Additional accessibility text which will be appended to the end.",
166749
- "fieldName": "additionalAccessibilityText",
166665
+ "description": "Sector in which the wagon stops.",
166666
+ "attribute": "sector",
166667
+ "reflects": true,
166750
166668
  "inheritedFrom": {
166751
166669
  "name": "SbbTrainWagonMixin",
166752
166670
  "module": "train/train-wagon-common.js"
166753
166671
  }
166754
- }
166755
- ]
166756
- }
166757
- ],
166758
- "exports": [
166759
- {
166760
- "kind": "js",
166761
- "name": "SbbTrainWagonElement",
166762
- "declaration": {
166763
- "name": "SbbTrainWagonElement",
166764
- "module": "train/train-wagon/train-wagon.component.js"
166765
- }
166766
- }
166767
- ]
166768
- },
166769
- {
166770
- "kind": "javascript-module",
166771
- "path": "train/train-formation/train-formation.component.js",
166772
- "declarations": [
166773
- {
166774
- "kind": "class",
166775
- "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
166776
- "name": "SbbTrainFormationElement",
166777
- "cssProperties": [
166778
- {
166779
- "description": "Defines the inline or block padding inside the horizontal or vertical scrolling area.",
166780
- "name": "--sbb-train-formation-scroll-padding",
166781
- "default": "var(--sbb-spacing-fixed-1x)"
166782
- }
166783
- ],
166784
- "slots": [
166785
- {
166786
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
166787
- "name": ""
166788
- }
166789
- ],
166790
- "members": [
166672
+ },
166791
166673
  {
166792
166674
  "kind": "field",
166793
- "name": "elementName",
166675
+ "name": "blockedPassage",
166794
166676
  "type": {
166795
- "text": "string"
166677
+ "text": "'previous' | 'next' | 'both' | 'none'"
166796
166678
  },
166797
166679
  "privacy": "public",
166798
- "static": true,
166799
- "readonly": true,
166800
- "default": "'sbb-train-formation'",
166680
+ "default": "'none'",
166681
+ "description": "Accessibility text for blocked passages of the wagon.",
166682
+ "attribute": "blocked-passage",
166801
166683
  "inheritedFrom": {
166802
- "name": "SbbElement",
166803
- "module": "core/base-elements/element.js"
166684
+ "name": "SbbTrainWagonMixin",
166685
+ "module": "train/train-wagon-common.js"
166804
166686
  }
166805
166687
  },
166806
166688
  {
166807
166689
  "kind": "field",
166808
- "name": "listChildLocalNames",
166690
+ "name": "wagonClass",
166809
166691
  "type": {
166810
- "text": "array"
166692
+ "text": "| '1'\n | '2'\n | '1-2'\n | '2-1'\n | null"
166811
166693
  },
166812
- "privacy": "protected",
166813
- "readonly": true,
166814
- "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
166815
- "default": "['sbb-train']",
166694
+ "privacy": "public",
166695
+ "default": "null",
166696
+ "description": "Class label",
166697
+ "attribute": "wagon-class",
166816
166698
  "inheritedFrom": {
166817
- "name": "SbbNamedSlotListMixin",
166818
- "module": "core/mixins/named-slot-list-mixin.js"
166699
+ "name": "SbbTrainWagonMixin",
166700
+ "module": "train/train-wagon-common.js"
166819
166701
  }
166820
166702
  },
166821
166703
  {
166822
166704
  "kind": "field",
166823
- "name": "view",
166705
+ "name": "label",
166824
166706
  "type": {
166825
- "text": "'side' | 'top'"
166707
+ "text": "string"
166826
166708
  },
166827
166709
  "privacy": "public",
166828
- "default": "'side'",
166829
- "description": "Whether the view of the wagons is from side or top perspective.",
166830
- "attribute": "view",
166831
- "reflects": true
166710
+ "default": "''",
166711
+ "description": "Wagon number",
166712
+ "attribute": "label",
166713
+ "reflects": true,
166714
+ "inheritedFrom": {
166715
+ "name": "SbbTrainWagonMixin",
166716
+ "module": "train/train-wagon-common.js"
166717
+ }
166832
166718
  },
166833
166719
  {
166834
166720
  "kind": "field",
166835
- "name": "orientation",
166721
+ "name": "additionalAccessibilityText",
166836
166722
  "type": {
166837
- "text": "SbbOrientation"
166723
+ "text": "string"
166838
166724
  },
166839
166725
  "privacy": "public",
166840
- "default": "'horizontal'",
166841
- "description": "Orientation, either horizontal or vertical.",
166842
- "attribute": "orientation",
166843
- "reflects": true
166726
+ "default": "''",
166727
+ "description": "Additional accessibility text which will be appended to the end.",
166728
+ "attribute": "additional-accessibility-text",
166729
+ "inheritedFrom": {
166730
+ "name": "SbbTrainWagonMixin",
166731
+ "module": "train/train-wagon-common.js"
166732
+ }
166844
166733
  },
166845
166734
  {
166846
166735
  "kind": "field",
166847
- "name": "_sectors",
166736
+ "name": "_view",
166848
166737
  "type": {
166849
- "text": "AggregatedSector[]"
166738
+ "text": "SbbTrainFormationElement['view'] | null"
166850
166739
  },
166851
166740
  "privacy": "private",
166852
- "default": "[]"
166741
+ "default": "null",
166742
+ "inheritedFrom": {
166743
+ "name": "SbbTrainWagonMixin",
166744
+ "module": "train/train-wagon-common.js"
166745
+ }
166853
166746
  },
166854
166747
  {
166855
166748
  "kind": "field",
166856
166749
  "name": "_language",
166857
166750
  "privacy": "private",
166858
- "default": "new SbbLanguageController(this)"
166751
+ "default": "new SbbLanguageController(this)",
166752
+ "inheritedFrom": {
166753
+ "name": "SbbTrainWagonMixin",
166754
+ "module": "train/train-wagon-common.js"
166755
+ }
166756
+ },
166757
+ {
166758
+ "kind": "field",
166759
+ "name": "_clipStyleSheet",
166760
+ "type": {
166761
+ "text": "CSSStyleSheet | null"
166762
+ },
166763
+ "privacy": "private",
166764
+ "default": "null",
166765
+ "inheritedFrom": {
166766
+ "name": "SbbTrainWagonMixin",
166767
+ "module": "train/train-wagon-common.js"
166768
+ }
166859
166769
  },
166860
166770
  {
166861
166771
  "kind": "method",
166862
- "name": "_readDirectionLabel",
166772
+ "name": "_sectorChanged",
166863
166773
  "privacy": "private",
166864
166774
  "return": {
166865
166775
  "type": {
166866
166776
  "text": "void"
166867
166777
  }
166868
166778
  },
166869
- "parameters": [
166870
- {
166871
- "name": "event",
166872
- "optional": true,
166873
- "type": {
166874
- "text": "Event"
166875
- }
166779
+ "inheritedFrom": {
166780
+ "name": "SbbTrainWagonMixin",
166781
+ "module": "train/train-wagon-common.js"
166782
+ }
166783
+ },
166784
+ {
166785
+ "kind": "method",
166786
+ "name": "_wagonTypeLabel",
166787
+ "privacy": "private",
166788
+ "return": {
166789
+ "type": {
166790
+ "text": "string"
166876
166791
  }
166877
- ]
166792
+ },
166793
+ "inheritedFrom": {
166794
+ "name": "SbbTrainWagonMixin",
166795
+ "module": "train/train-wagon-common.js"
166796
+ }
166878
166797
  },
166879
166798
  {
166880
166799
  "kind": "method",
166881
- "name": "_readSectors",
166800
+ "name": "_wagonShape",
166882
166801
  "privacy": "private",
166883
166802
  "return": {
166884
166803
  "type": {
166885
- "text": "void"
166804
+ "text": "string"
166886
166805
  }
166887
166806
  },
166888
- "parameters": [
166889
- {
166890
- "name": "event",
166891
- "optional": true,
166892
- "type": {
166893
- "text": "Event"
166894
- }
166807
+ "inheritedFrom": {
166808
+ "name": "SbbTrainWagonMixin",
166809
+ "module": "train/train-wagon-common.js"
166810
+ }
166811
+ },
166812
+ {
166813
+ "kind": "method",
166814
+ "name": "_classLabel",
166815
+ "privacy": "private",
166816
+ "return": {
166817
+ "type": {
166818
+ "text": "string"
166895
166819
  }
166896
- ]
166820
+ },
166821
+ "inheritedFrom": {
166822
+ "name": "SbbTrainWagonMixin",
166823
+ "module": "train/train-wagon-common.js"
166824
+ }
166897
166825
  },
166898
166826
  {
166899
- "kind": "field",
166900
- "name": "elementDependencies",
166901
- "type": {
166902
- "text": "SbbElementType[]"
166827
+ "kind": "method",
166828
+ "name": "renderTemplate",
166829
+ "privacy": "protected",
166830
+ "return": {
166831
+ "type": {
166832
+ "text": "TemplateResult"
166833
+ }
166903
166834
  },
166904
- "privacy": "public",
166905
- "static": true,
166906
- "default": "[]",
166907
166835
  "inheritedFrom": {
166908
- "name": "SbbElement",
166909
- "module": "core/base-elements/element.js"
166836
+ "name": "SbbTrainWagonMixin",
166837
+ "module": "train/train-wagon-common.js"
166910
166838
  }
166911
166839
  },
166912
166840
  {
166913
166841
  "kind": "field",
166914
- "name": "styles",
166842
+ "name": "orientation",
166915
166843
  "type": {
166916
- "text": "CSSResultGroup"
166844
+ "text": "SbbOrientation | null"
166917
166845
  },
166918
- "privacy": "public",
166919
- "static": true,
166920
- "default": "[screenReaderOnlyStyles]",
166846
+ "privacy": "protected",
166847
+ "default": "null",
166921
166848
  "inheritedFrom": {
166922
- "name": "SbbNamedSlotListMixin",
166923
- "module": "core/mixins/named-slot-list-mixin.js"
166849
+ "name": "SbbTrainFormationOrientationMixin",
166850
+ "module": "train/train-formation-orientation-mixin.js"
166924
166851
  }
166925
166852
  },
166926
166853
  {
@@ -167286,47 +167213,120 @@
167286
167213
  }
167287
167214
  }
167288
167215
  ],
167216
+ "mixins": [
167217
+ {
167218
+ "name": "SbbTrainWagonMixin",
167219
+ "module": "train/train-wagon-common.js"
167220
+ }
167221
+ ],
167222
+ "superclass": {
167223
+ "name": "SbbElement",
167224
+ "module": "core.js"
167225
+ },
167226
+ "tagName": "sbb-train-wagon",
167227
+ "customElement": true,
167289
167228
  "attributes": [
167290
167229
  {
167291
- "name": "view",
167230
+ "name": "wagon-type",
167292
167231
  "type": {
167293
- "text": "'side' | 'top'"
167232
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
167294
167233
  },
167295
- "default": "'side'",
167296
- "description": "Whether the view of the wagons is from side or top perspective.",
167297
- "fieldName": "view"
167234
+ "default": "'wagon'",
167235
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
167236
+ "fieldName": "wagonType",
167237
+ "inheritedFrom": {
167238
+ "name": "SbbTrainWagonMixin",
167239
+ "module": "train/train-wagon-common.js"
167240
+ }
167298
167241
  },
167299
167242
  {
167300
- "name": "orientation",
167243
+ "name": "occupancy",
167301
167244
  "type": {
167302
- "text": "SbbOrientation"
167245
+ "text": "SbbOccupancy | null"
167303
167246
  },
167304
- "default": "'horizontal'",
167305
- "description": "Orientation, either horizontal or vertical.",
167306
- "fieldName": "orientation"
167307
- }
167308
- ],
167309
- "mixins": [
167247
+ "default": "null",
167248
+ "description": "Occupancy of a wagon.",
167249
+ "fieldName": "occupancy",
167250
+ "inheritedFrom": {
167251
+ "name": "SbbTrainWagonMixin",
167252
+ "module": "train/train-wagon-common.js"
167253
+ }
167254
+ },
167310
167255
  {
167311
- "name": "SbbNamedSlotListMixin",
167312
- "module": "core.js"
167256
+ "name": "sector",
167257
+ "type": {
167258
+ "text": "string"
167259
+ },
167260
+ "default": "''",
167261
+ "description": "Sector in which the wagon stops.",
167262
+ "fieldName": "sector",
167263
+ "inheritedFrom": {
167264
+ "name": "SbbTrainWagonMixin",
167265
+ "module": "train/train-wagon-common.js"
167266
+ }
167267
+ },
167268
+ {
167269
+ "name": "blocked-passage",
167270
+ "type": {
167271
+ "text": "'previous' | 'next' | 'both' | 'none'"
167272
+ },
167273
+ "default": "'none'",
167274
+ "description": "Accessibility text for blocked passages of the wagon.",
167275
+ "fieldName": "blockedPassage",
167276
+ "inheritedFrom": {
167277
+ "name": "SbbTrainWagonMixin",
167278
+ "module": "train/train-wagon-common.js"
167279
+ }
167280
+ },
167281
+ {
167282
+ "name": "wagon-class",
167283
+ "type": {
167284
+ "text": "| '1'\n | '2'\n | '1-2'\n | '2-1'\n | null"
167285
+ },
167286
+ "default": "null",
167287
+ "description": "Class label",
167288
+ "fieldName": "wagonClass",
167289
+ "inheritedFrom": {
167290
+ "name": "SbbTrainWagonMixin",
167291
+ "module": "train/train-wagon-common.js"
167292
+ }
167293
+ },
167294
+ {
167295
+ "name": "label",
167296
+ "type": {
167297
+ "text": "string"
167298
+ },
167299
+ "default": "''",
167300
+ "description": "Wagon number",
167301
+ "fieldName": "label",
167302
+ "inheritedFrom": {
167303
+ "name": "SbbTrainWagonMixin",
167304
+ "module": "train/train-wagon-common.js"
167305
+ }
167306
+ },
167307
+ {
167308
+ "name": "additional-accessibility-text",
167309
+ "type": {
167310
+ "text": "string"
167311
+ },
167312
+ "default": "''",
167313
+ "description": "Additional accessibility text which will be appended to the end.",
167314
+ "fieldName": "additionalAccessibilityText",
167315
+ "inheritedFrom": {
167316
+ "name": "SbbTrainWagonMixin",
167317
+ "module": "train/train-wagon-common.js"
167318
+ }
167313
167319
  }
167314
- ],
167315
- "superclass": {
167316
- "name": "SbbElement",
167317
- "module": "core.js"
167318
- },
167319
- "tagName": "sbb-train-formation",
167320
- "customElement": true
167320
+ ]
167321
167321
  }
167322
167322
  ],
167323
167323
  "exports": [
167324
167324
  {
167325
167325
  "kind": "js",
167326
- "name": "SbbTrainFormationElement",
167326
+ "name": "SbbTrainWagonElement",
167327
167327
  "declaration": {
167328
- "name": "SbbTrainFormationElement",
167329
- "module": "train/train-formation/train-formation.component.js"
167328
+ "name": "SbbTrainWagonElement",
167329
+ "module": "train/train-wagon/train-wagon.component.js"
167330
167330
  }
167331
167331
  }
167332
167332
  ]
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-dev",
3
- "version": "5.0.0-next.2-dev.1778065336",
3
+ "version": "5.0.0-next.2-dev.1778073979",
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/ff9b30171882d443b202353625e9bdd158c9a61b"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/9f5bd65b36575a7570a0389db27b1ad05def1905"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {