@sbb-esta/lyne-elements-dev 4.7.0-dev.1772806689 → 4.7.0-dev.1772858359

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 +1824 -1824
  2. package/package.json +2 -2
@@ -76537,111 +76537,47 @@
76537
76537
  },
76538
76538
  {
76539
76539
  "kind": "javascript-module",
76540
- "path": "header/common/header-action-common.js",
76540
+ "path": "form-field/form-field-clear/form-field-clear.component.js",
76541
76541
  "declarations": [
76542
76542
  {
76543
76543
  "kind": "class",
76544
- "description": "",
76545
- "name": "SbbHeaderActionCommonElementMixinType",
76544
+ "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
76545
+ "name": "SbbFormFieldClearElement",
76546
76546
  "members": [
76547
76547
  {
76548
76548
  "kind": "field",
76549
- "name": "expandFrom",
76549
+ "name": "_formField",
76550
76550
  "type": {
76551
- "text": "SbbHorizontalFrom"
76551
+ "text": "SbbFormFieldElement | null | undefined"
76552
76552
  },
76553
- "privacy": "public"
76553
+ "privacy": "private"
76554
76554
  },
76555
76555
  {
76556
76556
  "kind": "field",
76557
- "name": "iconName",
76558
- "type": {
76559
- "text": "string"
76560
- },
76561
- "privacy": "public",
76562
- "default": "''",
76563
- "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.",
76564
- "attribute": "icon-name",
76565
- "inheritedFrom": {
76566
- "name": "SbbIconNameMixin",
76567
- "module": "icon/icon-name-mixin.js"
76568
- }
76569
- },
76570
- {
76571
- "kind": "method",
76572
- "name": "renderIconSlot",
76573
- "privacy": "protected",
76574
- "return": {
76575
- "type": {
76576
- "text": "TemplateResult"
76577
- }
76578
- },
76579
- "parameters": [
76580
- {
76581
- "name": "classname",
76582
- "optional": true,
76583
- "type": {
76584
- "text": "string"
76585
- }
76586
- }
76587
- ],
76588
- "inheritedFrom": {
76589
- "name": "SbbIconNameMixin",
76590
- "module": "icon/icon-name-mixin.js"
76591
- }
76592
- },
76593
- {
76594
- "kind": "method",
76595
- "name": "renderIconName",
76596
- "privacy": "protected",
76597
- "return": {
76598
- "type": {
76599
- "text": "string"
76600
- }
76601
- },
76602
- "inheritedFrom": {
76603
- "name": "SbbIconNameMixin",
76604
- "module": "icon/icon-name-mixin.js"
76605
- }
76557
+ "name": "_language",
76558
+ "privacy": "private",
76559
+ "default": "new SbbLanguageController(this)"
76606
76560
  },
76607
76561
  {
76608
76562
  "kind": "method",
76609
- "name": "_renderIconName",
76563
+ "name": "_handleClick",
76610
76564
  "privacy": "private",
76611
76565
  "return": {
76612
76566
  "type": {
76613
- "text": "string"
76567
+ "text": "Promise<void>"
76614
76568
  }
76615
- },
76616
- "inheritedFrom": {
76617
- "name": "SbbIconNameMixin",
76618
- "module": "icon/icon-name-mixin.js"
76619
76569
  }
76620
76570
  },
76621
76571
  {
76622
76572
  "kind": "method",
76623
- "name": "toggleState",
76573
+ "name": "renderTemplate",
76624
76574
  "privacy": "protected",
76625
76575
  "return": {
76626
76576
  "type": {
76627
- "text": "void"
76577
+ "text": "TemplateResult"
76628
76578
  }
76629
76579
  },
76630
- "parameters": [
76631
- {
76632
- "name": "value",
76633
- "type": {
76634
- "text": "string"
76635
- }
76636
- },
76637
- {
76638
- "name": "force",
76639
- "optional": true,
76640
- "type": {
76641
- "text": "boolean"
76642
- }
76643
- }
76644
- ],
76580
+ "description": "Override this method to render the component template.",
76645
76581
  "inheritedFrom": {
76646
76582
  "name": "SbbActionBaseElement",
76647
76583
  "module": "core/base-elements/action-base-element.js"
@@ -76649,413 +76585,120 @@
76649
76585
  },
76650
76586
  {
76651
76587
  "kind": "field",
76652
- "name": "maybeDisabled",
76588
+ "name": "negative",
76653
76589
  "type": {
76654
- "text": "boolean | undefined"
76590
+ "text": "boolean"
76655
76591
  },
76656
- "privacy": "protected",
76657
- "readonly": true,
76592
+ "privacy": "public",
76593
+ "default": "false",
76594
+ "description": "Negative coloring variant flag.",
76595
+ "attribute": "negative",
76596
+ "reflects": true,
76658
76597
  "inheritedFrom": {
76659
- "name": "SbbActionBaseElement",
76660
- "module": "core/base-elements/action-base-element.js"
76598
+ "name": "SbbNegativeMixin",
76599
+ "module": "core/mixins/negative-mixin.js"
76661
76600
  }
76662
76601
  },
76663
76602
  {
76664
76603
  "kind": "field",
76665
- "name": "maybeDisabledInteractive",
76604
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
76666
76605
  "type": {
76667
- "text": "boolean | undefined"
76606
+ "text": "array"
76668
76607
  },
76669
- "privacy": "protected",
76608
+ "privacy": "private",
76670
76609
  "readonly": true,
76610
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
76671
76611
  "inheritedFrom": {
76672
- "name": "SbbActionBaseElement",
76673
- "module": "core/base-elements/action-base-element.js"
76612
+ "name": "SbbButtonBaseElement",
76613
+ "module": "core/base-elements/button-base-element.js"
76674
76614
  }
76675
76615
  },
76676
76616
  {
76677
- "kind": "method",
76678
- "name": "setupBaseEventHandlers",
76679
- "privacy": "protected",
76680
- "return": {
76681
- "type": {
76682
- "text": "void"
76683
- }
76617
+ "kind": "field",
76618
+ "name": "value",
76619
+ "type": {
76620
+ "text": "string"
76684
76621
  },
76622
+ "privacy": "public",
76685
76623
  "inheritedFrom": {
76686
- "name": "SbbActionBaseElement",
76687
- "module": "core/base-elements/action-base-element.js"
76688
- }
76689
- },
76690
- {
76691
- "kind": "method",
76692
- "name": "renderTemplate",
76693
- "privacy": "protected",
76694
- "return": {
76695
- "type": {
76696
- "text": "TemplateResult"
76697
- }
76624
+ "name": "SbbButtonBaseElement",
76625
+ "module": "core/base-elements/button-base-element.js"
76698
76626
  },
76699
- "description": "Override this method to render the component template.",
76700
- "inheritedFrom": {
76701
- "name": "SbbActionBaseElement",
76702
- "module": "core/base-elements/action-base-element.js"
76703
- }
76704
- }
76705
- ],
76706
- "mixins": [
76707
- {
76708
- "name": "SbbIconNameMixin",
76709
- "module": "icon.js"
76710
- }
76711
- ],
76712
- "superclass": {
76713
- "name": "SbbActionBaseElement",
76714
- "module": "core/base-elements.js"
76715
- },
76716
- "attributes": [
76627
+ "default": "''",
76628
+ "description": "Value of the form element.",
76629
+ "attribute": "value"
76630
+ },
76717
76631
  {
76718
- "name": "icon-name",
76632
+ "kind": "field",
76633
+ "name": "type",
76634
+ "privacy": "public",
76635
+ "description": "The type attribute to use for the button.",
76636
+ "default": "'button'",
76719
76637
  "type": {
76720
- "text": "string"
76638
+ "text": "SbbButtonType"
76721
76639
  },
76722
- "default": "''",
76723
- "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.",
76724
- "fieldName": "iconName",
76640
+ "attribute": "type",
76725
76641
  "inheritedFrom": {
76726
- "name": "SbbIconNameMixin",
76727
- "module": "icon/icon-name-mixin.js"
76642
+ "name": "SbbButtonBaseElement",
76643
+ "module": "core/base-elements/button-base-element.js"
76728
76644
  }
76729
- }
76730
- ]
76731
- },
76732
- {
76733
- "kind": "mixin",
76734
- "description": "",
76735
- "name": "SbbHeaderActionCommonElementMixin",
76736
- "members": [
76645
+ },
76737
76646
  {
76738
76647
  "kind": "field",
76739
- "name": "styles",
76648
+ "name": "form",
76740
76649
  "type": {
76741
- "text": "CSSResultGroup"
76650
+ "text": "HTMLFormElement | null"
76742
76651
  },
76743
76652
  "privacy": "public",
76744
- "static": true,
76745
- "default": "[boxSizingStyles, style]"
76653
+ "description": "The `<form>` element to associate the button with.",
76654
+ "inheritedFrom": {
76655
+ "name": "SbbButtonBaseElement",
76656
+ "module": "core/base-elements/button-base-element.js"
76657
+ },
76658
+ "attribute": "form"
76746
76659
  },
76747
76660
  {
76748
76661
  "kind": "field",
76749
- "name": "expandFrom",
76662
+ "name": "_formId",
76750
76663
  "type": {
76751
- "text": "SbbHorizontalFrom"
76664
+ "text": "string"
76752
76665
  },
76753
- "privacy": "public",
76754
- "default": "'large'",
76755
- "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
76756
- "attribute": "expand-from",
76757
- "reflects": true
76758
- },
76759
- {
76760
- "kind": "method",
76761
- "name": "renderTemplate",
76762
- "privacy": "protected",
76763
- "return": {
76764
- "type": {
76765
- "text": "TemplateResult"
76766
- }
76666
+ "privacy": "private",
76667
+ "default": "''",
76668
+ "inheritedFrom": {
76669
+ "name": "SbbButtonBaseElement",
76670
+ "module": "core/base-elements/button-base-element.js"
76767
76671
  }
76768
76672
  },
76769
76673
  {
76770
76674
  "kind": "field",
76771
- "name": "iconName",
76772
- "type": {
76773
- "text": "string"
76774
- },
76775
- "privacy": "public",
76776
- "default": "''",
76777
- "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.",
76778
- "attribute": "icon-name",
76675
+ "name": "_handleButtonClick",
76676
+ "privacy": "private",
76779
76677
  "inheritedFrom": {
76780
- "name": "SbbIconNameMixin",
76781
- "module": "icon/icon-name-mixin.js"
76678
+ "name": "SbbButtonBaseElement",
76679
+ "module": "core/base-elements/button-base-element.js"
76782
76680
  }
76783
76681
  },
76784
76682
  {
76785
76683
  "kind": "method",
76786
- "name": "renderIconSlot",
76787
- "privacy": "protected",
76684
+ "name": "_requestSubmit",
76685
+ "privacy": "private",
76788
76686
  "return": {
76789
76687
  "type": {
76790
- "text": "TemplateResult"
76688
+ "text": "void"
76791
76689
  }
76792
76690
  },
76793
76691
  "parameters": [
76794
76692
  {
76795
- "name": "classname",
76796
- "optional": true,
76693
+ "name": "form",
76797
76694
  "type": {
76798
- "text": "string"
76695
+ "text": "HTMLFormElement"
76799
76696
  }
76800
76697
  }
76801
76698
  ],
76802
76699
  "inheritedFrom": {
76803
- "name": "SbbIconNameMixin",
76804
- "module": "icon/icon-name-mixin.js"
76805
- }
76806
- },
76807
- {
76808
- "kind": "method",
76809
- "name": "renderIconName",
76810
- "privacy": "protected",
76811
- "return": {
76812
- "type": {
76813
- "text": "string"
76814
- }
76815
- },
76816
- "inheritedFrom": {
76817
- "name": "SbbIconNameMixin",
76818
- "module": "icon/icon-name-mixin.js"
76819
- }
76820
- },
76821
- {
76822
- "kind": "method",
76823
- "name": "_renderIconName",
76824
- "privacy": "private",
76825
- "return": {
76826
- "type": {
76827
- "text": "string"
76828
- }
76829
- },
76830
- "inheritedFrom": {
76831
- "name": "SbbIconNameMixin",
76832
- "module": "icon/icon-name-mixin.js"
76833
- }
76834
- }
76835
- ],
76836
- "attributes": [
76837
- {
76838
- "name": "expand-from",
76839
- "type": {
76840
- "text": "SbbHorizontalFrom"
76841
- },
76842
- "default": "'large'",
76843
- "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
76844
- "fieldName": "expandFrom"
76845
- },
76846
- {
76847
- "name": "icon-name",
76848
- "type": {
76849
- "text": "string"
76850
- },
76851
- "default": "''",
76852
- "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.",
76853
- "fieldName": "iconName",
76854
- "inheritedFrom": {
76855
- "name": "SbbIconNameMixin",
76856
- "module": "icon/icon-name-mixin.js"
76857
- }
76858
- }
76859
- ],
76860
- "mixins": [
76861
- {
76862
- "name": "SbbIconNameMixin",
76863
- "module": "icon.js"
76864
- }
76865
- ],
76866
- "parameters": [
76867
- {
76868
- "name": "superClass",
76869
- "type": {
76870
- "text": "T"
76871
- }
76872
- }
76873
- ]
76874
- }
76875
- ],
76876
- "exports": [
76877
- {
76878
- "kind": "js",
76879
- "name": "SbbHeaderActionCommonElementMixinType",
76880
- "declaration": {
76881
- "name": "SbbHeaderActionCommonElementMixinType",
76882
- "module": "header/common/header-action-common.js"
76883
- }
76884
- },
76885
- {
76886
- "kind": "js",
76887
- "name": "SbbHeaderActionCommonElementMixin",
76888
- "declaration": {
76889
- "name": "SbbHeaderActionCommonElementMixin",
76890
- "module": "header/common/header-action-common.js"
76891
- }
76892
- }
76893
- ]
76894
- },
76895
- {
76896
- "kind": "javascript-module",
76897
- "path": "form-field/form-field-clear/form-field-clear.component.js",
76898
- "declarations": [
76899
- {
76900
- "kind": "class",
76901
- "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
76902
- "name": "SbbFormFieldClearElement",
76903
- "members": [
76904
- {
76905
- "kind": "field",
76906
- "name": "_formField",
76907
- "type": {
76908
- "text": "SbbFormFieldElement | null | undefined"
76909
- },
76910
- "privacy": "private"
76911
- },
76912
- {
76913
- "kind": "field",
76914
- "name": "_language",
76915
- "privacy": "private",
76916
- "default": "new SbbLanguageController(this)"
76917
- },
76918
- {
76919
- "kind": "method",
76920
- "name": "_handleClick",
76921
- "privacy": "private",
76922
- "return": {
76923
- "type": {
76924
- "text": "Promise<void>"
76925
- }
76926
- }
76927
- },
76928
- {
76929
- "kind": "method",
76930
- "name": "renderTemplate",
76931
- "privacy": "protected",
76932
- "return": {
76933
- "type": {
76934
- "text": "TemplateResult"
76935
- }
76936
- },
76937
- "description": "Override this method to render the component template.",
76938
- "inheritedFrom": {
76939
- "name": "SbbActionBaseElement",
76940
- "module": "core/base-elements/action-base-element.js"
76941
- }
76942
- },
76943
- {
76944
- "kind": "field",
76945
- "name": "negative",
76946
- "type": {
76947
- "text": "boolean"
76948
- },
76949
- "privacy": "public",
76950
- "default": "false",
76951
- "description": "Negative coloring variant flag.",
76952
- "attribute": "negative",
76953
- "reflects": true,
76954
- "inheritedFrom": {
76955
- "name": "SbbNegativeMixin",
76956
- "module": "core/mixins/negative-mixin.js"
76957
- }
76958
- },
76959
- {
76960
- "kind": "field",
76961
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
76962
- "type": {
76963
- "text": "array"
76964
- },
76965
- "privacy": "private",
76966
- "readonly": true,
76967
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
76968
- "inheritedFrom": {
76969
- "name": "SbbButtonBaseElement",
76970
- "module": "core/base-elements/button-base-element.js"
76971
- }
76972
- },
76973
- {
76974
- "kind": "field",
76975
- "name": "value",
76976
- "type": {
76977
- "text": "string"
76978
- },
76979
- "privacy": "public",
76980
- "inheritedFrom": {
76981
- "name": "SbbButtonBaseElement",
76982
- "module": "core/base-elements/button-base-element.js"
76983
- },
76984
- "default": "''",
76985
- "description": "Value of the form element.",
76986
- "attribute": "value"
76987
- },
76988
- {
76989
- "kind": "field",
76990
- "name": "type",
76991
- "privacy": "public",
76992
- "description": "The type attribute to use for the button.",
76993
- "default": "'button'",
76994
- "type": {
76995
- "text": "SbbButtonType"
76996
- },
76997
- "attribute": "type",
76998
- "inheritedFrom": {
76999
- "name": "SbbButtonBaseElement",
77000
- "module": "core/base-elements/button-base-element.js"
77001
- }
77002
- },
77003
- {
77004
- "kind": "field",
77005
- "name": "form",
77006
- "type": {
77007
- "text": "HTMLFormElement | null"
77008
- },
77009
- "privacy": "public",
77010
- "description": "The `<form>` element to associate the button with.",
77011
- "inheritedFrom": {
77012
- "name": "SbbButtonBaseElement",
77013
- "module": "core/base-elements/button-base-element.js"
77014
- },
77015
- "attribute": "form"
77016
- },
77017
- {
77018
- "kind": "field",
77019
- "name": "_formId",
77020
- "type": {
77021
- "text": "string"
77022
- },
77023
- "privacy": "private",
77024
- "default": "''",
77025
- "inheritedFrom": {
77026
- "name": "SbbButtonBaseElement",
77027
- "module": "core/base-elements/button-base-element.js"
77028
- }
77029
- },
77030
- {
77031
- "kind": "field",
77032
- "name": "_handleButtonClick",
77033
- "privacy": "private",
77034
- "inheritedFrom": {
77035
- "name": "SbbButtonBaseElement",
77036
- "module": "core/base-elements/button-base-element.js"
77037
- }
77038
- },
77039
- {
77040
- "kind": "method",
77041
- "name": "_requestSubmit",
77042
- "privacy": "private",
77043
- "return": {
77044
- "type": {
77045
- "text": "void"
77046
- }
77047
- },
77048
- "parameters": [
77049
- {
77050
- "name": "form",
77051
- "type": {
77052
- "text": "HTMLFormElement"
77053
- }
77054
- }
77055
- ],
77056
- "inheritedFrom": {
77057
- "name": "SbbButtonBaseElement",
77058
- "module": "core/base-elements/button-base-element.js"
76700
+ "name": "SbbButtonBaseElement",
76701
+ "module": "core/base-elements/button-base-element.js"
77059
76702
  }
77060
76703
  },
77061
76704
  {
@@ -77603,242 +77246,87 @@
77603
77246
  },
77604
77247
  {
77605
77248
  "kind": "javascript-module",
77606
- "path": "header/header/header.component.js",
77249
+ "path": "header/common/header-action-common.js",
77607
77250
  "declarations": [
77608
77251
  {
77609
77252
  "kind": "class",
77610
- "description": "It displays a header section for the page.",
77611
- "name": "SbbHeaderElement",
77612
- "cssProperties": [
77613
- {
77614
- "description": "Can be used to modify the z-index of the header.",
77615
- "name": "--sbb-header-z-index",
77616
- "default": "10"
77617
- },
77618
- {
77619
- "description": "Can be used to modify height of the header.",
77620
- "name": "--sbb-header-height",
77621
- "default": "zero-small:var(--sbb-spacing-fixed-14x);large-ultra:var(--sbb-spacing-fixed-24x)"
77622
- }
77623
- ],
77624
- "slots": [
77625
- {
77626
- "description": "Use the unnamed slot to add actions, content and logo to the header.",
77627
- "name": ""
77628
- }
77629
- ],
77253
+ "description": "",
77254
+ "name": "SbbHeaderActionCommonElementMixinType",
77630
77255
  "members": [
77631
77256
  {
77632
77257
  "kind": "field",
77633
- "name": "expanded",
77634
- "type": {
77635
- "text": "boolean"
77636
- },
77637
- "privacy": "public",
77638
- "default": "false",
77639
- "description": "Whether to allow the header content to stretch to full width.\nBy default, the content has the appropriate page size.",
77640
- "attribute": "expanded",
77641
- "reflects": true
77642
- },
77643
- {
77644
- "kind": "field",
77645
- "name": "scrollOrigin",
77646
- "type": {
77647
- "text": "HTMLElement | null"
77648
- },
77649
- "privacy": "public",
77650
- "default": "null",
77651
- "description": "The element's id or the element on which the scroll listener is attached.\n\nFor attribute usage, provide an id reference.",
77652
- "attribute": "scroll-origin"
77653
- },
77654
- {
77655
- "kind": "field",
77656
- "name": "hideOnScroll",
77258
+ "name": "expandFrom",
77657
77259
  "type": {
77658
- "text": "boolean"
77260
+ "text": "SbbHorizontalFrom"
77659
77261
  },
77660
- "privacy": "public",
77661
- "default": "false",
77662
- "description": "Whether the header should hide and show on scroll.",
77663
- "attribute": "hide-on-scroll",
77664
- "reflects": true
77262
+ "privacy": "public"
77665
77263
  },
77666
77264
  {
77667
77265
  "kind": "field",
77668
- "name": "size",
77266
+ "name": "iconName",
77669
77267
  "type": {
77670
- "text": "'m' | 's'"
77268
+ "text": "string"
77671
77269
  },
77672
77270
  "privacy": "public",
77673
- "description": "Size of the header, either m or s.",
77674
- "default": "'m' / 's' (lean)",
77675
- "attribute": "size",
77676
- "reflects": true
77677
- },
77678
- {
77679
- "kind": "field",
77680
- "name": "_headerOnTop",
77681
- "type": {
77682
- "text": "boolean"
77683
- },
77684
- "privacy": "private",
77685
- "default": "true"
77686
- },
77687
- {
77688
- "kind": "field",
77689
- "name": "_scrollElement",
77690
- "type": {
77691
- "text": "HTMLElement | Document | null | undefined"
77692
- },
77693
- "privacy": "private"
77694
- },
77695
- {
77696
- "kind": "field",
77697
- "name": "_scrollEventsController",
77698
- "type": {
77699
- "text": "AbortController"
77700
- },
77701
- "privacy": "private"
77702
- },
77703
- {
77704
- "kind": "field",
77705
- "name": "_scrollFunction",
77706
- "type": {
77707
- "text": "(() => void) | undefined"
77708
- },
77709
- "privacy": "private"
77710
- },
77711
- {
77712
- "kind": "field",
77713
- "name": "_lastScroll",
77714
- "type": {
77715
- "text": "number"
77716
- },
77717
- "privacy": "private",
77718
- "default": "0"
77719
- },
77720
- {
77721
- "kind": "method",
77722
- "name": "_updateScrollListener",
77723
- "privacy": "private",
77724
- "return": {
77725
- "type": {
77726
- "text": "void"
77727
- }
77271
+ "default": "''",
77272
+ "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.",
77273
+ "attribute": "icon-name",
77274
+ "inheritedFrom": {
77275
+ "name": "SbbIconNameMixin",
77276
+ "module": "icon/icon-name-mixin.js"
77728
77277
  }
77729
77278
  },
77730
77279
  {
77731
77280
  "kind": "method",
77732
- "name": "_getScrollFunction",
77733
- "privacy": "private",
77734
- "return": {
77735
- "type": {
77736
- "text": "void"
77737
- }
77738
- },
77739
- "description": "Returns the correct function to attach on scroll."
77740
- },
77741
- {
77742
- "kind": "method",
77743
- "name": "_getCurrentScrollProperty",
77744
- "privacy": "private",
77281
+ "name": "renderIconSlot",
77282
+ "privacy": "protected",
77745
77283
  "return": {
77746
77284
  "type": {
77747
- "text": "number"
77285
+ "text": "TemplateResult"
77748
77286
  }
77749
77287
  },
77750
77288
  "parameters": [
77751
77289
  {
77752
- "name": "property",
77290
+ "name": "classname",
77291
+ "optional": true,
77753
77292
  "type": {
77754
- "text": "'scrollTop' | 'scrollHeight'"
77293
+ "text": "string"
77755
77294
  }
77756
77295
  }
77757
77296
  ],
77758
- "description": "Returns the requested property of the scrollContext."
77759
- },
77760
- {
77761
- "kind": "method",
77762
- "name": "_scrollListener",
77763
- "privacy": "private",
77764
- "return": {
77765
- "type": {
77766
- "text": "void"
77767
- }
77768
- },
77769
- "description": "Sets the correct value for `scrollTop`, then:\n- apply the shadow if the element/document has been scrolled down;\n- hides the header, remove the shadow and possibly close any open menu on the header if it is not visible anymore;\n- shows the header and re-apply the shadow if the element/document has been scrolled up."
77297
+ "inheritedFrom": {
77298
+ "name": "SbbIconNameMixin",
77299
+ "module": "icon/icon-name-mixin.js"
77300
+ }
77770
77301
  },
77771
77302
  {
77772
77303
  "kind": "method",
77773
- "name": "_scrollShadowListener",
77774
- "privacy": "private",
77304
+ "name": "renderIconName",
77305
+ "privacy": "protected",
77775
77306
  "return": {
77776
77307
  "type": {
77777
- "text": "void"
77308
+ "text": "string"
77778
77309
  }
77779
77310
  },
77780
- "description": "Apply the shadow if the element/document has been scrolled down."
77311
+ "inheritedFrom": {
77312
+ "name": "SbbIconNameMixin",
77313
+ "module": "icon/icon-name-mixin.js"
77314
+ }
77781
77315
  },
77782
77316
  {
77783
77317
  "kind": "method",
77784
- "name": "_closeOpenOverlays",
77318
+ "name": "_renderIconName",
77785
77319
  "privacy": "private",
77786
77320
  "return": {
77787
77321
  "type": {
77788
- "text": "void"
77322
+ "text": "string"
77789
77323
  }
77790
- }
77791
- },
77792
- {
77793
- "kind": "field",
77794
- "name": "_hydrationRequired",
77795
- "type": {
77796
- "text": "boolean"
77797
- },
77798
- "privacy": "private",
77799
- "default": "!!this.shadowRoot",
77800
- "inheritedFrom": {
77801
- "name": "SbbHydrationMixin",
77802
- "module": "core/mixins/hydration-mixin.js"
77803
- }
77804
- },
77805
- {
77806
- "kind": "field",
77807
- "name": "_hydrationComplete",
77808
- "privacy": "private",
77809
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
77810
- "inheritedFrom": {
77811
- "name": "SbbHydrationMixin",
77812
- "module": "core/mixins/hydration-mixin.js"
77813
- }
77814
- },
77815
- {
77816
- "kind": "field",
77817
- "name": "_resolveHydration",
77818
- "type": {
77819
- "text": "(hydrationRequired: boolean) => void"
77820
77324
  },
77821
- "privacy": "private",
77822
77325
  "inheritedFrom": {
77823
- "name": "SbbHydrationMixin",
77824
- "module": "core/mixins/hydration-mixin.js"
77326
+ "name": "SbbIconNameMixin",
77327
+ "module": "icon/icon-name-mixin.js"
77825
77328
  }
77826
77329
  },
77827
- {
77828
- "kind": "field",
77829
- "name": "hydrationRequired",
77830
- "type": {
77831
- "text": "boolean"
77832
- },
77833
- "privacy": "protected",
77834
- "description": "Returns whether hydration is required and not completed.",
77835
- "readonly": true,
77836
- "inheritedFrom": {
77837
- "name": "SbbHydrationMixin",
77838
- "module": "core/mixins/hydration-mixin.js"
77839
- },
77840
- "default": "!!this.shadowRoot"
77841
- },
77842
77330
  {
77843
77331
  "kind": "method",
77844
77332
  "name": "toggleState",
@@ -77864,130 +77352,77 @@
77864
77352
  }
77865
77353
  ],
77866
77354
  "inheritedFrom": {
77867
- "name": "SbbElementInternalsMixin",
77868
- "module": "core/mixins/element-internals-mixin.js"
77355
+ "name": "SbbActionBaseElement",
77356
+ "module": "core/base-elements/action-base-element.js"
77869
77357
  }
77870
- }
77871
- ],
77872
- "attributes": [
77873
- {
77874
- "name": "expanded",
77875
- "type": {
77876
- "text": "boolean"
77877
- },
77878
- "default": "false",
77879
- "description": "Whether to allow the header content to stretch to full width.\nBy default, the content has the appropriate page size.",
77880
- "fieldName": "expanded"
77881
77358
  },
77882
77359
  {
77883
- "name": "scroll-origin",
77360
+ "kind": "field",
77361
+ "name": "maybeDisabled",
77884
77362
  "type": {
77885
- "text": "HTMLElement | null"
77363
+ "text": "boolean | undefined"
77886
77364
  },
77887
- "default": "null",
77888
- "description": "The element's id or the element on which the scroll listener is attached.\n\nFor attribute usage, provide an id reference.",
77889
- "fieldName": "scrollOrigin"
77365
+ "privacy": "protected",
77366
+ "readonly": true,
77367
+ "inheritedFrom": {
77368
+ "name": "SbbActionBaseElement",
77369
+ "module": "core/base-elements/action-base-element.js"
77370
+ }
77890
77371
  },
77891
77372
  {
77892
- "name": "hide-on-scroll",
77373
+ "kind": "field",
77374
+ "name": "maybeDisabledInteractive",
77893
77375
  "type": {
77894
- "text": "boolean"
77376
+ "text": "boolean | undefined"
77895
77377
  },
77896
- "default": "false",
77897
- "description": "Whether the header should hide and show on scroll.",
77898
- "fieldName": "hideOnScroll"
77378
+ "privacy": "protected",
77379
+ "readonly": true,
77380
+ "inheritedFrom": {
77381
+ "name": "SbbActionBaseElement",
77382
+ "module": "core/base-elements/action-base-element.js"
77383
+ }
77899
77384
  },
77900
77385
  {
77901
- "name": "size",
77902
- "type": {
77903
- "text": "'m' | 's'"
77386
+ "kind": "method",
77387
+ "name": "setupBaseEventHandlers",
77388
+ "privacy": "protected",
77389
+ "return": {
77390
+ "type": {
77391
+ "text": "void"
77392
+ }
77904
77393
  },
77905
- "description": "Size of the header, either m or s.",
77906
- "default": "'m' / 's' (lean)",
77907
- "fieldName": "size"
77908
- }
77909
- ],
77910
- "mixins": [
77911
- {
77912
- "name": "SbbHydrationMixin",
77913
- "module": "core/mixins.js"
77914
- },
77915
- {
77916
- "name": "SbbElementInternalsMixin",
77917
- "module": "core/mixins.js"
77918
- }
77919
- ],
77920
- "superclass": {
77921
- "name": "LitElement",
77922
- "package": "lit"
77923
- },
77924
- "tagName": "sbb-header",
77925
- "customElement": true
77926
- }
77927
- ],
77928
- "exports": [
77929
- {
77930
- "kind": "js",
77931
- "name": "SbbHeaderElement",
77932
- "declaration": {
77933
- "name": "SbbHeaderElement",
77934
- "module": "header/header/header.component.js"
77935
- }
77936
- },
77937
- {
77938
- "kind": "custom-element-definition",
77939
- "name": "sbb-header",
77940
- "declaration": {
77941
- "name": "SbbHeaderElement",
77942
- "module": "header/header/header.component.js"
77943
- }
77944
- }
77945
- ]
77946
- },
77947
- {
77948
- "kind": "javascript-module",
77949
- "path": "header/header-button/header-button.component.js",
77950
- "declarations": [
77951
- {
77952
- "kind": "class",
77953
- "description": "It displays a button element that can be used in the `sbb-header` component.",
77954
- "name": "SbbHeaderButtonElement",
77955
- "slots": [
77956
- {
77957
- "description": "Slot used to render the button icon.",
77958
- "name": "icon"
77394
+ "inheritedFrom": {
77395
+ "name": "SbbActionBaseElement",
77396
+ "module": "core/base-elements/action-base-element.js"
77397
+ }
77959
77398
  },
77960
77399
  {
77961
- "description": "Use the unnamed slot to add content to the `sbb-header-button`.",
77962
- "name": ""
77400
+ "kind": "method",
77401
+ "name": "renderTemplate",
77402
+ "privacy": "protected",
77403
+ "return": {
77404
+ "type": {
77405
+ "text": "TemplateResult"
77406
+ }
77407
+ },
77408
+ "description": "Override this method to render the component template.",
77409
+ "inheritedFrom": {
77410
+ "name": "SbbActionBaseElement",
77411
+ "module": "core/base-elements/action-base-element.js"
77412
+ }
77963
77413
  }
77964
77414
  ],
77965
77415
  "mixins": [
77966
77416
  {
77967
- "name": "SbbHeaderActionCommonElementMixin",
77968
- "module": "header/common.js"
77417
+ "name": "SbbIconNameMixin",
77418
+ "module": "icon.js"
77969
77419
  }
77970
77420
  ],
77971
77421
  "superclass": {
77972
- "name": "SbbButtonBaseElement",
77422
+ "name": "SbbActionBaseElement",
77973
77423
  "module": "core/base-elements.js"
77974
77424
  },
77975
- "tagName": "sbb-header-button",
77976
- "customElement": true,
77977
77425
  "attributes": [
77978
- {
77979
- "name": "expand-from",
77980
- "type": {
77981
- "text": "SbbHorizontalFrom"
77982
- },
77983
- "default": "'large'",
77984
- "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
77985
- "fieldName": "expandFrom",
77986
- "inheritedFrom": {
77987
- "name": "SbbHeaderActionCommonElementMixin",
77988
- "module": "header/common/header-action-common.js"
77989
- }
77990
- },
77991
77426
  {
77992
77427
  "name": "icon-name",
77993
77428
  "type": {
@@ -78000,58 +77435,13 @@
78000
77435
  "name": "SbbIconNameMixin",
78001
77436
  "module": "icon/icon-name-mixin.js"
78002
77437
  }
78003
- },
78004
- {
78005
- "name": "value",
78006
- "type": {
78007
- "text": "string"
78008
- },
78009
- "default": "''",
78010
- "description": "Value of the form element.",
78011
- "fieldName": "value",
78012
- "inheritedFrom": {
78013
- "name": "SbbButtonBaseElement",
78014
- "module": "core/base-elements/button-base-element.js"
78015
- }
78016
- },
78017
- {
78018
- "name": "type",
78019
- "description": "The type attribute to use for the button.",
78020
- "default": "'button'",
78021
- "type": {
78022
- "text": "SbbButtonType"
78023
- },
78024
- "fieldName": "type",
78025
- "inheritedFrom": {
78026
- "name": "SbbButtonBaseElement",
78027
- "module": "core/base-elements/button-base-element.js"
78028
- }
78029
- },
78030
- {
78031
- "name": "form",
78032
- "description": "The `<form>` element to associate the button with.",
78033
- "type": {
78034
- "text": "HTMLFormElement | null"
78035
- },
78036
- "fieldName": "form",
78037
- "inheritedFrom": {
78038
- "name": "SbbButtonBaseElement",
78039
- "module": "core/base-elements/button-base-element.js"
78040
- }
78041
- },
78042
- {
78043
- "name": "name",
78044
- "description": "Name of the form element. Will be read from name attribute.",
78045
- "type": {
78046
- "text": "string"
78047
- },
78048
- "fieldName": "name",
78049
- "inheritedFrom": {
78050
- "name": "SbbFormAssociatedMixin",
78051
- "module": "core/mixins/form-associated-mixin.js"
78052
- }
78053
77438
  }
78054
- ],
77439
+ ]
77440
+ },
77441
+ {
77442
+ "kind": "mixin",
77443
+ "description": "",
77444
+ "name": "SbbHeaderActionCommonElementMixin",
78055
77445
  "members": [
78056
77446
  {
78057
77447
  "kind": "field",
@@ -78061,11 +77451,7 @@
78061
77451
  },
78062
77452
  "privacy": "public",
78063
77453
  "static": true,
78064
- "default": "[boxSizingStyles, style]",
78065
- "inheritedFrom": {
78066
- "name": "SbbHeaderActionCommonElementMixin",
78067
- "module": "header/common/header-action-common.js"
78068
- }
77454
+ "default": "[boxSizingStyles, style]"
78069
77455
  },
78070
77456
  {
78071
77457
  "kind": "field",
@@ -78077,11 +77463,7 @@
78077
77463
  "default": "'large'",
78078
77464
  "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
78079
77465
  "attribute": "expand-from",
78080
- "reflects": true,
78081
- "inheritedFrom": {
78082
- "name": "SbbHeaderActionCommonElementMixin",
78083
- "module": "header/common/header-action-common.js"
78084
- }
77466
+ "reflects": true
78085
77467
  },
78086
77468
  {
78087
77469
  "kind": "method",
@@ -78091,11 +77473,6 @@
78091
77473
  "type": {
78092
77474
  "text": "TemplateResult"
78093
77475
  }
78094
- },
78095
- "description": "Override this method to render the component template.",
78096
- "inheritedFrom": {
78097
- "name": "SbbActionBaseElement",
78098
- "module": "core/base-elements/action-base-element.js"
78099
77476
  }
78100
77477
  },
78101
77478
  {
@@ -78163,293 +77540,916 @@
78163
77540
  "name": "SbbIconNameMixin",
78164
77541
  "module": "icon/icon-name-mixin.js"
78165
77542
  }
78166
- },
77543
+ }
77544
+ ],
77545
+ "attributes": [
78167
77546
  {
78168
- "kind": "field",
78169
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
77547
+ "name": "expand-from",
78170
77548
  "type": {
78171
- "text": "array"
77549
+ "text": "SbbHorizontalFrom"
78172
77550
  },
78173
- "privacy": "private",
78174
- "readonly": true,
78175
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
78176
- "inheritedFrom": {
78177
- "name": "SbbButtonBaseElement",
78178
- "module": "core/base-elements/button-base-element.js"
78179
- }
77551
+ "default": "'large'",
77552
+ "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
77553
+ "fieldName": "expandFrom"
78180
77554
  },
78181
77555
  {
78182
- "kind": "field",
78183
- "name": "value",
77556
+ "name": "icon-name",
78184
77557
  "type": {
78185
77558
  "text": "string"
78186
77559
  },
78187
- "privacy": "public",
78188
- "inheritedFrom": {
78189
- "name": "SbbButtonBaseElement",
78190
- "module": "core/base-elements/button-base-element.js"
78191
- },
78192
77560
  "default": "''",
78193
- "description": "Value of the form element.",
78194
- "attribute": "value"
78195
- },
78196
- {
78197
- "kind": "field",
78198
- "name": "type",
78199
- "privacy": "public",
78200
- "description": "The type attribute to use for the button.",
78201
- "default": "'button'",
78202
- "type": {
78203
- "text": "SbbButtonType"
78204
- },
78205
- "attribute": "type",
77561
+ "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.",
77562
+ "fieldName": "iconName",
78206
77563
  "inheritedFrom": {
78207
- "name": "SbbButtonBaseElement",
78208
- "module": "core/base-elements/button-base-element.js"
77564
+ "name": "SbbIconNameMixin",
77565
+ "module": "icon/icon-name-mixin.js"
78209
77566
  }
78210
- },
77567
+ }
77568
+ ],
77569
+ "mixins": [
78211
77570
  {
78212
- "kind": "field",
78213
- "name": "form",
78214
- "type": {
78215
- "text": "HTMLFormElement | null"
78216
- },
78217
- "privacy": "public",
78218
- "description": "The `<form>` element to associate the button with.",
78219
- "inheritedFrom": {
78220
- "name": "SbbButtonBaseElement",
78221
- "module": "core/base-elements/button-base-element.js"
78222
- },
78223
- "attribute": "form"
78224
- },
77571
+ "name": "SbbIconNameMixin",
77572
+ "module": "icon.js"
77573
+ }
77574
+ ],
77575
+ "parameters": [
78225
77576
  {
78226
- "kind": "field",
78227
- "name": "_formId",
77577
+ "name": "superClass",
78228
77578
  "type": {
78229
- "text": "string"
78230
- },
78231
- "privacy": "private",
78232
- "default": "''",
78233
- "inheritedFrom": {
78234
- "name": "SbbButtonBaseElement",
78235
- "module": "core/base-elements/button-base-element.js"
77579
+ "text": "T"
78236
77580
  }
78237
- },
77581
+ }
77582
+ ]
77583
+ }
77584
+ ],
77585
+ "exports": [
77586
+ {
77587
+ "kind": "js",
77588
+ "name": "SbbHeaderActionCommonElementMixinType",
77589
+ "declaration": {
77590
+ "name": "SbbHeaderActionCommonElementMixinType",
77591
+ "module": "header/common/header-action-common.js"
77592
+ }
77593
+ },
77594
+ {
77595
+ "kind": "js",
77596
+ "name": "SbbHeaderActionCommonElementMixin",
77597
+ "declaration": {
77598
+ "name": "SbbHeaderActionCommonElementMixin",
77599
+ "module": "header/common/header-action-common.js"
77600
+ }
77601
+ }
77602
+ ]
77603
+ },
77604
+ {
77605
+ "kind": "javascript-module",
77606
+ "path": "header/header/header.component.js",
77607
+ "declarations": [
77608
+ {
77609
+ "kind": "class",
77610
+ "description": "It displays a header section for the page.",
77611
+ "name": "SbbHeaderElement",
77612
+ "cssProperties": [
78238
77613
  {
78239
- "kind": "field",
78240
- "name": "_handleButtonClick",
78241
- "privacy": "private",
78242
- "inheritedFrom": {
78243
- "name": "SbbButtonBaseElement",
78244
- "module": "core/base-elements/button-base-element.js"
78245
- }
77614
+ "description": "Can be used to modify the z-index of the header.",
77615
+ "name": "--sbb-header-z-index",
77616
+ "default": "10"
78246
77617
  },
78247
77618
  {
78248
- "kind": "method",
78249
- "name": "_requestSubmit",
78250
- "privacy": "private",
78251
- "return": {
78252
- "type": {
78253
- "text": "void"
78254
- }
77619
+ "description": "Can be used to modify height of the header.",
77620
+ "name": "--sbb-header-height",
77621
+ "default": "zero-small:var(--sbb-spacing-fixed-14x);large-ultra:var(--sbb-spacing-fixed-24x)"
77622
+ }
77623
+ ],
77624
+ "slots": [
77625
+ {
77626
+ "description": "Use the unnamed slot to add actions, content and logo to the header.",
77627
+ "name": ""
77628
+ }
77629
+ ],
77630
+ "members": [
77631
+ {
77632
+ "kind": "field",
77633
+ "name": "expanded",
77634
+ "type": {
77635
+ "text": "boolean"
78255
77636
  },
78256
- "parameters": [
78257
- {
78258
- "name": "form",
78259
- "type": {
78260
- "text": "HTMLFormElement"
78261
- }
78262
- }
78263
- ],
78264
- "inheritedFrom": {
78265
- "name": "SbbButtonBaseElement",
78266
- "module": "core/base-elements/button-base-element.js"
78267
- }
77637
+ "privacy": "public",
77638
+ "default": "false",
77639
+ "description": "Whether to allow the header content to stretch to full width.\nBy default, the content has the appropriate page size.",
77640
+ "attribute": "expanded",
77641
+ "reflects": true
78268
77642
  },
78269
77643
  {
78270
77644
  "kind": "field",
78271
- "name": "_formKeyDown",
78272
- "privacy": "private",
78273
- "inheritedFrom": {
78274
- "name": "SbbButtonBaseElement",
78275
- "module": "core/base-elements/button-base-element.js"
78276
- }
77645
+ "name": "scrollOrigin",
77646
+ "type": {
77647
+ "text": "HTMLElement | null"
77648
+ },
77649
+ "privacy": "public",
77650
+ "default": "null",
77651
+ "description": "The element's id or the element on which the scroll listener is attached.\n\nFor attribute usage, provide an id reference.",
77652
+ "attribute": "scroll-origin"
78277
77653
  },
78278
77654
  {
78279
77655
  "kind": "field",
78280
- "name": "formAssociated",
77656
+ "name": "hideOnScroll",
78281
77657
  "type": {
78282
77658
  "text": "boolean"
78283
77659
  },
78284
77660
  "privacy": "public",
78285
- "static": true,
78286
- "default": "true",
78287
- "inheritedFrom": {
78288
- "name": "SbbFormAssociatedMixin",
78289
- "module": "core/mixins/form-associated-mixin.js"
78290
- }
77661
+ "default": "false",
77662
+ "description": "Whether the header should hide and show on scroll.",
77663
+ "attribute": "hide-on-scroll",
77664
+ "reflects": true
78291
77665
  },
78292
77666
  {
78293
77667
  "kind": "field",
78294
- "name": "name",
78295
- "privacy": "public",
78296
- "description": "Name of the form element. Will be read from name attribute.",
77668
+ "name": "size",
78297
77669
  "type": {
78298
- "text": "string"
77670
+ "text": "'m' | 's'"
78299
77671
  },
78300
- "attribute": "name",
78301
- "inheritedFrom": {
78302
- "name": "SbbFormAssociatedMixin",
78303
- "module": "core/mixins/form-associated-mixin.js"
78304
- }
77672
+ "privacy": "public",
77673
+ "description": "Size of the header, either m or s.",
77674
+ "default": "'m' / 's' (lean)",
77675
+ "attribute": "size",
77676
+ "reflects": true
78305
77677
  },
78306
77678
  {
78307
77679
  "kind": "field",
78308
- "name": "validity",
77680
+ "name": "_headerOnTop",
78309
77681
  "type": {
78310
- "text": "ValidityState"
77682
+ "text": "boolean"
78311
77683
  },
78312
- "privacy": "public",
78313
- "description": "Returns the ValidityState object for this element.",
78314
- "readonly": true,
78315
- "inheritedFrom": {
78316
- "name": "SbbFormAssociatedMixin",
78317
- "module": "core/mixins/form-associated-mixin.js"
78318
- }
77684
+ "privacy": "private",
77685
+ "default": "true"
78319
77686
  },
78320
77687
  {
78321
77688
  "kind": "field",
78322
- "name": "validationMessage",
77689
+ "name": "_scrollElement",
78323
77690
  "type": {
78324
- "text": "string"
77691
+ "text": "HTMLElement | Document | null | undefined"
78325
77692
  },
78326
- "privacy": "public",
78327
- "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.",
78328
- "readonly": true,
78329
- "inheritedFrom": {
78330
- "name": "SbbFormAssociatedMixin",
78331
- "module": "core/mixins/form-associated-mixin.js"
78332
- }
77693
+ "privacy": "private"
78333
77694
  },
78334
77695
  {
78335
77696
  "kind": "field",
78336
- "name": "willValidate",
77697
+ "name": "_scrollEventsController",
78337
77698
  "type": {
78338
- "text": "boolean"
77699
+ "text": "AbortController"
78339
77700
  },
78340
- "privacy": "public",
78341
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
78342
- "readonly": true,
78343
- "inheritedFrom": {
78344
- "name": "SbbFormAssociatedMixin",
78345
- "module": "core/mixins/form-associated-mixin.js"
78346
- }
77701
+ "privacy": "private"
78347
77702
  },
78348
77703
  {
78349
77704
  "kind": "field",
78350
- "name": "_validityStates",
78351
- "privacy": "private",
78352
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
78353
- "inheritedFrom": {
78354
- "name": "SbbFormAssociatedMixin",
78355
- "module": "core/mixins/form-associated-mixin.js"
78356
- }
77705
+ "name": "_scrollFunction",
77706
+ "type": {
77707
+ "text": "(() => void) | undefined"
77708
+ },
77709
+ "privacy": "private"
78357
77710
  },
78358
77711
  {
78359
77712
  "kind": "field",
78360
- "name": "formDisabled",
77713
+ "name": "_lastScroll",
78361
77714
  "type": {
78362
- "text": "boolean"
77715
+ "text": "number"
78363
77716
  },
78364
- "privacy": "protected",
78365
- "default": "false",
78366
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
78367
- "inheritedFrom": {
78368
- "name": "SbbFormAssociatedMixin",
78369
- "module": "core/mixins/form-associated-mixin.js"
78370
- }
77717
+ "privacy": "private",
77718
+ "default": "0"
78371
77719
  },
78372
77720
  {
78373
77721
  "kind": "method",
78374
- "name": "checkValidity",
78375
- "privacy": "public",
77722
+ "name": "_updateScrollListener",
77723
+ "privacy": "private",
78376
77724
  "return": {
78377
77725
  "type": {
78378
- "text": "boolean"
77726
+ "text": "void"
78379
77727
  }
78380
- },
78381
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
78382
- "inheritedFrom": {
78383
- "name": "SbbFormAssociatedMixin",
78384
- "module": "core/mixins/form-associated-mixin.js"
78385
77728
  }
78386
77729
  },
78387
77730
  {
78388
77731
  "kind": "method",
78389
- "name": "reportValidity",
78390
- "privacy": "public",
77732
+ "name": "_getScrollFunction",
77733
+ "privacy": "private",
78391
77734
  "return": {
78392
77735
  "type": {
78393
- "text": "boolean"
77736
+ "text": "void"
78394
77737
  }
78395
77738
  },
78396
- "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.",
78397
- "inheritedFrom": {
78398
- "name": "SbbFormAssociatedMixin",
78399
- "module": "core/mixins/form-associated-mixin.js"
78400
- }
77739
+ "description": "Returns the correct function to attach on scroll."
78401
77740
  },
78402
77741
  {
78403
77742
  "kind": "method",
78404
- "name": "setCustomValidity",
78405
- "privacy": "public",
77743
+ "name": "_getCurrentScrollProperty",
77744
+ "privacy": "private",
78406
77745
  "return": {
78407
77746
  "type": {
78408
- "text": "void"
77747
+ "text": "number"
78409
77748
  }
78410
77749
  },
78411
77750
  "parameters": [
78412
77751
  {
78413
- "name": "message",
77752
+ "name": "property",
78414
77753
  "type": {
78415
- "text": "string"
77754
+ "text": "'scrollTop' | 'scrollHeight'"
78416
77755
  }
78417
77756
  }
78418
77757
  ],
78419
- "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.",
78420
- "inheritedFrom": {
78421
- "name": "SbbFormAssociatedMixin",
78422
- "module": "core/mixins/form-associated-mixin.js"
78423
- }
77758
+ "description": "Returns the requested property of the scrollContext."
78424
77759
  },
78425
77760
  {
78426
77761
  "kind": "method",
78427
- "name": "_hasDisabledAncestor",
77762
+ "name": "_scrollListener",
78428
77763
  "privacy": "private",
78429
77764
  "return": {
78430
77765
  "type": {
78431
- "text": "boolean"
77766
+ "text": "void"
78432
77767
  }
78433
77768
  },
78434
- "inheritedFrom": {
78435
- "name": "SbbFormAssociatedMixin",
78436
- "module": "core/mixins/form-associated-mixin.js"
78437
- }
77769
+ "description": "Sets the correct value for `scrollTop`, then:\n- apply the shadow if the element/document has been scrolled down;\n- hides the header, remove the shadow and possibly close any open menu on the header if it is not visible anymore;\n- shows the header and re-apply the shadow if the element/document has been scrolled up."
78438
77770
  },
78439
77771
  {
78440
77772
  "kind": "method",
78441
- "name": "updateFormValue",
78442
- "privacy": "protected",
77773
+ "name": "_scrollShadowListener",
77774
+ "privacy": "private",
78443
77775
  "return": {
78444
77776
  "type": {
78445
77777
  "text": "void"
78446
77778
  }
78447
77779
  },
78448
- "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",
78449
- "inheritedFrom": {
78450
- "name": "SbbFormAssociatedMixin",
78451
- "module": "core/mixins/form-associated-mixin.js"
78452
- }
77780
+ "description": "Apply the shadow if the element/document has been scrolled down."
77781
+ },
77782
+ {
77783
+ "kind": "method",
77784
+ "name": "_closeOpenOverlays",
77785
+ "privacy": "private",
77786
+ "return": {
77787
+ "type": {
77788
+ "text": "void"
77789
+ }
77790
+ }
77791
+ },
77792
+ {
77793
+ "kind": "field",
77794
+ "name": "_hydrationRequired",
77795
+ "type": {
77796
+ "text": "boolean"
77797
+ },
77798
+ "privacy": "private",
77799
+ "default": "!!this.shadowRoot",
77800
+ "inheritedFrom": {
77801
+ "name": "SbbHydrationMixin",
77802
+ "module": "core/mixins/hydration-mixin.js"
77803
+ }
77804
+ },
77805
+ {
77806
+ "kind": "field",
77807
+ "name": "_hydrationComplete",
77808
+ "privacy": "private",
77809
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
77810
+ "inheritedFrom": {
77811
+ "name": "SbbHydrationMixin",
77812
+ "module": "core/mixins/hydration-mixin.js"
77813
+ }
77814
+ },
77815
+ {
77816
+ "kind": "field",
77817
+ "name": "_resolveHydration",
77818
+ "type": {
77819
+ "text": "(hydrationRequired: boolean) => void"
77820
+ },
77821
+ "privacy": "private",
77822
+ "inheritedFrom": {
77823
+ "name": "SbbHydrationMixin",
77824
+ "module": "core/mixins/hydration-mixin.js"
77825
+ }
77826
+ },
77827
+ {
77828
+ "kind": "field",
77829
+ "name": "hydrationRequired",
77830
+ "type": {
77831
+ "text": "boolean"
77832
+ },
77833
+ "privacy": "protected",
77834
+ "description": "Returns whether hydration is required and not completed.",
77835
+ "readonly": true,
77836
+ "inheritedFrom": {
77837
+ "name": "SbbHydrationMixin",
77838
+ "module": "core/mixins/hydration-mixin.js"
77839
+ },
77840
+ "default": "!!this.shadowRoot"
77841
+ },
77842
+ {
77843
+ "kind": "method",
77844
+ "name": "toggleState",
77845
+ "privacy": "protected",
77846
+ "return": {
77847
+ "type": {
77848
+ "text": "void"
77849
+ }
77850
+ },
77851
+ "parameters": [
77852
+ {
77853
+ "name": "value",
77854
+ "type": {
77855
+ "text": "string"
77856
+ }
77857
+ },
77858
+ {
77859
+ "name": "force",
77860
+ "optional": true,
77861
+ "type": {
77862
+ "text": "boolean"
77863
+ }
77864
+ }
77865
+ ],
77866
+ "inheritedFrom": {
77867
+ "name": "SbbElementInternalsMixin",
77868
+ "module": "core/mixins/element-internals-mixin.js"
77869
+ }
77870
+ }
77871
+ ],
77872
+ "attributes": [
77873
+ {
77874
+ "name": "expanded",
77875
+ "type": {
77876
+ "text": "boolean"
77877
+ },
77878
+ "default": "false",
77879
+ "description": "Whether to allow the header content to stretch to full width.\nBy default, the content has the appropriate page size.",
77880
+ "fieldName": "expanded"
77881
+ },
77882
+ {
77883
+ "name": "scroll-origin",
77884
+ "type": {
77885
+ "text": "HTMLElement | null"
77886
+ },
77887
+ "default": "null",
77888
+ "description": "The element's id or the element on which the scroll listener is attached.\n\nFor attribute usage, provide an id reference.",
77889
+ "fieldName": "scrollOrigin"
77890
+ },
77891
+ {
77892
+ "name": "hide-on-scroll",
77893
+ "type": {
77894
+ "text": "boolean"
77895
+ },
77896
+ "default": "false",
77897
+ "description": "Whether the header should hide and show on scroll.",
77898
+ "fieldName": "hideOnScroll"
77899
+ },
77900
+ {
77901
+ "name": "size",
77902
+ "type": {
77903
+ "text": "'m' | 's'"
77904
+ },
77905
+ "description": "Size of the header, either m or s.",
77906
+ "default": "'m' / 's' (lean)",
77907
+ "fieldName": "size"
77908
+ }
77909
+ ],
77910
+ "mixins": [
77911
+ {
77912
+ "name": "SbbHydrationMixin",
77913
+ "module": "core/mixins.js"
77914
+ },
77915
+ {
77916
+ "name": "SbbElementInternalsMixin",
77917
+ "module": "core/mixins.js"
77918
+ }
77919
+ ],
77920
+ "superclass": {
77921
+ "name": "LitElement",
77922
+ "package": "lit"
77923
+ },
77924
+ "tagName": "sbb-header",
77925
+ "customElement": true
77926
+ }
77927
+ ],
77928
+ "exports": [
77929
+ {
77930
+ "kind": "js",
77931
+ "name": "SbbHeaderElement",
77932
+ "declaration": {
77933
+ "name": "SbbHeaderElement",
77934
+ "module": "header/header/header.component.js"
77935
+ }
77936
+ },
77937
+ {
77938
+ "kind": "custom-element-definition",
77939
+ "name": "sbb-header",
77940
+ "declaration": {
77941
+ "name": "SbbHeaderElement",
77942
+ "module": "header/header/header.component.js"
77943
+ }
77944
+ }
77945
+ ]
77946
+ },
77947
+ {
77948
+ "kind": "javascript-module",
77949
+ "path": "header/header-button/header-button.component.js",
77950
+ "declarations": [
77951
+ {
77952
+ "kind": "class",
77953
+ "description": "It displays a button element that can be used in the `sbb-header` component.",
77954
+ "name": "SbbHeaderButtonElement",
77955
+ "slots": [
77956
+ {
77957
+ "description": "Slot used to render the button icon.",
77958
+ "name": "icon"
77959
+ },
77960
+ {
77961
+ "description": "Use the unnamed slot to add content to the `sbb-header-button`.",
77962
+ "name": ""
77963
+ }
77964
+ ],
77965
+ "mixins": [
77966
+ {
77967
+ "name": "SbbHeaderActionCommonElementMixin",
77968
+ "module": "header/common.js"
77969
+ }
77970
+ ],
77971
+ "superclass": {
77972
+ "name": "SbbButtonBaseElement",
77973
+ "module": "core/base-elements.js"
77974
+ },
77975
+ "tagName": "sbb-header-button",
77976
+ "customElement": true,
77977
+ "attributes": [
77978
+ {
77979
+ "name": "expand-from",
77980
+ "type": {
77981
+ "text": "SbbHorizontalFrom"
77982
+ },
77983
+ "default": "'large'",
77984
+ "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
77985
+ "fieldName": "expandFrom",
77986
+ "inheritedFrom": {
77987
+ "name": "SbbHeaderActionCommonElementMixin",
77988
+ "module": "header/common/header-action-common.js"
77989
+ }
77990
+ },
77991
+ {
77992
+ "name": "icon-name",
77993
+ "type": {
77994
+ "text": "string"
77995
+ },
77996
+ "default": "''",
77997
+ "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.",
77998
+ "fieldName": "iconName",
77999
+ "inheritedFrom": {
78000
+ "name": "SbbIconNameMixin",
78001
+ "module": "icon/icon-name-mixin.js"
78002
+ }
78003
+ },
78004
+ {
78005
+ "name": "value",
78006
+ "type": {
78007
+ "text": "string"
78008
+ },
78009
+ "default": "''",
78010
+ "description": "Value of the form element.",
78011
+ "fieldName": "value",
78012
+ "inheritedFrom": {
78013
+ "name": "SbbButtonBaseElement",
78014
+ "module": "core/base-elements/button-base-element.js"
78015
+ }
78016
+ },
78017
+ {
78018
+ "name": "type",
78019
+ "description": "The type attribute to use for the button.",
78020
+ "default": "'button'",
78021
+ "type": {
78022
+ "text": "SbbButtonType"
78023
+ },
78024
+ "fieldName": "type",
78025
+ "inheritedFrom": {
78026
+ "name": "SbbButtonBaseElement",
78027
+ "module": "core/base-elements/button-base-element.js"
78028
+ }
78029
+ },
78030
+ {
78031
+ "name": "form",
78032
+ "description": "The `<form>` element to associate the button with.",
78033
+ "type": {
78034
+ "text": "HTMLFormElement | null"
78035
+ },
78036
+ "fieldName": "form",
78037
+ "inheritedFrom": {
78038
+ "name": "SbbButtonBaseElement",
78039
+ "module": "core/base-elements/button-base-element.js"
78040
+ }
78041
+ },
78042
+ {
78043
+ "name": "name",
78044
+ "description": "Name of the form element. Will be read from name attribute.",
78045
+ "type": {
78046
+ "text": "string"
78047
+ },
78048
+ "fieldName": "name",
78049
+ "inheritedFrom": {
78050
+ "name": "SbbFormAssociatedMixin",
78051
+ "module": "core/mixins/form-associated-mixin.js"
78052
+ }
78053
+ }
78054
+ ],
78055
+ "members": [
78056
+ {
78057
+ "kind": "field",
78058
+ "name": "styles",
78059
+ "type": {
78060
+ "text": "CSSResultGroup"
78061
+ },
78062
+ "privacy": "public",
78063
+ "static": true,
78064
+ "default": "[boxSizingStyles, style]",
78065
+ "inheritedFrom": {
78066
+ "name": "SbbHeaderActionCommonElementMixin",
78067
+ "module": "header/common/header-action-common.js"
78068
+ }
78069
+ },
78070
+ {
78071
+ "kind": "field",
78072
+ "name": "expandFrom",
78073
+ "type": {
78074
+ "text": "SbbHorizontalFrom"
78075
+ },
78076
+ "privacy": "public",
78077
+ "default": "'large'",
78078
+ "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
78079
+ "attribute": "expand-from",
78080
+ "reflects": true,
78081
+ "inheritedFrom": {
78082
+ "name": "SbbHeaderActionCommonElementMixin",
78083
+ "module": "header/common/header-action-common.js"
78084
+ }
78085
+ },
78086
+ {
78087
+ "kind": "method",
78088
+ "name": "renderTemplate",
78089
+ "privacy": "protected",
78090
+ "return": {
78091
+ "type": {
78092
+ "text": "TemplateResult"
78093
+ }
78094
+ },
78095
+ "description": "Override this method to render the component template.",
78096
+ "inheritedFrom": {
78097
+ "name": "SbbActionBaseElement",
78098
+ "module": "core/base-elements/action-base-element.js"
78099
+ }
78100
+ },
78101
+ {
78102
+ "kind": "field",
78103
+ "name": "iconName",
78104
+ "type": {
78105
+ "text": "string"
78106
+ },
78107
+ "privacy": "public",
78108
+ "default": "''",
78109
+ "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.",
78110
+ "attribute": "icon-name",
78111
+ "inheritedFrom": {
78112
+ "name": "SbbIconNameMixin",
78113
+ "module": "icon/icon-name-mixin.js"
78114
+ }
78115
+ },
78116
+ {
78117
+ "kind": "method",
78118
+ "name": "renderIconSlot",
78119
+ "privacy": "protected",
78120
+ "return": {
78121
+ "type": {
78122
+ "text": "TemplateResult"
78123
+ }
78124
+ },
78125
+ "parameters": [
78126
+ {
78127
+ "name": "classname",
78128
+ "optional": true,
78129
+ "type": {
78130
+ "text": "string"
78131
+ }
78132
+ }
78133
+ ],
78134
+ "inheritedFrom": {
78135
+ "name": "SbbIconNameMixin",
78136
+ "module": "icon/icon-name-mixin.js"
78137
+ }
78138
+ },
78139
+ {
78140
+ "kind": "method",
78141
+ "name": "renderIconName",
78142
+ "privacy": "protected",
78143
+ "return": {
78144
+ "type": {
78145
+ "text": "string"
78146
+ }
78147
+ },
78148
+ "inheritedFrom": {
78149
+ "name": "SbbIconNameMixin",
78150
+ "module": "icon/icon-name-mixin.js"
78151
+ }
78152
+ },
78153
+ {
78154
+ "kind": "method",
78155
+ "name": "_renderIconName",
78156
+ "privacy": "private",
78157
+ "return": {
78158
+ "type": {
78159
+ "text": "string"
78160
+ }
78161
+ },
78162
+ "inheritedFrom": {
78163
+ "name": "SbbIconNameMixin",
78164
+ "module": "icon/icon-name-mixin.js"
78165
+ }
78166
+ },
78167
+ {
78168
+ "kind": "field",
78169
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
78170
+ "type": {
78171
+ "text": "array"
78172
+ },
78173
+ "privacy": "private",
78174
+ "readonly": true,
78175
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
78176
+ "inheritedFrom": {
78177
+ "name": "SbbButtonBaseElement",
78178
+ "module": "core/base-elements/button-base-element.js"
78179
+ }
78180
+ },
78181
+ {
78182
+ "kind": "field",
78183
+ "name": "value",
78184
+ "type": {
78185
+ "text": "string"
78186
+ },
78187
+ "privacy": "public",
78188
+ "inheritedFrom": {
78189
+ "name": "SbbButtonBaseElement",
78190
+ "module": "core/base-elements/button-base-element.js"
78191
+ },
78192
+ "default": "''",
78193
+ "description": "Value of the form element.",
78194
+ "attribute": "value"
78195
+ },
78196
+ {
78197
+ "kind": "field",
78198
+ "name": "type",
78199
+ "privacy": "public",
78200
+ "description": "The type attribute to use for the button.",
78201
+ "default": "'button'",
78202
+ "type": {
78203
+ "text": "SbbButtonType"
78204
+ },
78205
+ "attribute": "type",
78206
+ "inheritedFrom": {
78207
+ "name": "SbbButtonBaseElement",
78208
+ "module": "core/base-elements/button-base-element.js"
78209
+ }
78210
+ },
78211
+ {
78212
+ "kind": "field",
78213
+ "name": "form",
78214
+ "type": {
78215
+ "text": "HTMLFormElement | null"
78216
+ },
78217
+ "privacy": "public",
78218
+ "description": "The `<form>` element to associate the button with.",
78219
+ "inheritedFrom": {
78220
+ "name": "SbbButtonBaseElement",
78221
+ "module": "core/base-elements/button-base-element.js"
78222
+ },
78223
+ "attribute": "form"
78224
+ },
78225
+ {
78226
+ "kind": "field",
78227
+ "name": "_formId",
78228
+ "type": {
78229
+ "text": "string"
78230
+ },
78231
+ "privacy": "private",
78232
+ "default": "''",
78233
+ "inheritedFrom": {
78234
+ "name": "SbbButtonBaseElement",
78235
+ "module": "core/base-elements/button-base-element.js"
78236
+ }
78237
+ },
78238
+ {
78239
+ "kind": "field",
78240
+ "name": "_handleButtonClick",
78241
+ "privacy": "private",
78242
+ "inheritedFrom": {
78243
+ "name": "SbbButtonBaseElement",
78244
+ "module": "core/base-elements/button-base-element.js"
78245
+ }
78246
+ },
78247
+ {
78248
+ "kind": "method",
78249
+ "name": "_requestSubmit",
78250
+ "privacy": "private",
78251
+ "return": {
78252
+ "type": {
78253
+ "text": "void"
78254
+ }
78255
+ },
78256
+ "parameters": [
78257
+ {
78258
+ "name": "form",
78259
+ "type": {
78260
+ "text": "HTMLFormElement"
78261
+ }
78262
+ }
78263
+ ],
78264
+ "inheritedFrom": {
78265
+ "name": "SbbButtonBaseElement",
78266
+ "module": "core/base-elements/button-base-element.js"
78267
+ }
78268
+ },
78269
+ {
78270
+ "kind": "field",
78271
+ "name": "_formKeyDown",
78272
+ "privacy": "private",
78273
+ "inheritedFrom": {
78274
+ "name": "SbbButtonBaseElement",
78275
+ "module": "core/base-elements/button-base-element.js"
78276
+ }
78277
+ },
78278
+ {
78279
+ "kind": "field",
78280
+ "name": "formAssociated",
78281
+ "type": {
78282
+ "text": "boolean"
78283
+ },
78284
+ "privacy": "public",
78285
+ "static": true,
78286
+ "default": "true",
78287
+ "inheritedFrom": {
78288
+ "name": "SbbFormAssociatedMixin",
78289
+ "module": "core/mixins/form-associated-mixin.js"
78290
+ }
78291
+ },
78292
+ {
78293
+ "kind": "field",
78294
+ "name": "name",
78295
+ "privacy": "public",
78296
+ "description": "Name of the form element. Will be read from name attribute.",
78297
+ "type": {
78298
+ "text": "string"
78299
+ },
78300
+ "attribute": "name",
78301
+ "inheritedFrom": {
78302
+ "name": "SbbFormAssociatedMixin",
78303
+ "module": "core/mixins/form-associated-mixin.js"
78304
+ }
78305
+ },
78306
+ {
78307
+ "kind": "field",
78308
+ "name": "validity",
78309
+ "type": {
78310
+ "text": "ValidityState"
78311
+ },
78312
+ "privacy": "public",
78313
+ "description": "Returns the ValidityState object for this element.",
78314
+ "readonly": true,
78315
+ "inheritedFrom": {
78316
+ "name": "SbbFormAssociatedMixin",
78317
+ "module": "core/mixins/form-associated-mixin.js"
78318
+ }
78319
+ },
78320
+ {
78321
+ "kind": "field",
78322
+ "name": "validationMessage",
78323
+ "type": {
78324
+ "text": "string"
78325
+ },
78326
+ "privacy": "public",
78327
+ "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.",
78328
+ "readonly": true,
78329
+ "inheritedFrom": {
78330
+ "name": "SbbFormAssociatedMixin",
78331
+ "module": "core/mixins/form-associated-mixin.js"
78332
+ }
78333
+ },
78334
+ {
78335
+ "kind": "field",
78336
+ "name": "willValidate",
78337
+ "type": {
78338
+ "text": "boolean"
78339
+ },
78340
+ "privacy": "public",
78341
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
78342
+ "readonly": true,
78343
+ "inheritedFrom": {
78344
+ "name": "SbbFormAssociatedMixin",
78345
+ "module": "core/mixins/form-associated-mixin.js"
78346
+ }
78347
+ },
78348
+ {
78349
+ "kind": "field",
78350
+ "name": "_validityStates",
78351
+ "privacy": "private",
78352
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
78353
+ "inheritedFrom": {
78354
+ "name": "SbbFormAssociatedMixin",
78355
+ "module": "core/mixins/form-associated-mixin.js"
78356
+ }
78357
+ },
78358
+ {
78359
+ "kind": "field",
78360
+ "name": "formDisabled",
78361
+ "type": {
78362
+ "text": "boolean"
78363
+ },
78364
+ "privacy": "protected",
78365
+ "default": "false",
78366
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
78367
+ "inheritedFrom": {
78368
+ "name": "SbbFormAssociatedMixin",
78369
+ "module": "core/mixins/form-associated-mixin.js"
78370
+ }
78371
+ },
78372
+ {
78373
+ "kind": "method",
78374
+ "name": "checkValidity",
78375
+ "privacy": "public",
78376
+ "return": {
78377
+ "type": {
78378
+ "text": "boolean"
78379
+ }
78380
+ },
78381
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
78382
+ "inheritedFrom": {
78383
+ "name": "SbbFormAssociatedMixin",
78384
+ "module": "core/mixins/form-associated-mixin.js"
78385
+ }
78386
+ },
78387
+ {
78388
+ "kind": "method",
78389
+ "name": "reportValidity",
78390
+ "privacy": "public",
78391
+ "return": {
78392
+ "type": {
78393
+ "text": "boolean"
78394
+ }
78395
+ },
78396
+ "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.",
78397
+ "inheritedFrom": {
78398
+ "name": "SbbFormAssociatedMixin",
78399
+ "module": "core/mixins/form-associated-mixin.js"
78400
+ }
78401
+ },
78402
+ {
78403
+ "kind": "method",
78404
+ "name": "setCustomValidity",
78405
+ "privacy": "public",
78406
+ "return": {
78407
+ "type": {
78408
+ "text": "void"
78409
+ }
78410
+ },
78411
+ "parameters": [
78412
+ {
78413
+ "name": "message",
78414
+ "type": {
78415
+ "text": "string"
78416
+ }
78417
+ }
78418
+ ],
78419
+ "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.",
78420
+ "inheritedFrom": {
78421
+ "name": "SbbFormAssociatedMixin",
78422
+ "module": "core/mixins/form-associated-mixin.js"
78423
+ }
78424
+ },
78425
+ {
78426
+ "kind": "method",
78427
+ "name": "_hasDisabledAncestor",
78428
+ "privacy": "private",
78429
+ "return": {
78430
+ "type": {
78431
+ "text": "boolean"
78432
+ }
78433
+ },
78434
+ "inheritedFrom": {
78435
+ "name": "SbbFormAssociatedMixin",
78436
+ "module": "core/mixins/form-associated-mixin.js"
78437
+ }
78438
+ },
78439
+ {
78440
+ "kind": "method",
78441
+ "name": "updateFormValue",
78442
+ "privacy": "protected",
78443
+ "return": {
78444
+ "type": {
78445
+ "text": "void"
78446
+ }
78447
+ },
78448
+ "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",
78449
+ "inheritedFrom": {
78450
+ "name": "SbbFormAssociatedMixin",
78451
+ "module": "core/mixins/form-associated-mixin.js"
78452
+ }
78453
78453
  },
78454
78454
  {
78455
78455
  "kind": "method",
@@ -80750,15 +80750,15 @@
80750
80750
  },
80751
80751
  {
80752
80752
  "kind": "javascript-module",
80753
- "path": "link/block-link-button/block-link-button.component.js",
80753
+ "path": "link/block-link/block-link.component.js",
80754
80754
  "declarations": [
80755
80755
  {
80756
80756
  "kind": "class",
80757
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
80758
- "name": "SbbBlockLinkButtonElement",
80757
+ "description": "It displays a link enhanced with the SBB Design.",
80758
+ "name": "SbbBlockLinkElement",
80759
80759
  "slots": [
80760
80760
  {
80761
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
80761
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
80762
80762
  "name": ""
80763
80763
  },
80764
80764
  {
@@ -80772,15 +80772,15 @@
80772
80772
  "module": "link/common.js"
80773
80773
  },
80774
80774
  {
80775
- "name": "SbbDisabledTabIndexActionMixin",
80775
+ "name": "SbbDisabledMixin",
80776
80776
  "module": "core/mixins.js"
80777
80777
  }
80778
80778
  ],
80779
80779
  "superclass": {
80780
- "name": "SbbButtonBaseElement",
80780
+ "name": "SbbLinkBaseElement",
80781
80781
  "module": "core/base-elements.js"
80782
80782
  },
80783
- "tagName": "sbb-block-link-button",
80783
+ "tagName": "sbb-block-link",
80784
80784
  "customElement": true,
80785
80785
  "attributes": [
80786
80786
  {
@@ -80790,195 +80790,432 @@
80790
80790
  },
80791
80791
  "default": "'start'",
80792
80792
  "description": "Moves the icon to the end of the component if set to true.",
80793
- "fieldName": "iconPlacement",
80793
+ "fieldName": "iconPlacement",
80794
+ "inheritedFrom": {
80795
+ "name": "SbbBlockLinkCommonElementMixin",
80796
+ "module": "link/common/block-link-common.js"
80797
+ }
80798
+ },
80799
+ {
80800
+ "name": "size",
80801
+ "type": {
80802
+ "text": "SbbLinkSize"
80803
+ },
80804
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
80805
+ "default": "'s' / 'xs' (lean)",
80806
+ "fieldName": "size",
80807
+ "inheritedFrom": {
80808
+ "name": "SbbLinkCommonElementMixin",
80809
+ "module": "link/common/link-common.js"
80810
+ }
80811
+ },
80812
+ {
80813
+ "name": "icon-name",
80814
+ "type": {
80815
+ "text": "string"
80816
+ },
80817
+ "default": "''",
80818
+ "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.",
80819
+ "fieldName": "iconName",
80820
+ "inheritedFrom": {
80821
+ "name": "SbbIconNameMixin",
80822
+ "module": "icon/icon-name-mixin.js"
80823
+ }
80824
+ },
80825
+ {
80826
+ "name": "disabled",
80827
+ "description": "Whether the component is disabled.",
80828
+ "default": "false",
80829
+ "type": {
80830
+ "text": "boolean"
80831
+ },
80832
+ "fieldName": "disabled",
80833
+ "inheritedFrom": {
80834
+ "name": "SbbDisabledMixin",
80835
+ "module": "core/mixins/disabled-mixin.js"
80836
+ }
80837
+ },
80838
+ {
80839
+ "name": "href",
80840
+ "type": {
80841
+ "text": "string"
80842
+ },
80843
+ "default": "''",
80844
+ "description": "The href value you want to link to.",
80845
+ "fieldName": "href",
80846
+ "inheritedFrom": {
80847
+ "name": "SbbLinkBaseElement",
80848
+ "module": "core/base-elements/link-base-element.js"
80849
+ }
80850
+ },
80851
+ {
80852
+ "name": "target",
80853
+ "type": {
80854
+ "text": "LinkTargetType | string"
80855
+ },
80856
+ "default": "''",
80857
+ "description": "Where to display the linked URL.",
80858
+ "fieldName": "target",
80859
+ "inheritedFrom": {
80860
+ "name": "SbbLinkBaseElement",
80861
+ "module": "core/base-elements/link-base-element.js"
80862
+ }
80863
+ },
80864
+ {
80865
+ "name": "rel",
80866
+ "type": {
80867
+ "text": "string"
80868
+ },
80869
+ "default": "''",
80870
+ "description": "The relationship of the linked URL as space-separated link types.",
80871
+ "fieldName": "rel",
80872
+ "inheritedFrom": {
80873
+ "name": "SbbLinkBaseElement",
80874
+ "module": "core/base-elements/link-base-element.js"
80875
+ }
80876
+ },
80877
+ {
80878
+ "name": "download",
80879
+ "type": {
80880
+ "text": "boolean"
80881
+ },
80882
+ "default": "false",
80883
+ "description": "Whether the browser will show the download dialog on click.",
80884
+ "fieldName": "download",
80885
+ "inheritedFrom": {
80886
+ "name": "SbbLinkBaseElement",
80887
+ "module": "core/base-elements/link-base-element.js"
80888
+ }
80889
+ },
80890
+ {
80891
+ "name": "accessibility-label",
80892
+ "type": {
80893
+ "text": "string"
80894
+ },
80895
+ "default": "''",
80896
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
80897
+ "fieldName": "accessibilityLabel",
80898
+ "inheritedFrom": {
80899
+ "name": "SbbLinkBaseElement",
80900
+ "module": "core/base-elements/link-base-element.js"
80901
+ }
80902
+ },
80903
+ {
80904
+ "name": "accessibility-current",
80905
+ "type": {
80906
+ "text": "string"
80907
+ },
80908
+ "default": "''",
80909
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
80910
+ "fieldName": "accessibilityCurrent",
80911
+ "inheritedFrom": {
80912
+ "name": "SbbLinkBaseElement",
80913
+ "module": "core/base-elements/link-base-element.js"
80914
+ }
80915
+ }
80916
+ ],
80917
+ "members": [
80918
+ {
80919
+ "kind": "field",
80920
+ "name": "styles",
80921
+ "type": {
80922
+ "text": "CSSResultGroup"
80923
+ },
80924
+ "privacy": "public",
80925
+ "static": true,
80926
+ "default": "[boxSizingStyles, style, blockStyle]",
80927
+ "inheritedFrom": {
80928
+ "name": "SbbLinkCommonElementMixin",
80929
+ "module": "link/common/link-common.js"
80930
+ }
80931
+ },
80932
+ {
80933
+ "kind": "field",
80934
+ "name": "iconPlacement",
80935
+ "type": {
80936
+ "text": "SbbIconPlacement"
80937
+ },
80938
+ "privacy": "public",
80939
+ "default": "'start'",
80940
+ "description": "Moves the icon to the end of the component if set to true.",
80941
+ "attribute": "icon-placement",
80942
+ "reflects": true,
80794
80943
  "inheritedFrom": {
80795
80944
  "name": "SbbBlockLinkCommonElementMixin",
80796
80945
  "module": "link/common/block-link-common.js"
80797
80946
  }
80798
80947
  },
80799
80948
  {
80949
+ "kind": "method",
80950
+ "name": "renderTemplate",
80951
+ "privacy": "protected",
80952
+ "return": {
80953
+ "type": {
80954
+ "text": "TemplateResult"
80955
+ }
80956
+ },
80957
+ "description": "Override this method to render the component template.",
80958
+ "inheritedFrom": {
80959
+ "name": "SbbActionBaseElement",
80960
+ "module": "core/base-elements/action-base-element.js"
80961
+ }
80962
+ },
80963
+ {
80964
+ "kind": "field",
80800
80965
  "name": "size",
80801
80966
  "type": {
80802
80967
  "text": "SbbLinkSize"
80803
80968
  },
80969
+ "privacy": "public",
80804
80970
  "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
80805
80971
  "default": "'s' / 'xs' (lean)",
80806
- "fieldName": "size",
80972
+ "attribute": "size",
80973
+ "reflects": true,
80807
80974
  "inheritedFrom": {
80808
80975
  "name": "SbbLinkCommonElementMixin",
80809
80976
  "module": "link/common/link-common.js"
80810
80977
  }
80811
80978
  },
80812
80979
  {
80813
- "name": "icon-name",
80980
+ "kind": "field",
80981
+ "name": "iconName",
80814
80982
  "type": {
80815
80983
  "text": "string"
80816
80984
  },
80985
+ "privacy": "public",
80817
80986
  "default": "''",
80818
80987
  "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.",
80819
- "fieldName": "iconName",
80988
+ "attribute": "icon-name",
80820
80989
  "inheritedFrom": {
80821
80990
  "name": "SbbIconNameMixin",
80822
80991
  "module": "icon/icon-name-mixin.js"
80823
80992
  }
80824
80993
  },
80825
80994
  {
80826
- "name": "disabled-interactive",
80827
- "type": {
80828
- "text": "boolean"
80995
+ "kind": "method",
80996
+ "name": "renderIconSlot",
80997
+ "privacy": "protected",
80998
+ "return": {
80999
+ "type": {
81000
+ "text": "TemplateResult"
81001
+ }
80829
81002
  },
80830
- "default": "false",
80831
- "description": "Whether the button should be aria-disabled but stay interactive.",
80832
- "fieldName": "disabledInteractive",
81003
+ "parameters": [
81004
+ {
81005
+ "name": "classname",
81006
+ "optional": true,
81007
+ "type": {
81008
+ "text": "string"
81009
+ }
81010
+ }
81011
+ ],
80833
81012
  "inheritedFrom": {
80834
- "name": "SbbDisabledInteractiveMixin",
80835
- "module": "core/mixins/disabled-mixin.js"
81013
+ "name": "SbbIconNameMixin",
81014
+ "module": "icon/icon-name-mixin.js"
81015
+ }
81016
+ },
81017
+ {
81018
+ "kind": "method",
81019
+ "name": "renderIconName",
81020
+ "privacy": "protected",
81021
+ "return": {
81022
+ "type": {
81023
+ "text": "string"
81024
+ }
81025
+ },
81026
+ "inheritedFrom": {
81027
+ "name": "SbbIconNameMixin",
81028
+ "module": "icon/icon-name-mixin.js"
81029
+ }
81030
+ },
81031
+ {
81032
+ "kind": "method",
81033
+ "name": "_renderIconName",
81034
+ "privacy": "private",
81035
+ "return": {
81036
+ "type": {
81037
+ "text": "string"
81038
+ }
81039
+ },
81040
+ "inheritedFrom": {
81041
+ "name": "SbbIconNameMixin",
81042
+ "module": "icon/icon-name-mixin.js"
80836
81043
  }
80837
81044
  },
80838
81045
  {
81046
+ "kind": "field",
80839
81047
  "name": "disabled",
81048
+ "privacy": "public",
80840
81049
  "description": "Whether the component is disabled.",
80841
81050
  "default": "false",
80842
81051
  "type": {
80843
81052
  "text": "boolean"
80844
81053
  },
80845
- "fieldName": "disabled",
81054
+ "attribute": "disabled",
81055
+ "reflects": true,
80846
81056
  "inheritedFrom": {
80847
81057
  "name": "SbbDisabledMixin",
80848
81058
  "module": "core/mixins/disabled-mixin.js"
80849
81059
  }
80850
81060
  },
80851
81061
  {
80852
- "name": "value",
81062
+ "kind": "field",
81063
+ "name": "#disabled",
81064
+ "privacy": "private",
80853
81065
  "type": {
80854
- "text": "string"
81066
+ "text": "boolean"
80855
81067
  },
80856
- "default": "''",
80857
- "description": "Value of the form element.",
80858
- "fieldName": "value",
81068
+ "default": "false",
80859
81069
  "inheritedFrom": {
80860
- "name": "SbbButtonBaseElement",
80861
- "module": "core/base-elements/button-base-element.js"
81070
+ "name": "SbbDisabledMixin",
81071
+ "module": "core/mixins/disabled-mixin.js"
80862
81072
  }
80863
81073
  },
80864
81074
  {
80865
- "name": "type",
80866
- "description": "The type attribute to use for the button.",
80867
- "default": "'button'",
80868
- "type": {
80869
- "text": "SbbButtonType"
81075
+ "kind": "method",
81076
+ "name": "isDisabledExternally",
81077
+ "privacy": "protected",
81078
+ "return": {
81079
+ "type": {
81080
+ "text": "boolean"
81081
+ }
80870
81082
  },
80871
- "fieldName": "type",
81083
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
80872
81084
  "inheritedFrom": {
80873
- "name": "SbbButtonBaseElement",
80874
- "module": "core/base-elements/button-base-element.js"
81085
+ "name": "SbbDisabledMixin",
81086
+ "module": "core/mixins/disabled-mixin.js"
80875
81087
  }
80876
81088
  },
80877
81089
  {
80878
- "name": "form",
80879
- "description": "The `<form>` element to associate the button with.",
81090
+ "kind": "field",
81091
+ "name": "href",
80880
81092
  "type": {
80881
- "text": "HTMLFormElement | null"
81093
+ "text": "string"
80882
81094
  },
80883
- "fieldName": "form",
81095
+ "privacy": "public",
81096
+ "default": "''",
81097
+ "description": "The href value you want to link to.",
81098
+ "attribute": "href",
81099
+ "reflects": true,
80884
81100
  "inheritedFrom": {
80885
- "name": "SbbButtonBaseElement",
80886
- "module": "core/base-elements/button-base-element.js"
81101
+ "name": "SbbLinkBaseElement",
81102
+ "module": "core/base-elements/link-base-element.js"
80887
81103
  }
80888
81104
  },
80889
81105
  {
80890
- "name": "name",
80891
- "description": "Name of the form element. Will be read from name attribute.",
81106
+ "kind": "field",
81107
+ "name": "target",
80892
81108
  "type": {
80893
- "text": "string"
81109
+ "text": "LinkTargetType | string"
80894
81110
  },
80895
- "fieldName": "name",
81111
+ "privacy": "public",
81112
+ "default": "''",
81113
+ "description": "Where to display the linked URL.",
81114
+ "attribute": "target",
81115
+ "reflects": true,
80896
81116
  "inheritedFrom": {
80897
- "name": "SbbFormAssociatedMixin",
80898
- "module": "core/mixins/form-associated-mixin.js"
81117
+ "name": "SbbLinkBaseElement",
81118
+ "module": "core/base-elements/link-base-element.js"
80899
81119
  }
80900
- }
80901
- ],
80902
- "members": [
81120
+ },
80903
81121
  {
80904
81122
  "kind": "field",
80905
- "name": "styles",
81123
+ "name": "rel",
80906
81124
  "type": {
80907
- "text": "CSSResultGroup"
81125
+ "text": "string"
80908
81126
  },
80909
81127
  "privacy": "public",
80910
- "static": true,
80911
- "default": "[boxSizingStyles, style, blockStyle]",
81128
+ "default": "''",
81129
+ "description": "The relationship of the linked URL as space-separated link types.",
81130
+ "attribute": "rel",
81131
+ "reflects": true,
80912
81132
  "inheritedFrom": {
80913
- "name": "SbbLinkCommonElementMixin",
80914
- "module": "link/common/link-common.js"
81133
+ "name": "SbbLinkBaseElement",
81134
+ "module": "core/base-elements/link-base-element.js"
80915
81135
  }
80916
81136
  },
80917
81137
  {
80918
81138
  "kind": "field",
80919
- "name": "iconPlacement",
81139
+ "name": "download",
80920
81140
  "type": {
80921
- "text": "SbbIconPlacement"
81141
+ "text": "boolean"
80922
81142
  },
80923
81143
  "privacy": "public",
80924
- "default": "'start'",
80925
- "description": "Moves the icon to the end of the component if set to true.",
80926
- "attribute": "icon-placement",
81144
+ "default": "false",
81145
+ "description": "Whether the browser will show the download dialog on click.",
81146
+ "attribute": "download",
80927
81147
  "reflects": true,
80928
81148
  "inheritedFrom": {
80929
- "name": "SbbBlockLinkCommonElementMixin",
80930
- "module": "link/common/block-link-common.js"
81149
+ "name": "SbbLinkBaseElement",
81150
+ "module": "core/base-elements/link-base-element.js"
80931
81151
  }
80932
81152
  },
80933
81153
  {
80934
- "kind": "method",
80935
- "name": "renderTemplate",
80936
- "privacy": "protected",
80937
- "return": {
80938
- "type": {
80939
- "text": "TemplateResult"
80940
- }
81154
+ "kind": "field",
81155
+ "name": "accessibilityLabel",
81156
+ "type": {
81157
+ "text": "string"
80941
81158
  },
80942
- "description": "Override this method to render the component template.",
81159
+ "privacy": "public",
81160
+ "default": "''",
81161
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
81162
+ "attribute": "accessibility-label",
80943
81163
  "inheritedFrom": {
80944
- "name": "SbbActionBaseElement",
80945
- "module": "core/base-elements/action-base-element.js"
81164
+ "name": "SbbLinkBaseElement",
81165
+ "module": "core/base-elements/link-base-element.js"
80946
81166
  }
80947
81167
  },
80948
81168
  {
80949
81169
  "kind": "field",
80950
- "name": "size",
81170
+ "name": "accessibilityCurrent",
80951
81171
  "type": {
80952
- "text": "SbbLinkSize"
81172
+ "text": "string"
80953
81173
  },
80954
81174
  "privacy": "public",
80955
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
80956
- "default": "'s' / 'xs' (lean)",
80957
- "attribute": "size",
80958
- "reflects": true,
81175
+ "default": "''",
81176
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
81177
+ "attribute": "accessibility-current",
80959
81178
  "inheritedFrom": {
80960
- "name": "SbbLinkCommonElementMixin",
80961
- "module": "link/common/link-common.js"
81179
+ "name": "SbbLinkBaseElement",
81180
+ "module": "core/base-elements/link-base-element.js"
80962
81181
  }
80963
81182
  },
80964
81183
  {
80965
81184
  "kind": "field",
80966
- "name": "iconName",
81185
+ "name": "language",
81186
+ "privacy": "protected",
81187
+ "default": "new SbbLanguageController(this)",
81188
+ "inheritedFrom": {
81189
+ "name": "SbbLinkBaseElement",
81190
+ "module": "core/base-elements/link-base-element.js"
81191
+ }
81192
+ },
81193
+ {
81194
+ "kind": "field",
81195
+ "name": "anchorRole",
80967
81196
  "type": {
80968
- "text": "string"
81197
+ "text": "string | null"
80969
81198
  },
80970
- "privacy": "public",
80971
- "default": "''",
80972
- "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.",
80973
- "attribute": "icon-name",
81199
+ "privacy": "protected",
81200
+ "readonly": true,
81201
+ "default": "null",
80974
81202
  "inheritedFrom": {
80975
- "name": "SbbIconNameMixin",
80976
- "module": "icon/icon-name-mixin.js"
81203
+ "name": "SbbLinkBaseElement",
81204
+ "module": "core/base-elements/link-base-element.js"
81205
+ }
81206
+ },
81207
+ {
81208
+ "kind": "field",
81209
+ "name": "_evaluateRelAttribute",
81210
+ "privacy": "private",
81211
+ "inheritedFrom": {
81212
+ "name": "SbbLinkBaseElement",
81213
+ "module": "core/base-elements/link-base-element.js"
80977
81214
  }
80978
81215
  },
80979
81216
  {
80980
81217
  "kind": "method",
80981
- "name": "renderIconSlot",
81218
+ "name": "renderLink",
80982
81219
  "privacy": "protected",
80983
81220
  "return": {
80984
81221
  "type": {
@@ -80987,587 +81224,531 @@
80987
81224
  },
80988
81225
  "parameters": [
80989
81226
  {
80990
- "name": "classname",
80991
- "optional": true,
81227
+ "name": "renderContent",
80992
81228
  "type": {
80993
- "text": "string"
81229
+ "text": "TemplateResult"
80994
81230
  }
80995
81231
  }
80996
81232
  ],
80997
81233
  "inheritedFrom": {
80998
- "name": "SbbIconNameMixin",
80999
- "module": "icon/icon-name-mixin.js"
81234
+ "name": "SbbLinkBaseElement",
81235
+ "module": "core/base-elements/link-base-element.js"
81000
81236
  }
81001
81237
  },
81002
81238
  {
81003
81239
  "kind": "method",
81004
- "name": "renderIconName",
81240
+ "name": "toggleState",
81005
81241
  "privacy": "protected",
81006
81242
  "return": {
81007
81243
  "type": {
81008
- "text": "string"
81244
+ "text": "void"
81009
81245
  }
81010
81246
  },
81011
- "inheritedFrom": {
81012
- "name": "SbbIconNameMixin",
81013
- "module": "icon/icon-name-mixin.js"
81014
- }
81015
- },
81016
- {
81017
- "kind": "method",
81018
- "name": "_renderIconName",
81019
- "privacy": "private",
81020
- "return": {
81021
- "type": {
81022
- "text": "string"
81247
+ "parameters": [
81248
+ {
81249
+ "name": "value",
81250
+ "type": {
81251
+ "text": "string"
81252
+ }
81253
+ },
81254
+ {
81255
+ "name": "force",
81256
+ "optional": true,
81257
+ "type": {
81258
+ "text": "boolean"
81259
+ }
81023
81260
  }
81024
- },
81025
- "inheritedFrom": {
81026
- "name": "SbbIconNameMixin",
81027
- "module": "icon/icon-name-mixin.js"
81028
- }
81029
- },
81030
- {
81031
- "kind": "field",
81032
- "name": "disabledInteractive",
81033
- "type": {
81034
- "text": "boolean"
81035
- },
81036
- "privacy": "public",
81037
- "default": "false",
81038
- "description": "Whether the button should be aria-disabled but stay interactive.",
81039
- "attribute": "disabled-interactive",
81040
- "reflects": true,
81261
+ ],
81041
81262
  "inheritedFrom": {
81042
- "name": "SbbDisabledInteractiveMixin",
81043
- "module": "core/mixins/disabled-mixin.js"
81263
+ "name": "SbbActionBaseElement",
81264
+ "module": "core/base-elements/action-base-element.js"
81044
81265
  }
81045
81266
  },
81046
81267
  {
81047
81268
  "kind": "field",
81048
- "name": "disabled",
81049
- "privacy": "public",
81050
- "description": "Whether the component is disabled.",
81051
- "default": "false",
81269
+ "name": "maybeDisabled",
81052
81270
  "type": {
81053
- "text": "boolean"
81271
+ "text": "boolean | undefined"
81054
81272
  },
81055
- "attribute": "disabled",
81056
- "reflects": true,
81273
+ "privacy": "protected",
81274
+ "readonly": true,
81057
81275
  "inheritedFrom": {
81058
- "name": "SbbDisabledMixin",
81059
- "module": "core/mixins/disabled-mixin.js"
81276
+ "name": "SbbActionBaseElement",
81277
+ "module": "core/base-elements/action-base-element.js"
81060
81278
  }
81061
81279
  },
81062
81280
  {
81063
81281
  "kind": "field",
81064
- "name": "#disabled",
81065
- "privacy": "private",
81282
+ "name": "maybeDisabledInteractive",
81066
81283
  "type": {
81067
- "text": "boolean"
81284
+ "text": "boolean | undefined"
81068
81285
  },
81069
- "default": "false",
81286
+ "privacy": "protected",
81287
+ "readonly": true,
81070
81288
  "inheritedFrom": {
81071
- "name": "SbbDisabledMixin",
81072
- "module": "core/mixins/disabled-mixin.js"
81289
+ "name": "SbbActionBaseElement",
81290
+ "module": "core/base-elements/action-base-element.js"
81073
81291
  }
81074
81292
  },
81075
81293
  {
81076
81294
  "kind": "method",
81077
- "name": "isDisabledExternally",
81295
+ "name": "setupBaseEventHandlers",
81078
81296
  "privacy": "protected",
81079
81297
  "return": {
81080
81298
  "type": {
81081
- "text": "boolean"
81299
+ "text": "void"
81082
81300
  }
81083
81301
  },
81084
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
81085
81302
  "inheritedFrom": {
81086
- "name": "SbbDisabledMixin",
81087
- "module": "core/mixins/disabled-mixin.js"
81303
+ "name": "SbbActionBaseElement",
81304
+ "module": "core/base-elements/action-base-element.js"
81088
81305
  }
81089
- },
81306
+ }
81307
+ ]
81308
+ }
81309
+ ],
81310
+ "exports": [
81311
+ {
81312
+ "kind": "js",
81313
+ "name": "SbbBlockLinkElement",
81314
+ "declaration": {
81315
+ "name": "SbbBlockLinkElement",
81316
+ "module": "link/block-link/block-link.component.js"
81317
+ }
81318
+ },
81319
+ {
81320
+ "kind": "custom-element-definition",
81321
+ "name": "sbb-block-link",
81322
+ "declaration": {
81323
+ "name": "SbbBlockLinkElement",
81324
+ "module": "link/block-link/block-link.component.js"
81325
+ }
81326
+ }
81327
+ ]
81328
+ },
81329
+ {
81330
+ "kind": "javascript-module",
81331
+ "path": "link/block-link-button/block-link-button.component.js",
81332
+ "declarations": [
81333
+ {
81334
+ "kind": "class",
81335
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
81336
+ "name": "SbbBlockLinkButtonElement",
81337
+ "slots": [
81090
81338
  {
81091
- "kind": "field",
81092
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
81093
- "type": {
81094
- "text": "array"
81095
- },
81096
- "privacy": "private",
81097
- "readonly": true,
81098
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
81099
- "inheritedFrom": {
81100
- "name": "SbbButtonBaseElement",
81101
- "module": "core/base-elements/button-base-element.js"
81102
- }
81339
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
81340
+ "name": ""
81103
81341
  },
81104
81342
  {
81105
- "kind": "field",
81106
- "name": "value",
81107
- "type": {
81108
- "text": "string"
81109
- },
81110
- "privacy": "public",
81111
- "inheritedFrom": {
81112
- "name": "SbbButtonBaseElement",
81113
- "module": "core/base-elements/button-base-element.js"
81114
- },
81115
- "default": "''",
81116
- "description": "Value of the form element.",
81117
- "attribute": "value"
81343
+ "description": "Slot used to display the icon, if one is set.",
81344
+ "name": "icon"
81345
+ }
81346
+ ],
81347
+ "mixins": [
81348
+ {
81349
+ "name": "SbbBlockLinkCommonElementMixin",
81350
+ "module": "link/common.js"
81118
81351
  },
81119
81352
  {
81120
- "kind": "field",
81121
- "name": "type",
81122
- "privacy": "public",
81123
- "description": "The type attribute to use for the button.",
81124
- "default": "'button'",
81353
+ "name": "SbbDisabledTabIndexActionMixin",
81354
+ "module": "core/mixins.js"
81355
+ }
81356
+ ],
81357
+ "superclass": {
81358
+ "name": "SbbButtonBaseElement",
81359
+ "module": "core/base-elements.js"
81360
+ },
81361
+ "tagName": "sbb-block-link-button",
81362
+ "customElement": true,
81363
+ "attributes": [
81364
+ {
81365
+ "name": "icon-placement",
81125
81366
  "type": {
81126
- "text": "SbbButtonType"
81367
+ "text": "SbbIconPlacement"
81127
81368
  },
81128
- "attribute": "type",
81369
+ "default": "'start'",
81370
+ "description": "Moves the icon to the end of the component if set to true.",
81371
+ "fieldName": "iconPlacement",
81129
81372
  "inheritedFrom": {
81130
- "name": "SbbButtonBaseElement",
81131
- "module": "core/base-elements/button-base-element.js"
81373
+ "name": "SbbBlockLinkCommonElementMixin",
81374
+ "module": "link/common/block-link-common.js"
81132
81375
  }
81133
81376
  },
81134
81377
  {
81135
- "kind": "field",
81136
- "name": "form",
81378
+ "name": "size",
81137
81379
  "type": {
81138
- "text": "HTMLFormElement | null"
81380
+ "text": "SbbLinkSize"
81139
81381
  },
81140
- "privacy": "public",
81141
- "description": "The `<form>` element to associate the button with.",
81382
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
81383
+ "default": "'s' / 'xs' (lean)",
81384
+ "fieldName": "size",
81142
81385
  "inheritedFrom": {
81143
- "name": "SbbButtonBaseElement",
81144
- "module": "core/base-elements/button-base-element.js"
81145
- },
81146
- "attribute": "form"
81386
+ "name": "SbbLinkCommonElementMixin",
81387
+ "module": "link/common/link-common.js"
81388
+ }
81147
81389
  },
81148
81390
  {
81149
- "kind": "field",
81150
- "name": "_formId",
81391
+ "name": "icon-name",
81151
81392
  "type": {
81152
81393
  "text": "string"
81153
81394
  },
81154
- "privacy": "private",
81155
81395
  "default": "''",
81396
+ "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.",
81397
+ "fieldName": "iconName",
81156
81398
  "inheritedFrom": {
81157
- "name": "SbbButtonBaseElement",
81158
- "module": "core/base-elements/button-base-element.js"
81159
- }
81160
- },
81161
- {
81162
- "kind": "field",
81163
- "name": "_handleButtonClick",
81164
- "privacy": "private",
81165
- "inheritedFrom": {
81166
- "name": "SbbButtonBaseElement",
81167
- "module": "core/base-elements/button-base-element.js"
81168
- }
81169
- },
81170
- {
81171
- "kind": "method",
81172
- "name": "_requestSubmit",
81173
- "privacy": "private",
81174
- "return": {
81175
- "type": {
81176
- "text": "void"
81177
- }
81178
- },
81179
- "parameters": [
81180
- {
81181
- "name": "form",
81182
- "type": {
81183
- "text": "HTMLFormElement"
81184
- }
81185
- }
81186
- ],
81187
- "inheritedFrom": {
81188
- "name": "SbbButtonBaseElement",
81189
- "module": "core/base-elements/button-base-element.js"
81399
+ "name": "SbbIconNameMixin",
81400
+ "module": "icon/icon-name-mixin.js"
81190
81401
  }
81191
81402
  },
81192
81403
  {
81193
- "kind": "field",
81194
- "name": "_formKeyDown",
81195
- "privacy": "private",
81404
+ "name": "disabled-interactive",
81405
+ "type": {
81406
+ "text": "boolean"
81407
+ },
81408
+ "default": "false",
81409
+ "description": "Whether the button should be aria-disabled but stay interactive.",
81410
+ "fieldName": "disabledInteractive",
81196
81411
  "inheritedFrom": {
81197
- "name": "SbbButtonBaseElement",
81198
- "module": "core/base-elements/button-base-element.js"
81412
+ "name": "SbbDisabledInteractiveMixin",
81413
+ "module": "core/mixins/disabled-mixin.js"
81199
81414
  }
81200
81415
  },
81201
81416
  {
81202
- "kind": "field",
81203
- "name": "formAssociated",
81417
+ "name": "disabled",
81418
+ "description": "Whether the component is disabled.",
81419
+ "default": "false",
81204
81420
  "type": {
81205
81421
  "text": "boolean"
81206
81422
  },
81207
- "privacy": "public",
81208
- "static": true,
81209
- "default": "true",
81423
+ "fieldName": "disabled",
81210
81424
  "inheritedFrom": {
81211
- "name": "SbbFormAssociatedMixin",
81212
- "module": "core/mixins/form-associated-mixin.js"
81425
+ "name": "SbbDisabledMixin",
81426
+ "module": "core/mixins/disabled-mixin.js"
81213
81427
  }
81214
81428
  },
81215
81429
  {
81216
- "kind": "field",
81217
- "name": "name",
81218
- "privacy": "public",
81219
- "description": "Name of the form element. Will be read from name attribute.",
81430
+ "name": "value",
81220
81431
  "type": {
81221
81432
  "text": "string"
81222
81433
  },
81223
- "attribute": "name",
81434
+ "default": "''",
81435
+ "description": "Value of the form element.",
81436
+ "fieldName": "value",
81224
81437
  "inheritedFrom": {
81225
- "name": "SbbFormAssociatedMixin",
81226
- "module": "core/mixins/form-associated-mixin.js"
81438
+ "name": "SbbButtonBaseElement",
81439
+ "module": "core/base-elements/button-base-element.js"
81227
81440
  }
81228
81441
  },
81229
81442
  {
81230
- "kind": "field",
81231
- "name": "validity",
81443
+ "name": "type",
81444
+ "description": "The type attribute to use for the button.",
81445
+ "default": "'button'",
81232
81446
  "type": {
81233
- "text": "ValidityState"
81447
+ "text": "SbbButtonType"
81234
81448
  },
81235
- "privacy": "public",
81236
- "description": "Returns the ValidityState object for this element.",
81237
- "readonly": true,
81449
+ "fieldName": "type",
81238
81450
  "inheritedFrom": {
81239
- "name": "SbbFormAssociatedMixin",
81240
- "module": "core/mixins/form-associated-mixin.js"
81451
+ "name": "SbbButtonBaseElement",
81452
+ "module": "core/base-elements/button-base-element.js"
81241
81453
  }
81242
81454
  },
81243
81455
  {
81244
- "kind": "field",
81245
- "name": "validationMessage",
81456
+ "name": "form",
81457
+ "description": "The `<form>` element to associate the button with.",
81246
81458
  "type": {
81247
- "text": "string"
81459
+ "text": "HTMLFormElement | null"
81248
81460
  },
81249
- "privacy": "public",
81250
- "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.",
81251
- "readonly": true,
81461
+ "fieldName": "form",
81252
81462
  "inheritedFrom": {
81253
- "name": "SbbFormAssociatedMixin",
81254
- "module": "core/mixins/form-associated-mixin.js"
81463
+ "name": "SbbButtonBaseElement",
81464
+ "module": "core/base-elements/button-base-element.js"
81255
81465
  }
81256
81466
  },
81257
81467
  {
81258
- "kind": "field",
81259
- "name": "willValidate",
81468
+ "name": "name",
81469
+ "description": "Name of the form element. Will be read from name attribute.",
81260
81470
  "type": {
81261
- "text": "boolean"
81471
+ "text": "string"
81262
81472
  },
81263
- "privacy": "public",
81264
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
81265
- "readonly": true,
81473
+ "fieldName": "name",
81266
81474
  "inheritedFrom": {
81267
81475
  "name": "SbbFormAssociatedMixin",
81268
81476
  "module": "core/mixins/form-associated-mixin.js"
81269
81477
  }
81270
- },
81478
+ }
81479
+ ],
81480
+ "members": [
81271
81481
  {
81272
81482
  "kind": "field",
81273
- "name": "_validityStates",
81274
- "privacy": "private",
81275
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
81483
+ "name": "styles",
81484
+ "type": {
81485
+ "text": "CSSResultGroup"
81486
+ },
81487
+ "privacy": "public",
81488
+ "static": true,
81489
+ "default": "[boxSizingStyles, style, blockStyle]",
81276
81490
  "inheritedFrom": {
81277
- "name": "SbbFormAssociatedMixin",
81278
- "module": "core/mixins/form-associated-mixin.js"
81491
+ "name": "SbbLinkCommonElementMixin",
81492
+ "module": "link/common/link-common.js"
81279
81493
  }
81280
81494
  },
81281
81495
  {
81282
81496
  "kind": "field",
81283
- "name": "formDisabled",
81497
+ "name": "iconPlacement",
81284
81498
  "type": {
81285
- "text": "boolean"
81499
+ "text": "SbbIconPlacement"
81286
81500
  },
81287
- "privacy": "protected",
81288
- "default": "false",
81289
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
81501
+ "privacy": "public",
81502
+ "default": "'start'",
81503
+ "description": "Moves the icon to the end of the component if set to true.",
81504
+ "attribute": "icon-placement",
81505
+ "reflects": true,
81290
81506
  "inheritedFrom": {
81291
- "name": "SbbFormAssociatedMixin",
81292
- "module": "core/mixins/form-associated-mixin.js"
81507
+ "name": "SbbBlockLinkCommonElementMixin",
81508
+ "module": "link/common/block-link-common.js"
81293
81509
  }
81294
81510
  },
81295
81511
  {
81296
81512
  "kind": "method",
81297
- "name": "checkValidity",
81298
- "privacy": "public",
81513
+ "name": "renderTemplate",
81514
+ "privacy": "protected",
81299
81515
  "return": {
81300
81516
  "type": {
81301
- "text": "boolean"
81517
+ "text": "TemplateResult"
81302
81518
  }
81303
81519
  },
81304
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
81520
+ "description": "Override this method to render the component template.",
81305
81521
  "inheritedFrom": {
81306
- "name": "SbbFormAssociatedMixin",
81307
- "module": "core/mixins/form-associated-mixin.js"
81522
+ "name": "SbbActionBaseElement",
81523
+ "module": "core/base-elements/action-base-element.js"
81308
81524
  }
81309
81525
  },
81310
81526
  {
81311
- "kind": "method",
81312
- "name": "reportValidity",
81527
+ "kind": "field",
81528
+ "name": "size",
81529
+ "type": {
81530
+ "text": "SbbLinkSize"
81531
+ },
81313
81532
  "privacy": "public",
81314
- "return": {
81315
- "type": {
81316
- "text": "boolean"
81317
- }
81533
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
81534
+ "default": "'s' / 'xs' (lean)",
81535
+ "attribute": "size",
81536
+ "reflects": true,
81537
+ "inheritedFrom": {
81538
+ "name": "SbbLinkCommonElementMixin",
81539
+ "module": "link/common/link-common.js"
81540
+ }
81541
+ },
81542
+ {
81543
+ "kind": "field",
81544
+ "name": "iconName",
81545
+ "type": {
81546
+ "text": "string"
81318
81547
  },
81319
- "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.",
81548
+ "privacy": "public",
81549
+ "default": "''",
81550
+ "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.",
81551
+ "attribute": "icon-name",
81320
81552
  "inheritedFrom": {
81321
- "name": "SbbFormAssociatedMixin",
81322
- "module": "core/mixins/form-associated-mixin.js"
81553
+ "name": "SbbIconNameMixin",
81554
+ "module": "icon/icon-name-mixin.js"
81323
81555
  }
81324
81556
  },
81325
81557
  {
81326
81558
  "kind": "method",
81327
- "name": "setCustomValidity",
81328
- "privacy": "public",
81559
+ "name": "renderIconSlot",
81560
+ "privacy": "protected",
81329
81561
  "return": {
81330
81562
  "type": {
81331
- "text": "void"
81563
+ "text": "TemplateResult"
81332
81564
  }
81333
81565
  },
81334
81566
  "parameters": [
81335
81567
  {
81336
- "name": "message",
81568
+ "name": "classname",
81569
+ "optional": true,
81337
81570
  "type": {
81338
81571
  "text": "string"
81339
81572
  }
81340
81573
  }
81341
81574
  ],
81342
- "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.",
81343
- "inheritedFrom": {
81344
- "name": "SbbFormAssociatedMixin",
81345
- "module": "core/mixins/form-associated-mixin.js"
81346
- }
81347
- },
81348
- {
81349
- "kind": "method",
81350
- "name": "_hasDisabledAncestor",
81351
- "privacy": "private",
81352
- "return": {
81353
- "type": {
81354
- "text": "boolean"
81355
- }
81356
- },
81357
81575
  "inheritedFrom": {
81358
- "name": "SbbFormAssociatedMixin",
81359
- "module": "core/mixins/form-associated-mixin.js"
81576
+ "name": "SbbIconNameMixin",
81577
+ "module": "icon/icon-name-mixin.js"
81360
81578
  }
81361
81579
  },
81362
81580
  {
81363
81581
  "kind": "method",
81364
- "name": "updateFormValue",
81582
+ "name": "renderIconName",
81365
81583
  "privacy": "protected",
81366
81584
  "return": {
81367
81585
  "type": {
81368
- "text": "void"
81586
+ "text": "string"
81369
81587
  }
81370
81588
  },
81371
- "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",
81372
81589
  "inheritedFrom": {
81373
- "name": "SbbFormAssociatedMixin",
81374
- "module": "core/mixins/form-associated-mixin.js"
81590
+ "name": "SbbIconNameMixin",
81591
+ "module": "icon/icon-name-mixin.js"
81375
81592
  }
81376
81593
  },
81377
81594
  {
81378
81595
  "kind": "method",
81379
- "name": "formState",
81380
- "privacy": "protected",
81596
+ "name": "_renderIconName",
81597
+ "privacy": "private",
81381
81598
  "return": {
81382
81599
  "type": {
81383
- "text": "FormRestoreState"
81600
+ "text": "string"
81384
81601
  }
81385
81602
  },
81386
81603
  "inheritedFrom": {
81387
- "name": "SbbFormAssociatedMixin",
81388
- "module": "core/mixins/form-associated-mixin.js"
81604
+ "name": "SbbIconNameMixin",
81605
+ "module": "icon/icon-name-mixin.js"
81389
81606
  }
81390
81607
  },
81391
81608
  {
81392
- "kind": "method",
81393
- "name": "setValidityFlag",
81394
- "privacy": "protected",
81395
- "return": {
81396
- "type": {
81397
- "text": "void"
81398
- }
81609
+ "kind": "field",
81610
+ "name": "disabledInteractive",
81611
+ "type": {
81612
+ "text": "boolean"
81399
81613
  },
81400
- "parameters": [
81401
- {
81402
- "name": "flag",
81403
- "type": {
81404
- "text": "T"
81405
- }
81406
- },
81407
- {
81408
- "name": "message",
81409
- "type": {
81410
- "text": "string"
81411
- }
81412
- },
81413
- {
81414
- "name": "flagValue",
81415
- "optional": true,
81416
- "type": {
81417
- "text": "ValidityStateFlags[T]"
81418
- }
81419
- }
81420
- ],
81421
- "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).",
81614
+ "privacy": "public",
81615
+ "default": "false",
81616
+ "description": "Whether the button should be aria-disabled but stay interactive.",
81617
+ "attribute": "disabled-interactive",
81618
+ "reflects": true,
81422
81619
  "inheritedFrom": {
81423
- "name": "SbbFormAssociatedMixin",
81424
- "module": "core/mixins/form-associated-mixin.js"
81620
+ "name": "SbbDisabledInteractiveMixin",
81621
+ "module": "core/mixins/disabled-mixin.js"
81425
81622
  }
81426
81623
  },
81427
81624
  {
81428
- "kind": "method",
81429
- "name": "removeValidityFlag",
81430
- "privacy": "protected",
81431
- "return": {
81432
- "type": {
81433
- "text": "void"
81434
- }
81625
+ "kind": "field",
81626
+ "name": "disabled",
81627
+ "privacy": "public",
81628
+ "description": "Whether the component is disabled.",
81629
+ "default": "false",
81630
+ "type": {
81631
+ "text": "boolean"
81435
81632
  },
81436
- "parameters": [
81437
- {
81438
- "name": "flag",
81439
- "type": {
81440
- "text": "T"
81441
- }
81442
- }
81443
- ],
81444
- "description": "Removes the validity state flag entry and updates validity state.",
81633
+ "attribute": "disabled",
81634
+ "reflects": true,
81445
81635
  "inheritedFrom": {
81446
- "name": "SbbFormAssociatedMixin",
81447
- "module": "core/mixins/form-associated-mixin.js"
81636
+ "name": "SbbDisabledMixin",
81637
+ "module": "core/mixins/disabled-mixin.js"
81448
81638
  }
81449
81639
  },
81450
81640
  {
81451
- "kind": "method",
81452
- "name": "validate",
81453
- "privacy": "protected",
81454
- "return": {
81455
- "type": {
81456
- "text": "void"
81457
- }
81641
+ "kind": "field",
81642
+ "name": "#disabled",
81643
+ "privacy": "private",
81644
+ "type": {
81645
+ "text": "boolean"
81458
81646
  },
81459
- "description": "To be called whenever the current element needs to be validated.",
81647
+ "default": "false",
81460
81648
  "inheritedFrom": {
81461
- "name": "SbbFormAssociatedMixin",
81462
- "module": "core/mixins/form-associated-mixin.js"
81649
+ "name": "SbbDisabledMixin",
81650
+ "module": "core/mixins/disabled-mixin.js"
81463
81651
  }
81464
81652
  },
81465
81653
  {
81466
81654
  "kind": "method",
81467
- "name": "shouldValidate",
81655
+ "name": "isDisabledExternally",
81468
81656
  "privacy": "protected",
81469
81657
  "return": {
81470
81658
  "type": {
81471
81659
  "text": "boolean"
81472
81660
  }
81473
81661
  },
81474
- "parameters": [
81475
- {
81476
- "name": "name",
81477
- "type": {
81478
- "text": "PropertyKey | undefined"
81479
- }
81480
- }
81481
- ],
81482
- "description": "Whether validation should be run on a property change with the given name.",
81662
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
81483
81663
  "inheritedFrom": {
81484
- "name": "SbbFormAssociatedMixin",
81485
- "module": "core/mixins/form-associated-mixin.js"
81664
+ "name": "SbbDisabledMixin",
81665
+ "module": "core/mixins/disabled-mixin.js"
81486
81666
  }
81487
81667
  },
81488
81668
  {
81489
- "kind": "method",
81490
- "name": "_setInternalValidity",
81491
- "privacy": "private",
81492
- "return": {
81493
- "type": {
81494
- "text": "void"
81495
- }
81669
+ "kind": "field",
81670
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
81671
+ "type": {
81672
+ "text": "array"
81496
81673
  },
81674
+ "privacy": "private",
81675
+ "readonly": true,
81676
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
81497
81677
  "inheritedFrom": {
81498
- "name": "SbbFormAssociatedMixin",
81499
- "module": "core/mixins/form-associated-mixin.js"
81678
+ "name": "SbbButtonBaseElement",
81679
+ "module": "core/base-elements/button-base-element.js"
81500
81680
  }
81501
81681
  },
81502
81682
  {
81503
81683
  "kind": "field",
81504
- "name": "role",
81684
+ "name": "value",
81505
81685
  "type": {
81506
- "text": "ElementInternals['role']"
81686
+ "text": "string"
81507
81687
  },
81508
81688
  "privacy": "public",
81509
- "static": true,
81510
- "readonly": true,
81511
- "default": "'button'",
81512
81689
  "inheritedFrom": {
81513
- "name": "SbbButtonLikeBaseElement",
81690
+ "name": "SbbButtonBaseElement",
81514
81691
  "module": "core/base-elements/button-base-element.js"
81515
- }
81692
+ },
81693
+ "default": "''",
81694
+ "description": "Value of the form element.",
81695
+ "attribute": "value"
81516
81696
  },
81517
81697
  {
81518
81698
  "kind": "field",
81519
- "name": "_preventScrollOnSpaceKeydown",
81520
- "privacy": "private",
81521
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
81522
- "parameters": [
81523
- {
81524
- "description": "The origin event.",
81525
- "name": "event"
81526
- }
81527
- ],
81699
+ "name": "type",
81700
+ "privacy": "public",
81701
+ "description": "The type attribute to use for the button.",
81702
+ "default": "'button'",
81703
+ "type": {
81704
+ "text": "SbbButtonType"
81705
+ },
81706
+ "attribute": "type",
81528
81707
  "inheritedFrom": {
81529
- "name": "SbbButtonLikeBaseElement",
81708
+ "name": "SbbButtonBaseElement",
81530
81709
  "module": "core/base-elements/button-base-element.js"
81531
81710
  }
81532
81711
  },
81533
81712
  {
81534
81713
  "kind": "field",
81535
- "name": "_removeActiveMarker",
81536
- "privacy": "private",
81714
+ "name": "form",
81715
+ "type": {
81716
+ "text": "HTMLFormElement | null"
81717
+ },
81718
+ "privacy": "public",
81719
+ "description": "The `<form>` element to associate the button with.",
81537
81720
  "inheritedFrom": {
81538
- "name": "SbbButtonLikeBaseElement",
81721
+ "name": "SbbButtonBaseElement",
81539
81722
  "module": "core/base-elements/button-base-element.js"
81540
- }
81723
+ },
81724
+ "attribute": "form"
81541
81725
  },
81542
81726
  {
81543
81727
  "kind": "field",
81544
- "name": "_dispatchClickEventOnSpaceKeyup",
81728
+ "name": "_formId",
81729
+ "type": {
81730
+ "text": "string"
81731
+ },
81545
81732
  "privacy": "private",
81546
- "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.",
81547
- "parameters": [
81548
- {
81549
- "description": "The origin event.",
81550
- "name": "event"
81551
- }
81552
- ],
81733
+ "default": "''",
81553
81734
  "inheritedFrom": {
81554
- "name": "SbbButtonLikeBaseElement",
81735
+ "name": "SbbButtonBaseElement",
81555
81736
  "module": "core/base-elements/button-base-element.js"
81556
81737
  }
81557
81738
  },
81558
81739
  {
81559
81740
  "kind": "field",
81560
- "name": "_dispatchClickEvent",
81741
+ "name": "_handleButtonClick",
81561
81742
  "privacy": "private",
81562
81743
  "inheritedFrom": {
81563
- "name": "SbbButtonLikeBaseElement",
81744
+ "name": "SbbButtonBaseElement",
81564
81745
  "module": "core/base-elements/button-base-element.js"
81565
81746
  }
81566
81747
  },
81567
81748
  {
81568
81749
  "kind": "method",
81569
- "name": "toggleState",
81570
- "privacy": "protected",
81750
+ "name": "_requestSubmit",
81751
+ "privacy": "private",
81571
81752
  "return": {
81572
81753
  "type": {
81573
81754
  "text": "void"
@@ -81575,571 +81756,390 @@
81575
81756
  },
81576
81757
  "parameters": [
81577
81758
  {
81578
- "name": "value",
81579
- "type": {
81580
- "text": "string"
81581
- }
81582
- },
81583
- {
81584
- "name": "force",
81585
- "optional": true,
81759
+ "name": "form",
81586
81760
  "type": {
81587
- "text": "boolean"
81761
+ "text": "HTMLFormElement"
81588
81762
  }
81589
81763
  }
81590
81764
  ],
81591
81765
  "inheritedFrom": {
81592
- "name": "SbbActionBaseElement",
81593
- "module": "core/base-elements/action-base-element.js"
81594
- }
81595
- },
81596
- {
81597
- "kind": "field",
81598
- "name": "maybeDisabled",
81599
- "type": {
81600
- "text": "boolean | undefined"
81601
- },
81602
- "privacy": "protected",
81603
- "readonly": true,
81604
- "inheritedFrom": {
81605
- "name": "SbbActionBaseElement",
81606
- "module": "core/base-elements/action-base-element.js"
81607
- }
81608
- },
81609
- {
81610
- "kind": "field",
81611
- "name": "maybeDisabledInteractive",
81612
- "type": {
81613
- "text": "boolean | undefined"
81614
- },
81615
- "privacy": "protected",
81616
- "readonly": true,
81617
- "inheritedFrom": {
81618
- "name": "SbbActionBaseElement",
81619
- "module": "core/base-elements/action-base-element.js"
81620
- }
81621
- },
81622
- {
81623
- "kind": "method",
81624
- "name": "setupBaseEventHandlers",
81625
- "privacy": "protected",
81626
- "return": {
81627
- "type": {
81628
- "text": "void"
81629
- }
81630
- },
81631
- "inheritedFrom": {
81632
- "name": "SbbActionBaseElement",
81633
- "module": "core/base-elements/action-base-element.js"
81766
+ "name": "SbbButtonBaseElement",
81767
+ "module": "core/base-elements/button-base-element.js"
81634
81768
  }
81635
- }
81636
- ]
81637
- }
81638
- ],
81639
- "exports": [
81640
- {
81641
- "kind": "js",
81642
- "name": "SbbBlockLinkButtonElement",
81643
- "declaration": {
81644
- "name": "SbbBlockLinkButtonElement",
81645
- "module": "link/block-link-button/block-link-button.component.js"
81646
- }
81647
- },
81648
- {
81649
- "kind": "custom-element-definition",
81650
- "name": "sbb-block-link-button",
81651
- "declaration": {
81652
- "name": "SbbBlockLinkButtonElement",
81653
- "module": "link/block-link-button/block-link-button.component.js"
81654
- }
81655
- }
81656
- ]
81657
- },
81658
- {
81659
- "kind": "javascript-module",
81660
- "path": "link/block-link/block-link.component.js",
81661
- "declarations": [
81662
- {
81663
- "kind": "class",
81664
- "description": "It displays a link enhanced with the SBB Design.",
81665
- "name": "SbbBlockLinkElement",
81666
- "slots": [
81667
- {
81668
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
81669
- "name": ""
81670
- },
81671
- {
81672
- "description": "Slot used to display the icon, if one is set.",
81673
- "name": "icon"
81674
- }
81675
- ],
81676
- "mixins": [
81677
- {
81678
- "name": "SbbBlockLinkCommonElementMixin",
81679
- "module": "link/common.js"
81680
81769
  },
81681
81770
  {
81682
- "name": "SbbDisabledMixin",
81683
- "module": "core/mixins.js"
81684
- }
81685
- ],
81686
- "superclass": {
81687
- "name": "SbbLinkBaseElement",
81688
- "module": "core/base-elements.js"
81689
- },
81690
- "tagName": "sbb-block-link",
81691
- "customElement": true,
81692
- "attributes": [
81693
- {
81694
- "name": "icon-placement",
81695
- "type": {
81696
- "text": "SbbIconPlacement"
81697
- },
81698
- "default": "'start'",
81699
- "description": "Moves the icon to the end of the component if set to true.",
81700
- "fieldName": "iconPlacement",
81771
+ "kind": "field",
81772
+ "name": "_formKeyDown",
81773
+ "privacy": "private",
81701
81774
  "inheritedFrom": {
81702
- "name": "SbbBlockLinkCommonElementMixin",
81703
- "module": "link/common/block-link-common.js"
81775
+ "name": "SbbButtonBaseElement",
81776
+ "module": "core/base-elements/button-base-element.js"
81704
81777
  }
81705
81778
  },
81706
81779
  {
81707
- "name": "size",
81780
+ "kind": "field",
81781
+ "name": "formAssociated",
81708
81782
  "type": {
81709
- "text": "SbbLinkSize"
81783
+ "text": "boolean"
81710
81784
  },
81711
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
81712
- "default": "'s' / 'xs' (lean)",
81713
- "fieldName": "size",
81785
+ "privacy": "public",
81786
+ "static": true,
81787
+ "default": "true",
81714
81788
  "inheritedFrom": {
81715
- "name": "SbbLinkCommonElementMixin",
81716
- "module": "link/common/link-common.js"
81789
+ "name": "SbbFormAssociatedMixin",
81790
+ "module": "core/mixins/form-associated-mixin.js"
81717
81791
  }
81718
81792
  },
81719
81793
  {
81720
- "name": "icon-name",
81794
+ "kind": "field",
81795
+ "name": "name",
81796
+ "privacy": "public",
81797
+ "description": "Name of the form element. Will be read from name attribute.",
81721
81798
  "type": {
81722
81799
  "text": "string"
81723
81800
  },
81724
- "default": "''",
81725
- "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.",
81726
- "fieldName": "iconName",
81801
+ "attribute": "name",
81727
81802
  "inheritedFrom": {
81728
- "name": "SbbIconNameMixin",
81729
- "module": "icon/icon-name-mixin.js"
81803
+ "name": "SbbFormAssociatedMixin",
81804
+ "module": "core/mixins/form-associated-mixin.js"
81730
81805
  }
81731
81806
  },
81732
81807
  {
81733
- "name": "disabled",
81734
- "description": "Whether the component is disabled.",
81735
- "default": "false",
81808
+ "kind": "field",
81809
+ "name": "validity",
81736
81810
  "type": {
81737
- "text": "boolean"
81811
+ "text": "ValidityState"
81738
81812
  },
81739
- "fieldName": "disabled",
81813
+ "privacy": "public",
81814
+ "description": "Returns the ValidityState object for this element.",
81815
+ "readonly": true,
81740
81816
  "inheritedFrom": {
81741
- "name": "SbbDisabledMixin",
81742
- "module": "core/mixins/disabled-mixin.js"
81817
+ "name": "SbbFormAssociatedMixin",
81818
+ "module": "core/mixins/form-associated-mixin.js"
81743
81819
  }
81744
81820
  },
81745
81821
  {
81746
- "name": "href",
81822
+ "kind": "field",
81823
+ "name": "validationMessage",
81747
81824
  "type": {
81748
81825
  "text": "string"
81749
81826
  },
81750
- "default": "''",
81751
- "description": "The href value you want to link to.",
81752
- "fieldName": "href",
81827
+ "privacy": "public",
81828
+ "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.",
81829
+ "readonly": true,
81753
81830
  "inheritedFrom": {
81754
- "name": "SbbLinkBaseElement",
81755
- "module": "core/base-elements/link-base-element.js"
81831
+ "name": "SbbFormAssociatedMixin",
81832
+ "module": "core/mixins/form-associated-mixin.js"
81756
81833
  }
81757
81834
  },
81758
81835
  {
81759
- "name": "target",
81836
+ "kind": "field",
81837
+ "name": "willValidate",
81760
81838
  "type": {
81761
- "text": "LinkTargetType | string"
81839
+ "text": "boolean"
81762
81840
  },
81763
- "default": "''",
81764
- "description": "Where to display the linked URL.",
81765
- "fieldName": "target",
81841
+ "privacy": "public",
81842
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
81843
+ "readonly": true,
81766
81844
  "inheritedFrom": {
81767
- "name": "SbbLinkBaseElement",
81768
- "module": "core/base-elements/link-base-element.js"
81845
+ "name": "SbbFormAssociatedMixin",
81846
+ "module": "core/mixins/form-associated-mixin.js"
81769
81847
  }
81770
81848
  },
81771
81849
  {
81772
- "name": "rel",
81773
- "type": {
81774
- "text": "string"
81775
- },
81776
- "default": "''",
81777
- "description": "The relationship of the linked URL as space-separated link types.",
81778
- "fieldName": "rel",
81850
+ "kind": "field",
81851
+ "name": "_validityStates",
81852
+ "privacy": "private",
81853
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
81779
81854
  "inheritedFrom": {
81780
- "name": "SbbLinkBaseElement",
81781
- "module": "core/base-elements/link-base-element.js"
81855
+ "name": "SbbFormAssociatedMixin",
81856
+ "module": "core/mixins/form-associated-mixin.js"
81782
81857
  }
81783
81858
  },
81784
81859
  {
81785
- "name": "download",
81860
+ "kind": "field",
81861
+ "name": "formDisabled",
81786
81862
  "type": {
81787
81863
  "text": "boolean"
81788
81864
  },
81865
+ "privacy": "protected",
81789
81866
  "default": "false",
81790
- "description": "Whether the browser will show the download dialog on click.",
81791
- "fieldName": "download",
81867
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
81792
81868
  "inheritedFrom": {
81793
- "name": "SbbLinkBaseElement",
81794
- "module": "core/base-elements/link-base-element.js"
81869
+ "name": "SbbFormAssociatedMixin",
81870
+ "module": "core/mixins/form-associated-mixin.js"
81795
81871
  }
81796
81872
  },
81797
81873
  {
81798
- "name": "accessibility-label",
81799
- "type": {
81800
- "text": "string"
81874
+ "kind": "method",
81875
+ "name": "checkValidity",
81876
+ "privacy": "public",
81877
+ "return": {
81878
+ "type": {
81879
+ "text": "boolean"
81880
+ }
81801
81881
  },
81802
- "default": "''",
81803
- "description": "This will be forwarded as aria-label to the inner anchor element.",
81804
- "fieldName": "accessibilityLabel",
81882
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
81805
81883
  "inheritedFrom": {
81806
- "name": "SbbLinkBaseElement",
81807
- "module": "core/base-elements/link-base-element.js"
81884
+ "name": "SbbFormAssociatedMixin",
81885
+ "module": "core/mixins/form-associated-mixin.js"
81808
81886
  }
81809
81887
  },
81810
81888
  {
81811
- "name": "accessibility-current",
81812
- "type": {
81813
- "text": "string"
81889
+ "kind": "method",
81890
+ "name": "reportValidity",
81891
+ "privacy": "public",
81892
+ "return": {
81893
+ "type": {
81894
+ "text": "boolean"
81895
+ }
81814
81896
  },
81815
- "default": "''",
81816
- "description": "This will be forwarded as aria-current to the inner anchor element.",
81817
- "fieldName": "accessibilityCurrent",
81897
+ "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.",
81818
81898
  "inheritedFrom": {
81819
- "name": "SbbLinkBaseElement",
81820
- "module": "core/base-elements/link-base-element.js"
81899
+ "name": "SbbFormAssociatedMixin",
81900
+ "module": "core/mixins/form-associated-mixin.js"
81821
81901
  }
81822
- }
81823
- ],
81824
- "members": [
81902
+ },
81825
81903
  {
81826
- "kind": "field",
81827
- "name": "styles",
81828
- "type": {
81829
- "text": "CSSResultGroup"
81830
- },
81904
+ "kind": "method",
81905
+ "name": "setCustomValidity",
81831
81906
  "privacy": "public",
81832
- "static": true,
81833
- "default": "[boxSizingStyles, style, blockStyle]",
81907
+ "return": {
81908
+ "type": {
81909
+ "text": "void"
81910
+ }
81911
+ },
81912
+ "parameters": [
81913
+ {
81914
+ "name": "message",
81915
+ "type": {
81916
+ "text": "string"
81917
+ }
81918
+ }
81919
+ ],
81920
+ "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.",
81834
81921
  "inheritedFrom": {
81835
- "name": "SbbLinkCommonElementMixin",
81836
- "module": "link/common/link-common.js"
81922
+ "name": "SbbFormAssociatedMixin",
81923
+ "module": "core/mixins/form-associated-mixin.js"
81837
81924
  }
81838
81925
  },
81839
81926
  {
81840
- "kind": "field",
81841
- "name": "iconPlacement",
81842
- "type": {
81843
- "text": "SbbIconPlacement"
81927
+ "kind": "method",
81928
+ "name": "_hasDisabledAncestor",
81929
+ "privacy": "private",
81930
+ "return": {
81931
+ "type": {
81932
+ "text": "boolean"
81933
+ }
81844
81934
  },
81845
- "privacy": "public",
81846
- "default": "'start'",
81847
- "description": "Moves the icon to the end of the component if set to true.",
81848
- "attribute": "icon-placement",
81849
- "reflects": true,
81850
81935
  "inheritedFrom": {
81851
- "name": "SbbBlockLinkCommonElementMixin",
81852
- "module": "link/common/block-link-common.js"
81936
+ "name": "SbbFormAssociatedMixin",
81937
+ "module": "core/mixins/form-associated-mixin.js"
81853
81938
  }
81854
81939
  },
81855
81940
  {
81856
81941
  "kind": "method",
81857
- "name": "renderTemplate",
81942
+ "name": "updateFormValue",
81858
81943
  "privacy": "protected",
81859
81944
  "return": {
81860
81945
  "type": {
81861
- "text": "TemplateResult"
81946
+ "text": "void"
81862
81947
  }
81863
81948
  },
81864
- "description": "Override this method to render the component template.",
81949
+ "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",
81865
81950
  "inheritedFrom": {
81866
- "name": "SbbActionBaseElement",
81867
- "module": "core/base-elements/action-base-element.js"
81951
+ "name": "SbbFormAssociatedMixin",
81952
+ "module": "core/mixins/form-associated-mixin.js"
81868
81953
  }
81869
81954
  },
81870
81955
  {
81871
- "kind": "field",
81872
- "name": "size",
81873
- "type": {
81874
- "text": "SbbLinkSize"
81956
+ "kind": "method",
81957
+ "name": "formState",
81958
+ "privacy": "protected",
81959
+ "return": {
81960
+ "type": {
81961
+ "text": "FormRestoreState"
81962
+ }
81875
81963
  },
81876
- "privacy": "public",
81877
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
81878
- "default": "'s' / 'xs' (lean)",
81879
- "attribute": "size",
81880
- "reflects": true,
81881
81964
  "inheritedFrom": {
81882
- "name": "SbbLinkCommonElementMixin",
81883
- "module": "link/common/link-common.js"
81965
+ "name": "SbbFormAssociatedMixin",
81966
+ "module": "core/mixins/form-associated-mixin.js"
81884
81967
  }
81885
81968
  },
81886
81969
  {
81887
- "kind": "field",
81888
- "name": "iconName",
81889
- "type": {
81890
- "text": "string"
81970
+ "kind": "method",
81971
+ "name": "setValidityFlag",
81972
+ "privacy": "protected",
81973
+ "return": {
81974
+ "type": {
81975
+ "text": "void"
81976
+ }
81891
81977
  },
81892
- "privacy": "public",
81893
- "default": "''",
81894
- "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.",
81895
- "attribute": "icon-name",
81978
+ "parameters": [
81979
+ {
81980
+ "name": "flag",
81981
+ "type": {
81982
+ "text": "T"
81983
+ }
81984
+ },
81985
+ {
81986
+ "name": "message",
81987
+ "type": {
81988
+ "text": "string"
81989
+ }
81990
+ },
81991
+ {
81992
+ "name": "flagValue",
81993
+ "optional": true,
81994
+ "type": {
81995
+ "text": "ValidityStateFlags[T]"
81996
+ }
81997
+ }
81998
+ ],
81999
+ "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).",
81896
82000
  "inheritedFrom": {
81897
- "name": "SbbIconNameMixin",
81898
- "module": "icon/icon-name-mixin.js"
82001
+ "name": "SbbFormAssociatedMixin",
82002
+ "module": "core/mixins/form-associated-mixin.js"
81899
82003
  }
81900
82004
  },
81901
82005
  {
81902
82006
  "kind": "method",
81903
- "name": "renderIconSlot",
82007
+ "name": "removeValidityFlag",
81904
82008
  "privacy": "protected",
81905
82009
  "return": {
81906
82010
  "type": {
81907
- "text": "TemplateResult"
82011
+ "text": "void"
81908
82012
  }
81909
82013
  },
81910
82014
  "parameters": [
81911
82015
  {
81912
- "name": "classname",
81913
- "optional": true,
82016
+ "name": "flag",
81914
82017
  "type": {
81915
- "text": "string"
82018
+ "text": "T"
81916
82019
  }
81917
82020
  }
81918
82021
  ],
82022
+ "description": "Removes the validity state flag entry and updates validity state.",
81919
82023
  "inheritedFrom": {
81920
- "name": "SbbIconNameMixin",
81921
- "module": "icon/icon-name-mixin.js"
82024
+ "name": "SbbFormAssociatedMixin",
82025
+ "module": "core/mixins/form-associated-mixin.js"
81922
82026
  }
81923
82027
  },
81924
82028
  {
81925
82029
  "kind": "method",
81926
- "name": "renderIconName",
82030
+ "name": "validate",
81927
82031
  "privacy": "protected",
81928
82032
  "return": {
81929
82033
  "type": {
81930
- "text": "string"
82034
+ "text": "void"
81931
82035
  }
81932
82036
  },
82037
+ "description": "To be called whenever the current element needs to be validated.",
81933
82038
  "inheritedFrom": {
81934
- "name": "SbbIconNameMixin",
81935
- "module": "icon/icon-name-mixin.js"
82039
+ "name": "SbbFormAssociatedMixin",
82040
+ "module": "core/mixins/form-associated-mixin.js"
81936
82041
  }
81937
82042
  },
81938
82043
  {
81939
82044
  "kind": "method",
81940
- "name": "_renderIconName",
81941
- "privacy": "private",
82045
+ "name": "shouldValidate",
82046
+ "privacy": "protected",
81942
82047
  "return": {
81943
82048
  "type": {
81944
- "text": "string"
82049
+ "text": "boolean"
81945
82050
  }
81946
82051
  },
82052
+ "parameters": [
82053
+ {
82054
+ "name": "name",
82055
+ "type": {
82056
+ "text": "PropertyKey | undefined"
82057
+ }
82058
+ }
82059
+ ],
82060
+ "description": "Whether validation should be run on a property change with the given name.",
81947
82061
  "inheritedFrom": {
81948
- "name": "SbbIconNameMixin",
81949
- "module": "icon/icon-name-mixin.js"
81950
- }
81951
- },
81952
- {
81953
- "kind": "field",
81954
- "name": "disabled",
81955
- "privacy": "public",
81956
- "description": "Whether the component is disabled.",
81957
- "default": "false",
81958
- "type": {
81959
- "text": "boolean"
81960
- },
81961
- "attribute": "disabled",
81962
- "reflects": true,
81963
- "inheritedFrom": {
81964
- "name": "SbbDisabledMixin",
81965
- "module": "core/mixins/disabled-mixin.js"
81966
- }
81967
- },
81968
- {
81969
- "kind": "field",
81970
- "name": "#disabled",
81971
- "privacy": "private",
81972
- "type": {
81973
- "text": "boolean"
81974
- },
81975
- "default": "false",
81976
- "inheritedFrom": {
81977
- "name": "SbbDisabledMixin",
81978
- "module": "core/mixins/disabled-mixin.js"
82062
+ "name": "SbbFormAssociatedMixin",
82063
+ "module": "core/mixins/form-associated-mixin.js"
81979
82064
  }
81980
82065
  },
81981
82066
  {
81982
82067
  "kind": "method",
81983
- "name": "isDisabledExternally",
81984
- "privacy": "protected",
82068
+ "name": "_setInternalValidity",
82069
+ "privacy": "private",
81985
82070
  "return": {
81986
82071
  "type": {
81987
- "text": "boolean"
82072
+ "text": "void"
81988
82073
  }
81989
82074
  },
81990
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
81991
- "inheritedFrom": {
81992
- "name": "SbbDisabledMixin",
81993
- "module": "core/mixins/disabled-mixin.js"
81994
- }
81995
- },
81996
- {
81997
- "kind": "field",
81998
- "name": "href",
81999
- "type": {
82000
- "text": "string"
82001
- },
82002
- "privacy": "public",
82003
- "default": "''",
82004
- "description": "The href value you want to link to.",
82005
- "attribute": "href",
82006
- "reflects": true,
82007
- "inheritedFrom": {
82008
- "name": "SbbLinkBaseElement",
82009
- "module": "core/base-elements/link-base-element.js"
82010
- }
82011
- },
82012
- {
82013
- "kind": "field",
82014
- "name": "target",
82015
- "type": {
82016
- "text": "LinkTargetType | string"
82017
- },
82018
- "privacy": "public",
82019
- "default": "''",
82020
- "description": "Where to display the linked URL.",
82021
- "attribute": "target",
82022
- "reflects": true,
82023
- "inheritedFrom": {
82024
- "name": "SbbLinkBaseElement",
82025
- "module": "core/base-elements/link-base-element.js"
82026
- }
82027
- },
82028
- {
82029
- "kind": "field",
82030
- "name": "rel",
82031
- "type": {
82032
- "text": "string"
82033
- },
82034
- "privacy": "public",
82035
- "default": "''",
82036
- "description": "The relationship of the linked URL as space-separated link types.",
82037
- "attribute": "rel",
82038
- "reflects": true,
82039
- "inheritedFrom": {
82040
- "name": "SbbLinkBaseElement",
82041
- "module": "core/base-elements/link-base-element.js"
82042
- }
82043
- },
82044
- {
82045
- "kind": "field",
82046
- "name": "download",
82047
- "type": {
82048
- "text": "boolean"
82049
- },
82050
- "privacy": "public",
82051
- "default": "false",
82052
- "description": "Whether the browser will show the download dialog on click.",
82053
- "attribute": "download",
82054
- "reflects": true,
82055
82075
  "inheritedFrom": {
82056
- "name": "SbbLinkBaseElement",
82057
- "module": "core/base-elements/link-base-element.js"
82076
+ "name": "SbbFormAssociatedMixin",
82077
+ "module": "core/mixins/form-associated-mixin.js"
82058
82078
  }
82059
82079
  },
82060
82080
  {
82061
82081
  "kind": "field",
82062
- "name": "accessibilityLabel",
82082
+ "name": "role",
82063
82083
  "type": {
82064
- "text": "string"
82084
+ "text": "ElementInternals['role']"
82065
82085
  },
82066
82086
  "privacy": "public",
82067
- "default": "''",
82068
- "description": "This will be forwarded as aria-label to the inner anchor element.",
82069
- "attribute": "accessibility-label",
82087
+ "static": true,
82088
+ "readonly": true,
82089
+ "default": "'button'",
82070
82090
  "inheritedFrom": {
82071
- "name": "SbbLinkBaseElement",
82072
- "module": "core/base-elements/link-base-element.js"
82091
+ "name": "SbbButtonLikeBaseElement",
82092
+ "module": "core/base-elements/button-base-element.js"
82073
82093
  }
82074
82094
  },
82075
82095
  {
82076
82096
  "kind": "field",
82077
- "name": "accessibilityCurrent",
82078
- "type": {
82079
- "text": "string"
82080
- },
82081
- "privacy": "public",
82082
- "default": "''",
82083
- "description": "This will be forwarded as aria-current to the inner anchor element.",
82084
- "attribute": "accessibility-current",
82097
+ "name": "_preventScrollOnSpaceKeydown",
82098
+ "privacy": "private",
82099
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
82100
+ "parameters": [
82101
+ {
82102
+ "description": "The origin event.",
82103
+ "name": "event"
82104
+ }
82105
+ ],
82085
82106
  "inheritedFrom": {
82086
- "name": "SbbLinkBaseElement",
82087
- "module": "core/base-elements/link-base-element.js"
82107
+ "name": "SbbButtonLikeBaseElement",
82108
+ "module": "core/base-elements/button-base-element.js"
82088
82109
  }
82089
82110
  },
82090
82111
  {
82091
82112
  "kind": "field",
82092
- "name": "language",
82093
- "privacy": "protected",
82094
- "default": "new SbbLanguageController(this)",
82113
+ "name": "_removeActiveMarker",
82114
+ "privacy": "private",
82095
82115
  "inheritedFrom": {
82096
- "name": "SbbLinkBaseElement",
82097
- "module": "core/base-elements/link-base-element.js"
82116
+ "name": "SbbButtonLikeBaseElement",
82117
+ "module": "core/base-elements/button-base-element.js"
82098
82118
  }
82099
82119
  },
82100
82120
  {
82101
82121
  "kind": "field",
82102
- "name": "anchorRole",
82103
- "type": {
82104
- "text": "string | null"
82105
- },
82106
- "privacy": "protected",
82107
- "readonly": true,
82108
- "default": "null",
82122
+ "name": "_dispatchClickEventOnSpaceKeyup",
82123
+ "privacy": "private",
82124
+ "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.",
82125
+ "parameters": [
82126
+ {
82127
+ "description": "The origin event.",
82128
+ "name": "event"
82129
+ }
82130
+ ],
82109
82131
  "inheritedFrom": {
82110
- "name": "SbbLinkBaseElement",
82111
- "module": "core/base-elements/link-base-element.js"
82132
+ "name": "SbbButtonLikeBaseElement",
82133
+ "module": "core/base-elements/button-base-element.js"
82112
82134
  }
82113
82135
  },
82114
82136
  {
82115
82137
  "kind": "field",
82116
- "name": "_evaluateRelAttribute",
82138
+ "name": "_dispatchClickEvent",
82117
82139
  "privacy": "private",
82118
82140
  "inheritedFrom": {
82119
- "name": "SbbLinkBaseElement",
82120
- "module": "core/base-elements/link-base-element.js"
82121
- }
82122
- },
82123
- {
82124
- "kind": "method",
82125
- "name": "renderLink",
82126
- "privacy": "protected",
82127
- "return": {
82128
- "type": {
82129
- "text": "TemplateResult"
82130
- }
82131
- },
82132
- "parameters": [
82133
- {
82134
- "name": "renderContent",
82135
- "type": {
82136
- "text": "TemplateResult"
82137
- }
82138
- }
82139
- ],
82140
- "inheritedFrom": {
82141
- "name": "SbbLinkBaseElement",
82142
- "module": "core/base-elements/link-base-element.js"
82141
+ "name": "SbbButtonLikeBaseElement",
82142
+ "module": "core/base-elements/button-base-element.js"
82143
82143
  }
82144
82144
  },
82145
82145
  {
@@ -82217,18 +82217,18 @@
82217
82217
  "exports": [
82218
82218
  {
82219
82219
  "kind": "js",
82220
- "name": "SbbBlockLinkElement",
82220
+ "name": "SbbBlockLinkButtonElement",
82221
82221
  "declaration": {
82222
- "name": "SbbBlockLinkElement",
82223
- "module": "link/block-link/block-link.component.js"
82222
+ "name": "SbbBlockLinkButtonElement",
82223
+ "module": "link/block-link-button/block-link-button.component.js"
82224
82224
  }
82225
82225
  },
82226
82226
  {
82227
82227
  "kind": "custom-element-definition",
82228
- "name": "sbb-block-link",
82228
+ "name": "sbb-block-link-button",
82229
82229
  "declaration": {
82230
- "name": "SbbBlockLinkElement",
82231
- "module": "link/block-link/block-link.component.js"
82230
+ "name": "SbbBlockLinkButtonElement",
82231
+ "module": "link/block-link-button/block-link-button.component.js"
82232
82232
  }
82233
82233
  }
82234
82234
  ]