@sbb-esta/lyne-elements-dev 4.5.1-dev.1772010259 → 4.5.1-dev.1772017123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +526 -526
  2. package/package.json +2 -2
@@ -109800,20 +109800,16 @@
109800
109800
  },
109801
109801
  {
109802
109802
  "kind": "javascript-module",
109803
- "path": "toggle/toggle-option/toggle-option.component.js",
109803
+ "path": "toggle/toggle/toggle.component.js",
109804
109804
  "declarations": [
109805
109805
  {
109806
109806
  "kind": "class",
109807
- "description": "It displays a toggle option within a `sbb-toggle`.",
109808
- "name": "SbbToggleOptionElement",
109807
+ "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
109808
+ "name": "SbbToggleElement",
109809
109809
  "slots": [
109810
109810
  {
109811
- "description": "Use the unnamed slot to add content to the label of the toggle option.",
109811
+ "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
109812
109812
  "name": ""
109813
- },
109814
- {
109815
- "description": "Slot used to render the `sbb-icon`.",
109816
- "name": "icon"
109817
109813
  }
109818
109814
  ],
109819
109815
  "members": [
@@ -109826,18 +109822,41 @@
109826
109822
  "privacy": "public",
109827
109823
  "static": true,
109828
109824
  "readonly": true,
109829
- "default": "'radio'"
109825
+ "default": "'radiogroup'"
109830
109826
  },
109831
109827
  {
109832
109828
  "kind": "field",
109833
- "name": "checked",
109829
+ "name": "events",
109830
+ "privacy": "public",
109831
+ "static": true,
109832
+ "readonly": true,
109833
+ "default": "{ change: 'change', }",
109834
+ "type": {
109835
+ "text": "{\n change: 'change',\n }"
109836
+ }
109837
+ },
109838
+ {
109839
+ "kind": "field",
109840
+ "name": "even",
109834
109841
  "type": {
109835
109842
  "text": "boolean"
109836
109843
  },
109837
109844
  "privacy": "public",
109838
109845
  "default": "false",
109839
- "description": "Whether the toggle-option is checked.",
109840
- "attribute": "checked",
109846
+ "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.",
109847
+ "attribute": "even",
109848
+ "reflects": true
109849
+ },
109850
+ {
109851
+ "kind": "field",
109852
+ "name": "size",
109853
+ "type": {
109854
+ "text": "'s' | 'm'"
109855
+ },
109856
+ "privacy": "public",
109857
+ "description": "Size variant, either m or s.",
109858
+ "default": "'m' / 's' (lean)",
109859
+ "attribute": "size",
109841
109860
  "reflects": true
109842
109861
  },
109843
109862
  {
@@ -109847,22 +109866,53 @@
109847
109866
  "text": "(T = string) | null"
109848
109867
  },
109849
109868
  "privacy": "public",
109850
- "default": "null",
109851
- "description": "Value of toggle-option.",
109852
- "attribute": "value"
109869
+ "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).",
109870
+ "attribute": "value",
109871
+ "inheritedFrom": {
109872
+ "name": "SbbFormAssociatedMixin",
109873
+ "module": "core/mixins/form-associated-mixin.js"
109874
+ }
109853
109875
  },
109854
109876
  {
109855
109877
  "kind": "field",
109856
- "name": "_toggle",
109878
+ "name": "_fallbackValue",
109857
109879
  "type": {
109858
- "text": "SbbToggleElement | null"
109880
+ "text": "T | null"
109859
109881
  },
109860
109882
  "privacy": "private",
109861
109883
  "default": "null"
109862
109884
  },
109885
+ {
109886
+ "kind": "field",
109887
+ "name": "options",
109888
+ "type": {
109889
+ "text": "SbbToggleOptionElement<T>[]"
109890
+ },
109891
+ "privacy": "public",
109892
+ "description": "The child instances of sbb-toggle-option as an array.",
109893
+ "readonly": true
109894
+ },
109863
109895
  {
109864
109896
  "kind": "method",
109865
- "name": "_uncheckOtherOptions",
109897
+ "name": "_readFormData",
109898
+ "privacy": "private",
109899
+ "return": {
109900
+ "type": {
109901
+ "text": "Promise<T>"
109902
+ }
109903
+ },
109904
+ "parameters": [
109905
+ {
109906
+ "name": "formData",
109907
+ "type": {
109908
+ "text": "FormData"
109909
+ }
109910
+ }
109911
+ ]
109912
+ },
109913
+ {
109914
+ "kind": "method",
109915
+ "name": "_updateToggle",
109866
109916
  "privacy": "private",
109867
109917
  "return": {
109868
109918
  "type": {
@@ -109872,7 +109922,25 @@
109872
109922
  },
109873
109923
  {
109874
109924
  "kind": "method",
109875
- "name": "_handleDisabledChange",
109925
+ "name": "_valueChanged",
109926
+ "privacy": "private",
109927
+ "return": {
109928
+ "type": {
109929
+ "text": "void"
109930
+ }
109931
+ },
109932
+ "parameters": [
109933
+ {
109934
+ "name": "value",
109935
+ "type": {
109936
+ "text": "T | null"
109937
+ }
109938
+ }
109939
+ ]
109940
+ },
109941
+ {
109942
+ "kind": "method",
109943
+ "name": "_updateDisabled",
109876
109944
  "privacy": "private",
109877
109945
  "return": {
109878
109946
  "type": {
@@ -109888,17 +109956,44 @@
109888
109956
  "type": {
109889
109957
  "text": "void"
109890
109958
  }
109891
- }
109959
+ },
109960
+ "description": "Called on user interaction (click or keyboard)"
109892
109961
  },
109893
109962
  {
109894
109963
  "kind": "method",
109895
- "name": "_verifyTabindex",
109964
+ "name": "_handleKeyDown",
109896
109965
  "privacy": "private",
109897
109966
  "return": {
109898
109967
  "type": {
109899
109968
  "text": "void"
109900
109969
  }
109901
- }
109970
+ },
109971
+ "parameters": [
109972
+ {
109973
+ "name": "evt",
109974
+ "type": {
109975
+ "text": "KeyboardEvent"
109976
+ }
109977
+ }
109978
+ ]
109979
+ },
109980
+ {
109981
+ "kind": "method",
109982
+ "name": "_selectAndFocusOption",
109983
+ "privacy": "private",
109984
+ "return": {
109985
+ "type": {
109986
+ "text": "void"
109987
+ }
109988
+ },
109989
+ "parameters": [
109990
+ {
109991
+ "name": "option",
109992
+ "type": {
109993
+ "text": "SbbToggleOptionElement<T> | undefined"
109994
+ }
109995
+ }
109996
+ ]
109902
109997
  },
109903
109998
  {
109904
109999
  "kind": "field",
@@ -109946,353 +110041,323 @@
109946
110041
  },
109947
110042
  {
109948
110043
  "kind": "field",
109949
- "name": "iconName",
110044
+ "name": "formAssociated",
109950
110045
  "type": {
109951
- "text": "string"
110046
+ "text": "boolean"
109952
110047
  },
109953
110048
  "privacy": "public",
109954
- "default": "''",
109955
- "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.",
109956
- "attribute": "icon-name",
110049
+ "static": true,
110050
+ "default": "true",
109957
110051
  "inheritedFrom": {
109958
- "name": "SbbIconNameMixin",
109959
- "module": "icon/icon-name-mixin.js"
110052
+ "name": "SbbFormAssociatedMixin",
110053
+ "module": "core/mixins/form-associated-mixin.js"
109960
110054
  }
109961
110055
  },
109962
110056
  {
109963
- "kind": "method",
109964
- "name": "renderIconSlot",
109965
- "privacy": "protected",
109966
- "return": {
109967
- "type": {
109968
- "text": "TemplateResult"
109969
- }
110057
+ "kind": "field",
110058
+ "name": "form",
110059
+ "type": {
110060
+ "text": "HTMLFormElement | null"
109970
110061
  },
109971
- "parameters": [
109972
- {
109973
- "name": "classname",
109974
- "optional": true,
109975
- "type": {
109976
- "text": "string"
109977
- }
109978
- }
109979
- ],
110062
+ "privacy": "public",
110063
+ "description": "Returns the form owner of this element.",
110064
+ "readonly": true,
109980
110065
  "inheritedFrom": {
109981
- "name": "SbbIconNameMixin",
109982
- "module": "icon/icon-name-mixin.js"
110066
+ "name": "SbbFormAssociatedMixin",
110067
+ "module": "core/mixins/form-associated-mixin.js"
109983
110068
  }
109984
110069
  },
109985
110070
  {
109986
- "kind": "method",
109987
- "name": "renderIconName",
109988
- "privacy": "protected",
109989
- "return": {
109990
- "type": {
109991
- "text": "string"
109992
- }
110071
+ "kind": "field",
110072
+ "name": "name",
110073
+ "privacy": "public",
110074
+ "description": "Name of the form element. Will be read from name attribute.",
110075
+ "type": {
110076
+ "text": "string"
109993
110077
  },
110078
+ "attribute": "name",
109994
110079
  "inheritedFrom": {
109995
- "name": "SbbIconNameMixin",
109996
- "module": "icon/icon-name-mixin.js"
110080
+ "name": "SbbFormAssociatedMixin",
110081
+ "module": "core/mixins/form-associated-mixin.js"
109997
110082
  }
109998
110083
  },
109999
110084
  {
110000
- "kind": "method",
110001
- "name": "_renderIconName",
110002
- "privacy": "private",
110003
- "return": {
110004
- "type": {
110005
- "text": "string"
110006
- }
110085
+ "kind": "field",
110086
+ "name": "validity",
110087
+ "type": {
110088
+ "text": "ValidityState"
110007
110089
  },
110090
+ "privacy": "public",
110091
+ "description": "Returns the ValidityState object for this element.",
110092
+ "readonly": true,
110008
110093
  "inheritedFrom": {
110009
- "name": "SbbIconNameMixin",
110010
- "module": "icon/icon-name-mixin.js"
110094
+ "name": "SbbFormAssociatedMixin",
110095
+ "module": "core/mixins/form-associated-mixin.js"
110011
110096
  }
110012
110097
  },
110013
110098
  {
110014
- "kind": "method",
110015
- "name": "toggleState",
110016
- "privacy": "protected",
110017
- "return": {
110018
- "type": {
110019
- "text": "void"
110020
- }
110099
+ "kind": "field",
110100
+ "name": "validationMessage",
110101
+ "type": {
110102
+ "text": "string"
110021
110103
  },
110022
- "parameters": [
110023
- {
110024
- "name": "value",
110025
- "type": {
110026
- "text": "string"
110027
- }
110028
- },
110029
- {
110030
- "name": "force",
110031
- "optional": true,
110032
- "type": {
110033
- "text": "boolean"
110034
- }
110035
- }
110036
- ],
110104
+ "privacy": "public",
110105
+ "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.",
110106
+ "readonly": true,
110037
110107
  "inheritedFrom": {
110038
- "name": "SbbElementInternalsMixin",
110039
- "module": "core/mixins/element-internals-mixin.js"
110108
+ "name": "SbbFormAssociatedMixin",
110109
+ "module": "core/mixins/form-associated-mixin.js"
110040
110110
  }
110041
- }
110042
- ],
110043
- "attributes": [
110111
+ },
110044
110112
  {
110045
- "name": "checked",
110113
+ "kind": "field",
110114
+ "name": "willValidate",
110046
110115
  "type": {
110047
110116
  "text": "boolean"
110048
110117
  },
110049
- "default": "false",
110050
- "description": "Whether the toggle-option is checked.",
110051
- "fieldName": "checked"
110118
+ "privacy": "public",
110119
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
110120
+ "readonly": true,
110121
+ "inheritedFrom": {
110122
+ "name": "SbbFormAssociatedMixin",
110123
+ "module": "core/mixins/form-associated-mixin.js"
110124
+ }
110052
110125
  },
110053
110126
  {
110054
- "name": "value",
110055
- "type": {
110056
- "text": "T | null"
110057
- },
110058
- "default": "null",
110059
- "description": "Value of toggle-option.",
110060
- "fieldName": "value"
110127
+ "kind": "field",
110128
+ "name": "_validityStates",
110129
+ "privacy": "private",
110130
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
110131
+ "inheritedFrom": {
110132
+ "name": "SbbFormAssociatedMixin",
110133
+ "module": "core/mixins/form-associated-mixin.js"
110134
+ }
110061
110135
  },
110062
110136
  {
110063
- "name": "disabled",
110064
- "description": "Whether the component is disabled.",
110065
- "default": "false",
110137
+ "kind": "field",
110138
+ "name": "formDisabled",
110066
110139
  "type": {
110067
110140
  "text": "boolean"
110068
110141
  },
110069
- "fieldName": "disabled",
110142
+ "privacy": "protected",
110143
+ "default": "false",
110144
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
110070
110145
  "inheritedFrom": {
110071
- "name": "SbbDisabledMixin",
110072
- "module": "core/mixins/disabled-mixin.js"
110146
+ "name": "SbbFormAssociatedMixin",
110147
+ "module": "core/mixins/form-associated-mixin.js"
110073
110148
  }
110074
110149
  },
110075
110150
  {
110076
- "name": "icon-name",
110077
- "type": {
110078
- "text": "string"
110151
+ "kind": "method",
110152
+ "name": "checkValidity",
110153
+ "privacy": "public",
110154
+ "return": {
110155
+ "type": {
110156
+ "text": "boolean"
110157
+ }
110079
110158
  },
110080
- "default": "''",
110081
- "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.",
110082
- "fieldName": "iconName",
110159
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
110083
110160
  "inheritedFrom": {
110084
- "name": "SbbIconNameMixin",
110085
- "module": "icon/icon-name-mixin.js"
110161
+ "name": "SbbFormAssociatedMixin",
110162
+ "module": "core/mixins/form-associated-mixin.js"
110086
110163
  }
110087
- }
110088
- ],
110089
- "mixins": [
110090
- {
110091
- "name": "SbbDisabledMixin",
110092
- "module": "core/mixins.js"
110093
- },
110094
- {
110095
- "name": "SbbIconNameMixin",
110096
- "module": "icon.js"
110097
- },
110098
- {
110099
- "name": "SbbElementInternalsMixin",
110100
- "module": "core/mixins.js"
110101
- }
110102
- ],
110103
- "superclass": {
110104
- "name": "LitElement",
110105
- "package": "lit"
110106
- },
110107
- "classGenerics": "T = string",
110108
- "tagName": "sbb-toggle-option",
110109
- "customElement": true
110110
- }
110111
- ],
110112
- "exports": [
110113
- {
110114
- "kind": "js",
110115
- "name": "SbbToggleOptionElement",
110116
- "declaration": {
110117
- "name": "SbbToggleOptionElement",
110118
- "module": "toggle/toggle-option/toggle-option.component.js"
110119
- }
110120
- },
110121
- {
110122
- "kind": "custom-element-definition",
110123
- "name": "sbb-toggle-option",
110124
- "declaration": {
110125
- "name": "SbbToggleOptionElement",
110126
- "module": "toggle/toggle-option/toggle-option.component.js"
110127
- }
110128
- }
110129
- ]
110130
- },
110131
- {
110132
- "kind": "javascript-module",
110133
- "path": "toggle/toggle/toggle.component.js",
110134
- "declarations": [
110135
- {
110136
- "kind": "class",
110137
- "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
110138
- "name": "SbbToggleElement",
110139
- "slots": [
110140
- {
110141
- "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
110142
- "name": ""
110143
- }
110144
- ],
110145
- "members": [
110146
- {
110147
- "kind": "field",
110148
- "name": "role",
110149
- "type": {
110150
- "text": "string"
110151
- },
110152
- "privacy": "public",
110153
- "static": true,
110154
- "readonly": true,
110155
- "default": "'radiogroup'"
110156
110164
  },
110157
110165
  {
110158
- "kind": "field",
110159
- "name": "events",
110166
+ "kind": "method",
110167
+ "name": "reportValidity",
110160
110168
  "privacy": "public",
110161
- "static": true,
110162
- "readonly": true,
110163
- "default": "{ change: 'change', }",
110164
- "type": {
110165
- "text": "{\n change: 'change',\n }"
110169
+ "return": {
110170
+ "type": {
110171
+ "text": "boolean"
110172
+ }
110173
+ },
110174
+ "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.",
110175
+ "inheritedFrom": {
110176
+ "name": "SbbFormAssociatedMixin",
110177
+ "module": "core/mixins/form-associated-mixin.js"
110166
110178
  }
110167
110179
  },
110168
110180
  {
110169
- "kind": "field",
110170
- "name": "even",
110171
- "type": {
110172
- "text": "boolean"
110173
- },
110181
+ "kind": "method",
110182
+ "name": "setCustomValidity",
110174
110183
  "privacy": "public",
110175
- "default": "false",
110176
- "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.",
110177
- "attribute": "even",
110178
- "reflects": true
110184
+ "return": {
110185
+ "type": {
110186
+ "text": "void"
110187
+ }
110188
+ },
110189
+ "parameters": [
110190
+ {
110191
+ "name": "message",
110192
+ "type": {
110193
+ "text": "string"
110194
+ }
110195
+ }
110196
+ ],
110197
+ "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.",
110198
+ "inheritedFrom": {
110199
+ "name": "SbbFormAssociatedMixin",
110200
+ "module": "core/mixins/form-associated-mixin.js"
110201
+ }
110179
110202
  },
110180
110203
  {
110181
- "kind": "field",
110182
- "name": "size",
110183
- "type": {
110184
- "text": "'s' | 'm'"
110204
+ "kind": "method",
110205
+ "name": "_hasDisabledAncestor",
110206
+ "privacy": "private",
110207
+ "return": {
110208
+ "type": {
110209
+ "text": "boolean"
110210
+ }
110185
110211
  },
110186
- "privacy": "public",
110187
- "description": "Size variant, either m or s.",
110188
- "default": "'m' / 's' (lean)",
110189
- "attribute": "size",
110190
- "reflects": true
110212
+ "inheritedFrom": {
110213
+ "name": "SbbFormAssociatedMixin",
110214
+ "module": "core/mixins/form-associated-mixin.js"
110215
+ }
110191
110216
  },
110192
110217
  {
110193
- "kind": "field",
110194
- "name": "value",
110195
- "type": {
110196
- "text": "(T = string) | null"
110218
+ "kind": "method",
110219
+ "name": "updateFormValue",
110220
+ "privacy": "protected",
110221
+ "return": {
110222
+ "type": {
110223
+ "text": "void"
110224
+ }
110197
110225
  },
110198
- "privacy": "public",
110199
- "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).",
110200
- "attribute": "value",
110226
+ "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",
110201
110227
  "inheritedFrom": {
110202
110228
  "name": "SbbFormAssociatedMixin",
110203
110229
  "module": "core/mixins/form-associated-mixin.js"
110204
110230
  }
110205
110231
  },
110206
110232
  {
110207
- "kind": "field",
110208
- "name": "_fallbackValue",
110209
- "type": {
110210
- "text": "T | null"
110233
+ "kind": "method",
110234
+ "name": "formState",
110235
+ "privacy": "protected",
110236
+ "return": {
110237
+ "type": {
110238
+ "text": "FormRestoreState"
110239
+ }
110211
110240
  },
110212
- "privacy": "private",
110213
- "default": "null"
110241
+ "inheritedFrom": {
110242
+ "name": "SbbFormAssociatedMixin",
110243
+ "module": "core/mixins/form-associated-mixin.js"
110244
+ }
110214
110245
  },
110215
110246
  {
110216
- "kind": "field",
110217
- "name": "options",
110218
- "type": {
110219
- "text": "SbbToggleOptionElement<T>[]"
110247
+ "kind": "method",
110248
+ "name": "setValidityFlag",
110249
+ "privacy": "protected",
110250
+ "return": {
110251
+ "type": {
110252
+ "text": "void"
110253
+ }
110220
110254
  },
110221
- "privacy": "public",
110222
- "description": "The child instances of sbb-toggle-option as an array.",
110223
- "readonly": true
110255
+ "parameters": [
110256
+ {
110257
+ "name": "flag",
110258
+ "type": {
110259
+ "text": "T"
110260
+ }
110261
+ },
110262
+ {
110263
+ "name": "message",
110264
+ "type": {
110265
+ "text": "string"
110266
+ }
110267
+ },
110268
+ {
110269
+ "name": "flagValue",
110270
+ "optional": true,
110271
+ "type": {
110272
+ "text": "ValidityStateFlags[T]"
110273
+ }
110274
+ }
110275
+ ],
110276
+ "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).",
110277
+ "inheritedFrom": {
110278
+ "name": "SbbFormAssociatedMixin",
110279
+ "module": "core/mixins/form-associated-mixin.js"
110280
+ }
110224
110281
  },
110225
110282
  {
110226
110283
  "kind": "method",
110227
- "name": "_readFormData",
110228
- "privacy": "private",
110284
+ "name": "removeValidityFlag",
110285
+ "privacy": "protected",
110229
110286
  "return": {
110230
110287
  "type": {
110231
- "text": "Promise<T>"
110288
+ "text": "void"
110232
110289
  }
110233
110290
  },
110234
110291
  "parameters": [
110235
110292
  {
110236
- "name": "formData",
110293
+ "name": "flag",
110237
110294
  "type": {
110238
- "text": "FormData"
110295
+ "text": "T"
110239
110296
  }
110240
110297
  }
110241
- ]
110298
+ ],
110299
+ "description": "Removes the validity state flag entry and updates validity state.",
110300
+ "inheritedFrom": {
110301
+ "name": "SbbFormAssociatedMixin",
110302
+ "module": "core/mixins/form-associated-mixin.js"
110303
+ }
110242
110304
  },
110243
110305
  {
110244
110306
  "kind": "method",
110245
- "name": "_updateToggle",
110246
- "privacy": "private",
110307
+ "name": "validate",
110308
+ "privacy": "protected",
110247
110309
  "return": {
110248
110310
  "type": {
110249
110311
  "text": "void"
110250
110312
  }
110313
+ },
110314
+ "description": "To be called whenever the current element needs to be validated.",
110315
+ "inheritedFrom": {
110316
+ "name": "SbbFormAssociatedMixin",
110317
+ "module": "core/mixins/form-associated-mixin.js"
110251
110318
  }
110252
110319
  },
110253
110320
  {
110254
110321
  "kind": "method",
110255
- "name": "_valueChanged",
110256
- "privacy": "private",
110322
+ "name": "shouldValidate",
110323
+ "privacy": "protected",
110257
110324
  "return": {
110258
110325
  "type": {
110259
- "text": "void"
110326
+ "text": "boolean"
110260
110327
  }
110261
110328
  },
110262
110329
  "parameters": [
110263
110330
  {
110264
- "name": "value",
110331
+ "name": "name",
110265
110332
  "type": {
110266
- "text": "T | null"
110333
+ "text": "PropertyKey | undefined"
110267
110334
  }
110268
110335
  }
110269
- ]
110270
- },
110271
- {
110272
- "kind": "method",
110273
- "name": "_updateDisabled",
110274
- "privacy": "private",
110275
- "return": {
110276
- "type": {
110277
- "text": "void"
110278
- }
110336
+ ],
110337
+ "description": "Whether validation should be run on a property change with the given name.",
110338
+ "inheritedFrom": {
110339
+ "name": "SbbFormAssociatedMixin",
110340
+ "module": "core/mixins/form-associated-mixin.js"
110279
110341
  }
110280
110342
  },
110281
110343
  {
110282
110344
  "kind": "method",
110283
- "name": "_handleInput",
110345
+ "name": "_setInternalValidity",
110284
110346
  "privacy": "private",
110285
110347
  "return": {
110286
110348
  "type": {
110287
110349
  "text": "void"
110288
110350
  }
110289
110351
  },
110290
- "description": "Called on user interaction (click or keyboard)"
110352
+ "inheritedFrom": {
110353
+ "name": "SbbFormAssociatedMixin",
110354
+ "module": "core/mixins/form-associated-mixin.js"
110355
+ }
110291
110356
  },
110292
110357
  {
110293
110358
  "kind": "method",
110294
- "name": "_handleKeyDown",
110295
- "privacy": "private",
110359
+ "name": "toggleState",
110360
+ "privacy": "protected",
110296
110361
  "return": {
110297
110362
  "type": {
110298
110363
  "text": "void"
@@ -110300,388 +110365,339 @@
110300
110365
  },
110301
110366
  "parameters": [
110302
110367
  {
110303
- "name": "evt",
110368
+ "name": "value",
110304
110369
  "type": {
110305
- "text": "KeyboardEvent"
110370
+ "text": "string"
110306
110371
  }
110307
- }
110308
- ]
110309
- },
110310
- {
110311
- "kind": "method",
110312
- "name": "_selectAndFocusOption",
110313
- "privacy": "private",
110314
- "return": {
110315
- "type": {
110316
- "text": "void"
110317
- }
110318
- },
110319
- "parameters": [
110372
+ },
110320
110373
  {
110321
- "name": "option",
110374
+ "name": "force",
110375
+ "optional": true,
110322
110376
  "type": {
110323
- "text": "SbbToggleOptionElement<T> | undefined"
110377
+ "text": "boolean"
110324
110378
  }
110325
110379
  }
110326
- ]
110327
- },
110380
+ ],
110381
+ "inheritedFrom": {
110382
+ "name": "SbbElementInternalsMixin",
110383
+ "module": "core/mixins/element-internals-mixin.js"
110384
+ }
110385
+ }
110386
+ ],
110387
+ "events": [
110328
110388
  {
110329
- "kind": "field",
110330
- "name": "disabled",
110331
- "privacy": "public",
110332
- "description": "Whether the component is disabled.",
110333
- "default": "false",
110389
+ "name": "change",
110334
110390
  "type": {
110335
- "text": "boolean"
110391
+ "text": "Event"
110336
110392
  },
110337
- "attribute": "disabled",
110338
- "reflects": true,
110339
- "inheritedFrom": {
110340
- "name": "SbbDisabledMixin",
110341
- "module": "core/mixins/disabled-mixin.js"
110342
- }
110343
- },
110393
+ "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."
110394
+ }
110395
+ ],
110396
+ "attributes": [
110344
110397
  {
110345
- "kind": "field",
110346
- "name": "#disabled",
110347
- "privacy": "private",
110398
+ "name": "even",
110348
110399
  "type": {
110349
110400
  "text": "boolean"
110350
110401
  },
110351
110402
  "default": "false",
110352
- "inheritedFrom": {
110353
- "name": "SbbDisabledMixin",
110354
- "module": "core/mixins/disabled-mixin.js"
110355
- }
110403
+ "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.",
110404
+ "fieldName": "even"
110356
110405
  },
110357
110406
  {
110358
- "kind": "method",
110359
- "name": "isDisabledExternally",
110360
- "privacy": "protected",
110361
- "return": {
110362
- "type": {
110363
- "text": "boolean"
110364
- }
110407
+ "name": "size",
110408
+ "type": {
110409
+ "text": "'s' | 'm'"
110365
110410
  },
110366
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
110367
- "inheritedFrom": {
110368
- "name": "SbbDisabledMixin",
110369
- "module": "core/mixins/disabled-mixin.js"
110370
- }
110411
+ "description": "Size variant, either m or s.",
110412
+ "default": "'m' / 's' (lean)",
110413
+ "fieldName": "size"
110371
110414
  },
110372
110415
  {
110373
- "kind": "field",
110374
- "name": "formAssociated",
110416
+ "name": "value",
110417
+ "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).",
110375
110418
  "type": {
110376
- "text": "boolean"
110419
+ "text": "T | null"
110377
110420
  },
110378
- "privacy": "public",
110379
- "static": true,
110380
- "default": "true",
110381
- "inheritedFrom": {
110382
- "name": "SbbFormAssociatedMixin",
110383
- "module": "core/mixins/form-associated-mixin.js"
110384
- }
110421
+ "fieldName": "value"
110385
110422
  },
110386
110423
  {
110387
- "kind": "field",
110388
- "name": "form",
110424
+ "name": "disabled",
110425
+ "description": "Whether the component is disabled.",
110426
+ "default": "false",
110389
110427
  "type": {
110390
- "text": "HTMLFormElement | null"
110428
+ "text": "boolean"
110391
110429
  },
110392
- "privacy": "public",
110393
- "description": "Returns the form owner of this element.",
110394
- "readonly": true,
110430
+ "fieldName": "disabled",
110395
110431
  "inheritedFrom": {
110396
- "name": "SbbFormAssociatedMixin",
110397
- "module": "core/mixins/form-associated-mixin.js"
110432
+ "name": "SbbDisabledMixin",
110433
+ "module": "core/mixins/disabled-mixin.js"
110398
110434
  }
110399
110435
  },
110400
110436
  {
110401
- "kind": "field",
110402
110437
  "name": "name",
110403
- "privacy": "public",
110404
110438
  "description": "Name of the form element. Will be read from name attribute.",
110405
110439
  "type": {
110406
110440
  "text": "string"
110407
110441
  },
110408
- "attribute": "name",
110442
+ "fieldName": "name",
110409
110443
  "inheritedFrom": {
110410
110444
  "name": "SbbFormAssociatedMixin",
110411
110445
  "module": "core/mixins/form-associated-mixin.js"
110412
110446
  }
110447
+ }
110448
+ ],
110449
+ "mixins": [
110450
+ {
110451
+ "name": "SbbDisabledMixin",
110452
+ "module": "core/mixins.js"
110413
110453
  },
110414
110454
  {
110415
- "kind": "field",
110416
- "name": "validity",
110417
- "type": {
110418
- "text": "ValidityState"
110419
- },
110420
- "privacy": "public",
110421
- "description": "Returns the ValidityState object for this element.",
110422
- "readonly": true,
110423
- "inheritedFrom": {
110424
- "name": "SbbFormAssociatedMixin",
110425
- "module": "core/mixins/form-associated-mixin.js"
110426
- }
110455
+ "name": "SbbFormAssociatedMixin",
110456
+ "module": "core/mixins.js"
110457
+ },
110458
+ {
110459
+ "name": "SbbElementInternalsMixin",
110460
+ "module": "core/mixins.js"
110461
+ }
110462
+ ],
110463
+ "superclass": {
110464
+ "name": "LitElement",
110465
+ "package": "lit"
110466
+ },
110467
+ "classGenerics": "T = string",
110468
+ "tagName": "sbb-toggle",
110469
+ "customElement": true
110470
+ }
110471
+ ],
110472
+ "exports": [
110473
+ {
110474
+ "kind": "js",
110475
+ "name": "SbbToggleElement",
110476
+ "declaration": {
110477
+ "name": "SbbToggleElement",
110478
+ "module": "toggle/toggle/toggle.component.js"
110479
+ }
110480
+ },
110481
+ {
110482
+ "kind": "custom-element-definition",
110483
+ "name": "sbb-toggle",
110484
+ "declaration": {
110485
+ "name": "SbbToggleElement",
110486
+ "module": "toggle/toggle/toggle.component.js"
110487
+ }
110488
+ }
110489
+ ]
110490
+ },
110491
+ {
110492
+ "kind": "javascript-module",
110493
+ "path": "toggle/toggle-option/toggle-option.component.js",
110494
+ "declarations": [
110495
+ {
110496
+ "kind": "class",
110497
+ "description": "It displays a toggle option within a `sbb-toggle`.",
110498
+ "name": "SbbToggleOptionElement",
110499
+ "slots": [
110500
+ {
110501
+ "description": "Use the unnamed slot to add content to the label of the toggle option.",
110502
+ "name": ""
110427
110503
  },
110504
+ {
110505
+ "description": "Slot used to render the `sbb-icon`.",
110506
+ "name": "icon"
110507
+ }
110508
+ ],
110509
+ "members": [
110428
110510
  {
110429
110511
  "kind": "field",
110430
- "name": "validationMessage",
110512
+ "name": "role",
110431
110513
  "type": {
110432
110514
  "text": "string"
110433
110515
  },
110434
110516
  "privacy": "public",
110435
- "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.",
110517
+ "static": true,
110436
110518
  "readonly": true,
110437
- "inheritedFrom": {
110438
- "name": "SbbFormAssociatedMixin",
110439
- "module": "core/mixins/form-associated-mixin.js"
110440
- }
110519
+ "default": "'radio'"
110441
110520
  },
110442
110521
  {
110443
110522
  "kind": "field",
110444
- "name": "willValidate",
110523
+ "name": "checked",
110445
110524
  "type": {
110446
110525
  "text": "boolean"
110447
110526
  },
110448
110527
  "privacy": "public",
110449
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
110450
- "readonly": true,
110451
- "inheritedFrom": {
110452
- "name": "SbbFormAssociatedMixin",
110453
- "module": "core/mixins/form-associated-mixin.js"
110454
- }
110528
+ "default": "false",
110529
+ "description": "Whether the toggle-option is checked.",
110530
+ "attribute": "checked",
110531
+ "reflects": true
110455
110532
  },
110456
110533
  {
110457
110534
  "kind": "field",
110458
- "name": "_validityStates",
110459
- "privacy": "private",
110460
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
110461
- "inheritedFrom": {
110462
- "name": "SbbFormAssociatedMixin",
110463
- "module": "core/mixins/form-associated-mixin.js"
110464
- }
110535
+ "name": "value",
110536
+ "type": {
110537
+ "text": "(T = string) | null"
110538
+ },
110539
+ "privacy": "public",
110540
+ "default": "null",
110541
+ "description": "Value of toggle-option.",
110542
+ "attribute": "value"
110465
110543
  },
110466
110544
  {
110467
110545
  "kind": "field",
110468
- "name": "formDisabled",
110546
+ "name": "_toggle",
110469
110547
  "type": {
110470
- "text": "boolean"
110548
+ "text": "SbbToggleElement | null"
110471
110549
  },
110472
- "privacy": "protected",
110473
- "default": "false",
110474
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
110475
- "inheritedFrom": {
110476
- "name": "SbbFormAssociatedMixin",
110477
- "module": "core/mixins/form-associated-mixin.js"
110478
- }
110550
+ "privacy": "private",
110551
+ "default": "null"
110479
110552
  },
110480
110553
  {
110481
110554
  "kind": "method",
110482
- "name": "checkValidity",
110483
- "privacy": "public",
110555
+ "name": "_uncheckOtherOptions",
110556
+ "privacy": "private",
110484
110557
  "return": {
110485
110558
  "type": {
110486
- "text": "boolean"
110559
+ "text": "void"
110487
110560
  }
110488
- },
110489
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
110490
- "inheritedFrom": {
110491
- "name": "SbbFormAssociatedMixin",
110492
- "module": "core/mixins/form-associated-mixin.js"
110493
110561
  }
110494
110562
  },
110495
110563
  {
110496
110564
  "kind": "method",
110497
- "name": "reportValidity",
110498
- "privacy": "public",
110565
+ "name": "_handleDisabledChange",
110566
+ "privacy": "private",
110499
110567
  "return": {
110500
110568
  "type": {
110501
- "text": "boolean"
110569
+ "text": "void"
110502
110570
  }
110503
- },
110504
- "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.",
110505
- "inheritedFrom": {
110506
- "name": "SbbFormAssociatedMixin",
110507
- "module": "core/mixins/form-associated-mixin.js"
110508
110571
  }
110509
110572
  },
110510
110573
  {
110511
110574
  "kind": "method",
110512
- "name": "setCustomValidity",
110513
- "privacy": "public",
110575
+ "name": "_handleInput",
110576
+ "privacy": "private",
110514
110577
  "return": {
110515
110578
  "type": {
110516
110579
  "text": "void"
110517
110580
  }
110518
- },
110519
- "parameters": [
110520
- {
110521
- "name": "message",
110522
- "type": {
110523
- "text": "string"
110524
- }
110525
- }
110526
- ],
110527
- "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.",
110528
- "inheritedFrom": {
110529
- "name": "SbbFormAssociatedMixin",
110530
- "module": "core/mixins/form-associated-mixin.js"
110531
110581
  }
110532
110582
  },
110533
110583
  {
110534
110584
  "kind": "method",
110535
- "name": "_hasDisabledAncestor",
110585
+ "name": "_verifyTabindex",
110536
110586
  "privacy": "private",
110537
110587
  "return": {
110538
110588
  "type": {
110539
- "text": "boolean"
110589
+ "text": "void"
110540
110590
  }
110591
+ }
110592
+ },
110593
+ {
110594
+ "kind": "field",
110595
+ "name": "disabled",
110596
+ "privacy": "public",
110597
+ "description": "Whether the component is disabled.",
110598
+ "default": "false",
110599
+ "type": {
110600
+ "text": "boolean"
110541
110601
  },
110602
+ "attribute": "disabled",
110603
+ "reflects": true,
110542
110604
  "inheritedFrom": {
110543
- "name": "SbbFormAssociatedMixin",
110544
- "module": "core/mixins/form-associated-mixin.js"
110605
+ "name": "SbbDisabledMixin",
110606
+ "module": "core/mixins/disabled-mixin.js"
110545
110607
  }
110546
110608
  },
110547
110609
  {
110548
- "kind": "method",
110549
- "name": "updateFormValue",
110550
- "privacy": "protected",
110551
- "return": {
110552
- "type": {
110553
- "text": "void"
110554
- }
110610
+ "kind": "field",
110611
+ "name": "#disabled",
110612
+ "privacy": "private",
110613
+ "type": {
110614
+ "text": "boolean"
110555
110615
  },
110556
- "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",
110616
+ "default": "false",
110557
110617
  "inheritedFrom": {
110558
- "name": "SbbFormAssociatedMixin",
110559
- "module": "core/mixins/form-associated-mixin.js"
110618
+ "name": "SbbDisabledMixin",
110619
+ "module": "core/mixins/disabled-mixin.js"
110560
110620
  }
110561
110621
  },
110562
110622
  {
110563
110623
  "kind": "method",
110564
- "name": "formState",
110624
+ "name": "isDisabledExternally",
110565
110625
  "privacy": "protected",
110566
110626
  "return": {
110567
110627
  "type": {
110568
- "text": "FormRestoreState"
110628
+ "text": "boolean"
110569
110629
  }
110570
110630
  },
110631
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
110571
110632
  "inheritedFrom": {
110572
- "name": "SbbFormAssociatedMixin",
110573
- "module": "core/mixins/form-associated-mixin.js"
110633
+ "name": "SbbDisabledMixin",
110634
+ "module": "core/mixins/disabled-mixin.js"
110574
110635
  }
110575
110636
  },
110576
110637
  {
110577
- "kind": "method",
110578
- "name": "setValidityFlag",
110579
- "privacy": "protected",
110580
- "return": {
110581
- "type": {
110582
- "text": "void"
110583
- }
110638
+ "kind": "field",
110639
+ "name": "iconName",
110640
+ "type": {
110641
+ "text": "string"
110584
110642
  },
110585
- "parameters": [
110586
- {
110587
- "name": "flag",
110588
- "type": {
110589
- "text": "T"
110590
- }
110591
- },
110592
- {
110593
- "name": "message",
110594
- "type": {
110595
- "text": "string"
110596
- }
110597
- },
110598
- {
110599
- "name": "flagValue",
110600
- "optional": true,
110601
- "type": {
110602
- "text": "ValidityStateFlags[T]"
110603
- }
110604
- }
110605
- ],
110606
- "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).",
110643
+ "privacy": "public",
110644
+ "default": "''",
110645
+ "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.",
110646
+ "attribute": "icon-name",
110607
110647
  "inheritedFrom": {
110608
- "name": "SbbFormAssociatedMixin",
110609
- "module": "core/mixins/form-associated-mixin.js"
110648
+ "name": "SbbIconNameMixin",
110649
+ "module": "icon/icon-name-mixin.js"
110610
110650
  }
110611
110651
  },
110612
110652
  {
110613
110653
  "kind": "method",
110614
- "name": "removeValidityFlag",
110654
+ "name": "renderIconSlot",
110615
110655
  "privacy": "protected",
110616
110656
  "return": {
110617
110657
  "type": {
110618
- "text": "void"
110658
+ "text": "TemplateResult"
110619
110659
  }
110620
110660
  },
110621
110661
  "parameters": [
110622
110662
  {
110623
- "name": "flag",
110663
+ "name": "classname",
110664
+ "optional": true,
110624
110665
  "type": {
110625
- "text": "T"
110666
+ "text": "string"
110626
110667
  }
110627
110668
  }
110628
110669
  ],
110629
- "description": "Removes the validity state flag entry and updates validity state.",
110630
- "inheritedFrom": {
110631
- "name": "SbbFormAssociatedMixin",
110632
- "module": "core/mixins/form-associated-mixin.js"
110633
- }
110634
- },
110635
- {
110636
- "kind": "method",
110637
- "name": "validate",
110638
- "privacy": "protected",
110639
- "return": {
110640
- "type": {
110641
- "text": "void"
110642
- }
110643
- },
110644
- "description": "To be called whenever the current element needs to be validated.",
110645
110670
  "inheritedFrom": {
110646
- "name": "SbbFormAssociatedMixin",
110647
- "module": "core/mixins/form-associated-mixin.js"
110671
+ "name": "SbbIconNameMixin",
110672
+ "module": "icon/icon-name-mixin.js"
110648
110673
  }
110649
110674
  },
110650
110675
  {
110651
110676
  "kind": "method",
110652
- "name": "shouldValidate",
110677
+ "name": "renderIconName",
110653
110678
  "privacy": "protected",
110654
110679
  "return": {
110655
110680
  "type": {
110656
- "text": "boolean"
110681
+ "text": "string"
110657
110682
  }
110658
110683
  },
110659
- "parameters": [
110660
- {
110661
- "name": "name",
110662
- "type": {
110663
- "text": "PropertyKey | undefined"
110664
- }
110665
- }
110666
- ],
110667
- "description": "Whether validation should be run on a property change with the given name.",
110668
110684
  "inheritedFrom": {
110669
- "name": "SbbFormAssociatedMixin",
110670
- "module": "core/mixins/form-associated-mixin.js"
110685
+ "name": "SbbIconNameMixin",
110686
+ "module": "icon/icon-name-mixin.js"
110671
110687
  }
110672
110688
  },
110673
110689
  {
110674
110690
  "kind": "method",
110675
- "name": "_setInternalValidity",
110691
+ "name": "_renderIconName",
110676
110692
  "privacy": "private",
110677
110693
  "return": {
110678
110694
  "type": {
110679
- "text": "void"
110695
+ "text": "string"
110680
110696
  }
110681
110697
  },
110682
110698
  "inheritedFrom": {
110683
- "name": "SbbFormAssociatedMixin",
110684
- "module": "core/mixins/form-associated-mixin.js"
110699
+ "name": "SbbIconNameMixin",
110700
+ "module": "icon/icon-name-mixin.js"
110685
110701
  }
110686
110702
  },
110687
110703
  {
@@ -110714,40 +110730,23 @@
110714
110730
  }
110715
110731
  }
110716
110732
  ],
110717
- "events": [
110718
- {
110719
- "name": "change",
110720
- "type": {
110721
- "text": "Event"
110722
- },
110723
- "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."
110724
- }
110725
- ],
110726
110733
  "attributes": [
110727
110734
  {
110728
- "name": "even",
110735
+ "name": "checked",
110729
110736
  "type": {
110730
110737
  "text": "boolean"
110731
110738
  },
110732
110739
  "default": "false",
110733
- "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.",
110734
- "fieldName": "even"
110735
- },
110736
- {
110737
- "name": "size",
110738
- "type": {
110739
- "text": "'s' | 'm'"
110740
- },
110741
- "description": "Size variant, either m or s.",
110742
- "default": "'m' / 's' (lean)",
110743
- "fieldName": "size"
110740
+ "description": "Whether the toggle-option is checked.",
110741
+ "fieldName": "checked"
110744
110742
  },
110745
110743
  {
110746
110744
  "name": "value",
110747
- "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).",
110748
110745
  "type": {
110749
110746
  "text": "T | null"
110750
110747
  },
110748
+ "default": "null",
110749
+ "description": "Value of toggle-option.",
110751
110750
  "fieldName": "value"
110752
110751
  },
110753
110752
  {
@@ -110764,15 +110763,16 @@
110764
110763
  }
110765
110764
  },
110766
110765
  {
110767
- "name": "name",
110768
- "description": "Name of the form element. Will be read from name attribute.",
110766
+ "name": "icon-name",
110769
110767
  "type": {
110770
110768
  "text": "string"
110771
110769
  },
110772
- "fieldName": "name",
110770
+ "default": "''",
110771
+ "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.",
110772
+ "fieldName": "iconName",
110773
110773
  "inheritedFrom": {
110774
- "name": "SbbFormAssociatedMixin",
110775
- "module": "core/mixins/form-associated-mixin.js"
110774
+ "name": "SbbIconNameMixin",
110775
+ "module": "icon/icon-name-mixin.js"
110776
110776
  }
110777
110777
  }
110778
110778
  ],
@@ -110782,8 +110782,8 @@
110782
110782
  "module": "core/mixins.js"
110783
110783
  },
110784
110784
  {
110785
- "name": "SbbFormAssociatedMixin",
110786
- "module": "core/mixins.js"
110785
+ "name": "SbbIconNameMixin",
110786
+ "module": "icon.js"
110787
110787
  },
110788
110788
  {
110789
110789
  "name": "SbbElementInternalsMixin",
@@ -110795,25 +110795,25 @@
110795
110795
  "package": "lit"
110796
110796
  },
110797
110797
  "classGenerics": "T = string",
110798
- "tagName": "sbb-toggle",
110798
+ "tagName": "sbb-toggle-option",
110799
110799
  "customElement": true
110800
110800
  }
110801
110801
  ],
110802
110802
  "exports": [
110803
110803
  {
110804
110804
  "kind": "js",
110805
- "name": "SbbToggleElement",
110805
+ "name": "SbbToggleOptionElement",
110806
110806
  "declaration": {
110807
- "name": "SbbToggleElement",
110808
- "module": "toggle/toggle/toggle.component.js"
110807
+ "name": "SbbToggleOptionElement",
110808
+ "module": "toggle/toggle-option/toggle-option.component.js"
110809
110809
  }
110810
110810
  },
110811
110811
  {
110812
110812
  "kind": "custom-element-definition",
110813
- "name": "sbb-toggle",
110813
+ "name": "sbb-toggle-option",
110814
110814
  "declaration": {
110815
- "name": "SbbToggleElement",
110816
- "module": "toggle/toggle/toggle.component.js"
110815
+ "name": "SbbToggleOptionElement",
110816
+ "module": "toggle/toggle-option/toggle-option.component.js"
110817
110817
  }
110818
110818
  }
110819
110819
  ]