@sbb-esta/lyne-elements-dev 4.14.2-dev.1784022560 → 4.14.3-dev.1785767609

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.
@@ -14471,6 +14471,165 @@
14471
14471
  }
14472
14472
  ]
14473
14473
  },
14474
+ {
14475
+ "kind": "javascript-module",
14476
+ "path": "lead-container/lead-container.component.js",
14477
+ "declarations": [
14478
+ {
14479
+ "kind": "class",
14480
+ "description": "The `sbb-lead-container` can be used for product pages to display a lead image and following content.",
14481
+ "name": "SbbLeadContainerElement",
14482
+ "slots": [
14483
+ {
14484
+ "description": "Use the unnamed slot to add any content to the container.",
14485
+ "name": ""
14486
+ },
14487
+ {
14488
+ "description": "Use the image slot to provide the lead image. `sbb-image`, `img` and `picture` elements are supported. For other elements the aspect ratio has to be set manually.",
14489
+ "name": "image"
14490
+ }
14491
+ ],
14492
+ "members": [
14493
+ {
14494
+ "kind": "field",
14495
+ "name": "elementName",
14496
+ "type": {
14497
+ "text": "string"
14498
+ },
14499
+ "privacy": "public",
14500
+ "static": true,
14501
+ "readonly": true,
14502
+ "default": "'sbb-lead-container'",
14503
+ "inheritedFrom": {
14504
+ "name": "SbbElement",
14505
+ "module": "core/base-elements/element.js"
14506
+ }
14507
+ },
14508
+ {
14509
+ "kind": "field",
14510
+ "name": "_hydrationRequired",
14511
+ "type": {
14512
+ "text": "boolean"
14513
+ },
14514
+ "privacy": "private",
14515
+ "default": "!!this.shadowRoot",
14516
+ "inheritedFrom": {
14517
+ "name": "SbbHydrationMixin",
14518
+ "module": "core/mixins/hydration-mixin.js"
14519
+ }
14520
+ },
14521
+ {
14522
+ "kind": "field",
14523
+ "name": "_hydrationComplete",
14524
+ "privacy": "private",
14525
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
14526
+ "inheritedFrom": {
14527
+ "name": "SbbHydrationMixin",
14528
+ "module": "core/mixins/hydration-mixin.js"
14529
+ }
14530
+ },
14531
+ {
14532
+ "kind": "field",
14533
+ "name": "_resolveHydration",
14534
+ "type": {
14535
+ "text": "(hydrationRequired: boolean) => void"
14536
+ },
14537
+ "privacy": "private",
14538
+ "inheritedFrom": {
14539
+ "name": "SbbHydrationMixin",
14540
+ "module": "core/mixins/hydration-mixin.js"
14541
+ }
14542
+ },
14543
+ {
14544
+ "kind": "field",
14545
+ "name": "hydrationRequired",
14546
+ "type": {
14547
+ "text": "boolean"
14548
+ },
14549
+ "privacy": "protected",
14550
+ "description": "Returns whether hydration is required and not completed.",
14551
+ "readonly": true,
14552
+ "inheritedFrom": {
14553
+ "name": "SbbHydrationMixin",
14554
+ "module": "core/mixins/hydration-mixin.js"
14555
+ },
14556
+ "default": "!!this.shadowRoot"
14557
+ },
14558
+ {
14559
+ "kind": "method",
14560
+ "name": "toggleState",
14561
+ "privacy": "protected",
14562
+ "return": {
14563
+ "type": {
14564
+ "text": "void"
14565
+ }
14566
+ },
14567
+ "parameters": [
14568
+ {
14569
+ "name": "value",
14570
+ "type": {
14571
+ "text": "string"
14572
+ }
14573
+ },
14574
+ {
14575
+ "name": "force",
14576
+ "optional": true,
14577
+ "type": {
14578
+ "text": "boolean"
14579
+ }
14580
+ }
14581
+ ],
14582
+ "inheritedFrom": {
14583
+ "name": "SbbElementInternalsMixin",
14584
+ "module": "core/mixins/element-internals-mixin.js"
14585
+ }
14586
+ },
14587
+ {
14588
+ "kind": "field",
14589
+ "name": "['_$sbbElement$']",
14590
+ "type": {
14591
+ "text": "boolean"
14592
+ },
14593
+ "privacy": "public",
14594
+ "static": true,
14595
+ "default": "true",
14596
+ "inheritedFrom": {
14597
+ "name": "SbbElement",
14598
+ "module": "core/base-elements/element.js"
14599
+ }
14600
+ },
14601
+ {
14602
+ "kind": "field",
14603
+ "name": "_controllers",
14604
+ "type": {
14605
+ "text": "Set<SbbReactiveController> | undefined"
14606
+ },
14607
+ "privacy": "private",
14608
+ "inheritedFrom": {
14609
+ "name": "SbbElement",
14610
+ "module": "core/base-elements/element.js"
14611
+ }
14612
+ }
14613
+ ],
14614
+ "superclass": {
14615
+ "name": "SbbElement",
14616
+ "module": "core/base-elements.js"
14617
+ },
14618
+ "tagName": "sbb-lead-container",
14619
+ "customElement": true
14620
+ }
14621
+ ],
14622
+ "exports": [
14623
+ {
14624
+ "kind": "js",
14625
+ "name": "SbbLeadContainerElement",
14626
+ "declaration": {
14627
+ "name": "SbbLeadContainerElement",
14628
+ "module": "lead-container/lead-container.component.js"
14629
+ }
14630
+ }
14631
+ ]
14632
+ },
14474
14633
  {
14475
14634
  "kind": "javascript-module",
14476
14635
  "path": "journey-header/journey-header.component.js",
@@ -14818,165 +14977,6 @@
14818
14977
  }
14819
14978
  ]
14820
14979
  },
14821
- {
14822
- "kind": "javascript-module",
14823
- "path": "lead-container/lead-container.component.js",
14824
- "declarations": [
14825
- {
14826
- "kind": "class",
14827
- "description": "The `sbb-lead-container` can be used for product pages to display a lead image and following content.",
14828
- "name": "SbbLeadContainerElement",
14829
- "slots": [
14830
- {
14831
- "description": "Use the unnamed slot to add any content to the container.",
14832
- "name": ""
14833
- },
14834
- {
14835
- "description": "Use the image slot to provide the lead image. `sbb-image`, `img` and `picture` elements are supported. For other elements the aspect ratio has to be set manually.",
14836
- "name": "image"
14837
- }
14838
- ],
14839
- "members": [
14840
- {
14841
- "kind": "field",
14842
- "name": "elementName",
14843
- "type": {
14844
- "text": "string"
14845
- },
14846
- "privacy": "public",
14847
- "static": true,
14848
- "readonly": true,
14849
- "default": "'sbb-lead-container'",
14850
- "inheritedFrom": {
14851
- "name": "SbbElement",
14852
- "module": "core/base-elements/element.js"
14853
- }
14854
- },
14855
- {
14856
- "kind": "field",
14857
- "name": "_hydrationRequired",
14858
- "type": {
14859
- "text": "boolean"
14860
- },
14861
- "privacy": "private",
14862
- "default": "!!this.shadowRoot",
14863
- "inheritedFrom": {
14864
- "name": "SbbHydrationMixin",
14865
- "module": "core/mixins/hydration-mixin.js"
14866
- }
14867
- },
14868
- {
14869
- "kind": "field",
14870
- "name": "_hydrationComplete",
14871
- "privacy": "private",
14872
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
14873
- "inheritedFrom": {
14874
- "name": "SbbHydrationMixin",
14875
- "module": "core/mixins/hydration-mixin.js"
14876
- }
14877
- },
14878
- {
14879
- "kind": "field",
14880
- "name": "_resolveHydration",
14881
- "type": {
14882
- "text": "(hydrationRequired: boolean) => void"
14883
- },
14884
- "privacy": "private",
14885
- "inheritedFrom": {
14886
- "name": "SbbHydrationMixin",
14887
- "module": "core/mixins/hydration-mixin.js"
14888
- }
14889
- },
14890
- {
14891
- "kind": "field",
14892
- "name": "hydrationRequired",
14893
- "type": {
14894
- "text": "boolean"
14895
- },
14896
- "privacy": "protected",
14897
- "description": "Returns whether hydration is required and not completed.",
14898
- "readonly": true,
14899
- "inheritedFrom": {
14900
- "name": "SbbHydrationMixin",
14901
- "module": "core/mixins/hydration-mixin.js"
14902
- },
14903
- "default": "!!this.shadowRoot"
14904
- },
14905
- {
14906
- "kind": "method",
14907
- "name": "toggleState",
14908
- "privacy": "protected",
14909
- "return": {
14910
- "type": {
14911
- "text": "void"
14912
- }
14913
- },
14914
- "parameters": [
14915
- {
14916
- "name": "value",
14917
- "type": {
14918
- "text": "string"
14919
- }
14920
- },
14921
- {
14922
- "name": "force",
14923
- "optional": true,
14924
- "type": {
14925
- "text": "boolean"
14926
- }
14927
- }
14928
- ],
14929
- "inheritedFrom": {
14930
- "name": "SbbElementInternalsMixin",
14931
- "module": "core/mixins/element-internals-mixin.js"
14932
- }
14933
- },
14934
- {
14935
- "kind": "field",
14936
- "name": "['_$sbbElement$']",
14937
- "type": {
14938
- "text": "boolean"
14939
- },
14940
- "privacy": "public",
14941
- "static": true,
14942
- "default": "true",
14943
- "inheritedFrom": {
14944
- "name": "SbbElement",
14945
- "module": "core/base-elements/element.js"
14946
- }
14947
- },
14948
- {
14949
- "kind": "field",
14950
- "name": "_controllers",
14951
- "type": {
14952
- "text": "Set<SbbReactiveController> | undefined"
14953
- },
14954
- "privacy": "private",
14955
- "inheritedFrom": {
14956
- "name": "SbbElement",
14957
- "module": "core/base-elements/element.js"
14958
- }
14959
- }
14960
- ],
14961
- "superclass": {
14962
- "name": "SbbElement",
14963
- "module": "core/base-elements.js"
14964
- },
14965
- "tagName": "sbb-lead-container",
14966
- "customElement": true
14967
- }
14968
- ],
14969
- "exports": [
14970
- {
14971
- "kind": "js",
14972
- "name": "SbbLeadContainerElement",
14973
- "declaration": {
14974
- "name": "SbbLeadContainerElement",
14975
- "module": "lead-container/lead-container.component.js"
14976
- }
14977
- }
14978
- ]
14979
- },
14980
14980
  {
14981
14981
  "kind": "javascript-module",
14982
14982
  "path": "link/block-link-button.js",
@@ -100441,15 +100441,15 @@
100441
100441
  },
