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

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,6 +60619,240 @@
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
+ },
60622
60856
  {
60623
60857
  "kind": "javascript-module",
60624
60858
  "path": "container/sticky-bar/sticky-bar.component.js",
@@ -61081,240 +61315,6 @@
61081
61315
  }
61082
61316
  ]
61083
61317
  },
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-button/block-link-button.component.js",
100094
+ "path": "link/block-link/block-link.component.js",
100095
100095
  "declarations": [
100096
100096
  {
100097
100097
  "kind": "class",
100098
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100099
- "name": "SbbBlockLinkButtonElement",
100098
+ "description": "It displays a link enhanced with the SBB Design.",
100099
+ "name": "SbbBlockLinkElement",
100100
100100
  "slots": [
100101
100101
  {
100102
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100102
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
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-button'"
100124
+ "default": "'sbb-block-link'"
100125
100125
  },
100126
100126
  {
100127
100127
  "kind": "field",
@@ -100250,22 +100250,6 @@
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
- },
100269
100253
  {
100270
100254
  "kind": "field",
100271
100255
  "name": "disabled",
@@ -100312,479 +100296,151 @@
100312
100296
  },
100313
100297
  {
100314
100298
  "kind": "field",
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",
100299
+ "name": "href",
100330
100300
  "type": {
100331
100301
  "text": "string"
100332
100302
  },
100333
100303
  "privacy": "public",
100334
- "inheritedFrom": {
100335
- "name": "SbbButtonBaseElement",
100336
- "module": "core/base-elements/button-base-element.js"
100337
- },
100338
100304
  "default": "''",
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",
100305
+ "description": "The href value you want to link to.",
100306
+ "attribute": "href",
100307
+ "reflects": true,
100352
100308
  "inheritedFrom": {
100353
- "name": "SbbButtonBaseElement",
100354
- "module": "core/base-elements/button-base-element.js"
100309
+ "name": "SbbLinkBaseElement",
100310
+ "module": "core/base-elements/link-base-element.js"
100355
100311
  }
100356
100312
  },
100357
100313
  {
100358
100314
  "kind": "field",
100359
- "name": "form",
100315
+ "name": "target",
100360
100316
  "type": {
100361
- "text": "HTMLFormElement | null"
100317
+ "text": "LinkTargetType | string"
100362
100318
  },
100363
100319
  "privacy": "public",
100364
- "description": "The `<form>` element to associate the button with.",
100320
+ "default": "''",
100321
+ "description": "Where to display the linked URL.",
100322
+ "attribute": "target",
100323
+ "reflects": true,
100365
100324
  "inheritedFrom": {
100366
- "name": "SbbButtonBaseElement",
100367
- "module": "core/base-elements/button-base-element.js"
100368
- },
100369
- "attribute": "form"
100325
+ "name": "SbbLinkBaseElement",
100326
+ "module": "core/base-elements/link-base-element.js"
100327
+ }
100370
100328
  },
100371
100329
  {
100372
100330
  "kind": "field",
100373
- "name": "_formId",
100331
+ "name": "rel",
100374
100332
  "type": {
100375
100333
  "text": "string"
100376
100334
  },
100377
- "privacy": "private",
100335
+ "privacy": "public",
100378
100336
  "default": "''",
100337
+ "description": "The relationship of the linked URL as space-separated link types.",
100338
+ "attribute": "rel",
100339
+ "reflects": true,
100379
100340
  "inheritedFrom": {
100380
- "name": "SbbButtonBaseElement",
100381
- "module": "core/base-elements/button-base-element.js"
100382
- }
100383
- },
100384
- {
100385
- "kind": "field",
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"
100341
+ "name": "SbbLinkBaseElement",
100342
+ "module": "core/base-elements/link-base-element.js"
100422
100343
  }
100423
100344
  },
100424
100345
  {
100425
100346
  "kind": "field",
100426
- "name": "formAssociated",
100347
+ "name": "download",
100427
100348
  "type": {
100428
100349
  "text": "boolean"
100429
100350
  },
100430
100351
  "privacy": "public",
100431
- "static": true,
100432
- "default": "true",
100352
+ "default": "false",
100353
+ "description": "Whether the browser will show the download dialog on click.",
100354
+ "attribute": "download",
100355
+ "reflects": true,
100433
100356
  "inheritedFrom": {
100434
- "name": "SbbFormAssociatedMixin",
100435
- "module": "core/mixins/form-associated-mixin.js"
100357
+ "name": "SbbLinkBaseElement",
100358
+ "module": "core/base-elements/link-base-element.js"
100436
100359
  }
100437
100360
  },
100438
100361
  {
100439
100362
  "kind": "field",
100440
- "name": "name",
100441
- "privacy": "public",
100442
- "description": "Name of the form element. Will be read from name attribute.",
100363
+ "name": "accessibilityLabel",
100443
100364
  "type": {
100444
100365
  "text": "string"
100445
100366
  },
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
- },
100458
100367
  "privacy": "public",
100459
- "description": "Returns the ValidityState object for this element.",
100460
- "readonly": true,
100368
+ "default": "''",
100369
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
100370
+ "attribute": "accessibility-label",
100461
100371
  "inheritedFrom": {
100462
- "name": "SbbFormAssociatedMixin",
100463
- "module": "core/mixins/form-associated-mixin.js"
100372
+ "name": "SbbLinkBaseElement",
100373
+ "module": "core/base-elements/link-base-element.js"
100464
100374
  }
100465
100375
  },
