@sbb-esta/lyne-elements-dev 4.6.0-dev.1772438395 → 4.6.0-dev.1772439044

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.
@@ -110733,16 +110733,20 @@
110733
110733
  },
110734
110734
  {
110735
110735
  "kind": "javascript-module",
110736
- "path": "toggle/toggle/toggle.component.js",
110736
+ "path": "toggle/toggle-option/toggle-option.component.js",
110737
110737
  "declarations": [
110738
110738
  {
110739
110739
  "kind": "class",
110740
- "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
110741
- "name": "SbbToggleElement",
110740
+ "description": "It displays a toggle option within a `sbb-toggle`.",
110741
+ "name": "SbbToggleOptionElement",
110742
110742
  "slots": [
110743
110743
  {
110744
- "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
110744
+ "description": "Use the unnamed slot to add content to the label of the toggle option.",
110745
110745
  "name": ""
110746
+ },
110747
+ {
110748
+ "description": "Slot used to render the `sbb-icon`.",
110749
+ "name": "icon"
110746
110750
  }
110747
110751
  ],
110748
110752
  "members": [
@@ -110755,41 +110759,18 @@
110755
110759
  "privacy": "public",
110756
110760
  "static": true,
110757
110761
  "readonly": true,
110758
- "default": "'radiogroup'"
110759
- },
110760
- {
110761
- "kind": "field",
110762
- "name": "events",
110763
- "privacy": "public",
110764
- "static": true,
110765
- "readonly": true,
110766
- "default": "{ change: 'change', }",
110767
- "type": {
110768
- "text": "{\n change: 'change',\n }"
110769
- }
110762
+ "default": "'radio'"
110770
110763
  },
110771
110764
  {
110772
110765
  "kind": "field",
110773
- "name": "even",
110766
+ "name": "checked",
110774
110767
  "type": {
110775
110768
  "text": "boolean"
110776
110769
  },
110777
110770
  "privacy": "public",
110778
110771
  "default": "false",
110779
- "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
110780
- "attribute": "even",
110781
- "reflects": true
110782
- },
110783
- {
110784
- "kind": "field",
110785
- "name": "size",
110786
- "type": {
110787
- "text": "'s' | 'm'"
110788
- },
110789
- "privacy": "public",
110790
- "description": "Size variant, either m or s.",
110791
- "default": "'m' / 's' (lean)",
110792
- "attribute": "size",
110772
+ "description": "Whether the toggle-option is checked.",
110773
+ "attribute": "checked",
110793
110774
  "reflects": true
110794
110775
  },
110795
110776
  {
@@ -110799,53 +110780,22 @@
110799
110780
  "text": "(T = string) | null"
110800
110781
  },
110801
110782
  "privacy": "public",
110802
- "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
110803
- "attribute": "value",
110804
- "inheritedFrom": {
110805
- "name": "SbbFormAssociatedMixin",
110806
- "module": "core/mixins/form-associated-mixin.js"
110807
- }
110783
+ "default": "null",
110784
+ "description": "Value of toggle-option.",
110785
+ "attribute": "value"
110808
110786
  },
110809
110787
  {
110810
110788
  "kind": "field",
110811
- "name": "_fallbackValue",
110789
+ "name": "_toggle",
110812
110790
  "type": {
110813
- "text": "T | null"
110791
+ "text": "SbbToggleElement | null"
110814
110792
  },
110815
110793
  "privacy": "private",
110816
110794
  "default": "null"
110817
110795
  },
110818
- {
110819
- "kind": "field",
110820
- "name": "options",
110821
- "type": {
110822
- "text": "SbbToggleOptionElement<T>[]"
110823
- },
110824
- "privacy": "public",
110825
- "description": "The child instances of sbb-toggle-option as an array.",
110826
- "readonly": true
110827
- },
110828
- {
110829
- "kind": "method",
110830
- "name": "_readFormData",
110831
- "privacy": "private",
110832
- "return": {
110833
- "type": {
110834
- "text": "Promise<T>"
110835
- }
110836
- },
110837
- "parameters": [
110838
- {
110839
- "name": "formData",
110840
- "type": {
110841
- "text": "FormData"
110842
- }
110843
- }
110844
- ]
110845
- },
110846
110796
  {
110847
110797
  "kind": "method",
110848
- "name": "_updateToggle",
110798
+ "name": "_uncheckOtherOptions",
110849
110799
  "privacy": "private",
110850
110800
  "return": {
110851
110801
  "type": {
@@ -110855,25 +110805,7 @@
110855
110805
  },
110856
110806
  {
110857
110807
  "kind": "method",
110858
- "name": "_valueChanged",
110859
- "privacy": "private",
110860
- "return": {
110861
- "type": {
110862
- "text": "void"
110863
- }
110864
- },
110865
- "parameters": [
110866
- {
110867
- "name": "value",
110868
- "type": {
110869
- "text": "T | null"
110870
- }
110871
- }
110872
- ]
110873
- },
110874
- {
110875
- "kind": "method",
110876
- "name": "_updateDisabled",
110808
+ "name": "_handleDisabledChange",
110877
110809
  "privacy": "private",
110878
110810
  "return": {
110879
110811
  "type": {
@@ -110889,44 +110821,17 @@
110889
110821
  "type": {
110890
110822
  "text": "void"
110891
110823
  }
110892
- },
110893
- "description": "Called on user interaction (click or keyboard)"
110894
- },
110895
- {
110896
- "kind": "method",
110897
- "name": "_handleKeyDown",
110898
- "privacy": "private",
110899
- "return": {
110900
- "type": {
110901
- "text": "void"
110902
- }
110903
- },
110904
- "parameters": [
110905
- {
110906
- "name": "evt",
110907
- "type": {
110908
- "text": "KeyboardEvent"
110909
- }
110910
- }
110911
- ]
110824
+ }
110912
110825
  },
110913
110826
  {
110914
110827
  "kind": "method",
110915
- "name": "_selectAndFocusOption",
110828
+ "name": "_verifyTabindex",
110916
110829
  "privacy": "private",
110917
110830
  "return": {
110918
110831
  "type": {
110919
110832
  "text": "void"
110920
110833
  }
110921
- },
110922
- "parameters": [
110923
- {
110924
- "name": "option",
110925
- "type": {
110926
- "text": "SbbToggleOptionElement<T> | undefined"
110927
- }
110928
- }
110929
- ]
110834
+ }
110930
110835
  },
110931
110836
  {
110932
110837
  "kind": "field",
@@ -110974,323 +110879,353 @@
110974
110879
  },
110975
110880
  {
110976
110881
  "kind": "field",
110977
- "name": "formAssociated",
110882
+ "name": "iconName",
110978
110883
  "type": {
110979
- "text": "boolean"
110884
+ "text": "string"
110980
110885
  },
110981
110886
  "privacy": "public",
110982
- "static": true,
110983
- "default": "true",
110887
+ "default": "''",
110888
+ "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.",
110889
+ "attribute": "icon-name",
110984
110890
  "inheritedFrom": {
110985
- "name": "SbbFormAssociatedMixin",
110986
- "module": "core/mixins/form-associated-mixin.js"
110891
+ "name": "SbbIconNameMixin",
110892
+ "module": "icon/icon-name-mixin.js"
110987
110893
  }
110988
110894
  },
110989
110895
  {
110990
- "kind": "field",
110991
- "name": "form",
110992
- "type": {
110993
- "text": "HTMLFormElement | null"
110896
+ "kind": "method",
110897
+ "name": "renderIconSlot",
110898
+ "privacy": "protected",
110899
+ "return": {
110900
+ "type": {
110901
+ "text": "TemplateResult"
110902
+ }
110994
110903
  },
110995
- "privacy": "public",
110996
- "description": "Returns the form owner of this element.",
110997
- "readonly": true,
110904
+ "parameters": [
110905
+ {
110906
+ "name": "classname",
110907
+ "optional": true,
110908
+ "type": {
110909
+ "text": "string"
110910
+ }
110911
+ }
110912
+ ],
110998
110913
  "inheritedFrom": {
110999
- "name": "SbbFormAssociatedMixin",
111000
- "module": "core/mixins/form-associated-mixin.js"
110914
+ "name": "SbbIconNameMixin",
110915
+ "module": "icon/icon-name-mixin.js"
111001
110916
  }
111002
110917
  },
111003
110918
  {
111004
- "kind": "field",
111005
- "name": "name",
111006
- "privacy": "public",
111007
- "description": "Name of the form element. Will be read from name attribute.",
111008
- "type": {
111009
- "text": "string"
110919
+ "kind": "method",
110920
+ "name": "renderIconName",
110921
+ "privacy": "protected",
110922
+ "return": {
110923
+ "type": {
110924
+ "text": "string"
110925
+ }
111010
110926
  },
111011
- "attribute": "name",
111012
110927
  "inheritedFrom": {
111013
- "name": "SbbFormAssociatedMixin",
111014
- "module": "core/mixins/form-associated-mixin.js"
110928
+ "name": "SbbIconNameMixin",
110929
+ "module": "icon/icon-name-mixin.js"
111015
110930
  }
111016
110931
  },
111017
110932
  {
111018
- "kind": "field",
111019
- "name": "validity",
111020
- "type": {
111021
- "text": "ValidityState"
110933
+ "kind": "method",
110934
+ "name": "_renderIconName",
110935
+ "privacy": "private",
110936
+ "return": {
110937
+ "type": {
110938
+ "text": "string"
110939
+ }
111022
110940
  },
111023
- "privacy": "public",
111024
- "description": "Returns the ValidityState object for this element.",
111025
- "readonly": true,
111026
110941
  "inheritedFrom": {
111027
- "name": "SbbFormAssociatedMixin",
111028
- "module": "core/mixins/form-associated-mixin.js"
110942
+ "name": "SbbIconNameMixin",
110943
+ "module": "icon/icon-name-mixin.js"
111029
110944
  }
111030
110945
  },
111031
110946
  {
111032
- "kind": "field",
111033
- "name": "validationMessage",
111034
- "type": {
111035
- "text": "string"
110947
+ "kind": "method",
110948
+ "name": "toggleState",
110949
+ "privacy": "protected",
110950
+ "return": {
110951
+ "type": {
110952
+ "text": "void"
110953
+ }
111036
110954
  },
111037
- "privacy": "public",
111038
- "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.",
111039
- "readonly": true,
110955
+ "parameters": [
110956
+ {
110957
+ "name": "value",
110958
+ "type": {
110959
+ "text": "string"
110960
+ }
110961
+ },
110962
+ {
110963
+ "name": "force",
110964
+ "optional": true,
110965
+ "type": {
110966
+ "text": "boolean"
110967
+ }
110968
+ }
110969
+ ],
111040
110970
  "inheritedFrom": {
111041
- "name": "SbbFormAssociatedMixin",
111042
- "module": "core/mixins/form-associated-mixin.js"
110971
+ "name": "SbbElementInternalsMixin",
110972
+ "module": "core/mixins/element-internals-mixin.js"
111043
110973
  }
111044
- },
110974
+ }
110975
+ ],
110976
+ "attributes": [
111045
110977
  {
111046
- "kind": "field",
111047
- "name": "willValidate",
110978
+ "name": "checked",
111048
110979
  "type": {
111049
110980
  "text": "boolean"
111050
110981
  },
111051
- "privacy": "public",
111052
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
111053
- "readonly": true,
111054
- "inheritedFrom": {
111055
- "name": "SbbFormAssociatedMixin",
111056
- "module": "core/mixins/form-associated-mixin.js"
111057
- }
110982
+ "default": "false",
110983
+ "description": "Whether the toggle-option is checked.",
110984
+ "fieldName": "checked"
111058
110985
  },
111059
110986
  {
111060
- "kind": "field",
111061
- "name": "_validityStates",
111062
- "privacy": "private",
111063
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
111064
- "inheritedFrom": {
111065
- "name": "SbbFormAssociatedMixin",
111066
- "module": "core/mixins/form-associated-mixin.js"
111067
- }
110987
+ "name": "value",
110988
+ "type": {
110989
+ "text": "T | null"
110990
+ },
110991
+ "default": "null",
110992
+ "description": "Value of toggle-option.",
110993
+ "fieldName": "value"
111068
110994
  },
111069
110995
  {
111070
- "kind": "field",
111071
- "name": "formDisabled",
110996
+ "name": "disabled",
110997
+ "description": "Whether the component is disabled.",
110998
+ "default": "false",
111072
110999
  "type": {
111073
111000
  "text": "boolean"
111074
111001
  },
111075
- "privacy": "protected",
111076
- "default": "false",
111077
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
111002
+ "fieldName": "disabled",
111078
111003
  "inheritedFrom": {
111079
- "name": "SbbFormAssociatedMixin",
111080
- "module": "core/mixins/form-associated-mixin.js"
111004
+ "name": "SbbDisabledMixin",
111005
+ "module": "core/mixins/disabled-mixin.js"
111081
111006
  }
111082
111007
  },
111083
111008
  {
111084
- "kind": "method",
111085
- "name": "checkValidity",
111086
- "privacy": "public",
111087
- "return": {
111088
- "type": {
111089
- "text": "boolean"
111090
- }
111009
+ "name": "icon-name",
111010
+ "type": {
111011
+ "text": "string"
111091
111012
  },
111092
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111013
+ "default": "''",
111014
+ "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.",
111015
+ "fieldName": "iconName",
111093
111016
  "inheritedFrom": {
111094
- "name": "SbbFormAssociatedMixin",
111095
- "module": "core/mixins/form-associated-mixin.js"
111017
+ "name": "SbbIconNameMixin",
111018
+ "module": "icon/icon-name-mixin.js"
111096
111019
  }
111020
+ }
111021
+ ],
111022
+ "mixins": [
111023
+ {
111024
+ "name": "SbbDisabledMixin",
111025
+ "module": "core/mixins.js"
111097
111026
  },
111098
111027
  {
111099
- "kind": "method",
111100
- "name": "reportValidity",
111101
- "privacy": "public",
111102
- "return": {
111103
- "type": {
111104
- "text": "boolean"
111105
- }
111028
+ "name": "SbbIconNameMixin",
111029
+ "module": "icon.js"
111030
+ },
111031
+ {
111032
+ "name": "SbbElementInternalsMixin",
111033
+ "module": "core/mixins.js"
111034
+ }
111035
+ ],
111036
+ "superclass": {
111037
+ "name": "LitElement",
111038
+ "package": "lit"
111039
+ },
111040
+ "classGenerics": "T = string",
111041
+ "tagName": "sbb-toggle-option",
111042
+ "customElement": true
111043
+ }
111044
+ ],
111045
+ "exports": [
111046
+ {
111047
+ "kind": "js",
111048
+ "name": "SbbToggleOptionElement",
111049
+ "declaration": {
111050
+ "name": "SbbToggleOptionElement",
111051
+ "module": "toggle/toggle-option/toggle-option.component.js"
111052
+ }
111053
+ },
111054
+ {
111055
+ "kind": "custom-element-definition",
111056
+ "name": "sbb-toggle-option",
111057
+ "declaration": {
111058
+ "name": "SbbToggleOptionElement",
111059
+ "module": "toggle/toggle-option/toggle-option.component.js"
111060
+ }
111061
+ }
111062
+ ]
111063
+ },
111064
+ {
111065
+ "kind": "javascript-module",
111066
+ "path": "toggle/toggle/toggle.component.js",
111067
+ "declarations": [
111068
+ {
111069
+ "kind": "class",
111070
+ "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
111071
+ "name": "SbbToggleElement",
111072
+ "slots": [
111073
+ {
111074
+ "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
111075
+ "name": ""
111076
+ }
111077
+ ],
111078
+ "members": [
111079
+ {
111080
+ "kind": "field",
111081
+ "name": "role",
111082
+ "type": {
111083
+ "text": "string"
111106
111084
  },
111107
- "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.",
111108
- "inheritedFrom": {
111109
- "name": "SbbFormAssociatedMixin",
111110
- "module": "core/mixins/form-associated-mixin.js"
111111
- }
111085
+ "privacy": "public",
111086
+ "static": true,
111087
+ "readonly": true,
111088
+ "default": "'radiogroup'"
111112
111089
  },
111113
111090
  {
111114
- "kind": "method",
111115
- "name": "setCustomValidity",
111091
+ "kind": "field",
111092
+ "name": "events",
111116
111093
  "privacy": "public",
111117
- "return": {
111118
- "type": {
111119
- "text": "void"
111120
- }
111121
- },
111122
- "parameters": [
111123
- {
111124
- "name": "message",
111125
- "type": {
111126
- "text": "string"
111127
- }
111128
- }
111129
- ],
111130
- "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.",
111131
- "inheritedFrom": {
111132
- "name": "SbbFormAssociatedMixin",
111133
- "module": "core/mixins/form-associated-mixin.js"
111094
+ "static": true,
111095
+ "readonly": true,
111096
+ "default": "{ change: 'change', }",
111097
+ "type": {
111098
+ "text": "{\n change: 'change',\n }"
111134
111099
  }
111135
111100
  },
111136
111101
  {
111137
- "kind": "method",
111138
- "name": "_hasDisabledAncestor",
111139
- "privacy": "private",
111140
- "return": {
111141
- "type": {
111142
- "text": "boolean"
111143
- }
111102
+ "kind": "field",
111103
+ "name": "even",
111104
+ "type": {
111105
+ "text": "boolean"
111144
111106
  },
111145
- "inheritedFrom": {
111146
- "name": "SbbFormAssociatedMixin",
111147
- "module": "core/mixins/form-associated-mixin.js"
111148
- }
111107
+ "privacy": "public",
111108
+ "default": "false",
111109
+ "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
111110
+ "attribute": "even",
111111
+ "reflects": true
111149
111112
  },
111150
111113
  {
111151
- "kind": "method",
111152
- "name": "updateFormValue",
111153
- "privacy": "protected",
111154
- "return": {
111155
- "type": {
111156
- "text": "void"
111157
- }
111114
+ "kind": "field",
111115
+ "name": "size",
111116
+ "type": {
111117
+ "text": "'s' | 'm'"
111158
111118
  },
111159
- "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",
111160
- "inheritedFrom": {
111161
- "name": "SbbFormAssociatedMixin",
111162
- "module": "core/mixins/form-associated-mixin.js"
111163
- }
111119
+ "privacy": "public",
111120
+ "description": "Size variant, either m or s.",
111121
+ "default": "'m' / 's' (lean)",
111122
+ "attribute": "size",
111123
+ "reflects": true
111164
111124
  },
111165
111125
  {
111166
- "kind": "method",
111167
- "name": "formState",
111168
- "privacy": "protected",
111169
- "return": {
111170
- "type": {
111171
- "text": "FormRestoreState"
111172
- }
111126
+ "kind": "field",
111127
+ "name": "value",
111128
+ "type": {
111129
+ "text": "(T = string) | null"
111173
111130
  },
111131
+ "privacy": "public",
111132
+ "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
111133
+ "attribute": "value",
111174
111134
  "inheritedFrom": {
111175
111135
  "name": "SbbFormAssociatedMixin",
111176
111136
  "module": "core/mixins/form-associated-mixin.js"
111177
111137
  }
111178
111138
  },
111179
111139
  {
111180
- "kind": "method",
111181
- "name": "setValidityFlag",
111182
- "privacy": "protected",
111183
- "return": {
111184
- "type": {
111185
- "text": "void"
111186
- }
111140
+ "kind": "field",
111141
+ "name": "_fallbackValue",
111142
+ "type": {
111143
+ "text": "T | null"
111187
111144
  },
111188
- "parameters": [
111189
- {
111190
- "name": "flag",
111191
- "type": {
111192
- "text": "T"
111193
- }
111194
- },
111195
- {
111196
- "name": "message",
111197
- "type": {
111198
- "text": "string"
111199
- }
111200
- },
111201
- {
111202
- "name": "flagValue",
111203
- "optional": true,
111204
- "type": {
111205
- "text": "ValidityStateFlags[T]"
111206
- }
111207
- }
111208
- ],
111209
- "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).",
111210
- "inheritedFrom": {
111211
- "name": "SbbFormAssociatedMixin",
111212
- "module": "core/mixins/form-associated-mixin.js"
111213
- }
111145
+ "privacy": "private",
111146
+ "default": "null"
111147
+ },
111148
+ {
111149
+ "kind": "field",
111150
+ "name": "options",
111151
+ "type": {
111152
+ "text": "SbbToggleOptionElement<T>[]"
111153
+ },
111154
+ "privacy": "public",
111155
+ "description": "The child instances of sbb-toggle-option as an array.",
111156
+ "readonly": true
111214
111157
  },
111215
111158
  {
111216
111159
  "kind": "method",
111217
- "name": "removeValidityFlag",
111218
- "privacy": "protected",
111160
+ "name": "_readFormData",
111161
+ "privacy": "private",
111219
111162
  "return": {
111220
111163
  "type": {
111221
- "text": "void"
111164
+ "text": "Promise<T>"
111222
111165
  }
111223
111166
  },
111224
111167
  "parameters": [
111225
111168
  {
111226
- "name": "flag",
111169
+ "name": "formData",
111227
111170
  "type": {
111228
- "text": "T"
111171
+ "text": "FormData"
111229
111172
  }
111230
111173
  }
111231
- ],
111232
- "description": "Removes the validity state flag entry and updates validity state.",
111233
- "inheritedFrom": {
111234
- "name": "SbbFormAssociatedMixin",
111235
- "module": "core/mixins/form-associated-mixin.js"
111236
- }
111174
+ ]
111237
111175
  },
111238
111176
  {
111239
111177
  "kind": "method",
111240
- "name": "validate",
111241
- "privacy": "protected",
111178
+ "name": "_updateToggle",
111179
+ "privacy": "private",
111242
111180
  "return": {
111243
111181
  "type": {
111244
111182
  "text": "void"
111245
111183
  }
111246
- },
111247
- "description": "To be called whenever the current element needs to be validated.",
111248
- "inheritedFrom": {
111249
- "name": "SbbFormAssociatedMixin",
111250
- "module": "core/mixins/form-associated-mixin.js"
111251
111184
  }
111252
111185
  },
111253
111186
  {
111254
111187
  "kind": "method",
111255
- "name": "shouldValidate",
111256
- "privacy": "protected",
111188
+ "name": "_valueChanged",
111189
+ "privacy": "private",
111257
111190
  "return": {
111258
111191
  "type": {
111259
- "text": "boolean"
111192
+ "text": "void"
111260
111193
  }
111261
111194
  },
111262
111195
  "parameters": [
111263
111196
  {
111264
- "name": "name",
111197
+ "name": "value",
111265
111198
  "type": {
111266
- "text": "PropertyKey | undefined"
111199
+ "text": "T | null"
111267
111200
  }
111268
111201
  }
111269
- ],
111270
- "description": "Whether validation should be run on a property change with the given name.",
111271
- "inheritedFrom": {
111272
- "name": "SbbFormAssociatedMixin",
111273
- "module": "core/mixins/form-associated-mixin.js"
111202
+ ]
111203
+ },
111204
+ {
111205
+ "kind": "method",
111206
+ "name": "_updateDisabled",
111207
+ "privacy": "private",
111208
+ "return": {
111209
+ "type": {
111210
+ "text": "void"
111211
+ }
111274
111212
  }
111275
111213
  },
111276
111214
  {
111277
111215
  "kind": "method",
111278
- "name": "_setInternalValidity",
111216
+ "name": "_handleInput",
111279
111217
  "privacy": "private",
111280
111218
  "return": {
111281
111219
  "type": {
111282
111220
  "text": "void"
111283
111221
  }
111284
111222
  },
111285
- "inheritedFrom": {
111286
- "name": "SbbFormAssociatedMixin",
111287
- "module": "core/mixins/form-associated-mixin.js"
111288
- }
111223
+ "description": "Called on user interaction (click or keyboard)"
111289
111224
  },
111290
111225
  {
111291
111226
  "kind": "method",
111292
- "name": "toggleState",
111293
- "privacy": "protected",
111227
+ "name": "_handleKeyDown",
111228
+ "privacy": "private",
111294
111229
  "return": {
111295
111230
  "type": {
111296
111231
  "text": "void"
@@ -111298,339 +111233,388 @@
111298
111233
  },
111299
111234
  "parameters": [
111300
111235
  {
111301
- "name": "value",
111236
+ "name": "evt",
111302
111237
  "type": {
111303
- "text": "string"
111238
+ "text": "KeyboardEvent"
111304
111239
  }
111305
- },
111240
+ }
111241
+ ]
111242
+ },
111243
+ {
111244
+ "kind": "method",
111245
+ "name": "_selectAndFocusOption",
111246
+ "privacy": "private",
111247
+ "return": {
111248
+ "type": {
111249
+ "text": "void"
111250
+ }
111251
+ },
111252
+ "parameters": [
111306
111253
  {
111307
- "name": "force",
111308
- "optional": true,
111254
+ "name": "option",
111309
111255
  "type": {
111310
- "text": "boolean"
111256
+ "text": "SbbToggleOptionElement<T> | undefined"
111311
111257
  }
111312
111258
  }
111313
- ],
111314
- "inheritedFrom": {
111315
- "name": "SbbElementInternalsMixin",
111316
- "module": "core/mixins/element-internals-mixin.js"
111317
- }
111318
- }
111319
- ],
111320
- "events": [
111259
+ ]
111260
+ },
111321
111261
  {
111322
- "name": "change",
111262
+ "kind": "field",
111263
+ "name": "disabled",
111264
+ "privacy": "public",
111265
+ "description": "Whether the component is disabled.",
111266
+ "default": "false",
111323
111267
  "type": {
111324
- "text": "Event"
111268
+ "text": "boolean"
111325
111269
  },
111326
- "description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
111327
- }
111328
- ],
111329
- "attributes": [
111270
+ "attribute": "disabled",
111271
+ "reflects": true,
111272
+ "inheritedFrom": {
111273
+ "name": "SbbDisabledMixin",
111274
+ "module": "core/mixins/disabled-mixin.js"
111275
+ }
111276
+ },
111330
111277
  {
111331
- "name": "even",
111278
+ "kind": "field",
111279
+ "name": "#disabled",
111280
+ "privacy": "private",
111332
111281
  "type": {
111333
111282
  "text": "boolean"
111334
111283
  },
111335
111284
  "default": "false",
111336
- "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
111337
- "fieldName": "even"
111285
+ "inheritedFrom": {
111286
+ "name": "SbbDisabledMixin",
111287
+ "module": "core/mixins/disabled-mixin.js"
111288
+ }
111338
111289
  },
111339
111290
  {
111340
- "name": "size",
111341
- "type": {
111342
- "text": "'s' | 'm'"
111291
+ "kind": "method",
111292
+ "name": "isDisabledExternally",
111293
+ "privacy": "protected",
111294
+ "return": {
111295
+ "type": {
111296
+ "text": "boolean"
111297
+ }
111343
111298
  },
111344
- "description": "Size variant, either m or s.",
111345
- "default": "'m' / 's' (lean)",
111346
- "fieldName": "size"
111299
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
111300
+ "inheritedFrom": {
111301
+ "name": "SbbDisabledMixin",
111302
+ "module": "core/mixins/disabled-mixin.js"
111303
+ }
111347
111304
  },
111348
111305
  {
111349
- "name": "value",
111350
- "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
111306
+ "kind": "field",
111307
+ "name": "formAssociated",
111351
111308
  "type": {
111352
- "text": "T | null"
111309
+ "text": "boolean"
111353
111310
  },
111354
- "fieldName": "value"
111311
+ "privacy": "public",
111312
+ "static": true,
111313
+ "default": "true",
111314
+ "inheritedFrom": {
111315
+ "name": "SbbFormAssociatedMixin",
111316
+ "module": "core/mixins/form-associated-mixin.js"
111317
+ }
111355
111318
  },
111356
111319
  {
111357
- "name": "disabled",
111358
- "description": "Whether the component is disabled.",
111359
- "default": "false",
111320
+ "kind": "field",
111321
+ "name": "form",
111360
111322
  "type": {
111361
- "text": "boolean"
111323
+ "text": "HTMLFormElement | null"
111362
111324
  },
111363
- "fieldName": "disabled",
111325
+ "privacy": "public",
111326
+ "description": "Returns the form owner of this element.",
111327
+ "readonly": true,
111364
111328
  "inheritedFrom": {
111365
- "name": "SbbDisabledMixin",
111366
- "module": "core/mixins/disabled-mixin.js"
111329
+ "name": "SbbFormAssociatedMixin",
111330
+ "module": "core/mixins/form-associated-mixin.js"
111367
111331
  }
111368
111332
  },
111369
111333
  {
111334
+ "kind": "field",
111370
111335
  "name": "name",
111336
+ "privacy": "public",
111371
111337
  "description": "Name of the form element. Will be read from name attribute.",
111372
111338
  "type": {
111373
111339
  "text": "string"
111374
111340
  },
111375
- "fieldName": "name",
111341
+ "attribute": "name",
111376
111342
  "inheritedFrom": {
111377
111343
  "name": "SbbFormAssociatedMixin",
111378
111344
  "module": "core/mixins/form-associated-mixin.js"
111379
111345
  }
111380
- }
111381
- ],
111382
- "mixins": [
111383
- {
111384
- "name": "SbbDisabledMixin",
111385
- "module": "core/mixins.js"
111386
111346
  },
111387
111347
  {
111388
- "name": "SbbFormAssociatedMixin",
111389
- "module": "core/mixins.js"
111390
- },
111391
- {
111392
- "name": "SbbElementInternalsMixin",
111393
- "module": "core/mixins.js"
111394
- }
111395
- ],
111396
- "superclass": {
111397
- "name": "LitElement",
111398
- "package": "lit"
111399
- },
111400
- "classGenerics": "T = string",
111401
- "tagName": "sbb-toggle",
111402
- "customElement": true
111403
- }
111404
- ],
111405
- "exports": [
111406
- {
111407
- "kind": "js",
111408
- "name": "SbbToggleElement",
111409
- "declaration": {
111410
- "name": "SbbToggleElement",
111411
- "module": "toggle/toggle/toggle.component.js"
111412
- }
111413
- },
111414
- {
111415
- "kind": "custom-element-definition",
111416
- "name": "sbb-toggle",
111417
- "declaration": {
111418
- "name": "SbbToggleElement",
111419
- "module": "toggle/toggle/toggle.component.js"
111420
- }
111421
- }
111422
- ]
111423
- },
111424
- {
111425
- "kind": "javascript-module",
111426
- "path": "toggle/toggle-option/toggle-option.component.js",
111427
- "declarations": [
111428
- {
111429
- "kind": "class",
111430
- "description": "It displays a toggle option within a `sbb-toggle`.",
111431
- "name": "SbbToggleOptionElement",
111432
- "slots": [
111433
- {
111434
- "description": "Use the unnamed slot to add content to the label of the toggle option.",
111435
- "name": ""
111348
+ "kind": "field",
111349
+ "name": "validity",
111350
+ "type": {
111351
+ "text": "ValidityState"
111352
+ },
111353
+ "privacy": "public",
111354
+ "description": "Returns the ValidityState object for this element.",
111355
+ "readonly": true,
111356
+ "inheritedFrom": {
111357
+ "name": "SbbFormAssociatedMixin",
111358
+ "module": "core/mixins/form-associated-mixin.js"
111359
+ }
111436
111360
  },
111437
- {
111438
- "description": "Slot used to render the `sbb-icon`.",
111439
- "name": "icon"
111440
- }
111441
- ],
111442
- "members": [
111443
111361
  {
111444
111362
  "kind": "field",
111445
- "name": "role",
111363
+ "name": "validationMessage",
111446
111364
  "type": {
111447
111365
  "text": "string"
111448
111366
  },
111449
111367
  "privacy": "public",
111450
- "static": true,
111368
+ "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.",
111451
111369
  "readonly": true,
111452
- "default": "'radio'"
111370
+ "inheritedFrom": {
111371
+ "name": "SbbFormAssociatedMixin",
111372
+ "module": "core/mixins/form-associated-mixin.js"
111373
+ }
111453
111374
  },
111454
111375
  {
111455
111376
  "kind": "field",
111456
- "name": "checked",
111377
+ "name": "willValidate",
111457
111378
  "type": {
111458
111379
  "text": "boolean"
111459
111380
  },
111460
111381
  "privacy": "public",
111461
- "default": "false",
111462
- "description": "Whether the toggle-option is checked.",
111463
- "attribute": "checked",
111464
- "reflects": true
111382
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
111383
+ "readonly": true,
111384
+ "inheritedFrom": {
111385
+ "name": "SbbFormAssociatedMixin",
111386
+ "module": "core/mixins/form-associated-mixin.js"
111387
+ }
111465
111388
  },
111466
111389
  {
111467
111390
  "kind": "field",
111468
- "name": "value",
111469
- "type": {
111470
- "text": "(T = string) | null"
111471
- },
111472
- "privacy": "public",
111473
- "default": "null",
111474
- "description": "Value of toggle-option.",
111475
- "attribute": "value"
111391
+ "name": "_validityStates",
111392
+ "privacy": "private",
111393
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
111394
+ "inheritedFrom": {
111395
+ "name": "SbbFormAssociatedMixin",
111396
+ "module": "core/mixins/form-associated-mixin.js"
111397
+ }
111476
111398
  },
111477
111399
  {
111478
111400
  "kind": "field",
111479
- "name": "_toggle",
111401
+ "name": "formDisabled",
111480
111402
  "type": {
111481
- "text": "SbbToggleElement | null"
111403
+ "text": "boolean"
111482
111404
  },
111483
- "privacy": "private",
111484
- "default": "null"
111405
+ "privacy": "protected",
111406
+ "default": "false",
111407
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
111408
+ "inheritedFrom": {
111409
+ "name": "SbbFormAssociatedMixin",
111410
+ "module": "core/mixins/form-associated-mixin.js"
111411
+ }
111485
111412
  },
111486
111413
  {
111487
111414
  "kind": "method",
111488
- "name": "_uncheckOtherOptions",
111489
- "privacy": "private",
111415
+ "name": "checkValidity",
111416
+ "privacy": "public",
111490
111417
  "return": {
111491
111418
  "type": {
111492
- "text": "void"
111419
+ "text": "boolean"
111493
111420
  }
111421
+ },
111422
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111423
+ "inheritedFrom": {
111424
+ "name": "SbbFormAssociatedMixin",
111425
+ "module": "core/mixins/form-associated-mixin.js"
111494
111426
  }
111495
111427
  },
111496
111428
  {
111497
111429
  "kind": "method",
111498
- "name": "_handleDisabledChange",
111499
- "privacy": "private",
111430
+ "name": "reportValidity",
111431
+ "privacy": "public",
111500
111432
  "return": {
111501
111433
  "type": {
111502
- "text": "void"
111434
+ "text": "boolean"
111503
111435
  }
111436
+ },
111437
+ "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.",
111438
+ "inheritedFrom": {
111439
+ "name": "SbbFormAssociatedMixin",
111440
+ "module": "core/mixins/form-associated-mixin.js"
111504
111441
  }
111505
111442
  },
111506
111443
  {
111507
111444
  "kind": "method",
111508
- "name": "_handleInput",
111509
- "privacy": "private",
111445
+ "name": "setCustomValidity",
111446
+ "privacy": "public",
111510
111447
  "return": {
111511
111448
  "type": {
111512
111449
  "text": "void"
111513
111450
  }
111451
+ },
111452
+ "parameters": [
111453
+ {
111454
+ "name": "message",
111455
+ "type": {
111456
+ "text": "string"
111457
+ }
111458
+ }
111459
+ ],
111460
+ "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.",
111461
+ "inheritedFrom": {
111462
+ "name": "SbbFormAssociatedMixin",
111463
+ "module": "core/mixins/form-associated-mixin.js"
111514
111464
  }
111515
111465
  },
111516
111466
  {
111517
111467
  "kind": "method",
111518
- "name": "_verifyTabindex",
111468
+ "name": "_hasDisabledAncestor",
111519
111469
  "privacy": "private",
111520
111470
  "return": {
111521
111471
  "type": {
111522
- "text": "void"
111472
+ "text": "boolean"
111523
111473
  }
111524
- }
111525
- },
111526
- {
111527
- "kind": "field",
111528
- "name": "disabled",
111529
- "privacy": "public",
111530
- "description": "Whether the component is disabled.",
111531
- "default": "false",
111532
- "type": {
111533
- "text": "boolean"
111534
111474
  },
111535
- "attribute": "disabled",
111536
- "reflects": true,
111537
111475
  "inheritedFrom": {
111538
- "name": "SbbDisabledMixin",
111539
- "module": "core/mixins/disabled-mixin.js"
111476
+ "name": "SbbFormAssociatedMixin",
111477
+ "module": "core/mixins/form-associated-mixin.js"
111540
111478
  }
111541
111479
  },
111542
111480
  {
111543
- "kind": "field",
111544
- "name": "#disabled",
111545
- "privacy": "private",
111546
- "type": {
111547
- "text": "boolean"
111481
+ "kind": "method",
111482
+ "name": "updateFormValue",
111483
+ "privacy": "protected",
111484
+ "return": {
111485
+ "type": {
111486
+ "text": "void"
111487
+ }
111548
111488
  },
111549
- "default": "false",
111489
+ "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",
111550
111490
  "inheritedFrom": {
111551
- "name": "SbbDisabledMixin",
111552
- "module": "core/mixins/disabled-mixin.js"
111491
+ "name": "SbbFormAssociatedMixin",
111492
+ "module": "core/mixins/form-associated-mixin.js"
111553
111493
  }
111554
111494
  },
111555
111495
  {
111556
111496
  "kind": "method",
111557
- "name": "isDisabledExternally",
111497
+ "name": "formState",
111558
111498
  "privacy": "protected",
111559
111499
  "return": {
111560
111500
  "type": {
111561
- "text": "boolean"
111501
+ "text": "FormRestoreState"
111562
111502
  }
111563
111503
  },
111564
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
111565
111504
  "inheritedFrom": {
111566
- "name": "SbbDisabledMixin",
111567
- "module": "core/mixins/disabled-mixin.js"
111505
+ "name": "SbbFormAssociatedMixin",
111506
+ "module": "core/mixins/form-associated-mixin.js"
111568
111507
  }
111569
111508
  },
111570
111509
  {
111571
- "kind": "field",
111572
- "name": "iconName",
111573
- "type": {
111574
- "text": "string"
111510
+ "kind": "method",
111511
+ "name": "setValidityFlag",
111512
+ "privacy": "protected",
111513
+ "return": {
111514
+ "type": {
111515
+ "text": "void"
111516
+ }
111575
111517
  },
111576
- "privacy": "public",
111577
- "default": "''",
111578
- "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.",
111579
- "attribute": "icon-name",
111518
+ "parameters": [
111519
+ {
111520
+ "name": "flag",
111521
+ "type": {
111522
+ "text": "T"
111523
+ }
111524
+ },
111525
+ {
111526
+ "name": "message",
111527
+ "type": {
111528
+ "text": "string"
111529
+ }
111530
+ },
111531
+ {
111532
+ "name": "flagValue",
111533
+ "optional": true,
111534
+ "type": {
111535
+ "text": "ValidityStateFlags[T]"
111536
+ }
111537
+ }
111538
+ ],
111539
+ "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).",
111580
111540
  "inheritedFrom": {
111581
- "name": "SbbIconNameMixin",
111582
- "module": "icon/icon-name-mixin.js"
111541
+ "name": "SbbFormAssociatedMixin",
111542
+ "module": "core/mixins/form-associated-mixin.js"
111583
111543
  }
111584
111544
  },
111585
111545
  {
111586
111546
  "kind": "method",
111587
- "name": "renderIconSlot",
111547
+ "name": "removeValidityFlag",
111588
111548
  "privacy": "protected",
111589
111549
  "return": {
111590
111550
  "type": {
111591
- "text": "TemplateResult"
111551
+ "text": "void"
111592
111552
  }
111593
111553
  },
111594
111554
  "parameters": [
111595
111555
  {
111596
- "name": "classname",
111597
- "optional": true,
111556
+ "name": "flag",
111598
111557
  "type": {
111599
- "text": "string"
111558
+ "text": "T"
111600
111559
  }
111601
111560
  }
111602
111561
  ],
111562
+ "description": "Removes the validity state flag entry and updates validity state.",
111603
111563
  "inheritedFrom": {
111604
- "name": "SbbIconNameMixin",
111605
- "module": "icon/icon-name-mixin.js"
111564
+ "name": "SbbFormAssociatedMixin",
111565
+ "module": "core/mixins/form-associated-mixin.js"
111606
111566
  }
111607
111567
  },
111608
111568
  {
111609
111569
  "kind": "method",
111610
- "name": "renderIconName",
111570
+ "name": "validate",
111611
111571
  "privacy": "protected",
111612
111572
  "return": {
111613
111573
  "type": {
111614
- "text": "string"
111574
+ "text": "void"
111615
111575
  }
111616
111576
  },
111577
+ "description": "To be called whenever the current element needs to be validated.",
111617
111578
  "inheritedFrom": {
111618
- "name": "SbbIconNameMixin",
111619
- "module": "icon/icon-name-mixin.js"
111579
+ "name": "SbbFormAssociatedMixin",
111580
+ "module": "core/mixins/form-associated-mixin.js"
111620
111581
  }
111621
111582
  },
111622
111583
  {
111623
111584
  "kind": "method",
111624
- "name": "_renderIconName",
111585
+ "name": "shouldValidate",
111586
+ "privacy": "protected",
111587
+ "return": {
111588
+ "type": {
111589
+ "text": "boolean"
111590
+ }
111591
+ },
111592
+ "parameters": [
111593
+ {
111594
+ "name": "name",
111595
+ "type": {
111596
+ "text": "PropertyKey | undefined"
111597
+ }
111598
+ }
111599
+ ],
111600
+ "description": "Whether validation should be run on a property change with the given name.",
111601
+ "inheritedFrom": {
111602
+ "name": "SbbFormAssociatedMixin",
111603
+ "module": "core/mixins/form-associated-mixin.js"
111604
+ }
111605
+ },
111606
+ {
111607
+ "kind": "method",
111608
+ "name": "_setInternalValidity",
111625
111609
  "privacy": "private",
111626
111610
  "return": {
111627
111611
  "type": {
111628
- "text": "string"
111612
+ "text": "void"
111629
111613
  }
111630
111614
  },
111631
111615
  "inheritedFrom": {
111632
- "name": "SbbIconNameMixin",
111633
- "module": "icon/icon-name-mixin.js"
111616
+ "name": "SbbFormAssociatedMixin",
111617
+ "module": "core/mixins/form-associated-mixin.js"
111634
111618
  }
111635
111619
  },
111636
111620
  {
@@ -111663,23 +111647,40 @@
111663
111647
  }
111664
111648
  }
111665
111649
  ],
111650
+ "events": [
111651
+ {
111652
+ "name": "change",
111653
+ "type": {
111654
+ "text": "Event"
111655
+ },
111656
+ "description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
111657
+ }
111658
+ ],
111666
111659
  "attributes": [
111667
111660
  {
111668
- "name": "checked",
111661
+ "name": "even",
111669
111662
  "type": {
111670
111663
  "text": "boolean"
111671
111664
  },
111672
111665
  "default": "false",
111673
- "description": "Whether the toggle-option is checked.",
111674
- "fieldName": "checked"
111666
+ "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
111667
+ "fieldName": "even"
111668
+ },
111669
+ {
111670
+ "name": "size",
111671
+ "type": {
111672
+ "text": "'s' | 'm'"
111673
+ },
111674
+ "description": "Size variant, either m or s.",
111675
+ "default": "'m' / 's' (lean)",
111676
+ "fieldName": "size"
111675
111677
  },
111676
111678
  {
111677
111679
  "name": "value",
111680
+ "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
111678
111681
  "type": {
111679
111682
  "text": "T | null"
111680
111683
  },
111681
- "default": "null",
111682
- "description": "Value of toggle-option.",
111683
111684
  "fieldName": "value"
111684
111685
  },
111685
111686
  {
@@ -111696,16 +111697,15 @@
111696
111697
  }
111697
111698
  },
111698
111699
  {
111699
- "name": "icon-name",
111700
+ "name": "name",
111701
+ "description": "Name of the form element. Will be read from name attribute.",
111700
111702
  "type": {
111701
111703
  "text": "string"
111702
111704
  },
111703
- "default": "''",
111704
- "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.",
111705
- "fieldName": "iconName",
111705
+ "fieldName": "name",
111706
111706
  "inheritedFrom": {
111707
- "name": "SbbIconNameMixin",
111708
- "module": "icon/icon-name-mixin.js"
111707
+ "name": "SbbFormAssociatedMixin",
111708
+ "module": "core/mixins/form-associated-mixin.js"
111709
111709
  }
111710
111710
  }
111711
111711
  ],
@@ -111715,8 +111715,8 @@
111715
111715
  "module": "core/mixins.js"
111716
111716
  },
111717
111717
  {
111718
- "name": "SbbIconNameMixin",
111719
- "module": "icon.js"
111718
+ "name": "SbbFormAssociatedMixin",
111719
+ "module": "core/mixins.js"
111720
111720
  },
111721
111721
  {
111722
111722
  "name": "SbbElementInternalsMixin",
@@ -111728,25 +111728,25 @@
111728
111728
  "package": "lit"
111729
111729
  },
111730
111730
  "classGenerics": "T = string",
111731
- "tagName": "sbb-toggle-option",
111731
+ "tagName": "sbb-toggle",
111732
111732
  "customElement": true
111733
111733
  }
111734
111734
  ],
111735
111735
  "exports": [
111736
111736
  {
111737
111737
  "kind": "js",
111738
- "name": "SbbToggleOptionElement",
111738
+ "name": "SbbToggleElement",
111739
111739
  "declaration": {
111740
- "name": "SbbToggleOptionElement",
111741
- "module": "toggle/toggle-option/toggle-option.component.js"
111740
+ "name": "SbbToggleElement",
111741
+ "module": "toggle/toggle/toggle.component.js"
111742
111742
  }
111743
111743
  },
111744
111744
  {
111745
111745
  "kind": "custom-element-definition",
111746
- "name": "sbb-toggle-option",
111746
+ "name": "sbb-toggle",
111747
111747
  "declaration": {
111748
- "name": "SbbToggleOptionElement",
111749
- "module": "toggle/toggle-option/toggle-option.component.js"
111748
+ "name": "SbbToggleElement",
111749
+ "module": "toggle/toggle/toggle.component.js"
111750
111750
  }
111751
111751
  }
111752
111752
  ]