@sbb-esta/lyne-elements-dev 4.9.0-dev.1775130554 → 4.9.0-dev.1775146176

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.
@@ -60619,240 +60619,6 @@
60619
60619
  }
60620
60620
  ]
60621
60621
  },
60622
- {
60623
- "kind": "javascript-module",
60624
- "path": "container/container/container.component.js",
60625
- "declarations": [
60626
- {
60627
- "kind": "class",
60628
- "description": "It displays its content with the default page spacing.",
60629
- "name": "SbbContainerElement",
60630
- "cssProperties": [
60631
- {
60632
- "description": "Use this variable to override the default page spacing. Note that overriding this will disable the standard responsive spacing behavior of the container.",
60633
- "name": "--sbb-page-spacing-padding"
60634
- }
60635
- ],
60636
- "slots": [
60637
- {
60638
- "description": "Use the unnamed slot to add anything to the container.",
60639
- "name": ""
60640
- },
60641
- {
60642
- "description": "The slot used by the sbb-sticky-bar component.",
60643
- "name": "sticky-bar"
60644
- },
60645
- {
60646
- "description": "The slot used to slot an `sbb-image` to use as background.",
60647
- "name": "image"
60648
- }
60649
- ],
60650
- "members": [
60651
- {
60652
- "kind": "field",
60653
- "name": "elementName",
60654
- "type": {
60655
- "text": "string"
60656
- },
60657
- "privacy": "public",
60658
- "static": true,
60659
- "readonly": true,
60660
- "default": "'sbb-container'",
60661
- "inheritedFrom": {
60662
- "name": "SbbElement",
60663
- "module": "core/base-elements/element.js"
60664
- }
60665
- },
60666
- {
60667
- "kind": "field",
60668
- "name": "expanded",
60669
- "type": {
60670
- "text": "boolean"
60671
- },
60672
- "privacy": "public",
60673
- "default": "false",
60674
- "description": "Whether the container is expanded.",
60675
- "attribute": "expanded",
60676
- "reflects": true
60677
- },
60678
- {
60679
- "kind": "field",
60680
- "name": "backgroundExpanded",
60681
- "type": {
60682
- "text": "boolean"
60683
- },
60684
- "privacy": "public",
60685
- "default": "false",
60686
- "description": "Whether the background color is shown on full container width on large screens.",
60687
- "attribute": "background-expanded",
60688
- "reflects": true
60689
- },
60690
- {
60691
- "kind": "field",
60692
- "name": "color",
60693
- "type": {
60694
- "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
60695
- },
60696
- "privacy": "public",
60697
- "default": "'white'",
60698
- "description": "Color of the container, like transparent, white etc.",
60699
- "attribute": "color",
60700
- "reflects": true
60701
- },
60702
- {
60703
- "kind": "field",
60704
- "name": "_hydrationRequired",
60705
- "type": {
60706
- "text": "boolean"
60707
- },
60708
- "privacy": "private",
60709
- "default": "!!this.shadowRoot",
60710
- "inheritedFrom": {
60711
- "name": "SbbHydrationMixin",
60712
- "module": "core/mixins/hydration-mixin.js"
60713
- }
60714
- },
60715
- {
60716
- "kind": "field",
60717
- "name": "_hydrationComplete",
60718
- "privacy": "private",
60719
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
60720
- "inheritedFrom": {
60721
- "name": "SbbHydrationMixin",
60722
- "module": "core/mixins/hydration-mixin.js"
60723
- }
60724
- },
60725
- {
60726
- "kind": "field",
60727
- "name": "_resolveHydration",
60728
- "type": {
60729
- "text": "(hydrationRequired: boolean) => void"
60730
- },
60731
- "privacy": "private",
60732
- "inheritedFrom": {
60733
- "name": "SbbHydrationMixin",
60734
- "module": "core/mixins/hydration-mixin.js"
60735
- }
60736
- },
60737
- {
60738
- "kind": "field",
60739
- "name": "hydrationRequired",
60740
- "type": {
60741
- "text": "boolean"
60742
- },
60743
- "privacy": "protected",
60744
- "description": "Returns whether hydration is required and not completed.",
60745
- "readonly": true,
60746
- "inheritedFrom": {
60747
- "name": "SbbHydrationMixin",
60748
- "module": "core/mixins/hydration-mixin.js"
60749
- },
60750
- "default": "!!this.shadowRoot"
60751
- },
60752
- {
60753
- "kind": "method",
60754
- "name": "toggleState",
60755
- "privacy": "protected",
60756
- "return": {
60757
- "type": {
60758
- "text": "void"
60759
- }
60760
- },
60761
- "parameters": [
60762
- {
60763
- "name": "value",
60764
- "type": {
60765
- "text": "string"
60766
- }
60767
- },
60768
- {
60769
- "name": "force",
60770
- "optional": true,
60771
- "type": {
60772
- "text": "boolean"
60773
- }
60774
- }
60775
- ],
60776
- "inheritedFrom": {
60777
- "name": "SbbElementInternalsMixin",
60778
- "module": "core/mixins/element-internals-mixin.js"
60779
- }
60780
- },
60781
- {
60782
- "kind": "field",
60783
- "name": "['_$sbbElement$']",
60784
- "type": {
60785
- "text": "boolean"
60786
- },
60787
- "privacy": "public",
60788
- "static": true,
60789
- "default": "true",
60790
- "inheritedFrom": {
60791
- "name": "SbbElement",
60792
- "module": "core/base-elements/element.js"
60793
- }
60794
- },
60795
- {
60796
- "kind": "field",
60797
- "name": "_controllers",
60798
- "type": {
60799
- "text": "Set<SbbReactiveController> | undefined"
60800
- },
60801
- "privacy": "private",
60802
- "inheritedFrom": {
60803
- "name": "SbbElement",
60804
- "module": "core/base-elements/element.js"
60805
- }
60806
- }
60807
- ],
60808
- "attributes": [
60809
- {
60810
- "name": "expanded",
60811
- "type": {
60812
- "text": "boolean"
60813
- },
60814
- "default": "false",
60815
- "description": "Whether the container is expanded.",
60816
- "fieldName": "expanded"
60817
- },
60818
- {
60819
- "name": "background-expanded",
60820
- "type": {
60821
- "text": "boolean"
60822
- },
60823
- "default": "false",
60824
- "description": "Whether the background color is shown on full container width on large screens.",
60825
- "fieldName": "backgroundExpanded"
60826
- },
60827
- {
60828
- "name": "color",
60829
- "type": {
60830
- "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
60831
- },
60832
- "default": "'white'",
60833
- "description": "Color of the container, like transparent, white etc.",
60834
- "fieldName": "color"
60835
- }
60836
- ],
60837
- "superclass": {
60838
- "name": "SbbElement",
60839
- "module": "core/base-elements.js"
60840
- },
60841
- "tagName": "sbb-container",
60842
- "customElement": true
60843
- }
60844
- ],
60845
- "exports": [
60846
- {
60847
- "kind": "js",
60848
- "name": "SbbContainerElement",
60849
- "declaration": {
60850
- "name": "SbbContainerElement",
60851
- "module": "container/container/container.component.js"
60852
- }
60853
- }
60854
- ]
60855
- },
60856
60622
  {
60857
60623
  "kind": "javascript-module",
60858
60624
  "path": "container/sticky-bar/sticky-bar.component.js",
@@ -61315,6 +61081,240 @@
61315
61081
  }
61316
61082
  ]
61317
61083
  },
61084
+ {
61085
+ "kind": "javascript-module",
61086
+ "path": "container/container/container.component.js",
61087
+ "declarations": [
61088
+ {
61089
+ "kind": "class",
61090
+ "description": "It displays its content with the default page spacing.",
61091
+ "name": "SbbContainerElement",
61092
+ "cssProperties": [
61093
+ {
61094
+ "description": "Use this variable to override the default page spacing. Note that overriding this will disable the standard responsive spacing behavior of the container.",
61095
+ "name": "--sbb-page-spacing-padding"
61096
+ }
61097
+ ],
61098
+ "slots": [
61099
+ {
61100
+ "description": "Use the unnamed slot to add anything to the container.",
61101
+ "name": ""
61102
+ },
61103
+ {
61104
+ "description": "The slot used by the sbb-sticky-bar component.",
61105
+ "name": "sticky-bar"
61106
+ },
61107
+ {
61108
+ "description": "The slot used to slot an `sbb-image` to use as background.",
61109
+ "name": "image"
61110
+ }
61111
+ ],
61112
+ "members": [
61113
+ {
61114
+ "kind": "field",
61115
+ "name": "elementName",
61116
+ "type": {
61117
+ "text": "string"
61118
+ },
61119
+ "privacy": "public",
61120
+ "static": true,
61121
+ "readonly": true,
61122
+ "default": "'sbb-container'",
61123
+ "inheritedFrom": {
61124
+ "name": "SbbElement",
61125
+ "module": "core/base-elements/element.js"
61126
+ }
61127
+ },
61128
+ {
61129
+ "kind": "field",
61130
+ "name": "expanded",
61131
+ "type": {
61132
+ "text": "boolean"
61133
+ },
61134
+ "privacy": "public",
61135
+ "default": "false",
61136
+ "description": "Whether the container is expanded.",
61137
+ "attribute": "expanded",
61138
+ "reflects": true
61139
+ },
61140
+ {
61141
+ "kind": "field",
61142
+ "name": "backgroundExpanded",
61143
+ "type": {
61144
+ "text": "boolean"
61145
+ },
61146
+ "privacy": "public",
61147
+ "default": "false",
61148
+ "description": "Whether the background color is shown on full container width on large screens.",
61149
+ "attribute": "background-expanded",
61150
+ "reflects": true
61151
+ },
61152
+ {
61153
+ "kind": "field",
61154
+ "name": "color",
61155
+ "type": {
61156
+ "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
61157
+ },
61158
+ "privacy": "public",
61159
+ "default": "'white'",
61160
+ "description": "Color of the container, like transparent, white etc.",
61161
+ "attribute": "color",
61162
+ "reflects": true
61163
+ },
61164
+ {
61165
+ "kind": "field",
61166
+ "name": "_hydrationRequired",
61167
+ "type": {
61168
+ "text": "boolean"
61169
+ },
61170
+ "privacy": "private",
61171
+ "default": "!!this.shadowRoot",
61172
+ "inheritedFrom": {
61173
+ "name": "SbbHydrationMixin",
61174
+ "module": "core/mixins/hydration-mixin.js"
61175
+ }
61176
+ },
61177
+ {
61178
+ "kind": "field",
61179
+ "name": "_hydrationComplete",
61180
+ "privacy": "private",
61181
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
61182
+ "inheritedFrom": {
61183
+ "name": "SbbHydrationMixin",
61184
+ "module": "core/mixins/hydration-mixin.js"
61185
+ }
61186
+ },
61187
+ {
61188
+ "kind": "field",
61189
+ "name": "_resolveHydration",
61190
+ "type": {
61191
+ "text": "(hydrationRequired: boolean) => void"
61192
+ },
61193
+ "privacy": "private",
61194
+ "inheritedFrom": {
61195
+ "name": "SbbHydrationMixin",
61196
+ "module": "core/mixins/hydration-mixin.js"
61197
+ }
61198
+ },
61199
+ {
61200
+ "kind": "field",
61201
+ "name": "hydrationRequired",
61202
+ "type": {
61203
+ "text": "boolean"
61204
+ },
61205
+ "privacy": "protected",
61206
+ "description": "Returns whether hydration is required and not completed.",
61207
+ "readonly": true,
61208
+ "inheritedFrom": {
61209
+ "name": "SbbHydrationMixin",
61210
+ "module": "core/mixins/hydration-mixin.js"
61211
+ },
61212
+ "default": "!!this.shadowRoot"
61213
+ },
61214
+ {
61215
+ "kind": "method",
61216
+ "name": "toggleState",
61217
+ "privacy": "protected",
61218
+ "return": {
61219
+ "type": {
61220
+ "text": "void"
61221
+ }
61222
+ },
61223
+ "parameters": [
61224
+ {
61225
+ "name": "value",
61226
+ "type": {
61227
+ "text": "string"
61228
+ }
61229
+ },
61230
+ {
61231
+ "name": "force",
61232
+ "optional": true,
61233
+ "type": {
61234
+ "text": "boolean"
61235
+ }
61236
+ }
61237
+ ],
61238
+ "inheritedFrom": {
61239
+ "name": "SbbElementInternalsMixin",
61240
+ "module": "core/mixins/element-internals-mixin.js"
61241
+ }
61242
+ },
61243
+ {
61244
+ "kind": "field",
61245
+ "name": "['_$sbbElement$']",
61246
+ "type": {
61247
+ "text": "boolean"
61248
+ },
61249
+ "privacy": "public",
61250
+ "static": true,
61251
+ "default": "true",
61252
+ "inheritedFrom": {
61253
+ "name": "SbbElement",
61254
+ "module": "core/base-elements/element.js"
61255
+ }
61256
+ },
61257
+ {
61258
+ "kind": "field",
61259
+ "name": "_controllers",
61260
+ "type": {
61261
+ "text": "Set<SbbReactiveController> | undefined"
61262
+ },
61263
+ "privacy": "private",
61264
+ "inheritedFrom": {
61265
+ "name": "SbbElement",
61266
+ "module": "core/base-elements/element.js"
61267
+ }
61268
+ }
61269
+ ],
61270
+ "attributes": [
61271
+ {
61272
+ "name": "expanded",
61273
+ "type": {
61274
+ "text": "boolean"
61275
+ },
61276
+ "default": "false",
61277
+ "description": "Whether the container is expanded.",
61278
+ "fieldName": "expanded"
61279
+ },
61280
+ {
61281
+ "name": "background-expanded",
61282
+ "type": {
61283
+ "text": "boolean"
61284
+ },
61285
+ "default": "false",
61286
+ "description": "Whether the background color is shown on full container width on large screens.",
61287
+ "fieldName": "backgroundExpanded"
61288
+ },
61289
+ {
61290
+ "name": "color",
61291
+ "type": {
61292
+ "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
61293
+ },
61294
+ "default": "'white'",
61295
+ "description": "Color of the container, like transparent, white etc.",
61296
+ "fieldName": "color"
61297
+ }
61298
+ ],
61299
+ "superclass": {
61300
+ "name": "SbbElement",
61301
+ "module": "core/base-elements.js"
61302
+ },
61303
+ "tagName": "sbb-container",
61304
+ "customElement": true
61305
+ }
61306
+ ],
61307
+ "exports": [
61308
+ {
61309
+ "kind": "js",
61310
+ "name": "SbbContainerElement",
61311
+ "declaration": {
61312
+ "name": "SbbContainerElement",
61313
+ "module": "container/container/container.component.js"
61314
+ }
61315
+ }
61316
+ ]
61317
+ },
61318
61318
  {
61319
61319
  "kind": "javascript-module",
61320
61320
  "path": "core/a11y/arrow-navigation.js",
@@ -100091,15 +100091,15 @@
100091
100091
  },
