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

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