@sbb-esta/lyne-elements-dev 4.0.0-dev.1776072012 → 4.0.0-dev.1776087061

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.
@@ -110059,6 +110059,15 @@
110059
110059
  "privacy": "private",
110060
110060
  "default": "null"
110061
110061
  },
110062
+ {
110063
+ "kind": "field",
110064
+ "name": "_previousType",
110065
+ "type": {
110066
+ "text": "string | null"
110067
+ },
110068
+ "privacy": "private",
110069
+ "default": "null"
110070
+ },
110062
110071
  {
110063
110072
  "kind": "method",
110064
110073
  "name": "_handleWrapperClick",
@@ -110699,6 +110708,408 @@
110699
110708
  }
110700
110709
  ]
110701
110710
  },
110711
+ {
110712
+ "kind": "javascript-module",
110713
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
110714
+ "declarations": [
110715
+ {
110716
+ "kind": "class",
110717
+ "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
110718
+ "name": "SbbFormFieldTextCounterElement",
110719
+ "slots": [
110720
+ {
110721
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
110722
+ "name": "",
110723
+ "inheritedFrom": {
110724
+ "name": "SbbHintElement",
110725
+ "module": "form-field/hint/hint.component.js"
110726
+ }
110727
+ }
110728
+ ],
110729
+ "members": [
110730
+ {
110731
+ "kind": "field",
110732
+ "name": "elementName",
110733
+ "type": {
110734
+ "text": "string"
110735
+ },
110736
+ "privacy": "public",
110737
+ "static": true,
110738
+ "readonly": true,
110739
+ "default": "'sbb-form-field-text-counter'",
110740
+ "inheritedFrom": {
110741
+ "name": "SbbElement",
110742
+ "module": "core/base-elements/element.js"
110743
+ }
110744
+ },
110745
+ {
110746
+ "kind": "field",
110747
+ "name": "elementDependencies",
110748
+ "type": {
110749
+ "text": "SbbElementType[]"
110750
+ },
110751
+ "privacy": "public",
110752
+ "static": true,
110753
+ "default": "[SbbScreenReaderOnlyElement]",
110754
+ "inheritedFrom": {
110755
+ "name": "SbbElement",
110756
+ "module": "core/base-elements/element.js"
110757
+ }
110758
+ },
110759
+ {
110760
+ "kind": "field",
110761
+ "name": "_remainingCharacters",
110762
+ "type": {
110763
+ "text": "number"
110764
+ },
110765
+ "privacy": "private",
110766
+ "default": "0"
110767
+ },
110768
+ {
110769
+ "kind": "field",
110770
+ "name": "_language",
110771
+ "privacy": "private",
110772
+ "default": "new SbbLanguageController(this)"
110773
+ },
110774
+ {
110775
+ "kind": "field",
110776
+ "name": "_abortController",
110777
+ "type": {
110778
+ "text": "AbortController | null"
110779
+ },
110780
+ "privacy": "private",
110781
+ "default": "null"
110782
+ },
110783
+ {
110784
+ "kind": "method",
110785
+ "name": "_onInputUpdate",
110786
+ "privacy": "private",
110787
+ "return": {
110788
+ "type": {
110789
+ "text": "void"
110790
+ }
110791
+ }
110792
+ },
110793
+ {
110794
+ "kind": "method",
110795
+ "name": "_infoText",
110796
+ "privacy": "private",
110797
+ "return": {
110798
+ "type": {
110799
+ "text": "string"
110800
+ }
110801
+ }
110802
+ },
110803
+ {
110804
+ "kind": "field",
110805
+ "name": "negative",
110806
+ "type": {
110807
+ "text": "boolean"
110808
+ },
110809
+ "privacy": "public",
110810
+ "default": "false",
110811
+ "description": "Negative coloring variant flag.",
110812
+ "attribute": "negative",
110813
+ "reflects": true,
110814
+ "inheritedFrom": {
110815
+ "name": "SbbNegativeMixin",
110816
+ "module": "core/mixins/negative-mixin.js"
110817
+ }
110818
+ },
110819
+ {
110820
+ "kind": "field",
110821
+ "name": "formField",
110822
+ "type": {
110823
+ "text": "SbbFormFieldElement | null"
110824
+ },
110825
+ "privacy": "protected",
110826
+ "default": "null",
110827
+ "inheritedFrom": {
110828
+ "name": "SbbHintElement",
110829
+ "module": "form-field/hint/hint.component.js"
110830
+ }
110831
+ },
110832
+ {
110833
+ "kind": "field",
110834
+ "name": "['_$sbbElement$']",
110835
+ "type": {
110836
+ "text": "boolean"
110837
+ },
110838
+ "privacy": "public",
110839
+ "static": true,
110840
+ "default": "true",
110841
+ "inheritedFrom": {
110842
+ "name": "SbbElement",
110843
+ "module": "core/base-elements/element.js"
110844
+ }
110845
+ },
110846
+ {
110847
+ "kind": "field",
110848
+ "name": "role",
110849
+ "type": {
110850
+ "text": "ElementInternals['role'] | undefined"
110851
+ },
110852
+ "privacy": "public",
110853
+ "static": true,
110854
+ "inheritedFrom": {
110855
+ "name": "SbbElement",
110856
+ "module": "core/base-elements/element.js"
110857
+ }
110858
+ },
110859
+ {
110860
+ "kind": "field",
110861
+ "name": "_controllers",
110862
+ "type": {
110863
+ "text": "Set<SbbReactiveController> | undefined"
110864
+ },
110865
+ "privacy": "private",
110866
+ "inheritedFrom": {
110867
+ "name": "SbbElement",
110868
+ "module": "core/base-elements/element.js"
110869
+ }
110870
+ },
110871
+ {
110872
+ "kind": "field",
110873
+ "name": "_hydrationRequired",
110874
+ "type": {
110875
+ "text": "boolean"
110876
+ },
110877
+ "privacy": "private",
110878
+ "default": "!!this.shadowRoot",
110879
+ "inheritedFrom": {
110880
+ "name": "SbbElement",
110881
+ "module": "core/base-elements/element.js"
110882
+ }
110883
+ },
110884
+ {
110885
+ "kind": "field",
110886
+ "name": "_hydrationComplete",
110887
+ "privacy": "private",
110888
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
110889
+ "inheritedFrom": {
110890
+ "name": "SbbElement",
110891
+ "module": "core/base-elements/element.js"
110892
+ }
110893
+ },
110894
+ {
110895
+ "kind": "field",
110896
+ "name": "_resolveHydration",
110897
+ "type": {
110898
+ "text": "(hydrationRequired: boolean) => void"
110899
+ },
110900
+ "privacy": "private",
110901
+ "inheritedFrom": {
110902
+ "name": "SbbElement",
110903
+ "module": "core/base-elements/element.js"
110904
+ }
110905
+ },
110906
+ {
110907
+ "kind": "field",
110908
+ "name": "_textObserver",
110909
+ "type": {
110910
+ "text": "MutationObserver | undefined"
110911
+ },
110912
+ "privacy": "private",
110913
+ "inheritedFrom": {
110914
+ "name": "SbbElement",
110915
+ "module": "core/base-elements/element.js"
110916
+ }
110917
+ },
110918
+ {
110919
+ "kind": "field",
110920
+ "name": "hydrationRequired",
110921
+ "type": {
110922
+ "text": "boolean"
110923
+ },
110924
+ "privacy": "protected",
110925
+ "description": "Returns whether hydration is required and not completed.",
110926
+ "readonly": true,
110927
+ "inheritedFrom": {
110928
+ "name": "SbbElement",
110929
+ "module": "core/base-elements/element.js"
110930
+ },
110931
+ "default": "!!this.shadowRoot"
110932
+ },
110933
+ {
110934
+ "kind": "method",
110935
+ "name": "toggleState",
110936
+ "privacy": "protected",
110937
+ "return": {
110938
+ "type": {
110939
+ "text": "void"
110940
+ }
110941
+ },
110942
+ "parameters": [
110943
+ {
110944
+ "name": "value",
110945
+ "type": {
110946
+ "text": "string"
110947
+ }
110948
+ },
110949
+ {
110950
+ "name": "force",
110951
+ "optional": true,
110952
+ "type": {
110953
+ "text": "boolean"
110954
+ }
110955
+ }
110956
+ ],
110957
+ "inheritedFrom": {
110958
+ "name": "SbbElement",
110959
+ "module": "core/base-elements/element.js"
110960
+ }
110961
+ },
110962
+ {
110963
+ "kind": "method",
110964
+ "name": "_slotchangeHandler",
110965
+ "privacy": "private",
110966
+ "return": {
110967
+ "type": {
110968
+ "text": "void"
110969
+ }
110970
+ },
110971
+ "parameters": [
110972
+ {
110973
+ "name": "event",
110974
+ "type": {
110975
+ "text": "Event"
110976
+ }
110977
+ },
110978
+ {
110979
+ "name": "slot",
110980
+ "type": {
110981
+ "text": "HTMLSlotElement"
110982
+ }
110983
+ }
110984
+ ],
110985
+ "inheritedFrom": {
110986
+ "name": "SbbElement",
110987
+ "module": "core/base-elements/element.js"
110988
+ }
110989
+ },
110990
+ {
110991
+ "kind": "method",
110992
+ "name": "_handleSlotChangeForSlottedState",
110993
+ "privacy": "private",
110994
+ "return": {
110995
+ "type": {
110996
+ "text": "void"
110997
+ }
110998
+ },
110999
+ "parameters": [
111000
+ {
111001
+ "name": "slot",
111002
+ "type": {
111003
+ "text": "HTMLSlotElement"
111004
+ }
111005
+ }
111006
+ ],
111007
+ "inheritedFrom": {
111008
+ "name": "SbbElement",
111009
+ "module": "core/base-elements/element.js"
111010
+ }
111011
+ },
111012
+ {
111013
+ "kind": "method",
111014
+ "name": "_updateSlottedState",
111015
+ "privacy": "private",
111016
+ "return": {
111017
+ "type": {
111018
+ "text": "void"
111019
+ }
111020
+ },
111021
+ "parameters": [
111022
+ {
111023
+ "name": "slot",
111024
+ "type": {
111025
+ "text": "HTMLSlotElement"
111026
+ }
111027
+ }
111028
+ ],
111029
+ "inheritedFrom": {
111030
+ "name": "SbbElement",
111031
+ "module": "core/base-elements/element.js"
111032
+ }
111033
+ },
111034
+ {
111035
+ "kind": "method",
111036
+ "name": "_observeTextNodesInSlot",
111037
+ "privacy": "private",
111038
+ "return": {
111039
+ "type": {
111040
+ "text": "void"
111041
+ }
111042
+ },
111043
+ "parameters": [
111044
+ {
111045
+ "name": "slot",
111046
+ "type": {
111047
+ "text": "HTMLSlotElement"
111048
+ }
111049
+ }
111050
+ ],
111051
+ "inheritedFrom": {
111052
+ "name": "SbbElement",
111053
+ "module": "core/base-elements/element.js"
111054
+ }
111055
+ },
111056
+ {
111057
+ "kind": "method",
111058
+ "name": "_hasSlottedContent",
111059
+ "privacy": "private",
111060
+ "return": {
111061
+ "type": {
111062
+ "text": "boolean"
111063
+ }
111064
+ },
111065
+ "parameters": [
111066
+ {
111067
+ "name": "slot",
111068
+ "type": {
111069
+ "text": "HTMLSlotElement"
111070
+ }
111071
+ }
111072
+ ],
111073
+ "inheritedFrom": {
111074
+ "name": "SbbElement",
111075
+ "module": "core/base-elements/element.js"
111076
+ }
111077
+ }
111078
+ ],
111079
+ "superclass": {
111080
+ "name": "SbbHintElement",
111081
+ "module": "form-field/hint/hint.component.js"
111082
+ },
111083
+ "tagName": "sbb-form-field-text-counter",
111084
+ "customElement": true,
111085
+ "attributes": [
111086
+ {
111087
+ "name": "negative",
111088
+ "type": {
111089
+ "text": "boolean"
111090
+ },
111091
+ "default": "false",
111092
+ "description": "Negative coloring variant flag.",
111093
+ "fieldName": "negative",
111094
+ "inheritedFrom": {
111095
+ "name": "SbbNegativeMixin",
111096
+ "module": "core/mixins/negative-mixin.js"
111097
+ }
111098
+ }
111099
+ ]
111100
+ }
111101
+ ],
111102
+ "exports": [
111103
+ {
111104
+ "kind": "js",
111105
+ "name": "SbbFormFieldTextCounterElement",
111106
+ "declaration": {
111107
+ "name": "SbbFormFieldTextCounterElement",
111108
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
111109
+ }
111110
+ }
111111
+ ]
111112
+ },
110702
111113
  {
110703
111114
  "kind": "javascript-module",
110704
111115
  "path": "form-field/form-field-clear/form-field-clear.component.js",
@@ -111635,20 +112046,16 @@
111635
112046
  },
