@sbb-esta/lyne-elements-dev 4.7.0-dev.1773648656 → 4.7.0-dev.1773674938

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 +1504 -1504
  2. package/package.json +2 -2
@@ -96342,37 +96342,20 @@
96342
96342
  },
96343
96343
  {
96344
96344
  "kind": "javascript-module",
96345
- "path": "link/block-link-static/block-link-static.component.js",
96345
+ "path": "link/common/block-link-common.js",
96346
96346
  "declarations": [
96347
96347
  {
96348
96348
  "kind": "class",
96349
- "description": "It displays a static link enhanced with the SBB Design.",
96350
- "name": "SbbBlockLinkStaticElement",
96351
- "slots": [
96352
- {
96353
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
96354
- "name": ""
96355
- },
96356
- {
96357
- "description": "Slot used to display the icon, if one is set.",
96358
- "name": "icon"
96359
- }
96360
- ],
96349
+ "description": "",
96350
+ "name": "SbbBlockLinkCommonElementMixinType",
96361
96351
  "members": [
96362
96352
  {
96363
96353
  "kind": "field",
96364
- "name": "elementName",
96354
+ "name": "iconPlacement",
96365
96355
  "type": {
96366
- "text": "string"
96367
- },
96368
- "privacy": "public",
96369
- "static": true,
96370
- "readonly": true,
96371
- "inheritedFrom": {
96372
- "name": "SbbElement",
96373
- "module": "core/base-elements/element.js"
96356
+ "text": "SbbIconPlacement"
96374
96357
  },
96375
- "default": "'sbb-block-link-static'"
96358
+ "privacy": "public"
96376
96359
  },
96377
96360
  {
96378
96361
  "kind": "field",
@@ -96382,7 +96365,7 @@
96382
96365
  },
96383
96366
  "privacy": "public",
96384
96367
  "static": true,
96385
- "default": "[boxSizingStyles, style, blockStyle]",
96368
+ "default": "style",
96386
96369
  "inheritedFrom": {
96387
96370
  "name": "SbbLinkCommonElementMixin",
96388
96371
  "module": "link/common/link-common.js"
@@ -96390,18 +96373,18 @@
96390
96373
  },
96391
96374
  {
96392
96375
  "kind": "field",
96393
- "name": "iconPlacement",
96376
+ "name": "size",
96394
96377
  "type": {
96395
- "text": "SbbIconPlacement"
96378
+ "text": "SbbLinkSize"
96396
96379
  },
96397
96380
  "privacy": "public",
96398
- "default": "'start'",
96399
- "description": "Moves the icon to the end of the component if set to true.",
96400
- "attribute": "icon-placement",
96381
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
96382
+ "default": "'s' / 'xs' (lean)",
96383
+ "attribute": "size",
96401
96384
  "reflects": true,
96402
96385
  "inheritedFrom": {
96403
- "name": "SbbBlockLinkCommonElementMixin",
96404
- "module": "link/common/block-link-common.js"
96386
+ "name": "SbbLinkCommonElementMixin",
96387
+ "module": "link/common/link-common.js"
96405
96388
  }
96406
96389
  },
96407
96390
  {
@@ -96421,18 +96404,18 @@
96421
96404
  },
96422
96405
  {
96423
96406
  "kind": "field",
96424
- "name": "size",
96407
+ "name": "negative",
96425
96408
  "type": {
96426
- "text": "SbbLinkSize"
96409
+ "text": "boolean"
96427
96410
  },
96428
96411
  "privacy": "public",
96429
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
96430
- "default": "'s' / 'xs' (lean)",
96431
- "attribute": "size",
96412
+ "default": "false",
96413
+ "description": "Negative coloring variant flag.",
96414
+ "attribute": "negative",
96432
96415
  "reflects": true,
96433
96416
  "inheritedFrom": {
96434
- "name": "SbbLinkCommonElementMixin",
96435
- "module": "link/common/link-common.js"
96417
+ "name": "SbbNegativeMixin",
96418
+ "module": "core/mixins/negative-mixin.js"
96436
96419
  }
96437
96420
  },
96438
96421
  {
@@ -96501,50 +96484,6 @@
96501
96484
  "module": "icon/icon-name-mixin.js"
96502
96485
  }
96503
96486
  },
96504
- {
96505
- "kind": "field",
96506
- "name": "disabled",
96507
- "privacy": "public",
96508
- "description": "Whether the component is disabled.",
96509
- "default": "false",
96510
- "type": {
96511
- "text": "boolean"
96512
- },
96513
- "attribute": "disabled",
96514
- "reflects": true,
96515
- "inheritedFrom": {
96516
- "name": "SbbDisabledMixin",
96517
- "module": "core/mixins/disabled-mixin.js"
96518
- }
96519
- },
96520
- {
96521
- "kind": "field",
96522
- "name": "#disabled",
96523
- "privacy": "private",
96524
- "type": {
96525
- "text": "boolean"
96526
- },
96527
- "default": "false",
96528
- "inheritedFrom": {
96529
- "name": "SbbDisabledMixin",
96530
- "module": "core/mixins/disabled-mixin.js"
96531
- }
96532
- },
96533
- {
96534
- "kind": "method",
96535
- "name": "isDisabledExternally",
96536
- "privacy": "protected",
96537
- "return": {
96538
- "type": {
96539
- "text": "boolean"
96540
- }
96541
- },
96542
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
96543
- "inheritedFrom": {
96544
- "name": "SbbDisabledMixin",
96545
- "module": "core/mixins/disabled-mixin.js"
96546
- }
96547
- },
96548
96487
  {
96549
96488
  "kind": "field",
96550
96489
  "name": "maybeDisabled",
@@ -96678,6 +96617,20 @@
96678
96617
  "module": "core/base-elements/element.js"
96679
96618
  }
96680
96619
  },
96620
+ {
96621
+ "kind": "field",
96622
+ "name": "elementName",
96623
+ "type": {
96624
+ "text": "string"
96625
+ },
96626
+ "privacy": "public",
96627
+ "static": true,
96628
+ "readonly": true,
96629
+ "inheritedFrom": {
96630
+ "name": "SbbElement",
96631
+ "module": "core/base-elements/element.js"
96632
+ }
96633
+ },
96681
96634
  {
96682
96635
  "kind": "field",
96683
96636
  "name": "_controllers",
@@ -96693,34 +96646,19 @@
96693
96646
  ],
96694
96647
  "mixins": [
96695
96648
  {
96696
- "name": "SbbBlockLinkCommonElementMixin",
96697
- "module": "link/common.js"
96649
+ "name": "SbbLinkCommonElementMixin",
96650
+ "module": "link/common/link-common.js"
96698
96651
  },
96699
96652
  {
96700
- "name": "SbbDisabledMixin",
96701
- "module": "core/mixins.js"
96653
+ "name": "SbbIconNameMixin",
96654
+ "module": "icon.js"
96702
96655
  }
96703
96656
  ],
96704
96657
  "superclass": {
96705
96658
  "name": "SbbActionBaseElement",
96706
96659
  "module": "core/base-elements.js"
96707
96660
  },
96708
- "tagName": "sbb-block-link-static",
96709
- "customElement": true,
96710
96661
  "attributes": [
96711
- {
96712
- "name": "icon-placement",
96713
- "type": {
96714
- "text": "SbbIconPlacement"
96715
- },
96716
- "default": "'start'",
96717
- "description": "Moves the icon to the end of the component if set to true.",
96718
- "fieldName": "iconPlacement",
96719
- "inheritedFrom": {
96720
- "name": "SbbBlockLinkCommonElementMixin",
96721
- "module": "link/common/block-link-common.js"
96722
- }
96723
- },
96724
96662
  {
96725
96663
  "name": "size",
96726
96664
  "type": {
@@ -96734,6 +96672,19 @@
96734
96672
  "module": "link/common/link-common.js"
96735
96673
  }
96736
96674
  },
96675
+ {
96676
+ "name": "negative",
96677
+ "type": {
96678
+ "text": "boolean"
96679
+ },
96680
+ "default": "false",
96681
+ "description": "Negative coloring variant flag.",
96682
+ "fieldName": "negative",
96683
+ "inheritedFrom": {
96684
+ "name": "SbbNegativeMixin",
96685
+ "module": "core/mixins/negative-mixin.js"
96686
+ }
96687
+ },
96737
96688
  {
96738
96689
  "name": "icon-name",
96739
96690
  "type": {
@@ -96746,51 +96697,14 @@
96746
96697
  "name": "SbbIconNameMixin",
96747
96698
  "module": "icon/icon-name-mixin.js"
96748
96699
  }
96749
- },
96750
- {
96751
- "name": "disabled",
96752
- "description": "Whether the component is disabled.",
96753
- "default": "false",
96754
- "type": {
96755
- "text": "boolean"
96756
- },
96757
- "fieldName": "disabled",
96758
- "inheritedFrom": {
96759
- "name": "SbbDisabledMixin",
96760
- "module": "core/mixins/disabled-mixin.js"
96761
- }
96762
96700
  }
96763
96701
  ]
96764
- }
96765
- ],
96766
- "exports": [
96767
- {
96768
- "kind": "js",
96769
- "name": "SbbBlockLinkStaticElement",
96770
- "declaration": {
96771
- "name": "SbbBlockLinkStaticElement",
96772
- "module": "link/block-link-static/block-link-static.component.js"
96773
- }
96774
- }
96775
- ]
96776
- },
96777
- {
96778
- "kind": "javascript-module",
96779
- "path": "link/common/block-link-common.js",
96780
- "declarations": [
96702
+ },
96781
96703
  {
96782
- "kind": "class",
96704
+ "kind": "mixin",
96783
96705
  "description": "",
96784
- "name": "SbbBlockLinkCommonElementMixinType",
96706
+ "name": "SbbBlockLinkCommonElementMixin",
96785
96707
  "members": [
96786
- {
96787
- "kind": "field",
96788
- "name": "iconPlacement",
96789
- "type": {
96790
- "text": "SbbIconPlacement"
96791
- },
96792
- "privacy": "public"
96793
- },
96794
96708
  {
96795
96709
  "kind": "field",
96796
96710
  "name": "styles",
@@ -96799,7 +96713,7 @@
96799
96713
  },
96800
96714
  "privacy": "public",
96801
96715
  "static": true,
96802
- "default": "style",
96716
+ "default": "[boxSizingStyles, style, blockStyle]",
96803
96717
  "inheritedFrom": {
96804
96718
  "name": "SbbLinkCommonElementMixin",
96805
96719
  "module": "link/common/link-common.js"
@@ -96807,19 +96721,15 @@
96807
96721
  },
96808
96722
  {
96809
96723
  "kind": "field",
96810
- "name": "size",
96724
+ "name": "iconPlacement",
96811
96725
  "type": {
96812
- "text": "SbbLinkSize"
96726
+ "text": "SbbIconPlacement"
96813
96727
  },
96814
96728
  "privacy": "public",
96815
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
96816
- "default": "'s' / 'xs' (lean)",
96817
- "attribute": "size",
96818
- "reflects": true,
96819
- "inheritedFrom": {
96820
- "name": "SbbLinkCommonElementMixin",
96821
- "module": "link/common/link-common.js"
96822
- }
96729
+ "default": "'start'",
96730
+ "description": "Moves the icon to the end of the component if set to true.",
96731
+ "attribute": "icon-placement",
96732
+ "reflects": true
96823
96733
  },
96824
96734
  {
96825
96735
  "kind": "method",
@@ -96830,10 +96740,25 @@
96830
96740
  "text": "TemplateResult"
96831
96741
  }
96832
96742
  },
96833
- "description": "Override this method to render the component template.",
96834
96743
  "inheritedFrom": {
96835
- "name": "SbbActionBaseElement",
96836
- "module": "core/base-elements/action-base-element.js"
96744
+ "name": "SbbLinkCommonElementMixin",
96745
+ "module": "link/common/link-common.js"
96746
+ }
96747
+ },
96748
+ {
96749
+ "kind": "field",
96750
+ "name": "size",
96751
+ "type": {
96752
+ "text": "SbbLinkSize"
96753
+ },
96754
+ "privacy": "public",
96755
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
96756
+ "default": "'s' / 'xs' (lean)",
96757
+ "attribute": "size",
96758
+ "reflects": true,
96759
+ "inheritedFrom": {
96760
+ "name": "SbbLinkCommonElementMixin",
96761
+ "module": "link/common/link-common.js"
96837
96762
  }
96838
96763
  },
96839
96764
  {
@@ -96917,23 +96842,221 @@
96917
96842
  "name": "SbbIconNameMixin",
96918
96843
  "module": "icon/icon-name-mixin.js"
96919
96844
  }
96920
- },
96845
+ }
96846
+ ],
96847
+ "attributes": [
96921
96848
  {
96922
- "kind": "field",
96923
- "name": "maybeDisabled",
96849
+ "name": "icon-placement",
96924
96850
  "type": {
96925
- "text": "boolean | undefined"
96851
+ "text": "SbbIconPlacement"
96926
96852
  },
96927
- "privacy": "protected",
96928
- "readonly": true,
96929
- "inheritedFrom": {
96930
- "name": "SbbActionBaseElement",
96931
- "module": "core/base-elements/action-base-element.js"
96932
- }
96853
+ "default": "'start'",
96854
+ "description": "Moves the icon to the end of the component if set to true.",
96855
+ "fieldName": "iconPlacement"
96933
96856
  },
96934
96857
  {
96935
- "kind": "field",
96936
- "name": "maybeDisabledInteractive",
96858
+ "name": "size",
96859
+ "type": {
96860
+ "text": "SbbLinkSize"
96861
+ },
96862
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
96863
+ "default": "'s' / 'xs' (lean)",
96864
+ "fieldName": "size",
96865
+ "inheritedFrom": {
96866
+ "name": "SbbLinkCommonElementMixin",
96867
+ "module": "link/common/link-common.js"
96868
+ }
96869
+ },
96870
+ {
96871
+ "name": "negative",
96872
+ "type": {
96873
+ "text": "boolean"
96874
+ },
96875
+ "default": "false",
96876
+ "description": "Negative coloring variant flag.",
96877
+ "fieldName": "negative",
96878
+ "inheritedFrom": {
96879
+ "name": "SbbNegativeMixin",
96880
+ "module": "core/mixins/negative-mixin.js"
96881
+ }
96882
+ },
96883
+ {
96884
+ "name": "icon-name",
96885
+ "type": {
96886
+ "text": "string"
96887
+ },
96888
+ "default": "''",
96889
+ "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.",
96890
+ "fieldName": "iconName",
96891
+ "inheritedFrom": {
96892
+ "name": "SbbIconNameMixin",
96893
+ "module": "icon/icon-name-mixin.js"
96894
+ }
96895
+ }
96896
+ ],
96897
+ "mixins": [
96898
+ {
96899
+ "name": "SbbLinkCommonElementMixin",
96900
+ "module": "link/common/link-common.js"
96901
+ },
96902
+ {
96903
+ "name": "SbbIconNameMixin",
96904
+ "module": "icon.js"
96905
+ }
96906
+ ],
96907
+ "parameters": [
96908
+ {
96909
+ "name": "superClass",
96910
+ "type": {
96911
+ "text": "T"
96912
+ }
96913
+ }
96914
+ ]
96915
+ }
96916
+ ],
96917
+ "exports": [
96918
+ {
96919
+ "kind": "js",
96920
+ "name": "SbbBlockLinkCommonElementMixinType",
96921
+ "declaration": {
96922
+ "name": "SbbBlockLinkCommonElementMixinType",
96923
+ "module": "link/common/block-link-common.js"
96924
+ }
96925
+ },
96926
+ {
96927
+ "kind": "js",
96928
+ "name": "SbbBlockLinkCommonElementMixin",
96929
+ "declaration": {
96930
+ "name": "SbbBlockLinkCommonElementMixin",
96931
+ "module": "link/common/block-link-common.js"
96932
+ }
96933
+ }
96934
+ ]
96935
+ },
96936
+ {
96937
+ "kind": "javascript-module",
96938
+ "path": "link/common/inline-link-common.js",
96939
+ "declarations": [
96940
+ {
96941
+ "kind": "class",
96942
+ "description": "",
96943
+ "name": "SbbInlineLinkCommonElementMixinType",
96944
+ "mixins": [
96945
+ {
96946
+ "name": "SbbLinkCommonElementMixin",
96947
+ "module": "link/common/link-common.js"
96948
+ }
96949
+ ],
96950
+ "superclass": {
96951
+ "name": "SbbActionBaseElement",
96952
+ "module": "core/base-elements.js"
96953
+ },
96954
+ "attributes": [
96955
+ {
96956
+ "name": "size",
96957
+ "type": {
96958
+ "text": "SbbLinkSize"
96959
+ },
96960
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
96961
+ "default": "'s' / 'xs' (lean)",
96962
+ "fieldName": "size",
96963
+ "inheritedFrom": {
96964
+ "name": "SbbLinkCommonElementMixin",
96965
+ "module": "link/common/link-common.js"
96966
+ }
96967
+ },
96968
+ {
96969
+ "name": "negative",
96970
+ "type": {
96971
+ "text": "boolean"
96972
+ },
96973
+ "default": "false",
96974
+ "description": "Negative coloring variant flag.",
96975
+ "fieldName": "negative",
96976
+ "inheritedFrom": {
96977
+ "name": "SbbNegativeMixin",
96978
+ "module": "core/mixins/negative-mixin.js"
96979
+ }
96980
+ }
96981
+ ],
96982
+ "members": [
96983
+ {
96984
+ "kind": "field",
96985
+ "name": "styles",
96986
+ "type": {
96987
+ "text": "CSSResultGroup"
96988
+ },
96989
+ "privacy": "public",
96990
+ "static": true,
96991
+ "default": "style",
96992
+ "inheritedFrom": {
96993
+ "name": "SbbLinkCommonElementMixin",
96994
+ "module": "link/common/link-common.js"
96995
+ }
96996
+ },
96997
+ {
96998
+ "kind": "field",
96999
+ "name": "size",
97000
+ "type": {
97001
+ "text": "SbbLinkSize"
97002
+ },
97003
+ "privacy": "public",
97004
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97005
+ "default": "'s' / 'xs' (lean)",
97006
+ "attribute": "size",
97007
+ "reflects": true,
97008
+ "inheritedFrom": {
97009
+ "name": "SbbLinkCommonElementMixin",
97010
+ "module": "link/common/link-common.js"
97011
+ }
97012
+ },
97013
+ {
97014
+ "kind": "method",
97015
+ "name": "renderTemplate",
97016
+ "privacy": "protected",
97017
+ "return": {
97018
+ "type": {
97019
+ "text": "TemplateResult"
97020
+ }
97021
+ },
97022
+ "description": "Override this method to render the component template.",
97023
+ "inheritedFrom": {
97024
+ "name": "SbbActionBaseElement",
97025
+ "module": "core/base-elements/action-base-element.js"
97026
+ }
97027
+ },
97028
+ {
97029
+ "kind": "field",
97030
+ "name": "negative",
97031
+ "type": {
97032
+ "text": "boolean"
97033
+ },
97034
+ "privacy": "public",
97035
+ "default": "false",
97036
+ "description": "Negative coloring variant flag.",
97037
+ "attribute": "negative",
97038
+ "reflects": true,
97039
+ "inheritedFrom": {
97040
+ "name": "SbbNegativeMixin",
97041
+ "module": "core/mixins/negative-mixin.js"
97042
+ }
97043
+ },
97044
+ {
97045
+ "kind": "field",
97046
+ "name": "maybeDisabled",
97047
+ "type": {
97048
+ "text": "boolean | undefined"
97049
+ },
97050
+ "privacy": "protected",
97051
+ "readonly": true,
97052
+ "inheritedFrom": {
97053
+ "name": "SbbActionBaseElement",
97054
+ "module": "core/base-elements/action-base-element.js"
97055
+ }
97056
+ },
97057
+ {
97058
+ "kind": "field",
97059
+ "name": "maybeDisabledInteractive",
96937
97060
  "type": {
96938
97061
  "text": "boolean | undefined"
96939
97062
  },
@@ -97077,123 +97200,153 @@
97077
97200
  "module": "core/base-elements/element.js"
97078
97201
  }
97079
97202
  }
97080
- ],
97081
- "mixins": [
97203
+ ]
97204
+ },
97205
+ {
97206
+ "kind": "mixin",
97207
+ "description": "",
97208
+ "name": "SbbInlineLinkCommonElementMixin",
97209
+ "members": [
97082
97210
  {
97083
- "name": "SbbLinkCommonElementMixin",
97084
- "module": "link/common/link-common.js"
97211
+ "kind": "field",
97212
+ "name": "styles",
97213
+ "type": {
97214
+ "text": "CSSResultGroup"
97215
+ },
97216
+ "privacy": "public",
97217
+ "static": true,
97218
+ "default": "[boxSizingStyles, style, inlineStyle]",
97219
+ "inheritedFrom": {
97220
+ "name": "SbbLinkCommonElementMixin",
97221
+ "module": "link/common/link-common.js"
97222
+ }
97085
97223
  },
97086
97224
  {
97087
- "name": "SbbIconNameMixin",
97088
- "module": "icon.js"
97089
- }
97090
- ],
97091
- "superclass": {
97092
- "name": "SbbActionBaseElement",
97093
- "module": "core/base-elements.js"
97094
- },
97095
- "attributes": [
97096
- {
97225
+ "kind": "field",
97097
97226
  "name": "size",
97098
97227
  "type": {
97099
97228
  "text": "SbbLinkSize"
97100
97229
  },
97230
+ "privacy": "public",
97101
97231
  "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97102
97232
  "default": "'s' / 'xs' (lean)",
97103
- "fieldName": "size",
97233
+ "attribute": "size",
97234
+ "reflects": true,
97235
+ "inheritedFrom": {
97236
+ "name": "SbbLinkCommonElementMixin",
97237
+ "module": "link/common/link-common.js"
97238
+ }
97239
+ },
97240
+ {
97241
+ "kind": "method",
97242
+ "name": "renderTemplate",
97243
+ "privacy": "protected",
97244
+ "return": {
97245
+ "type": {
97246
+ "text": "TemplateResult"
97247
+ }
97248
+ },
97104
97249
  "inheritedFrom": {
97105
97250
  "name": "SbbLinkCommonElementMixin",
97106
97251
  "module": "link/common/link-common.js"
97107
97252
  }
97108
97253
  },
97109
97254
  {
97255
+ "kind": "field",
97110
97256
  "name": "negative",
97111
97257
  "type": {
97112
97258
  "text": "boolean"
97113
97259
  },
97260
+ "privacy": "public",
97114
97261
  "default": "false",
97115
97262
  "description": "Negative coloring variant flag.",
97116
- "fieldName": "negative",
97263
+ "attribute": "negative",
97264
+ "reflects": true,
97117
97265
  "inheritedFrom": {
97118
97266
  "name": "SbbNegativeMixin",
97119
97267
  "module": "core/mixins/negative-mixin.js"
97120
97268
  }
97121
- },
97269
+ }
97270
+ ],
97271
+ "mixins": [
97122
97272
  {
97123
- "name": "icon-name",
97273
+ "name": "SbbLinkCommonElementMixin",
97274
+ "module": "link/common/link-common.js"
97275
+ }
97276
+ ],
97277
+ "parameters": [
97278
+ {
97279
+ "name": "superClass",
97124
97280
  "type": {
97125
- "text": "string"
97126
- },
97127
- "default": "''",
97128
- "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.",
97129
- "fieldName": "iconName",
97130
- "inheritedFrom": {
97131
- "name": "SbbIconNameMixin",
97132
- "module": "icon/icon-name-mixin.js"
97281
+ "text": "T"
97133
97282
  }
97134
97283
  }
97135
- ]
97136
- },
97137
- {
97138
- "kind": "mixin",
97139
- "description": "",
97140
- "name": "SbbBlockLinkCommonElementMixin",
97141
- "members": [
97284
+ ],
97285
+ "attributes": [
97142
97286
  {
97143
- "kind": "field",
97144
- "name": "styles",
97287
+ "name": "size",
97145
97288
  "type": {
97146
- "text": "CSSResultGroup"
97289
+ "text": "SbbLinkSize"
97147
97290
  },
97148
- "privacy": "public",
97149
- "static": true,
97150
- "default": "[boxSizingStyles, style, blockStyle]",
97291
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97292
+ "default": "'s' / 'xs' (lean)",
97293
+ "fieldName": "size",
97151
97294
  "inheritedFrom": {
97152
97295
  "name": "SbbLinkCommonElementMixin",
97153
97296
  "module": "link/common/link-common.js"
97154
97297
  }
97155
97298
  },
97156
97299
  {
97157
- "kind": "field",
97158
- "name": "iconPlacement",
97300
+ "name": "negative",
97159
97301
  "type": {
97160
- "text": "SbbIconPlacement"
97161
- },
97162
- "privacy": "public",
97163
- "default": "'start'",
97164
- "description": "Moves the icon to the end of the component if set to true.",
97165
- "attribute": "icon-placement",
97166
- "reflects": true
97167
- },
97168
- {
97169
- "kind": "method",
97170
- "name": "renderTemplate",
97171
- "privacy": "protected",
97172
- "return": {
97173
- "type": {
97174
- "text": "TemplateResult"
97175
- }
97302
+ "text": "boolean"
97176
97303
  },
97304
+ "default": "false",
97305
+ "description": "Negative coloring variant flag.",
97306
+ "fieldName": "negative",
97177
97307
  "inheritedFrom": {
97178
- "name": "SbbLinkCommonElementMixin",
97179
- "module": "link/common/link-common.js"
97308
+ "name": "SbbNegativeMixin",
97309
+ "module": "core/mixins/negative-mixin.js"
97180
97310
  }
97181
- },
97311
+ }
97312
+ ]
97313
+ }
97314
+ ],
97315
+ "exports": [
97316
+ {
97317
+ "kind": "js",
97318
+ "name": "SbbInlineLinkCommonElementMixinType",
97319
+ "declaration": {
97320
+ "name": "SbbInlineLinkCommonElementMixinType",
97321
+ "module": "link/common/inline-link-common.js"
97322
+ }
97323
+ },
97324
+ {
97325
+ "kind": "js",
97326
+ "name": "SbbInlineLinkCommonElementMixin",
97327
+ "declaration": {
97328
+ "name": "SbbInlineLinkCommonElementMixin",
97329
+ "module": "link/common/inline-link-common.js"
97330
+ }
97331
+ }
97332
+ ]
97333
+ },
97334
+ {
97335
+ "kind": "javascript-module",
97336
+ "path": "link/common/link-common.js",
97337
+ "declarations": [
97338
+ {
97339
+ "kind": "class",
97340
+ "description": "",
97341
+ "name": "SbbLinkCommonElementMixinType",
97342
+ "members": [
97182
97343
  {
97183
97344
  "kind": "field",
97184
97345
  "name": "size",
97185
97346
  "type": {
97186
97347
  "text": "SbbLinkSize"
97187
97348
  },
97188
- "privacy": "public",
97189
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97190
- "default": "'s' / 'xs' (lean)",
97191
- "attribute": "size",
97192
- "reflects": true,
97193
- "inheritedFrom": {
97194
- "name": "SbbLinkCommonElementMixin",
97195
- "module": "link/common/link-common.js"
97196
- }
97349
+ "privacy": "public"
97197
97350
  },
97198
97351
  {
97199
97352
  "kind": "field",
@@ -97213,357 +97366,108 @@
97213
97366
  },
97214
97367
  {
97215
97368
  "kind": "field",
97216
- "name": "iconName",
97369
+ "name": "maybeDisabled",
97217
97370
  "type": {
97218
- "text": "string"
97371
+ "text": "boolean | undefined"
97219
97372
  },
97220
- "privacy": "public",
97221
- "default": "''",
97222
- "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.",
97223
- "attribute": "icon-name",
97373
+ "privacy": "protected",
97374
+ "readonly": true,
97224
97375
  "inheritedFrom": {
97225
- "name": "SbbIconNameMixin",
97226
- "module": "icon/icon-name-mixin.js"
97376
+ "name": "SbbActionBaseElement",
97377
+ "module": "core/base-elements/action-base-element.js"
97227
97378
  }
97228
97379
  },
97229
97380
  {
97230
- "kind": "method",
97231
- "name": "renderIconSlot",
97232
- "privacy": "protected",
97233
- "return": {
97234
- "type": {
97235
- "text": "TemplateResult"
97236
- }
97381
+ "kind": "field",
97382
+ "name": "maybeDisabledInteractive",
97383
+ "type": {
97384
+ "text": "boolean | undefined"
97237
97385
  },
97238
- "parameters": [
97239
- {
97240
- "name": "classname",
97241
- "optional": true,
97242
- "type": {
97243
- "text": "string"
97244
- }
97245
- }
97246
- ],
97386
+ "privacy": "protected",
97387
+ "readonly": true,
97247
97388
  "inheritedFrom": {
97248
- "name": "SbbIconNameMixin",
97249
- "module": "icon/icon-name-mixin.js"
97389
+ "name": "SbbActionBaseElement",
97390
+ "module": "core/base-elements/action-base-element.js"
97250
97391
  }
97251
97392
  },
97252
97393
  {
97253
97394
  "kind": "method",
97254
- "name": "renderIconName",
97395
+ "name": "setupBaseEventHandlers",
97255
97396
  "privacy": "protected",
97256
97397
  "return": {
97257
97398
  "type": {
97258
- "text": "string"
97399
+ "text": "void"
97259
97400
  }
97260
97401
  },
97261
97402
  "inheritedFrom": {
97262
- "name": "SbbIconNameMixin",
97263
- "module": "icon/icon-name-mixin.js"
97403
+ "name": "SbbActionBaseElement",
97404
+ "module": "core/base-elements/action-base-element.js"
97264
97405
  }
97265
97406
  },
97266
97407
  {
97267
97408
  "kind": "method",
97268
- "name": "_renderIconName",
97269
- "privacy": "private",
97409
+ "name": "renderTemplate",
97410
+ "privacy": "protected",
97270
97411
  "return": {
97271
97412
  "type": {
97272
- "text": "string"
97413
+ "text": "TemplateResult"
97273
97414
  }
97274
97415
  },
97416
+ "description": "Override this method to render the component template.",
97275
97417
  "inheritedFrom": {
97276
- "name": "SbbIconNameMixin",
97277
- "module": "icon/icon-name-mixin.js"
97418
+ "name": "SbbActionBaseElement",
97419
+ "module": "core/base-elements/action-base-element.js"
97278
97420
  }
97279
- }
97280
- ],
97281
- "attributes": [
97421
+ },
97282
97422
  {
97283
- "name": "icon-placement",
97423
+ "kind": "field",
97424
+ "name": "_hydrationRequired",
97284
97425
  "type": {
97285
- "text": "SbbIconPlacement"
97426
+ "text": "boolean"
97286
97427
  },
97287
- "default": "'start'",
97288
- "description": "Moves the icon to the end of the component if set to true.",
97289
- "fieldName": "iconPlacement"
97428
+ "privacy": "private",
97429
+ "default": "!!this.shadowRoot",
97430
+ "inheritedFrom": {
97431
+ "name": "SbbElement",
97432
+ "module": "core/base-elements/element.js"
97433
+ }
97290
97434
  },
97291
97435
  {
97292
- "name": "size",
97293
- "type": {
97294
- "text": "SbbLinkSize"
97295
- },
97296
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97297
- "default": "'s' / 'xs' (lean)",
97298
- "fieldName": "size",
97436
+ "kind": "field",
97437
+ "name": "_hydrationComplete",
97438
+ "privacy": "private",
97439
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
97299
97440
  "inheritedFrom": {
97300
- "name": "SbbLinkCommonElementMixin",
97301
- "module": "link/common/link-common.js"
97441
+ "name": "SbbElement",
97442
+ "module": "core/base-elements/element.js"
97302
97443
  }
97303
97444
  },
97304
97445
  {
97305
- "name": "negative",
97446
+ "kind": "field",
97447
+ "name": "_resolveHydration",
97306
97448
  "type": {
97307
- "text": "boolean"
97449
+ "text": "(hydrationRequired: boolean) => void"
97308
97450
  },
97309
- "default": "false",
97310
- "description": "Negative coloring variant flag.",
97311
- "fieldName": "negative",
97451
+ "privacy": "private",
97312
97452
  "inheritedFrom": {
97313
- "name": "SbbNegativeMixin",
97314
- "module": "core/mixins/negative-mixin.js"
97453
+ "name": "SbbElement",
97454
+ "module": "core/base-elements/element.js"
97315
97455
  }
97316
97456
  },
97317
97457
  {
97318
- "name": "icon-name",
97458
+ "kind": "field",
97459
+ "name": "hydrationRequired",
97319
97460
  "type": {
97320
- "text": "string"
97461
+ "text": "boolean"
97321
97462
  },
97322
- "default": "''",
97323
- "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.",
97324
- "fieldName": "iconName",
97463
+ "privacy": "protected",
97464
+ "description": "Returns whether hydration is required and not completed.",
97465
+ "readonly": true,
97325
97466
  "inheritedFrom": {
97326
- "name": "SbbIconNameMixin",
97327
- "module": "icon/icon-name-mixin.js"
97328
- }
97329
- }
97330
- ],
97331
- "mixins": [
97332
- {
97333
- "name": "SbbLinkCommonElementMixin",
97334
- "module": "link/common/link-common.js"
97335
- },
97336
- {
97337
- "name": "SbbIconNameMixin",
97338
- "module": "icon.js"
97339
- }
97340
- ],
97341
- "parameters": [
97342
- {
97343
- "name": "superClass",
97344
- "type": {
97345
- "text": "T"
97346
- }
97347
- }
97348
- ]
97349
- }
97350
- ],
97351
- "exports": [
97352
- {
97353
- "kind": "js",
97354
- "name": "SbbBlockLinkCommonElementMixinType",
97355
- "declaration": {
97356
- "name": "SbbBlockLinkCommonElementMixinType",
97357
- "module": "link/common/block-link-common.js"
97358
- }
97359
- },
97360
- {
97361
- "kind": "js",
97362
- "name": "SbbBlockLinkCommonElementMixin",
97363
- "declaration": {
97364
- "name": "SbbBlockLinkCommonElementMixin",
97365
- "module": "link/common/block-link-common.js"
97366
- }
97367
- }
97368
- ]
97369
- },
97370
- {
97371
- "kind": "javascript-module",
97372
- "path": "link/common/inline-link-common.js",
97373
- "declarations": [
97374
- {
97375
- "kind": "class",
97376
- "description": "",
97377
- "name": "SbbInlineLinkCommonElementMixinType",
97378
- "mixins": [
97379
- {
97380
- "name": "SbbLinkCommonElementMixin",
97381
- "module": "link/common/link-common.js"
97382
- }
97383
- ],
97384
- "superclass": {
97385
- "name": "SbbActionBaseElement",
97386
- "module": "core/base-elements.js"
97387
- },
97388
- "attributes": [
97389
- {
97390
- "name": "size",
97391
- "type": {
97392
- "text": "SbbLinkSize"
97393
- },
97394
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97395
- "default": "'s' / 'xs' (lean)",
97396
- "fieldName": "size",
97397
- "inheritedFrom": {
97398
- "name": "SbbLinkCommonElementMixin",
97399
- "module": "link/common/link-common.js"
97400
- }
97401
- },
97402
- {
97403
- "name": "negative",
97404
- "type": {
97405
- "text": "boolean"
97406
- },
97407
- "default": "false",
97408
- "description": "Negative coloring variant flag.",
97409
- "fieldName": "negative",
97410
- "inheritedFrom": {
97411
- "name": "SbbNegativeMixin",
97412
- "module": "core/mixins/negative-mixin.js"
97413
- }
97414
- }
97415
- ],
97416
- "members": [
97417
- {
97418
- "kind": "field",
97419
- "name": "styles",
97420
- "type": {
97421
- "text": "CSSResultGroup"
97422
- },
97423
- "privacy": "public",
97424
- "static": true,
97425
- "default": "style",
97426
- "inheritedFrom": {
97427
- "name": "SbbLinkCommonElementMixin",
97428
- "module": "link/common/link-common.js"
97429
- }
97430
- },
97431
- {
97432
- "kind": "field",
97433
- "name": "size",
97434
- "type": {
97435
- "text": "SbbLinkSize"
97436
- },
97437
- "privacy": "public",
97438
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97439
- "default": "'s' / 'xs' (lean)",
97440
- "attribute": "size",
97441
- "reflects": true,
97442
- "inheritedFrom": {
97443
- "name": "SbbLinkCommonElementMixin",
97444
- "module": "link/common/link-common.js"
97445
- }
97446
- },
97447
- {
97448
- "kind": "method",
97449
- "name": "renderTemplate",
97450
- "privacy": "protected",
97451
- "return": {
97452
- "type": {
97453
- "text": "TemplateResult"
97454
- }
97455
- },
97456
- "description": "Override this method to render the component template.",
97457
- "inheritedFrom": {
97458
- "name": "SbbActionBaseElement",
97459
- "module": "core/base-elements/action-base-element.js"
97460
- }
97461
- },
97462
- {
97463
- "kind": "field",
97464
- "name": "negative",
97465
- "type": {
97466
- "text": "boolean"
97467
- },
97468
- "privacy": "public",
97469
- "default": "false",
97470
- "description": "Negative coloring variant flag.",
97471
- "attribute": "negative",
97472
- "reflects": true,
97473
- "inheritedFrom": {
97474
- "name": "SbbNegativeMixin",
97475
- "module": "core/mixins/negative-mixin.js"
97476
- }
97477
- },
97478
- {
97479
- "kind": "field",
97480
- "name": "maybeDisabled",
97481
- "type": {
97482
- "text": "boolean | undefined"
97483
- },
97484
- "privacy": "protected",
97485
- "readonly": true,
97486
- "inheritedFrom": {
97487
- "name": "SbbActionBaseElement",
97488
- "module": "core/base-elements/action-base-element.js"
97489
- }
97490
- },
97491
- {
97492
- "kind": "field",
97493
- "name": "maybeDisabledInteractive",
97494
- "type": {
97495
- "text": "boolean | undefined"
97496
- },
97497
- "privacy": "protected",
97498
- "readonly": true,
97499
- "inheritedFrom": {
97500
- "name": "SbbActionBaseElement",
97501
- "module": "core/base-elements/action-base-element.js"
97502
- }
97503
- },
97504
- {
97505
- "kind": "method",
97506
- "name": "setupBaseEventHandlers",
97507
- "privacy": "protected",
97508
- "return": {
97509
- "type": {
97510
- "text": "void"
97511
- }
97512
- },
97513
- "inheritedFrom": {
97514
- "name": "SbbActionBaseElement",
97515
- "module": "core/base-elements/action-base-element.js"
97516
- }
97517
- },
97518
- {
97519
- "kind": "field",
97520
- "name": "_hydrationRequired",
97521
- "type": {
97522
- "text": "boolean"
97523
- },
97524
- "privacy": "private",
97525
- "default": "!!this.shadowRoot",
97526
- "inheritedFrom": {
97527
- "name": "SbbElement",
97528
- "module": "core/base-elements/element.js"
97529
- }
97530
- },
97531
- {
97532
- "kind": "field",
97533
- "name": "_hydrationComplete",
97534
- "privacy": "private",
97535
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
97536
- "inheritedFrom": {
97537
- "name": "SbbElement",
97538
- "module": "core/base-elements/element.js"
97539
- }
97540
- },
97541
- {
97542
- "kind": "field",
97543
- "name": "_resolveHydration",
97544
- "type": {
97545
- "text": "(hydrationRequired: boolean) => void"
97546
- },
97547
- "privacy": "private",
97548
- "inheritedFrom": {
97549
- "name": "SbbElement",
97550
- "module": "core/base-elements/element.js"
97551
- }
97552
- },
97553
- {
97554
- "kind": "field",
97555
- "name": "hydrationRequired",
97556
- "type": {
97557
- "text": "boolean"
97558
- },
97559
- "privacy": "protected",
97560
- "description": "Returns whether hydration is required and not completed.",
97561
- "readonly": true,
97562
- "inheritedFrom": {
97563
- "name": "SbbElement",
97564
- "module": "core/base-elements/element.js"
97565
- },
97566
- "default": "!!this.shadowRoot"
97467
+ "name": "SbbElement",
97468
+ "module": "core/base-elements/element.js"
97469
+ },
97470
+ "default": "!!this.shadowRoot"
97567
97471
  },
97568
97472
  {
97569
97473
  "kind": "method",
@@ -97634,12 +97538,37 @@
97634
97538
  "module": "core/base-elements/element.js"
97635
97539
  }
97636
97540
  }
97541
+ ],
97542
+ "mixins": [
97543
+ {
97544
+ "name": "SbbNegativeMixin",
97545
+ "module": "core/mixins.js"
97546
+ }
97547
+ ],
97548
+ "superclass": {
97549
+ "name": "SbbActionBaseElement",
97550
+ "module": "core/base-elements.js"
97551
+ },
97552
+ "attributes": [
97553
+ {
97554
+ "name": "negative",
97555
+ "type": {
97556
+ "text": "boolean"
97557
+ },
97558
+ "default": "false",
97559
+ "description": "Negative coloring variant flag.",
97560
+ "fieldName": "negative",
97561
+ "inheritedFrom": {
97562
+ "name": "SbbNegativeMixin",
97563
+ "module": "core/mixins/negative-mixin.js"
97564
+ }
97565
+ }
97637
97566
  ]
97638
97567
  },
