@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777284499 → 5.0.0-next.1-dev.1777286188

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 +889 -889
  2. package/package.json +2 -2
@@ -119728,15 +119728,15 @@
119728
119728
  },
119729
119729
  {
119730
119730
  "kind": "javascript-module",
119731
- "path": "link/block-link-button/block-link-button.component.js",
119731
+ "path": "link/block-link-static/block-link-static.component.js",
119732
119732
  "declarations": [
119733
119733
  {
119734
119734
  "kind": "class",
119735
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119736
- "name": "SbbBlockLinkButtonElement",
119735
+ "description": "It displays a static link enhanced with the SBB Design.",
119736
+ "name": "SbbBlockLinkStaticElement",
119737
119737
  "slots": [
119738
119738
  {
119739
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119739
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
119740
119740
  "name": ""
119741
119741
  },
119742
119742
  {
@@ -119758,7 +119758,7 @@
119758
119758
  "name": "SbbElement",
119759
119759
  "module": "core/base-elements/element.js"
119760
119760
  },
119761
- "default": "'sbb-block-link-button'"
119761
+ "default": "'sbb-block-link-static'"
119762
119762
  },
119763
119763
  {
119764
119764
  "kind": "field",
@@ -119901,22 +119901,6 @@
119901
119901
  "module": "icon/icon-name-mixin.js"
119902
119902
  }
119903
119903
  },
119904
- {
119905
- "kind": "field",
119906
- "name": "disabledInteractive",
119907
- "type": {
119908
- "text": "boolean"
119909
- },
119910
- "privacy": "public",
119911
- "default": "false",
119912
- "description": "Whether the button should be aria-disabled but stay interactive.",
119913
- "attribute": "disabled-interactive",
119914
- "reflects": true,
119915
- "inheritedFrom": {
119916
- "name": "SbbDisabledInteractiveMixin",
119917
- "module": "core/mixins/disabled-mixin.js"
119918
- }
119919
- },
119920
119904
  {
119921
119905
  "kind": "field",
119922
119906
  "name": "disabled",
@@ -119961,483 +119945,6 @@
119961
119945
  "module": "core/mixins/disabled-mixin.js"
119962
119946
  }
119963
119947
  },
119964
- {
119965
- "kind": "field",
119966
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
119967
- "type": {
119968
- "text": "array"
119969
- },
119970
- "privacy": "private",
119971
- "readonly": true,
119972
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119973
- "inheritedFrom": {
119974
- "name": "SbbButtonBaseElement",
119975
- "module": "core/base-elements/button-base-element.js"
119976
- }
119977
- },
119978
- {
119979
- "kind": "field",
119980
- "name": "value",
119981
- "type": {
119982
- "text": "string"
119983
- },
119984
- "privacy": "public",
119985
- "inheritedFrom": {
119986
- "name": "SbbButtonBaseElement",
119987
- "module": "core/base-elements/button-base-element.js"
119988
- },
119989
- "default": "''",
119990
- "description": "Value of the form element.",
119991
- "attribute": "value"
119992
- },
119993
- {
119994
- "kind": "field",
119995
- "name": "type",
119996
- "privacy": "public",
119997
- "description": "The type attribute to use for the button.",
119998
- "default": "'button'",
119999
- "type": {
120000
- "text": "SbbButtonType"
120001
- },
120002
- "attribute": "type",
120003
- "inheritedFrom": {
120004
- "name": "SbbButtonBaseElement",
120005
- "module": "core/base-elements/button-base-element.js"
120006
- }
120007
- },
120008
- {
120009
- "kind": "field",
120010
- "name": "form",
120011
- "type": {
120012
- "text": "HTMLFormElement | null"
120013
- },
120014
- "privacy": "public",
120015
- "description": "The `<form>` element to associate the button with.",
120016
- "inheritedFrom": {
120017
- "name": "SbbButtonBaseElement",
120018
- "module": "core/base-elements/button-base-element.js"
120019
- },
120020
- "attribute": "form"
120021
- },
120022
- {
120023
- "kind": "field",
120024
- "name": "_formId",
120025
- "type": {
120026
- "text": "string"
120027
- },
120028
- "privacy": "private",
120029
- "default": "''",
120030
- "inheritedFrom": {
120031
- "name": "SbbButtonBaseElement",
120032
- "module": "core/base-elements/button-base-element.js"
120033
- }
120034
- },
120035
- {
120036
- "kind": "field",
120037
- "name": "_handleButtonClick",
120038
- "privacy": "private",
120039
- "inheritedFrom": {
120040
- "name": "SbbButtonBaseElement",
120041
- "module": "core/base-elements/button-base-element.js"
120042
- }
120043
- },
120044
- {
120045
- "kind": "method",
120046
- "name": "_requestSubmit",
120047
- "privacy": "private",
120048
- "return": {
120049
- "type": {
120050
- "text": "void"
120051
- }
120052
- },
120053
- "parameters": [
120054
- {
120055
- "name": "form",
120056
- "type": {
120057
- "text": "HTMLFormElement"
120058
- }
120059
- }
120060
- ],
120061
- "inheritedFrom": {
120062
- "name": "SbbButtonBaseElement",
120063
- "module": "core/base-elements/button-base-element.js"
120064
- }
120065
- },
120066
- {
120067
- "kind": "field",
120068
- "name": "_formKeyDown",
120069
- "privacy": "private",
120070
- "inheritedFrom": {
120071
- "name": "SbbButtonBaseElement",
120072
- "module": "core/base-elements/button-base-element.js"
120073
- }
120074
- },
120075
- {
120076
- "kind": "field",
120077
- "name": "formAssociated",
120078
- "type": {
120079
- "text": "boolean"
120080
- },
120081
- "privacy": "public",
120082
- "static": true,
120083
- "default": "true",
120084
- "inheritedFrom": {
120085
- "name": "SbbFormAssociatedMixin",
120086
- "module": "core/mixins/form-associated-mixin.js"
120087
- }
120088
- },
120089
- {
120090
- "kind": "field",
120091
- "name": "name",
120092
- "privacy": "public",
120093
- "description": "Name of the form element. Will be read from name attribute.",
120094
- "type": {
120095
- "text": "string"
120096
- },
120097
- "attribute": "name",
120098
- "inheritedFrom": {
120099
- "name": "SbbFormAssociatedMixin",
120100
- "module": "core/mixins/form-associated-mixin.js"
120101
- }
120102
- },
120103
- {
120104
- "kind": "field",
120105
- "name": "validity",
120106
- "type": {
120107
- "text": "ValidityState"
120108
- },
120109
- "privacy": "public",
120110
- "description": "Returns the ValidityState object for this element.",
120111
- "readonly": true,
120112
- "inheritedFrom": {
120113
- "name": "SbbFormAssociatedMixin",
120114
- "module": "core/mixins/form-associated-mixin.js"
120115
- }
120116
- },
120117
- {
120118
- "kind": "field",
120119
- "name": "validationMessage",
120120
- "type": {
120121
- "text": "string"
120122
- },
120123
- "privacy": "public",
120124
- "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
120125
- "readonly": true,
120126
- "inheritedFrom": {
120127
- "name": "SbbFormAssociatedMixin",
120128
- "module": "core/mixins/form-associated-mixin.js"
120129
- }
120130
- },
120131
- {
120132
- "kind": "field",
120133
- "name": "willValidate",
120134
- "type": {
120135
- "text": "boolean"
120136
- },
120137
- "privacy": "public",
120138
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120139
- "readonly": true,
120140
- "inheritedFrom": {
120141
- "name": "SbbFormAssociatedMixin",
120142
- "module": "core/mixins/form-associated-mixin.js"
120143
- }
120144
- },
120145
- {
120146
- "kind": "field",
120147
- "name": "_validityStates",
120148
- "privacy": "private",
120149
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120150
- "inheritedFrom": {
120151
- "name": "SbbFormAssociatedMixin",
120152
- "module": "core/mixins/form-associated-mixin.js"
120153
- }
120154
- },
120155
- {
120156
- "kind": "field",
120157
- "name": "formDisabled",
120158
- "type": {
120159
- "text": "boolean"
120160
- },
120161
- "privacy": "protected",
120162
- "default": "false",
120163
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120164
- "inheritedFrom": {
120165
- "name": "SbbFormAssociatedMixin",
120166
- "module": "core/mixins/form-associated-mixin.js"
120167
- }
120168
- },
120169
- {
120170
- "kind": "method",
120171
- "name": "checkValidity",
120172
- "privacy": "public",
120173
- "return": {
120174
- "type": {
120175
- "text": "boolean"
120176
- }
120177
- },
120178
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120179
- "inheritedFrom": {
120180
- "name": "SbbFormAssociatedMixin",
120181
- "module": "core/mixins/form-associated-mixin.js"
120182
- }
120183
- },
120184
- {
120185
- "kind": "method",
120186
- "name": "reportValidity",
120187
- "privacy": "public",
120188
- "return": {
120189
- "type": {
120190
- "text": "boolean"
120191
- }
120192
- },
120193
- "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
120194
- "inheritedFrom": {
120195
- "name": "SbbFormAssociatedMixin",
120196
- "module": "core/mixins/form-associated-mixin.js"
120197
- }
120198
- },
120199
- {
120200
- "kind": "method",
120201
- "name": "setCustomValidity",
120202
- "privacy": "public",
120203
- "return": {
120204
- "type": {
120205
- "text": "void"
120206
- }
120207
- },
120208
- "parameters": [
120209
- {
120210
- "name": "message",
120211
- "type": {
120212
- "text": "string"
120213
- }
120214
- }
120215
- ],
120216
- "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
120217
- "inheritedFrom": {
120218
- "name": "SbbFormAssociatedMixin",
120219
- "module": "core/mixins/form-associated-mixin.js"
120220
- }
120221
- },
120222
- {
120223
- "kind": "method",
120224
- "name": "_hasDisabledAncestor",
120225
- "privacy": "private",
120226
- "return": {
120227
- "type": {
120228
- "text": "boolean"
120229
- }
120230
- },
120231
- "inheritedFrom": {
120232
- "name": "SbbFormAssociatedMixin",
120233
- "module": "core/mixins/form-associated-mixin.js"
120234
- }
120235
- },
120236
- {
120237
- "kind": "method",
120238
- "name": "updateFormValue",
120239
- "privacy": "protected",
120240
- "return": {
120241
- "type": {
120242
- "text": "void"
120243
- }
120244
- },
120245
- "description": "Should be called when form value is changed.\nAdapts and sets the formValue in the supported format (string | FormData | File | null)\nhttps://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue",
120246
- "inheritedFrom": {
120247
- "name": "SbbFormAssociatedMixin",
120248
- "module": "core/mixins/form-associated-mixin.js"
120249
- }
120250
- },
120251
- {
120252
- "kind": "method",
120253
- "name": "formState",
120254
- "privacy": "protected",
120255
- "return": {
120256
- "type": {
120257
- "text": "FormRestoreState"
120258
- }
120259
- },
120260
- "inheritedFrom": {
120261
- "name": "SbbFormAssociatedMixin",
120262
- "module": "core/mixins/form-associated-mixin.js"
120263
- }
120264
- },
120265
- {
120266
- "kind": "method",
120267
- "name": "setValidityFlag",
120268
- "privacy": "protected",
120269
- "return": {
120270
- "type": {
120271
- "text": "void"
120272
- }
120273
- },
120274
- "parameters": [
120275
- {
120276
- "name": "flag",
120277
- "type": {
120278
- "text": "T"
120279
- }
120280
- },
120281
- {
120282
- "name": "message",
120283
- "type": {
120284
- "text": "string"
120285
- }
120286
- },
120287
- {
120288
- "name": "flagValue",
120289
- "optional": true,
120290
- "type": {
120291
- "text": "ValidityStateFlags[T]"
120292
- }
120293
- }
120294
- ],
120295
- "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
120296
- "inheritedFrom": {
120297
- "name": "SbbFormAssociatedMixin",
120298
- "module": "core/mixins/form-associated-mixin.js"
120299
- }
120300
- },
120301
- {
120302
- "kind": "method",
120303
- "name": "removeValidityFlag",
120304
- "privacy": "protected",
120305
- "return": {
120306
- "type": {
120307
- "text": "void"
120308
- }
120309
- },
120310
- "parameters": [
120311
- {
120312
- "name": "flag",
120313
- "type": {
120314
- "text": "T"
120315
- }
120316
- }
120317
- ],
120318
- "description": "Removes the validity state flag entry and updates validity state.",
120319
- "inheritedFrom": {
120320
- "name": "SbbFormAssociatedMixin",
120321
- "module": "core/mixins/form-associated-mixin.js"
120322
- }
120323
- },
120324
- {
120325
- "kind": "method",
120326
- "name": "validate",
120327
- "privacy": "protected",
120328
- "return": {
120329
- "type": {
120330
- "text": "void"
120331
- }
120332
- },
120333
- "description": "To be called whenever the current element needs to be validated.",
120334
- "inheritedFrom": {
120335
- "name": "SbbFormAssociatedMixin",
120336
- "module": "core/mixins/form-associated-mixin.js"
120337
- }
120338
- },
120339
- {
120340
- "kind": "method",
120341
- "name": "shouldValidate",
120342
- "privacy": "protected",
120343
- "return": {
120344
- "type": {
120345
- "text": "boolean"
120346
- }
120347
- },
120348
- "parameters": [
120349
- {
120350
- "name": "name",
120351
- "type": {
120352
- "text": "PropertyKey | undefined"
120353
- }
120354
- }
120355
- ],
120356
- "description": "Whether validation should be run on a property change with the given name.",
120357
- "inheritedFrom": {
120358
- "name": "SbbFormAssociatedMixin",
120359
- "module": "core/mixins/form-associated-mixin.js"
120360
- }
120361
- },
120362
- {
120363
- "kind": "method",
120364
- "name": "_setInternalValidity",
120365
- "privacy": "private",
120366
- "return": {
120367
- "type": {
120368
- "text": "void"
120369
- }
120370
- },
120371
- "inheritedFrom": {
120372
- "name": "SbbFormAssociatedMixin",
120373
- "module": "core/mixins/form-associated-mixin.js"
120374
- }
120375
- },
120376
- {
120377
- "kind": "field",
120378
- "name": "role",
120379
- "type": {
120380
- "text": "ElementInternals['role']"
120381
- },
120382
- "privacy": "public",
120383
- "static": true,
120384
- "inheritedFrom": {
120385
- "name": "SbbElement",
120386
- "module": "core/base-elements/element.js"
120387
- },
120388
- "readonly": true,
120389
- "default": "'button'"
120390
- },
120391
- {
120392
- "kind": "field",
120393
- "name": "_preventScrollOnSpaceKeydown",
120394
- "privacy": "private",
120395
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120396
- "parameters": [
120397
- {
120398
- "description": "The origin event.",
120399
- "name": "event"
120400
- }
120401
- ],
120402
- "inheritedFrom": {
120403
- "name": "SbbButtonLikeBaseElement",
120404
- "module": "core/base-elements/button-base-element.js"
120405
- }
120406
- },
120407
- {
120408
- "kind": "field",
120409
- "name": "_removeActiveMarker",
120410
- "privacy": "private",
120411
- "inheritedFrom": {
120412
- "name": "SbbButtonLikeBaseElement",
120413
- "module": "core/base-elements/button-base-element.js"
120414
- }
120415
- },
120416
- {
120417
- "kind": "field",
120418
- "name": "_dispatchClickEventOnSpaceKeyup",
120419
- "privacy": "private",
120420
- "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
120421
- "parameters": [
120422
- {
120423
- "description": "The origin event.",
120424
- "name": "event"
120425
- }
120426
- ],
120427
- "inheritedFrom": {
120428
- "name": "SbbButtonLikeBaseElement",
120429
- "module": "core/base-elements/button-base-element.js"
120430
- }
120431
- },
120432
- {
120433
- "kind": "field",
120434
- "name": "_dispatchClickEvent",
120435
- "privacy": "private",
120436
- "inheritedFrom": {
120437
- "name": "SbbButtonLikeBaseElement",
120438
- "module": "core/base-elements/button-base-element.js"
120439
- }
120440
- },
120441
119948
  {
120442
119949
  "kind": "field",
120443
119950
  "name": "maybeDisabled",
@@ -120492,6 +119999,19 @@
120492
119999
  "module": "core/base-elements/element.js"
120493
120000
  }
120494
120001
  },
