@sbb-esta/lyne-elements-dev 4.9.0-dev.1775144212 → 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,479 +101286,151 @@
100973
101286
  },
100974
101287
  {
100975
101288
  "kind": "field",
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",
101289
+ "name": "href",
100991
101290
  "type": {
100992
101291
  "text": "string"
100993
101292
  },
100994
101293
  "privacy": "public",
100995
- "inheritedFrom": {
100996
- "name": "SbbButtonBaseElement",
100997
- "module": "core/base-elements/button-base-element.js"
100998
- },
100999
101294
  "default": "''",
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",
101295
+ "description": "The href value you want to link to.",
101296
+ "attribute": "href",
101297
+ "reflects": true,
101013
101298
  "inheritedFrom": {
101014
- "name": "SbbButtonBaseElement",
101015
- "module": "core/base-elements/button-base-element.js"
101299
+ "name": "SbbLinkBaseElement",
101300
+ "module": "core/base-elements/link-base-element.js"
101016
101301
  }
101017
101302
  },
101018
101303
  {
101019
101304
  "kind": "field",
101020
- "name": "form",
101305
+ "name": "target",
101021
101306
  "type": {
101022
- "text": "HTMLFormElement | null"
101307
+ "text": "LinkTargetType | string"
101023
101308
  },
101024
101309
  "privacy": "public",
101025
- "description": "The `<form>` element to associate the button with.",
101310
+ "default": "''",
101311
+ "description": "Where to display the linked URL.",
101312
+ "attribute": "target",
101313
+ "reflects": true,
101026
101314
  "inheritedFrom": {
101027
- "name": "SbbButtonBaseElement",
101028
- "module": "core/base-elements/button-base-element.js"
101029
- },
101030
- "attribute": "form"
101315
+ "name": "SbbLinkBaseElement",
101316
+ "module": "core/base-elements/link-base-element.js"
101317
+ }
101031
101318
  },
101032
101319
  {
101033
101320
  "kind": "field",
101034
- "name": "_formId",
101321
+ "name": "rel",
101035
101322
  "type": {
101036
101323
  "text": "string"
101037
101324
  },
101038
- "privacy": "private",
101325
+ "privacy": "public",
101039
101326
  "default": "''",
101327
+ "description": "The relationship of the linked URL as space-separated link types.",
101328
+ "attribute": "rel",
101329
+ "reflects": true,
101040
101330
  "inheritedFrom": {
101041
- "name": "SbbButtonBaseElement",
101042
- "module": "core/base-elements/button-base-element.js"
101043
- }
101044
- },
101045
- {
101046
- "kind": "field",
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"
101331
+ "name": "SbbLinkBaseElement",
101332
+ "module": "core/base-elements/link-base-element.js"
101083
101333
  }
101084
101334
  },
101085
101335
  {
101086
101336
  "kind": "field",
101087
- "name": "formAssociated",
101337
+ "name": "download",
101088
101338
  "type": {
101089
101339
  "text": "boolean"
101090
101340
  },
101091
101341
  "privacy": "public",
101092
- "static": true,
101093
- "default": "true",
101342
+ "default": "false",
101343
+ "description": "Whether the browser will show the download dialog on click.",
101344
+ "attribute": "download",
101345
+ "reflects": true,
101094
101346
  "inheritedFrom": {
101095
- "name": "SbbFormAssociatedMixin",
101096
- "module": "core/mixins/form-associated-mixin.js"
101347
+ "name": "SbbLinkBaseElement",
101348
+ "module": "core/base-elements/link-base-element.js"
101097
101349
  }
101098
101350
  },
101099
101351
  {
101100
101352
  "kind": "field",
101101
- "name": "name",
101102
- "privacy": "public",
101103
- "description": "Name of the form element. Will be read from name attribute.",
101353
+ "name": "accessibilityLabel",
101104
101354
  "type": {
101105
101355
  "text": "string"
101106
101356
  },
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
- },
101119
101357
  "privacy": "public",
101120
- "description": "Returns the ValidityState object for this element.",
101121
- "readonly": true,
101358
+ "default": "''",
101359
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101360
+ "attribute": "accessibility-label",
101122
101361
  "inheritedFrom": {
101123
- "name": "SbbFormAssociatedMixin",
101124
- "module": "core/mixins/form-associated-mixin.js"
101362
+ "name": "SbbLinkBaseElement",
101363
+ "module": "core/base-elements/link-base-element.js"
101125
101364
  }
101126
101365
  },