100466
100376
  {
100467
100377
  "kind": "field",
100468
- "name": "validationMessage",
100378
+ "name": "accessibilityCurrent",
100469
100379
  "type": {
100470
100380
  "text": "string"
100471
100381
  },
100472
100382
  "privacy": "public",
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,
100475
- "inheritedFrom": {
100476
- "name": "SbbFormAssociatedMixin",
100477
- "module": "core/mixins/form-associated-mixin.js"
100478
- }
100479
- },
100480
- {
100481
- "kind": "field",
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,
100383
+ "default": "''",
100384
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
100385
+ "attribute": "accessibility-current",
100489
100386
  "inheritedFrom": {
100490
- "name": "SbbFormAssociatedMixin",
100491
- "module": "core/mixins/form-associated-mixin.js"
100387
+ "name": "SbbLinkBaseElement",
100388
+ "module": "core/base-elements/link-base-element.js"
100492
100389
  }
100493
100390
  },
100494
100391
  {
100495
100392
  "kind": "field",
100496
- "name": "_validityStates",
100497
- "privacy": "private",
100498
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100393
+ "name": "language",
100394
+ "privacy": "protected",
100395
+ "default": "new SbbLanguageController(this)",
100499
100396
  "inheritedFrom": {
100500
- "name": "SbbFormAssociatedMixin",
100501
- "module": "core/mixins/form-associated-mixin.js"
100397
+ "name": "SbbLinkBaseElement",
100398
+ "module": "core/base-elements/link-base-element.js"
100502
100399
  }
100503
100400
  },
100504
100401
  {
100505
100402
  "kind": "field",
100506
- "name": "formDisabled",
100403
+ "name": "anchorRole",
100507
100404
  "type": {
100508
- "text": "boolean"
100405
+ "text": "string | null"
100509
100406
  },
100510
100407
  "privacy": "protected",
100511
- "default": "false",
100512
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100513
- "inheritedFrom": {
100514
- "name": "SbbFormAssociatedMixin",
100515
- "module": "core/mixins/form-associated-mixin.js"
100516
- }
100517
- },
100518
- {
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.",
100408
+ "readonly": true,
100409
+ "default": "null",
100566
100410
  "inheritedFrom": {
100567
- "name": "SbbFormAssociatedMixin",
100568
- "module": "core/mixins/form-associated-mixin.js"
100411
+ "name": "SbbLinkBaseElement",
100412
+ "module": "core/base-elements/link-base-element.js"
100569
100413
  }
100570
100414
  },
100571
100415
  {
100572
- "kind": "method",
100573
- "name": "_hasDisabledAncestor",
100416
+ "kind": "field",
100417
+ "name": "_evaluateRelAttribute",
100574
100418
  "privacy": "private",
100575
- "return": {
100576
- "type": {
100577
- "text": "boolean"
100578
- }
100579
- },
100580
- "inheritedFrom": {
100581
- "name": "SbbFormAssociatedMixin",
100582
- "module": "core/mixins/form-associated-mixin.js"
100583
- }
100584
- },
100585
- {
100586
- "kind": "method",
100587
- "name": "updateFormValue",
100588
- "privacy": "protected",
100589
- "return": {
100590
- "type": {
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"
100621
- }
100622
- },
100623
- "parameters": [
100624
- {
100625
- "name": "flag",
100626
- "type": {
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]"
100641
- }
100642
- }
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).",
100645
- "inheritedFrom": {
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
100419
  "inheritedFrom": {
100684
- "name": "SbbFormAssociatedMixin",
100685
- "module": "core/mixins/form-associated-mixin.js"
100420
+ "name": "SbbLinkBaseElement",
100421
+ "module": "core/base-elements/link-base-element.js"
100686
100422
  }
100687
100423
  },