120002
+ {
120003
+ "kind": "field",
120004
+ "name": "role",
120005
+ "type": {
120006
+ "text": "ElementInternals['role'] | undefined"
120007
+ },
120008
+ "privacy": "public",
120009
+ "static": true,
120010
+ "inheritedFrom": {
120011
+ "name": "SbbElement",
120012
+ "module": "core/base-elements/element.js"
120013
+ }
120014
+ },
120495
120015
  {
120496
120016
  "kind": "field",
120497
120017
  "name": "_controllers",
@@ -120718,15 +120238,15 @@
120718
120238
  "module": "link/common/block-link-common.js"
120719
120239
  },
120720
120240
  {
120721
- "name": "SbbDisabledTabIndexActionMixin",
120241
+ "name": "SbbDisabledMixin",
120722
120242
  "module": "core.js"
120723
120243
  }
120724
120244
  ],
120725
120245
  "superclass": {
120726
- "name": "SbbButtonBaseElement",
120246
+ "name": "SbbActionBaseElement",
120727
120247
  "module": "core.js"
120728
120248
  },
120729
- "tagName": "sbb-block-link-button",
120249
+ "tagName": "sbb-block-link-static",
120730
120250
  "customElement": true,
120731
120251
  "attributes": [
120732
120252
  {
@@ -120769,312 +120289,742 @@
120769
120289
  }
120770
120290
  },