100092
100092
  {
100093
100093
  "kind": "javascript-module",
100094
- "path": "link/block-link/block-link.component.js",
100094
+ "path": "link/block-link-button/block-link-button.component.js",
100095
100095
  "declarations": [
100096
100096
  {
100097
100097
  "kind": "class",
100098
- "description": "It displays a link enhanced with the SBB Design.",
100099
- "name": "SbbBlockLinkElement",
100098
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100099
+ "name": "SbbBlockLinkButtonElement",
100100
100100
  "slots": [
100101
100101
  {
100102
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100102
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100103
100103
  "name": ""
100104
100104
  },
100105
100105
  {
@@ -100121,7 +100121,7 @@
100121
100121
  "name": "SbbElement",
100122
100122
  "module": "core/base-elements/element.js"
100123
100123
  },
100124
- "default": "'sbb-block-link'"
100124
+ "default": "'sbb-block-link-button'"
100125
100125
  },
100126
100126
  {
100127
100127
  "kind": "field",
@@ -100250,6 +100250,22 @@
100250
100250
  "module": "icon/icon-name-mixin.js"
100251
100251
  }
100252
100252
  },
100253
+ {
100254
+ "kind": "field",
100255
+ "name": "disabledInteractive",
100256
+ "type": {
100257
+ "text": "boolean"
100258
+ },
100259
+ "privacy": "public",
100260
+ "default": "false",
100261
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100262
+ "attribute": "disabled-interactive",
100263
+ "reflects": true,
100264
+ "inheritedFrom": {
100265
+ "name": "SbbDisabledInteractiveMixin",
100266
+ "module": "core/mixins/disabled-mixin.js"
100267
+ }
100268
+ },
100253
100269
  {
100254
100270
  "kind": "field",
100255
100271
  "name": "disabled",
@@ -100296,151 +100312,479 @@
100296
100312
  },
100297
100313
  {
100298
100314
  "kind": "field",
100299
- "name": "href",
100315
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100316
+ "type": {
100317
+ "text": "array"
100318
+ },
100319
+ "privacy": "private",
100320
+ "readonly": true,
100321
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100322
+ "inheritedFrom": {
100323
+ "name": "SbbButtonBaseElement",
100324
+ "module": "core/base-elements/button-base-element.js"
100325
+ }
100326
+ },
100327
+ {
100328
+ "kind": "field",
100329
+ "name": "value",
100300
100330
  "type": {
100301
100331
  "text": "string"
100302
100332
  },
100303
100333
  "privacy": "public",
100334
+ "inheritedFrom": {
100335
+ "name": "SbbButtonBaseElement",
100336
+ "module": "core/base-elements/button-base-element.js"
100337
+ },
100304
100338
  "default": "''",
100305
- "description": "The href value you want to link to.",
100306
- "attribute": "href",
100307
- "reflects": true,
100339
+ "description": "Value of the form element.",
100340
+ "attribute": "value"
100341
+ },
100342
+ {
100343
+ "kind": "field",
100344
+ "name": "type",
100345
+ "privacy": "public",
100346
+ "description": "The type attribute to use for the button.",
100347
+ "default": "'button'",
100348
+ "type": {
100349
+ "text": "SbbButtonType"
100350
+ },
100351
+ "attribute": "type",
100308
100352
  "inheritedFrom": {
100309
- "name": "SbbLinkBaseElement",
100310
- "module": "core/base-elements/link-base-element.js"
100353
+ "name": "SbbButtonBaseElement",
100354
+ "module": "core/base-elements/button-base-element.js"
100311
100355
  }
100312
100356
  },
100313
100357
  {
100314
100358
  "kind": "field",
100315
- "name": "target",
100359
+ "name": "form",
100316
100360
  "type": {
100317
- "text": "LinkTargetType | string"
100361
+ "text": "HTMLFormElement | null"
100318
100362
  },
100319
100363
  "privacy": "public",
100320
- "default": "''",
100321
- "description": "Where to display the linked URL.",
100322
- "attribute": "target",
100323
- "reflects": true,
100364
+ "description": "The `<form>` element to associate the button with.",
100324
100365
  "inheritedFrom": {
100325
- "name": "SbbLinkBaseElement",
100326
- "module": "core/base-elements/link-base-element.js"
100327
- }
100366
+ "name": "SbbButtonBaseElement",
100367
+ "module": "core/base-elements/button-base-element.js"
100368
+ },
100369
+ "attribute": "form"
100328
100370
  },
100329
100371
  {
100330
100372
  "kind": "field",
100331
- "name": "rel",
100373
+ "name": "_formId",
100332
100374
  "type": {
100333
100375
  "text": "string"
100334
100376
  },
100335
- "privacy": "public",
100377
+ "privacy": "private",
100336
100378
  "default": "''",
100337
- "description": "The relationship of the linked URL as space-separated link types.",
100338
- "attribute": "rel",
100339
- "reflects": true,
100340
100379
  "inheritedFrom": {
100341
- "name": "SbbLinkBaseElement",
100342
- "module": "core/base-elements/link-base-element.js"
100380
+ "name": "SbbButtonBaseElement",
100381
+ "module": "core/base-elements/button-base-element.js"
100343
100382
  }
100344
100383
  },
100345
100384
  {
100346
100385
  "kind": "field",
100347
- "name": "download",
100386
+ "name": "_handleButtonClick",
100387
+ "privacy": "private",
100388
+ "inheritedFrom": {
100389
+ "name": "SbbButtonBaseElement",
100390
+ "module": "core/base-elements/button-base-element.js"
100391
+ }
100392
+ },
100393
+ {
100394
+ "kind": "method",
100395
+ "name": "_requestSubmit",
100396
+ "privacy": "private",
100397
+ "return": {
100398
+ "type": {
100399
+ "text": "void"
100400
+ }
100401
+ },
100402
+ "parameters": [
100403
+ {
100404
+ "name": "form",
100405
+ "type": {
100406
+ "text": "HTMLFormElement"
100407
+ }
100408
+ }
100409
+ ],
100410
+ "inheritedFrom": {
100411
+ "name": "SbbButtonBaseElement",
100412
+ "module": "core/base-elements/button-base-element.js"
100413
+ }
100414
+ },
100415
+ {
100416
+ "kind": "field",
100417
+ "name": "_formKeyDown",
100418
+ "privacy": "private",
100419
+ "inheritedFrom": {
100420
+ "name": "SbbButtonBaseElement",
100421
+ "module": "core/base-elements/button-base-element.js"
100422
+ }
100423
+ },
100424
+ {
100425
+ "kind": "field",
100426
+ "name": "formAssociated",
100348
100427
  "type": {
100349
100428
  "text": "boolean"
100350
100429
  },
100351
100430
  "privacy": "public",
100352
- "default": "false",
100353
- "description": "Whether the browser will show the download dialog on click.",
100354
- "attribute": "download",
100355
- "reflects": true,
100431
+ "static": true,
100432
+ "default": "true",
100356
100433
  "inheritedFrom": {
100357
- "name": "SbbLinkBaseElement",
100358
- "module": "core/base-elements/link-base-element.js"
100434
+ "name": "SbbFormAssociatedMixin",
100435
+ "module": "core/mixins/form-associated-mixin.js"
100359
100436
  }
100360
100437
  },
100361
100438
  {
100362
100439
  "kind": "field",
100363
- "name": "accessibilityLabel",
100440
+ "name": "name",
100441
+ "privacy": "public",
100442
+ "description": "Name of the form element. Will be read from name attribute.",
100364
100443
  "type": {
100365
100444
  "text": "string"
100366
100445
  },
100446
+ "attribute": "name",
100447
+ "inheritedFrom": {
100448
+ "name": "SbbFormAssociatedMixin",
100449
+ "module": "core/mixins/form-associated-mixin.js"
100450
+ }
100451
+ },
100452
+ {
100453
+ "kind": "field",
100454
+ "name": "validity",
100455
+ "type": {
100456
+ "text": "ValidityState"
100457
+ },
100367
100458
  "privacy": "public",
100368
- "default": "''",
100369
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100370
- "attribute": "accessibility-label",
100459
+ "description": "Returns the ValidityState object for this element.",
100460
+ "readonly": true,
100371
100461
  "inheritedFrom": {
100372
- "name": "SbbLinkBaseElement",
100373
- "module": "core/base-elements/link-base-element.js"
100462
+ "name": "SbbFormAssociatedMixin",
100463
+ "module": "core/mixins/form-associated-mixin.js"
100374
100464
  }
100375
100465
  },
100376
100466
  {
100377
100467
  "kind": "field",
100378
- "name": "accessibilityCurrent",
100468
+ "name": "validationMessage",
100379
100469
  "type": {
100380
100470
  "text": "string"
100381
100471
  },
100382
100472
  "privacy": "public",
100383
- "default": "''",
100384
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100385
- "attribute": "accessibility-current",
100473
+ "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.",
100474
+ "readonly": true,
100386
100475
  "inheritedFrom": {
100387
- "name": "SbbLinkBaseElement",
100388
- "module": "core/base-elements/link-base-element.js"
100476
+ "name": "SbbFormAssociatedMixin",
100477
+ "module": "core/mixins/form-associated-mixin.js"
100389
100478
  }
100390
100479
  },
100391
100480
  {
100392
100481
  "kind": "field",
100393
- "name": "language",
100394
- "privacy": "protected",
100395
- "default": "new SbbLanguageController(this)",
100482
+ "name": "willValidate",
100483
+ "type": {
100484
+ "text": "boolean"
100485
+ },
100486
+ "privacy": "public",
100487
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100488
+ "readonly": true,
100396
100489
  "inheritedFrom": {
100397
- "name": "SbbLinkBaseElement",
100398
- "module": "core/base-elements/link-base-element.js"
100490
+ "name": "SbbFormAssociatedMixin",
100491
+ "module": "core/mixins/form-associated-mixin.js"
100399
100492
  }
100400
100493
  },
100401
100494
  {
100402
100495
  "kind": "field",
100403
- "name": "anchorRole",
100496
+ "name": "_validityStates",
100497
+ "privacy": "private",
100498
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100499
+ "inheritedFrom": {
100500
+ "name": "SbbFormAssociatedMixin",
100501
+ "module": "core/mixins/form-associated-mixin.js"
100502
+ }
100503
+ },
100504
+ {
100505
+ "kind": "field",
100506
+ "name": "formDisabled",
100404
100507
  "type": {
100405
- "text": "string | null"
100508
+ "text": "boolean"
100406
100509
  },
100407
100510
  "privacy": "protected",
100408
- "readonly": true,
100409
- "default": "null",
100511
+ "default": "false",
100512
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100410
100513
  "inheritedFrom": {
100411
- "name": "SbbLinkBaseElement",
100412
- "module": "core/base-elements/link-base-element.js"
100514
+ "name": "SbbFormAssociatedMixin",
100515
+ "module": "core/mixins/form-associated-mixin.js"
100413
100516
  }
100414
100517
  },
100415
100518
  {
100416
- "kind": "field",
100417
- "name": "_evaluateRelAttribute",
100519
+ "kind": "method",
100520
+ "name": "checkValidity",
100521
+ "privacy": "public",
100522
+ "return": {
100523
+ "type": {
100524
+ "text": "boolean"
100525
+ }
100526
+ },
100527
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100528
+ "inheritedFrom": {
100529
+ "name": "SbbFormAssociatedMixin",
100530
+ "module": "core/mixins/form-associated-mixin.js"
100531
+ }
100532
+ },
100533
+ {
100534
+ "kind": "method",
100535
+ "name": "reportValidity",
100536
+ "privacy": "public",
100537
+ "return": {
100538
+ "type": {
100539
+ "text": "boolean"
100540
+ }
100541
+ },
100542
+ "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.",
100543
+ "inheritedFrom": {
100544
+ "name": "SbbFormAssociatedMixin",
100545
+ "module": "core/mixins/form-associated-mixin.js"
100546
+ }
100547
+ },
100548
+ {
100549
+ "kind": "method",
100550
+ "name": "setCustomValidity",
100551
+ "privacy": "public",
100552
+ "return": {
100553
+ "type": {
100554
+ "text": "void"
100555
+ }
100556
+ },
100557
+ "parameters": [
100558
+ {
100559
+ "name": "message",
100560
+ "type": {
100561
+ "text": "string"
100562
+ }
100563
+ }
100564
+ ],
100565
+ "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.",
100566
+ "inheritedFrom": {
100567
+ "name": "SbbFormAssociatedMixin",
100568
+ "module": "core/mixins/form-associated-mixin.js"
100569
+ }
100570
+ },
100571
+ {
100572
+ "kind": "method",
100573
+ "name": "_hasDisabledAncestor",
100418
100574
  "privacy": "private",
100575
+ "return": {
100576
+ "type": {
100577
+ "text": "boolean"
100578
+ }
100579
+ },
100419
100580
  "inheritedFrom": {
100420
- "name": "SbbLinkBaseElement",
100421
- "module": "core/base-elements/link-base-element.js"
100581
+ "name": "SbbFormAssociatedMixin",
100582
+ "module": "core/mixins/form-associated-mixin.js"
100422
100583
  }
100423
100584
  },
100424
100585
  {
100425
100586
  "kind": "method",
100426
- "name": "renderLink",
100587
+ "name": "updateFormValue",
100427
100588
  "privacy": "protected",
100428
100589
  "return": {
100429
100590
  "type": {
100430
- "text": "TemplateResult"
100591
+ "text": "void"
100592
+ }
100593
+ },
100594
+ "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",
100595
+ "inheritedFrom": {
100596
+ "name": "SbbFormAssociatedMixin",
100597
+ "module": "core/mixins/form-associated-mixin.js"
100598
+ }
100599
+ },
100600
+ {
100601
+ "kind": "method",
100602
+ "name": "formState",
100603
+ "privacy": "protected",
100604
+ "return": {
100605
+ "type": {
100606
+ "text": "FormRestoreState"
100607
+ }
100608
+ },
100609
+ "inheritedFrom": {
100610
+ "name": "SbbFormAssociatedMixin",
100611
+ "module": "core/mixins/form-associated-mixin.js"
100612
+ }
100613
+ },
100614
+ {
100615
+ "kind": "method",
100616
+ "name": "setValidityFlag",
100617
+ "privacy": "protected",
100618
+ "return": {
100619
+ "type": {
100620
+ "text": "void"
100431
100621
  }
100432
100622
  },
100433
100623
  "parameters": [
100434
100624
  {
100435
- "name": "renderContent",
100625
+ "name": "flag",
100436
100626
  "type": {
100437
- "text": "TemplateResult"
100627
+ "text": "T"
100628
+ }
100629
+ },
100630
+ {
100631
+ "name": "message",
100632
+ "type": {
100633
+ "text": "string"
100634
+ }
100635
+ },
100636
+ {
100637
+ "name": "flagValue",
100638
+ "optional": true,
100639
+ "type": {
100640
+ "text": "ValidityStateFlags[T]"
100438
100641
  }
100439
100642
  }
100440
100643
  ],
100644
+ "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).",
100441
100645
  "inheritedFrom": {
100442
- "name": "SbbLinkBaseElement",
100443
- "module": "core/base-elements/link-base-element.js"
100646
+ "name": "SbbFormAssociatedMixin",
100647
+ "module": "core/mixins/form-associated-mixin.js"
100648
+ }
100649
+ },
100650
+ {
100651
+ "kind": "method",
100652
+ "name": "removeValidityFlag",
100653
+ "privacy": "protected",
100654
+ "return": {
100655
+ "type": {
100656
+ "text": "void"
100657
+ }
100658
+ },
100659
+ "parameters": [
100660
+ {
100661
+ "name": "flag",
100662
+ "type": {
100663
+ "text": "T"
100664
+ }
100665
+ }
100666
+ ],
100667
+ "description": "Removes the validity state flag entry and updates validity state.",
100668
+ "inheritedFrom": {
100669
+ "name": "SbbFormAssociatedMixin",
100670
+ "module": "core/mixins/form-associated-mixin.js"
100671
+ }
100672
+ },
100673
+ {
100674
+ "kind": "method",
100675
+ "name": "validate",
100676
+ "privacy": "protected",
100677
+ "return": {
100678
+ "type": {
100679
+ "text": "void"
100680
+ }
100681
+ },
100682
+ "description": "To be called whenever the current element needs to be validated.",
100683
+ "inheritedFrom": {
100684
+ "name": "SbbFormAssociatedMixin",
100685
+ "module": "core/mixins/form-associated-mixin.js"
100686
+ }
100687
+ },
100688
+ {
100689
+ "kind": "method",
100690
+ "name": "shouldValidate",
100691
+ "privacy": "protected",
100692
+ "return": {
100693
+ "type": {
100694
+ "text": "boolean"
100695
+ }
100696
+ },
100697
+ "parameters": [
100698
+ {
100699
+ "name": "name",
100700
+ "type": {
100701
+ "text": "PropertyKey | undefined"
100702
+ }
100703
+ }
100704
+ ],
100705
+ "description": "Whether validation should be run on a property change with the given name.",
100706
+ "inheritedFrom": {
100707
+ "name": "SbbFormAssociatedMixin",
100708
+ "module": "core/mixins/form-associated-mixin.js"
100709
+ }
100710
+ },
100711
+ {
100712
+ "kind": "method",
100713
+ "name": "_setInternalValidity",
100714
+ "privacy": "private",
100715
+ "return": {
100716
+ "type": {
100717
+ "text": "void"
100718
+ }
100719
+ },
100720
+ "inheritedFrom": {
100721
+ "name": "SbbFormAssociatedMixin",
100722
+ "module": "core/mixins/form-associated-mixin.js"
100723
+ }
100724
+ },
100725
+ {
100726
+ "kind": "field",
100727
+ "name": "role",
100728
+ "type": {
100729
+ "text": "ElementInternals['role']"
100730
+ },
100731
+ "privacy": "public",
100732
+ "static": true,
100733
+ "readonly": true,
100734
+ "default": "'button'",
100735
+ "inheritedFrom": {
100736
+ "name": "SbbButtonLikeBaseElement",
100737
+ "module": "core/base-elements/button-base-element.js"
100738
+ }
100739
+ },
100740
+ {
100741
+ "kind": "field",
100742
+ "name": "_preventScrollOnSpaceKeydown",
100743
+ "privacy": "private",
100744
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
100745
+ "parameters": [
100746
+ {
100747
+ "description": "The origin event.",
100748
+ "name": "event"
100749
+ }
100750
+ ],
100751
+ "inheritedFrom": {
100752
+ "name": "SbbButtonLikeBaseElement",
100753
+ "module": "core/base-elements/button-base-element.js"
100754
+ }
100755
+ },
100756
+ {
100757
+ "kind": "field",
100758
+ "name": "_removeActiveMarker",
100759
+ "privacy": "private",
100760
+ "inheritedFrom": {
100761
+ "name": "SbbButtonLikeBaseElement",
100762
+ "module": "core/base-elements/button-base-element.js"
100763
+ }
100764
+ },
100765
+ {
100766
+ "kind": "field",
100767
+ "name": "_dispatchClickEventOnSpaceKeyup",
100768
+ "privacy": "private",
100769
+ "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.",
100770
+ "parameters": [
100771
+ {
100772
+ "description": "The origin event.",
100773
+ "name": "event"
100774
+ }
100775
+ ],
100776
+ "inheritedFrom": {
100777
+ "name": "SbbButtonLikeBaseElement",
100778
+ "module": "core/base-elements/button-base-element.js"
100779
+ }
100780
+ },
100781
+ {
100782
+ "kind": "field",
100783
+ "name": "_dispatchClickEvent",
100784
+ "privacy": "private",
100785
+ "inheritedFrom": {
100786
+ "name": "SbbButtonLikeBaseElement",
100787
+ "module": "core/base-elements/button-base-element.js"
100444
100788
  }
100445
100789
  },
100446
100790
  {
@@ -100595,15 +100939,15 @@
100595
100939
  "module": "link/common/block-link-common.js"
100596
100940
  },
100597
100941
  {
100598
- "name": "SbbDisabledMixin",
100942
+ "name": "SbbDisabledTabIndexActionMixin",
100599
100943
  "module": "core/mixins.js"
100600
100944
  }
100601
100945
  ],
100602
100946
  "superclass": {
100603
- "name": "SbbLinkBaseElement",
100947
+ "name": "SbbButtonBaseElement",
100604
100948
  "module": "core/base-elements.js"
100605
100949
  },
100606
- "tagName": "sbb-block-link",
100950
+ "tagName": "sbb-block-link-button",
100607
100951
  "customElement": true,
100608
100952
  "attributes": [
100609
100953
  {
@@ -100645,6 +100989,19 @@
100645
100989
  "module": "icon/icon-name-mixin.js"
100646
100990
  }
100647
100991
  },
100992
+ {
100993
+ "name": "disabled-interactive",
100994
+ "type": {
100995
+ "text": "boolean"
100996
+ },
100997
+ "default": "false",
100998
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100999
+ "fieldName": "disabledInteractive",
101000
+ "inheritedFrom": {
101001
+ "name": "SbbDisabledInteractiveMixin",
101002
+ "module": "core/mixins/disabled-mixin.js"
101003
+ }
101004
+ },
100648
101005
  {
100649
101006
  "name": "disabled",
100650
101007
  "description": "Whether the component is disabled.",
@@ -100659,81 +101016,53 @@
100659
101016
  }
100660
101017
  },
100661
101018
  {
100662
- "name": "href",
101019
+ "name": "value",
100663
101020
  "type": {
100664
101021
  "text": "string"
100665
101022
  },
100666
101023
  "default": "''",
100667
- "description": "The href value you want to link to.",
100668
- "fieldName": "href",
101024
+ "description": "Value of the form element.",
101025
+ "fieldName": "value",
100669
101026
  "inheritedFrom": {
100670
- "name": "SbbLinkBaseElement",
100671
- "module": "core/base-elements/link-base-element.js"
101027
+ "name": "SbbButtonBaseElement",
101028
+ "module": "core/base-elements/button-base-element.js"
100672
101029
  }
100673
101030
  },