101127
101366
  {
101128
101367
  "kind": "field",
101129
- "name": "validationMessage",
101368
+ "name": "accessibilityCurrent",
101130
101369
  "type": {
101131
101370
  "text": "string"
101132
101371
  },
101133
101372
  "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
- "inheritedFrom": {
101137
- "name": "SbbFormAssociatedMixin",
101138
- "module": "core/mixins/form-associated-mixin.js"
101139
- }
101140
- },
101141
- {
101142
- "kind": "field",
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,
101373
+ "default": "''",
101374
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101375
+ "attribute": "accessibility-current",
101150
101376
  "inheritedFrom": {
101151
- "name": "SbbFormAssociatedMixin",
101152
- "module": "core/mixins/form-associated-mixin.js"
101377
+ "name": "SbbLinkBaseElement",
101378
+ "module": "core/base-elements/link-base-element.js"
101153
101379
  }
101154
101380
  },
101155
101381
  {
101156
101382
  "kind": "field",
101157
- "name": "_validityStates",
101158
- "privacy": "private",
101159
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101383
+ "name": "language",
101384
+ "privacy": "protected",
101385
+ "default": "new SbbLanguageController(this)",
101160
101386
  "inheritedFrom": {
101161
- "name": "SbbFormAssociatedMixin",
101162
- "module": "core/mixins/form-associated-mixin.js"
101387
+ "name": "SbbLinkBaseElement",
101388
+ "module": "core/base-elements/link-base-element.js"
101163
101389
  }
101164
101390
  },
101165
101391
  {
101166
101392
  "kind": "field",
101167
- "name": "formDisabled",
101393
+ "name": "anchorRole",
101168
101394
  "type": {
101169
- "text": "boolean"
101395
+ "text": "string | null"
101170
101396
  },
101171
101397
  "privacy": "protected",
101172
- "default": "false",
101173
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101174
- "inheritedFrom": {
101175
- "name": "SbbFormAssociatedMixin",
101176
- "module": "core/mixins/form-associated-mixin.js"
101177
- }
101178
- },
101179
- {
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.",
101398
+ "readonly": true,
101399
+ "default": "null",
101227
101400
  "inheritedFrom": {
101228
- "name": "SbbFormAssociatedMixin",
101229
- "module": "core/mixins/form-associated-mixin.js"
101401
+ "name": "SbbLinkBaseElement",
101402
+ "module": "core/base-elements/link-base-element.js"
101230
101403
  }
101231
101404
  },
101232
101405
  {
101233
- "kind": "method",
101234
- "name": "_hasDisabledAncestor",
101406
+ "kind": "field",
101407
+ "name": "_evaluateRelAttribute",
101235
101408
  "privacy": "private",
101236
- "return": {
101237
- "type": {
101238
- "text": "boolean"
101239
- }
101240
- },
101241
- "inheritedFrom": {
101242
- "name": "SbbFormAssociatedMixin",
101243
- "module": "core/mixins/form-associated-mixin.js"
101244
- }
101245
- },
101246
- {
101247
- "kind": "method",
101248
- "name": "updateFormValue",
101249
- "privacy": "protected",
101250
- "return": {
101251
- "type": {
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"
101282
- }
101283
- },
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).",
101306
- "inheritedFrom": {
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
101409
  "inheritedFrom": {
101345
- "name": "SbbFormAssociatedMixin",
101346
- "module": "core/mixins/form-associated-mixin.js"
101410
+ "name": "SbbLinkBaseElement",
101411
+ "module": "core/base-elements/link-base-element.js"
101347
101412
  }
101348
101413
  },
101349
101414
  {
101350
101415
  "kind": "method",
101351
- "name": "shouldValidate",
101416
+ "name": "renderLink",
101352
101417
  "privacy": "protected",
101353
101418
  "return": {
101354
101419
  "type": {
101355
- "text": "boolean"
101420
+ "text": "TemplateResult"
101356
101421
  }
101357
101422
  },
101358
101423
  "parameters": [
101359
101424
  {
101360
- "name": "name",
101425
+ "name": "renderContent",
101361
101426
  "type": {
101362
- "text": "PropertyKey | undefined"
101427
+ "text": "TemplateResult"
101363
101428
  }
101364
101429
  }
101365
101430
  ],
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
101431
  "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"
101432
+ "name": "SbbLinkBaseElement",
101433
+ "module": "core/base-elements/link-base-element.js"
101449
101434
  }
101450
101435
  },
101451
101436
  {
@@ -101600,15 +101585,15 @@
101600
101585
  "module": "link/common/block-link-common.js"
101601
101586
  },