120771
120291
  {
120772
- "name": "disabled-interactive",
120292
+ "name": "disabled",
120293
+ "description": "Whether the component is disabled.",
120294
+ "default": "false",
120773
120295
  "type": {
120774
120296
  "text": "boolean"
120775
120297
  },
120298
+ "fieldName": "disabled",
120299
+ "inheritedFrom": {
120300
+ "name": "SbbDisabledMixin",
120301
+ "module": "core/mixins/disabled-mixin.js"
120302
+ }
120303
+ }
120304
+ ]
120305
+ }
120306
+ ],
120307
+ "exports": [
120308
+ {
120309
+ "kind": "js",
120310
+ "name": "SbbBlockLinkStaticElement",
120311
+ "declaration": {
120312
+ "name": "SbbBlockLinkStaticElement",
120313
+ "module": "link/block-link-static/block-link-static.component.js"
120314
+ }
120315
+ }
120316
+ ]
120317
+ },
120318
+ {
120319
+ "kind": "javascript-module",
120320
+ "path": "link/block-link-button/block-link-button.component.js",
120321
+ "declarations": [
120322
+ {
120323
+ "kind": "class",
120324
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
120325
+ "name": "SbbBlockLinkButtonElement",
120326
+ "slots": [
120327
+ {
120328
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
120329
+ "name": ""
120330
+ },
120331
+ {
120332
+ "description": "Slot used to display the icon, if one is set.",
120333
+ "name": "icon"
120334
+ }
120335
+ ],
120336
+ "members": [
120337
+ {
120338
+ "kind": "field",
120339
+ "name": "elementName",
120340
+ "type": {
120341
+ "text": "string"
120342
+ },
120343
+ "privacy": "public",
120344
+ "static": true,
120345
+ "readonly": true,
120346
+ "inheritedFrom": {
120347
+ "name": "SbbElement",
120348
+ "module": "core/base-elements/element.js"
120349
+ },
120350
+ "default": "'sbb-block-link-button'"
120351
+ },
120352
+ {
120353
+ "kind": "field",
120354
+ "name": "styles",
120355
+ "type": {
120356
+ "text": "CSSResultGroup"
120357
+ },
120358
+ "privacy": "public",
120359
+ "static": true,
120360
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
120361
+ "inheritedFrom": {
120362
+ "name": "SbbLinkCommonElementMixin",
120363
+ "module": "link/common/link-common.js"
120364
+ }
120365
+ },
120366
+ {
120367
+ "kind": "field",
120368
+ "name": "size",
120369
+ "type": {
120370
+ "text": "SbbLinkSize"
120371
+ },
120372
+ "privacy": "public",
120373
+ "description": "Size variant, either xs, s or m.",
120374
+ "default": "'s' / 'xs' (lean)",
120375
+ "attribute": "size",
120376
+ "reflects": true,
120377
+ "inheritedFrom": {
120378
+ "name": "SbbBlockLinkCommonElementMixin",
120379
+ "module": "link/common/block-link-common.js"
120380
+ }
120381
+ },
120382
+ {
120383
+ "kind": "field",
120384
+ "name": "iconPlacement",
120385
+ "type": {
120386
+ "text": "SbbIconPlacement"
120387
+ },
120388
+ "privacy": "public",
120389
+ "default": "'start'",
120390
+ "description": "Moves the icon to the end of the component if set to true.",
120391
+ "attribute": "icon-placement",
120392
+ "reflects": true,
120393
+ "inheritedFrom": {
120394
+ "name": "SbbBlockLinkCommonElementMixin",
120395
+ "module": "link/common/block-link-common.js"
120396
+ }
120397
+ },
120398
+ {
120399
+ "kind": "method",
120400
+ "name": "renderTemplate",
120401
+ "privacy": "protected",
120402
+ "return": {
120403
+ "type": {
120404
+ "text": "TemplateResult"
120405
+ }
120406
+ },
120407
+ "description": "Override this method to render the component template.",
120408
+ "inheritedFrom": {
120409
+ "name": "SbbActionBaseElement",
120410
+ "module": "core/base-elements/action-base-element.js"
120411
+ }
120412
+ },
120413
+ {
120414
+ "kind": "field",
120415
+ "name": "elementDependencies",
120416
+ "type": {
120417
+ "text": "SbbElementType[]"
120418
+ },
120419
+ "privacy": "public",
120420
+ "static": true,
120421
+ "inheritedFrom": {
120422
+ "name": "SbbElement",
120423
+ "module": "core/base-elements/element.js"
120424
+ },
120425
+ "default": "[SbbIconElement]"
120426
+ },
120427
+ {
120428
+ "kind": "field",
120429
+ "name": "iconName",
120430
+ "type": {
120431
+ "text": "string"
120432
+ },
120433
+ "privacy": "public",
120434
+ "default": "''",
120435
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
120436
+ "attribute": "icon-name",
120437
+ "inheritedFrom": {
120438
+ "name": "SbbIconNameMixin",
120439
+ "module": "icon/icon-name-mixin.js"
120440
+ }
120441
+ },
120442
+ {
120443
+ "kind": "method",
120444
+ "name": "renderIconSlot",
120445
+ "privacy": "protected",
120446
+ "return": {
120447
+ "type": {
120448
+ "text": "TemplateResult"
120449
+ }
120450
+ },
120451
+ "parameters": [
120452
+ {
120453
+ "name": "classname",
120454
+ "optional": true,
120455
+ "type": {
120456
+ "text": "string"
120457
+ }
120458
+ }
120459
+ ],
120460
+ "inheritedFrom": {
120461
+ "name": "SbbIconNameMixin",
120462
+ "module": "icon/icon-name-mixin.js"
120463
+ }
120464
+ },
120465
+ {
120466
+ "kind": "method",
120467
+ "name": "renderIconName",
120468
+ "privacy": "protected",
120469
+ "return": {
120470
+ "type": {
120471
+ "text": "string"
120472
+ }
120473
+ },
120474
+ "inheritedFrom": {
120475
+ "name": "SbbIconNameMixin",
120476
+ "module": "icon/icon-name-mixin.js"
120477
+ }
120478
+ },
120479
+ {
120480
+ "kind": "method",
120481
+ "name": "_renderIconName",
120482
+ "privacy": "private",
120483
+ "return": {
120484
+ "type": {
120485
+ "text": "string"
120486
+ }
120487
+ },
120488
+ "inheritedFrom": {
120489
+ "name": "SbbIconNameMixin",
120490
+ "module": "icon/icon-name-mixin.js"
120491
+ }
120492
+ },
120493
+ {
120494
+ "kind": "field",
120495
+ "name": "disabledInteractive",
120496
+ "type": {
120497
+ "text": "boolean"
120498
+ },
120499
+ "privacy": "public",
120776
120500
  "default": "false",
120777
120501
  "description": "Whether the button should be aria-disabled but stay interactive.",
120778
- "fieldName": "disabledInteractive",
120502
+ "attribute": "disabled-interactive",
120503
+ "reflects": true,
120779
120504
  "inheritedFrom": {
120780
120505
  "name": "SbbDisabledInteractiveMixin",
120781
120506
  "module": "core/mixins/disabled-mixin.js"
120782
120507
  }
120783
120508
  },
120784
120509
  {
120510
+ "kind": "field",
120785
120511
  "name": "disabled",
120512
+ "privacy": "public",
120786
120513
  "description": "Whether the component is disabled.",
120787
120514
  "default": "false",
120788
120515
  "type": {
120789
120516
  "text": "boolean"
120790
120517
  },
120791
- "fieldName": "disabled",
120518
+ "attribute": "disabled",
120519
+ "reflects": true,
120792
120520
  "inheritedFrom": {
120793
120521
  "name": "SbbDisabledMixin",
120794
120522
  "module": "core/mixins/disabled-mixin.js"
120795
120523
  }
120796
120524
  },
120797
120525
  {
120526
+ "kind": "field",
120527
+ "name": "#disabled",
120528
+ "privacy": "private",
120529
+ "type": {
120530
+ "text": "boolean"
120531
+ },
120532
+ "default": "false",
120533
+ "inheritedFrom": {
120534
+ "name": "SbbDisabledMixin",
120535
+ "module": "core/mixins/disabled-mixin.js"
120536
+ }
120537
+ },
120538
+ {
120539
+ "kind": "method",
120540
+ "name": "isDisabledExternally",
120541
+ "privacy": "protected",
120542
+ "return": {
120543
+ "type": {
120544
+ "text": "boolean"
120545
+ }
120546
+ },
120547
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120548
+ "inheritedFrom": {
120549
+ "name": "SbbDisabledMixin",
120550
+ "module": "core/mixins/disabled-mixin.js"
120551
+ }
120552
+ },
120553
+ {
120554
+ "kind": "field",
120555
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
120556
+ "type": {
120557
+ "text": "array"
120558
+ },
120559
+ "privacy": "private",
120560
+ "readonly": true,
120561
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120562
+ "inheritedFrom": {
120563
+ "name": "SbbButtonBaseElement",
120564
+ "module": "core/base-elements/button-base-element.js"
120565
+ }
120566
+ },
120567
+ {
120568
+ "kind": "field",
120798
120569
  "name": "value",
120799
120570
  "type": {
120800
120571
  "text": "string"
120801
120572
  },
120802
- "default": "''",
120803
- "description": "Value of the form element.",
120804
- "fieldName": "value",
120573
+ "privacy": "public",
120805
120574
  "inheritedFrom": {
120806
120575
  "name": "SbbButtonBaseElement",
120807
120576
  "module": "core/base-elements/button-base-element.js"
120808
- }
120577
+ },
120578
+ "default": "''",
120579
+ "description": "Value of the form element.",
120580
+ "attribute": "value"
120809
120581
  },
120810
120582
  {
120583
+ "kind": "field",
120811
120584
  "name": "type",
120585
+ "privacy": "public",
120812
120586
  "description": "The type attribute to use for the button.",
120813
120587
  "default": "'button'",
120814
120588
  "type": {
120815
120589
  "text": "SbbButtonType"
120816
120590
  },
120817
- "fieldName": "type",
120591
+ "attribute": "type",
120818
120592
  "inheritedFrom": {
120819
120593
  "name": "SbbButtonBaseElement",
120820
120594
  "module": "core/base-elements/button-base-element.js"
120821
120595
  }
120822
120596
  },
120823
120597
  {
120598
+ "kind": "field",
120824
120599
  "name": "form",
120825
- "description": "The `<form>` element to associate the button with.",
120826
120600
  "type": {
120827
120601
  "text": "HTMLFormElement | null"
120828
120602
  },
120829
- "fieldName": "form",
120603
+ "privacy": "public",
120604
+ "description": "The `<form>` element to associate the button with.",
120605
+ "inheritedFrom": {
120606
+ "name": "SbbButtonBaseElement",
120607
+ "module": "core/base-elements/button-base-element.js"
120608
+ },
120609
+ "attribute": "form"
120610
+ },
120611
+ {
120612
+ "kind": "field",
120613
+ "name": "_formId",
120614
+ "type": {
120615
+ "text": "string"
120616
+ },
120617
+ "privacy": "private",
120618
+ "default": "''",
120619
+ "inheritedFrom": {
120620
+ "name": "SbbButtonBaseElement",
120621
+ "module": "core/base-elements/button-base-element.js"
120622
+ }
120623
+ },
120624
+ {
120625
+ "kind": "field",
120626
+ "name": "_handleButtonClick",
120627
+ "privacy": "private",
120628
+ "inheritedFrom": {
120629
+ "name": "SbbButtonBaseElement",
120630
+ "module": "core/base-elements/button-base-element.js"
120631
+ }
120632
+ },
120633
+ {
120634
+ "kind": "method",
120635
+ "name": "_requestSubmit",
120636
+ "privacy": "private",
120637
+ "return": {
120638
+ "type": {
120639
+ "text": "void"
120640
+ }
120641
+ },
120642
+ "parameters": [
120643
+ {
120644
+ "name": "form",
120645
+ "type": {
120646
+ "text": "HTMLFormElement"
120647
+ }
120648
+ }
120649
+ ],
120650
+ "inheritedFrom": {
120651
+ "name": "SbbButtonBaseElement",
120652
+ "module": "core/base-elements/button-base-element.js"
120653
+ }
120654
+ },
120655
+ {
120656
+ "kind": "field",
120657
+ "name": "_formKeyDown",
120658
+ "privacy": "private",
120830
120659
  "inheritedFrom": {
120831
120660
  "name": "SbbButtonBaseElement",
120832
120661
  "module": "core/base-elements/button-base-element.js"
120833
120662
  }
120834
120663
  },
120835
120664
  {
120665
+ "kind": "field",
120666
+ "name": "formAssociated",
120667
+ "type": {
120668
+ "text": "boolean"
120669
+ },
120670
+ "privacy": "public",
120671
+ "static": true,
120672
+ "default": "true",
120673
+ "inheritedFrom": {
120674
+ "name": "SbbFormAssociatedMixin",
120675
+ "module": "core/mixins/form-associated-mixin.js"
120676
+ }
120677
+ },
120678
+ {
120679
+ "kind": "field",
120836
120680
  "name": "name",
120681
+ "privacy": "public",
120837
120682
  "description": "Name of the form element. Will be read from name attribute.",
120838
120683
  "type": {
120839
120684
  "text": "string"
120840
120685
  },
120841
- "fieldName": "name",
120686
+ "attribute": "name",
120842
120687
  "inheritedFrom": {
120843
120688
  "name": "SbbFormAssociatedMixin",
120844
120689
  "module": "core/mixins/form-associated-mixin.js"
120845
120690
  }
120846
- }
120847
- ]
120848
- }
120849
- ],
120850
- "exports": [
120851
- {
120852
- "kind": "js",
120853
- "name": "SbbBlockLinkButtonElement",
120854
- "declaration": {
120855
- "name": "SbbBlockLinkButtonElement",
120856
- "module": "link/block-link-button/block-link-button.component.js"
120857
- }
120858
- }
120859
- ]
120860
- },
120861
- {
120862
- "kind": "javascript-module",
120863
- "path": "link/block-link-static/block-link-static.component.js",
120864
- "declarations": [
120865
- {
120866
- "kind": "class",
120867
- "description": "It displays a static link enhanced with the SBB Design.",
120868
- "name": "SbbBlockLinkStaticElement",
120869
- "slots": [
120870
- {
120871
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
120872
- "name": ""
120873
120691
  },
120874
120692
  {
120875
- "description": "Slot used to display the icon, if one is set.",
120876
- "name": "icon"
120877
- }
120878
- ],
120879
- "members": [
120693
+ "kind": "field",
120694
+ "name": "validity",
120695
+ "type": {
120696
+ "text": "ValidityState"
120697
+ },
120698
+ "privacy": "public",
120699
+ "description": "Returns the ValidityState object for this element.",
120700
+ "readonly": true,
120701
+ "inheritedFrom": {
120702
+ "name": "SbbFormAssociatedMixin",
120703
+ "module": "core/mixins/form-associated-mixin.js"
120704
+ }
120705
+ },
120880
120706
  {
120881
120707
  "kind": "field",
120882
- "name": "elementName",
120708
+ "name": "validationMessage",
120883
120709
  "type": {
120884
120710
  "text": "string"
120885
120711
  },
120886
120712
  "privacy": "public",
120887
- "static": true,
120713
+ "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
120888
120714
  "readonly": true,
120889
120715
  "inheritedFrom": {
120890
- "name": "SbbElement",
120891
- "module": "core/base-elements/element.js"
120716
+ "name": "SbbFormAssociatedMixin",
120717
+ "module": "core/mixins/form-associated-mixin.js"
120718
+ }
120719
+ },
120720
+ {
120721
+ "kind": "field",
120722
+ "name": "willValidate",
120723
+ "type": {
120724
+ "text": "boolean"
120725
+ },
120726
+ "privacy": "public",
120727
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120728
+ "readonly": true,
120729
+ "inheritedFrom": {
120730
+ "name": "SbbFormAssociatedMixin",
120731
+ "module": "core/mixins/form-associated-mixin.js"
120732
+ }
120733
+ },
120734
+ {
120735
+ "kind": "field",
120736
+ "name": "_validityStates",
120737
+ "privacy": "private",
120738
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120739
+ "inheritedFrom": {
120740
+ "name": "SbbFormAssociatedMixin",
120741
+ "module": "core/mixins/form-associated-mixin.js"
120742
+ }
120743
+ },
120744
+ {
120745
+ "kind": "field",
120746
+ "name": "formDisabled",
120747
+ "type": {
120748
+ "text": "boolean"
120749
+ },
120750
+ "privacy": "protected",
120751
+ "default": "false",
120752
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120753
+ "inheritedFrom": {
120754
+ "name": "SbbFormAssociatedMixin",
120755
+ "module": "core/mixins/form-associated-mixin.js"
120756
+ }
120757
+ },
120758
+ {
120759
+ "kind": "method",
120760
+ "name": "checkValidity",
120761
+ "privacy": "public",
120762
+ "return": {
120763
+ "type": {
120764
+ "text": "boolean"
120765
+ }
120892
120766
  },
120893
- "default": "'sbb-block-link-static'"
120767
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120768
+ "inheritedFrom": {
120769
+ "name": "SbbFormAssociatedMixin",
120770
+ "module": "core/mixins/form-associated-mixin.js"
120771
+ }
120894
120772
  },
120895
120773
  {
120896
- "kind": "field",
120897
- "name": "styles",
120898
- "type": {
120899
- "text": "CSSResultGroup"
120900
- },
120774
+ "kind": "method",
120775
+ "name": "reportValidity",
120901
120776
  "privacy": "public",
120902
- "static": true,
120903
- "default": "[super.styles, unsafeCSS(blockStyle)]",
120777
+ "return": {
120778
+ "type": {
120779
+ "text": "boolean"
120780
+ }
120781
+ },
120782
+ "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
120904
120783
  "inheritedFrom": {
120905
- "name": "SbbLinkCommonElementMixin",
120906
- "module": "link/common/link-common.js"
120784
+ "name": "SbbFormAssociatedMixin",
120785
+ "module": "core/mixins/form-associated-mixin.js"
120907
120786
  }
120908
120787
  },
120909
120788
  {
120910
- "kind": "field",
120911
- "name": "size",
120912
- "type": {
120913
- "text": "SbbLinkSize"
120914
- },
120789
+ "kind": "method",
120790
+ "name": "setCustomValidity",
120915
120791
  "privacy": "public",
120916
- "description": "Size variant, either xs, s or m.",
120917
- "default": "'s' / 'xs' (lean)",
120918
- "attribute": "size",
120919
- "reflects": true,
120792
+ "return": {
120793
+ "type": {
120794
+ "text": "void"
120795
+ }
120796
+ },
120797
+ "parameters": [
120798
+ {
120799
+ "name": "message",
120800
+ "type": {
120801
+ "text": "string"
120802
+ }
120803
+ }
120804
+ ],
120805
+ "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
120920
120806
  "inheritedFrom": {
120921
- "name": "SbbBlockLinkCommonElementMixin",
120922
- "module": "link/common/block-link-common.js"
120807
+ "name": "SbbFormAssociatedMixin",
120808
+ "module": "core/mixins/form-associated-mixin.js"
120923
120809
  }
120924
120810
  },
120925
120811
  {
120926
- "kind": "field",
120927
- "name": "iconPlacement",
120928
- "type": {
120929
- "text": "SbbIconPlacement"
120812
+ "kind": "method",
120813
+ "name": "_hasDisabledAncestor",
120814
+ "privacy": "private",
120815
+ "return": {
120816
+ "type": {
120817
+ "text": "boolean"
120818
+ }
120930
120819
  },
120931
- "privacy": "public",
120932
- "default": "'start'",
120933
- "description": "Moves the icon to the end of the component if set to true.",
120934
- "attribute": "icon-placement",
120935
- "reflects": true,
120936
120820
  "inheritedFrom": {
120937
- "name": "SbbBlockLinkCommonElementMixin",
120938
- "module": "link/common/block-link-common.js"
120821
+ "name": "SbbFormAssociatedMixin",
120822
+ "module": "core/mixins/form-associated-mixin.js"
120939
120823
  }
120940
120824
  },
120941
120825
  {
120942
120826
  "kind": "method",
120943
- "name": "renderTemplate",
120827
+ "name": "updateFormValue",
120944
120828
  "privacy": "protected",
120945
120829
  "return": {
120946
120830
  "type": {
120947
- "text": "TemplateResult"
120831
+ "text": "void"
120948
120832
  }
120949
120833
  },
120950
- "description": "Override this method to render the component template.",
120834
+ "description": "Should be called when form value is changed.\nAdapts and sets the formValue in the supported format (string | FormData | File | null)\nhttps://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue",
120951
120835
  "inheritedFrom": {
120952
- "name": "SbbActionBaseElement",
120953
- "module": "core/base-elements/action-base-element.js"
120836
+ "name": "SbbFormAssociatedMixin",
120837
+ "module": "core/mixins/form-associated-mixin.js"
120954
120838
  }
120955
120839
  },
120956
120840
  {
120957
- "kind": "field",
120958
- "name": "elementDependencies",
120959
- "type": {
120960
- "text": "SbbElementType[]"
120841
+ "kind": "method",
120842
+ "name": "formState",
120843
+ "privacy": "protected",
120844
+ "return": {
120845
+ "type": {
120846
+ "text": "FormRestoreState"
120847
+ }
120961
120848
  },
120962
- "privacy": "public",
120963
- "static": true,
120964
120849
  "inheritedFrom": {
120965
- "name": "SbbElement",
120966
- "module": "core/base-elements/element.js"
120967
- },
120968
- "default": "[SbbIconElement]"
120850
+ "name": "SbbFormAssociatedMixin",
120851
+ "module": "core/mixins/form-associated-mixin.js"
120852
+ }
120969
120853
  },
120970
120854
  {
120971
- "kind": "field",
120972
- "name": "iconName",
120973
- "type": {
120974
- "text": "string"
120855
+ "kind": "method",
120856
+ "name": "setValidityFlag",
120857
+ "privacy": "protected",
120858
+ "return": {
120859
+ "type": {
120860
+ "text": "void"
120861
+ }
120975
120862
  },
120976
- "privacy": "public",
120977
- "default": "''",
120978
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
120979
- "attribute": "icon-name",
120863
+ "parameters": [
120864
+ {
120865
+ "name": "flag",
120866
+ "type": {
120867
+ "text": "T"
120868
+ }
120869
+ },
120870
+ {
120871
+ "name": "message",
120872
+ "type": {
120873
+ "text": "string"
120874
+ }
120875
+ },
120876
+ {
120877
+ "name": "flagValue",
120878
+ "optional": true,
120879
+ "type": {
120880
+ "text": "ValidityStateFlags[T]"
120881
+ }
120882
+ }
120883
+ ],
120884
+ "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
120980
120885
  "inheritedFrom": {
120981
- "name": "SbbIconNameMixin",
120982
- "module": "icon/icon-name-mixin.js"
120886
+ "name": "SbbFormAssociatedMixin",
120887
+ "module": "core/mixins/form-associated-mixin.js"
120983
120888
  }
120984
120889
  },
120985
120890
  {
120986
120891
  "kind": "method",
120987
- "name": "renderIconSlot",
120892
+ "name": "removeValidityFlag",
120988
120893
  "privacy": "protected",
120989
120894
  "return": {
120990
120895
  "type": {
120991
- "text": "TemplateResult"
120896
+ "text": "void"
120992
120897
  }
120993
120898
  },
120994
120899
  "parameters": [
120995
120900
  {
120996
- "name": "classname",
120997
- "optional": true,
120901
+ "name": "flag",
120998
120902
  "type": {
120999
- "text": "string"
120903
+ "text": "T"
121000
120904
  }
121001
120905
  }
121002
120906
  ],
120907
+ "description": "Removes the validity state flag entry and updates validity state.",
121003
120908
  "inheritedFrom": {
121004
- "name": "SbbIconNameMixin",
121005
- "module": "icon/icon-name-mixin.js"
120909
+ "name": "SbbFormAssociatedMixin",
120910
+ "module": "core/mixins/form-associated-mixin.js"
121006
120911
  }
121007
120912
  },
121008
120913
  {
121009
120914
  "kind": "method",
121010
- "name": "renderIconName",
120915
+ "name": "validate",
121011
120916
  "privacy": "protected",
121012
120917
  "return": {
121013
120918
  "type": {
121014
- "text": "string"
120919
+ "text": "void"
121015
120920
  }
121016
120921
  },
120922
+ "description": "To be called whenever the current element needs to be validated.",
121017
120923
  "inheritedFrom": {
121018
- "name": "SbbIconNameMixin",
121019
- "module": "icon/icon-name-mixin.js"
120924
+ "name": "SbbFormAssociatedMixin",
120925
+ "module": "core/mixins/form-associated-mixin.js"
121020
120926
  }
121021
120927
  },
121022
120928
  {
121023
120929
  "kind": "method",
121024
- "name": "_renderIconName",
120930
+ "name": "shouldValidate",
120931
+ "privacy": "protected",
120932
+ "return": {
120933
+ "type": {
120934
+ "text": "boolean"
120935
+ }
120936
+ },
120937
+ "parameters": [
120938
+ {
120939
+ "name": "name",
120940
+ "type": {
120941
+ "text": "PropertyKey | undefined"
120942
+ }
120943
+ }
120944
+ ],
120945
+ "description": "Whether validation should be run on a property change with the given name.",
120946
+ "inheritedFrom": {
120947
+ "name": "SbbFormAssociatedMixin",
120948
+ "module": "core/mixins/form-associated-mixin.js"
120949
+ }
120950
+ },
120951
+ {
120952
+ "kind": "method",
120953
+ "name": "_setInternalValidity",
121025
120954
  "privacy": "private",
121026
120955
  "return": {
121027
120956
  "type": {
121028
- "text": "string"
120957
+ "text": "void"
121029
120958
  }
121030
120959
  },
121031
120960
  "inheritedFrom": {
121032
- "name": "SbbIconNameMixin",
121033
- "module": "icon/icon-name-mixin.js"
120961
+ "name": "SbbFormAssociatedMixin",
120962
+ "module": "core/mixins/form-associated-mixin.js"
121034
120963
  }
121035
120964
  },
121036
120965
  {
121037
120966
  "kind": "field",
121038
- "name": "disabled",
121039
- "privacy": "public",
121040
- "description": "Whether the component is disabled.",
121041
- "default": "false",
120967
+ "name": "role",
121042
120968
  "type": {
121043
- "text": "boolean"
120969
+ "text": "ElementInternals['role']"
121044
120970
  },
121045
- "attribute": "disabled",
121046
- "reflects": true,
120971
+ "privacy": "public",
120972
+ "static": true,
121047
120973
  "inheritedFrom": {
121048
- "name": "SbbDisabledMixin",
121049
- "module": "core/mixins/disabled-mixin.js"
120974
+ "name": "SbbElement",
120975
+ "module": "core/base-elements/element.js"
120976
+ },
120977
+ "readonly": true,
120978
+ "default": "'button'"
120979
+ },
120980
+ {
120981
+ "kind": "field",
120982
+ "name": "_preventScrollOnSpaceKeydown",
120983
+ "privacy": "private",
120984
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120985
+ "parameters": [
120986
+ {
120987
+ "description": "The origin event.",
120988
+ "name": "event"
120989
+ }
120990
+ ],
120991
+ "inheritedFrom": {
120992
+ "name": "SbbButtonLikeBaseElement",
120993
+ "module": "core/base-elements/button-base-element.js"
121050
120994
  }
121051
120995
  },
121052
120996
  {
121053
120997
  "kind": "field",
121054
- "name": "#disabled",
120998
+ "name": "_removeActiveMarker",
121055
120999
  "privacy": "private",
121056
- "type": {
121057
- "text": "boolean"
121058
- },
121059
- "default": "false",
121060
121000
  "inheritedFrom": {
121061
- "name": "SbbDisabledMixin",
121062
- "module": "core/mixins/disabled-mixin.js"
121001
+ "name": "SbbButtonLikeBaseElement",
121002
+ "module": "core/base-elements/button-base-element.js"
121063
121003
  }
121064
121004
  },
121065
121005
  {
121066
- "kind": "method",
121067
- "name": "isDisabledExternally",
121068
- "privacy": "protected",
121069
- "return": {
121070
- "type": {
121071
- "text": "boolean"
121006
+ "kind": "field",
121007
+ "name": "_dispatchClickEventOnSpaceKeyup",
121008
+ "privacy": "private",
121009
+ "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
121010
+ "parameters": [
121011
+ {
121012
+ "description": "The origin event.",
121013
+ "name": "event"
121072
121014
  }
121073
- },
121074
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121015
+ ],
121075
121016
  "inheritedFrom": {
121076
- "name": "SbbDisabledMixin",
121077
- "module": "core/mixins/disabled-mixin.js"
121017
+ "name": "SbbButtonLikeBaseElement",
121018
+ "module": "core/base-elements/button-base-element.js"
121019
+ }
121020
+ },
121021
+ {
121022
+ "kind": "field",
121023
+ "name": "_dispatchClickEvent",
121024
+ "privacy": "private",
121025
+ "inheritedFrom": {
121026
+ "name": "SbbButtonLikeBaseElement",
121027
+ "module": "core/base-elements/button-base-element.js"
121078
121028
  }
121079
121029
  },
121080
121030
  {
@@ -121131,19 +121081,6 @@
121131
121081
  "module": "core/base-elements/element.js"
121132
121082
  }
121133
121083
  },
121134
- {
121135
- "kind": "field",
121136
- "name": "role",
121137
- "type": {
121138
- "text": "ElementInternals['role'] | undefined"
121139
- },
121140
- "privacy": "public",
121141
- "static": true,
121142
- "inheritedFrom": {
121143
- "name": "SbbElement",
121144
- "module": "core/base-elements/element.js"
121145
- }
121146
- },
121147
121084
  {
121148
121085
  "kind": "field",
121149
121086
  "name": "_controllers",
@@ -121370,15 +121307,15 @@
121370
121307
  "module": "link/common/block-link-common.js"
121371
121308
  },
121372
121309
  {
121373
- "name": "SbbDisabledMixin",
121310
+ "name": "SbbDisabledTabIndexActionMixin",
121374
121311
  "module": "core.js"
121375
121312
  }
121376
121313
  ],
121377
121314
  "superclass": {
121378
- "name": "SbbActionBaseElement",
121315
+ "name": "SbbButtonBaseElement",
121379
121316
  "module": "core.js"
121380
121317
  },
121381
- "tagName": "sbb-block-link-static",
121318
+ "tagName": "sbb-block-link-button",
121382
121319
  "customElement": true,
121383
121320
  "attributes": [
121384
121321
  {
@@ -121420,6 +121357,19 @@
121420
121357
  "module": "icon/icon-name-mixin.js"
121421
121358
  }
121422
121359
  },
121360
+ {
121361
+ "name": "disabled-interactive",
121362
+ "type": {
121363
+ "text": "boolean"
121364
+ },
121365
+ "default": "false",
121366
+ "description": "Whether the button should be aria-disabled but stay interactive.",
121367
+ "fieldName": "disabledInteractive",
121368
+ "inheritedFrom": {
121369
+ "name": "SbbDisabledInteractiveMixin",
121370
+ "module": "core/mixins/disabled-mixin.js"
121371
+ }
121372
+ },
121423
121373
  {
121424
121374
  "name": "disabled",
121425
121375
  "description": "Whether the component is disabled.",
@@ -121432,6 +121382,56 @@
121432
121382
  "name": "SbbDisabledMixin",
121433
121383
  "module": "core/mixins/disabled-mixin.js"
121434
121384
  }
121385
+ },
121386
+ {
121387
+ "name": "value",
121388
+ "type": {
121389
+ "text": "string"
121390
+ },
121391
+ "default": "''",
121392
+ "description": "Value of the form element.",
121393
+ "fieldName": "value",
121394
+ "inheritedFrom": {
121395
+ "name": "SbbButtonBaseElement",
121396
+ "module": "core/base-elements/button-base-element.js"
121397
+ }
121398
+ },
121399
+ {
121400
+ "name": "type",
121401
+ "description": "The type attribute to use for the button.",
121402
+ "default": "'button'",
121403
+ "type": {
121404
+ "text": "SbbButtonType"
121405
+ },
121406
+ "fieldName": "type",
121407
+ "inheritedFrom": {
121408
+ "name": "SbbButtonBaseElement",
121409
+ "module": "core/base-elements/button-base-element.js"
121410
+ }
121411
+ },
121412
+ {
121413
+ "name": "form",
121414
+ "description": "The `<form>` element to associate the button with.",
121415
+ "type": {
121416
+ "text": "HTMLFormElement | null"
121417
+ },
121418
+ "fieldName": "form",
121419
+ "inheritedFrom": {
121420
+ "name": "SbbButtonBaseElement",
121421
+ "module": "core/base-elements/button-base-element.js"
121422
+ }
121423
+ },
121424
+ {
121425
+ "name": "name",
121426
+ "description": "Name of the form element. Will be read from name attribute.",
121427
+ "type": {
121428
+ "text": "string"
121429
+ },
121430
+ "fieldName": "name",
121431
+ "inheritedFrom": {
121432
+ "name": "SbbFormAssociatedMixin",
121433
+ "module": "core/mixins/form-associated-mixin.js"
121434
+ }
121435
121435
  }
121436
121436
  ]
121437
121437
  }
@@ -121439,10 +121439,10 @@
121439
121439
  "exports": [
121440
121440
  {
121441
121441
  "kind": "js",
121442
- "name": "SbbBlockLinkStaticElement",
121442
+ "name": "SbbBlockLinkButtonElement",
121443
121443
  "declaration": {
121444
- "name": "SbbBlockLinkStaticElement",
121445
- "module": "link/block-link-static/block-link-static.component.js"
121444
+ "name": "SbbBlockLinkButtonElement",
121445
+ "module": "link/block-link-button/block-link-button.component.js"
121446
121446
  }
121447
121447
  }
121448
121448
  ]
@@ -160168,15 +160168,22 @@
160168
160168
  },