97639
97568
  {
97640
97569
  "kind": "mixin",
97641
97570
  "description": "",
97642
- "name": "SbbInlineLinkCommonElementMixin",
97571
+ "name": "SbbLinkCommonElementMixin",
97643
97572
  "members": [
97644
97573
  {
97645
97574
  "kind": "field",
@@ -97649,11 +97578,7 @@
97649
97578
  },
97650
97579
  "privacy": "public",
97651
97580
  "static": true,
97652
- "default": "[boxSizingStyles, style, inlineStyle]",
97653
- "inheritedFrom": {
97654
- "name": "SbbLinkCommonElementMixin",
97655
- "module": "link/common/link-common.js"
97656
- }
97581
+ "default": "style"
97657
97582
  },
97658
97583
  {
97659
97584
  "kind": "field",
@@ -97665,11 +97590,7 @@
97665
97590
  "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97666
97591
  "default": "'s' / 'xs' (lean)",
97667
97592
  "attribute": "size",
97668
- "reflects": true,
97669
- "inheritedFrom": {
97670
- "name": "SbbLinkCommonElementMixin",
97671
- "module": "link/common/link-common.js"
97672
- }
97593
+ "reflects": true
97673
97594
  },
97674
97595
  {
97675
97596
  "kind": "method",
@@ -97679,10 +97600,6 @@
97679
97600
  "type": {
97680
97601
  "text": "TemplateResult"
97681
97602
  }
97682
- },
97683
- "inheritedFrom": {
97684
- "name": "SbbLinkCommonElementMixin",
97685
- "module": "link/common/link-common.js"
97686
97603
  }
97687
97604
  },
