@sbb-esta/lyne-elements-dev 4.7.0-dev.1773827807 → 4.8.0-dev.1773828081

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 +1988 -1988
  2. package/package.json +2 -2
@@ -13780,351 +13780,6 @@
13780
13780
  }
13781
13781
  ]
13782
13782
  },
13783
- {
13784
- "kind": "javascript-module",
13785
- "path": "journey-header/journey-header.component.js",
13786
- "declarations": [
13787
- {
13788
- "kind": "class",
13789
- "description": "Combined with the `sbb-journey-summary`, it displays the journey's detail.",
13790
- "name": "SbbJourneyHeaderElement",
13791
- "members": [
13792
- {
13793
- "kind": "field",
13794
- "name": "elementName",
13795
- "type": {
13796
- "text": "string"
13797
- },
13798
- "privacy": "public",
13799
- "static": true,
13800
- "readonly": true,
13801
- "default": "'sbb-journey-header'",
13802
- "inheritedFrom": {
13803
- "name": "SbbElement",
13804
- "module": "core/base-elements/element.js"
13805
- }
13806
- },
13807
- {
13808
- "kind": "field",
13809
- "name": "origin",
13810
- "type": {
13811
- "text": "string"
13812
- },
13813
- "privacy": "public",
13814
- "default": "''",
13815
- "description": "Origin location for the journey header.",
13816
- "attribute": "origin"
13817
- },
13818
- {
13819
- "kind": "field",
13820
- "name": "destination",
13821
- "type": {
13822
- "text": "string"
13823
- },
13824
- "privacy": "public",
13825
- "default": "''",
13826
- "description": "Destination location for the journey header.",
13827
- "attribute": "destination"
13828
- },
13829
- {
13830
- "kind": "field",
13831
- "name": "roundTrip",
13832
- "type": {
13833
- "text": "boolean"
13834
- },
13835
- "privacy": "public",
13836
- "default": "false",
13837
- "description": "Whether the journey is a round trip. If so, the icon changes to a round-trip one.",
13838
- "attribute": "round-trip"
13839
- },
13840
- {
13841
- "kind": "field",
13842
- "name": "size",
13843
- "type": {
13844
- "text": "JourneyHeaderSize"
13845
- },
13846
- "privacy": "public",
13847
- "description": "Journey header size, either s, m or l.",
13848
- "default": "'m' / 's' (lean)",
13849
- "attribute": "size",
13850
- "reflects": true
13851
- },
13852
- {
13853
- "kind": "field",
13854
- "name": "_language",
13855
- "privacy": "private",
13856
- "default": "new SbbLanguageController(this)"
13857
- },
13858
- {
13859
- "kind": "field",
13860
- "name": "level",
13861
- "type": {
13862
- "text": "SbbTitleLevel"
13863
- },
13864
- "privacy": "public",
13865
- "default": "'3'",
13866
- "description": "Title level",
13867
- "attribute": "level",
13868
- "reflects": true,
13869
- "inheritedFrom": {
13870
- "name": "SbbTitleBase",
13871
- "module": "title/title-base.js"
13872
- }
13873
- },
13874
- {
13875
- "kind": "field",
13876
- "name": "visualLevel",
13877
- "type": {
13878
- "text": "SbbTitleLevel | null"
13879
- },
13880
- "privacy": "public",
13881
- "default": "null",
13882
- "description": "Visual level for the title.",
13883
- "attribute": "visual-level",
13884
- "reflects": true,
13885
- "inheritedFrom": {
13886
- "name": "SbbTitleBase",
13887
- "module": "title/title-base.js"
13888
- }
13889
- },
13890
- {
13891
- "kind": "field",
13892
- "name": "negative",
13893
- "type": {
13894
- "text": "boolean"
13895
- },
13896
- "privacy": "public",
13897
- "default": "false",
13898
- "description": "Negative coloring variant flag.",
13899
- "attribute": "negative",
13900
- "reflects": true,
13901
- "inheritedFrom": {
13902
- "name": "SbbNegativeMixin",
13903
- "module": "core/mixins/negative-mixin.js"
13904
- }
13905
- },
13906
- {
13907
- "kind": "field",
13908
- "name": "role",
13909
- "type": {
13910
- "text": "string"
13911
- },
13912
- "privacy": "public",
13913
- "static": true,
13914
- "default": "'heading'",
13915
- "inheritedFrom": {
13916
- "name": "SbbTitleBase",
13917
- "module": "title/title-base.js"
13918
- }
13919
- },
13920
- {
13921
- "kind": "field",
13922
- "name": "_hydrationRequired",
13923
- "type": {
13924
- "text": "boolean"
13925
- },
13926
- "privacy": "private",
13927
- "default": "!!this.shadowRoot",
13928
- "inheritedFrom": {
13929
- "name": "SbbHydrationMixin",
13930
- "module": "core/mixins/hydration-mixin.js"
13931
- }
13932
- },
13933
- {
13934
- "kind": "field",
13935
- "name": "_hydrationComplete",
13936
- "privacy": "private",
13937
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
13938
- "inheritedFrom": {
13939
- "name": "SbbHydrationMixin",
13940
- "module": "core/mixins/hydration-mixin.js"
13941
- }
13942
- },
13943
- {
13944
- "kind": "field",
13945
- "name": "_resolveHydration",
13946
- "type": {
13947
- "text": "(hydrationRequired: boolean) => void"
13948
- },
13949
- "privacy": "private",
13950
- "inheritedFrom": {
13951
- "name": "SbbHydrationMixin",
13952
- "module": "core/mixins/hydration-mixin.js"
13953
- }
13954
- },
13955
- {
13956
- "kind": "field",
13957
- "name": "hydrationRequired",
13958
- "type": {
13959
- "text": "boolean"
13960
- },
13961
- "privacy": "protected",
13962
- "description": "Returns whether hydration is required and not completed.",
13963
- "readonly": true,
13964
- "inheritedFrom": {
13965
- "name": "SbbHydrationMixin",
13966
- "module": "core/mixins/hydration-mixin.js"
13967
- },
13968
- "default": "!!this.shadowRoot"
13969
- },
13970
- {
13971
- "kind": "method",
13972
- "name": "toggleState",
13973
- "privacy": "protected",
13974
- "return": {
13975
- "type": {
13976
- "text": "void"
13977
- }
13978
- },
13979
- "parameters": [
13980
- {
13981
- "name": "value",
13982
- "type": {
13983
- "text": "string"
13984
- }
13985
- },
13986
- {
13987
- "name": "force",
13988
- "optional": true,
13989
- "type": {
13990
- "text": "boolean"
13991
- }
13992
- }
13993
- ],
13994
- "inheritedFrom": {
13995
- "name": "SbbElementInternalsMixin",
13996
- "module": "core/mixins/element-internals-mixin.js"
13997
- }
13998
- },
13999
- {
14000
- "kind": "field",
14001
- "name": "['_$sbbElement$']",
14002
- "type": {
14003
- "text": "boolean"
14004
- },
14005
- "privacy": "public",
14006
- "static": true,
14007
- "default": "true",
14008
- "inheritedFrom": {
14009
- "name": "SbbElement",
14010
- "module": "core/base-elements/element.js"
14011
- }
14012
- },
14013
- {
14014
- "kind": "field",
14015
- "name": "_controllers",
14016
- "type": {
14017
- "text": "Set<SbbReactiveController> | undefined"
14018
- },
14019
- "privacy": "private",
14020
- "inheritedFrom": {
14021
- "name": "SbbElement",
14022
- "module": "core/base-elements/element.js"
14023
- }
14024
- }
14025
- ],
14026
- "attributes": [
14027
- {
14028
- "name": "origin",
14029
- "type": {
14030
- "text": "string"
14031
- },
14032
- "default": "''",
14033
- "description": "Origin location for the journey header.",
14034
- "fieldName": "origin"
14035
- },
14036
- {
14037
- "name": "destination",
14038
- "type": {
14039
- "text": "string"
14040
- },
14041
- "default": "''",
14042
- "description": "Destination location for the journey header.",
14043
- "fieldName": "destination"
14044
- },
14045
- {
14046
- "name": "round-trip",
14047
- "type": {
14048
- "text": "boolean"
14049
- },
14050
- "default": "false",
14051
- "description": "Whether the journey is a round trip. If so, the icon changes to a round-trip one.",
14052
- "fieldName": "roundTrip"
14053
- },
14054
- {
14055
- "name": "size",
14056
- "type": {
14057
- "text": "JourneyHeaderSize"
14058
- },
14059
- "description": "Journey header size, either s, m or l.",
14060
- "default": "'m' / 's' (lean)",
14061
- "fieldName": "size"
14062
- },
14063
- {
14064
- "name": "negative",
14065
- "type": {
14066
- "text": "boolean"
14067
- },
14068
- "default": "false",
14069
- "description": "Negative coloring variant flag.",
14070
- "fieldName": "negative",
14071
- "inheritedFrom": {
14072
- "name": "SbbNegativeMixin",
14073
- "module": "core/mixins/negative-mixin.js"
14074
- }
14075
- },
14076
- {
14077
- "name": "level",
14078
- "type": {
14079
- "text": "SbbTitleLevel"
14080
- },
14081
- "default": "'1'",
14082
- "description": "Title level",
14083
- "fieldName": "level",
14084
- "inheritedFrom": {
14085
- "name": "SbbTitleBase",
14086
- "module": "title/title-base.js"
14087
- }
14088
- },
14089
- {
14090
- "name": "visual-level",
14091
- "type": {
14092
- "text": "SbbTitleLevel | null"
14093
- },
14094
- "default": "null",
14095
- "description": "Visual level for the title.",
14096
- "fieldName": "visualLevel",
14097
- "inheritedFrom": {
14098
- "name": "SbbTitleBase",
14099
- "module": "title/title-base.js"
14100
- }
14101
- }
14102
- ],
14103
- "mixins": [
14104
- {
14105
- "name": "SbbNegativeMixin",
14106
- "module": "core/mixins.js"
14107
- }
14108
- ],
14109
- "superclass": {
14110
- "name": "SbbTitleBase",
14111
- "module": "title.js"
14112
- },
14113
- "tagName": "sbb-journey-header",
14114
- "customElement": true
14115
- }
14116
- ],
14117
- "exports": [
14118
- {
14119
- "kind": "js",
14120
- "name": "SbbJourneyHeaderElement",
14121
- "declaration": {
14122
- "name": "SbbJourneyHeaderElement",
14123
- "module": "journey-header/journey-header.component.js"
14124
- }
14125
- }
14126
- ]
14127
- },
14128
13783
  {
14129
13784
  "kind": "javascript-module",
14130
13785
  "path": "image/image.component.js",
@@ -14677,22 +14332,12 @@
14677
14332
  },
14678
14333
  {
14679
14334
  "kind": "javascript-module",
14680
- "path": "lead-container/lead-container.component.js",
14335
+ "path": "journey-header/journey-header.component.js",
14681
14336
  "declarations": [
14682
14337
  {
14683
14338
  "kind": "class",
14684
- "description": "The `sbb-lead-container` can be used for product pages to display a lead image and following content.",
14685
- "name": "SbbLeadContainerElement",
14686
- "slots": [
14687
- {
14688
- "description": "Use the unnamed slot to add any content to the container.",
14689
- "name": ""
14690
- },
14691
- {
14692
- "description": "Use the image slot to provide the lead image. `sbb-image`, `img` and `picture` elements are supported. For other elements the aspect ratio has to be set manually.",
14693
- "name": "image"
14694
- }
14695
- ],
14339
+ "description": "Combined with the `sbb-journey-summary`, it displays the journey's detail.",
14340
+ "name": "SbbJourneyHeaderElement",
14696
14341
  "members": [
14697
14342
  {
14698
14343
  "kind": "field",
@@ -14703,12 +14348,125 @@
14703
14348
  "privacy": "public",
14704
14349
  "static": true,
14705
14350
  "readonly": true,
14706
- "default": "'sbb-lead-container'",
14351
+ "default": "'sbb-journey-header'",
14707
14352
  "inheritedFrom": {
14708
14353
  "name": "SbbElement",
14709
14354
  "module": "core/base-elements/element.js"
14710
14355
  }
14711
14356
  },
14357
+ {
14358
+ "kind": "field",
14359
+ "name": "origin",
14360
+ "type": {
14361
+ "text": "string"
14362
+ },
14363
+ "privacy": "public",
14364
+ "default": "''",
14365
+ "description": "Origin location for the journey header.",
14366
+ "attribute": "origin"
14367
+ },
14368
+ {
14369
+ "kind": "field",
14370
+ "name": "destination",
14371
+ "type": {
14372
+ "text": "string"
14373
+ },
14374
+ "privacy": "public",
14375
+ "default": "''",
14376
+ "description": "Destination location for the journey header.",
14377
+ "attribute": "destination"
14378
+ },
14379
+ {
14380
+ "kind": "field",
14381
+ "name": "roundTrip",
14382
+ "type": {
14383
+ "text": "boolean"
14384
+ },
14385
+ "privacy": "public",
14386
+ "default": "false",
14387
+ "description": "Whether the journey is a round trip. If so, the icon changes to a round-trip one.",
14388
+ "attribute": "round-trip"
14389
+ },
14390
+ {
14391
+ "kind": "field",
14392
+ "name": "size",
14393
+ "type": {
14394
+ "text": "JourneyHeaderSize"
14395
+ },
14396
+ "privacy": "public",
14397
+ "description": "Journey header size, either s, m or l.",
14398
+ "default": "'m' / 's' (lean)",
14399
+ "attribute": "size",
14400
+ "reflects": true
14401
+ },
14402
+ {
14403
+ "kind": "field",
14404
+ "name": "_language",
14405
+ "privacy": "private",
14406
+ "default": "new SbbLanguageController(this)"
14407
+ },
14408
+ {
14409
+ "kind": "field",
14410
+ "name": "level",
14411
+ "type": {
14412
+ "text": "SbbTitleLevel"
14413
+ },
14414
+ "privacy": "public",
14415
+ "default": "'3'",
14416
+ "description": "Title level",
14417
+ "attribute": "level",
14418
+ "reflects": true,
14419
+ "inheritedFrom": {
14420
+ "name": "SbbTitleBase",
14421
+ "module": "title/title-base.js"
14422
+ }
14423
+ },
14424
+ {
14425
+ "kind": "field",
14426
+ "name": "visualLevel",
14427
+ "type": {
14428
+ "text": "SbbTitleLevel | null"
14429
+ },
14430
+ "privacy": "public",
14431
+ "default": "null",
14432
+ "description": "Visual level for the title.",
14433
+ "attribute": "visual-level",
14434
+ "reflects": true,
14435
+ "inheritedFrom": {
14436
+ "name": "SbbTitleBase",
14437
+ "module": "title/title-base.js"
14438
+ }
14439
+ },
14440
+ {
14441
+ "kind": "field",
14442
+ "name": "negative",
14443
+ "type": {
14444
+ "text": "boolean"
14445
+ },
14446
+ "privacy": "public",
14447
+ "default": "false",
14448
+ "description": "Negative coloring variant flag.",
14449
+ "attribute": "negative",
14450
+ "reflects": true,
14451
+ "inheritedFrom": {
14452
+ "name": "SbbNegativeMixin",
14453
+ "module": "core/mixins/negative-mixin.js"
14454
+ }
14455
+ },
14456
+ {
14457
+ "kind": "field",
14458
+ "name": "role",
14459
+ "type": {
14460
+ "text": "string"
14461
+ },
14462
+ "privacy": "public",
14463
+ "static": true,
14464
+ "default": "'heading'",
14465
+ "inheritedFrom": {
14466
+ "name": "SbbTitleBase",
14467
+ "module": "title/title-base.js"
14468
+ }
14469
+ },
14712
14470
  {
14713
14471
  "kind": "field",
14714
14472
  "name": "_hydrationRequired",
@@ -14815,42 +14573,284 @@
14815
14573
  }
14816
14574
  }
14817
14575
  ],
14818
- "superclass": {
14819
- "name": "SbbElement",
14820
- "module": "core/base-elements.js"
14821
- },
14822
- "tagName": "sbb-lead-container",
14823
- "customElement": true
14824
- }
14825
- ],
14826
- "exports": [
14827
- {
14828
- "kind": "js",
14829
- "name": "SbbLeadContainerElement",
14830
- "declaration": {
14831
- "name": "SbbLeadContainerElement",
14832
- "module": "lead-container/lead-container.component.js"
14833
- }
14834
- }
14835
- ]
14836
- },
14837
- {
14838
- "kind": "javascript-module",
14839
- "path": "link/block-link-button.js",
14840
- "declarations": [],
14841
- "exports": [
14842
- {
14843
- "kind": "js",
14844
- "name": "*",
14845
- "declaration": {
14846
- "name": "*",
14847
- "module": "link/block-link-button/block-link-button.component.js"
14848
- }
14849
- }
14850
- ]
14851
- },
14852
- {
14853
- "kind": "javascript-module",
14576
+ "attributes": [
14577
+ {
14578
+ "name": "origin",
14579
+ "type": {
14580
+ "text": "string"
14581
+ },
14582
+ "default": "''",
14583
+ "description": "Origin location for the journey header.",
14584
+ "fieldName": "origin"
14585
+ },
14586
+ {
14587
+ "name": "destination",
14588
+ "type": {
14589
+ "text": "string"
14590
+ },
14591
+ "default": "''",
14592
+ "description": "Destination location for the journey header.",
14593
+ "fieldName": "destination"
14594
+ },
14595
+ {
14596
+ "name": "round-trip",
14597
+ "type": {
14598
+ "text": "boolean"
14599
+ },
14600
+ "default": "false",
14601
+ "description": "Whether the journey is a round trip. If so, the icon changes to a round-trip one.",
14602
+ "fieldName": "roundTrip"
14603
+ },
14604
+ {
14605
+ "name": "size",
14606
+ "type": {
14607
+ "text": "JourneyHeaderSize"
14608
+ },
14609
+ "description": "Journey header size, either s, m or l.",
14610
+ "default": "'m' / 's' (lean)",
14611
+ "fieldName": "size"
14612
+ },
14613
+ {
14614
+ "name": "negative",
14615
+ "type": {
14616
+ "text": "boolean"
14617
+ },
14618
+ "default": "false",
14619
+ "description": "Negative coloring variant flag.",
14620
+ "fieldName": "negative",
14621
+ "inheritedFrom": {
14622
+ "name": "SbbNegativeMixin",
14623
+ "module": "core/mixins/negative-mixin.js"
14624
+ }
14625
+ },
14626
+ {
14627
+ "name": "level",
14628
+ "type": {
14629
+ "text": "SbbTitleLevel"
14630
+ },
14631
+ "default": "'1'",
14632
+ "description": "Title level",
14633
+ "fieldName": "level",
14634
+ "inheritedFrom": {
14635
+ "name": "SbbTitleBase",
14636
+ "module": "title/title-base.js"
14637
+ }
14638
+ },
14639
+ {
14640
+ "name": "visual-level",
14641
+ "type": {
14642
+ "text": "SbbTitleLevel | null"
14643
+ },
14644
+ "default": "null",
14645
+ "description": "Visual level for the title.",
14646
+ "fieldName": "visualLevel",
14647
+ "inheritedFrom": {
14648
+ "name": "SbbTitleBase",
14649
+ "module": "title/title-base.js"
14650
+ }
14651
+ }
14652
+ ],
14653
+ "mixins": [
14654
+ {
14655
+ "name": "SbbNegativeMixin",
14656
+ "module": "core/mixins.js"
14657
+ }
14658
+ ],
14659
+ "superclass": {
14660
+ "name": "SbbTitleBase",
14661
+ "module": "title.js"
14662
+ },
14663
+ "tagName": "sbb-journey-header",
14664
+ "customElement": true
14665
+ }
14666
+ ],
14667
+ "exports": [
14668
+ {
14669
+ "kind": "js",
14670
+ "name": "SbbJourneyHeaderElement",
14671
+ "declaration": {
14672
+ "name": "SbbJourneyHeaderElement",
14673
+ "module": "journey-header/journey-header.component.js"
14674
+ }
14675
+ }
14676
+ ]
14677
+ },
14678
+ {
14679
+ "kind": "javascript-module",
14680
+ "path": "lead-container/lead-container.component.js",
14681
+ "declarations": [
14682
+ {
14683
+ "kind": "class",
14684
+ "description": "The `sbb-lead-container` can be used for product pages to display a lead image and following content.",
14685
+ "name": "SbbLeadContainerElement",
14686
+ "slots": [
14687
+ {
14688
+ "description": "Use the unnamed slot to add any content to the container.",
14689
+ "name": ""
14690
+ },
14691
+ {
14692
+ "description": "Use the image slot to provide the lead image. `sbb-image`, `img` and `picture` elements are supported. For other elements the aspect ratio has to be set manually.",
14693
+ "name": "image"
14694
+ }
14695
+ ],
14696
+ "members": [
14697
+ {
14698
+ "kind": "field",
14699
+ "name": "elementName",
14700
+ "type": {
14701
+ "text": "string"
14702
+ },
14703
+ "privacy": "public",
14704
+ "static": true,
14705
+ "readonly": true,
14706
+ "default": "'sbb-lead-container'",
14707
+ "inheritedFrom": {
14708
+ "name": "SbbElement",
14709
+ "module": "core/base-elements/element.js"
14710
+ }
14711
+ },
14712
+ {
14713
+ "kind": "field",
14714
+ "name": "_hydrationRequired",
14715
+ "type": {
14716
+ "text": "boolean"
14717
+ },
14718
+ "privacy": "private",
14719
+ "default": "!!this.shadowRoot",
14720
+ "inheritedFrom": {
14721
+ "name": "SbbHydrationMixin",
14722
+ "module": "core/mixins/hydration-mixin.js"
14723
+ }
14724
+ },
14725
+ {
14726
+ "kind": "field",
14727
+ "name": "_hydrationComplete",
14728
+ "privacy": "private",
14729
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
14730
+ "inheritedFrom": {
14731
+ "name": "SbbHydrationMixin",
14732
+ "module": "core/mixins/hydration-mixin.js"
14733
+ }
14734
+ },
14735
+ {
14736
+ "kind": "field",
14737
+ "name": "_resolveHydration",
14738
+ "type": {
14739
+ "text": "(hydrationRequired: boolean) => void"
14740
+ },
14741
+ "privacy": "private",
14742
+ "inheritedFrom": {
14743
+ "name": "SbbHydrationMixin",
14744
+ "module": "core/mixins/hydration-mixin.js"
14745
+ }
14746
+ },
14747
+ {
14748
+ "kind": "field",
14749
+ "name": "hydrationRequired",
14750
+ "type": {
14751
+ "text": "boolean"
14752
+ },
14753
+ "privacy": "protected",
14754
+ "description": "Returns whether hydration is required and not completed.",
14755
+ "readonly": true,
14756
+ "inheritedFrom": {
14757
+ "name": "SbbHydrationMixin",
14758
+ "module": "core/mixins/hydration-mixin.js"
14759
+ },
14760
+ "default": "!!this.shadowRoot"
14761
+ },
14762
+ {
14763
+ "kind": "method",
14764
+ "name": "toggleState",
14765
+ "privacy": "protected",
14766
+ "return": {
14767
+ "type": {
14768
+ "text": "void"
14769
+ }
14770
+ },
14771
+ "parameters": [
14772
+ {
14773
+ "name": "value",
14774
+ "type": {
14775
+ "text": "string"
14776
+ }
14777
+ },
14778
+ {
14779
+ "name": "force",
14780
+ "optional": true,
14781
+ "type": {
14782
+ "text": "boolean"
14783
+ }
14784
+ }
14785
+ ],
14786
+ "inheritedFrom": {
14787
+ "name": "SbbElementInternalsMixin",
14788
+ "module": "core/mixins/element-internals-mixin.js"
14789
+ }
14790
+ },
14791
+ {
14792
+ "kind": "field",
14793
+ "name": "['_$sbbElement$']",
14794
+ "type": {
14795
+ "text": "boolean"
14796
+ },
14797
+ "privacy": "public",
14798
+ "static": true,
14799
+ "default": "true",
14800
+ "inheritedFrom": {
14801
+ "name": "SbbElement",
14802
+ "module": "core/base-elements/element.js"
14803
+ }
14804
+ },
14805
+ {
14806
+ "kind": "field",
14807
+ "name": "_controllers",
14808
+ "type": {
14809
+ "text": "Set<SbbReactiveController> | undefined"
14810
+ },
14811
+ "privacy": "private",
14812
+ "inheritedFrom": {
14813
+ "name": "SbbElement",
14814
+ "module": "core/base-elements/element.js"
14815
+ }
14816
+ }
14817
+ ],
14818
+ "superclass": {
14819
+ "name": "SbbElement",
14820
+ "module": "core/base-elements.js"
14821
+ },
14822
+ "tagName": "sbb-lead-container",
14823
+ "customElement": true
14824
+ }
14825
+ ],
14826
+ "exports": [
14827
+ {
14828
+ "kind": "js",
14829
+ "name": "SbbLeadContainerElement",
14830
+ "declaration": {
14831
+ "name": "SbbLeadContainerElement",
14832
+ "module": "lead-container/lead-container.component.js"
14833
+ }
14834
+ }
14835
+ ]
14836
+ },
14837
+ {
14838
+ "kind": "javascript-module",
14839
+ "path": "link/block-link-button.js",
14840
+ "declarations": [],
14841
+ "exports": [
14842
+ {
14843
+ "kind": "js",
14844
+ "name": "*",
14845
+ "declaration": {
14846
+ "name": "*",
14847
+ "module": "link/block-link-button/block-link-button.component.js"
14848
+ }
14849
+ }
14850
+ ]
14851
+ },
14852
+ {
14853
+ "kind": "javascript-module",
14854
14854
  "path": "link/block-link-static.js",
14855
14855
  "declarations": [],
14856
14856
  "exports": [
@@ -99837,440 +99837,6 @@
99837
99837
  }
99838
99838
  ]