100688
100424
  {
100689
100425
  "kind": "method",
100690
- "name": "shouldValidate",
100426
+ "name": "renderLink",
100691
100427
  "privacy": "protected",
100692
100428
  "return": {
100693
100429
  "type": {
100694
- "text": "boolean"
100430
+ "text": "TemplateResult"
100695
100431
  }
100696
100432
  },
100697
100433
  "parameters": [
100698
100434
  {
100699
- "name": "name",
100435
+ "name": "renderContent",
100700
100436
  "type": {
100701
- "text": "PropertyKey | undefined"
100437
+ "text": "TemplateResult"
100702
100438
  }
100703
100439
  }
100704
100440
  ],
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
100441
  "inheritedFrom": {
100786
- "name": "SbbButtonLikeBaseElement",
100787
- "module": "core/base-elements/button-base-element.js"
100442
+ "name": "SbbLinkBaseElement",
100443
+ "module": "core/base-elements/link-base-element.js"
100788
100444
  }
100789
100445
  },
100790
100446
  {
@@ -100939,15 +100595,15 @@
100939
100595
  "module": "link/common/block-link-common.js"
100940
100596
  },
100941
100597
  {
100942
- "name": "SbbDisabledTabIndexActionMixin",
100598
+ "name": "SbbDisabledMixin",
100943
100599
  "module": "core/mixins.js"
100944
100600
  }
100945
100601
  ],
100946
100602
  "superclass": {
100947
- "name": "SbbButtonBaseElement",
100603
+ "name": "SbbLinkBaseElement",
100948
100604
  "module": "core/base-elements.js"
100949
100605
  },
100950
- "tagName": "sbb-block-link-button",
100606
+ "tagName": "sbb-block-link",
100951
100607
  "customElement": true,
100952
100608
  "attributes": [
100953
100609
  {
@@ -100989,19 +100645,6 @@
100989
100645
  "module": "icon/icon-name-mixin.js"
100990
100646
  }
100991
100647
  },
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
- },
101005
100648
  {
101006
100649
  "name": "disabled",
101007
100650
  "description": "Whether the component is disabled.",
@@ -101016,53 +100659,81 @@
101016
100659
  }
101017
100660
  },
101018
100661
  {
101019
- "name": "value",
100662
+ "name": "href",
101020
100663
  "type": {
101021
100664
  "text": "string"
101022
100665
  },
101023
100666
  "default": "''",
101024
- "description": "Value of the form element.",
101025
- "fieldName": "value",
100667
+ "description": "The href value you want to link to.",
100668
+ "fieldName": "href",
101026
100669
  "inheritedFrom": {
101027
- "name": "SbbButtonBaseElement",
101028
- "module": "core/base-elements/button-base-element.js"
100670
+ "name": "SbbLinkBaseElement",
100671
+ "module": "core/base-elements/link-base-element.js"
101029
100672
  }
101030
100673
  },
101031
100674
  {
101032
- "name": "type",
101033
- "description": "The type attribute to use for the button.",
101034
- "default": "'button'",
100675
+ "name": "target",
101035
100676
  "type": {
101036
- "text": "SbbButtonType"
100677
+ "text": "LinkTargetType | string"
101037
100678
  },
101038
- "fieldName": "type",
100679
+ "default": "''",
100680
+ "description": "Where to display the linked URL.",
100681
+ "fieldName": "target",
101039
100682
  "inheritedFrom": {
101040
- "name": "SbbButtonBaseElement",
101041
- "module": "core/base-elements/button-base-element.js"
100683
+ "name": "SbbLinkBaseElement",
100684
+ "module": "core/base-elements/link-base-element.js"
101042
100685
  }
101043
100686
  },
101044
100687
  {
101045
- "name": "form",
101046
- "description": "The `<form>` element to associate the button with.",
100688
+ "name": "rel",
101047
100689
  "type": {
101048
- "text": "HTMLFormElement | null"
100690
+ "text": "string"
101049
100691
  },
101050
- "fieldName": "form",
100692
+ "default": "''",
100693
+ "description": "The relationship of the linked URL as space-separated link types.",
100694
+ "fieldName": "rel",
101051
100695
  "inheritedFrom": {
101052
- "name": "SbbButtonBaseElement",
101053
- "module": "core/base-elements/button-base-element.js"
100696
+ "name": "SbbLinkBaseElement",
100697
+ "module": "core/base-elements/link-base-element.js"
101054
100698
  }
101055
100699
  },
