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

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