99839
99839
  },
99840
- {
99841
- "kind": "javascript-module",
99842
- "path": "link/block-link-static/block-link-static.component.js",
99843
- "declarations": [
99844
- {
99845
- "kind": "class",
99846
- "description": "It displays a static link enhanced with the SBB Design.",
99847
- "name": "SbbBlockLinkStaticElement",
99848
- "slots": [
99849
- {
99850
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
99851
- "name": ""
99852
- },
99853
- {
99854
- "description": "Slot used to display the icon, if one is set.",
99855
- "name": "icon"
99856
- }
99857
- ],
99858
- "members": [
99859
- {
99860
- "kind": "field",
99861
- "name": "elementName",
99862
- "type": {
99863
- "text": "string"
99864
- },
99865
- "privacy": "public",
99866
- "static": true,
99867
- "readonly": true,
99868
- "inheritedFrom": {
99869
- "name": "SbbElement",
99870
- "module": "core/base-elements/element.js"
99871
- },
99872
- "default": "'sbb-block-link-static'"
99873
- },
99874
- {
99875
- "kind": "field",
99876
- "name": "styles",
99877
- "type": {
99878
- "text": "CSSResultGroup"
99879
- },
99880
- "privacy": "public",
99881
- "static": true,
99882
- "default": "[boxSizingStyles, style, blockStyle]",
99883
- "inheritedFrom": {
99884
- "name": "SbbLinkCommonElementMixin",
99885
- "module": "link/common/link-common.js"
99886
- }
99887
- },
99888
- {
99889
- "kind": "field",
99890
- "name": "iconPlacement",
99891
- "type": {
99892
- "text": "SbbIconPlacement"
99893
- },
99894
- "privacy": "public",
99895
- "default": "'start'",
99896
- "description": "Moves the icon to the end of the component if set to true.",
99897
- "attribute": "icon-placement",
99898
- "reflects": true,
99899
- "inheritedFrom": {
99900
- "name": "SbbBlockLinkCommonElementMixin",
99901
- "module": "link/common/block-link-common.js"
99902
- }
99903
- },
99904
- {
99905
- "kind": "method",
99906
- "name": "renderTemplate",
99907
- "privacy": "protected",
99908
- "return": {
99909
- "type": {
99910
- "text": "TemplateResult"
99911
- }
99912
- },
99913
- "description": "Override this method to render the component template.",
99914
- "inheritedFrom": {
99915
- "name": "SbbActionBaseElement",
99916
- "module": "core/base-elements/action-base-element.js"
99917
- }
99918
- },
99919
- {
99920
- "kind": "field",
99921
- "name": "size",
99922
- "type": {
99923
- "text": "SbbLinkSize"
99924
- },
99925
- "privacy": "public",
99926
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
99927
- "default": "'s' / 'xs' (lean)",
99928
- "attribute": "size",
99929
- "reflects": true,
99930
- "inheritedFrom": {
99931
- "name": "SbbLinkCommonElementMixin",
99932
- "module": "link/common/link-common.js"
99933
- }
99934
- },
99935
- {
99936
- "kind": "field",
99937
- "name": "iconName",
99938
- "type": {
99939
- "text": "string"
99940
- },
99941
- "privacy": "public",
99942
- "default": "''",
99943
- "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.",
99944
- "attribute": "icon-name",
99945
- "inheritedFrom": {
99946
- "name": "SbbIconNameMixin",
99947
- "module": "icon/icon-name-mixin.js"
99948
- }
99949
- },
99950
- {
99951
- "kind": "method",
99952
- "name": "renderIconSlot",
99953
- "privacy": "protected",
99954
- "return": {
99955
- "type": {
99956
- "text": "TemplateResult"
99957
- }
99958
- },
99959
- "parameters": [
99960
- {
99961
- "name": "classname",
99962
- "optional": true,
99963
- "type": {
99964
- "text": "string"
99965
- }
99966
- }
99967
- ],
99968
- "inheritedFrom": {
99969
- "name": "SbbIconNameMixin",
99970
- "module": "icon/icon-name-mixin.js"
99971
- }
99972
- },
99973
- {
99974
- "kind": "method",
99975
- "name": "renderIconName",
99976
- "privacy": "protected",
99977
- "return": {
99978
- "type": {
99979
- "text": "string"
99980
- }
99981
- },
99982
- "inheritedFrom": {
99983
- "name": "SbbIconNameMixin",
99984
- "module": "icon/icon-name-mixin.js"
99985
- }
99986
- },
99987
- {
99988
- "kind": "method",
99989
- "name": "_renderIconName",
99990
- "privacy": "private",
99991
- "return": {
99992
- "type": {
99993
- "text": "string"
99994
- }
99995
- },
99996
- "inheritedFrom": {
99997
- "name": "SbbIconNameMixin",
99998
- "module": "icon/icon-name-mixin.js"
99999
- }
100000
- },
100001
- {
100002
- "kind": "field",
100003
- "name": "disabled",
100004
- "privacy": "public",
100005
- "description": "Whether the component is disabled.",
100006
- "default": "false",
100007
- "type": {
100008
- "text": "boolean"
100009
- },
100010
- "attribute": "disabled",
100011
- "reflects": true,
100012
- "inheritedFrom": {
100013
- "name": "SbbDisabledMixin",
100014
- "module": "core/mixins/disabled-mixin.js"
100015
- }
100016
- },
100017
- {
100018
- "kind": "field",
100019
- "name": "#disabled",
100020
- "privacy": "private",
100021
- "type": {
100022
- "text": "boolean"
100023
- },
100024
- "default": "false",
100025
- "inheritedFrom": {
100026
- "name": "SbbDisabledMixin",
100027
- "module": "core/mixins/disabled-mixin.js"
100028
- }
100029
- },
100030
- {
100031
- "kind": "method",
100032
- "name": "isDisabledExternally",
100033
- "privacy": "protected",
100034
- "return": {
100035
- "type": {
100036
- "text": "boolean"
100037
- }
100038
- },
100039
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100040
- "inheritedFrom": {
100041
- "name": "SbbDisabledMixin",
100042
- "module": "core/mixins/disabled-mixin.js"
100043
- }
100044
- },
100045
- {
100046
- "kind": "field",
100047
- "name": "maybeDisabled",
100048
- "type": {
100049
- "text": "boolean | undefined"
100050
- },
100051
- "privacy": "protected",
100052
- "readonly": true,
100053
- "inheritedFrom": {
100054
- "name": "SbbActionBaseElement",
100055
- "module": "core/base-elements/action-base-element.js"
100056
- }
100057
- },
100058
- {
100059
- "kind": "field",
100060
- "name": "maybeDisabledInteractive",
100061
- "type": {
100062
- "text": "boolean | undefined"
100063
- },
100064
- "privacy": "protected",
100065
- "readonly": true,
100066
- "inheritedFrom": {
100067
- "name": "SbbActionBaseElement",
100068
- "module": "core/base-elements/action-base-element.js"
100069
- }
100070
- },
100071
- {
100072
- "kind": "method",
100073
- "name": "setupBaseEventHandlers",
100074
- "privacy": "protected",
100075
- "return": {
100076
- "type": {
100077
- "text": "void"
100078
- }
100079
- },
100080
- "inheritedFrom": {
100081
- "name": "SbbActionBaseElement",
100082
- "module": "core/base-elements/action-base-element.js"
100083
- }
100084
- },
100085
- {
100086
- "kind": "field",
100087
- "name": "_hydrationRequired",
100088
- "type": {
100089
- "text": "boolean"
100090
- },
100091
- "privacy": "private",
100092
- "default": "!!this.shadowRoot",
100093
- "inheritedFrom": {
100094
- "name": "SbbElement",
100095
- "module": "core/base-elements/element.js"
100096
- }
100097
- },
100098
- {
100099
- "kind": "field",
100100
- "name": "_hydrationComplete",
100101
- "privacy": "private",
100102
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
100103
- "inheritedFrom": {
100104
- "name": "SbbElement",
100105
- "module": "core/base-elements/element.js"
100106
- }
100107
- },
100108
- {
100109
- "kind": "field",
100110
- "name": "_resolveHydration",
100111
- "type": {
100112
- "text": "(hydrationRequired: boolean) => void"
100113
- },
100114
- "privacy": "private",
100115
- "inheritedFrom": {
100116
- "name": "SbbElement",
100117
- "module": "core/base-elements/element.js"
100118
- }
100119
- },
100120
- {
100121
- "kind": "field",
100122
- "name": "hydrationRequired",
100123
- "type": {
100124
- "text": "boolean"
100125
- },
100126
- "privacy": "protected",
100127
- "description": "Returns whether hydration is required and not completed.",
100128
- "readonly": true,
100129
- "inheritedFrom": {
100130
- "name": "SbbElement",
100131
- "module": "core/base-elements/element.js"
100132
- },
100133
- "default": "!!this.shadowRoot"
100134
- },
100135
- {
100136
- "kind": "method",
100137
- "name": "toggleState",
100138
- "privacy": "protected",
100139
- "return": {
100140
- "type": {
100141
- "text": "void"
100142
- }
100143
- },
100144
- "parameters": [
100145
- {
100146
- "name": "value",
100147
- "type": {
100148
- "text": "string"
100149
- }
100150
- },
100151
- {
100152
- "name": "force",
100153
- "optional": true,
100154
- "type": {
100155
- "text": "boolean"
100156
- }
100157
- }
100158
- ],
100159
- "inheritedFrom": {
100160
- "name": "SbbElement",
100161
- "module": "core/base-elements/element.js"
100162
- }
100163
- },
100164
- {
100165
- "kind": "field",
100166
- "name": "['_$sbbElement$']",
100167
- "type": {
100168
- "text": "boolean"
100169
- },
100170
- "privacy": "public",
100171
- "static": true,
100172
- "default": "true",
100173
- "inheritedFrom": {
100174
- "name": "SbbElement",
100175
- "module": "core/base-elements/element.js"
100176
- }
100177
- },
100178
- {
100179
- "kind": "field",
100180
- "name": "_controllers",
100181
- "type": {
100182
- "text": "Set<SbbReactiveController> | undefined"
100183
- },
100184
- "privacy": "private",
100185
- "inheritedFrom": {
100186
- "name": "SbbElement",
100187
- "module": "core/base-elements/element.js"
100188
- }
100189
- }
100190
- ],
100191
- "mixins": [
100192
- {
100193
- "name": "SbbBlockLinkCommonElementMixin",
100194
- "module": "link/common.js"
100195
- },
100196
- {
100197
- "name": "SbbDisabledMixin",
100198
- "module": "core/mixins.js"
100199
- }
100200
- ],
100201
- "superclass": {
100202
- "name": "SbbActionBaseElement",
100203
- "module": "core/base-elements.js"
100204
- },
100205
- "tagName": "sbb-block-link-static",
100206
- "customElement": true,
100207
- "attributes": [
100208
- {
100209
- "name": "icon-placement",
100210
- "type": {
100211
- "text": "SbbIconPlacement"
100212
- },
100213
- "default": "'start'",
100214
- "description": "Moves the icon to the end of the component if set to true.",
100215
- "fieldName": "iconPlacement",
100216
- "inheritedFrom": {
100217
- "name": "SbbBlockLinkCommonElementMixin",
100218
- "module": "link/common/block-link-common.js"
100219
- }
100220
- },
100221
- {
100222
- "name": "size",
100223
- "type": {
100224
- "text": "SbbLinkSize"
100225
- },
100226
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100227
- "default": "'s' / 'xs' (lean)",
100228
- "fieldName": "size",
100229
- "inheritedFrom": {
100230
- "name": "SbbLinkCommonElementMixin",
100231
- "module": "link/common/link-common.js"
100232
- }
100233
- },
100234
- {
100235
- "name": "icon-name",
100236
- "type": {
100237
- "text": "string"
100238
- },
100239
- "default": "''",
100240
- "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.",
100241
- "fieldName": "iconName",
100242
- "inheritedFrom": {
100243
- "name": "SbbIconNameMixin",
100244
- "module": "icon/icon-name-mixin.js"
100245
- }
100246
- },
100247
- {
100248
- "name": "disabled",
100249
- "description": "Whether the component is disabled.",
100250
- "default": "false",
100251
- "type": {
100252
- "text": "boolean"
100253
- },
100254
- "fieldName": "disabled",
100255
- "inheritedFrom": {
100256
- "name": "SbbDisabledMixin",
100257
- "module": "core/mixins/disabled-mixin.js"
100258
- }
100259
- }
100260
- ]
100261
- }
100262
- ],
100263
- "exports": [
100264
- {
100265
- "kind": "js",
100266
- "name": "SbbBlockLinkStaticElement",
100267
- "declaration": {
100268
- "name": "SbbBlockLinkStaticElement",
100269
- "module": "link/block-link-static/block-link-static.component.js"
100270
- }
100271
- }
100272
- ]
100273
- },
100274
99840
  {
100275
99841
  "kind": "javascript-module",
100276
99842
  "path": "link/block-link-button/block-link-button.component.js",
@@ -101261,6 +100827,440 @@
101261
100827
  }