101056
100700
  {
101057
- "name": "name",
101058
- "description": "Name of the form element. Will be read from name attribute.",
100701
+ "name": "download",
100702
+ "type": {
100703
+ "text": "boolean"
100704
+ },
100705
+ "default": "false",
100706
+ "description": "Whether the browser will show the download dialog on click.",
100707
+ "fieldName": "download",
100708
+ "inheritedFrom": {
100709
+ "name": "SbbLinkBaseElement",
100710
+ "module": "core/base-elements/link-base-element.js"
100711
+ }
100712
+ },
100713
+ {
100714
+ "name": "accessibility-label",
101059
100715
  "type": {
101060
100716
  "text": "string"
101061
100717
  },
101062
- "fieldName": "name",
100718
+ "default": "''",
100719
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
100720
+ "fieldName": "accessibilityLabel",
101063
100721
  "inheritedFrom": {
101064
- "name": "SbbFormAssociatedMixin",
101065
- "module": "core/mixins/form-associated-mixin.js"
100722
+ "name": "SbbLinkBaseElement",
100723
+ "module": "core/base-elements/link-base-element.js"
100724
+ }
100725
+ },
100726
+ {
100727
+ "name": "accessibility-current",
100728
+ "type": {
100729
+ "text": "string"
100730
+ },
100731
+ "default": "''",
100732
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
100733
+ "fieldName": "accessibilityCurrent",
100734
+ "inheritedFrom": {
100735
+ "name": "SbbLinkBaseElement",
100736
+ "module": "core/base-elements/link-base-element.js"
101066
100737
  }
101067
100738
  }
101068
100739
  ]
@@ -101071,25 +100742,25 @@
101071
100742
  "exports": [
101072
100743
  {
101073
100744
  "kind": "js",
101074
- "name": "SbbBlockLinkButtonElement",
100745
+ "name": "SbbBlockLinkElement",
101075
100746
  "declaration": {
101076
- "name": "SbbBlockLinkButtonElement",
101077
- "module": "link/block-link-button/block-link-button.component.js"
100747
+ "name": "SbbBlockLinkElement",
100748
+ "module": "link/block-link/block-link.component.js"
101078
100749
  }
101079
100750
  }
101080
100751
  ]
101081
100752
  },
101082
100753
  {
101083
100754
  "kind": "javascript-module",
101084
- "path": "link/block-link/block-link.component.js",
100755
+ "path": "link/block-link-button/block-link-button.component.js",
101085
100756
  "declarations": [
101086
100757
  {
101087
100758
  "kind": "class",
101088
- "description": "It displays a link enhanced with the SBB Design.",
101089
- "name": "SbbBlockLinkElement",
100759
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100760
+ "name": "SbbBlockLinkButtonElement",
101090
100761
  "slots": [
101091
100762
  {
101092
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100763
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101093
100764
  "name": ""
101094
100765
  },
101095
100766
  {
@@ -101111,7 +100782,7 @@
101111
100782
  "name": "SbbElement",
101112
100783
  "module": "core/base-elements/element.js"
101113
100784
  },
101114
- "default": "'sbb-block-link'"
100785
+ "default": "'sbb-block-link-button'"
101115
100786
  },
101116
100787
  {
101117
100788
  "kind": "field",
@@ -101240,6 +100911,22 @@
101240
100911
  "module": "icon/icon-name-mixin.js"
101241
100912
  }
101242
100913
  },
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
+ },
101243
100930
  {
101244
100931
  "kind": "field",
101245
100932
  "name": "disabled",
@@ -101286,151 +100973,479 @@
101286
100973
  },
101287
100974
  {
101288
100975
  "kind": "field",
101289
- "name": "href",
100976
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100977
+ "type": {
100978
+ "text": "array"
100979
+ },
100980
+ "privacy": "private",
100981
+ "readonly": true,
100982
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100983
+ "inheritedFrom": {
100984
+ "name": "SbbButtonBaseElement",
100985
+ "module": "core/base-elements/button-base-element.js"
100986
+ }
100987
+ },
100988
+ {
100989
+ "kind": "field",
100990
+ "name": "value",
101290
100991
  "type": {
101291
100992
  "text": "string"
101292
100993
  },
101293
100994
  "privacy": "public",
100995
+ "inheritedFrom": {
100996
+ "name": "SbbButtonBaseElement",
100997
+ "module": "core/base-elements/button-base-element.js"
100998
+ },
101294
100999
  "default": "''",
101295
- "description": "The href value you want to link to.",
101296
- "attribute": "href",
101297
- "reflects": true,
101000
+ "description": "Value of the form element.",
101001
+ "attribute": "value"
101002
+ },
101003
+ {
101004
+ "kind": "field",
101005
+ "name": "type",
101006
+ "privacy": "public",
101007
+ "description": "The type attribute to use for the button.",
101008
+ "default": "'button'",
101009
+ "type": {
101010
+ "text": "SbbButtonType"
101011
+ },
101012
+ "attribute": "type",
101298
101013
  "inheritedFrom": {
101299
- "name": "SbbLinkBaseElement",
101300
- "module": "core/base-elements/link-base-element.js"
101014
+ "name": "SbbButtonBaseElement",
101015
+ "module": "core/base-elements/button-base-element.js"
101301
101016
  }
101302
101017
  },
101303
101018
  {
101304
101019
  "kind": "field",
101305
- "name": "target",
101020
+ "name": "form",
101306
101021
  "type": {
101307
- "text": "LinkTargetType | string"
101022
+ "text": "HTMLFormElement | null"
101308
101023
  },
101309
101024
  "privacy": "public",
101310
- "default": "''",
101311
- "description": "Where to display the linked URL.",
101312
- "attribute": "target",
101313
- "reflects": true,
101025
+ "description": "The `<form>` element to associate the button with.",
101314
101026
  "inheritedFrom": {
101315
- "name": "SbbLinkBaseElement",
101316
- "module": "core/base-elements/link-base-element.js"
101317
- }
101027
+ "name": "SbbButtonBaseElement",
101028
+ "module": "core/base-elements/button-base-element.js"
101029
+ },
101030
+ "attribute": "form"
101318
101031
  },