111636
112047
  {
111637
112048
  "kind": "javascript-module",
111638
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
112049
+ "path": "form-field/hint/hint.component.js",
111639
112050
  "declarations": [
111640
112051
  {
111641
112052
  "kind": "class",
111642
- "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
111643
- "name": "SbbFormFieldTextCounterElement",
112053
+ "description": "It displays a hint message in the `sbb-form-field`.",
112054
+ "name": "SbbHintElement",
111644
112055
  "slots": [
111645
112056
  {
111646
- "description": "Use the unnamed slot to display a custom description text after the counter.",
111647
- "name": "",
111648
- "inheritedFrom": {
111649
- "name": "SbbHintElement",
111650
- "module": "form-field/hint/hint.component.js"
111651
- }
112057
+ "description": "Use the unnamed slot to display the hint message.",
112058
+ "name": ""
111652
112059
  }
111653
112060
  ],
111654
112061
  "members": [
@@ -111661,21 +112068,7 @@
111661
112068
  "privacy": "public",
111662
112069
  "static": true,
111663
112070
  "readonly": true,
111664
- "default": "'sbb-form-field-text-counter'",
111665
- "inheritedFrom": {
111666
- "name": "SbbElement",
111667
- "module": "core/base-elements/element.js"
111668
- }
111669
- },
111670
- {
111671
- "kind": "field",
111672
- "name": "elementDependencies",
111673
- "type": {
111674
- "text": "SbbElementType[]"
111675
- },
111676
- "privacy": "public",
111677
- "static": true,
111678
- "default": "[SbbScreenReaderOnlyElement]",
112071
+ "default": "'sbb-hint'",
111679
112072
  "inheritedFrom": {
111680
112073
  "name": "SbbElement",
111681
112074
  "module": "core/base-elements/element.js"
@@ -111683,48 +112076,13 @@
111683
112076
  },
111684
112077
  {
111685
112078
  "kind": "field",
111686
- "name": "_remainingCharacters",
111687
- "type": {
111688
- "text": "number"
111689
- },
111690
- "privacy": "private",
111691
- "default": "0"
111692
- },
111693
- {
111694
- "kind": "field",
111695
- "name": "_language",
111696
- "privacy": "private",
111697
- "default": "new SbbLanguageController(this)"
111698
- },
111699
- {
111700
- "kind": "field",
111701
- "name": "_abortController",
112079
+ "name": "formField",
111702
112080
  "type": {
111703
- "text": "AbortController | null"
112081
+ "text": "SbbFormFieldElement | null"
111704
112082
  },
111705
- "privacy": "private",
112083
+ "privacy": "protected",
111706
112084
  "default": "null"
111707
112085
  },
111708
- {
111709
- "kind": "method",
111710
- "name": "_onInputUpdate",
111711
- "privacy": "private",
111712
- "return": {
111713
- "type": {
111714
- "text": "void"
111715
- }
111716
- }
111717
- },
111718
- {
111719
- "kind": "method",
111720
- "name": "_infoText",
111721
- "privacy": "private",
111722
- "return": {
111723
- "type": {
111724
- "text": "string"
111725
- }
111726
- }
111727
- },
111728
112086
  {
111729
112087
  "kind": "field",
111730
112088
  "name": "negative",
@@ -111743,26 +112101,26 @@
111743
112101
  },
111744
112102
  {
111745
112103
  "kind": "field",
111746
- "name": "formField",
112104
+ "name": "['_$sbbElement$']",
111747
112105
  "type": {
111748
- "text": "SbbFormFieldElement | null"
112106
+ "text": "boolean"
111749
112107
  },
111750
- "privacy": "protected",
111751
- "default": "null",
112108
+ "privacy": "public",
112109
+ "static": true,
112110
+ "default": "true",
111752
112111
  "inheritedFrom": {
111753
- "name": "SbbHintElement",
111754
- "module": "form-field/hint/hint.component.js"
112112
+ "name": "SbbElement",
112113
+ "module": "core/base-elements/element.js"
111755
112114
  }
111756
112115
  },
111757
112116
  {
111758
112117
  "kind": "field",
111759
- "name": "['_$sbbElement$']",
112118
+ "name": "elementDependencies",
111760
112119
  "type": {
111761
- "text": "boolean"
112120
+ "text": "SbbElementType[] | undefined"
111762
112121
  },
111763
112122
  "privacy": "public",
111764
112123
  "static": true,
111765
- "default": "true",
111766
112124
  "inheritedFrom": {
111767
112125
  "name": "SbbElement",
111768
112126
  "module": "core/base-elements/element.js"
@@ -112001,11 +112359,17 @@
112001
112359
  }
112002
112360
  }
112003
112361
  ],
112362
+ "mixins": [
112363
+ {
112364
+ "name": "SbbNegativeMixin",
112365
+ "module": "core.js"
112366
+ }
112367
+ ],
112004
112368
  "superclass": {
112005
- "name": "SbbHintElement",
112006
- "module": "form-field/hint/hint.component.js"
112369
+ "name": "SbbElement",
112370
+ "module": "core.js"
112007
112371
  },
112008
- "tagName": "sbb-form-field-text-counter",
112372
+ "tagName": "sbb-hint",
112009
112373
  "customElement": true,
112010
112374
  "attributes": [
112011
112375
  {
@@ -112027,67 +112391,164 @@
112027
112391
  "exports": [
112028
112392
  {
112029
112393
  "kind": "js",
112030
- "name": "SbbFormFieldTextCounterElement",
112394
+ "name": "SbbHintElement",
112031
112395
  "declaration": {
112032
- "name": "SbbFormFieldTextCounterElement",
112033
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
112396
+ "name": "SbbHintElement",
112397
+ "module": "form-field/hint/hint.component.js"
112034
112398
  }
112035
112399
  }
112036
112400
  ]
112037
112401
  },
112038
112402
  {
112039
112403
  "kind": "javascript-module",
112040
- "path": "form-field/hint/hint.component.js",
112404
+ "path": "header/common/header-action-common.js",
112041
112405
  "declarations": [
112042
112406
  {
112043
112407
  "kind": "class",
112044
- "description": "It displays a hint message in the `sbb-form-field`.",
112045
- "name": "SbbHintElement",
112046
- "slots": [
112047
- {
112048
- "description": "Use the unnamed slot to display the hint message.",
112049
- "name": ""
112050
- }
112051
- ],
112408
+ "description": "",
112409
+ "name": "SbbHeaderActionCommonElementMixinType",
112052
112410
  "members": [
112053
112411
  {
112054
112412
  "kind": "field",
112055
- "name": "elementName",
112413
+ "name": "expandFrom",
112056
112414
  "type": {
112057
- "text": "string"
112415
+ "text": "SbbHorizontalFrom"
112416
+ },
112417
+ "privacy": "public"
112418
+ },
112419
+ {
112420
+ "kind": "field",
112421
+ "name": "elementDependencies",
112422
+ "type": {
112423
+ "text": "SbbElementType[]"
112058
112424
  },
112059
112425
  "privacy": "public",
112060
112426
  "static": true,
112061
- "readonly": true,
112062
- "default": "'sbb-hint'",
112063
112427
  "inheritedFrom": {
112064
112428
  "name": "SbbElement",
112065
112429
  "module": "core/base-elements/element.js"
112430
+ },
112431
+ "default": "[SbbIconElement]"
112432
+ },
112433
+ {
112434
+ "kind": "field",
112435
+ "name": "iconName",
112436
+ "type": {
112437
+ "text": "string"
112438
+ },
112439
+ "privacy": "public",
112440
+ "default": "''",
112441
+ "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.",
112442
+ "attribute": "icon-name",
112443
+ "inheritedFrom": {
112444
+ "name": "SbbIconNameMixin",
112445
+ "module": "icon/icon-name-mixin.js"
112446
+ }
112447
+ },
112448
+ {
112449
+ "kind": "method",
112450
+ "name": "renderIconSlot",
112451
+ "privacy": "protected",
112452
+ "return": {
112453
+ "type": {
112454
+ "text": "TemplateResult"
112455
+ }
112456
+ },
112457
+ "parameters": [
112458
+ {
112459
+ "name": "classname",
112460
+ "optional": true,
112461
+ "type": {
112462
+ "text": "string"
112463
+ }
112464
+ }
112465
+ ],
112466
+ "inheritedFrom": {
112467
+ "name": "SbbIconNameMixin",
112468
+ "module": "icon/icon-name-mixin.js"
112469
+ }
112470
+ },
112471
+ {
112472
+ "kind": "method",
112473
+ "name": "renderIconName",
112474
+ "privacy": "protected",
112475
+ "return": {
112476
+ "type": {
112477
+ "text": "string"
112478
+ }
112479
+ },
112480
+ "inheritedFrom": {
112481
+ "name": "SbbIconNameMixin",
112482
+ "module": "icon/icon-name-mixin.js"
112483
+ }
112484
+ },
112485
+ {
112486
+ "kind": "method",
112487
+ "name": "_renderIconName",
112488
+ "privacy": "private",
112489
+ "return": {
112490
+ "type": {
112491
+ "text": "string"
112492
+ }
112493
+ },
112494
+ "inheritedFrom": {
112495
+ "name": "SbbIconNameMixin",
112496
+ "module": "icon/icon-name-mixin.js"
112066
112497
  }
112067
112498
  },
112068
112499
  {
112069
112500
  "kind": "field",
112070
- "name": "formField",
112501
+ "name": "maybeDisabled",
112071
112502
  "type": {
112072
- "text": "SbbFormFieldElement | null"
112503
+ "text": "boolean | undefined"
112073
112504
  },
112074
112505
  "privacy": "protected",
112075
- "default": "null"
112506
+ "readonly": true,
112507
+ "inheritedFrom": {
112508
+ "name": "SbbActionBaseElement",
112509
+ "module": "core/base-elements/action-base-element.js"
112510
+ }
112076
112511
  },
112077
112512
  {
112078
112513
  "kind": "field",
112079
- "name": "negative",
112514
+ "name": "maybeDisabledInteractive",
112080
112515
  "type": {
112081
- "text": "boolean"
112516
+ "text": "boolean | undefined"
112082
112517
  },
112083
- "privacy": "public",
112084
- "default": "false",
112085
- "description": "Negative coloring variant flag.",
112086
- "attribute": "negative",
112087
- "reflects": true,
112518
+ "privacy": "protected",
112519
+ "readonly": true,
112088
112520
  "inheritedFrom": {
112089
- "name": "SbbNegativeMixin",
112090
- "module": "core/mixins/negative-mixin.js"
112521
+ "name": "SbbActionBaseElement",
112522
+ "module": "core/base-elements/action-base-element.js"
112523
+ }
112524
+ },
112525
+ {
112526
+ "kind": "method",
112527
+ "name": "setupBaseEventHandlers",
112528
+ "privacy": "protected",
112529
+ "return": {
112530
+ "type": {
112531
+ "text": "void"
112532
+ }
112533
+ },
112534
+ "inheritedFrom": {
112535
+ "name": "SbbActionBaseElement",
112536
+ "module": "core/base-elements/action-base-element.js"
112537
+ }
112538
+ },
112539
+ {
112540
+ "kind": "method",
112541
+ "name": "renderTemplate",
112542
+ "privacy": "protected",
112543
+ "return": {
112544
+ "type": {
112545
+ "text": "TemplateResult"
112546
+ }
112547
+ },
112548
+ "description": "Override this method to render the component template.",
112549
+ "inheritedFrom": {
112550
+ "name": "SbbActionBaseElement",
112551
+ "module": "core/base-elements/action-base-element.js"
112091
112552
  }
112092
112553
  },
112093
112554
  {
@@ -112106,465 +112567,13 @@
112106
112567
  },
112107
112568
  {
112108
112569
  "kind": "field",
112109
- "name": "elementDependencies",
112570
+ "name": "elementName",
112110
112571
  "type": {
112111
- "text": "SbbElementType[] | undefined"
112572
+ "text": "string"
112112
112573
  },
112113
112574
  "privacy": "public",
112114
112575
  "static": true,
112115
- "inheritedFrom": {
112116
- "name": "SbbElement",
112117
- "module": "core/base-elements/element.js"
112118
- }
112119
- },
112120
- {
112121
- "kind": "field",
112122
- "name": "role",
112123
- "type": {
112124
- "text": "ElementInternals['role'] | undefined"
112125
- },
112126
- "privacy": "public",
112127
- "static": true,
112128
- "inheritedFrom": {
112129
- "name": "SbbElement",
112130
- "module": "core/base-elements/element.js"
112131
- }
112132
- },
112133
- {
112134
- "kind": "field",
112135
- "name": "_controllers",
112136
- "type": {
112137
- "text": "Set<SbbReactiveController> | undefined"
112138
- },
112139
- "privacy": "private",
112140
- "inheritedFrom": {
112141
- "name": "SbbElement",
112142
- "module": "core/base-elements/element.js"
112143
- }
112144
- },
112145
- {
112146
- "kind": "field",
112147
- "name": "_hydrationRequired",
112148
- "type": {
112149
- "text": "boolean"
112150
- },
112151
- "privacy": "private",
112152
- "default": "!!this.shadowRoot",
112153
- "inheritedFrom": {
112154
- "name": "SbbElement",
112155
- "module": "core/base-elements/element.js"
112156
- }
112157
- },
112158
- {
112159
- "kind": "field",
112160
- "name": "_hydrationComplete",
112161
- "privacy": "private",
112162
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
112163
- "inheritedFrom": {
112164
- "name": "SbbElement",
112165
- "module": "core/base-elements/element.js"
112166
- }
112167
- },
112168
- {
112169
- "kind": "field",
112170
- "name": "_resolveHydration",
112171
- "type": {
112172
- "text": "(hydrationRequired: boolean) => void"
112173
- },
112174
- "privacy": "private",
112175
- "inheritedFrom": {
112176
- "name": "SbbElement",
112177
- "module": "core/base-elements/element.js"
112178
- }
112179
- },
112180
- {
112181
- "kind": "field",
112182
- "name": "_textObserver",
112183
- "type": {
112184
- "text": "MutationObserver | undefined"
112185
- },
112186
- "privacy": "private",
112187
- "inheritedFrom": {
112188
- "name": "SbbElement",
112189
- "module": "core/base-elements/element.js"
112190
- }
112191
- },
112192
- {
112193
- "kind": "field",
112194
- "name": "hydrationRequired",
112195
- "type": {
112196
- "text": "boolean"
112197
- },
112198
- "privacy": "protected",
112199
- "description": "Returns whether hydration is required and not completed.",
112200
- "readonly": true,
112201
- "inheritedFrom": {
112202
- "name": "SbbElement",
112203
- "module": "core/base-elements/element.js"
112204
- },
112205
- "default": "!!this.shadowRoot"
112206
- },
112207
- {
112208
- "kind": "method",
112209
- "name": "toggleState",
112210
- "privacy": "protected",
112211
- "return": {
112212
- "type": {
112213
- "text": "void"
112214
- }
112215
- },
112216
- "parameters": [
112217
- {
112218
- "name": "value",
112219
- "type": {
112220
- "text": "string"
112221
- }
112222
- },
112223
- {
112224
- "name": "force",
112225
- "optional": true,
112226
- "type": {
112227
- "text": "boolean"
112228
- }
112229
- }
112230
- ],
112231
- "inheritedFrom": {
112232
- "name": "SbbElement",
112233
- "module": "core/base-elements/element.js"
112234
- }
112235
- },
112236
- {
112237
- "kind": "method",
112238
- "name": "_slotchangeHandler",
112239
- "privacy": "private",
112240
- "return": {
112241
- "type": {
112242
- "text": "void"
112243
- }
112244
- },
112245
- "parameters": [
112246
- {
112247
- "name": "event",
112248
- "type": {
112249
- "text": "Event"
112250
- }
112251
- },
112252
- {
112253
- "name": "slot",
112254
- "type": {
112255
- "text": "HTMLSlotElement"
112256
- }
112257
- }
112258
- ],
112259
- "inheritedFrom": {
112260
- "name": "SbbElement",
112261
- "module": "core/base-elements/element.js"
112262
- }
112263
- },
112264
- {
112265
- "kind": "method",
112266
- "name": "_handleSlotChangeForSlottedState",
112267
- "privacy": "private",
112268
- "return": {
112269
- "type": {
112270
- "text": "void"
112271
- }
112272
- },
112273
- "parameters": [
112274
- {
112275
- "name": "slot",
112276
- "type": {
112277
- "text": "HTMLSlotElement"
112278
- }
112279
- }
112280
- ],
112281
- "inheritedFrom": {
112282
- "name": "SbbElement",
112283
- "module": "core/base-elements/element.js"
112284
- }
112285
- },
112286
- {
112287
- "kind": "method",
112288
- "name": "_updateSlottedState",
112289
- "privacy": "private",
112290
- "return": {
112291
- "type": {
112292
- "text": "void"
112293
- }
112294
- },
112295
- "parameters": [
112296
- {
112297
- "name": "slot",
112298
- "type": {
112299
- "text": "HTMLSlotElement"
112300
- }
112301
- }
112302
- ],
112303
- "inheritedFrom": {
112304
- "name": "SbbElement",
112305
- "module": "core/base-elements/element.js"
112306
- }
112307
- },
112308
- {
112309
- "kind": "method",
112310
- "name": "_observeTextNodesInSlot",
112311
- "privacy": "private",
112312
- "return": {
112313
- "type": {
112314
- "text": "void"
112315
- }
112316
- },
112317
- "parameters": [
112318
- {
112319
- "name": "slot",
112320
- "type": {
112321
- "text": "HTMLSlotElement"
112322
- }
112323
- }
112324
- ],
112325
- "inheritedFrom": {
112326
- "name": "SbbElement",
112327
- "module": "core/base-elements/element.js"
112328
- }
112329
- },
112330
- {
112331
- "kind": "method",
112332
- "name": "_hasSlottedContent",
112333
- "privacy": "private",
112334
- "return": {
112335
- "type": {
112336
- "text": "boolean"
112337
- }
112338
- },
112339
- "parameters": [
112340
- {
112341
- "name": "slot",
112342
- "type": {
112343
- "text": "HTMLSlotElement"
112344
- }
112345
- }
112346
- ],
112347
- "inheritedFrom": {
112348
- "name": "SbbElement",
112349
- "module": "core/base-elements/element.js"
112350
- }
112351
- }
112352
- ],
112353
- "mixins": [
112354
- {
112355
- "name": "SbbNegativeMixin",
112356
- "module": "core.js"
112357
- }
112358
- ],
112359
- "superclass": {
112360
- "name": "SbbElement",
112361
- "module": "core.js"
112362
- },
112363
- "tagName": "sbb-hint",
112364
- "customElement": true,
112365
- "attributes": [
112366
- {
112367
- "name": "negative",
112368
- "type": {
112369
- "text": "boolean"
112370
- },
112371
- "default": "false",
112372
- "description": "Negative coloring variant flag.",
112373
- "fieldName": "negative",
112374
- "inheritedFrom": {
112375
- "name": "SbbNegativeMixin",
112376
- "module": "core/mixins/negative-mixin.js"
112377
- }
112378
- }
112379
- ]
112380
- }
112381
- ],
112382
- "exports": [
112383
- {
112384
- "kind": "js",
112385
- "name": "SbbHintElement",
112386
- "declaration": {
112387
- "name": "SbbHintElement",
112388
- "module": "form-field/hint/hint.component.js"
112389
- }
112390
- }
112391
- ]
112392
- },
112393
- {
112394
- "kind": "javascript-module",
112395
- "path": "header/common/header-action-common.js",
112396
- "declarations": [
112397
- {
112398
- "kind": "class",
112399
- "description": "",
112400
- "name": "SbbHeaderActionCommonElementMixinType",
112401
- "members": [
112402
- {
112403
- "kind": "field",
112404
- "name": "expandFrom",
112405
- "type": {
112406
- "text": "SbbHorizontalFrom"
112407
- },
112408
- "privacy": "public"
112409
- },
112410
- {
112411
- "kind": "field",
112412
- "name": "elementDependencies",
112413
- "type": {
112414
- "text": "SbbElementType[]"
112415
- },
112416
- "privacy": "public",
112417
- "static": true,
112418
- "inheritedFrom": {
112419
- "name": "SbbElement",
112420
- "module": "core/base-elements/element.js"
112421
- },
112422
- "default": "[SbbIconElement]"
112423
- },
112424
- {
112425
- "kind": "field",
112426
- "name": "iconName",
112427
- "type": {
112428
- "text": "string"
112429
- },
112430
- "privacy": "public",
112431
- "default": "''",
112432
- "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.",
112433
- "attribute": "icon-name",
112434
- "inheritedFrom": {
112435
- "name": "SbbIconNameMixin",
112436
- "module": "icon/icon-name-mixin.js"
112437
- }
112438
- },
112439
- {
112440
- "kind": "method",
112441
- "name": "renderIconSlot",
112442
- "privacy": "protected",
112443
- "return": {
112444
- "type": {
112445
- "text": "TemplateResult"
112446
- }
112447
- },
112448
- "parameters": [
112449
- {
112450
- "name": "classname",
112451
- "optional": true,
112452
- "type": {
112453
- "text": "string"
112454
- }
112455
- }
112456
- ],
112457
- "inheritedFrom": {
112458
- "name": "SbbIconNameMixin",
112459
- "module": "icon/icon-name-mixin.js"
112460
- }
112461
- },
112462
- {
112463
- "kind": "method",
112464
- "name": "renderIconName",
112465
- "privacy": "protected",
112466
- "return": {
112467
- "type": {
112468
- "text": "string"
112469
- }
112470
- },
112471
- "inheritedFrom": {
112472
- "name": "SbbIconNameMixin",
112473
- "module": "icon/icon-name-mixin.js"
112474
- }
112475
- },
112476
- {
112477
- "kind": "method",
112478
- "name": "_renderIconName",
112479
- "privacy": "private",
112480
- "return": {
112481
- "type": {
112482
- "text": "string"
112483
- }
112484
- },
112485
- "inheritedFrom": {
112486
- "name": "SbbIconNameMixin",
112487
- "module": "icon/icon-name-mixin.js"
112488
- }
112489
- },
112490
- {
112491
- "kind": "field",
112492
- "name": "maybeDisabled",
112493
- "type": {
112494
- "text": "boolean | undefined"
112495
- },
112496
- "privacy": "protected",
112497
- "readonly": true,
112498
- "inheritedFrom": {
112499
- "name": "SbbActionBaseElement",
112500
- "module": "core/base-elements/action-base-element.js"
112501
- }
112502
- },
112503
- {
112504
- "kind": "field",
112505
- "name": "maybeDisabledInteractive",
112506
- "type": {
112507
- "text": "boolean | undefined"
112508
- },
112509
- "privacy": "protected",
112510
- "readonly": true,
112511
- "inheritedFrom": {
112512
- "name": "SbbActionBaseElement",
112513
- "module": "core/base-elements/action-base-element.js"
112514
- }
112515
- },
112516
- {
112517
- "kind": "method",
112518
- "name": "setupBaseEventHandlers",
112519
- "privacy": "protected",
112520
- "return": {
112521
- "type": {
112522
- "text": "void"
112523
- }
112524
- },
112525
- "inheritedFrom": {
112526
- "name": "SbbActionBaseElement",
112527
- "module": "core/base-elements/action-base-element.js"
112528
- }
112529
- },
112530
- {
112531
- "kind": "method",
112532
- "name": "renderTemplate",
112533
- "privacy": "protected",
112534
- "return": {
112535
- "type": {
112536
- "text": "TemplateResult"
112537
- }
112538
- },
112539
- "description": "Override this method to render the component template.",
112540
- "inheritedFrom": {
112541
- "name": "SbbActionBaseElement",
112542
- "module": "core/base-elements/action-base-element.js"
112543
- }
112544
- },
112545
- {
112546
- "kind": "field",
112547
- "name": "['_$sbbElement$']",
112548
- "type": {
112549
- "text": "boolean"
112550
- },
112551
- "privacy": "public",
112552
- "static": true,
112553
- "default": "true",
112554
- "inheritedFrom": {
112555
- "name": "SbbElement",
112556
- "module": "core/base-elements/element.js"
112557
- }
112558
- },
112559
- {
112560
- "kind": "field",
112561
- "name": "elementName",
112562
- "type": {
112563
- "text": "string"
112564
- },
112565
- "privacy": "public",
112566
- "static": true,
112567
- "readonly": true,
112576
+ "readonly": true,
112568
112577
  "inheritedFrom": {
112569
112578
  "name": "SbbElement",
112570
112579
  "module": "core/base-elements/element.js"
@@ -143105,28 +143114,20 @@
143105
143114
  },
143106
143115
  {
143107
143116
  "kind": "javascript-module",
143108
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
143117
+ "path": "sidebar/sidebar/sidebar.component.js",
143109
143118
  "declarations": [
143110
143119
  {
143111
143120
  "kind": "class",
143112
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
143113
- "name": "SbbSidebarCloseButtonElement",
143121
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
143122
+ "name": "SbbSidebarElement",
143114
143123
  "slots": [
143115
143124
  {
143116
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
143117
- "name": "",
143118
- "inheritedFrom": {
143119
- "name": "SbbSecondaryButtonElement",
143120
- "module": "button/secondary-button/secondary-button.component.js"
143121
- }
143125
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
143126
+ "name": ""
143122
143127
  },
143123
143128
  {
143124
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
143125
- "name": "icon",
143126
- "inheritedFrom": {
143127
- "name": "SbbSecondaryButtonElement",
143128
- "module": "button/secondary-button/secondary-button.component.js"
143129
- }
143129
+ "description": "Use the title slot to add an <sbb-title>.",
143130
+ "name": "title"
143130
143131
  }
143131
143132
  ],
143132
143133
  "members": [
@@ -143143,331 +143144,489 @@
143143
143144
  "name": "SbbElement",
143144
143145
  "module": "core/base-elements/element.js"
143145
143146
  },
143146
- "default": "'sbb-sidebar-close-button'"
143147
+ "default": "'sbb-sidebar'"
143147
143148
  },
143148
143149
  {
143149
143150
  "kind": "field",
143150
- "name": "_languageController",
143151
- "privacy": "private",
143152
- "default": "new SbbLanguageController(this)"
143153
- },
143154
- {
143155
- "kind": "method",
143156
- "name": "renderTemplate",
143157
- "privacy": "protected",
143158
- "return": {
143159
- "type": {
143160
- "text": "TemplateResult"
143161
- }
143151
+ "name": "color",
143152
+ "type": {
143153
+ "text": "'white' | 'milk'"
143162
143154
  },
143163
- "description": "Override this method to render the component template.",
143164
- "inheritedFrom": {
143165
- "name": "SbbActionBaseElement",
143166
- "module": "core/base-elements/action-base-element.js"
143167
- }
143155
+ "privacy": "public",
143156
+ "default": "'white'",
143157
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
143158
+ "attribute": "color",
143159
+ "reflects": true
143168
143160
  },
143169
143161
  {
143170
- "kind": "method",
143171
- "name": "renderIconName",
143172
- "privacy": "protected",
143173
- "return": {
143174
- "type": {
143175
- "text": "string"
143176
- }
143162
+ "kind": "field",
143163
+ "name": "mode",
143164
+ "type": {
143165
+ "text": "'side' | 'over'"
143177
143166
  },
143178
- "inheritedFrom": {
143179
- "name": "SbbIconNameMixin",
143180
- "module": "icon/icon-name-mixin.js"
143181
- }
143167
+ "privacy": "public",
143168
+ "default": "'side'",
143169
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
143170
+ "attribute": "mode",
143171
+ "reflects": true
143182
143172
  },
143183
143173
  {
143184
143174
  "kind": "field",
143185
- "name": "size",
143175
+ "name": "position",
143186
143176
  "type": {
143187
- "text": "SbbButtonSize"
143177
+ "text": "'start' | 'end'"
143188
143178
  },
143189
143179
  "privacy": "public",
143190
- "description": "Size variant, either l, m or s.",
143191
- "default": "'s'",
143192
- "attribute": "size",
143193
- "reflects": true,
143194
- "inheritedFrom": {
143195
- "name": "SbbButtonCommonElementMixin",
143196
- "module": "button/common/button-common.js"
143197
- }
143180
+ "default": "'start'",
143181
+ "description": "The side that the sidebar is attached to.",
143182
+ "attribute": "position",
143183
+ "reflects": true
143198
143184
  },
143199
143185
  {
143200
143186
  "kind": "field",
143201
- "name": "loading",
143187
+ "name": "opened",
143202
143188
  "type": {
143203
143189
  "text": "boolean"
143204
143190
  },
143205
143191
  "privacy": "public",
143206
143192
  "default": "false",
143207
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
143208
- "attribute": "loading",
143209
- "reflects": true,
143210
- "inheritedFrom": {
143211
- "name": "SbbButtonCommonElementMixin",
143212
- "module": "button/common/button-common.js"
143213
- }
143193
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
143194
+ "attribute": "opened",
143195
+ "reflects": true
143214
143196
  },
143215
143197
  {
143216
143198
  "kind": "field",
143217
- "name": "negative",
143199
+ "name": "focusOnOpen",
143218
143200
  "type": {
143219
143201
  "text": "boolean"
143220
143202
  },
143221
143203
  "privacy": "public",
143222
143204
  "default": "false",
143223
- "description": "Negative coloring variant flag.",
143224
- "attribute": "negative",
143225
- "reflects": true,
143226
- "inheritedFrom": {
143227
- "name": "SbbNegativeMixin",
143228
- "module": "core/mixins/negative-mixin.js"
143229
- }
143205
+ "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.",
143206
+ "attribute": "focus-on-open"
143230
143207
  },
143231
143208
  {
143232
143209
  "kind": "field",
143233
- "name": "elementDependencies",
143210
+ "name": "container",
143234
143211
  "type": {
143235
- "text": "SbbElementType[]"
143212
+ "text": "SbbSidebarContainerElement | null"
143236
143213
  },
143237
143214
  "privacy": "public",
143238
- "static": true,
143239
- "inheritedFrom": {
143240
- "name": "SbbElement",
143241
- "module": "core/base-elements/element.js"
143215
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
143216
+ "readonly": true,
143217
+ "default": "null"
143218
+ },
143219
+ {
143220
+ "kind": "field",
143221
+ "name": "_container",
143222
+ "type": {
143223
+ "text": "SbbSidebarContainerElement | null"
143242
143224
  },
143243
- "default": "[SbbIconElement]"
143225
+ "privacy": "private",
143226
+ "default": "null"
143244
143227
  },
143245
143228
  {
143246
143229
  "kind": "field",
143247
- "name": "iconName",
143230
+ "name": "_lastFocusedElement",
143248
143231
  "type": {
143249
- "text": "string"
143232
+ "text": "HTMLElement | null"
143250
143233
  },
143234
+ "privacy": "private",
143235
+ "default": "null"
143236
+ },
143237
+ {
143238
+ "kind": "field",
143239
+ "name": "_focusTrapController",
143240
+ "privacy": "private",
143241
+ "default": "new SbbFocusTrapController(this)"
143242
+ },
143243
+ {
143244
+ "kind": "field",
143245
+ "name": "_escapableOverlayController",
143246
+ "privacy": "private",
143247
+ "default": "new SbbEscapableOverlayController(this)"
143248
+ },
143249
+ {
143250
+ "kind": "field",
143251
+ "name": "_closeOnNavigation",
143252
+ "privacy": "private"
143253
+ },
143254
+ {
143255
+ "kind": "method",
143256
+ "name": "toggle",
143251
143257
  "privacy": "public",
143252
- "default": "''",
143253
- "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.",
143254
- "attribute": "icon-name",
143258
+ "return": {
143259
+ "type": {
143260
+ "text": "void"
143261
+ }
143262
+ },
143263
+ "description": "Toggles the sidebar visibility."
143264
+ },
143265
+ {
143266
+ "kind": "method",
143267
+ "name": "open",
143268
+ "privacy": "public",
143269
+ "return": {
143270
+ "type": {
143271
+ "text": "void"
143272
+ }
143273
+ },
143274
+ "description": "Opens the sidebar.",
143255
143275
  "inheritedFrom": {
143256
- "name": "SbbIconNameMixin",
143257
- "module": "icon/icon-name-mixin.js"
143276
+ "name": "SbbOpenCloseBaseElement",
143277
+ "module": "core/base-elements/open-close-base-element.js"
143258
143278
  }
143259
143279
  },
143260
143280
  {
143261
143281
  "kind": "method",
143262
- "name": "renderIconSlot",
143282
+ "name": "_isZeroAnimationDuration",
143283
+ "privacy": "private",
143284
+ "return": {
143285
+ "type": {
143286
+ "text": "boolean"
143287
+ }
143288
+ }
143289
+ },
143290
+ {
143291
+ "kind": "method",
143292
+ "name": "_handleOpening",
143293
+ "privacy": "private",
143294
+ "return": {
143295
+ "type": {
143296
+ "text": "void"
143297
+ }
143298
+ }
143299
+ },
143300
+ {
143301
+ "kind": "method",
143302
+ "name": "close",
143303
+ "privacy": "public",
143304
+ "return": {
143305
+ "type": {
143306
+ "text": "void"
143307
+ }
143308
+ },
143309
+ "description": "Closes the sidebar.",
143310
+ "inheritedFrom": {
143311
+ "name": "SbbOpenCloseBaseElement",
143312
+ "module": "core/base-elements/open-close-base-element.js"
143313
+ }
143314
+ },
143315
+ {
143316
+ "kind": "method",
143317
+ "name": "_handleClosing",
143318
+ "privacy": "private",
143319
+ "return": {
143320
+ "type": {
143321
+ "text": "void"
143322
+ }
143323
+ }
143324
+ },
143325
+ {
143326
+ "kind": "method",
143327
+ "name": "_takeFocus",
143328
+ "privacy": "private",
143329
+ "return": {
143330
+ "type": {
143331
+ "text": "void"
143332
+ }
143333
+ }
143334
+ },
143335
+ {
143336
+ "kind": "method",
143337
+ "name": "cedeFocus",
143263
143338
  "privacy": "protected",
143264
143339
  "return": {
143265
143340
  "type": {
143266
- "text": "TemplateResult"
143341
+ "text": "void"
143342
+ }
143343
+ }
143344
+ },
143345
+ {
143346
+ "kind": "method",
143347
+ "name": "_updateSidebarWidth",
143348
+ "privacy": "private",
143349
+ "return": {
143350
+ "type": {
143351
+ "text": "void"
143267
143352
  }
143268
143353
  },
143269
143354
  "parameters": [
143270
143355
  {
143271
- "name": "classname",
143356
+ "name": "oldPosition",
143272
143357
  "optional": true,
143273
143358
  "type": {
143274
- "text": "string"
143359
+ "text": "this['position']"
143275
143360
  }
143276
143361
  }
143277
- ],
143278
- "inheritedFrom": {
143279
- "name": "SbbIconNameMixin",
143280
- "module": "icon/icon-name-mixin.js"
143281
- }
143362
+ ]
143282
143363
  },
143283
143364
  {
143284
143365
  "kind": "method",
143285
- "name": "_renderIconName",
143366
+ "name": "_buildCssWidthVar",
143286
143367
  "privacy": "private",
143287
143368
  "return": {
143288
143369
  "type": {
143289
143370
  "text": "string"
143290
143371
  }
143291
143372
  },
143292
- "inheritedFrom": {
143293
- "name": "SbbIconNameMixin",
143294
- "module": "icon/icon-name-mixin.js"
143373
+ "parameters": [
143374
+ {
143375
+ "name": "position",
143376
+ "default": "this.position"
143377
+ }
143378
+ ]
143379
+ },
143380
+ {
143381
+ "kind": "method",
143382
+ "name": "_isModeOver",
143383
+ "privacy": "private",
143384
+ "return": {
143385
+ "type": {
143386
+ "text": "boolean"
143387
+ }
143388
+ }
143389
+ },
143390
+ {
143391
+ "kind": "method",
143392
+ "name": "_onTransitionEnd",
143393
+ "privacy": "private",
143394
+ "return": {
143395
+ "type": {
143396
+ "text": "void"
143397
+ }
143398
+ },
143399
+ "parameters": [
143400
+ {
143401
+ "name": "event",
143402
+ "type": {
143403
+ "text": "TransitionEvent"
143404
+ }
143405
+ }
143406
+ ]
143407
+ },
143408
+ {
143409
+ "kind": "method",
143410
+ "name": "_detectScrolledState",
143411
+ "privacy": "private",
143412
+ "return": {
143413
+ "type": {
143414
+ "text": "void"
143415
+ }
143295
143416
  }
143296
143417
  },
143297
143418
  {
143298
143419
  "kind": "field",
143299
- "name": "disabledInteractive",
143420
+ "name": "isAnimating",
143300
143421
  "type": {
143301
143422
  "text": "boolean"
143302
143423
  },
143303
143424
  "privacy": "public",
143304
143425
  "default": "false",
143305
- "description": "Whether the button should be aria-disabled but stay interactive.",
143306
- "attribute": "disabled-interactive",
143307
- "reflects": true,
143426
+ "description": "Whether the component is currently animating.",
143308
143427
  "inheritedFrom": {
143309
- "name": "SbbDisabledInteractiveMixin",
143310
- "module": "core/mixins/disabled-mixin.js"
143428
+ "name": "SbbAnimationCompleteMixin",
143429
+ "module": "core/mixins/animation-complete-mixin.js"
143311
143430
  }
143312
143431
  },
143313
143432
  {
143314
143433
  "kind": "field",
143315
- "name": "disabled",
143316
- "privacy": "public",
143317
- "description": "Whether the component is disabled.",
143318
- "default": "false",
143434
+ "name": "animationComplete",
143319
143435
  "type": {
143320
- "text": "boolean"
143436
+ "text": "Promise<void>"
143321
143437
  },
143322
- "attribute": "disabled",
143323
- "reflects": true,
143438
+ "privacy": "public",
143439
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
143440
+ "readonly": true,
143324
143441
  "inheritedFrom": {
143325
- "name": "SbbDisabledMixin",
143326
- "module": "core/mixins/disabled-mixin.js"
143442
+ "name": "SbbAnimationCompleteMixin",
143443
+ "module": "core/mixins/animation-complete-mixin.js"
143327
143444
  }
143328
143445
  },
143329
143446
  {
143330
143447
  "kind": "field",
143331
- "name": "#disabled",
143332
- "privacy": "private",
143448
+ "name": "_animationPromise",
143333
143449
  "type": {
143334
- "text": "boolean"
143450
+ "text": "Promise<void>"
143335
143451
  },
143336
- "default": "false",
143452
+ "privacy": "private",
143337
143453
  "inheritedFrom": {
143338
- "name": "SbbDisabledMixin",
143339
- "module": "core/mixins/disabled-mixin.js"
143454
+ "name": "SbbAnimationCompleteMixin",
143455
+ "module": "core/mixins/animation-complete-mixin.js"
143340
143456
  }
143341
143457
  },
143342
143458
  {
143343
143459
  "kind": "method",
143344
- "name": "isDisabledExternally",
143460
+ "name": "startAnimation",
143345
143461
  "privacy": "protected",
143346
143462
  "return": {
143347
143463
  "type": {
143348
- "text": "boolean"
143464
+ "text": "void"
143349
143465
  }
143350
143466
  },
143351
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
143352
143467
  "inheritedFrom": {
143353
- "name": "SbbDisabledMixin",
143354
- "module": "core/mixins/disabled-mixin.js"
143468
+ "name": "SbbAnimationCompleteMixin",
143469
+ "module": "core/mixins/animation-complete-mixin.js"
143355
143470
  }
143356
143471
  },
143357
143472
  {
143358
- "kind": "field",
143359
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
143360
- "type": {
143361
- "text": "array"
143473
+ "kind": "method",
143474
+ "name": "stopAnimation",
143475
+ "privacy": "protected",
143476
+ "return": {
143477
+ "type": {
143478
+ "text": "void"
143479
+ }
143362
143480
  },
143363
- "privacy": "private",
143364
- "readonly": true,
143365
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
143481
+ "description": "Overriding stopAnimation() breaks functionality.",
143366
143482
  "inheritedFrom": {
143367
- "name": "SbbButtonBaseElement",
143368
- "module": "core/base-elements/button-base-element.js"
143483
+ "name": "SbbAnimationCompleteMixin",
143484
+ "module": "core/mixins/animation-complete-mixin.js"
143369
143485
  }
143370
143486
  },
143371
143487
  {
143372
- "kind": "field",
143373
- "name": "value",
143374
- "type": {
143375
- "text": "string"
143488
+ "kind": "method",
143489
+ "name": "_enqueueAnimation",
143490
+ "privacy": "private",
143491
+ "return": {
143492
+ "type": {
143493
+ "text": "Promise<void>"
143494
+ }
143376
143495
  },
143377
- "privacy": "public",
143378
143496
  "inheritedFrom": {
143379
- "name": "SbbButtonBaseElement",
143380
- "module": "core/base-elements/button-base-element.js"
143381
- },
143382
- "default": "''",
143383
- "description": "Value of the form element.",
143384
- "attribute": "value"
143497
+ "name": "SbbAnimationCompleteMixin",
143498
+ "module": "core/mixins/animation-complete-mixin.js"
143499
+ }
143385
143500
  },
143386
143501
  {
143387
143502
  "kind": "field",
143388
- "name": "type",
143503
+ "name": "events",
143389
143504
  "privacy": "public",
143390
- "description": "The type attribute to use for the button.",
143391
- "default": "'button'",
143505
+ "static": true,
143506
+ "readonly": true,
143507
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
143392
143508
  "type": {
143393
- "text": "SbbButtonType"
143509
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
143394
143510
  },
143395
- "attribute": "type",
143396
143511
  "inheritedFrom": {
143397
- "name": "SbbButtonBaseElement",
143398
- "module": "core/base-elements/button-base-element.js"
143512
+ "name": "SbbOpenCloseBaseElement",
143513
+ "module": "core/base-elements/open-close-base-element.js"
143399
143514
  }
143400
143515
  },
143401
143516
  {
143402
143517
  "kind": "field",
143403
- "name": "form",
143518
+ "name": "state",
143519
+ "privacy": "protected",
143520
+ "description": "The state of the component.",
143404
143521
  "type": {
143405
- "text": "HTMLFormElement | null"
143522
+ "text": "SbbOpenedClosedState"
143406
143523
  },
143407
- "privacy": "public",
143408
- "description": "The `<form>` element to associate the button with.",
143524
+ "default": "'closed'",
143409
143525
  "inheritedFrom": {
143410
- "name": "SbbButtonBaseElement",
143411
- "module": "core/base-elements/button-base-element.js"
143412
- },
143413
- "attribute": "form"
143526
+ "name": "SbbOpenCloseBaseElement",
143527
+ "module": "core/base-elements/open-close-base-element.js"
143528
+ }
143414
143529
  },
143415
143530
  {
143416
143531
  "kind": "field",
143417
- "name": "_formId",
143532
+ "name": "_state",
143418
143533
  "type": {
143419
- "text": "string"
143534
+ "text": "SbbOpenedClosedState"
143420
143535
  },
143421
143536
  "privacy": "private",
143422
- "default": "''",
143423
143537
  "inheritedFrom": {
143424
- "name": "SbbButtonBaseElement",
143425
- "module": "core/base-elements/button-base-element.js"
143538
+ "name": "SbbOpenCloseBaseElement",
143539
+ "module": "core/base-elements/open-close-base-element.js"
143426
143540
  }
143427
143541
  },
143428
143542
  {
143429
143543
  "kind": "field",
143430
- "name": "_handleButtonClick",
143431
- "privacy": "private",
143544
+ "name": "isOpen",
143545
+ "type": {
143546
+ "text": "boolean"
143547
+ },
143548
+ "privacy": "public",
143549
+ "description": "Whether the element is open.",
143550
+ "readonly": true,
143432
143551
  "inheritedFrom": {
143433
- "name": "SbbButtonBaseElement",
143434
- "module": "core/base-elements/button-base-element.js"
143552
+ "name": "SbbOpenCloseBaseElement",
143553
+ "module": "core/base-elements/open-close-base-element.js"
143435
143554
  }
143436
143555
  },
143437
143556
  {
143438
143557
  "kind": "method",
143439
- "name": "_requestSubmit",
143440
- "privacy": "private",
143558
+ "name": "escapeStrategy",
143559
+ "privacy": "public",
143441
143560
  "return": {
143442
143561
  "type": {
143443
143562
  "text": "void"
143444
143563
  }
143445
143564
  },
143446
- "parameters": [
143447
- {
143448
- "name": "form",
143449
- "type": {
143450
- "text": "HTMLFormElement"
143451
- }
143565
+ "description": "The method which is called on escape key press. Defaults to calling close()",
143566
+ "inheritedFrom": {
143567
+ "name": "SbbOpenCloseBaseElement",
143568
+ "module": "core/base-elements/open-close-base-element.js"
143569
+ }
143570
+ },
143571
+ {
143572
+ "kind": "method",
143573
+ "name": "dispatchBeforeOpenEvent",
143574
+ "privacy": "protected",
143575
+ "return": {
143576
+ "type": {
143577
+ "text": "boolean"
143452
143578
  }
143453
- ],
143579
+ },
143454
143580
  "inheritedFrom": {
143455
- "name": "SbbButtonBaseElement",
143456
- "module": "core/base-elements/button-base-element.js"
143581
+ "name": "SbbOpenCloseBaseElement",
143582
+ "module": "core/base-elements/open-close-base-element.js"
143457
143583
  }
143458
143584
  },
143459
143585
  {
143460
- "kind": "field",
143461
- "name": "_formKeyDown",
143462
- "privacy": "private",
143586
+ "kind": "method",
143587
+ "name": "dispatchOpenEvent",
143588
+ "privacy": "protected",
143589
+ "return": {
143590
+ "type": {
143591
+ "text": "boolean"
143592
+ }
143593
+ },
143463
143594
  "inheritedFrom": {
143464
- "name": "SbbButtonBaseElement",
143465
- "module": "core/base-elements/button-base-element.js"
143595
+ "name": "SbbOpenCloseBaseElement",
143596
+ "module": "core/base-elements/open-close-base-element.js"
143597
+ }
143598
+ },
143599
+ {
143600
+ "kind": "method",
143601
+ "name": "dispatchBeforeCloseEvent",
143602
+ "privacy": "protected",
143603
+ "return": {
143604
+ "type": {
143605
+ "text": "boolean"
143606
+ }
143607
+ },
143608
+ "inheritedFrom": {
143609
+ "name": "SbbOpenCloseBaseElement",
143610
+ "module": "core/base-elements/open-close-base-element.js"
143611
+ }
143612
+ },
143613
+ {
143614
+ "kind": "method",
143615
+ "name": "dispatchCloseEvent",
143616
+ "privacy": "protected",
143617
+ "return": {
143618
+ "type": {
143619
+ "text": "boolean"
143620
+ }
143621
+ },
143622
+ "inheritedFrom": {
143623
+ "name": "SbbOpenCloseBaseElement",
143624
+ "module": "core/base-elements/open-close-base-element.js"
143466
143625
  }
143467
143626
  },
143468
143627
  {
143469
143628
  "kind": "field",
143470
- "name": "formAssociated",
143629
+ "name": "['_$sbbElement$']",
143471
143630
  "type": {
143472
143631
  "text": "boolean"
143473
143632
  },
@@ -143475,124 +143634,114 @@
143475
143634
  "static": true,
143476
143635
  "default": "true",
143477
143636
  "inheritedFrom": {
143478
- "name": "SbbFormAssociatedMixin",
143479
- "module": "core/mixins/form-associated-mixin.js"
143637
+ "name": "SbbElement",
143638
+ "module": "core/base-elements/element.js"
143480
143639
  }
143481
143640
  },
143482
143641
  {
143483
143642
  "kind": "field",
143484
- "name": "name",
143485
- "privacy": "public",
143486
- "description": "Name of the form element. Will be read from name attribute.",
143643
+ "name": "elementDependencies",
143487
143644
  "type": {
143488
- "text": "string"
143645
+ "text": "SbbElementType[] | undefined"
143489
143646
  },
143490
- "attribute": "name",
143647
+ "privacy": "public",
143648
+ "static": true,
143491
143649
  "inheritedFrom": {
143492
- "name": "SbbFormAssociatedMixin",
143493
- "module": "core/mixins/form-associated-mixin.js"
143650
+ "name": "SbbElement",
143651
+ "module": "core/base-elements/element.js"
143494
143652
  }
143495
143653
  },
143496
143654
  {
143497
143655
  "kind": "field",
143498
- "name": "validity",
143656
+ "name": "role",
143499
143657
  "type": {
143500
- "text": "ValidityState"
143658
+ "text": "ElementInternals['role'] | undefined"
143501
143659
  },
143502
143660
  "privacy": "public",
143503
- "description": "Returns the ValidityState object for this element.",
143504
- "readonly": true,
143661
+ "static": true,
143505
143662
  "inheritedFrom": {
143506
- "name": "SbbFormAssociatedMixin",
143507
- "module": "core/mixins/form-associated-mixin.js"
143663
+ "name": "SbbElement",
143664
+ "module": "core/base-elements/element.js"
143508
143665
  }
143509
143666
  },
143510
143667
  {
143511
143668
  "kind": "field",
143512
- "name": "validationMessage",
143669
+ "name": "_controllers",
143513
143670
  "type": {
143514
- "text": "string"
143671
+ "text": "Set<SbbReactiveController> | undefined"
143515
143672
  },
143516
- "privacy": "public",
143517
- "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.",
143518
- "readonly": true,
143673
+ "privacy": "private",
143519
143674
  "inheritedFrom": {
143520
- "name": "SbbFormAssociatedMixin",
143521
- "module": "core/mixins/form-associated-mixin.js"
143675
+ "name": "SbbElement",
143676
+ "module": "core/base-elements/element.js"
143522
143677
  }
143523
143678
  },
143524
143679
  {
143525
143680
  "kind": "field",
143526
- "name": "willValidate",
143681
+ "name": "_hydrationRequired",
143527
143682
  "type": {
143528
143683
  "text": "boolean"
143529
143684
  },
143530
- "privacy": "public",
143531
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
143532
- "readonly": true,
143685
+ "privacy": "private",
143686
+ "default": "!!this.shadowRoot",
143533
143687
  "inheritedFrom": {
143534
- "name": "SbbFormAssociatedMixin",
143535
- "module": "core/mixins/form-associated-mixin.js"
143688
+ "name": "SbbElement",
143689
+ "module": "core/base-elements/element.js"
143536
143690
  }
143537
143691
  },
143538
143692
  {
143539
143693
  "kind": "field",
143540
- "name": "_validityStates",
143694
+ "name": "_hydrationComplete",
143541
143695
  "privacy": "private",
143542
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
143696
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
143543
143697
  "inheritedFrom": {
143544
- "name": "SbbFormAssociatedMixin",
143545
- "module": "core/mixins/form-associated-mixin.js"
143698
+ "name": "SbbElement",
143699
+ "module": "core/base-elements/element.js"
143546
143700
  }
143547
143701
  },
143548
143702
  {
143549
143703
  "kind": "field",
143550
- "name": "formDisabled",
143704
+ "name": "_resolveHydration",
143551
143705
  "type": {
143552
- "text": "boolean"
143706
+ "text": "(hydrationRequired: boolean) => void"
143553
143707
  },
143554
- "privacy": "protected",
143555
- "default": "false",
143556
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
143708
+ "privacy": "private",
143557
143709
  "inheritedFrom": {
143558
- "name": "SbbFormAssociatedMixin",
143559
- "module": "core/mixins/form-associated-mixin.js"
143710
+ "name": "SbbElement",
143711
+ "module": "core/base-elements/element.js"
143560
143712
  }
143561
143713
  },
143562
143714
  {
143563
- "kind": "method",
143564
- "name": "checkValidity",
143565
- "privacy": "public",
143566
- "return": {
143567
- "type": {
143568
- "text": "boolean"
143569
- }
143715
+ "kind": "field",
143716
+ "name": "_textObserver",
143717
+ "type": {
143718
+ "text": "MutationObserver | undefined"
143570
143719
  },
143571
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
143720
+ "privacy": "private",
143572
143721
  "inheritedFrom": {
143573
- "name": "SbbFormAssociatedMixin",
143574
- "module": "core/mixins/form-associated-mixin.js"
143722
+ "name": "SbbElement",
143723
+ "module": "core/base-elements/element.js"
143575
143724
  }
143576
143725
  },
143577
143726
  {
143578
- "kind": "method",
143579
- "name": "reportValidity",
143580
- "privacy": "public",
143581
- "return": {
143582
- "type": {
143583
- "text": "boolean"
143584
- }
143727
+ "kind": "field",
143728
+ "name": "hydrationRequired",
143729
+ "type": {
143730
+ "text": "boolean"
143585
143731
  },
143586
- "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.",
143732
+ "privacy": "protected",
143733
+ "description": "Returns whether hydration is required and not completed.",
143734
+ "readonly": true,
143587
143735
  "inheritedFrom": {
143588
- "name": "SbbFormAssociatedMixin",
143589
- "module": "core/mixins/form-associated-mixin.js"
143590
- }
143736
+ "name": "SbbElement",
143737
+ "module": "core/base-elements/element.js"
143738
+ },
143739
+ "default": "!!this.shadowRoot"
143591
143740
  },
143592
143741
  {
143593
143742
  "kind": "method",
143594
- "name": "setCustomValidity",
143595
- "privacy": "public",
143743
+ "name": "toggleState",
143744
+ "privacy": "protected",
143596
143745
  "return": {
143597
143746
  "type": {
143598
143747
  "text": "void"
@@ -143600,65 +143749,56 @@
143600
143749
  },
143601
143750
  "parameters": [
143602
143751
  {
143603
- "name": "message",
143752
+ "name": "value",
143604
143753
  "type": {
143605
143754
  "text": "string"
143606
143755
  }
143756
+ },
143757
+ {
143758
+ "name": "force",
143759
+ "optional": true,
143760
+ "type": {
143761
+ "text": "boolean"
143762
+ }
143607
143763
  }
143608
143764
  ],
143609
- "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.",
143610
143765
  "inheritedFrom": {
143611
- "name": "SbbFormAssociatedMixin",
143612
- "module": "core/mixins/form-associated-mixin.js"
143766
+ "name": "SbbElement",
143767
+ "module": "core/base-elements/element.js"
143613
143768
  }
143614
143769
  },
143615
143770
  {
143616
143771
  "kind": "method",
143617
- "name": "_hasDisabledAncestor",
143772
+ "name": "_slotchangeHandler",
143618
143773
  "privacy": "private",
143619
- "return": {
143620
- "type": {
143621
- "text": "boolean"
143622
- }
143623
- },
143624
- "inheritedFrom": {
143625
- "name": "SbbFormAssociatedMixin",
143626
- "module": "core/mixins/form-associated-mixin.js"
143627
- }
143628
- },
143629
- {
143630
- "kind": "method",
143631
- "name": "updateFormValue",
143632
- "privacy": "protected",
143633
143774
  "return": {
143634
143775
  "type": {
143635
143776
  "text": "void"
143636
143777
  }
143637
143778
  },
143638
- "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",
143639
- "inheritedFrom": {
143640
- "name": "SbbFormAssociatedMixin",
143641
- "module": "core/mixins/form-associated-mixin.js"
143642
- }
143643
- },
143644
- {
143645
- "kind": "method",
143646
- "name": "formState",
143647
- "privacy": "protected",
143648
- "return": {
143649
- "type": {
143650
- "text": "FormRestoreState"
143779
+ "parameters": [
143780
+ {
143781
+ "name": "event",
143782
+ "type": {
143783
+ "text": "Event"
143784
+ }
143785
+ },
143786
+ {
143787
+ "name": "slot",
143788
+ "type": {
143789
+ "text": "HTMLSlotElement"
143790
+ }
143651
143791
  }
143652
- },
143792
+ ],
143653
143793
  "inheritedFrom": {
143654
- "name": "SbbFormAssociatedMixin",
143655
- "module": "core/mixins/form-associated-mixin.js"
143794
+ "name": "SbbElement",
143795
+ "module": "core/base-elements/element.js"
143656
143796
  }
143657
143797
  },
143658
143798
  {
143659
143799
  "kind": "method",
143660
- "name": "setValidityFlag",
143661
- "privacy": "protected",
143800
+ "name": "_handleSlotChangeForSlottedState",
143801
+ "privacy": "private",
143662
143802
  "return": {
143663
143803
  "type": {
143664
143804
  "text": "void"
@@ -143666,35 +143806,21 @@
143666
143806
  },
143667
143807
  "parameters": [
143668
143808
  {
143669
- "name": "flag",
143670
- "type": {
143671
- "text": "T"
143672
- }
143673
- },
143674
- {
143675
- "name": "message",
143676
- "type": {
143677
- "text": "string"
143678
- }
143679
- },
143680
- {
143681
- "name": "flagValue",
143682
- "optional": true,
143809
+ "name": "slot",
143683
143810
  "type": {
143684
- "text": "ValidityStateFlags[T]"
143811
+ "text": "HTMLSlotElement"
143685
143812
  }
143686
143813
  }
143687
143814
  ],
143688
- "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).",
143689
143815
  "inheritedFrom": {
143690
- "name": "SbbFormAssociatedMixin",
143691
- "module": "core/mixins/form-associated-mixin.js"
143816
+ "name": "SbbElement",
143817
+ "module": "core/base-elements/element.js"
143692
143818
  }
143693
143819
  },
143694
143820
  {
143695
143821
  "kind": "method",
143696
- "name": "removeValidityFlag",
143697
- "privacy": "protected",
143822
+ "name": "_updateSlottedState",
143823
+ "privacy": "private",
143698
143824
  "return": {
143699
143825
  "type": {
143700
143826
  "text": "void"
@@ -143702,37 +143828,43 @@
143702
143828
  },
143703
143829
  "parameters": [
143704
143830
  {
143705
- "name": "flag",
143831
+ "name": "slot",
143706
143832
  "type": {
143707
- "text": "T"
143833
+ "text": "HTMLSlotElement"
143708
143834
  }
143709
143835
  }
143710
143836
  ],
143711
- "description": "Removes the validity state flag entry and updates validity state.",
143712
143837
  "inheritedFrom": {
143713
- "name": "SbbFormAssociatedMixin",
143714
- "module": "core/mixins/form-associated-mixin.js"
143838
+ "name": "SbbElement",
143839
+ "module": "core/base-elements/element.js"
143715
143840
  }
143716
143841
  },
143717
143842
  {
143718
143843
  "kind": "method",
143719
- "name": "validate",
143720
- "privacy": "protected",
143844
+ "name": "_observeTextNodesInSlot",
143845
+ "privacy": "private",
143721
143846
  "return": {
143722
143847
  "type": {
143723
143848
  "text": "void"
143724
143849
  }
143725
143850
  },
143726
- "description": "To be called whenever the current element needs to be validated.",
143851
+ "parameters": [
143852
+ {
143853
+ "name": "slot",
143854
+ "type": {
143855
+ "text": "HTMLSlotElement"
143856
+ }
143857
+ }
143858
+ ],
143727
143859
  "inheritedFrom": {
143728
- "name": "SbbFormAssociatedMixin",
143729
- "module": "core/mixins/form-associated-mixin.js"
143860
+ "name": "SbbElement",
143861
+ "module": "core/base-elements/element.js"
143730
143862
  }
143731
143863
  },
143732
143864
  {
143733
143865
  "kind": "method",
143734
- "name": "shouldValidate",
143735
- "privacy": "protected",
143866
+ "name": "_hasSlottedContent",
143867
+ "privacy": "private",
143736
143868
  "return": {
143737
143869
  "type": {
143738
143870
  "text": "boolean"
@@ -143740,146 +143872,258 @@
143740
143872
  },
143741
143873
  "parameters": [
143742
143874
  {
143743
- "name": "name",
143875
+ "name": "slot",
143744
143876
  "type": {
143745
- "text": "PropertyKey | undefined"
143877
+ "text": "HTMLSlotElement"
143746
143878
  }
143747
143879
  }
143748
143880
  ],
143749
- "description": "Whether validation should be run on a property change with the given name.",
143750
143881
  "inheritedFrom": {
143751
- "name": "SbbFormAssociatedMixin",
143752
- "module": "core/mixins/form-associated-mixin.js"
143882
+ "name": "SbbElement",
143883
+ "module": "core/base-elements/element.js"
143753
143884
  }
143885
+ }
143886
+ ],
143887
+ "attributes": [
143888
+ {
143889
+ "name": "color",
143890
+ "type": {
143891
+ "text": "'white' | 'milk'"
143892
+ },
143893
+ "default": "'white'",
143894
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
143895
+ "fieldName": "color"
143754
143896
  },
143755
143897
  {
143756
- "kind": "method",
143757
- "name": "_setInternalValidity",
143758
- "privacy": "private",
143759
- "return": {
143760
- "type": {
143761
- "text": "void"
143762
- }
143898
+ "name": "mode",
143899
+ "type": {
143900
+ "text": "'side' | 'over'"
143763
143901
  },
143902
+ "default": "'side'",
143903
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
143904
+ "fieldName": "mode"
143905
+ },
143906
+ {
143907
+ "name": "position",
143908
+ "type": {
143909
+ "text": "'start' | 'end'"
143910
+ },
143911
+ "default": "'start'",
143912
+ "description": "The side that the sidebar is attached to.",
143913
+ "fieldName": "position"
143914
+ },
143915
+ {
143916
+ "name": "opened",
143917
+ "type": {
143918
+ "text": "boolean"
143919
+ },
143920
+ "default": "false",
143921
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
143922
+ "fieldName": "opened"
143923
+ },
143924
+ {
143925
+ "name": "focus-on-open",
143926
+ "type": {
143927
+ "text": "boolean"
143928
+ },
143929
+ "default": "false",
143930
+ "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.",
143931
+ "fieldName": "focusOnOpen"
143932
+ }
143933
+ ],
143934
+ "mixins": [
143935
+ {
143936
+ "name": "SbbAnimationCompleteMixin",
143937
+ "module": "core.js"
143938
+ }
143939
+ ],
143940
+ "superclass": {
143941
+ "name": "SbbOpenCloseBaseElement",
143942
+ "module": "core.js"
143943
+ },
143944
+ "tagName": "sbb-sidebar",
143945
+ "customElement": true,
143946
+ "events": [
143947
+ {
143948
+ "name": "beforeopen",
143949
+ "type": {
143950
+ "text": "Event"
143951
+ },
143952
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
143953
+ "inheritedFrom": {
143954
+ "name": "SbbOpenCloseBaseElement",
143955
+ "module": "core/base-elements/open-close-base-element.js"
143956
+ }
143957
+ },
143958
+ {
143959
+ "name": "open",
143960
+ "type": {
143961
+ "text": "Event"
143962
+ },
143963
+ "description": "Emits whenever the component is opened.",
143964
+ "inheritedFrom": {
143965
+ "name": "SbbOpenCloseBaseElement",
143966
+ "module": "core/base-elements/open-close-base-element.js"
143967
+ }
143968
+ },
143969
+ {
143970
+ "name": "beforeclose",
143971
+ "type": {
143972
+ "text": "Event"
143973
+ },
143974
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
143764
143975
  "inheritedFrom": {
143765
- "name": "SbbFormAssociatedMixin",
143766
- "module": "core/mixins/form-associated-mixin.js"
143976
+ "name": "SbbOpenCloseBaseElement",
143977
+ "module": "core/base-elements/open-close-base-element.js"
143767
143978
  }
143768
143979
  },
143980
+ {
143981
+ "name": "close",
143982
+ "type": {
143983
+ "text": "Event"
143984
+ },
143985
+ "description": "Emits whenever the component is closed.",
143986
+ "inheritedFrom": {
143987
+ "name": "SbbOpenCloseBaseElement",
143988
+ "module": "core/base-elements/open-close-base-element.js"
143989
+ }
143990
+ }
143991
+ ]
143992
+ }
143993
+ ],
143994
+ "exports": [
143995
+ {
143996
+ "kind": "js",
143997
+ "name": "SbbSidebarElement",
143998
+ "declaration": {
143999
+ "name": "SbbSidebarElement",
144000
+ "module": "sidebar/sidebar/sidebar.component.js"
144001
+ }
144002
+ }
144003
+ ]
144004
+ },
144005
+ {
144006
+ "kind": "javascript-module",
144007
+ "path": "sidebar/sidebar-container/sidebar-container.component.js",
144008
+ "declarations": [
144009
+ {
144010
+ "kind": "class",
144011
+ "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.",
144012
+ "name": "SbbSidebarContainerElement",
144013
+ "slots": [
144014
+ {
144015
+ "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
144016
+ "name": ""
144017
+ }
144018
+ ],
144019
+ "members": [
143769
144020
  {
143770
144021
  "kind": "field",
143771
- "name": "role",
144022
+ "name": "elementName",
143772
144023
  "type": {
143773
- "text": "ElementInternals['role']"
144024
+ "text": "string"
143774
144025
  },
143775
144026
  "privacy": "public",
143776
144027
  "static": true,
144028
+ "readonly": true,
144029
+ "default": "'sbb-sidebar-container'",
143777
144030
  "inheritedFrom": {
143778
144031
  "name": "SbbElement",
143779
144032
  "module": "core/base-elements/element.js"
144033
+ }
144034
+ },
144035
+ {
144036
+ "kind": "field",
144037
+ "name": "sidebars",
144038
+ "type": {
144039
+ "text": "SbbSidebarElement[]"
143780
144040
  },
143781
- "readonly": true,
143782
- "default": "'button'"
144041
+ "privacy": "public",
144042
+ "description": "The sidebar children.",
144043
+ "readonly": true
143783
144044
  },
143784
144045
  {
143785
144046
  "kind": "field",
143786
- "name": "_preventScrollOnSpaceKeydown",
143787
- "privacy": "private",
143788
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
143789
- "parameters": [
143790
- {
143791
- "description": "The origin event.",
143792
- "name": "event"
143793
- }
143794
- ],
143795
- "inheritedFrom": {
143796
- "name": "SbbButtonLikeBaseElement",
143797
- "module": "core/base-elements/button-base-element.js"
143798
- }
144047
+ "name": "start",
144048
+ "type": {
144049
+ "text": "SbbSidebarElement | null"
144050
+ },
144051
+ "privacy": "public",
144052
+ "description": "The sidebar child with the `start` position.",
144053
+ "readonly": true
143799
144054
  },
143800
144055
  {
143801
144056
  "kind": "field",
143802
- "name": "_removeActiveMarker",
143803
- "privacy": "private",
143804
- "inheritedFrom": {
143805
- "name": "SbbButtonLikeBaseElement",
143806
- "module": "core/base-elements/button-base-element.js"
143807
- }
144057
+ "name": "end",
144058
+ "type": {
144059
+ "text": "SbbSidebarElement | null"
144060
+ },
144061
+ "privacy": "public",
144062
+ "description": "The sidebar child with the `end` position.",
144063
+ "readonly": true
143808
144064
  },
143809
144065
  {
143810
144066
  "kind": "field",
143811
- "name": "_dispatchClickEventOnSpaceKeyup",
144067
+ "name": "_forcedClosedSidebars",
143812
144068
  "privacy": "private",
143813
- "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.",
143814
- "parameters": [
143815
- {
143816
- "description": "The origin event.",
143817
- "name": "event"
143818
- }
143819
- ],
143820
- "inheritedFrom": {
143821
- "name": "SbbButtonLikeBaseElement",
143822
- "module": "core/base-elements/button-base-element.js"
143823
- }
144069
+ "default": "new WeakSet<SbbSidebarElement>()"
143824
144070
  },
143825
144071
  {
143826
- "kind": "field",
143827
- "name": "_dispatchClickEvent",
144072
+ "kind": "method",
144073
+ "name": "_handleWidthChange",
143828
144074
  "privacy": "private",
143829
- "inheritedFrom": {
143830
- "name": "SbbButtonLikeBaseElement",
143831
- "module": "core/base-elements/button-base-element.js"
144075
+ "return": {
144076
+ "type": {
144077
+ "text": "void"
144078
+ }
143832
144079
  }
143833
144080
  },
143834
144081
  {
143835
- "kind": "field",
143836
- "name": "maybeDisabled",
143837
- "type": {
143838
- "text": "boolean | undefined"
144082
+ "kind": "method",
144083
+ "name": "_calculateSpaceState",
144084
+ "privacy": "private",
144085
+ "return": {
144086
+ "type": {
144087
+ "text": "Promise<void>"
144088
+ }
143839
144089
  },
143840
- "privacy": "protected",
143841
- "readonly": true,
143842
- "inheritedFrom": {
143843
- "name": "SbbActionBaseElement",
143844
- "module": "core/base-elements/action-base-element.js"
143845
- }
144090
+ "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
143846
144091
  },
143847
144092
  {
143848
144093
  "kind": "field",
143849
- "name": "maybeDisabledInteractive",
144094
+ "name": "['_$sbbElement$']",
143850
144095
  "type": {
143851
- "text": "boolean | undefined"
144096
+ "text": "boolean"
143852
144097
  },
143853
- "privacy": "protected",
143854
- "readonly": true,
144098
+ "privacy": "public",
144099
+ "static": true,
144100
+ "default": "true",
143855
144101
  "inheritedFrom": {
143856
- "name": "SbbActionBaseElement",
143857
- "module": "core/base-elements/action-base-element.js"
144102
+ "name": "SbbElement",
144103
+ "module": "core/base-elements/element.js"
143858
144104
  }
143859
144105
  },
143860
144106
  {
143861
- "kind": "method",
143862
- "name": "setupBaseEventHandlers",
143863
- "privacy": "protected",
143864
- "return": {
143865
- "type": {
143866
- "text": "void"
143867
- }
144107
+ "kind": "field",
144108
+ "name": "elementDependencies",
144109
+ "type": {
144110
+ "text": "SbbElementType[] | undefined"
143868
144111
  },
144112
+ "privacy": "public",
144113
+ "static": true,
143869
144114
  "inheritedFrom": {
143870
- "name": "SbbActionBaseElement",
143871
- "module": "core/base-elements/action-base-element.js"
144115
+ "name": "SbbElement",
144116
+ "module": "core/base-elements/element.js"
143872
144117
  }
143873
144118
  },
143874
144119
  {
143875
144120
  "kind": "field",
143876
- "name": "['_$sbbElement$']",
144121
+ "name": "role",
143877
144122
  "type": {
143878
- "text": "boolean"
144123
+ "text": "ElementInternals['role'] | undefined"
143879
144124
  },
143880
144125
  "privacy": "public",
143881
144126
  "static": true,
143882
- "default": "true",
143883
144127
  "inheritedFrom": {
143884
144128
  "name": "SbbElement",
143885
144129
  "module": "core/base-elements/element.js"
@@ -144106,399 +144350,580 @@
144106
144350
  }
144107
144351
  ],
144108
144352
  "superclass": {
144109
- "name": "SbbSecondaryButtonElement",
144110
- "module": "button.pure.js"
144353
+ "name": "SbbElement",
144354
+ "module": "core.js"
144111
144355
  },
144112
- "tagName": "sbb-sidebar-close-button",
144113
- "customElement": true,
144114
- "attributes": [
144356
+ "tagName": "sbb-sidebar-container",
144357
+ "customElement": true
144358
+ }
144359
+ ],
144360
+ "exports": [
144361
+ {
144362
+ "kind": "js",
144363
+ "name": "SbbSidebarContainerElement",
144364
+ "declaration": {
144365
+ "name": "SbbSidebarContainerElement",
144366
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
144367
+ }
144368
+ }
144369
+ ]
144370
+ },
144371
+ {
144372
+ "kind": "javascript-module",
144373
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
144374
+ "declarations": [
144375
+ {
144376
+ "kind": "class",
144377
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
144378
+ "name": "SbbSidebarCloseButtonElement",
144379
+ "slots": [
144380
+ {
144381
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
144382
+ "name": "",
144383
+ "inheritedFrom": {
144384
+ "name": "SbbSecondaryButtonElement",
144385
+ "module": "button/secondary-button/secondary-button.component.js"
144386
+ }
144387
+ },
144388
+ {
144389
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
144390
+ "name": "icon",
144391
+ "inheritedFrom": {
144392
+ "name": "SbbSecondaryButtonElement",
144393
+ "module": "button/secondary-button/secondary-button.component.js"
144394
+ }
144395
+ }
144396
+ ],
144397
+ "members": [
144398
+ {
144399
+ "kind": "field",
144400
+ "name": "elementName",
144401
+ "type": {
144402
+ "text": "string"
144403
+ },
144404
+ "privacy": "public",
144405
+ "static": true,
144406
+ "readonly": true,
144407
+ "inheritedFrom": {
144408
+ "name": "SbbElement",
144409
+ "module": "core/base-elements/element.js"
144410
+ },
144411
+ "default": "'sbb-sidebar-close-button'"
144412
+ },
144413
+ {
144414
+ "kind": "field",
144415
+ "name": "_languageController",
144416
+ "privacy": "private",
144417
+ "default": "new SbbLanguageController(this)"
144418
+ },
144419
+ {
144420
+ "kind": "method",
144421
+ "name": "renderTemplate",
144422
+ "privacy": "protected",
144423
+ "return": {
144424
+ "type": {
144425
+ "text": "TemplateResult"
144426
+ }
144427
+ },
144428
+ "description": "Override this method to render the component template.",
144429
+ "inheritedFrom": {
144430
+ "name": "SbbActionBaseElement",
144431
+ "module": "core/base-elements/action-base-element.js"
144432
+ }
144433
+ },
144434
+ {
144435
+ "kind": "method",
144436
+ "name": "renderIconName",
144437
+ "privacy": "protected",
144438
+ "return": {
144439
+ "type": {
144440
+ "text": "string"
144441
+ }
144442
+ },
144443
+ "inheritedFrom": {
144444
+ "name": "SbbIconNameMixin",
144445
+ "module": "icon/icon-name-mixin.js"
144446
+ }
144447
+ },
144115
144448
  {
144449
+ "kind": "field",
144116
144450
  "name": "size",
144117
144451
  "type": {
144118
144452
  "text": "SbbButtonSize"
144119
144453
  },
144454
+ "privacy": "public",
144120
144455
  "description": "Size variant, either l, m or s.",
144121
- "default": "'l' / 's' (lean)",
144122
- "fieldName": "size",
144456
+ "default": "'s'",
144457
+ "attribute": "size",
144458
+ "reflects": true,
144123
144459
  "inheritedFrom": {
144124
144460
  "name": "SbbButtonCommonElementMixin",
144125
144461
  "module": "button/common/button-common.js"
144126
144462
  }
144127
144463
  },
144128
144464
  {
144465
+ "kind": "field",
144129
144466
  "name": "loading",
144130
144467
  "type": {
144131
144468
  "text": "boolean"
144132
144469
  },
144470
+ "privacy": "public",
144133
144471
  "default": "false",
144134
144472
  "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
144135
- "fieldName": "loading",
144473
+ "attribute": "loading",
144474
+ "reflects": true,
144136
144475
  "inheritedFrom": {
144137
144476
  "name": "SbbButtonCommonElementMixin",
144138
144477
  "module": "button/common/button-common.js"
144139
144478
  }
144140
144479
  },
144141
144480
  {
144481
+ "kind": "field",
144142
144482
  "name": "negative",
144143
144483
  "type": {
144144
144484
  "text": "boolean"
144145
144485
  },
144486
+ "privacy": "public",
144146
144487
  "default": "false",
144147
144488
  "description": "Negative coloring variant flag.",
144148
- "fieldName": "negative",
144489
+ "attribute": "negative",
144490
+ "reflects": true,
144149
144491
  "inheritedFrom": {
144150
144492
  "name": "SbbNegativeMixin",
144151
144493
  "module": "core/mixins/negative-mixin.js"
144152
144494
  }
144153
144495
  },
144154
144496
  {
144155
- "name": "icon-name",
144497
+ "kind": "field",
144498
+ "name": "elementDependencies",
144499
+ "type": {
144500
+ "text": "SbbElementType[]"
144501
+ },
144502
+ "privacy": "public",
144503
+ "static": true,
144504
+ "inheritedFrom": {
144505
+ "name": "SbbElement",
144506
+ "module": "core/base-elements/element.js"
144507
+ },
144508
+ "default": "[SbbIconElement]"
144509
+ },
144510
+ {
144511
+ "kind": "field",
144512
+ "name": "iconName",
144156
144513
  "type": {
144157
144514
  "text": "string"
144158
144515
  },
144516
+ "privacy": "public",
144159
144517
  "default": "''",
144160
144518
  "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.",
144161
- "fieldName": "iconName",
144519
+ "attribute": "icon-name",
144162
144520
  "inheritedFrom": {
144163
144521
  "name": "SbbIconNameMixin",
144164
144522
  "module": "icon/icon-name-mixin.js"
144165
144523
  }
144166
144524
  },
144167
144525
  {
144168
- "name": "disabled-interactive",
144526
+ "kind": "method",
144527
+ "name": "renderIconSlot",
144528
+ "privacy": "protected",
144529
+ "return": {
144530
+ "type": {
144531
+ "text": "TemplateResult"
144532
+ }
144533
+ },
144534
+ "parameters": [
144535
+ {
144536
+ "name": "classname",
144537
+ "optional": true,
144538
+ "type": {
144539
+ "text": "string"
144540
+ }
144541
+ }
144542
+ ],
144543
+ "inheritedFrom": {
144544
+ "name": "SbbIconNameMixin",
144545
+ "module": "icon/icon-name-mixin.js"
144546
+ }
144547
+ },
144548
+ {
144549
+ "kind": "method",
144550
+ "name": "_renderIconName",
144551
+ "privacy": "private",
144552
+ "return": {
144553
+ "type": {
144554
+ "text": "string"
144555
+ }
144556
+ },
144557
+ "inheritedFrom": {
144558
+ "name": "SbbIconNameMixin",
144559
+ "module": "icon/icon-name-mixin.js"
144560
+ }
144561
+ },
144562
+ {
144563
+ "kind": "field",
144564
+ "name": "disabledInteractive",
144169
144565
  "type": {
144170
144566
  "text": "boolean"
144171
144567
  },
144568
+ "privacy": "public",
144172
144569
  "default": "false",
144173
144570
  "description": "Whether the button should be aria-disabled but stay interactive.",
144174
- "fieldName": "disabledInteractive",
144571
+ "attribute": "disabled-interactive",
144572
+ "reflects": true,
144175
144573
  "inheritedFrom": {
144176
144574
  "name": "SbbDisabledInteractiveMixin",
144177
144575
  "module": "core/mixins/disabled-mixin.js"
144178
144576
  }
144179
144577
  },
144180
144578
  {
144579
+ "kind": "field",
144181
144580
  "name": "disabled",
144581
+ "privacy": "public",
144182
144582
  "description": "Whether the component is disabled.",
144183
144583
  "default": "false",
144184
144584
  "type": {
144185
144585
  "text": "boolean"
144186
144586
  },
144187
- "fieldName": "disabled",
144587
+ "attribute": "disabled",
144588
+ "reflects": true,
144188
144589
  "inheritedFrom": {
144189
144590
  "name": "SbbDisabledMixin",
144190
144591
  "module": "core/mixins/disabled-mixin.js"
144191
144592
  }
144192
144593
  },
144193
144594
  {
144194
- "name": "value",
144595
+ "kind": "field",
144596
+ "name": "#disabled",
144597
+ "privacy": "private",
144195
144598
  "type": {
144196
- "text": "string"
144599
+ "text": "boolean"
144197
144600
  },
144198
- "default": "''",
144199
- "description": "Value of the form element.",
144200
- "fieldName": "value",
144601
+ "default": "false",
144201
144602
  "inheritedFrom": {
144202
- "name": "SbbButtonBaseElement",
144203
- "module": "core/base-elements/button-base-element.js"
144603
+ "name": "SbbDisabledMixin",
144604
+ "module": "core/mixins/disabled-mixin.js"
144204
144605
  }
144205
144606
  },
144206
144607
  {
144207
- "name": "type",
144208
- "description": "The type attribute to use for the button.",
144209
- "default": "'button'",
144210
- "type": {
144211
- "text": "SbbButtonType"
144608
+ "kind": "method",
144609
+ "name": "isDisabledExternally",
144610
+ "privacy": "protected",
144611
+ "return": {
144612
+ "type": {
144613
+ "text": "boolean"
144614
+ }
144212
144615
  },
144213
- "fieldName": "type",
144616
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
144214
144617
  "inheritedFrom": {
144215
- "name": "SbbButtonBaseElement",
144216
- "module": "core/base-elements/button-base-element.js"
144618
+ "name": "SbbDisabledMixin",
144619
+ "module": "core/mixins/disabled-mixin.js"
144217
144620
  }
144218
144621
  },
144219
144622
  {
144220
- "name": "form",
144221
- "description": "The `<form>` element to associate the button with.",
144623
+ "kind": "field",
144624
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
144222
144625
  "type": {
144223
- "text": "HTMLFormElement | null"
144626
+ "text": "array"
144224
144627
  },
144225
- "fieldName": "form",
144628
+ "privacy": "private",
144629
+ "readonly": true,
144630
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
144226
144631
  "inheritedFrom": {
144227
144632
  "name": "SbbButtonBaseElement",
144228
144633
  "module": "core/base-elements/button-base-element.js"
144229
144634
  }
144230
144635
  },
144231
144636
  {
144232
- "name": "name",
144233
- "description": "Name of the form element. Will be read from name attribute.",
144637
+ "kind": "field",
144638
+ "name": "value",
144234
144639
  "type": {
144235
144640
  "text": "string"
144236
144641
  },
144237
- "fieldName": "name",
144642
+ "privacy": "public",
144238
144643
  "inheritedFrom": {
144239
- "name": "SbbFormAssociatedMixin",
144240
- "module": "core/mixins/form-associated-mixin.js"
144241
- }
144242
- }
144243
- ],
144244
- "cssProperties": [
144644
+ "name": "SbbButtonBaseElement",
144645
+ "module": "core/base-elements/button-base-element.js"
144646
+ },
144647
+ "default": "''",
144648
+ "description": "Value of the form element.",
144649
+ "attribute": "value"
144650
+ },
144245
144651
  {
144246
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
144247
- "name": "--sbb-button-loading-delay",
144248
- "default": "300ms",
144652
+ "kind": "field",
144653
+ "name": "type",
144654
+ "privacy": "public",
144655
+ "description": "The type attribute to use for the button.",
144656
+ "default": "'button'",
144657
+ "type": {
144658
+ "text": "SbbButtonType"
144659
+ },
144660
+ "attribute": "type",
144249
144661
  "inheritedFrom": {
144250
- "name": "SbbSecondaryButtonElement",
144251
- "module": "button/secondary-button/secondary-button.component.js"
144662
+ "name": "SbbButtonBaseElement",
144663
+ "module": "core/base-elements/button-base-element.js"
144252
144664
  }
144253
- }
144254
- ]
144255
- }
144256
- ],
144257
- "exports": [
144258
- {
144259
- "kind": "js",
144260
- "name": "SbbSidebarCloseButtonElement",
144261
- "declaration": {
144262
- "name": "SbbSidebarCloseButtonElement",
144263
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
144264
- }
144265
- }
144266
- ]
144267
- },
144268
- {
144269
- "kind": "javascript-module",
144270
- "path": "sidebar/sidebar/sidebar.component.js",
144271
- "declarations": [
144272
- {
144273
- "kind": "class",
144274
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
144275
- "name": "SbbSidebarElement",
144276
- "slots": [
144277
- {
144278
- "description": "Use the unnamed slot to slot any content into the sidebar.",
144279
- "name": ""
144280
144665
  },
144281
- {
144282
- "description": "Use the title slot to add an <sbb-title>.",
144283
- "name": "title"
144284
- }
144285
- ],
144286
- "members": [
144287
144666
  {
144288
144667
  "kind": "field",
144289
- "name": "elementName",
144668
+ "name": "form",
144290
144669
  "type": {
144291
- "text": "string"
144670
+ "text": "HTMLFormElement | null"
144292
144671
  },
144293
144672
  "privacy": "public",
144294
- "static": true,
144295
- "readonly": true,
144673
+ "description": "The `<form>` element to associate the button with.",
144296
144674
  "inheritedFrom": {
144297
- "name": "SbbElement",
144298
- "module": "core/base-elements/element.js"
144675
+ "name": "SbbButtonBaseElement",
144676
+ "module": "core/base-elements/button-base-element.js"
144299
144677
  },
144300
- "default": "'sbb-sidebar'"
144678
+ "attribute": "form"
144301
144679
  },
144302
144680
  {
144303
144681
  "kind": "field",
144304
- "name": "color",
144682
+ "name": "_formId",
144305
144683
  "type": {
144306
- "text": "'white' | 'milk'"
144684
+ "text": "string"
144307
144685
  },
144308
- "privacy": "public",
144309
- "default": "'white'",
144310
- "description": "Background color of the sidebar. Either `white` or `milk`.",
144311
- "attribute": "color",
144312
- "reflects": true
144686
+ "privacy": "private",
144687
+ "default": "''",
144688
+ "inheritedFrom": {
144689
+ "name": "SbbButtonBaseElement",
144690
+ "module": "core/base-elements/button-base-element.js"
144691
+ }
144313
144692
  },
144314
144693
  {
144315
144694
  "kind": "field",
144316
- "name": "mode",
144317
- "type": {
144318
- "text": "'side' | 'over'"
144695
+ "name": "_handleButtonClick",
144696
+ "privacy": "private",
144697
+ "inheritedFrom": {
144698
+ "name": "SbbButtonBaseElement",
144699
+ "module": "core/base-elements/button-base-element.js"
144700
+ }
144701
+ },
144702
+ {
144703
+ "kind": "method",
144704
+ "name": "_requestSubmit",
144705
+ "privacy": "private",
144706
+ "return": {
144707
+ "type": {
144708
+ "text": "void"
144709
+ }
144319
144710
  },
144320
- "privacy": "public",
144321
- "default": "'side'",
144322
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
144323
- "attribute": "mode",
144324
- "reflects": true
144711
+ "parameters": [
144712
+ {
144713
+ "name": "form",
144714
+ "type": {
144715
+ "text": "HTMLFormElement"
144716
+ }
144717
+ }
144718
+ ],
144719
+ "inheritedFrom": {
144720
+ "name": "SbbButtonBaseElement",
144721
+ "module": "core/base-elements/button-base-element.js"
144722
+ }
144325
144723
  },
144326
144724
  {
144327
144725
  "kind": "field",
144328
- "name": "position",
144329
- "type": {
144330
- "text": "'start' | 'end'"
144331
- },
144332
- "privacy": "public",
144333
- "default": "'start'",
144334
- "description": "The side that the sidebar is attached to.",
144335
- "attribute": "position",
144336
- "reflects": true
144726
+ "name": "_formKeyDown",
144727
+ "privacy": "private",
144728
+ "inheritedFrom": {
144729
+ "name": "SbbButtonBaseElement",
144730
+ "module": "core/base-elements/button-base-element.js"
144731
+ }
144337
144732
  },
144338
144733
  {
144339
144734
  "kind": "field",
144340
- "name": "opened",
144735
+ "name": "formAssociated",
144341
144736
  "type": {
144342
144737
  "text": "boolean"
144343
144738
  },
144344
144739
  "privacy": "public",
144345
- "default": "false",
144346
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
144347
- "attribute": "opened",
144348
- "reflects": true
144740
+ "static": true,
144741
+ "default": "true",
144742
+ "inheritedFrom": {
144743
+ "name": "SbbFormAssociatedMixin",
144744
+ "module": "core/mixins/form-associated-mixin.js"
144745
+ }
144349
144746
  },
144350
144747
  {
144351
144748
  "kind": "field",
144352
- "name": "focusOnOpen",
144749
+ "name": "name",
144750
+ "privacy": "public",
144751
+ "description": "Name of the form element. Will be read from name attribute.",
144353
144752
  "type": {
144354
- "text": "boolean"
144753
+ "text": "string"
144355
144754
  },
144356
- "privacy": "public",
144357
- "default": "false",
144358
- "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.",
144359
- "attribute": "focus-on-open"
144755
+ "attribute": "name",
144756
+ "inheritedFrom": {
144757
+ "name": "SbbFormAssociatedMixin",
144758
+ "module": "core/mixins/form-associated-mixin.js"
144759
+ }
144360
144760
  },
144361
144761
  {
144362
144762
  "kind": "field",
144363
- "name": "container",
144763
+ "name": "validity",
144364
144764
  "type": {
144365
- "text": "SbbSidebarContainerElement | null"
144765
+ "text": "ValidityState"
144366
144766
  },
144367
144767
  "privacy": "public",
144368
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
144768
+ "description": "Returns the ValidityState object for this element.",
144369
144769
  "readonly": true,
144370
- "default": "null"
144770
+ "inheritedFrom": {
144771
+ "name": "SbbFormAssociatedMixin",
144772
+ "module": "core/mixins/form-associated-mixin.js"
144773
+ }
144371
144774
  },
144372
144775
  {
144373
144776
  "kind": "field",
144374
- "name": "_container",
144777
+ "name": "validationMessage",
144375
144778
  "type": {
144376
- "text": "SbbSidebarContainerElement | null"
144779
+ "text": "string"
144377
144780
  },
144378
- "privacy": "private",
144379
- "default": "null"
144781
+ "privacy": "public",
144782
+ "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.",
144783
+ "readonly": true,
144784
+ "inheritedFrom": {
144785
+ "name": "SbbFormAssociatedMixin",
144786
+ "module": "core/mixins/form-associated-mixin.js"
144787
+ }
144380
144788
  },
144381
144789
  {
144382
144790
  "kind": "field",
144383
- "name": "_lastFocusedElement",
144791
+ "name": "willValidate",
144384
144792
  "type": {
144385
- "text": "HTMLElement | null"
144793
+ "text": "boolean"
144386
144794
  },
144387
- "privacy": "private",
144388
- "default": "null"
144389
- },
144390
- {
144391
- "kind": "field",
144392
- "name": "_focusTrapController",
144393
- "privacy": "private",
144394
- "default": "new SbbFocusTrapController(this)"
144795
+ "privacy": "public",
144796
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
144797
+ "readonly": true,
144798
+ "inheritedFrom": {
144799
+ "name": "SbbFormAssociatedMixin",
144800
+ "module": "core/mixins/form-associated-mixin.js"
144801
+ }
144395
144802
  },
144396
144803
  {
144397
144804
  "kind": "field",
144398
- "name": "_escapableOverlayController",
144805
+ "name": "_validityStates",
144399
144806
  "privacy": "private",
144400
- "default": "new SbbEscapableOverlayController(this)"
144807
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
144808
+ "inheritedFrom": {
144809
+ "name": "SbbFormAssociatedMixin",
144810
+ "module": "core/mixins/form-associated-mixin.js"
144811
+ }
144401
144812
  },
144402
144813
  {
144403
144814
  "kind": "field",
144404
- "name": "_closeOnNavigation",
144405
- "privacy": "private"
144406
- },
144407
- {
144408
- "kind": "method",
144409
- "name": "toggle",
144410
- "privacy": "public",
144411
- "return": {
144412
- "type": {
144413
- "text": "void"
144414
- }
144815
+ "name": "formDisabled",
144816
+ "type": {
144817
+ "text": "boolean"
144415
144818
  },
144416
- "description": "Toggles the sidebar visibility."
144819
+ "privacy": "protected",
144820
+ "default": "false",
144821
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
144822
+ "inheritedFrom": {
144823
+ "name": "SbbFormAssociatedMixin",
144824
+ "module": "core/mixins/form-associated-mixin.js"
144825
+ }
144417
144826
  },
144418
144827
  {
144419
144828
  "kind": "method",
144420
- "name": "open",
144829
+ "name": "checkValidity",
144421
144830
  "privacy": "public",
144422
144831
  "return": {
144423
144832
  "type": {
144424
- "text": "void"
144833
+ "text": "boolean"
144425
144834
  }
144426
144835
  },
144427
- "description": "Opens the sidebar.",
144836
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
144428
144837
  "inheritedFrom": {
144429
- "name": "SbbOpenCloseBaseElement",
144430
- "module": "core/base-elements/open-close-base-element.js"
144838
+ "name": "SbbFormAssociatedMixin",
144839
+ "module": "core/mixins/form-associated-mixin.js"
144431
144840
  }
144432
144841
  },
144433
144842
  {
144434
144843
  "kind": "method",
144435
- "name": "_isZeroAnimationDuration",
144436
- "privacy": "private",
144844
+ "name": "reportValidity",
144845
+ "privacy": "public",
144437
144846
  "return": {
144438
144847
  "type": {
144439
144848
  "text": "boolean"
144440
144849
  }
144850
+ },
144851
+ "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.",
144852
+ "inheritedFrom": {
144853
+ "name": "SbbFormAssociatedMixin",
144854
+ "module": "core/mixins/form-associated-mixin.js"
144441
144855
  }
144442
144856
  },
144443
144857
  {
144444
144858
  "kind": "method",
144445
- "name": "_handleOpening",
144446
- "privacy": "private",
144447
- "return": {
144448
- "type": {
144449
- "text": "void"
144450
- }
144451
- }
144452
- },
144453
- {
144454
- "kind": "method",
144455
- "name": "close",
144859
+ "name": "setCustomValidity",
144456
144860
  "privacy": "public",
144457
144861
  "return": {
144458
144862
  "type": {
144459
144863
  "text": "void"
144460
144864
  }
144461
144865
  },
144462
- "description": "Closes the sidebar.",
144866
+ "parameters": [
144867
+ {
144868
+ "name": "message",
144869
+ "type": {
144870
+ "text": "string"
144871
+ }
144872
+ }
144873
+ ],
144874
+ "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.",
144463
144875
  "inheritedFrom": {
144464
- "name": "SbbOpenCloseBaseElement",
144465
- "module": "core/base-elements/open-close-base-element.js"
144876
+ "name": "SbbFormAssociatedMixin",
144877
+ "module": "core/mixins/form-associated-mixin.js"
144466
144878
  }
144467
144879
  },
144468
144880
  {
144469
144881
  "kind": "method",
144470
- "name": "_handleClosing",
144882
+ "name": "_hasDisabledAncestor",
144471
144883
  "privacy": "private",
144472
144884
  "return": {
144473
144885
  "type": {
144474
- "text": "void"
144886
+ "text": "boolean"
144475
144887
  }
144888
+ },
144889
+ "inheritedFrom": {
144890
+ "name": "SbbFormAssociatedMixin",
144891
+ "module": "core/mixins/form-associated-mixin.js"
144476
144892
  }
144477
144893
  },
144478
144894
  {
144479
144895
  "kind": "method",
144480
- "name": "_takeFocus",
144481
- "privacy": "private",
144896
+ "name": "updateFormValue",
144897
+ "privacy": "protected",
144482
144898
  "return": {
144483
144899
  "type": {
144484
144900
  "text": "void"
144485
144901
  }
144902
+ },
144903
+ "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",
144904
+ "inheritedFrom": {
144905
+ "name": "SbbFormAssociatedMixin",
144906
+ "module": "core/mixins/form-associated-mixin.js"
144486
144907
  }
144487
144908
  },
144488
144909
  {
144489
144910
  "kind": "method",
144490
- "name": "cedeFocus",
144911
+ "name": "formState",
144491
144912
  "privacy": "protected",
144492
144913
  "return": {
144493
144914
  "type": {
144494
- "text": "void"
144915
+ "text": "FormRestoreState"
144495
144916
  }
144917
+ },
144918
+ "inheritedFrom": {
144919
+ "name": "SbbFormAssociatedMixin",
144920
+ "module": "core/mixins/form-associated-mixin.js"
144496
144921
  }
144497
144922
  },
144498
144923
  {
144499
144924
  "kind": "method",
144500
- "name": "_updateSidebarWidth",
144501
- "privacy": "private",
144925
+ "name": "setValidityFlag",
144926
+ "privacy": "protected",
144502
144927
  "return": {
144503
144928
  "type": {
144504
144929
  "text": "void"
@@ -144506,44 +144931,35 @@
144506
144931
  },
144507
144932
  "parameters": [
144508
144933
  {
144509
- "name": "oldPosition",
144510
- "optional": true,
144934
+ "name": "flag",
144511
144935
  "type": {
144512
- "text": "this['position']"
144936
+ "text": "T"
144513
144937
  }
144514
- }
144515
- ]
144516
- },
144517
- {
144518
- "kind": "method",
144519
- "name": "_buildCssWidthVar",
144520
- "privacy": "private",
144521
- "return": {
144522
- "type": {
144523
- "text": "string"
144524
- }
144525
- },
144526
- "parameters": [
144938
+ },
144527
144939
  {
144528
- "name": "position",
144529
- "default": "this.position"
144530
- }
144531
- ]
144532
- },
144533
- {
144534
- "kind": "method",
144535
- "name": "_isModeOver",
144536
- "privacy": "private",
144537
- "return": {
144538
- "type": {
144539
- "text": "boolean"
144940
+ "name": "message",
144941
+ "type": {
144942
+ "text": "string"
144943
+ }
144944
+ },
144945
+ {
144946
+ "name": "flagValue",
144947
+ "optional": true,
144948
+ "type": {
144949
+ "text": "ValidityStateFlags[T]"
144950
+ }
144540
144951
  }
144952
+ ],
144953
+ "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).",
144954
+ "inheritedFrom": {
144955
+ "name": "SbbFormAssociatedMixin",
144956
+ "module": "core/mixins/form-associated-mixin.js"
144541
144957
  }
144542
144958
  },
144543
144959
  {
144544
144960
  "kind": "method",
144545
- "name": "_onTransitionEnd",
144546
- "privacy": "private",
144961
+ "name": "removeValidityFlag",
144962
+ "privacy": "protected",
144547
144963
  "return": {
144548
144964
  "type": {
144549
144965
  "text": "void"
@@ -144551,230 +144967,173 @@
144551
144967
  },
144552
144968
  "parameters": [
144553
144969
  {
144554
- "name": "event",
144970
+ "name": "flag",
144555
144971
  "type": {
144556
- "text": "TransitionEvent"
144972
+ "text": "T"
144557
144973
  }
144558
144974
  }
144559
- ]
144560
- },
144561
- {
144562
- "kind": "method",
144563
- "name": "_detectScrolledState",
144564
- "privacy": "private",
144565
- "return": {
144566
- "type": {
144567
- "text": "void"
144568
- }
144569
- }
144570
- },
144571
- {
144572
- "kind": "field",
144573
- "name": "isAnimating",
144574
- "type": {
144575
- "text": "boolean"
144576
- },
144577
- "privacy": "public",
144578
- "default": "false",
144579
- "description": "Whether the component is currently animating.",
144580
- "inheritedFrom": {
144581
- "name": "SbbAnimationCompleteMixin",
144582
- "module": "core/mixins/animation-complete-mixin.js"
144583
- }
144584
- },
144585
- {
144586
- "kind": "field",
144587
- "name": "animationComplete",
144588
- "type": {
144589
- "text": "Promise<void>"
144590
- },
144591
- "privacy": "public",
144592
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
144593
- "readonly": true,
144594
- "inheritedFrom": {
144595
- "name": "SbbAnimationCompleteMixin",
144596
- "module": "core/mixins/animation-complete-mixin.js"
144597
- }
144598
- },
144599
- {
144600
- "kind": "field",
144601
- "name": "_animationPromise",
144602
- "type": {
144603
- "text": "Promise<void>"
144604
- },
144605
- "privacy": "private",
144975
+ ],
144976
+ "description": "Removes the validity state flag entry and updates validity state.",
144606
144977
  "inheritedFrom": {
144607
- "name": "SbbAnimationCompleteMixin",
144608
- "module": "core/mixins/animation-complete-mixin.js"
144978
+ "name": "SbbFormAssociatedMixin",
144979
+ "module": "core/mixins/form-associated-mixin.js"
144609
144980
  }
144610
144981
  },
144611
144982
  {
144612
144983
  "kind": "method",
144613
- "name": "startAnimation",
144984
+ "name": "validate",
144614
144985
  "privacy": "protected",
144615
144986
  "return": {
144616
144987
  "type": {
144617
144988
  "text": "void"
144618
144989
  }
144619
144990
  },
144991
+ "description": "To be called whenever the current element needs to be validated.",
144620
144992
  "inheritedFrom": {
144621
- "name": "SbbAnimationCompleteMixin",
144622
- "module": "core/mixins/animation-complete-mixin.js"
144993
+ "name": "SbbFormAssociatedMixin",
144994
+ "module": "core/mixins/form-associated-mixin.js"
144623
144995
  }
144624
144996
  },
144625
144997
  {
144626
144998
  "kind": "method",
144627
- "name": "stopAnimation",
144999
+ "name": "shouldValidate",
144628
145000
  "privacy": "protected",
144629
145001
  "return": {
144630
145002
  "type": {
144631
- "text": "void"
145003
+ "text": "boolean"
144632
145004
  }
144633
145005
  },
144634
- "description": "Overriding stopAnimation() breaks functionality.",
145006
+ "parameters": [
145007
+ {
145008
+ "name": "name",
145009
+ "type": {
145010
+ "text": "PropertyKey | undefined"
145011
+ }
145012
+ }
145013
+ ],
145014
+ "description": "Whether validation should be run on a property change with the given name.",
144635
145015
  "inheritedFrom": {
144636
- "name": "SbbAnimationCompleteMixin",
144637
- "module": "core/mixins/animation-complete-mixin.js"
145016
+ "name": "SbbFormAssociatedMixin",
145017
+ "module": "core/mixins/form-associated-mixin.js"
144638
145018
  }
144639
145019
  },
144640
145020
  {
144641
145021
  "kind": "method",
144642
- "name": "_enqueueAnimation",
145022
+ "name": "_setInternalValidity",
144643
145023
  "privacy": "private",
144644
145024
  "return": {
144645
145025
  "type": {
144646
- "text": "Promise<void>"
145026
+ "text": "void"
144647
145027
  }
144648
145028
  },
144649
145029
  "inheritedFrom": {
144650
- "name": "SbbAnimationCompleteMixin",
144651
- "module": "core/mixins/animation-complete-mixin.js"
145030
+ "name": "SbbFormAssociatedMixin",
145031
+ "module": "core/mixins/form-associated-mixin.js"
144652
145032
  }
144653
145033
  },
144654
145034
  {
144655
145035
  "kind": "field",
144656
- "name": "events",
144657
- "privacy": "public",
144658
- "static": true,
144659
- "readonly": true,
144660
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
145036
+ "name": "role",
144661
145037
  "type": {
144662
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
145038
+ "text": "ElementInternals['role']"
144663
145039
  },
145040
+ "privacy": "public",
145041
+ "static": true,
144664
145042
  "inheritedFrom": {
144665
- "name": "SbbOpenCloseBaseElement",
144666
- "module": "core/base-elements/open-close-base-element.js"
144667
- }
144668
- },
144669
- {
144670
- "kind": "field",
144671
- "name": "state",
144672
- "privacy": "protected",
144673
- "description": "The state of the component.",
144674
- "type": {
144675
- "text": "SbbOpenedClosedState"
145043
+ "name": "SbbElement",
145044
+ "module": "core/base-elements/element.js"
144676
145045
  },
144677
- "default": "'closed'",
144678
- "inheritedFrom": {
144679
- "name": "SbbOpenCloseBaseElement",
144680
- "module": "core/base-elements/open-close-base-element.js"
144681
- }
145046
+ "readonly": true,
145047
+ "default": "'button'"
144682
145048
  },
144683
145049
  {
144684
145050
  "kind": "field",
144685
- "name": "_state",
144686
- "type": {
144687
- "text": "SbbOpenedClosedState"
144688
- },
145051
+ "name": "_preventScrollOnSpaceKeydown",
144689
145052
  "privacy": "private",
145053
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
145054
+ "parameters": [
145055
+ {
145056
+ "description": "The origin event.",
145057
+ "name": "event"
145058
+ }
145059
+ ],
144690
145060
  "inheritedFrom": {
144691
- "name": "SbbOpenCloseBaseElement",
144692
- "module": "core/base-elements/open-close-base-element.js"
145061
+ "name": "SbbButtonLikeBaseElement",
145062
+ "module": "core/base-elements/button-base-element.js"
144693
145063
  }
144694
145064
  },
144695
145065
  {
144696
145066
  "kind": "field",
144697
- "name": "isOpen",
144698
- "type": {
144699
- "text": "boolean"
144700
- },
144701
- "privacy": "public",
144702
- "description": "Whether the element is open.",
144703
- "readonly": true,
145067
+ "name": "_removeActiveMarker",
145068
+ "privacy": "private",
144704
145069
  "inheritedFrom": {
144705
- "name": "SbbOpenCloseBaseElement",
144706
- "module": "core/base-elements/open-close-base-element.js"
145070
+ "name": "SbbButtonLikeBaseElement",
145071
+ "module": "core/base-elements/button-base-element.js"
144707
145072
  }
144708
145073
  },
144709
145074
  {
144710
- "kind": "method",
144711
- "name": "escapeStrategy",
144712
- "privacy": "public",
144713
- "return": {
144714
- "type": {
144715
- "text": "void"
145075
+ "kind": "field",
145076
+ "name": "_dispatchClickEventOnSpaceKeyup",
145077
+ "privacy": "private",
145078
+ "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.",
145079
+ "parameters": [
145080
+ {
145081
+ "description": "The origin event.",
145082
+ "name": "event"
144716
145083
  }
144717
- },
144718
- "description": "The method which is called on escape key press. Defaults to calling close()",
145084
+ ],
144719
145085
  "inheritedFrom": {
144720
- "name": "SbbOpenCloseBaseElement",
144721
- "module": "core/base-elements/open-close-base-element.js"
145086
+ "name": "SbbButtonLikeBaseElement",
145087
+ "module": "core/base-elements/button-base-element.js"
144722
145088
  }
144723
145089
  },
144724
145090
  {
144725
- "kind": "method",
144726
- "name": "dispatchBeforeOpenEvent",
144727
- "privacy": "protected",
144728
- "return": {
144729
- "type": {
144730
- "text": "boolean"
144731
- }
144732
- },
145091
+ "kind": "field",
145092
+ "name": "_dispatchClickEvent",
145093
+ "privacy": "private",
144733
145094
  "inheritedFrom": {
144734
- "name": "SbbOpenCloseBaseElement",
144735
- "module": "core/base-elements/open-close-base-element.js"
145095
+ "name": "SbbButtonLikeBaseElement",
145096
+ "module": "core/base-elements/button-base-element.js"
144736
145097
  }
144737
145098
  },
144738
145099
  {
144739
- "kind": "method",
144740
- "name": "dispatchOpenEvent",
144741
- "privacy": "protected",
144742
- "return": {
144743
- "type": {
144744
- "text": "boolean"
144745
- }
145100
+ "kind": "field",
145101
+ "name": "maybeDisabled",
145102
+ "type": {
145103
+ "text": "boolean | undefined"
144746
145104
  },
145105
+ "privacy": "protected",
145106
+ "readonly": true,
144747
145107
  "inheritedFrom": {
144748
- "name": "SbbOpenCloseBaseElement",
144749
- "module": "core/base-elements/open-close-base-element.js"
145108
+ "name": "SbbActionBaseElement",
145109
+ "module": "core/base-elements/action-base-element.js"
144750
145110
  }
144751
145111
  },
144752
145112
  {
144753
- "kind": "method",
144754
- "name": "dispatchBeforeCloseEvent",
144755
- "privacy": "protected",
144756
- "return": {
144757
- "type": {
144758
- "text": "boolean"
144759
- }
145113
+ "kind": "field",
145114
+ "name": "maybeDisabledInteractive",
145115
+ "type": {
145116
+ "text": "boolean | undefined"
144760
145117
  },
145118
+ "privacy": "protected",
145119
+ "readonly": true,
144761
145120
  "inheritedFrom": {
144762
- "name": "SbbOpenCloseBaseElement",
144763
- "module": "core/base-elements/open-close-base-element.js"
145121
+ "name": "SbbActionBaseElement",
145122
+ "module": "core/base-elements/action-base-element.js"
144764
145123
  }
144765
145124
  },
144766
145125
  {
144767
145126
  "kind": "method",
144768
- "name": "dispatchCloseEvent",
145127
+ "name": "setupBaseEventHandlers",
144769
145128
  "privacy": "protected",
144770
145129
  "return": {
144771
145130
  "type": {
144772
- "text": "boolean"
145131
+ "text": "void"
144773
145132
  }
144774
145133
  },
144775
145134
  "inheritedFrom": {
144776
- "name": "SbbOpenCloseBaseElement",
144777
- "module": "core/base-elements/open-close-base-element.js"
145135
+ "name": "SbbActionBaseElement",
145136
+ "module": "core/base-elements/action-base-element.js"
144778
145137
  }
144779
145138
  },
144780
145139
  {
@@ -144791,32 +145150,6 @@
144791
145150
  "module": "core/base-elements/element.js"
144792
145151
  }
144793
145152
  },
144794
- {
144795
- "kind": "field",
144796
- "name": "elementDependencies",
144797
- "type": {
144798
- "text": "SbbElementType[] | undefined"
144799
- },
144800
- "privacy": "public",
144801
- "static": true,
144802
- "inheritedFrom": {
144803
- "name": "SbbElement",
144804
- "module": "core/base-elements/element.js"
144805
- }
144806
- },
144807
- {
144808
- "kind": "field",
144809
- "name": "role",
144810
- "type": {
144811
- "text": "ElementInternals['role'] | undefined"
144812
- },
144813
- "privacy": "public",
144814
- "static": true,
144815
- "inheritedFrom": {
144816
- "name": "SbbElement",
144817
- "module": "core/base-elements/element.js"
144818
- }
144819
- },
144820
145153
  {
144821
145154
  "kind": "field",
144822
145155
  "name": "_controllers",
@@ -145037,486 +145370,162 @@
145037
145370
  }
145038
145371
  }
145039
145372
  ],
145040
- "attributes": [
145041
- {
145042
- "name": "color",
145043
- "type": {
145044
- "text": "'white' | 'milk'"
145045
- },
145046
- "default": "'white'",
145047
- "description": "Background color of the sidebar. Either `white` or `milk`.",
145048
- "fieldName": "color"
145049
- },
145050
- {
145051
- "name": "mode",
145052
- "type": {
145053
- "text": "'side' | 'over'"
145054
- },
145055
- "default": "'side'",
145056
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
145057
- "fieldName": "mode"
145058
- },
145059
- {
145060
- "name": "position",
145061
- "type": {
145062
- "text": "'start' | 'end'"
145063
- },
145064
- "default": "'start'",
145065
- "description": "The side that the sidebar is attached to.",
145066
- "fieldName": "position"
145067
- },
145068
- {
145069
- "name": "opened",
145070
- "type": {
145071
- "text": "boolean"
145072
- },
145073
- "default": "false",
145074
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
145075
- "fieldName": "opened"
145076
- },
145077
- {
145078
- "name": "focus-on-open",
145079
- "type": {
145080
- "text": "boolean"
145081
- },
145082
- "default": "false",
145083
- "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.",
145084
- "fieldName": "focusOnOpen"
145085
- }
145086
- ],
145087
- "mixins": [
145088
- {
145089
- "name": "SbbAnimationCompleteMixin",
145090
- "module": "core.js"
145091
- }
145092
- ],
145093
145373
  "superclass": {
145094
- "name": "SbbOpenCloseBaseElement",
145095
- "module": "core.js"
145374
+ "name": "SbbSecondaryButtonElement",
145375
+ "module": "button.pure.js"
145096
145376
  },
145097
- "tagName": "sbb-sidebar",
145377
+ "tagName": "sbb-sidebar-close-button",
145098
145378
  "customElement": true,
145099
- "events": [
145379
+ "attributes": [
145100
145380
  {
145101
- "name": "beforeopen",
145381
+ "name": "size",
145102
145382
  "type": {
145103
- "text": "Event"
145383
+ "text": "SbbButtonSize"
145104
145384
  },
145105
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
145385
+ "description": "Size variant, either l, m or s.",
145386
+ "default": "'l' / 's' (lean)",
145387
+ "fieldName": "size",
145106
145388
  "inheritedFrom": {
145107
- "name": "SbbOpenCloseBaseElement",
145108
- "module": "core/base-elements/open-close-base-element.js"
145389
+ "name": "SbbButtonCommonElementMixin",
145390
+ "module": "button/common/button-common.js"
145109
145391
  }
145110
145392
  },
145111
145393
  {
145112
- "name": "open",
145394
+ "name": "loading",
145113
145395
  "type": {
145114
- "text": "Event"
145396
+ "text": "boolean"
145115
145397
  },
145116
- "description": "Emits whenever the component is opened.",
145398
+ "default": "false",
145399
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
145400
+ "fieldName": "loading",
145117
145401
  "inheritedFrom": {
145118
- "name": "SbbOpenCloseBaseElement",
145119
- "module": "core/base-elements/open-close-base-element.js"
145402
+ "name": "SbbButtonCommonElementMixin",
145403
+ "module": "button/common/button-common.js"
145120
145404
  }
145121
145405
  },
145122
145406
  {
145123
- "name": "beforeclose",
145407
+ "name": "negative",
145124
145408
  "type": {
145125
- "text": "Event"
145409
+ "text": "boolean"
145126
145410
  },
145127
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
145411
+ "default": "false",
145412
+ "description": "Negative coloring variant flag.",
145413
+ "fieldName": "negative",
145128
145414
  "inheritedFrom": {
145129
- "name": "SbbOpenCloseBaseElement",
145130
- "module": "core/base-elements/open-close-base-element.js"
145415
+ "name": "SbbNegativeMixin",
145416
+ "module": "core/mixins/negative-mixin.js"
145131
145417
  }
145132
145418
  },
145133
145419
  {
145134
- "name": "close",
145135
- "type": {
145136
- "text": "Event"
145137
- },
145138
- "description": "Emits whenever the component is closed.",
145139
- "inheritedFrom": {
145140
- "name": "SbbOpenCloseBaseElement",
145141
- "module": "core/base-elements/open-close-base-element.js"
145142
- }
145143
- }
145144
- ]
145145
- }
145146
- ],
145147
- "exports": [
145148
- {
145149
- "kind": "js",
145150
- "name": "SbbSidebarElement",
145151
- "declaration": {
145152
- "name": "SbbSidebarElement",
145153
- "module": "sidebar/sidebar/sidebar.component.js"
145154
- }
145155
- }
145156
- ]
145157
- },
145158
- {
145159
- "kind": "javascript-module",
145160
- "path": "sidebar/sidebar-container/sidebar-container.component.js",
145161
- "declarations": [
145162
- {
145163
- "kind": "class",
145164
- "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.",
145165
- "name": "SbbSidebarContainerElement",
145166
- "slots": [
145167
- {
145168
- "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
145169
- "name": ""
145170
- }
145171
- ],
145172
- "members": [
145173
- {
145174
- "kind": "field",
145175
- "name": "elementName",
145420
+ "name": "icon-name",
145176
145421
  "type": {
145177
145422
  "text": "string"
145178
145423
  },
145179
- "privacy": "public",
145180
- "static": true,
145181
- "readonly": true,
145182
- "default": "'sbb-sidebar-container'",
145424
+ "default": "''",
145425
+ "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.",
145426
+ "fieldName": "iconName",
145183
145427
  "inheritedFrom": {
145184
- "name": "SbbElement",
145185
- "module": "core/base-elements/element.js"
145186
- }
145187
- },
145188
- {
145189
- "kind": "field",
145190
- "name": "sidebars",
145191
- "type": {
145192
- "text": "SbbSidebarElement[]"
145193
- },
145194
- "privacy": "public",
145195
- "description": "The sidebar children.",
145196
- "readonly": true
145197
- },
145198
- {
145199
- "kind": "field",
145200
- "name": "start",
145201
- "type": {
145202
- "text": "SbbSidebarElement | null"
145203
- },
145204
- "privacy": "public",
145205
- "description": "The sidebar child with the `start` position.",
145206
- "readonly": true
145207
- },
145208
- {
145209
- "kind": "field",
145210
- "name": "end",
145211
- "type": {
145212
- "text": "SbbSidebarElement | null"
145213
- },
145214
- "privacy": "public",
145215
- "description": "The sidebar child with the `end` position.",
145216
- "readonly": true
145217
- },
145218
- {
145219
- "kind": "field",
145220
- "name": "_forcedClosedSidebars",
145221
- "privacy": "private",
145222
- "default": "new WeakSet<SbbSidebarElement>()"
145223
- },
145224
- {
145225
- "kind": "method",
145226
- "name": "_handleWidthChange",
145227
- "privacy": "private",
145228
- "return": {
145229
- "type": {
145230
- "text": "void"
145231
- }
145428
+ "name": "SbbIconNameMixin",
145429
+ "module": "icon/icon-name-mixin.js"
145232
145430
  }
145233
145431
  },
145234
145432
  {
145235
- "kind": "method",
145236
- "name": "_calculateSpaceState",
145237
- "privacy": "private",
145238
- "return": {
145239
- "type": {
145240
- "text": "Promise<void>"
145241
- }
145242
- },
145243
- "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
145244
- },
145245
- {
145246
- "kind": "field",
145247
- "name": "['_$sbbElement$']",
145433
+ "name": "disabled-interactive",
145248
145434
  "type": {
145249
145435
  "text": "boolean"
145250
145436
  },
145251
- "privacy": "public",
145252
- "static": true,
145253
- "default": "true",
145254
- "inheritedFrom": {
145255
- "name": "SbbElement",
145256
- "module": "core/base-elements/element.js"
145257
- }
145258
- },
145259
- {
145260
- "kind": "field",
145261
- "name": "elementDependencies",
145262
- "type": {
145263
- "text": "SbbElementType[] | undefined"
145264
- },
145265
- "privacy": "public",
145266
- "static": true,
145267
- "inheritedFrom": {
145268
- "name": "SbbElement",
145269
- "module": "core/base-elements/element.js"
145270
- }
145271
- },
145272
- {
145273
- "kind": "field",
145274
- "name": "role",
145275
- "type": {
145276
- "text": "ElementInternals['role'] | undefined"
145277
- },
145278
- "privacy": "public",
145279
- "static": true,
145280
- "inheritedFrom": {
145281
- "name": "SbbElement",
145282
- "module": "core/base-elements/element.js"
145283
- }
145284
- },
145285
- {
145286
- "kind": "field",
145287
- "name": "_controllers",
145288
- "type": {
145289
- "text": "Set<SbbReactiveController> | undefined"
145290
- },
145291
- "privacy": "private",
145437
+ "default": "false",
145438
+ "description": "Whether the button should be aria-disabled but stay interactive.",
145439
+ "fieldName": "disabledInteractive",
145292
145440
  "inheritedFrom": {
145293
- "name": "SbbElement",
145294
- "module": "core/base-elements/element.js"
145441
+ "name": "SbbDisabledInteractiveMixin",
145442
+ "module": "core/mixins/disabled-mixin.js"
145295
145443
  }
145296
145444
  },
145297
145445
  {
145298
- "kind": "field",
145299
- "name": "_hydrationRequired",
145446
+ "name": "disabled",
145447
+ "description": "Whether the component is disabled.",
145448
+ "default": "false",
145300
145449
  "type": {
145301
145450
  "text": "boolean"
145302
145451
  },
145303
- "privacy": "private",
145304
- "default": "!!this.shadowRoot",
145305
- "inheritedFrom": {
145306
- "name": "SbbElement",
145307
- "module": "core/base-elements/element.js"
145308
- }
145309
- },
145310
- {
145311
- "kind": "field",
145312
- "name": "_hydrationComplete",
145313
- "privacy": "private",
145314
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
145452
+ "fieldName": "disabled",
145315
145453
  "inheritedFrom": {
145316
- "name": "SbbElement",
145317
- "module": "core/base-elements/element.js"
145454
+ "name": "SbbDisabledMixin",
145455
+ "module": "core/mixins/disabled-mixin.js"
145318
145456
  }
145319
145457
  },
145320
145458
  {
145321
- "kind": "field",
145322
- "name": "_resolveHydration",
145459
+ "name": "value",
145323
145460
  "type": {
145324
- "text": "(hydrationRequired: boolean) => void"
145461
+ "text": "string"
145325
145462
  },
145326
- "privacy": "private",
145463
+ "default": "''",
145464
+ "description": "Value of the form element.",
145465
+ "fieldName": "value",
145327
145466
  "inheritedFrom": {
145328
- "name": "SbbElement",
145329
- "module": "core/base-elements/element.js"
145467
+ "name": "SbbButtonBaseElement",
145468
+ "module": "core/base-elements/button-base-element.js"
145330
145469
  }
145331
145470
  },
145332
145471
  {
145333
- "kind": "field",
145334
- "name": "_textObserver",
145472
+ "name": "type",
145473
+ "description": "The type attribute to use for the button.",
145474
+ "default": "'button'",
145335
145475
  "type": {
145336
- "text": "MutationObserver | undefined"
145476
+ "text": "SbbButtonType"
145337
145477
  },
145338
- "privacy": "private",
145478
+ "fieldName": "type",
145339
145479
  "inheritedFrom": {
145340
- "name": "SbbElement",
145341
- "module": "core/base-elements/element.js"
145480
+ "name": "SbbButtonBaseElement",
145481
+ "module": "core/base-elements/button-base-element.js"
145342
145482
  }
145343
145483
  },
145344
145484
  {
145345
- "kind": "field",
145346
- "name": "hydrationRequired",
145485
+ "name": "form",
145486
+ "description": "The `<form>` element to associate the button with.",
145347
145487
  "type": {
145348
- "text": "boolean"
145349
- },
145350
- "privacy": "protected",
145351
- "description": "Returns whether hydration is required and not completed.",
145352
- "readonly": true,
145353
- "inheritedFrom": {
145354
- "name": "SbbElement",
145355
- "module": "core/base-elements/element.js"
145356
- },
145357
- "default": "!!this.shadowRoot"
145358
- },
145359
- {
145360
- "kind": "method",
145361
- "name": "toggleState",
145362
- "privacy": "protected",
145363
- "return": {
145364
- "type": {
145365
- "text": "void"
145366
- }
145367
- },
145368
- "parameters": [
145369
- {
145370
- "name": "value",
145371
- "type": {
145372
- "text": "string"
145373
- }
145374
- },
145375
- {
145376
- "name": "force",
145377
- "optional": true,
145378
- "type": {
145379
- "text": "boolean"
145380
- }
145381
- }
145382
- ],
145383
- "inheritedFrom": {
145384
- "name": "SbbElement",
145385
- "module": "core/base-elements/element.js"
145386
- }
145387
- },
145388
- {
145389
- "kind": "method",
145390
- "name": "_slotchangeHandler",
145391
- "privacy": "private",
145392
- "return": {
145393
- "type": {
145394
- "text": "void"
145395
- }
145396
- },
145397
- "parameters": [
145398
- {
145399
- "name": "event",
145400
- "type": {
145401
- "text": "Event"
145402
- }
145403
- },
145404
- {
145405
- "name": "slot",
145406
- "type": {
145407
- "text": "HTMLSlotElement"
145408
- }
145409
- }
145410
- ],
145411
- "inheritedFrom": {
145412
- "name": "SbbElement",
145413
- "module": "core/base-elements/element.js"
145414
- }
145415
- },
145416
- {
145417
- "kind": "method",
145418
- "name": "_handleSlotChangeForSlottedState",
145419
- "privacy": "private",
145420
- "return": {
145421
- "type": {
145422
- "text": "void"
145423
- }
145424
- },
145425
- "parameters": [
145426
- {
145427
- "name": "slot",
145428
- "type": {
145429
- "text": "HTMLSlotElement"
145430
- }
145431
- }
145432
- ],
145433
- "inheritedFrom": {
145434
- "name": "SbbElement",
145435
- "module": "core/base-elements/element.js"
145436
- }
145437
- },
145438
- {
145439
- "kind": "method",
145440
- "name": "_updateSlottedState",
145441
- "privacy": "private",
145442
- "return": {
145443
- "type": {
145444
- "text": "void"
145445
- }
145488
+ "text": "HTMLFormElement | null"
145446
145489
  },
145447
- "parameters": [
145448
- {
145449
- "name": "slot",
145450
- "type": {
145451
- "text": "HTMLSlotElement"
145452
- }
145453
- }
145454
- ],
145490
+ "fieldName": "form",
145455
145491
  "inheritedFrom": {
145456
- "name": "SbbElement",
145457
- "module": "core/base-elements/element.js"
145492
+ "name": "SbbButtonBaseElement",
145493
+ "module": "core/base-elements/button-base-element.js"
145458
145494
  }
145459
145495
  },
145460
145496
  {
145461
- "kind": "method",
145462
- "name": "_observeTextNodesInSlot",
145463
- "privacy": "private",
145464
- "return": {
145465
- "type": {
145466
- "text": "void"
145467
- }
145497
+ "name": "name",
145498
+ "description": "Name of the form element. Will be read from name attribute.",
145499
+ "type": {
145500
+ "text": "string"
145468
145501
  },
145469
- "parameters": [
145470
- {
145471
- "name": "slot",
145472
- "type": {
145473
- "text": "HTMLSlotElement"
145474
- }
145475
- }
145476
- ],
145502
+ "fieldName": "name",
145477
145503
  "inheritedFrom": {
145478
- "name": "SbbElement",
145479
- "module": "core/base-elements/element.js"
145504
+ "name": "SbbFormAssociatedMixin",
145505
+ "module": "core/mixins/form-associated-mixin.js"
145480
145506
  }
145481
- },
145507
+ }
145508
+ ],
145509
+ "cssProperties": [
145482
145510
  {
145483
- "kind": "method",
145484
- "name": "_hasSlottedContent",
145485
- "privacy": "private",
145486
- "return": {
145487
- "type": {
145488
- "text": "boolean"
145489
- }
145490
- },
145491
- "parameters": [
145492
- {
145493
- "name": "slot",
145494
- "type": {
145495
- "text": "HTMLSlotElement"
145496
- }
145497
- }
145498
- ],
145511
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
145512
+ "name": "--sbb-button-loading-delay",
145513
+ "default": "300ms",
145499
145514
  "inheritedFrom": {
145500
- "name": "SbbElement",
145501
- "module": "core/base-elements/element.js"
145515
+ "name": "SbbSecondaryButtonElement",
145516
+ "module": "button/secondary-button/secondary-button.component.js"
145502
145517
  }
145503
145518
  }
145504
- ],
145505
- "superclass": {
145506
- "name": "SbbElement",
145507
- "module": "core.js"
145508
- },
145509
- "tagName": "sbb-sidebar-container",
145510
- "customElement": true
145519
+ ]
145511
145520
  }
145512
145521
  ],
145513
145522
  "exports": [
145514
145523
  {
145515
145524
  "kind": "js",
145516
- "name": "SbbSidebarContainerElement",
145525
+ "name": "SbbSidebarCloseButtonElement",
145517
145526
  "declaration": {
145518
- "name": "SbbSidebarContainerElement",
145519
- "module": "sidebar/sidebar-container/sidebar-container.component.js"
145527
+ "name": "SbbSidebarCloseButtonElement",
145528
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
145520
145529
  }
145521
145530
  }
145522
145531
  ]
@@ -155231,6 +155240,19 @@
155231
155240
  "module": "form-field/form-field/form-field.component.js"
155232
155241
  }
155233
155242
  },
155243
+ {
155244
+ "kind": "field",
155245
+ "name": "_previousType",
155246
+ "type": {
155247
+ "text": "string | null"
155248
+ },
155249
+ "privacy": "private",
155250
+ "default": "null",
155251
+ "inheritedFrom": {
155252
+ "name": "SbbFormFieldElement",
155253
+ "module": "form-field/form-field/form-field.component.js"
155254
+ }
155255
+ },
155234
155256
  {
155235
155257
  "kind": "method",
155236
155258
  "name": "_handleWrapperClick",