160169
160169
  {
160170
160170
  "kind": "javascript-module",
160171
- "path": "train/train-wagon/train-wagon.component.js",
160171
+ "path": "train/train-formation/train-formation.component.js",
160172
160172
  "declarations": [
160173
160173
  {
160174
160174
  "kind": "class",
160175
- "description": "It displays a train compartment within a `sbb-train` component.",
160176
- "name": "SbbTrainWagonElement",
160175
+ "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
160176
+ "name": "SbbTrainFormationElement",
160177
+ "cssProperties": [
160178
+ {
160179
+ "description": "Defines the inline padding inside the horizontal scrolling area.",
160180
+ "name": "--sbb-train-formation-padding-inline",
160181
+ "default": "0px"
160182
+ }
160183
+ ],
160177
160184
  "slots": [
160178
160185
  {
160179
- "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
160186
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
160180
160187
  "name": ""
160181
160188
  }
160182
160189
  ],
@@ -160190,49 +160197,12 @@
160190
160197
  "privacy": "public",
160191
160198
  "static": true,
160192
160199
  "readonly": true,
160193
- "default": "'sbb-train-wagon'",
160194
- "inheritedFrom": {
160195
- "name": "SbbElement",
160196
- "module": "core/base-elements/element.js"
160197
- }
160198
- },
160199
- {
160200
- "kind": "field",
160201
- "name": "elementDependencies",
160202
- "type": {
160203
- "text": "SbbElementType[]"
160204
- },
160205
- "privacy": "public",
160206
- "static": true,
160207
- "default": "[ SbbIconElement, SbbTimetableOccupancyIconElement, ]",
160200
+ "default": "'sbb-train-formation'",
160208
160201
  "inheritedFrom": {
160209
160202
  "name": "SbbElement",
160210
160203
  "module": "core/base-elements/element.js"
160211
160204
  }
160212
160205
  },
160213
- {
160214
- "kind": "field",
160215
- "name": "events",
160216
- "privacy": "public",
160217
- "static": true,
160218
- "readonly": true,
160219
- "default": "{ sectorchange: 'sectorchange', }",
160220
- "type": {
160221
- "text": "{\n sectorchange: 'sectorchange',\n }"
160222
- }
160223
- },
160224
- {
160225
- "kind": "field",
160226
- "name": "type",
160227
- "type": {
160228
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
160229
- },
160230
- "privacy": "public",
160231
- "default": "'wagon'",
160232
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
160233
- "attribute": "type",
160234
- "reflects": true
160235
- },
160236
160206
  {
160237
160207
  "kind": "field",
160238
160208
  "name": "listChildLocalNames",
@@ -160242,7 +160212,7 @@
160242
160212
  "privacy": "protected",
160243
160213
  "readonly": true,
160244
160214
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
160245
- "default": "['sbb-icon']",
160215
+ "default": "['sbb-train']",
160246
160216
  "inheritedFrom": {
160247
160217
  "name": "SbbNamedSlotListMixin",
160248
160218
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -160250,71 +160220,24 @@
160250
160220
  },
160251
160221
  {
160252
160222
  "kind": "field",
160253
- "name": "occupancy",
160254
- "type": {
160255
- "text": "SbbOccupancy | null"
160256
- },
160257
- "privacy": "public",
160258
- "default": "null",
160259
- "description": "Occupancy of a wagon.",
160260
- "attribute": "occupancy"
160261
- },
160262
- {
160263
- "kind": "field",
160264
- "name": "sector",
160265
- "type": {
160266
- "text": "string"
160267
- },
160268
- "privacy": "public",
160269
- "default": "''",
160270
- "description": "Sector in which the wagon stops.",
160271
- "attribute": "sector",
160272
- "reflects": true
160273
- },
160274
- {
160275
- "kind": "field",
160276
- "name": "blockedPassage",
160277
- "type": {
160278
- "text": "'previous' | 'next' | 'both' | 'none'"
160279
- },
160280
- "privacy": "public",
160281
- "default": "'none'",
160282
- "description": "Accessibility text for blocked passages of the wagon.",
160283
- "attribute": "blocked-passage"
160284
- },
160285
- {
160286
- "kind": "field",
160287
- "name": "wagonClass",
160288
- "type": {
160289
- "text": "'1' | '2' | null"
160290
- },
160291
- "privacy": "public",
160292
- "default": "null",
160293
- "description": "Class label",
160294
- "attribute": "wagon-class"
160295
- },
160296
- {
160297
- "kind": "field",
160298
- "name": "label",
160223
+ "name": "view",
160299
160224
  "type": {
160300
- "text": "string"
160225
+ "text": "'side' | 'top'"
160301
160226
  },
160302
160227
  "privacy": "public",
160303
- "default": "''",
160304
- "description": "Wagon number",
160305
- "attribute": "label",
160228
+ "default": "'side'",
160229
+ "description": "Whether the view of the wagons is from side or top perspective.",
160230
+ "attribute": "view",
160306
160231
  "reflects": true
160307
160232
  },
160308
160233
  {
160309
160234
  "kind": "field",
160310
- "name": "additionalAccessibilityText",
160235
+ "name": "_sectors",
160311
160236
  "type": {
160312
- "text": "string"
160237
+ "text": "AggregatedSector[]"
160313
160238
  },
160314
- "privacy": "public",
160315
- "default": "''",
160316
- "description": "Additional accessibility text which will be appended to the end.",
160317
- "attribute": "additional-accessibility-text"
160239
+ "privacy": "private",
160240
+ "default": "[]"
160318
160241
  },
160319
160242
  {
160320
160243
  "kind": "field",
@@ -160324,22 +160247,35 @@
160324
160247
  },
160325
160248
  {
160326
160249
  "kind": "method",
160327
- "name": "_sectorChanged",
160250
+ "name": "_readSectors",
160328
160251
  "privacy": "private",
160329
160252
  "return": {
160330
160253
  "type": {
160331
160254
  "text": "void"
160332
160255
  }
160333
- }
160256
+ },
160257
+ "parameters": [
160258
+ {
160259
+ "name": "event",
160260
+ "optional": true,
160261
+ "type": {
160262
+ "text": "Event"
160263
+ }
160264
+ }
160265
+ ]
160334
160266
  },
160335
160267
  {
160336
- "kind": "method",
160337
- "name": "_typeLabel",
160338
- "privacy": "private",
160339
- "return": {
160340
- "type": {
160341
- "text": "string"
160342
- }
160268
+ "kind": "field",
160269
+ "name": "elementDependencies",
160270
+ "type": {
160271
+ "text": "SbbElementType[]"
160272
+ },
160273
+ "privacy": "public",
160274
+ "static": true,
160275
+ "default": "[SbbScreenReaderOnlyElement]",
160276
+ "inheritedFrom": {
160277
+ "name": "SbbElement",
160278
+ "module": "core/base-elements/element.js"
160343
160279
  }
160344
160280
  },
160345
160281
  {
@@ -160683,67 +160619,13 @@
160683
160619
  ],
160684
160620
  "attributes": [
160685
160621
  {
160686
- "name": "type",
160687
- "type": {
160688
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
160689
- },
160690
- "default": "'wagon'",
160691
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
160692
- "fieldName": "type"
160693
- },
160694
- {
160695
- "name": "occupancy",
160696
- "type": {
160697
- "text": "SbbOccupancy | null"
160698
- },
160699
- "default": "null",
160700
- "description": "Occupancy of a wagon.",
160701
- "fieldName": "occupancy"
160702
- },
160703
- {
160704
- "name": "sector",
160705
- "type": {
160706
- "text": "string"
160707
- },
160708
- "default": "''",
160709
- "description": "Sector in which the wagon stops.",
160710
- "fieldName": "sector"
160711
- },
160712
- {
160713
- "name": "blocked-passage",
160714
- "type": {
160715
- "text": "'previous' | 'next' | 'both' | 'none'"
160716
- },
160717
- "default": "'none'",
160718
- "description": "Accessibility text for blocked passages of the wagon.",
160719
- "fieldName": "blockedPassage"
160720
- },
160721
- {
160722
- "name": "wagon-class",
160723
- "type": {
160724
- "text": "'1' | '2' | null"
160725
- },
160726
- "default": "null",
160727
- "description": "Class label",
160728
- "fieldName": "wagonClass"
160729
- },
160730
- {
160731
- "name": "label",
160732
- "type": {
160733
- "text": "string"
160734
- },
160735
- "default": "''",
160736
- "description": "Wagon number",
160737
- "fieldName": "label"
160738
- },
160739
- {
160740
- "name": "additional-accessibility-text",
160622
+ "name": "view",
160741
160623
  "type": {
160742
- "text": "string"
160624
+ "text": "'side' | 'top'"
160743
160625
  },
160744
- "default": "''",
160745
- "description": "Additional accessibility text which will be appended to the end.",
160746
- "fieldName": "additionalAccessibilityText"
160626
+ "default": "'side'",
160627
+ "description": "Whether the view of the wagons is from side or top perspective.",
160628
+ "fieldName": "view"
160747
160629
  }
160748
160630
  ],
160749
160631
  "mixins": [
@@ -160756,39 +160638,32 @@
160756
160638
  "name": "SbbElement",
160757
160639
  "module": "core.js"
160758
160640
  },
160759
- "tagName": "sbb-train-wagon",
160641
+ "tagName": "sbb-train-formation",
160760
160642
  "customElement": true
160761
160643
  }
160762
160644
  ],
160763
160645
  "exports": [
160764
160646
  {
160765
160647
  "kind": "js",
160766
- "name": "SbbTrainWagonElement",
160648
+ "name": "SbbTrainFormationElement",
160767
160649
  "declaration": {
160768
- "name": "SbbTrainWagonElement",
160769
- "module": "train/train-wagon/train-wagon.component.js"
160650
+ "name": "SbbTrainFormationElement",
160651
+ "module": "train/train-formation/train-formation.component.js"
160770
160652
  }
160771
160653
  }
160772
160654
  ]
160773
160655
  },