101319
101032
  {
101320
101033
  "kind": "field",
101321
- "name": "rel",
101034
+ "name": "_formId",
101322
101035
  "type": {
101323
101036
  "text": "string"
101324
101037
  },
101325
- "privacy": "public",
101038
+ "privacy": "private",
101326
101039
  "default": "''",
101327
- "description": "The relationship of the linked URL as space-separated link types.",
101328
- "attribute": "rel",
101329
- "reflects": true,
101330
101040
  "inheritedFrom": {
101331
- "name": "SbbLinkBaseElement",
101332
- "module": "core/base-elements/link-base-element.js"
101041
+ "name": "SbbButtonBaseElement",
101042
+ "module": "core/base-elements/button-base-element.js"
101333
101043
  }
101334
101044
  },
101335
101045
  {
101336
101046
  "kind": "field",
101337
- "name": "download",
101047
+ "name": "_handleButtonClick",
101048
+ "privacy": "private",
101049
+ "inheritedFrom": {
101050
+ "name": "SbbButtonBaseElement",
101051
+ "module": "core/base-elements/button-base-element.js"
101052
+ }
101053
+ },
101054
+ {
101055
+ "kind": "method",
101056
+ "name": "_requestSubmit",
101057
+ "privacy": "private",
101058
+ "return": {
101059
+ "type": {
101060
+ "text": "void"
101061
+ }
101062
+ },
101063
+ "parameters": [
101064
+ {
101065
+ "name": "form",
101066
+ "type": {
101067
+ "text": "HTMLFormElement"
101068
+ }
101069
+ }
101070
+ ],
101071
+ "inheritedFrom": {
101072
+ "name": "SbbButtonBaseElement",
101073
+ "module": "core/base-elements/button-base-element.js"
101074
+ }
101075
+ },
101076
+ {
101077
+ "kind": "field",
101078
+ "name": "_formKeyDown",
101079
+ "privacy": "private",
101080
+ "inheritedFrom": {
101081
+ "name": "SbbButtonBaseElement",
101082
+ "module": "core/base-elements/button-base-element.js"
101083
+ }
101084
+ },
101085
+ {
101086
+ "kind": "field",
101087
+ "name": "formAssociated",
101338
101088
  "type": {
101339
101089
  "text": "boolean"
101340
101090
  },
101341
101091
  "privacy": "public",
101342
- "default": "false",
101343
- "description": "Whether the browser will show the download dialog on click.",
101344
- "attribute": "download",
101345
- "reflects": true,
101092
+ "static": true,
101093
+ "default": "true",
101346
101094
  "inheritedFrom": {
101347
- "name": "SbbLinkBaseElement",
101348
- "module": "core/base-elements/link-base-element.js"
101095
+ "name": "SbbFormAssociatedMixin",
101096
+ "module": "core/mixins/form-associated-mixin.js"
101349
101097
  }
101350
101098
  },
