@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776636016 → 5.0.0-next-dev.1776661028

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +714 -714
  2. package/package.json +2 -2
@@ -119351,15 +119351,15 @@
119351
119351
  },
119352
119352
  {
119353
119353
  "kind": "javascript-module",
119354
- "path": "link/block-link-static/block-link-static.component.js",
119354
+ "path": "link/block-link-button/block-link-button.component.js",
119355
119355
  "declarations": [
119356
119356
  {
119357
119357
  "kind": "class",
119358
- "description": "It displays a static link enhanced with the SBB Design.",
119359
- "name": "SbbBlockLinkStaticElement",
119358
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119359
+ "name": "SbbBlockLinkButtonElement",
119360
119360
  "slots": [
119361
119361
  {
119362
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
119362
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119363
119363
  "name": ""
119364
119364
  },
119365
119365
  {
@@ -119381,7 +119381,7 @@
119381
119381
  "name": "SbbElement",
119382
119382
  "module": "core/base-elements/element.js"
119383
119383
  },
119384
- "default": "'sbb-block-link-static'"
119384
+ "default": "'sbb-block-link-button'"
119385
119385
  },
119386
119386
  {
119387
119387
  "kind": "field",
@@ -119524,6 +119524,22 @@
119524
119524
  "module": "icon/icon-name-mixin.js"
119525
119525
  }
119526
119526
  },
119527
+ {
119528
+ "kind": "field",
119529
+ "name": "disabledInteractive",
119530
+ "type": {
119531
+ "text": "boolean"
119532
+ },
119533
+ "privacy": "public",
119534
+ "default": "false",
119535
+ "description": "Whether the button should be aria-disabled but stay interactive.",
119536
+ "attribute": "disabled-interactive",
119537
+ "reflects": true,
119538
+ "inheritedFrom": {
119539
+ "name": "SbbDisabledInteractiveMixin",
119540
+ "module": "core/mixins/disabled-mixin.js"
119541
+ }
119542
+ },
119527
119543
  {
119528
119544
  "kind": "field",
119529
119545
  "name": "disabled",
@@ -119570,47 +119586,118 @@
119570
119586
  },
119571
119587
  {
119572
119588
  "kind": "field",
119573
- "name": "maybeDisabled",
119589
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
119574
119590
  "type": {
119575
- "text": "boolean | undefined"
119591
+ "text": "array"
119576
119592
  },
119577
- "privacy": "protected",
119593
+ "privacy": "private",
119578
119594
  "readonly": true,
119595
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119579
119596
  "inheritedFrom": {
119580
- "name": "SbbActionBaseElement",
119581
- "module": "core/base-elements/action-base-element.js"
119597
+ "name": "SbbButtonBaseElement",
119598
+ "module": "core/base-elements/button-base-element.js"
119582
119599
  }
119583
119600
  },
119584
119601
  {
119585
119602
  "kind": "field",
119586
- "name": "maybeDisabledInteractive",
119603
+ "name": "value",
119587
119604
  "type": {
119588
- "text": "boolean | undefined"
119605
+ "text": "string"
119589
119606
  },
119590
- "privacy": "protected",
119591
- "readonly": true,
119607
+ "privacy": "public",
119592
119608
  "inheritedFrom": {
119593
- "name": "SbbActionBaseElement",
119594
- "module": "core/base-elements/action-base-element.js"
119609
+ "name": "SbbButtonBaseElement",
119610
+ "module": "core/base-elements/button-base-element.js"
119611
+ },
119612
+ "default": "''",
119613
+ "description": "Value of the form element.",
119614
+ "attribute": "value"
119615
+ },
119616
+ {
119617
+ "kind": "field",
119618
+ "name": "type",
119619
+ "privacy": "public",
119620
+ "description": "The type attribute to use for the button.",
119621
+ "default": "'button'",
119622
+ "type": {
119623
+ "text": "SbbButtonType"
119624
+ },
119625
+ "attribute": "type",
119626
+ "inheritedFrom": {
119627
+ "name": "SbbButtonBaseElement",
119628
+ "module": "core/base-elements/button-base-element.js"
119629
+ }
119630
+ },
119631
+ {
119632
+ "kind": "field",
119633
+ "name": "form",
119634
+ "type": {
119635
+ "text": "HTMLFormElement | null"
119636
+ },
119637
+ "privacy": "public",
119638
+ "description": "The `<form>` element to associate the button with.",
119639
+ "inheritedFrom": {
119640
+ "name": "SbbButtonBaseElement",
119641
+ "module": "core/base-elements/button-base-element.js"
119642
+ },
119643
+ "attribute": "form"
119644
+ },
119645
+ {
119646
+ "kind": "field",
119647
+ "name": "_formId",
119648
+ "type": {
119649
+ "text": "string"
119650
+ },
119651
+ "privacy": "private",
119652
+ "default": "''",
119653
+ "inheritedFrom": {
119654
+ "name": "SbbButtonBaseElement",
119655
+ "module": "core/base-elements/button-base-element.js"
119656
+ }
119657
+ },
119658
+ {
119659
+ "kind": "field",
119660
+ "name": "_handleButtonClick",
119661
+ "privacy": "private",
119662
+ "inheritedFrom": {
119663
+ "name": "SbbButtonBaseElement",
119664
+ "module": "core/base-elements/button-base-element.js"
119595
119665
  }
119596
119666
  },
119597
119667
  {
119598
119668
  "kind": "method",
119599
- "name": "setupBaseEventHandlers",
119600
- "privacy": "protected",
119669
+ "name": "_requestSubmit",
119670
+ "privacy": "private",
119601
119671
  "return": {
119602
119672
  "type": {
119603
119673
  "text": "void"
119604
119674
  }
119605
119675
  },
119676
+ "parameters": [
119677
+ {
119678
+ "name": "form",
119679
+ "type": {
119680
+ "text": "HTMLFormElement"
119681
+ }
119682
+ }
119683
+ ],
119606
119684
  "inheritedFrom": {
119607
- "name": "SbbActionBaseElement",
119608
- "module": "core/base-elements/action-base-element.js"
119685
+ "name": "SbbButtonBaseElement",
119686
+ "module": "core/base-elements/button-base-element.js"
119609
119687
  }
119610
119688
  },
119611
119689
  {
119612
119690
  "kind": "field",
119613
- "name": "['_$sbbElement$']",
119691
+ "name": "_formKeyDown",
119692
+ "privacy": "private",
119693
+ "inheritedFrom": {
119694
+ "name": "SbbButtonBaseElement",
119695
+ "module": "core/base-elements/button-base-element.js"
119696
+ }
119697
+ },
119698
+ {
119699
+ "kind": "field",
119700
+ "name": "formAssociated",
119614
119701
  "type": {
119615
119702
  "text": "boolean"
119616
119703
  },
@@ -119618,101 +119705,124 @@
119618
119705
  "static": true,
119619
119706
  "default": "true",
119620
119707
  "inheritedFrom": {
119621
- "name": "SbbElement",
119622
- "module": "core/base-elements/element.js"
119708
+ "name": "SbbFormAssociatedMixin",
119709
+ "module": "core/mixins/form-associated-mixin.js"
119623
119710
  }
119624
119711
  },
119625
119712
  {
119626
119713
  "kind": "field",
119627
- "name": "role",
119714
+ "name": "name",
119715
+ "privacy": "public",
119716
+ "description": "Name of the form element. Will be read from name attribute.",
119628
119717
  "type": {
119629
- "text": "ElementInternals['role'] | undefined"
119718
+ "text": "string"
119719
+ },
119720
+ "attribute": "name",
119721
+ "inheritedFrom": {
119722
+ "name": "SbbFormAssociatedMixin",
119723
+ "module": "core/mixins/form-associated-mixin.js"
119724
+ }
119725
+ },
119726
+ {
119727
+ "kind": "field",
119728
+ "name": "validity",
119729
+ "type": {
119730
+ "text": "ValidityState"
119630
119731
  },
119631
119732
  "privacy": "public",
119632
- "static": true,
119733
+ "description": "Returns the ValidityState object for this element.",
119734
+ "readonly": true,
119633
119735
  "inheritedFrom": {
119634
- "name": "SbbElement",
119635
- "module": "core/base-elements/element.js"
119736
+ "name": "SbbFormAssociatedMixin",
119737
+ "module": "core/mixins/form-associated-mixin.js"
119636
119738
  }
119637
119739
  },
119638
119740
  {
119639
119741
  "kind": "field",
119640
- "name": "_controllers",
119742
+ "name": "validationMessage",
119641
119743
  "type": {
119642
- "text": "Set<SbbReactiveController> | undefined"
119744
+ "text": "string"
119643
119745
  },
119644
- "privacy": "private",
119746
+ "privacy": "public",
119747
+ "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.",
119748
+ "readonly": true,
119645
119749
  "inheritedFrom": {
119646
- "name": "SbbElement",
119647
- "module": "core/base-elements/element.js"
119750
+ "name": "SbbFormAssociatedMixin",
119751
+ "module": "core/mixins/form-associated-mixin.js"
119648
119752
  }
119649
119753
  },
119650
119754
  {
119651
119755
  "kind": "field",
119652
- "name": "_hydrationRequired",
119756
+ "name": "willValidate",
119653
119757
  "type": {
119654
119758
  "text": "boolean"
119655
119759
  },
119656
- "privacy": "private",
119657
- "default": "!!this.shadowRoot",
119760
+ "privacy": "public",
119761
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
119762
+ "readonly": true,
119658
119763
  "inheritedFrom": {
119659
- "name": "SbbElement",
119660
- "module": "core/base-elements/element.js"
119764
+ "name": "SbbFormAssociatedMixin",
119765
+ "module": "core/mixins/form-associated-mixin.js"
119661
119766
  }
119662
119767
  },
119663
119768
  {
119664
119769
  "kind": "field",
119665
- "name": "_hydrationComplete",
119770
+ "name": "_validityStates",
119666
119771
  "privacy": "private",
119667
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119772
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
119668
119773
  "inheritedFrom": {
119669
- "name": "SbbElement",
119670
- "module": "core/base-elements/element.js"
119774
+ "name": "SbbFormAssociatedMixin",
119775
+ "module": "core/mixins/form-associated-mixin.js"
119671
119776
  }
119672
119777
  },
119673
119778
  {
119674
119779
  "kind": "field",
119675
- "name": "_resolveHydration",
119780
+ "name": "formDisabled",
119676
119781
  "type": {
119677
- "text": "(hydrationRequired: boolean) => void"
119782
+ "text": "boolean"
119678
119783
  },
119679
- "privacy": "private",
119784
+ "privacy": "protected",
119785
+ "default": "false",
119786
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
119680
119787
  "inheritedFrom": {
119681
- "name": "SbbElement",
119682
- "module": "core/base-elements/element.js"
119788
+ "name": "SbbFormAssociatedMixin",
119789
+ "module": "core/mixins/form-associated-mixin.js"
119683
119790
  }
119684
119791
  },
119685
119792
  {
119686
- "kind": "field",
119687
- "name": "_textObserver",
119688
- "type": {
119689
- "text": "MutationObserver | undefined"
119793
+ "kind": "method",
119794
+ "name": "checkValidity",
119795
+ "privacy": "public",
119796
+ "return": {
119797
+ "type": {
119798
+ "text": "boolean"
119799
+ }
119690
119800
  },
119691
- "privacy": "private",
119801
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
119692
119802
  "inheritedFrom": {
119693
- "name": "SbbElement",
119694
- "module": "core/base-elements/element.js"
119803
+ "name": "SbbFormAssociatedMixin",
119804
+ "module": "core/mixins/form-associated-mixin.js"
119695
119805
  }
119696
119806
  },
119697
119807
  {
119698
- "kind": "field",
119699
- "name": "hydrationRequired",
119700
- "type": {
119701
- "text": "boolean"
119808
+ "kind": "method",
119809
+ "name": "reportValidity",
119810
+ "privacy": "public",
119811
+ "return": {
119812
+ "type": {
119813
+ "text": "boolean"
119814
+ }
119702
119815
  },
119703
- "privacy": "protected",
119704
- "description": "Returns whether hydration is required and not completed.",
119705
- "readonly": true,
119816
+ "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.",
119706
119817
  "inheritedFrom": {
119707
- "name": "SbbElement",
119708
- "module": "core/base-elements/element.js"
119709
- },
119710
- "default": "!!this.shadowRoot"
119818
+ "name": "SbbFormAssociatedMixin",
119819
+ "module": "core/mixins/form-associated-mixin.js"
119820
+ }
119711
119821
  },
119712
119822
  {
119713
119823
  "kind": "method",
119714
- "name": "toggleState",
119715
- "privacy": "protected",
119824
+ "name": "setCustomValidity",
119825
+ "privacy": "public",
119716
119826
  "return": {
119717
119827
  "type": {
119718
119828
  "text": "void"
@@ -119720,28 +119830,65 @@
119720
119830
  },
119721
119831
  "parameters": [
119722
119832
  {
119723
- "name": "value",
119833
+ "name": "message",
119724
119834
  "type": {
119725
119835
  "text": "string"
119726
119836
  }
119727
- },
119728
- {
119729
- "name": "force",
119730
- "optional": true,
119731
- "type": {
119732
- "text": "boolean"
119733
- }
119734
119837
  }
119735
119838
  ],
119839
+ "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.",
119736
119840
  "inheritedFrom": {
119737
- "name": "SbbElement",
119738
- "module": "core/base-elements/element.js"
119841
+ "name": "SbbFormAssociatedMixin",
119842
+ "module": "core/mixins/form-associated-mixin.js"
119739
119843
  }
119740
119844
  },
119741
119845
  {
119742
119846
  "kind": "method",
119743
- "name": "_slotchangeHandler",
119847
+ "name": "_hasDisabledAncestor",
119744
119848
  "privacy": "private",
119849
+ "return": {
119850
+ "type": {
119851
+ "text": "boolean"
119852
+ }
119853
+ },
119854
+ "inheritedFrom": {
119855
+ "name": "SbbFormAssociatedMixin",
119856
+ "module": "core/mixins/form-associated-mixin.js"
119857
+ }
119858
+ },
119859
+ {
119860
+ "kind": "method",
119861
+ "name": "updateFormValue",
119862
+ "privacy": "protected",
119863
+ "return": {
119864
+ "type": {
119865
+ "text": "void"
119866
+ }
119867
+ },
119868
+ "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",
119869
+ "inheritedFrom": {
119870
+ "name": "SbbFormAssociatedMixin",
119871
+ "module": "core/mixins/form-associated-mixin.js"
119872
+ }
119873
+ },
119874
+ {
119875
+ "kind": "method",
119876
+ "name": "formState",
119877
+ "privacy": "protected",
119878
+ "return": {
119879
+ "type": {
119880
+ "text": "FormRestoreState"
119881
+ }
119882
+ },
119883
+ "inheritedFrom": {
119884
+ "name": "SbbFormAssociatedMixin",
119885
+ "module": "core/mixins/form-associated-mixin.js"
119886
+ }
119887
+ },
119888
+ {
119889
+ "kind": "method",
119890
+ "name": "setValidityFlag",
119891
+ "privacy": "protected",
119745
119892
  "return": {
119746
119893
  "type": {
119747
119894
  "text": "void"
@@ -119749,27 +119896,35 @@
119749
119896
  },
119750
119897
  "parameters": [
119751
119898
  {
119752
- "name": "event",
119899
+ "name": "flag",
119753
119900
  "type": {
119754
- "text": "Event"
119901
+ "text": "T"
119755
119902
  }
119756
119903
  },
119757
119904
  {
119758
- "name": "slot",
119905
+ "name": "message",
119759
119906
  "type": {
119760
- "text": "HTMLSlotElement"
119907
+ "text": "string"
119908
+ }
119909
+ },
119910
+ {
119911
+ "name": "flagValue",
119912
+ "optional": true,
119913
+ "type": {
119914
+ "text": "ValidityStateFlags[T]"
119761
119915
  }
119762
119916
  }
119763
119917
  ],
119918
+ "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).",
119764
119919
  "inheritedFrom": {
119765
- "name": "SbbElement",
119766
- "module": "core/base-elements/element.js"
119920
+ "name": "SbbFormAssociatedMixin",
119921
+ "module": "core/mixins/form-associated-mixin.js"
119767
119922
  }
119768
119923
  },
119769
119924
  {
119770
119925
  "kind": "method",
119771
- "name": "_handleSlotChangeForSlottedState",
119772
- "privacy": "private",
119926
+ "name": "removeValidityFlag",
119927
+ "privacy": "protected",
119773
119928
  "return": {
119774
119929
  "type": {
119775
119930
  "text": "void"
@@ -119777,877 +119932,772 @@
119777
119932
  },
119778
119933
  "parameters": [
119779
119934
  {
119780
- "name": "slot",
119935
+ "name": "flag",
119781
119936
  "type": {
119782
- "text": "HTMLSlotElement"
119937
+ "text": "T"
119783
119938
  }
119784
119939
  }
119785
119940
  ],
119941
+ "description": "Removes the validity state flag entry and updates validity state.",
119786
119942
  "inheritedFrom": {
119787
- "name": "SbbElement",
119788
- "module": "core/base-elements/element.js"
119943
+ "name": "SbbFormAssociatedMixin",
119944
+ "module": "core/mixins/form-associated-mixin.js"
119789
119945
  }
119790
119946
  },
119791
119947
  {
119792
119948
  "kind": "method",
119793
- "name": "_updateSlottedState",
119794
- "privacy": "private",
119949
+ "name": "validate",
119950
+ "privacy": "protected",
119795
119951
  "return": {
119796
119952
  "type": {
119797
119953
  "text": "void"
119798
119954
  }
119799
119955
  },
119800
- "parameters": [
119801
- {
119802
- "name": "slot",
119803
- "type": {
119804
- "text": "HTMLSlotElement"
119805
- }
119806
- }
119807
- ],
119956
+ "description": "To be called whenever the current element needs to be validated.",
119808
119957
  "inheritedFrom": {
119809
- "name": "SbbElement",
119810
- "module": "core/base-elements/element.js"
119958
+ "name": "SbbFormAssociatedMixin",
119959
+ "module": "core/mixins/form-associated-mixin.js"
119811
119960
  }
119812
119961
  },
119813
119962
  {
119814
119963
  "kind": "method",
119815
- "name": "_observeTextNodesInSlot",
119816
- "privacy": "private",
119964
+ "name": "shouldValidate",
119965
+ "privacy": "protected",
119817
119966
  "return": {
119818
119967
  "type": {
119819
- "text": "void"
119968
+ "text": "boolean"
119820
119969
  }
119821
119970
  },
119822
119971
  "parameters": [
119823
119972
  {
119824
- "name": "slot",
119973
+ "name": "name",
119825
119974
  "type": {
119826
- "text": "HTMLSlotElement"
119975
+ "text": "PropertyKey | undefined"
119827
119976
  }
119828
119977
  }
119829
119978
  ],
119979
+ "description": "Whether validation should be run on a property change with the given name.",
119830
119980
  "inheritedFrom": {
119831
- "name": "SbbElement",
119832
- "module": "core/base-elements/element.js"
119981
+ "name": "SbbFormAssociatedMixin",
119982
+ "module": "core/mixins/form-associated-mixin.js"
119833
119983
  }
119834
119984
  },
119835
119985
  {
119836
119986
  "kind": "method",
119837
- "name": "_hasSlottedContent",
119987
+ "name": "_setInternalValidity",
119838
119988
  "privacy": "private",
119839
119989
  "return": {
119840
119990
  "type": {
119841
- "text": "boolean"
119991
+ "text": "void"
119842
119992
  }
119843
119993
  },
119994
+ "inheritedFrom": {
119995
+ "name": "SbbFormAssociatedMixin",
119996
+ "module": "core/mixins/form-associated-mixin.js"
119997
+ }
119998
+ },
119999
+ {
120000
+ "kind": "field",
120001
+ "name": "role",
120002
+ "type": {
120003
+ "text": "ElementInternals['role']"
120004
+ },
120005
+ "privacy": "public",
120006
+ "static": true,
120007
+ "inheritedFrom": {
120008
+ "name": "SbbElement",
120009
+ "module": "core/base-elements/element.js"
120010
+ },
120011
+ "readonly": true,
120012
+ "default": "'button'"
120013
+ },
120014
+ {
120015
+ "kind": "field",
120016
+ "name": "_preventScrollOnSpaceKeydown",
120017
+ "privacy": "private",
120018
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
119844
120019
  "parameters": [
119845
120020
  {
119846
- "name": "slot",
119847
- "type": {
119848
- "text": "HTMLSlotElement"
119849
- }
120021
+ "description": "The origin event.",
120022
+ "name": "event"
119850
120023
  }
119851
120024
  ],
119852
120025
  "inheritedFrom": {
119853
- "name": "SbbElement",
119854
- "module": "core/base-elements/element.js"
120026
+ "name": "SbbButtonLikeBaseElement",
120027
+ "module": "core/base-elements/button-base-element.js"
119855
120028
  }
119856
- }
119857
- ],
119858
- "mixins": [
120029
+ },
119859
120030
  {
119860
- "name": "SbbBlockLinkCommonElementMixin",
119861
- "module": "link/common/block-link-common.js"
120031
+ "kind": "field",
120032
+ "name": "_removeActiveMarker",
120033
+ "privacy": "private",
120034
+ "inheritedFrom": {
120035
+ "name": "SbbButtonLikeBaseElement",
120036
+ "module": "core/base-elements/button-base-element.js"
120037
+ }
119862
120038
  },
119863
120039
  {
119864
- "name": "SbbDisabledMixin",
119865
- "module": "core.js"
119866
- }
119867
- ],
119868
- "superclass": {
119869
- "name": "SbbActionBaseElement",
119870
- "module": "core.js"
119871
- },
119872
- "tagName": "sbb-block-link-static",
119873
- "customElement": true,
119874
- "attributes": [
120040
+ "kind": "field",
120041
+ "name": "_dispatchClickEventOnSpaceKeyup",
120042
+ "privacy": "private",
120043
+ "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.",
120044
+ "parameters": [
120045
+ {
120046
+ "description": "The origin event.",
120047
+ "name": "event"
120048
+ }
120049
+ ],
120050
+ "inheritedFrom": {
120051
+ "name": "SbbButtonLikeBaseElement",
120052
+ "module": "core/base-elements/button-base-element.js"
120053
+ }
120054
+ },
119875
120055
  {
119876
- "name": "size",
120056
+ "kind": "field",
120057
+ "name": "_dispatchClickEvent",
120058
+ "privacy": "private",
120059
+ "inheritedFrom": {
120060
+ "name": "SbbButtonLikeBaseElement",
120061
+ "module": "core/base-elements/button-base-element.js"
120062
+ }
120063
+ },
120064
+ {
120065
+ "kind": "field",
120066
+ "name": "maybeDisabled",
119877
120067
  "type": {
119878
- "text": "SbbLinkSize"
120068
+ "text": "boolean | undefined"
119879
120069
  },
119880
- "description": "Size variant, either xs, s or m.",
119881
- "default": "'s' / 'xs' (lean)",
119882
- "fieldName": "size",
120070
+ "privacy": "protected",
120071
+ "readonly": true,
119883
120072
  "inheritedFrom": {
119884
- "name": "SbbBlockLinkCommonElementMixin",
119885
- "module": "link/common/block-link-common.js"
120073
+ "name": "SbbActionBaseElement",
120074
+ "module": "core/base-elements/action-base-element.js"
119886
120075
  }
119887
120076
  },
119888
120077
  {
119889
- "name": "icon-placement",
120078
+ "kind": "field",
120079
+ "name": "maybeDisabledInteractive",
119890
120080
  "type": {
119891
- "text": "SbbIconPlacement"
120081
+ "text": "boolean | undefined"
119892
120082
  },
119893
- "default": "'start'",
119894
- "description": "Moves the icon to the end of the component if set to true.",
119895
- "fieldName": "iconPlacement",
120083
+ "privacy": "protected",
120084
+ "readonly": true,
119896
120085
  "inheritedFrom": {
119897
- "name": "SbbBlockLinkCommonElementMixin",
119898
- "module": "link/common/block-link-common.js"
120086
+ "name": "SbbActionBaseElement",
120087
+ "module": "core/base-elements/action-base-element.js"
119899
120088
  }
119900
120089
  },
119901
120090
  {
119902
- "name": "icon-name",
119903
- "type": {
119904
- "text": "string"
120091
+ "kind": "method",
120092
+ "name": "setupBaseEventHandlers",
120093
+ "privacy": "protected",
120094
+ "return": {
120095
+ "type": {
120096
+ "text": "void"
120097
+ }
119905
120098
  },
119906
- "default": "''",
119907
- "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.",
119908
- "fieldName": "iconName",
119909
120099
  "inheritedFrom": {
119910
- "name": "SbbIconNameMixin",
119911
- "module": "icon/icon-name-mixin.js"
120100
+ "name": "SbbActionBaseElement",
120101
+ "module": "core/base-elements/action-base-element.js"
119912
120102
  }
119913
120103
  },
119914
120104
  {
119915
- "name": "disabled",
119916
- "description": "Whether the component is disabled.",
119917
- "default": "false",
120105
+ "kind": "field",
120106
+ "name": "['_$sbbElement$']",
119918
120107
  "type": {
119919
120108
  "text": "boolean"
119920
120109
  },
119921
- "fieldName": "disabled",
120110
+ "privacy": "public",
120111
+ "static": true,
120112
+ "default": "true",
119922
120113
  "inheritedFrom": {
119923
- "name": "SbbDisabledMixin",
119924
- "module": "core/mixins/disabled-mixin.js"
119925
- }
119926
- }
119927
- ]
119928
- }
119929
- ],
119930
- "exports": [
119931
- {
119932
- "kind": "js",
119933
- "name": "SbbBlockLinkStaticElement",
119934
- "declaration": {
119935
- "name": "SbbBlockLinkStaticElement",
119936
- "module": "link/block-link-static/block-link-static.component.js"
119937
- }
119938
- }
119939
- ]
119940
- },
119941
- {
119942
- "kind": "javascript-module",
119943
- "path": "link/block-link-button/block-link-button.component.js",
119944
- "declarations": [
119945
- {
119946
- "kind": "class",
119947
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119948
- "name": "SbbBlockLinkButtonElement",
119949
- "slots": [
119950
- {
119951
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119952
- "name": ""
120114
+ "name": "SbbElement",
120115
+ "module": "core/base-elements/element.js"
120116
+ }
119953
120117
  },
119954
- {
119955
- "description": "Slot used to display the icon, if one is set.",
119956
- "name": "icon"
119957
- }
119958
- ],
119959
- "members": [
119960
120118
  {
119961
120119
  "kind": "field",
119962
- "name": "elementName",
120120
+ "name": "_controllers",
119963
120121
  "type": {
119964
- "text": "string"
120122
+ "text": "Set<SbbReactiveController> | undefined"
119965
120123
  },
119966
- "privacy": "public",
119967
- "static": true,
119968
- "readonly": true,
120124
+ "privacy": "private",
119969
120125
  "inheritedFrom": {
119970
120126
  "name": "SbbElement",
119971
120127
  "module": "core/base-elements/element.js"
119972
- },
119973
- "default": "'sbb-block-link-button'"
120128
+ }
119974
120129
  },
119975
120130
  {
119976
120131
  "kind": "field",
119977
- "name": "styles",
120132
+ "name": "_hydrationRequired",
119978
120133
  "type": {
119979
- "text": "CSSResultGroup"
120134
+ "text": "boolean"
119980
120135
  },
119981
- "privacy": "public",
119982
- "static": true,
119983
- "default": "[super.styles, unsafeCSS(blockStyle)]",
120136
+ "privacy": "private",
120137
+ "default": "!!this.shadowRoot",
119984
120138
  "inheritedFrom": {
119985
- "name": "SbbLinkCommonElementMixin",
119986
- "module": "link/common/link-common.js"
120139
+ "name": "SbbElement",
120140
+ "module": "core/base-elements/element.js"
119987
120141
  }
119988
120142
  },
119989
120143
  {
119990
120144
  "kind": "field",
119991
- "name": "size",
119992
- "type": {
119993
- "text": "SbbLinkSize"
119994
- },
119995
- "privacy": "public",
119996
- "description": "Size variant, either xs, s or m.",
119997
- "default": "'s' / 'xs' (lean)",
119998
- "attribute": "size",
119999
- "reflects": true,
120145
+ "name": "_hydrationComplete",
120146
+ "privacy": "private",
120147
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120000
120148
  "inheritedFrom": {
120001
- "name": "SbbBlockLinkCommonElementMixin",
120002
- "module": "link/common/block-link-common.js"
120149
+ "name": "SbbElement",
120150
+ "module": "core/base-elements/element.js"
120003
120151
  }
120004
120152
  },
120005
120153
  {
120006
120154
  "kind": "field",
120007
- "name": "iconPlacement",
120155
+ "name": "_resolveHydration",
120008
120156
  "type": {
120009
- "text": "SbbIconPlacement"
120010
- },
120011
- "privacy": "public",
120012
- "default": "'start'",
120013
- "description": "Moves the icon to the end of the component if set to true.",
120014
- "attribute": "icon-placement",
120015
- "reflects": true,
120016
- "inheritedFrom": {
120017
- "name": "SbbBlockLinkCommonElementMixin",
120018
- "module": "link/common/block-link-common.js"
120019
- }
120020
- },
120021
- {
120022
- "kind": "method",
120023
- "name": "renderTemplate",
120024
- "privacy": "protected",
120025
- "return": {
120026
- "type": {
120027
- "text": "TemplateResult"
120028
- }
120157
+ "text": "(hydrationRequired: boolean) => void"
120029
120158
  },
120030
- "description": "Override this method to render the component template.",
120159
+ "privacy": "private",
120031
120160
  "inheritedFrom": {
120032
- "name": "SbbActionBaseElement",
120033
- "module": "core/base-elements/action-base-element.js"
120161
+ "name": "SbbElement",
120162
+ "module": "core/base-elements/element.js"
120034
120163
  }
120035
120164
  },
120036
120165
  {
120037
120166
  "kind": "field",
120038
- "name": "elementDependencies",
120167
+ "name": "_textObserver",
120039
120168
  "type": {
120040
- "text": "SbbElementType[]"
120169
+ "text": "MutationObserver | undefined"
120041
120170
  },
120042
- "privacy": "public",
120043
- "static": true,
120171
+ "privacy": "private",
120044
120172
  "inheritedFrom": {
120045
120173
  "name": "SbbElement",
120046
120174
  "module": "core/base-elements/element.js"
120047
- },
120048
- "default": "[SbbIconElement]"
120175
+ }
120049
120176
  },
120050
120177
  {
120051
120178
  "kind": "field",
120052
- "name": "iconName",
120179
+ "name": "hydrationRequired",
120053
120180
  "type": {
120054
- "text": "string"
120181
+ "text": "boolean"
120055
120182
  },
120056
- "privacy": "public",
120057
- "default": "''",
120058
- "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.",
120059
- "attribute": "icon-name",
120183
+ "privacy": "protected",
120184
+ "description": "Returns whether hydration is required and not completed.",
120185
+ "readonly": true,
120060
120186
  "inheritedFrom": {
120061
- "name": "SbbIconNameMixin",
120062
- "module": "icon/icon-name-mixin.js"
120063
- }
120187
+ "name": "SbbElement",
120188
+ "module": "core/base-elements/element.js"
120189
+ },
120190
+ "default": "!!this.shadowRoot"
120064
120191
  },
120065
120192
  {
120066
120193
  "kind": "method",
120067
- "name": "renderIconSlot",
120194
+ "name": "toggleState",
120068
120195
  "privacy": "protected",
120069
120196
  "return": {
120070
120197
  "type": {
120071
- "text": "TemplateResult"
120198
+ "text": "void"
120072
120199
  }
120073
120200
  },
120074
120201
  "parameters": [
120075
120202
  {
120076
- "name": "classname",
120077
- "optional": true,
120203
+ "name": "value",
120078
120204
  "type": {
120079
120205
  "text": "string"
120080
120206
  }
120207
+ },
120208
+ {
120209
+ "name": "force",
120210
+ "optional": true,
120211
+ "type": {
120212
+ "text": "boolean"
120213
+ }
120081
120214
  }
120082
120215
  ],
120083
120216
  "inheritedFrom": {
120084
- "name": "SbbIconNameMixin",
120085
- "module": "icon/icon-name-mixin.js"
120217
+ "name": "SbbElement",
120218
+ "module": "core/base-elements/element.js"
120086
120219
  }
120087
120220
  },
120088
120221
  {
120089
120222
  "kind": "method",
120090
- "name": "renderIconName",
120091
- "privacy": "protected",
120223
+ "name": "_slotchangeHandler",
120224
+ "privacy": "private",
120092
120225
  "return": {
120093
120226
  "type": {
120094
- "text": "string"
120227
+ "text": "void"
120095
120228
  }
120096
120229
  },
120230
+ "parameters": [
120231
+ {
120232
+ "name": "event",
120233
+ "type": {
120234
+ "text": "Event"
120235
+ }
120236
+ },
120237
+ {
120238
+ "name": "slot",
120239
+ "type": {
120240
+ "text": "HTMLSlotElement"
120241
+ }
120242
+ }
120243
+ ],
120097
120244
  "inheritedFrom": {
120098
- "name": "SbbIconNameMixin",
120099
- "module": "icon/icon-name-mixin.js"
120245
+ "name": "SbbElement",
120246
+ "module": "core/base-elements/element.js"
120100
120247
  }
120101
120248
  },
120102
120249
  {
120103
120250
  "kind": "method",
120104
- "name": "_renderIconName",
120251
+ "name": "_handleSlotChangeForSlottedState",
120105
120252
  "privacy": "private",
120106
120253
  "return": {
120107
120254
  "type": {
120108
- "text": "string"
120255
+ "text": "void"
120109
120256
  }
120110
120257
  },
120258
+ "parameters": [
120259
+ {
120260
+ "name": "slot",
120261
+ "type": {
120262
+ "text": "HTMLSlotElement"
120263
+ }
120264
+ }
120265
+ ],
120111
120266
  "inheritedFrom": {
120112
- "name": "SbbIconNameMixin",
120113
- "module": "icon/icon-name-mixin.js"
120114
- }
120115
- },
120116
- {
120117
- "kind": "field",
120118
- "name": "disabledInteractive",
120119
- "type": {
120120
- "text": "boolean"
120121
- },
120122
- "privacy": "public",
120123
- "default": "false",
120124
- "description": "Whether the button should be aria-disabled but stay interactive.",
120125
- "attribute": "disabled-interactive",
120126
- "reflects": true,
120127
- "inheritedFrom": {
120128
- "name": "SbbDisabledInteractiveMixin",
120129
- "module": "core/mixins/disabled-mixin.js"
120130
- }
120131
- },
120132
- {
120133
- "kind": "field",
120134
- "name": "disabled",
120135
- "privacy": "public",
120136
- "description": "Whether the component is disabled.",
120137
- "default": "false",
120138
- "type": {
120139
- "text": "boolean"
120140
- },
120141
- "attribute": "disabled",
120142
- "reflects": true,
120143
- "inheritedFrom": {
120144
- "name": "SbbDisabledMixin",
120145
- "module": "core/mixins/disabled-mixin.js"
120267
+ "name": "SbbElement",
120268
+ "module": "core/base-elements/element.js"
120146
120269
  }
120147
120270
  },
120148
120271
  {
120149
- "kind": "field",
120150
- "name": "#disabled",
120272
+ "kind": "method",
120273
+ "name": "_updateSlottedState",
120151
120274
  "privacy": "private",
120152
- "type": {
120153
- "text": "boolean"
120275
+ "return": {
120276
+ "type": {
120277
+ "text": "void"
120278
+ }
120154
120279
  },
120155
- "default": "false",
120280
+ "parameters": [
120281
+ {
120282
+ "name": "slot",
120283
+ "type": {
120284
+ "text": "HTMLSlotElement"
120285
+ }
120286
+ }
120287
+ ],
120156
120288
  "inheritedFrom": {
120157
- "name": "SbbDisabledMixin",
120158
- "module": "core/mixins/disabled-mixin.js"
120289
+ "name": "SbbElement",
120290
+ "module": "core/base-elements/element.js"
120159
120291
  }
120160
120292
  },
120161
120293
  {
120162
120294
  "kind": "method",
120163
- "name": "isDisabledExternally",
120164
- "privacy": "protected",
120295
+ "name": "_observeTextNodesInSlot",
120296
+ "privacy": "private",
120165
120297
  "return": {
120166
120298
  "type": {
120167
- "text": "boolean"
120299
+ "text": "void"
120168
120300
  }
120169
120301
  },
120170
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120171
- "inheritedFrom": {
120172
- "name": "SbbDisabledMixin",
120173
- "module": "core/mixins/disabled-mixin.js"
120302
+ "parameters": [
120303
+ {
120304
+ "name": "slot",
120305
+ "type": {
120306
+ "text": "HTMLSlotElement"
120307
+ }
120308
+ }
120309
+ ],
120310
+ "inheritedFrom": {
120311
+ "name": "SbbElement",
120312
+ "module": "core/base-elements/element.js"
120174
120313
  }
120175
120314
  },
120176
120315
  {
120177
- "kind": "field",
120178
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
120179
- "type": {
120180
- "text": "array"
120181
- },
120316
+ "kind": "method",
120317
+ "name": "_hasSlottedContent",
120182
120318
  "privacy": "private",
120183
- "readonly": true,
120184
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120319
+ "return": {
120320
+ "type": {
120321
+ "text": "boolean"
120322
+ }
120323
+ },
120324
+ "parameters": [
120325
+ {
120326
+ "name": "slot",
120327
+ "type": {
120328
+ "text": "HTMLSlotElement"
120329
+ }
120330
+ }
120331
+ ],
120185
120332
  "inheritedFrom": {
120186
- "name": "SbbButtonBaseElement",
120187
- "module": "core/base-elements/button-base-element.js"
120333
+ "name": "SbbElement",
120334
+ "module": "core/base-elements/element.js"
120188
120335
  }
120336
+ }
120337
+ ],
120338
+ "mixins": [
120339
+ {
120340
+ "name": "SbbBlockLinkCommonElementMixin",
120341
+ "module": "link/common/block-link-common.js"
120189
120342
  },
120190
120343
  {
120191
- "kind": "field",
120192
- "name": "value",
120344
+ "name": "SbbDisabledTabIndexActionMixin",
120345
+ "module": "core.js"
120346
+ }
120347
+ ],
120348
+ "superclass": {
120349
+ "name": "SbbButtonBaseElement",
120350
+ "module": "core.js"
120351
+ },
120352
+ "tagName": "sbb-block-link-button",
120353
+ "customElement": true,
120354
+ "attributes": [
120355
+ {
120356
+ "name": "size",
120193
120357
  "type": {
120194
- "text": "string"
120358
+ "text": "SbbLinkSize"
120195
120359
  },
120196
- "privacy": "public",
120360
+ "description": "Size variant, either xs, s or m.",
120361
+ "default": "'s' / 'xs' (lean)",
120362
+ "fieldName": "size",
120197
120363
  "inheritedFrom": {
120198
- "name": "SbbButtonBaseElement",
120199
- "module": "core/base-elements/button-base-element.js"
120200
- },
120201
- "default": "''",
120202
- "description": "Value of the form element.",
120203
- "attribute": "value"
120364
+ "name": "SbbBlockLinkCommonElementMixin",
120365
+ "module": "link/common/block-link-common.js"
120366
+ }
120204
120367
  },
120205
120368
  {
120206
- "kind": "field",
120207
- "name": "type",
120208
- "privacy": "public",
120209
- "description": "The type attribute to use for the button.",
120210
- "default": "'button'",
120369
+ "name": "icon-placement",
120211
120370
  "type": {
120212
- "text": "SbbButtonType"
120371
+ "text": "SbbIconPlacement"
120213
120372
  },
120214
- "attribute": "type",
120373
+ "default": "'start'",
120374
+ "description": "Moves the icon to the end of the component if set to true.",
120375
+ "fieldName": "iconPlacement",
120215
120376
  "inheritedFrom": {
120216
- "name": "SbbButtonBaseElement",
120217
- "module": "core/base-elements/button-base-element.js"
120377
+ "name": "SbbBlockLinkCommonElementMixin",
120378
+ "module": "link/common/block-link-common.js"
120218
120379
  }
120219
120380
  },
120220
120381
  {
120221
- "kind": "field",
120222
- "name": "form",
120382
+ "name": "icon-name",
120223
120383
  "type": {
120224
- "text": "HTMLFormElement | null"
120384
+ "text": "string"
120225
120385
  },
120226
- "privacy": "public",
120227
- "description": "The `<form>` element to associate the button with.",
120386
+ "default": "''",
120387
+ "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.",
120388
+ "fieldName": "iconName",
120228
120389
  "inheritedFrom": {
120229
- "name": "SbbButtonBaseElement",
120230
- "module": "core/base-elements/button-base-element.js"
120231
- },
120232
- "attribute": "form"
120390
+ "name": "SbbIconNameMixin",
120391
+ "module": "icon/icon-name-mixin.js"
120392
+ }
120233
120393
  },
120234
120394
  {
120235
- "kind": "field",
120236
- "name": "_formId",
120395
+ "name": "disabled-interactive",
120237
120396
  "type": {
120238
- "text": "string"
120397
+ "text": "boolean"
120239
120398
  },
120240
- "privacy": "private",
120241
- "default": "''",
120399
+ "default": "false",
120400
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120401
+ "fieldName": "disabledInteractive",
120242
120402
  "inheritedFrom": {
120243
- "name": "SbbButtonBaseElement",
120244
- "module": "core/base-elements/button-base-element.js"
120403
+ "name": "SbbDisabledInteractiveMixin",
120404
+ "module": "core/mixins/disabled-mixin.js"
120245
120405
  }
120246
120406
  },
120247
120407
  {
120248
- "kind": "field",
120249
- "name": "_handleButtonClick",
120250
- "privacy": "private",
120408
+ "name": "disabled",
120409
+ "description": "Whether the component is disabled.",
120410
+ "default": "false",
120411
+ "type": {
120412
+ "text": "boolean"
120413
+ },
120414
+ "fieldName": "disabled",
120251
120415
  "inheritedFrom": {
120252
- "name": "SbbButtonBaseElement",
120253
- "module": "core/base-elements/button-base-element.js"
120416
+ "name": "SbbDisabledMixin",
120417
+ "module": "core/mixins/disabled-mixin.js"
120254
120418
  }
120255
120419
  },
120256
120420
  {
120257
- "kind": "method",
120258
- "name": "_requestSubmit",
120259
- "privacy": "private",
120260
- "return": {
120261
- "type": {
120262
- "text": "void"
120263
- }
120421
+ "name": "value",
120422
+ "type": {
120423
+ "text": "string"
120264
120424
  },
120265
- "parameters": [
120266
- {
120267
- "name": "form",
120268
- "type": {
120269
- "text": "HTMLFormElement"
120270
- }
120271
- }
120272
- ],
120425
+ "default": "''",
120426
+ "description": "Value of the form element.",
120427
+ "fieldName": "value",
120273
120428
  "inheritedFrom": {
120274
120429
  "name": "SbbButtonBaseElement",
120275
120430
  "module": "core/base-elements/button-base-element.js"
120276
120431
  }
120277
120432
  },
120278
120433
  {
120279
- "kind": "field",
120280
- "name": "_formKeyDown",
120281
- "privacy": "private",
120434
+ "name": "type",
120435
+ "description": "The type attribute to use for the button.",
120436
+ "default": "'button'",
120437
+ "type": {
120438
+ "text": "SbbButtonType"
120439
+ },
120440
+ "fieldName": "type",
120282
120441
  "inheritedFrom": {
120283
120442
  "name": "SbbButtonBaseElement",
120284
120443
  "module": "core/base-elements/button-base-element.js"
120285
120444
  }
120286
120445
  },
120287
120446
  {
120288
- "kind": "field",
120289
- "name": "formAssociated",
120447
+ "name": "form",
120448
+ "description": "The `<form>` element to associate the button with.",
120290
120449
  "type": {
120291
- "text": "boolean"
120450
+ "text": "HTMLFormElement | null"
120292
120451
  },
120293
- "privacy": "public",
120294
- "static": true,
120295
- "default": "true",
120452
+ "fieldName": "form",
120296
120453
  "inheritedFrom": {
120297
- "name": "SbbFormAssociatedMixin",
120298
- "module": "core/mixins/form-associated-mixin.js"
120454
+ "name": "SbbButtonBaseElement",
120455
+ "module": "core/base-elements/button-base-element.js"
120299
120456
  }
120300
120457
  },
120301
120458
  {
120302
- "kind": "field",
120303
120459
  "name": "name",
120304
- "privacy": "public",
120305
120460
  "description": "Name of the form element. Will be read from name attribute.",
120306
120461
  "type": {
120307
120462
  "text": "string"
120308
120463
  },
120309
- "attribute": "name",
120464
+ "fieldName": "name",
120310
120465
  "inheritedFrom": {
120311
120466
  "name": "SbbFormAssociatedMixin",
120312
120467
  "module": "core/mixins/form-associated-mixin.js"
120313
120468
  }
120314
- },
120469
+ }
120470
+ ]
120471
+ }
120472
+ ],
120473
+ "exports": [
120474
+ {
120475
+ "kind": "js",
120476
+ "name": "SbbBlockLinkButtonElement",
120477
+ "declaration": {
120478
+ "name": "SbbBlockLinkButtonElement",
120479
+ "module": "link/block-link-button/block-link-button.component.js"
120480
+ }
120481
+ }
120482
+ ]
120483
+ },
120484
+ {
120485
+ "kind": "javascript-module",
120486
+ "path": "link/block-link-static/block-link-static.component.js",
120487
+ "declarations": [
120488
+ {
120489
+ "kind": "class",
120490
+ "description": "It displays a static link enhanced with the SBB Design.",
120491
+ "name": "SbbBlockLinkStaticElement",
120492
+ "slots": [
120315
120493
  {
120316
- "kind": "field",
120317
- "name": "validity",
120318
- "type": {
120319
- "text": "ValidityState"
120320
- },
120321
- "privacy": "public",
120322
- "description": "Returns the ValidityState object for this element.",
120323
- "readonly": true,
120324
- "inheritedFrom": {
120325
- "name": "SbbFormAssociatedMixin",
120326
- "module": "core/mixins/form-associated-mixin.js"
120327
- }
120494
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
120495
+ "name": ""
120328
120496
  },
120497
+ {
120498
+ "description": "Slot used to display the icon, if one is set.",
120499
+ "name": "icon"
120500
+ }
120501
+ ],
120502
+ "members": [
120329
120503
  {
120330
120504
  "kind": "field",
120331
- "name": "validationMessage",
120505
+ "name": "elementName",
120332
120506
  "type": {
120333
120507
  "text": "string"
120334
120508
  },
120335
120509
  "privacy": "public",
120336
- "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.",
120510
+ "static": true,
120337
120511
  "readonly": true,
120338
120512
  "inheritedFrom": {
120339
- "name": "SbbFormAssociatedMixin",
120340
- "module": "core/mixins/form-associated-mixin.js"
120341
- }
120513
+ "name": "SbbElement",
120514
+ "module": "core/base-elements/element.js"
120515
+ },
120516
+ "default": "'sbb-block-link-static'"
120342
120517
  },
120343
120518
  {
120344
120519
  "kind": "field",
120345
- "name": "willValidate",
120520
+ "name": "styles",
120346
120521
  "type": {
120347
- "text": "boolean"
120522
+ "text": "CSSResultGroup"
120348
120523
  },
120349
120524
  "privacy": "public",
120350
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120351
- "readonly": true,
120352
- "inheritedFrom": {
120353
- "name": "SbbFormAssociatedMixin",
120354
- "module": "core/mixins/form-associated-mixin.js"
120355
- }
120356
- },
120357
- {
120358
- "kind": "field",
120359
- "name": "_validityStates",
120360
- "privacy": "private",
120361
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120525
+ "static": true,
120526
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
120362
120527
  "inheritedFrom": {
120363
- "name": "SbbFormAssociatedMixin",
120364
- "module": "core/mixins/form-associated-mixin.js"
120528
+ "name": "SbbLinkCommonElementMixin",
120529
+ "module": "link/common/link-common.js"
120365
120530
  }
120366
120531
  },
120367
120532
  {
120368
120533
  "kind": "field",
120369
- "name": "formDisabled",
120534
+ "name": "size",
120370
120535
  "type": {
120371
- "text": "boolean"
120372
- },
120373
- "privacy": "protected",
120374
- "default": "false",
120375
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120376
- "inheritedFrom": {
120377
- "name": "SbbFormAssociatedMixin",
120378
- "module": "core/mixins/form-associated-mixin.js"
120379
- }
120380
- },
120381
- {
120382
- "kind": "method",
120383
- "name": "checkValidity",
120384
- "privacy": "public",
120385
- "return": {
120386
- "type": {
120387
- "text": "boolean"
120388
- }
120389
- },
120390
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120391
- "inheritedFrom": {
120392
- "name": "SbbFormAssociatedMixin",
120393
- "module": "core/mixins/form-associated-mixin.js"
120394
- }
120395
- },
120396
- {
120397
- "kind": "method",
120398
- "name": "reportValidity",
120399
- "privacy": "public",
120400
- "return": {
120401
- "type": {
120402
- "text": "boolean"
120403
- }
120536
+ "text": "SbbLinkSize"
120404
120537
  },
120405
- "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.",
120406
- "inheritedFrom": {
120407
- "name": "SbbFormAssociatedMixin",
120408
- "module": "core/mixins/form-associated-mixin.js"
120409
- }
120410
- },
120411
- {
120412
- "kind": "method",
120413
- "name": "setCustomValidity",
120414
120538
  "privacy": "public",
120415
- "return": {
120416
- "type": {
120417
- "text": "void"
120418
- }
120419
- },
120420
- "parameters": [
120421
- {
120422
- "name": "message",
120423
- "type": {
120424
- "text": "string"
120425
- }
120426
- }
120427
- ],
120428
- "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.",
120429
- "inheritedFrom": {
120430
- "name": "SbbFormAssociatedMixin",
120431
- "module": "core/mixins/form-associated-mixin.js"
120432
- }
120433
- },
120434
- {
120435
- "kind": "method",
120436
- "name": "_hasDisabledAncestor",
120437
- "privacy": "private",
120438
- "return": {
120439
- "type": {
120440
- "text": "boolean"
120441
- }
120442
- },
120443
- "inheritedFrom": {
120444
- "name": "SbbFormAssociatedMixin",
120445
- "module": "core/mixins/form-associated-mixin.js"
120446
- }
120447
- },
120448
- {
120449
- "kind": "method",
120450
- "name": "updateFormValue",
120451
- "privacy": "protected",
120452
- "return": {
120453
- "type": {
120454
- "text": "void"
120455
- }
120456
- },
120457
- "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",
120458
- "inheritedFrom": {
120459
- "name": "SbbFormAssociatedMixin",
120460
- "module": "core/mixins/form-associated-mixin.js"
120461
- }
120462
- },
120463
- {
120464
- "kind": "method",
120465
- "name": "formState",
120466
- "privacy": "protected",
120467
- "return": {
120468
- "type": {
120469
- "text": "FormRestoreState"
120470
- }
120471
- },
120539
+ "description": "Size variant, either xs, s or m.",
120540
+ "default": "'s' / 'xs' (lean)",
120541
+ "attribute": "size",
120542
+ "reflects": true,
120472
120543
  "inheritedFrom": {
120473
- "name": "SbbFormAssociatedMixin",
120474
- "module": "core/mixins/form-associated-mixin.js"
120544
+ "name": "SbbBlockLinkCommonElementMixin",
120545
+ "module": "link/common/block-link-common.js"
120475
120546
  }
120476
120547
  },
120477
120548
  {
120478
- "kind": "method",
120479
- "name": "setValidityFlag",
120480
- "privacy": "protected",
120481
- "return": {
120482
- "type": {
120483
- "text": "void"
120484
- }
120485
- },
120486
- "parameters": [
120487
- {
120488
- "name": "flag",
120489
- "type": {
120490
- "text": "T"
120491
- }
120492
- },
120493
- {
120494
- "name": "message",
120495
- "type": {
120496
- "text": "string"
120497
- }
120498
- },
120499
- {
120500
- "name": "flagValue",
120501
- "optional": true,
120502
- "type": {
120503
- "text": "ValidityStateFlags[T]"
120504
- }
120505
- }
120506
- ],
120507
- "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).",
120549
+ "kind": "field",
120550
+ "name": "iconPlacement",
120551
+ "type": {
120552
+ "text": "SbbIconPlacement"
120553
+ },
120554
+ "privacy": "public",
120555
+ "default": "'start'",
120556
+ "description": "Moves the icon to the end of the component if set to true.",
120557
+ "attribute": "icon-placement",
120558
+ "reflects": true,
120508
120559
  "inheritedFrom": {
120509
- "name": "SbbFormAssociatedMixin",
120510
- "module": "core/mixins/form-associated-mixin.js"
120560
+ "name": "SbbBlockLinkCommonElementMixin",
120561
+ "module": "link/common/block-link-common.js"
120511
120562
  }
120512
120563
  },
120513
120564
  {
120514
120565
  "kind": "method",
120515
- "name": "removeValidityFlag",
120566
+ "name": "renderTemplate",
120516
120567
  "privacy": "protected",
120517
120568
  "return": {
120518
120569
  "type": {
120519
- "text": "void"
120570
+ "text": "TemplateResult"
120520
120571
  }
120521
120572
  },
120522
- "parameters": [
120523
- {
120524
- "name": "flag",
120525
- "type": {
120526
- "text": "T"
120527
- }
120528
- }
120529
- ],
120530
- "description": "Removes the validity state flag entry and updates validity state.",
120573
+ "description": "Override this method to render the component template.",
120531
120574
  "inheritedFrom": {
120532
- "name": "SbbFormAssociatedMixin",
120533
- "module": "core/mixins/form-associated-mixin.js"
120575
+ "name": "SbbActionBaseElement",
120576
+ "module": "core/base-elements/action-base-element.js"
120534
120577
  }
120535
120578
  },
120536
120579
  {
120537
- "kind": "method",
120538
- "name": "validate",
120539
- "privacy": "protected",
120540
- "return": {
120541
- "type": {
120542
- "text": "void"
120543
- }
120580
+ "kind": "field",
120581
+ "name": "elementDependencies",
120582
+ "type": {
120583
+ "text": "SbbElementType[]"
120544
120584
  },
120545
- "description": "To be called whenever the current element needs to be validated.",
120585
+ "privacy": "public",
120586
+ "static": true,
120546
120587
  "inheritedFrom": {
120547
- "name": "SbbFormAssociatedMixin",
120548
- "module": "core/mixins/form-associated-mixin.js"
120588
+ "name": "SbbElement",
120589
+ "module": "core/base-elements/element.js"
120590
+ },
120591
+ "default": "[SbbIconElement]"
120592
+ },
120593
+ {
120594
+ "kind": "field",
120595
+ "name": "iconName",
120596
+ "type": {
120597
+ "text": "string"
120598
+ },
120599
+ "privacy": "public",
120600
+ "default": "''",
120601
+ "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.",
120602
+ "attribute": "icon-name",
120603
+ "inheritedFrom": {
120604
+ "name": "SbbIconNameMixin",
120605
+ "module": "icon/icon-name-mixin.js"
120549
120606
  }
120550
120607
  },
120551
120608
  {
120552
120609
  "kind": "method",
120553
- "name": "shouldValidate",
120610
+ "name": "renderIconSlot",
120554
120611
  "privacy": "protected",
120555
120612
  "return": {
120556
120613
  "type": {
120557
- "text": "boolean"
120614
+ "text": "TemplateResult"
120558
120615
  }
120559
120616
  },
120560
120617
  "parameters": [
120561
120618
  {
120562
- "name": "name",
120619
+ "name": "classname",
120620
+ "optional": true,
120563
120621
  "type": {
120564
- "text": "PropertyKey | undefined"
120622
+ "text": "string"
120565
120623
  }
120566
120624
  }
120567
120625
  ],
120568
- "description": "Whether validation should be run on a property change with the given name.",
120569
120626
  "inheritedFrom": {
120570
- "name": "SbbFormAssociatedMixin",
120571
- "module": "core/mixins/form-associated-mixin.js"
120627
+ "name": "SbbIconNameMixin",
120628
+ "module": "icon/icon-name-mixin.js"
120572
120629
  }
120573
120630
  },
120574
120631
  {
120575
120632
  "kind": "method",
120576
- "name": "_setInternalValidity",
120577
- "privacy": "private",
120633
+ "name": "renderIconName",
120634
+ "privacy": "protected",
120578
120635
  "return": {
120579
120636
  "type": {
120580
- "text": "void"
120637
+ "text": "string"
120581
120638
  }
120582
120639
  },
120583
120640
  "inheritedFrom": {
120584
- "name": "SbbFormAssociatedMixin",
120585
- "module": "core/mixins/form-associated-mixin.js"
120641
+ "name": "SbbIconNameMixin",
120642
+ "module": "icon/icon-name-mixin.js"
120586
120643
  }
120587
120644
  },
120588
120645
  {
120589
- "kind": "field",
120590
- "name": "role",
120591
- "type": {
120592
- "text": "ElementInternals['role']"
120593
- },
120594
- "privacy": "public",
120595
- "static": true,
120596
- "inheritedFrom": {
120597
- "name": "SbbElement",
120598
- "module": "core/base-elements/element.js"
120599
- },
120600
- "readonly": true,
120601
- "default": "'button'"
120602
- },
120603
- {
120604
- "kind": "field",
120605
- "name": "_preventScrollOnSpaceKeydown",
120646
+ "kind": "method",
120647
+ "name": "_renderIconName",
120606
120648
  "privacy": "private",
120607
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120608
- "parameters": [
120609
- {
120610
- "description": "The origin event.",
120611
- "name": "event"
120649
+ "return": {
120650
+ "type": {
120651
+ "text": "string"
120612
120652
  }
120613
- ],
120653
+ },
120614
120654
  "inheritedFrom": {
120615
- "name": "SbbButtonLikeBaseElement",
120616
- "module": "core/base-elements/button-base-element.js"
120655
+ "name": "SbbIconNameMixin",
120656
+ "module": "icon/icon-name-mixin.js"
120617
120657
  }
120618
120658
  },
120619
120659
  {
120620
120660
  "kind": "field",
120621
- "name": "_removeActiveMarker",
120622
- "privacy": "private",
120661
+ "name": "disabled",
120662
+ "privacy": "public",
120663
+ "description": "Whether the component is disabled.",
120664
+ "default": "false",
120665
+ "type": {
120666
+ "text": "boolean"
120667
+ },
120668
+ "attribute": "disabled",
120669
+ "reflects": true,
120623
120670
  "inheritedFrom": {
120624
- "name": "SbbButtonLikeBaseElement",
120625
- "module": "core/base-elements/button-base-element.js"
120671
+ "name": "SbbDisabledMixin",
120672
+ "module": "core/mixins/disabled-mixin.js"
120626
120673
  }
120627
120674
  },
120628
120675
  {
120629
120676
  "kind": "field",
120630
- "name": "_dispatchClickEventOnSpaceKeyup",
120677
+ "name": "#disabled",
120631
120678
  "privacy": "private",
120632
- "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.",
120633
- "parameters": [
120634
- {
120635
- "description": "The origin event.",
120636
- "name": "event"
120637
- }
120638
- ],
120679
+ "type": {
120680
+ "text": "boolean"
120681
+ },
120682
+ "default": "false",
120639
120683
  "inheritedFrom": {
120640
- "name": "SbbButtonLikeBaseElement",
120641
- "module": "core/base-elements/button-base-element.js"
120684
+ "name": "SbbDisabledMixin",
120685
+ "module": "core/mixins/disabled-mixin.js"
120642
120686
  }
120643
120687
  },
120644
120688
  {
120645
- "kind": "field",
120646
- "name": "_dispatchClickEvent",
120647
- "privacy": "private",
120689
+ "kind": "method",
120690
+ "name": "isDisabledExternally",
120691
+ "privacy": "protected",
120692
+ "return": {
120693
+ "type": {
120694
+ "text": "boolean"
120695
+ }
120696
+ },
120697
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120648
120698
  "inheritedFrom": {
120649
- "name": "SbbButtonLikeBaseElement",
120650
- "module": "core/base-elements/button-base-element.js"
120699
+ "name": "SbbDisabledMixin",
120700
+ "module": "core/mixins/disabled-mixin.js"
120651
120701
  }
120652
120702
  },
120653
120703
  {
@@ -120704,6 +120754,19 @@
120704
120754
  "module": "core/base-elements/element.js"
120705
120755
  }
120706
120756
  },
120757
+ {
120758
+ "kind": "field",
120759
+ "name": "role",
120760
+ "type": {
120761
+ "text": "ElementInternals['role'] | undefined"
120762
+ },
120763
+ "privacy": "public",
120764
+ "static": true,
120765
+ "inheritedFrom": {
120766
+ "name": "SbbElement",
120767
+ "module": "core/base-elements/element.js"
120768
+ }
120769
+ },
120707
120770
  {
120708
120771
  "kind": "field",
120709
120772
  "name": "_controllers",
@@ -120930,15 +120993,15 @@
120930
120993
  "module": "link/common/block-link-common.js"
120931
120994
  },
120932
120995
  {
120933
- "name": "SbbDisabledTabIndexActionMixin",
120996
+ "name": "SbbDisabledMixin",
120934
120997
  "module": "core.js"
120935
120998
  }
120936
120999
  ],
120937
121000
  "superclass": {
120938
- "name": "SbbButtonBaseElement",
121001
+ "name": "SbbActionBaseElement",
120939
121002
  "module": "core.js"
120940
121003
  },
120941
- "tagName": "sbb-block-link-button",
121004
+ "tagName": "sbb-block-link-static",
120942
121005
  "customElement": true,
120943
121006
  "attributes": [
120944
121007
  {
@@ -120980,19 +121043,6 @@
120980
121043
  "module": "icon/icon-name-mixin.js"
120981
121044
  }
120982
121045
  },
120983
- {
120984
- "name": "disabled-interactive",
120985
- "type": {
120986
- "text": "boolean"
120987
- },
120988
- "default": "false",
120989
- "description": "Whether the button should be aria-disabled but stay interactive.",
120990
- "fieldName": "disabledInteractive",
120991
- "inheritedFrom": {
120992
- "name": "SbbDisabledInteractiveMixin",
120993
- "module": "core/mixins/disabled-mixin.js"
120994
- }
120995
- },
120996
121046
  {
120997
121047
  "name": "disabled",
120998
121048
  "description": "Whether the component is disabled.",
@@ -121005,56 +121055,6 @@
121005
121055
  "name": "SbbDisabledMixin",
121006
121056
  "module": "core/mixins/disabled-mixin.js"
121007
121057
  }
121008
- },
121009
- {
121010
- "name": "value",
121011
- "type": {
121012
- "text": "string"
121013
- },
121014
- "default": "''",
121015
- "description": "Value of the form element.",
121016
- "fieldName": "value",
121017
- "inheritedFrom": {
121018
- "name": "SbbButtonBaseElement",
121019
- "module": "core/base-elements/button-base-element.js"
121020
- }
121021
- },
121022
- {
121023
- "name": "type",
121024
- "description": "The type attribute to use for the button.",
121025
- "default": "'button'",
121026
- "type": {
121027
- "text": "SbbButtonType"
121028
- },
121029
- "fieldName": "type",
121030
- "inheritedFrom": {
121031
- "name": "SbbButtonBaseElement",
121032
- "module": "core/base-elements/button-base-element.js"
121033
- }
121034
- },
121035
- {
121036
- "name": "form",
121037
- "description": "The `<form>` element to associate the button with.",
121038
- "type": {
121039
- "text": "HTMLFormElement | null"
121040
- },
121041
- "fieldName": "form",
121042
- "inheritedFrom": {
121043
- "name": "SbbButtonBaseElement",
121044
- "module": "core/base-elements/button-base-element.js"
121045
- }
121046
- },
121047
- {
121048
- "name": "name",
121049
- "description": "Name of the form element. Will be read from name attribute.",
121050
- "type": {
121051
- "text": "string"
121052
- },
121053
- "fieldName": "name",
121054
- "inheritedFrom": {
121055
- "name": "SbbFormAssociatedMixin",
121056
- "module": "core/mixins/form-associated-mixin.js"
121057
- }
121058
121058
  }
121059
121059
  ]
121060
121060
  }
@@ -121062,10 +121062,10 @@
121062
121062
  "exports": [
121063
121063
  {
121064
121064
  "kind": "js",
121065
- "name": "SbbBlockLinkButtonElement",
121065
+ "name": "SbbBlockLinkStaticElement",
121066
121066
  "declaration": {
121067
- "name": "SbbBlockLinkButtonElement",
121068
- "module": "link/block-link-button/block-link-button.component.js"
121067
+ "name": "SbbBlockLinkStaticElement",
121068
+ "module": "link/block-link-static/block-link-static.component.js"
121069
121069
  }
121070
121070
  }
121071
121071
  ]