101262
100828
  ]
101263
100829
  },
100830
+ {
100831
+ "kind": "javascript-module",
100832
+ "path": "link/block-link-static/block-link-static.component.js",
100833
+ "declarations": [
100834
+ {
100835
+ "kind": "class",
100836
+ "description": "It displays a static link enhanced with the SBB Design.",
100837
+ "name": "SbbBlockLinkStaticElement",
100838
+ "slots": [
100839
+ {
100840
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
100841
+ "name": ""
100842
+ },
100843
+ {
100844
+ "description": "Slot used to display the icon, if one is set.",
100845
+ "name": "icon"
100846
+ }
100847
+ ],
100848
+ "members": [
100849
+ {
100850
+ "kind": "field",
100851
+ "name": "elementName",
100852
+ "type": {
100853
+ "text": "string"
100854
+ },
100855
+ "privacy": "public",
100856
+ "static": true,
100857
+ "readonly": true,
100858
+ "inheritedFrom": {
100859
+ "name": "SbbElement",
100860
+ "module": "core/base-elements/element.js"
100861
+ },
100862
+ "default": "'sbb-block-link-static'"
100863
+ },
100864
+ {
100865
+ "kind": "field",
100866
+ "name": "styles",
100867
+ "type": {
100868
+ "text": "CSSResultGroup"
100869
+ },
100870
+ "privacy": "public",
100871
+ "static": true,
100872
+ "default": "[boxSizingStyles, style, blockStyle]",
100873
+ "inheritedFrom": {
100874
+ "name": "SbbLinkCommonElementMixin",
100875
+ "module": "link/common/link-common.js"
100876
+ }
100877
+ },
100878
+ {
100879
+ "kind": "field",
100880
+ "name": "iconPlacement",
100881
+ "type": {
100882
+ "text": "SbbIconPlacement"
100883
+ },
100884
+ "privacy": "public",
100885
+ "default": "'start'",
100886
+ "description": "Moves the icon to the end of the component if set to true.",
100887
+ "attribute": "icon-placement",
100888
+ "reflects": true,
100889
+ "inheritedFrom": {
100890
+ "name": "SbbBlockLinkCommonElementMixin",
100891
+ "module": "link/common/block-link-common.js"
100892
+ }
100893
+ },
100894
+ {
100895
+ "kind": "method",
100896
+ "name": "renderTemplate",
100897
+ "privacy": "protected",
100898
+ "return": {
100899
+ "type": {
100900
+ "text": "TemplateResult"
100901
+ }
100902
+ },
100903
+ "description": "Override this method to render the component template.",
100904
+ "inheritedFrom": {
100905
+ "name": "SbbActionBaseElement",
100906
+ "module": "core/base-elements/action-base-element.js"
100907
+ }
100908
+ },
100909
+ {
100910
+ "kind": "field",
100911
+ "name": "size",
100912
+ "type": {
100913
+ "text": "SbbLinkSize"
100914
+ },
100915
+ "privacy": "public",
100916
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100917
+ "default": "'s' / 'xs' (lean)",
100918
+ "attribute": "size",
100919
+ "reflects": true,
100920
+ "inheritedFrom": {
100921
+ "name": "SbbLinkCommonElementMixin",
100922
+ "module": "link/common/link-common.js"
100923
+ }
100924
+ },
100925
+ {
100926
+ "kind": "field",
100927
+ "name": "iconName",
100928
+ "type": {
100929
+ "text": "string"
100930
+ },
100931
+ "privacy": "public",
100932
+ "default": "''",
100933
+ "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.",
100934
+ "attribute": "icon-name",
100935
+ "inheritedFrom": {
100936
+ "name": "SbbIconNameMixin",
100937
+ "module": "icon/icon-name-mixin.js"
100938
+ }
100939
+ },
100940
+ {
100941
+ "kind": "method",
100942
+ "name": "renderIconSlot",
100943
+ "privacy": "protected",
100944
+ "return": {
100945
+ "type": {
100946
+ "text": "TemplateResult"
100947
+ }
100948
+ },
100949
+ "parameters": [
100950
+ {
100951
+ "name": "classname",
100952
+ "optional": true,
100953
+ "type": {
100954
+ "text": "string"
100955
+ }
100956
+ }
100957
+ ],
100958
+ "inheritedFrom": {
100959
+ "name": "SbbIconNameMixin",
100960
+ "module": "icon/icon-name-mixin.js"
100961
+ }
100962
+ },
100963
+ {
100964
+ "kind": "method",
100965
+ "name": "renderIconName",
100966
+ "privacy": "protected",
100967
+ "return": {
100968
+ "type": {
100969
+ "text": "string"
100970
+ }
100971
+ },
100972
+ "inheritedFrom": {
100973
+ "name": "SbbIconNameMixin",
100974
+ "module": "icon/icon-name-mixin.js"
100975
+ }
100976
+ },
100977
+ {
100978
+ "kind": "method",
100979
+ "name": "_renderIconName",
100980
+ "privacy": "private",
100981
+ "return": {
100982
+ "type": {
100983
+ "text": "string"
100984
+ }
100985
+ },
100986
+ "inheritedFrom": {
100987
+ "name": "SbbIconNameMixin",
100988
+ "module": "icon/icon-name-mixin.js"
100989
+ }
100990
+ },
100991
+ {
100992
+ "kind": "field",
100993
+ "name": "disabled",
100994
+ "privacy": "public",
100995
+ "description": "Whether the component is disabled.",
100996
+ "default": "false",
100997
+ "type": {
100998
+ "text": "boolean"
100999
+ },
101000
+ "attribute": "disabled",
101001
+ "reflects": true,
101002
+ "inheritedFrom": {
101003
+ "name": "SbbDisabledMixin",
101004
+ "module": "core/mixins/disabled-mixin.js"
101005
+ }
101006
+ },
101007
+ {
101008
+ "kind": "field",
101009
+ "name": "#disabled",
101010
+ "privacy": "private",
101011
+ "type": {
101012
+ "text": "boolean"
101013
+ },
101014
+ "default": "false",
101015
+ "inheritedFrom": {
101016
+ "name": "SbbDisabledMixin",
101017
+ "module": "core/mixins/disabled-mixin.js"
101018
+ }
101019
+ },
101020
+ {
101021
+ "kind": "method",
101022
+ "name": "isDisabledExternally",
101023
+ "privacy": "protected",
101024
+ "return": {
101025
+ "type": {
101026
+ "text": "boolean"
101027
+ }
101028
+ },
101029
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101030
+ "inheritedFrom": {
101031
+ "name": "SbbDisabledMixin",
101032
+ "module": "core/mixins/disabled-mixin.js"
101033
+ }
101034
+ },
101035
+ {
101036
+ "kind": "field",
101037
+ "name": "maybeDisabled",
101038
+ "type": {
101039
+ "text": "boolean | undefined"
101040
+ },
101041
+ "privacy": "protected",
101042
+ "readonly": true,
101043
+ "inheritedFrom": {
101044
+ "name": "SbbActionBaseElement",
101045
+ "module": "core/base-elements/action-base-element.js"
101046
+ }
101047
+ },
101048
+ {
101049
+ "kind": "field",
101050
+ "name": "maybeDisabledInteractive",
101051
+ "type": {
101052
+ "text": "boolean | undefined"
101053
+ },
101054
+ "privacy": "protected",
101055
+ "readonly": true,
101056
+ "inheritedFrom": {
101057
+ "name": "SbbActionBaseElement",
101058
+ "module": "core/base-elements/action-base-element.js"
101059
+ }
101060
+ },
101061
+ {
101062
+ "kind": "method",
101063
+ "name": "setupBaseEventHandlers",
101064
+ "privacy": "protected",
101065
+ "return": {
101066
+ "type": {
101067
+ "text": "void"
101068
+ }
101069
+ },
101070
+ "inheritedFrom": {
101071
+ "name": "SbbActionBaseElement",
101072
+ "module": "core/base-elements/action-base-element.js"
101073
+ }
101074
+ },
101075
+ {
101076
+ "kind": "field",
101077
+ "name": "_hydrationRequired",
101078
+ "type": {
101079
+ "text": "boolean"
101080
+ },
101081
+ "privacy": "private",
101082
+ "default": "!!this.shadowRoot",
101083
+ "inheritedFrom": {
101084
+ "name": "SbbElement",
101085
+ "module": "core/base-elements/element.js"
101086
+ }
101087
+ },
101088
+ {
101089
+ "kind": "field",
101090
+ "name": "_hydrationComplete",
101091
+ "privacy": "private",
101092
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101093
+ "inheritedFrom": {
101094
+ "name": "SbbElement",
101095
+ "module": "core/base-elements/element.js"
101096
+ }
101097
+ },
101098
+ {
101099
+ "kind": "field",
101100
+ "name": "_resolveHydration",
101101
+ "type": {
101102
+ "text": "(hydrationRequired: boolean) => void"
101103
+ },
101104
+ "privacy": "private",
101105
+ "inheritedFrom": {
101106
+ "name": "SbbElement",
101107
+ "module": "core/base-elements/element.js"
101108
+ }
101109
+ },
101110
+ {
101111
+ "kind": "field",
101112
+ "name": "hydrationRequired",
101113
+ "type": {
101114
+ "text": "boolean"
101115
+ },
101116
+ "privacy": "protected",
101117
+ "description": "Returns whether hydration is required and not completed.",
101118
+ "readonly": true,
101119
+ "inheritedFrom": {
101120
+ "name": "SbbElement",
101121
+ "module": "core/base-elements/element.js"
101122
+ },
101123
+ "default": "!!this.shadowRoot"
101124
+ },
101125
+ {
101126
+ "kind": "method",
101127
+ "name": "toggleState",
101128
+ "privacy": "protected",
101129
+ "return": {
101130
+ "type": {
101131
+ "text": "void"
101132
+ }
101133
+ },
101134
+ "parameters": [
101135
+ {
101136
+ "name": "value",
101137
+ "type": {
101138
+ "text": "string"
101139
+ }
101140
+ },
101141
+ {
101142
+ "name": "force",
101143
+ "optional": true,
101144
+ "type": {
101145
+ "text": "boolean"
101146
+ }
101147
+ }
101148
+ ],
101149
+ "inheritedFrom": {
101150
+ "name": "SbbElement",
101151
+ "module": "core/base-elements/element.js"
101152
+ }
101153
+ },
101154
+ {
101155
+ "kind": "field",
101156
+ "name": "['_$sbbElement$']",
101157
+ "type": {
101158
+ "text": "boolean"
101159
+ },
101160
+ "privacy": "public",
101161
+ "static": true,
101162
+ "default": "true",
101163
+ "inheritedFrom": {
101164
+ "name": "SbbElement",
101165
+ "module": "core/base-elements/element.js"
101166
+ }
101167
+ },
101168
+ {
101169
+ "kind": "field",
101170
+ "name": "_controllers",
101171
+ "type": {
101172
+ "text": "Set<SbbReactiveController> | undefined"
101173
+ },
101174
+ "privacy": "private",
101175
+ "inheritedFrom": {
101176
+ "name": "SbbElement",
101177
+ "module": "core/base-elements/element.js"
101178
+ }
101179
+ }
101180
+ ],
101181
+ "mixins": [
101182
+ {
101183
+ "name": "SbbBlockLinkCommonElementMixin",
101184
+ "module": "link/common.js"
101185
+ },
101186
+ {
101187
+ "name": "SbbDisabledMixin",
101188
+ "module": "core/mixins.js"
101189
+ }
101190
+ ],
101191
+ "superclass": {
101192
+ "name": "SbbActionBaseElement",
101193
+ "module": "core/base-elements.js"
101194
+ },
101195
+ "tagName": "sbb-block-link-static",
101196
+ "customElement": true,
101197
+ "attributes": [
101198
+ {
101199
+ "name": "icon-placement",
101200
+ "type": {
101201
+ "text": "SbbIconPlacement"
101202
+ },
101203
+ "default": "'start'",
101204
+ "description": "Moves the icon to the end of the component if set to true.",
101205
+ "fieldName": "iconPlacement",
101206
+ "inheritedFrom": {
101207
+ "name": "SbbBlockLinkCommonElementMixin",
101208
+ "module": "link/common/block-link-common.js"
101209
+ }
101210
+ },
101211
+ {
101212
+ "name": "size",
101213
+ "type": {
101214
+ "text": "SbbLinkSize"
101215
+ },
101216
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101217
+ "default": "'s' / 'xs' (lean)",
101218
+ "fieldName": "size",
101219
+ "inheritedFrom": {
101220
+ "name": "SbbLinkCommonElementMixin",
101221
+ "module": "link/common/link-common.js"
101222
+ }
101223
+ },
101224
+ {
101225
+ "name": "icon-name",
101226
+ "type": {
101227
+ "text": "string"
101228
+ },
101229
+ "default": "''",
101230
+ "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.",
101231
+ "fieldName": "iconName",
101232
+ "inheritedFrom": {
101233
+ "name": "SbbIconNameMixin",
101234
+ "module": "icon/icon-name-mixin.js"
101235
+ }
101236
+ },
101237
+ {
101238
+ "name": "disabled",
101239
+ "description": "Whether the component is disabled.",
101240
+ "default": "false",
101241
+ "type": {
101242
+ "text": "boolean"
101243
+ },
101244
+ "fieldName": "disabled",
101245
+ "inheritedFrom": {
101246
+ "name": "SbbDisabledMixin",
101247
+ "module": "core/mixins/disabled-mixin.js"
101248
+ }
101249
+ }
101250
+ ]
101251
+ }
101252
+ ],
101253
+ "exports": [
101254
+ {
101255
+ "kind": "js",
101256
+ "name": "SbbBlockLinkStaticElement",
101257
+ "declaration": {
101258
+ "name": "SbbBlockLinkStaticElement",
101259
+ "module": "link/block-link-static/block-link-static.component.js"
101260
+ }
101261
+ }
101262
+ ]
101263
+ },
101264
101264
  {
101265
101265
  "kind": "javascript-module",
101266
101266
  "path": "link/common/block-link-common.js",
@@ -105351,27 +105351,23 @@
105351
105351
  },