101351
101099
  {
101352
101100
  "kind": "field",
101353
- "name": "accessibilityLabel",
101101
+ "name": "name",
101102
+ "privacy": "public",
101103
+ "description": "Name of the form element. Will be read from name attribute.",
101354
101104
  "type": {
101355
101105
  "text": "string"
101356
101106
  },
101107
+ "attribute": "name",
101108
+ "inheritedFrom": {
101109
+ "name": "SbbFormAssociatedMixin",
101110
+ "module": "core/mixins/form-associated-mixin.js"
101111
+ }
101112
+ },
101113
+ {
101114
+ "kind": "field",
101115
+ "name": "validity",
101116
+ "type": {
101117
+ "text": "ValidityState"
101118
+ },
101357
101119
  "privacy": "public",
101358
- "default": "''",
101359
- "description": "This will be forwarded as aria-label to the inner anchor element.",
101360
- "attribute": "accessibility-label",
101120
+ "description": "Returns the ValidityState object for this element.",
101121
+ "readonly": true,
101361
101122
  "inheritedFrom": {
101362
- "name": "SbbLinkBaseElement",
101363
- "module": "core/base-elements/link-base-element.js"
101123
+ "name": "SbbFormAssociatedMixin",
101124
+ "module": "core/mixins/form-associated-mixin.js"
101364
101125
  }
101365
101126
  },
101366
101127
  {
101367
101128
  "kind": "field",
101368
- "name": "accessibilityCurrent",
101129
+ "name": "validationMessage",
101369
101130
  "type": {
101370
101131
  "text": "string"
101371
101132
  },
101372
101133
  "privacy": "public",
101373
- "default": "''",
101374
- "description": "This will be forwarded as aria-current to the inner anchor element.",
101375
- "attribute": "accessibility-current",
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,
101376
101136
  "inheritedFrom": {
101377
- "name": "SbbLinkBaseElement",
101378
- "module": "core/base-elements/link-base-element.js"
101137
+ "name": "SbbFormAssociatedMixin",
101138
+ "module": "core/mixins/form-associated-mixin.js"
101379
101139
  }
101380
101140
  },
101381
101141
  {
101382
101142
  "kind": "field",
101383
- "name": "language",
101384
- "privacy": "protected",
101385
- "default": "new SbbLanguageController(this)",
101143
+ "name": "willValidate",
101144
+ "type": {
101145
+ "text": "boolean"
101146
+ },
101147
+ "privacy": "public",
101148
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101149
+ "readonly": true,
101386
101150
  "inheritedFrom": {
101387
- "name": "SbbLinkBaseElement",
101388
- "module": "core/base-elements/link-base-element.js"
101151
+ "name": "SbbFormAssociatedMixin",
101152
+ "module": "core/mixins/form-associated-mixin.js"
101389
101153
  }
101390
101154
  },
101391
101155
  {
101392
101156
  "kind": "field",
101393
- "name": "anchorRole",
101157
+ "name": "_validityStates",
101158
+ "privacy": "private",
101159
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101160
+ "inheritedFrom": {
101161
+ "name": "SbbFormAssociatedMixin",
101162
+ "module": "core/mixins/form-associated-mixin.js"
101163
+ }
101164
+ },
101165
+ {
101166
+ "kind": "field",
101167
+ "name": "formDisabled",
101394
101168
  "type": {
101395
- "text": "string | null"
101169
+ "text": "boolean"
101396
101170
  },
101397
101171
  "privacy": "protected",
101398
- "readonly": true,
101399
- "default": "null",
101172
+ "default": "false",
101173
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101400
101174
  "inheritedFrom": {
101401
- "name": "SbbLinkBaseElement",
101402
- "module": "core/base-elements/link-base-element.js"
101175
+ "name": "SbbFormAssociatedMixin",
101176
+ "module": "core/mixins/form-associated-mixin.js"
101403
101177
  }
101404
101178
  },
101405
101179
  {
101406
- "kind": "field",
101407
- "name": "_evaluateRelAttribute",
101180
+ "kind": "method",
101181
+ "name": "checkValidity",
101182
+ "privacy": "public",
101183
+ "return": {
101184
+ "type": {
101185
+ "text": "boolean"
101186
+ }
101187
+ },
101188
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101189
+ "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
+ }
101202
+ },
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
+ }
101208
+ },
101209
+ {
101210
+ "kind": "method",
101211
+ "name": "setCustomValidity",
101212
+ "privacy": "public",
101213
+ "return": {
101214
+ "type": {
101215
+ "text": "void"
101216
+ }
101217
+ },
101218
+ "parameters": [
101219
+ {
101220
+ "name": "message",
101221
+ "type": {
101222
+ "text": "string"
101223
+ }
101224
+ }
101225
+ ],
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
+ "inheritedFrom": {
101228
+ "name": "SbbFormAssociatedMixin",
101229
+ "module": "core/mixins/form-associated-mixin.js"
101230
+ }
101231
+ },
101232
+ {
101233
+ "kind": "method",
101234
+ "name": "_hasDisabledAncestor",
101408
101235
  "privacy": "private",
101236
+ "return": {
101237
+ "type": {
101238
+ "text": "boolean"
101239
+ }
101240
+ },
101409
101241
  "inheritedFrom": {
101410
- "name": "SbbLinkBaseElement",
101411
- "module": "core/base-elements/link-base-element.js"
101242
+ "name": "SbbFormAssociatedMixin",
101243
+ "module": "core/mixins/form-associated-mixin.js"
101412
101244
  }
101413
101245
  },
