@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777235333 → 5.0.0-next-dev.1777273006

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.
@@ -127447,12 +127447,12 @@
127447
127447
  },
127448
127448
  {
127449
127449
  "kind": "javascript-module",
127450
- "path": "menu/menu-link/menu-link.component.js",
127450
+ "path": "menu/menu-button/menu-button.component.js",
127451
127451
  "declarations": [
127452
127452
  {
127453
127453
  "kind": "class",
127454
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
127455
- "name": "SbbMenuLinkElement",
127454
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
127455
+ "name": "SbbMenuButtonElement",
127456
127456
  "cssProperties": [
127457
127457
  {
127458
127458
  "description": "Can be used to modify horizontal padding.",
@@ -127462,7 +127462,7 @@
127462
127462
  ],
127463
127463
  "slots": [
127464
127464
  {
127465
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
127465
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
127466
127466
  "name": ""
127467
127467
  },
127468
127468
  {
@@ -127484,21 +127484,22 @@
127484
127484
  "name": "SbbElement",
127485
127485
  "module": "core/base-elements/element.js"
127486
127486
  },
127487
- "default": "'sbb-menu-link'"
127487
+ "default": "'sbb-menu-button'"
127488
127488
  },
127489
127489
  {
127490
127490
  "kind": "field",
127491
- "name": "anchorRole",
127491
+ "name": "role",
127492
127492
  "type": {
127493
- "text": "string"
127493
+ "text": "ElementInternals['role']"
127494
127494
  },
127495
- "privacy": "protected",
127496
- "readonly": true,
127497
- "default": "'menuitem'",
127495
+ "privacy": "public",
127496
+ "static": true,
127498
127497
  "inheritedFrom": {
127499
- "name": "SbbLinkBaseElement",
127500
- "module": "core/base-elements/link-base-element.js"
127501
- }
127498
+ "name": "SbbElement",
127499
+ "module": "core/base-elements/element.js"
127500
+ },
127501
+ "readonly": true,
127502
+ "default": "'menuitem'"
127502
127503
  },
127503
127504
  {
127504
127505
  "kind": "field",
@@ -127516,6 +127517,50 @@
127516
127517
  "module": "core/mixins/disabled-mixin.js"
127517
127518
  }
127518
127519
  },
127520
+ {
127521
+ "kind": "field",
127522
+ "name": "disabled",
127523
+ "privacy": "public",
127524
+ "description": "Whether the component is disabled.",
127525
+ "default": "false",
127526
+ "type": {
127527
+ "text": "boolean"
127528
+ },
127529
+ "attribute": "disabled",
127530
+ "reflects": true,
127531
+ "inheritedFrom": {
127532
+ "name": "SbbDisabledMixin",
127533
+ "module": "core/mixins/disabled-mixin.js"
127534
+ }
127535
+ },
127536
+ {
127537
+ "kind": "field",
127538
+ "name": "#disabled",
127539
+ "privacy": "private",
127540
+ "type": {
127541
+ "text": "boolean"
127542
+ },
127543
+ "default": "false",
127544
+ "inheritedFrom": {
127545
+ "name": "SbbDisabledMixin",
127546
+ "module": "core/mixins/disabled-mixin.js"
127547
+ }
127548
+ },
127549
+ {
127550
+ "kind": "method",
127551
+ "name": "isDisabledExternally",
127552
+ "privacy": "protected",
127553
+ "return": {
127554
+ "type": {
127555
+ "text": "boolean"
127556
+ }
127557
+ },
127558
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127559
+ "inheritedFrom": {
127560
+ "name": "SbbDisabledMixin",
127561
+ "module": "core/mixins/disabled-mixin.js"
127562
+ }
127563
+ },
127519
127564
  {
127520
127565
  "kind": "field",
127521
127566
  "name": "styles",
@@ -127627,328 +127672,243 @@
127627
127672
  },
127628
127673
  {
127629
127674
  "kind": "field",
127630
- "name": "disabled",
127631
- "privacy": "public",
127632
- "description": "Whether the component is disabled.",
127633
- "default": "false",
127675
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
127634
127676
  "type": {
127635
- "text": "boolean"
127677
+ "text": "array"
127636
127678
  },
127637
- "attribute": "disabled",
127638
- "reflects": true,
127639
- "inheritedFrom": {
127640
- "name": "SbbDisabledMixin",
127641
- "module": "core/mixins/disabled-mixin.js"
127642
- }
127643
- },
127644
- {
127645
- "kind": "field",
127646
- "name": "#disabled",
127647
127679
  "privacy": "private",
127648
- "type": {
127649
- "text": "boolean"
127650
- },
127651
- "default": "false",
127652
- "inheritedFrom": {
127653
- "name": "SbbDisabledMixin",
127654
- "module": "core/mixins/disabled-mixin.js"
127655
- }
127656
- },
127657
- {
127658
- "kind": "method",
127659
- "name": "isDisabledExternally",
127660
- "privacy": "protected",
127661
- "return": {
127662
- "type": {
127663
- "text": "boolean"
127664
- }
127665
- },
127666
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127680
+ "readonly": true,
127681
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
127667
127682
  "inheritedFrom": {
127668
- "name": "SbbDisabledMixin",
127669
- "module": "core/mixins/disabled-mixin.js"
127683
+ "name": "SbbButtonBaseElement",
127684
+ "module": "core/base-elements/button-base-element.js"
127670
127685
  }
127671
127686
  },
127672
127687
  {
127673
127688
  "kind": "field",
127674
- "name": "href",
127689
+ "name": "value",
127675
127690
  "type": {
127676
127691
  "text": "string"
127677
127692
  },
127678
127693
  "privacy": "public",
127679
- "default": "''",
127680
- "description": "The href value you want to link to.",
127681
- "attribute": "href",
127682
- "reflects": true,
127683
127694
  "inheritedFrom": {
127684
- "name": "SbbLinkBaseElement",
127685
- "module": "core/base-elements/link-base-element.js"
127686
- }
127687
- },
127688
- {
127689
- "kind": "field",
127690
- "name": "target",
127691
- "type": {
127692
- "text": "LinkTargetType | string"
127695
+ "name": "SbbButtonBaseElement",
127696
+ "module": "core/base-elements/button-base-element.js"
127693
127697
  },
127694
- "privacy": "public",
127695
127698
  "default": "''",
127696
- "description": "Where to display the linked URL.",
127697
- "attribute": "target",
127698
- "reflects": true,
127699
- "inheritedFrom": {
127700
- "name": "SbbLinkBaseElement",
127701
- "module": "core/base-elements/link-base-element.js"
127702
- }
127699
+ "description": "Value of the form element.",
127700
+ "attribute": "value"
127703
127701
  },
127704
127702
  {
127705
127703
  "kind": "field",
127706
- "name": "rel",
127707
- "type": {
127708
- "text": "string"
127709
- },
127704
+ "name": "type",
127710
127705
  "privacy": "public",
127711
- "default": "''",
127712
- "description": "The relationship of the linked URL as space-separated link types.",
127713
- "attribute": "rel",
127714
- "reflects": true,
127715
- "inheritedFrom": {
127716
- "name": "SbbLinkBaseElement",
127717
- "module": "core/base-elements/link-base-element.js"
127718
- }
127719
- },
127720
- {
127721
- "kind": "field",
127722
- "name": "download",
127706
+ "description": "The type attribute to use for the button.",
127707
+ "default": "'button'",
127723
127708
  "type": {
127724
- "text": "boolean"
127709
+ "text": "SbbButtonType"
127725
127710
  },
127726
- "privacy": "public",
127727
- "default": "false",
127728
- "description": "Whether the browser will show the download dialog on click.",
127729
- "attribute": "download",
127730
- "reflects": true,
127711
+ "attribute": "type",
127731
127712
  "inheritedFrom": {
127732
- "name": "SbbLinkBaseElement",
127733
- "module": "core/base-elements/link-base-element.js"
127713
+ "name": "SbbButtonBaseElement",
127714
+ "module": "core/base-elements/button-base-element.js"
127734
127715
  }
127735
127716
  },
127736
127717
  {
127737
127718
  "kind": "field",
127738
- "name": "accessibilityLabel",
127719
+ "name": "form",
127739
127720
  "type": {
127740
- "text": "string"
127721
+ "text": "HTMLFormElement | null"
127741
127722
  },
127742
127723
  "privacy": "public",
127743
- "default": "''",
127744
- "description": "This will be forwarded as aria-label to the inner anchor element.",
127745
- "attribute": "accessibility-label",
127724
+ "description": "The `<form>` element to associate the button with.",
127746
127725
  "inheritedFrom": {
127747
- "name": "SbbLinkBaseElement",
127748
- "module": "core/base-elements/link-base-element.js"
127749
- }
127726
+ "name": "SbbButtonBaseElement",
127727
+ "module": "core/base-elements/button-base-element.js"
127728
+ },
127729
+ "attribute": "form"
127750
127730
  },
127751
127731
  {
127752
127732
  "kind": "field",
127753
- "name": "accessibilityCurrent",
127733
+ "name": "_formId",
127754
127734
  "type": {
127755
127735
  "text": "string"
127756
127736
  },
127757
- "privacy": "public",
127737
+ "privacy": "private",
127758
127738
  "default": "''",
127759
- "description": "This will be forwarded as aria-current to the inner anchor element.",
127760
- "attribute": "accessibility-current",
127761
127739
  "inheritedFrom": {
127762
- "name": "SbbLinkBaseElement",
127763
- "module": "core/base-elements/link-base-element.js"
127764
- }
127765
- },
127766
- {
127767
- "kind": "field",
127768
- "name": "language",
127769
- "privacy": "protected",
127770
- "default": "new SbbLanguageController(this)",
127771
- "inheritedFrom": {
127772
- "name": "SbbLinkBaseElement",
127773
- "module": "core/base-elements/link-base-element.js"
127740
+ "name": "SbbButtonBaseElement",
127741
+ "module": "core/base-elements/button-base-element.js"
127774
127742
  }
127775
127743
  },
127776
127744
  {
127777
127745
  "kind": "field",
127778
- "name": "_evaluateRelAttribute",
127746
+ "name": "_handleButtonClick",
127779
127747
  "privacy": "private",
127780
127748
  "inheritedFrom": {
127781
- "name": "SbbLinkBaseElement",
127782
- "module": "core/base-elements/link-base-element.js"
127749
+ "name": "SbbButtonBaseElement",
127750
+ "module": "core/base-elements/button-base-element.js"
127783
127751
  }
127784
127752
  },
127785
127753
  {
127786
127754
  "kind": "method",
127787
- "name": "renderLink",
127788
- "privacy": "protected",
127755
+ "name": "_requestSubmit",
127756
+ "privacy": "private",
127789
127757
  "return": {
127790
127758
  "type": {
127791
- "text": "TemplateResult"
127759
+ "text": "void"
127792
127760
  }
127793
127761
  },
127794
127762
  "parameters": [
127795
127763
  {
127796
- "name": "renderContent",
127764
+ "name": "form",
127797
127765
  "type": {
127798
- "text": "TemplateResult"
127766
+ "text": "HTMLFormElement"
127799
127767
  }
127800
127768
  }
127801
127769
  ],
127802
127770
  "inheritedFrom": {
127803
- "name": "SbbLinkBaseElement",
127804
- "module": "core/base-elements/link-base-element.js"
127771
+ "name": "SbbButtonBaseElement",
127772
+ "module": "core/base-elements/button-base-element.js"
127805
127773
  }
127806
127774
  },
127807
127775
  {
127808
127776
  "kind": "field",
127809
- "name": "maybeDisabled",
127810
- "type": {
127811
- "text": "boolean | undefined"
127812
- },
127813
- "privacy": "protected",
127814
- "readonly": true,
127777
+ "name": "_formKeyDown",
127778
+ "privacy": "private",
127815
127779
  "inheritedFrom": {
127816
- "name": "SbbActionBaseElement",
127817
- "module": "core/base-elements/action-base-element.js"
127780
+ "name": "SbbButtonBaseElement",
127781
+ "module": "core/base-elements/button-base-element.js"
127818
127782
  }
127819
127783
  },
127820
127784
  {
127821
127785
  "kind": "field",
127822
- "name": "maybeDisabledInteractive",
127786
+ "name": "formAssociated",
127823
127787
  "type": {
127824
- "text": "boolean | undefined"
127788
+ "text": "boolean"
127825
127789
  },
127826
- "privacy": "protected",
127827
- "readonly": true,
127790
+ "privacy": "public",
127791
+ "static": true,
127792
+ "default": "true",
127828
127793
  "inheritedFrom": {
127829
- "name": "SbbActionBaseElement",
127830
- "module": "core/base-elements/action-base-element.js"
127831
- }
127832
- },
127833
- {
127834
- "kind": "method",
127835
- "name": "setupBaseEventHandlers",
127836
- "privacy": "protected",
127837
- "return": {
127838
- "type": {
127839
- "text": "void"
127840
- }
127841
- },
127842
- "inheritedFrom": {
127843
- "name": "SbbActionBaseElement",
127844
- "module": "core/base-elements/action-base-element.js"
127794
+ "name": "SbbFormAssociatedMixin",
127795
+ "module": "core/mixins/form-associated-mixin.js"
127845
127796
  }
127846
127797
  },
127847
127798
  {
127848
127799
  "kind": "field",
127849
- "name": "['_$sbbElement$']",
127800
+ "name": "name",
127801
+ "privacy": "public",
127802
+ "description": "Name of the form element. Will be read from name attribute.",
127850
127803
  "type": {
127851
- "text": "boolean"
127804
+ "text": "string"
127852
127805
  },
127853
- "privacy": "public",
127854
- "static": true,
127855
- "default": "true",
127806
+ "attribute": "name",
127856
127807
  "inheritedFrom": {
127857
- "name": "SbbElement",
127858
- "module": "core/base-elements/element.js"
127808
+ "name": "SbbFormAssociatedMixin",
127809
+ "module": "core/mixins/form-associated-mixin.js"
127859
127810
  }
127860
127811
  },
127861
127812
  {
127862
127813
  "kind": "field",
127863
- "name": "role",
127814
+ "name": "validity",
127864
127815
  "type": {
127865
- "text": "ElementInternals['role'] | undefined"
127816
+ "text": "ValidityState"
127866
127817
  },
127867
127818
  "privacy": "public",
127868
- "static": true,
127819
+ "description": "Returns the ValidityState object for this element.",
127820
+ "readonly": true,
127869
127821
  "inheritedFrom": {
127870
- "name": "SbbElement",
127871
- "module": "core/base-elements/element.js"
127822
+ "name": "SbbFormAssociatedMixin",
127823
+ "module": "core/mixins/form-associated-mixin.js"
127872
127824
  }
127873
127825
  },
127874
127826
  {
127875
127827
  "kind": "field",
127876
- "name": "_controllers",
127828
+ "name": "validationMessage",
127877
127829
  "type": {
127878
- "text": "Set<SbbReactiveController> | undefined"
127830
+ "text": "string"
127879
127831
  },
127880
- "privacy": "private",
127832
+ "privacy": "public",
127833
+ "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.",
127834
+ "readonly": true,
127881
127835
  "inheritedFrom": {
127882
- "name": "SbbElement",
127883
- "module": "core/base-elements/element.js"
127836
+ "name": "SbbFormAssociatedMixin",
127837
+ "module": "core/mixins/form-associated-mixin.js"
127884
127838
  }
127885
127839
  },
127886
127840
  {
127887
127841
  "kind": "field",
127888
- "name": "_hydrationRequired",
127842
+ "name": "willValidate",
127889
127843
  "type": {
127890
127844
  "text": "boolean"
127891
127845
  },
127892
- "privacy": "private",
127893
- "default": "!!this.shadowRoot",
127846
+ "privacy": "public",
127847
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
127848
+ "readonly": true,
127894
127849
  "inheritedFrom": {
127895
- "name": "SbbElement",
127896
- "module": "core/base-elements/element.js"
127850
+ "name": "SbbFormAssociatedMixin",
127851
+ "module": "core/mixins/form-associated-mixin.js"
127897
127852
  }
127898
127853
  },
127899
127854
  {
127900
127855
  "kind": "field",
127901
- "name": "_hydrationComplete",
127856
+ "name": "_validityStates",
127902
127857
  "privacy": "private",
127903
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
127858
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
127904
127859
  "inheritedFrom": {
127905
- "name": "SbbElement",
127906
- "module": "core/base-elements/element.js"
127860
+ "name": "SbbFormAssociatedMixin",
127861
+ "module": "core/mixins/form-associated-mixin.js"
127907
127862
  }
127908
127863
  },
127909
127864
  {
127910
127865
  "kind": "field",
127911
- "name": "_resolveHydration",
127866
+ "name": "formDisabled",
127912
127867
  "type": {
127913
- "text": "(hydrationRequired: boolean) => void"
127868
+ "text": "boolean"
127914
127869
  },
127915
- "privacy": "private",
127870
+ "privacy": "protected",
127871
+ "default": "false",
127872
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
127916
127873
  "inheritedFrom": {
127917
- "name": "SbbElement",
127918
- "module": "core/base-elements/element.js"
127874
+ "name": "SbbFormAssociatedMixin",
127875
+ "module": "core/mixins/form-associated-mixin.js"
127919
127876
  }
127920
127877
  },
127921
127878
  {
127922
- "kind": "field",
127923
- "name": "_textObserver",
127924
- "type": {
127925
- "text": "MutationObserver | undefined"
127879
+ "kind": "method",
127880
+ "name": "checkValidity",
127881
+ "privacy": "public",
127882
+ "return": {
127883
+ "type": {
127884
+ "text": "boolean"
127885
+ }
127926
127886
  },
127927
- "privacy": "private",
127887
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
127928
127888
  "inheritedFrom": {
127929
- "name": "SbbElement",
127930
- "module": "core/base-elements/element.js"
127889
+ "name": "SbbFormAssociatedMixin",
127890
+ "module": "core/mixins/form-associated-mixin.js"
127931
127891
  }
127932
127892
  },
127933
127893
  {
127934
- "kind": "field",
127935
- "name": "hydrationRequired",
127936
- "type": {
127937
- "text": "boolean"
127894
+ "kind": "method",
127895
+ "name": "reportValidity",
127896
+ "privacy": "public",
127897
+ "return": {
127898
+ "type": {
127899
+ "text": "boolean"
127900
+ }
127938
127901
  },
127939
- "privacy": "protected",
127940
- "description": "Returns whether hydration is required and not completed.",
127941
- "readonly": true,
127902
+ "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.",
127942
127903
  "inheritedFrom": {
127943
- "name": "SbbElement",
127944
- "module": "core/base-elements/element.js"
127945
- },
127946
- "default": "!!this.shadowRoot"
127904
+ "name": "SbbFormAssociatedMixin",
127905
+ "module": "core/mixins/form-associated-mixin.js"
127906
+ }
127947
127907
  },
127948
127908
  {
127949
127909
  "kind": "method",
127950
- "name": "toggleState",
127951
- "privacy": "protected",
127910
+ "name": "setCustomValidity",
127911
+ "privacy": "public",
127952
127912
  "return": {
127953
127913
  "type": {
127954
127914
  "text": "void"
@@ -127956,56 +127916,65 @@
127956
127916
  },
127957
127917
  "parameters": [
127958
127918
  {
127959
- "name": "value",
127919
+ "name": "message",
127960
127920
  "type": {
127961
127921
  "text": "string"
127962
127922
  }
127963
- },
127964
- {
127965
- "name": "force",
127966
- "optional": true,
127967
- "type": {
127968
- "text": "boolean"
127969
- }
127970
127923
  }
127971
127924
  ],
127925
+ "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.",
127972
127926
  "inheritedFrom": {
127973
- "name": "SbbElement",
127974
- "module": "core/base-elements/element.js"
127927
+ "name": "SbbFormAssociatedMixin",
127928
+ "module": "core/mixins/form-associated-mixin.js"
127975
127929
  }
127976
127930
  },
127977
127931
  {
127978
127932
  "kind": "method",
127979
- "name": "_slotchangeHandler",
127933
+ "name": "_hasDisabledAncestor",
127980
127934
  "privacy": "private",
127935
+ "return": {
127936
+ "type": {
127937
+ "text": "boolean"
127938
+ }
127939
+ },
127940
+ "inheritedFrom": {
127941
+ "name": "SbbFormAssociatedMixin",
127942
+ "module": "core/mixins/form-associated-mixin.js"
127943
+ }
127944
+ },
127945
+ {
127946
+ "kind": "method",
127947
+ "name": "updateFormValue",
127948
+ "privacy": "protected",
127981
127949
  "return": {
127982
127950
  "type": {
127983
127951
  "text": "void"
127984
127952
  }
127985
127953
  },
127986
- "parameters": [
127987
- {
127988
- "name": "event",
127989
- "type": {
127990
- "text": "Event"
127991
- }
127992
- },
127993
- {
127994
- "name": "slot",
127995
- "type": {
127996
- "text": "HTMLSlotElement"
127997
- }
127954
+ "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",
127955
+ "inheritedFrom": {
127956
+ "name": "SbbFormAssociatedMixin",
127957
+ "module": "core/mixins/form-associated-mixin.js"
127958
+ }
127959
+ },
127960
+ {
127961
+ "kind": "method",
127962
+ "name": "formState",
127963
+ "privacy": "protected",
127964
+ "return": {
127965
+ "type": {
127966
+ "text": "FormRestoreState"
127998
127967
  }
127999
- ],
127968
+ },
128000
127969
  "inheritedFrom": {
128001
- "name": "SbbElement",
128002
- "module": "core/base-elements/element.js"
127970
+ "name": "SbbFormAssociatedMixin",
127971
+ "module": "core/mixins/form-associated-mixin.js"
128003
127972
  }
128004
127973
  },
128005
127974
  {
128006
127975
  "kind": "method",
128007
- "name": "_handleSlotChangeForSlottedState",
128008
- "privacy": "private",
127976
+ "name": "setValidityFlag",
127977
+ "privacy": "protected",
128009
127978
  "return": {
128010
127979
  "type": {
128011
127980
  "text": "void"
@@ -128013,21 +127982,35 @@
128013
127982
  },
128014
127983
  "parameters": [
128015
127984
  {
128016
- "name": "slot",
127985
+ "name": "flag",
128017
127986
  "type": {
128018
- "text": "HTMLSlotElement"
127987
+ "text": "T"
127988
+ }
127989
+ },
127990
+ {
127991
+ "name": "message",
127992
+ "type": {
127993
+ "text": "string"
127994
+ }
127995
+ },
127996
+ {
127997
+ "name": "flagValue",
127998
+ "optional": true,
127999
+ "type": {
128000
+ "text": "ValidityStateFlags[T]"
128019
128001
  }
128020
128002
  }
128021
128003
  ],
128004
+ "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).",
128022
128005
  "inheritedFrom": {
128023
- "name": "SbbElement",
128024
- "module": "core/base-elements/element.js"
128006
+ "name": "SbbFormAssociatedMixin",
128007
+ "module": "core/mixins/form-associated-mixin.js"
128025
128008
  }
128026
128009
  },
128027
128010
  {
128028
128011
  "kind": "method",
128029
- "name": "_updateSlottedState",
128030
- "privacy": "private",
128012
+ "name": "removeValidityFlag",
128013
+ "privacy": "protected",
128031
128014
  "return": {
128032
128015
  "type": {
128033
128016
  "text": "void"
@@ -128035,43 +128018,37 @@
128035
128018
  },
128036
128019
  "parameters": [
128037
128020
  {
128038
- "name": "slot",
128021
+ "name": "flag",
128039
128022
  "type": {
128040
- "text": "HTMLSlotElement"
128023
+ "text": "T"
128041
128024
  }
128042
128025
  }
128043
128026
  ],
128027
+ "description": "Removes the validity state flag entry and updates validity state.",
128044
128028
  "inheritedFrom": {
128045
- "name": "SbbElement",
128046
- "module": "core/base-elements/element.js"
128029
+ "name": "SbbFormAssociatedMixin",
128030
+ "module": "core/mixins/form-associated-mixin.js"
128047
128031
  }
128048
128032
  },
128049
128033
  {
128050
128034
  "kind": "method",
128051
- "name": "_observeTextNodesInSlot",
128052
- "privacy": "private",
128035
+ "name": "validate",
128036
+ "privacy": "protected",
128053
128037
  "return": {
128054
128038
  "type": {
128055
128039
  "text": "void"
128056
128040
  }
128057
128041
  },
128058
- "parameters": [
128059
- {
128060
- "name": "slot",
128061
- "type": {
128062
- "text": "HTMLSlotElement"
128063
- }
128064
- }
128065
- ],
128042
+ "description": "To be called whenever the current element needs to be validated.",
128066
128043
  "inheritedFrom": {
128067
- "name": "SbbElement",
128068
- "module": "core/base-elements/element.js"
128044
+ "name": "SbbFormAssociatedMixin",
128045
+ "module": "core/mixins/form-associated-mixin.js"
128069
128046
  }
128070
128047
  },
128071
128048
  {
128072
128049
  "kind": "method",
128073
- "name": "_hasSlottedContent",
128074
- "privacy": "private",
128050
+ "name": "shouldValidate",
128051
+ "privacy": "protected",
128075
128052
  "return": {
128076
128053
  "type": {
128077
128054
  "text": "boolean"
@@ -128079,851 +128056,833 @@
128079
128056
  },
128080
128057
  "parameters": [
128081
128058
  {
128082
- "name": "slot",
128059
+ "name": "name",
128083
128060
  "type": {
128084
- "text": "HTMLSlotElement"
128061
+ "text": "PropertyKey | undefined"
128085
128062
  }
128086
128063
  }
128087
128064
  ],
128065
+ "description": "Whether validation should be run on a property change with the given name.",
128088
128066
  "inheritedFrom": {
128089
- "name": "SbbElement",
128090
- "module": "core/base-elements/element.js"
128067
+ "name": "SbbFormAssociatedMixin",
128068
+ "module": "core/mixins/form-associated-mixin.js"
128091
128069
  }
128092
- }
128093
- ],
128094
- "mixins": [
128095
- {
128096
- "name": "SbbDisabledInteractiveMixin",
128097
- "module": "core.js"
128098
128070
  },
128099
128071
  {
128100
- "name": "SbbMenuActionCommonElementMixin",
128101
- "module": "menu/common/menu-action-common.js"
128102
- }
128103
- ],
128104
- "superclass": {
128105
- "name": "SbbLinkBaseElement",
128106
- "module": "core.js"
128107
- },
128108
- "tagName": "sbb-menu-link",
128109
- "customElement": true,
128110
- "attributes": [
128111
- {
128112
- "name": "disabled-interactive",
128113
- "type": {
128114
- "text": "boolean"
128115
- },
128116
- "default": "false",
128117
- "description": "Whether the button should be aria-disabled but stay interactive.",
128118
- "fieldName": "disabledInteractive",
128119
- "inheritedFrom": {
128120
- "name": "SbbDisabledInteractiveMixin",
128121
- "module": "core/mixins/disabled-mixin.js"
128122
- }
128123
- },
128124
- {
128125
- "name": "icon-name",
128126
- "type": {
128127
- "text": "string"
128072
+ "kind": "method",
128073
+ "name": "_setInternalValidity",
128074
+ "privacy": "private",
128075
+ "return": {
128076
+ "type": {
128077
+ "text": "void"
128078
+ }
128128
128079
  },
128129
- "default": "''",
128130
- "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.",
128131
- "fieldName": "iconName",
128132
128080
  "inheritedFrom": {
128133
- "name": "SbbIconNameMixin",
128134
- "module": "icon/icon-name-mixin.js"
128081
+ "name": "SbbFormAssociatedMixin",
128082
+ "module": "core/mixins/form-associated-mixin.js"
128135
128083
  }
128136
128084
  },
128137
128085
  {
128138
- "name": "disabled",
128139
- "description": "Whether the component is disabled.",
128140
- "default": "false",
128141
- "type": {
128142
- "text": "boolean"
128143
- },
128144
- "fieldName": "disabled",
128086
+ "kind": "field",
128087
+ "name": "_preventScrollOnSpaceKeydown",
128088
+ "privacy": "private",
128089
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
128090
+ "parameters": [
128091
+ {
128092
+ "description": "The origin event.",
128093
+ "name": "event"
128094
+ }
128095
+ ],
128145
128096
  "inheritedFrom": {
128146
- "name": "SbbDisabledMixin",
128147
- "module": "core/mixins/disabled-mixin.js"
128097
+ "name": "SbbButtonLikeBaseElement",
128098
+ "module": "core/base-elements/button-base-element.js"
128148
128099
  }
128149
128100
  },
128150
128101
  {
128151
- "name": "href",
128152
- "type": {
128153
- "text": "string"
128154
- },
128155
- "default": "''",
128156
- "description": "The href value you want to link to.",
128157
- "fieldName": "href",
128102
+ "kind": "field",
128103
+ "name": "_removeActiveMarker",
128104
+ "privacy": "private",
128158
128105
  "inheritedFrom": {
128159
- "name": "SbbLinkBaseElement",
128160
- "module": "core/base-elements/link-base-element.js"
128106
+ "name": "SbbButtonLikeBaseElement",
128107
+ "module": "core/base-elements/button-base-element.js"
128161
128108
  }
128162
128109
  },
128163
128110
  {
128164
- "name": "target",
128165
- "type": {
128166
- "text": "LinkTargetType | string"
128167
- },
128168
- "default": "''",
128169
- "description": "Where to display the linked URL.",
128170
- "fieldName": "target",
128111
+ "kind": "field",
128112
+ "name": "_dispatchClickEventOnSpaceKeyup",
128113
+ "privacy": "private",
128114
+ "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.",
128115
+ "parameters": [
128116
+ {
128117
+ "description": "The origin event.",
128118
+ "name": "event"
128119
+ }
128120
+ ],
128171
128121
  "inheritedFrom": {
128172
- "name": "SbbLinkBaseElement",
128173
- "module": "core/base-elements/link-base-element.js"
128122
+ "name": "SbbButtonLikeBaseElement",
128123
+ "module": "core/base-elements/button-base-element.js"
128174
128124
  }
128175
128125
  },
128176
128126
  {
128177
- "name": "rel",
128178
- "type": {
128179
- "text": "string"
128180
- },
128181
- "default": "''",
128182
- "description": "The relationship of the linked URL as space-separated link types.",
128183
- "fieldName": "rel",
128127
+ "kind": "field",
128128
+ "name": "_dispatchClickEvent",
128129
+ "privacy": "private",
128184
128130
  "inheritedFrom": {
128185
- "name": "SbbLinkBaseElement",
128186
- "module": "core/base-elements/link-base-element.js"
128131
+ "name": "SbbButtonLikeBaseElement",
128132
+ "module": "core/base-elements/button-base-element.js"
128187
128133
  }
128188
128134
  },
128189
128135
  {
128190
- "name": "download",
128136
+ "kind": "field",
128137
+ "name": "maybeDisabled",
128191
128138
  "type": {
128192
- "text": "boolean"
128139
+ "text": "boolean | undefined"
128193
128140
  },
128194
- "default": "false",
128195
- "description": "Whether the browser will show the download dialog on click.",
128196
- "fieldName": "download",
128141
+ "privacy": "protected",
128142
+ "readonly": true,
128197
128143
  "inheritedFrom": {
128198
- "name": "SbbLinkBaseElement",
128199
- "module": "core/base-elements/link-base-element.js"
128144
+ "name": "SbbActionBaseElement",
128145
+ "module": "core/base-elements/action-base-element.js"
128200
128146
  }
128201
128147
  },
128202
128148
  {
128203
- "name": "accessibility-label",
128149
+ "kind": "field",
128150
+ "name": "maybeDisabledInteractive",
128204
128151
  "type": {
128205
- "text": "string"
128152
+ "text": "boolean | undefined"
128206
128153
  },
128207
- "default": "''",
128208
- "description": "This will be forwarded as aria-label to the inner anchor element.",
128209
- "fieldName": "accessibilityLabel",
128154
+ "privacy": "protected",
128155
+ "readonly": true,
128210
128156
  "inheritedFrom": {
128211
- "name": "SbbLinkBaseElement",
128212
- "module": "core/base-elements/link-base-element.js"
128157
+ "name": "SbbActionBaseElement",
128158
+ "module": "core/base-elements/action-base-element.js"
128213
128159
  }
128214
128160
  },
128215
128161
  {
128216
- "name": "accessibility-current",
128217
- "type": {
128218
- "text": "string"
128162
+ "kind": "method",
128163
+ "name": "setupBaseEventHandlers",
128164
+ "privacy": "protected",
128165
+ "return": {
128166
+ "type": {
128167
+ "text": "void"
128168
+ }
128219
128169
  },
128220
- "default": "''",
128221
- "description": "This will be forwarded as aria-current to the inner anchor element.",
128222
- "fieldName": "accessibilityCurrent",
128223
128170
  "inheritedFrom": {
128224
- "name": "SbbLinkBaseElement",
128225
- "module": "core/base-elements/link-base-element.js"
128171
+ "name": "SbbActionBaseElement",
128172
+ "module": "core/base-elements/action-base-element.js"
128226
128173
  }
128227
- }
128228
- ]
128229
- }
128230
- ],
128231
- "exports": [
128232
- {
128233
- "kind": "js",
128234
- "name": "SbbMenuLinkElement",
128235
- "declaration": {
128236
- "name": "SbbMenuLinkElement",
128237
- "module": "menu/menu-link/menu-link.component.js"
128238
- }
128239
- }
128240
- ]
128241
- },
128242
- {
128243
- "kind": "javascript-module",
128244
- "path": "menu/menu-button/menu-button.component.js",
128245
- "declarations": [
128246
- {
128247
- "kind": "class",
128248
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
128249
- "name": "SbbMenuButtonElement",
128250
- "cssProperties": [
128251
- {
128252
- "description": "Can be used to modify horizontal padding.",
128253
- "name": "--sbb-menu-action-outer-horizontal-padding",
128254
- "default": "var(--sbb-spacing-fixed-3x)"
128255
- }
128256
- ],
128257
- "slots": [
128258
- {
128259
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
128260
- "name": ""
128261
128174
  },
128262
- {
128263
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
128264
- "name": "icon"
128265
- }
128266
- ],
128267
- "members": [
128268
128175
  {
128269
128176
  "kind": "field",
128270
- "name": "elementName",
128177
+ "name": "['_$sbbElement$']",
128271
128178
  "type": {
128272
- "text": "string"
128179
+ "text": "boolean"
128273
128180
  },
128274
128181
  "privacy": "public",
128275
128182
  "static": true,
128276
- "readonly": true,
128183
+ "default": "true",
128277
128184
  "inheritedFrom": {
128278
128185
  "name": "SbbElement",
128279
128186
  "module": "core/base-elements/element.js"
128280
- },
128281
- "default": "'sbb-menu-button'"
128187
+ }
128282
128188
  },
128283
128189
  {
128284
128190
  "kind": "field",
128285
- "name": "role",
128191
+ "name": "_controllers",
128286
128192
  "type": {
128287
- "text": "ElementInternals['role']"
128193
+ "text": "Set<SbbReactiveController> | undefined"
128288
128194
  },
128289
- "privacy": "public",
128290
- "static": true,
128195
+ "privacy": "private",
128291
128196
  "inheritedFrom": {
128292
128197
  "name": "SbbElement",
128293
128198
  "module": "core/base-elements/element.js"
128294
- },
128295
- "readonly": true,
128296
- "default": "'menuitem'"
128297
- },
128298
- {
128299
- "kind": "field",
128300
- "name": "disabledInteractive",
128301
- "type": {
128302
- "text": "boolean"
128303
- },
128304
- "privacy": "public",
128305
- "default": "false",
128306
- "description": "Whether the button should be aria-disabled but stay interactive.",
128307
- "attribute": "disabled-interactive",
128308
- "reflects": true,
128309
- "inheritedFrom": {
128310
- "name": "SbbDisabledInteractiveMixin",
128311
- "module": "core/mixins/disabled-mixin.js"
128312
128199
  }
128313
128200
  },
128314
128201
  {
128315
128202
  "kind": "field",
128316
- "name": "disabled",
128317
- "privacy": "public",
128318
- "description": "Whether the component is disabled.",
128319
- "default": "false",
128203
+ "name": "_hydrationRequired",
128320
128204
  "type": {
128321
128205
  "text": "boolean"
128322
128206
  },
128323
- "attribute": "disabled",
128324
- "reflects": true,
128207
+ "privacy": "private",
128208
+ "default": "!!this.shadowRoot",
128325
128209
  "inheritedFrom": {
128326
- "name": "SbbDisabledMixin",
128327
- "module": "core/mixins/disabled-mixin.js"
128210
+ "name": "SbbElement",
128211
+ "module": "core/base-elements/element.js"
128328
128212
  }
128329
128213
  },
128330
128214
  {
128331
128215
  "kind": "field",
128332
- "name": "#disabled",
128216
+ "name": "_hydrationComplete",
128333
128217
  "privacy": "private",
128334
- "type": {
128335
- "text": "boolean"
128336
- },
128337
- "default": "false",
128338
- "inheritedFrom": {
128339
- "name": "SbbDisabledMixin",
128340
- "module": "core/mixins/disabled-mixin.js"
128341
- }
128342
- },
128343
- {
128344
- "kind": "method",
128345
- "name": "isDisabledExternally",
128346
- "privacy": "protected",
128347
- "return": {
128348
- "type": {
128349
- "text": "boolean"
128350
- }
128351
- },
128352
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
128218
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
128353
128219
  "inheritedFrom": {
128354
- "name": "SbbDisabledMixin",
128355
- "module": "core/mixins/disabled-mixin.js"
128220
+ "name": "SbbElement",
128221
+ "module": "core/base-elements/element.js"
128356
128222
  }
128357
128223
  },
128358
128224
  {
128359
128225
  "kind": "field",
128360
- "name": "styles",
128226
+ "name": "_resolveHydration",
128361
128227
  "type": {
128362
- "text": "CSSResultGroup"
128228
+ "text": "(hydrationRequired: boolean) => void"
128363
128229
  },
128364
- "privacy": "public",
128365
- "static": true,
128366
- "default": "[boxSizingStyles, unsafeCSS(style)]",
128230
+ "privacy": "private",
128367
128231
  "inheritedFrom": {
128368
- "name": "SbbMenuActionCommonElementMixin",
128369
- "module": "menu/common/menu-action-common.js"
128232
+ "name": "SbbElement",
128233
+ "module": "core/base-elements/element.js"
128370
128234
  }
128371
128235
  },
128372
128236
  {
128373
- "kind": "method",
128374
- "name": "renderTemplate",
128375
- "privacy": "protected",
128376
- "return": {
128377
- "type": {
128378
- "text": "TemplateResult"
128379
- }
128237
+ "kind": "field",
128238
+ "name": "_textObserver",
128239
+ "type": {
128240
+ "text": "MutationObserver | undefined"
128380
128241
  },
128381
- "description": "Override this method to render the component template.",
128242
+ "privacy": "private",
128382
128243
  "inheritedFrom": {
128383
- "name": "SbbActionBaseElement",
128384
- "module": "core/base-elements/action-base-element.js"
128244
+ "name": "SbbElement",
128245
+ "module": "core/base-elements/element.js"
128385
128246
  }
128386
128247
  },
128387
128248
  {
128388
128249
  "kind": "field",
128389
- "name": "elementDependencies",
128250
+ "name": "hydrationRequired",
128390
128251
  "type": {
128391
- "text": "SbbElementType[]"
128252
+ "text": "boolean"
128392
128253
  },
128393
- "privacy": "public",
128394
- "static": true,
128254
+ "privacy": "protected",
128255
+ "description": "Returns whether hydration is required and not completed.",
128256
+ "readonly": true,
128395
128257
  "inheritedFrom": {
128396
128258
  "name": "SbbElement",
128397
128259
  "module": "core/base-elements/element.js"
128398
128260
  },
128399
- "default": "[SbbIconElement]"
128261
+ "default": "!!this.shadowRoot"
128400
128262
  },
128401
128263
  {
128402
- "kind": "field",
128403
- "name": "iconName",
128404
- "type": {
128405
- "text": "string"
128264
+ "kind": "method",
128265
+ "name": "toggleState",
128266
+ "privacy": "protected",
128267
+ "return": {
128268
+ "type": {
128269
+ "text": "void"
128270
+ }
128406
128271
  },
128407
- "privacy": "public",
128408
- "default": "''",
128409
- "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.",
128410
- "attribute": "icon-name",
128272
+ "parameters": [
128273
+ {
128274
+ "name": "value",
128275
+ "type": {
128276
+ "text": "string"
128277
+ }
128278
+ },
128279
+ {
128280
+ "name": "force",
128281
+ "optional": true,
128282
+ "type": {
128283
+ "text": "boolean"
128284
+ }
128285
+ }
128286
+ ],
128411
128287
  "inheritedFrom": {
128412
- "name": "SbbIconNameMixin",
128413
- "module": "icon/icon-name-mixin.js"
128288
+ "name": "SbbElement",
128289
+ "module": "core/base-elements/element.js"
128414
128290
  }
128415
128291
  },
128416
128292
  {
128417
128293
  "kind": "method",
128418
- "name": "renderIconSlot",
128419
- "privacy": "protected",
128294
+ "name": "_slotchangeHandler",
128295
+ "privacy": "private",
128420
128296
  "return": {
128421
128297
  "type": {
128422
- "text": "TemplateResult"
128298
+ "text": "void"
128423
128299
  }
128424
128300
  },
128425
128301
  "parameters": [
128426
128302
  {
128427
- "name": "classname",
128428
- "optional": true,
128303
+ "name": "event",
128429
128304
  "type": {
128430
- "text": "string"
128305
+ "text": "Event"
128306
+ }
128307
+ },
128308
+ {
128309
+ "name": "slot",
128310
+ "type": {
128311
+ "text": "HTMLSlotElement"
128431
128312
  }
128432
128313
  }
128433
128314
  ],
128434
128315
  "inheritedFrom": {
128435
- "name": "SbbIconNameMixin",
128436
- "module": "icon/icon-name-mixin.js"
128316
+ "name": "SbbElement",
128317
+ "module": "core/base-elements/element.js"
128437
128318
  }
128438
128319
  },
128439
128320
  {
128440
128321
  "kind": "method",
128441
- "name": "renderIconName",
128442
- "privacy": "protected",
128322
+ "name": "_handleSlotChangeForSlottedState",
128323
+ "privacy": "private",
128443
128324
  "return": {
128444
128325
  "type": {
128445
- "text": "string"
128326
+ "text": "void"
128446
128327
  }
128447
128328
  },
128329
+ "parameters": [
128330
+ {
128331
+ "name": "slot",
128332
+ "type": {
128333
+ "text": "HTMLSlotElement"
128334
+ }
128335
+ }
128336
+ ],
128448
128337
  "inheritedFrom": {
128449
- "name": "SbbIconNameMixin",
128450
- "module": "icon/icon-name-mixin.js"
128338
+ "name": "SbbElement",
128339
+ "module": "core/base-elements/element.js"
128451
128340
  }
128452
128341
  },
128453
128342
  {
128454
128343
  "kind": "method",
128455
- "name": "_renderIconName",
128344
+ "name": "_updateSlottedState",
128456
128345
  "privacy": "private",
128457
128346
  "return": {
128458
128347
  "type": {
128459
- "text": "string"
128348
+ "text": "void"
128460
128349
  }
128461
128350
  },
128351
+ "parameters": [
128352
+ {
128353
+ "name": "slot",
128354
+ "type": {
128355
+ "text": "HTMLSlotElement"
128356
+ }
128357
+ }
128358
+ ],
128462
128359
  "inheritedFrom": {
128463
- "name": "SbbIconNameMixin",
128464
- "module": "icon/icon-name-mixin.js"
128360
+ "name": "SbbElement",
128361
+ "module": "core/base-elements/element.js"
128465
128362
  }
128466
128363
  },
128467
128364
  {
128468
- "kind": "field",
128469
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
128470
- "type": {
128471
- "text": "array"
128472
- },
128365
+ "kind": "method",
128366
+ "name": "_observeTextNodesInSlot",
128473
128367
  "privacy": "private",
128474
- "readonly": true,
128475
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
128368
+ "return": {
128369
+ "type": {
128370
+ "text": "void"
128371
+ }
128372
+ },
128373
+ "parameters": [
128374
+ {
128375
+ "name": "slot",
128376
+ "type": {
128377
+ "text": "HTMLSlotElement"
128378
+ }
128379
+ }
128380
+ ],
128476
128381
  "inheritedFrom": {
128477
- "name": "SbbButtonBaseElement",
128478
- "module": "core/base-elements/button-base-element.js"
128382
+ "name": "SbbElement",
128383
+ "module": "core/base-elements/element.js"
128479
128384
  }
128480
128385
  },
128481
128386
  {
128482
- "kind": "field",
128483
- "name": "value",
128484
- "type": {
128485
- "text": "string"
128387
+ "kind": "method",
128388
+ "name": "_hasSlottedContent",
128389
+ "privacy": "private",
128390
+ "return": {
128391
+ "type": {
128392
+ "text": "boolean"
128393
+ }
128486
128394
  },
128487
- "privacy": "public",
128395
+ "parameters": [
128396
+ {
128397
+ "name": "slot",
128398
+ "type": {
128399
+ "text": "HTMLSlotElement"
128400
+ }
128401
+ }
128402
+ ],
128488
128403
  "inheritedFrom": {
128489
- "name": "SbbButtonBaseElement",
128490
- "module": "core/base-elements/button-base-element.js"
128491
- },
128492
- "default": "''",
128493
- "description": "Value of the form element.",
128494
- "attribute": "value"
128404
+ "name": "SbbElement",
128405
+ "module": "core/base-elements/element.js"
128406
+ }
128407
+ }
128408
+ ],
128409
+ "mixins": [
128410
+ {
128411
+ "name": "SbbDisabledTabIndexActionMixin",
128412
+ "module": "core.js"
128495
128413
  },
128496
128414
  {
128497
- "kind": "field",
128498
- "name": "type",
128499
- "privacy": "public",
128500
- "description": "The type attribute to use for the button.",
128501
- "default": "'button'",
128415
+ "name": "SbbMenuActionCommonElementMixin",
128416
+ "module": "menu/common/menu-action-common.js"
128417
+ }
128418
+ ],
128419
+ "superclass": {
128420
+ "name": "SbbButtonBaseElement",
128421
+ "module": "core.js"
128422
+ },
128423
+ "tagName": "sbb-menu-button",
128424
+ "customElement": true,
128425
+ "attributes": [
128426
+ {
128427
+ "name": "disabled-interactive",
128502
128428
  "type": {
128503
- "text": "SbbButtonType"
128429
+ "text": "boolean"
128504
128430
  },
128505
- "attribute": "type",
128431
+ "default": "false",
128432
+ "description": "Whether the button should be aria-disabled but stay interactive.",
128433
+ "fieldName": "disabledInteractive",
128506
128434
  "inheritedFrom": {
128507
- "name": "SbbButtonBaseElement",
128508
- "module": "core/base-elements/button-base-element.js"
128435
+ "name": "SbbDisabledInteractiveMixin",
128436
+ "module": "core/mixins/disabled-mixin.js"
128509
128437
  }
128510
128438
  },
128511
128439
  {
128512
- "kind": "field",
128513
- "name": "form",
128440
+ "name": "disabled",
128441
+ "description": "Whether the component is disabled.",
128442
+ "default": "false",
128514
128443
  "type": {
128515
- "text": "HTMLFormElement | null"
128444
+ "text": "boolean"
128516
128445
  },
128517
- "privacy": "public",
128518
- "description": "The `<form>` element to associate the button with.",
128446
+ "fieldName": "disabled",
128519
128447
  "inheritedFrom": {
128520
- "name": "SbbButtonBaseElement",
128521
- "module": "core/base-elements/button-base-element.js"
128522
- },
128523
- "attribute": "form"
128448
+ "name": "SbbDisabledMixin",
128449
+ "module": "core/mixins/disabled-mixin.js"
128450
+ }
128524
128451
  },
128525
128452
  {
128526
- "kind": "field",
128527
- "name": "_formId",
128453
+ "name": "icon-name",
128528
128454
  "type": {
128529
128455
  "text": "string"
128530
128456
  },
128531
- "privacy": "private",
128532
128457
  "default": "''",
128458
+ "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.",
128459
+ "fieldName": "iconName",
128533
128460
  "inheritedFrom": {
128534
- "name": "SbbButtonBaseElement",
128535
- "module": "core/base-elements/button-base-element.js"
128461
+ "name": "SbbIconNameMixin",
128462
+ "module": "icon/icon-name-mixin.js"
128536
128463
  }
128537
128464
  },
128538
128465
  {
128539
- "kind": "field",
128540
- "name": "_handleButtonClick",
128541
- "privacy": "private",
128466
+ "name": "value",
128467
+ "type": {
128468
+ "text": "string"
128469
+ },
128470
+ "default": "''",
128471
+ "description": "Value of the form element.",
128472
+ "fieldName": "value",
128542
128473
  "inheritedFrom": {
128543
128474
  "name": "SbbButtonBaseElement",
128544
128475
  "module": "core/base-elements/button-base-element.js"
128545
128476
  }
128546
128477
  },
128547
128478
  {
128548
- "kind": "method",
128549
- "name": "_requestSubmit",
128550
- "privacy": "private",
128551
- "return": {
128552
- "type": {
128553
- "text": "void"
128554
- }
128479
+ "name": "type",
128480
+ "description": "The type attribute to use for the button.",
128481
+ "default": "'button'",
128482
+ "type": {
128483
+ "text": "SbbButtonType"
128555
128484
  },
128556
- "parameters": [
128557
- {
128558
- "name": "form",
128559
- "type": {
128560
- "text": "HTMLFormElement"
128561
- }
128562
- }
128563
- ],
128485
+ "fieldName": "type",
128564
128486
  "inheritedFrom": {
128565
128487
  "name": "SbbButtonBaseElement",
128566
128488
  "module": "core/base-elements/button-base-element.js"
128567
128489
  }
128568
128490
  },
128569
128491
  {
128570
- "kind": "field",
128571
- "name": "_formKeyDown",
128572
- "privacy": "private",
128492
+ "name": "form",
128493
+ "description": "The `<form>` element to associate the button with.",
128494
+ "type": {
128495
+ "text": "HTMLFormElement | null"
128496
+ },
128497
+ "fieldName": "form",
128573
128498
  "inheritedFrom": {
128574
128499
  "name": "SbbButtonBaseElement",
128575
128500
  "module": "core/base-elements/button-base-element.js"
128576
128501
  }
128577
128502
  },
128578
128503
  {
128579
- "kind": "field",
128580
- "name": "formAssociated",
128504
+ "name": "name",
128505
+ "description": "Name of the form element. Will be read from name attribute.",
128581
128506
  "type": {
128582
- "text": "boolean"
128507
+ "text": "string"
128583
128508
  },
128584
- "privacy": "public",
128585
- "static": true,
128586
- "default": "true",
128509
+ "fieldName": "name",
128587
128510
  "inheritedFrom": {
128588
128511
  "name": "SbbFormAssociatedMixin",
128589
128512
  "module": "core/mixins/form-associated-mixin.js"
128590
128513
  }
128591
- },
128514
+ }
128515
+ ]
128516
+ }
128517
+ ],
128518
+ "exports": [
128519
+ {
128520
+ "kind": "js",
128521
+ "name": "SbbMenuButtonElement",
128522
+ "declaration": {
128523
+ "name": "SbbMenuButtonElement",
128524
+ "module": "menu/menu-button/menu-button.component.js"
128525
+ }
128526
+ }
128527
+ ]
128528
+ },
128529
+ {
128530
+ "kind": "javascript-module",
128531
+ "path": "menu/menu-link/menu-link.component.js",
128532
+ "declarations": [
128533
+ {
128534
+ "kind": "class",
128535
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
128536
+ "name": "SbbMenuLinkElement",
128537
+ "cssProperties": [
128538
+ {
128539
+ "description": "Can be used to modify horizontal padding.",
128540
+ "name": "--sbb-menu-action-outer-horizontal-padding",
128541
+ "default": "var(--sbb-spacing-fixed-3x)"
128542
+ }
128543
+ ],
128544
+ "slots": [
128592
128545
  {
128593
- "kind": "field",
128594
- "name": "name",
128595
- "privacy": "public",
128596
- "description": "Name of the form element. Will be read from name attribute.",
128597
- "type": {
128598
- "text": "string"
128599
- },
128600
- "attribute": "name",
128601
- "inheritedFrom": {
128602
- "name": "SbbFormAssociatedMixin",
128603
- "module": "core/mixins/form-associated-mixin.js"
128604
- }
128546
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
128547
+ "name": ""
128605
128548
  },
128549
+ {
128550
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
128551
+ "name": "icon"
128552
+ }
128553
+ ],
128554
+ "members": [
128606
128555
  {
128607
128556
  "kind": "field",
128608
- "name": "validity",
128557
+ "name": "elementName",
128609
128558
  "type": {
128610
- "text": "ValidityState"
128559
+ "text": "string"
128611
128560
  },
128612
128561
  "privacy": "public",
128613
- "description": "Returns the ValidityState object for this element.",
128562
+ "static": true,
128614
128563
  "readonly": true,
128615
128564
  "inheritedFrom": {
128616
- "name": "SbbFormAssociatedMixin",
128617
- "module": "core/mixins/form-associated-mixin.js"
128618
- }
128565
+ "name": "SbbElement",
128566
+ "module": "core/base-elements/element.js"
128567
+ },
128568
+ "default": "'sbb-menu-link'"
128619
128569
  },
128620
128570
  {
128621
128571
  "kind": "field",
128622
- "name": "validationMessage",
128572
+ "name": "anchorRole",
128623
128573
  "type": {
128624
128574
  "text": "string"
128625
128575
  },
128626
- "privacy": "public",
128627
- "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.",
128576
+ "privacy": "protected",
128628
128577
  "readonly": true,
128578
+ "default": "'menuitem'",
128629
128579
  "inheritedFrom": {
128630
- "name": "SbbFormAssociatedMixin",
128631
- "module": "core/mixins/form-associated-mixin.js"
128580
+ "name": "SbbLinkBaseElement",
128581
+ "module": "core/base-elements/link-base-element.js"
128632
128582
  }
128633
128583
  },
128634
128584
  {
128635
128585
  "kind": "field",
128636
- "name": "willValidate",
128586
+ "name": "disabledInteractive",
128637
128587
  "type": {
128638
128588
  "text": "boolean"
128639
128589
  },
128640
128590
  "privacy": "public",
128641
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
128642
- "readonly": true,
128643
- "inheritedFrom": {
128644
- "name": "SbbFormAssociatedMixin",
128645
- "module": "core/mixins/form-associated-mixin.js"
128646
- }
128647
- },
128648
- {
128649
- "kind": "field",
128650
- "name": "_validityStates",
128651
- "privacy": "private",
128652
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
128591
+ "default": "false",
128592
+ "description": "Whether the button should be aria-disabled but stay interactive.",
128593
+ "attribute": "disabled-interactive",
128594
+ "reflects": true,
128653
128595
  "inheritedFrom": {
128654
- "name": "SbbFormAssociatedMixin",
128655
- "module": "core/mixins/form-associated-mixin.js"
128596
+ "name": "SbbDisabledInteractiveMixin",
128597
+ "module": "core/mixins/disabled-mixin.js"
128656
128598
  }
128657
128599
  },
128658
128600
  {
128659
128601
  "kind": "field",
128660
- "name": "formDisabled",
128602
+ "name": "styles",
128661
128603
  "type": {
128662
- "text": "boolean"
128604
+ "text": "CSSResultGroup"
128663
128605
  },
128664
- "privacy": "protected",
128665
- "default": "false",
128666
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
128606
+ "privacy": "public",
128607
+ "static": true,
128608
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
128667
128609
  "inheritedFrom": {
128668
- "name": "SbbFormAssociatedMixin",
128669
- "module": "core/mixins/form-associated-mixin.js"
128610
+ "name": "SbbMenuActionCommonElementMixin",
128611
+ "module": "menu/common/menu-action-common.js"
128670
128612
  }
128671
128613
  },
128672
128614
  {
128673
128615
  "kind": "method",
128674
- "name": "checkValidity",
128675
- "privacy": "public",
128616
+ "name": "renderTemplate",
128617
+ "privacy": "protected",
128676
128618
  "return": {
128677
128619
  "type": {
128678
- "text": "boolean"
128620
+ "text": "TemplateResult"
128679
128621
  }
128680
128622
  },
128681
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
128623
+ "description": "Override this method to render the component template.",
128682
128624
  "inheritedFrom": {
128683
- "name": "SbbFormAssociatedMixin",
128684
- "module": "core/mixins/form-associated-mixin.js"
128625
+ "name": "SbbActionBaseElement",
128626
+ "module": "core/base-elements/action-base-element.js"
128685
128627
  }
128686
128628
  },
128687
128629
  {
128688
- "kind": "method",
128689
- "name": "reportValidity",
128630
+ "kind": "field",
128631
+ "name": "elementDependencies",
128632
+ "type": {
128633
+ "text": "SbbElementType[]"
128634
+ },
128690
128635
  "privacy": "public",
128691
- "return": {
128692
- "type": {
128693
- "text": "boolean"
128694
- }
128636
+ "static": true,
128637
+ "inheritedFrom": {
128638
+ "name": "SbbElement",
128639
+ "module": "core/base-elements/element.js"
128695
128640
  },
128696
- "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.",
128641
+ "default": "[SbbIconElement]"
128642
+ },
128643
+ {
128644
+ "kind": "field",
128645
+ "name": "iconName",
128646
+ "type": {
128647
+ "text": "string"
128648
+ },
128649
+ "privacy": "public",
128650
+ "default": "''",
128651
+ "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.",
128652
+ "attribute": "icon-name",
128697
128653
  "inheritedFrom": {
128698
- "name": "SbbFormAssociatedMixin",
128699
- "module": "core/mixins/form-associated-mixin.js"
128654
+ "name": "SbbIconNameMixin",
128655
+ "module": "icon/icon-name-mixin.js"
128700
128656
  }
128701
128657
  },
128702
128658
  {
128703
128659
  "kind": "method",
128704
- "name": "setCustomValidity",
128705
- "privacy": "public",
128660
+ "name": "renderIconSlot",
128661
+ "privacy": "protected",
128706
128662
  "return": {
128707
128663
  "type": {
128708
- "text": "void"
128664
+ "text": "TemplateResult"
128709
128665
  }
128710
128666
  },
128711
128667
  "parameters": [
128712
128668
  {
128713
- "name": "message",
128669
+ "name": "classname",
128670
+ "optional": true,
128714
128671
  "type": {
128715
128672
  "text": "string"
128716
128673
  }
128717
128674
  }
128718
128675
  ],
128719
- "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.",
128720
128676
  "inheritedFrom": {
128721
- "name": "SbbFormAssociatedMixin",
128722
- "module": "core/mixins/form-associated-mixin.js"
128677
+ "name": "SbbIconNameMixin",
128678
+ "module": "icon/icon-name-mixin.js"
128723
128679
  }
128724
128680
  },
128725
128681
  {
128726
128682
  "kind": "method",
128727
- "name": "_hasDisabledAncestor",
128728
- "privacy": "private",
128683
+ "name": "renderIconName",
128684
+ "privacy": "protected",
128729
128685
  "return": {
128730
128686
  "type": {
128731
- "text": "boolean"
128687
+ "text": "string"
128732
128688
  }
128733
128689
  },
128734
128690
  "inheritedFrom": {
128735
- "name": "SbbFormAssociatedMixin",
128736
- "module": "core/mixins/form-associated-mixin.js"
128691
+ "name": "SbbIconNameMixin",
128692
+ "module": "icon/icon-name-mixin.js"
128737
128693
  }
128738
128694
  },
128739
128695
  {
128740
128696
  "kind": "method",
128741
- "name": "updateFormValue",
128742
- "privacy": "protected",
128697
+ "name": "_renderIconName",
128698
+ "privacy": "private",
128743
128699
  "return": {
128744
128700
  "type": {
128745
- "text": "void"
128701
+ "text": "string"
128746
128702
  }
128747
128703
  },
128748
- "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",
128749
128704
  "inheritedFrom": {
128750
- "name": "SbbFormAssociatedMixin",
128751
- "module": "core/mixins/form-associated-mixin.js"
128705
+ "name": "SbbIconNameMixin",
128706
+ "module": "icon/icon-name-mixin.js"
128752
128707
  }
128753
128708
  },
128754
128709
  {
128755
- "kind": "method",
128756
- "name": "formState",
128757
- "privacy": "protected",
128758
- "return": {
128759
- "type": {
128760
- "text": "FormRestoreState"
128761
- }
128710
+ "kind": "field",
128711
+ "name": "disabled",
128712
+ "privacy": "public",
128713
+ "description": "Whether the component is disabled.",
128714
+ "default": "false",
128715
+ "type": {
128716
+ "text": "boolean"
128762
128717
  },
128718
+ "attribute": "disabled",
128719
+ "reflects": true,
128763
128720
  "inheritedFrom": {
128764
- "name": "SbbFormAssociatedMixin",
128765
- "module": "core/mixins/form-associated-mixin.js"
128721
+ "name": "SbbDisabledMixin",
128722
+ "module": "core/mixins/disabled-mixin.js"
128766
128723
  }
128767
128724
  },
128768
128725
  {
128769
- "kind": "method",
128770
- "name": "setValidityFlag",
128771
- "privacy": "protected",
128772
- "return": {
128773
- "type": {
128774
- "text": "void"
128775
- }
128726
+ "kind": "field",
128727
+ "name": "#disabled",
128728
+ "privacy": "private",
128729
+ "type": {
128730
+ "text": "boolean"
128776
128731
  },
128777
- "parameters": [
128778
- {
128779
- "name": "flag",
128780
- "type": {
128781
- "text": "T"
128782
- }
128783
- },
128784
- {
128785
- "name": "message",
128786
- "type": {
128787
- "text": "string"
128788
- }
128789
- },
128790
- {
128791
- "name": "flagValue",
128792
- "optional": true,
128793
- "type": {
128794
- "text": "ValidityStateFlags[T]"
128795
- }
128796
- }
128797
- ],
128798
- "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).",
128732
+ "default": "false",
128799
128733
  "inheritedFrom": {
128800
- "name": "SbbFormAssociatedMixin",
128801
- "module": "core/mixins/form-associated-mixin.js"
128734
+ "name": "SbbDisabledMixin",
128735
+ "module": "core/mixins/disabled-mixin.js"
128802
128736
  }
128803
128737
  },
128804
128738
  {
128805
128739
  "kind": "method",
128806
- "name": "removeValidityFlag",
128740
+ "name": "isDisabledExternally",
128807
128741
  "privacy": "protected",
128808
128742
  "return": {
128809
128743
  "type": {
128810
- "text": "void"
128744
+ "text": "boolean"
128811
128745
  }
128812
128746
  },
128813
- "parameters": [
128814
- {
128815
- "name": "flag",
128816
- "type": {
128817
- "text": "T"
128818
- }
128819
- }
128820
- ],
128821
- "description": "Removes the validity state flag entry and updates validity state.",
128747
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
128748
+ "inheritedFrom": {
128749
+ "name": "SbbDisabledMixin",
128750
+ "module": "core/mixins/disabled-mixin.js"
128751
+ }
128752
+ },
128753
+ {
128754
+ "kind": "field",
128755
+ "name": "href",
128756
+ "type": {
128757
+ "text": "string"
128758
+ },
128759
+ "privacy": "public",
128760
+ "default": "''",
128761
+ "description": "The href value you want to link to.",
128762
+ "attribute": "href",
128763
+ "reflects": true,
128764
+ "inheritedFrom": {
128765
+ "name": "SbbLinkBaseElement",
128766
+ "module": "core/base-elements/link-base-element.js"
128767
+ }
128768
+ },
128769
+ {
128770
+ "kind": "field",
128771
+ "name": "target",
128772
+ "type": {
128773
+ "text": "LinkTargetType | string"
128774
+ },
128775
+ "privacy": "public",
128776
+ "default": "''",
128777
+ "description": "Where to display the linked URL.",
128778
+ "attribute": "target",
128779
+ "reflects": true,
128822
128780
  "inheritedFrom": {
128823
- "name": "SbbFormAssociatedMixin",
128824
- "module": "core/mixins/form-associated-mixin.js"
128781
+ "name": "SbbLinkBaseElement",
128782
+ "module": "core/base-elements/link-base-element.js"
128825
128783
  }
128826
128784
  },
128827
128785
  {
128828
- "kind": "method",
128829
- "name": "validate",
128830
- "privacy": "protected",
128831
- "return": {
128832
- "type": {
128833
- "text": "void"
128834
- }
128786
+ "kind": "field",
128787
+ "name": "rel",
128788
+ "type": {
128789
+ "text": "string"
128835
128790
  },
128836
- "description": "To be called whenever the current element needs to be validated.",
128791
+ "privacy": "public",
128792
+ "default": "''",
128793
+ "description": "The relationship of the linked URL as space-separated link types.",
128794
+ "attribute": "rel",
128795
+ "reflects": true,
128837
128796
  "inheritedFrom": {
128838
- "name": "SbbFormAssociatedMixin",
128839
- "module": "core/mixins/form-associated-mixin.js"
128797
+ "name": "SbbLinkBaseElement",
128798
+ "module": "core/base-elements/link-base-element.js"
128840
128799
  }
128841
128800
  },
128842
128801
  {
128843
- "kind": "method",
128844
- "name": "shouldValidate",
128845
- "privacy": "protected",
128846
- "return": {
128847
- "type": {
128848
- "text": "boolean"
128849
- }
128802
+ "kind": "field",
128803
+ "name": "download",
128804
+ "type": {
128805
+ "text": "boolean"
128850
128806
  },
128851
- "parameters": [
128852
- {
128853
- "name": "name",
128854
- "type": {
128855
- "text": "PropertyKey | undefined"
128856
- }
128857
- }
128858
- ],
128859
- "description": "Whether validation should be run on a property change with the given name.",
128807
+ "privacy": "public",
128808
+ "default": "false",
128809
+ "description": "Whether the browser will show the download dialog on click.",
128810
+ "attribute": "download",
128811
+ "reflects": true,
128860
128812
  "inheritedFrom": {
128861
- "name": "SbbFormAssociatedMixin",
128862
- "module": "core/mixins/form-associated-mixin.js"
128813
+ "name": "SbbLinkBaseElement",
128814
+ "module": "core/base-elements/link-base-element.js"
128863
128815
  }
128864
128816
  },
128865
128817
  {
128866
- "kind": "method",
128867
- "name": "_setInternalValidity",
128868
- "privacy": "private",
128869
- "return": {
128870
- "type": {
128871
- "text": "void"
128872
- }
128818
+ "kind": "field",
128819
+ "name": "accessibilityLabel",
128820
+ "type": {
128821
+ "text": "string"
128873
128822
  },
128823
+ "privacy": "public",
128824
+ "default": "''",
128825
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
128826
+ "attribute": "accessibility-label",
128874
128827
  "inheritedFrom": {
128875
- "name": "SbbFormAssociatedMixin",
128876
- "module": "core/mixins/form-associated-mixin.js"
128828
+ "name": "SbbLinkBaseElement",
128829
+ "module": "core/base-elements/link-base-element.js"
128877
128830
  }
128878
128831
  },
128879
128832
  {
128880
128833
  "kind": "field",
128881
- "name": "_preventScrollOnSpaceKeydown",
128882
- "privacy": "private",
128883
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
128884
- "parameters": [
128885
- {
128886
- "description": "The origin event.",
128887
- "name": "event"
128888
- }
128889
- ],
128834
+ "name": "accessibilityCurrent",
128835
+ "type": {
128836
+ "text": "string"
128837
+ },
128838
+ "privacy": "public",
128839
+ "default": "''",
128840
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
128841
+ "attribute": "accessibility-current",
128890
128842
  "inheritedFrom": {
128891
- "name": "SbbButtonLikeBaseElement",
128892
- "module": "core/base-elements/button-base-element.js"
128843
+ "name": "SbbLinkBaseElement",
128844
+ "module": "core/base-elements/link-base-element.js"
128893
128845
  }
128894
128846
  },
128895
128847
  {
128896
128848
  "kind": "field",
128897
- "name": "_removeActiveMarker",
128898
- "privacy": "private",
128849
+ "name": "language",
128850
+ "privacy": "protected",
128851
+ "default": "new SbbLanguageController(this)",
128899
128852
  "inheritedFrom": {
128900
- "name": "SbbButtonLikeBaseElement",
128901
- "module": "core/base-elements/button-base-element.js"
128853
+ "name": "SbbLinkBaseElement",
128854
+ "module": "core/base-elements/link-base-element.js"
128902
128855
  }
128903
128856
  },
128904
128857
  {
128905
128858
  "kind": "field",
128906
- "name": "_dispatchClickEventOnSpaceKeyup",
128859
+ "name": "_evaluateRelAttribute",
128907
128860
  "privacy": "private",
128908
- "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.",
128909
- "parameters": [
128910
- {
128911
- "description": "The origin event.",
128912
- "name": "event"
128913
- }
128914
- ],
128915
128861
  "inheritedFrom": {
128916
- "name": "SbbButtonLikeBaseElement",
128917
- "module": "core/base-elements/button-base-element.js"
128862
+ "name": "SbbLinkBaseElement",
128863
+ "module": "core/base-elements/link-base-element.js"
128918
128864
  }
128919
128865
  },
128920
128866
  {
128921
- "kind": "field",
128922
- "name": "_dispatchClickEvent",
128923
- "privacy": "private",
128867
+ "kind": "method",
128868
+ "name": "renderLink",
128869
+ "privacy": "protected",
128870
+ "return": {
128871
+ "type": {
128872
+ "text": "TemplateResult"
128873
+ }
128874
+ },
128875
+ "parameters": [
128876
+ {
128877
+ "name": "renderContent",
128878
+ "type": {
128879
+ "text": "TemplateResult"
128880
+ }
128881
+ }
128882
+ ],
128924
128883
  "inheritedFrom": {
128925
- "name": "SbbButtonLikeBaseElement",
128926
- "module": "core/base-elements/button-base-element.js"
128884
+ "name": "SbbLinkBaseElement",
128885
+ "module": "core/base-elements/link-base-element.js"
128927
128886
  }
128928
128887
  },
128929
128888
  {
@@ -128980,6 +128939,19 @@
128980
128939
  "module": "core/base-elements/element.js"
128981
128940
  }
128982
128941
  },
128942
+ {
128943
+ "kind": "field",
128944
+ "name": "role",
128945
+ "type": {
128946
+ "text": "ElementInternals['role'] | undefined"
128947
+ },
128948
+ "privacy": "public",
128949
+ "static": true,
128950
+ "inheritedFrom": {
128951
+ "name": "SbbElement",
128952
+ "module": "core/base-elements/element.js"
128953
+ }
128954
+ },
128983
128955
  {
128984
128956
  "kind": "field",
128985
128957
  "name": "_controllers",
@@ -129202,7 +129174,7 @@
129202
129174
  ],
129203
129175
  "mixins": [
129204
129176
  {
129205
- "name": "SbbDisabledTabIndexActionMixin",
129177
+ "name": "SbbDisabledInteractiveMixin",
129206
129178
  "module": "core.js"
129207
129179
  },
129208
129180
  {
@@ -129211,10 +129183,10 @@
129211
129183
  }
129212
129184
  ],
129213
129185
  "superclass": {
129214
- "name": "SbbButtonBaseElement",
129186
+ "name": "SbbLinkBaseElement",
129215
129187
  "module": "core.js"
129216
129188
  },
129217
- "tagName": "sbb-menu-button",
129189
+ "tagName": "sbb-menu-link",
129218
129190
  "customElement": true,
129219
129191
  "attributes": [
129220
129192
  {
@@ -129230,6 +129202,19 @@
129230
129202
  "module": "core/mixins/disabled-mixin.js"
129231
129203
  }
129232
129204
  },
129205
+ {
129206
+ "name": "icon-name",
129207
+ "type": {
129208
+ "text": "string"
129209
+ },
129210
+ "default": "''",
129211
+ "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.",
129212
+ "fieldName": "iconName",
129213
+ "inheritedFrom": {
129214
+ "name": "SbbIconNameMixin",
129215
+ "module": "icon/icon-name-mixin.js"
129216
+ }
129217
+ },
129233
129218
  {
129234
129219
  "name": "disabled",
129235
129220
  "description": "Whether the component is disabled.",
@@ -129244,66 +129229,81 @@
129244
129229
  }
129245
129230
  },
129246
129231
  {
129247
- "name": "icon-name",
129232
+ "name": "href",
129248
129233
  "type": {
129249
129234
  "text": "string"
129250
129235
  },
129251
129236
  "default": "''",
129252
- "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.",
129253
- "fieldName": "iconName",
129237
+ "description": "The href value you want to link to.",
129238
+ "fieldName": "href",
129254
129239
  "inheritedFrom": {
129255
- "name": "SbbIconNameMixin",
129256
- "module": "icon/icon-name-mixin.js"
129240
+ "name": "SbbLinkBaseElement",
129241
+ "module": "core/base-elements/link-base-element.js"
129257
129242
  }
129258
129243
  },
129259
129244
  {
129260
- "name": "value",
129245
+ "name": "target",
129246
+ "type": {
129247
+ "text": "LinkTargetType | string"
129248
+ },
129249
+ "default": "''",
129250
+ "description": "Where to display the linked URL.",
129251
+ "fieldName": "target",
129252
+ "inheritedFrom": {
129253
+ "name": "SbbLinkBaseElement",
129254
+ "module": "core/base-elements/link-base-element.js"
129255
+ }
129256
+ },
129257
+ {
129258
+ "name": "rel",
129261
129259
  "type": {
129262
129260
  "text": "string"
129263
129261
  },
129264
129262
  "default": "''",
129265
- "description": "Value of the form element.",
129266
- "fieldName": "value",
129263
+ "description": "The relationship of the linked URL as space-separated link types.",
129264
+ "fieldName": "rel",
129267
129265
  "inheritedFrom": {
129268
- "name": "SbbButtonBaseElement",
129269
- "module": "core/base-elements/button-base-element.js"
129266
+ "name": "SbbLinkBaseElement",
129267
+ "module": "core/base-elements/link-base-element.js"
129270
129268
  }
129271
129269
  },
129272
129270
  {
129273
- "name": "type",
129274
- "description": "The type attribute to use for the button.",
129275
- "default": "'button'",
129271
+ "name": "download",
129276
129272
  "type": {
129277
- "text": "SbbButtonType"
129273
+ "text": "boolean"
129278
129274
  },
129279
- "fieldName": "type",
129275
+ "default": "false",
129276
+ "description": "Whether the browser will show the download dialog on click.",
129277
+ "fieldName": "download",
129280
129278
  "inheritedFrom": {
129281
- "name": "SbbButtonBaseElement",
129282
- "module": "core/base-elements/button-base-element.js"
129279
+ "name": "SbbLinkBaseElement",
129280
+ "module": "core/base-elements/link-base-element.js"
129283
129281
  }
129284
129282
  },
129285
129283
  {
129286
- "name": "form",
129287
- "description": "The `<form>` element to associate the button with.",
129284
+ "name": "accessibility-label",
129288
129285
  "type": {
129289
- "text": "HTMLFormElement | null"
129286
+ "text": "string"
129290
129287
  },
129291
- "fieldName": "form",
129288
+ "default": "''",
129289
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
129290
+ "fieldName": "accessibilityLabel",
129292
129291
  "inheritedFrom": {
129293
- "name": "SbbButtonBaseElement",
129294
- "module": "core/base-elements/button-base-element.js"
129292
+ "name": "SbbLinkBaseElement",
129293
+ "module": "core/base-elements/link-base-element.js"
129295
129294
  }
129296
129295
  },
129297
129296
  {
129298
- "name": "name",
129299
- "description": "Name of the form element. Will be read from name attribute.",
129297
+ "name": "accessibility-current",
129300
129298
  "type": {
129301
129299
  "text": "string"
129302
129300
  },
129303
- "fieldName": "name",
129301
+ "default": "''",
129302
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
129303
+ "fieldName": "accessibilityCurrent",
129304
129304
  "inheritedFrom": {
129305
- "name": "SbbFormAssociatedMixin",
129306
- "module": "core/mixins/form-associated-mixin.js"
129305
+ "name": "SbbLinkBaseElement",
129306
+ "module": "core/base-elements/link-base-element.js"
129307
129307
  }
129308
129308
  }
129309
129309
  ]
@@ -129312,10 +129312,10 @@
129312
129312
  "exports": [
129313
129313
  {
129314
129314
  "kind": "js",
129315
- "name": "SbbMenuButtonElement",
129315
+ "name": "SbbMenuLinkElement",
129316
129316
  "declaration": {
129317
- "name": "SbbMenuButtonElement",
129318
- "module": "menu/menu-button/menu-button.component.js"
129317
+ "name": "SbbMenuLinkElement",
129318
+ "module": "menu/menu-link/menu-link.component.js"
129319
129319
  }
129320
129320
  }
129321
129321
  ]