@sbb-esta/lyne-elements-dev 4.12.1-dev.1777961178 → 4.12.1-dev.1777980762

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1007 -1007
  2. package/package.json +2 -2
@@ -94658,253 +94658,6 @@
94658
94658
  }
94659
94659
  ]
94660
94660
  },
94661
- {
94662
- "kind": "javascript-module",
94663
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
94664
- "declarations": [
94665
- {
94666
- "kind": "class",
94667
- "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
94668
- "name": "SbbFormFieldTextCounterElement",
94669
- "slots": [
94670
- {
94671
- "description": "Use the unnamed slot to display a custom description text after the counter.",
94672
- "name": "",
94673
- "inheritedFrom": {
94674
- "name": "SbbHintElement",
94675
- "module": "form-field/hint/hint.component.js"
94676
- }
94677
- }
94678
- ],
94679
- "members": [
94680
- {
94681
- "kind": "field",
94682
- "name": "elementName",
94683
- "type": {
94684
- "text": "string"
94685
- },
94686
- "privacy": "public",
94687
- "static": true,
94688
- "readonly": true,
94689
- "default": "'sbb-form-field-text-counter'",
94690
- "inheritedFrom": {
94691
- "name": "SbbElement",
94692
- "module": "core/base-elements/element.js"
94693
- }
94694
- },
94695
- {
94696
- "kind": "field",
94697
- "name": "_remainingCharacters",
94698
- "type": {
94699
- "text": "number"
94700
- },
94701
- "privacy": "private",
94702
- "default": "0"
94703
- },
94704
- {
94705
- "kind": "field",
94706
- "name": "_language",
94707
- "privacy": "private",
94708
- "default": "new SbbLanguageController(this)"
94709
- },
94710
- {
94711
- "kind": "field",
94712
- "name": "_abortController",
94713
- "type": {
94714
- "text": "AbortController | null"
94715
- },
94716
- "privacy": "private",
94717
- "default": "null"
94718
- },
94719
- {
94720
- "kind": "method",
94721
- "name": "_onInputUpdate",
94722
- "privacy": "private",
94723
- "return": {
94724
- "type": {
94725
- "text": "void"
94726
- }
94727
- }
94728
- },
94729
- {
94730
- "kind": "method",
94731
- "name": "_infoText",
94732
- "privacy": "private",
94733
- "return": {
94734
- "type": {
94735
- "text": "string"
94736
- }
94737
- }
94738
- },
94739
- {
94740
- "kind": "field",
94741
- "name": "negative",
94742
- "type": {
94743
- "text": "boolean"
94744
- },
94745
- "privacy": "public",
94746
- "default": "false",
94747
- "description": "Negative coloring variant flag.",
94748
- "attribute": "negative",
94749
- "reflects": true,
94750
- "inheritedFrom": {
94751
- "name": "SbbNegativeMixin",
94752
- "module": "core/mixins/negative-mixin.js"
94753
- }
94754
- },
94755
- {
94756
- "kind": "field",
94757
- "name": "formField",
94758
- "type": {
94759
- "text": "SbbFormFieldElement | null"
94760
- },
94761
- "privacy": "protected",
94762
- "default": "null",
94763
- "inheritedFrom": {
94764
- "name": "SbbHintElement",
94765
- "module": "form-field/hint/hint.component.js"
94766
- }
94767
- },
94768
- {
94769
- "kind": "field",
94770
- "name": "_hydrationRequired",
94771
- "type": {
94772
- "text": "boolean"
94773
- },
94774
- "privacy": "private",
94775
- "default": "!!this.shadowRoot",
94776
- "inheritedFrom": {
94777
- "name": "SbbElement",
94778
- "module": "core/base-elements/element.js"
94779
- }
94780
- },
94781
- {
94782
- "kind": "field",
94783
- "name": "_hydrationComplete",
94784
- "privacy": "private",
94785
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
94786
- "inheritedFrom": {
94787
- "name": "SbbElement",
94788
- "module": "core/base-elements/element.js"
94789
- }
94790
- },
94791
- {
94792
- "kind": "field",
94793
- "name": "_resolveHydration",
94794
- "type": {
94795
- "text": "(hydrationRequired: boolean) => void"
94796
- },
94797
- "privacy": "private",
94798
- "inheritedFrom": {
94799
- "name": "SbbElement",
94800
- "module": "core/base-elements/element.js"
94801
- }
94802
- },
94803
- {
94804
- "kind": "field",
94805
- "name": "hydrationRequired",
94806
- "type": {
94807
- "text": "boolean"
94808
- },
94809
- "privacy": "protected",
94810
- "description": "Returns whether hydration is required and not completed.",
94811
- "readonly": true,
94812
- "inheritedFrom": {
94813
- "name": "SbbElement",
94814
- "module": "core/base-elements/element.js"
94815
- },
94816
- "default": "!!this.shadowRoot"
94817
- },
94818
- {
94819
- "kind": "method",
94820
- "name": "toggleState",
94821
- "privacy": "protected",
94822
- "return": {
94823
- "type": {
94824
- "text": "void"
94825
- }
94826
- },
94827
- "parameters": [
94828
- {
94829
- "name": "value",
94830
- "type": {
94831
- "text": "string"
94832
- }
94833
- },
94834
- {
94835
- "name": "force",
94836
- "optional": true,
94837
- "type": {
94838
- "text": "boolean"
94839
- }
94840
- }
94841
- ],
94842
- "inheritedFrom": {
94843
- "name": "SbbElement",
94844
- "module": "core/base-elements/element.js"
94845
- }
94846
- },
94847
- {
94848
- "kind": "field",
94849
- "name": "['_$sbbElement$']",
94850
- "type": {
94851
- "text": "boolean"
94852
- },
94853
- "privacy": "public",
94854
- "static": true,
94855
- "default": "true",
94856
- "inheritedFrom": {
94857
- "name": "SbbElement",
94858
- "module": "core/base-elements/element.js"
94859
- }
94860
- },
94861
- {
94862
- "kind": "field",
94863
- "name": "_controllers",
94864
- "type": {
94865
- "text": "Set<SbbReactiveController> | undefined"
94866
- },
94867
- "privacy": "private",
94868
- "inheritedFrom": {
94869
- "name": "SbbElement",
94870
- "module": "core/base-elements/element.js"
94871
- }
94872
- }
94873
- ],
94874
- "superclass": {
94875
- "name": "SbbHintElement",
94876
- "module": "form-field/hint/hint.component.js"
94877
- },
94878
- "tagName": "sbb-form-field-text-counter",
94879
- "customElement": true,
94880
- "attributes": [
94881
- {
94882
- "name": "negative",
94883
- "type": {
94884
- "text": "boolean"
94885
- },
94886
- "default": "false",
94887
- "description": "Negative coloring variant flag.",
94888
- "fieldName": "negative",
94889
- "inheritedFrom": {
94890
- "name": "SbbNegativeMixin",
94891
- "module": "core/mixins/negative-mixin.js"
94892
- }
94893
- }
94894
- ]
94895
- }
94896
- ],
94897
- "exports": [
94898
- {
94899
- "kind": "js",
94900
- "name": "SbbFormFieldTextCounterElement",
94901
- "declaration": {
94902
- "name": "SbbFormFieldTextCounterElement",
94903
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
94904
- }
94905
- }
94906
- ]
94907
- },
94908
94661
  {
94909
94662
  "kind": "javascript-module",
94910
94663
  "path": "form-field/form-field-clear/form-field-clear.component.js",
@@ -95715,17 +95468,264 @@
95715
95468
  },