101414
101246
  {
101415
101247
  "kind": "method",
101416
- "name": "renderLink",
101248
+ "name": "updateFormValue",
101417
101249
  "privacy": "protected",
101418
101250
  "return": {
101419
101251
  "type": {
101420
- "text": "TemplateResult"
101252
+ "text": "void"
101253
+ }
101254
+ },
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",
101256
+ "inheritedFrom": {
101257
+ "name": "SbbFormAssociatedMixin",
101258
+ "module": "core/mixins/form-associated-mixin.js"
101259
+ }
101260
+ },
101261
+ {
101262
+ "kind": "method",
101263
+ "name": "formState",
101264
+ "privacy": "protected",
101265
+ "return": {
101266
+ "type": {
101267
+ "text": "FormRestoreState"
101268
+ }
101269
+ },
101270
+ "inheritedFrom": {
101271
+ "name": "SbbFormAssociatedMixin",
101272
+ "module": "core/mixins/form-associated-mixin.js"
101273
+ }
101274
+ },
101275
+ {
101276
+ "kind": "method",
101277
+ "name": "setValidityFlag",
101278
+ "privacy": "protected",
101279
+ "return": {
101280
+ "type": {
101281
+ "text": "void"
101421
101282
  }
101422
101283
  },
101423
101284
  "parameters": [
101424
101285
  {
101425
- "name": "renderContent",
101286
+ "name": "flag",
101426
101287
  "type": {
101427
- "text": "TemplateResult"
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]"
101428
101302
  }
101429
101303
  }
101430
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).",
101431
101306
  "inheritedFrom": {
101432
- "name": "SbbLinkBaseElement",
101433
- "module": "core/base-elements/link-base-element.js"
101307
+ "name": "SbbFormAssociatedMixin",
101308
+ "module": "core/mixins/form-associated-mixin.js"
101309
+ }
101310
+ },
101311
+ {
101312
+ "kind": "method",
101313
+ "name": "removeValidityFlag",
101314
+ "privacy": "protected",
101315
+ "return": {
101316
+ "type": {
101317
+ "text": "void"
101318
+ }
101319
+ },
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.",
101329
+ "inheritedFrom": {
101330
+ "name": "SbbFormAssociatedMixin",
101331
+ "module": "core/mixins/form-associated-mixin.js"
101332
+ }
101333
+ },
101334
+ {
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"
101434
101449
  }
101435
101450
  },
101436
101451
  {
@@ -101585,15 +101600,15 @@
101585
101600
  "module": "link/common/block-link-common.js"
101586
101601
  },
101587
101602
  {
101588
- "name": "SbbDisabledMixin",
101603
+ "name": "SbbDisabledTabIndexActionMixin",
101589
101604
  "module": "core/mixins.js"
101590
101605
  }
101591
101606
  ],
101592
101607
  "superclass": {
101593
- "name": "SbbLinkBaseElement",
101608
+ "name": "SbbButtonBaseElement",
101594
101609
  "module": "core/base-elements.js"
101595
101610
  },
101596
- "tagName": "sbb-block-link",
101611
+ "tagName": "sbb-block-link-button",
101597
101612
  "customElement": true,
101598
101613
  "attributes": [
101599
101614
  {
@@ -101636,94 +101651,79 @@
101636
101651
  }
101637
101652
  },
101638
101653
  {
101639
- "name": "disabled",
101640
- "description": "Whether the component is disabled.",
101641
- "default": "false",
101654
+ "name": "disabled-interactive",
101642
101655
  "type": {
101643
101656
  "text": "boolean"
101644
101657
  },
101645
- "fieldName": "disabled",
101658
+ "default": "false",
101659
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101660
+ "fieldName": "disabledInteractive",
101646
101661
  "inheritedFrom": {
101647
- "name": "SbbDisabledMixin",
101662
+ "name": "SbbDisabledInteractiveMixin",
101648
101663
  "module": "core/mixins/disabled-mixin.js"
101649
101664
  }
101650
101665
  },
