@sbb-esta/lyne-elements-dev 4.6.0-dev.1772462503 → 4.6.0-dev.1772463840

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +629 -629
  2. package/package.json +2 -2
@@ -87435,12 +87435,12 @@
87435
87435
  },
87436
87436
  {
87437
87437
  "kind": "javascript-module",
87438
- "path": "menu/menu-button/menu-button.component.js",
87438
+ "path": "menu/menu-link/menu-link.component.js",
87439
87439
  "declarations": [
87440
87440
  {
87441
87441
  "kind": "class",
87442
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
87443
- "name": "SbbMenuButtonElement",
87442
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
87443
+ "name": "SbbMenuLinkElement",
87444
87444
  "cssProperties": [
87445
87445
  {
87446
87446
  "description": "Can be used to modify horizontal padding.",
@@ -87450,7 +87450,7 @@
87450
87450
  ],
87451
87451
  "slots": [
87452
87452
  {
87453
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
87453
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
87454
87454
  "name": ""
87455
87455
  },
87456
87456
  {
@@ -87461,17 +87461,16 @@
87461
87461
  "members": [
87462
87462
  {
87463
87463
  "kind": "field",
87464
- "name": "role",
87464
+ "name": "anchorRole",
87465
87465
  "type": {
87466
- "text": "ElementInternals['role']"
87466
+ "text": "string"
87467
87467
  },
87468
- "privacy": "public",
87469
- "static": true,
87468
+ "privacy": "protected",
87470
87469
  "readonly": true,
87471
87470
  "default": "'menuitem'",
87472
87471
  "inheritedFrom": {
87473
- "name": "SbbButtonLikeBaseElement",
87474
- "module": "core/base-elements/button-base-element.js"
87472
+ "name": "SbbLinkBaseElement",
87473
+ "module": "core/base-elements/link-base-element.js"
87475
87474
  }
87476
87475
  },
87477
87476
  {
@@ -87490,50 +87489,6 @@
87490
87489
  "module": "core/mixins/disabled-mixin.js"
87491
87490
  }
87492
87491
  },
87493
- {
87494
- "kind": "field",
87495
- "name": "disabled",
87496
- "privacy": "public",
87497
- "description": "Whether the component is disabled.",
87498
- "default": "false",
87499
- "type": {
87500
- "text": "boolean"
87501
- },
87502
- "attribute": "disabled",
87503
- "reflects": true,
87504
- "inheritedFrom": {
87505
- "name": "SbbDisabledMixin",
87506
- "module": "core/mixins/disabled-mixin.js"
87507
- }
87508
- },
87509
- {
87510
- "kind": "field",
87511
- "name": "#disabled",
87512
- "privacy": "private",
87513
- "type": {
87514
- "text": "boolean"
87515
- },
87516
- "default": "false",
87517
- "inheritedFrom": {
87518
- "name": "SbbDisabledMixin",
87519
- "module": "core/mixins/disabled-mixin.js"
87520
- }
87521
- },
87522
- {
87523
- "kind": "method",
87524
- "name": "isDisabledExternally",
87525
- "privacy": "protected",
87526
- "return": {
87527
- "type": {
87528
- "text": "boolean"
87529
- }
87530
- },
87531
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
87532
- "inheritedFrom": {
87533
- "name": "SbbDisabledMixin",
87534
- "module": "core/mixins/disabled-mixin.js"
87535
- }
87536
- },
87537
87492
  {
87538
87493
  "kind": "field",
87539
87494
  "name": "styles",
@@ -87631,464 +87586,181 @@
87631
87586
  },
87632
87587
  {
87633
87588
  "kind": "field",
87634
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
87635
- "type": {
87636
- "text": "array"
87637
- },
87638
- "privacy": "private",
87639
- "readonly": true,
87640
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
87641
- "inheritedFrom": {
87642
- "name": "SbbButtonBaseElement",
87643
- "module": "core/base-elements/button-base-element.js"
87644
- }
87645
- },
87646
- {
87647
- "kind": "field",
87648
- "name": "value",
87649
- "type": {
87650
- "text": "string"
87651
- },
87652
- "privacy": "public",
87653
- "inheritedFrom": {
87654
- "name": "SbbButtonBaseElement",
87655
- "module": "core/base-elements/button-base-element.js"
87656
- },
87657
- "default": "''",
87658
- "description": "Value of the form element.",
87659
- "attribute": "value"
87660
- },
87661
- {
87662
- "kind": "field",
87663
- "name": "type",
87589
+ "name": "disabled",
87664
87590
  "privacy": "public",
87665
- "description": "The type attribute to use for the button.",
87666
- "default": "'button'",
87591
+ "description": "Whether the component is disabled.",
87592
+ "default": "false",
87667
87593
  "type": {
87668
- "text": "SbbButtonType"
87594
+ "text": "boolean"
87669
87595
  },
87670
- "attribute": "type",
87596
+ "attribute": "disabled",
87597
+ "reflects": true,
87671
87598
  "inheritedFrom": {
87672
- "name": "SbbButtonBaseElement",
87673
- "module": "core/base-elements/button-base-element.js"
87599
+ "name": "SbbDisabledMixin",
87600
+ "module": "core/mixins/disabled-mixin.js"
87674
87601
  }
87675
87602
  },
87676
87603
  {
87677
87604
  "kind": "field",
87678
- "name": "form",
87679
- "type": {
87680
- "text": "HTMLFormElement | null"
87681
- },
87682
- "privacy": "public",
87683
- "description": "The `<form>` element to associate the button with.",
87684
- "inheritedFrom": {
87685
- "name": "SbbButtonBaseElement",
87686
- "module": "core/base-elements/button-base-element.js"
87687
- },
87688
- "attribute": "form"
87689
- },
87690
- {
87691
- "kind": "field",
87692
- "name": "_formId",
87605
+ "name": "#disabled",
87606
+ "privacy": "private",
87693
87607
  "type": {
87694
- "text": "string"
87608
+ "text": "boolean"
87695
87609
  },
87696
- "privacy": "private",
87697
- "default": "''",
87698
- "inheritedFrom": {
87699
- "name": "SbbButtonBaseElement",
87700
- "module": "core/base-elements/button-base-element.js"
87701
- }
87702
- },
87703
- {
87704
- "kind": "field",
87705
- "name": "_handleButtonClick",
87706
- "privacy": "private",
87610
+ "default": "false",
87707
87611
  "inheritedFrom": {
87708
- "name": "SbbButtonBaseElement",
87709
- "module": "core/base-elements/button-base-element.js"
87612
+ "name": "SbbDisabledMixin",
87613
+ "module": "core/mixins/disabled-mixin.js"
87710
87614
  }
87711
87615
  },
87712
87616
  {
87713
87617
  "kind": "method",
87714
- "name": "_requestSubmit",
87715
- "privacy": "private",
87618
+ "name": "isDisabledExternally",
87619
+ "privacy": "protected",
87716
87620
  "return": {
87717
87621
  "type": {
87718
- "text": "void"
87622
+ "text": "boolean"
87719
87623
  }
87720
87624
  },
87721
- "parameters": [
87722
- {
87723
- "name": "form",
87724
- "type": {
87725
- "text": "HTMLFormElement"
87726
- }
87727
- }
87728
- ],
87625
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
87729
87626
  "inheritedFrom": {
87730
- "name": "SbbButtonBaseElement",
87731
- "module": "core/base-elements/button-base-element.js"
87627
+ "name": "SbbDisabledMixin",
87628
+ "module": "core/mixins/disabled-mixin.js"
87732
87629
  }
87733
87630
  },
87734
87631
  {
87735
87632
  "kind": "field",
87736
- "name": "_formKeyDown",
87737
- "privacy": "private",
87633
+ "name": "href",
87634
+ "type": {
87635
+ "text": "string"
87636
+ },
87637
+ "privacy": "public",
87638
+ "default": "''",
87639
+ "description": "The href value you want to link to.",
87640
+ "attribute": "href",
87641
+ "reflects": true,
87738
87642
  "inheritedFrom": {
87739
- "name": "SbbButtonBaseElement",
87740
- "module": "core/base-elements/button-base-element.js"
87643
+ "name": "SbbLinkBaseElement",
87644
+ "module": "core/base-elements/link-base-element.js"
87741
87645
  }
87742
87646
  },
87743
87647
  {
87744
87648
  "kind": "field",
87745
- "name": "formAssociated",
87649
+ "name": "target",
87746
87650
  "type": {
87747
- "text": "boolean"
87651
+ "text": "LinkTargetType | string"
87748
87652
  },
87749
87653
  "privacy": "public",
87750
- "static": true,
87751
- "default": "true",
87654
+ "default": "''",
87655
+ "description": "Where to display the linked URL.",
87656
+ "attribute": "target",
87657
+ "reflects": true,
87752
87658
  "inheritedFrom": {
87753
- "name": "SbbFormAssociatedMixin",
87754
- "module": "core/mixins/form-associated-mixin.js"
87659
+ "name": "SbbLinkBaseElement",
87660
+ "module": "core/base-elements/link-base-element.js"
87755
87661
  }
87756
87662
  },
87757
87663
  {
87758
87664
  "kind": "field",
87759
- "name": "name",
87760
- "privacy": "public",
87761
- "description": "Name of the form element. Will be read from name attribute.",
87665
+ "name": "rel",
87762
87666
  "type": {
87763
87667
  "text": "string"
87764
87668
  },
87765
- "attribute": "name",
87669
+ "privacy": "public",
87670
+ "default": "''",
87671
+ "description": "The relationship of the linked URL as space-separated link types.",
87672
+ "attribute": "rel",
87673
+ "reflects": true,
87766
87674
  "inheritedFrom": {
87767
- "name": "SbbFormAssociatedMixin",
87768
- "module": "core/mixins/form-associated-mixin.js"
87675
+ "name": "SbbLinkBaseElement",
87676
+ "module": "core/base-elements/link-base-element.js"
87769
87677
  }
87770
87678
  },
87771
87679
  {
87772
87680
  "kind": "field",
87773
- "name": "validity",
87681
+ "name": "download",
87774
87682
  "type": {
87775
- "text": "ValidityState"
87683
+ "text": "boolean"
87776
87684
  },
87777
87685
  "privacy": "public",
87778
- "description": "Returns the ValidityState object for this element.",
87779
- "readonly": true,
87686
+ "default": "false",
87687
+ "description": "Whether the browser will show the download dialog on click.",
87688
+ "attribute": "download",
87689
+ "reflects": true,
87780
87690
  "inheritedFrom": {
87781
- "name": "SbbFormAssociatedMixin",
87782
- "module": "core/mixins/form-associated-mixin.js"
87691
+ "name": "SbbLinkBaseElement",
87692
+ "module": "core/base-elements/link-base-element.js"
87783
87693
  }
87784
87694
  },
87785
87695
  {
87786
87696
  "kind": "field",
87787
- "name": "validationMessage",
87697
+ "name": "accessibilityLabel",
87788
87698
  "type": {
87789
87699
  "text": "string"
87790
87700
  },
87791
87701
  "privacy": "public",
87792
- "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.",
87793
- "readonly": true,
87702
+ "default": "''",
87703
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
87704
+ "attribute": "accessibility-label",
87794
87705
  "inheritedFrom": {
87795
- "name": "SbbFormAssociatedMixin",
87796
- "module": "core/mixins/form-associated-mixin.js"
87706
+ "name": "SbbLinkBaseElement",
87707
+ "module": "core/base-elements/link-base-element.js"
87797
87708
  }
87798
87709
  },
87799
87710
  {
87800
87711
  "kind": "field",
87801
- "name": "willValidate",
87712
+ "name": "accessibilityCurrent",
87802
87713
  "type": {
87803
- "text": "boolean"
87714
+ "text": "string"
87804
87715
  },
87805
87716
  "privacy": "public",
87806
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
87807
- "readonly": true,
87717
+ "default": "''",
87718
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
87719
+ "attribute": "accessibility-current",
87808
87720
  "inheritedFrom": {
87809
- "name": "SbbFormAssociatedMixin",
87810
- "module": "core/mixins/form-associated-mixin.js"
87721
+ "name": "SbbLinkBaseElement",
87722
+ "module": "core/base-elements/link-base-element.js"
87811
87723
  }
87812
87724
  },
87813
87725
  {
87814
87726
  "kind": "field",
87815
- "name": "_validityStates",
87816
- "privacy": "private",
87817
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
87727
+ "name": "language",
87728
+ "privacy": "protected",
87729
+ "default": "new SbbLanguageController(this)",
87818
87730
  "inheritedFrom": {
87819
- "name": "SbbFormAssociatedMixin",
87820
- "module": "core/mixins/form-associated-mixin.js"
87731
+ "name": "SbbLinkBaseElement",
87732
+ "module": "core/base-elements/link-base-element.js"
87821
87733
  }
87822
87734
  },
87823
87735
  {
87824
87736
  "kind": "field",
87825
- "name": "formDisabled",
87826
- "type": {
87827
- "text": "boolean"
87828
- },
87829
- "privacy": "protected",
87830
- "default": "false",
87831
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
87832
- "inheritedFrom": {
87833
- "name": "SbbFormAssociatedMixin",
87834
- "module": "core/mixins/form-associated-mixin.js"
87835
- }
87836
- },
87837
- {
87838
- "kind": "method",
87839
- "name": "checkValidity",
87840
- "privacy": "public",
87841
- "return": {
87842
- "type": {
87843
- "text": "boolean"
87844
- }
87845
- },
87846
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
87847
- "inheritedFrom": {
87848
- "name": "SbbFormAssociatedMixin",
87849
- "module": "core/mixins/form-associated-mixin.js"
87850
- }
87851
- },
87852
- {
87853
- "kind": "method",
87854
- "name": "reportValidity",
87855
- "privacy": "public",
87856
- "return": {
87857
- "type": {
87858
- "text": "boolean"
87859
- }
87860
- },
87861
- "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.",
87862
- "inheritedFrom": {
87863
- "name": "SbbFormAssociatedMixin",
87864
- "module": "core/mixins/form-associated-mixin.js"
87865
- }
87866
- },
87867
- {
87868
- "kind": "method",
87869
- "name": "setCustomValidity",
87870
- "privacy": "public",
87871
- "return": {
87872
- "type": {
87873
- "text": "void"
87874
- }
87875
- },
87876
- "parameters": [
87877
- {
87878
- "name": "message",
87879
- "type": {
87880
- "text": "string"
87881
- }
87882
- }
87883
- ],
87884
- "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.",
87885
- "inheritedFrom": {
87886
- "name": "SbbFormAssociatedMixin",
87887
- "module": "core/mixins/form-associated-mixin.js"
87888
- }
87889
- },
87890
- {
87891
- "kind": "method",
87892
- "name": "_hasDisabledAncestor",
87737
+ "name": "_evaluateRelAttribute",
87893
87738
  "privacy": "private",
87894
- "return": {
87895
- "type": {
87896
- "text": "boolean"
87897
- }
87898
- },
87899
- "inheritedFrom": {
87900
- "name": "SbbFormAssociatedMixin",
87901
- "module": "core/mixins/form-associated-mixin.js"
87902
- }
87903
- },
87904
- {
87905
- "kind": "method",
87906
- "name": "updateFormValue",
87907
- "privacy": "protected",
87908
- "return": {
87909
- "type": {
87910
- "text": "void"
87911
- }
87912
- },
87913
- "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",
87914
- "inheritedFrom": {
87915
- "name": "SbbFormAssociatedMixin",
87916
- "module": "core/mixins/form-associated-mixin.js"
87917
- }
87918
- },
87919
- {
87920
- "kind": "method",
87921
- "name": "formState",
87922
- "privacy": "protected",
87923
- "return": {
87924
- "type": {
87925
- "text": "FormRestoreState"
87926
- }
87927
- },
87928
- "inheritedFrom": {
87929
- "name": "SbbFormAssociatedMixin",
87930
- "module": "core/mixins/form-associated-mixin.js"
87931
- }
87932
- },
87933
- {
87934
- "kind": "method",
87935
- "name": "setValidityFlag",
87936
- "privacy": "protected",
87937
- "return": {
87938
- "type": {
87939
- "text": "void"
87940
- }
87941
- },
87942
- "parameters": [
87943
- {
87944
- "name": "flag",
87945
- "type": {
87946
- "text": "T"
87947
- }
87948
- },
87949
- {
87950
- "name": "message",
87951
- "type": {
87952
- "text": "string"
87953
- }
87954
- },
87955
- {
87956
- "name": "flagValue",
87957
- "optional": true,
87958
- "type": {
87959
- "text": "ValidityStateFlags[T]"
87960
- }
87961
- }
87962
- ],
87963
- "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).",
87964
- "inheritedFrom": {
87965
- "name": "SbbFormAssociatedMixin",
87966
- "module": "core/mixins/form-associated-mixin.js"
87967
- }
87968
- },
87969
- {
87970
- "kind": "method",
87971
- "name": "removeValidityFlag",
87972
- "privacy": "protected",
87973
- "return": {
87974
- "type": {
87975
- "text": "void"
87976
- }
87977
- },
87978
- "parameters": [
87979
- {
87980
- "name": "flag",
87981
- "type": {
87982
- "text": "T"
87983
- }
87984
- }
87985
- ],
87986
- "description": "Removes the validity state flag entry and updates validity state.",
87987
- "inheritedFrom": {
87988
- "name": "SbbFormAssociatedMixin",
87989
- "module": "core/mixins/form-associated-mixin.js"
87990
- }
87991
- },
87992
- {
87993
- "kind": "method",
87994
- "name": "validate",
87995
- "privacy": "protected",
87996
- "return": {
87997
- "type": {
87998
- "text": "void"
87999
- }
88000
- },
88001
- "description": "To be called whenever the current element needs to be validated.",
88002
87739
  "inheritedFrom": {
88003
- "name": "SbbFormAssociatedMixin",
88004
- "module": "core/mixins/form-associated-mixin.js"
87740
+ "name": "SbbLinkBaseElement",
87741
+ "module": "core/base-elements/link-base-element.js"
88005
87742
  }
88006
87743
  },
88007
87744
  {
88008
87745
  "kind": "method",
88009
- "name": "shouldValidate",
87746
+ "name": "renderLink",
88010
87747
  "privacy": "protected",
88011
87748
  "return": {
88012
87749
  "type": {
88013
- "text": "boolean"
87750
+ "text": "TemplateResult"
88014
87751
  }
88015
87752
  },
88016
87753
  "parameters": [
88017
87754
  {
88018
- "name": "name",
87755
+ "name": "renderContent",
88019
87756
  "type": {
88020
- "text": "PropertyKey | undefined"
87757
+ "text": "TemplateResult"
88021
87758
  }
88022
87759
  }
88023
87760
  ],
88024
- "description": "Whether validation should be run on a property change with the given name.",
88025
- "inheritedFrom": {
88026
- "name": "SbbFormAssociatedMixin",
88027
- "module": "core/mixins/form-associated-mixin.js"
88028
- }
88029
- },
88030
- {
88031
- "kind": "method",
88032
- "name": "_setInternalValidity",
88033
- "privacy": "private",
88034
- "return": {
88035
- "type": {
88036
- "text": "void"
88037
- }
88038
- },
88039
- "inheritedFrom": {
88040
- "name": "SbbFormAssociatedMixin",
88041
- "module": "core/mixins/form-associated-mixin.js"
88042
- }
88043
- },
88044
- {
88045
- "kind": "field",
88046
- "name": "_preventScrollOnSpaceKeydown",
88047
- "privacy": "private",
88048
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
88049
- "parameters": [
88050
- {
88051
- "description": "The origin event.",
88052
- "name": "event"
88053
- }
88054
- ],
88055
- "inheritedFrom": {
88056
- "name": "SbbButtonLikeBaseElement",
88057
- "module": "core/base-elements/button-base-element.js"
88058
- }
88059
- },
88060
- {
88061
- "kind": "field",
88062
- "name": "_removeActiveMarker",
88063
- "privacy": "private",
88064
- "inheritedFrom": {
88065
- "name": "SbbButtonLikeBaseElement",
88066
- "module": "core/base-elements/button-base-element.js"
88067
- }
88068
- },
88069
- {
88070
- "kind": "field",
88071
- "name": "_dispatchClickEventOnSpaceKeyup",
88072
- "privacy": "private",
88073
- "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.",
88074
- "parameters": [
88075
- {
88076
- "description": "The origin event.",
88077
- "name": "event"
88078
- }
88079
- ],
88080
- "inheritedFrom": {
88081
- "name": "SbbButtonLikeBaseElement",
88082
- "module": "core/base-elements/button-base-element.js"
88083
- }
88084
- },
88085
- {
88086
- "kind": "field",
88087
- "name": "_dispatchClickEvent",
88088
- "privacy": "private",
88089
87761
  "inheritedFrom": {
88090
- "name": "SbbButtonLikeBaseElement",
88091
- "module": "core/base-elements/button-base-element.js"
87762
+ "name": "SbbLinkBaseElement",
87763
+ "module": "core/base-elements/link-base-element.js"
88092
87764
  }
88093
87765
  },
88094
87766
  {
@@ -88163,7 +87835,7 @@
88163
87835
  ],
88164
87836
  "mixins": [
88165
87837
  {
88166
- "name": "SbbDisabledTabIndexActionMixin",
87838
+ "name": "SbbDisabledInteractiveMixin",
88167
87839
  "module": "core/mixins.js"
88168
87840
  },
88169
87841
  {
@@ -88172,10 +87844,10 @@
88172
87844
  }
88173
87845
  ],
88174
87846
  "superclass": {
88175
- "name": "SbbButtonBaseElement",
87847
+ "name": "SbbLinkBaseElement",
88176
87848
  "module": "core/base-elements.js"
88177
87849
  },
88178
- "tagName": "sbb-menu-button",
87850
+ "tagName": "sbb-menu-link",
88179
87851
  "customElement": true,
88180
87852
  "attributes": [
88181
87853
  {
@@ -88191,6 +87863,19 @@
88191
87863
  "module": "core/mixins/disabled-mixin.js"
88192
87864
  }
88193
87865
  },
87866
+ {
87867
+ "name": "icon-name",
87868
+ "type": {
87869
+ "text": "string"
87870
+ },
87871
+ "default": "''",
87872
+ "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.",
87873
+ "fieldName": "iconName",
87874
+ "inheritedFrom": {
87875
+ "name": "SbbIconNameMixin",
87876
+ "module": "icon/icon-name-mixin.js"
87877
+ }
87878
+ },
88194
87879
  {
88195
87880
  "name": "disabled",
88196
87881
  "description": "Whether the component is disabled.",
@@ -88205,66 +87890,81 @@
88205
87890
  }
88206
87891
  },
88207
87892
  {
88208
- "name": "icon-name",
87893
+ "name": "href",
88209
87894
  "type": {
88210
87895
  "text": "string"
88211
87896
  },
88212
87897
  "default": "''",
88213
- "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.",
88214
- "fieldName": "iconName",
87898
+ "description": "The href value you want to link to.",
87899
+ "fieldName": "href",
88215
87900
  "inheritedFrom": {
88216
- "name": "SbbIconNameMixin",
88217
- "module": "icon/icon-name-mixin.js"
87901
+ "name": "SbbLinkBaseElement",
87902
+ "module": "core/base-elements/link-base-element.js"
88218
87903
  }
88219
87904
  },
88220
87905
  {
88221
- "name": "value",
87906
+ "name": "target",
87907
+ "type": {
87908
+ "text": "LinkTargetType | string"
87909
+ },
87910
+ "default": "''",
87911
+ "description": "Where to display the linked URL.",
87912
+ "fieldName": "target",
87913
+ "inheritedFrom": {
87914
+ "name": "SbbLinkBaseElement",
87915
+ "module": "core/base-elements/link-base-element.js"
87916
+ }
87917
+ },
87918
+ {
87919
+ "name": "rel",
88222
87920
  "type": {
88223
87921
  "text": "string"
88224
87922
  },
88225
87923
  "default": "''",
88226
- "description": "Value of the form element.",
88227
- "fieldName": "value",
87924
+ "description": "The relationship of the linked URL as space-separated link types.",
87925
+ "fieldName": "rel",
88228
87926
  "inheritedFrom": {
88229
- "name": "SbbButtonBaseElement",
88230
- "module": "core/base-elements/button-base-element.js"
87927
+ "name": "SbbLinkBaseElement",
87928
+ "module": "core/base-elements/link-base-element.js"
88231
87929
  }
88232
87930
  },
88233
87931
  {
88234
- "name": "type",
88235
- "description": "The type attribute to use for the button.",
88236
- "default": "'button'",
87932
+ "name": "download",
88237
87933
  "type": {
88238
- "text": "SbbButtonType"
87934
+ "text": "boolean"
88239
87935
  },
88240
- "fieldName": "type",
87936
+ "default": "false",
87937
+ "description": "Whether the browser will show the download dialog on click.",
87938
+ "fieldName": "download",
88241
87939
  "inheritedFrom": {
88242
- "name": "SbbButtonBaseElement",
88243
- "module": "core/base-elements/button-base-element.js"
87940
+ "name": "SbbLinkBaseElement",
87941
+ "module": "core/base-elements/link-base-element.js"
88244
87942
  }
88245
87943
  },
88246
87944
  {
88247
- "name": "form",
88248
- "description": "The `<form>` element to associate the button with.",
87945
+ "name": "accessibility-label",
88249
87946
  "type": {
88250
- "text": "HTMLFormElement | null"
87947
+ "text": "string"
88251
87948
  },
88252
- "fieldName": "form",
87949
+ "default": "''",
87950
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
87951
+ "fieldName": "accessibilityLabel",
88253
87952
  "inheritedFrom": {
88254
- "name": "SbbButtonBaseElement",
88255
- "module": "core/base-elements/button-base-element.js"
87953
+ "name": "SbbLinkBaseElement",
87954
+ "module": "core/base-elements/link-base-element.js"
88256
87955
  }
88257
87956
  },
88258
87957
  {
88259
- "name": "name",
88260
- "description": "Name of the form element. Will be read from name attribute.",
87958
+ "name": "accessibility-current",
88261
87959
  "type": {
88262
87960
  "text": "string"
88263
87961
  },
88264
- "fieldName": "name",
87962
+ "default": "''",
87963
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
87964
+ "fieldName": "accessibilityCurrent",
88265
87965
  "inheritedFrom": {
88266
- "name": "SbbFormAssociatedMixin",
88267
- "module": "core/mixins/form-associated-mixin.js"
87966
+ "name": "SbbLinkBaseElement",
87967
+ "module": "core/base-elements/link-base-element.js"
88268
87968
  }
88269
87969
  }
88270
87970
  ]
@@ -88273,30 +87973,30 @@
88273
87973
  "exports": [
88274
87974
  {
88275
87975
  "kind": "js",
88276
- "name": "SbbMenuButtonElement",
87976
+ "name": "SbbMenuLinkElement",
88277
87977
  "declaration": {
88278
- "name": "SbbMenuButtonElement",
88279
- "module": "menu/menu-button/menu-button.component.js"
87978
+ "name": "SbbMenuLinkElement",
87979
+ "module": "menu/menu-link/menu-link.component.js"
88280
87980
  }
88281
87981
  },
88282
87982
  {
88283
87983
  "kind": "custom-element-definition",
88284
- "name": "sbb-menu-button",
87984
+ "name": "sbb-menu-link",
88285
87985
  "declaration": {
88286
- "name": "SbbMenuButtonElement",
88287
- "module": "menu/menu-button/menu-button.component.js"
87986
+ "name": "SbbMenuLinkElement",
87987
+ "module": "menu/menu-link/menu-link.component.js"
88288
87988
  }
88289
87989
  }
88290
87990
  ]
88291
87991
  },
88292
87992
  {
88293
87993
  "kind": "javascript-module",
88294
- "path": "menu/menu-link/menu-link.component.js",
87994
+ "path": "menu/menu-button/menu-button.component.js",
88295
87995
  "declarations": [
88296
87996
  {
88297
87997
  "kind": "class",
88298
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
88299
- "name": "SbbMenuLinkElement",
87998
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
87999
+ "name": "SbbMenuButtonElement",
88300
88000
  "cssProperties": [
88301
88001
  {
88302
88002
  "description": "Can be used to modify horizontal padding.",
@@ -88306,7 +88006,7 @@
88306
88006
  ],
88307
88007
  "slots": [
88308
88008
  {
88309
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
88009
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
88310
88010
  "name": ""
88311
88011
  },
88312
88012
  {
@@ -88317,16 +88017,17 @@
88317
88017
  "members": [
88318
88018
  {
88319
88019
  "kind": "field",
88320
- "name": "anchorRole",
88020
+ "name": "role",
88321
88021
  "type": {
88322
- "text": "string"
88022
+ "text": "ElementInternals['role']"
88323
88023
  },
88324
- "privacy": "protected",
88024
+ "privacy": "public",
88025
+ "static": true,
88325
88026
  "readonly": true,
88326
88027
  "default": "'menuitem'",
88327
88028
  "inheritedFrom": {
88328
- "name": "SbbLinkBaseElement",
88329
- "module": "core/base-elements/link-base-element.js"
88029
+ "name": "SbbButtonLikeBaseElement",
88030
+ "module": "core/base-elements/button-base-element.js"
88330
88031
  }
88331
88032
  },
88332
88033
  {
@@ -88345,6 +88046,50 @@
88345
88046
  "module": "core/mixins/disabled-mixin.js"
88346
88047
  }
88347
88048
  },
88049
+ {
88050
+ "kind": "field",
88051
+ "name": "disabled",
88052
+ "privacy": "public",
88053
+ "description": "Whether the component is disabled.",
88054
+ "default": "false",
88055
+ "type": {
88056
+ "text": "boolean"
88057
+ },
88058
+ "attribute": "disabled",
88059
+ "reflects": true,
88060
+ "inheritedFrom": {
88061
+ "name": "SbbDisabledMixin",
88062
+ "module": "core/mixins/disabled-mixin.js"
88063
+ }
88064
+ },
88065
+ {
88066
+ "kind": "field",
88067
+ "name": "#disabled",
88068
+ "privacy": "private",
88069
+ "type": {
88070
+ "text": "boolean"
88071
+ },
88072
+ "default": "false",
88073
+ "inheritedFrom": {
88074
+ "name": "SbbDisabledMixin",
88075
+ "module": "core/mixins/disabled-mixin.js"
88076
+ }
88077
+ },
88078
+ {
88079
+ "kind": "method",
88080
+ "name": "isDisabledExternally",
88081
+ "privacy": "protected",
88082
+ "return": {
88083
+ "type": {
88084
+ "text": "boolean"
88085
+ }
88086
+ },
88087
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
88088
+ "inheritedFrom": {
88089
+ "name": "SbbDisabledMixin",
88090
+ "module": "core/mixins/disabled-mixin.js"
88091
+ }
88092
+ },
88348
88093
  {
88349
88094
  "kind": "field",
88350
88095
  "name": "styles",
@@ -88442,181 +88187,464 @@
88442
88187
  },
88443
88188
  {
88444
88189
  "kind": "field",
88445
- "name": "disabled",
88190
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
88191
+ "type": {
88192
+ "text": "array"
88193
+ },
88194
+ "privacy": "private",
88195
+ "readonly": true,
88196
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
88197
+ "inheritedFrom": {
88198
+ "name": "SbbButtonBaseElement",
88199
+ "module": "core/base-elements/button-base-element.js"
88200
+ }
88201
+ },
88202
+ {
88203
+ "kind": "field",
88204
+ "name": "value",
88205
+ "type": {
88206
+ "text": "string"
88207
+ },
88446
88208
  "privacy": "public",
88447
- "description": "Whether the component is disabled.",
88448
- "default": "false",
88209
+ "inheritedFrom": {
88210
+ "name": "SbbButtonBaseElement",
88211
+ "module": "core/base-elements/button-base-element.js"
88212
+ },
88213
+ "default": "''",
88214
+ "description": "Value of the form element.",
88215
+ "attribute": "value"
88216
+ },
88217
+ {
88218
+ "kind": "field",
88219
+ "name": "type",
88220
+ "privacy": "public",
88221
+ "description": "The type attribute to use for the button.",
88222
+ "default": "'button'",
88449
88223
  "type": {
88450
- "text": "boolean"
88224
+ "text": "SbbButtonType"
88451
88225
  },
88452
- "attribute": "disabled",
88453
- "reflects": true,
88226
+ "attribute": "type",
88454
88227
  "inheritedFrom": {
88455
- "name": "SbbDisabledMixin",
88456
- "module": "core/mixins/disabled-mixin.js"
88228
+ "name": "SbbButtonBaseElement",
88229
+ "module": "core/base-elements/button-base-element.js"
88457
88230
  }
88458
88231
  },
88459
88232
  {
88460
88233
  "kind": "field",
88461
- "name": "#disabled",
88462
- "privacy": "private",
88234
+ "name": "form",
88463
88235
  "type": {
88464
- "text": "boolean"
88236
+ "text": "HTMLFormElement | null"
88465
88237
  },
88466
- "default": "false",
88238
+ "privacy": "public",
88239
+ "description": "The `<form>` element to associate the button with.",
88467
88240
  "inheritedFrom": {
88468
- "name": "SbbDisabledMixin",
88469
- "module": "core/mixins/disabled-mixin.js"
88241
+ "name": "SbbButtonBaseElement",
88242
+ "module": "core/base-elements/button-base-element.js"
88243
+ },
88244
+ "attribute": "form"
88245
+ },
88246
+ {
88247
+ "kind": "field",
88248
+ "name": "_formId",
88249
+ "type": {
88250
+ "text": "string"
88251
+ },
88252
+ "privacy": "private",
88253
+ "default": "''",
88254
+ "inheritedFrom": {
88255
+ "name": "SbbButtonBaseElement",
88256
+ "module": "core/base-elements/button-base-element.js"
88257
+ }
88258
+ },
88259
+ {
88260
+ "kind": "field",
88261
+ "name": "_handleButtonClick",
88262
+ "privacy": "private",
88263
+ "inheritedFrom": {
88264
+ "name": "SbbButtonBaseElement",
88265
+ "module": "core/base-elements/button-base-element.js"
88470
88266
  }
88471
88267
  },
88472
88268
  {
88473
88269
  "kind": "method",
88474
- "name": "isDisabledExternally",
88475
- "privacy": "protected",
88270
+ "name": "_requestSubmit",
88271
+ "privacy": "private",
88476
88272
  "return": {
88477
88273
  "type": {
88478
- "text": "boolean"
88274
+ "text": "void"
88479
88275
  }
88480
88276
  },
88481
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
88277
+ "parameters": [
88278
+ {
88279
+ "name": "form",
88280
+ "type": {
88281
+ "text": "HTMLFormElement"
88282
+ }
88283
+ }
88284
+ ],
88482
88285
  "inheritedFrom": {
88483
- "name": "SbbDisabledMixin",
88484
- "module": "core/mixins/disabled-mixin.js"
88286
+ "name": "SbbButtonBaseElement",
88287
+ "module": "core/base-elements/button-base-element.js"
88485
88288
  }
88486
88289
  },
88487
88290
  {
88488
88291
  "kind": "field",
88489
- "name": "href",
88292
+ "name": "_formKeyDown",
88293
+ "privacy": "private",
88294
+ "inheritedFrom": {
88295
+ "name": "SbbButtonBaseElement",
88296
+ "module": "core/base-elements/button-base-element.js"
88297
+ }
88298
+ },
88299
+ {
88300
+ "kind": "field",
88301
+ "name": "formAssociated",
88302
+ "type": {
88303
+ "text": "boolean"
88304
+ },
88305
+ "privacy": "public",
88306
+ "static": true,
88307
+ "default": "true",
88308
+ "inheritedFrom": {
88309
+ "name": "SbbFormAssociatedMixin",
88310
+ "module": "core/mixins/form-associated-mixin.js"
88311
+ }
88312
+ },
88313
+ {
88314
+ "kind": "field",
88315
+ "name": "name",
88316
+ "privacy": "public",
88317
+ "description": "Name of the form element. Will be read from name attribute.",
88490
88318
  "type": {
88491
88319
  "text": "string"
88492
88320
  },
88321
+ "attribute": "name",
88322
+ "inheritedFrom": {
88323
+ "name": "SbbFormAssociatedMixin",
88324
+ "module": "core/mixins/form-associated-mixin.js"
88325
+ }
88326
+ },
88327
+ {
88328
+ "kind": "field",
88329
+ "name": "validity",
88330
+ "type": {
88331
+ "text": "ValidityState"
88332
+ },
88493
88333
  "privacy": "public",
88494
- "default": "''",
88495
- "description": "The href value you want to link to.",
88496
- "attribute": "href",
88497
- "reflects": true,
88334
+ "description": "Returns the ValidityState object for this element.",
88335
+ "readonly": true,
88498
88336
  "inheritedFrom": {
88499
- "name": "SbbLinkBaseElement",
88500
- "module": "core/base-elements/link-base-element.js"
88337
+ "name": "SbbFormAssociatedMixin",
88338
+ "module": "core/mixins/form-associated-mixin.js"
88501
88339
  }
88502
88340
  },
88503
88341
  {
88504
88342
  "kind": "field",
88505
- "name": "target",
88343
+ "name": "validationMessage",
88506
88344
  "type": {
88507
- "text": "LinkTargetType | string"
88345
+ "text": "string"
88508
88346
  },
88509
88347
  "privacy": "public",
88510
- "default": "''",
88511
- "description": "Where to display the linked URL.",
88512
- "attribute": "target",
88513
- "reflects": true,
88348
+ "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.",
88349
+ "readonly": true,
88350
+ "inheritedFrom": {
88351
+ "name": "SbbFormAssociatedMixin",
88352
+ "module": "core/mixins/form-associated-mixin.js"
88353
+ }
88354
+ },
88355
+ {
88356
+ "kind": "field",
88357
+ "name": "willValidate",
88358
+ "type": {
88359
+ "text": "boolean"
88360
+ },
88361
+ "privacy": "public",
88362
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
88363
+ "readonly": true,
88364
+ "inheritedFrom": {
88365
+ "name": "SbbFormAssociatedMixin",
88366
+ "module": "core/mixins/form-associated-mixin.js"
88367
+ }
88368
+ },
88369
+ {
88370
+ "kind": "field",
88371
+ "name": "_validityStates",
88372
+ "privacy": "private",
88373
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
88374
+ "inheritedFrom": {
88375
+ "name": "SbbFormAssociatedMixin",
88376
+ "module": "core/mixins/form-associated-mixin.js"
88377
+ }
88378
+ },
88379
+ {
88380
+ "kind": "field",
88381
+ "name": "formDisabled",
88382
+ "type": {
88383
+ "text": "boolean"
88384
+ },
88385
+ "privacy": "protected",
88386
+ "default": "false",
88387
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
88388
+ "inheritedFrom": {
88389
+ "name": "SbbFormAssociatedMixin",
88390
+ "module": "core/mixins/form-associated-mixin.js"
88391
+ }
88392
+ },
88393
+ {
88394
+ "kind": "method",
88395
+ "name": "checkValidity",
88396
+ "privacy": "public",
88397
+ "return": {
88398
+ "type": {
88399
+ "text": "boolean"
88400
+ }
88401
+ },
88402
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
88403
+ "inheritedFrom": {
88404
+ "name": "SbbFormAssociatedMixin",
88405
+ "module": "core/mixins/form-associated-mixin.js"
88406
+ }
88407
+ },
88408
+ {
88409
+ "kind": "method",
88410
+ "name": "reportValidity",
88411
+ "privacy": "public",
88412
+ "return": {
88413
+ "type": {
88414
+ "text": "boolean"
88415
+ }
88416
+ },
88417
+ "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.",
88418
+ "inheritedFrom": {
88419
+ "name": "SbbFormAssociatedMixin",
88420
+ "module": "core/mixins/form-associated-mixin.js"
88421
+ }
88422
+ },
88423
+ {
88424
+ "kind": "method",
88425
+ "name": "setCustomValidity",
88426
+ "privacy": "public",
88427
+ "return": {
88428
+ "type": {
88429
+ "text": "void"
88430
+ }
88431
+ },
88432
+ "parameters": [
88433
+ {
88434
+ "name": "message",
88435
+ "type": {
88436
+ "text": "string"
88437
+ }
88438
+ }
88439
+ ],
88440
+ "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.",
88441
+ "inheritedFrom": {
88442
+ "name": "SbbFormAssociatedMixin",
88443
+ "module": "core/mixins/form-associated-mixin.js"
88444
+ }
88445
+ },
88446
+ {
88447
+ "kind": "method",
88448
+ "name": "_hasDisabledAncestor",
88449
+ "privacy": "private",
88450
+ "return": {
88451
+ "type": {
88452
+ "text": "boolean"
88453
+ }
88454
+ },
88455
+ "inheritedFrom": {
88456
+ "name": "SbbFormAssociatedMixin",
88457
+ "module": "core/mixins/form-associated-mixin.js"
88458
+ }
88459
+ },
88460
+ {
88461
+ "kind": "method",
88462
+ "name": "updateFormValue",
88463
+ "privacy": "protected",
88464
+ "return": {
88465
+ "type": {
88466
+ "text": "void"
88467
+ }
88468
+ },
88469
+ "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",
88470
+ "inheritedFrom": {
88471
+ "name": "SbbFormAssociatedMixin",
88472
+ "module": "core/mixins/form-associated-mixin.js"
88473
+ }
88474
+ },
88475
+ {
88476
+ "kind": "method",
88477
+ "name": "formState",
88478
+ "privacy": "protected",
88479
+ "return": {
88480
+ "type": {
88481
+ "text": "FormRestoreState"
88482
+ }
88483
+ },
88484
+ "inheritedFrom": {
88485
+ "name": "SbbFormAssociatedMixin",
88486
+ "module": "core/mixins/form-associated-mixin.js"
88487
+ }
88488
+ },
88489
+ {
88490
+ "kind": "method",
88491
+ "name": "setValidityFlag",
88492
+ "privacy": "protected",
88493
+ "return": {
88494
+ "type": {
88495
+ "text": "void"
88496
+ }
88497
+ },
88498
+ "parameters": [
88499
+ {
88500
+ "name": "flag",
88501
+ "type": {
88502
+ "text": "T"
88503
+ }
88504
+ },
88505
+ {
88506
+ "name": "message",
88507
+ "type": {
88508
+ "text": "string"
88509
+ }
88510
+ },
88511
+ {
88512
+ "name": "flagValue",
88513
+ "optional": true,
88514
+ "type": {
88515
+ "text": "ValidityStateFlags[T]"
88516
+ }
88517
+ }
88518
+ ],
88519
+ "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).",
88514
88520
  "inheritedFrom": {
88515
- "name": "SbbLinkBaseElement",
88516
- "module": "core/base-elements/link-base-element.js"
88521
+ "name": "SbbFormAssociatedMixin",
88522
+ "module": "core/mixins/form-associated-mixin.js"
88517
88523
  }
88518
88524
  },
88519
88525
  {
88520
- "kind": "field",
88521
- "name": "rel",
88522
- "type": {
88523
- "text": "string"
88526
+ "kind": "method",
88527
+ "name": "removeValidityFlag",
88528
+ "privacy": "protected",
88529
+ "return": {
88530
+ "type": {
88531
+ "text": "void"
88532
+ }
88524
88533
  },
88525
- "privacy": "public",
88526
- "default": "''",
88527
- "description": "The relationship of the linked URL as space-separated link types.",
88528
- "attribute": "rel",
88529
- "reflects": true,
88534
+ "parameters": [
88535
+ {
88536
+ "name": "flag",
88537
+ "type": {
88538
+ "text": "T"
88539
+ }
88540
+ }
88541
+ ],
88542
+ "description": "Removes the validity state flag entry and updates validity state.",
88530
88543
  "inheritedFrom": {
88531
- "name": "SbbLinkBaseElement",
88532
- "module": "core/base-elements/link-base-element.js"
88544
+ "name": "SbbFormAssociatedMixin",
88545
+ "module": "core/mixins/form-associated-mixin.js"
88533
88546
  }
88534
88547
  },
88535
88548
  {
88536
- "kind": "field",
88537
- "name": "download",
88538
- "type": {
88539
- "text": "boolean"
88549
+ "kind": "method",
88550
+ "name": "validate",
88551
+ "privacy": "protected",
88552
+ "return": {
88553
+ "type": {
88554
+ "text": "void"
88555
+ }
88540
88556
  },
88541
- "privacy": "public",
88542
- "default": "false",
88543
- "description": "Whether the browser will show the download dialog on click.",
88544
- "attribute": "download",
88545
- "reflects": true,
88557
+ "description": "To be called whenever the current element needs to be validated.",
88546
88558
  "inheritedFrom": {
88547
- "name": "SbbLinkBaseElement",
88548
- "module": "core/base-elements/link-base-element.js"
88559
+ "name": "SbbFormAssociatedMixin",
88560
+ "module": "core/mixins/form-associated-mixin.js"
88549
88561
  }
88550
88562
  },
88551
88563
  {
88552
- "kind": "field",
88553
- "name": "accessibilityLabel",
88554
- "type": {
88555
- "text": "string"
88564
+ "kind": "method",
88565
+ "name": "shouldValidate",
88566
+ "privacy": "protected",
88567
+ "return": {
88568
+ "type": {
88569
+ "text": "boolean"
88570
+ }
88556
88571
  },
88557
- "privacy": "public",
88558
- "default": "''",
88559
- "description": "This will be forwarded as aria-label to the inner anchor element.",
88560
- "attribute": "accessibility-label",
88572
+ "parameters": [
88573
+ {
88574
+ "name": "name",
88575
+ "type": {
88576
+ "text": "PropertyKey | undefined"
88577
+ }
88578
+ }
88579
+ ],
88580
+ "description": "Whether validation should be run on a property change with the given name.",
88561
88581
  "inheritedFrom": {
88562
- "name": "SbbLinkBaseElement",
88563
- "module": "core/base-elements/link-base-element.js"
88582
+ "name": "SbbFormAssociatedMixin",
88583
+ "module": "core/mixins/form-associated-mixin.js"
88564
88584
  }
88565
88585
  },
88566
88586
  {
88567
- "kind": "field",
88568
- "name": "accessibilityCurrent",
88569
- "type": {
88570
- "text": "string"
88587
+ "kind": "method",
88588
+ "name": "_setInternalValidity",
88589
+ "privacy": "private",
88590
+ "return": {
88591
+ "type": {
88592
+ "text": "void"
88593
+ }
88571
88594
  },
88572
- "privacy": "public",
88573
- "default": "''",
88574
- "description": "This will be forwarded as aria-current to the inner anchor element.",
88575
- "attribute": "accessibility-current",
88576
88595
  "inheritedFrom": {
88577
- "name": "SbbLinkBaseElement",
88578
- "module": "core/base-elements/link-base-element.js"
88596
+ "name": "SbbFormAssociatedMixin",
88597
+ "module": "core/mixins/form-associated-mixin.js"
88579
88598
  }
88580
88599
  },
88581
88600
  {
88582
88601
  "kind": "field",
88583
- "name": "language",
88584
- "privacy": "protected",
88585
- "default": "new SbbLanguageController(this)",
88602
+ "name": "_preventScrollOnSpaceKeydown",
88603
+ "privacy": "private",
88604
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
88605
+ "parameters": [
88606
+ {
88607
+ "description": "The origin event.",
88608
+ "name": "event"
88609
+ }
88610
+ ],
88586
88611
  "inheritedFrom": {
88587
- "name": "SbbLinkBaseElement",
88588
- "module": "core/base-elements/link-base-element.js"
88612
+ "name": "SbbButtonLikeBaseElement",
88613
+ "module": "core/base-elements/button-base-element.js"
88589
88614
  }
88590
88615
  },
88591
88616
  {
88592
88617
  "kind": "field",
88593
- "name": "_evaluateRelAttribute",
88618
+ "name": "_removeActiveMarker",
88594
88619
  "privacy": "private",
88595
88620
  "inheritedFrom": {
88596
- "name": "SbbLinkBaseElement",
88597
- "module": "core/base-elements/link-base-element.js"
88621
+ "name": "SbbButtonLikeBaseElement",
88622
+ "module": "core/base-elements/button-base-element.js"
88598
88623
  }
88599
88624
  },
88600
88625
  {
88601
- "kind": "method",
88602
- "name": "renderLink",
88603
- "privacy": "protected",
88604
- "return": {
88605
- "type": {
88606
- "text": "TemplateResult"
88607
- }
88608
- },
88626
+ "kind": "field",
88627
+ "name": "_dispatchClickEventOnSpaceKeyup",
88628
+ "privacy": "private",
88629
+ "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.",
88609
88630
  "parameters": [
88610
88631
  {
88611
- "name": "renderContent",
88612
- "type": {
88613
- "text": "TemplateResult"
88614
- }
88632
+ "description": "The origin event.",
88633
+ "name": "event"
88615
88634
  }
88616
88635
  ],
88617
88636
  "inheritedFrom": {
88618
- "name": "SbbLinkBaseElement",
88619
- "module": "core/base-elements/link-base-element.js"
88637
+ "name": "SbbButtonLikeBaseElement",
88638
+ "module": "core/base-elements/button-base-element.js"
88639
+ }
88640
+ },
88641
+ {
88642
+ "kind": "field",
88643
+ "name": "_dispatchClickEvent",
88644
+ "privacy": "private",
88645
+ "inheritedFrom": {
88646
+ "name": "SbbButtonLikeBaseElement",
88647
+ "module": "core/base-elements/button-base-element.js"
88620
88648
  }
88621
88649
  },
88622
88650
  {
@@ -88691,7 +88719,7 @@
88691
88719
  ],
88692
88720
  "mixins": [
88693
88721
  {
88694
- "name": "SbbDisabledInteractiveMixin",
88722
+ "name": "SbbDisabledTabIndexActionMixin",
88695
88723
  "module": "core/mixins.js"
88696
88724
  },
88697
88725
  {
@@ -88700,10 +88728,10 @@
88700
88728
  }
88701
88729
  ],
88702
88730
  "superclass": {
88703
- "name": "SbbLinkBaseElement",
88731
+ "name": "SbbButtonBaseElement",
88704
88732
  "module": "core/base-elements.js"
88705
88733
  },
88706
- "tagName": "sbb-menu-link",
88734
+ "tagName": "sbb-menu-button",
88707
88735
  "customElement": true,
88708
88736
  "attributes": [
88709
88737
  {
@@ -88719,19 +88747,6 @@
88719
88747
  "module": "core/mixins/disabled-mixin.js"
88720
88748
  }
88721
88749
  },
88722
- {
88723
- "name": "icon-name",
88724
- "type": {
88725
- "text": "string"
88726
- },
88727
- "default": "''",
88728
- "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.",
88729
- "fieldName": "iconName",
88730
- "inheritedFrom": {
88731
- "name": "SbbIconNameMixin",
88732
- "module": "icon/icon-name-mixin.js"
88733
- }
88734
- },
88735
88750
  {
88736
88751
  "name": "disabled",
88737
88752
  "description": "Whether the component is disabled.",
@@ -88746,81 +88761,66 @@
88746
88761
  }
88747
88762
  },
88748
88763
  {
88749
- "name": "href",
88764
+ "name": "icon-name",
88750
88765
  "type": {
88751
88766
  "text": "string"
88752
88767
  },
88753
88768
  "default": "''",
88754
- "description": "The href value you want to link to.",
88755
- "fieldName": "href",
88756
- "inheritedFrom": {
88757
- "name": "SbbLinkBaseElement",
88758
- "module": "core/base-elements/link-base-element.js"
88759
- }
88760
- },
88761
- {
88762
- "name": "target",
88763
- "type": {
88764
- "text": "LinkTargetType | string"
88765
- },
88766
- "default": "''",
88767
- "description": "Where to display the linked URL.",
88768
- "fieldName": "target",
88769
+ "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.",
88770
+ "fieldName": "iconName",
88769
88771
  "inheritedFrom": {
88770
- "name": "SbbLinkBaseElement",
88771
- "module": "core/base-elements/link-base-element.js"
88772
+ "name": "SbbIconNameMixin",
88773
+ "module": "icon/icon-name-mixin.js"
88772
88774
  }
88773
88775
  },
88774
88776
  {
88775
- "name": "rel",
88777
+ "name": "value",
88776
88778
  "type": {
88777
88779
  "text": "string"
88778
88780
  },
88779
88781
  "default": "''",
88780
- "description": "The relationship of the linked URL as space-separated link types.",
88781
- "fieldName": "rel",
88782
+ "description": "Value of the form element.",
88783
+ "fieldName": "value",
88782
88784
  "inheritedFrom": {
88783
- "name": "SbbLinkBaseElement",
88784
- "module": "core/base-elements/link-base-element.js"
88785
+ "name": "SbbButtonBaseElement",
88786
+ "module": "core/base-elements/button-base-element.js"
88785
88787
  }
88786
88788
  },
88787
88789
  {
88788
- "name": "download",
88790
+ "name": "type",
88791
+ "description": "The type attribute to use for the button.",
88792
+ "default": "'button'",
88789
88793
  "type": {
88790
- "text": "boolean"
88794
+ "text": "SbbButtonType"
88791
88795
  },
88792
- "default": "false",
88793
- "description": "Whether the browser will show the download dialog on click.",
88794
- "fieldName": "download",
88796
+ "fieldName": "type",
88795
88797
  "inheritedFrom": {
88796
- "name": "SbbLinkBaseElement",
88797
- "module": "core/base-elements/link-base-element.js"
88798
+ "name": "SbbButtonBaseElement",
88799
+ "module": "core/base-elements/button-base-element.js"
88798
88800
  }
88799
88801
  },
88800
88802
  {
88801
- "name": "accessibility-label",
88803
+ "name": "form",
88804
+ "description": "The `<form>` element to associate the button with.",
88802
88805
  "type": {
88803
- "text": "string"
88806
+ "text": "HTMLFormElement | null"
88804
88807
  },
88805
- "default": "''",
88806
- "description": "This will be forwarded as aria-label to the inner anchor element.",
88807
- "fieldName": "accessibilityLabel",
88808
+ "fieldName": "form",
88808
88809
  "inheritedFrom": {
88809
- "name": "SbbLinkBaseElement",
88810
- "module": "core/base-elements/link-base-element.js"
88810
+ "name": "SbbButtonBaseElement",
88811
+ "module": "core/base-elements/button-base-element.js"
88811
88812
  }
88812
88813
  },
88813
88814
  {
88814
- "name": "accessibility-current",
88815
+ "name": "name",
88816
+ "description": "Name of the form element. Will be read from name attribute.",
88815
88817
  "type": {
88816
88818
  "text": "string"
88817
88819
  },
88818
- "default": "''",
88819
- "description": "This will be forwarded as aria-current to the inner anchor element.",
88820
- "fieldName": "accessibilityCurrent",
88820
+ "fieldName": "name",
88821
88821
  "inheritedFrom": {
88822
- "name": "SbbLinkBaseElement",
88823
- "module": "core/base-elements/link-base-element.js"
88822
+ "name": "SbbFormAssociatedMixin",
88823
+ "module": "core/mixins/form-associated-mixin.js"
88824
88824
  }
88825
88825
  }
88826
88826
  ]
@@ -88829,18 +88829,18 @@
88829
88829
  "exports": [
88830
88830
  {
88831
88831
  "kind": "js",
88832
- "name": "SbbMenuLinkElement",
88832
+ "name": "SbbMenuButtonElement",
88833
88833
  "declaration": {
88834
- "name": "SbbMenuLinkElement",
88835
- "module": "menu/menu-link/menu-link.component.js"
88834
+ "name": "SbbMenuButtonElement",
88835
+ "module": "menu/menu-button/menu-button.component.js"
88836
88836
  }
88837
88837
  },
88838
88838
  {
88839
88839
  "kind": "custom-element-definition",
88840
- "name": "sbb-menu-link",
88840
+ "name": "sbb-menu-button",
88841
88841
  "declaration": {
88842
- "name": "SbbMenuLinkElement",
88843
- "module": "menu/menu-link/menu-link.component.js"
88842
+ "name": "SbbMenuButtonElement",
88843
+ "module": "menu/menu-button/menu-button.component.js"
88844
88844
  }
88845
88845
  }
88846
88846
  ]