100674
101031
  {
100675
- "name": "target",
101032
+ "name": "type",
101033
+ "description": "The type attribute to use for the button.",
101034
+ "default": "'button'",
100676
101035
  "type": {
100677
- "text": "LinkTargetType | string"
100678
- },
100679
- "default": "''",
100680
- "description": "Where to display the linked URL.",
100681
- "fieldName": "target",
100682
- "inheritedFrom": {
100683
- "name": "SbbLinkBaseElement",
100684
- "module": "core/base-elements/link-base-element.js"
100685
- }
100686
- },
100687
- {
100688
- "name": "rel",
100689
- "type": {
100690
- "text": "string"
100691
- },
100692
- "default": "''",
100693
- "description": "The relationship of the linked URL as space-separated link types.",
100694
- "fieldName": "rel",
100695
- "inheritedFrom": {
100696
- "name": "SbbLinkBaseElement",
100697
- "module": "core/base-elements/link-base-element.js"
100698
- }
100699
- },
100700
- {
100701
- "name": "download",
100702
- "type": {
100703
- "text": "boolean"
101036
+ "text": "SbbButtonType"
100704
101037
  },
100705
- "default": "false",
100706
- "description": "Whether the browser will show the download dialog on click.",
100707
- "fieldName": "download",
101038
+ "fieldName": "type",
100708
101039
  "inheritedFrom": {
100709
- "name": "SbbLinkBaseElement",
100710
- "module": "core/base-elements/link-base-element.js"
101040
+ "name": "SbbButtonBaseElement",
101041
+ "module": "core/base-elements/button-base-element.js"
100711
101042
  }
100712
101043
  },
100713
101044
  {
100714
- "name": "accessibility-label",
101045
+ "name": "form",
101046
+ "description": "The `<form>` element to associate the button with.",
100715
101047
  "type": {
100716
- "text": "string"
101048
+ "text": "HTMLFormElement | null"
100717
101049
  },
100718
- "default": "''",
100719
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100720
- "fieldName": "accessibilityLabel",
101050
+ "fieldName": "form",
100721
101051
  "inheritedFrom": {
100722
- "name": "SbbLinkBaseElement",
100723
- "module": "core/base-elements/link-base-element.js"
101052
+ "name": "SbbButtonBaseElement",
101053
+ "module": "core/base-elements/button-base-element.js"
100724
101054
  }
100725
101055
  },
100726
101056
  {
100727
- "name": "accessibility-current",
101057
+ "name": "name",
101058
+ "description": "Name of the form element. Will be read from name attribute.",
100728
101059
  "type": {
100729
101060
  "text": "string"
100730
101061
  },
100731
- "default": "''",
100732
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100733
- "fieldName": "accessibilityCurrent",
101062
+ "fieldName": "name",
100734
101063
  "inheritedFrom": {
100735
- "name": "SbbLinkBaseElement",
100736
- "module": "core/base-elements/link-base-element.js"
101064
+ "name": "SbbFormAssociatedMixin",
101065
+ "module": "core/mixins/form-associated-mixin.js"
100737
101066
  }
100738
101067
  }
100739
101068
  ]
@@ -100742,25 +101071,25 @@
100742
101071
  "exports": [
100743
101072
  {
100744
101073
  "kind": "js",
100745
- "name": "SbbBlockLinkElement",
101074
+ "name": "SbbBlockLinkButtonElement",
100746
101075
  "declaration": {
100747
- "name": "SbbBlockLinkElement",
100748
- "module": "link/block-link/block-link.component.js"
101076
+ "name": "SbbBlockLinkButtonElement",
101077
+ "module": "link/block-link-button/block-link-button.component.js"
100749
101078
  }
100750
101079
  }
100751
101080
  ]
100752
101081
  },