101651
101666
  {
101652
- "name": "href",
101653
- "type": {
101654
- "text": "string"
101655
- },
101656
- "default": "''",
101657
- "description": "The href value you want to link to.",
101658
- "fieldName": "href",
101659
- "inheritedFrom": {
101660
- "name": "SbbLinkBaseElement",
101661
- "module": "core/base-elements/link-base-element.js"
101662
- }
101663
- },
101664
- {
101665
- "name": "target",
101667
+ "name": "disabled",
101668
+ "description": "Whether the component is disabled.",
101669
+ "default": "false",
101666
101670
  "type": {
101667
- "text": "LinkTargetType | string"
101671
+ "text": "boolean"
101668
101672
  },
101669
- "default": "''",
101670
- "description": "Where to display the linked URL.",
101671
- "fieldName": "target",
101673
+ "fieldName": "disabled",
101672
101674
  "inheritedFrom": {
101673
- "name": "SbbLinkBaseElement",
101674
- "module": "core/base-elements/link-base-element.js"
101675
+ "name": "SbbDisabledMixin",
101676
+ "module": "core/mixins/disabled-mixin.js"
101675
101677
  }
101676
101678
  },
101677
101679
  {
101678
- "name": "rel",
101680
+ "name": "value",
101679
101681
  "type": {
101680
101682
  "text": "string"
101681
101683
  },
101682
101684
  "default": "''",
101683
- "description": "The relationship of the linked URL as space-separated link types.",
101684
- "fieldName": "rel",
101685
+ "description": "Value of the form element.",
101686
+ "fieldName": "value",
101685
101687
  "inheritedFrom": {
101686
- "name": "SbbLinkBaseElement",
101687
- "module": "core/base-elements/link-base-element.js"
101688
+ "name": "SbbButtonBaseElement",
101689
+ "module": "core/base-elements/button-base-element.js"
101688
101690
  }
101689
101691
  },
101690
101692
  {
101691
- "name": "download",
101693
+ "name": "type",
101694
+ "description": "The type attribute to use for the button.",
101695
+ "default": "'button'",
101692
101696
  "type": {
101693
- "text": "boolean"
101697
+ "text": "SbbButtonType"
101694
101698
  },
101695
- "default": "false",
101696
- "description": "Whether the browser will show the download dialog on click.",
101697
- "fieldName": "download",
101699
+ "fieldName": "type",
101698
101700
  "inheritedFrom": {
101699
- "name": "SbbLinkBaseElement",
101700
- "module": "core/base-elements/link-base-element.js"
101701
+ "name": "SbbButtonBaseElement",
101702
+ "module": "core/base-elements/button-base-element.js"
101701
101703
  }
101702
101704
  },
101703
101705
  {
101704
- "name": "accessibility-label",
101706
+ "name": "form",
101707
+ "description": "The `<form>` element to associate the button with.",
101705
101708
  "type": {
101706
- "text": "string"
101709
+ "text": "HTMLFormElement | null"
101707
101710
  },
101708
- "default": "''",
101709
- "description": "This will be forwarded as aria-label to the inner anchor element.",
101710
- "fieldName": "accessibilityLabel",
101711
+ "fieldName": "form",
101711
101712
  "inheritedFrom": {
101712
- "name": "SbbLinkBaseElement",
101713
- "module": "core/base-elements/link-base-element.js"
101713
+ "name": "SbbButtonBaseElement",
101714
+ "module": "core/base-elements/button-base-element.js"
101714
101715
  }
101715
101716
  },
101716
101717
  {
101717
- "name": "accessibility-current",
101718
+ "name": "name",
101719
+ "description": "Name of the form element. Will be read from name attribute.",
101718
101720
  "type": {
101719
101721
  "text": "string"
101720
101722
  },
101721
- "default": "''",
101722
- "description": "This will be forwarded as aria-current to the inner anchor element.",
101723
- "fieldName": "accessibilityCurrent",
101723
+ "fieldName": "name",
101724
101724
  "inheritedFrom": {
101725
- "name": "SbbLinkBaseElement",
101726
- "module": "core/base-elements/link-base-element.js"
101725
+ "name": "SbbFormAssociatedMixin",
101726
+ "module": "core/mixins/form-associated-mixin.js"
101727
101727
  }
101728
101728
  }
101729
101729
  ]
@@ -101732,10 +101732,10 @@
101732
101732
  "exports": [
101733
101733
  {
101734
101734
  "kind": "js",
101735
- "name": "SbbBlockLinkElement",
101735
+ "name": "SbbBlockLinkButtonElement",
101736
101736
  "declaration": {
101737
- "name": "SbbBlockLinkElement",
101738
- "module": "link/block-link/block-link.component.js"
101737
+ "name": "SbbBlockLinkButtonElement",
101738
+ "module": "link/block-link-button/block-link-button.component.js"
101739
101739
  }
101740
101740
  }
101741
101741
  ]