101602
101587
  {
101603
- "name": "SbbDisabledTabIndexActionMixin",
101588
+ "name": "SbbDisabledMixin",
101604
101589
  "module": "core/mixins.js"
101605
101590
  }
101606
101591
  ],
101607
101592
  "superclass": {
101608
- "name": "SbbButtonBaseElement",
101593
+ "name": "SbbLinkBaseElement",
101609
101594
  "module": "core/base-elements.js"
101610
101595
  },
101611
- "tagName": "sbb-block-link-button",
101596
+ "tagName": "sbb-block-link",
101612
101597
  "customElement": true,
101613
101598
  "attributes": [
101614
101599
  {
@@ -101651,79 +101636,94 @@
101651
101636
  }
101652
101637
  },
101653
101638
  {
101654
- "name": "disabled-interactive",
101639
+ "name": "disabled",
101640
+ "description": "Whether the component is disabled.",
101641
+ "default": "false",
101655
101642
  "type": {
101656
101643
  "text": "boolean"
101657
101644
  },
101658
- "default": "false",
101659
- "description": "Whether the button should be aria-disabled but stay interactive.",
101660
- "fieldName": "disabledInteractive",
101645
+ "fieldName": "disabled",
101661
101646
  "inheritedFrom": {
101662
- "name": "SbbDisabledInteractiveMixin",
101647
+ "name": "SbbDisabledMixin",
101663
101648
  "module": "core/mixins/disabled-mixin.js"
101664
101649
  }
101665
101650
  },
101666
101651
  {
101667
- "name": "disabled",
101668
- "description": "Whether the component is disabled.",
101669
- "default": "false",
101652
+ "name": "href",
101670
101653
  "type": {
101671
- "text": "boolean"
101654
+ "text": "string"
101672
101655
  },
101673
- "fieldName": "disabled",
101656
+ "default": "''",
101657
+ "description": "The href value you want to link to.",
101658
+ "fieldName": "href",
101674
101659
  "inheritedFrom": {
101675
- "name": "SbbDisabledMixin",
101676
- "module": "core/mixins/disabled-mixin.js"
101660
+ "name": "SbbLinkBaseElement",
101661
+ "module": "core/base-elements/link-base-element.js"
101677
101662
  }
101678
101663
  },
101679
101664
  {
101680
- "name": "value",
101665
+ "name": "target",
101666
+ "type": {
101667
+ "text": "LinkTargetType | string"
101668
+ },
101669
+ "default": "''",
101670
+ "description": "Where to display the linked URL.",
101671
+ "fieldName": "target",
101672
+ "inheritedFrom": {
101673
+ "name": "SbbLinkBaseElement",
101674
+ "module": "core/base-elements/link-base-element.js"
101675
+ }
101676
+ },
101677
+ {
101678
+ "name": "rel",
101681
101679
  "type": {
101682
101680
  "text": "string"
101683
101681
  },
101684
101682
  "default": "''",
101685
- "description": "Value of the form element.",
101686
- "fieldName": "value",
101683
+ "description": "The relationship of the linked URL as space-separated link types.",
101684
+ "fieldName": "rel",
101687
101685
  "inheritedFrom": {
101688
- "name": "SbbButtonBaseElement",
101689
- "module": "core/base-elements/button-base-element.js"
101686
+ "name": "SbbLinkBaseElement",
101687
+ "module": "core/base-elements/link-base-element.js"
101690
101688
  }
101691
101689
  },
101692
101690
  {
101693
- "name": "type",
101694
- "description": "The type attribute to use for the button.",
101695
- "default": "'button'",
101691
+ "name": "download",
101696
101692
  "type": {
101697
- "text": "SbbButtonType"
101693
+ "text": "boolean"
101698
101694
  },
101699
- "fieldName": "type",
101695
+ "default": "false",
101696
+ "description": "Whether the browser will show the download dialog on click.",
101697
+ "fieldName": "download",
101700
101698
  "inheritedFrom": {
101701
- "name": "SbbButtonBaseElement",
101702
- "module": "core/base-elements/button-base-element.js"
101699
+ "name": "SbbLinkBaseElement",
101700
+ "module": "core/base-elements/link-base-element.js"
101703
101701
  }
101704
101702
  },
101705
101703
  {
101706
- "name": "form",
101707
- "description": "The `<form>` element to associate the button with.",
101704
+ "name": "accessibility-label",
101708
101705
  "type": {
101709
- "text": "HTMLFormElement | null"
101706
+ "text": "string"
101710
101707
  },
101711
- "fieldName": "form",
101708
+ "default": "''",
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
  ]