@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776089780 → 5.0.0-next-dev.1776128807

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 +798 -798
  2. package/package.json +2 -2
@@ -118336,15 +118336,15 @@
118336
118336
  },
118337
118337
  {
118338
118338
  "kind": "javascript-module",
118339
- "path": "link/block-link/block-link.component.js",
118339
+ "path": "link/block-link-button/block-link-button.component.js",
118340
118340
  "declarations": [
118341
118341
  {
118342
118342
  "kind": "class",
118343
- "description": "It displays a link enhanced with the SBB Design.",
118344
- "name": "SbbBlockLinkElement",
118343
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
118344
+ "name": "SbbBlockLinkButtonElement",
118345
118345
  "slots": [
118346
118346
  {
118347
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
118347
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
118348
118348
  "name": ""
118349
118349
  },
118350
118350
  {
@@ -118366,7 +118366,7 @@
118366
118366
  "name": "SbbElement",
118367
118367
  "module": "core/base-elements/element.js"
118368
118368
  },
118369
- "default": "'sbb-block-link'"
118369
+ "default": "'sbb-block-link-button'"
118370
118370
  },
118371
118371
  {
118372
118372
  "kind": "field",
@@ -118509,6 +118509,22 @@
118509
118509
  "module": "icon/icon-name-mixin.js"
118510
118510
  }
118511
118511
  },
118512
+ {
118513
+ "kind": "field",
118514
+ "name": "disabledInteractive",
118515
+ "type": {
118516
+ "text": "boolean"
118517
+ },
118518
+ "privacy": "public",
118519
+ "default": "false",
118520
+ "description": "Whether the button should be aria-disabled but stay interactive.",
118521
+ "attribute": "disabled-interactive",
118522
+ "reflects": true,
118523
+ "inheritedFrom": {
118524
+ "name": "SbbDisabledInteractiveMixin",
118525
+ "module": "core/mixins/disabled-mixin.js"
118526
+ }
118527
+ },
118512
118528
  {
118513
118529
  "kind": "field",
118514
118530
  "name": "disabled",
@@ -118555,298 +118571,243 @@
118555
118571
  },
118556
118572
  {
118557
118573
  "kind": "field",
118558
- "name": "href",
118574
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
118559
118575
  "type": {
118560
- "text": "string"
118576
+ "text": "array"
118561
118577
  },
118562
- "privacy": "public",
118563
- "default": "''",
118564
- "description": "The href value you want to link to.",
118565
- "attribute": "href",
118566
- "reflects": true,
118578
+ "privacy": "private",
118579
+ "readonly": true,
118580
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
118567
118581
  "inheritedFrom": {
118568
- "name": "SbbLinkBaseElement",
118569
- "module": "core/base-elements/link-base-element.js"
118582
+ "name": "SbbButtonBaseElement",
118583
+ "module": "core/base-elements/button-base-element.js"
118570
118584
  }
118571
118585
  },
118572
118586
  {
118573
118587
  "kind": "field",
118574
- "name": "target",
118588
+ "name": "value",
118575
118589
  "type": {
118576
- "text": "LinkTargetType | string"
118590
+ "text": "string"
118577
118591
  },
118578
118592
  "privacy": "public",
118579
- "default": "''",
118580
- "description": "Where to display the linked URL.",
118581
- "attribute": "target",
118582
- "reflects": true,
118583
118593
  "inheritedFrom": {
118584
- "name": "SbbLinkBaseElement",
118585
- "module": "core/base-elements/link-base-element.js"
118586
- }
118587
- },
118588
- {
118589
- "kind": "field",
118590
- "name": "rel",
118591
- "type": {
118592
- "text": "string"
118594
+ "name": "SbbButtonBaseElement",
118595
+ "module": "core/base-elements/button-base-element.js"
118593
118596
  },
118594
- "privacy": "public",
118595
118597
  "default": "''",
118596
- "description": "The relationship of the linked URL as space-separated link types.",
118597
- "attribute": "rel",
118598
- "reflects": true,
118599
- "inheritedFrom": {
118600
- "name": "SbbLinkBaseElement",
118601
- "module": "core/base-elements/link-base-element.js"
118602
- }
118598
+ "description": "Value of the form element.",
118599
+ "attribute": "value"
118603
118600
  },
118604
118601
  {
118605
118602
  "kind": "field",
118606
- "name": "download",
118603
+ "name": "type",
118604
+ "privacy": "public",
118605
+ "description": "The type attribute to use for the button.",
118606
+ "default": "'button'",
118607
118607
  "type": {
118608
- "text": "boolean"
118608
+ "text": "SbbButtonType"
118609
118609
  },
118610
- "privacy": "public",
118611
- "default": "false",
118612
- "description": "Whether the browser will show the download dialog on click.",
118613
- "attribute": "download",
118614
- "reflects": true,
118610
+ "attribute": "type",
118615
118611
  "inheritedFrom": {
118616
- "name": "SbbLinkBaseElement",
118617
- "module": "core/base-elements/link-base-element.js"
118612
+ "name": "SbbButtonBaseElement",
118613
+ "module": "core/base-elements/button-base-element.js"
118618
118614
  }
118619
118615
  },
118620
118616
  {
118621
118617
  "kind": "field",
118622
- "name": "accessibilityLabel",
118618
+ "name": "form",
118623
118619
  "type": {
118624
- "text": "string"
118620
+ "text": "HTMLFormElement | null"
118625
118621
  },
118626
118622
  "privacy": "public",
118627
- "default": "''",
118628
- "description": "This will be forwarded as aria-label to the inner anchor element.",
118629
- "attribute": "accessibility-label",
118623
+ "description": "The `<form>` element to associate the button with.",
118630
118624
  "inheritedFrom": {
118631
- "name": "SbbLinkBaseElement",
118632
- "module": "core/base-elements/link-base-element.js"
118633
- }
118625
+ "name": "SbbButtonBaseElement",
118626
+ "module": "core/base-elements/button-base-element.js"
118627
+ },
118628
+ "attribute": "form"
118634
118629
  },
118635
118630
  {
118636
118631
  "kind": "field",
118637
- "name": "accessibilityCurrent",
118632
+ "name": "_formId",
118638
118633
  "type": {
118639
118634
  "text": "string"
118640
118635
  },
118641
- "privacy": "public",
118636
+ "privacy": "private",
118642
118637
  "default": "''",
118643
- "description": "This will be forwarded as aria-current to the inner anchor element.",
118644
- "attribute": "accessibility-current",
118645
- "inheritedFrom": {
118646
- "name": "SbbLinkBaseElement",
118647
- "module": "core/base-elements/link-base-element.js"
118648
- }
118649
- },
118650
- {
118651
- "kind": "field",
118652
- "name": "language",
118653
- "privacy": "protected",
118654
- "default": "new SbbLanguageController(this)",
118655
- "inheritedFrom": {
118656
- "name": "SbbLinkBaseElement",
118657
- "module": "core/base-elements/link-base-element.js"
118658
- }
118659
- },
118660
- {
118661
- "kind": "field",
118662
- "name": "anchorRole",
118663
- "type": {
118664
- "text": "string | null"
118665
- },
118666
- "privacy": "protected",
118667
- "readonly": true,
118668
- "default": "null",
118669
118638
  "inheritedFrom": {
118670
- "name": "SbbLinkBaseElement",
118671
- "module": "core/base-elements/link-base-element.js"
118639
+ "name": "SbbButtonBaseElement",
118640
+ "module": "core/base-elements/button-base-element.js"
118672
118641
  }
118673
118642
  },
118674
118643
  {
118675
118644
  "kind": "field",
118676
- "name": "_evaluateRelAttribute",
118645
+ "name": "_handleButtonClick",
118677
118646
  "privacy": "private",
118678
118647
  "inheritedFrom": {
118679
- "name": "SbbLinkBaseElement",
118680
- "module": "core/base-elements/link-base-element.js"
118648
+ "name": "SbbButtonBaseElement",
118649
+ "module": "core/base-elements/button-base-element.js"
118681
118650
  }
118682
118651
  },
118683
118652
  {
118684
118653
  "kind": "method",
118685
- "name": "renderLink",
118686
- "privacy": "protected",
118654
+ "name": "_requestSubmit",
118655
+ "privacy": "private",
118687
118656
  "return": {
118688
118657
  "type": {
118689
- "text": "TemplateResult"
118658
+ "text": "void"
118690
118659
  }
118691
118660
  },
118692
118661
  "parameters": [
118693
118662
  {
118694
- "name": "renderContent",
118663
+ "name": "form",
118695
118664
  "type": {
118696
- "text": "TemplateResult"
118665
+ "text": "HTMLFormElement"
118697
118666
  }
118698
118667
  }
118699
118668
  ],
118700
118669
  "inheritedFrom": {
118701
- "name": "SbbLinkBaseElement",
118702
- "module": "core/base-elements/link-base-element.js"
118670
+ "name": "SbbButtonBaseElement",
118671
+ "module": "core/base-elements/button-base-element.js"
118703
118672
  }
118704
118673
  },
118705
118674
  {
118706
118675
  "kind": "field",
118707
- "name": "maybeDisabled",
118708
- "type": {
118709
- "text": "boolean | undefined"
118710
- },
118711
- "privacy": "protected",
118712
- "readonly": true,
118676
+ "name": "_formKeyDown",
118677
+ "privacy": "private",
118713
118678
  "inheritedFrom": {
118714
- "name": "SbbActionBaseElement",
118715
- "module": "core/base-elements/action-base-element.js"
118679
+ "name": "SbbButtonBaseElement",
118680
+ "module": "core/base-elements/button-base-element.js"
118716
118681
  }
118717
118682
  },
118718
118683
  {
118719
118684
  "kind": "field",
118720
- "name": "maybeDisabledInteractive",
118685
+ "name": "formAssociated",
118721
118686
  "type": {
118722
- "text": "boolean | undefined"
118723
- },
118724
- "privacy": "protected",
118725
- "readonly": true,
118726
- "inheritedFrom": {
118727
- "name": "SbbActionBaseElement",
118728
- "module": "core/base-elements/action-base-element.js"
118729
- }
118730
- },
118731
- {
118732
- "kind": "method",
118733
- "name": "setupBaseEventHandlers",
118734
- "privacy": "protected",
118735
- "return": {
118736
- "type": {
118737
- "text": "void"
118738
- }
118687
+ "text": "boolean"
118739
118688
  },
118689
+ "privacy": "public",
118690
+ "static": true,
118691
+ "default": "true",
118740
118692
  "inheritedFrom": {
118741
- "name": "SbbActionBaseElement",
118742
- "module": "core/base-elements/action-base-element.js"
118693
+ "name": "SbbFormAssociatedMixin",
118694
+ "module": "core/mixins/form-associated-mixin.js"
118743
118695
  }
118744
118696
  },
118745
118697
  {
118746
118698
  "kind": "field",
118747
- "name": "['_$sbbElement$']",
118699
+ "name": "name",
118700
+ "privacy": "public",
118701
+ "description": "Name of the form element. Will be read from name attribute.",
118748
118702
  "type": {
118749
- "text": "boolean"
118703
+ "text": "string"
118750
118704
  },
118751
- "privacy": "public",
118752
- "static": true,
118753
- "default": "true",
118705
+ "attribute": "name",
118754
118706
  "inheritedFrom": {
118755
- "name": "SbbElement",
118756
- "module": "core/base-elements/element.js"
118707
+ "name": "SbbFormAssociatedMixin",
118708
+ "module": "core/mixins/form-associated-mixin.js"
118757
118709
  }
118758
118710
  },
118759
118711
  {
118760
118712
  "kind": "field",
118761
- "name": "role",
118713
+ "name": "validity",
118762
118714
  "type": {
118763
- "text": "ElementInternals['role'] | undefined"
118715
+ "text": "ValidityState"
118764
118716
  },
118765
118717
  "privacy": "public",
118766
- "static": true,
118718
+ "description": "Returns the ValidityState object for this element.",
118719
+ "readonly": true,
118767
118720
  "inheritedFrom": {
118768
- "name": "SbbElement",
118769
- "module": "core/base-elements/element.js"
118721
+ "name": "SbbFormAssociatedMixin",
118722
+ "module": "core/mixins/form-associated-mixin.js"
118770
118723
  }
118771
118724
  },
118772
118725
  {
118773
118726
  "kind": "field",
118774
- "name": "_controllers",
118727
+ "name": "validationMessage",
118775
118728
  "type": {
118776
- "text": "Set<SbbReactiveController> | undefined"
118729
+ "text": "string"
118777
118730
  },
118778
- "privacy": "private",
118731
+ "privacy": "public",
118732
+ "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.",
118733
+ "readonly": true,
118779
118734
  "inheritedFrom": {
118780
- "name": "SbbElement",
118781
- "module": "core/base-elements/element.js"
118735
+ "name": "SbbFormAssociatedMixin",
118736
+ "module": "core/mixins/form-associated-mixin.js"
118782
118737
  }
118783
118738
  },
118784
118739
  {
118785
118740
  "kind": "field",
118786
- "name": "_hydrationRequired",
118741
+ "name": "willValidate",
118787
118742
  "type": {
118788
118743
  "text": "boolean"
118789
118744
  },
118790
- "privacy": "private",
118791
- "default": "!!this.shadowRoot",
118745
+ "privacy": "public",
118746
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
118747
+ "readonly": true,
118792
118748
  "inheritedFrom": {
118793
- "name": "SbbElement",
118794
- "module": "core/base-elements/element.js"
118749
+ "name": "SbbFormAssociatedMixin",
118750
+ "module": "core/mixins/form-associated-mixin.js"
118795
118751
  }
118796
118752
  },
118797
118753
  {
118798
118754
  "kind": "field",
118799
- "name": "_hydrationComplete",
118755
+ "name": "_validityStates",
118800
118756
  "privacy": "private",
118801
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
118757
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
118802
118758
  "inheritedFrom": {
118803
- "name": "SbbElement",
118804
- "module": "core/base-elements/element.js"
118759
+ "name": "SbbFormAssociatedMixin",
118760
+ "module": "core/mixins/form-associated-mixin.js"
118805
118761
  }
118806
118762
  },
118807
118763
  {
118808
118764
  "kind": "field",
118809
- "name": "_resolveHydration",
118765
+ "name": "formDisabled",
118810
118766
  "type": {
118811
- "text": "(hydrationRequired: boolean) => void"
118767
+ "text": "boolean"
118812
118768
  },
118813
- "privacy": "private",
118769
+ "privacy": "protected",
118770
+ "default": "false",
118771
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
118814
118772
  "inheritedFrom": {
118815
- "name": "SbbElement",
118816
- "module": "core/base-elements/element.js"
118773
+ "name": "SbbFormAssociatedMixin",
118774
+ "module": "core/mixins/form-associated-mixin.js"
118817
118775
  }
118818
118776
  },
118819
118777
  {
118820
- "kind": "field",
118821
- "name": "_textObserver",
118822
- "type": {
118823
- "text": "MutationObserver | undefined"
118778
+ "kind": "method",
118779
+ "name": "checkValidity",
118780
+ "privacy": "public",
118781
+ "return": {
118782
+ "type": {
118783
+ "text": "boolean"
118784
+ }
118824
118785
  },
118825
- "privacy": "private",
118786
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
118826
118787
  "inheritedFrom": {
118827
- "name": "SbbElement",
118828
- "module": "core/base-elements/element.js"
118788
+ "name": "SbbFormAssociatedMixin",
118789
+ "module": "core/mixins/form-associated-mixin.js"
118829
118790
  }
118830
118791
  },
118831
118792
  {
118832
- "kind": "field",
118833
- "name": "hydrationRequired",
118834
- "type": {
118835
- "text": "boolean"
118793
+ "kind": "method",
118794
+ "name": "reportValidity",
118795
+ "privacy": "public",
118796
+ "return": {
118797
+ "type": {
118798
+ "text": "boolean"
118799
+ }
118836
118800
  },
118837
- "privacy": "protected",
118838
- "description": "Returns whether hydration is required and not completed.",
118839
- "readonly": true,
118801
+ "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.",
118840
118802
  "inheritedFrom": {
118841
- "name": "SbbElement",
118842
- "module": "core/base-elements/element.js"
118843
- },
118844
- "default": "!!this.shadowRoot"
118803
+ "name": "SbbFormAssociatedMixin",
118804
+ "module": "core/mixins/form-associated-mixin.js"
118805
+ }
118845
118806
  },
118846
118807
  {
118847
118808
  "kind": "method",
118848
- "name": "toggleState",
118849
- "privacy": "protected",
118809
+ "name": "setCustomValidity",
118810
+ "privacy": "public",
118850
118811
  "return": {
118851
118812
  "type": {
118852
118813
  "text": "void"
@@ -118854,56 +118815,65 @@
118854
118815
  },
118855
118816
  "parameters": [
118856
118817
  {
118857
- "name": "value",
118818
+ "name": "message",
118858
118819
  "type": {
118859
118820
  "text": "string"
118860
118821
  }
118861
- },
118862
- {
118863
- "name": "force",
118864
- "optional": true,
118865
- "type": {
118866
- "text": "boolean"
118867
- }
118868
118822
  }
118869
118823
  ],
118824
+ "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.",
118870
118825
  "inheritedFrom": {
118871
- "name": "SbbElement",
118872
- "module": "core/base-elements/element.js"
118826
+ "name": "SbbFormAssociatedMixin",
118827
+ "module": "core/mixins/form-associated-mixin.js"
118873
118828
  }
118874
118829
  },
118875
118830
  {
118876
118831
  "kind": "method",
118877
- "name": "_slotchangeHandler",
118832
+ "name": "_hasDisabledAncestor",
118878
118833
  "privacy": "private",
118834
+ "return": {
118835
+ "type": {
118836
+ "text": "boolean"
118837
+ }
118838
+ },
118839
+ "inheritedFrom": {
118840
+ "name": "SbbFormAssociatedMixin",
118841
+ "module": "core/mixins/form-associated-mixin.js"
118842
+ }
118843
+ },
118844
+ {
118845
+ "kind": "method",
118846
+ "name": "updateFormValue",
118847
+ "privacy": "protected",
118879
118848
  "return": {
118880
118849
  "type": {
118881
118850
  "text": "void"
118882
118851
  }
118883
118852
  },
118884
- "parameters": [
118885
- {
118886
- "name": "event",
118887
- "type": {
118888
- "text": "Event"
118889
- }
118890
- },
118891
- {
118892
- "name": "slot",
118893
- "type": {
118894
- "text": "HTMLSlotElement"
118895
- }
118853
+ "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",
118854
+ "inheritedFrom": {
118855
+ "name": "SbbFormAssociatedMixin",
118856
+ "module": "core/mixins/form-associated-mixin.js"
118857
+ }
118858
+ },
118859
+ {
118860
+ "kind": "method",
118861
+ "name": "formState",
118862
+ "privacy": "protected",
118863
+ "return": {
118864
+ "type": {
118865
+ "text": "FormRestoreState"
118896
118866
  }
118897
- ],
118867
+ },
118898
118868
  "inheritedFrom": {
118899
- "name": "SbbElement",
118900
- "module": "core/base-elements/element.js"
118869
+ "name": "SbbFormAssociatedMixin",
118870
+ "module": "core/mixins/form-associated-mixin.js"
118901
118871
  }
118902
118872
  },
118903
118873
  {
118904
118874
  "kind": "method",
118905
- "name": "_handleSlotChangeForSlottedState",
118906
- "privacy": "private",
118875
+ "name": "setValidityFlag",
118876
+ "privacy": "protected",
118907
118877
  "return": {
118908
118878
  "type": {
118909
118879
  "text": "void"
@@ -118911,21 +118881,35 @@
118911
118881
  },
118912
118882
  "parameters": [
118913
118883
  {
118914
- "name": "slot",
118884
+ "name": "flag",
118915
118885
  "type": {
118916
- "text": "HTMLSlotElement"
118886
+ "text": "T"
118887
+ }
118888
+ },
118889
+ {
118890
+ "name": "message",
118891
+ "type": {
118892
+ "text": "string"
118893
+ }
118894
+ },
118895
+ {
118896
+ "name": "flagValue",
118897
+ "optional": true,
118898
+ "type": {
118899
+ "text": "ValidityStateFlags[T]"
118917
118900
  }
118918
118901
  }
118919
118902
  ],
118903
+ "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).",
118920
118904
  "inheritedFrom": {
118921
- "name": "SbbElement",
118922
- "module": "core/base-elements/element.js"
118905
+ "name": "SbbFormAssociatedMixin",
118906
+ "module": "core/mixins/form-associated-mixin.js"
118923
118907
  }
118924
118908
  },
118925
118909
  {
118926
118910
  "kind": "method",
118927
- "name": "_updateSlottedState",
118928
- "privacy": "private",
118911
+ "name": "removeValidityFlag",
118912
+ "privacy": "protected",
118929
118913
  "return": {
118930
118914
  "type": {
118931
118915
  "text": "void"
@@ -118933,43 +118917,37 @@
118933
118917
  },
118934
118918
  "parameters": [
118935
118919
  {
118936
- "name": "slot",
118920
+ "name": "flag",
118937
118921
  "type": {
118938
- "text": "HTMLSlotElement"
118922
+ "text": "T"
118939
118923
  }
118940
118924
  }
118941
118925
  ],
118926
+ "description": "Removes the validity state flag entry and updates validity state.",
118942
118927
  "inheritedFrom": {
118943
- "name": "SbbElement",
118944
- "module": "core/base-elements/element.js"
118928
+ "name": "SbbFormAssociatedMixin",
118929
+ "module": "core/mixins/form-associated-mixin.js"
118945
118930
  }
118946
118931
  },
118947
118932
  {
118948
118933
  "kind": "method",
118949
- "name": "_observeTextNodesInSlot",
118950
- "privacy": "private",
118934
+ "name": "validate",
118935
+ "privacy": "protected",
118951
118936
  "return": {
118952
118937
  "type": {
118953
118938
  "text": "void"
118954
118939
  }
118955
118940
  },
118956
- "parameters": [
118957
- {
118958
- "name": "slot",
118959
- "type": {
118960
- "text": "HTMLSlotElement"
118961
- }
118962
- }
118963
- ],
118941
+ "description": "To be called whenever the current element needs to be validated.",
118964
118942
  "inheritedFrom": {
118965
- "name": "SbbElement",
118966
- "module": "core/base-elements/element.js"
118943
+ "name": "SbbFormAssociatedMixin",
118944
+ "module": "core/mixins/form-associated-mixin.js"
118967
118945
  }
118968
118946
  },
118969
118947
  {
118970
118948
  "kind": "method",
118971
- "name": "_hasSlottedContent",
118972
- "privacy": "private",
118949
+ "name": "shouldValidate",
118950
+ "privacy": "protected",
118973
118951
  "return": {
118974
118952
  "type": {
118975
118953
  "text": "boolean"
@@ -118977,889 +118955,883 @@
118977
118955
  },
118978
118956
  "parameters": [
118979
118957
  {
118980
- "name": "slot",
118958
+ "name": "name",
118981
118959
  "type": {
118982
- "text": "HTMLSlotElement"
118960
+ "text": "PropertyKey | undefined"
118983
118961
  }
118984
118962
  }
118985
118963
  ],
118964
+ "description": "Whether validation should be run on a property change with the given name.",
118986
118965
  "inheritedFrom": {
118987
- "name": "SbbElement",
118988
- "module": "core/base-elements/element.js"
118966
+ "name": "SbbFormAssociatedMixin",
118967
+ "module": "core/mixins/form-associated-mixin.js"
118989
118968
  }
118990
- }
118991
- ],
118992
- "mixins": [
118993
- {
118994
- "name": "SbbBlockLinkCommonElementMixin",
118995
- "module": "link/common/block-link-common.js"
118996
118969
  },
118997
118970
  {
118998
- "name": "SbbDisabledMixin",
118999
- "module": "core.js"
119000
- }
119001
- ],
119002
- "superclass": {
119003
- "name": "SbbLinkBaseElement",
119004
- "module": "core.js"
119005
- },
119006
- "tagName": "sbb-block-link",
119007
- "customElement": true,
119008
- "attributes": [
119009
- {
119010
- "name": "size",
119011
- "type": {
119012
- "text": "SbbLinkSize"
118971
+ "kind": "method",
118972
+ "name": "_setInternalValidity",
118973
+ "privacy": "private",
118974
+ "return": {
118975
+ "type": {
118976
+ "text": "void"
118977
+ }
119013
118978
  },
119014
- "description": "Size variant, either xs, s or m.",
119015
- "default": "'s' / 'xs' (lean)",
119016
- "fieldName": "size",
119017
118979
  "inheritedFrom": {
119018
- "name": "SbbBlockLinkCommonElementMixin",
119019
- "module": "link/common/block-link-common.js"
118980
+ "name": "SbbFormAssociatedMixin",
118981
+ "module": "core/mixins/form-associated-mixin.js"
119020
118982
  }
119021
118983
  },
119022
118984
  {
119023
- "name": "icon-placement",
118985
+ "kind": "field",
118986
+ "name": "role",
119024
118987
  "type": {
119025
- "text": "SbbIconPlacement"
118988
+ "text": "ElementInternals['role']"
119026
118989
  },
119027
- "default": "'start'",
119028
- "description": "Moves the icon to the end of the component if set to true.",
119029
- "fieldName": "iconPlacement",
118990
+ "privacy": "public",
118991
+ "static": true,
119030
118992
  "inheritedFrom": {
119031
- "name": "SbbBlockLinkCommonElementMixin",
119032
- "module": "link/common/block-link-common.js"
119033
- }
118993
+ "name": "SbbElement",
118994
+ "module": "core/base-elements/element.js"
118995
+ },
118996
+ "readonly": true,
118997
+ "default": "'button'"
119034
118998
  },
119035
118999
  {
119036
- "name": "icon-name",
119037
- "type": {
119038
- "text": "string"
119039
- },
119040
- "default": "''",
119041
- "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.",
119042
- "fieldName": "iconName",
119000
+ "kind": "field",
119001
+ "name": "_preventScrollOnSpaceKeydown",
119002
+ "privacy": "private",
119003
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
119004
+ "parameters": [
119005
+ {
119006
+ "description": "The origin event.",
119007
+ "name": "event"
119008
+ }
119009
+ ],
119043
119010
  "inheritedFrom": {
119044
- "name": "SbbIconNameMixin",
119045
- "module": "icon/icon-name-mixin.js"
119011
+ "name": "SbbButtonLikeBaseElement",
119012
+ "module": "core/base-elements/button-base-element.js"
119046
119013
  }
119047
119014
  },
119048
119015
  {
119049
- "name": "disabled",
119050
- "description": "Whether the component is disabled.",
119051
- "default": "false",
119052
- "type": {
119053
- "text": "boolean"
119054
- },
119055
- "fieldName": "disabled",
119056
- "inheritedFrom": {
119057
- "name": "SbbDisabledMixin",
119058
- "module": "core/mixins/disabled-mixin.js"
119059
- }
119060
- },
119061
- {
119062
- "name": "href",
119063
- "type": {
119064
- "text": "string"
119065
- },
119066
- "default": "''",
119067
- "description": "The href value you want to link to.",
119068
- "fieldName": "href",
119016
+ "kind": "field",
119017
+ "name": "_removeActiveMarker",
119018
+ "privacy": "private",
119069
119019
  "inheritedFrom": {
119070
- "name": "SbbLinkBaseElement",
119071
- "module": "core/base-elements/link-base-element.js"
119020
+ "name": "SbbButtonLikeBaseElement",
119021
+ "module": "core/base-elements/button-base-element.js"
119072
119022
  }
119073
119023
  },
119074
119024
  {
119075
- "name": "target",
119076
- "type": {
119077
- "text": "LinkTargetType | string"
119078
- },
119079
- "default": "''",
119080
- "description": "Where to display the linked URL.",
119081
- "fieldName": "target",
119025
+ "kind": "field",
119026
+ "name": "_dispatchClickEventOnSpaceKeyup",
119027
+ "privacy": "private",
119028
+ "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.",
119029
+ "parameters": [
119030
+ {
119031
+ "description": "The origin event.",
119032
+ "name": "event"
119033
+ }
119034
+ ],
119082
119035
  "inheritedFrom": {
119083
- "name": "SbbLinkBaseElement",
119084
- "module": "core/base-elements/link-base-element.js"
119036
+ "name": "SbbButtonLikeBaseElement",
119037
+ "module": "core/base-elements/button-base-element.js"
119085
119038
  }
119086
119039
  },
119087
119040
  {
119088
- "name": "rel",
119089
- "type": {
119090
- "text": "string"
119091
- },
119092
- "default": "''",
119093
- "description": "The relationship of the linked URL as space-separated link types.",
119094
- "fieldName": "rel",
119041
+ "kind": "field",
119042
+ "name": "_dispatchClickEvent",
119043
+ "privacy": "private",
119095
119044
  "inheritedFrom": {
119096
- "name": "SbbLinkBaseElement",
119097
- "module": "core/base-elements/link-base-element.js"
119045
+ "name": "SbbButtonLikeBaseElement",
119046
+ "module": "core/base-elements/button-base-element.js"
119098
119047
  }
119099
119048
  },
119100
119049
  {
119101
- "name": "download",
119050
+ "kind": "field",
119051
+ "name": "maybeDisabled",
119102
119052
  "type": {
119103
- "text": "boolean"
119053
+ "text": "boolean | undefined"
119104
119054
  },
119105
- "default": "false",
119106
- "description": "Whether the browser will show the download dialog on click.",
119107
- "fieldName": "download",
119055
+ "privacy": "protected",
119056
+ "readonly": true,
119108
119057
  "inheritedFrom": {
119109
- "name": "SbbLinkBaseElement",
119110
- "module": "core/base-elements/link-base-element.js"
119058
+ "name": "SbbActionBaseElement",
119059
+ "module": "core/base-elements/action-base-element.js"
119111
119060
  }
119112
119061
  },
119113
119062
  {
119114
- "name": "accessibility-label",
119063
+ "kind": "field",
119064
+ "name": "maybeDisabledInteractive",
119115
119065
  "type": {
119116
- "text": "string"
119066
+ "text": "boolean | undefined"
119117
119067
  },
119118
- "default": "''",
119119
- "description": "This will be forwarded as aria-label to the inner anchor element.",
119120
- "fieldName": "accessibilityLabel",
119068
+ "privacy": "protected",
119069
+ "readonly": true,
119121
119070
  "inheritedFrom": {
119122
- "name": "SbbLinkBaseElement",
119123
- "module": "core/base-elements/link-base-element.js"
119071
+ "name": "SbbActionBaseElement",
119072
+ "module": "core/base-elements/action-base-element.js"
119124
119073
  }
119125
119074
  },
119126
119075
  {
119127
- "name": "accessibility-current",
119128
- "type": {
119129
- "text": "string"
119076
+ "kind": "method",
119077
+ "name": "setupBaseEventHandlers",
119078
+ "privacy": "protected",
119079
+ "return": {
119080
+ "type": {
119081
+ "text": "void"
119082
+ }
119130
119083
  },
119131
- "default": "''",
119132
- "description": "This will be forwarded as aria-current to the inner anchor element.",
119133
- "fieldName": "accessibilityCurrent",
119134
119084
  "inheritedFrom": {
119135
- "name": "SbbLinkBaseElement",
119136
- "module": "core/base-elements/link-base-element.js"
119085
+ "name": "SbbActionBaseElement",
119086
+ "module": "core/base-elements/action-base-element.js"
119137
119087
  }
119138
- }
119139
- ]
119140
- }
119141
- ],
119142
- "exports": [
119143
- {
119144
- "kind": "js",
119145
- "name": "SbbBlockLinkElement",
119146
- "declaration": {
119147
- "name": "SbbBlockLinkElement",
119148
- "module": "link/block-link/block-link.component.js"
119149
- }
119150
- }
119151
- ]
119152
- },
119153
- {
119154
- "kind": "javascript-module",
119155
- "path": "link/block-link-button/block-link-button.component.js",
119156
- "declarations": [
119157
- {
119158
- "kind": "class",
119159
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119160
- "name": "SbbBlockLinkButtonElement",
119161
- "slots": [
119162
- {
119163
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119164
- "name": ""
119165
119088
  },
119166
- {
119167
- "description": "Slot used to display the icon, if one is set.",
119168
- "name": "icon"
119169
- }
119170
- ],
119171
- "members": [
119172
119089
  {
119173
119090
  "kind": "field",
119174
- "name": "elementName",
119091
+ "name": "['_$sbbElement$']",
119175
119092
  "type": {
119176
- "text": "string"
119093
+ "text": "boolean"
119177
119094
  },
119178
119095
  "privacy": "public",
119179
119096
  "static": true,
119180
- "readonly": true,
119097
+ "default": "true",
119181
119098
  "inheritedFrom": {
119182
119099
  "name": "SbbElement",
119183
119100
  "module": "core/base-elements/element.js"
119184
- },
119185
- "default": "'sbb-block-link-button'"
119101
+ }
119186
119102
  },
119187
119103
  {
119188
119104
  "kind": "field",
119189
- "name": "styles",
119105
+ "name": "_controllers",
119190
119106
  "type": {
119191
- "text": "CSSResultGroup"
119107
+ "text": "Set<SbbReactiveController> | undefined"
119192
119108
  },
119193
- "privacy": "public",
119194
- "static": true,
119195
- "default": "[super.styles, unsafeCSS(blockStyle)]",
119109
+ "privacy": "private",
119196
119110
  "inheritedFrom": {
119197
- "name": "SbbLinkCommonElementMixin",
119198
- "module": "link/common/link-common.js"
119111
+ "name": "SbbElement",
119112
+ "module": "core/base-elements/element.js"
119199
119113
  }
119200
119114
  },
119201
119115
  {
119202
119116
  "kind": "field",
119203
- "name": "size",
119117
+ "name": "_hydrationRequired",
119204
119118
  "type": {
119205
- "text": "SbbLinkSize"
119119
+ "text": "boolean"
119206
119120
  },
119207
- "privacy": "public",
119208
- "description": "Size variant, either xs, s or m.",
119209
- "default": "'s' / 'xs' (lean)",
119210
- "attribute": "size",
119211
- "reflects": true,
119121
+ "privacy": "private",
119122
+ "default": "!!this.shadowRoot",
119212
119123
  "inheritedFrom": {
119213
- "name": "SbbBlockLinkCommonElementMixin",
119214
- "module": "link/common/block-link-common.js"
119124
+ "name": "SbbElement",
119125
+ "module": "core/base-elements/element.js"
119215
119126
  }
119216
119127
  },
119217
119128
  {
119218
119129
  "kind": "field",
119219
- "name": "iconPlacement",
119220
- "type": {
119221
- "text": "SbbIconPlacement"
119222
- },
119223
- "privacy": "public",
119224
- "default": "'start'",
119225
- "description": "Moves the icon to the end of the component if set to true.",
119226
- "attribute": "icon-placement",
119227
- "reflects": true,
119130
+ "name": "_hydrationComplete",
119131
+ "privacy": "private",
119132
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119228
119133
  "inheritedFrom": {
119229
- "name": "SbbBlockLinkCommonElementMixin",
119230
- "module": "link/common/block-link-common.js"
119134
+ "name": "SbbElement",
119135
+ "module": "core/base-elements/element.js"
119231
119136
  }
119232
119137
  },
119233
119138
  {
119234
- "kind": "method",
119235
- "name": "renderTemplate",
119236
- "privacy": "protected",
119237
- "return": {
119238
- "type": {
119239
- "text": "TemplateResult"
119240
- }
119139
+ "kind": "field",
119140
+ "name": "_resolveHydration",
119141
+ "type": {
119142
+ "text": "(hydrationRequired: boolean) => void"
119241
119143
  },
119242
- "description": "Override this method to render the component template.",
119144
+ "privacy": "private",
119243
119145
  "inheritedFrom": {
119244
- "name": "SbbActionBaseElement",
119245
- "module": "core/base-elements/action-base-element.js"
119146
+ "name": "SbbElement",
119147
+ "module": "core/base-elements/element.js"
119246
119148
  }
119247
119149
  },
119248
119150
  {
119249
119151
  "kind": "field",
119250
- "name": "elementDependencies",
119152
+ "name": "_textObserver",
119251
119153
  "type": {
119252
- "text": "SbbElementType[]"
119154
+ "text": "MutationObserver | undefined"
119253
119155
  },
119254
- "privacy": "public",
119255
- "static": true,
119156
+ "privacy": "private",
119256
119157
  "inheritedFrom": {
119257
119158
  "name": "SbbElement",
119258
119159
  "module": "core/base-elements/element.js"
119259
- },
119260
- "default": "[SbbIconElement]"
119160
+ }
119261
119161
  },
119262
119162
  {
119263
119163
  "kind": "field",
119264
- "name": "iconName",
119164
+ "name": "hydrationRequired",
119265
119165
  "type": {
119266
- "text": "string"
119166
+ "text": "boolean"
119267
119167
  },
119268
- "privacy": "public",
119269
- "default": "''",
119270
- "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.",
119271
- "attribute": "icon-name",
119168
+ "privacy": "protected",
119169
+ "description": "Returns whether hydration is required and not completed.",
119170
+ "readonly": true,
119272
119171
  "inheritedFrom": {
119273
- "name": "SbbIconNameMixin",
119274
- "module": "icon/icon-name-mixin.js"
119275
- }
119172
+ "name": "SbbElement",
119173
+ "module": "core/base-elements/element.js"
119174
+ },
119175
+ "default": "!!this.shadowRoot"
119276
119176
  },
119277
119177
  {
119278
119178
  "kind": "method",
119279
- "name": "renderIconSlot",
119179
+ "name": "toggleState",
119280
119180
  "privacy": "protected",
119281
119181
  "return": {
119282
119182
  "type": {
119283
- "text": "TemplateResult"
119183
+ "text": "void"
119284
119184
  }
119285
119185
  },
119286
119186
  "parameters": [
119287
119187
  {
119288
- "name": "classname",
119289
- "optional": true,
119188
+ "name": "value",
119290
119189
  "type": {
119291
119190
  "text": "string"
119292
119191
  }
119192
+ },
119193
+ {
119194
+ "name": "force",
119195
+ "optional": true,
119196
+ "type": {
119197
+ "text": "boolean"
119198
+ }
119293
119199
  }
119294
119200
  ],
119295
119201
  "inheritedFrom": {
119296
- "name": "SbbIconNameMixin",
119297
- "module": "icon/icon-name-mixin.js"
119202
+ "name": "SbbElement",
119203
+ "module": "core/base-elements/element.js"
119298
119204
  }
119299
119205
  },
119300
119206
  {
119301
119207
  "kind": "method",
119302
- "name": "renderIconName",
119303
- "privacy": "protected",
119208
+ "name": "_slotchangeHandler",
119209
+ "privacy": "private",
119304
119210
  "return": {
119305
119211
  "type": {
119306
- "text": "string"
119212
+ "text": "void"
119307
119213
  }
119308
119214
  },
119215
+ "parameters": [
119216
+ {
119217
+ "name": "event",
119218
+ "type": {
119219
+ "text": "Event"
119220
+ }
119221
+ },
119222
+ {
119223
+ "name": "slot",
119224
+ "type": {
119225
+ "text": "HTMLSlotElement"
119226
+ }
119227
+ }
119228
+ ],
119309
119229
  "inheritedFrom": {
119310
- "name": "SbbIconNameMixin",
119311
- "module": "icon/icon-name-mixin.js"
119230
+ "name": "SbbElement",
119231
+ "module": "core/base-elements/element.js"
119312
119232
  }
119313
119233
  },
119314
119234
  {
119315
119235
  "kind": "method",
119316
- "name": "_renderIconName",
119236
+ "name": "_handleSlotChangeForSlottedState",
119317
119237
  "privacy": "private",
119318
119238
  "return": {
119319
119239
  "type": {
119320
- "text": "string"
119240
+ "text": "void"
119321
119241
  }
119322
119242
  },
119243
+ "parameters": [
119244
+ {
119245
+ "name": "slot",
119246
+ "type": {
119247
+ "text": "HTMLSlotElement"
119248
+ }
119249
+ }
119250
+ ],
119323
119251
  "inheritedFrom": {
119324
- "name": "SbbIconNameMixin",
119325
- "module": "icon/icon-name-mixin.js"
119326
- }
119327
- },
119328
- {
119329
- "kind": "field",
119330
- "name": "disabledInteractive",
119331
- "type": {
119332
- "text": "boolean"
119333
- },
119334
- "privacy": "public",
119335
- "default": "false",
119336
- "description": "Whether the button should be aria-disabled but stay interactive.",
119337
- "attribute": "disabled-interactive",
119338
- "reflects": true,
119339
- "inheritedFrom": {
119340
- "name": "SbbDisabledInteractiveMixin",
119341
- "module": "core/mixins/disabled-mixin.js"
119252
+ "name": "SbbElement",
119253
+ "module": "core/base-elements/element.js"
119342
119254
  }
119343
119255
  },
119344
119256
  {
119345
- "kind": "field",
119346
- "name": "disabled",
119347
- "privacy": "public",
119348
- "description": "Whether the component is disabled.",
119349
- "default": "false",
119350
- "type": {
119351
- "text": "boolean"
119257
+ "kind": "method",
119258
+ "name": "_updateSlottedState",
119259
+ "privacy": "private",
119260
+ "return": {
119261
+ "type": {
119262
+ "text": "void"
119263
+ }
119352
119264
  },
119353
- "attribute": "disabled",
119354
- "reflects": true,
119265
+ "parameters": [
119266
+ {
119267
+ "name": "slot",
119268
+ "type": {
119269
+ "text": "HTMLSlotElement"
119270
+ }
119271
+ }
119272
+ ],
119355
119273
  "inheritedFrom": {
119356
- "name": "SbbDisabledMixin",
119357
- "module": "core/mixins/disabled-mixin.js"
119274
+ "name": "SbbElement",
119275
+ "module": "core/base-elements/element.js"
119358
119276
  }
119359
119277
  },
119360
119278
  {
119361
- "kind": "field",
119362
- "name": "#disabled",
119279
+ "kind": "method",
119280
+ "name": "_observeTextNodesInSlot",
119363
119281
  "privacy": "private",
119364
- "type": {
119365
- "text": "boolean"
119282
+ "return": {
119283
+ "type": {
119284
+ "text": "void"
119285
+ }
119366
119286
  },
119367
- "default": "false",
119287
+ "parameters": [
119288
+ {
119289
+ "name": "slot",
119290
+ "type": {
119291
+ "text": "HTMLSlotElement"
119292
+ }
119293
+ }
119294
+ ],
119368
119295
  "inheritedFrom": {
119369
- "name": "SbbDisabledMixin",
119370
- "module": "core/mixins/disabled-mixin.js"
119296
+ "name": "SbbElement",
119297
+ "module": "core/base-elements/element.js"
119371
119298
  }
119372
119299
  },
119373
119300
  {
119374
119301
  "kind": "method",
119375
- "name": "isDisabledExternally",
119376
- "privacy": "protected",
119302
+ "name": "_hasSlottedContent",
119303
+ "privacy": "private",
119377
119304
  "return": {
119378
119305
  "type": {
119379
119306
  "text": "boolean"
119380
119307
  }
119381
119308
  },
119382
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
119309
+ "parameters": [
119310
+ {
119311
+ "name": "slot",
119312
+ "type": {
119313
+ "text": "HTMLSlotElement"
119314
+ }
119315
+ }
119316
+ ],
119383
119317
  "inheritedFrom": {
119384
- "name": "SbbDisabledMixin",
119385
- "module": "core/mixins/disabled-mixin.js"
119318
+ "name": "SbbElement",
119319
+ "module": "core/base-elements/element.js"
119386
119320
  }
119321
+ }
119322
+ ],
119323
+ "mixins": [
119324
+ {
119325
+ "name": "SbbBlockLinkCommonElementMixin",
119326
+ "module": "link/common/block-link-common.js"
119387
119327
  },
119388
119328
  {
119389
- "kind": "field",
119390
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
119329
+ "name": "SbbDisabledTabIndexActionMixin",
119330
+ "module": "core.js"
119331
+ }
119332
+ ],
119333
+ "superclass": {
119334
+ "name": "SbbButtonBaseElement",
119335
+ "module": "core.js"
119336
+ },
119337
+ "tagName": "sbb-block-link-button",
119338
+ "customElement": true,
119339
+ "attributes": [
119340
+ {
119341
+ "name": "size",
119391
119342
  "type": {
119392
- "text": "array"
119343
+ "text": "SbbLinkSize"
119393
119344
  },
119394
- "privacy": "private",
119395
- "readonly": true,
119396
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119345
+ "description": "Size variant, either xs, s or m.",
119346
+ "default": "'s' / 'xs' (lean)",
119347
+ "fieldName": "size",
119397
119348
  "inheritedFrom": {
119398
- "name": "SbbButtonBaseElement",
119399
- "module": "core/base-elements/button-base-element.js"
119349
+ "name": "SbbBlockLinkCommonElementMixin",
119350
+ "module": "link/common/block-link-common.js"
119400
119351
  }
119401
119352
  },
119402
119353
  {
119403
- "kind": "field",
119404
- "name": "value",
119354
+ "name": "icon-placement",
119405
119355
  "type": {
119406
- "text": "string"
119356
+ "text": "SbbIconPlacement"
119407
119357
  },
119408
- "privacy": "public",
119358
+ "default": "'start'",
119359
+ "description": "Moves the icon to the end of the component if set to true.",
119360
+ "fieldName": "iconPlacement",
119409
119361
  "inheritedFrom": {
119410
- "name": "SbbButtonBaseElement",
119411
- "module": "core/base-elements/button-base-element.js"
119412
- },
119413
- "default": "''",
119414
- "description": "Value of the form element.",
119415
- "attribute": "value"
119362
+ "name": "SbbBlockLinkCommonElementMixin",
119363
+ "module": "link/common/block-link-common.js"
119364
+ }
119416
119365
  },
119417
119366
  {
119418
- "kind": "field",
119419
- "name": "type",
119420
- "privacy": "public",
119421
- "description": "The type attribute to use for the button.",
119422
- "default": "'button'",
119367
+ "name": "icon-name",
119423
119368
  "type": {
119424
- "text": "SbbButtonType"
119369
+ "text": "string"
119425
119370
  },
119426
- "attribute": "type",
119371
+ "default": "''",
119372
+ "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.",
119373
+ "fieldName": "iconName",
119427
119374
  "inheritedFrom": {
119428
- "name": "SbbButtonBaseElement",
119429
- "module": "core/base-elements/button-base-element.js"
119375
+ "name": "SbbIconNameMixin",
119376
+ "module": "icon/icon-name-mixin.js"
119430
119377
  }
119431
119378
  },
119432
119379
  {
119433
- "kind": "field",
119434
- "name": "form",
119380
+ "name": "disabled-interactive",
119435
119381
  "type": {
119436
- "text": "HTMLFormElement | null"
119382
+ "text": "boolean"
119437
119383
  },
119438
- "privacy": "public",
119439
- "description": "The `<form>` element to associate the button with.",
119384
+ "default": "false",
119385
+ "description": "Whether the button should be aria-disabled but stay interactive.",
119386
+ "fieldName": "disabledInteractive",
119440
119387
  "inheritedFrom": {
119441
- "name": "SbbButtonBaseElement",
119442
- "module": "core/base-elements/button-base-element.js"
119443
- },
119444
- "attribute": "form"
119388
+ "name": "SbbDisabledInteractiveMixin",
119389
+ "module": "core/mixins/disabled-mixin.js"
119390
+ }
119445
119391
  },
119446
119392
  {
119447
- "kind": "field",
119448
- "name": "_formId",
119393
+ "name": "disabled",
119394
+ "description": "Whether the component is disabled.",
119395
+ "default": "false",
119449
119396
  "type": {
119450
- "text": "string"
119397
+ "text": "boolean"
119451
119398
  },
119452
- "privacy": "private",
119453
- "default": "''",
119454
- "inheritedFrom": {
119455
- "name": "SbbButtonBaseElement",
119456
- "module": "core/base-elements/button-base-element.js"
119457
- }
119458
- },
119459
- {
119460
- "kind": "field",
119461
- "name": "_handleButtonClick",
119462
- "privacy": "private",
119399
+ "fieldName": "disabled",
119463
119400
  "inheritedFrom": {
119464
- "name": "SbbButtonBaseElement",
119465
- "module": "core/base-elements/button-base-element.js"
119401
+ "name": "SbbDisabledMixin",
119402
+ "module": "core/mixins/disabled-mixin.js"
119466
119403
  }
119467
119404
  },
119468
119405
  {
119469
- "kind": "method",
119470
- "name": "_requestSubmit",
119471
- "privacy": "private",
119472
- "return": {
119473
- "type": {
119474
- "text": "void"
119475
- }
119406
+ "name": "value",
119407
+ "type": {
119408
+ "text": "string"
119476
119409
  },
119477
- "parameters": [
119478
- {
119479
- "name": "form",
119480
- "type": {
119481
- "text": "HTMLFormElement"
119482
- }
119483
- }
119484
- ],
119410
+ "default": "''",
119411
+ "description": "Value of the form element.",
119412
+ "fieldName": "value",
119485
119413
  "inheritedFrom": {
119486
119414
  "name": "SbbButtonBaseElement",
119487
119415
  "module": "core/base-elements/button-base-element.js"
119488
119416
  }
119489
119417
  },
119490
119418
  {
119491
- "kind": "field",
119492
- "name": "_formKeyDown",
119493
- "privacy": "private",
119419
+ "name": "type",
119420
+ "description": "The type attribute to use for the button.",
119421
+ "default": "'button'",
119422
+ "type": {
119423
+ "text": "SbbButtonType"
119424
+ },
119425
+ "fieldName": "type",
119494
119426
  "inheritedFrom": {
119495
119427
  "name": "SbbButtonBaseElement",
119496
119428
  "module": "core/base-elements/button-base-element.js"
119497
119429
  }
119498
119430
  },
119499
119431
  {
119500
- "kind": "field",
119501
- "name": "formAssociated",
119432
+ "name": "form",
119433
+ "description": "The `<form>` element to associate the button with.",
119502
119434
  "type": {
119503
- "text": "boolean"
119435
+ "text": "HTMLFormElement | null"
119504
119436
  },
119505
- "privacy": "public",
119506
- "static": true,
119507
- "default": "true",
119437
+ "fieldName": "form",
119508
119438
  "inheritedFrom": {
119509
- "name": "SbbFormAssociatedMixin",
119510
- "module": "core/mixins/form-associated-mixin.js"
119439
+ "name": "SbbButtonBaseElement",
119440
+ "module": "core/base-elements/button-base-element.js"
119511
119441
  }
119512
119442
  },
119513
119443
  {
119514
- "kind": "field",
119515
119444
  "name": "name",
119516
- "privacy": "public",
119517
119445
  "description": "Name of the form element. Will be read from name attribute.",
119518
119446
  "type": {
119519
119447
  "text": "string"
119520
119448
  },
119521
- "attribute": "name",
119522
- "inheritedFrom": {
119523
- "name": "SbbFormAssociatedMixin",
119524
- "module": "core/mixins/form-associated-mixin.js"
119525
- }
119526
- },
119527
- {
119528
- "kind": "field",
119529
- "name": "validity",
119530
- "type": {
119531
- "text": "ValidityState"
119532
- },
119533
- "privacy": "public",
119534
- "description": "Returns the ValidityState object for this element.",
119535
- "readonly": true,
119449
+ "fieldName": "name",
119536
119450
  "inheritedFrom": {
119537
119451
  "name": "SbbFormAssociatedMixin",
119538
119452
  "module": "core/mixins/form-associated-mixin.js"
119539
119453
  }
119454
+ }
119455
+ ]
119456
+ }
119457
+ ],
119458
+ "exports": [
119459
+ {
119460
+ "kind": "js",
119461
+ "name": "SbbBlockLinkButtonElement",
119462
+ "declaration": {
119463
+ "name": "SbbBlockLinkButtonElement",
119464
+ "module": "link/block-link-button/block-link-button.component.js"
119465
+ }
119466
+ }
119467
+ ]
119468
+ },
119469
+ {
119470
+ "kind": "javascript-module",
119471
+ "path": "link/block-link/block-link.component.js",
119472
+ "declarations": [
119473
+ {
119474
+ "kind": "class",
119475
+ "description": "It displays a link enhanced with the SBB Design.",
119476
+ "name": "SbbBlockLinkElement",
119477
+ "slots": [
119478
+ {
119479
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
119480
+ "name": ""
119540
119481
  },
119482
+ {
119483
+ "description": "Slot used to display the icon, if one is set.",
119484
+ "name": "icon"
119485
+ }
119486
+ ],
119487
+ "members": [
119541
119488
  {
119542
119489
  "kind": "field",
119543
- "name": "validationMessage",
119490
+ "name": "elementName",
119544
119491
  "type": {
119545
119492
  "text": "string"
119546
119493
  },
119547
119494
  "privacy": "public",
119548
- "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.",
119495
+ "static": true,
119549
119496
  "readonly": true,
119550
119497
  "inheritedFrom": {
119551
- "name": "SbbFormAssociatedMixin",
119552
- "module": "core/mixins/form-associated-mixin.js"
119553
- }
119498
+ "name": "SbbElement",
119499
+ "module": "core/base-elements/element.js"
119500
+ },
119501
+ "default": "'sbb-block-link'"
119554
119502
  },
119555
119503
  {
119556
119504
  "kind": "field",
119557
- "name": "willValidate",
119505
+ "name": "styles",
119558
119506
  "type": {
119559
- "text": "boolean"
119507
+ "text": "CSSResultGroup"
119560
119508
  },
119561
119509
  "privacy": "public",
119562
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
119563
- "readonly": true,
119510
+ "static": true,
119511
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
119564
119512
  "inheritedFrom": {
119565
- "name": "SbbFormAssociatedMixin",
119566
- "module": "core/mixins/form-associated-mixin.js"
119513
+ "name": "SbbLinkCommonElementMixin",
119514
+ "module": "link/common/link-common.js"
119567
119515
  }
119568
119516
  },
119569
119517
  {
119570
119518
  "kind": "field",
119571
- "name": "_validityStates",
119572
- "privacy": "private",
119573
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
119519
+ "name": "size",
119520
+ "type": {
119521
+ "text": "SbbLinkSize"
119522
+ },
119523
+ "privacy": "public",
119524
+ "description": "Size variant, either xs, s or m.",
119525
+ "default": "'s' / 'xs' (lean)",
119526
+ "attribute": "size",
119527
+ "reflects": true,
119574
119528
  "inheritedFrom": {
119575
- "name": "SbbFormAssociatedMixin",
119576
- "module": "core/mixins/form-associated-mixin.js"
119529
+ "name": "SbbBlockLinkCommonElementMixin",
119530
+ "module": "link/common/block-link-common.js"
119577
119531
  }
119578
119532
  },
119579
119533
  {
119580
119534
  "kind": "field",
119581
- "name": "formDisabled",
119535
+ "name": "iconPlacement",
119582
119536
  "type": {
119583
- "text": "boolean"
119537
+ "text": "SbbIconPlacement"
119584
119538
  },
119585
- "privacy": "protected",
119586
- "default": "false",
119587
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
119539
+ "privacy": "public",
119540
+ "default": "'start'",
119541
+ "description": "Moves the icon to the end of the component if set to true.",
119542
+ "attribute": "icon-placement",
119543
+ "reflects": true,
119588
119544
  "inheritedFrom": {
119589
- "name": "SbbFormAssociatedMixin",
119590
- "module": "core/mixins/form-associated-mixin.js"
119545
+ "name": "SbbBlockLinkCommonElementMixin",
119546
+ "module": "link/common/block-link-common.js"
119591
119547
  }
119592
119548
  },
119593
119549
  {
119594
119550
  "kind": "method",
119595
- "name": "checkValidity",
119596
- "privacy": "public",
119551
+ "name": "renderTemplate",
119552
+ "privacy": "protected",
119597
119553
  "return": {
119598
119554
  "type": {
119599
- "text": "boolean"
119555
+ "text": "TemplateResult"
119600
119556
  }
119601
119557
  },
119602
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
119558
+ "description": "Override this method to render the component template.",
119603
119559
  "inheritedFrom": {
119604
- "name": "SbbFormAssociatedMixin",
119605
- "module": "core/mixins/form-associated-mixin.js"
119560
+ "name": "SbbActionBaseElement",
119561
+ "module": "core/base-elements/action-base-element.js"
119606
119562
  }
119607
119563
  },
119608
119564
  {
119609
- "kind": "method",
119610
- "name": "reportValidity",
119565
+ "kind": "field",
119566
+ "name": "elementDependencies",
119567
+ "type": {
119568
+ "text": "SbbElementType[]"
119569
+ },
119611
119570
  "privacy": "public",
119612
- "return": {
119613
- "type": {
119614
- "text": "boolean"
119615
- }
119571
+ "static": true,
119572
+ "inheritedFrom": {
119573
+ "name": "SbbElement",
119574
+ "module": "core/base-elements/element.js"
119616
119575
  },
119617
- "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.",
119576
+ "default": "[SbbIconElement]"
119577
+ },
119578
+ {
119579
+ "kind": "field",
119580
+ "name": "iconName",
119581
+ "type": {
119582
+ "text": "string"
119583
+ },
119584
+ "privacy": "public",
119585
+ "default": "''",
119586
+ "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.",
119587
+ "attribute": "icon-name",
119618
119588
  "inheritedFrom": {
119619
- "name": "SbbFormAssociatedMixin",
119620
- "module": "core/mixins/form-associated-mixin.js"
119589
+ "name": "SbbIconNameMixin",
119590
+ "module": "icon/icon-name-mixin.js"
119621
119591
  }
119622
119592
  },
119623
119593
  {
119624
119594
  "kind": "method",
119625
- "name": "setCustomValidity",
119626
- "privacy": "public",
119595
+ "name": "renderIconSlot",
119596
+ "privacy": "protected",
119627
119597
  "return": {
119628
119598
  "type": {
119629
- "text": "void"
119599
+ "text": "TemplateResult"
119630
119600
  }
119631
119601
  },
119632
119602
  "parameters": [
119633
119603
  {
119634
- "name": "message",
119604
+ "name": "classname",
119605
+ "optional": true,
119635
119606
  "type": {
119636
119607
  "text": "string"
119637
119608
  }
119638
119609
  }
119639
119610
  ],
119640
- "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.",
119641
119611
  "inheritedFrom": {
119642
- "name": "SbbFormAssociatedMixin",
119643
- "module": "core/mixins/form-associated-mixin.js"
119612
+ "name": "SbbIconNameMixin",
119613
+ "module": "icon/icon-name-mixin.js"
119644
119614
  }
119645
119615
  },
119646
119616
  {
119647
119617
  "kind": "method",
119648
- "name": "_hasDisabledAncestor",
119649
- "privacy": "private",
119618
+ "name": "renderIconName",
119619
+ "privacy": "protected",
119650
119620
  "return": {
119651
119621
  "type": {
119652
- "text": "boolean"
119622
+ "text": "string"
119653
119623
  }
119654
119624
  },
119655
119625
  "inheritedFrom": {
119656
- "name": "SbbFormAssociatedMixin",
119657
- "module": "core/mixins/form-associated-mixin.js"
119626
+ "name": "SbbIconNameMixin",
119627
+ "module": "icon/icon-name-mixin.js"
119658
119628
  }
119659
119629
  },
119660
119630
  {
119661
119631
  "kind": "method",
119662
- "name": "updateFormValue",
119663
- "privacy": "protected",
119632
+ "name": "_renderIconName",
119633
+ "privacy": "private",
119664
119634
  "return": {
119665
119635
  "type": {
119666
- "text": "void"
119636
+ "text": "string"
119667
119637
  }
119668
119638
  },
119669
- "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",
119670
119639
  "inheritedFrom": {
119671
- "name": "SbbFormAssociatedMixin",
119672
- "module": "core/mixins/form-associated-mixin.js"
119640
+ "name": "SbbIconNameMixin",
119641
+ "module": "icon/icon-name-mixin.js"
119673
119642
  }
119674
119643
  },
119675
119644
  {
119676
- "kind": "method",
119677
- "name": "formState",
119678
- "privacy": "protected",
119679
- "return": {
119680
- "type": {
119681
- "text": "FormRestoreState"
119682
- }
119645
+ "kind": "field",
119646
+ "name": "disabled",
119647
+ "privacy": "public",
119648
+ "description": "Whether the component is disabled.",
119649
+ "default": "false",
119650
+ "type": {
119651
+ "text": "boolean"
119683
119652
  },
119653
+ "attribute": "disabled",
119654
+ "reflects": true,
119684
119655
  "inheritedFrom": {
119685
- "name": "SbbFormAssociatedMixin",
119686
- "module": "core/mixins/form-associated-mixin.js"
119656
+ "name": "SbbDisabledMixin",
119657
+ "module": "core/mixins/disabled-mixin.js"
119687
119658
  }
119688
119659
  },
119689
119660
  {
119690
- "kind": "method",
119691
- "name": "setValidityFlag",
119692
- "privacy": "protected",
119693
- "return": {
119694
- "type": {
119695
- "text": "void"
119696
- }
119661
+ "kind": "field",
119662
+ "name": "#disabled",
119663
+ "privacy": "private",
119664
+ "type": {
119665
+ "text": "boolean"
119697
119666
  },
119698
- "parameters": [
119699
- {
119700
- "name": "flag",
119701
- "type": {
119702
- "text": "T"
119703
- }
119704
- },
119705
- {
119706
- "name": "message",
119707
- "type": {
119708
- "text": "string"
119709
- }
119710
- },
119711
- {
119712
- "name": "flagValue",
119713
- "optional": true,
119714
- "type": {
119715
- "text": "ValidityStateFlags[T]"
119716
- }
119717
- }
119718
- ],
119719
- "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).",
119667
+ "default": "false",
119720
119668
  "inheritedFrom": {
119721
- "name": "SbbFormAssociatedMixin",
119722
- "module": "core/mixins/form-associated-mixin.js"
119669
+ "name": "SbbDisabledMixin",
119670
+ "module": "core/mixins/disabled-mixin.js"
119723
119671
  }
119724
119672
  },
119725
119673
  {
119726
119674
  "kind": "method",
119727
- "name": "removeValidityFlag",
119675
+ "name": "isDisabledExternally",
119728
119676
  "privacy": "protected",
119729
119677
  "return": {
119730
119678
  "type": {
119731
- "text": "void"
119679
+ "text": "boolean"
119732
119680
  }
119733
119681
  },
119734
- "parameters": [
119735
- {
119736
- "name": "flag",
119737
- "type": {
119738
- "text": "T"
119739
- }
119740
- }
119741
- ],
119742
- "description": "Removes the validity state flag entry and updates validity state.",
119682
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
119743
119683
  "inheritedFrom": {
119744
- "name": "SbbFormAssociatedMixin",
119745
- "module": "core/mixins/form-associated-mixin.js"
119684
+ "name": "SbbDisabledMixin",
119685
+ "module": "core/mixins/disabled-mixin.js"
119746
119686
  }
119747
119687
  },
119748
119688
  {
119749
- "kind": "method",
119750
- "name": "validate",
119751
- "privacy": "protected",
119752
- "return": {
119753
- "type": {
119754
- "text": "void"
119755
- }
119689
+ "kind": "field",
119690
+ "name": "href",
119691
+ "type": {
119692
+ "text": "string"
119693
+ },
119694
+ "privacy": "public",
119695
+ "default": "''",
119696
+ "description": "The href value you want to link to.",
119697
+ "attribute": "href",
119698
+ "reflects": true,
119699
+ "inheritedFrom": {
119700
+ "name": "SbbLinkBaseElement",
119701
+ "module": "core/base-elements/link-base-element.js"
119702
+ }
119703
+ },
119704
+ {
119705
+ "kind": "field",
119706
+ "name": "target",
119707
+ "type": {
119708
+ "text": "LinkTargetType | string"
119709
+ },
119710
+ "privacy": "public",
119711
+ "default": "''",
119712
+ "description": "Where to display the linked URL.",
119713
+ "attribute": "target",
119714
+ "reflects": true,
119715
+ "inheritedFrom": {
119716
+ "name": "SbbLinkBaseElement",
119717
+ "module": "core/base-elements/link-base-element.js"
119718
+ }
119719
+ },
119720
+ {
119721
+ "kind": "field",
119722
+ "name": "rel",
119723
+ "type": {
119724
+ "text": "string"
119756
119725
  },
119757
- "description": "To be called whenever the current element needs to be validated.",
119726
+ "privacy": "public",
119727
+ "default": "''",
119728
+ "description": "The relationship of the linked URL as space-separated link types.",
119729
+ "attribute": "rel",
119730
+ "reflects": true,
119758
119731
  "inheritedFrom": {
119759
- "name": "SbbFormAssociatedMixin",
119760
- "module": "core/mixins/form-associated-mixin.js"
119732
+ "name": "SbbLinkBaseElement",
119733
+ "module": "core/base-elements/link-base-element.js"
119761
119734
  }
119762
119735
  },
119763
119736
  {
119764
- "kind": "method",
119765
- "name": "shouldValidate",
119766
- "privacy": "protected",
119767
- "return": {
119768
- "type": {
119769
- "text": "boolean"
119770
- }
119737
+ "kind": "field",
119738
+ "name": "download",
119739
+ "type": {
119740
+ "text": "boolean"
119771
119741
  },
119772
- "parameters": [
119773
- {
119774
- "name": "name",
119775
- "type": {
119776
- "text": "PropertyKey | undefined"
119777
- }
119778
- }
119779
- ],
119780
- "description": "Whether validation should be run on a property change with the given name.",
119742
+ "privacy": "public",
119743
+ "default": "false",
119744
+ "description": "Whether the browser will show the download dialog on click.",
119745
+ "attribute": "download",
119746
+ "reflects": true,
119781
119747
  "inheritedFrom": {
119782
- "name": "SbbFormAssociatedMixin",
119783
- "module": "core/mixins/form-associated-mixin.js"
119748
+ "name": "SbbLinkBaseElement",
119749
+ "module": "core/base-elements/link-base-element.js"
119784
119750
  }
119785
119751
  },
119786
119752
  {
119787
- "kind": "method",
119788
- "name": "_setInternalValidity",
119789
- "privacy": "private",
119790
- "return": {
119791
- "type": {
119792
- "text": "void"
119793
- }
119753
+ "kind": "field",
119754
+ "name": "accessibilityLabel",
119755
+ "type": {
119756
+ "text": "string"
119794
119757
  },
119758
+ "privacy": "public",
119759
+ "default": "''",
119760
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
119761
+ "attribute": "accessibility-label",
119795
119762
  "inheritedFrom": {
119796
- "name": "SbbFormAssociatedMixin",
119797
- "module": "core/mixins/form-associated-mixin.js"
119763
+ "name": "SbbLinkBaseElement",
119764
+ "module": "core/base-elements/link-base-element.js"
119798
119765
  }
119799
119766
  },
119800
119767
  {
119801
119768
  "kind": "field",
119802
- "name": "role",
119769
+ "name": "accessibilityCurrent",
119803
119770
  "type": {
119804
- "text": "ElementInternals['role']"
119771
+ "text": "string"
119805
119772
  },
119806
119773
  "privacy": "public",
119807
- "static": true,
119774
+ "default": "''",
119775
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
119776
+ "attribute": "accessibility-current",
119808
119777
  "inheritedFrom": {
119809
- "name": "SbbElement",
119810
- "module": "core/base-elements/element.js"
119811
- },
119812
- "readonly": true,
119813
- "default": "'button'"
119778
+ "name": "SbbLinkBaseElement",
119779
+ "module": "core/base-elements/link-base-element.js"
119780
+ }
119814
119781
  },
119815
119782
  {
119816
119783
  "kind": "field",
119817
- "name": "_preventScrollOnSpaceKeydown",
119818
- "privacy": "private",
119819
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
119820
- "parameters": [
119821
- {
119822
- "description": "The origin event.",
119823
- "name": "event"
119824
- }
119825
- ],
119784
+ "name": "language",
119785
+ "privacy": "protected",
119786
+ "default": "new SbbLanguageController(this)",
119826
119787
  "inheritedFrom": {
119827
- "name": "SbbButtonLikeBaseElement",
119828
- "module": "core/base-elements/button-base-element.js"
119788
+ "name": "SbbLinkBaseElement",
119789
+ "module": "core/base-elements/link-base-element.js"
119829
119790
  }
119830
119791
  },
119831
119792
  {
119832
119793
  "kind": "field",
119833
- "name": "_removeActiveMarker",
119834
- "privacy": "private",
119794
+ "name": "anchorRole",
119795
+ "type": {
119796
+ "text": "string | null"
119797
+ },
119798
+ "privacy": "protected",
119799
+ "readonly": true,
119800
+ "default": "null",
119835
119801
  "inheritedFrom": {
119836
- "name": "SbbButtonLikeBaseElement",
119837
- "module": "core/base-elements/button-base-element.js"
119802
+ "name": "SbbLinkBaseElement",
119803
+ "module": "core/base-elements/link-base-element.js"
119838
119804
  }
119839
119805
  },
119840
119806
  {
119841
119807
  "kind": "field",
119842
- "name": "_dispatchClickEventOnSpaceKeyup",
119808
+ "name": "_evaluateRelAttribute",
119843
119809
  "privacy": "private",
119844
- "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.",
119845
- "parameters": [
119846
- {
119847
- "description": "The origin event.",
119848
- "name": "event"
119849
- }
119850
- ],
119851
119810
  "inheritedFrom": {
119852
- "name": "SbbButtonLikeBaseElement",
119853
- "module": "core/base-elements/button-base-element.js"
119811
+ "name": "SbbLinkBaseElement",
119812
+ "module": "core/base-elements/link-base-element.js"
119854
119813
  }
119855
119814
  },
119856
119815
  {
119857
- "kind": "field",
119858
- "name": "_dispatchClickEvent",
119859
- "privacy": "private",
119816
+ "kind": "method",
119817
+ "name": "renderLink",
119818
+ "privacy": "protected",
119819
+ "return": {
119820
+ "type": {
119821
+ "text": "TemplateResult"
119822
+ }
119823
+ },
119824
+ "parameters": [
119825
+ {
119826
+ "name": "renderContent",
119827
+ "type": {
119828
+ "text": "TemplateResult"
119829
+ }
119830
+ }
119831
+ ],
119860
119832
  "inheritedFrom": {
119861
- "name": "SbbButtonLikeBaseElement",
119862
- "module": "core/base-elements/button-base-element.js"
119833
+ "name": "SbbLinkBaseElement",
119834
+ "module": "core/base-elements/link-base-element.js"
119863
119835
  }
119864
119836
  },
119865
119837
  {
@@ -119916,6 +119888,19 @@
119916
119888
  "module": "core/base-elements/element.js"
119917
119889
  }
119918
119890
  },
119891
+ {
119892
+ "kind": "field",
119893
+ "name": "role",
119894
+ "type": {
119895
+ "text": "ElementInternals['role'] | undefined"
119896
+ },
119897
+ "privacy": "public",
119898
+ "static": true,
119899
+ "inheritedFrom": {
119900
+ "name": "SbbElement",
119901
+ "module": "core/base-elements/element.js"
119902
+ }
119903
+ },
119919
119904
  {
119920
119905
  "kind": "field",
119921
119906
  "name": "_controllers",
@@ -120142,15 +120127,15 @@
120142
120127
  "module": "link/common/block-link-common.js"
120143
120128
  },
120144
120129
  {
120145
- "name": "SbbDisabledTabIndexActionMixin",
120130
+ "name": "SbbDisabledMixin",
120146
120131
  "module": "core.js"
120147
120132
  }
120148
120133
  ],
120149
120134
  "superclass": {
120150
- "name": "SbbButtonBaseElement",
120135
+ "name": "SbbLinkBaseElement",
120151
120136
  "module": "core.js"
120152
120137
  },
120153
- "tagName": "sbb-block-link-button",
120138
+ "tagName": "sbb-block-link",
120154
120139
  "customElement": true,
120155
120140
  "attributes": [
120156
120141
  {
@@ -120193,79 +120178,94 @@
120193
120178
  }
120194
120179
  },
120195
120180
  {
120196
- "name": "disabled-interactive",
120181
+ "name": "disabled",
120182
+ "description": "Whether the component is disabled.",
120183
+ "default": "false",
120197
120184
  "type": {
120198
120185
  "text": "boolean"
120199
120186
  },
120200
- "default": "false",
120201
- "description": "Whether the button should be aria-disabled but stay interactive.",
120202
- "fieldName": "disabledInteractive",
120187
+ "fieldName": "disabled",
120203
120188
  "inheritedFrom": {
120204
- "name": "SbbDisabledInteractiveMixin",
120189
+ "name": "SbbDisabledMixin",
120205
120190
  "module": "core/mixins/disabled-mixin.js"
120206
120191
  }
120207
120192
  },
120208
120193
  {
120209
- "name": "disabled",
120210
- "description": "Whether the component is disabled.",
120211
- "default": "false",
120194
+ "name": "href",
120212
120195
  "type": {
120213
- "text": "boolean"
120196
+ "text": "string"
120214
120197
  },
120215
- "fieldName": "disabled",
120198
+ "default": "''",
120199
+ "description": "The href value you want to link to.",
120200
+ "fieldName": "href",
120216
120201
  "inheritedFrom": {
120217
- "name": "SbbDisabledMixin",
120218
- "module": "core/mixins/disabled-mixin.js"
120202
+ "name": "SbbLinkBaseElement",
120203
+ "module": "core/base-elements/link-base-element.js"
120219
120204
  }
120220
120205
  },
120221
120206
  {
120222
- "name": "value",
120207
+ "name": "target",
120208
+ "type": {
120209
+ "text": "LinkTargetType | string"
120210
+ },
120211
+ "default": "''",
120212
+ "description": "Where to display the linked URL.",
120213
+ "fieldName": "target",
120214
+ "inheritedFrom": {
120215
+ "name": "SbbLinkBaseElement",
120216
+ "module": "core/base-elements/link-base-element.js"
120217
+ }
120218
+ },
120219
+ {
120220
+ "name": "rel",
120223
120221
  "type": {
120224
120222
  "text": "string"
120225
120223
  },
120226
120224
  "default": "''",
120227
- "description": "Value of the form element.",
120228
- "fieldName": "value",
120225
+ "description": "The relationship of the linked URL as space-separated link types.",
120226
+ "fieldName": "rel",
120229
120227
  "inheritedFrom": {
120230
- "name": "SbbButtonBaseElement",
120231
- "module": "core/base-elements/button-base-element.js"
120228
+ "name": "SbbLinkBaseElement",
120229
+ "module": "core/base-elements/link-base-element.js"
120232
120230
  }
120233
120231
  },
120234
120232
  {
120235
- "name": "type",
120236
- "description": "The type attribute to use for the button.",
120237
- "default": "'button'",
120233
+ "name": "download",
120238
120234
  "type": {
120239
- "text": "SbbButtonType"
120235
+ "text": "boolean"
120240
120236
  },
120241
- "fieldName": "type",
120237
+ "default": "false",
120238
+ "description": "Whether the browser will show the download dialog on click.",
120239
+ "fieldName": "download",
120242
120240
  "inheritedFrom": {
120243
- "name": "SbbButtonBaseElement",
120244
- "module": "core/base-elements/button-base-element.js"
120241
+ "name": "SbbLinkBaseElement",
120242
+ "module": "core/base-elements/link-base-element.js"
120245
120243
  }
120246
120244
  },
120247
120245
  {
120248
- "name": "form",
120249
- "description": "The `<form>` element to associate the button with.",
120246
+ "name": "accessibility-label",
120250
120247
  "type": {
120251
- "text": "HTMLFormElement | null"
120248
+ "text": "string"
120252
120249
  },
120253
- "fieldName": "form",
120250
+ "default": "''",
120251
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
120252
+ "fieldName": "accessibilityLabel",
120254
120253
  "inheritedFrom": {
120255
- "name": "SbbButtonBaseElement",
120256
- "module": "core/base-elements/button-base-element.js"
120254
+ "name": "SbbLinkBaseElement",
120255
+ "module": "core/base-elements/link-base-element.js"
120257
120256
  }
120258
120257
  },
120259
120258
  {
120260
- "name": "name",
120261
- "description": "Name of the form element. Will be read from name attribute.",
120259
+ "name": "accessibility-current",
120262
120260
  "type": {
120263
120261
  "text": "string"
120264
120262
  },
120265
- "fieldName": "name",
120263
+ "default": "''",
120264
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
120265
+ "fieldName": "accessibilityCurrent",
120266
120266
  "inheritedFrom": {
120267
- "name": "SbbFormAssociatedMixin",
120268
- "module": "core/mixins/form-associated-mixin.js"
120267
+ "name": "SbbLinkBaseElement",
120268
+ "module": "core/base-elements/link-base-element.js"
120269
120269
  }
120270
120270
  }
120271
120271
  ]
@@ -120274,10 +120274,10 @@
120274
120274
  "exports": [
120275
120275
  {
120276
120276
  "kind": "js",
120277
- "name": "SbbBlockLinkButtonElement",
120277
+ "name": "SbbBlockLinkElement",
120278
120278
  "declaration": {
120279
- "name": "SbbBlockLinkButtonElement",
120280
- "module": "link/block-link-button/block-link-button.component.js"
120279
+ "name": "SbbBlockLinkElement",
120280
+ "module": "link/block-link/block-link.component.js"
120281
120281
  }
120282
120282
  }
120283
120283
  ]