100442
100442
  {
100443
100443
  "kind": "javascript-module",
100444
- "path": "link/block-link/block-link.component.js",
100444
+ "path": "link/block-link-button/block-link-button.component.js",
100445
100445
  "declarations": [
100446
100446
  {
100447
100447
  "kind": "class",
100448
- "description": "It displays a link enhanced with the SBB Design.",
100449
- "name": "SbbBlockLinkElement",
100448
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100449
+ "name": "SbbBlockLinkButtonElement",
100450
100450
  "slots": [
100451
100451
  {
100452
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100452
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100453
100453
  "name": ""
100454
100454
  },
100455
100455
  {
@@ -100471,7 +100471,7 @@
100471
100471
  "name": "SbbElement",
100472
100472
  "module": "core/base-elements/element.js"
100473
100473
  },
100474
- "default": "'sbb-block-link'"
100474
+ "default": "'sbb-block-link-button'"
100475
100475
  },
100476
100476
  {
100477
100477
  "kind": "field",
@@ -100600,6 +100600,22 @@
100600
100600
  "module": "icon/icon-name-mixin.js"
100601
100601
  }
100602
100602
  },
100603
+ {
100604
+ "kind": "field",
100605
+ "name": "disabledInteractive",
100606
+ "type": {
100607
+ "text": "boolean"
100608
+ },
100609
+ "privacy": "public",
100610
+ "default": "false",
100611
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100612
+ "attribute": "disabled-interactive",
100613
+ "reflects": true,
100614
+ "inheritedFrom": {
100615
+ "name": "SbbDisabledInteractiveMixin",
100616
+ "module": "core/mixins/disabled-mixin.js"
100617
+ }
100618
+ },
100603
100619
  {
100604
100620
  "kind": "field",
100605
100621
  "name": "disabled",
@@ -100646,151 +100662,479 @@
100646
100662
  },
100647
100663
  {
100648
100664
  "kind": "field",
100649
- "name": "href",
100665
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100666
+ "type": {
100667
+ "text": "array"
100668
+ },
100669
+ "privacy": "private",
100670
+ "readonly": true,
100671
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100672
+ "inheritedFrom": {
100673
+ "name": "SbbButtonBaseElement",
100674
+ "module": "core/base-elements/button-base-element.js"
100675
+ }
100676
+ },
100677
+ {
100678
+ "kind": "field",
100679
+ "name": "value",
100650
100680
  "type": {
100651
100681
  "text": "string"
100652
100682
  },
100653
100683
  "privacy": "public",
100684
+ "inheritedFrom": {
100685
+ "name": "SbbButtonBaseElement",
100686
+ "module": "core/base-elements/button-base-element.js"
100687
+ },
100654
100688
  "default": "''",
100655
- "description": "The href value you want to link to.",
100656
- "attribute": "href",
100657
- "reflects": true,
100689
+ "description": "Value of the form element.",
100690
+ "attribute": "value"
100691
+ },
100692
+ {
100693
+ "kind": "field",
100694
+ "name": "type",
100695
+ "privacy": "public",
100696
+ "description": "The type attribute to use for the button.",
100697
+ "default": "'button'",
100698
+ "type": {
100699
+ "text": "SbbButtonType"
100700
+ },
100701
+ "attribute": "type",
100658
100702
  "inheritedFrom": {
100659
- "name": "SbbLinkBaseElement",
100660
- "module": "core/base-elements/link-base-element.js"
100703
+ "name": "SbbButtonBaseElement",
100704
+ "module": "core/base-elements/button-base-element.js"
100661
100705
  }
100662
100706
  },
100663
100707
  {
100664
100708
  "kind": "field",
100665
- "name": "target",
100709
+ "name": "form",
100666
100710
  "type": {
100667
- "text": "LinkTargetType | string"
100711
+ "text": "HTMLFormElement | null"
100668
100712
  },
100669
100713
  "privacy": "public",
100670
- "default": "''",
100671
- "description": "Where to display the linked URL.",
100672
- "attribute": "target",
100673
- "reflects": true,
100714
+ "description": "The `<form>` element to associate the button with.",
100674
100715
  "inheritedFrom": {
100675
- "name": "SbbLinkBaseElement",
100676
- "module": "core/base-elements/link-base-element.js"
100677
- }
100716
+ "name": "SbbButtonBaseElement",
100717
+ "module": "core/base-elements/button-base-element.js"
100718
+ },
100719
+ "attribute": "form"
100678
100720
  },
100679
100721
  {
100680
100722
  "kind": "field",
100681
- "name": "rel",
100723
+ "name": "_formId",
100682
100724
  "type": {
100683
100725
  "text": "string"
100684
100726
  },
100685
- "privacy": "public",
100727
+ "privacy": "private",
100686
100728
  "default": "''",
100687
- "description": "The relationship of the linked URL as space-separated link types.",
100688
- "attribute": "rel",
100689
- "reflects": true,
100690
100729
  "inheritedFrom": {
100691
- "name": "SbbLinkBaseElement",
100692
- "module": "core/base-elements/link-base-element.js"
100730
+ "name": "SbbButtonBaseElement",
100731
+ "module": "core/base-elements/button-base-element.js"
100693
100732
  }
100694
100733
  },
100695
100734
  {
100696
100735
  "kind": "field",
100697
- "name": "download",
100736
+ "name": "_handleButtonClick",
100737
+ "privacy": "private",
100738
+ "inheritedFrom": {
100739
+ "name": "SbbButtonBaseElement",
100740
+ "module": "core/base-elements/button-base-element.js"
100741
+ }
100742
+ },
100743
+ {
100744
+ "kind": "method",
100745
+ "name": "_requestSubmit",
100746
+ "privacy": "private",
100747
+ "return": {
100748
+ "type": {
100749
+ "text": "void"
100750
+ }
100751
+ },
100752
+ "parameters": [
100753
+ {
100754
+ "name": "form",
100755
+ "type": {
100756
+ "text": "HTMLFormElement"
100757
+ }
100758
+ }
100759
+ ],
100760
+ "inheritedFrom": {
100761
+ "name": "SbbButtonBaseElement",
100762
+ "module": "core/base-elements/button-base-element.js"
100763
+ }
100764
+ },
100765
+ {
100766
+ "kind": "field",
100767
+ "name": "_formKeyDown",
100768
+ "privacy": "private",
100769
+ "inheritedFrom": {
100770
+ "name": "SbbButtonBaseElement",
100771
+ "module": "core/base-elements/button-base-element.js"
100772
+ }
100773
+ },
100774
+ {
100775
+ "kind": "field",
100776
+ "name": "formAssociated",
100698
100777
  "type": {
100699
100778
  "text": "boolean"
100700
100779
  },
100701
100780
  "privacy": "public",
100702
- "default": "false",
100703
- "description": "Whether the browser will show the download dialog on click.",
100704
- "attribute": "download",
100705
- "reflects": true,
100781
+ "static": true,
100782
+ "default": "true",
100706
100783
  "inheritedFrom": {
100707
- "name": "SbbLinkBaseElement",
100708
- "module": "core/base-elements/link-base-element.js"
100784
+ "name": "SbbFormAssociatedMixin",
100785
+ "module": "core/mixins/form-associated-mixin.js"
100709
100786
  }
100710
100787
  },
100711
100788
  {
100712
100789
  "kind": "field",
100713
- "name": "accessibilityLabel",
100790
+ "name": "name",
100791
+ "privacy": "public",
100792
+ "description": "Name of the form element. Will be read from name attribute.",
100714
100793
  "type": {
100715
100794
  "text": "string"
100716
100795
  },
100796
+ "attribute": "name",
100797
+ "inheritedFrom": {
100798
+ "name": "SbbFormAssociatedMixin",
100799
+ "module": "core/mixins/form-associated-mixin.js"
100800
+ }
100801
+ },
100802
+ {
100803
+ "kind": "field",
100804
+ "name": "validity",
100805
+ "type": {
100806
+ "text": "ValidityState"
100807
+ },
100717
100808
  "privacy": "public",
100718
- "default": "''",
100719
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100720
- "attribute": "accessibility-label",
100809
+ "description": "Returns the ValidityState object for this element.",
100810
+ "readonly": true,
100721
100811
  "inheritedFrom": {
100722
- "name": "SbbLinkBaseElement",
100723
- "module": "core/base-elements/link-base-element.js"
100812
+ "name": "SbbFormAssociatedMixin",
100813
+ "module": "core/mixins/form-associated-mixin.js"
100724
100814
  }
100725
100815
  },
100726
100816
  {
100727
100817
  "kind": "field",
100728
- "name": "accessibilityCurrent",
100818
+ "name": "validationMessage",
100729
100819
  "type": {
100730
100820
  "text": "string"
100731
100821
  },
100732
100822
  "privacy": "public",
100733
- "default": "''",
100734
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100735
- "attribute": "accessibility-current",
100823
+ "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.",
100824
+ "readonly": true,
100736
100825
  "inheritedFrom": {
100737
- "name": "SbbLinkBaseElement",
100738
- "module": "core/base-elements/link-base-element.js"
100826
+ "name": "SbbFormAssociatedMixin",
100827
+ "module": "core/mixins/form-associated-mixin.js"
100739
100828
  }
100740
100829
  },
100741
100830
  {
100742
100831
  "kind": "field",
100743
- "name": "language",
100744
- "privacy": "protected",
100745
- "default": "new SbbLanguageController(this)",
100832
+ "name": "willValidate",
100833
+ "type": {
100834
+ "text": "boolean"
100835
+ },
100836
+ "privacy": "public",
100837
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100838
+ "readonly": true,
100746
100839
  "inheritedFrom": {
100747
- "name": "SbbLinkBaseElement",
100748
- "module": "core/base-elements/link-base-element.js"
100840
+ "name": "SbbFormAssociatedMixin",
100841
+ "module": "core/mixins/form-associated-mixin.js"
100749
100842
  }
100750
100843
  },
100751
100844
  {
100752
100845
  "kind": "field",
100753
- "name": "anchorRole",
100846
+ "name": "_validityStates",
100847
+ "privacy": "private",
100848
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100849
+ "inheritedFrom": {
100850
+ "name": "SbbFormAssociatedMixin",
100851
+ "module": "core/mixins/form-associated-mixin.js"
100852
+ }
100853
+ },
100854
+ {
100855
+ "kind": "field",
100856
+ "name": "formDisabled",
100754
100857
  "type": {
100755
- "text": "string | null"
100858
+ "text": "boolean"
100756
100859
  },
100757
100860
  "privacy": "protected",
100758
- "readonly": true,
100759
- "default": "null",
100861
+ "default": "false",
100862
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100760
100863
  "inheritedFrom": {
100761
- "name": "SbbLinkBaseElement",
100762
- "module": "core/base-elements/link-base-element.js"
100864
+ "name": "SbbFormAssociatedMixin",
100865
+ "module": "core/mixins/form-associated-mixin.js"
100763
100866
  }
100764
100867
  },
100765
100868
  {
100766
- "kind": "field",
100767
- "name": "_evaluateRelAttribute",
100869
+ "kind": "method",
100870
+ "name": "checkValidity",
100871
+ "privacy": "public",
100872
+ "return": {
100873
+ "type": {
100874
+ "text": "boolean"
100875
+ }
100876
+ },
100877
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100878
+ "inheritedFrom": {
100879
+ "name": "SbbFormAssociatedMixin",
100880
+ "module": "core/mixins/form-associated-mixin.js"
100881
+ }
100882
+ },
100883
+ {
100884
+ "kind": "method",
100885
+ "name": "reportValidity",
100886
+ "privacy": "public",
100887
+ "return": {
100888
+ "type": {
100889
+ "text": "boolean"
100890
+ }
100891
+ },
100892
+ "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.",
100893
+ "inheritedFrom": {
100894
+ "name": "SbbFormAssociatedMixin",
100895
+ "module": "core/mixins/form-associated-mixin.js"
100896
+ }
100897
+ },
100898
+ {
100899
+ "kind": "method",
100900
+ "name": "setCustomValidity",
100901
+ "privacy": "public",
100902
+ "return": {
100903
+ "type": {
100904
+ "text": "void"
100905
+ }
100906
+ },
100907
+ "parameters": [
100908
+ {
100909
+ "name": "message",
100910
+ "type": {
100911
+ "text": "string"
100912
+ }
100913
+ }
100914
+ ],
100915
+ "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.",
100916
+ "inheritedFrom": {
100917
+ "name": "SbbFormAssociatedMixin",
100918
+ "module": "core/mixins/form-associated-mixin.js"
100919
+ }
100920
+ },
100921
+ {
100922
+ "kind": "method",
100923
+ "name": "_hasDisabledAncestor",
100768
100924
  "privacy": "private",
100925
+ "return": {
100926
+ "type": {
100927
+ "text": "boolean"
100928
+ }
100929
+ },
100769
100930
  "inheritedFrom": {
100770
- "name": "SbbLinkBaseElement",
100771
- "module": "core/base-elements/link-base-element.js"
100931
+ "name": "SbbFormAssociatedMixin",
100932
+ "module": "core/mixins/form-associated-mixin.js"
100772
100933
  }
100773
100934
  },
100774
100935
  {
100775
100936
  "kind": "method",
100776
- "name": "renderLink",
100937
+ "name": "updateFormValue",
100777
100938
  "privacy": "protected",
100778
100939
  "return": {
100779
100940
  "type": {
100780
- "text": "TemplateResult"
100941
+ "text": "void"
100942
+ }
100943
+ },
100944
+ "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",
100945
+ "inheritedFrom": {
100946
+ "name": "SbbFormAssociatedMixin",
100947
+ "module": "core/mixins/form-associated-mixin.js"
100948
+ }
100949
+ },
100950
+ {
100951
+ "kind": "method",
100952
+ "name": "formState",
100953
+ "privacy": "protected",
100954
+ "return": {
100955
+ "type": {
100956
+ "text": "FormRestoreState"
100957
+ }
100958
+ },
100959
+ "inheritedFrom": {
100960
+ "name": "SbbFormAssociatedMixin",
100961
+ "module": "core/mixins/form-associated-mixin.js"
100962
+ }
100963
+ },
100964
+ {
100965
+ "kind": "method",
100966
+ "name": "setValidityFlag",
100967
+ "privacy": "protected",
100968
+ "return": {
100969
+ "type": {
100970
+ "text": "void"
100781
100971
  }
100782
100972
  },
100783
100973
  "parameters": [
100784
100974
  {
100785
- "name": "renderContent",
100975
+ "name": "flag",
100786
100976
  "type": {
100787
- "text": "TemplateResult"
100977
+ "text": "T"
100978
+ }
100979
+ },
100980
+ {
100981
+ "name": "message",
100982
+ "type": {
100983
+ "text": "string"
100984
+ }
100985
+ },
100986
+ {
100987
+ "name": "flagValue",
100988
+ "optional": true,
100989
+ "type": {
100990
+ "text": "ValidityStateFlags[T]"
100788
100991
  }
100789
100992
  }
100790
100993
  ],
100994
+ "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).",
100791
100995
  "inheritedFrom": {
100792
- "name": "SbbLinkBaseElement",
100793
- "module": "core/base-elements/link-base-element.js"
100996
+ "name": "SbbFormAssociatedMixin",
100997
+ "module": "core/mixins/form-associated-mixin.js"
100998
+ }
100999
+ },
101000
+ {
101001
+ "kind": "method",
101002
+ "name": "removeValidityFlag",
101003
+ "privacy": "protected",
101004
+ "return": {
101005
+ "type": {
101006
+ "text": "void"
101007
+ }
101008
+ },
101009
+ "parameters": [
101010
+ {
101011
+ "name": "flag",
101012
+ "type": {
101013
+ "text": "T"
101014
+ }
101015
+ }
101016
+ ],
101017
+ "description": "Removes the validity state flag entry and updates validity state.",
101018
+ "inheritedFrom": {
101019
+ "name": "SbbFormAssociatedMixin",
101020
+ "module": "core/mixins/form-associated-mixin.js"
101021
+ }
101022
+ },
101023
+ {
101024
+ "kind": "method",
101025
+ "name": "validate",
101026
+ "privacy": "protected",
101027
+ "return": {
101028
+ "type": {
101029
+ "text": "void"
101030
+ }
101031
+ },
101032
+ "description": "To be called whenever the current element needs to be validated.",
101033
+ "inheritedFrom": {
101034
+ "name": "SbbFormAssociatedMixin",
101035
+ "module": "core/mixins/form-associated-mixin.js"
101036
+ }
101037
+ },
101038
+ {
101039
+ "kind": "method",
101040
+ "name": "shouldValidate",
101041
+ "privacy": "protected",
101042
+ "return": {
101043
+ "type": {
101044
+ "text": "boolean"
101045
+ }
101046
+ },
101047
+ "parameters": [
101048
+ {
101049
+ "name": "name",
101050
+ "type": {
101051
+ "text": "PropertyKey | undefined"
101052
+ }
101053
+ }
101054
+ ],
101055
+ "description": "Whether validation should be run on a property change with the given name.",
101056
+ "inheritedFrom": {
101057
+ "name": "SbbFormAssociatedMixin",
101058
+ "module": "core/mixins/form-associated-mixin.js"
101059
+ }
101060
+ },
101061
+ {
101062
+ "kind": "method",
101063
+ "name": "_setInternalValidity",
101064
+ "privacy": "private",
101065
+ "return": {
101066
+ "type": {
101067
+ "text": "void"
101068
+ }
101069
+ },
101070
+ "inheritedFrom": {
101071
+ "name": "SbbFormAssociatedMixin",
101072
+ "module": "core/mixins/form-associated-mixin.js"
101073
+ }
101074
+ },
101075
+ {
101076
+ "kind": "field",
101077
+ "name": "role",
101078
+ "type": {
101079
+ "text": "ElementInternals['role']"
101080
+ },
101081
+ "privacy": "public",
101082
+ "static": true,
101083
+ "readonly": true,
101084
+ "default": "'button'",
101085
+ "inheritedFrom": {
101086
+ "name": "SbbButtonLikeBaseElement",
101087
+ "module": "core/base-elements/button-base-element.js"
101088
+ }
101089
+ },
101090
+ {
101091
+ "kind": "field",
101092
+ "name": "_preventScrollOnSpaceKeydown",
101093
+ "privacy": "private",
101094
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101095
+ "parameters": [
101096
+ {
101097
+ "description": "The origin event.",
101098
+ "name": "event"
101099
+ }
101100
+ ],
101101
+ "inheritedFrom": {
101102
+ "name": "SbbButtonLikeBaseElement",
101103
+ "module": "core/base-elements/button-base-element.js"
101104
+ }
101105
+ },
101106
+ {
101107
+ "kind": "field",
101108
+ "name": "_removeActiveMarker",
101109
+ "privacy": "private",
101110
+ "inheritedFrom": {
101111
+ "name": "SbbButtonLikeBaseElement",
101112
+ "module": "core/base-elements/button-base-element.js"
101113
+ }
101114
+ },
101115
+ {
101116
+ "kind": "field",
101117
+ "name": "_dispatchClickEventOnSpaceKeyup",
101118
+ "privacy": "private",
101119
+ "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.",
101120
+ "parameters": [
101121
+ {
101122
+ "description": "The origin event.",
101123
+ "name": "event"
101124
+ }
101125
+ ],
101126
+ "inheritedFrom": {
101127
+ "name": "SbbButtonLikeBaseElement",
101128
+ "module": "core/base-elements/button-base-element.js"
101129
+ }
101130
+ },
101131
+ {
101132
+ "kind": "field",
101133
+ "name": "_dispatchClickEvent",
101134
+ "privacy": "private",
101135
+ "inheritedFrom": {
101136
+ "name": "SbbButtonLikeBaseElement",
101137
+ "module": "core/base-elements/button-base-element.js"
100794
101138
  }
100795
101139
  },
100796
101140
  {
@@ -100945,15 +101289,15 @@
100945
101289
  "module": "link/common/block-link-common.js"
100946
101290
  },
100947
101291
  {
100948
- "name": "SbbDisabledMixin",
101292
+ "name": "SbbDisabledTabIndexActionMixin",
100949
101293
  "module": "core/mixins.js"
100950
101294
  }
100951
101295
  ],
100952
101296
  "superclass": {
100953
- "name": "SbbLinkBaseElement",
101297
+ "name": "SbbButtonBaseElement",
100954
101298
  "module": "core/base-elements.js"
100955
101299
  },
100956
- "tagName": "sbb-block-link",
101300
+ "tagName": "sbb-block-link-button",
100957
101301
  "customElement": true,
100958
101302
  "attributes": [
100959
101303
  {
@@ -100995,6 +101339,19 @@
100995
101339
  "module": "icon/icon-name-mixin.js"
100996
101340
  }
100997
101341
  },
101342
+ {
101343
+ "name": "disabled-interactive",
101344
+ "type": {
101345
+ "text": "boolean"
101346
+ },
101347
+ "default": "false",
101348
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101349
+ "fieldName": "disabledInteractive",
101350
+ "inheritedFrom": {
101351
+ "name": "SbbDisabledInteractiveMixin",
101352
+ "module": "core/mixins/disabled-mixin.js"
101353
+ }
101354
+ },
100998
101355
  {
100999
101356
  "name": "disabled",
101000
101357
  "description": "Whether the component is disabled.",
@@ -101009,81 +101366,53 @@
101009
101366
  }
101010
101367
  },
101011
101368
  {
101012
- "name": "href",
101369
+ "name": "value",
101013
101370
  "type": {
101014
101371
  "text": "string"
101015
101372
  },
101016
101373
  "default": "''",
101017
- "description": "The href value you want to link to.",
101018
- "fieldName": "href",
101374
+ "description": "Value of the form element.",
101375
+ "fieldName": "value",
101019
101376
  "inheritedFrom": {
101020
- "name": "SbbLinkBaseElement",
101021
- "module": "core/base-elements/link-base-element.js"
101377
+ "name": "SbbButtonBaseElement",
101378
+ "module": "core/base-elements/button-base-element.js"
101022
101379
  }
101023
101380
  },
101024
101381
  {
101025
- "name": "target",
101382
+ "name": "type",
101383
+ "description": "The type attribute to use for the button.",
101384
+ "default": "'button'",
101026
101385
  "type": {
101027
- "text": "LinkTargetType | string"
101028
- },
101029
- "default": "''",
101030
- "description": "Where to display the linked URL.",
101031
- "fieldName": "target",
101032
- "inheritedFrom": {
101033
- "name": "SbbLinkBaseElement",
101034
- "module": "core/base-elements/link-base-element.js"
101035
- }
101036
- },
101037
- {
101038
- "name": "rel",
101039
- "type": {
101040
- "text": "string"
101041
- },
101042
- "default": "''",
101043
- "description": "The relationship of the linked URL as space-separated link types.",
101044
- "fieldName": "rel",
101045
- "inheritedFrom": {
101046
- "name": "SbbLinkBaseElement",
101047
- "module": "core/base-elements/link-base-element.js"
101048
- }
101049
- },
101050
- {
101051
- "name": "download",
101052
- "type": {
101053
- "text": "boolean"
101386
+ "text": "SbbButtonType"
101054
101387
  },
101055
- "default": "false",
101056
- "description": "Whether the browser will show the download dialog on click.",
101057
- "fieldName": "download",
101388
+ "fieldName": "type",
101058
101389
  "inheritedFrom": {
101059
- "name": "SbbLinkBaseElement",
101060
- "module": "core/base-elements/link-base-element.js"
101390
+ "name": "SbbButtonBaseElement",
101391
+ "module": "core/base-elements/button-base-element.js"
101061
101392
  }
101062
101393
  },