105352
105352
  {
105353
105353
  "kind": "javascript-module",
105354
- "path": "menu/menu-button/menu-button.component.js",
105354
+ "path": "menu/menu/menu.component.js",
105355
105355
  "declarations": [
105356
105356
  {
105357
105357
  "kind": "class",
105358
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
105359
- "name": "SbbMenuButtonElement",
105358
+ "description": "It displays a contextual menu with one or more action element.",
105359
+ "name": "SbbMenuElement",
105360
105360
  "cssProperties": [
105361
105361
  {
105362
- "description": "Can be used to modify horizontal padding.",
105363
- "name": "--sbb-menu-action-outer-horizontal-padding",
105364
- "default": "var(--sbb-spacing-fixed-3x)"
105362
+ "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.",
105363
+ "name": "--sbb-menu-z-index",
105364
+ "default": "var(--sbb-overlay-default-z-index)"
105365
105365
  }
105366
105366
  ],
105367
105367
  "slots": [
105368
105368
  {
105369
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
105369
+ "description": "Use the unnamed slot to add `sbb-menu-button`/`sbb-menu-link` or other elements to the menu.",
105370
105370
  "name": ""
105371
- },
105372
- {
105373
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
105374
- "name": "icon"
105375
105371
  }
105376
105372
  ],
105377
105373
  "members": [
@@ -105388,417 +105384,275 @@
105388
105384
  "name": "SbbElement",
105389
105385
  "module": "core/base-elements/element.js"
105390
105386
  },
105391
- "default": "'sbb-menu-button'"
105387
+ "default": "'sbb-menu'"
105392
105388
  },
105393
105389
  {
105394
105390
  "kind": "field",
105395
105391
  "name": "role",
105396
105392
  "type": {
105397
- "text": "ElementInternals['role']"
105393
+ "text": "string"
105398
105394
  },
105399
105395
  "privacy": "public",
105400
105396
  "static": true,
105401
105397
  "readonly": true,
105402
- "default": "'menuitem'",
105403
- "inheritedFrom": {
105404
- "name": "SbbButtonLikeBaseElement",
105405
- "module": "core/base-elements/button-base-element.js"
105406
- }
105398
+ "default": "'menu'"
105407
105399
  },
105408
105400
  {
105409
105401
  "kind": "field",
105410
- "name": "disabledInteractive",
105402
+ "name": "trigger",
105411
105403
  "type": {
105412
- "text": "boolean"
105404
+ "text": "HTMLElement | null"
105413
105405
  },
105414
105406
  "privacy": "public",
105415
- "default": "false",
105416
- "description": "Whether the button should be aria-disabled but stay interactive.",
105417
- "attribute": "disabled-interactive",
105418
- "reflects": true,
105419
- "inheritedFrom": {
105420
- "name": "SbbDisabledInteractiveMixin",
105421
- "module": "core/mixins/disabled-mixin.js"
105422
- }
105407
+ "default": "null",
105408
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
105409
+ "attribute": "trigger"
105423
105410
  },
105424
105411
  {
105425
105412
  "kind": "field",
105426
- "name": "disabled",
105427
- "privacy": "public",
105428
- "description": "Whether the component is disabled.",
105429
- "default": "false",
105413
+ "name": "_menu",
105430
105414
  "type": {
105431
- "text": "boolean"
105415
+ "text": "HTMLDivElement"
105432
105416
  },
105433
- "attribute": "disabled",
105434
- "reflects": true,
105435
- "inheritedFrom": {
105436
- "name": "SbbDisabledMixin",
105437
- "module": "core/mixins/disabled-mixin.js"
105438
- }
105417
+ "privacy": "private"
105439
105418
  },
105440
105419
  {
105441
105420
  "kind": "field",
105442
- "name": "#disabled",
105443
- "privacy": "private",
105421
+ "name": "_triggerElement",
105444
105422
  "type": {
105445
- "text": "boolean"
105446
- },
105447
- "default": "false",
105448
- "inheritedFrom": {
105449
- "name": "SbbDisabledMixin",
105450
- "module": "core/mixins/disabled-mixin.js"
105451
- }
105452
- },
105453
- {
105454
- "kind": "method",
105455
- "name": "isDisabledExternally",
105456
- "privacy": "protected",
105457
- "return": {
105458
- "type": {
105459
- "text": "boolean"
105460
- }
105423
+ "text": "HTMLElement | null"
105461
105424
  },
105462
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
105463
- "inheritedFrom": {
105464
- "name": "SbbDisabledMixin",
105465
- "module": "core/mixins/disabled-mixin.js"
105466
- }
105425
+ "privacy": "private",
105426
+ "default": "null"
105467
105427
  },
105468
105428
  {
105469
105429
  "kind": "field",
105470
- "name": "styles",
105430
+ "name": "_triggerAbortController",
105471
105431
  "type": {
105472
- "text": "CSSResultGroup"
105432
+ "text": "AbortController"
105473
105433
  },
105474
- "privacy": "public",
105475
- "static": true,
105476
- "default": "[boxSizingStyles, style]",
105477
- "inheritedFrom": {
105478
- "name": "SbbMenuActionCommonElementMixin",
105479
- "module": "menu/common/menu-action-common.js"
105480
- }
105434
+ "privacy": "private"
105481
105435
  },
105482
105436
  {
105483
- "kind": "method",
105484
- "name": "renderTemplate",
105485
- "privacy": "protected",
105486
- "return": {
105487
- "type": {
105488
- "text": "TemplateResult"
105489
- }
105437
+ "kind": "field",
105438
+ "name": "_isPointerDownEventOnMenu",
105439
+ "type": {
105440
+ "text": "boolean"
105490
105441
  },
105491
- "description": "Override this method to render the component template.",
105492
- "inheritedFrom": {
105493
- "name": "SbbActionBaseElement",
105494
- "module": "core/base-elements/action-base-element.js"
105495
- }
105442
+ "privacy": "private",
105443
+ "default": "false"
105496
105444
  },
105497
105445
  {
105498
105446
  "kind": "field",
105499
- "name": "iconName",
105447
+ "name": "_windowEventsController",
105500
105448
  "type": {
105501
- "text": "string"
105449
+ "text": "AbortController"
105502
105450
  },
105503
- "privacy": "public",
105504
- "default": "''",
105505
- "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.",
105506
- "attribute": "icon-name",
105507
- "inheritedFrom": {
105508
- "name": "SbbIconNameMixin",
105509
- "module": "icon/icon-name-mixin.js"
105510
- }
105451
+ "privacy": "private"
105511
105452
  },
105512
105453
  {
105513
- "kind": "method",
105514
- "name": "renderIconSlot",
105515
- "privacy": "protected",
105516
- "return": {
105517
- "type": {
105518
- "text": "TemplateResult"
105519
- }
105520
- },
105521
- "parameters": [
105522
- {
105523
- "name": "classname",
105524
- "optional": true,
105525
- "type": {
105526
- "text": "string"
105527
- }
105528
- }
105529
- ],
105530
- "inheritedFrom": {
105531
- "name": "SbbIconNameMixin",
105532
- "module": "icon/icon-name-mixin.js"
105533
- }
105454
+ "kind": "field",
105455
+ "name": "_escapableOverlayController",
105456
+ "privacy": "private",
105457
+ "default": "new SbbEscapableOverlayController(this)"
105534
105458
  },
105535
105459
  {
105536
- "kind": "method",
105537
- "name": "renderIconName",
105538
- "privacy": "protected",
105539
- "return": {
105540
- "type": {
105541
- "text": "string"
105542
- }
105543
- },
105544
- "inheritedFrom": {
105545
- "name": "SbbIconNameMixin",
105546
- "module": "icon/icon-name-mixin.js"
105547
- }
105460
+ "kind": "field",
105461
+ "name": "_focusTrapController",
105462
+ "privacy": "private",
105463
+ "default": "new SbbFocusTrapController(this)"
105548
105464
  },
105549
105465
  {
105550
- "kind": "method",
105551
- "name": "_renderIconName",
105466
+ "kind": "field",
105467
+ "name": "_scrollHandler",
105552
105468
  "privacy": "private",
105553
- "return": {
105554
- "type": {
105555
- "text": "string"
105556
- }
105557
- },
105558
- "inheritedFrom": {
105559
- "name": "SbbIconNameMixin",
105560
- "module": "icon/icon-name-mixin.js"
105561
- }
105469
+ "default": "new SbbScrollHandler()"
105562
105470
  },
105563
105471
  {
105564
105472
  "kind": "field",
105565
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
105566
- "type": {
105567
- "text": "array"
105568
- },
105473
+ "name": "_inertController",
105569
105474
  "privacy": "private",
105570
- "readonly": true,
105571
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
105572
- "inheritedFrom": {
105573
- "name": "SbbButtonBaseElement",
105574
- "module": "core/base-elements/button-base-element.js"
105575
- }
105475
+ "default": "new SbbInertController(this)"
105576
105476
  },
105577
105477
  {
105578
105478
  "kind": "field",
105579
- "name": "value",
105580
- "type": {
105581
- "text": "string"
105582
- },
105583
- "privacy": "public",
105584
- "inheritedFrom": {
105585
- "name": "SbbButtonBaseElement",
105586
- "module": "core/base-elements/button-base-element.js"
105587
- },
105588
- "default": "''",
105589
- "description": "Value of the form element.",
105590
- "attribute": "value"
105479
+ "name": "_mobileBreakpoint",
105480
+ "privacy": "private",
105481
+ "default": "SbbMediaQueryBreakpointSmallAndBelow"
105591
105482
  },
105592
105483
  {
105593
105484
  "kind": "field",
105594
- "name": "type",
105595
- "privacy": "public",
105596
- "description": "The type attribute to use for the button.",
105597
- "default": "'button'",
105598
- "type": {
105599
- "text": "SbbButtonType"
105600
- },
105601
- "attribute": "type",
105602
- "inheritedFrom": {
105603
- "name": "SbbButtonBaseElement",
105604
- "module": "core/base-elements/button-base-element.js"
105605
- }
105485
+ "name": "_mediaMatcher",
105486
+ "privacy": "private",
105487
+ "default": "new SbbMediaMatcherController(this, { [this._mobileBreakpoint]: (matches) => { if (matches && (this.state === 'opening' || this.state === 'opened')) { this._scrollHandler.disableScroll(); } else { this._scrollHandler.enableScroll(); } }, })"
105606
105488
  },
105607
105489
  {
105608
105490
  "kind": "field",
105609
- "name": "form",
105610
- "type": {
105611
- "text": "HTMLFormElement | null"
105612
- },
105613
- "privacy": "public",
105614
- "description": "The `<form>` element to associate the button with.",
105615
- "inheritedFrom": {
105616
- "name": "SbbButtonBaseElement",
105617
- "module": "core/base-elements/button-base-element.js"
105618
- },
105619
- "attribute": "form"
105491
+ "name": "_darkModeController",
105492
+ "privacy": "private",
105493
+ "default": "new SbbDarkModeController(this, () => this._syncNegative())"
105620
105494
  },
105621
105495
  {
105622
105496
  "kind": "field",
105623
- "name": "_formId",
105624
- "type": {
105625
- "text": "string"
105626
- },
105497
+ "name": "_language",
105627
105498
  "privacy": "private",
105628
- "default": "''",
105629
- "inheritedFrom": {
105630
- "name": "SbbButtonBaseElement",
105631
- "module": "core/base-elements/button-base-element.js"
105632
- }
105499
+ "default": "new SbbLanguageController(this)"
105633
105500
  },
105634
105501
  {
105635
105502
  "kind": "field",
105636
- "name": "_handleButtonClick",
105503
+ "name": "_nestedMenu",
105504
+ "type": {
105505
+ "text": "SbbMenuElement | null"
105506
+ },
105637
105507
  "privacy": "private",
105638
- "inheritedFrom": {
105639
- "name": "SbbButtonBaseElement",
105640
- "module": "core/base-elements/button-base-element.js"
105641
- }
105508
+ "default": "null"
105642
105509
  },
105643
105510
  {
105644
105511
  "kind": "method",
105645
- "name": "_requestSubmit",
105646
- "privacy": "private",
105512
+ "name": "escapeStrategy",
105513
+ "privacy": "public",
105647
105514
  "return": {
105648
105515
  "type": {
105649
105516
  "text": "void"
105650
105517
  }
105651
105518
  },
105652
- "parameters": [
105653
- {
105654
- "name": "form",
105655
- "type": {
105656
- "text": "HTMLFormElement"
105657
- }
105658
- }
105659
- ],
105519
+ "description": "The method which is called on escape key press. Defaults to calling close()",
105660
105520
  "inheritedFrom": {
105661
- "name": "SbbButtonBaseElement",
105662
- "module": "core/base-elements/button-base-element.js"
105521
+ "name": "SbbOpenCloseBaseElement",
105522
+ "module": "core/base-elements/open-close-base-element.js"
105663
105523
  }
105664
105524
  },
105665
105525
  {
105666
- "kind": "field",
105667
- "name": "_formKeyDown",
105668
- "privacy": "private",
105526
+ "kind": "method",
105527
+ "name": "open",
105528
+ "privacy": "public",
105529
+ "return": {
105530
+ "type": {
105531
+ "text": "void"
105532
+ }
105533
+ },
105534
+ "description": "Opens the menu on trigger click.",
105669
105535
  "inheritedFrom": {
105670
- "name": "SbbButtonBaseElement",
105671
- "module": "core/base-elements/button-base-element.js"
105536
+ "name": "SbbOpenCloseBaseElement",
105537
+ "module": "core/base-elements/open-close-base-element.js"
105672
105538
  }
105673
105539
  },
105674
105540
  {
105675
- "kind": "field",
105676
- "name": "formAssociated",
105677
- "type": {
105678
- "text": "boolean"
105679
- },
105541
+ "kind": "method",
105542
+ "name": "close",
105680
105543
  "privacy": "public",
105681
- "static": true,
105682
- "default": "true",
105544
+ "return": {
105545
+ "type": {
105546
+ "text": "void"
105547
+ }
105548
+ },
105549
+ "description": "Closes the menu and all its nested menus.",
105683
105550
  "inheritedFrom": {
105684
- "name": "SbbFormAssociatedMixin",
105685
- "module": "core/mixins/form-associated-mixin.js"
105551
+ "name": "SbbOpenCloseBaseElement",
105552
+ "module": "core/base-elements/open-close-base-element.js"
105686
105553
  }
105687
105554
  },
105688
105555
  {
105689
- "kind": "field",
105690
- "name": "name",
105556
+ "kind": "method",
105557
+ "name": "closeAll",
105691
105558
  "privacy": "public",
105692
- "description": "Name of the form element. Will be read from name attribute.",
105693
- "type": {
105694
- "text": "string"
105559
+ "return": {
105560
+ "type": {
105561
+ "text": "void"
105562
+ }
105695
105563
  },
105696
- "attribute": "name",
105697
- "inheritedFrom": {
105698
- "name": "SbbFormAssociatedMixin",
105699
- "module": "core/mixins/form-associated-mixin.js"
105700
- }
105564
+ "description": "Closes the menu and all related menus (nested and parent menus)."
105701
105565
  },
105702
105566
  {
105703
- "kind": "field",
105704
- "name": "validity",
105705
- "type": {
105706
- "text": "ValidityState"
105567
+ "kind": "method",
105568
+ "name": "_close",
105569
+ "privacy": "private",
105570
+ "return": {
105571
+ "type": {
105572
+ "text": "void"
105573
+ }
105707
105574
  },
105708
- "privacy": "public",
105709
- "description": "Returns the ValidityState object for this element.",
105710
- "readonly": true,
105711
- "inheritedFrom": {
105712
- "name": "SbbFormAssociatedMixin",
105713
- "module": "core/mixins/form-associated-mixin.js"
105714
- }
105575
+ "parameters": [
105576
+ {
105577
+ "name": "closeAll",
105578
+ "default": "false",
105579
+ "description": "If true, it ensures animations are correct by toggling some states when closing all related menus at once.",
105580
+ "optional": true
105581
+ }
105582
+ ]
105715
105583
  },
105716
105584
  {
105717
- "kind": "field",
105718
- "name": "validationMessage",
105719
- "type": {
105720
- "text": "string"
105721
- },
105722
- "privacy": "public",
105723
- "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.",
105724
- "readonly": true,
105725
- "inheritedFrom": {
105726
- "name": "SbbFormAssociatedMixin",
105727
- "module": "core/mixins/form-associated-mixin.js"
105585
+ "kind": "method",
105586
+ "name": "_isZeroAnimationDuration",
105587
+ "privacy": "private",
105588
+ "return": {
105589
+ "type": {
105590
+ "text": "boolean"
105591
+ }
105728
105592
  }
105729
105593
  },
105730
105594
  {
105731
- "kind": "field",
105732
- "name": "willValidate",
105733
- "type": {
105734
- "text": "boolean"
105735
- },
105736
- "privacy": "public",
105737
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
105738
- "readonly": true,
105739
- "inheritedFrom": {
105740
- "name": "SbbFormAssociatedMixin",
105741
- "module": "core/mixins/form-associated-mixin.js"
105595
+ "kind": "method",
105596
+ "name": "_handleOpening",
105597
+ "privacy": "private",
105598
+ "return": {
105599
+ "type": {
105600
+ "text": "void"
105601
+ }
105742
105602
  }
105743
105603
  },
105744
105604
  {
105745
- "kind": "field",
105746
- "name": "_validityStates",
105605
+ "kind": "method",
105606
+ "name": "_handleClosing",
105747
105607
  "privacy": "private",
105748
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
105749
- "inheritedFrom": {
105750
- "name": "SbbFormAssociatedMixin",
105751
- "module": "core/mixins/form-associated-mixin.js"
105608
+ "return": {
105609
+ "type": {
105610
+ "text": "void"
105611
+ }
105752
105612
  }
105753
105613
  },
105754
105614
  {
105755
- "kind": "field",
105756
- "name": "formDisabled",
105757
- "type": {
105758
- "text": "boolean"
105615
+ "kind": "method",
105616
+ "name": "_handleKeyDown",
105617
+ "privacy": "private",
105618
+ "return": {
105619
+ "type": {
105620
+ "text": "void"
105621
+ }
105759
105622
  },
105760
- "privacy": "protected",
105761
- "default": "false",
105762
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
105763
- "inheritedFrom": {
105764
- "name": "SbbFormAssociatedMixin",
105765
- "module": "core/mixins/form-associated-mixin.js"
105766
- }
105623
+ "parameters": [
105624
+ {
105625
+ "name": "evt",
105626
+ "type": {
105627
+ "text": "KeyboardEvent"
105628
+ }
105629
+ }
105630
+ ]
105767
105631
  },
105768
105632
  {
105769
105633
  "kind": "method",
105770
- "name": "checkValidity",
105771
- "privacy": "public",
105634
+ "name": "_configureTrigger",
105635
+ "privacy": "private",
105772
105636
  "return": {
105773
105637
  "type": {
105774
- "text": "boolean"
105638
+ "text": "void"
105775
105639
  }
105776
- },
105777
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
105778
- "inheritedFrom": {
105779
- "name": "SbbFormAssociatedMixin",
105780
- "module": "core/mixins/form-associated-mixin.js"
105781
105640
  }
105782
105641
  },
105783
105642
  {
105784
105643
  "kind": "method",
105785
- "name": "reportValidity",
105786
- "privacy": "public",
105644
+ "name": "_attachWindowEvents",
105645
+ "privacy": "private",
105787
105646
  "return": {
105788
105647
  "type": {
105789
- "text": "boolean"
105648
+ "text": "void"
105790
105649
  }
105791
- },
105792
- "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.",
105793
- "inheritedFrom": {
105794
- "name": "SbbFormAssociatedMixin",
105795
- "module": "core/mixins/form-associated-mixin.js"
105796
105650
  }
105797
105651
  },
105798
105652
  {
105799
105653
  "kind": "method",
105800
- "name": "setCustomValidity",
105801
- "privacy": "public",
105654
+ "name": "_interactiveElementClick",
105655
+ "privacy": "private",
105802
105656
  "return": {
105803
105657
  "type": {
105804
105658
  "text": "void"
@@ -105806,65 +105660,79 @@
105806
105660
  },
105807
105661
  "parameters": [
105808
105662
  {
105809
- "name": "message",
105663
+ "name": "event",
105810
105664
  "type": {
105811
- "text": "string"
105665
+ "text": "Event"
105812
105666
  }
105813
105667
  }
105814
- ],
105815
- "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.",
105816
- "inheritedFrom": {
105817
- "name": "SbbFormAssociatedMixin",
105818
- "module": "core/mixins/form-associated-mixin.js"
105819
- }
105668
+ ]
105669
+ },
105670
+ {
105671
+ "kind": "field",
105672
+ "name": "_pointerDownListener",
105673
+ "privacy": "private"
105674
+ },
105675
+ {
105676
+ "kind": "field",
105677
+ "name": "_closeOnBackdropClick",
105678
+ "privacy": "private"
105820
105679
  },
105821
105680
  {
105822
105681
  "kind": "method",
105823
- "name": "_hasDisabledAncestor",
105682
+ "name": "_nestedMenus",
105824
105683
  "privacy": "private",
105825
105684
  "return": {
105826
105685
  "type": {
105827
- "text": "boolean"
105686
+ "text": "SbbMenuElement[]"
105828
105687
  }
105829
105688
  },
105830
- "inheritedFrom": {
105831
- "name": "SbbFormAssociatedMixin",
105832
- "module": "core/mixins/form-associated-mixin.js"
105689
+ "description": "Converts the linked list into an array of SbbMenuElement."
105690
+ },
105691
+ {
105692
+ "kind": "method",
105693
+ "name": "_parentMenu",
105694
+ "privacy": "private",
105695
+ "return": {
105696
+ "type": {
105697
+ "text": "SbbMenuElement | null"
105698
+ }
105833
105699
  }
105834
105700
  },
105835
105701
  {
105836
105702
  "kind": "method",
105837
- "name": "updateFormValue",
105838
- "privacy": "protected",
105703
+ "name": "_mainMenu",
105704
+ "privacy": "private",
105839
105705
  "return": {
105840
105706
  "type": {
105841
- "text": "void"
105707
+ "text": "SbbMenuElement"
105842
105708
  }
105843
105709
  },
105844
- "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",
105845
- "inheritedFrom": {
105846
- "name": "SbbFormAssociatedMixin",
105847
- "module": "core/mixins/form-associated-mixin.js"
105710
+ "description": "The outermost menu."
105711
+ },
105712
+ {
105713
+ "kind": "method",
105714
+ "name": "_isNested",
105715
+ "privacy": "private",
105716
+ "return": {
105717
+ "type": {
105718
+ "text": "boolean"
105719
+ }
105848
105720
  }
105849
105721
  },
105850
105722
  {
105851
105723
  "kind": "method",
105852
- "name": "formState",
105853
- "privacy": "protected",
105724
+ "name": "_updateNestedInert",
105725
+ "privacy": "private",
105854
105726
  "return": {
105855
105727
  "type": {
105856
- "text": "FormRestoreState"
105728
+ "text": "void"
105857
105729
  }
105858
- },
105859
- "inheritedFrom": {
105860
- "name": "SbbFormAssociatedMixin",
105861
- "module": "core/mixins/form-associated-mixin.js"
105862
105730
  }
105863
105731
  },
105864
105732
  {
105865
105733
  "kind": "method",
105866
- "name": "setValidityFlag",
105867
- "privacy": "protected",
105734
+ "name": "_handleMouseOver",
105735
+ "privacy": "private",
105868
105736
  "return": {
105869
105737
  "type": {
105870
105738
  "text": "void"
@@ -105872,35 +105740,17 @@
105872
105740
  },
105873
105741
  "parameters": [
105874
105742
  {
105875
- "name": "flag",
105876
- "type": {
105877
- "text": "T"
105878
- }
105879
- },
105880
- {
105881
- "name": "message",
105882
- "type": {
105883
- "text": "string"
105884
- }
105885
- },
105886
- {
105887
- "name": "flagValue",
105888
- "optional": true,
105743
+ "name": "event",
105889
105744
  "type": {
105890
- "text": "ValidityStateFlags[T]"
105745
+ "text": "MouseEvent"
105891
105746
  }
105892
105747
  }
105893
- ],
105894
- "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).",
105895
- "inheritedFrom": {
105896
- "name": "SbbFormAssociatedMixin",
105897
- "module": "core/mixins/form-associated-mixin.js"
105898
- }
105748
+ ]
105899
105749
  },
105900
105750
  {
105901
105751
  "kind": "method",
105902
- "name": "removeValidityFlag",
105903
- "privacy": "protected",
105752
+ "name": "_onMenuAnimationEnd",
105753
+ "privacy": "private",
105904
105754
  "return": {
105905
105755
  "type": {
105906
105756
  "text": "void"
@@ -105908,158 +105758,152 @@
105908
105758
  },
105909
105759
  "parameters": [
105910
105760
  {
105911
- "name": "flag",
105761
+ "name": "event",
105912
105762
  "type": {
105913
- "text": "T"
105763
+ "text": "AnimationEvent"
105914
105764
  }
105915
105765
  }
105916
- ],
105917
- "description": "Removes the validity state flag entry and updates validity state.",
105918
- "inheritedFrom": {
105919
- "name": "SbbFormAssociatedMixin",
105920
- "module": "core/mixins/form-associated-mixin.js"
105921
- }
105766
+ ]
105922
105767
  },
105923
105768
  {
105924
105769
  "kind": "method",
105925
- "name": "validate",
105926
- "privacy": "protected",
105770
+ "name": "_setMenuPosition",
105771
+ "privacy": "private",
105927
105772
  "return": {
105928
105773
  "type": {
105929
105774
  "text": "void"
105930
105775
  }
105931
- },
105932
- "description": "To be called whenever the current element needs to be validated.",
105933
- "inheritedFrom": {
105934
- "name": "SbbFormAssociatedMixin",
105935
- "module": "core/mixins/form-associated-mixin.js"
105936
105776
  }
105937
105777
  },
105938
105778
  {
105939
105779
  "kind": "method",
105940
- "name": "shouldValidate",
105941
- "privacy": "protected",
105780
+ "name": "_syncNegative",
105781
+ "privacy": "private",
105942
105782
  "return": {
105943
105783
  "type": {
105944
- "text": "boolean"
105945
- }
105946
- },
105947
- "parameters": [
105948
- {
105949
- "name": "name",
105950
- "type": {
105951
- "text": "PropertyKey | undefined"
105952
- }
105784
+ "text": "void"
105953
105785
  }
105954
- ],
105955
- "description": "Whether validation should be run on a property change with the given name.",
105956
- "inheritedFrom": {
105957
- "name": "SbbFormAssociatedMixin",
105958
- "module": "core/mixins/form-associated-mixin.js"
105959
105786
  }
105960
105787
  },
105961
105788
  {
105962
105789
  "kind": "method",
105963
- "name": "_setInternalValidity",
105790
+ "name": "_isMobile",
105964
105791
  "privacy": "private",
105965
105792
  "return": {
105966
105793
  "type": {
105967
- "text": "void"
105794
+ "text": "boolean"
105968
105795
  }
105796
+ }
105797
+ },
105798
+ {
105799
+ "kind": "field",
105800
+ "name": "events",
105801
+ "privacy": "public",
105802
+ "static": true,
105803
+ "readonly": true,
105804
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
105805
+ "type": {
105806
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
105969
105807
  },
105970
105808
  "inheritedFrom": {
105971
- "name": "SbbFormAssociatedMixin",
105972
- "module": "core/mixins/form-associated-mixin.js"
105809
+ "name": "SbbOpenCloseBaseElement",
105810
+ "module": "core/base-elements/open-close-base-element.js"
105973
105811
  }
105974
105812
  },
105975
105813
  {
105976
105814
  "kind": "field",
105977
- "name": "_preventScrollOnSpaceKeydown",
105978
- "privacy": "private",
105979
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
105980
- "parameters": [
105981
- {
105982
- "description": "The origin event.",
105983
- "name": "event"
105984
- }
105985
- ],
105815
+ "name": "state",
105816
+ "privacy": "protected",
105817
+ "description": "The state of the component.",
105818
+ "type": {
105819
+ "text": "SbbOpenedClosedState"
105820
+ },
105821
+ "default": "'closed'",
105986
105822
  "inheritedFrom": {
105987
- "name": "SbbButtonLikeBaseElement",
105988
- "module": "core/base-elements/button-base-element.js"
105823
+ "name": "SbbOpenCloseBaseElement",
105824
+ "module": "core/base-elements/open-close-base-element.js"
105989
105825
  }
105990
105826
  },
105991
105827
  {
105992
105828
  "kind": "field",
105993
- "name": "_removeActiveMarker",
105829
+ "name": "_state",
105830
+ "type": {
105831
+ "text": "SbbOpenedClosedState"
105832
+ },
105994
105833
  "privacy": "private",
105995
105834
  "inheritedFrom": {
105996
- "name": "SbbButtonLikeBaseElement",
105997
- "module": "core/base-elements/button-base-element.js"
105835
+ "name": "SbbOpenCloseBaseElement",
105836
+ "module": "core/base-elements/open-close-base-element.js"
105998
105837
  }
105999
105838
  },
106000
105839
  {
106001
105840
  "kind": "field",
106002
- "name": "_dispatchClickEventOnSpaceKeyup",
106003
- "privacy": "private",
106004
- "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.",
106005
- "parameters": [
106006
- {
106007
- "description": "The origin event.",
106008
- "name": "event"
106009
- }
106010
- ],
105841
+ "name": "isOpen",
105842
+ "type": {
105843
+ "text": "boolean"
105844
+ },
105845
+ "privacy": "public",
105846
+ "description": "Whether the element is open.",
105847
+ "readonly": true,
106011
105848
  "inheritedFrom": {
106012
- "name": "SbbButtonLikeBaseElement",
106013
- "module": "core/base-elements/button-base-element.js"
105849
+ "name": "SbbOpenCloseBaseElement",
105850
+ "module": "core/base-elements/open-close-base-element.js"
106014
105851
  }
106015
105852
  },
106016
105853
  {
106017
- "kind": "field",
106018
- "name": "_dispatchClickEvent",
106019
- "privacy": "private",
105854
+ "kind": "method",
105855
+ "name": "dispatchBeforeOpenEvent",
105856
+ "privacy": "protected",
105857
+ "return": {
105858
+ "type": {
105859
+ "text": "boolean"
105860
+ }
105861
+ },
106020
105862
  "inheritedFrom": {
106021
- "name": "SbbButtonLikeBaseElement",
106022
- "module": "core/base-elements/button-base-element.js"
105863
+ "name": "SbbOpenCloseBaseElement",
105864
+ "module": "core/base-elements/open-close-base-element.js"
106023
105865
  }
106024
105866
  },
106025
105867
  {
106026
- "kind": "field",
106027
- "name": "maybeDisabled",
106028
- "type": {
106029
- "text": "boolean | undefined"
106030
- },
105868
+ "kind": "method",
105869
+ "name": "dispatchOpenEvent",
106031
105870
  "privacy": "protected",
106032
- "readonly": true,
105871
+ "return": {
105872
+ "type": {
105873
+ "text": "boolean"
105874
+ }
105875
+ },
106033
105876
  "inheritedFrom": {
106034
- "name": "SbbActionBaseElement",
106035
- "module": "core/base-elements/action-base-element.js"
105877
+ "name": "SbbOpenCloseBaseElement",
105878
+ "module": "core/base-elements/open-close-base-element.js"
106036
105879
  }
106037
105880
  },
106038
105881
  {
106039
- "kind": "field",
106040
- "name": "maybeDisabledInteractive",
106041
- "type": {
106042
- "text": "boolean | undefined"
106043
- },
105882
+ "kind": "method",
105883
+ "name": "dispatchBeforeCloseEvent",
106044
105884
  "privacy": "protected",
106045
- "readonly": true,
105885
+ "return": {
105886
+ "type": {
105887
+ "text": "boolean"
105888
+ }
105889
+ },
106046
105890
  "inheritedFrom": {
106047
- "name": "SbbActionBaseElement",
106048
- "module": "core/base-elements/action-base-element.js"
105891
+ "name": "SbbOpenCloseBaseElement",
105892
+ "module": "core/base-elements/open-close-base-element.js"
106049
105893
  }
106050
105894
  },
106051
105895
  {
106052
105896
  "kind": "method",
106053
- "name": "setupBaseEventHandlers",
105897
+ "name": "dispatchCloseEvent",
106054
105898
  "privacy": "protected",
106055
105899
  "return": {
106056
105900
  "type": {
106057
- "text": "void"
105901
+ "text": "boolean"
106058
105902
  }
106059
105903
  },
106060
105904
  "inheritedFrom": {
106061
- "name": "SbbActionBaseElement",
106062
- "module": "core/base-elements/action-base-element.js"
105905
+ "name": "SbbOpenCloseBaseElement",
105906
+ "module": "core/base-elements/open-close-base-element.js"
106063
105907
  }
106064
105908
  },
106065
105909
  {
@@ -106168,110 +106012,66 @@
106168
106012
  }
106169
106013
  }
106170
106014
  ],
106171
- "mixins": [
106172
- {
106173
- "name": "SbbDisabledTabIndexActionMixin",
106174
- "module": "core/mixins.js"
106175
- },
106015
+ "attributes": [
106176
106016
  {
106177
- "name": "SbbMenuActionCommonElementMixin",
106178
- "module": "menu/common/menu-action-common.js"
106017
+ "name": "trigger",
106018
+ "type": {
106019
+ "text": "HTMLElement | null"
106020
+ },
106021
+ "default": "null",
106022
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106023
+ "fieldName": "trigger"
106179
106024
  }
106180
106025
  ],
106181
106026
  "superclass": {
106182
- "name": "SbbButtonBaseElement",
106027
+ "name": "SbbOpenCloseBaseElement",
106183
106028
  "module": "core/base-elements.js"
106184
106029
  },
106185
- "tagName": "sbb-menu-button",
106030
+ "tagName": "sbb-menu",
106186
106031
  "customElement": true,
106187
- "attributes": [
106188
- {
106189
- "name": "disabled-interactive",
106190
- "type": {
106191
- "text": "boolean"
106192
- },
106193
- "default": "false",
106194
- "description": "Whether the button should be aria-disabled but stay interactive.",
106195
- "fieldName": "disabledInteractive",
106196
- "inheritedFrom": {
106197
- "name": "SbbDisabledInteractiveMixin",
106198
- "module": "core/mixins/disabled-mixin.js"
106199
- }
106200
- },
106201
- {
106202
- "name": "disabled",
106203
- "description": "Whether the component is disabled.",
106204
- "default": "false",
106205
- "type": {
106206
- "text": "boolean"
106207
- },
106208
- "fieldName": "disabled",
106209
- "inheritedFrom": {
106210
- "name": "SbbDisabledMixin",
106211
- "module": "core/mixins/disabled-mixin.js"
106212
- }
106213
- },
106214
- {
106215
- "name": "icon-name",
106216
- "type": {
106217
- "text": "string"
106218
- },
106219
- "default": "''",
106220
- "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.",
106221
- "fieldName": "iconName",
106222
- "inheritedFrom": {
106223
- "name": "SbbIconNameMixin",
106224
- "module": "icon/icon-name-mixin.js"
106225
- }
106226
- },
106032
+ "events": [
106227
106033
  {
106228
- "name": "value",
106034
+ "name": "beforeopen",
106229
106035
  "type": {
106230
- "text": "string"
106036
+ "text": "Event"
106231
106037
  },
106232
- "default": "''",
106233
- "description": "Value of the form element.",
106234
- "fieldName": "value",
106038
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
106235
106039
  "inheritedFrom": {
106236
- "name": "SbbButtonBaseElement",
106237
- "module": "core/base-elements/button-base-element.js"
106040
+ "name": "SbbOpenCloseBaseElement",
106041
+ "module": "core/base-elements/open-close-base-element.js"
106238
106042
  }
106239
106043
  },
106240
106044
  {
106241
- "name": "type",
106242
- "description": "The type attribute to use for the button.",
106243
- "default": "'button'",
106045
+ "name": "open",
106244
106046
  "type": {
106245
- "text": "SbbButtonType"
106047
+ "text": "Event"
106246
106048
  },
106247
- "fieldName": "type",
106049
+ "description": "Emits whenever the component is opened.",
106248
106050
  "inheritedFrom": {
106249
- "name": "SbbButtonBaseElement",
106250
- "module": "core/base-elements/button-base-element.js"
106051
+ "name": "SbbOpenCloseBaseElement",
106052
+ "module": "core/base-elements/open-close-base-element.js"
106251
106053
  }
106252
106054
  },
106253
106055
  {
106254
- "name": "form",
106255
- "description": "The `<form>` element to associate the button with.",
106056
+ "name": "beforeclose",
106256
106057
  "type": {
106257
- "text": "HTMLFormElement | null"
106058
+ "text": "Event"
106258
106059
  },
106259
- "fieldName": "form",
106060
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
106260
106061
  "inheritedFrom": {
106261
- "name": "SbbButtonBaseElement",
106262
- "module": "core/base-elements/button-base-element.js"
106062
+ "name": "SbbOpenCloseBaseElement",
106063
+ "module": "core/base-elements/open-close-base-element.js"
106263
106064
  }
106264
106065
  },
106265
106066
  {
106266
- "name": "name",
106267
- "description": "Name of the form element. Will be read from name attribute.",
106067
+ "name": "close",
106268
106068
  "type": {
106269
- "text": "string"
106069
+ "text": "Event"
106270
106070
  },
106271
- "fieldName": "name",
106071
+ "description": "Emits whenever the component is closed.",
106272
106072
  "inheritedFrom": {
106273
- "name": "SbbFormAssociatedMixin",
106274
- "module": "core/mixins/form-associated-mixin.js"
106073
+ "name": "SbbOpenCloseBaseElement",
106074
+ "module": "core/base-elements/open-close-base-element.js"
106275
106075
  }
106276
106076
  }
106277
106077
  ]
@@ -106280,33 +106080,37 @@
106280
106080
  "exports": [
106281
106081
  {
106282
106082
  "kind": "js",
106283
- "name": "SbbMenuButtonElement",
106083
+ "name": "SbbMenuElement",
106284
106084
  "declaration": {
106285
- "name": "SbbMenuButtonElement",
106286
- "module": "menu/menu-button/menu-button.component.js"
106085
+ "name": "SbbMenuElement",
106086
+ "module": "menu/menu/menu.component.js"
106287
106087
  }
106288
106088
  }
106289
106089
  ]
106290
106090
  },
106291
106091
  {
106292
106092
  "kind": "javascript-module",
106293
- "path": "menu/menu/menu.component.js",
106093
+ "path": "menu/menu-button/menu-button.component.js",
106294
106094
  "declarations": [
106295
106095
  {
106296
106096
  "kind": "class",
106297
- "description": "It displays a contextual menu with one or more action element.",
106298
- "name": "SbbMenuElement",
106097
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
106098
+ "name": "SbbMenuButtonElement",
106299
106099
  "cssProperties": [
106300
106100
  {
106301
- "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.",
106302
- "name": "--sbb-menu-z-index",
106303
- "default": "var(--sbb-overlay-default-z-index)"
106101
+ "description": "Can be used to modify horizontal padding.",
106102
+ "name": "--sbb-menu-action-outer-horizontal-padding",
106103
+ "default": "var(--sbb-spacing-fixed-3x)"
106304
106104
  }
106305
106105
  ],
106306
106106
  "slots": [
106307
106107
  {
106308
- "description": "Use the unnamed slot to add `sbb-menu-button`/`sbb-menu-link` or other elements to the menu.",
106108
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
106309
106109
  "name": ""
106110
+ },
106111
+ {
106112
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
106113
+ "name": "icon"
106310
106114
  }
106311
106115
  ],
106312
106116
  "members": [
@@ -106323,237 +106127,483 @@
106323
106127
  "name": "SbbElement",
106324
106128
  "module": "core/base-elements/element.js"
106325
106129
  },
106326
- "default": "'sbb-menu'"
106130
+ "default": "'sbb-menu-button'"
106327
106131
  },
106328
106132
  {
106329
106133
  "kind": "field",
106330
106134
  "name": "role",
106331
106135
  "type": {
106332
- "text": "string"
106136
+ "text": "ElementInternals['role']"
106333
106137
  },
106334
106138
  "privacy": "public",
106335
106139
  "static": true,
106336
106140
  "readonly": true,
106337
- "default": "'menu'"
106141
+ "default": "'menuitem'",
106142
+ "inheritedFrom": {
106143
+ "name": "SbbButtonLikeBaseElement",
106144
+ "module": "core/base-elements/button-base-element.js"
106145
+ }
106338
106146
  },
106339
106147
  {
106340
106148
  "kind": "field",
106341
- "name": "trigger",
106149
+ "name": "disabledInteractive",
106342
106150
  "type": {
106343
- "text": "HTMLElement | null"
106151
+ "text": "boolean"
106344
106152
  },
106345
106153
  "privacy": "public",
106346
- "default": "null",
106347
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106348
- "attribute": "trigger"
106154
+ "default": "false",
106155
+ "description": "Whether the button should be aria-disabled but stay interactive.",
106156
+ "attribute": "disabled-interactive",
106157
+ "reflects": true,
106158
+ "inheritedFrom": {
106159
+ "name": "SbbDisabledInteractiveMixin",
106160
+ "module": "core/mixins/disabled-mixin.js"
106161
+ }
106349
106162
  },
106350
106163
  {
106351
106164
  "kind": "field",
106352
- "name": "_menu",
106165
+ "name": "disabled",
106166
+ "privacy": "public",
106167
+ "description": "Whether the component is disabled.",
106168
+ "default": "false",
106353
106169
  "type": {
106354
- "text": "HTMLDivElement"
106170
+ "text": "boolean"
106355
106171
  },
106356
- "privacy": "private"
106172
+ "attribute": "disabled",
106173
+ "reflects": true,
106174
+ "inheritedFrom": {
106175
+ "name": "SbbDisabledMixin",
106176
+ "module": "core/mixins/disabled-mixin.js"
106177
+ }
106357
106178
  },
106358
106179
  {
106359
106180
  "kind": "field",
106360
- "name": "_triggerElement",
106181
+ "name": "#disabled",
106182
+ "privacy": "private",
106361
106183
  "type": {
106362
- "text": "HTMLElement | null"
106184
+ "text": "boolean"
106363
106185
  },
106364
- "privacy": "private",
106365
- "default": "null"
106186
+ "default": "false",
106187
+ "inheritedFrom": {
106188
+ "name": "SbbDisabledMixin",
106189
+ "module": "core/mixins/disabled-mixin.js"
106190
+ }
106191
+ },
106192
+ {
106193
+ "kind": "method",
106194
+ "name": "isDisabledExternally",
106195
+ "privacy": "protected",
106196
+ "return": {
106197
+ "type": {
106198
+ "text": "boolean"
106199
+ }
106200
+ },
106201
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
106202
+ "inheritedFrom": {
106203
+ "name": "SbbDisabledMixin",
106204
+ "module": "core/mixins/disabled-mixin.js"
106205
+ }
106366
106206
  },
106367
106207
  {
106368
106208
  "kind": "field",
106369
- "name": "_triggerAbortController",
106209
+ "name": "styles",
106370
106210
  "type": {
106371
- "text": "AbortController"
106211
+ "text": "CSSResultGroup"
106372
106212
  },
106373
- "privacy": "private"
106213
+ "privacy": "public",
106214
+ "static": true,
106215
+ "default": "[boxSizingStyles, style]",
106216
+ "inheritedFrom": {
106217
+ "name": "SbbMenuActionCommonElementMixin",
106218
+ "module": "menu/common/menu-action-common.js"
106219
+ }
106220
+ },
106221
+ {
106222
+ "kind": "method",
106223
+ "name": "renderTemplate",
106224
+ "privacy": "protected",
106225
+ "return": {
106226
+ "type": {
106227
+ "text": "TemplateResult"
106228
+ }
106229
+ },
106230
+ "description": "Override this method to render the component template.",
106231
+ "inheritedFrom": {
106232
+ "name": "SbbActionBaseElement",
106233
+ "module": "core/base-elements/action-base-element.js"
106234
+ }
106374
106235
  },
106375
106236
  {
106376
106237
  "kind": "field",
106377
- "name": "_isPointerDownEventOnMenu",
106238
+ "name": "iconName",
106378
106239
  "type": {
106379
- "text": "boolean"
106240
+ "text": "string"
106241
+ },
106242
+ "privacy": "public",
106243
+ "default": "''",
106244
+ "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.",
106245
+ "attribute": "icon-name",
106246
+ "inheritedFrom": {
106247
+ "name": "SbbIconNameMixin",
106248
+ "module": "icon/icon-name-mixin.js"
106249
+ }
106250
+ },
106251
+ {
106252
+ "kind": "method",
106253
+ "name": "renderIconSlot",
106254
+ "privacy": "protected",
106255
+ "return": {
106256
+ "type": {
106257
+ "text": "TemplateResult"
106258
+ }
106259
+ },
106260
+ "parameters": [
106261
+ {
106262
+ "name": "classname",
106263
+ "optional": true,
106264
+ "type": {
106265
+ "text": "string"
106266
+ }
106267
+ }
106268
+ ],
106269
+ "inheritedFrom": {
106270
+ "name": "SbbIconNameMixin",
106271
+ "module": "icon/icon-name-mixin.js"
106272
+ }
106273
+ },
106274
+ {
106275
+ "kind": "method",
106276
+ "name": "renderIconName",
106277
+ "privacy": "protected",
106278
+ "return": {
106279
+ "type": {
106280
+ "text": "string"
106281
+ }
106380
106282
  },
106283
+ "inheritedFrom": {
106284
+ "name": "SbbIconNameMixin",
106285
+ "module": "icon/icon-name-mixin.js"
106286
+ }
106287
+ },
106288
+ {
106289
+ "kind": "method",
106290
+ "name": "_renderIconName",
106381
106291
  "privacy": "private",
106382
- "default": "false"
106292
+ "return": {
106293
+ "type": {
106294
+ "text": "string"
106295
+ }
106296
+ },
106297
+ "inheritedFrom": {
106298
+ "name": "SbbIconNameMixin",
106299
+ "module": "icon/icon-name-mixin.js"
106300
+ }
106383
106301
  },
106384
106302
  {
106385
106303
  "kind": "field",
106386
- "name": "_windowEventsController",
106304
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
106387
106305
  "type": {
106388
- "text": "AbortController"
106306
+ "text": "array"
106389
106307
  },
106390
- "privacy": "private"
106308
+ "privacy": "private",
106309
+ "readonly": true,
106310
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
106311
+ "inheritedFrom": {
106312
+ "name": "SbbButtonBaseElement",
106313
+ "module": "core/base-elements/button-base-element.js"
106314
+ }
106391
106315
  },
106392
106316
  {
106393
106317
  "kind": "field",
106394
- "name": "_escapableOverlayController",
106395
- "privacy": "private",
106396
- "default": "new SbbEscapableOverlayController(this)"
106318
+ "name": "value",
106319
+ "type": {
106320
+ "text": "string"
106321
+ },
106322
+ "privacy": "public",
106323
+ "inheritedFrom": {
106324
+ "name": "SbbButtonBaseElement",
106325
+ "module": "core/base-elements/button-base-element.js"
106326
+ },
106327
+ "default": "''",
106328
+ "description": "Value of the form element.",
106329
+ "attribute": "value"
106397
106330
  },
106398
106331
  {
106399
106332
  "kind": "field",
106400
- "name": "_focusTrapController",
106401
- "privacy": "private",
106402
- "default": "new SbbFocusTrapController(this)"
106333
+ "name": "type",
106334
+ "privacy": "public",
106335
+ "description": "The type attribute to use for the button.",
106336
+ "default": "'button'",
106337
+ "type": {
106338
+ "text": "SbbButtonType"
106339
+ },
106340
+ "attribute": "type",
106341
+ "inheritedFrom": {
106342
+ "name": "SbbButtonBaseElement",
106343
+ "module": "core/base-elements/button-base-element.js"
106344
+ }
106403
106345
  },
106404
106346
  {
106405
106347
  "kind": "field",
106406
- "name": "_scrollHandler",
106407
- "privacy": "private",
106408
- "default": "new SbbScrollHandler()"
106348
+ "name": "form",
106349
+ "type": {
106350
+ "text": "HTMLFormElement | null"
106351
+ },
106352
+ "privacy": "public",
106353
+ "description": "The `<form>` element to associate the button with.",
106354
+ "inheritedFrom": {
106355
+ "name": "SbbButtonBaseElement",
106356
+ "module": "core/base-elements/button-base-element.js"
106357
+ },
106358
+ "attribute": "form"
106409
106359
  },
106410
106360
  {
106411
106361
  "kind": "field",
106412
- "name": "_inertController",
106362
+ "name": "_formId",
106363
+ "type": {
106364
+ "text": "string"
106365
+ },
106413
106366
  "privacy": "private",
106414
- "default": "new SbbInertController(this)"
106367
+ "default": "''",
106368
+ "inheritedFrom": {
106369
+ "name": "SbbButtonBaseElement",
106370
+ "module": "core/base-elements/button-base-element.js"
106371
+ }
106415
106372
  },
106416
106373
  {
106417
106374
  "kind": "field",
106418
- "name": "_mobileBreakpoint",
106375
+ "name": "_handleButtonClick",
106419
106376
  "privacy": "private",
106420
- "default": "SbbMediaQueryBreakpointSmallAndBelow"
106377
+ "inheritedFrom": {
106378
+ "name": "SbbButtonBaseElement",
106379
+ "module": "core/base-elements/button-base-element.js"
106380
+ }
106421
106381
  },
106422
106382
  {
106423
- "kind": "field",
106424
- "name": "_mediaMatcher",
106383
+ "kind": "method",
106384
+ "name": "_requestSubmit",
106425
106385
  "privacy": "private",
106426
- "default": "new SbbMediaMatcherController(this, { [this._mobileBreakpoint]: (matches) => { if (matches && (this.state === 'opening' || this.state === 'opened')) { this._scrollHandler.disableScroll(); } else { this._scrollHandler.enableScroll(); } }, })"
106386
+ "return": {
106387
+ "type": {
106388
+ "text": "void"
106389
+ }
106390
+ },
106391
+ "parameters": [
106392
+ {
106393
+ "name": "form",
106394
+ "type": {
106395
+ "text": "HTMLFormElement"
106396
+ }
106397
+ }
106398
+ ],
106399
+ "inheritedFrom": {
106400
+ "name": "SbbButtonBaseElement",
106401
+ "module": "core/base-elements/button-base-element.js"
106402
+ }
106427
106403
  },
106428
106404
  {
106429
106405
  "kind": "field",
106430
- "name": "_darkModeController",
106406
+ "name": "_formKeyDown",
106431
106407
  "privacy": "private",
106432
- "default": "new SbbDarkModeController(this, () => this._syncNegative())"
106408
+ "inheritedFrom": {
106409
+ "name": "SbbButtonBaseElement",
106410
+ "module": "core/base-elements/button-base-element.js"
106411
+ }
106412
+ },
106413
+ {
106414
+ "kind": "field",
106415
+ "name": "formAssociated",
106416
+ "type": {
106417
+ "text": "boolean"
106418
+ },
106419
+ "privacy": "public",
106420
+ "static": true,
106421
+ "default": "true",
106422
+ "inheritedFrom": {
106423
+ "name": "SbbFormAssociatedMixin",
106424
+ "module": "core/mixins/form-associated-mixin.js"
106425
+ }
106426
+ },
106427
+ {
106428
+ "kind": "field",
106429
+ "name": "name",
106430
+ "privacy": "public",
106431
+ "description": "Name of the form element. Will be read from name attribute.",
106432
+ "type": {
106433
+ "text": "string"
106434
+ },
106435
+ "attribute": "name",
106436
+ "inheritedFrom": {
106437
+ "name": "SbbFormAssociatedMixin",
106438
+ "module": "core/mixins/form-associated-mixin.js"
106439
+ }
106440
+ },
106441
+ {
106442
+ "kind": "field",
106443
+ "name": "validity",
106444
+ "type": {
106445
+ "text": "ValidityState"
106446
+ },
106447
+ "privacy": "public",
106448
+ "description": "Returns the ValidityState object for this element.",
106449
+ "readonly": true,
106450
+ "inheritedFrom": {
106451
+ "name": "SbbFormAssociatedMixin",
106452
+ "module": "core/mixins/form-associated-mixin.js"
106453
+ }
106454
+ },
106455
+ {
106456
+ "kind": "field",
106457
+ "name": "validationMessage",
106458
+ "type": {
106459
+ "text": "string"
106460
+ },
106461
+ "privacy": "public",
106462
+ "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.",
106463
+ "readonly": true,
106464
+ "inheritedFrom": {
106465
+ "name": "SbbFormAssociatedMixin",
106466
+ "module": "core/mixins/form-associated-mixin.js"
106467
+ }
106468
+ },
106469
+ {
106470
+ "kind": "field",
106471
+ "name": "willValidate",
106472
+ "type": {
106473
+ "text": "boolean"
106474
+ },
106475
+ "privacy": "public",
106476
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
106477
+ "readonly": true,
106478
+ "inheritedFrom": {
106479
+ "name": "SbbFormAssociatedMixin",
106480
+ "module": "core/mixins/form-associated-mixin.js"
106481
+ }
106433
106482
  },
106434
106483
  {
106435
106484
  "kind": "field",
106436
- "name": "_language",
106485
+ "name": "_validityStates",
106437
106486
  "privacy": "private",
106438
- "default": "new SbbLanguageController(this)"
106487
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
106488
+ "inheritedFrom": {
106489
+ "name": "SbbFormAssociatedMixin",
106490
+ "module": "core/mixins/form-associated-mixin.js"
106491
+ }
106439
106492
  },
106440
106493
  {
106441
106494
  "kind": "field",
106442
- "name": "_nestedMenu",
106495
+ "name": "formDisabled",
106443
106496
  "type": {
106444
- "text": "SbbMenuElement | null"
106445
- },
106446
- "privacy": "private",
106447
- "default": "null"
106448
- },
106449
- {
106450
- "kind": "method",
106451
- "name": "escapeStrategy",
106452
- "privacy": "public",
106453
- "return": {
106454
- "type": {
106455
- "text": "void"
106456
- }
106497
+ "text": "boolean"
106457
106498
  },
106458
- "description": "The method which is called on escape key press. Defaults to calling close()",
106499
+ "privacy": "protected",
106500
+ "default": "false",
106501
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
106459
106502
  "inheritedFrom": {
106460
- "name": "SbbOpenCloseBaseElement",
106461
- "module": "core/base-elements/open-close-base-element.js"
106503
+ "name": "SbbFormAssociatedMixin",
106504
+ "module": "core/mixins/form-associated-mixin.js"
106462
106505
  }
106463
106506
  },
106464
106507
  {
106465
106508
  "kind": "method",
106466
- "name": "open",
106509
+ "name": "checkValidity",
106467
106510
  "privacy": "public",
106468
106511
  "return": {
106469
106512
  "type": {
106470
- "text": "void"
106513
+ "text": "boolean"
106471
106514
  }
106472
106515
  },
106473
- "description": "Opens the menu on trigger click.",
106516
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
106474
106517
  "inheritedFrom": {
106475
- "name": "SbbOpenCloseBaseElement",
106476
- "module": "core/base-elements/open-close-base-element.js"
106518
+ "name": "SbbFormAssociatedMixin",
106519
+ "module": "core/mixins/form-associated-mixin.js"
106477
106520
  }
106478
106521
  },
106479
106522
  {
106480
106523
  "kind": "method",
106481
- "name": "close",
106524
+ "name": "reportValidity",
106482
106525
  "privacy": "public",
106483
106526
  "return": {
106484
106527
  "type": {
106485
- "text": "void"
106528
+ "text": "boolean"
106486
106529
  }
106487
106530
  },
106488
- "description": "Closes the menu and all its nested menus.",
106531
+ "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.",
106489
106532
  "inheritedFrom": {
106490
- "name": "SbbOpenCloseBaseElement",
106491
- "module": "core/base-elements/open-close-base-element.js"
106533
+ "name": "SbbFormAssociatedMixin",
106534
+ "module": "core/mixins/form-associated-mixin.js"
106492
106535
  }
106493
106536
  },
106494
106537
  {
106495
106538
  "kind": "method",
106496
- "name": "closeAll",
106539
+ "name": "setCustomValidity",
106497
106540
  "privacy": "public",
106498
106541
  "return": {
106499
106542
  "type": {
106500
106543
  "text": "void"
106501
106544
  }
106502
106545
  },
106503
- "description": "Closes the menu and all related menus (nested and parent menus)."
106504
- },
106505
- {
106506
- "kind": "method",
106507
- "name": "_close",
106508
- "privacy": "private",
106509
- "return": {
106510
- "type": {
106511
- "text": "void"
106512
- }
106513
- },
106514
106546
  "parameters": [
106515
106547
  {
106516
- "name": "closeAll",
106517
- "default": "false",
106518
- "description": "If true, it ensures animations are correct by toggling some states when closing all related menus at once.",
106519
- "optional": true
106548
+ "name": "message",
106549
+ "type": {
106550
+ "text": "string"
106551
+ }
106520
106552
  }
106521
- ]
106553
+ ],
106554
+ "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.",
106555
+ "inheritedFrom": {
106556
+ "name": "SbbFormAssociatedMixin",
106557
+ "module": "core/mixins/form-associated-mixin.js"
106558
+ }
106522
106559
  },
106523
106560
  {
106524
106561
  "kind": "method",
106525
- "name": "_isZeroAnimationDuration",
106562
+ "name": "_hasDisabledAncestor",
106526
106563
  "privacy": "private",
106527
106564
  "return": {
106528
106565
  "type": {
106529
106566
  "text": "boolean"
106530
106567
  }
106568
+ },
106569
+ "inheritedFrom": {
106570
+ "name": "SbbFormAssociatedMixin",
106571
+ "module": "core/mixins/form-associated-mixin.js"
106531
106572
  }
106532
106573
  },
106533
106574
  {
106534
106575
  "kind": "method",
106535
- "name": "_handleOpening",
106536
- "privacy": "private",
106576
+ "name": "updateFormValue",
106577
+ "privacy": "protected",
106537
106578
  "return": {
106538
106579
  "type": {
106539
106580
  "text": "void"
106540
106581
  }
106582
+ },
106583
+ "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",
106584
+ "inheritedFrom": {
106585
+ "name": "SbbFormAssociatedMixin",
106586
+ "module": "core/mixins/form-associated-mixin.js"
106541
106587
  }
106542
106588
  },
106543
106589
  {
106544
106590
  "kind": "method",
106545
- "name": "_handleClosing",
106546
- "privacy": "private",
106591
+ "name": "formState",
106592
+ "privacy": "protected",
106547
106593
  "return": {
106548
106594
  "type": {
106549
- "text": "void"
106595
+ "text": "FormRestoreState"
106550
106596
  }
106597
+ },
106598
+ "inheritedFrom": {
106599
+ "name": "SbbFormAssociatedMixin",
106600
+ "module": "core/mixins/form-associated-mixin.js"
106551
106601
  }
106552
106602
  },
106553
106603
  {
106554
106604
  "kind": "method",
106555
- "name": "_handleKeyDown",
106556
- "privacy": "private",
106605
+ "name": "setValidityFlag",
106606
+ "privacy": "protected",
106557
106607
  "return": {
106558
106608
  "type": {
106559
106609
  "text": "void"
@@ -106561,37 +106611,35 @@
106561
106611
  },
106562
106612
  "parameters": [
106563
106613
  {
106564
- "name": "evt",
106614
+ "name": "flag",
106565
106615
  "type": {
106566
- "text": "KeyboardEvent"
106616
+ "text": "T"
106617
+ }
106618
+ },
106619
+ {
106620
+ "name": "message",
106621
+ "type": {
106622
+ "text": "string"
106623
+ }
106624
+ },
106625
+ {
106626
+ "name": "flagValue",
106627
+ "optional": true,
106628
+ "type": {
106629
+ "text": "ValidityStateFlags[T]"
106567
106630
  }
106568
106631
  }
106569
- ]
106570
- },
106571
- {
106572
- "kind": "method",
106573
- "name": "_configureTrigger",
106574
- "privacy": "private",
106575
- "return": {
106576
- "type": {
106577
- "text": "void"
106578
- }
106579
- }
106580
- },
106581
- {
106582
- "kind": "method",
106583
- "name": "_attachWindowEvents",
106584
- "privacy": "private",
106585
- "return": {
106586
- "type": {
106587
- "text": "void"
106588
- }
106632
+ ],
106633
+ "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).",
106634
+ "inheritedFrom": {
106635
+ "name": "SbbFormAssociatedMixin",
106636
+ "module": "core/mixins/form-associated-mixin.js"
106589
106637
  }
106590
106638
  },
106591
106639
  {
106592
106640
  "kind": "method",
106593
- "name": "_interactiveElementClick",
106594
- "privacy": "private",
106641
+ "name": "removeValidityFlag",
106642
+ "privacy": "protected",
106595
106643
  "return": {
106596
106644
  "type": {
106597
106645
  "text": "void"
@@ -106599,250 +106647,158 @@
106599
106647
  },
106600
106648
  "parameters": [
106601
106649
  {
106602
- "name": "event",
106650
+ "name": "flag",
106603
106651
  "type": {
106604
- "text": "Event"
106652
+ "text": "T"
106605
106653
  }
106606
106654
  }
106607
- ]
106608
- },
106609
- {
106610
- "kind": "field",
106611
- "name": "_pointerDownListener",
106612
- "privacy": "private"
106613
- },
106614
- {
106615
- "kind": "field",
106616
- "name": "_closeOnBackdropClick",
106617
- "privacy": "private"
106618
- },
106619
- {
106620
- "kind": "method",
106621
- "name": "_nestedMenus",
106622
- "privacy": "private",
106623
- "return": {
106624
- "type": {
106625
- "text": "SbbMenuElement[]"
106626
- }
106627
- },
106628
- "description": "Converts the linked list into an array of SbbMenuElement."
106629
- },
106630
- {
106631
- "kind": "method",
106632
- "name": "_parentMenu",
106633
- "privacy": "private",
106634
- "return": {
106635
- "type": {
106636
- "text": "SbbMenuElement | null"
106637
- }
106638
- }
106639
- },
106640
- {
106641
- "kind": "method",
106642
- "name": "_mainMenu",
106643
- "privacy": "private",
106644
- "return": {
106645
- "type": {
106646
- "text": "SbbMenuElement"
106647
- }
106648
- },
106649
- "description": "The outermost menu."
106650
- },
106651
- {
106652
- "kind": "method",
106653
- "name": "_isNested",
106654
- "privacy": "private",
106655
- "return": {
106656
- "type": {
106657
- "text": "boolean"
106658
- }
106659
- }
106660
- },
106661
- {
106662
- "kind": "method",
106663
- "name": "_updateNestedInert",
106664
- "privacy": "private",
106665
- "return": {
106666
- "type": {
106667
- "text": "void"
106668
- }
106655
+ ],
106656
+ "description": "Removes the validity state flag entry and updates validity state.",
106657
+ "inheritedFrom": {
106658
+ "name": "SbbFormAssociatedMixin",
106659
+ "module": "core/mixins/form-associated-mixin.js"
106669
106660
  }
106670
106661
  },
106671
106662
  {
106672
106663
  "kind": "method",
106673
- "name": "_handleMouseOver",
106674
- "privacy": "private",
106664
+ "name": "validate",
106665
+ "privacy": "protected",
106675
106666
  "return": {
106676
106667
  "type": {
106677
106668
  "text": "void"
106678
106669
  }
106679
106670
  },
106680
- "parameters": [
106681
- {
106682
- "name": "event",
106683
- "type": {
106684
- "text": "MouseEvent"
106685
- }
106686
- }
106687
- ]
106671
+ "description": "To be called whenever the current element needs to be validated.",
106672
+ "inheritedFrom": {
106673
+ "name": "SbbFormAssociatedMixin",
106674
+ "module": "core/mixins/form-associated-mixin.js"
106675
+ }
106688
106676
  },
106689
106677
  {
106690
106678
  "kind": "method",
106691
- "name": "_onMenuAnimationEnd",
106692
- "privacy": "private",
106679
+ "name": "shouldValidate",
106680
+ "privacy": "protected",
106693
106681
  "return": {
106694
106682
  "type": {
106695
- "text": "void"
106683
+ "text": "boolean"
106696
106684
  }
106697
106685
  },
106698
106686
  "parameters": [
106699
106687
  {
106700
- "name": "event",
106688
+ "name": "name",
106701
106689
  "type": {
106702
- "text": "AnimationEvent"
106690
+ "text": "PropertyKey | undefined"
106703
106691
  }
106704
106692
  }
106705
- ]
106706
- },
106707
- {
106708
- "kind": "method",
106709
- "name": "_setMenuPosition",
106710
- "privacy": "private",
106711
- "return": {
106712
- "type": {
106713
- "text": "void"
106714
- }
106693
+ ],
106694
+ "description": "Whether validation should be run on a property change with the given name.",
106695
+ "inheritedFrom": {
106696
+ "name": "SbbFormAssociatedMixin",
106697
+ "module": "core/mixins/form-associated-mixin.js"
106715
106698
  }
106716
106699
  },
106717
106700
  {
106718
106701
  "kind": "method",
106719
- "name": "_syncNegative",
106702
+ "name": "_setInternalValidity",
106720
106703
  "privacy": "private",
106721
106704
  "return": {
106722
106705
  "type": {
106723
106706
  "text": "void"
106724
106707
  }
106708
+ },
106709
+ "inheritedFrom": {
106710
+ "name": "SbbFormAssociatedMixin",
106711
+ "module": "core/mixins/form-associated-mixin.js"
106725
106712
  }
106726
106713
  },
106727
106714
  {
106728
- "kind": "method",
106729
- "name": "_isMobile",
106715
+ "kind": "field",
106716
+ "name": "_preventScrollOnSpaceKeydown",
106730
106717
  "privacy": "private",
106731
- "return": {
106732
- "type": {
106733
- "text": "boolean"
106718
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
106719
+ "parameters": [
106720
+ {
106721
+ "description": "The origin event.",
106722
+ "name": "event"
106734
106723
  }
106724
+ ],
106725
+ "inheritedFrom": {
106726
+ "name": "SbbButtonLikeBaseElement",
106727
+ "module": "core/base-elements/button-base-element.js"
106735
106728
  }
106736
106729
  },
106737
106730
  {
106738
106731
  "kind": "field",
106739
- "name": "events",
106740
- "privacy": "public",
106741
- "static": true,
106742
- "readonly": true,
106743
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
106744
- "type": {
106745
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
106746
- },
106732
+ "name": "_removeActiveMarker",
106733
+ "privacy": "private",
106747
106734
  "inheritedFrom": {
106748
- "name": "SbbOpenCloseBaseElement",
106749
- "module": "core/base-elements/open-close-base-element.js"
106735
+ "name": "SbbButtonLikeBaseElement",
106736
+ "module": "core/base-elements/button-base-element.js"
106750
106737
  }
106751
106738
  },
106752
106739
  {
106753
106740
  "kind": "field",
106754
- "name": "state",
106755
- "privacy": "protected",
106756
- "description": "The state of the component.",
106757
- "type": {
106758
- "text": "SbbOpenedClosedState"
106759
- },
106760
- "default": "'closed'",
106741
+ "name": "_dispatchClickEventOnSpaceKeyup",
106742
+ "privacy": "private",
106743
+ "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.",
106744
+ "parameters": [
106745
+ {
106746
+ "description": "The origin event.",
106747
+ "name": "event"
106748
+ }
106749
+ ],
106761
106750
  "inheritedFrom": {
106762
- "name": "SbbOpenCloseBaseElement",
106763
- "module": "core/base-elements/open-close-base-element.js"
106751
+ "name": "SbbButtonLikeBaseElement",
106752
+ "module": "core/base-elements/button-base-element.js"
106764
106753
  }
106765
106754
  },
106766
106755
  {
106767
106756
  "kind": "field",
106768
- "name": "_state",
106769
- "type": {
106770
- "text": "SbbOpenedClosedState"
106771
- },
106757
+ "name": "_dispatchClickEvent",
106772
106758
  "privacy": "private",
106773
106759
  "inheritedFrom": {
106774
- "name": "SbbOpenCloseBaseElement",
106775
- "module": "core/base-elements/open-close-base-element.js"
106760
+ "name": "SbbButtonLikeBaseElement",
106761
+ "module": "core/base-elements/button-base-element.js"
106776
106762
  }
106777
106763
  },
106778
106764
  {
106779
106765
  "kind": "field",
106780
- "name": "isOpen",
106766
+ "name": "maybeDisabled",
106781
106767
  "type": {
106782
- "text": "boolean"
106768
+ "text": "boolean | undefined"
106783
106769
  },
106784
- "privacy": "public",
106785
- "description": "Whether the element is open.",
106786
- "readonly": true,
106787
- "inheritedFrom": {
106788
- "name": "SbbOpenCloseBaseElement",
106789
- "module": "core/base-elements/open-close-base-element.js"
106790
- }
106791
- },
106792
- {
106793
- "kind": "method",
106794
- "name": "dispatchBeforeOpenEvent",
106795
106770
  "privacy": "protected",
106796
- "return": {
106797
- "type": {
106798
- "text": "boolean"
106799
- }
106800
- },
106771
+ "readonly": true,
106801
106772
  "inheritedFrom": {
106802
- "name": "SbbOpenCloseBaseElement",
106803
- "module": "core/base-elements/open-close-base-element.js"
106773
+ "name": "SbbActionBaseElement",
106774
+ "module": "core/base-elements/action-base-element.js"
106804
106775
  }
106805
106776
  },
106806
106777
  {
106807
- "kind": "method",
106808
- "name": "dispatchOpenEvent",
106809
- "privacy": "protected",
106810
- "return": {
106811
- "type": {
106812
- "text": "boolean"
106813
- }
106778
+ "kind": "field",
106779
+ "name": "maybeDisabledInteractive",
106780
+ "type": {
106781
+ "text": "boolean | undefined"
106814
106782
  },
106815
- "inheritedFrom": {
106816
- "name": "SbbOpenCloseBaseElement",
106817
- "module": "core/base-elements/open-close-base-element.js"
106818
- }
106819
- },
106820
- {
106821
- "kind": "method",
106822
- "name": "dispatchBeforeCloseEvent",
106823
106783
  "privacy": "protected",
106824
- "return": {
106825
- "type": {
106826
- "text": "boolean"
106827
- }
106828
- },
106784
+ "readonly": true,
106829
106785
  "inheritedFrom": {
106830
- "name": "SbbOpenCloseBaseElement",
106831
- "module": "core/base-elements/open-close-base-element.js"
106786
+ "name": "SbbActionBaseElement",
106787
+ "module": "core/base-elements/action-base-element.js"
106832
106788
  }
106833
106789
  },
106834
106790
  {
106835
106791
  "kind": "method",
106836
- "name": "dispatchCloseEvent",
106792
+ "name": "setupBaseEventHandlers",
106837
106793
  "privacy": "protected",
106838
106794
  "return": {
106839
106795
  "type": {
106840
- "text": "boolean"
106796
+ "text": "void"
106841
106797
  }
106842
106798
  },
106843
106799
  "inheritedFrom": {
106844
- "name": "SbbOpenCloseBaseElement",
106845
- "module": "core/base-elements/open-close-base-element.js"
106800
+ "name": "SbbActionBaseElement",
106801
+ "module": "core/base-elements/action-base-element.js"
106846
106802
  }
106847
106803
  },
106848
106804
  {
@@ -106951,66 +106907,110 @@
106951
106907
  }
106952
106908
  }
106953
106909
  ],
106954
- "attributes": [
106910
+ "mixins": [
106955
106911
  {
106956
- "name": "trigger",
106957
- "type": {
106958
- "text": "HTMLElement | null"
106959
- },
106960
- "default": "null",
106961
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106962
- "fieldName": "trigger"
106912
+ "name": "SbbDisabledTabIndexActionMixin",
106913
+ "module": "core/mixins.js"
106914
+ },
106915
+ {
106916
+ "name": "SbbMenuActionCommonElementMixin",
106917
+ "module": "menu/common/menu-action-common.js"
106963
106918
  }
106964
106919
  ],
106965
106920
  "superclass": {
106966
- "name": "SbbOpenCloseBaseElement",
106921
+ "name": "SbbButtonBaseElement",
106967
106922
  "module": "core/base-elements.js"
106968
106923
  },
106969
- "tagName": "sbb-menu",
106924
+ "tagName": "sbb-menu-button",
106970
106925
  "customElement": true,
106971
- "events": [
106926
+ "attributes": [
106972
106927
  {
106973
- "name": "beforeopen",
106928
+ "name": "disabled-interactive",
106974
106929
  "type": {
106975
- "text": "Event"
106930
+ "text": "boolean"
106976
106931
  },
106977
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
106932
+ "default": "false",
106933
+ "description": "Whether the button should be aria-disabled but stay interactive.",
106934
+ "fieldName": "disabledInteractive",
106978
106935
  "inheritedFrom": {
106979
- "name": "SbbOpenCloseBaseElement",
106980
- "module": "core/base-elements/open-close-base-element.js"
106936
+ "name": "SbbDisabledInteractiveMixin",
106937
+ "module": "core/mixins/disabled-mixin.js"
106981
106938
  }
106982
106939
  },
106983
106940
  {
106984
- "name": "open",
106941
+ "name": "disabled",
106942
+ "description": "Whether the component is disabled.",
106943
+ "default": "false",
106985
106944
  "type": {
106986
- "text": "Event"
106945
+ "text": "boolean"
106987
106946
  },
106988
- "description": "Emits whenever the component is opened.",
106947
+ "fieldName": "disabled",
106989
106948
  "inheritedFrom": {
106990
- "name": "SbbOpenCloseBaseElement",
106991
- "module": "core/base-elements/open-close-base-element.js"
106949
+ "name": "SbbDisabledMixin",
106950
+ "module": "core/mixins/disabled-mixin.js"
106992
106951
  }
106993
106952
  },
106994
106953
  {
106995
- "name": "beforeclose",
106954
+ "name": "icon-name",
106996
106955
  "type": {
106997
- "text": "Event"
106956
+ "text": "string"
106998
106957
  },
106999
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
106958
+ "default": "''",
106959
+ "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.",
106960
+ "fieldName": "iconName",
107000
106961
  "inheritedFrom": {
107001
- "name": "SbbOpenCloseBaseElement",
107002
- "module": "core/base-elements/open-close-base-element.js"
106962
+ "name": "SbbIconNameMixin",
106963
+ "module": "icon/icon-name-mixin.js"
107003
106964
  }
107004
106965
  },
107005
106966
  {
107006
- "name": "close",
106967
+ "name": "value",
107007
106968
  "type": {
107008
- "text": "Event"
106969
+ "text": "string"
107009
106970
  },
107010
- "description": "Emits whenever the component is closed.",
106971
+ "default": "''",
106972
+ "description": "Value of the form element.",
106973
+ "fieldName": "value",
107011
106974
  "inheritedFrom": {
107012
- "name": "SbbOpenCloseBaseElement",
107013
- "module": "core/base-elements/open-close-base-element.js"
106975
+ "name": "SbbButtonBaseElement",
106976
+ "module": "core/base-elements/button-base-element.js"
106977
+ }
106978
+ },
106979
+ {
106980
+ "name": "type",
106981
+ "description": "The type attribute to use for the button.",
106982
+ "default": "'button'",
106983
+ "type": {
106984
+ "text": "SbbButtonType"
106985
+ },
106986
+ "fieldName": "type",
106987
+ "inheritedFrom": {
106988
+ "name": "SbbButtonBaseElement",
106989
+ "module": "core/base-elements/button-base-element.js"
106990
+ }
106991
+ },
106992
+ {
106993
+ "name": "form",
106994
+ "description": "The `<form>` element to associate the button with.",
106995
+ "type": {
106996
+ "text": "HTMLFormElement | null"
106997
+ },
106998
+ "fieldName": "form",
106999
+ "inheritedFrom": {
107000
+ "name": "SbbButtonBaseElement",
107001
+ "module": "core/base-elements/button-base-element.js"
107002
+ }
107003
+ },
107004
+ {
107005
+ "name": "name",
107006
+ "description": "Name of the form element. Will be read from name attribute.",
107007
+ "type": {
107008
+ "text": "string"
107009
+ },
107010
+ "fieldName": "name",
107011
+ "inheritedFrom": {
107012
+ "name": "SbbFormAssociatedMixin",
107013
+ "module": "core/mixins/form-associated-mixin.js"
107014
107014
  }
107015
107015
  }
107016
107016
  ]
@@ -107019,10 +107019,10 @@
107019
107019
  "exports": [
107020
107020
  {
107021
107021
  "kind": "js",
107022
- "name": "SbbMenuElement",
107022
+ "name": "SbbMenuButtonElement",
107023
107023
  "declaration": {
107024
- "name": "SbbMenuElement",
107025
- "module": "menu/menu/menu.component.js"
107024
+ "name": "SbbMenuButtonElement",
107025
+ "module": "menu/menu-button/menu-button.component.js"
107026
107026
  }
107027
107027
  }
107028
107028
  ]
@@ -119899,120 +119899,332 @@
119899
119899
  }
119900
119900
  }
119901
119901
  ],
119902
- "attributes": [
119903
- {
119904
- "name": "color",
119905
- "type": {
119906
- "text": "'white' | 'milk'"
119907
- },
119908
- "default": "'white'",
119909
- "description": "Background color of the sidebar. Either `white` or `milk`.",
119910
- "fieldName": "color"
119911
- },
119912
- {
119913
- "name": "mode",
119914
- "type": {
119915
- "text": "'side' | 'over'"
119916
- },
119917
- "default": "'side'",
119918
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
119919
- "fieldName": "mode"
119920
- },
119921
- {
119922
- "name": "position",
119923
- "type": {
119924
- "text": "'start' | 'end'"
119925
- },
119926
- "default": "'start'",
119927
- "description": "The side that the sidebar is attached to.",
119928
- "fieldName": "position"
119929
- },
119930
- {
119931
- "name": "opened",
119932
- "type": {
119933
- "text": "boolean"
119934
- },
119935
- "default": "false",
119936
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
119937
- "fieldName": "opened"
119938
- },
119939
- {
119940
- "name": "focus-on-open",
119941
- "type": {
119942
- "text": "boolean"
119943
- },
119944
- "default": "false",
119945
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
119946
- "fieldName": "focusOnOpen"
119947
- }
119948
- ],
119949
- "mixins": [
119950
- {
119951
- "name": "SbbAnimationCompleteMixin",
119952
- "module": "core/mixins.js"
119953
- }
119954
- ],
119902
+ "attributes": [
119903
+ {
119904
+ "name": "color",
119905
+ "type": {
119906
+ "text": "'white' | 'milk'"
119907
+ },
119908
+ "default": "'white'",
119909
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
119910
+ "fieldName": "color"
119911
+ },
119912
+ {
119913
+ "name": "mode",
119914
+ "type": {
119915
+ "text": "'side' | 'over'"
119916
+ },
119917
+ "default": "'side'",
119918
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
119919
+ "fieldName": "mode"
119920
+ },
119921
+ {
119922
+ "name": "position",
119923
+ "type": {
119924
+ "text": "'start' | 'end'"
119925
+ },
119926
+ "default": "'start'",
119927
+ "description": "The side that the sidebar is attached to.",
119928
+ "fieldName": "position"
119929
+ },
119930
+ {
119931
+ "name": "opened",
119932
+ "type": {
119933
+ "text": "boolean"
119934
+ },
119935
+ "default": "false",
119936
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
119937
+ "fieldName": "opened"
119938
+ },
119939
+ {
119940
+ "name": "focus-on-open",
119941
+ "type": {
119942
+ "text": "boolean"
119943
+ },
119944
+ "default": "false",
119945
+ "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
119946
+ "fieldName": "focusOnOpen"
119947
+ }
119948
+ ],
119949
+ "mixins": [
119950
+ {
119951
+ "name": "SbbAnimationCompleteMixin",
119952
+ "module": "core/mixins.js"
119953
+ }
119954
+ ],
119955
+ "superclass": {
119956
+ "name": "SbbOpenCloseBaseElement",
119957
+ "module": "core/base-elements.js"
119958
+ },
119959
+ "tagName": "sbb-sidebar",
119960
+ "customElement": true,
119961
+ "events": [
119962
+ {
119963
+ "name": "beforeopen",
119964
+ "type": {
119965
+ "text": "Event"
119966
+ },
119967
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
119968
+ "inheritedFrom": {
119969
+ "name": "SbbOpenCloseBaseElement",
119970
+ "module": "core/base-elements/open-close-base-element.js"
119971
+ }
119972
+ },
119973
+ {
119974
+ "name": "open",
119975
+ "type": {
119976
+ "text": "Event"
119977
+ },
119978
+ "description": "Emits whenever the component is opened.",
119979
+ "inheritedFrom": {
119980
+ "name": "SbbOpenCloseBaseElement",
119981
+ "module": "core/base-elements/open-close-base-element.js"
119982
+ }
119983
+ },
119984
+ {
119985
+ "name": "beforeclose",
119986
+ "type": {
119987
+ "text": "Event"
119988
+ },
119989
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
119990
+ "inheritedFrom": {
119991
+ "name": "SbbOpenCloseBaseElement",
119992
+ "module": "core/base-elements/open-close-base-element.js"
119993
+ }
119994
+ },
119995
+ {
119996
+ "name": "close",
119997
+ "type": {
119998
+ "text": "Event"
119999
+ },
120000
+ "description": "Emits whenever the component is closed.",
120001
+ "inheritedFrom": {
120002
+ "name": "SbbOpenCloseBaseElement",
120003
+ "module": "core/base-elements/open-close-base-element.js"
120004
+ }
120005
+ }
120006
+ ]
120007
+ }
120008
+ ],
120009
+ "exports": [
120010
+ {
120011
+ "kind": "js",
120012
+ "name": "SbbSidebarElement",
120013
+ "declaration": {
120014
+ "name": "SbbSidebarElement",
120015
+ "module": "sidebar/sidebar/sidebar.component.js"
120016
+ }
120017
+ }
120018
+ ]
120019
+ },
120020
+ {
120021
+ "kind": "javascript-module",
120022
+ "path": "sidebar/sidebar-container/sidebar-container.component.js",
120023
+ "declarations": [
120024
+ {
120025
+ "kind": "class",
120026
+ "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
120027
+ "name": "SbbSidebarContainerElement",
120028
+ "slots": [
120029
+ {
120030
+ "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
120031
+ "name": ""
120032
+ }
120033
+ ],
120034
+ "members": [
120035
+ {
120036
+ "kind": "field",
120037
+ "name": "elementName",
120038
+ "type": {
120039
+ "text": "string"
120040
+ },
120041
+ "privacy": "public",
120042
+ "static": true,
120043
+ "readonly": true,
120044
+ "default": "'sbb-sidebar-container'",
120045
+ "inheritedFrom": {
120046
+ "name": "SbbElement",
120047
+ "module": "core/base-elements/element.js"
120048
+ }
120049
+ },
120050
+ {
120051
+ "kind": "field",
120052
+ "name": "sidebars",
120053
+ "type": {
120054
+ "text": "SbbSidebarElement[]"
120055
+ },
120056
+ "privacy": "public",
120057
+ "description": "The sidebar children.",
120058
+ "readonly": true
120059
+ },
120060
+ {
120061
+ "kind": "field",
120062
+ "name": "start",
120063
+ "type": {
120064
+ "text": "SbbSidebarElement | null"
120065
+ },
120066
+ "privacy": "public",
120067
+ "description": "The sidebar child with the `start` position.",
120068
+ "readonly": true
120069
+ },
120070
+ {
120071
+ "kind": "field",
120072
+ "name": "end",
120073
+ "type": {
120074
+ "text": "SbbSidebarElement | null"
120075
+ },
120076
+ "privacy": "public",
120077
+ "description": "The sidebar child with the `end` position.",
120078
+ "readonly": true
120079
+ },
120080
+ {
120081
+ "kind": "field",
120082
+ "name": "_forcedClosedSidebars",
120083
+ "privacy": "private",
120084
+ "default": "new WeakSet<SbbSidebarElement>()"
120085
+ },
120086
+ {
120087
+ "kind": "method",
120088
+ "name": "_handleWidthChange",
120089
+ "privacy": "private",
120090
+ "return": {
120091
+ "type": {
120092
+ "text": "void"
120093
+ }
120094
+ }
120095
+ },
120096
+ {
120097
+ "kind": "method",
120098
+ "name": "_calculateSpaceState",
120099
+ "privacy": "private",
120100
+ "return": {
120101
+ "type": {
120102
+ "text": "Promise<void>"
120103
+ }
120104
+ },
120105
+ "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
120106
+ },
120107
+ {
120108
+ "kind": "field",
120109
+ "name": "_hydrationRequired",
120110
+ "type": {
120111
+ "text": "boolean"
120112
+ },
120113
+ "privacy": "private",
120114
+ "default": "!!this.shadowRoot",
120115
+ "inheritedFrom": {
120116
+ "name": "SbbElement",
120117
+ "module": "core/base-elements/element.js"
120118
+ }
120119
+ },
120120
+ {
120121
+ "kind": "field",
120122
+ "name": "_hydrationComplete",
120123
+ "privacy": "private",
120124
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120125
+ "inheritedFrom": {
120126
+ "name": "SbbElement",
120127
+ "module": "core/base-elements/element.js"
120128
+ }
120129
+ },
120130
+ {
120131
+ "kind": "field",
120132
+ "name": "_resolveHydration",
120133
+ "type": {
120134
+ "text": "(hydrationRequired: boolean) => void"
120135
+ },
120136
+ "privacy": "private",
120137
+ "inheritedFrom": {
120138
+ "name": "SbbElement",
120139
+ "module": "core/base-elements/element.js"
120140
+ }
120141
+ },
120142
+ {
120143
+ "kind": "field",
120144
+ "name": "hydrationRequired",
120145
+ "type": {
120146
+ "text": "boolean"
120147
+ },
120148
+ "privacy": "protected",
120149
+ "description": "Returns whether hydration is required and not completed.",
120150
+ "readonly": true,
120151
+ "inheritedFrom": {
120152
+ "name": "SbbElement",
120153
+ "module": "core/base-elements/element.js"
120154
+ },
120155
+ "default": "!!this.shadowRoot"
120156
+ },
120157
+ {
120158
+ "kind": "method",
120159
+ "name": "toggleState",
120160
+ "privacy": "protected",
120161
+ "return": {
120162
+ "type": {
120163
+ "text": "void"
120164
+ }
120165
+ },
120166
+ "parameters": [
120167
+ {
120168
+ "name": "value",
120169
+ "type": {
120170
+ "text": "string"
120171
+ }
120172
+ },
120173
+ {
120174
+ "name": "force",
120175
+ "optional": true,
120176
+ "type": {
120177
+ "text": "boolean"
120178
+ }
120179
+ }
120180
+ ],
120181
+ "inheritedFrom": {
120182
+ "name": "SbbElement",
120183
+ "module": "core/base-elements/element.js"
120184
+ }
120185
+ },
120186
+ {
120187
+ "kind": "field",
120188
+ "name": "['_$sbbElement$']",
120189
+ "type": {
120190
+ "text": "boolean"
120191
+ },
120192
+ "privacy": "public",
120193
+ "static": true,
120194
+ "default": "true",
120195
+ "inheritedFrom": {
120196
+ "name": "SbbElement",
120197
+ "module": "core/base-elements/element.js"
120198
+ }
120199
+ },
120200
+ {
120201
+ "kind": "field",
120202
+ "name": "_controllers",
120203
+ "type": {
120204
+ "text": "Set<SbbReactiveController> | undefined"
120205
+ },
120206
+ "privacy": "private",
120207
+ "inheritedFrom": {
120208
+ "name": "SbbElement",
120209
+ "module": "core/base-elements/element.js"
120210
+ }
120211
+ }
120212
+ ],
119955
120213
  "superclass": {
119956
- "name": "SbbOpenCloseBaseElement",
120214
+ "name": "SbbElement",
119957
120215
  "module": "core/base-elements.js"
119958
120216
  },
119959
- "tagName": "sbb-sidebar",
119960
- "customElement": true,
119961
- "events": [
119962
- {
119963
- "name": "beforeopen",
119964
- "type": {
119965
- "text": "Event"
119966
- },
119967
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
119968
- "inheritedFrom": {
119969
- "name": "SbbOpenCloseBaseElement",
119970
- "module": "core/base-elements/open-close-base-element.js"
119971
- }
119972
- },
119973
- {
119974
- "name": "open",
119975
- "type": {
119976
- "text": "Event"
119977
- },
119978
- "description": "Emits whenever the component is opened.",
119979
- "inheritedFrom": {
119980
- "name": "SbbOpenCloseBaseElement",
119981
- "module": "core/base-elements/open-close-base-element.js"
119982
- }
119983
- },
119984
- {
119985
- "name": "beforeclose",
119986
- "type": {
119987
- "text": "Event"
119988
- },
119989
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
119990
- "inheritedFrom": {
119991
- "name": "SbbOpenCloseBaseElement",
119992
- "module": "core/base-elements/open-close-base-element.js"
119993
- }
119994
- },
119995
- {
119996
- "name": "close",
119997
- "type": {
119998
- "text": "Event"
119999
- },
120000
- "description": "Emits whenever the component is closed.",
120001
- "inheritedFrom": {
120002
- "name": "SbbOpenCloseBaseElement",
120003
- "module": "core/base-elements/open-close-base-element.js"
120004
- }
120005
- }
120006
- ]
120217
+ "tagName": "sbb-sidebar-container",
120218
+ "customElement": true
120007
120219
  }
120008
120220
  ],
120009
120221
  "exports": [
120010
120222
  {
120011
120223
  "kind": "js",
120012
- "name": "SbbSidebarElement",
120224
+ "name": "SbbSidebarContainerElement",
120013
120225
  "declaration": {
120014
- "name": "SbbSidebarElement",
120015
- "module": "sidebar/sidebar/sidebar.component.js"
120226
+ "name": "SbbSidebarContainerElement",
120227
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
120016
120228
  }
120017
120229
  }
120018
120230
  ]
@@ -121037,218 +121249,6 @@
121037
121249
  }
121038
121250
  ]
121039
121251
  },
121040
- {
121041
- "kind": "javascript-module",
121042
- "path": "sidebar/sidebar-container/sidebar-container.component.js",
121043
- "declarations": [
121044
- {
121045
- "kind": "class",
121046
- "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
121047
- "name": "SbbSidebarContainerElement",
121048
- "slots": [
121049
- {
121050
- "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
121051
- "name": ""
121052
- }
121053
- ],
121054
- "members": [
121055
- {
121056
- "kind": "field",
121057
- "name": "elementName",
121058
- "type": {
121059
- "text": "string"
121060
- },
121061
- "privacy": "public",
121062
- "static": true,
121063
- "readonly": true,
121064
- "default": "'sbb-sidebar-container'",
121065
- "inheritedFrom": {
121066
- "name": "SbbElement",
121067
- "module": "core/base-elements/element.js"
121068
- }
121069
- },
121070
- {
121071
- "kind": "field",
121072
- "name": "sidebars",
121073
- "type": {
121074
- "text": "SbbSidebarElement[]"
121075
- },
121076
- "privacy": "public",
121077
- "description": "The sidebar children.",
121078
- "readonly": true
121079
- },
121080
- {
121081
- "kind": "field",
121082
- "name": "start",
121083
- "type": {
121084
- "text": "SbbSidebarElement | null"
121085
- },
121086
- "privacy": "public",
121087
- "description": "The sidebar child with the `start` position.",
121088
- "readonly": true
121089
- },
121090
- {
121091
- "kind": "field",
121092
- "name": "end",
121093
- "type": {
121094
- "text": "SbbSidebarElement | null"
121095
- },
121096
- "privacy": "public",
121097
- "description": "The sidebar child with the `end` position.",
121098
- "readonly": true
121099
- },
121100
- {
121101
- "kind": "field",
121102
- "name": "_forcedClosedSidebars",
121103
- "privacy": "private",
121104
- "default": "new WeakSet<SbbSidebarElement>()"
121105
- },
121106
- {
121107
- "kind": "method",
121108
- "name": "_handleWidthChange",
121109
- "privacy": "private",
121110
- "return": {
121111
- "type": {
121112
- "text": "void"
121113
- }
121114
- }
121115
- },
121116
- {
121117
- "kind": "method",
121118
- "name": "_calculateSpaceState",
121119
- "privacy": "private",
121120
- "return": {
121121
- "type": {
121122
- "text": "Promise<void>"
121123
- }
121124
- },
121125
- "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
121126
- },
121127
- {
121128
- "kind": "field",
121129
- "name": "_hydrationRequired",
121130
- "type": {
121131
- "text": "boolean"
121132
- },
121133
- "privacy": "private",
121134
- "default": "!!this.shadowRoot",
121135
- "inheritedFrom": {
121136
- "name": "SbbElement",
121137
- "module": "core/base-elements/element.js"
121138
- }
121139
- },
121140
- {
121141
- "kind": "field",
121142
- "name": "_hydrationComplete",
121143
- "privacy": "private",
121144
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121145
- "inheritedFrom": {
121146
- "name": "SbbElement",
121147
- "module": "core/base-elements/element.js"
121148
- }
121149
- },
121150
- {
121151
- "kind": "field",
121152
- "name": "_resolveHydration",
121153
- "type": {
121154
- "text": "(hydrationRequired: boolean) => void"
121155
- },
121156
- "privacy": "private",
121157
- "inheritedFrom": {
121158
- "name": "SbbElement",
121159
- "module": "core/base-elements/element.js"
121160
- }
121161
- },
121162
- {
121163
- "kind": "field",
121164
- "name": "hydrationRequired",
121165
- "type": {
121166
- "text": "boolean"
121167
- },
121168
- "privacy": "protected",
121169
- "description": "Returns whether hydration is required and not completed.",
121170
- "readonly": true,
121171
- "inheritedFrom": {
121172
- "name": "SbbElement",
121173
- "module": "core/base-elements/element.js"
121174
- },
121175
- "default": "!!this.shadowRoot"
121176
- },
121177
- {
121178
- "kind": "method",
121179
- "name": "toggleState",
121180
- "privacy": "protected",
121181
- "return": {
121182
- "type": {
121183
- "text": "void"
121184
- }
121185
- },
121186
- "parameters": [
121187
- {
121188
- "name": "value",
121189
- "type": {
121190
- "text": "string"
121191
- }
121192
- },
121193
- {
121194
- "name": "force",
121195
- "optional": true,
121196
- "type": {
121197
- "text": "boolean"
121198
- }
121199
- }
121200
- ],
121201
- "inheritedFrom": {
121202
- "name": "SbbElement",
121203
- "module": "core/base-elements/element.js"
121204
- }
121205
- },
121206
- {
121207
- "kind": "field",
121208
- "name": "['_$sbbElement$']",
121209
- "type": {
121210
- "text": "boolean"
121211
- },
121212
- "privacy": "public",
121213
- "static": true,
121214
- "default": "true",
121215
- "inheritedFrom": {
121216
- "name": "SbbElement",
121217
- "module": "core/base-elements/element.js"
121218
- }
121219
- },
121220
- {
121221
- "kind": "field",
121222
- "name": "_controllers",
121223
- "type": {
121224
- "text": "Set<SbbReactiveController> | undefined"
121225
- },
121226
- "privacy": "private",
121227
- "inheritedFrom": {
121228
- "name": "SbbElement",
121229
- "module": "core/base-elements/element.js"
121230
- }
121231
- }
121232
- ],
121233
- "superclass": {
121234
- "name": "SbbElement",
121235
- "module": "core/base-elements.js"
121236
- },
121237
- "tagName": "sbb-sidebar-container",
121238
- "customElement": true
121239
- }
121240
- ],
121241
- "exports": [
121242
- {
121243
- "kind": "js",
121244
- "name": "SbbSidebarContainerElement",
121245
- "declaration": {
121246
- "name": "SbbSidebarContainerElement",
121247
- "module": "sidebar/sidebar-container/sidebar-container.component.js"
121248
- }
121249
- }
121250
- ]
121251
- },
121252
121252
  {
121253
121253
  "kind": "javascript-module",
121254
121254
  "path": "sidebar/sidebar-content/sidebar-content.component.js",