100753
101082
  {
100754
101083
  "kind": "javascript-module",
100755
- "path": "link/block-link-button/block-link-button.component.js",
101084
+ "path": "link/block-link/block-link.component.js",
100756
101085
  "declarations": [
100757
101086
  {
100758
101087
  "kind": "class",
100759
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100760
- "name": "SbbBlockLinkButtonElement",
101088
+ "description": "It displays a link enhanced with the SBB Design.",
101089
+ "name": "SbbBlockLinkElement",
100761
101090
  "slots": [
100762
101091
  {
100763
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101092
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100764
101093
  "name": ""
100765
101094
  },
100766
101095
  {
@@ -100782,7 +101111,7 @@
100782
101111
  "name": "SbbElement",
100783
101112
  "module": "core/base-elements/element.js"
100784
101113
  },
100785
- "default": "'sbb-block-link-button'"
101114
+ "default": "'sbb-block-link'"
100786
101115
  },
100787
101116
  {
100788
101117
  "kind": "field",
@@ -100911,22 +101240,6 @@
100911
101240
  "module": "icon/icon-name-mixin.js"
100912
101241
  }
100913
101242
  },
100914
- {
100915
- "kind": "field",
100916
- "name": "disabledInteractive",
100917
- "type": {
100918
- "text": "boolean"
100919
- },
100920
- "privacy": "public",
100921
- "default": "false",
100922
- "description": "Whether the button should be aria-disabled but stay interactive.",
100923
- "attribute": "disabled-interactive",
100924
- "reflects": true,
100925
- "inheritedFrom": {
100926
- "name": "SbbDisabledInteractiveMixin",
100927
- "module": "core/mixins/disabled-mixin.js"
100928
- }
100929
- },
100930
101243
  {
100931
101244
  "kind": "field",
100932
101245
  "name": "disabled",
@@ -100973,243 +101286,247 @@
100973
101286
  },
100974
101287
  {
100975
101288
  "kind": "field",
100976
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101289
+ "name": "href",
100977
101290
  "type": {
100978
- "text": "array"
101291
+ "text": "string"
100979
101292
  },
100980
- "privacy": "private",
100981
- "readonly": true,
100982
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101293
+ "privacy": "public",
101294
+ "default": "''",
101295
+ "description": "The href value you want to link to.",
101296
+ "attribute": "href",
101297
+ "reflects": true,
100983
101298
  "inheritedFrom": {
100984
- "name": "SbbButtonBaseElement",
100985
- "module": "core/base-elements/button-base-element.js"
101299
+ "name": "SbbLinkBaseElement",
101300
+ "module": "core/base-elements/link-base-element.js"
100986
101301
  }
100987
101302
  },
100988
101303
  {
100989
101304
  "kind": "field",
100990
- "name": "value",
101305
+ "name": "target",
100991
101306
  "type": {
100992
- "text": "string"
101307
+ "text": "LinkTargetType | string"
100993
101308
  },
100994
101309
  "privacy": "public",
101310
+ "default": "''",
101311
+ "description": "Where to display the linked URL.",
101312
+ "attribute": "target",
101313
+ "reflects": true,
100995
101314
  "inheritedFrom": {
100996
- "name": "SbbButtonBaseElement",
100997
- "module": "core/base-elements/button-base-element.js"
101315
+ "name": "SbbLinkBaseElement",
101316
+ "module": "core/base-elements/link-base-element.js"
101317
+ }
101318
+ },
101319
+ {
101320
+ "kind": "field",
101321
+ "name": "rel",
101322
+ "type": {
101323
+ "text": "string"
100998
101324
  },
101325
+ "privacy": "public",
100999
101326
  "default": "''",
101000
- "description": "Value of the form element.",
101001
- "attribute": "value"
101327
+ "description": "The relationship of the linked URL as space-separated link types.",
101328
+ "attribute": "rel",
101329
+ "reflects": true,
101330
+ "inheritedFrom": {
101331
+ "name": "SbbLinkBaseElement",
101332
+ "module": "core/base-elements/link-base-element.js"
101333
+ }
101002
101334
  },
101003
101335
  {
101004
101336
  "kind": "field",
101005
- "name": "type",
101006
- "privacy": "public",
101007
- "description": "The type attribute to use for the button.",
101008
- "default": "'button'",
101337
+ "name": "download",
101009
101338
  "type": {
101010
- "text": "SbbButtonType"
101339
+ "text": "boolean"
101011
101340
  },
101012
- "attribute": "type",
101341
+ "privacy": "public",
101342
+ "default": "false",
101343
+ "description": "Whether the browser will show the download dialog on click.",
101344
+ "attribute": "download",
101345
+ "reflects": true,
101013
101346
  "inheritedFrom": {
101014
- "name": "SbbButtonBaseElement",
101015
- "module": "core/base-elements/button-base-element.js"
101347
+ "name": "SbbLinkBaseElement",
101348
+ "module": "core/base-elements/link-base-element.js"
101016
101349
  }
101017
101350
  },
101018
101351
  {
101019
101352
  "kind": "field",
101020
- "name": "form",
101353
+ "name": "accessibilityLabel",
101021
101354
  "type": {
101022
- "text": "HTMLFormElement | null"
101355
+ "text": "string"
101023
101356
  },
101024
101357
  "privacy": "public",
101025
- "description": "The `<form>` element to associate the button with.",
101358
+ "default": "''",
101359
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101360
+ "attribute": "accessibility-label",
101026
101361
  "inheritedFrom": {
101027
- "name": "SbbButtonBaseElement",
101028
- "module": "core/base-elements/button-base-element.js"
101029
- },
101030
- "attribute": "form"
101362
+ "name": "SbbLinkBaseElement",
101363
+ "module": "core/base-elements/link-base-element.js"
101364
+ }
101031
101365
  },
101032
101366
  {
101033
101367
  "kind": "field",
101034
- "name": "_formId",
101368
+ "name": "accessibilityCurrent",
101035
101369
  "type": {
101036
101370
  "text": "string"
101037
101371
  },
101038
- "privacy": "private",
101372
+ "privacy": "public",
101039
101373
  "default": "''",
101374
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101375
+ "attribute": "accessibility-current",
101040
101376
  "inheritedFrom": {
101041
- "name": "SbbButtonBaseElement",
101042
- "module": "core/base-elements/button-base-element.js"
101377
+ "name": "SbbLinkBaseElement",
101378
+ "module": "core/base-elements/link-base-element.js"
101043
101379
  }
101044
101380
  },
101045
101381
  {
101046
101382
  "kind": "field",
101047
- "name": "_handleButtonClick",
101048
- "privacy": "private",
101383
+ "name": "language",
101384
+ "privacy": "protected",
101385
+ "default": "new SbbLanguageController(this)",
101049
101386
  "inheritedFrom": {
101050
- "name": "SbbButtonBaseElement",
101051
- "module": "core/base-elements/button-base-element.js"
101387
+ "name": "SbbLinkBaseElement",
101388
+ "module": "core/base-elements/link-base-element.js"
101052
101389
  }
101053
101390
  },
101054
101391
  {
101055
- "kind": "method",
101056
- "name": "_requestSubmit",
101057
- "privacy": "private",
101058
- "return": {
101059
- "type": {
101060
- "text": "void"
101061
- }
101392
+ "kind": "field",
101393
+ "name": "anchorRole",
101394
+ "type": {
101395
+ "text": "string | null"
101062
101396
  },
101063
- "parameters": [
101064
- {
101065
- "name": "form",
101066
- "type": {
101067
- "text": "HTMLFormElement"
101068
- }
101069
- }
101070
- ],
101397
+ "privacy": "protected",
101398
+ "readonly": true,
101399
+ "default": "null",
101071
101400
  "inheritedFrom": {
101072
- "name": "SbbButtonBaseElement",
101073
- "module": "core/base-elements/button-base-element.js"
101401
+ "name": "SbbLinkBaseElement",
101402
+ "module": "core/base-elements/link-base-element.js"
101074
101403
  }
101075
101404
  },
101076
101405
  {
101077
101406
  "kind": "field",
101078
- "name": "_formKeyDown",
101407
+ "name": "_evaluateRelAttribute",
101079
101408
  "privacy": "private",
101080
101409
  "inheritedFrom": {
101081
- "name": "SbbButtonBaseElement",
101082
- "module": "core/base-elements/button-base-element.js"
101410
+ "name": "SbbLinkBaseElement",
101411
+ "module": "core/base-elements/link-base-element.js"
101083
101412
  }
101084
101413
  },
101085
101414
  {
101086
- "kind": "field",
101087
- "name": "formAssociated",
101088
- "type": {
101089
- "text": "boolean"
101415
+ "kind": "method",
101416
+ "name": "renderLink",
101417
+ "privacy": "protected",
101418
+ "return": {
101419
+ "type": {
101420
+ "text": "TemplateResult"
101421
+ }
101090
101422
  },
101091
- "privacy": "public",
101092
- "static": true,
101093
- "default": "true",
101423
+ "parameters": [
101424
+ {
101425
+ "name": "renderContent",
101426
+ "type": {
101427
+ "text": "TemplateResult"
101428
+ }
101429
+ }
101430
+ ],
101094
101431
  "inheritedFrom": {
101095
- "name": "SbbFormAssociatedMixin",
101096
- "module": "core/mixins/form-associated-mixin.js"
101432
+ "name": "SbbLinkBaseElement",
101433
+ "module": "core/base-elements/link-base-element.js"
101097
101434
  }
101098
101435
  },
101099
101436
  {
101100
101437
  "kind": "field",
101101
- "name": "name",
101102
- "privacy": "public",
101103
- "description": "Name of the form element. Will be read from name attribute.",
101438
+ "name": "maybeDisabled",
101104
101439
  "type": {
101105
- "text": "string"
101440
+ "text": "boolean | undefined"
101106
101441
  },
101107
- "attribute": "name",
101442
+ "privacy": "protected",
101443
+ "readonly": true,
101108
101444
  "inheritedFrom": {
101109
- "name": "SbbFormAssociatedMixin",
101110
- "module": "core/mixins/form-associated-mixin.js"
101445
+ "name": "SbbActionBaseElement",
101446
+ "module": "core/base-elements/action-base-element.js"
101111
101447
  }
101112
101448
  },
101113
101449
  {
101114
101450
  "kind": "field",
101115
- "name": "validity",
101451
+ "name": "maybeDisabledInteractive",
101116
101452
  "type": {
101117
- "text": "ValidityState"
101453
+ "text": "boolean | undefined"
101118
101454
  },
101119
- "privacy": "public",
101120
- "description": "Returns the ValidityState object for this element.",
101455
+ "privacy": "protected",
101121
101456
  "readonly": true,
101122
101457
  "inheritedFrom": {
101123
- "name": "SbbFormAssociatedMixin",
101124
- "module": "core/mixins/form-associated-mixin.js"
101458
+ "name": "SbbActionBaseElement",
101459
+ "module": "core/base-elements/action-base-element.js"
101125
101460
  }
101126
101461
  },
101127
101462
  {
101128
- "kind": "field",
101129
- "name": "validationMessage",
101130
- "type": {
101131
- "text": "string"
101463
+ "kind": "method",
101464
+ "name": "setupBaseEventHandlers",
101465
+ "privacy": "protected",
101466
+ "return": {
101467
+ "type": {
101468
+ "text": "void"
101469
+ }
101132
101470
  },
101133
- "privacy": "public",
101134
- "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.",
101135
- "readonly": true,
101136
101471
  "inheritedFrom": {
101137
- "name": "SbbFormAssociatedMixin",
101138
- "module": "core/mixins/form-associated-mixin.js"
101472
+ "name": "SbbActionBaseElement",
101473
+ "module": "core/base-elements/action-base-element.js"
101139
101474
  }
101140
101475
  },
101141
101476
  {
101142
101477
  "kind": "field",
101143
- "name": "willValidate",
101478
+ "name": "_hydrationRequired",
101144
101479
  "type": {
101145
101480
  "text": "boolean"
101146
101481
  },
101147
- "privacy": "public",
101148
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101149
- "readonly": true,
101482
+ "privacy": "private",
101483
+ "default": "!!this.shadowRoot",
101150
101484
  "inheritedFrom": {
101151
- "name": "SbbFormAssociatedMixin",
101152
- "module": "core/mixins/form-associated-mixin.js"
101485
+ "name": "SbbElement",
101486
+ "module": "core/base-elements/element.js"
101153
101487
  }
101154
101488
  },
101155
101489
  {
101156
101490
  "kind": "field",
101157
- "name": "_validityStates",
101491
+ "name": "_hydrationComplete",
101158
101492
  "privacy": "private",
101159
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101493
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101160
101494
  "inheritedFrom": {
101161
- "name": "SbbFormAssociatedMixin",
101162
- "module": "core/mixins/form-associated-mixin.js"
101495
+ "name": "SbbElement",
101496
+ "module": "core/base-elements/element.js"
101163
101497
  }
101164
101498
  },
101165
101499
  {
101166
101500
  "kind": "field",
101167
- "name": "formDisabled",
101501
+ "name": "_resolveHydration",
101168
101502
  "type": {
101169
- "text": "boolean"
101503
+ "text": "(hydrationRequired: boolean) => void"
101170
101504
  },
101171
- "privacy": "protected",
101172
- "default": "false",
101173
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101505
+ "privacy": "private",
101174
101506
  "inheritedFrom": {
101175
- "name": "SbbFormAssociatedMixin",
101176
- "module": "core/mixins/form-associated-mixin.js"
101507
+ "name": "SbbElement",
101508
+ "module": "core/base-elements/element.js"
101177
101509
  }
101178
101510
  },
101179
101511
  {
101180
- "kind": "method",
101181
- "name": "checkValidity",
101182
- "privacy": "public",
101183
- "return": {
101184
- "type": {
101185
- "text": "boolean"
101186
- }
101512
+ "kind": "field",
101513
+ "name": "hydrationRequired",
101514
+ "type": {
101515
+ "text": "boolean"
101187
101516
  },
101188
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101517
+ "privacy": "protected",
101518
+ "description": "Returns whether hydration is required and not completed.",
101519
+ "readonly": true,
101189
101520
  "inheritedFrom": {
101190
- "name": "SbbFormAssociatedMixin",
101191
- "module": "core/mixins/form-associated-mixin.js"
101192
- }
101193
- },
101194
- {
101195
- "kind": "method",
101196
- "name": "reportValidity",
101197
- "privacy": "public",
101198
- "return": {
101199
- "type": {
101200
- "text": "boolean"
101201
- }
101521
+ "name": "SbbElement",
101522
+ "module": "core/base-elements/element.js"
101202
101523
  },
101203
- "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.",
101204
- "inheritedFrom": {
101205
- "name": "SbbFormAssociatedMixin",
101206
- "module": "core/mixins/form-associated-mixin.js"
101207
- }
101524
+ "default": "!!this.shadowRoot"
101208
101525
  },
101209
101526
  {
101210
101527
  "kind": "method",
101211
- "name": "setCustomValidity",
101212
- "privacy": "public",
101528
+ "name": "toggleState",
101529
+ "privacy": "protected",
101213
101530
  "return": {
101214
101531
  "type": {
101215
101532
  "text": "void"
@@ -101217,513 +101534,196 @@
101217
101534
  },
101218
101535
  "parameters": [
101219
101536
  {
101220
- "name": "message",
101537
+ "name": "value",
101221
101538
  "type": {
101222
101539
  "text": "string"
101223
101540
  }
101541
+ },
101542
+ {
101543
+ "name": "force",
101544
+ "optional": true,
101545
+ "type": {
101546
+ "text": "boolean"
101547
+ }
101224
101548
  }
101225
101549
  ],
101226
- "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.",
101227
101550
  "inheritedFrom": {
101228
- "name": "SbbFormAssociatedMixin",
101229
- "module": "core/mixins/form-associated-mixin.js"
101551
+ "name": "SbbElement",
101552
+ "module": "core/base-elements/element.js"
101230
101553
  }
101231
101554
  },
101232
101555
  {
101233
- "kind": "method",
101234
- "name": "_hasDisabledAncestor",
101235
- "privacy": "private",
101236
- "return": {
101237
- "type": {
101238
- "text": "boolean"
101239
- }
101556
+ "kind": "field",
101557
+ "name": "['_$sbbElement$']",
101558
+ "type": {
101559
+ "text": "boolean"
101240
101560
  },
101561
+ "privacy": "public",
101562
+ "static": true,
101563
+ "default": "true",
101241
101564
  "inheritedFrom": {
101242
- "name": "SbbFormAssociatedMixin",
101243
- "module": "core/mixins/form-associated-mixin.js"
101565
+ "name": "SbbElement",
101566
+ "module": "core/base-elements/element.js"
101244
101567
  }
101245
101568
  },
101246
101569
  {
101247
- "kind": "method",
101248
- "name": "updateFormValue",
101249
- "privacy": "protected",
101250
- "return": {
101251
- "type": {
101252
- "text": "void"
101253
- }
101570
+ "kind": "field",
101571
+ "name": "_controllers",
101572
+ "type": {
101573
+ "text": "Set<SbbReactiveController> | undefined"
101254
101574
  },
101255
- "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",
101575
+ "privacy": "private",
101256
101576
  "inheritedFrom": {
101257
- "name": "SbbFormAssociatedMixin",
101258
- "module": "core/mixins/form-associated-mixin.js"
101577
+ "name": "SbbElement",
101578
+ "module": "core/base-elements/element.js"
101259
101579
  }
101580
+ }
101581
+ ],
101582
+ "mixins": [
101583
+ {
101584
+ "name": "SbbBlockLinkCommonElementMixin",
101585
+ "module": "link/common/block-link-common.js"
101260
101586
  },
101261
101587
  {
101262
- "kind": "method",
101263
- "name": "formState",
101264
- "privacy": "protected",
101265
- "return": {
101266
- "type": {
101267
- "text": "FormRestoreState"
101268
- }
101588
+ "name": "SbbDisabledMixin",
101589
+ "module": "core/mixins.js"
101590
+ }
101591
+ ],
101592
+ "superclass": {
101593
+ "name": "SbbLinkBaseElement",
101594
+ "module": "core/base-elements.js"
101595
+ },
101596
+ "tagName": "sbb-block-link",
101597
+ "customElement": true,
101598
+ "attributes": [
101599
+ {
101600
+ "name": "icon-placement",
101601
+ "type": {
101602
+ "text": "SbbIconPlacement"
101269
101603
  },
101604
+ "default": "'start'",
101605
+ "description": "Moves the icon to the end of the component if set to true.",
101606
+ "fieldName": "iconPlacement",
101270
101607
  "inheritedFrom": {
101271
- "name": "SbbFormAssociatedMixin",
101272
- "module": "core/mixins/form-associated-mixin.js"
101608
+ "name": "SbbBlockLinkCommonElementMixin",
101609
+ "module": "link/common/block-link-common.js"
101273
101610
  }
101274
101611
  },
101275
101612
  {
101276
- "kind": "method",
101277
- "name": "setValidityFlag",
101278
- "privacy": "protected",
101279
- "return": {
101280
- "type": {
101281
- "text": "void"
101282
- }
101613
+ "name": "size",
101614
+ "type": {
101615
+ "text": "SbbLinkSize"
101283
101616
  },
101284
- "parameters": [
101285
- {
101286
- "name": "flag",
101287
- "type": {
101288
- "text": "T"
101289
- }
101290
- },
101291
- {
101292
- "name": "message",
101293
- "type": {
101294
- "text": "string"
101295
- }
101296
- },
101297
- {
101298
- "name": "flagValue",
101299
- "optional": true,
101300
- "type": {
101301
- "text": "ValidityStateFlags[T]"
101302
- }
101303
- }
101304
- ],
101305
- "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).",
101617
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101618
+ "default": "'s' / 'xs' (lean)",
101619
+ "fieldName": "size",
101306
101620
  "inheritedFrom": {
101307
- "name": "SbbFormAssociatedMixin",
101308
- "module": "core/mixins/form-associated-mixin.js"
101621
+ "name": "SbbLinkCommonElementMixin",
101622
+ "module": "link/common/link-common.js"
101309
101623
  }
101310
101624
  },
101311
101625
  {
101312
- "kind": "method",
101313
- "name": "removeValidityFlag",
101314
- "privacy": "protected",
101315
- "return": {
101316
- "type": {
101317
- "text": "void"
101318
- }
101626
+ "name": "icon-name",
101627
+ "type": {
101628
+ "text": "string"
101319
101629
  },
101320
- "parameters": [
101321
- {
101322
- "name": "flag",
101323
- "type": {
101324
- "text": "T"
101325
- }
101326
- }
101327
- ],
101328
- "description": "Removes the validity state flag entry and updates validity state.",
101630
+ "default": "''",
101631
+ "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.",
101632
+ "fieldName": "iconName",
101329
101633
  "inheritedFrom": {
101330
- "name": "SbbFormAssociatedMixin",
101331
- "module": "core/mixins/form-associated-mixin.js"
101634
+ "name": "SbbIconNameMixin",
101635
+ "module": "icon/icon-name-mixin.js"
101332
101636
  }
101333
101637
  },
101334
101638
  {
101335
- "kind": "method",
101336
- "name": "validate",
101337
- "privacy": "protected",
101338
- "return": {
101339
- "type": {
101340
- "text": "void"
101341
- }
101342
- },
101343
- "description": "To be called whenever the current element needs to be validated.",
101344
- "inheritedFrom": {
101345
- "name": "SbbFormAssociatedMixin",
101346
- "module": "core/mixins/form-associated-mixin.js"
101347
- }
101348
- },
101349
- {
101350
- "kind": "method",
101351
- "name": "shouldValidate",
101352
- "privacy": "protected",
101353
- "return": {
101354
- "type": {
101355
- "text": "boolean"
101356
- }
101357
- },
101358
- "parameters": [
101359
- {
101360
- "name": "name",
101361
- "type": {
101362
- "text": "PropertyKey | undefined"
101363
- }
101364
- }
101365
- ],
101366
- "description": "Whether validation should be run on a property change with the given name.",
101367
- "inheritedFrom": {
101368
- "name": "SbbFormAssociatedMixin",
101369
- "module": "core/mixins/form-associated-mixin.js"
101370
- }
101371
- },
101372
- {
101373
- "kind": "method",
101374
- "name": "_setInternalValidity",
101375
- "privacy": "private",
101376
- "return": {
101377
- "type": {
101378
- "text": "void"
101379
- }
101380
- },
101381
- "inheritedFrom": {
101382
- "name": "SbbFormAssociatedMixin",
101383
- "module": "core/mixins/form-associated-mixin.js"
101384
- }
101385
- },
101386
- {
101387
- "kind": "field",
101388
- "name": "role",
101389
- "type": {
101390
- "text": "ElementInternals['role']"
101391
- },
101392
- "privacy": "public",
101393
- "static": true,
101394
- "readonly": true,
101395
- "default": "'button'",
101396
- "inheritedFrom": {
101397
- "name": "SbbButtonLikeBaseElement",
101398
- "module": "core/base-elements/button-base-element.js"
101399
- }
101400
- },
101401
- {
101402
- "kind": "field",
101403
- "name": "_preventScrollOnSpaceKeydown",
101404
- "privacy": "private",
101405
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101406
- "parameters": [
101407
- {
101408
- "description": "The origin event.",
101409
- "name": "event"
101410
- }
101411
- ],
101412
- "inheritedFrom": {
101413
- "name": "SbbButtonLikeBaseElement",
101414
- "module": "core/base-elements/button-base-element.js"
101415
- }
101416
- },
101417
- {
101418
- "kind": "field",
101419
- "name": "_removeActiveMarker",
101420
- "privacy": "private",
101421
- "inheritedFrom": {
101422
- "name": "SbbButtonLikeBaseElement",
101423
- "module": "core/base-elements/button-base-element.js"
101424
- }
101425
- },
101426
- {
101427
- "kind": "field",
101428
- "name": "_dispatchClickEventOnSpaceKeyup",
101429
- "privacy": "private",
101430
- "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.",
101431
- "parameters": [
101432
- {
101433
- "description": "The origin event.",
101434
- "name": "event"
101435
- }
101436
- ],
101437
- "inheritedFrom": {
101438
- "name": "SbbButtonLikeBaseElement",
101439
- "module": "core/base-elements/button-base-element.js"
101440
- }
101441
- },
101442
- {
101443
- "kind": "field",
101444
- "name": "_dispatchClickEvent",
101445
- "privacy": "private",
101446
- "inheritedFrom": {
101447
- "name": "SbbButtonLikeBaseElement",
101448
- "module": "core/base-elements/button-base-element.js"
101449
- }
101450
- },
101451
- {
101452
- "kind": "field",
101453
- "name": "maybeDisabled",
101454
- "type": {
101455
- "text": "boolean | undefined"
101456
- },
101457
- "privacy": "protected",
101458
- "readonly": true,
101459
- "inheritedFrom": {
101460
- "name": "SbbActionBaseElement",
101461
- "module": "core/base-elements/action-base-element.js"
101462
- }
101463
- },
101464
- {
101465
- "kind": "field",
101466
- "name": "maybeDisabledInteractive",
101467
- "type": {
101468
- "text": "boolean | undefined"
101469
- },
101470
- "privacy": "protected",
101471
- "readonly": true,
101472
- "inheritedFrom": {
101473
- "name": "SbbActionBaseElement",
101474
- "module": "core/base-elements/action-base-element.js"
101475
- }
101476
- },
101477
- {
101478
- "kind": "method",
101479
- "name": "setupBaseEventHandlers",
101480
- "privacy": "protected",
101481
- "return": {
101482
- "type": {
101483
- "text": "void"
101484
- }
101485
- },
101486
- "inheritedFrom": {
101487
- "name": "SbbActionBaseElement",
101488
- "module": "core/base-elements/action-base-element.js"
101489
- }
101490
- },
101491
- {
101492
- "kind": "field",
101493
- "name": "_hydrationRequired",
101494
- "type": {
101495
- "text": "boolean"
101496
- },
101497
- "privacy": "private",
101498
- "default": "!!this.shadowRoot",
101499
- "inheritedFrom": {
101500
- "name": "SbbElement",
101501
- "module": "core/base-elements/element.js"
101502
- }
101503
- },
101504
- {
101505
- "kind": "field",
101506
- "name": "_hydrationComplete",
101507
- "privacy": "private",
101508
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101509
- "inheritedFrom": {
101510
- "name": "SbbElement",
101511
- "module": "core/base-elements/element.js"
101512
- }
101513
- },
101514
- {
101515
- "kind": "field",
101516
- "name": "_resolveHydration",
101517
- "type": {
101518
- "text": "(hydrationRequired: boolean) => void"
101519
- },
101520
- "privacy": "private",
101521
- "inheritedFrom": {
101522
- "name": "SbbElement",
101523
- "module": "core/base-elements/element.js"
101524
- }
101525
- },
101526
- {
101527
- "kind": "field",
101528
- "name": "hydrationRequired",
101529
- "type": {
101530
- "text": "boolean"
101531
- },
101532
- "privacy": "protected",
101533
- "description": "Returns whether hydration is required and not completed.",
101534
- "readonly": true,
101535
- "inheritedFrom": {
101536
- "name": "SbbElement",
101537
- "module": "core/base-elements/element.js"
101538
- },
101539
- "default": "!!this.shadowRoot"
101540
- },
101541
- {
101542
- "kind": "method",
101543
- "name": "toggleState",
101544
- "privacy": "protected",
101545
- "return": {
101546
- "type": {
101547
- "text": "void"
101548
- }
101549
- },
101550
- "parameters": [
101551
- {
101552
- "name": "value",
101553
- "type": {
101554
- "text": "string"
101555
- }
101556
- },
101557
- {
101558
- "name": "force",
101559
- "optional": true,
101560
- "type": {
101561
- "text": "boolean"
101562
- }
101563
- }
101564
- ],
101565
- "inheritedFrom": {
101566
- "name": "SbbElement",
101567
- "module": "core/base-elements/element.js"
101568
- }
101569
- },
101570
- {
101571
- "kind": "field",
101572
- "name": "['_$sbbElement$']",
101639
+ "name": "disabled",
101640
+ "description": "Whether the component is disabled.",
101641
+ "default": "false",
101573
101642
  "type": {
101574
101643
  "text": "boolean"
101575
101644
  },
101576
- "privacy": "public",
101577
- "static": true,
101578
- "default": "true",
101579
- "inheritedFrom": {
101580
- "name": "SbbElement",
101581
- "module": "core/base-elements/element.js"
101582
- }
101583
- },
101584
- {
101585
- "kind": "field",
101586
- "name": "_controllers",
101587
- "type": {
101588
- "text": "Set<SbbReactiveController> | undefined"
101589
- },
101590
- "privacy": "private",
101645
+ "fieldName": "disabled",
101591
101646
  "inheritedFrom": {
101592
- "name": "SbbElement",
101593
- "module": "core/base-elements/element.js"
101647
+ "name": "SbbDisabledMixin",
101648
+ "module": "core/mixins/disabled-mixin.js"
101594
101649
  }
101595
- }
101596
- ],
101597
- "mixins": [
101598
- {
101599
- "name": "SbbBlockLinkCommonElementMixin",
101600
- "module": "link/common/block-link-common.js"
101601
101650
  },
101602
101651
  {
101603
- "name": "SbbDisabledTabIndexActionMixin",
101604
- "module": "core/mixins.js"
101605
- }
101606
- ],
101607
- "superclass": {
101608
- "name": "SbbButtonBaseElement",
101609
- "module": "core/base-elements.js"
101610
- },
101611
- "tagName": "sbb-block-link-button",
101612
- "customElement": true,
101613
- "attributes": [
101614
- {
101615
- "name": "icon-placement",
101652
+ "name": "href",
101616
101653
  "type": {
101617
- "text": "SbbIconPlacement"
101654
+ "text": "string"
101618
101655
  },
101619
- "default": "'start'",
101620
- "description": "Moves the icon to the end of the component if set to true.",
101621
- "fieldName": "iconPlacement",
101656
+ "default": "''",
101657
+ "description": "The href value you want to link to.",
101658
+ "fieldName": "href",
101622
101659
  "inheritedFrom": {
101623
- "name": "SbbBlockLinkCommonElementMixin",
101624
- "module": "link/common/block-link-common.js"
101660
+ "name": "SbbLinkBaseElement",
101661
+ "module": "core/base-elements/link-base-element.js"
101625
101662
  }
101626
101663
  },
101627
101664
  {
101628
- "name": "size",
101665
+ "name": "target",
101629
101666
  "type": {
101630
- "text": "SbbLinkSize"
101667
+ "text": "LinkTargetType | string"
101631
101668
  },
101632
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101633
- "default": "'s' / 'xs' (lean)",
101634
- "fieldName": "size",
101669
+ "default": "''",
101670
+ "description": "Where to display the linked URL.",
101671
+ "fieldName": "target",
101635
101672
  "inheritedFrom": {
101636
- "name": "SbbLinkCommonElementMixin",
101637
- "module": "link/common/link-common.js"
101673
+ "name": "SbbLinkBaseElement",
101674
+ "module": "core/base-elements/link-base-element.js"
101638
101675
  }
101639
101676
  },
101640
101677
  {
101641
- "name": "icon-name",
101678
+ "name": "rel",
101642
101679
  "type": {
101643
101680
  "text": "string"
101644
101681
  },
101645
101682
  "default": "''",
101646
- "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.",
101647
- "fieldName": "iconName",
101683
+ "description": "The relationship of the linked URL as space-separated link types.",
101684
+ "fieldName": "rel",
101648
101685
  "inheritedFrom": {
101649
- "name": "SbbIconNameMixin",
101650
- "module": "icon/icon-name-mixin.js"
101686
+ "name": "SbbLinkBaseElement",
101687
+ "module": "core/base-elements/link-base-element.js"
101651
101688
  }
101652
101689
  },
101653
101690
  {
101654
- "name": "disabled-interactive",
101691
+ "name": "download",
101655
101692
  "type": {
101656
101693
  "text": "boolean"
101657
101694
  },
101658
101695
  "default": "false",
101659
- "description": "Whether the button should be aria-disabled but stay interactive.",
101660
- "fieldName": "disabledInteractive",
101661
- "inheritedFrom": {
101662
- "name": "SbbDisabledInteractiveMixin",
101663
- "module": "core/mixins/disabled-mixin.js"
101664
- }
101665
- },
101666
- {
101667
- "name": "disabled",
101668
- "description": "Whether the component is disabled.",
101669
- "default": "false",
101670
- "type": {
101671
- "text": "boolean"
101672
- },
101673
- "fieldName": "disabled",
101696
+ "description": "Whether the browser will show the download dialog on click.",
101697
+ "fieldName": "download",
101674
101698
  "inheritedFrom": {
101675
- "name": "SbbDisabledMixin",
101676
- "module": "core/mixins/disabled-mixin.js"
101699
+ "name": "SbbLinkBaseElement",
101700
+ "module": "core/base-elements/link-base-element.js"
101677
101701
  }
101678
101702
  },
101679
101703
  {
101680
- "name": "value",
101704
+ "name": "accessibility-label",
101681
101705
  "type": {
101682
101706
  "text": "string"
101683
101707
  },
101684
101708
  "default": "''",
101685
- "description": "Value of the form element.",
101686
- "fieldName": "value",
101687
- "inheritedFrom": {
101688
- "name": "SbbButtonBaseElement",
101689
- "module": "core/base-elements/button-base-element.js"
101690
- }
101691
- },
101692
- {
101693
- "name": "type",
101694
- "description": "The type attribute to use for the button.",
101695
- "default": "'button'",
101696
- "type": {
101697
- "text": "SbbButtonType"
101698
- },
101699
- "fieldName": "type",
101700
- "inheritedFrom": {
101701
- "name": "SbbButtonBaseElement",
101702
- "module": "core/base-elements/button-base-element.js"
101703
- }
101704
- },
101705
- {
101706
- "name": "form",
101707
- "description": "The `<form>` element to associate the button with.",
101708
- "type": {
101709
- "text": "HTMLFormElement | null"
101710
- },
101711
- "fieldName": "form",
101709
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101710
+ "fieldName": "accessibilityLabel",
101712
101711
  "inheritedFrom": {
101713
- "name": "SbbButtonBaseElement",
101714
- "module": "core/base-elements/button-base-element.js"
101712
+ "name": "SbbLinkBaseElement",
101713
+ "module": "core/base-elements/link-base-element.js"
101715
101714
  }
101716
101715
  },
101717
101716
  {
101718
- "name": "name",
101719
- "description": "Name of the form element. Will be read from name attribute.",
101717
+ "name": "accessibility-current",
101720
101718
  "type": {
101721
101719
  "text": "string"
101722
101720
  },
101723
- "fieldName": "name",
101721
+ "default": "''",
101722
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101723
+ "fieldName": "accessibilityCurrent",
101724
101724
  "inheritedFrom": {
101725
- "name": "SbbFormAssociatedMixin",
101726
- "module": "core/mixins/form-associated-mixin.js"
101725
+ "name": "SbbLinkBaseElement",
101726
+ "module": "core/base-elements/link-base-element.js"
101727
101727
  }
101728
101728
  }
101729
101729
  ]
@@ -101732,10 +101732,10 @@
101732
101732
  "exports": [
101733
101733
  {
101734
101734
  "kind": "js",
101735
- "name": "SbbBlockLinkButtonElement",
101735
+ "name": "SbbBlockLinkElement",
101736
101736
  "declaration": {
101737
- "name": "SbbBlockLinkButtonElement",
101738
- "module": "link/block-link-button/block-link-button.component.js"
101737
+ "name": "SbbBlockLinkElement",
101738
+ "module": "link/block-link/block-link.component.js"
101739
101739
  }
101740
101740
  }
101741
101741
  ]
@@ -122873,334 +122873,577 @@
122873
122873
  },
122874
122874
  {
122875
122875
  "kind": "javascript-module",
122876
- "path": "stepper/stepper/stepper.component.js",
122876
+ "path": "stepper/step-label/step-label.component.js",
122877
122877
  "declarations": [
122878
122878
  {
122879
122879
  "kind": "class",
122880
- "description": "",
122881
- "name": "SbbStepChangeEvent",
122880
+ "description": "Combined with a `sbb-stepper`, it displays a step's label.",
122881
+ "name": "SbbStepLabelElement",
122882
+ "slots": [
122883
+ {
122884
+ "description": "Use the unnamed slot to provide a label.",
122885
+ "name": ""
122886
+ },
122887
+ {
122888
+ "description": "Use this to display an icon in the label bubble.",
122889
+ "name": "icon"
122890
+ }
122891
+ ],
122882
122892
  "members": [
122883
122893
  {
122884
122894
  "kind": "field",
122885
- "name": "selectedIndex",
122895
+ "name": "elementName",
122886
122896
  "type": {
122887
- "text": "number | null"
122897
+ "text": "string"
122888
122898
  },
122889
122899
  "privacy": "public",
122900
+ "static": true,
122890
122901
  "readonly": true,
122891
- "description": "The index of the newly selected step.",
122892
- "default": "selectedIndex"
122902
+ "inheritedFrom": {
122903
+ "name": "SbbElement",
122904
+ "module": "core/base-elements/element.js"
122905
+ },
122906
+ "default": "'sbb-step-label'"
122893
122907
  },
122894
122908
  {
122895
122909
  "kind": "field",
122896
- "name": "previousIndex",
122910
+ "name": "role",
122897
122911
  "type": {
122898
- "text": "number | null"
122912
+ "text": "string"
122899
122913
  },
122900
122914
  "privacy": "public",
122915
+ "static": true,
122901
122916
  "readonly": true,
122902
- "description": "The index of the previously selected step.",
122903
- "default": "previousIndex"
122917
+ "default": "'tab'",
122918
+ "inheritedFrom": {
122919
+ "name": "SbbButtonLikeBaseElement",
122920
+ "module": "core/base-elements/button-base-element.js"
122921
+ }
122904
122922
  },
122905
122923
  {
122906
122924
  "kind": "field",
122907
- "name": "selectedStep",
122925
+ "name": "step",
122908
122926
  "type": {
122909
122927
  "text": "SbbStepElement | null"
122910
122928
  },
122911
122929
  "privacy": "public",
122930
+ "description": "The step controlled by the label.",
122912
122931
  "readonly": true,
122913
- "description": "The newly selected step element.",
122914
- "default": "selectedStep"
122932
+ "default": "null"
122915
122933
  },
122916
122934
  {
122917
122935
  "kind": "field",
122918
- "name": "previousStep",
122936
+ "name": "_step",
122919
122937
  "type": {
122920
122938
  "text": "SbbStepElement | null"
122921
122939
  },
122940
+ "privacy": "private",
122941
+ "default": "null"
122942
+ },
122943
+ {
122944
+ "kind": "field",
122945
+ "name": "stepper",
122946
+ "type": {
122947
+ "text": "SbbStepperElement | null"
122948
+ },
122922
122949
  "privacy": "public",
122923
- "readonly": true,
122924
- "description": "The previously selected step element.",
122925
- "default": "previousStep"
122926
- }
122927
- ],
122928
- "superclass": {
122929
- "name": "Event",
122930
- "module": "stepper/stepper/stepper.component.js"
122931
- }
122932
- },
122933
- {
122934
- "kind": "class",
122935
- "description": "Provides a structured, step-by-step workflow for user interactions.",
122936
- "name": "SbbStepperElement",
122937
- "slots": [
122950
+ "readonly": true
122951
+ },
122938
122952
  {
122939
- "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
122940
- "name": ""
122953
+ "kind": "field",
122954
+ "name": "disabled",
122955
+ "privacy": "public",
122956
+ "description": "Whether the component is disabled.",
122957
+ "default": "false",
122958
+ "type": {
122959
+ "text": "boolean"
122960
+ },
122961
+ "attribute": "disabled",
122962
+ "reflects": true,
122963
+ "inheritedFrom": {
122964
+ "name": "SbbDisabledMixin",
122965
+ "module": "core/mixins/disabled-mixin.js"
122966
+ }
122941
122967
  },
122942
122968
  {
122943
- "description": "Use this slot to provide an `sbb-step-label`.",
122944
- "name": "step-label"
122969
+ "kind": "field",
122970
+ "name": "_previousOrientation",
122971
+ "type": {
122972
+ "text": "string | undefined"
122973
+ },
122974
+ "privacy": "private"
122945
122975
  },
122946
122976
  {
122947
- "description": "Use this slot to provide an `sbb-step`.",
122948
- "name": "step"
122949
- }
122950
- ],
122951
- "members": [
122977
+ "kind": "field",
122978
+ "name": "_previousSize",
122979
+ "type": {
122980
+ "text": "string | undefined"
122981
+ },
122982
+ "privacy": "private"
122983
+ },
122984
+ {
122985
+ "kind": "method",
122986
+ "name": "_isNotDeactivatedByLinearMode",
122987
+ "privacy": "private",
122988
+ "return": {
122989
+ "type": {
122990
+ "text": "boolean"
122991
+ }
122992
+ },
122993
+ "parameters": [
122994
+ {
122995
+ "name": "step",
122996
+ "type": {
122997
+ "text": "SbbStepElement"
122998
+ }
122999
+ }
123000
+ ]
123001
+ },
123002
+ {
123003
+ "kind": "method",
123004
+ "name": "_assignStep",
123005
+ "privacy": "private",
123006
+ "return": {
123007
+ "type": {
123008
+ "text": "void"
123009
+ }
123010
+ }
123011
+ },
122952
123012
  {
122953
123013
  "kind": "field",
122954
- "name": "elementName",
123014
+ "name": "iconName",
122955
123015
  "type": {
122956
123016
  "text": "string"
122957
123017
  },
122958
123018
  "privacy": "public",
122959
- "static": true,
122960
- "readonly": true,
122961
- "default": "'sbb-stepper'",
123019
+ "default": "''",
123020
+ "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.",
123021
+ "attribute": "icon-name",
122962
123022
  "inheritedFrom": {
122963
- "name": "SbbElement",
122964
- "module": "core/base-elements/element.js"
123023
+ "name": "SbbIconNameMixin",
123024
+ "module": "icon/icon-name-mixin.js"
122965
123025
  }
122966
123026
  },
122967
123027
  {
122968
- "kind": "field",
122969
- "name": "events",
122970
- "privacy": "public",
122971
- "static": true,
122972
- "readonly": true,
122973
- "default": "{ stepchange: 'stepchange', }",
122974
- "type": {
122975
- "text": "{\n stepchange: 'stepchange',\n }"
123028
+ "kind": "method",
123029
+ "name": "renderIconSlot",
123030
+ "privacy": "protected",
123031
+ "return": {
123032
+ "type": {
123033
+ "text": "TemplateResult"
123034
+ }
123035
+ },
123036
+ "parameters": [
123037
+ {
123038
+ "name": "classname",
123039
+ "optional": true,
123040
+ "type": {
123041
+ "text": "string"
123042
+ }
123043
+ }
123044
+ ],
123045
+ "inheritedFrom": {
123046
+ "name": "SbbIconNameMixin",
123047
+ "module": "icon/icon-name-mixin.js"
122976
123048
  }
122977
123049
  },
122978
123050
  {
122979
- "kind": "field",
122980
- "name": "_observer",
123051
+ "kind": "method",
123052
+ "name": "renderIconName",
123053
+ "privacy": "protected",
123054
+ "return": {
123055
+ "type": {
123056
+ "text": "string"
123057
+ }
123058
+ },
123059
+ "inheritedFrom": {
123060
+ "name": "SbbIconNameMixin",
123061
+ "module": "icon/icon-name-mixin.js"
123062
+ }
123063
+ },
123064
+ {
123065
+ "kind": "method",
123066
+ "name": "_renderIconName",
122981
123067
  "privacy": "private",
122982
- "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
122983
- "description": "If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,\nbecause the calculations are done when the dialog is closed, so the marker has a width of 0;\nthe same happens for the stepper height.\nWe need to recalculate it when the element becomes visible."
123068
+ "return": {
123069
+ "type": {
123070
+ "text": "string"
123071
+ }
123072
+ },
123073
+ "inheritedFrom": {
123074
+ "name": "SbbIconNameMixin",
123075
+ "module": "icon/icon-name-mixin.js"
123076
+ }
122984
123077
  },
122985
123078
  {
122986
123079
  "kind": "field",
122987
- "name": "linear",
123080
+ "name": "#disabled",
123081
+ "privacy": "private",
122988
123082
  "type": {
122989
123083
  "text": "boolean"
122990
123084
  },
122991
- "privacy": "public",
122992
123085
  "default": "false",
122993
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
122994
- "attribute": "linear"
123086
+ "inheritedFrom": {
123087
+ "name": "SbbDisabledMixin",
123088
+ "module": "core/mixins/disabled-mixin.js"
123089
+ }
122995
123090
  },
122996
123091
  {
122997
- "kind": "field",
122998
- "name": "horizontalFrom",
122999
- "privacy": "public",
123000
- "description": "Overrides the behavior of `orientation` property.",
123001
- "type": {
123002
- "text": "SbbHorizontalFrom | null"
123092
+ "kind": "method",
123093
+ "name": "isDisabledExternally",
123094
+ "privacy": "protected",
123095
+ "return": {
123096
+ "type": {
123097
+ "text": "boolean"
123098
+ }
123003
123099
  },
123004
- "attribute": "horizontal-from",
123005
- "reflects": true,
123006
- "default": "null"
123100
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
123101
+ "inheritedFrom": {
123102
+ "name": "SbbDisabledMixin",
123103
+ "module": "core/mixins/disabled-mixin.js"
123104
+ }
123007
123105
  },
123008
123106
  {
123009
123107
  "kind": "field",
123010
- "name": "_horizontalFrom",
123108
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
123011
123109
  "type": {
123012
- "text": "SbbHorizontalFrom | null"
123110
+ "text": "array"
123013
123111
  },
123014
123112
  "privacy": "private",
123015
- "default": "null"
123113
+ "readonly": true,
123114
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
123115
+ "inheritedFrom": {
123116
+ "name": "SbbButtonBaseElement",
123117
+ "module": "core/base-elements/button-base-element.js"
123118
+ }
123016
123119
  },
123017
123120
  {
123018
123121
  "kind": "field",
123019
- "name": "orientation",
123122
+ "name": "value",
123020
123123
  "type": {
123021
- "text": "SbbOrientation"
123124
+ "text": "string"
123022
123125
  },
123023
123126
  "privacy": "public",
123024
- "default": "'horizontal'",
123025
- "description": "Steps orientation, either horizontal or vertical.",
123026
- "attribute": "orientation",
123027
- "reflects": true
123127
+ "inheritedFrom": {
123128
+ "name": "SbbButtonBaseElement",
123129
+ "module": "core/base-elements/button-base-element.js"
123130
+ },
123131
+ "default": "''",
123132
+ "description": "Value of the form element.",
123133
+ "attribute": "value"
123028
123134
  },
123029
123135
  {
123030
123136
  "kind": "field",
123031
- "name": "size",
123137
+ "name": "type",
123138
+ "privacy": "public",
123139
+ "description": "The type attribute to use for the button.",
123140
+ "default": "'button'",
123032
123141
  "type": {
123033
- "text": "'s' | 'm'"
123142
+ "text": "SbbButtonType"
123034
123143
  },
123035
- "privacy": "public",
123036
- "description": "Size variant, either s or m.",
123037
- "default": "'m' / 's' (lean)",
123038
- "attribute": "size",
123039
- "reflects": true
123144
+ "attribute": "type",
123145
+ "inheritedFrom": {
123146
+ "name": "SbbButtonBaseElement",
123147
+ "module": "core/base-elements/button-base-element.js"
123148
+ }
123040
123149
  },
123041
123150
  {
123042
123151
  "kind": "field",
123043
- "name": "selected",
123152
+ "name": "form",
123153
+ "type": {
123154
+ "text": "HTMLFormElement | null"
123155
+ },
123044
123156
  "privacy": "public",
123045
- "description": "The currently selected step.",
123157
+ "description": "The `<form>` element to associate the button with.",
123158
+ "inheritedFrom": {
123159
+ "name": "SbbButtonBaseElement",
123160
+ "module": "core/base-elements/button-base-element.js"
123161
+ },
123162
+ "attribute": "form"
123163
+ },
123164
+ {
123165
+ "kind": "field",
123166
+ "name": "_formId",
123046
123167
  "type": {
123047
- "text": "SbbStepElement | null"
123168
+ "text": "string"
123169
+ },
123170
+ "privacy": "private",
123171
+ "default": "''",
123172
+ "inheritedFrom": {
123173
+ "name": "SbbButtonBaseElement",
123174
+ "module": "core/base-elements/button-base-element.js"
123048
123175
  }
123049
123176
  },
123050
123177
  {
123051
123178
  "kind": "field",
123052
- "name": "_requestedSelected",
123053
- "type": {
123054
- "text": "SbbStepElement | null"
123179
+ "name": "_handleButtonClick",
123180
+ "privacy": "private",
123181
+ "inheritedFrom": {
123182
+ "name": "SbbButtonBaseElement",
123183
+ "module": "core/base-elements/button-base-element.js"
123184
+ }
123185
+ },
123186
+ {
123187
+ "kind": "method",
123188
+ "name": "_requestSubmit",
123189
+ "privacy": "private",
123190
+ "return": {
123191
+ "type": {
123192
+ "text": "void"
123193
+ }
123055
123194
  },
123195
+ "parameters": [
123196
+ {
123197
+ "name": "form",
123198
+ "type": {
123199
+ "text": "HTMLFormElement"
123200
+ }
123201
+ }
123202
+ ],
123203
+ "inheritedFrom": {
123204
+ "name": "SbbButtonBaseElement",
123205
+ "module": "core/base-elements/button-base-element.js"
123206
+ }
123207
+ },
123208
+ {
123209
+ "kind": "field",
123210
+ "name": "_formKeyDown",
123056
123211
  "privacy": "private",
123057
- "default": "null"
123212
+ "inheritedFrom": {
123213
+ "name": "SbbButtonBaseElement",
123214
+ "module": "core/base-elements/button-base-element.js"
123215
+ }
123058
123216
  },
123059
123217
  {
123060
123218
  "kind": "field",
123061
- "name": "selectedIndex",
123062
- "privacy": "public",
123063
- "description": "The currently selected step index.",
123219
+ "name": "formAssociated",
123064
123220
  "type": {
123065
- "text": "number | null"
123221
+ "text": "boolean"
123066
123222
  },
123067
- "attribute": "selected-index"
123223
+ "privacy": "public",
123224
+ "static": true,
123225
+ "default": "true",
123226
+ "inheritedFrom": {
123227
+ "name": "SbbFormAssociatedMixin",
123228
+ "module": "core/mixins/form-associated-mixin.js"
123229
+ }
123068
123230
  },
123069
123231
  {
123070
123232
  "kind": "field",
123071
- "name": "_requestedSelectedIndex",
123233
+ "name": "name",
123234
+ "privacy": "public",
123235
+ "description": "Name of the form element. Will be read from name attribute.",
123072
123236
  "type": {
123073
- "text": "number | null"
123237
+ "text": "string"
123074
123238
  },
123075
- "privacy": "private",
123076
- "default": "null"
123239
+ "attribute": "name",
123240
+ "inheritedFrom": {
123241
+ "name": "SbbFormAssociatedMixin",
123242
+ "module": "core/mixins/form-associated-mixin.js"
123243
+ }
123077
123244
  },
123078
123245
  {
123079
123246
  "kind": "field",
123080
- "name": "steps",
123247
+ "name": "validity",
123081
123248
  "type": {
123082
- "text": "SbbStepElement[]"
123249
+ "text": "ValidityState"
123083
123250
  },
123084
123251
  "privacy": "public",
123085
- "description": "The steps of the stepper.",
123086
- "readonly": true
123252
+ "description": "Returns the ValidityState object for this element.",
123253
+ "readonly": true,
123254
+ "inheritedFrom": {
123255
+ "name": "SbbFormAssociatedMixin",
123256
+ "module": "core/mixins/form-associated-mixin.js"
123257
+ }
123087
123258
  },
123088
123259
  {
123089
123260
  "kind": "field",
123090
- "name": "_enabledSteps",
123261
+ "name": "validationMessage",
123091
123262
  "type": {
123092
- "text": "SbbStepElement[]"
123263
+ "text": "string"
123093
123264
  },
123094
- "privacy": "private",
123095
- "readonly": true
123265
+ "privacy": "public",
123266
+ "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.",
123267
+ "readonly": true,
123268
+ "inheritedFrom": {
123269
+ "name": "SbbFormAssociatedMixin",
123270
+ "module": "core/mixins/form-associated-mixin.js"
123271
+ }
123096
123272
  },
123097
123273
  {
123098
123274
  "kind": "field",
123099
- "name": "_loaded",
123275
+ "name": "willValidate",
123100
123276
  "type": {
123101
123277
  "text": "boolean"
123102
123278
  },
123103
- "privacy": "private",
123104
- "default": "false"
123279
+ "privacy": "public",
123280
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
123281
+ "readonly": true,
123282
+ "inheritedFrom": {
123283
+ "name": "SbbFormAssociatedMixin",
123284
+ "module": "core/mixins/form-associated-mixin.js"
123285
+ }
123105
123286
  },
123106
123287
  {
123107
123288
  "kind": "field",
123108
- "name": "_resizeObserverTimeout",
123109
- "type": {
123110
- "text": "ReturnType<typeof setTimeout> | null"
123111
- },
123289
+ "name": "_validityStates",
123112
123290
  "privacy": "private",
123113
- "default": "null"
123291
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
123292
+ "inheritedFrom": {
123293
+ "name": "SbbFormAssociatedMixin",
123294
+ "module": "core/mixins/form-associated-mixin.js"
123295
+ }
123114
123296
  },
123115
123297
  {
123116
123298
  "kind": "field",
123117
- "name": "_mediaMatcher",
123118
- "privacy": "private",
123119
- "default": "new SbbMediaMatcherController(this, {})"
123299
+ "name": "formDisabled",
123300
+ "type": {
123301
+ "text": "boolean"
123302
+ },
123303
+ "privacy": "protected",
123304
+ "default": "false",
123305
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
123306
+ "inheritedFrom": {
123307
+ "name": "SbbFormAssociatedMixin",
123308
+ "module": "core/mixins/form-associated-mixin.js"
123309
+ }
123120
123310
  },
123121
123311
  {
123122
123312
  "kind": "method",
123123
- "name": "next",
123313
+ "name": "checkValidity",
123124
123314
  "privacy": "public",
123125
123315
  "return": {
123126
123316
  "type": {
123127
- "text": "void"
123317
+ "text": "boolean"
123128
123318
  }
123129
123319
  },
123130
- "description": "Selects the next step."
123320
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
123321
+ "inheritedFrom": {
123322
+ "name": "SbbFormAssociatedMixin",
123323
+ "module": "core/mixins/form-associated-mixin.js"
123324
+ }
123131
123325
  },
123132
123326
  {
123133
123327
  "kind": "method",
123134
- "name": "previous",
123328
+ "name": "reportValidity",
123135
123329
  "privacy": "public",
123136
123330
  "return": {
123137
123331
  "type": {
123138
- "text": "void"
123332
+ "text": "boolean"
123139
123333
  }
123140
123334
  },
123141
- "description": "Selects the previous step."
123335
+ "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.",
123336
+ "inheritedFrom": {
123337
+ "name": "SbbFormAssociatedMixin",
123338
+ "module": "core/mixins/form-associated-mixin.js"
123339
+ }
123142
123340
  },
123143
123341
  {
123144
123342
  "kind": "method",
123145
- "name": "reset",
123343
+ "name": "setCustomValidity",
123146
123344
  "privacy": "public",
123147
123345
  "return": {
123148
123346
  "type": {
123149
123347
  "text": "void"
123150
123348
  }
123151
123349
  },
123152
- "description": "Resets the form in which the stepper is nested or every form of each step, if any."
123350
+ "parameters": [
123351
+ {
123352
+ "name": "message",
123353
+ "type": {
123354
+ "text": "string"
123355
+ }
123356
+ }
123357
+ ],
123358
+ "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.",
123359
+ "inheritedFrom": {
123360
+ "name": "SbbFormAssociatedMixin",
123361
+ "module": "core/mixins/form-associated-mixin.js"
123362
+ }
123153
123363
  },
123154
123364
  {
123155
123365
  "kind": "method",
123156
- "name": "_isSelectable",
123366
+ "name": "_hasDisabledAncestor",
123157
123367
  "privacy": "private",
123158
123368
  "return": {
123159
123369
  "type": {
123160
- "text": "step is SbbStepElement"
123370
+ "text": "boolean"
123161
123371
  }
123162
123372
  },
123163
- "parameters": [
123164
- {
123165
- "name": "step",
123166
- "type": {
123167
- "text": "SbbStepElement | null"
123168
- }
123169
- }
123170
- ]
123373
+ "inheritedFrom": {
123374
+ "name": "SbbFormAssociatedMixin",
123375
+ "module": "core/mixins/form-associated-mixin.js"
123376
+ }
123171
123377
  },
123172
123378
  {
123173
123379
  "kind": "method",
123174
- "name": "_select",
123175
- "privacy": "private",
123380
+ "name": "updateFormValue",
123381
+ "privacy": "protected",
123176
123382
  "return": {
123177
123383
  "type": {
123178
123384
  "text": "void"
123179
123385
  }
123180
123386
  },
123181
- "parameters": [
123182
- {
123183
- "name": "step",
123184
- "type": {
123185
- "text": "SbbStepElement | null"
123186
- }
123387
+ "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",
123388
+ "inheritedFrom": {
123389
+ "name": "SbbFormAssociatedMixin",
123390
+ "module": "core/mixins/form-associated-mixin.js"
123391
+ }
123392
+ },
123393
+ {
123394
+ "kind": "method",
123395
+ "name": "formState",
123396
+ "privacy": "protected",
123397
+ "return": {
123398
+ "type": {
123399
+ "text": "FormRestoreState"
123187
123400
  }
123188
- ]
123401
+ },
123402
+ "inheritedFrom": {
123403
+ "name": "SbbFormAssociatedMixin",
123404
+ "module": "core/mixins/form-associated-mixin.js"
123405
+ }
123189
123406
  },
123190
123407
  {
123191
123408
  "kind": "method",
123192
- "name": "_setMarkerSize",
123193
- "privacy": "private",
123409
+ "name": "setValidityFlag",
123410
+ "privacy": "protected",
123194
123411
  "return": {
123195
123412
  "type": {
123196
123413
  "text": "void"
123197
123414
  }
123415
+ },
123416
+ "parameters": [
123417
+ {
123418
+ "name": "flag",
123419
+ "type": {
123420
+ "text": "T"
123421
+ }
123422
+ },
123423
+ {
123424
+ "name": "message",
123425
+ "type": {
123426
+ "text": "string"
123427
+ }
123428
+ },
123429
+ {
123430
+ "name": "flagValue",
123431
+ "optional": true,
123432
+ "type": {
123433
+ "text": "ValidityStateFlags[T]"
123434
+ }
123435
+ }
123436
+ ],
123437
+ "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).",
123438
+ "inheritedFrom": {
123439
+ "name": "SbbFormAssociatedMixin",
123440
+ "module": "core/mixins/form-associated-mixin.js"
123198
123441
  }
123199
123442
  },
123200
123443
  {
123201
123444
  "kind": "method",
123202
- "name": "_setStepperHeight",
123203
- "privacy": "private",
123445
+ "name": "removeValidityFlag",
123446
+ "privacy": "protected",
123204
123447
  "return": {
123205
123448
  "type": {
123206
123449
  "text": "void"
@@ -123208,104 +123451,174 @@
123208
123451
  },
123209
123452
  "parameters": [
123210
123453
  {
123211
- "name": "step",
123454
+ "name": "flag",
123212
123455
  "type": {
123213
- "text": "SbbStepElement | null"
123456
+ "text": "T"
123214
123457
  }
123215
123458
  }
123216
123459
  ],
123217
- "description": "Sets the stepper height based on the height of the provided step."
123460
+ "description": "Removes the validity state flag entry and updates validity state.",
123461
+ "inheritedFrom": {
123462
+ "name": "SbbFormAssociatedMixin",
123463
+ "module": "core/mixins/form-associated-mixin.js"
123464
+ }
123218
123465
  },
123219
123466
  {
123220
123467
  "kind": "method",
123221
- "name": "_calculateLabelOffsetTop",
123222
- "privacy": "private",
123468
+ "name": "validate",
123469
+ "privacy": "protected",
123223
123470
  "return": {
123224
123471
  "type": {
123225
- "text": "number | undefined"
123472
+ "text": "void"
123226
123473
  }
123474
+ },
123475
+ "description": "To be called whenever the current element needs to be validated.",
123476
+ "inheritedFrom": {
123477
+ "name": "SbbFormAssociatedMixin",
123478
+ "module": "core/mixins/form-associated-mixin.js"
123227
123479
  }
123228
123480
  },
123229
123481
  {
123230
123482
  "kind": "method",
123231
- "name": "_onSelectedStepResize",
123232
- "privacy": "private",
123483
+ "name": "shouldValidate",
123484
+ "privacy": "protected",
123233
123485
  "return": {
123234
123486
  "type": {
123235
- "text": "void"
123487
+ "text": "boolean"
123236
123488
  }
123237
123489
  },
123238
123490
  "parameters": [
123239
123491
  {
123240
- "name": "e",
123492
+ "name": "name",
123241
123493
  "type": {
123242
- "text": "Event"
123494
+ "text": "PropertyKey | undefined"
123243
123495
  }
123244
123496
  }
123245
- ]
123497
+ ],
123498
+ "description": "Whether validation should be run on a property change with the given name.",
123499
+ "inheritedFrom": {
123500
+ "name": "SbbFormAssociatedMixin",
123501
+ "module": "core/mixins/form-associated-mixin.js"
123502
+ }
123246
123503
  },
123247
123504
  {
123248
123505
  "kind": "method",
123249
- "name": "_configure",
123506
+ "name": "_setInternalValidity",
123250
123507
  "privacy": "private",
123251
123508
  "return": {
123252
123509
  "type": {
123253
123510
  "text": "void"
123254
123511
  }
123512
+ },
123513
+ "inheritedFrom": {
123514
+ "name": "SbbFormAssociatedMixin",
123515
+ "module": "core/mixins/form-associated-mixin.js"
123255
123516
  }
123256
123517
  },
123257
123518
  {
123258
- "kind": "method",
123259
- "name": "_updateLabels",
123519
+ "kind": "field",
123520
+ "name": "_preventScrollOnSpaceKeydown",
123260
123521
  "privacy": "private",
123261
- "return": {
123262
- "type": {
123263
- "text": "void"
123522
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
123523
+ "parameters": [
123524
+ {
123525
+ "description": "The origin event.",
123526
+ "name": "event"
123264
123527
  }
123528
+ ],
123529
+ "inheritedFrom": {
123530
+ "name": "SbbButtonLikeBaseElement",
123531
+ "module": "core/base-elements/button-base-element.js"
123532
+ }
123533
+ },
123534
+ {
123535
+ "kind": "field",
123536
+ "name": "_removeActiveMarker",
123537
+ "privacy": "private",
123538
+ "inheritedFrom": {
123539
+ "name": "SbbButtonLikeBaseElement",
123540
+ "module": "core/base-elements/button-base-element.js"
123541
+ }
123542
+ },
123543
+ {
123544
+ "kind": "field",
123545
+ "name": "_dispatchClickEventOnSpaceKeyup",
123546
+ "privacy": "private",
123547
+ "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.",
123548
+ "parameters": [
123549
+ {
123550
+ "description": "The origin event.",
123551
+ "name": "event"
123552
+ }
123553
+ ],
123554
+ "inheritedFrom": {
123555
+ "name": "SbbButtonLikeBaseElement",
123556
+ "module": "core/base-elements/button-base-element.js"
123557
+ }
123558
+ },
123559
+ {
123560
+ "kind": "field",
123561
+ "name": "_dispatchClickEvent",
123562
+ "privacy": "private",
123563
+ "inheritedFrom": {
123564
+ "name": "SbbButtonLikeBaseElement",
123565
+ "module": "core/base-elements/button-base-element.js"
123265
123566
  }
123266
123567
  },
123267
123568
  {
123268
- "kind": "method",
123269
- "name": "_checkOrientation",
123270
- "privacy": "private",
123271
- "return": {
123272
- "type": {
123273
- "text": "void"
123274
- }
123569
+ "kind": "field",
123570
+ "name": "maybeDisabled",
123571
+ "type": {
123572
+ "text": "boolean | undefined"
123573
+ },
123574
+ "privacy": "protected",
123575
+ "readonly": true,
123576
+ "inheritedFrom": {
123577
+ "name": "SbbActionBaseElement",
123578
+ "module": "core/base-elements/action-base-element.js"
123275
123579
  }
123276
123580
  },
123277
123581
  {
123278
123582
  "kind": "field",
123279
- "name": "_onStepperResize",
123280
- "privacy": "private"
123583
+ "name": "maybeDisabledInteractive",
123584
+ "type": {
123585
+ "text": "boolean | undefined"
123586
+ },
123587
+ "privacy": "protected",
123588
+ "readonly": true,
123589
+ "inheritedFrom": {
123590
+ "name": "SbbActionBaseElement",
123591
+ "module": "core/base-elements/action-base-element.js"
123592
+ }
123281
123593
  },
123282
123594
  {
123283
123595
  "kind": "method",
123284
- "name": "_configureLinearMode",
123285
- "privacy": "private",
123596
+ "name": "setupBaseEventHandlers",
123597
+ "privacy": "protected",
123286
123598
  "return": {
123287
123599
  "type": {
123288
123600
  "text": "void"
123289
123601
  }
123602
+ },
123603
+ "inheritedFrom": {
123604
+ "name": "SbbActionBaseElement",
123605
+ "module": "core/base-elements/action-base-element.js"
123290
123606
  }
123291
123607
  },
123292
123608
  {
123293
123609
  "kind": "method",
123294
- "name": "_handleKeyDown",
123295
- "privacy": "private",
123610
+ "name": "renderTemplate",
123611
+ "privacy": "protected",
123296
123612
  "return": {
123297
123613
  "type": {
123298
- "text": "void"
123614
+ "text": "TemplateResult"
123299
123615
  }
123300
123616
  },
123301
- "parameters": [
123302
- {
123303
- "name": "evt",
123304
- "type": {
123305
- "text": "KeyboardEvent"
123306
- }
123307
- }
123308
- ]
123617
+ "description": "Override this method to render the component template.",
123618
+ "inheritedFrom": {
123619
+ "name": "SbbActionBaseElement",
123620
+ "module": "core/base-elements/action-base-element.js"
123621
+ }
123309
123622
  },
123310
123623
  {
123311
123624
  "kind": "field",
@@ -123413,668 +123726,415 @@
123413
123726
  }
123414
123727
  }
123415
123728
  ],
123416
- "events": [
123729
+ "mixins": [
123417
123730
  {
123418
- "type": {
123419
- "text": "SbbStepChangeEvent"
123420
- },
123421
- "description": "Emits whenever a step was changed.",
123422
- "name": "stepchange"
123731
+ "name": "SbbIconNameMixin",
123732
+ "module": "icon.js"
123733
+ },
123734
+ {
123735
+ "name": "SbbDisabledMixin",
123736
+ "module": "core/mixins.js"
123423
123737
  }
123424
123738
  ],
123739
+ "superclass": {
123740
+ "name": "SbbButtonBaseElement",
123741
+ "module": "core/base-elements.js"
123742
+ },
123743
+ "tagName": "sbb-step-label",
123744
+ "customElement": true,
123425
123745
  "attributes": [
123426
123746
  {
123427
- "name": "linear",
123747
+ "name": "icon-name",
123428
123748
  "type": {
123429
- "text": "boolean"
123749
+ "text": "string"
123430
123750
  },
123751
+ "default": "''",
123752
+ "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.",
123753
+ "fieldName": "iconName",
123754
+ "inheritedFrom": {
123755
+ "name": "SbbIconNameMixin",
123756
+ "module": "icon/icon-name-mixin.js"
123757
+ }
123758
+ },
123759
+ {
123760
+ "name": "disabled",
123761
+ "description": "Whether the component is disabled.",
123431
123762
  "default": "false",
123432
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
123433
- "fieldName": "linear"
123763
+ "type": {
123764
+ "text": "boolean"
123765
+ },
123766
+ "fieldName": "disabled",
123767
+ "inheritedFrom": {
123768
+ "name": "SbbDisabledMixin",
123769
+ "module": "core/mixins/disabled-mixin.js"
123770
+ }
123434
123771
  },
123435
123772
  {
123436
- "name": "horizontal-from",
123437
- "description": "Overrides the behavior of `orientation` property.",
123773
+ "name": "value",
123438
123774
  "type": {
123439
- "text": "SbbHorizontalFrom | null"
123775
+ "text": "string"
123440
123776
  },
123441
- "fieldName": "horizontalFrom"
123777
+ "default": "''",
123778
+ "description": "Value of the form element.",
123779
+ "fieldName": "value",
123780
+ "inheritedFrom": {
123781
+ "name": "SbbButtonBaseElement",
123782
+ "module": "core/base-elements/button-base-element.js"
123783
+ }
123442
123784
  },
123443
123785
  {
123444
- "name": "orientation",
123786
+ "name": "type",
123787
+ "description": "The type attribute to use for the button.",
123788
+ "default": "'button'",
123445
123789
  "type": {
123446
- "text": "SbbOrientation"
123790
+ "text": "SbbButtonType"
123447
123791
  },
123448
- "default": "'horizontal'",
123449
- "description": "Steps orientation, either horizontal or vertical.",
123450
- "fieldName": "orientation"
123792
+ "fieldName": "type",
123793
+ "inheritedFrom": {
123794
+ "name": "SbbButtonBaseElement",
123795
+ "module": "core/base-elements/button-base-element.js"
123796
+ }
123451
123797
  },
123452
123798
  {
123453
- "name": "size",
123799
+ "name": "form",
123800
+ "description": "The `<form>` element to associate the button with.",
123454
123801
  "type": {
123455
- "text": "'s' | 'm'"
123802
+ "text": "HTMLFormElement | null"
123456
123803
  },
123457
- "description": "Size variant, either s or m.",
123458
- "default": "'m' / 's' (lean)",
123459
- "fieldName": "size"
123804
+ "fieldName": "form",
123805
+ "inheritedFrom": {
123806
+ "name": "SbbButtonBaseElement",
123807
+ "module": "core/base-elements/button-base-element.js"
123808
+ }
123460
123809
  },
123461
123810
  {
123462
- "name": "selected-index",
123463
- "description": "The currently selected step index.",
123811
+ "name": "name",
123812
+ "description": "Name of the form element. Will be read from name attribute.",
123464
123813
  "type": {
123465
- "text": "number | null"
123814
+ "text": "string"
123466
123815
  },
123467
- "fieldName": "selectedIndex"
123816
+ "fieldName": "name",
123817
+ "inheritedFrom": {
123818
+ "name": "SbbFormAssociatedMixin",
123819
+ "module": "core/mixins/form-associated-mixin.js"
123820
+ }
123468
123821
  }
123469
- ],
123470
- "superclass": {
123471
- "name": "SbbElement",
123472
- "module": "core/base-elements.js"
123473
- },
123474
- "tagName": "sbb-stepper",
123475
- "customElement": true
123476
- },
123477
- {
123478
- "kind": "variable",
123479
- "name": "currentIndex"
123480
- },
123481
- {
123482
- "kind": "variable",
123483
- "name": "currentStep"
123822
+ ]
123484
123823
  }
123485
123824
  ],
123486
123825
  "exports": [
123487
123826
  {
123488
123827
  "kind": "js",
123489
- "name": "SbbStepChangeEvent",
123490
- "declaration": {
123491
- "name": "SbbStepChangeEvent",
123492
- "module": "stepper/stepper/stepper.component.js"
123493
- }
123494
- },
123495
- {
123496
- "kind": "js",
123497
- "name": "SbbStepperElement",
123828
+ "name": "SbbStepLabelElement",
123498
123829
  "declaration": {
123499
- "name": "SbbStepperElement",
123500
- "module": "stepper/stepper/stepper.component.js"
123830
+ "name": "SbbStepLabelElement",
123831
+ "module": "stepper/step-label/step-label.component.js"
123501
123832
  }
123502
123833
  }
123503
123834
  ]
123504
123835
  },
123505
123836
  {
123506
123837
  "kind": "javascript-module",
123507
- "path": "stepper/step-label/step-label.component.js",
123838
+ "path": "stepper/stepper/stepper.component.js",
123508
123839
  "declarations": [
123509
123840
  {
123510
123841
  "kind": "class",
123511
- "description": "Combined with a `sbb-stepper`, it displays a step's label.",
123512
- "name": "SbbStepLabelElement",
123513
- "slots": [
123514
- {
123515
- "description": "Use the unnamed slot to provide a label.",
123516
- "name": ""
123517
- },
123518
- {
123519
- "description": "Use this to display an icon in the label bubble.",
123520
- "name": "icon"
123521
- }
123522
- ],
123842
+ "description": "",
123843
+ "name": "SbbStepChangeEvent",
123523
123844
  "members": [
123524
123845
  {
123525
123846
  "kind": "field",
123526
- "name": "elementName",
123847
+ "name": "selectedIndex",
123527
123848
  "type": {
123528
- "text": "string"
123849
+ "text": "number | null"
123529
123850
  },
123530
123851
  "privacy": "public",
123531
- "static": true,
123532
123852
  "readonly": true,
123533
- "inheritedFrom": {
123534
- "name": "SbbElement",
123535
- "module": "core/base-elements/element.js"
123536
- },
123537
- "default": "'sbb-step-label'"
123853
+ "description": "The index of the newly selected step.",
123854
+ "default": "selectedIndex"
123538
123855
  },
123539
123856
  {
123540
123857
  "kind": "field",
123541
- "name": "role",
123858
+ "name": "previousIndex",
123542
123859
  "type": {
123543
- "text": "string"
123860
+ "text": "number | null"
123544
123861
  },
123545
123862
  "privacy": "public",
123546
- "static": true,
123547
123863
  "readonly": true,
123548
- "default": "'tab'",
123549
- "inheritedFrom": {
123550
- "name": "SbbButtonLikeBaseElement",
123551
- "module": "core/base-elements/button-base-element.js"
123552
- }
123864
+ "description": "The index of the previously selected step.",
123865
+ "default": "previousIndex"
123553
123866
  },
123554
123867
  {
123555
123868
  "kind": "field",
123556
- "name": "step",
123869
+ "name": "selectedStep",
123557
123870
  "type": {
123558
123871
  "text": "SbbStepElement | null"
123559
123872
  },
123560
123873
  "privacy": "public",
123561
- "description": "The step controlled by the label.",
123562
123874
  "readonly": true,
123563
- "default": "null"
123875
+ "description": "The newly selected step element.",
123876
+ "default": "selectedStep"
123564
123877
  },
123565
123878
  {
123566
123879
  "kind": "field",
123567
- "name": "_step",
123880
+ "name": "previousStep",
123568
123881
  "type": {
123569
123882
  "text": "SbbStepElement | null"
123570
123883
  },
123571
- "privacy": "private",
123572
- "default": "null"
123573
- },
123574
- {
123575
- "kind": "field",
123576
- "name": "stepper",
123577
- "type": {
123578
- "text": "SbbStepperElement | null"
123579
- },
123580
- "privacy": "public",
123581
- "readonly": true
123582
- },
123583
- {
123584
- "kind": "field",
123585
- "name": "disabled",
123586
123884
  "privacy": "public",
123587
- "description": "Whether the component is disabled.",
123588
- "default": "false",
123589
- "type": {
123590
- "text": "boolean"
123591
- },
123592
- "attribute": "disabled",
123593
- "reflects": true,
123594
- "inheritedFrom": {
123595
- "name": "SbbDisabledMixin",
123596
- "module": "core/mixins/disabled-mixin.js"
123597
- }
123598
- },
123599
- {
123600
- "kind": "field",
123601
- "name": "_previousOrientation",
123602
- "type": {
123603
- "text": "string | undefined"
123604
- },
123605
- "privacy": "private"
123606
- },
123885
+ "readonly": true,
123886
+ "description": "The previously selected step element.",
123887
+ "default": "previousStep"
123888
+ }
123889
+ ],
123890
+ "superclass": {
123891
+ "name": "Event",
123892
+ "module": "stepper/stepper/stepper.component.js"
123893
+ }
123894
+ },
123895
+ {
123896
+ "kind": "class",
123897
+ "description": "Provides a structured, step-by-step workflow for user interactions.",
123898
+ "name": "SbbStepperElement",
123899
+ "slots": [
123607
123900
  {
123608
- "kind": "field",
123609
- "name": "_previousSize",
123610
- "type": {
123611
- "text": "string | undefined"
123612
- },
123613
- "privacy": "private"
123901
+ "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
123902
+ "name": ""
123614
123903
  },
123615
123904
  {
123616
- "kind": "method",
123617
- "name": "_isNotDeactivatedByLinearMode",
123618
- "privacy": "private",
123619
- "return": {
123620
- "type": {
123621
- "text": "boolean"
123622
- }
123623
- },
123624
- "parameters": [
123625
- {
123626
- "name": "step",
123627
- "type": {
123628
- "text": "SbbStepElement"
123629
- }
123630
- }
123631
- ]
123905
+ "description": "Use this slot to provide an `sbb-step-label`.",
123906
+ "name": "step-label"
123632
123907
  },
123633
123908
  {
123634
- "kind": "method",
123635
- "name": "_assignStep",
123636
- "privacy": "private",
123637
- "return": {
123638
- "type": {
123639
- "text": "void"
123640
- }
123641
- }
123642
- },
123909
+ "description": "Use this slot to provide an `sbb-step`.",
123910
+ "name": "step"
123911
+ }
123912
+ ],
123913
+ "members": [
123643
123914
  {
123644
123915
  "kind": "field",
123645
- "name": "iconName",
123916
+ "name": "elementName",
123646
123917
  "type": {
123647
123918
  "text": "string"
123648
123919
  },
123649
123920
  "privacy": "public",
123650
- "default": "''",
123651
- "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.",
123652
- "attribute": "icon-name",
123653
- "inheritedFrom": {
123654
- "name": "SbbIconNameMixin",
123655
- "module": "icon/icon-name-mixin.js"
123656
- }
123657
- },
123658
- {
123659
- "kind": "method",
123660
- "name": "renderIconSlot",
123661
- "privacy": "protected",
123662
- "return": {
123663
- "type": {
123664
- "text": "TemplateResult"
123665
- }
123666
- },
123667
- "parameters": [
123668
- {
123669
- "name": "classname",
123670
- "optional": true,
123671
- "type": {
123672
- "text": "string"
123673
- }
123674
- }
123675
- ],
123676
- "inheritedFrom": {
123677
- "name": "SbbIconNameMixin",
123678
- "module": "icon/icon-name-mixin.js"
123679
- }
123680
- },
123681
- {
123682
- "kind": "method",
123683
- "name": "renderIconName",
123684
- "privacy": "protected",
123685
- "return": {
123686
- "type": {
123687
- "text": "string"
123688
- }
123689
- },
123690
- "inheritedFrom": {
123691
- "name": "SbbIconNameMixin",
123692
- "module": "icon/icon-name-mixin.js"
123693
- }
123694
- },
123695
- {
123696
- "kind": "method",
123697
- "name": "_renderIconName",
123698
- "privacy": "private",
123699
- "return": {
123700
- "type": {
123701
- "text": "string"
123702
- }
123703
- },
123921
+ "static": true,
123922
+ "readonly": true,
123923
+ "default": "'sbb-stepper'",
123704
123924
  "inheritedFrom": {
123705
- "name": "SbbIconNameMixin",
123706
- "module": "icon/icon-name-mixin.js"
123925
+ "name": "SbbElement",
123926
+ "module": "core/base-elements/element.js"
123707
123927
  }
123708
123928
  },
123709
123929
  {
123710
123930
  "kind": "field",
123711
- "name": "#disabled",
123712
- "privacy": "private",
123931
+ "name": "events",
123932
+ "privacy": "public",
123933
+ "static": true,
123934
+ "readonly": true,
123935
+ "default": "{ stepchange: 'stepchange', }",
123713
123936
  "type": {
123714
- "text": "boolean"
123715
- },
123716
- "default": "false",
123717
- "inheritedFrom": {
123718
- "name": "SbbDisabledMixin",
123719
- "module": "core/mixins/disabled-mixin.js"
123720
- }
123721
- },
123722
- {
123723
- "kind": "method",
123724
- "name": "isDisabledExternally",
123725
- "privacy": "protected",
123726
- "return": {
123727
- "type": {
123728
- "text": "boolean"
123729
- }
123730
- },
123731
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
123732
- "inheritedFrom": {
123733
- "name": "SbbDisabledMixin",
123734
- "module": "core/mixins/disabled-mixin.js"
123937
+ "text": "{\n stepchange: 'stepchange',\n }"
123735
123938
  }
123736
123939
  },
123737
123940
  {
123738
123941
  "kind": "field",
123739
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
123740
- "type": {
123741
- "text": "array"
123742
- },
123942
+ "name": "_observer",
123743
123943
  "privacy": "private",
123744
- "readonly": true,
123745
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
123746
- "inheritedFrom": {
123747
- "name": "SbbButtonBaseElement",
123748
- "module": "core/base-elements/button-base-element.js"
123749
- }
123944
+ "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
123945
+ "description": "If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,\nbecause the calculations are done when the dialog is closed, so the marker has a width of 0;\nthe same happens for the stepper height.\nWe need to recalculate it when the element becomes visible."
123750
123946
  },
123751
123947
  {
123752
123948
  "kind": "field",
123753
- "name": "value",
123949
+ "name": "linear",
123754
123950
  "type": {
123755
- "text": "string"
123951
+ "text": "boolean"
123756
123952
  },
123757
123953
  "privacy": "public",
123758
- "inheritedFrom": {
123759
- "name": "SbbButtonBaseElement",
123760
- "module": "core/base-elements/button-base-element.js"
123761
- },
123762
- "default": "''",
123763
- "description": "Value of the form element.",
123764
- "attribute": "value"
123954
+ "default": "false",
123955
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
123956
+ "attribute": "linear"
123765
123957
  },
123766
123958
  {
123767
123959
  "kind": "field",
123768
- "name": "type",
123960
+ "name": "horizontalFrom",
123769
123961
  "privacy": "public",
123770
- "description": "The type attribute to use for the button.",
123771
- "default": "'button'",
123772
- "type": {
123773
- "text": "SbbButtonType"
123774
- },
123775
- "attribute": "type",
123776
- "inheritedFrom": {
123777
- "name": "SbbButtonBaseElement",
123778
- "module": "core/base-elements/button-base-element.js"
123779
- }
123780
- },
123781
- {
123782
- "kind": "field",
123783
- "name": "form",
123962
+ "description": "Overrides the behavior of `orientation` property.",
123784
123963
  "type": {
123785
- "text": "HTMLFormElement | null"
123786
- },
123787
- "privacy": "public",
123788
- "description": "The `<form>` element to associate the button with.",
123789
- "inheritedFrom": {
123790
- "name": "SbbButtonBaseElement",
123791
- "module": "core/base-elements/button-base-element.js"
123964
+ "text": "SbbHorizontalFrom | null"
123792
123965
  },
123793
- "attribute": "form"
123966
+ "attribute": "horizontal-from",
123967
+ "reflects": true,
123968
+ "default": "null"
123794
123969
  },
123795
123970
  {
123796
123971
  "kind": "field",
123797
- "name": "_formId",
123972
+ "name": "_horizontalFrom",
123798
123973
  "type": {
123799
- "text": "string"
123800
- },
123801
- "privacy": "private",
123802
- "default": "''",
123803
- "inheritedFrom": {
123804
- "name": "SbbButtonBaseElement",
123805
- "module": "core/base-elements/button-base-element.js"
123806
- }
123807
- },
123808
- {
123809
- "kind": "field",
123810
- "name": "_handleButtonClick",
123811
- "privacy": "private",
123812
- "inheritedFrom": {
123813
- "name": "SbbButtonBaseElement",
123814
- "module": "core/base-elements/button-base-element.js"
123815
- }
123816
- },
123817
- {
123818
- "kind": "method",
123819
- "name": "_requestSubmit",
123820
- "privacy": "private",
123821
- "return": {
123822
- "type": {
123823
- "text": "void"
123824
- }
123974
+ "text": "SbbHorizontalFrom | null"
123825
123975
  },
123826
- "parameters": [
123827
- {
123828
- "name": "form",
123829
- "type": {
123830
- "text": "HTMLFormElement"
123831
- }
123832
- }
123833
- ],
123834
- "inheritedFrom": {
123835
- "name": "SbbButtonBaseElement",
123836
- "module": "core/base-elements/button-base-element.js"
123837
- }
123976
+ "privacy": "private",
123977
+ "default": "null"
123838
123978
  },
123839
123979
  {
123840
123980
  "kind": "field",
123841
- "name": "_formKeyDown",
123842
- "privacy": "private",
123843
- "inheritedFrom": {
123844
- "name": "SbbButtonBaseElement",
123845
- "module": "core/base-elements/button-base-element.js"
123846
- }
123981
+ "name": "orientation",
123982
+ "type": {
123983
+ "text": "SbbOrientation"
123984
+ },
123985
+ "privacy": "public",
123986
+ "default": "'horizontal'",
123987
+ "description": "Steps orientation, either horizontal or vertical.",
123988
+ "attribute": "orientation",
123989
+ "reflects": true
123847
123990
  },
123848
123991
  {
123849
123992
  "kind": "field",
123850
- "name": "formAssociated",
123993
+ "name": "size",
123851
123994
  "type": {
123852
- "text": "boolean"
123995
+ "text": "'s' | 'm'"
123853
123996
  },
123854
123997
  "privacy": "public",
123855
- "static": true,
123856
- "default": "true",
123857
- "inheritedFrom": {
123858
- "name": "SbbFormAssociatedMixin",
123859
- "module": "core/mixins/form-associated-mixin.js"
123860
- }
123998
+ "description": "Size variant, either s or m.",
123999
+ "default": "'m' / 's' (lean)",
124000
+ "attribute": "size",
124001
+ "reflects": true
123861
124002
  },
123862
124003
  {
123863
124004
  "kind": "field",
123864
- "name": "name",
124005
+ "name": "selected",
123865
124006
  "privacy": "public",
123866
- "description": "Name of the form element. Will be read from name attribute.",
124007
+ "description": "The currently selected step.",
123867
124008
  "type": {
123868
- "text": "string"
123869
- },
123870
- "attribute": "name",
123871
- "inheritedFrom": {
123872
- "name": "SbbFormAssociatedMixin",
123873
- "module": "core/mixins/form-associated-mixin.js"
124009
+ "text": "SbbStepElement | null"
123874
124010
  }
123875
124011
  },
123876
124012
  {
123877
124013
  "kind": "field",
123878
- "name": "validity",
124014
+ "name": "_requestedSelected",
123879
124015
  "type": {
123880
- "text": "ValidityState"
124016
+ "text": "SbbStepElement | null"
123881
124017
  },
124018
+ "privacy": "private",
124019
+ "default": "null"
124020
+ },
124021
+ {
124022
+ "kind": "field",
124023
+ "name": "selectedIndex",
123882
124024
  "privacy": "public",
123883
- "description": "Returns the ValidityState object for this element.",
123884
- "readonly": true,
123885
- "inheritedFrom": {
123886
- "name": "SbbFormAssociatedMixin",
123887
- "module": "core/mixins/form-associated-mixin.js"
123888
- }
124025
+ "description": "The currently selected step index.",
124026
+ "type": {
124027
+ "text": "number | null"
124028
+ },
124029
+ "attribute": "selected-index"
123889
124030
  },
123890
124031
  {
123891
124032
  "kind": "field",
123892
- "name": "validationMessage",
124033
+ "name": "_requestedSelectedIndex",
123893
124034
  "type": {
123894
- "text": "string"
124035
+ "text": "number | null"
123895
124036
  },
123896
- "privacy": "public",
123897
- "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.",
123898
- "readonly": true,
123899
- "inheritedFrom": {
123900
- "name": "SbbFormAssociatedMixin",
123901
- "module": "core/mixins/form-associated-mixin.js"
123902
- }
124037
+ "privacy": "private",
124038
+ "default": "null"
123903
124039
  },
123904
124040
  {
123905
124041
  "kind": "field",
123906
- "name": "willValidate",
124042
+ "name": "steps",
123907
124043
  "type": {
123908
- "text": "boolean"
124044
+ "text": "SbbStepElement[]"
123909
124045
  },
123910
124046
  "privacy": "public",
123911
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
123912
- "readonly": true,
123913
- "inheritedFrom": {
123914
- "name": "SbbFormAssociatedMixin",
123915
- "module": "core/mixins/form-associated-mixin.js"
123916
- }
124047
+ "description": "The steps of the stepper.",
124048
+ "readonly": true
123917
124049
  },
123918
124050
  {
123919
124051
  "kind": "field",
123920
- "name": "_validityStates",
124052
+ "name": "_enabledSteps",
124053
+ "type": {
124054
+ "text": "SbbStepElement[]"
124055
+ },
123921
124056
  "privacy": "private",
123922
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
123923
- "inheritedFrom": {
123924
- "name": "SbbFormAssociatedMixin",
123925
- "module": "core/mixins/form-associated-mixin.js"
123926
- }
124057
+ "readonly": true
123927
124058
  },
123928
124059
  {
123929
124060
  "kind": "field",
123930
- "name": "formDisabled",
124061
+ "name": "_loaded",
123931
124062
  "type": {
123932
124063
  "text": "boolean"
123933
124064
  },
123934
- "privacy": "protected",
123935
- "default": "false",
123936
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
123937
- "inheritedFrom": {
123938
- "name": "SbbFormAssociatedMixin",
123939
- "module": "core/mixins/form-associated-mixin.js"
123940
- }
124065
+ "privacy": "private",
124066
+ "default": "false"
123941
124067
  },
123942
124068
  {
123943
- "kind": "method",
123944
- "name": "checkValidity",
123945
- "privacy": "public",
123946
- "return": {
123947
- "type": {
123948
- "text": "boolean"
123949
- }
124069
+ "kind": "field",
124070
+ "name": "_resizeObserverTimeout",
124071
+ "type": {
124072
+ "text": "ReturnType<typeof setTimeout> | null"
123950
124073
  },
123951
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
123952
- "inheritedFrom": {
123953
- "name": "SbbFormAssociatedMixin",
123954
- "module": "core/mixins/form-associated-mixin.js"
123955
- }
124074
+ "privacy": "private",
124075
+ "default": "null"
123956
124076
  },
123957
124077
  {
123958
- "kind": "method",
123959
- "name": "reportValidity",
123960
- "privacy": "public",
123961
- "return": {
123962
- "type": {
123963
- "text": "boolean"
123964
- }
123965
- },
123966
- "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.",
123967
- "inheritedFrom": {
123968
- "name": "SbbFormAssociatedMixin",
123969
- "module": "core/mixins/form-associated-mixin.js"
123970
- }
124078
+ "kind": "field",
124079
+ "name": "_mediaMatcher",
124080
+ "privacy": "private",
124081
+ "default": "new SbbMediaMatcherController(this, {})"
123971
124082
  },
123972
124083
  {
123973
124084
  "kind": "method",
123974
- "name": "setCustomValidity",
124085
+ "name": "next",
123975
124086
  "privacy": "public",
123976
124087
  "return": {
123977
124088
  "type": {
123978
124089
  "text": "void"
123979
124090
  }
123980
124091
  },
123981
- "parameters": [
123982
- {
123983
- "name": "message",
123984
- "type": {
123985
- "text": "string"
123986
- }
123987
- }
123988
- ],
123989
- "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.",
123990
- "inheritedFrom": {
123991
- "name": "SbbFormAssociatedMixin",
123992
- "module": "core/mixins/form-associated-mixin.js"
123993
- }
123994
- },
123995
- {
123996
- "kind": "method",
123997
- "name": "_hasDisabledAncestor",
123998
- "privacy": "private",
123999
- "return": {
124000
- "type": {
124001
- "text": "boolean"
124002
- }
124003
- },
124004
- "inheritedFrom": {
124005
- "name": "SbbFormAssociatedMixin",
124006
- "module": "core/mixins/form-associated-mixin.js"
124007
- }
124092
+ "description": "Selects the next step."
124008
124093
  },
124009
124094
  {
124010
124095
  "kind": "method",
124011
- "name": "updateFormValue",
124012
- "privacy": "protected",
124096
+ "name": "previous",
124097
+ "privacy": "public",
124013
124098
  "return": {
124014
124099
  "type": {
124015
124100
  "text": "void"
124016
124101
  }
124017
124102
  },
124018
- "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",
124019
- "inheritedFrom": {
124020
- "name": "SbbFormAssociatedMixin",
124021
- "module": "core/mixins/form-associated-mixin.js"
124022
- }
124103
+ "description": "Selects the previous step."
124023
124104
  },
124024
124105
  {
124025
124106
  "kind": "method",
124026
- "name": "formState",
124027
- "privacy": "protected",
124107
+ "name": "reset",
124108
+ "privacy": "public",
124028
124109
  "return": {
124029
124110
  "type": {
124030
- "text": "FormRestoreState"
124111
+ "text": "void"
124031
124112
  }
124032
124113
  },
124033
- "inheritedFrom": {
124034
- "name": "SbbFormAssociatedMixin",
124035
- "module": "core/mixins/form-associated-mixin.js"
124036
- }
124114
+ "description": "Resets the form in which the stepper is nested or every form of each step, if any."
124037
124115
  },
124038
124116
  {
124039
124117
  "kind": "method",
124040
- "name": "setValidityFlag",
124041
- "privacy": "protected",
124118
+ "name": "_isSelectable",
124119
+ "privacy": "private",
124042
124120
  "return": {
124043
124121
  "type": {
124044
- "text": "void"
124122
+ "text": "step is SbbStepElement"
124045
124123
  }
124046
124124
  },
124047
124125
  "parameters": [
124048
124126
  {
124049
- "name": "flag",
124050
- "type": {
124051
- "text": "T"
124052
- }
124053
- },
124054
- {
124055
- "name": "message",
124056
- "type": {
124057
- "text": "string"
124058
- }
124059
- },
124060
- {
124061
- "name": "flagValue",
124062
- "optional": true,
124127
+ "name": "step",
124063
124128
  "type": {
124064
- "text": "ValidityStateFlags[T]"
124129
+ "text": "SbbStepElement | null"
124065
124130
  }
124066
124131
  }
124067
- ],
124068
- "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).",
124069
- "inheritedFrom": {
124070
- "name": "SbbFormAssociatedMixin",
124071
- "module": "core/mixins/form-associated-mixin.js"
124072
- }
124132
+ ]
124073
124133
  },
124074
124134
  {
124075
124135
  "kind": "method",
124076
- "name": "removeValidityFlag",
124077
- "privacy": "protected",
124136
+ "name": "_select",
124137
+ "privacy": "private",
124078
124138
  "return": {
124079
124139
  "type": {
124080
124140
  "text": "void"
@@ -124082,174 +124142,132 @@
124082
124142
  },
124083
124143
  "parameters": [
124084
124144
  {
124085
- "name": "flag",
124145
+ "name": "step",
124086
124146
  "type": {
124087
- "text": "T"
124147
+ "text": "SbbStepElement | null"
124088
124148
  }
124089
124149
  }
124090
- ],
124091
- "description": "Removes the validity state flag entry and updates validity state.",
124092
- "inheritedFrom": {
124093
- "name": "SbbFormAssociatedMixin",
124094
- "module": "core/mixins/form-associated-mixin.js"
124095
- }
124150
+ ]
124096
124151
  },
124097
124152
  {
124098
124153
  "kind": "method",
124099
- "name": "validate",
124100
- "privacy": "protected",
124154
+ "name": "_setMarkerSize",
124155
+ "privacy": "private",
124101
124156
  "return": {
124102
124157
  "type": {
124103
124158
  "text": "void"
124104
124159
  }
124105
- },
124106
- "description": "To be called whenever the current element needs to be validated.",
124107
- "inheritedFrom": {
124108
- "name": "SbbFormAssociatedMixin",
124109
- "module": "core/mixins/form-associated-mixin.js"
124110
124160
  }
124111
124161
  },
124112
124162
  {
124113
124163
  "kind": "method",
124114
- "name": "shouldValidate",
124115
- "privacy": "protected",
124164
+ "name": "_setStepperHeight",
124165
+ "privacy": "private",
124116
124166
  "return": {
124117
124167
  "type": {
124118
- "text": "boolean"
124168
+ "text": "void"
124119
124169
  }
124120
124170
  },
124121
124171
  "parameters": [
124122
124172
  {
124123
- "name": "name",
124173
+ "name": "step",
124124
124174
  "type": {
124125
- "text": "PropertyKey | undefined"
124175
+ "text": "SbbStepElement | null"
124126
124176
  }
124127
124177
  }
124128
124178
  ],
124129
- "description": "Whether validation should be run on a property change with the given name.",
124130
- "inheritedFrom": {
124131
- "name": "SbbFormAssociatedMixin",
124132
- "module": "core/mixins/form-associated-mixin.js"
124133
- }
124179
+ "description": "Sets the stepper height based on the height of the provided step."
124134
124180
  },
124135
124181
  {
124136
124182
  "kind": "method",
124137
- "name": "_setInternalValidity",
124183
+ "name": "_calculateLabelOffsetTop",
124138
124184
  "privacy": "private",
124139
124185
  "return": {
124140
124186
  "type": {
124141
- "text": "void"
124187
+ "text": "number | undefined"
124142
124188
  }
124143
- },
124144
- "inheritedFrom": {
124145
- "name": "SbbFormAssociatedMixin",
124146
- "module": "core/mixins/form-associated-mixin.js"
124147
124189
  }
124148
124190
  },
124149
124191
  {
124150
- "kind": "field",
124151
- "name": "_preventScrollOnSpaceKeydown",
124192
+ "kind": "method",
124193
+ "name": "_onSelectedStepResize",
124152
124194
  "privacy": "private",
124153
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
124195
+ "return": {
124196
+ "type": {
124197
+ "text": "void"
124198
+ }
124199
+ },
124154
124200
  "parameters": [
124155
124201
  {
124156
- "description": "The origin event.",
124157
- "name": "event"
124202
+ "name": "e",
124203
+ "type": {
124204
+ "text": "Event"
124205
+ }
124158
124206
  }
124159
- ],
124160
- "inheritedFrom": {
124161
- "name": "SbbButtonLikeBaseElement",
124162
- "module": "core/base-elements/button-base-element.js"
124163
- }
124207
+ ]
124164
124208
  },
124165
124209
  {
124166
- "kind": "field",
124167
- "name": "_removeActiveMarker",
124210
+ "kind": "method",
124211
+ "name": "_configure",
124168
124212
  "privacy": "private",
124169
- "inheritedFrom": {
124170
- "name": "SbbButtonLikeBaseElement",
124171
- "module": "core/base-elements/button-base-element.js"
124213
+ "return": {
124214
+ "type": {
124215
+ "text": "void"
124216
+ }
124172
124217
  }
124173
124218
  },
124174
124219
  {
124175
- "kind": "field",
124176
- "name": "_dispatchClickEventOnSpaceKeyup",
124220
+ "kind": "method",
124221
+ "name": "_updateLabels",
124177
124222
  "privacy": "private",
124178
- "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.",
124179
- "parameters": [
124180
- {
124181
- "description": "The origin event.",
124182
- "name": "event"
124223
+ "return": {
124224
+ "type": {
124225
+ "text": "void"
124183
124226
  }
124184
- ],
124185
- "inheritedFrom": {
124186
- "name": "SbbButtonLikeBaseElement",
124187
- "module": "core/base-elements/button-base-element.js"
124188
124227
  }
124189
124228
  },
124190
124229
  {
124191
- "kind": "field",
124192
- "name": "_dispatchClickEvent",
124230
+ "kind": "method",
124231
+ "name": "_checkOrientation",
124193
124232
  "privacy": "private",
124194
- "inheritedFrom": {
124195
- "name": "SbbButtonLikeBaseElement",
124196
- "module": "core/base-elements/button-base-element.js"
124197
- }
124198
- },
124199
- {
124200
- "kind": "field",
124201
- "name": "maybeDisabled",
124202
- "type": {
124203
- "text": "boolean | undefined"
124204
- },
124205
- "privacy": "protected",
124206
- "readonly": true,
124207
- "inheritedFrom": {
124208
- "name": "SbbActionBaseElement",
124209
- "module": "core/base-elements/action-base-element.js"
124233
+ "return": {
124234
+ "type": {
124235
+ "text": "void"
124236
+ }
124210
124237
  }
124211
124238
  },
124212
124239
  {
124213
124240
  "kind": "field",
124214
- "name": "maybeDisabledInteractive",
124215
- "type": {
124216
- "text": "boolean | undefined"
124217
- },
124218
- "privacy": "protected",
124219
- "readonly": true,
124220
- "inheritedFrom": {
124221
- "name": "SbbActionBaseElement",
124222
- "module": "core/base-elements/action-base-element.js"
124223
- }
124241
+ "name": "_onStepperResize",
124242
+ "privacy": "private"
124224
124243
  },
124225
124244
  {
124226
124245
  "kind": "method",
124227
- "name": "setupBaseEventHandlers",
124228
- "privacy": "protected",
124246
+ "name": "_configureLinearMode",
124247
+ "privacy": "private",
124229
124248
  "return": {
124230
124249
  "type": {
124231
124250
  "text": "void"
124232
124251
  }
124233
- },
124234
- "inheritedFrom": {
124235
- "name": "SbbActionBaseElement",
124236
- "module": "core/base-elements/action-base-element.js"
124237
124252
  }
124238
124253
  },
124239
124254
  {
124240
124255
  "kind": "method",
124241
- "name": "renderTemplate",
124242
- "privacy": "protected",
124256
+ "name": "_handleKeyDown",
124257
+ "privacy": "private",
124243
124258
  "return": {
124244
124259
  "type": {
124245
- "text": "TemplateResult"
124260
+ "text": "void"
124246
124261
  }
124247
124262
  },
124248
- "description": "Override this method to render the component template.",
124249
- "inheritedFrom": {
124250
- "name": "SbbActionBaseElement",
124251
- "module": "core/base-elements/action-base-element.js"
124252
- }
124263
+ "parameters": [
124264
+ {
124265
+ "name": "evt",
124266
+ "type": {
124267
+ "text": "KeyboardEvent"
124268
+ }
124269
+ }
124270
+ ]
124253
124271
  },
124254
124272
  {
124255
124273
  "kind": "field",
@@ -124357,109 +124375,91 @@
124357
124375
  }
124358
124376
  }
124359
124377
  ],
124360
- "mixins": [
124361
- {
124362
- "name": "SbbIconNameMixin",
124363
- "module": "icon.js"
124364
- },
124378
+ "events": [
124365
124379
  {
124366
- "name": "SbbDisabledMixin",
124367
- "module": "core/mixins.js"
124380
+ "type": {
124381
+ "text": "SbbStepChangeEvent"
124382
+ },
124383
+ "description": "Emits whenever a step was changed.",
124384
+ "name": "stepchange"
124368
124385
  }
124369
124386
  ],
124370
- "superclass": {
124371
- "name": "SbbButtonBaseElement",
124372
- "module": "core/base-elements.js"
124373
- },
124374
- "tagName": "sbb-step-label",
124375
- "customElement": true,
124376
124387
  "attributes": [
124377
124388
  {
124378
- "name": "icon-name",
124379
- "type": {
124380
- "text": "string"
124381
- },
124382
- "default": "''",
124383
- "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.",
124384
- "fieldName": "iconName",
124385
- "inheritedFrom": {
124386
- "name": "SbbIconNameMixin",
124387
- "module": "icon/icon-name-mixin.js"
124388
- }
124389
- },
124390
- {
124391
- "name": "disabled",
124392
- "description": "Whether the component is disabled.",
124393
- "default": "false",
124389
+ "name": "linear",
124394
124390
  "type": {
124395
124391
  "text": "boolean"
124396
124392
  },
124397
- "fieldName": "disabled",
124398
- "inheritedFrom": {
124399
- "name": "SbbDisabledMixin",
124400
- "module": "core/mixins/disabled-mixin.js"
124401
- }
124393
+ "default": "false",
124394
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
124395
+ "fieldName": "linear"
124402
124396
  },
124403
124397
  {
124404
- "name": "value",
124398
+ "name": "horizontal-from",
124399
+ "description": "Overrides the behavior of `orientation` property.",
124405
124400
  "type": {
124406
- "text": "string"
124401
+ "text": "SbbHorizontalFrom | null"
124407
124402
  },
124408
- "default": "''",
124409
- "description": "Value of the form element.",
124410
- "fieldName": "value",
124411
- "inheritedFrom": {
124412
- "name": "SbbButtonBaseElement",
124413
- "module": "core/base-elements/button-base-element.js"
124414
- }
124403
+ "fieldName": "horizontalFrom"
124415
124404
  },
124416
124405
  {
124417
- "name": "type",
124418
- "description": "The type attribute to use for the button.",
124419
- "default": "'button'",
124406
+ "name": "orientation",
124420
124407
  "type": {
124421
- "text": "SbbButtonType"
124408
+ "text": "SbbOrientation"
124422
124409
  },
124423
- "fieldName": "type",
124424
- "inheritedFrom": {
124425
- "name": "SbbButtonBaseElement",
124426
- "module": "core/base-elements/button-base-element.js"
124427
- }
124410
+ "default": "'horizontal'",
124411
+ "description": "Steps orientation, either horizontal or vertical.",
124412
+ "fieldName": "orientation"
124428
124413
  },
124429
124414
  {
124430
- "name": "form",
124431
- "description": "The `<form>` element to associate the button with.",
124415
+ "name": "size",
124432
124416
  "type": {
124433
- "text": "HTMLFormElement | null"
124417
+ "text": "'s' | 'm'"
124434
124418
  },
124435
- "fieldName": "form",
124436
- "inheritedFrom": {
124437
- "name": "SbbButtonBaseElement",
124438
- "module": "core/base-elements/button-base-element.js"
124439
- }
124419
+ "description": "Size variant, either s or m.",
124420
+ "default": "'m' / 's' (lean)",
124421
+ "fieldName": "size"
124440
124422
  },
124441
124423
  {
124442
- "name": "name",
124443
- "description": "Name of the form element. Will be read from name attribute.",
124424
+ "name": "selected-index",
124425
+ "description": "The currently selected step index.",
124444
124426
  "type": {
124445
- "text": "string"
124427
+ "text": "number | null"
124446
124428
  },
124447
- "fieldName": "name",
124448
- "inheritedFrom": {
124449
- "name": "SbbFormAssociatedMixin",
124450
- "module": "core/mixins/form-associated-mixin.js"
124451
- }
124429
+ "fieldName": "selectedIndex"
124452
124430
  }
124453
- ]
124431
+ ],
124432
+ "superclass": {
124433
+ "name": "SbbElement",
124434
+ "module": "core/base-elements.js"
124435
+ },
124436
+ "tagName": "sbb-stepper",
124437
+ "customElement": true
124438
+ },
124439
+ {
124440
+ "kind": "variable",
124441
+ "name": "currentIndex"
124442
+ },
124443
+ {
124444
+ "kind": "variable",
124445
+ "name": "currentStep"
124454
124446
  }
124455
124447
  ],
124456
124448
  "exports": [
124457
124449
  {
124458
124450
  "kind": "js",
124459
- "name": "SbbStepLabelElement",
124451
+ "name": "SbbStepChangeEvent",
124460
124452
  "declaration": {
124461
- "name": "SbbStepLabelElement",
124462
- "module": "stepper/step-label/step-label.component.js"
124453
+ "name": "SbbStepChangeEvent",
124454
+ "module": "stepper/stepper/stepper.component.js"
124455
+ }
124456
+ },
124457
+ {
124458
+ "kind": "js",
124459
+ "name": "SbbStepperElement",
124460
+ "declaration": {
124461
+ "name": "SbbStepperElement",
124462
+ "module": "stepper/stepper/stepper.component.js"
124463
124463
  }
124464
124464
  }
124465
124465
  ]