101063
101394
  {
101064
- "name": "accessibility-label",
101395
+ "name": "form",
101396
+ "description": "The `<form>` element to associate the button with.",
101065
101397
  "type": {
101066
- "text": "string"
101398
+ "text": "HTMLFormElement | null"
101067
101399
  },
101068
- "default": "''",
101069
- "description": "This will be forwarded as aria-label to the inner anchor element.",
101070
- "fieldName": "accessibilityLabel",
101400
+ "fieldName": "form",
101071
101401
  "inheritedFrom": {
101072
- "name": "SbbLinkBaseElement",
101073
- "module": "core/base-elements/link-base-element.js"
101402
+ "name": "SbbButtonBaseElement",
101403
+ "module": "core/base-elements/button-base-element.js"
101074
101404
  }
101075
101405
  },
101076
101406
  {
101077
- "name": "accessibility-current",
101407
+ "name": "name",
101408
+ "description": "Name of the form element. Will be read from name attribute.",
101078
101409
  "type": {
101079
101410
  "text": "string"
101080
101411
  },
101081
- "default": "''",
101082
- "description": "This will be forwarded as aria-current to the inner anchor element.",
101083
- "fieldName": "accessibilityCurrent",
101412
+ "fieldName": "name",
101084
101413
  "inheritedFrom": {
101085
- "name": "SbbLinkBaseElement",
101086
- "module": "core/base-elements/link-base-element.js"
101414
+ "name": "SbbFormAssociatedMixin",
101415
+ "module": "core/mixins/form-associated-mixin.js"
101087
101416
  }
101088
101417
  }
101089
101418
  ]
@@ -101092,25 +101421,25 @@
101092
101421
  "exports": [
101093
101422
  {
101094
101423
  "kind": "js",
101095
- "name": "SbbBlockLinkElement",
101424
+ "name": "SbbBlockLinkButtonElement",
101096
101425
  "declaration": {
101097
- "name": "SbbBlockLinkElement",
101098
- "module": "link/block-link/block-link.component.js"
101426
+ "name": "SbbBlockLinkButtonElement",
101427
+ "module": "link/block-link-button/block-link-button.component.js"
101099
101428
  }
101100
101429
  }
101101
101430
  ]
101102
101431
  },