97688
97605
  {
@@ -97702,20 +97619,6 @@
97702
97619
  }
97703
97620
  }
97704
97621
  ],
97705
- "mixins": [
97706
- {
97707
- "name": "SbbLinkCommonElementMixin",
97708
- "module": "link/common/link-common.js"
97709
- }
97710
- ],
97711
- "parameters": [
97712
- {
97713
- "name": "superClass",
97714
- "type": {
97715
- "text": "T"
97716
- }
97717
- }
97718
- ],
97719
97622
  "attributes": [
97720
97623
  {
97721
97624
  "name": "size",
@@ -97724,11 +97627,7 @@
97724
97627
  },
97725
97628
  "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97726
97629
  "default": "'s' / 'xs' (lean)",
97727
- "fieldName": "size",
97728
- "inheritedFrom": {
97729
- "name": "SbbLinkCommonElementMixin",
97730
- "module": "link/common/link-common.js"
97731
- }
97630
+ "fieldName": "size"
97732
97631
  },
97733
97632
  {
97734
97633
  "name": "negative",
@@ -97743,69 +97642,116 @@
97743
97642
  "module": "core/mixins/negative-mixin.js"
97744
97643
  }
97745
97644
  }
97645
+ ],
97646
+ "mixins": [
97647
+ {
97648
+ "name": "SbbNegativeMixin",
97649
+ "module": "core/mixins.js"
97650
+ }
97651
+ ],
97652
+ "parameters": [
97653
+ {
97654
+ "name": "superClass",
97655
+ "type": {
97656
+ "text": "T"
97657
+ }
97658
+ }
97746
97659
  ]
97747
97660
  }
97748
97661
  ],
97749
97662
  "exports": [
97750
97663
  {
97751
97664
  "kind": "js",
97752
- "name": "SbbInlineLinkCommonElementMixinType",
97665
+ "name": "SbbLinkCommonElementMixinType",
97753
97666
  "declaration": {
97754
- "name": "SbbInlineLinkCommonElementMixinType",
97755
- "module": "link/common/inline-link-common.js"
97667
+ "name": "SbbLinkCommonElementMixinType",
97668
+ "module": "link/common/link-common.js"
97756
97669
  }
97757
97670
  },
97758
97671
  {
97759
97672
  "kind": "js",
97760
- "name": "SbbInlineLinkCommonElementMixin",
97673
+ "name": "SbbLinkCommonElementMixin",
97761
97674
  "declaration": {
97762
- "name": "SbbInlineLinkCommonElementMixin",
97763
- "module": "link/common/inline-link-common.js"
97675
+ "name": "SbbLinkCommonElementMixin",
97676
+ "module": "link/common/link-common.js"
97764
97677
  }
97765
97678
  }
97766
97679
  ]
97767
97680
  },