160774
160656
  {
160775
160657
  "kind": "javascript-module",
160776
- "path": "train/train-formation/train-formation.component.js",
160658
+ "path": "train/train-wagon/train-wagon.component.js",
160777
160659
  "declarations": [
160778
160660
  {
160779
160661
  "kind": "class",
160780
- "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
160781
- "name": "SbbTrainFormationElement",
160782
- "cssProperties": [
160783
- {
160784
- "description": "Defines the inline padding inside the horizontal scrolling area.",
160785
- "name": "--sbb-train-formation-padding-inline",
160786
- "default": "0px"
160787
- }
160788
- ],
160662
+ "description": "It displays a train compartment within a `sbb-train` component.",
160663
+ "name": "SbbTrainWagonElement",
160789
160664
  "slots": [
160790
160665
  {
160791
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
160666
+ "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
160792
160667
  "name": ""
160793
160668
  }
160794
160669
  ],
@@ -160802,12 +160677,49 @@
160802
160677
  "privacy": "public",
160803
160678
  "static": true,
160804
160679
  "readonly": true,
160805
- "default": "'sbb-train-formation'",
160680
+ "default": "'sbb-train-wagon'",
160806
160681
  "inheritedFrom": {
160807
160682
  "name": "SbbElement",
160808
160683
  "module": "core/base-elements/element.js"
160809
160684
  }
160810
160685
  },
160686
+ {
160687
+ "kind": "field",
160688
+ "name": "elementDependencies",
160689
+ "type": {
160690
+ "text": "SbbElementType[]"
160691
+ },
160692
+ "privacy": "public",
160693
+ "static": true,
160694
+ "default": "[ SbbIconElement, SbbTimetableOccupancyIconElement, ]",
160695
+ "inheritedFrom": {
160696
+ "name": "SbbElement",
160697
+ "module": "core/base-elements/element.js"
160698
+ }
160699
+ },
160700
+ {
160701
+ "kind": "field",
160702
+ "name": "events",
160703
+ "privacy": "public",
160704
+ "static": true,
160705
+ "readonly": true,
160706
+ "default": "{ sectorchange: 'sectorchange', }",
160707
+ "type": {
160708
+ "text": "{\n sectorchange: 'sectorchange',\n }"
160709
+ }
160710
+ },
160711
+ {
160712
+ "kind": "field",
160713
+ "name": "type",
160714
+ "type": {
160715
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
160716
+ },
160717
+ "privacy": "public",
160718
+ "default": "'wagon'",
160719
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
160720
+ "attribute": "type",
160721
+ "reflects": true
160722
+ },
160811
160723
  {
160812
160724
  "kind": "field",
160813
160725
  "name": "listChildLocalNames",
@@ -160817,7 +160729,7 @@
160817
160729
  "privacy": "protected",
160818
160730
  "readonly": true,
160819
160731
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
160820
- "default": "['sbb-train']",
160732
+ "default": "['sbb-icon']",
160821
160733
  "inheritedFrom": {
160822
160734
  "name": "SbbNamedSlotListMixin",
160823
160735
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -160825,24 +160737,71 @@
160825
160737
  },
160826
160738
  {
160827
160739
  "kind": "field",
160828
- "name": "view",
160740
+ "name": "occupancy",
160829
160741
  "type": {
160830
- "text": "'side' | 'top'"
160742
+ "text": "SbbOccupancy | null"
160831
160743
  },
160832
160744
  "privacy": "public",
160833
- "default": "'side'",
160834
- "description": "Whether the view of the wagons is from side or top perspective.",
160835
- "attribute": "view",
160745
+ "default": "null",
160746
+ "description": "Occupancy of a wagon.",
160747
+ "attribute": "occupancy"
160748
+ },
160749
+ {
160750
+ "kind": "field",
160751
+ "name": "sector",
160752
+ "type": {
160753
+ "text": "string"
160754
+ },
160755
+ "privacy": "public",
160756
+ "default": "''",
160757
+ "description": "Sector in which the wagon stops.",
160758
+ "attribute": "sector",
160836
160759
  "reflects": true
160837
160760
  },
160838
160761
  {
160839
160762
  "kind": "field",
160840
- "name": "_sectors",
160763
+ "name": "blockedPassage",
160841
160764
  "type": {
160842
- "text": "AggregatedSector[]"
160765
+ "text": "'previous' | 'next' | 'both' | 'none'"
160843
160766
  },
160844
- "privacy": "private",
160845
- "default": "[]"
160767
+ "privacy": "public",
160768
+ "default": "'none'",
160769
+ "description": "Accessibility text for blocked passages of the wagon.",
160770
+ "attribute": "blocked-passage"
160771
+ },
160772
+ {
160773
+ "kind": "field",
160774
+ "name": "wagonClass",
160775
+ "type": {
160776
+ "text": "'1' | '2' | null"
160777
+ },
160778
+ "privacy": "public",
160779
+ "default": "null",
160780
+ "description": "Class label",
160781
+ "attribute": "wagon-class"
160782
+ },
160783
+ {
160784
+ "kind": "field",
160785
+ "name": "label",
160786
+ "type": {
160787
+ "text": "string"
160788
+ },
160789
+ "privacy": "public",
160790
+ "default": "''",
160791
+ "description": "Wagon number",
160792
+ "attribute": "label",
160793
+ "reflects": true
160794
+ },
160795
+ {
160796
+ "kind": "field",
160797
+ "name": "additionalAccessibilityText",
160798
+ "type": {
160799
+ "text": "string"
160800
+ },
160801
+ "privacy": "public",
160802
+ "default": "''",
160803
+ "description": "Additional accessibility text which will be appended to the end.",
160804
+ "attribute": "additional-accessibility-text"
160846
160805
  },
160847
160806
  {
160848
160807
  "kind": "field",
@@ -160852,35 +160811,22 @@
160852
160811
  },
160853
160812
  {
160854
160813
  "kind": "method",
160855
- "name": "_readSectors",
160814
+ "name": "_sectorChanged",
160856
160815
  "privacy": "private",
160857
160816
  "return": {
160858
160817
  "type": {
160859
160818
  "text": "void"
160860
160819
  }
160861
- },
160862
- "parameters": [
160863
- {
160864
- "name": "event",
160865
- "optional": true,
160866
- "type": {
160867
- "text": "Event"
160868
- }
160869
- }
160870
- ]
160820
+ }
160871
160821
  },
160872
160822
  {
160873
- "kind": "field",
160874
- "name": "elementDependencies",
160875
- "type": {
160876
- "text": "SbbElementType[]"
160877
- },
160878
- "privacy": "public",
160879
- "static": true,
160880
- "default": "[SbbScreenReaderOnlyElement]",
160881
- "inheritedFrom": {
160882
- "name": "SbbElement",
160883
- "module": "core/base-elements/element.js"
160823
+ "kind": "method",
160824
+ "name": "_typeLabel",
160825
+ "privacy": "private",
160826
+ "return": {
160827
+ "type": {
160828
+ "text": "string"
160829
+ }
160884
160830
  }
160885
160831
  },
160886
160832
  {
@@ -161224,13 +161170,67 @@
161224
161170
  ],
161225
161171
  "attributes": [
161226
161172
  {
161227
- "name": "view",
161173
+ "name": "type",
161228
161174
  "type": {
161229
- "text": "'side' | 'top'"
161175
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
161230
161176
  },
161231
- "default": "'side'",
161232
- "description": "Whether the view of the wagons is from side or top perspective.",
161233
- "fieldName": "view"
161177
+ "default": "'wagon'",
161178
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
161179
+ "fieldName": "type"
161180
+ },
161181
+ {
161182
+ "name": "occupancy",
161183
+ "type": {
161184
+ "text": "SbbOccupancy | null"
161185
+ },
161186
+ "default": "null",
161187
+ "description": "Occupancy of a wagon.",
161188
+ "fieldName": "occupancy"
161189
+ },
161190
+ {
161191
+ "name": "sector",
161192
+ "type": {
161193
+ "text": "string"
161194
+ },
161195
+ "default": "''",
161196
+ "description": "Sector in which the wagon stops.",
161197
+ "fieldName": "sector"
161198
+ },
161199
+ {
161200
+ "name": "blocked-passage",
161201
+ "type": {
161202
+ "text": "'previous' | 'next' | 'both' | 'none'"
161203
+ },
161204
+ "default": "'none'",
161205
+ "description": "Accessibility text for blocked passages of the wagon.",
161206
+ "fieldName": "blockedPassage"
161207
+ },
161208
+ {
161209
+ "name": "wagon-class",
161210
+ "type": {
161211
+ "text": "'1' | '2' | null"
161212
+ },
161213
+ "default": "null",
161214
+ "description": "Class label",
161215
+ "fieldName": "wagonClass"
161216
+ },
161217
+ {
161218
+ "name": "label",
161219
+ "type": {
161220
+ "text": "string"
161221
+ },
161222
+ "default": "''",
161223
+ "description": "Wagon number",
161224
+ "fieldName": "label"
161225
+ },
161226
+ {
161227
+ "name": "additional-accessibility-text",
161228
+ "type": {
161229
+ "text": "string"
161230
+ },
161231
+ "default": "''",
161232
+ "description": "Additional accessibility text which will be appended to the end.",
161233
+ "fieldName": "additionalAccessibilityText"
161234
161234
  }
161235
161235
  ],
161236
161236
  "mixins": [
@@ -161243,17 +161243,17 @@
161243
161243
  "name": "SbbElement",
161244
161244
  "module": "core.js"
161245
161245
  },
161246
- "tagName": "sbb-train-formation",
161246
+ "tagName": "sbb-train-wagon",
161247
161247
  "customElement": true
161248
161248
  }
161249
161249
  ],
161250
161250
  "exports": [
161251
161251
  {
161252
161252
  "kind": "js",
161253
- "name": "SbbTrainFormationElement",
161253
+ "name": "SbbTrainWagonElement",
161254
161254
  "declaration": {
161255
- "name": "SbbTrainFormationElement",
161256
- "module": "train/train-formation/train-formation.component.js"
161255
+ "name": "SbbTrainWagonElement",
161256
+ "module": "train/train-wagon/train-wagon.component.js"
161257
161257
  }
161258
161258
  }
161259
161259
  ]