101103
101432
  {
101104
101433
  "kind": "javascript-module",
101105
- "path": "link/block-link-button/block-link-button.component.js",
101434
+ "path": "link/block-link/block-link.component.js",
101106
101435
  "declarations": [
101107
101436
  {
101108
101437
  "kind": "class",
101109
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
101110
- "name": "SbbBlockLinkButtonElement",
101438
+ "description": "It displays a link enhanced with the SBB Design.",
101439
+ "name": "SbbBlockLinkElement",
101111
101440
  "slots": [
101112
101441
  {
101113
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101442
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
101114
101443
  "name": ""
101115
101444
  },
101116
101445
  {
@@ -101132,7 +101461,7 @@
101132
101461
  "name": "SbbElement",
101133
101462
  "module": "core/base-elements/element.js"
101134
101463
  },
101135
- "default": "'sbb-block-link-button'"
101464
+ "default": "'sbb-block-link'"
101136
101465
  },
101137
101466
  {
101138
101467
  "kind": "field",
@@ -101261,22 +101590,6 @@
101261
101590
  "module": "icon/icon-name-mixin.js"
101262
101591
  }
101263
101592
  },
101264
- {
101265
- "kind": "field",
101266
- "name": "disabledInteractive",
101267
- "type": {
101268
- "text": "boolean"
101269
- },
101270
- "privacy": "public",
101271
- "default": "false",
101272
- "description": "Whether the button should be aria-disabled but stay interactive.",
101273
- "attribute": "disabled-interactive",
101274
- "reflects": true,
101275
- "inheritedFrom": {
101276
- "name": "SbbDisabledInteractiveMixin",
101277
- "module": "core/mixins/disabled-mixin.js"
101278
- }
101279
- },
101280
101593
  {
101281
101594
  "kind": "field",
101282
101595
  "name": "disabled",
@@ -101323,243 +101636,247 @@
101323
101636
  },
101324
101637
  {
101325
101638
  "kind": "field",
101326
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101639
+ "name": "href",
101327
101640
  "type": {
101328
- "text": "array"
101641
+ "text": "string"
101329
101642
  },
101330
- "privacy": "private",
101331
- "readonly": true,
101332
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101643
+ "privacy": "public",
101644
+ "default": "''",
101645
+ "description": "The href value you want to link to.",
101646
+ "attribute": "href",
101647
+ "reflects": true,
101333
101648
  "inheritedFrom": {
101334
- "name": "SbbButtonBaseElement",
101335
- "module": "core/base-elements/button-base-element.js"
101649
+ "name": "SbbLinkBaseElement",
101650
+ "module": "core/base-elements/link-base-element.js"
101336
101651
  }
101337
101652
  },
101338
101653
  {
101339
101654
  "kind": "field",
101340
- "name": "value",
101655
+ "name": "target",
101341
101656
  "type": {
101342
- "text": "string"
101657
+ "text": "LinkTargetType | string"
101343
101658
  },
101344
101659
  "privacy": "public",
101660
+ "default": "''",
101661
+ "description": "Where to display the linked URL.",
101662
+ "attribute": "target",
101663
+ "reflects": true,
101345
101664
  "inheritedFrom": {
101346
- "name": "SbbButtonBaseElement",
101347
- "module": "core/base-elements/button-base-element.js"
101665
+ "name": "SbbLinkBaseElement",
101666
+ "module": "core/base-elements/link-base-element.js"
101667
+ }
101668
+ },
101669
+ {
101670
+ "kind": "field",
101671
+ "name": "rel",
101672
+ "type": {
101673
+ "text": "string"
101348
101674
  },
101675
+ "privacy": "public",
101349
101676
  "default": "''",
101350
- "description": "Value of the form element.",
101351
- "attribute": "value"
101677
+ "description": "The relationship of the linked URL as space-separated link types.",
101678
+ "attribute": "rel",
101679
+ "reflects": true,
101680
+ "inheritedFrom": {
101681
+ "name": "SbbLinkBaseElement",
101682
+ "module": "core/base-elements/link-base-element.js"
101683
+ }
101352
101684
  },
101353
101685
  {
101354
101686
  "kind": "field",
101355
- "name": "type",
101356
- "privacy": "public",
101357
- "description": "The type attribute to use for the button.",
101358
- "default": "'button'",
101687
+ "name": "download",
101359
101688
  "type": {
101360
- "text": "SbbButtonType"
101689
+ "text": "boolean"
101361
101690
  },
101362
- "attribute": "type",
101691
+ "privacy": "public",
101692
+ "default": "false",
101693
+ "description": "Whether the browser will show the download dialog on click.",
101694
+ "attribute": "download",
101695
+ "reflects": true,
101363
101696
  "inheritedFrom": {
101364
- "name": "SbbButtonBaseElement",
101365
- "module": "core/base-elements/button-base-element.js"
101697
+ "name": "SbbLinkBaseElement",
101698
+ "module": "core/base-elements/link-base-element.js"
101366
101699
  }
101367
101700
  },
101368
101701
  {
101369
101702
  "kind": "field",
101370
- "name": "form",
101703
+ "name": "accessibilityLabel",
101371
101704
  "type": {
101372
- "text": "HTMLFormElement | null"
101705
+ "text": "string"
101373
101706
  },
101374
101707
  "privacy": "public",
101375
- "description": "The `<form>` element to associate the button with.",
101708
+ "default": "''",
101709
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101710
+ "attribute": "accessibility-label",
101376
101711
  "inheritedFrom": {
101377
- "name": "SbbButtonBaseElement",
101378
- "module": "core/base-elements/button-base-element.js"
101379
- },
101380
- "attribute": "form"
101712
+ "name": "SbbLinkBaseElement",
101713
+ "module": "core/base-elements/link-base-element.js"
101714
+ }
101381
101715
  },
101382
101716
  {
101383
101717
  "kind": "field",
101384
- "name": "_formId",
101718
+ "name": "accessibilityCurrent",
101385
101719
  "type": {
101386
101720
  "text": "string"
101387
101721
  },
101388
- "privacy": "private",
101722
+ "privacy": "public",
101389
101723
  "default": "''",
101724
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101725
+ "attribute": "accessibility-current",
101390
101726
  "inheritedFrom": {
101391
- "name": "SbbButtonBaseElement",
101392
- "module": "core/base-elements/button-base-element.js"
101727
+ "name": "SbbLinkBaseElement",
101728
+ "module": "core/base-elements/link-base-element.js"
101393
101729
  }
101394
101730
  },
101395
101731
  {
101396
101732
  "kind": "field",
101397
- "name": "_handleButtonClick",
101398
- "privacy": "private",
101733
+ "name": "language",
101734
+ "privacy": "protected",
101735
+ "default": "new SbbLanguageController(this)",
101399
101736
  "inheritedFrom": {
101400
- "name": "SbbButtonBaseElement",
101401
- "module": "core/base-elements/button-base-element.js"
101737
+ "name": "SbbLinkBaseElement",
101738
+ "module": "core/base-elements/link-base-element.js"
101402
101739
  }
101403
101740
  },
101404
101741
  {
101405
- "kind": "method",
101406
- "name": "_requestSubmit",
101407
- "privacy": "private",
101408
- "return": {
101409
- "type": {
101410
- "text": "void"
101411
- }
101742
+ "kind": "field",
101743
+ "name": "anchorRole",
101744
+ "type": {
101745
+ "text": "string | null"
101412
101746
  },
101413
- "parameters": [
101414
- {
101415
- "name": "form",
101416
- "type": {
101417
- "text": "HTMLFormElement"
101418
- }
101419
- }
101420
- ],
101747
+ "privacy": "protected",
101748
+ "readonly": true,
101749
+ "default": "null",
101421
101750
  "inheritedFrom": {
101422
- "name": "SbbButtonBaseElement",
101423
- "module": "core/base-elements/button-base-element.js"
101751
+ "name": "SbbLinkBaseElement",
101752
+ "module": "core/base-elements/link-base-element.js"
101424
101753
  }
101425
101754
  },
101426
101755
  {
101427
101756
  "kind": "field",
101428
- "name": "_formKeyDown",
101757
+ "name": "_evaluateRelAttribute",
101429
101758
  "privacy": "private",
101430
101759
  "inheritedFrom": {
101431
- "name": "SbbButtonBaseElement",
101432
- "module": "core/base-elements/button-base-element.js"
101760
+ "name": "SbbLinkBaseElement",
101761
+ "module": "core/base-elements/link-base-element.js"
101433
101762
  }
101434
101763
  },
101435
101764
  {
101436
- "kind": "field",
101437
- "name": "formAssociated",
101438
- "type": {
101439
- "text": "boolean"
101765
+ "kind": "method",
101766
+ "name": "renderLink",
101767
+ "privacy": "protected",
101768
+ "return": {
101769
+ "type": {
101770
+ "text": "TemplateResult"
101771
+ }
101440
101772
  },
101441
- "privacy": "public",
101442
- "static": true,
101443
- "default": "true",
101773
+ "parameters": [
101774
+ {
101775
+ "name": "renderContent",
101776
+ "type": {
101777
+ "text": "TemplateResult"
101778
+ }
101779
+ }
101780
+ ],
101444
101781
  "inheritedFrom": {
101445
- "name": "SbbFormAssociatedMixin",
101446
- "module": "core/mixins/form-associated-mixin.js"
101782
+ "name": "SbbLinkBaseElement",
101783
+ "module": "core/base-elements/link-base-element.js"
101447
101784
  }
101448
101785
  },
101449
101786
  {
101450
101787
  "kind": "field",
101451
- "name": "name",
101452
- "privacy": "public",
101453
- "description": "Name of the form element. Will be read from name attribute.",
101788
+ "name": "maybeDisabled",
101454
101789
  "type": {
101455
- "text": "string"
101790
+ "text": "boolean | undefined"
101456
101791
  },
101457
- "attribute": "name",
101792
+ "privacy": "protected",
101793
+ "readonly": true,
101458
101794
  "inheritedFrom": {
101459
- "name": "SbbFormAssociatedMixin",
101460
- "module": "core/mixins/form-associated-mixin.js"
101795
+ "name": "SbbActionBaseElement",
101796
+ "module": "core/base-elements/action-base-element.js"
101461
101797
  }
101462
101798
  },
101463
101799
  {
101464
101800
  "kind": "field",
101465
- "name": "validity",
101801
+ "name": "maybeDisabledInteractive",
101466
101802
  "type": {
101467
- "text": "ValidityState"
101803
+ "text": "boolean | undefined"
101468
101804
  },
101469
- "privacy": "public",
101470
- "description": "Returns the ValidityState object for this element.",
101805
+ "privacy": "protected",
101471
101806
  "readonly": true,
101472
101807
  "inheritedFrom": {
101473
- "name": "SbbFormAssociatedMixin",
101474
- "module": "core/mixins/form-associated-mixin.js"
101808
+ "name": "SbbActionBaseElement",
101809
+ "module": "core/base-elements/action-base-element.js"
101475
101810
  }
101476
101811
  },
101477
101812
  {
101478
- "kind": "field",
101479
- "name": "validationMessage",
101480
- "type": {
101481
- "text": "string"
101813
+ "kind": "method",
101814
+ "name": "setupBaseEventHandlers",
101815
+ "privacy": "protected",
101816
+ "return": {
101817
+ "type": {
101818
+ "text": "void"
101819
+ }
101482
101820
  },
101483
- "privacy": "public",
101484
- "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.",
101485
- "readonly": true,
101486
101821
  "inheritedFrom": {
101487
- "name": "SbbFormAssociatedMixin",
101488
- "module": "core/mixins/form-associated-mixin.js"
101822
+ "name": "SbbActionBaseElement",
101823
+ "module": "core/base-elements/action-base-element.js"
101489
101824
  }
101490
101825
  },
101491
101826
  {
101492
101827
  "kind": "field",
101493
- "name": "willValidate",
101828
+ "name": "_hydrationRequired",
101494
101829
  "type": {
101495
101830
  "text": "boolean"
101496
101831
  },
101497
- "privacy": "public",
101498
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101499
- "readonly": true,
101832
+ "privacy": "private",
101833
+ "default": "!!this.shadowRoot",
101500
101834
  "inheritedFrom": {
101501
- "name": "SbbFormAssociatedMixin",
101502
- "module": "core/mixins/form-associated-mixin.js"
101835
+ "name": "SbbElement",
101836
+ "module": "core/base-elements/element.js"
101503
101837
  }
101504
101838
  },
101505
101839
  {
101506
101840
  "kind": "field",
101507
- "name": "_validityStates",
101841
+ "name": "_hydrationComplete",
101508
101842
  "privacy": "private",
101509
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101843
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101510
101844
  "inheritedFrom": {
101511
- "name": "SbbFormAssociatedMixin",
101512
- "module": "core/mixins/form-associated-mixin.js"
101845
+ "name": "SbbElement",
101846
+ "module": "core/base-elements/element.js"
101513
101847
  }
101514
101848
  },
101515
101849
  {
101516
101850
  "kind": "field",
101517
- "name": "formDisabled",
101851
+ "name": "_resolveHydration",
101518
101852
  "type": {
101519
- "text": "boolean"
101853
+ "text": "(hydrationRequired: boolean) => void"
101520
101854
  },
101521
- "privacy": "protected",
101522
- "default": "false",
101523
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101855
+ "privacy": "private",
101524
101856
  "inheritedFrom": {
101525
- "name": "SbbFormAssociatedMixin",
101526
- "module": "core/mixins/form-associated-mixin.js"
101857
+ "name": "SbbElement",
101858
+ "module": "core/base-elements/element.js"
101527
101859
  }
101528
101860
  },
101529
101861
  {
101530
- "kind": "method",
101531
- "name": "checkValidity",
101532
- "privacy": "public",
101533
- "return": {
101534
- "type": {
101535
- "text": "boolean"
101536
- }
101862
+ "kind": "field",
101863
+ "name": "hydrationRequired",
101864
+ "type": {
101865
+ "text": "boolean"
101537
101866
  },
101538
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101867
+ "privacy": "protected",
101868
+ "description": "Returns whether hydration is required and not completed.",
101869
+ "readonly": true,
101539
101870
  "inheritedFrom": {
101540
- "name": "SbbFormAssociatedMixin",
101541
- "module": "core/mixins/form-associated-mixin.js"
101542
- }
101543
- },
101544
- {
101545
- "kind": "method",
101546
- "name": "reportValidity",
101547
- "privacy": "public",
101548
- "return": {
101549
- "type": {
101550
- "text": "boolean"
101551
- }
101871
+ "name": "SbbElement",
101872
+ "module": "core/base-elements/element.js"
101552
101873
  },
101553
- "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.",
101554
- "inheritedFrom": {
101555
- "name": "SbbFormAssociatedMixin",
101556
- "module": "core/mixins/form-associated-mixin.js"
101557
- }
101874
+ "default": "!!this.shadowRoot"
101558
101875
  },
101559
101876
  {
101560
101877
  "kind": "method",
101561
- "name": "setCustomValidity",
101562
- "privacy": "public",
101878
+ "name": "toggleState",
101879
+ "privacy": "protected",
101563
101880
  "return": {
101564
101881
  "type": {
101565
101882
  "text": "void"
@@ -101567,513 +101884,196 @@
101567
101884
  },
101568
101885
  "parameters": [
101569
101886
  {
101570
- "name": "message",
101887
+ "name": "value",
101571
101888
  "type": {
101572
101889
  "text": "string"
101573
101890
  }
101891
+ },
101892
+ {
101893
+ "name": "force",
101894
+ "optional": true,
101895
+ "type": {
101896
+ "text": "boolean"
101897
+ }
101574
101898
  }
101575
101899
  ],
101576
- "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.",
101577
101900
  "inheritedFrom": {
101578
- "name": "SbbFormAssociatedMixin",
101579
- "module": "core/mixins/form-associated-mixin.js"
101901
+ "name": "SbbElement",
101902
+ "module": "core/base-elements/element.js"
101580
101903
  }
101581
101904
  },
101582
101905
  {
101583
- "kind": "method",
101584
- "name": "_hasDisabledAncestor",
101585
- "privacy": "private",
101586
- "return": {
101587
- "type": {
101588
- "text": "boolean"
101589
- }
101906
+ "kind": "field",
101907
+ "name": "['_$sbbElement$']",
101908
+ "type": {
101909
+ "text": "boolean"
101590
101910
  },
101911
+ "privacy": "public",
101912
+ "static": true,
101913
+ "default": "true",
101591
101914
  "inheritedFrom": {
101592
- "name": "SbbFormAssociatedMixin",
101593
- "module": "core/mixins/form-associated-mixin.js"
101915
+ "name": "SbbElement",
101916
+ "module": "core/base-elements/element.js"
101594
101917
  }
101595
101918
  },
101596
101919
  {
101597
- "kind": "method",
101598
- "name": "updateFormValue",
101599
- "privacy": "protected",
101600
- "return": {
101601
- "type": {
101602
- "text": "void"
101603
- }
101920
+ "kind": "field",
101921
+ "name": "_controllers",
101922
+ "type": {
101923
+ "text": "Set<SbbReactiveController> | undefined"
101604
101924
  },
101605
- "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",
101925
+ "privacy": "private",
101606
101926
  "inheritedFrom": {
101607
- "name": "SbbFormAssociatedMixin",
101608
- "module": "core/mixins/form-associated-mixin.js"
101927
+ "name": "SbbElement",
101928
+ "module": "core/base-elements/element.js"
101609
101929
  }
101930
+ }
101931
+ ],
101932
+ "mixins": [
101933
+ {
101934
+ "name": "SbbBlockLinkCommonElementMixin",
101935
+ "module": "link/common/block-link-common.js"
101610
101936
  },
101611
101937
  {
101612
- "kind": "method",
101613
- "name": "formState",
101614
- "privacy": "protected",
101615
- "return": {
101616
- "type": {
101617
- "text": "FormRestoreState"
101618
- }
101938
+ "name": "SbbDisabledMixin",
101939
+ "module": "core/mixins.js"
101940
+ }
101941
+ ],
101942
+ "superclass": {
101943
+ "name": "SbbLinkBaseElement",
101944
+ "module": "core/base-elements.js"
101945
+ },
101946
+ "tagName": "sbb-block-link",
101947
+ "customElement": true,
101948
+ "attributes": [
101949
+ {
101950
+ "name": "icon-placement",
101951
+ "type": {
101952
+ "text": "SbbIconPlacement"
101619
101953
  },
101954
+ "default": "'start'",
101955
+ "description": "Moves the icon to the end of the component if set to true.",
101956
+ "fieldName": "iconPlacement",
101620
101957
  "inheritedFrom": {
101621
- "name": "SbbFormAssociatedMixin",
101622
- "module": "core/mixins/form-associated-mixin.js"
101958
+ "name": "SbbBlockLinkCommonElementMixin",
101959
+ "module": "link/common/block-link-common.js"
101623
101960
  }
101624
101961
  },
101625
101962
  {
101626
- "kind": "method",
101627
- "name": "setValidityFlag",
101628
- "privacy": "protected",
101629
- "return": {
101630
- "type": {
101631
- "text": "void"
101632
- }
101963
+ "name": "size",
101964
+ "type": {
101965
+ "text": "SbbLinkSize"
101633
101966
  },
101634
- "parameters": [
101635
- {
101636
- "name": "flag",
101637
- "type": {
101638
- "text": "T"
101639
- }
101640
- },
101641
- {
101642
- "name": "message",
101643
- "type": {
101644
- "text": "string"
101645
- }
101646
- },
101647
- {
101648
- "name": "flagValue",
101649
- "optional": true,
101650
- "type": {
101651
- "text": "ValidityStateFlags[T]"
101652
- }
101653
- }
101654
- ],
101655
- "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).",
101967
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101968
+ "default": "'s' / 'xs' (lean)",
101969
+ "fieldName": "size",
101656
101970
  "inheritedFrom": {
101657
- "name": "SbbFormAssociatedMixin",
101658
- "module": "core/mixins/form-associated-mixin.js"
101971
+ "name": "SbbLinkCommonElementMixin",
101972
+ "module": "link/common/link-common.js"
101659
101973
  }
101660
101974
  },
101661
101975
  {
101662
- "kind": "method",
101663
- "name": "removeValidityFlag",
101664
- "privacy": "protected",
101665
- "return": {
101666
- "type": {
101667
- "text": "void"
101668
- }
101976
+ "name": "icon-name",
101977
+ "type": {
101978
+ "text": "string"
101669
101979
  },
101670
- "parameters": [
101671
- {
101672
- "name": "flag",
101673
- "type": {
101674
- "text": "T"
101675
- }
101676
- }
101677
- ],
101678
- "description": "Removes the validity state flag entry and updates validity state.",
101980
+ "default": "''",
101981
+ "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.",
101982
+ "fieldName": "iconName",
101679
101983
  "inheritedFrom": {
101680
- "name": "SbbFormAssociatedMixin",
101681
- "module": "core/mixins/form-associated-mixin.js"
101984
+ "name": "SbbIconNameMixin",
101985
+ "module": "icon/icon-name-mixin.js"
101682
101986
  }
101683
101987
  },
101684
101988
  {
101685
- "kind": "method",
101686
- "name": "validate",
101687
- "privacy": "protected",
101688
- "return": {
101689
- "type": {
101690
- "text": "void"
101691
- }
101692
- },
101693
- "description": "To be called whenever the current element needs to be validated.",
101694
- "inheritedFrom": {
101695
- "name": "SbbFormAssociatedMixin",
101696
- "module": "core/mixins/form-associated-mixin.js"
101697
- }
101698
- },
101699
- {
101700
- "kind": "method",
101701
- "name": "shouldValidate",
101702
- "privacy": "protected",
101703
- "return": {
101704
- "type": {
101705
- "text": "boolean"
101706
- }
101707
- },
101708
- "parameters": [
101709
- {
101710
- "name": "name",
101711
- "type": {
101712
- "text": "PropertyKey | undefined"
101713
- }
101714
- }
101715
- ],
101716
- "description": "Whether validation should be run on a property change with the given name.",
101717
- "inheritedFrom": {
101718
- "name": "SbbFormAssociatedMixin",
101719
- "module": "core/mixins/form-associated-mixin.js"
101720
- }
101721
- },
101722
- {
101723
- "kind": "method",
101724
- "name": "_setInternalValidity",
101725
- "privacy": "private",
101726
- "return": {
101727
- "type": {
101728
- "text": "void"
101729
- }
101730
- },
101731
- "inheritedFrom": {
101732
- "name": "SbbFormAssociatedMixin",
101733
- "module": "core/mixins/form-associated-mixin.js"
101734
- }
101735
- },
101736
- {
101737
- "kind": "field",
101738
- "name": "role",
101739
- "type": {
101740
- "text": "ElementInternals['role']"
101741
- },
101742
- "privacy": "public",
101743
- "static": true,
101744
- "readonly": true,
101745
- "default": "'button'",
101746
- "inheritedFrom": {
101747
- "name": "SbbButtonLikeBaseElement",
101748
- "module": "core/base-elements/button-base-element.js"
101749
- }
101750
- },
101751
- {
101752
- "kind": "field",
101753
- "name": "_preventScrollOnSpaceKeydown",
101754
- "privacy": "private",
101755
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101756
- "parameters": [
101757
- {
101758
- "description": "The origin event.",
101759
- "name": "event"
101760
- }
101761
- ],
101762
- "inheritedFrom": {
101763
- "name": "SbbButtonLikeBaseElement",
101764
- "module": "core/base-elements/button-base-element.js"
101765
- }
101766
- },
101767
- {
101768
- "kind": "field",
101769
- "name": "_removeActiveMarker",
101770
- "privacy": "private",
101771
- "inheritedFrom": {
101772
- "name": "SbbButtonLikeBaseElement",
101773
- "module": "core/base-elements/button-base-element.js"
101774
- }
101775
- },
101776
- {
101777
- "kind": "field",
101778
- "name": "_dispatchClickEventOnSpaceKeyup",
101779
- "privacy": "private",
101780
- "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.",
101781
- "parameters": [
101782
- {
101783
- "description": "The origin event.",
101784
- "name": "event"
101785
- }
101786
- ],
101787
- "inheritedFrom": {
101788
- "name": "SbbButtonLikeBaseElement",
101789
- "module": "core/base-elements/button-base-element.js"
101790
- }
101791
- },
101792
- {
101793
- "kind": "field",
101794
- "name": "_dispatchClickEvent",
101795
- "privacy": "private",
101796
- "inheritedFrom": {
101797
- "name": "SbbButtonLikeBaseElement",
101798
- "module": "core/base-elements/button-base-element.js"
101799
- }
101800
- },
101801
- {
101802
- "kind": "field",
101803
- "name": "maybeDisabled",
101804
- "type": {
101805
- "text": "boolean | undefined"
101806
- },
101807
- "privacy": "protected",
101808
- "readonly": true,
101809
- "inheritedFrom": {
101810
- "name": "SbbActionBaseElement",
101811
- "module": "core/base-elements/action-base-element.js"
101812
- }
101813
- },
101814
- {
101815
- "kind": "field",
101816
- "name": "maybeDisabledInteractive",
101817
- "type": {
101818
- "text": "boolean | undefined"
101819
- },
101820
- "privacy": "protected",
101821
- "readonly": true,
101822
- "inheritedFrom": {
101823
- "name": "SbbActionBaseElement",
101824
- "module": "core/base-elements/action-base-element.js"
101825
- }
101826
- },
101827
- {
101828
- "kind": "method",
101829
- "name": "setupBaseEventHandlers",
101830
- "privacy": "protected",
101831
- "return": {
101832
- "type": {
101833
- "text": "void"
101834
- }
101835
- },
101836
- "inheritedFrom": {
101837
- "name": "SbbActionBaseElement",
101838
- "module": "core/base-elements/action-base-element.js"
101839
- }
101840
- },
101841
- {
101842
- "kind": "field",
101843
- "name": "_hydrationRequired",
101844
- "type": {
101845
- "text": "boolean"
101846
- },
101847
- "privacy": "private",
101848
- "default": "!!this.shadowRoot",
101849
- "inheritedFrom": {
101850
- "name": "SbbElement",
101851
- "module": "core/base-elements/element.js"
101852
- }
101853
- },
101854
- {
101855
- "kind": "field",
101856
- "name": "_hydrationComplete",
101857
- "privacy": "private",
101858
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101859
- "inheritedFrom": {
101860
- "name": "SbbElement",
101861
- "module": "core/base-elements/element.js"
101862
- }
101863
- },
101864
- {
101865
- "kind": "field",
101866
- "name": "_resolveHydration",
101867
- "type": {
101868
- "text": "(hydrationRequired: boolean) => void"
101869
- },
101870
- "privacy": "private",
101871
- "inheritedFrom": {
101872
- "name": "SbbElement",
101873
- "module": "core/base-elements/element.js"
101874
- }
101875
- },
101876
- {
101877
- "kind": "field",
101878
- "name": "hydrationRequired",
101879
- "type": {
101880
- "text": "boolean"
101881
- },
101882
- "privacy": "protected",
101883
- "description": "Returns whether hydration is required and not completed.",
101884
- "readonly": true,
101885
- "inheritedFrom": {
101886
- "name": "SbbElement",
101887
- "module": "core/base-elements/element.js"
101888
- },
101889
- "default": "!!this.shadowRoot"
101890
- },
101891
- {
101892
- "kind": "method",
101893
- "name": "toggleState",
101894
- "privacy": "protected",
101895
- "return": {
101896
- "type": {
101897
- "text": "void"
101898
- }
101899
- },
101900
- "parameters": [
101901
- {
101902
- "name": "value",
101903
- "type": {
101904
- "text": "string"
101905
- }
101906
- },
101907
- {
101908
- "name": "force",
101909
- "optional": true,
101910
- "type": {
101911
- "text": "boolean"
101912
- }
101913
- }
101914
- ],
101915
- "inheritedFrom": {
101916
- "name": "SbbElement",
101917
- "module": "core/base-elements/element.js"
101918
- }
101919
- },
101920
- {
101921
- "kind": "field",
101922
- "name": "['_$sbbElement$']",
101989
+ "name": "disabled",
101990
+ "description": "Whether the component is disabled.",
101991
+ "default": "false",
101923
101992
  "type": {
101924
101993
  "text": "boolean"
101925
101994
  },
101926
- "privacy": "public",
101927
- "static": true,
101928
- "default": "true",
101929
- "inheritedFrom": {
101930
- "name": "SbbElement",
101931
- "module": "core/base-elements/element.js"
101932
- }
101933
- },
101934
- {
101935
- "kind": "field",
101936
- "name": "_controllers",
101937
- "type": {
101938
- "text": "Set<SbbReactiveController> | undefined"
101939
- },
101940
- "privacy": "private",
101995
+ "fieldName": "disabled",
101941
101996
  "inheritedFrom": {
101942
- "name": "SbbElement",
101943
- "module": "core/base-elements/element.js"
101997
+ "name": "SbbDisabledMixin",
101998
+ "module": "core/mixins/disabled-mixin.js"
101944
101999
  }
101945
- }
101946
- ],
101947
- "mixins": [
101948
- {
101949
- "name": "SbbBlockLinkCommonElementMixin",
101950
- "module": "link/common/block-link-common.js"
101951
102000
  },
101952
102001
  {
101953
- "name": "SbbDisabledTabIndexActionMixin",
101954
- "module": "core/mixins.js"
101955
- }
101956
- ],
101957
- "superclass": {
101958
- "name": "SbbButtonBaseElement",
101959
- "module": "core/base-elements.js"
101960
- },
101961
- "tagName": "sbb-block-link-button",
101962
- "customElement": true,
101963
- "attributes": [
101964
- {
101965
- "name": "icon-placement",
102002
+ "name": "href",
101966
102003
  "type": {
101967
- "text": "SbbIconPlacement"
102004
+ "text": "string"
101968
102005
  },
101969
- "default": "'start'",
101970
- "description": "Moves the icon to the end of the component if set to true.",
101971
- "fieldName": "iconPlacement",
102006
+ "default": "''",
102007
+ "description": "The href value you want to link to.",
102008
+ "fieldName": "href",
101972
102009
  "inheritedFrom": {
101973
- "name": "SbbBlockLinkCommonElementMixin",
101974
- "module": "link/common/block-link-common.js"
102010
+ "name": "SbbLinkBaseElement",
102011
+ "module": "core/base-elements/link-base-element.js"
101975
102012
  }
101976
102013
  },
101977
102014
  {
101978
- "name": "size",
102015
+ "name": "target",
101979
102016
  "type": {
101980
- "text": "SbbLinkSize"
102017
+ "text": "LinkTargetType | string"
101981
102018
  },
101982
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101983
- "default": "'s' / 'xs' (lean)",
101984
- "fieldName": "size",
102019
+ "default": "''",
102020
+ "description": "Where to display the linked URL.",
102021
+ "fieldName": "target",
101985
102022
  "inheritedFrom": {
101986
- "name": "SbbLinkCommonElementMixin",
101987
- "module": "link/common/link-common.js"
102023
+ "name": "SbbLinkBaseElement",
102024
+ "module": "core/base-elements/link-base-element.js"
101988
102025
  }
101989
102026
  },
101990
102027
  {
101991
- "name": "icon-name",
102028
+ "name": "rel",
101992
102029
  "type": {
101993
102030
  "text": "string"
101994
102031
  },
101995
102032
  "default": "''",
101996
- "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.",
101997
- "fieldName": "iconName",
102033
+ "description": "The relationship of the linked URL as space-separated link types.",
102034
+ "fieldName": "rel",
101998
102035
  "inheritedFrom": {
101999
- "name": "SbbIconNameMixin",
102000
- "module": "icon/icon-name-mixin.js"
102036
+ "name": "SbbLinkBaseElement",
102037
+ "module": "core/base-elements/link-base-element.js"
102001
102038
  }
102002
102039
  },
102003
102040
  {
102004
- "name": "disabled-interactive",
102041
+ "name": "download",
102005
102042
  "type": {
102006
102043
  "text": "boolean"
102007
102044
  },
102008
102045
  "default": "false",
102009
- "description": "Whether the button should be aria-disabled but stay interactive.",
102010
- "fieldName": "disabledInteractive",
102011
- "inheritedFrom": {
102012
- "name": "SbbDisabledInteractiveMixin",
102013
- "module": "core/mixins/disabled-mixin.js"
102014
- }
102015
- },
102016
- {
102017
- "name": "disabled",
102018
- "description": "Whether the component is disabled.",
102019
- "default": "false",
102020
- "type": {
102021
- "text": "boolean"
102022
- },
102023
- "fieldName": "disabled",
102046
+ "description": "Whether the browser will show the download dialog on click.",
102047
+ "fieldName": "download",
102024
102048
  "inheritedFrom": {
102025
- "name": "SbbDisabledMixin",
102026
- "module": "core/mixins/disabled-mixin.js"
102049
+ "name": "SbbLinkBaseElement",
102050
+ "module": "core/base-elements/link-base-element.js"
102027
102051
  }
102028
102052
  },
102029
102053
  {
102030
- "name": "value",
102054
+ "name": "accessibility-label",
102031
102055
  "type": {
102032
102056
  "text": "string"
102033
102057
  },
102034
102058
  "default": "''",
102035
- "description": "Value of the form element.",
102036
- "fieldName": "value",
102037
- "inheritedFrom": {
102038
- "name": "SbbButtonBaseElement",
102039
- "module": "core/base-elements/button-base-element.js"
102040
- }
102041
- },
102042
- {
102043
- "name": "type",
102044
- "description": "The type attribute to use for the button.",
102045
- "default": "'button'",
102046
- "type": {
102047
- "text": "SbbButtonType"
102048
- },
102049
- "fieldName": "type",
102050
- "inheritedFrom": {
102051
- "name": "SbbButtonBaseElement",
102052
- "module": "core/base-elements/button-base-element.js"
102053
- }
102054
- },
102055
- {
102056
- "name": "form",
102057
- "description": "The `<form>` element to associate the button with.",
102058
- "type": {
102059
- "text": "HTMLFormElement | null"
102060
- },
102061
- "fieldName": "form",
102059
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
102060
+ "fieldName": "accessibilityLabel",
102062
102061
  "inheritedFrom": {
102063
- "name": "SbbButtonBaseElement",
102064
- "module": "core/base-elements/button-base-element.js"
102062
+ "name": "SbbLinkBaseElement",
102063
+ "module": "core/base-elements/link-base-element.js"
102065
102064
  }
102066
102065
  },
102067
102066
  {
102068
- "name": "name",
102069
- "description": "Name of the form element. Will be read from name attribute.",
102067
+ "name": "accessibility-current",
102070
102068
  "type": {
102071
102069
  "text": "string"
102072
102070
  },
102073
- "fieldName": "name",
102071
+ "default": "''",
102072
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
102073
+ "fieldName": "accessibilityCurrent",
102074
102074
  "inheritedFrom": {
102075
- "name": "SbbFormAssociatedMixin",
102076
- "module": "core/mixins/form-associated-mixin.js"
102075
+ "name": "SbbLinkBaseElement",
102076
+ "module": "core/base-elements/link-base-element.js"
102077
102077
  }
102078
102078
  }
102079
102079
  ]
@@ -102082,10 +102082,10 @@
102082
102082
  "exports": [
102083
102083
  {
102084
102084
  "kind": "js",
102085
- "name": "SbbBlockLinkButtonElement",
102085
+ "name": "SbbBlockLinkElement",
102086
102086
  "declaration": {
102087
- "name": "SbbBlockLinkButtonElement",
102088
- "module": "link/block-link-button/block-link-button.component.js"
102087
+ "name": "SbbBlockLinkElement",
102088
+ "module": "link/block-link/block-link.component.js"
102089
102089
  }
102090
102090
  }
102091
102091
  ]
@@ -107357,12 +107357,12 @@
107357
107357
  },
107358
107358
  {
107359
107359
  "kind": "javascript-module",
107360
- "path": "menu/menu-link/menu-link.component.js",
107360
+ "path": "menu/menu-button/menu-button.component.js",
107361
107361
  "declarations": [
107362
107362
  {
107363
107363
  "kind": "class",
107364
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
107365
- "name": "SbbMenuLinkElement",
107364
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
107365
+ "name": "SbbMenuButtonElement",
107366
107366
  "cssProperties": [
107367
107367
  {
107368
107368
  "description": "Can be used to modify horizontal padding.",
@@ -107372,7 +107372,7 @@
107372
107372
  ],
107373
107373
  "slots": [
107374
107374
  {
107375
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
107375
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
107376
107376
  "name": ""
107377
107377
  },
107378
107378
  {
@@ -107394,20 +107394,21 @@
107394
107394
  "name": "SbbElement",
107395
107395
  "module": "core/base-elements/element.js"
107396
107396
  },
107397
- "default": "'sbb-menu-link'"
107397
+ "default": "'sbb-menu-button'"
107398
107398
  },
107399
107399
  {
107400
107400
  "kind": "field",
107401
- "name": "anchorRole",
107401
+ "name": "role",
107402
107402
  "type": {
107403
- "text": "string"
107403
+ "text": "ElementInternals['role']"
107404
107404
  },
107405
- "privacy": "protected",
107405
+ "privacy": "public",
107406
+ "static": true,
107406
107407
  "readonly": true,
107407
107408
  "default": "'menuitem'",
107408
107409
  "inheritedFrom": {
107409
- "name": "SbbLinkBaseElement",
107410
- "module": "core/base-elements/link-base-element.js"
107410
+ "name": "SbbButtonLikeBaseElement",
107411
+ "module": "core/base-elements/button-base-element.js"
107411
107412
  }
107412
107413
  },
107413
107414
  {
@@ -107426,6 +107427,50 @@
107426
107427
  "module": "core/mixins/disabled-mixin.js"
107427
107428
  }
107428
107429
  },
107430
+ {
107431
+ "kind": "field",
107432
+ "name": "disabled",
107433
+ "privacy": "public",
107434
+ "description": "Whether the component is disabled.",
107435
+ "default": "false",
107436
+ "type": {
107437
+ "text": "boolean"
107438
+ },
107439
+ "attribute": "disabled",
107440
+ "reflects": true,
107441
+ "inheritedFrom": {
107442
+ "name": "SbbDisabledMixin",
107443
+ "module": "core/mixins/disabled-mixin.js"
107444
+ }
107445
+ },
107446
+ {
107447
+ "kind": "field",
107448
+ "name": "#disabled",
107449
+ "privacy": "private",
107450
+ "type": {
107451
+ "text": "boolean"
107452
+ },
107453
+ "default": "false",
107454
+ "inheritedFrom": {
107455
+ "name": "SbbDisabledMixin",
107456
+ "module": "core/mixins/disabled-mixin.js"
107457
+ }
107458
+ },
107459
+ {
107460
+ "kind": "method",
107461
+ "name": "isDisabledExternally",
107462
+ "privacy": "protected",
107463
+ "return": {
107464
+ "type": {
107465
+ "text": "boolean"
107466
+ }
107467
+ },
107468
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107469
+ "inheritedFrom": {
107470
+ "name": "SbbDisabledMixin",
107471
+ "module": "core/mixins/disabled-mixin.js"
107472
+ }
107473
+ },
107429
107474
  {
107430
107475
  "kind": "field",
107431
107476
  "name": "styles",
@@ -107523,181 +107568,464 @@
107523
107568
  },
107524
107569
  {
107525
107570
  "kind": "field",
107526
- "name": "disabled",
107571
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
107572
+ "type": {
107573
+ "text": "array"
107574
+ },
107575
+ "privacy": "private",
107576
+ "readonly": true,
107577
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
107578
+ "inheritedFrom": {
107579
+ "name": "SbbButtonBaseElement",
107580
+ "module": "core/base-elements/button-base-element.js"
107581
+ }
107582
+ },
107583
+ {
107584
+ "kind": "field",
107585
+ "name": "value",
107586
+ "type": {
107587
+ "text": "string"
107588
+ },
107527
107589
  "privacy": "public",
107528
- "description": "Whether the component is disabled.",
107529
- "default": "false",
107590
+ "inheritedFrom": {
107591
+ "name": "SbbButtonBaseElement",
107592
+ "module": "core/base-elements/button-base-element.js"
107593
+ },
107594
+ "default": "''",
107595
+ "description": "Value of the form element.",
107596
+ "attribute": "value"
107597
+ },
107598
+ {
107599
+ "kind": "field",
107600
+ "name": "type",
107601
+ "privacy": "public",
107602
+ "description": "The type attribute to use for the button.",
107603
+ "default": "'button'",
107530
107604
  "type": {
107531
- "text": "boolean"
107605
+ "text": "SbbButtonType"
107532
107606
  },
107533
- "attribute": "disabled",
107534
- "reflects": true,
107607
+ "attribute": "type",
107535
107608
  "inheritedFrom": {
107536
- "name": "SbbDisabledMixin",
107537
- "module": "core/mixins/disabled-mixin.js"
107609
+ "name": "SbbButtonBaseElement",
107610
+ "module": "core/base-elements/button-base-element.js"
107538
107611
  }
107539
107612
  },
107540
107613
  {
107541
107614
  "kind": "field",
107542
- "name": "#disabled",
107543
- "privacy": "private",
107615
+ "name": "form",
107544
107616
  "type": {
107545
- "text": "boolean"
107617
+ "text": "HTMLFormElement | null"
107546
107618
  },
107547
- "default": "false",
107619
+ "privacy": "public",
107620
+ "description": "The `<form>` element to associate the button with.",
107548
107621
  "inheritedFrom": {
107549
- "name": "SbbDisabledMixin",
107550
- "module": "core/mixins/disabled-mixin.js"
107622
+ "name": "SbbButtonBaseElement",
107623
+ "module": "core/base-elements/button-base-element.js"
107624
+ },
107625
+ "attribute": "form"
107626
+ },
107627
+ {
107628
+ "kind": "field",
107629
+ "name": "_formId",
107630
+ "type": {
107631
+ "text": "string"
107632
+ },
107633
+ "privacy": "private",
107634
+ "default": "''",
107635
+ "inheritedFrom": {
107636
+ "name": "SbbButtonBaseElement",
107637
+ "module": "core/base-elements/button-base-element.js"
107638
+ }
107639
+ },
107640
+ {
107641
+ "kind": "field",
107642
+ "name": "_handleButtonClick",
107643
+ "privacy": "private",
107644
+ "inheritedFrom": {
107645
+ "name": "SbbButtonBaseElement",
107646
+ "module": "core/base-elements/button-base-element.js"
107551
107647
  }
107552
107648
  },
107553
107649
  {
107554
107650
  "kind": "method",
107555
- "name": "isDisabledExternally",
107556
- "privacy": "protected",
107651
+ "name": "_requestSubmit",
107652
+ "privacy": "private",
107557
107653
  "return": {
107558
107654
  "type": {
107559
- "text": "boolean"
107655
+ "text": "void"
107560
107656
  }
107561
107657
  },
107562
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107658
+ "parameters": [
107659
+ {
107660
+ "name": "form",
107661
+ "type": {
107662
+ "text": "HTMLFormElement"
107663
+ }
107664
+ }
107665
+ ],
107563
107666
  "inheritedFrom": {
107564
- "name": "SbbDisabledMixin",
107565
- "module": "core/mixins/disabled-mixin.js"
107667
+ "name": "SbbButtonBaseElement",
107668
+ "module": "core/base-elements/button-base-element.js"
107566
107669
  }
107567
107670
  },
107568
107671
  {
107569
107672
  "kind": "field",
107570
- "name": "href",
107571
- "type": {
107572
- "text": "string"
107573
- },
107574
- "privacy": "public",
107575
- "default": "''",
107576
- "description": "The href value you want to link to.",
107577
- "attribute": "href",
107578
- "reflects": true,
107673
+ "name": "_formKeyDown",
107674
+ "privacy": "private",
107579
107675
  "inheritedFrom": {
107580
- "name": "SbbLinkBaseElement",
107581
- "module": "core/base-elements/link-base-element.js"
107676
+ "name": "SbbButtonBaseElement",
107677
+ "module": "core/base-elements/button-base-element.js"
107582
107678
  }
107583
107679
  },
107584
107680
  {
107585
107681
  "kind": "field",
107586
- "name": "target",
107682
+ "name": "formAssociated",
107587
107683
  "type": {
107588
- "text": "LinkTargetType | string"
107684
+ "text": "boolean"
107589
107685
  },
107590
107686
  "privacy": "public",
107591
- "default": "''",
107592
- "description": "Where to display the linked URL.",
107593
- "attribute": "target",
107594
- "reflects": true,
107687
+ "static": true,
107688
+ "default": "true",
107595
107689
  "inheritedFrom": {
107596
- "name": "SbbLinkBaseElement",
107597
- "module": "core/base-elements/link-base-element.js"
107690
+ "name": "SbbFormAssociatedMixin",
107691
+ "module": "core/mixins/form-associated-mixin.js"
107598
107692
  }
107599
107693
  },
107600
107694
  {
107601
107695
  "kind": "field",
107602
- "name": "rel",
107696
+ "name": "name",
107697
+ "privacy": "public",
107698
+ "description": "Name of the form element. Will be read from name attribute.",
107603
107699
  "type": {
107604
107700
  "text": "string"
107605
107701
  },
107606
- "privacy": "public",
107607
- "default": "''",
107608
- "description": "The relationship of the linked URL as space-separated link types.",
107609
- "attribute": "rel",
107610
- "reflects": true,
107702
+ "attribute": "name",
107611
107703
  "inheritedFrom": {
107612
- "name": "SbbLinkBaseElement",
107613
- "module": "core/base-elements/link-base-element.js"
107704
+ "name": "SbbFormAssociatedMixin",
107705
+ "module": "core/mixins/form-associated-mixin.js"
107614
107706
  }
107615
107707
  },
107616
107708
  {
107617
107709
  "kind": "field",
107618
- "name": "download",
107710
+ "name": "validity",
107619
107711
  "type": {
107620
- "text": "boolean"
107712
+ "text": "ValidityState"
107621
107713
  },
107622
107714
  "privacy": "public",
107623
- "default": "false",
107624
- "description": "Whether the browser will show the download dialog on click.",
107625
- "attribute": "download",
107626
- "reflects": true,
107715
+ "description": "Returns the ValidityState object for this element.",
107716
+ "readonly": true,
107627
107717
  "inheritedFrom": {
107628
- "name": "SbbLinkBaseElement",
107629
- "module": "core/base-elements/link-base-element.js"
107718
+ "name": "SbbFormAssociatedMixin",
107719
+ "module": "core/mixins/form-associated-mixin.js"
107630
107720
  }
107631
107721
  },
107632
107722
  {
107633
107723
  "kind": "field",
107634
- "name": "accessibilityLabel",
107724
+ "name": "validationMessage",
107635
107725
  "type": {
107636
107726
  "text": "string"
107637
107727
  },
107638
107728
  "privacy": "public",
107639
- "default": "''",
107640
- "description": "This will be forwarded as aria-label to the inner anchor element.",
107641
- "attribute": "accessibility-label",
107729
+ "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.",
107730
+ "readonly": true,
107642
107731
  "inheritedFrom": {
107643
- "name": "SbbLinkBaseElement",
107644
- "module": "core/base-elements/link-base-element.js"
107732
+ "name": "SbbFormAssociatedMixin",
107733
+ "module": "core/mixins/form-associated-mixin.js"
107645
107734
  }
107646
107735
  },
107647
107736
  {
107648
107737
  "kind": "field",
107649
- "name": "accessibilityCurrent",
107738
+ "name": "willValidate",
107650
107739
  "type": {
107651
- "text": "string"
107740
+ "text": "boolean"
107652
107741
  },
107653
107742
  "privacy": "public",
107654
- "default": "''",
107655
- "description": "This will be forwarded as aria-current to the inner anchor element.",
107656
- "attribute": "accessibility-current",
107743
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
107744
+ "readonly": true,
107657
107745
  "inheritedFrom": {
107658
- "name": "SbbLinkBaseElement",
107659
- "module": "core/base-elements/link-base-element.js"
107746
+ "name": "SbbFormAssociatedMixin",
107747
+ "module": "core/mixins/form-associated-mixin.js"
107660
107748
  }
107661
107749
  },
107662
107750
  {
107663
107751
  "kind": "field",
107664
- "name": "language",
107665
- "privacy": "protected",
107666
- "default": "new SbbLanguageController(this)",
107752
+ "name": "_validityStates",
107753
+ "privacy": "private",
107754
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
107667
107755
  "inheritedFrom": {
107668
- "name": "SbbLinkBaseElement",
107669
- "module": "core/base-elements/link-base-element.js"
107756
+ "name": "SbbFormAssociatedMixin",
107757
+ "module": "core/mixins/form-associated-mixin.js"
107670
107758
  }
107671
107759
  },
107672
107760
  {
107673
107761
  "kind": "field",
107674
- "name": "_evaluateRelAttribute",
107762
+ "name": "formDisabled",
107763
+ "type": {
107764
+ "text": "boolean"
107765
+ },
107766
+ "privacy": "protected",
107767
+ "default": "false",
107768
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
107769
+ "inheritedFrom": {
107770
+ "name": "SbbFormAssociatedMixin",
107771
+ "module": "core/mixins/form-associated-mixin.js"
107772
+ }
107773
+ },
107774
+ {
107775
+ "kind": "method",
107776
+ "name": "checkValidity",
107777
+ "privacy": "public",
107778
+ "return": {
107779
+ "type": {
107780
+ "text": "boolean"
107781
+ }
107782
+ },
107783
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
107784
+ "inheritedFrom": {
107785
+ "name": "SbbFormAssociatedMixin",
107786
+ "module": "core/mixins/form-associated-mixin.js"
107787
+ }
107788
+ },
107789
+ {
107790
+ "kind": "method",
107791
+ "name": "reportValidity",
107792
+ "privacy": "public",
107793
+ "return": {
107794
+ "type": {
107795
+ "text": "boolean"
107796
+ }
107797
+ },
107798
+ "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.",
107799
+ "inheritedFrom": {
107800
+ "name": "SbbFormAssociatedMixin",
107801
+ "module": "core/mixins/form-associated-mixin.js"
107802
+ }
107803
+ },
107804
+ {
107805
+ "kind": "method",
107806
+ "name": "setCustomValidity",
107807
+ "privacy": "public",
107808
+ "return": {
107809
+ "type": {
107810
+ "text": "void"
107811
+ }
107812
+ },
107813
+ "parameters": [
107814
+ {
107815
+ "name": "message",
107816
+ "type": {
107817
+ "text": "string"
107818
+ }
107819
+ }
107820
+ ],
107821
+ "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.",
107822
+ "inheritedFrom": {
107823
+ "name": "SbbFormAssociatedMixin",
107824
+ "module": "core/mixins/form-associated-mixin.js"
107825
+ }
107826
+ },
107827
+ {
107828
+ "kind": "method",
107829
+ "name": "_hasDisabledAncestor",
107675
107830
  "privacy": "private",
107831
+ "return": {
107832
+ "type": {
107833
+ "text": "boolean"
107834
+ }
107835
+ },
107676
107836
  "inheritedFrom": {
107677
- "name": "SbbLinkBaseElement",
107678
- "module": "core/base-elements/link-base-element.js"
107837
+ "name": "SbbFormAssociatedMixin",
107838
+ "module": "core/mixins/form-associated-mixin.js"
107679
107839
  }
107680
107840
  },
107681
107841
  {
107682
107842
  "kind": "method",
107683
- "name": "renderLink",
107843
+ "name": "updateFormValue",
107684
107844
  "privacy": "protected",
107685
107845
  "return": {
107686
107846
  "type": {
107687
- "text": "TemplateResult"
107847
+ "text": "void"
107848
+ }
107849
+ },
107850
+ "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",
107851
+ "inheritedFrom": {
107852
+ "name": "SbbFormAssociatedMixin",
107853
+ "module": "core/mixins/form-associated-mixin.js"
107854
+ }
107855
+ },
107856
+ {
107857
+ "kind": "method",
107858
+ "name": "formState",
107859
+ "privacy": "protected",
107860
+ "return": {
107861
+ "type": {
107862
+ "text": "FormRestoreState"
107863
+ }
107864
+ },
107865
+ "inheritedFrom": {
107866
+ "name": "SbbFormAssociatedMixin",
107867
+ "module": "core/mixins/form-associated-mixin.js"
107868
+ }
107869
+ },
107870
+ {
107871
+ "kind": "method",
107872
+ "name": "setValidityFlag",
107873
+ "privacy": "protected",
107874
+ "return": {
107875
+ "type": {
107876
+ "text": "void"
107688
107877
  }
107689
107878
  },
107690
107879
  "parameters": [
107691
107880
  {
107692
- "name": "renderContent",
107881
+ "name": "flag",
107693
107882
  "type": {
107694
- "text": "TemplateResult"
107883
+ "text": "T"
107884
+ }
107885
+ },
107886
+ {
107887
+ "name": "message",
107888
+ "type": {
107889
+ "text": "string"
107890
+ }
107891
+ },
107892
+ {
107893
+ "name": "flagValue",
107894
+ "optional": true,
107895
+ "type": {
107896
+ "text": "ValidityStateFlags[T]"
107695
107897
  }
107696
107898
  }
107697
107899
  ],
107900
+ "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).",
107698
107901
  "inheritedFrom": {
107699
- "name": "SbbLinkBaseElement",
107700
- "module": "core/base-elements/link-base-element.js"
107902
+ "name": "SbbFormAssociatedMixin",
107903
+ "module": "core/mixins/form-associated-mixin.js"
107904
+ }
107905
+ },
107906
+ {
107907
+ "kind": "method",
107908
+ "name": "removeValidityFlag",
107909
+ "privacy": "protected",
107910
+ "return": {
107911
+ "type": {
107912
+ "text": "void"
107913
+ }
107914
+ },
107915
+ "parameters": [
107916
+ {
107917
+ "name": "flag",
107918
+ "type": {
107919
+ "text": "T"
107920
+ }
107921
+ }
107922
+ ],
107923
+ "description": "Removes the validity state flag entry and updates validity state.",
107924
+ "inheritedFrom": {
107925
+ "name": "SbbFormAssociatedMixin",
107926
+ "module": "core/mixins/form-associated-mixin.js"
107927
+ }
107928
+ },
107929
+ {
107930
+ "kind": "method",
107931
+ "name": "validate",
107932
+ "privacy": "protected",
107933
+ "return": {
107934
+ "type": {
107935
+ "text": "void"
107936
+ }
107937
+ },
107938
+ "description": "To be called whenever the current element needs to be validated.",
107939
+ "inheritedFrom": {
107940
+ "name": "SbbFormAssociatedMixin",
107941
+ "module": "core/mixins/form-associated-mixin.js"
107942
+ }
107943
+ },
107944
+ {
107945
+ "kind": "method",
107946
+ "name": "shouldValidate",
107947
+ "privacy": "protected",
107948
+ "return": {
107949
+ "type": {
107950
+ "text": "boolean"
107951
+ }
107952
+ },
107953
+ "parameters": [
107954
+ {
107955
+ "name": "name",
107956
+ "type": {
107957
+ "text": "PropertyKey | undefined"
107958
+ }
107959
+ }
107960
+ ],
107961
+ "description": "Whether validation should be run on a property change with the given name.",
107962
+ "inheritedFrom": {
107963
+ "name": "SbbFormAssociatedMixin",
107964
+ "module": "core/mixins/form-associated-mixin.js"
107965
+ }
107966
+ },
107967
+ {
107968
+ "kind": "method",
107969
+ "name": "_setInternalValidity",
107970
+ "privacy": "private",
107971
+ "return": {
107972
+ "type": {
107973
+ "text": "void"
107974
+ }
107975
+ },
107976
+ "inheritedFrom": {
107977
+ "name": "SbbFormAssociatedMixin",
107978
+ "module": "core/mixins/form-associated-mixin.js"
107979
+ }
107980
+ },
107981
+ {
107982
+ "kind": "field",
107983
+ "name": "_preventScrollOnSpaceKeydown",
107984
+ "privacy": "private",
107985
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
107986
+ "parameters": [
107987
+ {
107988
+ "description": "The origin event.",
107989
+ "name": "event"
107990
+ }
107991
+ ],
107992
+ "inheritedFrom": {
107993
+ "name": "SbbButtonLikeBaseElement",
107994
+ "module": "core/base-elements/button-base-element.js"
107995
+ }
107996
+ },
107997
+ {
107998
+ "kind": "field",
107999
+ "name": "_removeActiveMarker",
108000
+ "privacy": "private",
108001
+ "inheritedFrom": {
108002
+ "name": "SbbButtonLikeBaseElement",
108003
+ "module": "core/base-elements/button-base-element.js"
108004
+ }
108005
+ },
108006
+ {
108007
+ "kind": "field",
108008
+ "name": "_dispatchClickEventOnSpaceKeyup",
108009
+ "privacy": "private",
108010
+ "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.",
108011
+ "parameters": [
108012
+ {
108013
+ "description": "The origin event.",
108014
+ "name": "event"
108015
+ }
108016
+ ],
108017
+ "inheritedFrom": {
108018
+ "name": "SbbButtonLikeBaseElement",
108019
+ "module": "core/base-elements/button-base-element.js"
108020
+ }
108021
+ },
108022
+ {
108023
+ "kind": "field",
108024
+ "name": "_dispatchClickEvent",
108025
+ "privacy": "private",
108026
+ "inheritedFrom": {
108027
+ "name": "SbbButtonLikeBaseElement",
108028
+ "module": "core/base-elements/button-base-element.js"
107701
108029
  }
107702
108030
  },
107703
108031
  {
@@ -107848,7 +108176,7 @@
107848
108176
  ],
107849
108177
  "mixins": [
107850
108178
  {
107851
- "name": "SbbDisabledInteractiveMixin",
108179
+ "name": "SbbDisabledTabIndexActionMixin",
107852
108180
  "module": "core/mixins.js"
107853
108181
  },
107854
108182
  {
@@ -107857,10 +108185,10 @@
107857
108185
  }
107858
108186
  ],
107859
108187
  "superclass": {
107860
- "name": "SbbLinkBaseElement",
108188
+ "name": "SbbButtonBaseElement",
107861
108189
  "module": "core/base-elements.js"
107862
108190
  },
107863
- "tagName": "sbb-menu-link",
108191
+ "tagName": "sbb-menu-button",
107864
108192
  "customElement": true,
107865
108193
  "attributes": [
107866
108194
  {
@@ -107876,19 +108204,6 @@
107876
108204
  "module": "core/mixins/disabled-mixin.js"
107877
108205
  }
107878
108206
  },
107879
- {
107880
- "name": "icon-name",
107881
- "type": {
107882
- "text": "string"
107883
- },
107884
- "default": "''",
107885
- "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.",
107886
- "fieldName": "iconName",
107887
- "inheritedFrom": {
107888
- "name": "SbbIconNameMixin",
107889
- "module": "icon/icon-name-mixin.js"
107890
- }
107891
- },
107892
108207
  {
107893
108208
  "name": "disabled",
107894
108209
  "description": "Whether the component is disabled.",
@@ -107903,768 +108218,425 @@
107903
108218
  }
107904
108219
  },
107905
108220
  {
107906
- "name": "href",
107907
- "type": {
107908
- "text": "string"
107909
- },
107910
- "default": "''",
107911
- "description": "The href value you want to link to.",
107912
- "fieldName": "href",
107913
- "inheritedFrom": {
107914
- "name": "SbbLinkBaseElement",
107915
- "module": "core/base-elements/link-base-element.js"
107916
- }
107917
- },
107918
- {
107919
- "name": "target",
107920
- "type": {
107921
- "text": "LinkTargetType | string"
107922
- },
107923
- "default": "''",
107924
- "description": "Where to display the linked URL.",
107925
- "fieldName": "target",
107926
- "inheritedFrom": {
107927
- "name": "SbbLinkBaseElement",
107928
- "module": "core/base-elements/link-base-element.js"
107929
- }
107930
- },
107931
- {
107932
- "name": "rel",
107933
- "type": {
107934
- "text": "string"
107935
- },
107936
- "default": "''",
107937
- "description": "The relationship of the linked URL as space-separated link types.",
107938
- "fieldName": "rel",
107939
- "inheritedFrom": {
107940
- "name": "SbbLinkBaseElement",
107941
- "module": "core/base-elements/link-base-element.js"
107942
- }
107943
- },
107944
- {
107945
- "name": "download",
107946
- "type": {
107947
- "text": "boolean"
107948
- },
107949
- "default": "false",
107950
- "description": "Whether the browser will show the download dialog on click.",
107951
- "fieldName": "download",
107952
- "inheritedFrom": {
107953
- "name": "SbbLinkBaseElement",
107954
- "module": "core/base-elements/link-base-element.js"
107955
- }
107956
- },
107957
- {
107958
- "name": "accessibility-label",
107959
- "type": {
107960
- "text": "string"
107961
- },
107962
- "default": "''",
107963
- "description": "This will be forwarded as aria-label to the inner anchor element.",
107964
- "fieldName": "accessibilityLabel",
107965
- "inheritedFrom": {
107966
- "name": "SbbLinkBaseElement",
107967
- "module": "core/base-elements/link-base-element.js"
107968
- }
107969
- },
107970
- {
107971
- "name": "accessibility-current",
107972
- "type": {
107973
- "text": "string"
107974
- },
107975
- "default": "''",
107976
- "description": "This will be forwarded as aria-current to the inner anchor element.",
107977
- "fieldName": "accessibilityCurrent",
107978
- "inheritedFrom": {
107979
- "name": "SbbLinkBaseElement",
107980
- "module": "core/base-elements/link-base-element.js"
107981
- }
107982
- }
107983
- ]
107984
- }
107985
- ],
107986
- "exports": [
107987
- {
107988
- "kind": "js",
107989
- "name": "SbbMenuLinkElement",
107990
- "declaration": {
107991
- "name": "SbbMenuLinkElement",
107992
- "module": "menu/menu-link/menu-link.component.js"
107993
- }
107994
- }
107995
- ]
107996
- },
107997
- {
107998
- "kind": "javascript-module",
107999
- "path": "menu/menu-button/menu-button.component.js",
108000
- "declarations": [
108001
- {
108002
- "kind": "class",
108003
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
108004
- "name": "SbbMenuButtonElement",
108005
- "cssProperties": [
108006
- {
108007
- "description": "Can be used to modify horizontal padding.",
108008
- "name": "--sbb-menu-action-outer-horizontal-padding",
108009
- "default": "var(--sbb-spacing-fixed-3x)"
108010
- }
108011
- ],
108012
- "slots": [
108013
- {
108014
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
108015
- "name": ""
108016
- },
108017
- {
108018
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
108019
- "name": "icon"
108020
- }
108021
- ],
108022
- "members": [
108023
- {
108024
- "kind": "field",
108025
- "name": "elementName",
108026
- "type": {
108027
- "text": "string"
108028
- },
108029
- "privacy": "public",
108030
- "static": true,
108031
- "readonly": true,
108032
- "inheritedFrom": {
108033
- "name": "SbbElement",
108034
- "module": "core/base-elements/element.js"
108035
- },
108036
- "default": "'sbb-menu-button'"
108037
- },
108038
- {
108039
- "kind": "field",
108040
- "name": "role",
108041
- "type": {
108042
- "text": "ElementInternals['role']"
108043
- },
108044
- "privacy": "public",
108045
- "static": true,
108046
- "readonly": true,
108047
- "default": "'menuitem'",
108048
- "inheritedFrom": {
108049
- "name": "SbbButtonLikeBaseElement",
108050
- "module": "core/base-elements/button-base-element.js"
108051
- }
108052
- },
108053
- {
108054
- "kind": "field",
108055
- "name": "disabledInteractive",
108056
- "type": {
108057
- "text": "boolean"
108058
- },
108059
- "privacy": "public",
108060
- "default": "false",
108061
- "description": "Whether the button should be aria-disabled but stay interactive.",
108062
- "attribute": "disabled-interactive",
108063
- "reflects": true,
108064
- "inheritedFrom": {
108065
- "name": "SbbDisabledInteractiveMixin",
108066
- "module": "core/mixins/disabled-mixin.js"
108067
- }
108068
- },
108069
- {
108070
- "kind": "field",
108071
- "name": "disabled",
108072
- "privacy": "public",
108073
- "description": "Whether the component is disabled.",
108074
- "default": "false",
108075
- "type": {
108076
- "text": "boolean"
108077
- },
108078
- "attribute": "disabled",
108079
- "reflects": true,
108080
- "inheritedFrom": {
108081
- "name": "SbbDisabledMixin",
108082
- "module": "core/mixins/disabled-mixin.js"
108083
- }
108084
- },
108085
- {
108086
- "kind": "field",
108087
- "name": "#disabled",
108088
- "privacy": "private",
108089
- "type": {
108090
- "text": "boolean"
108091
- },
108092
- "default": "false",
108093
- "inheritedFrom": {
108094
- "name": "SbbDisabledMixin",
108095
- "module": "core/mixins/disabled-mixin.js"
108096
- }
108097
- },
108098
- {
108099
- "kind": "method",
108100
- "name": "isDisabledExternally",
108101
- "privacy": "protected",
108102
- "return": {
108103
- "type": {
108104
- "text": "boolean"
108105
- }
108106
- },
108107
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
108108
- "inheritedFrom": {
108109
- "name": "SbbDisabledMixin",
108110
- "module": "core/mixins/disabled-mixin.js"
108111
- }
108112
- },
108113
- {
108114
- "kind": "field",
108115
- "name": "styles",
108116
- "type": {
108117
- "text": "CSSResultGroup"
108118
- },
108119
- "privacy": "public",
108120
- "static": true,
108121
- "default": "[boxSizingStyles, unsafeCSS(style)]",
108122
- "inheritedFrom": {
108123
- "name": "SbbMenuActionCommonElementMixin",
108124
- "module": "menu/common/menu-action-common.js"
108125
- }
108126
- },
108127
- {
108128
- "kind": "method",
108129
- "name": "renderTemplate",
108130
- "privacy": "protected",
108131
- "return": {
108132
- "type": {
108133
- "text": "TemplateResult"
108134
- }
108135
- },
108136
- "description": "Override this method to render the component template.",
108137
- "inheritedFrom": {
108138
- "name": "SbbActionBaseElement",
108139
- "module": "core/base-elements/action-base-element.js"
108140
- }
108141
- },
108142
- {
108143
- "kind": "field",
108144
- "name": "iconName",
108221
+ "name": "icon-name",
108145
108222
  "type": {
108146
108223
  "text": "string"
108147
108224
  },
108148
- "privacy": "public",
108149
108225
  "default": "''",
108150
108226
  "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.",
108151
- "attribute": "icon-name",
108152
- "inheritedFrom": {
108153
- "name": "SbbIconNameMixin",
108154
- "module": "icon/icon-name-mixin.js"
108155
- }
108156
- },
108157
- {
108158
- "kind": "method",
108159
- "name": "renderIconSlot",
108160
- "privacy": "protected",
108161
- "return": {
108162
- "type": {
108163
- "text": "TemplateResult"
108164
- }
108165
- },
108166
- "parameters": [
108167
- {
108168
- "name": "classname",
108169
- "optional": true,
108170
- "type": {
108171
- "text": "string"
108172
- }
108173
- }
108174
- ],
108175
- "inheritedFrom": {
108176
- "name": "SbbIconNameMixin",
108177
- "module": "icon/icon-name-mixin.js"
108178
- }
108179
- },
108180
- {
108181
- "kind": "method",
108182
- "name": "renderIconName",
108183
- "privacy": "protected",
108184
- "return": {
108185
- "type": {
108186
- "text": "string"
108187
- }
108188
- },
108189
- "inheritedFrom": {
108190
- "name": "SbbIconNameMixin",
108191
- "module": "icon/icon-name-mixin.js"
108192
- }
108193
- },
108194
- {
108195
- "kind": "method",
108196
- "name": "_renderIconName",
108197
- "privacy": "private",
108198
- "return": {
108199
- "type": {
108200
- "text": "string"
108201
- }
108202
- },
108227
+ "fieldName": "iconName",
108203
108228
  "inheritedFrom": {
108204
108229
  "name": "SbbIconNameMixin",
108205
108230
  "module": "icon/icon-name-mixin.js"
108206
108231
  }
108207
108232
  },
108208
108233
  {
108209
- "kind": "field",
108210
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
108211
- "type": {
108212
- "text": "array"
108213
- },
108214
- "privacy": "private",
108215
- "readonly": true,
108216
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
108217
- "inheritedFrom": {
108218
- "name": "SbbButtonBaseElement",
108219
- "module": "core/base-elements/button-base-element.js"
108220
- }
108221
- },
108222
- {
108223
- "kind": "field",
108224
108234
  "name": "value",
108225
108235
  "type": {
108226
108236
  "text": "string"
108227
108237
  },
108228
- "privacy": "public",
108238
+ "default": "''",
108239
+ "description": "Value of the form element.",
108240
+ "fieldName": "value",
108229
108241
  "inheritedFrom": {
108230
108242
  "name": "SbbButtonBaseElement",
108231
108243
  "module": "core/base-elements/button-base-element.js"
108232
- },
108233
- "default": "''",
108234
- "description": "Value of the form element.",
108235
- "attribute": "value"
108244
+ }
108236
108245
  },
108237
108246
  {
108238
- "kind": "field",
108239
108247
  "name": "type",
108240
- "privacy": "public",
108241
108248
  "description": "The type attribute to use for the button.",
108242
108249
  "default": "'button'",
108243
108250
  "type": {
108244
108251
  "text": "SbbButtonType"
108245
108252
  },
108246
- "attribute": "type",
108253
+ "fieldName": "type",
108247
108254
  "inheritedFrom": {
108248
108255
  "name": "SbbButtonBaseElement",
108249
108256
  "module": "core/base-elements/button-base-element.js"
108250
108257
  }
108251
108258
  },
108252
108259
  {
108253
- "kind": "field",
108254
108260
  "name": "form",
108255
- "type": {
108256
- "text": "HTMLFormElement | null"
108257
- },
108258
- "privacy": "public",
108259
108261
  "description": "The `<form>` element to associate the button with.",
108260
- "inheritedFrom": {
108261
- "name": "SbbButtonBaseElement",
108262
- "module": "core/base-elements/button-base-element.js"
108263
- },
108264
- "attribute": "form"
108265
- },
108266
- {
108267
- "kind": "field",
108268
- "name": "_formId",
108269
108262
  "type": {
108270
- "text": "string"
108271
- },
108272
- "privacy": "private",
108273
- "default": "''",
108274
- "inheritedFrom": {
108275
- "name": "SbbButtonBaseElement",
108276
- "module": "core/base-elements/button-base-element.js"
108277
- }
108278
- },
108279
- {
108280
- "kind": "field",
108281
- "name": "_handleButtonClick",
108282
- "privacy": "private",
108283
- "inheritedFrom": {
108284
- "name": "SbbButtonBaseElement",
108285
- "module": "core/base-elements/button-base-element.js"
108286
- }
108287
- },
108288
- {
108289
- "kind": "method",
108290
- "name": "_requestSubmit",
108291
- "privacy": "private",
108292
- "return": {
108293
- "type": {
108294
- "text": "void"
108295
- }
108296
- },
108297
- "parameters": [
108298
- {
108299
- "name": "form",
108300
- "type": {
108301
- "text": "HTMLFormElement"
108302
- }
108303
- }
108304
- ],
108305
- "inheritedFrom": {
108306
- "name": "SbbButtonBaseElement",
108307
- "module": "core/base-elements/button-base-element.js"
108308
- }
108309
- },
108310
- {
108311
- "kind": "field",
108312
- "name": "_formKeyDown",
108313
- "privacy": "private",
108314
- "inheritedFrom": {
108315
- "name": "SbbButtonBaseElement",
108316
- "module": "core/base-elements/button-base-element.js"
108317
- }
108318
- },
108319
- {
108320
- "kind": "field",
108321
- "name": "formAssociated",
108322
- "type": {
108323
- "text": "boolean"
108263
+ "text": "HTMLFormElement | null"
108324
108264
  },
108325
- "privacy": "public",
108326
- "static": true,
108327
- "default": "true",
108265
+ "fieldName": "form",
108328
108266
  "inheritedFrom": {
108329
- "name": "SbbFormAssociatedMixin",
108330
- "module": "core/mixins/form-associated-mixin.js"
108267
+ "name": "SbbButtonBaseElement",
108268
+ "module": "core/base-elements/button-base-element.js"
108331
108269
  }
108332
108270
  },
108333
108271
  {
108334
- "kind": "field",
108335
108272
  "name": "name",
108336
- "privacy": "public",
108337
108273
  "description": "Name of the form element. Will be read from name attribute.",
108338
108274
  "type": {
108339
108275
  "text": "string"
108340
108276
  },
108341
- "attribute": "name",
108277
+ "fieldName": "name",
108342
108278
  "inheritedFrom": {
108343
108279
  "name": "SbbFormAssociatedMixin",
108344
108280
  "module": "core/mixins/form-associated-mixin.js"
108345
108281
  }
108282
+ }
108283
+ ]
108284
+ }
108285
+ ],
108286
+ "exports": [
108287
+ {
108288
+ "kind": "js",
108289
+ "name": "SbbMenuButtonElement",
108290
+ "declaration": {
108291
+ "name": "SbbMenuButtonElement",
108292
+ "module": "menu/menu-button/menu-button.component.js"
108293
+ }
108294
+ }
108295
+ ]
108296
+ },
108297
+ {
108298
+ "kind": "javascript-module",
108299
+ "path": "menu/menu-link/menu-link.component.js",
108300
+ "declarations": [
108301
+ {
108302
+ "kind": "class",
108303
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
108304
+ "name": "SbbMenuLinkElement",
108305
+ "cssProperties": [
108306
+ {
108307
+ "description": "Can be used to modify horizontal padding.",
108308
+ "name": "--sbb-menu-action-outer-horizontal-padding",
108309
+ "default": "var(--sbb-spacing-fixed-3x)"
108310
+ }
108311
+ ],
108312
+ "slots": [
108313
+ {
108314
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
108315
+ "name": ""
108346
108316
  },
108317
+ {
108318
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
108319
+ "name": "icon"
108320
+ }
108321
+ ],
108322
+ "members": [
108347
108323
  {
108348
108324
  "kind": "field",
108349
- "name": "validity",
108325
+ "name": "elementName",
108350
108326
  "type": {
108351
- "text": "ValidityState"
108327
+ "text": "string"
108352
108328
  },
108353
108329
  "privacy": "public",
108354
- "description": "Returns the ValidityState object for this element.",
108330
+ "static": true,
108355
108331
  "readonly": true,
108356
108332
  "inheritedFrom": {
108357
- "name": "SbbFormAssociatedMixin",
108358
- "module": "core/mixins/form-associated-mixin.js"
108359
- }
108333
+ "name": "SbbElement",
108334
+ "module": "core/base-elements/element.js"
108335
+ },
108336
+ "default": "'sbb-menu-link'"
108360
108337
  },
108361
108338
  {
108362
108339
  "kind": "field",
108363
- "name": "validationMessage",
108340
+ "name": "anchorRole",
108364
108341
  "type": {
108365
108342
  "text": "string"
108366
108343
  },
108367
- "privacy": "public",
108368
- "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.",
108344
+ "privacy": "protected",
108369
108345
  "readonly": true,
108346
+ "default": "'menuitem'",
108370
108347
  "inheritedFrom": {
108371
- "name": "SbbFormAssociatedMixin",
108372
- "module": "core/mixins/form-associated-mixin.js"
108348
+ "name": "SbbLinkBaseElement",
108349
+ "module": "core/base-elements/link-base-element.js"
108373
108350
  }
108374
108351
  },
108375
108352
  {
108376
108353
  "kind": "field",
108377
- "name": "willValidate",
108354
+ "name": "disabledInteractive",
108378
108355
  "type": {
108379
108356
  "text": "boolean"
108380
108357
  },
108381
108358
  "privacy": "public",
108382
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
108383
- "readonly": true,
108384
- "inheritedFrom": {
108385
- "name": "SbbFormAssociatedMixin",
108386
- "module": "core/mixins/form-associated-mixin.js"
108387
- }
108388
- },
108389
- {
108390
- "kind": "field",
108391
- "name": "_validityStates",
108392
- "privacy": "private",
108393
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
108359
+ "default": "false",
108360
+ "description": "Whether the button should be aria-disabled but stay interactive.",
108361
+ "attribute": "disabled-interactive",
108362
+ "reflects": true,
108394
108363
  "inheritedFrom": {
108395
- "name": "SbbFormAssociatedMixin",
108396
- "module": "core/mixins/form-associated-mixin.js"
108364
+ "name": "SbbDisabledInteractiveMixin",
108365
+ "module": "core/mixins/disabled-mixin.js"
108397
108366
  }
108398
108367
  },
108399
108368
  {
108400
108369
  "kind": "field",
108401
- "name": "formDisabled",
108370
+ "name": "styles",
108402
108371
  "type": {
108403
- "text": "boolean"
108372
+ "text": "CSSResultGroup"
108404
108373
  },
108405
- "privacy": "protected",
108406
- "default": "false",
108407
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
108374
+ "privacy": "public",
108375
+ "static": true,
108376
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
108408
108377
  "inheritedFrom": {
108409
- "name": "SbbFormAssociatedMixin",
108410
- "module": "core/mixins/form-associated-mixin.js"
108378
+ "name": "SbbMenuActionCommonElementMixin",
108379
+ "module": "menu/common/menu-action-common.js"
108411
108380
  }
108412
108381
  },
108413
108382
  {
108414
108383
  "kind": "method",
108415
- "name": "checkValidity",
108416
- "privacy": "public",
108384
+ "name": "renderTemplate",
108385
+ "privacy": "protected",
108417
108386
  "return": {
108418
108387
  "type": {
108419
- "text": "boolean"
108388
+ "text": "TemplateResult"
108420
108389
  }
108421
108390
  },
108422
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
108391
+ "description": "Override this method to render the component template.",
108423
108392
  "inheritedFrom": {
108424
- "name": "SbbFormAssociatedMixin",
108425
- "module": "core/mixins/form-associated-mixin.js"
108393
+ "name": "SbbActionBaseElement",
108394
+ "module": "core/base-elements/action-base-element.js"
108426
108395
  }
108427
108396
  },
108428
108397
  {
108429
- "kind": "method",
108430
- "name": "reportValidity",
108431
- "privacy": "public",
108432
- "return": {
108433
- "type": {
108434
- "text": "boolean"
108435
- }
108398
+ "kind": "field",
108399
+ "name": "iconName",
108400
+ "type": {
108401
+ "text": "string"
108436
108402
  },
108437
- "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.",
108403
+ "privacy": "public",
108404
+ "default": "''",
108405
+ "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.",
108406
+ "attribute": "icon-name",
108438
108407
  "inheritedFrom": {
108439
- "name": "SbbFormAssociatedMixin",
108440
- "module": "core/mixins/form-associated-mixin.js"
108408
+ "name": "SbbIconNameMixin",
108409
+ "module": "icon/icon-name-mixin.js"
108441
108410
  }
108442
108411
  },
108443
108412
  {
108444
108413
  "kind": "method",
108445
- "name": "setCustomValidity",
108446
- "privacy": "public",
108414
+ "name": "renderIconSlot",
108415
+ "privacy": "protected",
108447
108416
  "return": {
108448
108417
  "type": {
108449
- "text": "void"
108418
+ "text": "TemplateResult"
108450
108419
  }
108451
108420
  },
108452
108421
  "parameters": [
108453
108422
  {
108454
- "name": "message",
108423
+ "name": "classname",
108424
+ "optional": true,
108455
108425
  "type": {
108456
108426
  "text": "string"
108457
108427
  }
108458
108428
  }
108459
108429
  ],
108460
- "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.",
108461
108430
  "inheritedFrom": {
108462
- "name": "SbbFormAssociatedMixin",
108463
- "module": "core/mixins/form-associated-mixin.js"
108431
+ "name": "SbbIconNameMixin",
108432
+ "module": "icon/icon-name-mixin.js"
108464
108433
  }
108465
108434
  },
108466
108435
  {
108467
108436
  "kind": "method",
108468
- "name": "_hasDisabledAncestor",
108469
- "privacy": "private",
108437
+ "name": "renderIconName",
108438
+ "privacy": "protected",
108470
108439
  "return": {
108471
108440
  "type": {
108472
- "text": "boolean"
108441
+ "text": "string"
108473
108442
  }
108474
108443
  },
108475
108444
  "inheritedFrom": {
108476
- "name": "SbbFormAssociatedMixin",
108477
- "module": "core/mixins/form-associated-mixin.js"
108445
+ "name": "SbbIconNameMixin",
108446
+ "module": "icon/icon-name-mixin.js"
108478
108447
  }
108479
108448
  },
108480
108449
  {
108481
108450
  "kind": "method",
108482
- "name": "updateFormValue",
108483
- "privacy": "protected",
108451
+ "name": "_renderIconName",
108452
+ "privacy": "private",
108484
108453
  "return": {
108485
108454
  "type": {
108486
- "text": "void"
108455
+ "text": "string"
108487
108456
  }
108488
108457
  },
108489
- "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",
108490
108458
  "inheritedFrom": {
108491
- "name": "SbbFormAssociatedMixin",
108492
- "module": "core/mixins/form-associated-mixin.js"
108459
+ "name": "SbbIconNameMixin",
108460
+ "module": "icon/icon-name-mixin.js"
108493
108461
  }
108494
108462
  },
108495
108463
  {
108496
- "kind": "method",
108497
- "name": "formState",
108498
- "privacy": "protected",
108499
- "return": {
108500
- "type": {
108501
- "text": "FormRestoreState"
108502
- }
108464
+ "kind": "field",
108465
+ "name": "disabled",
108466
+ "privacy": "public",
108467
+ "description": "Whether the component is disabled.",
108468
+ "default": "false",
108469
+ "type": {
108470
+ "text": "boolean"
108503
108471
  },
108472
+ "attribute": "disabled",
108473
+ "reflects": true,
108504
108474
  "inheritedFrom": {
108505
- "name": "SbbFormAssociatedMixin",
108506
- "module": "core/mixins/form-associated-mixin.js"
108475
+ "name": "SbbDisabledMixin",
108476
+ "module": "core/mixins/disabled-mixin.js"
108507
108477
  }
108508
108478
  },
108509
108479
  {
108510
- "kind": "method",
108511
- "name": "setValidityFlag",
108512
- "privacy": "protected",
108513
- "return": {
108514
- "type": {
108515
- "text": "void"
108516
- }
108480
+ "kind": "field",
108481
+ "name": "#disabled",
108482
+ "privacy": "private",
108483
+ "type": {
108484
+ "text": "boolean"
108517
108485
  },
108518
- "parameters": [
108519
- {
108520
- "name": "flag",
108521
- "type": {
108522
- "text": "T"
108523
- }
108524
- },
108525
- {
108526
- "name": "message",
108527
- "type": {
108528
- "text": "string"
108529
- }
108530
- },
108531
- {
108532
- "name": "flagValue",
108533
- "optional": true,
108534
- "type": {
108535
- "text": "ValidityStateFlags[T]"
108536
- }
108537
- }
108538
- ],
108539
- "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).",
108486
+ "default": "false",
108540
108487
  "inheritedFrom": {
108541
- "name": "SbbFormAssociatedMixin",
108542
- "module": "core/mixins/form-associated-mixin.js"
108488
+ "name": "SbbDisabledMixin",
108489
+ "module": "core/mixins/disabled-mixin.js"
108543
108490
  }
108544
108491
  },
108545
108492
  {
108546
108493
  "kind": "method",
108547
- "name": "removeValidityFlag",
108494
+ "name": "isDisabledExternally",
108548
108495
  "privacy": "protected",
108549
108496
  "return": {
108550
108497
  "type": {
108551
- "text": "void"
108498
+ "text": "boolean"
108552
108499
  }
108553
108500
  },
108554
- "parameters": [
108555
- {
108556
- "name": "flag",
108557
- "type": {
108558
- "text": "T"
108559
- }
108560
- }
108561
- ],
108562
- "description": "Removes the validity state flag entry and updates validity state.",
108501
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
108563
108502
  "inheritedFrom": {
108564
- "name": "SbbFormAssociatedMixin",
108565
- "module": "core/mixins/form-associated-mixin.js"
108503
+ "name": "SbbDisabledMixin",
108504
+ "module": "core/mixins/disabled-mixin.js"
108566
108505
  }
108567
108506
  },
108568
108507
  {
108569
- "kind": "method",
108570
- "name": "validate",
108571
- "privacy": "protected",
108572
- "return": {
108573
- "type": {
108574
- "text": "void"
108575
- }
108508
+ "kind": "field",
108509
+ "name": "href",
108510
+ "type": {
108511
+ "text": "string"
108576
108512
  },
108577
- "description": "To be called whenever the current element needs to be validated.",
108513
+ "privacy": "public",
108514
+ "default": "''",
108515
+ "description": "The href value you want to link to.",
108516
+ "attribute": "href",
108517
+ "reflects": true,
108578
108518
  "inheritedFrom": {
108579
- "name": "SbbFormAssociatedMixin",
108580
- "module": "core/mixins/form-associated-mixin.js"
108519
+ "name": "SbbLinkBaseElement",
108520
+ "module": "core/base-elements/link-base-element.js"
108581
108521
  }
108582
108522
  },
108583
108523
  {
108584
- "kind": "method",
108585
- "name": "shouldValidate",
108586
- "privacy": "protected",
108587
- "return": {
108588
- "type": {
108589
- "text": "boolean"
108590
- }
108524
+ "kind": "field",
108525
+ "name": "target",
108526
+ "type": {
108527
+ "text": "LinkTargetType | string"
108591
108528
  },
108592
- "parameters": [
108593
- {
108594
- "name": "name",
108595
- "type": {
108596
- "text": "PropertyKey | undefined"
108597
- }
108598
- }
108599
- ],
108600
- "description": "Whether validation should be run on a property change with the given name.",
108529
+ "privacy": "public",
108530
+ "default": "''",
108531
+ "description": "Where to display the linked URL.",
108532
+ "attribute": "target",
108533
+ "reflects": true,
108601
108534
  "inheritedFrom": {
108602
- "name": "SbbFormAssociatedMixin",
108603
- "module": "core/mixins/form-associated-mixin.js"
108535
+ "name": "SbbLinkBaseElement",
108536
+ "module": "core/base-elements/link-base-element.js"
108604
108537
  }
108605
108538
  },
108606
108539
  {
108607
- "kind": "method",
108608
- "name": "_setInternalValidity",
108609
- "privacy": "private",
108610
- "return": {
108611
- "type": {
108612
- "text": "void"
108613
- }
108540
+ "kind": "field",
108541
+ "name": "rel",
108542
+ "type": {
108543
+ "text": "string"
108614
108544
  },
108545
+ "privacy": "public",
108546
+ "default": "''",
108547
+ "description": "The relationship of the linked URL as space-separated link types.",
108548
+ "attribute": "rel",
108549
+ "reflects": true,
108615
108550
  "inheritedFrom": {
108616
- "name": "SbbFormAssociatedMixin",
108617
- "module": "core/mixins/form-associated-mixin.js"
108551
+ "name": "SbbLinkBaseElement",
108552
+ "module": "core/base-elements/link-base-element.js"
108618
108553
  }
108619
108554
  },
108620
108555
  {
108621
108556
  "kind": "field",
108622
- "name": "_preventScrollOnSpaceKeydown",
108623
- "privacy": "private",
108624
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
108625
- "parameters": [
108626
- {
108627
- "description": "The origin event.",
108628
- "name": "event"
108629
- }
108630
- ],
108557
+ "name": "download",
108558
+ "type": {
108559
+ "text": "boolean"
108560
+ },
108561
+ "privacy": "public",
108562
+ "default": "false",
108563
+ "description": "Whether the browser will show the download dialog on click.",
108564
+ "attribute": "download",
108565
+ "reflects": true,
108631
108566
  "inheritedFrom": {
108632
- "name": "SbbButtonLikeBaseElement",
108633
- "module": "core/base-elements/button-base-element.js"
108567
+ "name": "SbbLinkBaseElement",
108568
+ "module": "core/base-elements/link-base-element.js"
108634
108569
  }
108635
108570
  },
108636
108571
  {
108637
108572
  "kind": "field",
108638
- "name": "_removeActiveMarker",
108639
- "privacy": "private",
108573
+ "name": "accessibilityLabel",
108574
+ "type": {
108575
+ "text": "string"
108576
+ },
108577
+ "privacy": "public",
108578
+ "default": "''",
108579
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
108580
+ "attribute": "accessibility-label",
108640
108581
  "inheritedFrom": {
108641
- "name": "SbbButtonLikeBaseElement",
108642
- "module": "core/base-elements/button-base-element.js"
108582
+ "name": "SbbLinkBaseElement",
108583
+ "module": "core/base-elements/link-base-element.js"
108643
108584
  }
108644
108585
  },
108645
108586
  {
108646
108587
  "kind": "field",
108647
- "name": "_dispatchClickEventOnSpaceKeyup",
108648
- "privacy": "private",
108649
- "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.",
108650
- "parameters": [
108651
- {
108652
- "description": "The origin event.",
108653
- "name": "event"
108654
- }
108655
- ],
108588
+ "name": "accessibilityCurrent",
108589
+ "type": {
108590
+ "text": "string"
108591
+ },
108592
+ "privacy": "public",
108593
+ "default": "''",
108594
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
108595
+ "attribute": "accessibility-current",
108656
108596
  "inheritedFrom": {
108657
- "name": "SbbButtonLikeBaseElement",
108658
- "module": "core/base-elements/button-base-element.js"
108597
+ "name": "SbbLinkBaseElement",
108598
+ "module": "core/base-elements/link-base-element.js"
108659
108599
  }
108660
108600
  },
108661
108601
  {
108662
108602
  "kind": "field",
108663
- "name": "_dispatchClickEvent",
108603
+ "name": "language",
108604
+ "privacy": "protected",
108605
+ "default": "new SbbLanguageController(this)",
108606
+ "inheritedFrom": {
108607
+ "name": "SbbLinkBaseElement",
108608
+ "module": "core/base-elements/link-base-element.js"
108609
+ }
108610
+ },
108611
+ {
108612
+ "kind": "field",
108613
+ "name": "_evaluateRelAttribute",
108664
108614
  "privacy": "private",
108665
108615
  "inheritedFrom": {
108666
- "name": "SbbButtonLikeBaseElement",
108667
- "module": "core/base-elements/button-base-element.js"
108616
+ "name": "SbbLinkBaseElement",
108617
+ "module": "core/base-elements/link-base-element.js"
108618
+ }
108619
+ },
108620
+ {
108621
+ "kind": "method",
108622
+ "name": "renderLink",
108623
+ "privacy": "protected",
108624
+ "return": {
108625
+ "type": {
108626
+ "text": "TemplateResult"
108627
+ }
108628
+ },
108629
+ "parameters": [
108630
+ {
108631
+ "name": "renderContent",
108632
+ "type": {
108633
+ "text": "TemplateResult"
108634
+ }
108635
+ }
108636
+ ],
108637
+ "inheritedFrom": {
108638
+ "name": "SbbLinkBaseElement",
108639
+ "module": "core/base-elements/link-base-element.js"
108668
108640
  }
108669
108641
  },
108670
108642
  {
@@ -108815,7 +108787,7 @@
108815
108787
  ],
108816
108788
  "mixins": [
108817
108789
  {
108818
- "name": "SbbDisabledTabIndexActionMixin",
108790
+ "name": "SbbDisabledInteractiveMixin",
108819
108791
  "module": "core/mixins.js"
108820
108792
  },
108821
108793
  {
@@ -108824,10 +108796,10 @@
108824
108796
  }
108825
108797
  ],
108826
108798
  "superclass": {
108827
- "name": "SbbButtonBaseElement",
108799
+ "name": "SbbLinkBaseElement",
108828
108800
  "module": "core/base-elements.js"
108829
108801
  },
108830
- "tagName": "sbb-menu-button",
108802
+ "tagName": "sbb-menu-link",
108831
108803
  "customElement": true,
108832
108804
  "attributes": [
108833
108805
  {
@@ -108843,6 +108815,19 @@
108843
108815
  "module": "core/mixins/disabled-mixin.js"
108844
108816
  }
108845
108817
  },
108818
+ {
108819
+ "name": "icon-name",
108820
+ "type": {
108821
+ "text": "string"
108822
+ },
108823
+ "default": "''",
108824
+ "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.",
108825
+ "fieldName": "iconName",
108826
+ "inheritedFrom": {
108827
+ "name": "SbbIconNameMixin",
108828
+ "module": "icon/icon-name-mixin.js"
108829
+ }
108830
+ },
108846
108831
  {
108847
108832
  "name": "disabled",
108848
108833
  "description": "Whether the component is disabled.",
@@ -108857,66 +108842,81 @@
108857
108842
  }
108858
108843
  },
108859
108844
  {
108860
- "name": "icon-name",
108845
+ "name": "href",
108861
108846
  "type": {
108862
108847
  "text": "string"
108863
108848
  },
108864
108849
  "default": "''",
108865
- "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.",
108866
- "fieldName": "iconName",
108850
+ "description": "The href value you want to link to.",
108851
+ "fieldName": "href",
108867
108852
  "inheritedFrom": {
108868
- "name": "SbbIconNameMixin",
108869
- "module": "icon/icon-name-mixin.js"
108853
+ "name": "SbbLinkBaseElement",
108854
+ "module": "core/base-elements/link-base-element.js"
108870
108855
  }
108871
108856
  },
108872
108857
  {
108873
- "name": "value",
108858
+ "name": "target",
108859
+ "type": {
108860
+ "text": "LinkTargetType | string"
108861
+ },
108862
+ "default": "''",
108863
+ "description": "Where to display the linked URL.",
108864
+ "fieldName": "target",
108865
+ "inheritedFrom": {
108866
+ "name": "SbbLinkBaseElement",
108867
+ "module": "core/base-elements/link-base-element.js"
108868
+ }
108869
+ },
108870
+ {
108871
+ "name": "rel",
108874
108872
  "type": {
108875
108873
  "text": "string"
108876
108874
  },
108877
108875
  "default": "''",
108878
- "description": "Value of the form element.",
108879
- "fieldName": "value",
108876
+ "description": "The relationship of the linked URL as space-separated link types.",
108877
+ "fieldName": "rel",
108880
108878
  "inheritedFrom": {
108881
- "name": "SbbButtonBaseElement",
108882
- "module": "core/base-elements/button-base-element.js"
108879
+ "name": "SbbLinkBaseElement",
108880
+ "module": "core/base-elements/link-base-element.js"
108883
108881
  }
108884
108882
  },
108885
108883
  {
108886
- "name": "type",
108887
- "description": "The type attribute to use for the button.",
108888
- "default": "'button'",
108884
+ "name": "download",
108889
108885
  "type": {
108890
- "text": "SbbButtonType"
108886
+ "text": "boolean"
108891
108887
  },
108892
- "fieldName": "type",
108888
+ "default": "false",
108889
+ "description": "Whether the browser will show the download dialog on click.",
108890
+ "fieldName": "download",
108893
108891
  "inheritedFrom": {
108894
- "name": "SbbButtonBaseElement",
108895
- "module": "core/base-elements/button-base-element.js"
108892
+ "name": "SbbLinkBaseElement",
108893
+ "module": "core/base-elements/link-base-element.js"
108896
108894
  }
108897
108895
  },
108898
108896
  {
108899
- "name": "form",
108900
- "description": "The `<form>` element to associate the button with.",
108897
+ "name": "accessibility-label",
108901
108898
  "type": {
108902
- "text": "HTMLFormElement | null"
108899
+ "text": "string"
108903
108900
  },
108904
- "fieldName": "form",
108901
+ "default": "''",
108902
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
108903
+ "fieldName": "accessibilityLabel",
108905
108904
  "inheritedFrom": {
108906
- "name": "SbbButtonBaseElement",
108907
- "module": "core/base-elements/button-base-element.js"
108905
+ "name": "SbbLinkBaseElement",
108906
+ "module": "core/base-elements/link-base-element.js"
108908
108907
  }
108909
108908
  },
108910
108909
  {
108911
- "name": "name",
108912
- "description": "Name of the form element. Will be read from name attribute.",
108910
+ "name": "accessibility-current",
108913
108911
  "type": {
108914
108912
  "text": "string"
108915
108913
  },
108916
- "fieldName": "name",
108914
+ "default": "''",
108915
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
108916
+ "fieldName": "accessibilityCurrent",
108917
108917
  "inheritedFrom": {
108918
- "name": "SbbFormAssociatedMixin",
108919
- "module": "core/mixins/form-associated-mixin.js"
108918
+ "name": "SbbLinkBaseElement",
108919
+ "module": "core/base-elements/link-base-element.js"
108920
108920
  }
108921
108921
  }
108922
108922
  ]
@@ -108925,10 +108925,10 @@
108925
108925
  "exports": [
108926
108926
  {
108927
108927
  "kind": "js",
108928
- "name": "SbbMenuButtonElement",
108928
+ "name": "SbbMenuLinkElement",
108929
108929
  "declaration": {
108930
- "name": "SbbMenuButtonElement",
108931
- "module": "menu/menu-button/menu-button.component.js"
108930
+ "name": "SbbMenuLinkElement",
108931
+ "module": "menu/menu-link/menu-link.component.js"
108932
108932
  }
108933
108933
  }
108934
108934
  ]