97768
97681
  {
97769
97682
  "kind": "javascript-module",
97770
- "path": "link/common/link-common.js",
97683
+ "path": "link/block-link-static/block-link-static.component.js",
97771
97684
  "declarations": [
97772
97685
  {
97773
97686
  "kind": "class",
97774
- "description": "",
97775
- "name": "SbbLinkCommonElementMixinType",
97687
+ "description": "It displays a static link enhanced with the SBB Design.",
97688
+ "name": "SbbBlockLinkStaticElement",
97689
+ "slots": [
97690
+ {
97691
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
97692
+ "name": ""
97693
+ },
97694
+ {
97695
+ "description": "Slot used to display the icon, if one is set.",
97696
+ "name": "icon"
97697
+ }
97698
+ ],
97776
97699
  "members": [
97777
97700
  {
97778
97701
  "kind": "field",
97779
- "name": "size",
97702
+ "name": "elementName",
97780
97703
  "type": {
97781
- "text": "SbbLinkSize"
97704
+ "text": "string"
97782
97705
  },
97783
- "privacy": "public"
97706
+ "privacy": "public",
97707
+ "static": true,
97708
+ "readonly": true,
97709
+ "inheritedFrom": {
97710
+ "name": "SbbElement",
97711
+ "module": "core/base-elements/element.js"
97712
+ },
97713
+ "default": "'sbb-block-link-static'"
97784
97714
  },
97785
97715
  {
97786
97716
  "kind": "field",
97787
- "name": "negative",
97717
+ "name": "styles",
97788
97718
  "type": {
97789
- "text": "boolean"
97719
+ "text": "CSSResultGroup"
97790
97720
  },
97791
97721
  "privacy": "public",
97792
- "default": "false",
97793
- "description": "Negative coloring variant flag.",
97794
- "attribute": "negative",
97795
- "reflects": true,
97722
+ "static": true,
97723
+ "default": "[boxSizingStyles, style, blockStyle]",
97796
97724
  "inheritedFrom": {
97797
- "name": "SbbNegativeMixin",
97798
- "module": "core/mixins/negative-mixin.js"
97725
+ "name": "SbbLinkCommonElementMixin",
97726
+ "module": "link/common/link-common.js"
97799
97727
  }
97800
97728
  },
97801
97729
  {
97802
97730
  "kind": "field",
97803
- "name": "maybeDisabled",
97731
+ "name": "iconPlacement",
97804
97732
  "type": {
97805
- "text": "boolean | undefined"
97733
+ "text": "SbbIconPlacement"
97806
97734
  },
97735
+ "privacy": "public",
97736
+ "default": "'start'",
97737
+ "description": "Moves the icon to the end of the component if set to true.",
97738
+ "attribute": "icon-placement",
97739
+ "reflects": true,
97740
+ "inheritedFrom": {
97741
+ "name": "SbbBlockLinkCommonElementMixin",
97742
+ "module": "link/common/block-link-common.js"
97743
+ }
97744
+ },
97745
+ {
97746
+ "kind": "method",
97747
+ "name": "renderTemplate",
97807
97748
  "privacy": "protected",
97808
- "readonly": true,
97749
+ "return": {
97750
+ "type": {
97751
+ "text": "TemplateResult"
97752
+ }
97753
+ },
97754
+ "description": "Override this method to render the component template.",
97809
97755
  "inheritedFrom": {
97810
97756
  "name": "SbbActionBaseElement",
97811
97757
  "module": "core/base-elements/action-base-element.js"
@@ -97813,109 +97759,233 @@
97813
97759
  },
97814
97760
  {
97815
97761
  "kind": "field",
97816
- "name": "maybeDisabledInteractive",
97762
+ "name": "size",
97817
97763
  "type": {
97818
- "text": "boolean | undefined"
97764
+ "text": "SbbLinkSize"
97819
97765
  },
97820
- "privacy": "protected",
97821
- "readonly": true,
97766
+ "privacy": "public",
97767
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
97768
+ "default": "'s' / 'xs' (lean)",
97769
+ "attribute": "size",
97770
+ "reflects": true,
97822
97771
  "inheritedFrom": {
97823
- "name": "SbbActionBaseElement",
97824
- "module": "core/base-elements/action-base-element.js"
97772
+ "name": "SbbLinkCommonElementMixin",
97773
+ "module": "link/common/link-common.js"
97774
+ }
97775
+ },
97776
+ {
97777
+ "kind": "field",
97778
+ "name": "iconName",
97779
+ "type": {
97780
+ "text": "string"
97781
+ },
97782
+ "privacy": "public",
97783
+ "default": "''",
97784
+ "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.",
97785
+ "attribute": "icon-name",
97786
+ "inheritedFrom": {
97787
+ "name": "SbbIconNameMixin",
97788
+ "module": "icon/icon-name-mixin.js"
97825
97789
  }
97826
97790
  },
97827
97791
  {
97828
97792
  "kind": "method",
97829
- "name": "setupBaseEventHandlers",
97793
+ "name": "renderIconSlot",
97830
97794
  "privacy": "protected",
97831
97795
  "return": {
97832
97796
  "type": {
97833
- "text": "void"
97797
+ "text": "TemplateResult"
97834
97798
  }
97835
97799
  },
97800
+ "parameters": [
97801
+ {
97802
+ "name": "classname",
97803
+ "optional": true,
97804
+ "type": {
97805
+ "text": "string"
97806
+ }
97807
+ }
97808
+ ],
97836
97809
  "inheritedFrom": {
97837
- "name": "SbbActionBaseElement",
97838
- "module": "core/base-elements/action-base-element.js"
97810
+ "name": "SbbIconNameMixin",
97811
+ "module": "icon/icon-name-mixin.js"
97839
97812
  }
97840
97813
  },
97841
97814
  {
97842
97815
  "kind": "method",
97843
- "name": "renderTemplate",
97816
+ "name": "renderIconName",
97844
97817
  "privacy": "protected",
97845
97818
  "return": {
97846
97819
  "type": {
97847
- "text": "TemplateResult"
97820
+ "text": "string"
97848
97821
  }
97849
97822
  },
97850
- "description": "Override this method to render the component template.",
97851
97823
  "inheritedFrom": {
97852
- "name": "SbbActionBaseElement",
97853
- "module": "core/base-elements/action-base-element.js"
97824
+ "name": "SbbIconNameMixin",
97825
+ "module": "icon/icon-name-mixin.js"
97826
+ }
97827
+ },
97828
+ {
97829
+ "kind": "method",
97830
+ "name": "_renderIconName",
97831
+ "privacy": "private",
97832
+ "return": {
97833
+ "type": {
97834
+ "text": "string"
97835
+ }
97836
+ },
97837
+ "inheritedFrom": {
97838
+ "name": "SbbIconNameMixin",
97839
+ "module": "icon/icon-name-mixin.js"
97854
97840
  }
97855
97841
  },
97856
97842
  {
97857
97843
  "kind": "field",
97858
- "name": "_hydrationRequired",
97844
+ "name": "disabled",
97845
+ "privacy": "public",
97846
+ "description": "Whether the component is disabled.",
97847
+ "default": "false",
97859
97848
  "type": {
97860
97849
  "text": "boolean"
97861
97850
  },
97862
- "privacy": "private",
97863
- "default": "!!this.shadowRoot",
97851
+ "attribute": "disabled",
97852
+ "reflects": true,
97864
97853
  "inheritedFrom": {
97865
- "name": "SbbElement",
97866
- "module": "core/base-elements/element.js"
97854
+ "name": "SbbDisabledMixin",
97855
+ "module": "core/mixins/disabled-mixin.js"
97867
97856
  }
97868
97857
  },
97869
97858
  {
97870
97859
  "kind": "field",
97871
- "name": "_hydrationComplete",
97860
+ "name": "#disabled",
97872
97861
  "privacy": "private",
97873
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
97862
+ "type": {
97863
+ "text": "boolean"
97864
+ },
97865
+ "default": "false",
97874
97866
  "inheritedFrom": {
97875
- "name": "SbbElement",
97876
- "module": "core/base-elements/element.js"
97867
+ "name": "SbbDisabledMixin",
97868
+ "module": "core/mixins/disabled-mixin.js"
97869
+ }
97870
+ },
97871
+ {
97872
+ "kind": "method",
97873
+ "name": "isDisabledExternally",
97874
+ "privacy": "protected",
97875
+ "return": {
97876
+ "type": {
97877
+ "text": "boolean"
97878
+ }
97879
+ },
97880
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
97881
+ "inheritedFrom": {
97882
+ "name": "SbbDisabledMixin",
97883
+ "module": "core/mixins/disabled-mixin.js"
97877
97884
  }
97878
97885
  },
97879
97886
  {
97880
97887
  "kind": "field",
97881
- "name": "_resolveHydration",
97888
+ "name": "maybeDisabled",
97882
97889
  "type": {
97883
- "text": "(hydrationRequired: boolean) => void"
97890
+ "text": "boolean | undefined"
97884
97891
  },
97885
- "privacy": "private",
97892
+ "privacy": "protected",
97893
+ "readonly": true,
97886
97894
  "inheritedFrom": {
97887
- "name": "SbbElement",
97888
- "module": "core/base-elements/element.js"
97895
+ "name": "SbbActionBaseElement",
97896
+ "module": "core/base-elements/action-base-element.js"
97889
97897
  }
97890
97898
  },
97891
97899
  {
97892
97900
  "kind": "field",
97893
- "name": "hydrationRequired",
97901
+ "name": "maybeDisabledInteractive",
97894
97902
  "type": {
97895
- "text": "boolean"
97903
+ "text": "boolean | undefined"
97896
97904
  },
97897
97905
  "privacy": "protected",
97898
- "description": "Returns whether hydration is required and not completed.",
97899
97906
  "readonly": true,
97900
97907
  "inheritedFrom": {
97901
- "name": "SbbElement",
97902
- "module": "core/base-elements/element.js"
97903
- },
97904
- "default": "!!this.shadowRoot"
97908
+ "name": "SbbActionBaseElement",
97909
+ "module": "core/base-elements/action-base-element.js"
97910
+ }
97905
97911
  },
97906
97912
  {
97907
97913
  "kind": "method",
97908
- "name": "toggleState",
97914
+ "name": "setupBaseEventHandlers",
97909
97915
  "privacy": "protected",
97910
97916
  "return": {
97911
97917
  "type": {
97912
97918
  "text": "void"
97913
97919
  }
97914
97920
  },
97915
- "parameters": [
97916
- {
97917
- "name": "value",
97918
- "type": {
97921
+ "inheritedFrom": {
97922
+ "name": "SbbActionBaseElement",
97923
+ "module": "core/base-elements/action-base-element.js"
97924
+ }
97925
+ },
97926
+ {
97927
+ "kind": "field",
97928
+ "name": "_hydrationRequired",
97929
+ "type": {
97930
+ "text": "boolean"
97931
+ },
97932
+ "privacy": "private",
97933
+ "default": "!!this.shadowRoot",
97934
+ "inheritedFrom": {
97935
+ "name": "SbbElement",
97936
+ "module": "core/base-elements/element.js"
97937
+ }
97938
+ },
97939
+ {
97940
+ "kind": "field",
97941
+ "name": "_hydrationComplete",
97942
+ "privacy": "private",
97943
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
97944
+ "inheritedFrom": {
97945
+ "name": "SbbElement",
97946
+ "module": "core/base-elements/element.js"
97947
+ }
97948
+ },
97949
+ {
97950
+ "kind": "field",
97951
+ "name": "_resolveHydration",
97952
+ "type": {
97953
+ "text": "(hydrationRequired: boolean) => void"
97954
+ },
97955
+ "privacy": "private",
97956
+ "inheritedFrom": {
97957
+ "name": "SbbElement",
97958
+ "module": "core/base-elements/element.js"
97959
+ }
97960
+ },
97961
+ {
97962
+ "kind": "field",
97963
+ "name": "hydrationRequired",
97964
+ "type": {
97965
+ "text": "boolean"
97966
+ },
97967
+ "privacy": "protected",
97968
+ "description": "Returns whether hydration is required and not completed.",
97969
+ "readonly": true,
97970
+ "inheritedFrom": {
97971
+ "name": "SbbElement",
97972
+ "module": "core/base-elements/element.js"
97973
+ },
97974
+ "default": "!!this.shadowRoot"
97975
+ },
97976
+ {
97977
+ "kind": "method",
97978
+ "name": "toggleState",
97979
+ "privacy": "protected",
97980
+ "return": {
97981
+ "type": {
97982
+ "text": "void"
97983
+ }
97984
+ },
97985
+ "parameters": [
97986
+ {
97987
+ "name": "value",
97988
+ "type": {
97919
97989
  "text": "string"
97920
97990
  }
97921
97991
  },
@@ -97946,20 +98016,6 @@
97946
98016
  "module": "core/base-elements/element.js"
97947
98017
  }
97948
98018
  },
97949
- {
97950
- "kind": "field",
97951
- "name": "elementName",
97952
- "type": {
97953
- "text": "string"
97954
- },
97955
- "privacy": "public",
97956
- "static": true,
97957
- "readonly": true,
97958
- "inheritedFrom": {
97959
- "name": "SbbElement",
97960
- "module": "core/base-elements/element.js"
97961
- }
97962
- },
97963
98019
  {
97964
98020
  "kind": "field",
97965
98021
  "name": "_controllers",
@@ -97975,7 +98031,11 @@
97975
98031
  ],
97976
98032
  "mixins": [
97977
98033
  {
97978
- "name": "SbbNegativeMixin",
98034
+ "name": "SbbBlockLinkCommonElementMixin",
98035
+ "module": "link/common.js"
98036
+ },
98037
+ {
98038
+ "name": "SbbDisabledMixin",
97979
98039
  "module": "core/mixins.js"
97980
98040
  }
97981
98041
  ],
@@ -97983,111 +98043,59 @@
97983
98043
  "name": "SbbActionBaseElement",
97984
98044
  "module": "core/base-elements.js"
97985
98045
  },
98046
+ "tagName": "sbb-block-link-static",
98047
+ "customElement": true,
97986
98048
  "attributes": [
97987
98049
  {
97988
- "name": "negative",
98050
+ "name": "icon-placement",
97989
98051
  "type": {
97990
- "text": "boolean"
98052
+ "text": "SbbIconPlacement"
97991
98053
  },
97992
- "default": "false",
97993
- "description": "Negative coloring variant flag.",
97994
- "fieldName": "negative",
98054
+ "default": "'start'",
98055
+ "description": "Moves the icon to the end of the component if set to true.",
98056
+ "fieldName": "iconPlacement",
97995
98057
  "inheritedFrom": {
97996
- "name": "SbbNegativeMixin",
97997
- "module": "core/mixins/negative-mixin.js"
98058
+ "name": "SbbBlockLinkCommonElementMixin",
98059
+ "module": "link/common/block-link-common.js"
97998
98060
  }
97999
- }
98000
- ]
98001
- },
98002
- {
98003
- "kind": "mixin",
98004
- "description": "",
98005
- "name": "SbbLinkCommonElementMixin",
98006
- "members": [
98007
- {
98008
- "kind": "field",
98009
- "name": "styles",
98010
- "type": {
98011
- "text": "CSSResultGroup"
98012
- },
98013
- "privacy": "public",
98014
- "static": true,
98015
- "default": "style"
98016
98061
  },
98017
98062
  {
98018
- "kind": "field",
98019
98063
  "name": "size",
98020
98064
  "type": {
98021
98065
  "text": "SbbLinkSize"
98022
98066
  },
98023
- "privacy": "public",
98024
98067
  "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
98025
98068
  "default": "'s' / 'xs' (lean)",
98026
- "attribute": "size",
98027
- "reflects": true
98028
- },
98029
- {
98030
- "kind": "method",
98031
- "name": "renderTemplate",
98032
- "privacy": "protected",
98033
- "return": {
98034
- "type": {
98035
- "text": "TemplateResult"
98036
- }
98069
+ "fieldName": "size",
98070
+ "inheritedFrom": {
98071
+ "name": "SbbLinkCommonElementMixin",
98072
+ "module": "link/common/link-common.js"
98037
98073
  }
98038
98074
  },
98039
98075
  {
98040
- "kind": "field",
98041
- "name": "negative",
98076
+ "name": "icon-name",
98042
98077
  "type": {
98043
- "text": "boolean"
98078
+ "text": "string"
98044
98079
  },
98045
- "privacy": "public",
98046
- "default": "false",
98047
- "description": "Negative coloring variant flag.",
98048
- "attribute": "negative",
98049
- "reflects": true,
98080
+ "default": "''",
98081
+ "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.",
98082
+ "fieldName": "iconName",
98050
98083
  "inheritedFrom": {
98051
- "name": "SbbNegativeMixin",
98052
- "module": "core/mixins/negative-mixin.js"
98084
+ "name": "SbbIconNameMixin",
98085
+ "module": "icon/icon-name-mixin.js"
98053
98086
  }
98054
- }
98055
- ],
98056
- "attributes": [
98057
- {
98058
- "name": "size",
98059
- "type": {
98060
- "text": "SbbLinkSize"
98061
- },
98062
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
98063
- "default": "'s' / 'xs' (lean)",
98064
- "fieldName": "size"
98065
98087
  },
98066
98088
  {
98067
- "name": "negative",
98089
+ "name": "disabled",
98090
+ "description": "Whether the component is disabled.",
98091
+ "default": "false",
98068
98092
  "type": {
98069
98093
  "text": "boolean"
98070
98094
  },
98071
- "default": "false",
98072
- "description": "Negative coloring variant flag.",
98073
- "fieldName": "negative",
98095
+ "fieldName": "disabled",
98074
98096
  "inheritedFrom": {
98075
- "name": "SbbNegativeMixin",
98076
- "module": "core/mixins/negative-mixin.js"
98077
- }
98078
- }
98079
- ],
98080
- "mixins": [
98081
- {
98082
- "name": "SbbNegativeMixin",
98083
- "module": "core/mixins.js"
98084
- }
98085
- ],
98086
- "parameters": [
98087
- {
98088
- "name": "superClass",
98089
- "type": {
98090
- "text": "T"
98097
+ "name": "SbbDisabledMixin",
98098
+ "module": "core/mixins/disabled-mixin.js"
98091
98099
  }
98092
98100
  }
98093
98101
  ]
@@ -98096,18 +98104,10 @@
98096
98104
  "exports": [
98097
98105
  {
98098
98106
  "kind": "js",
98099
- "name": "SbbLinkCommonElementMixinType",
98100
- "declaration": {
98101
- "name": "SbbLinkCommonElementMixinType",
98102
- "module": "link/common/link-common.js"
98103
- }
98104
- },
98105
- {
98106
- "kind": "js",
98107
- "name": "SbbLinkCommonElementMixin",
98107
+ "name": "SbbBlockLinkStaticElement",
98108
98108
  "declaration": {
98109
- "name": "SbbLinkCommonElementMixin",
98110
- "module": "link/common/link-common.js"
98109
+ "name": "SbbBlockLinkStaticElement",
98110
+ "module": "link/block-link-static/block-link-static.component.js"
98111
98111
  }
98112
98112
  }
98113
98113
  ]
@@ -101603,12 +101603,12 @@
101603
101603
  },
101604
101604
  {
101605
101605
  "kind": "javascript-module",
101606
- "path": "menu/menu-link/menu-link.component.js",
101606
+ "path": "menu/menu-button/menu-button.component.js",
101607
101607
  "declarations": [
101608
101608
  {
101609
101609
  "kind": "class",
101610
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
101611
- "name": "SbbMenuLinkElement",
101610
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
101611
+ "name": "SbbMenuButtonElement",
101612
101612
  "cssProperties": [
101613
101613
  {
101614
101614
  "description": "Can be used to modify horizontal padding.",
@@ -101618,7 +101618,7 @@
101618
101618
  ],
101619
101619
  "slots": [
101620
101620
  {
101621
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
101621
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
101622
101622
  "name": ""
101623
101623
  },
101624
101624
  {
@@ -101640,20 +101640,21 @@
101640
101640
  "name": "SbbElement",
101641
101641
  "module": "core/base-elements/element.js"
101642
101642
  },
101643
- "default": "'sbb-menu-link'"
101643
+ "default": "'sbb-menu-button'"
101644
101644
  },
101645
101645
  {
101646
101646
  "kind": "field",
101647
- "name": "anchorRole",
101647
+ "name": "role",
101648
101648
  "type": {
101649
- "text": "string"
101649
+ "text": "ElementInternals['role']"
101650
101650
  },
101651
- "privacy": "protected",
101651
+ "privacy": "public",
101652
+ "static": true,
101652
101653
  "readonly": true,
101653
101654
  "default": "'menuitem'",
101654
101655
  "inheritedFrom": {
101655
- "name": "SbbLinkBaseElement",
101656
- "module": "core/base-elements/link-base-element.js"
101656
+ "name": "SbbButtonLikeBaseElement",
101657
+ "module": "core/base-elements/button-base-element.js"
101657
101658
  }
101658
101659
  },
101659
101660
  {
@@ -101674,28 +101675,72 @@
101674
101675
  },
101675
101676
  {
101676
101677
  "kind": "field",
101677
- "name": "styles",
101678
+ "name": "disabled",
101679
+ "privacy": "public",
101680
+ "description": "Whether the component is disabled.",
101681
+ "default": "false",
101678
101682
  "type": {
101679
- "text": "CSSResultGroup"
101683
+ "text": "boolean"
101680
101684
  },
101681
- "privacy": "public",
101682
- "static": true,
101683
- "default": "[boxSizingStyles, style]",
101685
+ "attribute": "disabled",
101686
+ "reflects": true,
101684
101687
  "inheritedFrom": {
101685
- "name": "SbbMenuActionCommonElementMixin",
101686
- "module": "menu/common/menu-action-common.js"
101688
+ "name": "SbbDisabledMixin",
101689
+ "module": "core/mixins/disabled-mixin.js"
101687
101690
  }
101688
101691
  },
101689
101692
  {
101690
- "kind": "method",
101691
- "name": "renderTemplate",
101692
- "privacy": "protected",
101693
- "return": {
101694
- "type": {
101695
- "text": "TemplateResult"
101696
- }
101693
+ "kind": "field",
101694
+ "name": "#disabled",
101695
+ "privacy": "private",
101696
+ "type": {
101697
+ "text": "boolean"
101697
101698
  },
101698
- "description": "Override this method to render the component template.",
101699
+ "default": "false",
101700
+ "inheritedFrom": {
101701
+ "name": "SbbDisabledMixin",
101702
+ "module": "core/mixins/disabled-mixin.js"
101703
+ }
101704
+ },
101705
+ {
101706
+ "kind": "method",
101707
+ "name": "isDisabledExternally",
101708
+ "privacy": "protected",
101709
+ "return": {
101710
+ "type": {
101711
+ "text": "boolean"
101712
+ }
101713
+ },
101714
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101715
+ "inheritedFrom": {
101716
+ "name": "SbbDisabledMixin",
101717
+ "module": "core/mixins/disabled-mixin.js"
101718
+ }
101719
+ },
101720
+ {
101721
+ "kind": "field",
101722
+ "name": "styles",
101723
+ "type": {
101724
+ "text": "CSSResultGroup"
101725
+ },
101726
+ "privacy": "public",
101727
+ "static": true,
101728
+ "default": "[boxSizingStyles, style]",
101729
+ "inheritedFrom": {
101730
+ "name": "SbbMenuActionCommonElementMixin",
101731
+ "module": "menu/common/menu-action-common.js"
101732
+ }
101733
+ },
101734
+ {
101735
+ "kind": "method",
101736
+ "name": "renderTemplate",
101737
+ "privacy": "protected",
101738
+ "return": {
101739
+ "type": {
101740
+ "text": "TemplateResult"
101741
+ }
101742
+ },
101743
+ "description": "Override this method to render the component template.",
101699
101744
  "inheritedFrom": {
101700
101745
  "name": "SbbActionBaseElement",
101701
101746
  "module": "core/base-elements/action-base-element.js"
@@ -101769,528 +101814,452 @@
101769
101814
  },
101770
101815
  {
101771
101816
  "kind": "field",
101772
- "name": "disabled",
101773
- "privacy": "public",
101774
- "description": "Whether the component is disabled.",
101775
- "default": "false",
101817
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
101776
101818
  "type": {
101777
- "text": "boolean"
101819
+ "text": "array"
101778
101820
  },
101779
- "attribute": "disabled",
101780
- "reflects": true,
101781
- "inheritedFrom": {
101782
- "name": "SbbDisabledMixin",
101783
- "module": "core/mixins/disabled-mixin.js"
101784
- }
101785
- },
101786
- {
101787
- "kind": "field",
101788
- "name": "#disabled",
101789
101821
  "privacy": "private",
101790
- "type": {
101791
- "text": "boolean"
101792
- },
101793
- "default": "false",
101794
- "inheritedFrom": {
101795
- "name": "SbbDisabledMixin",
101796
- "module": "core/mixins/disabled-mixin.js"
101797
- }
101798
- },
101799
- {
101800
- "kind": "method",
101801
- "name": "isDisabledExternally",
101802
- "privacy": "protected",
101803
- "return": {
101804
- "type": {
101805
- "text": "boolean"
101806
- }
101807
- },
101808
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101822
+ "readonly": true,
101823
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101809
101824
  "inheritedFrom": {
101810
- "name": "SbbDisabledMixin",
101811
- "module": "core/mixins/disabled-mixin.js"
101825
+ "name": "SbbButtonBaseElement",
101826
+ "module": "core/base-elements/button-base-element.js"
101812
101827
  }
101813
101828
  },
101814
101829
  {
101815
101830
  "kind": "field",
101816
- "name": "href",
101831
+ "name": "value",
101817
101832
  "type": {
101818
101833
  "text": "string"
101819
101834
  },
101820
101835
  "privacy": "public",
101821
- "default": "''",
101822
- "description": "The href value you want to link to.",
101823
- "attribute": "href",
101824
- "reflects": true,
101825
101836
  "inheritedFrom": {
101826
- "name": "SbbLinkBaseElement",
101827
- "module": "core/base-elements/link-base-element.js"
101828
- }
101829
- },
101830
- {
101831
- "kind": "field",
101832
- "name": "target",
101833
- "type": {
101834
- "text": "LinkTargetType | string"
101837
+ "name": "SbbButtonBaseElement",
101838
+ "module": "core/base-elements/button-base-element.js"
101835
101839
  },
101836
- "privacy": "public",
101837
101840
  "default": "''",
101838
- "description": "Where to display the linked URL.",
101839
- "attribute": "target",
101840
- "reflects": true,
101841
- "inheritedFrom": {
101842
- "name": "SbbLinkBaseElement",
101843
- "module": "core/base-elements/link-base-element.js"
101844
- }
101841
+ "description": "Value of the form element.",
101842
+ "attribute": "value"
101845
101843
  },
101846
101844
  {
101847
101845
  "kind": "field",
101848
- "name": "rel",
101849
- "type": {
101850
- "text": "string"
101851
- },
101846
+ "name": "type",
101852
101847
  "privacy": "public",
101853
- "default": "''",
101854
- "description": "The relationship of the linked URL as space-separated link types.",
101855
- "attribute": "rel",
101856
- "reflects": true,
101857
- "inheritedFrom": {
101858
- "name": "SbbLinkBaseElement",
101859
- "module": "core/base-elements/link-base-element.js"
101860
- }
101861
- },
101862
- {
101863
- "kind": "field",
101864
- "name": "download",
101848
+ "description": "The type attribute to use for the button.",
101849
+ "default": "'button'",
101865
101850
  "type": {
101866
- "text": "boolean"
101851
+ "text": "SbbButtonType"
101867
101852
  },
101868
- "privacy": "public",
101869
- "default": "false",
101870
- "description": "Whether the browser will show the download dialog on click.",
101871
- "attribute": "download",
101872
- "reflects": true,
101853
+ "attribute": "type",
101873
101854
  "inheritedFrom": {
101874
- "name": "SbbLinkBaseElement",
101875
- "module": "core/base-elements/link-base-element.js"
101855
+ "name": "SbbButtonBaseElement",
101856
+ "module": "core/base-elements/button-base-element.js"
101876
101857
  }
101877
101858
  },
101878
101859
  {
101879
101860
  "kind": "field",
101880
- "name": "accessibilityLabel",
101861
+ "name": "form",
101881
101862
  "type": {
101882
- "text": "string"
101863
+ "text": "HTMLFormElement | null"
101883
101864
  },
101884
101865
  "privacy": "public",
101885
- "default": "''",
101886
- "description": "This will be forwarded as aria-label to the inner anchor element.",
101887
- "attribute": "accessibility-label",
101866
+ "description": "The `<form>` element to associate the button with.",
101888
101867
  "inheritedFrom": {
101889
- "name": "SbbLinkBaseElement",
101890
- "module": "core/base-elements/link-base-element.js"
101891
- }
101868
+ "name": "SbbButtonBaseElement",
101869
+ "module": "core/base-elements/button-base-element.js"
101870
+ },
101871
+ "attribute": "form"
101892
101872
  },
101893
101873
  {
101894
101874
  "kind": "field",
101895
- "name": "accessibilityCurrent",
101875
+ "name": "_formId",
101896
101876
  "type": {
101897
101877
  "text": "string"
101898
101878
  },
101899
- "privacy": "public",
101879
+ "privacy": "private",
101900
101880
  "default": "''",
101901
- "description": "This will be forwarded as aria-current to the inner anchor element.",
101902
- "attribute": "accessibility-current",
101903
- "inheritedFrom": {
101904
- "name": "SbbLinkBaseElement",
101905
- "module": "core/base-elements/link-base-element.js"
101906
- }
101907
- },
101908
- {
101909
- "kind": "field",
101910
- "name": "language",
101911
- "privacy": "protected",
101912
- "default": "new SbbLanguageController(this)",
101913
101881
  "inheritedFrom": {
101914
- "name": "SbbLinkBaseElement",
101915
- "module": "core/base-elements/link-base-element.js"
101882
+ "name": "SbbButtonBaseElement",
101883
+ "module": "core/base-elements/button-base-element.js"
101916
101884
  }
101917
101885
  },
101918
101886
  {
101919
101887
  "kind": "field",
101920
- "name": "_evaluateRelAttribute",
101888
+ "name": "_handleButtonClick",
101921
101889
  "privacy": "private",
101922
101890
  "inheritedFrom": {
101923
- "name": "SbbLinkBaseElement",
101924
- "module": "core/base-elements/link-base-element.js"
101891
+ "name": "SbbButtonBaseElement",
101892
+ "module": "core/base-elements/button-base-element.js"
101925
101893
  }
101926
101894
  },
101927
101895
  {
101928
101896
  "kind": "method",
101929
- "name": "renderLink",
101930
- "privacy": "protected",
101897
+ "name": "_requestSubmit",
101898
+ "privacy": "private",
101931
101899
  "return": {
101932
101900
  "type": {
101933
- "text": "TemplateResult"
101901
+ "text": "void"
101934
101902
  }
101935
101903
  },
101936
101904
  "parameters": [
101937
101905
  {
101938
- "name": "renderContent",
101906
+ "name": "form",
101939
101907
  "type": {
101940
- "text": "TemplateResult"
101908
+ "text": "HTMLFormElement"
101941
101909
  }
101942
101910
  }
101943
101911
  ],
101944
101912
  "inheritedFrom": {
101945
- "name": "SbbLinkBaseElement",
101946
- "module": "core/base-elements/link-base-element.js"
101913
+ "name": "SbbButtonBaseElement",
101914
+ "module": "core/base-elements/button-base-element.js"
101947
101915
  }
101948
101916
  },
101949
101917
  {
101950
101918
  "kind": "field",
101951
- "name": "maybeDisabled",
101952
- "type": {
101953
- "text": "boolean | undefined"
101954
- },
101955
- "privacy": "protected",
101956
- "readonly": true,
101919
+ "name": "_formKeyDown",
101920
+ "privacy": "private",
101957
101921
  "inheritedFrom": {
101958
- "name": "SbbActionBaseElement",
101959
- "module": "core/base-elements/action-base-element.js"
101922
+ "name": "SbbButtonBaseElement",
101923
+ "module": "core/base-elements/button-base-element.js"
101960
101924
  }
101961
101925
  },
101962
101926
  {
101963
101927
  "kind": "field",
101964
- "name": "maybeDisabledInteractive",
101928
+ "name": "formAssociated",
101965
101929
  "type": {
101966
- "text": "boolean | undefined"
101930
+ "text": "boolean"
101967
101931
  },
101968
- "privacy": "protected",
101969
- "readonly": true,
101932
+ "privacy": "public",
101933
+ "static": true,
101934
+ "default": "true",
101970
101935
  "inheritedFrom": {
101971
- "name": "SbbActionBaseElement",
101972
- "module": "core/base-elements/action-base-element.js"
101936
+ "name": "SbbFormAssociatedMixin",
101937
+ "module": "core/mixins/form-associated-mixin.js"
101973
101938
  }
101974
101939
  },
101975
101940
  {
101976
- "kind": "method",
101977
- "name": "setupBaseEventHandlers",
101978
- "privacy": "protected",
101979
- "return": {
101980
- "type": {
101981
- "text": "void"
101982
- }
101941
+ "kind": "field",
101942
+ "name": "name",
101943
+ "privacy": "public",
101944
+ "description": "Name of the form element. Will be read from name attribute.",
101945
+ "type": {
101946
+ "text": "string"
101983
101947
  },
101948
+ "attribute": "name",
101984
101949
  "inheritedFrom": {
101985
- "name": "SbbActionBaseElement",
101986
- "module": "core/base-elements/action-base-element.js"
101950
+ "name": "SbbFormAssociatedMixin",
101951
+ "module": "core/mixins/form-associated-mixin.js"
101987
101952
  }
101988
101953
  },
101989
101954
  {
101990
101955
  "kind": "field",
101991
- "name": "_hydrationRequired",
101956
+ "name": "validity",
101992
101957
  "type": {
101993
- "text": "boolean"
101958
+ "text": "ValidityState"
101994
101959
  },
101995
- "privacy": "private",
101996
- "default": "!!this.shadowRoot",
101960
+ "privacy": "public",
101961
+ "description": "Returns the ValidityState object for this element.",
101962
+ "readonly": true,
101997
101963
  "inheritedFrom": {
101998
- "name": "SbbElement",
101999
- "module": "core/base-elements/element.js"
101964
+ "name": "SbbFormAssociatedMixin",
101965
+ "module": "core/mixins/form-associated-mixin.js"
102000
101966
  }
102001
101967
  },
102002
101968
  {
102003
101969
  "kind": "field",
102004
- "name": "_hydrationComplete",
102005
- "privacy": "private",
102006
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101970
+ "name": "validationMessage",
101971
+ "type": {
101972
+ "text": "string"
101973
+ },
101974
+ "privacy": "public",
101975
+ "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.",
101976
+ "readonly": true,
102007
101977
  "inheritedFrom": {
102008
- "name": "SbbElement",
102009
- "module": "core/base-elements/element.js"
101978
+ "name": "SbbFormAssociatedMixin",
101979
+ "module": "core/mixins/form-associated-mixin.js"
102010
101980
  }
102011
101981
  },
102012
101982
  {
102013
101983
  "kind": "field",
102014
- "name": "_resolveHydration",
101984
+ "name": "willValidate",
102015
101985
  "type": {
102016
- "text": "(hydrationRequired: boolean) => void"
101986
+ "text": "boolean"
102017
101987
  },
101988
+ "privacy": "public",
101989
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101990
+ "readonly": true,
101991
+ "inheritedFrom": {
101992
+ "name": "SbbFormAssociatedMixin",
101993
+ "module": "core/mixins/form-associated-mixin.js"
101994
+ }
101995
+ },
101996
+ {
101997
+ "kind": "field",
101998
+ "name": "_validityStates",
102018
101999
  "privacy": "private",
102000
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
102019
102001
  "inheritedFrom": {
102020
- "name": "SbbElement",
102021
- "module": "core/base-elements/element.js"
102002
+ "name": "SbbFormAssociatedMixin",
102003
+ "module": "core/mixins/form-associated-mixin.js"
102022
102004
  }
102023
102005
  },
102024
102006
  {
102025
102007
  "kind": "field",
102026
- "name": "hydrationRequired",
102008
+ "name": "formDisabled",
102027
102009
  "type": {
102028
102010
  "text": "boolean"
102029
102011
  },
102030
102012
  "privacy": "protected",
102031
- "description": "Returns whether hydration is required and not completed.",
102032
- "readonly": true,
102013
+ "default": "false",
102014
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
102033
102015
  "inheritedFrom": {
102034
- "name": "SbbElement",
102035
- "module": "core/base-elements/element.js"
102036
- },
102037
- "default": "!!this.shadowRoot"
102016
+ "name": "SbbFormAssociatedMixin",
102017
+ "module": "core/mixins/form-associated-mixin.js"
102018
+ }
102038
102019
  },
102039
102020
  {
102040
102021
  "kind": "method",
102041
- "name": "toggleState",
102042
- "privacy": "protected",
102022
+ "name": "checkValidity",
102023
+ "privacy": "public",
102043
102024
  "return": {
102044
102025
  "type": {
102045
- "text": "void"
102026
+ "text": "boolean"
102046
102027
  }
102047
102028
  },
102048
- "parameters": [
102049
- {
102050
- "name": "value",
102051
- "type": {
102052
- "text": "string"
102053
- }
102054
- },
102055
- {
102056
- "name": "force",
102057
- "optional": true,
102058
- "type": {
102059
- "text": "boolean"
102060
- }
102061
- }
102062
- ],
102029
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
102063
102030
  "inheritedFrom": {
102064
- "name": "SbbElement",
102065
- "module": "core/base-elements/element.js"
102031
+ "name": "SbbFormAssociatedMixin",
102032
+ "module": "core/mixins/form-associated-mixin.js"
102066
102033
  }
102067
102034
  },
102068
102035
  {
102069
- "kind": "field",
102070
- "name": "['_$sbbElement$']",
102071
- "type": {
102072
- "text": "boolean"
102073
- },
102036
+ "kind": "method",
102037
+ "name": "reportValidity",
102074
102038
  "privacy": "public",
102075
- "static": true,
102076
- "default": "true",
102039
+ "return": {
102040
+ "type": {
102041
+ "text": "boolean"
102042
+ }
102043
+ },
102044
+ "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.",
102077
102045
  "inheritedFrom": {
102078
- "name": "SbbElement",
102079
- "module": "core/base-elements/element.js"
102046
+ "name": "SbbFormAssociatedMixin",
102047
+ "module": "core/mixins/form-associated-mixin.js"
102080
102048
  }
102081
102049
  },
102082
102050
  {
102083
- "kind": "field",
102084
- "name": "_controllers",
102085
- "type": {
102086
- "text": "Set<SbbReactiveController> | undefined"
102051
+ "kind": "method",
102052
+ "name": "setCustomValidity",
102053
+ "privacy": "public",
102054
+ "return": {
102055
+ "type": {
102056
+ "text": "void"
102057
+ }
102087
102058
  },
102088
- "privacy": "private",
102059
+ "parameters": [
102060
+ {
102061
+ "name": "message",
102062
+ "type": {
102063
+ "text": "string"
102064
+ }
102065
+ }
102066
+ ],
102067
+ "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.",
102089
102068
  "inheritedFrom": {
102090
- "name": "SbbElement",
102091
- "module": "core/base-elements/element.js"
102069
+ "name": "SbbFormAssociatedMixin",
102070
+ "module": "core/mixins/form-associated-mixin.js"
102092
102071
  }
102093
- }
102094
- ],
102095
- "mixins": [
102096
- {
102097
- "name": "SbbDisabledInteractiveMixin",
102098
- "module": "core/mixins.js"
102099
102072
  },
102100
102073
  {
102101
- "name": "SbbMenuActionCommonElementMixin",
102102
- "module": "menu/common/menu-action-common.js"
102103
- }
102104
- ],
102105
- "superclass": {
102106
- "name": "SbbLinkBaseElement",
102107
- "module": "core/base-elements.js"
102108
- },
102109
- "tagName": "sbb-menu-link",
102110
- "customElement": true,
102111
- "attributes": [
102112
- {
102113
- "name": "disabled-interactive",
102114
- "type": {
102115
- "text": "boolean"
102074
+ "kind": "method",
102075
+ "name": "_hasDisabledAncestor",
102076
+ "privacy": "private",
102077
+ "return": {
102078
+ "type": {
102079
+ "text": "boolean"
102080
+ }
102116
102081
  },
102117
- "default": "false",
102118
- "description": "Whether the button should be aria-disabled but stay interactive.",
102119
- "fieldName": "disabledInteractive",
102120
102082
  "inheritedFrom": {
102121
- "name": "SbbDisabledInteractiveMixin",
102122
- "module": "core/mixins/disabled-mixin.js"
102083
+ "name": "SbbFormAssociatedMixin",
102084
+ "module": "core/mixins/form-associated-mixin.js"
102123
102085
  }
102124
102086
  },
102125
102087
  {
102126
- "name": "icon-name",
102127
- "type": {
102128
- "text": "string"
102088
+ "kind": "method",
102089
+ "name": "updateFormValue",
102090
+ "privacy": "protected",
102091
+ "return": {
102092
+ "type": {
102093
+ "text": "void"
102094
+ }
102129
102095
  },
102130
- "default": "''",
102131
- "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.",
102132
- "fieldName": "iconName",
102096
+ "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",
102133
102097
  "inheritedFrom": {
102134
- "name": "SbbIconNameMixin",
102135
- "module": "icon/icon-name-mixin.js"
102098
+ "name": "SbbFormAssociatedMixin",
102099
+ "module": "core/mixins/form-associated-mixin.js"
102136
102100
  }
102137
102101
  },
102138
102102
  {
102139
- "name": "disabled",
102140
- "description": "Whether the component is disabled.",
102141
- "default": "false",
102142
- "type": {
102143
- "text": "boolean"
102103
+ "kind": "method",
102104
+ "name": "formState",
102105
+ "privacy": "protected",
102106
+ "return": {
102107
+ "type": {
102108
+ "text": "FormRestoreState"
102109
+ }
102144
102110
  },
102145
- "fieldName": "disabled",
102146
102111
  "inheritedFrom": {
102147
- "name": "SbbDisabledMixin",
102148
- "module": "core/mixins/disabled-mixin.js"
102112
+ "name": "SbbFormAssociatedMixin",
102113
+ "module": "core/mixins/form-associated-mixin.js"
102149
102114
  }
102150
102115
  },
102151
102116
  {
102152
- "name": "href",
102153
- "type": {
102154
- "text": "string"
102117
+ "kind": "method",
102118
+ "name": "setValidityFlag",
102119
+ "privacy": "protected",
102120
+ "return": {
102121
+ "type": {
102122
+ "text": "void"
102123
+ }
102155
102124
  },
102156
- "default": "''",
102157
- "description": "The href value you want to link to.",
102158
- "fieldName": "href",
102125
+ "parameters": [
102126
+ {
102127
+ "name": "flag",
102128
+ "type": {
102129
+ "text": "T"
102130
+ }
102131
+ },
102132
+ {
102133
+ "name": "message",
102134
+ "type": {
102135
+ "text": "string"
102136
+ }
102137
+ },
102138
+ {
102139
+ "name": "flagValue",
102140
+ "optional": true,
102141
+ "type": {
102142
+ "text": "ValidityStateFlags[T]"
102143
+ }
102144
+ }
102145
+ ],
102146
+ "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).",
102159
102147
  "inheritedFrom": {
102160
- "name": "SbbLinkBaseElement",
102161
- "module": "core/base-elements/link-base-element.js"
102148
+ "name": "SbbFormAssociatedMixin",
102149
+ "module": "core/mixins/form-associated-mixin.js"
102162
102150
  }
102163
102151
  },
102164
102152
  {
102165
- "name": "target",
102166
- "type": {
102167
- "text": "LinkTargetType | string"
102153
+ "kind": "method",
102154
+ "name": "removeValidityFlag",
102155
+ "privacy": "protected",
102156
+ "return": {
102157
+ "type": {
102158
+ "text": "void"
102159
+ }
102168
102160
  },
102169
- "default": "''",
102170
- "description": "Where to display the linked URL.",
102171
- "fieldName": "target",
102161
+ "parameters": [
102162
+ {
102163
+ "name": "flag",
102164
+ "type": {
102165
+ "text": "T"
102166
+ }
102167
+ }
102168
+ ],
102169
+ "description": "Removes the validity state flag entry and updates validity state.",
102172
102170
  "inheritedFrom": {
102173
- "name": "SbbLinkBaseElement",
102174
- "module": "core/base-elements/link-base-element.js"
102171
+ "name": "SbbFormAssociatedMixin",
102172
+ "module": "core/mixins/form-associated-mixin.js"
102175
102173
  }
102176
102174
  },
102177
102175
  {
102178
- "name": "rel",
102179
- "type": {
102180
- "text": "string"
102176
+ "kind": "method",
102177
+ "name": "validate",
102178
+ "privacy": "protected",
102179
+ "return": {
102180
+ "type": {
102181
+ "text": "void"
102182
+ }
102181
102183
  },
102182
- "default": "''",
102183
- "description": "The relationship of the linked URL as space-separated link types.",
102184
- "fieldName": "rel",
102184
+ "description": "To be called whenever the current element needs to be validated.",
102185
102185
  "inheritedFrom": {
102186
- "name": "SbbLinkBaseElement",
102187
- "module": "core/base-elements/link-base-element.js"
102186
+ "name": "SbbFormAssociatedMixin",
102187
+ "module": "core/mixins/form-associated-mixin.js"
102188
102188
  }
102189
102189
  },
102190
102190
  {
102191
- "name": "download",
102192
- "type": {
102193
- "text": "boolean"
102191
+ "kind": "method",
102192
+ "name": "shouldValidate",
102193
+ "privacy": "protected",
102194
+ "return": {
102195
+ "type": {
102196
+ "text": "boolean"
102197
+ }
102194
102198
  },
102195
- "default": "false",
102196
- "description": "Whether the browser will show the download dialog on click.",
102197
- "fieldName": "download",
102199
+ "parameters": [
102200
+ {
102201
+ "name": "name",
102202
+ "type": {
102203
+ "text": "PropertyKey | undefined"
102204
+ }
102205
+ }
102206
+ ],
102207
+ "description": "Whether validation should be run on a property change with the given name.",
102198
102208
  "inheritedFrom": {
102199
- "name": "SbbLinkBaseElement",
102200
- "module": "core/base-elements/link-base-element.js"
102209
+ "name": "SbbFormAssociatedMixin",
102210
+ "module": "core/mixins/form-associated-mixin.js"
102201
102211
  }
102202
102212
  },
102203
102213
  {
102204
- "name": "accessibility-label",
102205
- "type": {
102206
- "text": "string"
102214
+ "kind": "method",
102215
+ "name": "_setInternalValidity",
102216
+ "privacy": "private",
102217
+ "return": {
102218
+ "type": {
102219
+ "text": "void"
102220
+ }
102207
102221
  },
102208
- "default": "''",
102209
- "description": "This will be forwarded as aria-label to the inner anchor element.",
102210
- "fieldName": "accessibilityLabel",
102211
102222
  "inheritedFrom": {
102212
- "name": "SbbLinkBaseElement",
102213
- "module": "core/base-elements/link-base-element.js"
102223
+ "name": "SbbFormAssociatedMixin",
102224
+ "module": "core/mixins/form-associated-mixin.js"
102214
102225
  }
102215
102226
  },
102216
102227
  {
102217
- "name": "accessibility-current",
102218
- "type": {
102219
- "text": "string"
102220
- },
102221
- "default": "''",
102222
- "description": "This will be forwarded as aria-current to the inner anchor element.",
102223
- "fieldName": "accessibilityCurrent",
102228
+ "kind": "field",
102229
+ "name": "_preventScrollOnSpaceKeydown",
102230
+ "privacy": "private",
102231
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
102232
+ "parameters": [
102233
+ {
102234
+ "description": "The origin event.",
102235
+ "name": "event"
102236
+ }
102237
+ ],
102224
102238
  "inheritedFrom": {
102225
- "name": "SbbLinkBaseElement",
102226
- "module": "core/base-elements/link-base-element.js"
102239
+ "name": "SbbButtonLikeBaseElement",
102240
+ "module": "core/base-elements/button-base-element.js"
102227
102241
  }
102228
- }
102229
- ]
102230
- }
102231
- ],
102232
- "exports": [
102233
- {
102234
- "kind": "js",
102235
- "name": "SbbMenuLinkElement",
102236
- "declaration": {
102237
- "name": "SbbMenuLinkElement",
102238
- "module": "menu/menu-link/menu-link.component.js"
102239
- }
102240
- }
102241
- ]
102242
- },
102243
- {
102244
- "kind": "javascript-module",
102245
- "path": "menu/menu-button/menu-button.component.js",
102246
- "declarations": [
102247
- {
102248
- "kind": "class",
102249
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
102250
- "name": "SbbMenuButtonElement",
102251
- "cssProperties": [
102252
- {
102253
- "description": "Can be used to modify horizontal padding.",
102254
- "name": "--sbb-menu-action-outer-horizontal-padding",
102255
- "default": "var(--sbb-spacing-fixed-3x)"
102256
- }
102257
- ],
102258
- "slots": [
102259
- {
102260
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
102261
- "name": ""
102262
102242
  },
102263
- {
102264
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
102265
- "name": "icon"
102266
- }
102267
- ],
102268
- "members": [
102269
102243
  {
102270
102244
  "kind": "field",
102271
- "name": "elementName",
102272
- "type": {
102273
- "text": "string"
102274
- },
102275
- "privacy": "public",
102276
- "static": true,
102277
- "readonly": true,
102245
+ "name": "_removeActiveMarker",
102246
+ "privacy": "private",
102278
102247
  "inheritedFrom": {
102279
- "name": "SbbElement",
102280
- "module": "core/base-elements/element.js"
102281
- },
102282
- "default": "'sbb-menu-button'"
102248
+ "name": "SbbButtonLikeBaseElement",
102249
+ "module": "core/base-elements/button-base-element.js"
102250
+ }
102283
102251
  },
102284
102252
  {
102285
102253
  "kind": "field",
102286
- "name": "role",
102287
- "type": {
102288
- "text": "ElementInternals['role']"
102289
- },
102290
- "privacy": "public",
102291
- "static": true,
102292
- "readonly": true,
102293
- "default": "'menuitem'",
102254
+ "name": "_dispatchClickEventOnSpaceKeyup",
102255
+ "privacy": "private",
102256
+ "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.",
102257
+ "parameters": [
102258
+ {
102259
+ "description": "The origin event.",
102260
+ "name": "event"
102261
+ }
102262
+ ],
102294
102263
  "inheritedFrom": {
102295
102264
  "name": "SbbButtonLikeBaseElement",
102296
102265
  "module": "core/base-elements/button-base-element.js"
@@ -102298,619 +102267,622 @@
102298
102267
  },
102299
102268
  {
102300
102269
  "kind": "field",
102301
- "name": "disabledInteractive",
102302
- "type": {
102303
- "text": "boolean"
102304
- },
102305
- "privacy": "public",
102306
- "default": "false",
102307
- "description": "Whether the button should be aria-disabled but stay interactive.",
102308
- "attribute": "disabled-interactive",
102309
- "reflects": true,
102270
+ "name": "_dispatchClickEvent",
102271
+ "privacy": "private",
102310
102272
  "inheritedFrom": {
102311
- "name": "SbbDisabledInteractiveMixin",
102312
- "module": "core/mixins/disabled-mixin.js"
102273
+ "name": "SbbButtonLikeBaseElement",
102274
+ "module": "core/base-elements/button-base-element.js"
102313
102275
  }
102314
102276
  },
102315
102277
  {
102316
102278
  "kind": "field",
102317
- "name": "disabled",
102318
- "privacy": "public",
102319
- "description": "Whether the component is disabled.",
102320
- "default": "false",
102279
+ "name": "maybeDisabled",
102321
102280
  "type": {
102322
- "text": "boolean"
102281
+ "text": "boolean | undefined"
102323
102282
  },
102324
- "attribute": "disabled",
102325
- "reflects": true,
102283
+ "privacy": "protected",
102284
+ "readonly": true,
102326
102285
  "inheritedFrom": {
102327
- "name": "SbbDisabledMixin",
102328
- "module": "core/mixins/disabled-mixin.js"
102286
+ "name": "SbbActionBaseElement",
102287
+ "module": "core/base-elements/action-base-element.js"
102329
102288
  }
102330
102289
  },
102331
102290
  {
102332
102291
  "kind": "field",
102333
- "name": "#disabled",
102334
- "privacy": "private",
102292
+ "name": "maybeDisabledInteractive",
102335
102293
  "type": {
102336
- "text": "boolean"
102294
+ "text": "boolean | undefined"
102337
102295
  },
102338
- "default": "false",
102296
+ "privacy": "protected",
102297
+ "readonly": true,
102339
102298
  "inheritedFrom": {
102340
- "name": "SbbDisabledMixin",
102341
- "module": "core/mixins/disabled-mixin.js"
102299
+ "name": "SbbActionBaseElement",
102300
+ "module": "core/base-elements/action-base-element.js"
102342
102301
  }
102343
102302
  },
102344
102303
  {
102345
102304
  "kind": "method",
102346
- "name": "isDisabledExternally",
102305
+ "name": "setupBaseEventHandlers",
102347
102306
  "privacy": "protected",
102348
102307
  "return": {
102349
102308
  "type": {
102350
- "text": "boolean"
102309
+ "text": "void"
102351
102310
  }
102352
102311
  },
102353
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
102354
102312
  "inheritedFrom": {
102355
- "name": "SbbDisabledMixin",
102356
- "module": "core/mixins/disabled-mixin.js"
102313
+ "name": "SbbActionBaseElement",
102314
+ "module": "core/base-elements/action-base-element.js"
102357
102315
  }
102358
102316
  },
102359
102317
  {
102360
102318
  "kind": "field",
102361
- "name": "styles",
102319
+ "name": "_hydrationRequired",
102362
102320
  "type": {
102363
- "text": "CSSResultGroup"
102321
+ "text": "boolean"
102364
102322
  },
102365
- "privacy": "public",
102366
- "static": true,
102367
- "default": "[boxSizingStyles, style]",
102323
+ "privacy": "private",
102324
+ "default": "!!this.shadowRoot",
102368
102325
  "inheritedFrom": {
102369
- "name": "SbbMenuActionCommonElementMixin",
102370
- "module": "menu/common/menu-action-common.js"
102326
+ "name": "SbbElement",
102327
+ "module": "core/base-elements/element.js"
102371
102328
  }
102372
102329
  },
102373
102330
  {
102374
- "kind": "method",
102375
- "name": "renderTemplate",
102376
- "privacy": "protected",
102377
- "return": {
102378
- "type": {
102379
- "text": "TemplateResult"
102380
- }
102381
- },
102382
- "description": "Override this method to render the component template.",
102331
+ "kind": "field",
102332
+ "name": "_hydrationComplete",
102333
+ "privacy": "private",
102334
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
102383
102335
  "inheritedFrom": {
102384
- "name": "SbbActionBaseElement",
102385
- "module": "core/base-elements/action-base-element.js"
102336
+ "name": "SbbElement",
102337
+ "module": "core/base-elements/element.js"
102386
102338
  }
102387
102339
  },
102388
102340
  {
102389
102341
  "kind": "field",
102390
- "name": "iconName",
102342
+ "name": "_resolveHydration",
102391
102343
  "type": {
102392
- "text": "string"
102344
+ "text": "(hydrationRequired: boolean) => void"
102393
102345
  },
102394
- "privacy": "public",
102395
- "default": "''",
102396
- "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.",
102397
- "attribute": "icon-name",
102346
+ "privacy": "private",
102398
102347
  "inheritedFrom": {
102399
- "name": "SbbIconNameMixin",
102400
- "module": "icon/icon-name-mixin.js"
102348
+ "name": "SbbElement",
102349
+ "module": "core/base-elements/element.js"
102401
102350
  }
102402
102351
  },
102352
+ {
102353
+ "kind": "field",
102354
+ "name": "hydrationRequired",
102355
+ "type": {
102356
+ "text": "boolean"
102357
+ },
102358
+ "privacy": "protected",
102359
+ "description": "Returns whether hydration is required and not completed.",
102360
+ "readonly": true,
102361
+ "inheritedFrom": {
102362
+ "name": "SbbElement",
102363
+ "module": "core/base-elements/element.js"
102364
+ },
102365
+ "default": "!!this.shadowRoot"
102366
+ },
102403
102367
  {
102404
102368
  "kind": "method",
102405
- "name": "renderIconSlot",
102369
+ "name": "toggleState",
102406
102370
  "privacy": "protected",
102407
102371
  "return": {
102408
102372
  "type": {
102409
- "text": "TemplateResult"
102373
+ "text": "void"
102410
102374
  }
102411
102375
  },
102412
102376
  "parameters": [
102413
102377
  {
102414
- "name": "classname",
102415
- "optional": true,
102378
+ "name": "value",
102416
102379
  "type": {
102417
102380
  "text": "string"
102418
102381
  }
102382
+ },
102383
+ {
102384
+ "name": "force",
102385
+ "optional": true,
102386
+ "type": {
102387
+ "text": "boolean"
102388
+ }
102419
102389
  }
102420
102390
  ],
102421
102391
  "inheritedFrom": {
102422
- "name": "SbbIconNameMixin",
102423
- "module": "icon/icon-name-mixin.js"
102424
- }
102425
- },
102426
- {
102427
- "kind": "method",
102428
- "name": "renderIconName",
102429
- "privacy": "protected",
102430
- "return": {
102431
- "type": {
102432
- "text": "string"
102433
- }
102434
- },
102435
- "inheritedFrom": {
102436
- "name": "SbbIconNameMixin",
102437
- "module": "icon/icon-name-mixin.js"
102392
+ "name": "SbbElement",
102393
+ "module": "core/base-elements/element.js"
102438
102394
  }
102439
102395
  },
102440
102396
  {
102441
- "kind": "method",
102442
- "name": "_renderIconName",
102443
- "privacy": "private",
102444
- "return": {
102445
- "type": {
102446
- "text": "string"
102447
- }
102397
+ "kind": "field",
102398
+ "name": "['_$sbbElement$']",
102399
+ "type": {
102400
+ "text": "boolean"
102448
102401
  },
102402
+ "privacy": "public",
102403
+ "static": true,
102404
+ "default": "true",
102449
102405
  "inheritedFrom": {
102450
- "name": "SbbIconNameMixin",
102451
- "module": "icon/icon-name-mixin.js"
102406
+ "name": "SbbElement",
102407
+ "module": "core/base-elements/element.js"
102452
102408
  }
102453
102409
  },
102454
102410
  {
102455
102411
  "kind": "field",
102456
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
102412
+ "name": "_controllers",
102457
102413
  "type": {
102458
- "text": "array"
102414
+ "text": "Set<SbbReactiveController> | undefined"
102459
102415
  },
102460
102416
  "privacy": "private",
102461
- "readonly": true,
102462
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
102463
102417
  "inheritedFrom": {
102464
- "name": "SbbButtonBaseElement",
102465
- "module": "core/base-elements/button-base-element.js"
102418
+ "name": "SbbElement",
102419
+ "module": "core/base-elements/element.js"
102466
102420
  }
102467
- },
102421
+ }
102422
+ ],
102423
+ "mixins": [
102468
102424
  {
102469
- "kind": "field",
102470
- "name": "value",
102471
- "type": {
102472
- "text": "string"
102473
- },
102474
- "privacy": "public",
102475
- "inheritedFrom": {
102476
- "name": "SbbButtonBaseElement",
102477
- "module": "core/base-elements/button-base-element.js"
102478
- },
102479
- "default": "''",
102480
- "description": "Value of the form element.",
102481
- "attribute": "value"
102425
+ "name": "SbbDisabledTabIndexActionMixin",
102426
+ "module": "core/mixins.js"
102482
102427
  },
102483
102428
  {
102484
- "kind": "field",
102485
- "name": "type",
102486
- "privacy": "public",
102487
- "description": "The type attribute to use for the button.",
102488
- "default": "'button'",
102429
+ "name": "SbbMenuActionCommonElementMixin",
102430
+ "module": "menu/common/menu-action-common.js"
102431
+ }
102432
+ ],
102433
+ "superclass": {
102434
+ "name": "SbbButtonBaseElement",
102435
+ "module": "core/base-elements.js"
102436
+ },
102437
+ "tagName": "sbb-menu-button",
102438
+ "customElement": true,
102439
+ "attributes": [
102440
+ {
102441
+ "name": "disabled-interactive",
102489
102442
  "type": {
102490
- "text": "SbbButtonType"
102443
+ "text": "boolean"
102491
102444
  },
102492
- "attribute": "type",
102445
+ "default": "false",
102446
+ "description": "Whether the button should be aria-disabled but stay interactive.",
102447
+ "fieldName": "disabledInteractive",
102493
102448
  "inheritedFrom": {
102494
- "name": "SbbButtonBaseElement",
102495
- "module": "core/base-elements/button-base-element.js"
102449
+ "name": "SbbDisabledInteractiveMixin",
102450
+ "module": "core/mixins/disabled-mixin.js"
102496
102451
  }
102497
102452
  },
102498
102453
  {
102499
- "kind": "field",
102500
- "name": "form",
102454
+ "name": "disabled",
102455
+ "description": "Whether the component is disabled.",
102456
+ "default": "false",
102501
102457
  "type": {
102502
- "text": "HTMLFormElement | null"
102458
+ "text": "boolean"
102503
102459
  },
102504
- "privacy": "public",
102505
- "description": "The `<form>` element to associate the button with.",
102460
+ "fieldName": "disabled",
102506
102461
  "inheritedFrom": {
102507
- "name": "SbbButtonBaseElement",
102508
- "module": "core/base-elements/button-base-element.js"
102509
- },
102510
- "attribute": "form"
102462
+ "name": "SbbDisabledMixin",
102463
+ "module": "core/mixins/disabled-mixin.js"
102464
+ }
102511
102465
  },
102512
102466
  {
102513
- "kind": "field",
102514
- "name": "_formId",
102467
+ "name": "icon-name",
102515
102468
  "type": {
102516
102469
  "text": "string"
102517
102470
  },
102518
- "privacy": "private",
102519
102471
  "default": "''",
102472
+ "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.",
102473
+ "fieldName": "iconName",
102520
102474
  "inheritedFrom": {
102521
- "name": "SbbButtonBaseElement",
102522
- "module": "core/base-elements/button-base-element.js"
102523
- }
102524
- },
102525
- {
102526
- "kind": "field",
102527
- "name": "_handleButtonClick",
102528
- "privacy": "private",
102529
- "inheritedFrom": {
102530
- "name": "SbbButtonBaseElement",
102531
- "module": "core/base-elements/button-base-element.js"
102475
+ "name": "SbbIconNameMixin",
102476
+ "module": "icon/icon-name-mixin.js"
102532
102477
  }
102533
102478
  },
102534
102479
  {
102535
- "kind": "method",
102536
- "name": "_requestSubmit",
102537
- "privacy": "private",
102538
- "return": {
102539
- "type": {
102540
- "text": "void"
102541
- }
102480
+ "name": "value",
102481
+ "type": {
102482
+ "text": "string"
102542
102483
  },
102543
- "parameters": [
102544
- {
102545
- "name": "form",
102546
- "type": {
102547
- "text": "HTMLFormElement"
102548
- }
102549
- }
102550
- ],
102484
+ "default": "''",
102485
+ "description": "Value of the form element.",
102486
+ "fieldName": "value",
102551
102487
  "inheritedFrom": {
102552
102488
  "name": "SbbButtonBaseElement",
102553
102489
  "module": "core/base-elements/button-base-element.js"
102554
102490
  }
102555
102491
  },
102556
102492
  {
102557
- "kind": "field",
102558
- "name": "_formKeyDown",
102559
- "privacy": "private",
102493
+ "name": "type",
102494
+ "description": "The type attribute to use for the button.",
102495
+ "default": "'button'",
102496
+ "type": {
102497
+ "text": "SbbButtonType"
102498
+ },
102499
+ "fieldName": "type",
102560
102500
  "inheritedFrom": {
102561
102501
  "name": "SbbButtonBaseElement",
102562
102502
  "module": "core/base-elements/button-base-element.js"
102563
102503
  }
102564
102504
  },
102565
102505
  {
102566
- "kind": "field",
102567
- "name": "formAssociated",
102506
+ "name": "form",
102507
+ "description": "The `<form>` element to associate the button with.",
102568
102508
  "type": {
102569
- "text": "boolean"
102509
+ "text": "HTMLFormElement | null"
102570
102510
  },
102571
- "privacy": "public",
102572
- "static": true,
102573
- "default": "true",
102511
+ "fieldName": "form",
102574
102512
  "inheritedFrom": {
102575
- "name": "SbbFormAssociatedMixin",
102576
- "module": "core/mixins/form-associated-mixin.js"
102513
+ "name": "SbbButtonBaseElement",
102514
+ "module": "core/base-elements/button-base-element.js"
102577
102515
  }
102578
102516
  },
102579
102517
  {
102580
- "kind": "field",
102581
102518
  "name": "name",
102582
- "privacy": "public",
102583
102519
  "description": "Name of the form element. Will be read from name attribute.",
102584
102520
  "type": {
102585
102521
  "text": "string"
102586
102522
  },
102587
- "attribute": "name",
102523
+ "fieldName": "name",
102588
102524
  "inheritedFrom": {
102589
102525
  "name": "SbbFormAssociatedMixin",
102590
102526
  "module": "core/mixins/form-associated-mixin.js"
102591
102527
  }
102528
+ }
102529
+ ]
102530
+ }
102531
+ ],
102532
+ "exports": [
102533
+ {
102534
+ "kind": "js",
102535
+ "name": "SbbMenuButtonElement",
102536
+ "declaration": {
102537
+ "name": "SbbMenuButtonElement",
102538
+ "module": "menu/menu-button/menu-button.component.js"
102539
+ }
102540
+ }
102541
+ ]
102542
+ },
102543
+ {
102544
+ "kind": "javascript-module",
102545
+ "path": "menu/menu-link/menu-link.component.js",
102546
+ "declarations": [
102547
+ {
102548
+ "kind": "class",
102549
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
102550
+ "name": "SbbMenuLinkElement",
102551
+ "cssProperties": [
102552
+ {
102553
+ "description": "Can be used to modify horizontal padding.",
102554
+ "name": "--sbb-menu-action-outer-horizontal-padding",
102555
+ "default": "var(--sbb-spacing-fixed-3x)"
102556
+ }
102557
+ ],
102558
+ "slots": [
102559
+ {
102560
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
102561
+ "name": ""
102592
102562
  },
102563
+ {
102564
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
102565
+ "name": "icon"
102566
+ }
102567
+ ],
102568
+ "members": [
102593
102569
  {
102594
102570
  "kind": "field",
102595
- "name": "validity",
102571
+ "name": "elementName",
102596
102572
  "type": {
102597
- "text": "ValidityState"
102573
+ "text": "string"
102598
102574
  },
102599
102575
  "privacy": "public",
102600
- "description": "Returns the ValidityState object for this element.",
102576
+ "static": true,
102601
102577
  "readonly": true,
102602
102578
  "inheritedFrom": {
102603
- "name": "SbbFormAssociatedMixin",
102604
- "module": "core/mixins/form-associated-mixin.js"
102605
- }
102579
+ "name": "SbbElement",
102580
+ "module": "core/base-elements/element.js"
102581
+ },
102582
+ "default": "'sbb-menu-link'"
102606
102583
  },
102607
102584
  {
102608
102585
  "kind": "field",
102609
- "name": "validationMessage",
102586
+ "name": "anchorRole",
102610
102587
  "type": {
102611
102588
  "text": "string"
102612
102589
  },
102613
- "privacy": "public",
102614
- "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.",
102590
+ "privacy": "protected",
102615
102591
  "readonly": true,
102592
+ "default": "'menuitem'",
102616
102593
  "inheritedFrom": {
102617
- "name": "SbbFormAssociatedMixin",
102618
- "module": "core/mixins/form-associated-mixin.js"
102594
+ "name": "SbbLinkBaseElement",
102595
+ "module": "core/base-elements/link-base-element.js"
102619
102596
  }
102620
102597
  },
102621
102598
  {
102622
102599
  "kind": "field",
102623
- "name": "willValidate",
102600
+ "name": "disabledInteractive",
102624
102601
  "type": {
102625
102602
  "text": "boolean"
102626
102603
  },
102627
102604
  "privacy": "public",
102628
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
102629
- "readonly": true,
102630
- "inheritedFrom": {
102631
- "name": "SbbFormAssociatedMixin",
102632
- "module": "core/mixins/form-associated-mixin.js"
102633
- }
102634
- },
102635
- {
102636
- "kind": "field",
102637
- "name": "_validityStates",
102638
- "privacy": "private",
102639
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
102605
+ "default": "false",
102606
+ "description": "Whether the button should be aria-disabled but stay interactive.",
102607
+ "attribute": "disabled-interactive",
102608
+ "reflects": true,
102640
102609
  "inheritedFrom": {
102641
- "name": "SbbFormAssociatedMixin",
102642
- "module": "core/mixins/form-associated-mixin.js"
102610
+ "name": "SbbDisabledInteractiveMixin",
102611
+ "module": "core/mixins/disabled-mixin.js"
102643
102612
  }
102644
102613
  },
102645
102614
  {
102646
102615
  "kind": "field",
102647
- "name": "formDisabled",
102616
+ "name": "styles",
102648
102617
  "type": {
102649
- "text": "boolean"
102618
+ "text": "CSSResultGroup"
102650
102619
  },
102651
- "privacy": "protected",
102652
- "default": "false",
102653
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
102620
+ "privacy": "public",
102621
+ "static": true,
102622
+ "default": "[boxSizingStyles, style]",
102654
102623
  "inheritedFrom": {
102655
- "name": "SbbFormAssociatedMixin",
102656
- "module": "core/mixins/form-associated-mixin.js"
102624
+ "name": "SbbMenuActionCommonElementMixin",
102625
+ "module": "menu/common/menu-action-common.js"
102657
102626
  }
102658
102627
  },
102659
102628
  {
102660
102629
  "kind": "method",
102661
- "name": "checkValidity",
102662
- "privacy": "public",
102630
+ "name": "renderTemplate",
102631
+ "privacy": "protected",
102663
102632
  "return": {
102664
102633
  "type": {
102665
- "text": "boolean"
102634
+ "text": "TemplateResult"
102666
102635
  }
102667
102636
  },
102668
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
102637
+ "description": "Override this method to render the component template.",
102669
102638
  "inheritedFrom": {
102670
- "name": "SbbFormAssociatedMixin",
102671
- "module": "core/mixins/form-associated-mixin.js"
102639
+ "name": "SbbActionBaseElement",
102640
+ "module": "core/base-elements/action-base-element.js"
102672
102641
  }
102673
102642
  },
102674
102643
  {
102675
- "kind": "method",
102676
- "name": "reportValidity",
102677
- "privacy": "public",
102678
- "return": {
102679
- "type": {
102680
- "text": "boolean"
102681
- }
102644
+ "kind": "field",
102645
+ "name": "iconName",
102646
+ "type": {
102647
+ "text": "string"
102682
102648
  },
102683
- "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.",
102649
+ "privacy": "public",
102650
+ "default": "''",
102651
+ "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.",
102652
+ "attribute": "icon-name",
102684
102653
  "inheritedFrom": {
102685
- "name": "SbbFormAssociatedMixin",
102686
- "module": "core/mixins/form-associated-mixin.js"
102654
+ "name": "SbbIconNameMixin",
102655
+ "module": "icon/icon-name-mixin.js"
102687
102656
  }
102688
102657
  },
102689
102658
  {
102690
102659
  "kind": "method",
102691
- "name": "setCustomValidity",
102692
- "privacy": "public",
102660
+ "name": "renderIconSlot",
102661
+ "privacy": "protected",
102693
102662
  "return": {
102694
102663
  "type": {
102695
- "text": "void"
102664
+ "text": "TemplateResult"
102696
102665
  }
102697
102666
  },
102698
102667
  "parameters": [
102699
102668
  {
102700
- "name": "message",
102669
+ "name": "classname",
102670
+ "optional": true,
102701
102671
  "type": {
102702
102672
  "text": "string"
102703
102673
  }
102704
102674
  }
102705
102675
  ],
102706
- "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.",
102707
102676
  "inheritedFrom": {
102708
- "name": "SbbFormAssociatedMixin",
102709
- "module": "core/mixins/form-associated-mixin.js"
102677
+ "name": "SbbIconNameMixin",
102678
+ "module": "icon/icon-name-mixin.js"
102710
102679
  }
102711
102680
  },
102712
102681
  {
102713
102682
  "kind": "method",
102714
- "name": "_hasDisabledAncestor",
102715
- "privacy": "private",
102683
+ "name": "renderIconName",
102684
+ "privacy": "protected",
102716
102685
  "return": {
102717
102686
  "type": {
102718
- "text": "boolean"
102687
+ "text": "string"
102719
102688
  }
102720
102689
  },
102721
102690
  "inheritedFrom": {
102722
- "name": "SbbFormAssociatedMixin",
102723
- "module": "core/mixins/form-associated-mixin.js"
102691
+ "name": "SbbIconNameMixin",
102692
+ "module": "icon/icon-name-mixin.js"
102724
102693
  }
102725
102694
  },
102726
102695
  {
102727
102696
  "kind": "method",
102728
- "name": "updateFormValue",
102729
- "privacy": "protected",
102697
+ "name": "_renderIconName",
102698
+ "privacy": "private",
102730
102699
  "return": {
102731
102700
  "type": {
102732
- "text": "void"
102701
+ "text": "string"
102733
102702
  }
102734
102703
  },
102735
- "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",
102736
102704
  "inheritedFrom": {
102737
- "name": "SbbFormAssociatedMixin",
102738
- "module": "core/mixins/form-associated-mixin.js"
102705
+ "name": "SbbIconNameMixin",
102706
+ "module": "icon/icon-name-mixin.js"
102739
102707
  }
102740
102708
  },
102741
102709
  {
102742
- "kind": "method",
102743
- "name": "formState",
102744
- "privacy": "protected",
102745
- "return": {
102746
- "type": {
102747
- "text": "FormRestoreState"
102748
- }
102710
+ "kind": "field",
102711
+ "name": "disabled",
102712
+ "privacy": "public",
102713
+ "description": "Whether the component is disabled.",
102714
+ "default": "false",
102715
+ "type": {
102716
+ "text": "boolean"
102749
102717
  },
102718
+ "attribute": "disabled",
102719
+ "reflects": true,
102750
102720
  "inheritedFrom": {
102751
- "name": "SbbFormAssociatedMixin",
102752
- "module": "core/mixins/form-associated-mixin.js"
102721
+ "name": "SbbDisabledMixin",
102722
+ "module": "core/mixins/disabled-mixin.js"
102723
+ }
102724
+ },
102725
+ {
102726
+ "kind": "field",
102727
+ "name": "#disabled",
102728
+ "privacy": "private",
102729
+ "type": {
102730
+ "text": "boolean"
102731
+ },
102732
+ "default": "false",
102733
+ "inheritedFrom": {
102734
+ "name": "SbbDisabledMixin",
102735
+ "module": "core/mixins/disabled-mixin.js"
102753
102736
  }
102754
102737
  },
102755
102738
  {
102756
102739
  "kind": "method",
102757
- "name": "setValidityFlag",
102740
+ "name": "isDisabledExternally",
102758
102741
  "privacy": "protected",
102759
102742
  "return": {
102760
102743
  "type": {
102761
- "text": "void"
102744
+ "text": "boolean"
102762
102745
  }
102763
102746
  },
102764
- "parameters": [
102765
- {
102766
- "name": "flag",
102767
- "type": {
102768
- "text": "T"
102769
- }
102770
- },
102771
- {
102772
- "name": "message",
102773
- "type": {
102774
- "text": "string"
102775
- }
102776
- },
102777
- {
102778
- "name": "flagValue",
102779
- "optional": true,
102780
- "type": {
102781
- "text": "ValidityStateFlags[T]"
102782
- }
102783
- }
102784
- ],
102785
- "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).",
102747
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
102748
+ "inheritedFrom": {
102749
+ "name": "SbbDisabledMixin",
102750
+ "module": "core/mixins/disabled-mixin.js"
102751
+ }
102752
+ },
102753
+ {
102754
+ "kind": "field",
102755
+ "name": "href",
102756
+ "type": {
102757
+ "text": "string"
102758
+ },
102759
+ "privacy": "public",
102760
+ "default": "''",
102761
+ "description": "The href value you want to link to.",
102762
+ "attribute": "href",
102763
+ "reflects": true,
102764
+ "inheritedFrom": {
102765
+ "name": "SbbLinkBaseElement",
102766
+ "module": "core/base-elements/link-base-element.js"
102767
+ }
102768
+ },
102769
+ {
102770
+ "kind": "field",
102771
+ "name": "target",
102772
+ "type": {
102773
+ "text": "LinkTargetType | string"
102774
+ },
102775
+ "privacy": "public",
102776
+ "default": "''",
102777
+ "description": "Where to display the linked URL.",
102778
+ "attribute": "target",
102779
+ "reflects": true,
102786
102780
  "inheritedFrom": {
102787
- "name": "SbbFormAssociatedMixin",
102788
- "module": "core/mixins/form-associated-mixin.js"
102781
+ "name": "SbbLinkBaseElement",
102782
+ "module": "core/base-elements/link-base-element.js"
102789
102783
  }
102790
102784
  },
102791
102785
  {
102792
- "kind": "method",
102793
- "name": "removeValidityFlag",
102794
- "privacy": "protected",
102795
- "return": {
102796
- "type": {
102797
- "text": "void"
102798
- }
102786
+ "kind": "field",
102787
+ "name": "rel",
102788
+ "type": {
102789
+ "text": "string"
102799
102790
  },
102800
- "parameters": [
102801
- {
102802
- "name": "flag",
102803
- "type": {
102804
- "text": "T"
102805
- }
102806
- }
102807
- ],
102808
- "description": "Removes the validity state flag entry and updates validity state.",
102791
+ "privacy": "public",
102792
+ "default": "''",
102793
+ "description": "The relationship of the linked URL as space-separated link types.",
102794
+ "attribute": "rel",
102795
+ "reflects": true,
102809
102796
  "inheritedFrom": {
102810
- "name": "SbbFormAssociatedMixin",
102811
- "module": "core/mixins/form-associated-mixin.js"
102797
+ "name": "SbbLinkBaseElement",
102798
+ "module": "core/base-elements/link-base-element.js"
102812
102799
  }
102813
102800
  },
102814
102801
  {
102815
- "kind": "method",
102816
- "name": "validate",
102817
- "privacy": "protected",
102818
- "return": {
102819
- "type": {
102820
- "text": "void"
102821
- }
102802
+ "kind": "field",
102803
+ "name": "download",
102804
+ "type": {
102805
+ "text": "boolean"
102822
102806
  },
102823
- "description": "To be called whenever the current element needs to be validated.",
102807
+ "privacy": "public",
102808
+ "default": "false",
102809
+ "description": "Whether the browser will show the download dialog on click.",
102810
+ "attribute": "download",
102811
+ "reflects": true,
102824
102812
  "inheritedFrom": {
102825
- "name": "SbbFormAssociatedMixin",
102826
- "module": "core/mixins/form-associated-mixin.js"
102813
+ "name": "SbbLinkBaseElement",
102814
+ "module": "core/base-elements/link-base-element.js"
102827
102815
  }
102828
102816
  },
102829
102817
  {
102830
- "kind": "method",
102831
- "name": "shouldValidate",
102832
- "privacy": "protected",
102833
- "return": {
102834
- "type": {
102835
- "text": "boolean"
102836
- }
102818
+ "kind": "field",
102819
+ "name": "accessibilityLabel",
102820
+ "type": {
102821
+ "text": "string"
102837
102822
  },
102838
- "parameters": [
102839
- {
102840
- "name": "name",
102841
- "type": {
102842
- "text": "PropertyKey | undefined"
102843
- }
102844
- }
102845
- ],
102846
- "description": "Whether validation should be run on a property change with the given name.",
102823
+ "privacy": "public",
102824
+ "default": "''",
102825
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
102826
+ "attribute": "accessibility-label",
102847
102827
  "inheritedFrom": {
102848
- "name": "SbbFormAssociatedMixin",
102849
- "module": "core/mixins/form-associated-mixin.js"
102828
+ "name": "SbbLinkBaseElement",
102829
+ "module": "core/base-elements/link-base-element.js"
102850
102830
  }
102851
102831
  },
102852
102832
  {
102853
- "kind": "method",
102854
- "name": "_setInternalValidity",
102855
- "privacy": "private",
102856
- "return": {
102857
- "type": {
102858
- "text": "void"
102859
- }
102833
+ "kind": "field",
102834
+ "name": "accessibilityCurrent",
102835
+ "type": {
102836
+ "text": "string"
102860
102837
  },
102838
+ "privacy": "public",
102839
+ "default": "''",
102840
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
102841
+ "attribute": "accessibility-current",
102861
102842
  "inheritedFrom": {
102862
- "name": "SbbFormAssociatedMixin",
102863
- "module": "core/mixins/form-associated-mixin.js"
102843
+ "name": "SbbLinkBaseElement",
102844
+ "module": "core/base-elements/link-base-element.js"
102864
102845
  }
102865
102846
  },
102866
102847
  {
102867
102848
  "kind": "field",
102868
- "name": "_preventScrollOnSpaceKeydown",
102869
- "privacy": "private",
102870
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
102871
- "parameters": [
102872
- {
102873
- "description": "The origin event.",
102874
- "name": "event"
102875
- }
102876
- ],
102849
+ "name": "language",
102850
+ "privacy": "protected",
102851
+ "default": "new SbbLanguageController(this)",
102877
102852
  "inheritedFrom": {
102878
- "name": "SbbButtonLikeBaseElement",
102879
- "module": "core/base-elements/button-base-element.js"
102853
+ "name": "SbbLinkBaseElement",
102854
+ "module": "core/base-elements/link-base-element.js"
102880
102855
  }
102881
102856
  },
102882
102857
  {
102883
102858
  "kind": "field",
102884
- "name": "_removeActiveMarker",
102859
+ "name": "_evaluateRelAttribute",
102885
102860
  "privacy": "private",
102886
102861
  "inheritedFrom": {
102887
- "name": "SbbButtonLikeBaseElement",
102888
- "module": "core/base-elements/button-base-element.js"
102862
+ "name": "SbbLinkBaseElement",
102863
+ "module": "core/base-elements/link-base-element.js"
102889
102864
  }
102890
102865
  },
102891
102866
  {
102892
- "kind": "field",
102893
- "name": "_dispatchClickEventOnSpaceKeyup",
102894
- "privacy": "private",
102895
- "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.",
102867
+ "kind": "method",
102868
+ "name": "renderLink",
102869
+ "privacy": "protected",
102870
+ "return": {
102871
+ "type": {
102872
+ "text": "TemplateResult"
102873
+ }
102874
+ },
102896
102875
  "parameters": [
102897
102876
  {
102898
- "description": "The origin event.",
102899
- "name": "event"
102877
+ "name": "renderContent",
102878
+ "type": {
102879
+ "text": "TemplateResult"
102880
+ }
102900
102881
  }
102901
102882
  ],
102902
102883
  "inheritedFrom": {
102903
- "name": "SbbButtonLikeBaseElement",
102904
- "module": "core/base-elements/button-base-element.js"
102905
- }
102906
- },
102907
- {
102908
- "kind": "field",
102909
- "name": "_dispatchClickEvent",
102910
- "privacy": "private",
102911
- "inheritedFrom": {
102912
- "name": "SbbButtonLikeBaseElement",
102913
- "module": "core/base-elements/button-base-element.js"
102884
+ "name": "SbbLinkBaseElement",
102885
+ "module": "core/base-elements/link-base-element.js"
102914
102886
  }
102915
102887
  },
102916
102888
  {
@@ -103061,7 +103033,7 @@
103061
103033
  ],
103062
103034
  "mixins": [
103063
103035
  {
103064
- "name": "SbbDisabledTabIndexActionMixin",
103036
+ "name": "SbbDisabledInteractiveMixin",
103065
103037
  "module": "core/mixins.js"
103066
103038
  },
103067
103039
  {
@@ -103070,10 +103042,10 @@
103070
103042
  }
103071
103043
  ],
103072
103044
  "superclass": {
103073
- "name": "SbbButtonBaseElement",
103045
+ "name": "SbbLinkBaseElement",
103074
103046
  "module": "core/base-elements.js"
103075
103047
  },
103076
- "tagName": "sbb-menu-button",
103048
+ "tagName": "sbb-menu-link",
103077
103049
  "customElement": true,
103078
103050
  "attributes": [
103079
103051
  {
@@ -103089,6 +103061,19 @@
103089
103061
  "module": "core/mixins/disabled-mixin.js"
103090
103062
  }
103091
103063
  },
103064
+ {
103065
+ "name": "icon-name",
103066
+ "type": {
103067
+ "text": "string"
103068
+ },
103069
+ "default": "''",
103070
+ "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.",
103071
+ "fieldName": "iconName",
103072
+ "inheritedFrom": {
103073
+ "name": "SbbIconNameMixin",
103074
+ "module": "icon/icon-name-mixin.js"
103075
+ }
103076
+ },
103092
103077
  {
103093
103078
  "name": "disabled",
103094
103079
  "description": "Whether the component is disabled.",
@@ -103103,66 +103088,81 @@
103103
103088
  }
103104
103089
  },
103105
103090
  {
103106
- "name": "icon-name",
103091
+ "name": "href",
103107
103092
  "type": {
103108
103093
  "text": "string"
103109
103094
  },
103110
103095
  "default": "''",
103111
- "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.",
103112
- "fieldName": "iconName",
103096
+ "description": "The href value you want to link to.",
103097
+ "fieldName": "href",
103113
103098
  "inheritedFrom": {
103114
- "name": "SbbIconNameMixin",
103115
- "module": "icon/icon-name-mixin.js"
103099
+ "name": "SbbLinkBaseElement",
103100
+ "module": "core/base-elements/link-base-element.js"
103116
103101
  }
103117
103102
  },
103118
103103
  {
103119
- "name": "value",
103104
+ "name": "target",
103105
+ "type": {
103106
+ "text": "LinkTargetType | string"
103107
+ },
103108
+ "default": "''",
103109
+ "description": "Where to display the linked URL.",
103110
+ "fieldName": "target",
103111
+ "inheritedFrom": {
103112
+ "name": "SbbLinkBaseElement",
103113
+ "module": "core/base-elements/link-base-element.js"
103114
+ }
103115
+ },
103116
+ {
103117
+ "name": "rel",
103120
103118
  "type": {
103121
103119
  "text": "string"
103122
103120
  },
103123
103121
  "default": "''",
103124
- "description": "Value of the form element.",
103125
- "fieldName": "value",
103122
+ "description": "The relationship of the linked URL as space-separated link types.",
103123
+ "fieldName": "rel",
103126
103124
  "inheritedFrom": {
103127
- "name": "SbbButtonBaseElement",
103128
- "module": "core/base-elements/button-base-element.js"
103125
+ "name": "SbbLinkBaseElement",
103126
+ "module": "core/base-elements/link-base-element.js"
103129
103127
  }
103130
103128
  },
103131
103129
  {
103132
- "name": "type",
103133
- "description": "The type attribute to use for the button.",
103134
- "default": "'button'",
103130
+ "name": "download",
103135
103131
  "type": {
103136
- "text": "SbbButtonType"
103132
+ "text": "boolean"
103137
103133
  },
103138
- "fieldName": "type",
103134
+ "default": "false",
103135
+ "description": "Whether the browser will show the download dialog on click.",
103136
+ "fieldName": "download",
103139
103137
  "inheritedFrom": {
103140
- "name": "SbbButtonBaseElement",
103141
- "module": "core/base-elements/button-base-element.js"
103138
+ "name": "SbbLinkBaseElement",
103139
+ "module": "core/base-elements/link-base-element.js"
103142
103140
  }
103143
103141
  },
103144
103142
  {
103145
- "name": "form",
103146
- "description": "The `<form>` element to associate the button with.",
103143
+ "name": "accessibility-label",
103147
103144
  "type": {
103148
- "text": "HTMLFormElement | null"
103145
+ "text": "string"
103149
103146
  },
103150
- "fieldName": "form",
103147
+ "default": "''",
103148
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
103149
+ "fieldName": "accessibilityLabel",
103151
103150
  "inheritedFrom": {
103152
- "name": "SbbButtonBaseElement",
103153
- "module": "core/base-elements/button-base-element.js"
103151
+ "name": "SbbLinkBaseElement",
103152
+ "module": "core/base-elements/link-base-element.js"
103154
103153
  }
103155
103154
  },
103156
103155
  {
103157
- "name": "name",
103158
- "description": "Name of the form element. Will be read from name attribute.",
103156
+ "name": "accessibility-current",
103159
103157
  "type": {
103160
103158
  "text": "string"
103161
103159
  },
103162
- "fieldName": "name",
103160
+ "default": "''",
103161
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
103162
+ "fieldName": "accessibilityCurrent",
103163
103163
  "inheritedFrom": {
103164
- "name": "SbbFormAssociatedMixin",
103165
- "module": "core/mixins/form-associated-mixin.js"
103164
+ "name": "SbbLinkBaseElement",
103165
+ "module": "core/base-elements/link-base-element.js"
103166
103166
  }
103167
103167
  }
103168
103168
  ]
@@ -103171,10 +103171,10 @@
103171
103171
  "exports": [
103172
103172
  {
103173
103173
  "kind": "js",
103174
- "name": "SbbMenuButtonElement",
103174
+ "name": "SbbMenuLinkElement",
103175
103175
  "declaration": {
103176
- "name": "SbbMenuButtonElement",
103177
- "module": "menu/menu-button/menu-button.component.js"
103176
+ "name": "SbbMenuLinkElement",
103177
+ "module": "menu/menu-link/menu-link.component.js"
103178
103178
  }
103179
103179
  }
103180
103180
  ]