95716
95469
  {
95717
95470
  "kind": "javascript-module",
95718
- "path": "form-field/hint/hint.component.js",
95471
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
95719
95472
  "declarations": [
95720
95473
  {
95721
95474
  "kind": "class",
95722
- "description": "It displays a hint message in the `sbb-form-field`.",
95723
- "name": "SbbHintElement",
95475
+ "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
95476
+ "name": "SbbFormFieldTextCounterElement",
95724
95477
  "slots": [
95725
95478
  {
95726
- "description": "Use the unnamed slot to display the hint message.",
95727
- "name": ""
95728
- }
95479
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
95480
+ "name": "",
95481
+ "inheritedFrom": {
95482
+ "name": "SbbHintElement",
95483
+ "module": "form-field/hint/hint.component.js"
95484
+ }
95485
+ }
95486
+ ],
95487
+ "members": [
95488
+ {
95489
+ "kind": "field",
95490
+ "name": "elementName",
95491
+ "type": {
95492
+ "text": "string"
95493
+ },
95494
+ "privacy": "public",
95495
+ "static": true,
95496
+ "readonly": true,
95497
+ "default": "'sbb-form-field-text-counter'",
95498
+ "inheritedFrom": {
95499
+ "name": "SbbElement",
95500
+ "module": "core/base-elements/element.js"
95501
+ }
95502
+ },
95503
+ {
95504
+ "kind": "field",
95505
+ "name": "_remainingCharacters",
95506
+ "type": {
95507
+ "text": "number"
95508
+ },
95509
+ "privacy": "private",
95510
+ "default": "0"
95511
+ },
95512
+ {
95513
+ "kind": "field",
95514
+ "name": "_language",
95515
+ "privacy": "private",
95516
+ "default": "new SbbLanguageController(this)"
95517
+ },
95518
+ {
95519
+ "kind": "field",
95520
+ "name": "_abortController",
95521
+ "type": {
95522
+ "text": "AbortController | null"
95523
+ },
95524
+ "privacy": "private",
95525
+ "default": "null"
95526
+ },
95527
+ {
95528
+ "kind": "method",
95529
+ "name": "_onInputUpdate",
95530
+ "privacy": "private",
95531
+ "return": {
95532
+ "type": {
95533
+ "text": "void"
95534
+ }
95535
+ }
95536
+ },
95537
+ {
95538
+ "kind": "method",
95539
+ "name": "_infoText",
95540
+ "privacy": "private",
95541
+ "return": {
95542
+ "type": {
95543
+ "text": "string"
95544
+ }
95545
+ }
95546
+ },
95547
+ {
95548
+ "kind": "field",
95549
+ "name": "negative",
95550
+ "type": {
95551
+ "text": "boolean"
95552
+ },
95553
+ "privacy": "public",
95554
+ "default": "false",
95555
+ "description": "Negative coloring variant flag.",
95556
+ "attribute": "negative",
95557
+ "reflects": true,
95558
+ "inheritedFrom": {
95559
+ "name": "SbbNegativeMixin",
95560
+ "module": "core/mixins/negative-mixin.js"
95561
+ }
95562
+ },
95563
+ {
95564
+ "kind": "field",
95565
+ "name": "formField",
95566
+ "type": {
95567
+ "text": "SbbFormFieldElement | null"
95568
+ },
95569
+ "privacy": "protected",
95570
+ "default": "null",
95571
+ "inheritedFrom": {
95572
+ "name": "SbbHintElement",
95573
+ "module": "form-field/hint/hint.component.js"
95574
+ }
95575
+ },
95576
+ {
95577
+ "kind": "field",
95578
+ "name": "_hydrationRequired",
95579
+ "type": {
95580
+ "text": "boolean"
95581
+ },
95582
+ "privacy": "private",
95583
+ "default": "!!this.shadowRoot",
95584
+ "inheritedFrom": {
95585
+ "name": "SbbElement",
95586
+ "module": "core/base-elements/element.js"
95587
+ }
95588
+ },
95589
+ {
95590
+ "kind": "field",
95591
+ "name": "_hydrationComplete",
95592
+ "privacy": "private",
95593
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
95594
+ "inheritedFrom": {
95595
+ "name": "SbbElement",
95596
+ "module": "core/base-elements/element.js"
95597
+ }
95598
+ },
95599
+ {
95600
+ "kind": "field",
95601
+ "name": "_resolveHydration",
95602
+ "type": {
95603
+ "text": "(hydrationRequired: boolean) => void"
95604
+ },
95605
+ "privacy": "private",
95606
+ "inheritedFrom": {
95607
+ "name": "SbbElement",
95608
+ "module": "core/base-elements/element.js"
95609
+ }
95610
+ },
95611
+ {
95612
+ "kind": "field",
95613
+ "name": "hydrationRequired",
95614
+ "type": {
95615
+ "text": "boolean"
95616
+ },
95617
+ "privacy": "protected",
95618
+ "description": "Returns whether hydration is required and not completed.",
95619
+ "readonly": true,
95620
+ "inheritedFrom": {
95621
+ "name": "SbbElement",
95622
+ "module": "core/base-elements/element.js"
95623
+ },
95624
+ "default": "!!this.shadowRoot"
95625
+ },
95626
+ {
95627
+ "kind": "method",
95628
+ "name": "toggleState",
95629
+ "privacy": "protected",
95630
+ "return": {
95631
+ "type": {
95632
+ "text": "void"
95633
+ }
95634
+ },
95635
+ "parameters": [
95636
+ {
95637
+ "name": "value",
95638
+ "type": {
95639
+ "text": "string"
95640
+ }
95641
+ },
95642
+ {
95643
+ "name": "force",
95644
+ "optional": true,
95645
+ "type": {
95646
+ "text": "boolean"
95647
+ }
95648
+ }
95649
+ ],
95650
+ "inheritedFrom": {
95651
+ "name": "SbbElement",
95652
+ "module": "core/base-elements/element.js"
95653
+ }
95654
+ },
95655
+ {
95656
+ "kind": "field",
95657
+ "name": "['_$sbbElement$']",
95658
+ "type": {
95659
+ "text": "boolean"
95660
+ },
95661
+ "privacy": "public",
95662
+ "static": true,
95663
+ "default": "true",
95664
+ "inheritedFrom": {
95665
+ "name": "SbbElement",
95666
+ "module": "core/base-elements/element.js"
95667
+ }
95668
+ },
95669
+ {
95670
+ "kind": "field",
95671
+ "name": "_controllers",
95672
+ "type": {
95673
+ "text": "Set<SbbReactiveController> | undefined"
95674
+ },
95675
+ "privacy": "private",
95676
+ "inheritedFrom": {
95677
+ "name": "SbbElement",
95678
+ "module": "core/base-elements/element.js"
95679
+ }
95680
+ }
95681
+ ],
95682
+ "superclass": {
95683
+ "name": "SbbHintElement",
95684
+ "module": "form-field/hint/hint.component.js"
95685
+ },
95686
+ "tagName": "sbb-form-field-text-counter",
95687
+ "customElement": true,
95688
+ "attributes": [
95689
+ {
95690
+ "name": "negative",
95691
+ "type": {
95692
+ "text": "boolean"
95693
+ },
95694
+ "default": "false",
95695
+ "description": "Negative coloring variant flag.",
95696
+ "fieldName": "negative",
95697
+ "inheritedFrom": {
95698
+ "name": "SbbNegativeMixin",
95699
+ "module": "core/mixins/negative-mixin.js"
95700
+ }
95701
+ }
95702
+ ]
95703
+ }
95704
+ ],
95705
+ "exports": [
95706
+ {
95707
+ "kind": "js",
95708
+ "name": "SbbFormFieldTextCounterElement",
95709
+ "declaration": {
95710
+ "name": "SbbFormFieldTextCounterElement",
95711
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
95712
+ }
95713
+ }
95714
+ ]
95715
+ },
95716
+ {
95717
+ "kind": "javascript-module",
95718
+ "path": "form-field/hint/hint.component.js",
95719
+ "declarations": [
95720
+ {
95721
+ "kind": "class",
95722
+ "description": "It displays a hint message in the `sbb-form-field`.",
95723
+ "name": "SbbHintElement",
95724
+ "slots": [
95725
+ {
95726
+ "description": "Use the unnamed slot to display the hint message.",
95727
+ "name": ""
95728
+ }
95729
95729
  ],
95730
95730
  "members": [
95731
95731
  {
@@ -100327,15 +100327,15 @@
100327
100327
  },
100328
100328
  {
100329
100329
  "kind": "javascript-module",
100330
- "path": "link/block-link/block-link.component.js",
100330
+ "path": "link/block-link-button/block-link-button.component.js",
100331
100331
  "declarations": [
100332
100332
  {
100333
100333
  "kind": "class",
100334
- "description": "It displays a link enhanced with the SBB Design.",
100335
- "name": "SbbBlockLinkElement",
100334
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100335
+ "name": "SbbBlockLinkButtonElement",
100336
100336
  "slots": [
100337
100337
  {
100338
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100338
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100339
100339
  "name": ""
100340
100340
  },
100341
100341
  {
@@ -100357,7 +100357,7 @@
100357
100357
  "name": "SbbElement",
100358
100358
  "module": "core/base-elements/element.js"
100359
100359
  },
100360
- "default": "'sbb-block-link'"
100360
+ "default": "'sbb-block-link-button'"
100361
100361
  },
100362
100362
  {
100363
100363
  "kind": "field",
@@ -100486,6 +100486,22 @@
100486
100486
  "module": "icon/icon-name-mixin.js"
100487
100487
  }
100488
100488
  },
100489
+ {
100490
+ "kind": "field",
100491
+ "name": "disabledInteractive",
100492
+ "type": {
100493
+ "text": "boolean"
100494
+ },
100495
+ "privacy": "public",
100496
+ "default": "false",
100497
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100498
+ "attribute": "disabled-interactive",
100499
+ "reflects": true,
100500
+ "inheritedFrom": {
100501
+ "name": "SbbDisabledInteractiveMixin",
100502
+ "module": "core/mixins/disabled-mixin.js"
100503
+ }
100504
+ },
100489
100505
  {
100490
100506
  "kind": "field",
100491
100507
  "name": "disabled",
@@ -100532,247 +100548,243 @@
100532
100548
  },
100533
100549
  {
100534
100550
  "kind": "field",
100535
- "name": "href",
100551
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100536
100552
  "type": {
100537
- "text": "string"
100553
+ "text": "array"
100538
100554
  },
100539
- "privacy": "public",
100540
- "default": "''",
100541
- "description": "The href value you want to link to.",
100542
- "attribute": "href",
100543
- "reflects": true,
100555
+ "privacy": "private",
100556
+ "readonly": true,
100557
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100544
100558
  "inheritedFrom": {
100545
- "name": "SbbLinkBaseElement",
100546
- "module": "core/base-elements/link-base-element.js"
100559
+ "name": "SbbButtonBaseElement",
100560
+ "module": "core/base-elements/button-base-element.js"
100547
100561
  }
100548
100562
  },
100549
100563
  {
100550
100564
  "kind": "field",
100551
- "name": "target",
100565
+ "name": "value",
100552
100566
  "type": {
100553
- "text": "LinkTargetType | string"
100567
+ "text": "string"
100554
100568
  },
100555
100569
  "privacy": "public",
100556
- "default": "''",
100557
- "description": "Where to display the linked URL.",
100558
- "attribute": "target",
100559
- "reflects": true,
100560
100570
  "inheritedFrom": {
100561
- "name": "SbbLinkBaseElement",
100562
- "module": "core/base-elements/link-base-element.js"
100563
- }
100564
- },
100565
- {
100566
- "kind": "field",
100567
- "name": "rel",
100568
- "type": {
100569
- "text": "string"
100571
+ "name": "SbbButtonBaseElement",
100572
+ "module": "core/base-elements/button-base-element.js"
100570
100573
  },
100571
- "privacy": "public",
100572
100574
  "default": "''",
100573
- "description": "The relationship of the linked URL as space-separated link types.",
100574
- "attribute": "rel",
100575
- "reflects": true,
100576
- "inheritedFrom": {
100577
- "name": "SbbLinkBaseElement",
100578
- "module": "core/base-elements/link-base-element.js"
100579
- }
100575
+ "description": "Value of the form element.",
100576
+ "attribute": "value"
100580
100577
  },
100581
100578
  {
100582
100579
  "kind": "field",
100583
- "name": "download",
100580
+ "name": "type",
100581
+ "privacy": "public",
100582
+ "description": "The type attribute to use for the button.",
100583
+ "default": "'button'",
100584
100584
  "type": {
100585
- "text": "boolean"
100585
+ "text": "SbbButtonType"
100586
100586
  },
100587
- "privacy": "public",
100588
- "default": "false",
100589
- "description": "Whether the browser will show the download dialog on click.",
100590
- "attribute": "download",
100591
- "reflects": true,
100587
+ "attribute": "type",
100592
100588
  "inheritedFrom": {
100593
- "name": "SbbLinkBaseElement",
100594
- "module": "core/base-elements/link-base-element.js"
100589
+ "name": "SbbButtonBaseElement",
100590
+ "module": "core/base-elements/button-base-element.js"
100595
100591
  }
100596
100592
  },
100597
100593
  {
100598
100594
  "kind": "field",
100599
- "name": "accessibilityLabel",
100595
+ "name": "form",
100600
100596
  "type": {
100601
- "text": "string"
100597
+ "text": "HTMLFormElement | null"
100602
100598
  },
100603
100599
  "privacy": "public",
100604
- "default": "''",
100605
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100606
- "attribute": "accessibility-label",
100600
+ "description": "The `<form>` element to associate the button with.",
100607
100601
  "inheritedFrom": {
100608
- "name": "SbbLinkBaseElement",
100609
- "module": "core/base-elements/link-base-element.js"
100610
- }
100602
+ "name": "SbbButtonBaseElement",
100603
+ "module": "core/base-elements/button-base-element.js"
100604
+ },
100605
+ "attribute": "form"
100611
100606
  },
100612
100607
  {
100613
100608
  "kind": "field",
100614
- "name": "accessibilityCurrent",
100609
+ "name": "_formId",
100615
100610
  "type": {
100616
100611
  "text": "string"
100617
100612
  },
100618
- "privacy": "public",
100613
+ "privacy": "private",
100619
100614
  "default": "''",
100620
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100621
- "attribute": "accessibility-current",
100622
- "inheritedFrom": {
100623
- "name": "SbbLinkBaseElement",
100624
- "module": "core/base-elements/link-base-element.js"
100625
- }
100626
- },
100627
- {
100628
- "kind": "field",
100629
- "name": "language",
100630
- "privacy": "protected",
100631
- "default": "new SbbLanguageController(this)",
100632
- "inheritedFrom": {
100633
- "name": "SbbLinkBaseElement",
100634
- "module": "core/base-elements/link-base-element.js"
100635
- }
100636
- },
100637
- {
100638
- "kind": "field",
100639
- "name": "anchorRole",
100640
- "type": {
100641
- "text": "string | null"
100642
- },
100643
- "privacy": "protected",
100644
- "readonly": true,
100645
- "default": "null",
100646
100615
  "inheritedFrom": {
100647
- "name": "SbbLinkBaseElement",
100648
- "module": "core/base-elements/link-base-element.js"
100616
+ "name": "SbbButtonBaseElement",
100617
+ "module": "core/base-elements/button-base-element.js"
100649
100618
  }
100650
100619
  },
100651
100620
  {
100652
100621
  "kind": "field",
100653
- "name": "_evaluateRelAttribute",
100622
+ "name": "_handleButtonClick",
100654
100623
  "privacy": "private",
100655
100624
  "inheritedFrom": {
100656
- "name": "SbbLinkBaseElement",
100657
- "module": "core/base-elements/link-base-element.js"
100625
+ "name": "SbbButtonBaseElement",
100626
+ "module": "core/base-elements/button-base-element.js"
100658
100627
  }
100659
100628
  },
100660
100629
  {
100661
100630
  "kind": "method",
100662
- "name": "renderLink",
100663
- "privacy": "protected",
100631
+ "name": "_requestSubmit",
100632
+ "privacy": "private",
100664
100633
  "return": {
100665
100634
  "type": {
100666
- "text": "TemplateResult"
100635
+ "text": "void"
100667
100636
  }
100668
100637
  },
100669
100638
  "parameters": [
100670
100639
  {
100671
- "name": "renderContent",
100640
+ "name": "form",
100672
100641
  "type": {
100673
- "text": "TemplateResult"
100642
+ "text": "HTMLFormElement"
100674
100643
  }
100675
100644
  }
100676
100645
  ],
100677
100646
  "inheritedFrom": {
100678
- "name": "SbbLinkBaseElement",
100679
- "module": "core/base-elements/link-base-element.js"
100647
+ "name": "SbbButtonBaseElement",
100648
+ "module": "core/base-elements/button-base-element.js"
100680
100649
  }
100681
100650
  },
100682
100651
  {
100683
100652
  "kind": "field",
100684
- "name": "maybeDisabled",
100685
- "type": {
100686
- "text": "boolean | undefined"
100687
- },
100688
- "privacy": "protected",
100689
- "readonly": true,
100653
+ "name": "_formKeyDown",
100654
+ "privacy": "private",
100690
100655
  "inheritedFrom": {
100691
- "name": "SbbActionBaseElement",
100692
- "module": "core/base-elements/action-base-element.js"
100656
+ "name": "SbbButtonBaseElement",
100657
+ "module": "core/base-elements/button-base-element.js"
100693
100658
  }
100694
100659
  },
100695
100660
  {
100696
100661
  "kind": "field",
100697
- "name": "maybeDisabledInteractive",
100662
+ "name": "formAssociated",
100698
100663
  "type": {
100699
- "text": "boolean | undefined"
100664
+ "text": "boolean"
100700
100665
  },
100701
- "privacy": "protected",
100702
- "readonly": true,
100666
+ "privacy": "public",
100667
+ "static": true,
100668
+ "default": "true",
100703
100669
  "inheritedFrom": {
100704
- "name": "SbbActionBaseElement",
100705
- "module": "core/base-elements/action-base-element.js"
100670
+ "name": "SbbFormAssociatedMixin",
100671
+ "module": "core/mixins/form-associated-mixin.js"
100706
100672
  }
100707
100673
  },
100708
100674
  {
100709
- "kind": "method",
100710
- "name": "setupBaseEventHandlers",
100711
- "privacy": "protected",
100712
- "return": {
100713
- "type": {
100714
- "text": "void"
100715
- }
100675
+ "kind": "field",
100676
+ "name": "name",
100677
+ "privacy": "public",
100678
+ "description": "Name of the form element. Will be read from name attribute.",
100679
+ "type": {
100680
+ "text": "string"
100716
100681
  },
100682
+ "attribute": "name",
100717
100683
  "inheritedFrom": {
100718
- "name": "SbbActionBaseElement",
100719
- "module": "core/base-elements/action-base-element.js"
100684
+ "name": "SbbFormAssociatedMixin",
100685
+ "module": "core/mixins/form-associated-mixin.js"
100720
100686
  }
100721
100687
  },
100722
100688
  {
100723
100689
  "kind": "field",
100724
- "name": "_hydrationRequired",
100690
+ "name": "validity",
100725
100691
  "type": {
100726
- "text": "boolean"
100692
+ "text": "ValidityState"
100727
100693
  },
100728
- "privacy": "private",
100729
- "default": "!!this.shadowRoot",
100694
+ "privacy": "public",
100695
+ "description": "Returns the ValidityState object for this element.",
100696
+ "readonly": true,
100730
100697
  "inheritedFrom": {
100731
- "name": "SbbElement",
100732
- "module": "core/base-elements/element.js"
100698
+ "name": "SbbFormAssociatedMixin",
100699
+ "module": "core/mixins/form-associated-mixin.js"
100733
100700
  }
100734
100701
  },
100735
100702
  {
100736
100703
  "kind": "field",
100737
- "name": "_hydrationComplete",
100738
- "privacy": "private",
100739
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
100704
+ "name": "validationMessage",
100705
+ "type": {
100706
+ "text": "string"
100707
+ },
100708
+ "privacy": "public",
100709
+ "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.",
100710
+ "readonly": true,
100740
100711
  "inheritedFrom": {
100741
- "name": "SbbElement",
100742
- "module": "core/base-elements/element.js"
100712
+ "name": "SbbFormAssociatedMixin",
100713
+ "module": "core/mixins/form-associated-mixin.js"
100743
100714
  }
100744
100715
  },
100745
100716
  {
100746
100717
  "kind": "field",
100747
- "name": "_resolveHydration",
100718
+ "name": "willValidate",
100748
100719
  "type": {
100749
- "text": "(hydrationRequired: boolean) => void"
100720
+ "text": "boolean"
100750
100721
  },
100722
+ "privacy": "public",
100723
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100724
+ "readonly": true,
100725
+ "inheritedFrom": {
100726
+ "name": "SbbFormAssociatedMixin",
100727
+ "module": "core/mixins/form-associated-mixin.js"
100728
+ }
100729
+ },
100730
+ {
100731
+ "kind": "field",
100732
+ "name": "_validityStates",
100751
100733
  "privacy": "private",
100734
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100752
100735
  "inheritedFrom": {
100753
- "name": "SbbElement",
100754
- "module": "core/base-elements/element.js"
100736
+ "name": "SbbFormAssociatedMixin",
100737
+ "module": "core/mixins/form-associated-mixin.js"
100755
100738
  }
100756
100739
  },
100757
100740
  {
100758
100741
  "kind": "field",
100759
- "name": "hydrationRequired",
100742
+ "name": "formDisabled",
100760
100743
  "type": {
100761
100744
  "text": "boolean"
100762
100745
  },
100763
100746
  "privacy": "protected",
100764
- "description": "Returns whether hydration is required and not completed.",
100765
- "readonly": true,
100747
+ "default": "false",
100748
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100766
100749
  "inheritedFrom": {
100767
- "name": "SbbElement",
100768
- "module": "core/base-elements/element.js"
100769
- },
100770
- "default": "!!this.shadowRoot"
100750
+ "name": "SbbFormAssociatedMixin",
100751
+ "module": "core/mixins/form-associated-mixin.js"
100752
+ }
100771
100753
  },
100772
100754
  {
100773
100755
  "kind": "method",
100774
- "name": "toggleState",
100775
- "privacy": "protected",
100756
+ "name": "checkValidity",
100757
+ "privacy": "public",
100758
+ "return": {
100759
+ "type": {
100760
+ "text": "boolean"
100761
+ }
100762
+ },
100763
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100764
+ "inheritedFrom": {
100765
+ "name": "SbbFormAssociatedMixin",
100766
+ "module": "core/mixins/form-associated-mixin.js"
100767
+ }
100768
+ },
100769
+ {
100770
+ "kind": "method",
100771
+ "name": "reportValidity",
100772
+ "privacy": "public",
100773
+ "return": {
100774
+ "type": {
100775
+ "text": "boolean"
100776
+ }
100777
+ },
100778
+ "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.",
100779
+ "inheritedFrom": {
100780
+ "name": "SbbFormAssociatedMixin",
100781
+ "module": "core/mixins/form-associated-mixin.js"
100782
+ }
100783
+ },
100784
+ {
100785
+ "kind": "method",
100786
+ "name": "setCustomValidity",
100787
+ "privacy": "public",
100776
100788
  "return": {
100777
100789
  "type": {
100778
100790
  "text": "void"
@@ -100780,908 +100792,881 @@
100780
100792
  },
100781
100793
  "parameters": [
100782
100794
  {
100783
- "name": "value",
100795
+ "name": "message",
100796
+ "type": {
100797
+ "text": "string"
100798
+ }
100799
+ }
100800
+ ],
100801
+ "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.",
100802
+ "inheritedFrom": {
100803
+ "name": "SbbFormAssociatedMixin",
100804
+ "module": "core/mixins/form-associated-mixin.js"
100805
+ }
100806
+ },
100807
+ {
100808
+ "kind": "method",
100809
+ "name": "_hasDisabledAncestor",
100810
+ "privacy": "private",
100811
+ "return": {
100812
+ "type": {
100813
+ "text": "boolean"
100814
+ }
100815
+ },
100816
+ "inheritedFrom": {
100817
+ "name": "SbbFormAssociatedMixin",
100818
+ "module": "core/mixins/form-associated-mixin.js"
100819
+ }
100820
+ },
100821
+ {
100822
+ "kind": "method",
100823
+ "name": "updateFormValue",
100824
+ "privacy": "protected",
100825
+ "return": {
100826
+ "type": {
100827
+ "text": "void"
100828
+ }
100829
+ },
100830
+ "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",
100831
+ "inheritedFrom": {
100832
+ "name": "SbbFormAssociatedMixin",
100833
+ "module": "core/mixins/form-associated-mixin.js"
100834
+ }
100835
+ },
100836
+ {
100837
+ "kind": "method",
100838
+ "name": "formState",
100839
+ "privacy": "protected",
100840
+ "return": {
100841
+ "type": {
100842
+ "text": "FormRestoreState"
100843
+ }
100844
+ },
100845
+ "inheritedFrom": {
100846
+ "name": "SbbFormAssociatedMixin",
100847
+ "module": "core/mixins/form-associated-mixin.js"
100848
+ }
100849
+ },
100850
+ {
100851
+ "kind": "method",
100852
+ "name": "setValidityFlag",
100853
+ "privacy": "protected",
100854
+ "return": {
100855
+ "type": {
100856
+ "text": "void"
100857
+ }
100858
+ },
100859
+ "parameters": [
100860
+ {
100861
+ "name": "flag",
100862
+ "type": {
100863
+ "text": "T"
100864
+ }
100865
+ },
100866
+ {
100867
+ "name": "message",
100784
100868
  "type": {
100785
100869
  "text": "string"
100786
100870
  }
100787
100871
  },
100788
100872
  {
100789
- "name": "force",
100873
+ "name": "flagValue",
100790
100874
  "optional": true,
100791
100875
  "type": {
100792
- "text": "boolean"
100876
+ "text": "ValidityStateFlags[T]"
100793
100877
  }
100794
100878
  }
100795
100879
  ],
100880
+ "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).",
100796
100881
  "inheritedFrom": {
100797
- "name": "SbbElement",
100798
- "module": "core/base-elements/element.js"
100882
+ "name": "SbbFormAssociatedMixin",
100883
+ "module": "core/mixins/form-associated-mixin.js"
100884
+ }
100885
+ },
100886
+ {
100887
+ "kind": "method",
100888
+ "name": "removeValidityFlag",
100889
+ "privacy": "protected",
100890
+ "return": {
100891
+ "type": {
100892
+ "text": "void"
100893
+ }
100894
+ },
100895
+ "parameters": [
100896
+ {
100897
+ "name": "flag",
100898
+ "type": {
100899
+ "text": "T"
100900
+ }
100901
+ }
100902
+ ],
100903
+ "description": "Removes the validity state flag entry and updates validity state.",
100904
+ "inheritedFrom": {
100905
+ "name": "SbbFormAssociatedMixin",
100906
+ "module": "core/mixins/form-associated-mixin.js"
100907
+ }
100908
+ },
100909
+ {
100910
+ "kind": "method",
100911
+ "name": "validate",
100912
+ "privacy": "protected",
100913
+ "return": {
100914
+ "type": {
100915
+ "text": "void"
100916
+ }
100917
+ },
100918
+ "description": "To be called whenever the current element needs to be validated.",
100919
+ "inheritedFrom": {
100920
+ "name": "SbbFormAssociatedMixin",
100921
+ "module": "core/mixins/form-associated-mixin.js"
100922
+ }
100923
+ },
100924
+ {
100925
+ "kind": "method",
100926
+ "name": "shouldValidate",
100927
+ "privacy": "protected",
100928
+ "return": {
100929
+ "type": {
100930
+ "text": "boolean"
100931
+ }
100932
+ },
100933
+ "parameters": [
100934
+ {
100935
+ "name": "name",
100936
+ "type": {
100937
+ "text": "PropertyKey | undefined"
100938
+ }
100939
+ }
100940
+ ],
100941
+ "description": "Whether validation should be run on a property change with the given name.",
100942
+ "inheritedFrom": {
100943
+ "name": "SbbFormAssociatedMixin",
100944
+ "module": "core/mixins/form-associated-mixin.js"
100945
+ }
100946
+ },
100947
+ {
100948
+ "kind": "method",
100949
+ "name": "_setInternalValidity",
100950
+ "privacy": "private",
100951
+ "return": {
100952
+ "type": {
100953
+ "text": "void"
100954
+ }
100955
+ },
100956
+ "inheritedFrom": {
100957
+ "name": "SbbFormAssociatedMixin",
100958
+ "module": "core/mixins/form-associated-mixin.js"
100799
100959
  }
100800
100960
  },
100801
100961
  {
100802
100962
  "kind": "field",
100803
- "name": "['_$sbbElement$']",
100963
+ "name": "role",
100804
100964
  "type": {
100805
- "text": "boolean"
100965
+ "text": "ElementInternals['role']"
100806
100966
  },
100807
100967
  "privacy": "public",
100808
100968
  "static": true,
100809
- "default": "true",
100969
+ "readonly": true,
100970
+ "default": "'button'",
100810
100971
  "inheritedFrom": {
100811
- "name": "SbbElement",
100812
- "module": "core/base-elements/element.js"
100972
+ "name": "SbbButtonLikeBaseElement",
100973
+ "module": "core/base-elements/button-base-element.js"
100813
100974
  }
100814
100975
  },
100815
100976
  {
100816
100977
  "kind": "field",
100817
- "name": "_controllers",
100818
- "type": {
100819
- "text": "Set<SbbReactiveController> | undefined"
100820
- },
100978
+ "name": "_preventScrollOnSpaceKeydown",
100821
100979
  "privacy": "private",
100980
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
100981
+ "parameters": [
100982
+ {
100983
+ "description": "The origin event.",
100984
+ "name": "event"
100985
+ }
100986
+ ],
100822
100987
  "inheritedFrom": {
100823
- "name": "SbbElement",
100824
- "module": "core/base-elements/element.js"
100988
+ "name": "SbbButtonLikeBaseElement",
100989
+ "module": "core/base-elements/button-base-element.js"
100825
100990
  }
100826
- }
100827
- ],
100828
- "mixins": [
100829
- {
100830
- "name": "SbbBlockLinkCommonElementMixin",
100831
- "module": "link/common/block-link-common.js"
100832
100991
  },
100833
100992
  {
100834
- "name": "SbbDisabledMixin",
100835
- "module": "core/mixins.js"
100836
- }
100837
- ],
100838
- "superclass": {
100839
- "name": "SbbLinkBaseElement",
100840
- "module": "core/base-elements.js"
100841
- },
100842
- "tagName": "sbb-block-link",
100843
- "customElement": true,
100844
- "attributes": [
100993
+ "kind": "field",
100994
+ "name": "_removeActiveMarker",
100995
+ "privacy": "private",
100996
+ "inheritedFrom": {
100997
+ "name": "SbbButtonLikeBaseElement",
100998
+ "module": "core/base-elements/button-base-element.js"
100999
+ }
101000
+ },
100845
101001
  {
100846
- "name": "icon-placement",
100847
- "type": {
100848
- "text": "SbbIconPlacement"
100849
- },
100850
- "default": "'start'",
100851
- "description": "Moves the icon to the end of the component if set to true.",
100852
- "fieldName": "iconPlacement",
101002
+ "kind": "field",
101003
+ "name": "_dispatchClickEventOnSpaceKeyup",
101004
+ "privacy": "private",
101005
+ "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.",
101006
+ "parameters": [
101007
+ {
101008
+ "description": "The origin event.",
101009
+ "name": "event"
101010
+ }
101011
+ ],
100853
101012
  "inheritedFrom": {
100854
- "name": "SbbBlockLinkCommonElementMixin",
100855
- "module": "link/common/block-link-common.js"
101013
+ "name": "SbbButtonLikeBaseElement",
101014
+ "module": "core/base-elements/button-base-element.js"
100856
101015
  }
100857
101016
  },
100858
101017
  {
100859
- "name": "size",
100860
- "type": {
100861
- "text": "SbbLinkSize"
100862
- },
100863
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100864
- "default": "'s' / 'xs' (lean)",
100865
- "fieldName": "size",
101018
+ "kind": "field",
101019
+ "name": "_dispatchClickEvent",
101020
+ "privacy": "private",
100866
101021
  "inheritedFrom": {
100867
- "name": "SbbLinkCommonElementMixin",
100868
- "module": "link/common/link-common.js"
101022
+ "name": "SbbButtonLikeBaseElement",
101023
+ "module": "core/base-elements/button-base-element.js"
100869
101024
  }
100870
101025
  },
100871
101026
  {
100872
- "name": "icon-name",
101027
+ "kind": "field",
101028
+ "name": "maybeDisabled",
100873
101029
  "type": {
100874
- "text": "string"
101030
+ "text": "boolean | undefined"
100875
101031
  },
100876
- "default": "''",
100877
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
100878
- "fieldName": "iconName",
101032
+ "privacy": "protected",
101033
+ "readonly": true,
100879
101034
  "inheritedFrom": {
100880
- "name": "SbbIconNameMixin",
100881
- "module": "icon/icon-name-mixin.js"
101035
+ "name": "SbbActionBaseElement",
101036
+ "module": "core/base-elements/action-base-element.js"
100882
101037
  }
100883
101038
  },
100884
101039
  {
100885
- "name": "disabled",
100886
- "description": "Whether the component is disabled.",
100887
- "default": "false",
101040
+ "kind": "field",
101041
+ "name": "maybeDisabledInteractive",
100888
101042
  "type": {
100889
- "text": "boolean"
101043
+ "text": "boolean | undefined"
100890
101044
  },
100891
- "fieldName": "disabled",
101045
+ "privacy": "protected",
101046
+ "readonly": true,
100892
101047
  "inheritedFrom": {
100893
- "name": "SbbDisabledMixin",
100894
- "module": "core/mixins/disabled-mixin.js"
101048
+ "name": "SbbActionBaseElement",
101049
+ "module": "core/base-elements/action-base-element.js"
100895
101050
  }
100896
101051
  },
100897
101052
  {
100898
- "name": "href",
100899
- "type": {
100900
- "text": "string"
101053
+ "kind": "method",
101054
+ "name": "setupBaseEventHandlers",
101055
+ "privacy": "protected",
101056
+ "return": {
101057
+ "type": {
101058
+ "text": "void"
101059
+ }
100901
101060
  },
100902
- "default": "''",
100903
- "description": "The href value you want to link to.",
100904
- "fieldName": "href",
100905
101061
  "inheritedFrom": {
100906
- "name": "SbbLinkBaseElement",
100907
- "module": "core/base-elements/link-base-element.js"
101062
+ "name": "SbbActionBaseElement",
101063
+ "module": "core/base-elements/action-base-element.js"
100908
101064
  }
100909
101065
  },
100910
101066
  {
100911
- "name": "target",
101067
+ "kind": "field",
101068
+ "name": "_hydrationRequired",
100912
101069
  "type": {
100913
- "text": "LinkTargetType | string"
101070
+ "text": "boolean"
100914
101071
  },
100915
- "default": "''",
100916
- "description": "Where to display the linked URL.",
100917
- "fieldName": "target",
101072
+ "privacy": "private",
101073
+ "default": "!!this.shadowRoot",
100918
101074
  "inheritedFrom": {
100919
- "name": "SbbLinkBaseElement",
100920
- "module": "core/base-elements/link-base-element.js"
101075
+ "name": "SbbElement",
101076
+ "module": "core/base-elements/element.js"
100921
101077
  }
100922
101078
  },
100923
101079
  {
100924
- "name": "rel",
100925
- "type": {
100926
- "text": "string"
100927
- },
100928
- "default": "''",
100929
- "description": "The relationship of the linked URL as space-separated link types.",
100930
- "fieldName": "rel",
101080
+ "kind": "field",
101081
+ "name": "_hydrationComplete",
101082
+ "privacy": "private",
101083
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
100931
101084
  "inheritedFrom": {
100932
- "name": "SbbLinkBaseElement",
100933
- "module": "core/base-elements/link-base-element.js"
101085
+ "name": "SbbElement",
101086
+ "module": "core/base-elements/element.js"
100934
101087
  }
100935
101088
  },
100936
101089
  {
100937
- "name": "download",
101090
+ "kind": "field",
101091
+ "name": "_resolveHydration",
100938
101092
  "type": {
100939
- "text": "boolean"
101093
+ "text": "(hydrationRequired: boolean) => void"
100940
101094
  },
100941
- "default": "false",
100942
- "description": "Whether the browser will show the download dialog on click.",
100943
- "fieldName": "download",
101095
+ "privacy": "private",
100944
101096
  "inheritedFrom": {
100945
- "name": "SbbLinkBaseElement",
100946
- "module": "core/base-elements/link-base-element.js"
101097
+ "name": "SbbElement",
101098
+ "module": "core/base-elements/element.js"
100947
101099
  }
100948
101100
  },
100949
101101
  {
100950
- "name": "accessibility-label",
101102
+ "kind": "field",
101103
+ "name": "hydrationRequired",
100951
101104
  "type": {
100952
- "text": "string"
101105
+ "text": "boolean"
100953
101106
  },
100954
- "default": "''",
100955
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100956
- "fieldName": "accessibilityLabel",
101107
+ "privacy": "protected",
101108
+ "description": "Returns whether hydration is required and not completed.",
101109
+ "readonly": true,
100957
101110
  "inheritedFrom": {
100958
- "name": "SbbLinkBaseElement",
100959
- "module": "core/base-elements/link-base-element.js"
100960
- }
101111
+ "name": "SbbElement",
101112
+ "module": "core/base-elements/element.js"
101113
+ },
101114
+ "default": "!!this.shadowRoot"
100961
101115
  },
100962
101116
  {
100963
- "name": "accessibility-current",
100964
- "type": {
100965
- "text": "string"
101117
+ "kind": "method",
101118
+ "name": "toggleState",
101119
+ "privacy": "protected",
101120
+ "return": {
101121
+ "type": {
101122
+ "text": "void"
101123
+ }
100966
101124
  },
100967
- "default": "''",
100968
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100969
- "fieldName": "accessibilityCurrent",
101125
+ "parameters": [
101126
+ {
101127
+ "name": "value",
101128
+ "type": {
101129
+ "text": "string"
101130
+ }
101131
+ },
101132
+ {
101133
+ "name": "force",
101134
+ "optional": true,
101135
+ "type": {
101136
+ "text": "boolean"
101137
+ }
101138
+ }
101139
+ ],
100970
101140
  "inheritedFrom": {
100971
- "name": "SbbLinkBaseElement",
100972
- "module": "core/base-elements/link-base-element.js"
101141
+ "name": "SbbElement",
101142
+ "module": "core/base-elements/element.js"
100973
101143
  }
100974
- }
100975
- ]
100976
- }
100977
- ],
100978
- "exports": [
100979
- {
100980
- "kind": "js",
100981
- "name": "SbbBlockLinkElement",
100982
- "declaration": {
100983
- "name": "SbbBlockLinkElement",
100984
- "module": "link/block-link/block-link.component.js"
100985
- }
100986
- }
100987
- ]
100988
- },
100989
- {
100990
- "kind": "javascript-module",
100991
- "path": "link/block-link-button/block-link-button.component.js",
100992
- "declarations": [
100993
- {
100994
- "kind": "class",
100995
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100996
- "name": "SbbBlockLinkButtonElement",
100997
- "slots": [
100998
- {
100999
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101000
- "name": ""
101001
101144
  },
101002
- {
101003
- "description": "Slot used to display the icon, if one is set.",
101004
- "name": "icon"
101005
- }
101006
- ],
101007
- "members": [
101008
101145
  {
101009
101146
  "kind": "field",
101010
- "name": "elementName",
101147
+ "name": "['_$sbbElement$']",
101011
101148
  "type": {
101012
- "text": "string"
101149
+ "text": "boolean"
101013
101150
  },
101014
101151
  "privacy": "public",
101015
101152
  "static": true,
101016
- "readonly": true,
101153
+ "default": "true",
101017
101154
  "inheritedFrom": {
101018
101155
  "name": "SbbElement",
101019
101156
  "module": "core/base-elements/element.js"
101020
- },
101021
- "default": "'sbb-block-link-button'"
101157
+ }
101022
101158
  },
101023
101159
  {
101024
101160
  "kind": "field",
101025
- "name": "styles",
101161
+ "name": "_controllers",
101026
101162
  "type": {
101027
- "text": "CSSResultGroup"
101163
+ "text": "Set<SbbReactiveController> | undefined"
101028
101164
  },
101029
- "privacy": "public",
101030
- "static": true,
101031
- "default": "[super.styles, unsafeCSS(blockStyle)]",
101165
+ "privacy": "private",
101032
101166
  "inheritedFrom": {
101033
- "name": "SbbLinkCommonElementMixin",
101034
- "module": "link/common/link-common.js"
101167
+ "name": "SbbElement",
101168
+ "module": "core/base-elements/element.js"
101035
101169
  }
101170
+ }
101171
+ ],
101172
+ "mixins": [
101173
+ {
101174
+ "name": "SbbBlockLinkCommonElementMixin",
101175
+ "module": "link/common/block-link-common.js"
101036
101176
  },
101037
101177
  {
101038
- "kind": "field",
101039
- "name": "iconPlacement",
101178
+ "name": "SbbDisabledTabIndexActionMixin",
101179
+ "module": "core/mixins.js"
101180
+ }
101181
+ ],
101182
+ "superclass": {
101183
+ "name": "SbbButtonBaseElement",
101184
+ "module": "core/base-elements.js"
101185
+ },
101186
+ "tagName": "sbb-block-link-button",
101187
+ "customElement": true,
101188
+ "attributes": [
101189
+ {
101190
+ "name": "icon-placement",
101040
101191
  "type": {
101041
101192
  "text": "SbbIconPlacement"
101042
101193
  },
101043
- "privacy": "public",
101044
101194
  "default": "'start'",
101045
101195
  "description": "Moves the icon to the end of the component if set to true.",
101046
- "attribute": "icon-placement",
101047
- "reflects": true,
101196
+ "fieldName": "iconPlacement",
101048
101197
  "inheritedFrom": {
101049
101198
  "name": "SbbBlockLinkCommonElementMixin",
101050
101199
  "module": "link/common/block-link-common.js"
101051
101200
  }
101052
101201
  },
101053
101202
  {
101054
- "kind": "method",
101055
- "name": "renderTemplate",
101056
- "privacy": "protected",
101057
- "return": {
101058
- "type": {
101059
- "text": "TemplateResult"
101060
- }
101061
- },
101062
- "description": "Override this method to render the component template.",
101063
- "inheritedFrom": {
101064
- "name": "SbbActionBaseElement",
101065
- "module": "core/base-elements/action-base-element.js"
101066
- }
101067
- },
101068
- {
101069
- "kind": "field",
101070
101203
  "name": "size",
101071
101204
  "type": {
101072
101205
  "text": "SbbLinkSize"
101073
101206
  },
101074
- "privacy": "public",
101075
101207
  "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101076
101208
  "default": "'s' / 'xs' (lean)",
101077
- "attribute": "size",
101078
- "reflects": true,
101209
+ "fieldName": "size",
101079
101210
  "inheritedFrom": {
101080
101211
  "name": "SbbLinkCommonElementMixin",
101081
101212
  "module": "link/common/link-common.js"
101082
101213
  }
101083
101214
  },
101084
101215
  {
101085
- "kind": "field",
101086
- "name": "iconName",
101216
+ "name": "icon-name",
101087
101217
  "type": {
101088
101218
  "text": "string"
101089
101219
  },
101090
- "privacy": "public",
101091
101220
  "default": "''",
101092
101221
  "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
101093
- "attribute": "icon-name",
101094
- "inheritedFrom": {
101095
- "name": "SbbIconNameMixin",
101096
- "module": "icon/icon-name-mixin.js"
101097
- }
101098
- },
101099
- {
101100
- "kind": "method",
101101
- "name": "renderIconSlot",
101102
- "privacy": "protected",
101103
- "return": {
101104
- "type": {
101105
- "text": "TemplateResult"
101106
- }
101107
- },
101108
- "parameters": [
101109
- {
101110
- "name": "classname",
101111
- "optional": true,
101112
- "type": {
101113
- "text": "string"
101114
- }
101115
- }
101116
- ],
101117
- "inheritedFrom": {
101118
- "name": "SbbIconNameMixin",
101119
- "module": "icon/icon-name-mixin.js"
101120
- }
101121
- },
101122
- {
101123
- "kind": "method",
101124
- "name": "renderIconName",
101125
- "privacy": "protected",
101126
- "return": {
101127
- "type": {
101128
- "text": "string"
101129
- }
101130
- },
101131
- "inheritedFrom": {
101132
- "name": "SbbIconNameMixin",
101133
- "module": "icon/icon-name-mixin.js"
101134
- }
101135
- },
101136
- {
101137
- "kind": "method",
101138
- "name": "_renderIconName",
101139
- "privacy": "private",
101140
- "return": {
101141
- "type": {
101142
- "text": "string"
101143
- }
101144
- },
101222
+ "fieldName": "iconName",
101145
101223
  "inheritedFrom": {
101146
101224
  "name": "SbbIconNameMixin",
101147
101225
  "module": "icon/icon-name-mixin.js"
101148
101226
  }
101149
101227
  },
101150
101228
  {
101151
- "kind": "field",
101152
- "name": "disabledInteractive",
101229
+ "name": "disabled-interactive",
101153
101230
  "type": {
101154
101231
  "text": "boolean"
101155
101232
  },
101156
- "privacy": "public",
101157
101233
  "default": "false",
101158
101234
  "description": "Whether the button should be aria-disabled but stay interactive.",
101159
- "attribute": "disabled-interactive",
101160
- "reflects": true,
101235
+ "fieldName": "disabledInteractive",
101161
101236
  "inheritedFrom": {
101162
101237
  "name": "SbbDisabledInteractiveMixin",
101163
101238
  "module": "core/mixins/disabled-mixin.js"
101164
101239
  }
101165
101240
  },
101166
101241
  {
101167
- "kind": "field",
101168
101242
  "name": "disabled",
101169
- "privacy": "public",
101170
101243
  "description": "Whether the component is disabled.",
101171
101244
  "default": "false",
101172
101245
  "type": {
101173
101246
  "text": "boolean"
101174
101247
  },
101175
- "attribute": "disabled",
101176
- "reflects": true,
101177
- "inheritedFrom": {
101178
- "name": "SbbDisabledMixin",
101179
- "module": "core/mixins/disabled-mixin.js"
101180
- }
101181
- },
101182
- {
101183
- "kind": "field",
101184
- "name": "#disabled",
101185
- "privacy": "private",
101186
- "type": {
101187
- "text": "boolean"
101188
- },
101189
- "default": "false",
101190
- "inheritedFrom": {
101191
- "name": "SbbDisabledMixin",
101192
- "module": "core/mixins/disabled-mixin.js"
101193
- }
101194
- },
101195
- {
101196
- "kind": "method",
101197
- "name": "isDisabledExternally",
101198
- "privacy": "protected",
101199
- "return": {
101200
- "type": {
101201
- "text": "boolean"
101202
- }
101203
- },
101204
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101248
+ "fieldName": "disabled",
101205
101249
  "inheritedFrom": {
101206
101250
  "name": "SbbDisabledMixin",
101207
101251
  "module": "core/mixins/disabled-mixin.js"
101208
101252
  }
101209
101253
  },
101210
101254
  {
101211
- "kind": "field",
101212
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101213
- "type": {
101214
- "text": "array"
101215
- },
101216
- "privacy": "private",
101217
- "readonly": true,
101218
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101219
- "inheritedFrom": {
101220
- "name": "SbbButtonBaseElement",
101221
- "module": "core/base-elements/button-base-element.js"
101222
- }
101223
- },
101224
- {
101225
- "kind": "field",
101226
101255
  "name": "value",
101227
101256
  "type": {
101228
101257
  "text": "string"
101229
101258
  },
101230
- "privacy": "public",
101259
+ "default": "''",
101260
+ "description": "Value of the form element.",
101261
+ "fieldName": "value",
101231
101262
  "inheritedFrom": {
101232
101263
  "name": "SbbButtonBaseElement",
101233
101264
  "module": "core/base-elements/button-base-element.js"
101234
- },
101235
- "default": "''",
101236
- "description": "Value of the form element.",
101237
- "attribute": "value"
101265
+ }
101238
101266
  },
101239
101267
  {
101240
- "kind": "field",
101241
101268
  "name": "type",
101242
- "privacy": "public",
101243
101269
  "description": "The type attribute to use for the button.",
101244
101270
  "default": "'button'",
101245
101271
  "type": {
101246
101272
  "text": "SbbButtonType"
101247
101273
  },
101248
- "attribute": "type",
101274
+ "fieldName": "type",
101249
101275
  "inheritedFrom": {
101250
101276
  "name": "SbbButtonBaseElement",
101251
101277
  "module": "core/base-elements/button-base-element.js"
101252
101278
  }
101253
101279
  },
101254
101280
  {
101255
- "kind": "field",
101256
101281
  "name": "form",
101257
- "type": {
101258
- "text": "HTMLFormElement | null"
101259
- },
101260
- "privacy": "public",
101261
101282
  "description": "The `<form>` element to associate the button with.",
101262
- "inheritedFrom": {
101263
- "name": "SbbButtonBaseElement",
101264
- "module": "core/base-elements/button-base-element.js"
101265
- },
101266
- "attribute": "form"
101267
- },
101268
- {
101269
- "kind": "field",
101270
- "name": "_formId",
101271
101283
  "type": {
101272
- "text": "string"
101273
- },
101274
- "privacy": "private",
101275
- "default": "''",
101276
- "inheritedFrom": {
101277
- "name": "SbbButtonBaseElement",
101278
- "module": "core/base-elements/button-base-element.js"
101279
- }
101280
- },
101281
- {
101282
- "kind": "field",
101283
- "name": "_handleButtonClick",
101284
- "privacy": "private",
101285
- "inheritedFrom": {
101286
- "name": "SbbButtonBaseElement",
101287
- "module": "core/base-elements/button-base-element.js"
101288
- }
101289
- },
101290
- {
101291
- "kind": "method",
101292
- "name": "_requestSubmit",
101293
- "privacy": "private",
101294
- "return": {
101295
- "type": {
101296
- "text": "void"
101297
- }
101284
+ "text": "HTMLFormElement | null"
101298
101285
  },
101299
- "parameters": [
101300
- {
101301
- "name": "form",
101302
- "type": {
101303
- "text": "HTMLFormElement"
101304
- }
101305
- }
101306
- ],
101307
- "inheritedFrom": {
101308
- "name": "SbbButtonBaseElement",
101309
- "module": "core/base-elements/button-base-element.js"
101310
- }
101311
- },
101312
- {
101313
- "kind": "field",
101314
- "name": "_formKeyDown",
101315
- "privacy": "private",
101286
+ "fieldName": "form",
101316
101287
  "inheritedFrom": {
101317
101288
  "name": "SbbButtonBaseElement",
101318
101289
  "module": "core/base-elements/button-base-element.js"
101319
101290
  }
101320
101291
  },
101321
101292
  {
101322
- "kind": "field",
101323
- "name": "formAssociated",
101293
+ "name": "name",
101294
+ "description": "Name of the form element. Will be read from name attribute.",
101324
101295
  "type": {
101325
- "text": "boolean"
101296
+ "text": "string"
101326
101297
  },
101327
- "privacy": "public",
101328
- "static": true,
101329
- "default": "true",
101298
+ "fieldName": "name",
101330
101299
  "inheritedFrom": {
101331
101300
  "name": "SbbFormAssociatedMixin",
101332
101301
  "module": "core/mixins/form-associated-mixin.js"
101333
101302
  }
101303
+ }
101304
+ ]
101305
+ }
101306
+ ],
101307
+ "exports": [
101308
+ {
101309
+ "kind": "js",
101310
+ "name": "SbbBlockLinkButtonElement",
101311
+ "declaration": {
101312
+ "name": "SbbBlockLinkButtonElement",
101313
+ "module": "link/block-link-button/block-link-button.component.js"
101314
+ }
101315
+ }
101316
+ ]
101317
+ },
101318
+ {
101319
+ "kind": "javascript-module",
101320
+ "path": "link/block-link/block-link.component.js",
101321
+ "declarations": [
101322
+ {
101323
+ "kind": "class",
101324
+ "description": "It displays a link enhanced with the SBB Design.",
101325
+ "name": "SbbBlockLinkElement",
101326
+ "slots": [
101327
+ {
101328
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
101329
+ "name": ""
101334
101330
  },
101335
101331
  {
101336
- "kind": "field",
101337
- "name": "name",
101338
- "privacy": "public",
101339
- "description": "Name of the form element. Will be read from name attribute.",
101340
- "type": {
101341
- "text": "string"
101342
- },
101343
- "attribute": "name",
101344
- "inheritedFrom": {
101345
- "name": "SbbFormAssociatedMixin",
101346
- "module": "core/mixins/form-associated-mixin.js"
101347
- }
101348
- },
101332
+ "description": "Slot used to display the icon, if one is set.",
101333
+ "name": "icon"
101334
+ }
101335
+ ],
101336
+ "members": [
101349
101337
  {
101350
101338
  "kind": "field",
101351
- "name": "validity",
101339
+ "name": "elementName",
101352
101340
  "type": {
101353
- "text": "ValidityState"
101341
+ "text": "string"
101354
101342
  },
101355
101343
  "privacy": "public",
101356
- "description": "Returns the ValidityState object for this element.",
101344
+ "static": true,
101357
101345
  "readonly": true,
101358
101346
  "inheritedFrom": {
101359
- "name": "SbbFormAssociatedMixin",
101360
- "module": "core/mixins/form-associated-mixin.js"
101361
- }
101347
+ "name": "SbbElement",
101348
+ "module": "core/base-elements/element.js"
101349
+ },
101350
+ "default": "'sbb-block-link'"
101362
101351
  },
101363
101352
  {
101364
101353
  "kind": "field",
101365
- "name": "validationMessage",
101354
+ "name": "styles",
101366
101355
  "type": {
101367
- "text": "string"
101356
+ "text": "CSSResultGroup"
101368
101357
  },
101369
101358
  "privacy": "public",
101370
- "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.",
101371
- "readonly": true,
101359
+ "static": true,
101360
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
101372
101361
  "inheritedFrom": {
101373
- "name": "SbbFormAssociatedMixin",
101374
- "module": "core/mixins/form-associated-mixin.js"
101362
+ "name": "SbbLinkCommonElementMixin",
101363
+ "module": "link/common/link-common.js"
101375
101364
  }
101376
101365
  },
101377
101366
  {
101378
101367
  "kind": "field",
101379
- "name": "willValidate",
101368
+ "name": "iconPlacement",
101380
101369
  "type": {
101381
- "text": "boolean"
101370
+ "text": "SbbIconPlacement"
101382
101371
  },
101383
101372
  "privacy": "public",
101384
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101385
- "readonly": true,
101373
+ "default": "'start'",
101374
+ "description": "Moves the icon to the end of the component if set to true.",
101375
+ "attribute": "icon-placement",
101376
+ "reflects": true,
101386
101377
  "inheritedFrom": {
101387
- "name": "SbbFormAssociatedMixin",
101388
- "module": "core/mixins/form-associated-mixin.js"
101378
+ "name": "SbbBlockLinkCommonElementMixin",
101379
+ "module": "link/common/block-link-common.js"
101389
101380
  }
101390
101381
  },
101391
101382
  {
101392
- "kind": "field",
101393
- "name": "_validityStates",
101394
- "privacy": "private",
101395
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101383
+ "kind": "method",
101384
+ "name": "renderTemplate",
101385
+ "privacy": "protected",
101386
+ "return": {
101387
+ "type": {
101388
+ "text": "TemplateResult"
101389
+ }
101390
+ },
101391
+ "description": "Override this method to render the component template.",
101396
101392
  "inheritedFrom": {
101397
- "name": "SbbFormAssociatedMixin",
101398
- "module": "core/mixins/form-associated-mixin.js"
101393
+ "name": "SbbActionBaseElement",
101394
+ "module": "core/base-elements/action-base-element.js"
101399
101395
  }
101400
101396
  },
101401
101397
  {
101402
101398
  "kind": "field",
101403
- "name": "formDisabled",
101399
+ "name": "size",
101404
101400
  "type": {
101405
- "text": "boolean"
101401
+ "text": "SbbLinkSize"
101406
101402
  },
101407
- "privacy": "protected",
101408
- "default": "false",
101409
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101410
- "inheritedFrom": {
101411
- "name": "SbbFormAssociatedMixin",
101412
- "module": "core/mixins/form-associated-mixin.js"
101413
- }
101414
- },
101415
- {
101416
- "kind": "method",
101417
- "name": "checkValidity",
101418
101403
  "privacy": "public",
101419
- "return": {
101420
- "type": {
101421
- "text": "boolean"
101422
- }
101423
- },
101424
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101404
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101405
+ "default": "'s' / 'xs' (lean)",
101406
+ "attribute": "size",
101407
+ "reflects": true,
101425
101408
  "inheritedFrom": {
101426
- "name": "SbbFormAssociatedMixin",
101427
- "module": "core/mixins/form-associated-mixin.js"
101409
+ "name": "SbbLinkCommonElementMixin",
101410
+ "module": "link/common/link-common.js"
101428
101411
  }
101429
101412
  },
101430
101413
  {
101431
- "kind": "method",
101432
- "name": "reportValidity",
101433
- "privacy": "public",
101434
- "return": {
101435
- "type": {
101436
- "text": "boolean"
101437
- }
101414
+ "kind": "field",
101415
+ "name": "iconName",
101416
+ "type": {
101417
+ "text": "string"
101438
101418
  },
101439
- "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.",
101419
+ "privacy": "public",
101420
+ "default": "''",
101421
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
101422
+ "attribute": "icon-name",
101440
101423
  "inheritedFrom": {
101441
- "name": "SbbFormAssociatedMixin",
101442
- "module": "core/mixins/form-associated-mixin.js"
101424
+ "name": "SbbIconNameMixin",
101425
+ "module": "icon/icon-name-mixin.js"
101443
101426
  }
101444
101427
  },
101445
101428
  {
101446
101429
  "kind": "method",
101447
- "name": "setCustomValidity",
101448
- "privacy": "public",
101430
+ "name": "renderIconSlot",
101431
+ "privacy": "protected",
101449
101432
  "return": {
101450
101433
  "type": {
101451
- "text": "void"
101434
+ "text": "TemplateResult"
101452
101435
  }
101453
101436
  },
101454
101437
  "parameters": [
101455
101438
  {
101456
- "name": "message",
101439
+ "name": "classname",
101440
+ "optional": true,
101457
101441
  "type": {
101458
101442
  "text": "string"
101459
101443
  }
101460
101444
  }
101461
101445
  ],
101462
- "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.",
101463
101446
  "inheritedFrom": {
101464
- "name": "SbbFormAssociatedMixin",
101465
- "module": "core/mixins/form-associated-mixin.js"
101447
+ "name": "SbbIconNameMixin",
101448
+ "module": "icon/icon-name-mixin.js"
101466
101449
  }
101467
101450
  },
101468
101451
  {
101469
101452
  "kind": "method",
101470
- "name": "_hasDisabledAncestor",
101471
- "privacy": "private",
101453
+ "name": "renderIconName",
101454
+ "privacy": "protected",
101472
101455
  "return": {
101473
101456
  "type": {
101474
- "text": "boolean"
101457
+ "text": "string"
101475
101458
  }
101476
101459
  },
101477
101460
  "inheritedFrom": {
101478
- "name": "SbbFormAssociatedMixin",
101479
- "module": "core/mixins/form-associated-mixin.js"
101461
+ "name": "SbbIconNameMixin",
101462
+ "module": "icon/icon-name-mixin.js"
101480
101463
  }
101481
101464
  },
101482
101465
  {
101483
101466
  "kind": "method",
101484
- "name": "updateFormValue",
101485
- "privacy": "protected",
101467
+ "name": "_renderIconName",
101468
+ "privacy": "private",
101486
101469
  "return": {
101487
101470
  "type": {
101488
- "text": "void"
101471
+ "text": "string"
101489
101472
  }
101490
101473
  },
101491
- "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",
101492
101474
  "inheritedFrom": {
101493
- "name": "SbbFormAssociatedMixin",
101494
- "module": "core/mixins/form-associated-mixin.js"
101475
+ "name": "SbbIconNameMixin",
101476
+ "module": "icon/icon-name-mixin.js"
101495
101477
  }
101496
101478
  },
101497
101479
  {
101498
- "kind": "method",
101499
- "name": "formState",
101500
- "privacy": "protected",
101501
- "return": {
101502
- "type": {
101503
- "text": "FormRestoreState"
101504
- }
101480
+ "kind": "field",
101481
+ "name": "disabled",
101482
+ "privacy": "public",
101483
+ "description": "Whether the component is disabled.",
101484
+ "default": "false",
101485
+ "type": {
101486
+ "text": "boolean"
101505
101487
  },
101488
+ "attribute": "disabled",
101489
+ "reflects": true,
101506
101490
  "inheritedFrom": {
101507
- "name": "SbbFormAssociatedMixin",
101508
- "module": "core/mixins/form-associated-mixin.js"
101491
+ "name": "SbbDisabledMixin",
101492
+ "module": "core/mixins/disabled-mixin.js"
101509
101493
  }
101510
101494
  },
101511
101495
  {
101512
- "kind": "method",
101513
- "name": "setValidityFlag",
101514
- "privacy": "protected",
101515
- "return": {
101516
- "type": {
101517
- "text": "void"
101518
- }
101496
+ "kind": "field",
101497
+ "name": "#disabled",
101498
+ "privacy": "private",
101499
+ "type": {
101500
+ "text": "boolean"
101519
101501
  },
101520
- "parameters": [
101521
- {
101522
- "name": "flag",
101523
- "type": {
101524
- "text": "T"
101525
- }
101526
- },
101527
- {
101528
- "name": "message",
101529
- "type": {
101530
- "text": "string"
101531
- }
101532
- },
101533
- {
101534
- "name": "flagValue",
101535
- "optional": true,
101536
- "type": {
101537
- "text": "ValidityStateFlags[T]"
101538
- }
101539
- }
101540
- ],
101541
- "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).",
101502
+ "default": "false",
101542
101503
  "inheritedFrom": {
101543
- "name": "SbbFormAssociatedMixin",
101544
- "module": "core/mixins/form-associated-mixin.js"
101504
+ "name": "SbbDisabledMixin",
101505
+ "module": "core/mixins/disabled-mixin.js"
101545
101506
  }
101546
101507
  },
101547
101508
  {
101548
101509
  "kind": "method",
101549
- "name": "removeValidityFlag",
101510
+ "name": "isDisabledExternally",
101550
101511
  "privacy": "protected",
101551
101512
  "return": {
101552
101513
  "type": {
101553
- "text": "void"
101514
+ "text": "boolean"
101554
101515
  }
101555
101516
  },
101556
- "parameters": [
101557
- {
101558
- "name": "flag",
101559
- "type": {
101560
- "text": "T"
101561
- }
101562
- }
101563
- ],
101564
- "description": "Removes the validity state flag entry and updates validity state.",
101517
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101518
+ "inheritedFrom": {
101519
+ "name": "SbbDisabledMixin",
101520
+ "module": "core/mixins/disabled-mixin.js"
101521
+ }
101522
+ },
101523
+ {
101524
+ "kind": "field",
101525
+ "name": "href",
101526
+ "type": {
101527
+ "text": "string"
101528
+ },
101529
+ "privacy": "public",
101530
+ "default": "''",
101531
+ "description": "The href value you want to link to.",
101532
+ "attribute": "href",
101533
+ "reflects": true,
101534
+ "inheritedFrom": {
101535
+ "name": "SbbLinkBaseElement",
101536
+ "module": "core/base-elements/link-base-element.js"
101537
+ }
101538
+ },
101539
+ {
101540
+ "kind": "field",
101541
+ "name": "target",
101542
+ "type": {
101543
+ "text": "LinkTargetType | string"
101544
+ },
101545
+ "privacy": "public",
101546
+ "default": "''",
101547
+ "description": "Where to display the linked URL.",
101548
+ "attribute": "target",
101549
+ "reflects": true,
101565
101550
  "inheritedFrom": {
101566
- "name": "SbbFormAssociatedMixin",
101567
- "module": "core/mixins/form-associated-mixin.js"
101551
+ "name": "SbbLinkBaseElement",
101552
+ "module": "core/base-elements/link-base-element.js"
101568
101553
  }
101569
101554
  },
101570
101555
  {
101571
- "kind": "method",
101572
- "name": "validate",
101573
- "privacy": "protected",
101574
- "return": {
101575
- "type": {
101576
- "text": "void"
101577
- }
101556
+ "kind": "field",
101557
+ "name": "rel",
101558
+ "type": {
101559
+ "text": "string"
101578
101560
  },
101579
- "description": "To be called whenever the current element needs to be validated.",
101561
+ "privacy": "public",
101562
+ "default": "''",
101563
+ "description": "The relationship of the linked URL as space-separated link types.",
101564
+ "attribute": "rel",
101565
+ "reflects": true,
101580
101566
  "inheritedFrom": {
101581
- "name": "SbbFormAssociatedMixin",
101582
- "module": "core/mixins/form-associated-mixin.js"
101567
+ "name": "SbbLinkBaseElement",
101568
+ "module": "core/base-elements/link-base-element.js"
101583
101569
  }
101584
101570
  },
101585
101571
  {
101586
- "kind": "method",
101587
- "name": "shouldValidate",
101588
- "privacy": "protected",
101589
- "return": {
101590
- "type": {
101591
- "text": "boolean"
101592
- }
101572
+ "kind": "field",
101573
+ "name": "download",
101574
+ "type": {
101575
+ "text": "boolean"
101593
101576
  },
101594
- "parameters": [
101595
- {
101596
- "name": "name",
101597
- "type": {
101598
- "text": "PropertyKey | undefined"
101599
- }
101600
- }
101601
- ],
101602
- "description": "Whether validation should be run on a property change with the given name.",
101577
+ "privacy": "public",
101578
+ "default": "false",
101579
+ "description": "Whether the browser will show the download dialog on click.",
101580
+ "attribute": "download",
101581
+ "reflects": true,
101603
101582
  "inheritedFrom": {
101604
- "name": "SbbFormAssociatedMixin",
101605
- "module": "core/mixins/form-associated-mixin.js"
101583
+ "name": "SbbLinkBaseElement",
101584
+ "module": "core/base-elements/link-base-element.js"
101606
101585
  }
101607
101586
  },
101608
101587
  {
101609
- "kind": "method",
101610
- "name": "_setInternalValidity",
101611
- "privacy": "private",
101612
- "return": {
101613
- "type": {
101614
- "text": "void"
101615
- }
101588
+ "kind": "field",
101589
+ "name": "accessibilityLabel",
101590
+ "type": {
101591
+ "text": "string"
101616
101592
  },
101593
+ "privacy": "public",
101594
+ "default": "''",
101595
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101596
+ "attribute": "accessibility-label",
101617
101597
  "inheritedFrom": {
101618
- "name": "SbbFormAssociatedMixin",
101619
- "module": "core/mixins/form-associated-mixin.js"
101598
+ "name": "SbbLinkBaseElement",
101599
+ "module": "core/base-elements/link-base-element.js"
101620
101600
  }
101621
101601
  },
101622
101602
  {
101623
101603
  "kind": "field",
101624
- "name": "role",
101604
+ "name": "accessibilityCurrent",
101625
101605
  "type": {
101626
- "text": "ElementInternals['role']"
101606
+ "text": "string"
101627
101607
  },
101628
101608
  "privacy": "public",
101629
- "static": true,
101630
- "readonly": true,
101631
- "default": "'button'",
101609
+ "default": "''",
101610
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101611
+ "attribute": "accessibility-current",
101632
101612
  "inheritedFrom": {
101633
- "name": "SbbButtonLikeBaseElement",
101634
- "module": "core/base-elements/button-base-element.js"
101613
+ "name": "SbbLinkBaseElement",
101614
+ "module": "core/base-elements/link-base-element.js"
101635
101615
  }
101636
101616
  },
101637
101617
  {
101638
101618
  "kind": "field",
101639
- "name": "_preventScrollOnSpaceKeydown",
101640
- "privacy": "private",
101641
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101642
- "parameters": [
101643
- {
101644
- "description": "The origin event.",
101645
- "name": "event"
101646
- }
101647
- ],
101619
+ "name": "language",
101620
+ "privacy": "protected",
101621
+ "default": "new SbbLanguageController(this)",
101648
101622
  "inheritedFrom": {
101649
- "name": "SbbButtonLikeBaseElement",
101650
- "module": "core/base-elements/button-base-element.js"
101623
+ "name": "SbbLinkBaseElement",
101624
+ "module": "core/base-elements/link-base-element.js"
101651
101625
  }
101652
101626
  },
101653
101627
  {
101654
101628
  "kind": "field",
101655
- "name": "_removeActiveMarker",
101656
- "privacy": "private",
101629
+ "name": "anchorRole",
101630
+ "type": {
101631
+ "text": "string | null"
101632
+ },
101633
+ "privacy": "protected",
101634
+ "readonly": true,
101635
+ "default": "null",
101657
101636
  "inheritedFrom": {
101658
- "name": "SbbButtonLikeBaseElement",
101659
- "module": "core/base-elements/button-base-element.js"
101637
+ "name": "SbbLinkBaseElement",
101638
+ "module": "core/base-elements/link-base-element.js"
101660
101639
  }
101661
101640
  },
101662
101641
  {
101663
101642
  "kind": "field",
101664
- "name": "_dispatchClickEventOnSpaceKeyup",
101643
+ "name": "_evaluateRelAttribute",
101665
101644
  "privacy": "private",
101666
- "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.",
101667
- "parameters": [
101668
- {
101669
- "description": "The origin event.",
101670
- "name": "event"
101671
- }
101672
- ],
101673
101645
  "inheritedFrom": {
101674
- "name": "SbbButtonLikeBaseElement",
101675
- "module": "core/base-elements/button-base-element.js"
101646
+ "name": "SbbLinkBaseElement",
101647
+ "module": "core/base-elements/link-base-element.js"
101676
101648
  }
101677
101649
  },
101678
101650
  {
101679
- "kind": "field",
101680
- "name": "_dispatchClickEvent",
101681
- "privacy": "private",
101651
+ "kind": "method",
101652
+ "name": "renderLink",
101653
+ "privacy": "protected",
101654
+ "return": {
101655
+ "type": {
101656
+ "text": "TemplateResult"
101657
+ }
101658
+ },
101659
+ "parameters": [
101660
+ {
101661
+ "name": "renderContent",
101662
+ "type": {
101663
+ "text": "TemplateResult"
101664
+ }
101665
+ }
101666
+ ],
101682
101667
  "inheritedFrom": {
101683
- "name": "SbbButtonLikeBaseElement",
101684
- "module": "core/base-elements/button-base-element.js"
101668
+ "name": "SbbLinkBaseElement",
101669
+ "module": "core/base-elements/link-base-element.js"
101685
101670
  }
101686
101671
  },
101687
101672
  {
@@ -101836,15 +101821,15 @@
101836
101821
  "module": "link/common/block-link-common.js"
101837
101822
  },
101838
101823
  {
101839
- "name": "SbbDisabledTabIndexActionMixin",
101824
+ "name": "SbbDisabledMixin",
101840
101825
  "module": "core/mixins.js"
101841
101826
  }
101842
101827
  ],
101843
101828
  "superclass": {
101844
- "name": "SbbButtonBaseElement",
101829
+ "name": "SbbLinkBaseElement",
101845
101830
  "module": "core/base-elements.js"
101846
101831
  },
101847
- "tagName": "sbb-block-link-button",
101832
+ "tagName": "sbb-block-link",
101848
101833
  "customElement": true,
101849
101834
  "attributes": [
101850
101835
  {
@@ -101887,79 +101872,94 @@
101887
101872
  }
101888
101873
  },
101889
101874
  {
101890
- "name": "disabled-interactive",
101875
+ "name": "disabled",
101876
+ "description": "Whether the component is disabled.",
101877
+ "default": "false",
101891
101878
  "type": {
101892
101879
  "text": "boolean"
101893
101880
  },
101894
- "default": "false",
101895
- "description": "Whether the button should be aria-disabled but stay interactive.",
101896
- "fieldName": "disabledInteractive",
101881
+ "fieldName": "disabled",
101897
101882
  "inheritedFrom": {
101898
- "name": "SbbDisabledInteractiveMixin",
101883
+ "name": "SbbDisabledMixin",
101899
101884
  "module": "core/mixins/disabled-mixin.js"
101900
101885
  }
101901
101886
  },
101902
101887
  {
101903
- "name": "disabled",
101904
- "description": "Whether the component is disabled.",
101905
- "default": "false",
101888
+ "name": "href",
101906
101889
  "type": {
101907
- "text": "boolean"
101890
+ "text": "string"
101908
101891
  },
101909
- "fieldName": "disabled",
101892
+ "default": "''",
101893
+ "description": "The href value you want to link to.",
101894
+ "fieldName": "href",
101910
101895
  "inheritedFrom": {
101911
- "name": "SbbDisabledMixin",
101912
- "module": "core/mixins/disabled-mixin.js"
101896
+ "name": "SbbLinkBaseElement",
101897
+ "module": "core/base-elements/link-base-element.js"
101913
101898
  }
101914
101899
  },
101915
101900
  {
101916
- "name": "value",
101901
+ "name": "target",
101902
+ "type": {
101903
+ "text": "LinkTargetType | string"
101904
+ },
101905
+ "default": "''",
101906
+ "description": "Where to display the linked URL.",
101907
+ "fieldName": "target",
101908
+ "inheritedFrom": {
101909
+ "name": "SbbLinkBaseElement",
101910
+ "module": "core/base-elements/link-base-element.js"
101911
+ }
101912
+ },
101913
+ {
101914
+ "name": "rel",
101917
101915
  "type": {
101918
101916
  "text": "string"
101919
101917
  },
101920
101918
  "default": "''",
101921
- "description": "Value of the form element.",
101922
- "fieldName": "value",
101919
+ "description": "The relationship of the linked URL as space-separated link types.",
101920
+ "fieldName": "rel",
101923
101921
  "inheritedFrom": {
101924
- "name": "SbbButtonBaseElement",
101925
- "module": "core/base-elements/button-base-element.js"
101922
+ "name": "SbbLinkBaseElement",
101923
+ "module": "core/base-elements/link-base-element.js"
101926
101924
  }
101927
101925
  },
101928
101926
  {
101929
- "name": "type",
101930
- "description": "The type attribute to use for the button.",
101931
- "default": "'button'",
101927
+ "name": "download",
101932
101928
  "type": {
101933
- "text": "SbbButtonType"
101929
+ "text": "boolean"
101934
101930
  },
101935
- "fieldName": "type",
101931
+ "default": "false",
101932
+ "description": "Whether the browser will show the download dialog on click.",
101933
+ "fieldName": "download",
101936
101934
  "inheritedFrom": {
101937
- "name": "SbbButtonBaseElement",
101938
- "module": "core/base-elements/button-base-element.js"
101935
+ "name": "SbbLinkBaseElement",
101936
+ "module": "core/base-elements/link-base-element.js"
101939
101937
  }
101940
101938
  },
101941
101939
  {
101942
- "name": "form",
101943
- "description": "The `<form>` element to associate the button with.",
101940
+ "name": "accessibility-label",
101944
101941
  "type": {
101945
- "text": "HTMLFormElement | null"
101942
+ "text": "string"
101946
101943
  },
101947
- "fieldName": "form",
101944
+ "default": "''",
101945
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101946
+ "fieldName": "accessibilityLabel",
101948
101947
  "inheritedFrom": {
101949
- "name": "SbbButtonBaseElement",
101950
- "module": "core/base-elements/button-base-element.js"
101948
+ "name": "SbbLinkBaseElement",
101949
+ "module": "core/base-elements/link-base-element.js"
101951
101950
  }
101952
101951
  },
101953
101952
  {
101954
- "name": "name",
101955
- "description": "Name of the form element. Will be read from name attribute.",
101953
+ "name": "accessibility-current",
101956
101954
  "type": {
101957
101955
  "text": "string"
101958
101956
  },
101959
- "fieldName": "name",
101957
+ "default": "''",
101958
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101959
+ "fieldName": "accessibilityCurrent",
101960
101960
  "inheritedFrom": {
101961
- "name": "SbbFormAssociatedMixin",
101962
- "module": "core/mixins/form-associated-mixin.js"
101961
+ "name": "SbbLinkBaseElement",
101962
+ "module": "core/base-elements/link-base-element.js"
101963
101963
  }
101964
101964
  }
101965
101965
  ]
@@ -101968,10 +101968,10 @@
101968
101968
  "exports": [
101969
101969
  {
101970
101970
  "kind": "js",
101971
- "name": "SbbBlockLinkButtonElement",
101971
+ "name": "SbbBlockLinkElement",
101972
101972
  "declaration": {
101973
- "name": "SbbBlockLinkButtonElement",
101974
- "module": "link/block-link-button/block-link-button.component.js"
101973
+ "name": "SbbBlockLinkElement",
101974
+ "module": "link/block-link/block-link.component.js"
101975
101975
  }
101976
101976
  }
101977
101977
  ]