@sbb-esta/lyne-elements-dev 4.13.0-dev.1778852796 → 4.13.0-dev.1778950703

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 +970 -970
  2. package/package.json +2 -2
@@ -77919,6 +77919,26 @@
77919
77919
  }
77920
77920
  ]
77921
77921
  },
77922
+ {
77923
+ "kind": "javascript-module",
77924
+ "path": "core/styles/styles.js",
77925
+ "declarations": [
77926
+ {
77927
+ "kind": "variable",
77928
+ "name": "boxSizingStyles"
77929
+ }
77930
+ ],
77931
+ "exports": [
77932
+ {
77933
+ "kind": "js",
77934
+ "name": "boxSizingStyles",
77935
+ "declaration": {
77936
+ "name": "boxSizingStyles",
77937
+ "module": "core/styles/styles.js"
77938
+ }
77939
+ }
77940
+ ]
77941
+ },
77922
77942
  {
77923
77943
  "kind": "javascript-module",
77924
77944
  "path": "core/testing/event-spy.js",
@@ -78316,26 +78336,6 @@
78316
78336
  }
78317
78337
  ]
78318
78338
  },
78319
- {
78320
- "kind": "javascript-module",
78321
- "path": "core/styles/styles.js",
78322
- "declarations": [
78323
- {
78324
- "kind": "variable",
78325
- "name": "boxSizingStyles"
78326
- }
78327
- ],
78328
- "exports": [
78329
- {
78330
- "kind": "js",
78331
- "name": "boxSizingStyles",
78332
- "declaration": {
78333
- "name": "boxSizingStyles",
78334
- "module": "core/styles/styles.js"
78335
- }
78336
- }
78337
- ]
78338
- },
78339
78339
  {
78340
78340
  "kind": "javascript-module",
78341
78341
  "path": "datepicker/common/datepicker-button.js",
@@ -109983,6 +109983,224 @@
109983
109983
  }
109984
109984
  ]
109985
109985
  },
109986
+ {
109987
+ "kind": "javascript-module",
109988
+ "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
109989
+ "declarations": [
109990
+ {
109991
+ "kind": "class",
109992
+ "description": "It displays a month in the `sbb-mini-calendar`.",
109993
+ "name": "SbbMiniCalendarMonthElement",
109994
+ "slots": [
109995
+ {
109996
+ "description": "Use the unnamed slot to add `sbb-mini-calendar-day` elements.",
109997
+ "name": ""
109998
+ }
109999
+ ],
110000
+ "members": [
110001
+ {
110002
+ "kind": "field",
110003
+ "name": "elementName",
110004
+ "type": {
110005
+ "text": "string"
110006
+ },
110007
+ "privacy": "public",
110008
+ "static": true,
110009
+ "readonly": true,
110010
+ "default": "'sbb-mini-calendar-month'",
110011
+ "inheritedFrom": {
110012
+ "name": "SbbElement",
110013
+ "module": "core/base-elements/element.js"
110014
+ }
110015
+ },
110016
+ {
110017
+ "kind": "field",
110018
+ "name": "date",
110019
+ "type": {
110020
+ "text": "string"
110021
+ },
110022
+ "privacy": "public",
110023
+ "default": "''",
110024
+ "description": "Date as ISO string (YYYY-MM)",
110025
+ "attribute": "date"
110026
+ },
110027
+ {
110028
+ "kind": "field",
110029
+ "name": "_dateAdapter",
110030
+ "type": {
110031
+ "text": "DateAdapter<T>"
110032
+ },
110033
+ "privacy": "private"
110034
+ },
110035
+ {
110036
+ "kind": "field",
110037
+ "name": "_monthNames",
110038
+ "privacy": "private"
110039
+ },
110040
+ {
110041
+ "kind": "field",
110042
+ "name": "_monthLabel",
110043
+ "type": {
110044
+ "text": "string | null"
110045
+ },
110046
+ "privacy": "private",
110047
+ "default": "null"
110048
+ },
110049
+ {
110050
+ "kind": "field",
110051
+ "name": "_yearLabel",
110052
+ "type": {
110053
+ "text": "string | null"
110054
+ },
110055
+ "privacy": "private",
110056
+ "default": "null"
110057
+ },
110058
+ {
110059
+ "kind": "field",
110060
+ "name": "_previousOrientation",
110061
+ "type": {
110062
+ "text": "SbbOrientation | null"
110063
+ },
110064
+ "privacy": "private",
110065
+ "default": "null"
110066
+ },
110067
+ {
110068
+ "kind": "field",
110069
+ "name": "_hydrationRequired",
110070
+ "type": {
110071
+ "text": "boolean"
110072
+ },
110073
+ "privacy": "private",
110074
+ "default": "!!this.shadowRoot",
110075
+ "inheritedFrom": {
110076
+ "name": "SbbElement",
110077
+ "module": "core/base-elements/element.js"
110078
+ }
110079
+ },
110080
+ {
110081
+ "kind": "field",
110082
+ "name": "_hydrationComplete",
110083
+ "privacy": "private",
110084
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
110085
+ "inheritedFrom": {
110086
+ "name": "SbbElement",
110087
+ "module": "core/base-elements/element.js"
110088
+ }
110089
+ },
110090
+ {
110091
+ "kind": "field",
110092
+ "name": "_resolveHydration",
110093
+ "type": {
110094
+ "text": "(hydrationRequired: boolean) => void"
110095
+ },
110096
+ "privacy": "private",
110097
+ "inheritedFrom": {
110098
+ "name": "SbbElement",
110099
+ "module": "core/base-elements/element.js"
110100
+ }
110101
+ },
110102
+ {
110103
+ "kind": "field",
110104
+ "name": "hydrationRequired",
110105
+ "type": {
110106
+ "text": "boolean"
110107
+ },
110108
+ "privacy": "protected",
110109
+ "description": "Returns whether hydration is required and not completed.",
110110
+ "readonly": true,
110111
+ "inheritedFrom": {
110112
+ "name": "SbbElement",
110113
+ "module": "core/base-elements/element.js"
110114
+ },
110115
+ "default": "!!this.shadowRoot"
110116
+ },
110117
+ {
110118
+ "kind": "method",
110119
+ "name": "toggleState",
110120
+ "privacy": "protected",
110121
+ "return": {
110122
+ "type": {
110123
+ "text": "void"
110124
+ }
110125
+ },
110126
+ "parameters": [
110127
+ {
110128
+ "name": "value",
110129
+ "type": {
110130
+ "text": "string"
110131
+ }
110132
+ },
110133
+ {
110134
+ "name": "force",
110135
+ "optional": true,
110136
+ "type": {
110137
+ "text": "boolean"
110138
+ }
110139
+ }
110140
+ ],
110141
+ "inheritedFrom": {
110142
+ "name": "SbbElement",
110143
+ "module": "core/base-elements/element.js"
110144
+ }
110145
+ },
110146
+ {
110147
+ "kind": "field",
110148
+ "name": "['_$sbbElement$']",
110149
+ "type": {
110150
+ "text": "boolean"
110151
+ },
110152
+ "privacy": "public",
110153
+ "static": true,
110154
+ "default": "true",
110155
+ "inheritedFrom": {
110156
+ "name": "SbbElement",
110157
+ "module": "core/base-elements/element.js"
110158
+ }
110159
+ },
110160
+ {
110161
+ "kind": "field",
110162
+ "name": "_controllers",
110163
+ "type": {
110164
+ "text": "Set<SbbReactiveController> | undefined"
110165
+ },
110166
+ "privacy": "private",
110167
+ "inheritedFrom": {
110168
+ "name": "SbbElement",
110169
+ "module": "core/base-elements/element.js"
110170
+ }
110171
+ }
110172
+ ],
110173
+ "attributes": [
110174
+ {
110175
+ "name": "date",
110176
+ "type": {
110177
+ "text": "string"
110178
+ },
110179
+ "default": "''",
110180
+ "description": "Date as ISO string (YYYY-MM)",
110181
+ "fieldName": "date"
110182
+ }
110183
+ ],
110184
+ "superclass": {
110185
+ "name": "SbbElement",
110186
+ "module": "core/base-elements.js"
110187
+ },
110188
+ "tagName": "sbb-mini-calendar-month",
110189
+ "customElement": true,
110190
+ "classGenerics": "T = Date"
110191
+ }
110192
+ ],
110193
+ "exports": [
110194
+ {
110195
+ "kind": "js",
110196
+ "name": "SbbMiniCalendarMonthElement",
110197
+ "declaration": {
110198
+ "name": "SbbMiniCalendarMonthElement",
110199
+ "module": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js"
110200
+ }
110201
+ }
110202
+ ]
110203
+ },
109986
110204
  {
109987
110205
  "kind": "javascript-module",
109988
110206
  "path": "navigation/common/navigation-action-common.js",
@@ -110153,224 +110371,6 @@
110153
110371
  }
110154
110372
  ]
110155
110373
  },
110156
- {
110157
- "kind": "javascript-module",
110158
- "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
110159
- "declarations": [
110160
- {
110161
- "kind": "class",
110162
- "description": "It displays a month in the `sbb-mini-calendar`.",
110163
- "name": "SbbMiniCalendarMonthElement",
110164
- "slots": [
110165
- {
110166
- "description": "Use the unnamed slot to add `sbb-mini-calendar-day` elements.",
110167
- "name": ""
110168
- }
110169
- ],
110170
- "members": [
110171
- {
110172
- "kind": "field",
110173
- "name": "elementName",
110174
- "type": {
110175
- "text": "string"
110176
- },
110177
- "privacy": "public",
110178
- "static": true,
110179
- "readonly": true,
110180
- "default": "'sbb-mini-calendar-month'",
110181
- "inheritedFrom": {
110182
- "name": "SbbElement",
110183
- "module": "core/base-elements/element.js"
110184
- }
110185
- },
110186
- {
110187
- "kind": "field",
110188
- "name": "date",
110189
- "type": {
110190
- "text": "string"
110191
- },
110192
- "privacy": "public",
110193
- "default": "''",
110194
- "description": "Date as ISO string (YYYY-MM)",
110195
- "attribute": "date"
110196
- },
110197
- {
110198
- "kind": "field",
110199
- "name": "_dateAdapter",
110200
- "type": {
110201
- "text": "DateAdapter<T>"
110202
- },
110203
- "privacy": "private"
110204
- },
110205
- {
110206
- "kind": "field",
110207
- "name": "_monthNames",
110208
- "privacy": "private"
110209
- },
110210
- {
110211
- "kind": "field",
110212
- "name": "_monthLabel",
110213
- "type": {
110214
- "text": "string | null"
110215
- },
110216
- "privacy": "private",
110217
- "default": "null"
110218
- },
110219
- {
110220
- "kind": "field",
110221
- "name": "_yearLabel",
110222
- "type": {
110223
- "text": "string | null"
110224
- },
110225
- "privacy": "private",
110226
- "default": "null"
110227
- },
110228
- {
110229
- "kind": "field",
110230
- "name": "_previousOrientation",
110231
- "type": {
110232
- "text": "SbbOrientation | null"
110233
- },
110234
- "privacy": "private",
110235
- "default": "null"
110236
- },
110237
- {
110238
- "kind": "field",
110239
- "name": "_hydrationRequired",
110240
- "type": {
110241
- "text": "boolean"
110242
- },
110243
- "privacy": "private",
110244
- "default": "!!this.shadowRoot",
110245
- "inheritedFrom": {
110246
- "name": "SbbElement",
110247
- "module": "core/base-elements/element.js"
110248
- }
110249
- },
110250
- {
110251
- "kind": "field",
110252
- "name": "_hydrationComplete",
110253
- "privacy": "private",
110254
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
110255
- "inheritedFrom": {
110256
- "name": "SbbElement",
110257
- "module": "core/base-elements/element.js"
110258
- }
110259
- },
110260
- {
110261
- "kind": "field",
110262
- "name": "_resolveHydration",
110263
- "type": {
110264
- "text": "(hydrationRequired: boolean) => void"
110265
- },
110266
- "privacy": "private",
110267
- "inheritedFrom": {
110268
- "name": "SbbElement",
110269
- "module": "core/base-elements/element.js"
110270
- }
110271
- },
110272
- {
110273
- "kind": "field",
110274
- "name": "hydrationRequired",
110275
- "type": {
110276
- "text": "boolean"
110277
- },
110278
- "privacy": "protected",
110279
- "description": "Returns whether hydration is required and not completed.",
110280
- "readonly": true,
110281
- "inheritedFrom": {
110282
- "name": "SbbElement",
110283
- "module": "core/base-elements/element.js"
110284
- },
110285
- "default": "!!this.shadowRoot"
110286
- },
110287
- {
110288
- "kind": "method",
110289
- "name": "toggleState",
110290
- "privacy": "protected",
110291
- "return": {
110292
- "type": {
110293
- "text": "void"
110294
- }
110295
- },
110296
- "parameters": [
110297
- {
110298
- "name": "value",
110299
- "type": {
110300
- "text": "string"
110301
- }
110302
- },
110303
- {
110304
- "name": "force",
110305
- "optional": true,
110306
- "type": {
110307
- "text": "boolean"
110308
- }
110309
- }
110310
- ],
110311
- "inheritedFrom": {
110312
- "name": "SbbElement",
110313
- "module": "core/base-elements/element.js"
110314
- }
110315
- },
110316
- {
110317
- "kind": "field",
110318
- "name": "['_$sbbElement$']",
110319
- "type": {
110320
- "text": "boolean"
110321
- },
110322
- "privacy": "public",
110323
- "static": true,
110324
- "default": "true",
110325
- "inheritedFrom": {
110326
- "name": "SbbElement",
110327
- "module": "core/base-elements/element.js"
110328
- }
110329
- },
110330
- {
110331
- "kind": "field",
110332
- "name": "_controllers",
110333
- "type": {
110334
- "text": "Set<SbbReactiveController> | undefined"
110335
- },
110336
- "privacy": "private",
110337
- "inheritedFrom": {
110338
- "name": "SbbElement",
110339
- "module": "core/base-elements/element.js"
110340
- }
110341
- }
110342
- ],
110343
- "attributes": [
110344
- {
110345
- "name": "date",
110346
- "type": {
110347
- "text": "string"
110348
- },
110349
- "default": "''",
110350
- "description": "Date as ISO string (YYYY-MM)",
110351
- "fieldName": "date"
110352
- }
110353
- ],
110354
- "superclass": {
110355
- "name": "SbbElement",
110356
- "module": "core/base-elements.js"
110357
- },
110358
- "tagName": "sbb-mini-calendar-month",
110359
- "customElement": true,
110360
- "classGenerics": "T = Date"
110361
- }
110362
- ],
110363
- "exports": [
110364
- {
110365
- "kind": "js",
110366
- "name": "SbbMiniCalendarMonthElement",
110367
- "declaration": {
110368
- "name": "SbbMiniCalendarMonthElement",
110369
- "module": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js"
110370
- }
110371
- }
110372
- ]
110373
- },
110374
110374
  {
110375
110375
  "kind": "javascript-module",
110376
110376
  "path": "navigation/navigation/navigation.component.js",
@@ -124081,261 +124081,6 @@
124081
124081
  }
124082
124082
  ]
124083
124083
  },
124084
- {
124085
- "kind": "javascript-module",
124086
- "path": "table/table-wrapper/table-wrapper.component.js",
124087
- "declarations": [
124088
- {
124089
- "kind": "class",
124090
- "description": "Wraps a table to enhance its functionality.",
124091
- "name": "SbbTableWrapperElement",
124092
- "slots": [
124093
- {
124094
- "description": "Use the unnamed slot to add the table.",
124095
- "name": ""
124096
- }
124097
- ],
124098
- "members": [
124099
- {
124100
- "kind": "field",
124101
- "name": "elementName",
124102
- "type": {
124103
- "text": "string"
124104
- },
124105
- "privacy": "public",
124106
- "static": true,
124107
- "readonly": true,
124108
- "default": "'sbb-table-wrapper'",
124109
- "inheritedFrom": {
124110
- "name": "SbbElement",
124111
- "module": "core/base-elements/element.js"
124112
- }
124113
- },
124114
- {
124115
- "kind": "field",
124116
- "name": "role",
124117
- "type": {
124118
- "text": "string"
124119
- },
124120
- "privacy": "public",
124121
- "static": true,
124122
- "readonly": true,
124123
- "default": "'section'"
124124
- },
124125
- {
124126
- "kind": "field",
124127
- "name": "focusable",
124128
- "type": {
124129
- "text": "boolean"
124130
- },
124131
- "privacy": "public",
124132
- "default": "false",
124133
- "description": "Whether the table wrapper is focusable.",
124134
- "attribute": "focusable",
124135
- "reflects": true
124136
- },
124137
- {
124138
- "kind": "method",
124139
- "name": "_updateScrollbarClass",
124140
- "privacy": "private",
124141
- "return": {
124142
- "type": {
124143
- "text": "void"
124144
- }
124145
- }
124146
- },
124147
- {
124148
- "kind": "method",
124149
- "name": "_checkHorizontalScrollbarOffset",
124150
- "privacy": "private",
124151
- "return": {
124152
- "type": {
124153
- "text": "void"
124154
- }
124155
- },
124156
- "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124157
- },
124158
- {
124159
- "kind": "method",
124160
- "name": "_calculateScrollOffset",
124161
- "privacy": "private",
124162
- "return": {
124163
- "type": {
124164
- "text": "'none' | 'left' | 'right' | 'both'"
124165
- }
124166
- }
124167
- },
124168
- {
124169
- "kind": "field",
124170
- "name": "negative",
124171
- "type": {
124172
- "text": "boolean"
124173
- },
124174
- "privacy": "public",
124175
- "default": "false",
124176
- "description": "Negative coloring variant flag.",
124177
- "attribute": "negative",
124178
- "reflects": true,
124179
- "inheritedFrom": {
124180
- "name": "SbbNegativeMixin",
124181
- "module": "core/mixins/negative-mixin.js"
124182
- }
124183
- },
124184
- {
124185
- "kind": "field",
124186
- "name": "_hydrationRequired",
124187
- "type": {
124188
- "text": "boolean"
124189
- },
124190
- "privacy": "private",
124191
- "default": "!!this.shadowRoot",
124192
- "inheritedFrom": {
124193
- "name": "SbbElement",
124194
- "module": "core/base-elements/element.js"
124195
- }
124196
- },
124197
- {
124198
- "kind": "field",
124199
- "name": "_hydrationComplete",
124200
- "privacy": "private",
124201
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124202
- "inheritedFrom": {
124203
- "name": "SbbElement",
124204
- "module": "core/base-elements/element.js"
124205
- }
124206
- },
124207
- {
124208
- "kind": "field",
124209
- "name": "_resolveHydration",
124210
- "type": {
124211
- "text": "(hydrationRequired: boolean) => void"
124212
- },
124213
- "privacy": "private",
124214
- "inheritedFrom": {
124215
- "name": "SbbElement",
124216
- "module": "core/base-elements/element.js"
124217
- }
124218
- },
124219
- {
124220
- "kind": "field",
124221
- "name": "hydrationRequired",
124222
- "type": {
124223
- "text": "boolean"
124224
- },
124225
- "privacy": "protected",
124226
- "description": "Returns whether hydration is required and not completed.",
124227
- "readonly": true,
124228
- "inheritedFrom": {
124229
- "name": "SbbElement",
124230
- "module": "core/base-elements/element.js"
124231
- },
124232
- "default": "!!this.shadowRoot"
124233
- },
124234
- {
124235
- "kind": "method",
124236
- "name": "toggleState",
124237
- "privacy": "protected",
124238
- "return": {
124239
- "type": {
124240
- "text": "void"
124241
- }
124242
- },
124243
- "parameters": [
124244
- {
124245
- "name": "value",
124246
- "type": {
124247
- "text": "string"
124248
- }
124249
- },
124250
- {
124251
- "name": "force",
124252
- "optional": true,
124253
- "type": {
124254
- "text": "boolean"
124255
- }
124256
- }
124257
- ],
124258
- "inheritedFrom": {
124259
- "name": "SbbElement",
124260
- "module": "core/base-elements/element.js"
124261
- }
124262
- },
124263
- {
124264
- "kind": "field",
124265
- "name": "['_$sbbElement$']",
124266
- "type": {
124267
- "text": "boolean"
124268
- },
124269
- "privacy": "public",
124270
- "static": true,
124271
- "default": "true",
124272
- "inheritedFrom": {
124273
- "name": "SbbElement",
124274
- "module": "core/base-elements/element.js"
124275
- }
124276
- },
124277
- {
124278
- "kind": "field",
124279
- "name": "_controllers",
124280
- "type": {
124281
- "text": "Set<SbbReactiveController> | undefined"
124282
- },
124283
- "privacy": "private",
124284
- "inheritedFrom": {
124285
- "name": "SbbElement",
124286
- "module": "core/base-elements/element.js"
124287
- }
124288
- }
124289
- ],
124290
- "attributes": [
124291
- {
124292
- "name": "focusable",
124293
- "type": {
124294
- "text": "boolean"
124295
- },
124296
- "default": "false",
124297
- "description": "Whether the table wrapper is focusable.",
124298
- "fieldName": "focusable"
124299
- },
124300
- {
124301
- "name": "negative",
124302
- "type": {
124303
- "text": "boolean"
124304
- },
124305
- "default": "false",
124306
- "description": "Negative coloring variant flag.",
124307
- "fieldName": "negative",
124308
- "inheritedFrom": {
124309
- "name": "SbbNegativeMixin",
124310
- "module": "core/mixins/negative-mixin.js"
124311
- }
124312
- }
124313
- ],
124314
- "mixins": [
124315
- {
124316
- "name": "SbbNegativeMixin",
124317
- "module": "core/mixins.js"
124318
- }
124319
- ],
124320
- "superclass": {
124321
- "name": "SbbElement",
124322
- "module": "core/base-elements.js"
124323
- },
124324
- "tagName": "sbb-table-wrapper",
124325
- "customElement": true
124326
- }
124327
- ],
124328
- "exports": [
124329
- {
124330
- "kind": "js",
124331
- "name": "SbbTableWrapperElement",
124332
- "declaration": {
124333
- "name": "SbbTableWrapperElement",
124334
- "module": "table/table-wrapper/table-wrapper.component.js"
124335
- }
124336
- }
124337
- ]
124338
- },
124339
124084
  {
124340
124085
  "kind": "javascript-module",
124341
124086
  "path": "stepper/stepper/stepper.component.js",
@@ -124967,6 +124712,261 @@
124967
124712
  }
124968
124713
  ]
124969
124714
  },
124715
+ {
124716
+ "kind": "javascript-module",
124717
+ "path": "table/table-wrapper/table-wrapper.component.js",
124718
+ "declarations": [
124719
+ {
124720
+ "kind": "class",
124721
+ "description": "Wraps a table to enhance its functionality.",
124722
+ "name": "SbbTableWrapperElement",
124723
+ "slots": [
124724
+ {
124725
+ "description": "Use the unnamed slot to add the table.",
124726
+ "name": ""
124727
+ }
124728
+ ],
124729
+ "members": [
124730
+ {
124731
+ "kind": "field",
124732
+ "name": "elementName",
124733
+ "type": {
124734
+ "text": "string"
124735
+ },
124736
+ "privacy": "public",
124737
+ "static": true,
124738
+ "readonly": true,
124739
+ "default": "'sbb-table-wrapper'",
124740
+ "inheritedFrom": {
124741
+ "name": "SbbElement",
124742
+ "module": "core/base-elements/element.js"
124743
+ }
124744
+ },
124745
+ {
124746
+ "kind": "field",
124747
+ "name": "role",
124748
+ "type": {
124749
+ "text": "string"
124750
+ },
124751
+ "privacy": "public",
124752
+ "static": true,
124753
+ "readonly": true,
124754
+ "default": "'section'"
124755
+ },
124756
+ {
124757
+ "kind": "field",
124758
+ "name": "focusable",
124759
+ "type": {
124760
+ "text": "boolean"
124761
+ },
124762
+ "privacy": "public",
124763
+ "default": "false",
124764
+ "description": "Whether the table wrapper is focusable.",
124765
+ "attribute": "focusable",
124766
+ "reflects": true
124767
+ },
124768
+ {
124769
+ "kind": "method",
124770
+ "name": "_updateScrollbarClass",
124771
+ "privacy": "private",
124772
+ "return": {
124773
+ "type": {
124774
+ "text": "void"
124775
+ }
124776
+ }
124777
+ },
124778
+ {
124779
+ "kind": "method",
124780
+ "name": "_checkHorizontalScrollbarOffset",
124781
+ "privacy": "private",
124782
+ "return": {
124783
+ "type": {
124784
+ "text": "void"
124785
+ }
124786
+ },
124787
+ "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124788
+ },
124789
+ {
124790
+ "kind": "method",
124791
+ "name": "_calculateScrollOffset",
124792
+ "privacy": "private",
124793
+ "return": {
124794
+ "type": {
124795
+ "text": "'none' | 'left' | 'right' | 'both'"
124796
+ }
124797
+ }
124798
+ },
124799
+ {
124800
+ "kind": "field",
124801
+ "name": "negative",
124802
+ "type": {
124803
+ "text": "boolean"
124804
+ },
124805
+ "privacy": "public",
124806
+ "default": "false",
124807
+ "description": "Negative coloring variant flag.",
124808
+ "attribute": "negative",
124809
+ "reflects": true,
124810
+ "inheritedFrom": {
124811
+ "name": "SbbNegativeMixin",
124812
+ "module": "core/mixins/negative-mixin.js"
124813
+ }
124814
+ },
124815
+ {
124816
+ "kind": "field",
124817
+ "name": "_hydrationRequired",
124818
+ "type": {
124819
+ "text": "boolean"
124820
+ },
124821
+ "privacy": "private",
124822
+ "default": "!!this.shadowRoot",
124823
+ "inheritedFrom": {
124824
+ "name": "SbbElement",
124825
+ "module": "core/base-elements/element.js"
124826
+ }
124827
+ },
124828
+ {
124829
+ "kind": "field",
124830
+ "name": "_hydrationComplete",
124831
+ "privacy": "private",
124832
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124833
+ "inheritedFrom": {
124834
+ "name": "SbbElement",
124835
+ "module": "core/base-elements/element.js"
124836
+ }
124837
+ },
124838
+ {
124839
+ "kind": "field",
124840
+ "name": "_resolveHydration",
124841
+ "type": {
124842
+ "text": "(hydrationRequired: boolean) => void"
124843
+ },
124844
+ "privacy": "private",
124845
+ "inheritedFrom": {
124846
+ "name": "SbbElement",
124847
+ "module": "core/base-elements/element.js"
124848
+ }
124849
+ },
124850
+ {
124851
+ "kind": "field",
124852
+ "name": "hydrationRequired",
124853
+ "type": {
124854
+ "text": "boolean"
124855
+ },
124856
+ "privacy": "protected",
124857
+ "description": "Returns whether hydration is required and not completed.",
124858
+ "readonly": true,
124859
+ "inheritedFrom": {
124860
+ "name": "SbbElement",
124861
+ "module": "core/base-elements/element.js"
124862
+ },
124863
+ "default": "!!this.shadowRoot"
124864
+ },
124865
+ {
124866
+ "kind": "method",
124867
+ "name": "toggleState",
124868
+ "privacy": "protected",
124869
+ "return": {
124870
+ "type": {
124871
+ "text": "void"
124872
+ }
124873
+ },
124874
+ "parameters": [
124875
+ {
124876
+ "name": "value",
124877
+ "type": {
124878
+ "text": "string"
124879
+ }
124880
+ },
124881
+ {
124882
+ "name": "force",
124883
+ "optional": true,
124884
+ "type": {
124885
+ "text": "boolean"
124886
+ }
124887
+ }
124888
+ ],
124889
+ "inheritedFrom": {
124890
+ "name": "SbbElement",
124891
+ "module": "core/base-elements/element.js"
124892
+ }
124893
+ },
124894
+ {
124895
+ "kind": "field",
124896
+ "name": "['_$sbbElement$']",
124897
+ "type": {
124898
+ "text": "boolean"
124899
+ },
124900
+ "privacy": "public",
124901
+ "static": true,
124902
+ "default": "true",
124903
+ "inheritedFrom": {
124904
+ "name": "SbbElement",
124905
+ "module": "core/base-elements/element.js"
124906
+ }
124907
+ },
124908
+ {
124909
+ "kind": "field",
124910
+ "name": "_controllers",
124911
+ "type": {
124912
+ "text": "Set<SbbReactiveController> | undefined"
124913
+ },
124914
+ "privacy": "private",
124915
+ "inheritedFrom": {
124916
+ "name": "SbbElement",
124917
+ "module": "core/base-elements/element.js"
124918
+ }
124919
+ }
124920
+ ],
124921
+ "attributes": [
124922
+ {
124923
+ "name": "focusable",
124924
+ "type": {
124925
+ "text": "boolean"
124926
+ },
124927
+ "default": "false",
124928
+ "description": "Whether the table wrapper is focusable.",
124929
+ "fieldName": "focusable"
124930
+ },
124931
+ {
124932
+ "name": "negative",
124933
+ "type": {
124934
+ "text": "boolean"
124935
+ },
124936
+ "default": "false",
124937
+ "description": "Negative coloring variant flag.",
124938
+ "fieldName": "negative",
124939
+ "inheritedFrom": {
124940
+ "name": "SbbNegativeMixin",
124941
+ "module": "core/mixins/negative-mixin.js"
124942
+ }
124943
+ }
124944
+ ],
124945
+ "mixins": [
124946
+ {
124947
+ "name": "SbbNegativeMixin",
124948
+ "module": "core/mixins.js"
124949
+ }
124950
+ ],
124951
+ "superclass": {
124952
+ "name": "SbbElement",
124953
+ "module": "core/base-elements.js"
124954
+ },
124955
+ "tagName": "sbb-table-wrapper",
124956
+ "customElement": true
124957
+ }
124958
+ ],
124959
+ "exports": [
124960
+ {
124961
+ "kind": "js",
124962
+ "name": "SbbTableWrapperElement",
124963
+ "declaration": {
124964
+ "name": "SbbTableWrapperElement",
124965
+ "module": "table/table-wrapper/table-wrapper.component.js"
124966
+ }
124967
+ }
124968
+ ]
124969
+ },
124970
124970
  {
124971
124971
  "kind": "javascript-module",
124972
124972
  "path": "tabs/common/styles.js",
@@ -131320,20 +131320,16 @@
131320
131320
  },
131321
131321
  {
131322
131322
  "kind": "javascript-module",
131323
- "path": "toggle/toggle-option/toggle-option.component.js",
131323
+ "path": "toggle/toggle/toggle.component.js",
131324
131324
  "declarations": [
131325
131325
  {
131326
131326
  "kind": "class",
131327
- "description": "It displays a toggle option within a `sbb-toggle`.",
131328
- "name": "SbbToggleOptionElement",
131327
+ "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
131328
+ "name": "SbbToggleElement",
131329
131329
  "slots": [
131330
131330
  {
131331
- "description": "Use the unnamed slot to add content to the label of the toggle option.",
131331
+ "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
131332
131332
  "name": ""
131333
- },
131334
- {
131335
- "description": "Slot used to render the `sbb-icon`.",
131336
- "name": "icon"
131337
131333
  }
131338
131334
  ],
131339
131335
  "members": [
@@ -131346,7 +131342,7 @@
131346
131342
  "privacy": "public",
131347
131343
  "static": true,
131348
131344
  "readonly": true,
131349
- "default": "'sbb-toggle-option'",
131345
+ "default": "'sbb-toggle'",
131350
131346
  "inheritedFrom": {
131351
131347
  "name": "SbbElement",
131352
131348
  "module": "core/base-elements/element.js"
@@ -131361,18 +131357,41 @@
131361
131357
  "privacy": "public",
131362
131358
  "static": true,
131363
131359
  "readonly": true,
131364
- "default": "'radio'"
131360
+ "default": "'radiogroup'"
131365
131361
  },
131366
131362
  {
131367
131363
  "kind": "field",
131368
- "name": "checked",
131364
+ "name": "events",
131365
+ "privacy": "public",
131366
+ "static": true,
131367
+ "readonly": true,
131368
+ "default": "{ change: 'change', }",
131369
+ "type": {
131370
+ "text": "{\n change: 'change',\n }"
131371
+ }
131372
+ },
131373
+ {
131374
+ "kind": "field",
131375
+ "name": "even",
131369
131376
  "type": {
131370
131377
  "text": "boolean"
131371
131378
  },
131372
131379
  "privacy": "public",
131373
131380
  "default": "false",
131374
- "description": "Whether the toggle-option is checked.",
131375
- "attribute": "checked",
131381
+ "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.",
131382
+ "attribute": "even",
131383
+ "reflects": true
131384
+ },
131385
+ {
131386
+ "kind": "field",
131387
+ "name": "size",
131388
+ "type": {
131389
+ "text": "'s' | 'm'"
131390
+ },
131391
+ "privacy": "public",
131392
+ "description": "Size variant, either m or s.",
131393
+ "default": "'m' / 's' (lean)",
131394
+ "attribute": "size",
131376
131395
  "reflects": true
131377
131396
  },
131378
131397
  {
@@ -131382,22 +131401,53 @@
131382
131401
  "text": "(T = string) | null"
131383
131402
  },
131384
131403
  "privacy": "public",
131385
- "default": "null",
131386
- "description": "Value of toggle-option.",
131387
- "attribute": "value"
131404
+ "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).",
131405
+ "attribute": "value",
131406
+ "inheritedFrom": {
131407
+ "name": "SbbFormAssociatedMixin",
131408
+ "module": "core/mixins/form-associated-mixin.js"
131409
+ }
131388
131410
  },
131389
131411
  {
131390
131412
  "kind": "field",
131391
- "name": "_toggle",
131413
+ "name": "_fallbackValue",
131392
131414
  "type": {
131393
- "text": "SbbToggleElement | null"
131415
+ "text": "T | null"
131394
131416
  },
131395
131417
  "privacy": "private",
131396
131418
  "default": "null"
131397
131419
  },
131420
+ {
131421
+ "kind": "field",
131422
+ "name": "options",
131423
+ "type": {
131424
+ "text": "SbbToggleOptionElement<T>[]"
131425
+ },
131426
+ "privacy": "public",
131427
+ "description": "The child instances of sbb-toggle-option as an array.",
131428
+ "readonly": true
131429
+ },
131398
131430
  {
131399
131431
  "kind": "method",
131400
- "name": "_uncheckOtherOptions",
131432
+ "name": "_readFormData",
131433
+ "privacy": "private",
131434
+ "return": {
131435
+ "type": {
131436
+ "text": "Promise<T>"
131437
+ }
131438
+ },
131439
+ "parameters": [
131440
+ {
131441
+ "name": "formData",
131442
+ "type": {
131443
+ "text": "FormData"
131444
+ }
131445
+ }
131446
+ ]
131447
+ },
131448
+ {
131449
+ "kind": "method",
131450
+ "name": "_updateToggle",
131401
131451
  "privacy": "private",
131402
131452
  "return": {
131403
131453
  "type": {
@@ -131407,7 +131457,25 @@
131407
131457
  },
131408
131458
  {
131409
131459
  "kind": "method",
131410
- "name": "_handleDisabledChange",
131460
+ "name": "_valueChanged",
131461
+ "privacy": "private",
131462
+ "return": {
131463
+ "type": {
131464
+ "text": "void"
131465
+ }
131466
+ },
131467
+ "parameters": [
131468
+ {
131469
+ "name": "value",
131470
+ "type": {
131471
+ "text": "T | null"
131472
+ }
131473
+ }
131474
+ ]
131475
+ },
131476
+ {
131477
+ "kind": "method",
131478
+ "name": "_updateDisabled",
131411
131479
  "privacy": "private",
131412
131480
  "return": {
131413
131481
  "type": {
@@ -131423,17 +131491,44 @@
131423
131491
  "type": {
131424
131492
  "text": "void"
131425
131493
  }
131426
- }
131494
+ },
131495
+ "description": "Called on user interaction (click or keyboard)"
131427
131496
  },
131428
131497
  {
131429
131498
  "kind": "method",
131430
- "name": "_verifyTabindex",
131499
+ "name": "_handleKeyDown",
131431
131500
  "privacy": "private",
131432
131501
  "return": {
131433
131502
  "type": {
131434
131503
  "text": "void"
131435
131504
  }
131436
- }
131505
+ },
131506
+ "parameters": [
131507
+ {
131508
+ "name": "evt",
131509
+ "type": {
131510
+ "text": "KeyboardEvent"
131511
+ }
131512
+ }
131513
+ ]
131514
+ },
131515
+ {
131516
+ "kind": "method",
131517
+ "name": "_selectAndFocusOption",
131518
+ "privacy": "private",
131519
+ "return": {
131520
+ "type": {
131521
+ "text": "void"
131522
+ }
131523
+ },
131524
+ "parameters": [
131525
+ {
131526
+ "name": "option",
131527
+ "type": {
131528
+ "text": "SbbToggleOptionElement<T> | undefined"
131529
+ }
131530
+ }
131531
+ ]
131437
131532
  },
131438
131533
  {
131439
131534
  "kind": "field",
@@ -131481,68 +131576,317 @@
131481
131576
  },
131482
131577
  {
131483
131578
  "kind": "field",
131484
- "name": "iconName",
131579
+ "name": "formAssociated",
131580
+ "type": {
131581
+ "text": "boolean"
131582
+ },
131583
+ "privacy": "public",
131584
+ "static": true,
131585
+ "default": "true",
131586
+ "inheritedFrom": {
131587
+ "name": "SbbFormAssociatedMixin",
131588
+ "module": "core/mixins/form-associated-mixin.js"
131589
+ }
131590
+ },
131591
+ {
131592
+ "kind": "field",
131593
+ "name": "form",
131594
+ "type": {
131595
+ "text": "HTMLFormElement | null"
131596
+ },
131597
+ "privacy": "public",
131598
+ "description": "Returns the form owner of this element.",
131599
+ "readonly": true,
131600
+ "inheritedFrom": {
131601
+ "name": "SbbFormAssociatedMixin",
131602
+ "module": "core/mixins/form-associated-mixin.js"
131603
+ }
131604
+ },
131605
+ {
131606
+ "kind": "field",
131607
+ "name": "name",
131608
+ "privacy": "public",
131609
+ "description": "Name of the form element. Will be read from name attribute.",
131485
131610
  "type": {
131486
131611
  "text": "string"
131487
131612
  },
131613
+ "attribute": "name",
131614
+ "inheritedFrom": {
131615
+ "name": "SbbFormAssociatedMixin",
131616
+ "module": "core/mixins/form-associated-mixin.js"
131617
+ }
131618
+ },
131619
+ {
131620
+ "kind": "field",
131621
+ "name": "validity",
131622
+ "type": {
131623
+ "text": "ValidityState"
131624
+ },
131488
131625
  "privacy": "public",
131489
- "default": "''",
131490
- "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.",
131491
- "attribute": "icon-name",
131626
+ "description": "Returns the ValidityState object for this element.",
131627
+ "readonly": true,
131492
131628
  "inheritedFrom": {
131493
- "name": "SbbIconNameMixin",
131494
- "module": "icon/icon-name-mixin.js"
131629
+ "name": "SbbFormAssociatedMixin",
131630
+ "module": "core/mixins/form-associated-mixin.js"
131631
+ }
131632
+ },
131633
+ {
131634
+ "kind": "field",
131635
+ "name": "validationMessage",
131636
+ "type": {
131637
+ "text": "string"
131638
+ },
131639
+ "privacy": "public",
131640
+ "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.",
131641
+ "readonly": true,
131642
+ "inheritedFrom": {
131643
+ "name": "SbbFormAssociatedMixin",
131644
+ "module": "core/mixins/form-associated-mixin.js"
131645
+ }
131646
+ },
131647
+ {
131648
+ "kind": "field",
131649
+ "name": "willValidate",
131650
+ "type": {
131651
+ "text": "boolean"
131652
+ },
131653
+ "privacy": "public",
131654
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
131655
+ "readonly": true,
131656
+ "inheritedFrom": {
131657
+ "name": "SbbFormAssociatedMixin",
131658
+ "module": "core/mixins/form-associated-mixin.js"
131659
+ }
131660
+ },
131661
+ {
131662
+ "kind": "field",
131663
+ "name": "_validityStates",
131664
+ "privacy": "private",
131665
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
131666
+ "inheritedFrom": {
131667
+ "name": "SbbFormAssociatedMixin",
131668
+ "module": "core/mixins/form-associated-mixin.js"
131669
+ }
131670
+ },
131671
+ {
131672
+ "kind": "field",
131673
+ "name": "formDisabled",
131674
+ "type": {
131675
+ "text": "boolean"
131676
+ },
131677
+ "privacy": "protected",
131678
+ "default": "false",
131679
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
131680
+ "inheritedFrom": {
131681
+ "name": "SbbFormAssociatedMixin",
131682
+ "module": "core/mixins/form-associated-mixin.js"
131495
131683
  }
131496
131684
  },
131497
131685
  {
131498
131686
  "kind": "method",
131499
- "name": "renderIconSlot",
131687
+ "name": "checkValidity",
131688
+ "privacy": "public",
131689
+ "return": {
131690
+ "type": {
131691
+ "text": "boolean"
131692
+ }
131693
+ },
131694
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
131695
+ "inheritedFrom": {
131696
+ "name": "SbbFormAssociatedMixin",
131697
+ "module": "core/mixins/form-associated-mixin.js"
131698
+ }
131699
+ },
131700
+ {
131701
+ "kind": "method",
131702
+ "name": "reportValidity",
131703
+ "privacy": "public",
131704
+ "return": {
131705
+ "type": {
131706
+ "text": "boolean"
131707
+ }
131708
+ },
131709
+ "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.",
131710
+ "inheritedFrom": {
131711
+ "name": "SbbFormAssociatedMixin",
131712
+ "module": "core/mixins/form-associated-mixin.js"
131713
+ }
131714
+ },
131715
+ {
131716
+ "kind": "method",
131717
+ "name": "setCustomValidity",
131718
+ "privacy": "public",
131719
+ "return": {
131720
+ "type": {
131721
+ "text": "void"
131722
+ }
131723
+ },
131724
+ "parameters": [
131725
+ {
131726
+ "name": "message",
131727
+ "type": {
131728
+ "text": "string"
131729
+ }
131730
+ }
131731
+ ],
131732
+ "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.",
131733
+ "inheritedFrom": {
131734
+ "name": "SbbFormAssociatedMixin",
131735
+ "module": "core/mixins/form-associated-mixin.js"
131736
+ }
131737
+ },
131738
+ {
131739
+ "kind": "method",
131740
+ "name": "_hasDisabledAncestor",
131741
+ "privacy": "private",
131742
+ "return": {
131743
+ "type": {
131744
+ "text": "boolean"
131745
+ }
131746
+ },
131747
+ "inheritedFrom": {
131748
+ "name": "SbbFormAssociatedMixin",
131749
+ "module": "core/mixins/form-associated-mixin.js"
131750
+ }
131751
+ },
131752
+ {
131753
+ "kind": "method",
131754
+ "name": "updateFormValue",
131500
131755
  "privacy": "protected",
131501
131756
  "return": {
131502
131757
  "type": {
131503
- "text": "TemplateResult"
131758
+ "text": "void"
131759
+ }
131760
+ },
131761
+ "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",
131762
+ "inheritedFrom": {
131763
+ "name": "SbbFormAssociatedMixin",
131764
+ "module": "core/mixins/form-associated-mixin.js"
131765
+ }
131766
+ },
131767
+ {
131768
+ "kind": "method",
131769
+ "name": "formState",
131770
+ "privacy": "protected",
131771
+ "return": {
131772
+ "type": {
131773
+ "text": "FormRestoreState"
131774
+ }
131775
+ },
131776
+ "inheritedFrom": {
131777
+ "name": "SbbFormAssociatedMixin",
131778
+ "module": "core/mixins/form-associated-mixin.js"
131779
+ }
131780
+ },
131781
+ {
131782
+ "kind": "method",
131783
+ "name": "setValidityFlag",
131784
+ "privacy": "protected",
131785
+ "return": {
131786
+ "type": {
131787
+ "text": "void"
131504
131788
  }
131505
131789
  },
131506
131790
  "parameters": [
131507
131791
  {
131508
- "name": "classname",
131509
- "optional": true,
131792
+ "name": "flag",
131793
+ "type": {
131794
+ "text": "T"
131795
+ }
131796
+ },
131797
+ {
131798
+ "name": "message",
131510
131799
  "type": {
131511
131800
  "text": "string"
131512
131801
  }
131802
+ },
131803
+ {
131804
+ "name": "flagValue",
131805
+ "optional": true,
131806
+ "type": {
131807
+ "text": "ValidityStateFlags[T]"
131808
+ }
131513
131809
  }
131514
131810
  ],
131811
+ "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).",
131515
131812
  "inheritedFrom": {
131516
- "name": "SbbIconNameMixin",
131517
- "module": "icon/icon-name-mixin.js"
131813
+ "name": "SbbFormAssociatedMixin",
131814
+ "module": "core/mixins/form-associated-mixin.js"
131518
131815
  }
131519
131816
  },
131520
131817
  {
131521
131818
  "kind": "method",
131522
- "name": "renderIconName",
131819
+ "name": "removeValidityFlag",
131523
131820
  "privacy": "protected",
131524
131821
  "return": {
131525
131822
  "type": {
131526
- "text": "string"
131823
+ "text": "void"
131527
131824
  }
131528
131825
  },
131826
+ "parameters": [
131827
+ {
131828
+ "name": "flag",
131829
+ "type": {
131830
+ "text": "T"
131831
+ }
131832
+ }
131833
+ ],
131834
+ "description": "Removes the validity state flag entry and updates validity state.",
131529
131835
  "inheritedFrom": {
131530
- "name": "SbbIconNameMixin",
131531
- "module": "icon/icon-name-mixin.js"
131836
+ "name": "SbbFormAssociatedMixin",
131837
+ "module": "core/mixins/form-associated-mixin.js"
131532
131838
  }
131533
131839
  },
131534
131840
  {
131535
131841
  "kind": "method",
131536
- "name": "_renderIconName",
131842
+ "name": "validate",
131843
+ "privacy": "protected",
131844
+ "return": {
131845
+ "type": {
131846
+ "text": "void"
131847
+ }
131848
+ },
131849
+ "description": "To be called whenever the current element needs to be validated.",
131850
+ "inheritedFrom": {
131851
+ "name": "SbbFormAssociatedMixin",
131852
+ "module": "core/mixins/form-associated-mixin.js"
131853
+ }
131854
+ },
131855
+ {
131856
+ "kind": "method",
131857
+ "name": "shouldValidate",
131858
+ "privacy": "protected",
131859
+ "return": {
131860
+ "type": {
131861
+ "text": "boolean"
131862
+ }
131863
+ },
131864
+ "parameters": [
131865
+ {
131866
+ "name": "name",
131867
+ "type": {
131868
+ "text": "PropertyKey | undefined"
131869
+ }
131870
+ }
131871
+ ],
131872
+ "description": "Whether validation should be run on a property change with the given name.",
131873
+ "inheritedFrom": {
131874
+ "name": "SbbFormAssociatedMixin",
131875
+ "module": "core/mixins/form-associated-mixin.js"
131876
+ }
131877
+ },
131878
+ {
131879
+ "kind": "method",
131880
+ "name": "_setInternalValidity",
131537
131881
  "privacy": "private",
131538
131882
  "return": {
131539
131883
  "type": {
131540
- "text": "string"
131884
+ "text": "void"
131541
131885
  }
131542
131886
  },
131543
131887
  "inheritedFrom": {
131544
- "name": "SbbIconNameMixin",
131545
- "module": "icon/icon-name-mixin.js"
131888
+ "name": "SbbFormAssociatedMixin",
131889
+ "module": "core/mixins/form-associated-mixin.js"
131546
131890
  }
131547
131891
  },
131548
131892
  {
@@ -131653,30 +131997,38 @@
131653
131997
  ],
131654
131998
  "events": [
131655
131999
  {
132000
+ "name": "change",
131656
132001
  "type": {
131657
- "text": "InputEvent"
132002
+ "text": "Event"
131658
132003
  },
131659
- "description": "The input event fires when the value has been changed as a direct result of a user action.",
131660
- "name": "input"
132004
+ "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."
131661
132005
  }
131662
132006
  ],
131663
132007
  "attributes": [
131664
132008
  {
131665
- "name": "checked",
132009
+ "name": "even",
131666
132010
  "type": {
131667
132011
  "text": "boolean"
131668
132012
  },
131669
132013
  "default": "false",
131670
- "description": "Whether the toggle-option is checked.",
131671
- "fieldName": "checked"
132014
+ "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.",
132015
+ "fieldName": "even"
132016
+ },
132017
+ {
132018
+ "name": "size",
132019
+ "type": {
132020
+ "text": "'s' | 'm'"
132021
+ },
132022
+ "description": "Size variant, either m or s.",
132023
+ "default": "'m' / 's' (lean)",
132024
+ "fieldName": "size"
131672
132025
  },
131673
132026
  {
131674
132027
  "name": "value",
132028
+ "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).",
131675
132029
  "type": {
131676
132030
  "text": "T | null"
131677
132031
  },
131678
- "default": "null",
131679
- "description": "Value of toggle-option.",
131680
132032
  "fieldName": "value"
131681
132033
  },
131682
132034
  {
@@ -131693,16 +132045,15 @@
131693
132045
  }
131694
132046
  },
131695
132047
  {
131696
- "name": "icon-name",
132048
+ "name": "name",
132049
+ "description": "Name of the form element. Will be read from name attribute.",
131697
132050
  "type": {
131698
132051
  "text": "string"
131699
132052
  },
131700
- "default": "''",
131701
- "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.",
131702
- "fieldName": "iconName",
132053
+ "fieldName": "name",
131703
132054
  "inheritedFrom": {
131704
- "name": "SbbIconNameMixin",
131705
- "module": "icon/icon-name-mixin.js"
132055
+ "name": "SbbFormAssociatedMixin",
132056
+ "module": "core/mixins/form-associated-mixin.js"
131706
132057
  }
131707
132058
  }
131708
132059
  ],
@@ -131712,15 +132063,15 @@
131712
132063
  "module": "core/mixins.js"
131713
132064
  },
131714
132065
  {
131715
- "name": "SbbIconNameMixin",
131716
- "module": "icon.js"
132066
+ "name": "SbbFormAssociatedMixin",
132067
+ "module": "core/mixins.js"
131717
132068
  }
131718
132069
  ],
131719
132070
  "superclass": {
131720
132071
  "name": "SbbElement",
131721
132072
  "module": "core/base-elements.js"
131722
132073
  },
131723
- "tagName": "sbb-toggle-option",
132074
+ "tagName": "sbb-toggle",
131724
132075
  "customElement": true,
131725
132076
  "classGenerics": "T = string"
131726
132077
  }
@@ -131728,26 +132079,30 @@
131728
132079
  "exports": [
131729
132080
  {
131730
132081
  "kind": "js",
131731
- "name": "SbbToggleOptionElement",
132082
+ "name": "SbbToggleElement",
131732
132083
  "declaration": {
131733
- "name": "SbbToggleOptionElement",
131734
- "module": "toggle/toggle-option/toggle-option.component.js"
132084
+ "name": "SbbToggleElement",
132085
+ "module": "toggle/toggle/toggle.component.js"
131735
132086
  }
131736
132087
  }
131737
132088
  ]
131738
132089
  },
131739
132090
  {
131740
132091
  "kind": "javascript-module",
131741
- "path": "toggle/toggle/toggle.component.js",
132092
+ "path": "toggle/toggle-option/toggle-option.component.js",
131742
132093
  "declarations": [
131743
132094
  {
131744
132095
  "kind": "class",
131745
- "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
131746
- "name": "SbbToggleElement",
132096
+ "description": "It displays a toggle option within a `sbb-toggle`.",
132097
+ "name": "SbbToggleOptionElement",
131747
132098
  "slots": [
131748
132099
  {
131749
- "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
132100
+ "description": "Use the unnamed slot to add content to the label of the toggle option.",
131750
132101
  "name": ""
132102
+ },
132103
+ {
132104
+ "description": "Slot used to render the `sbb-icon`.",
132105
+ "name": "icon"
131751
132106
  }
131752
132107
  ],
131753
132108
  "members": [
@@ -131760,7 +132115,7 @@
131760
132115
  "privacy": "public",
131761
132116
  "static": true,
131762
132117
  "readonly": true,
131763
- "default": "'sbb-toggle'",
132118
+ "default": "'sbb-toggle-option'",
131764
132119
  "inheritedFrom": {
131765
132120
  "name": "SbbElement",
131766
132121
  "module": "core/base-elements/element.js"
@@ -131775,41 +132130,18 @@
131775
132130
  "privacy": "public",
131776
132131
  "static": true,
131777
132132
  "readonly": true,
131778
- "default": "'radiogroup'"
131779
- },
131780
- {
131781
- "kind": "field",
131782
- "name": "events",
131783
- "privacy": "public",
131784
- "static": true,
131785
- "readonly": true,
131786
- "default": "{ change: 'change', }",
131787
- "type": {
131788
- "text": "{\n change: 'change',\n }"
131789
- }
132133
+ "default": "'radio'"
131790
132134
  },
131791
132135
  {
131792
132136
  "kind": "field",
131793
- "name": "even",
132137
+ "name": "checked",
131794
132138
  "type": {
131795
132139
  "text": "boolean"
131796
132140
  },
131797
132141
  "privacy": "public",
131798
132142
  "default": "false",
131799
- "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.",
131800
- "attribute": "even",
131801
- "reflects": true
131802
- },
131803
- {
131804
- "kind": "field",
131805
- "name": "size",
131806
- "type": {
131807
- "text": "'s' | 'm'"
131808
- },
131809
- "privacy": "public",
131810
- "description": "Size variant, either m or s.",
131811
- "default": "'m' / 's' (lean)",
131812
- "attribute": "size",
132143
+ "description": "Whether the toggle-option is checked.",
132144
+ "attribute": "checked",
131813
132145
  "reflects": true
131814
132146
  },
131815
132147
  {
@@ -131819,53 +132151,22 @@
131819
132151
  "text": "(T = string) | null"
131820
132152
  },
131821
132153
  "privacy": "public",
131822
- "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).",
131823
- "attribute": "value",
131824
- "inheritedFrom": {
131825
- "name": "SbbFormAssociatedMixin",
131826
- "module": "core/mixins/form-associated-mixin.js"
131827
- }
132154
+ "default": "null",
132155
+ "description": "Value of toggle-option.",
132156
+ "attribute": "value"
131828
132157
  },
131829
132158
  {
131830
132159
  "kind": "field",
131831
- "name": "_fallbackValue",
132160
+ "name": "_toggle",
131832
132161
  "type": {
131833
- "text": "T | null"
132162
+ "text": "SbbToggleElement | null"
131834
132163
  },
131835
132164
  "privacy": "private",
131836
132165
  "default": "null"
131837
132166
  },
131838
- {
131839
- "kind": "field",
131840
- "name": "options",
131841
- "type": {
131842
- "text": "SbbToggleOptionElement<T>[]"
131843
- },
131844
- "privacy": "public",
131845
- "description": "The child instances of sbb-toggle-option as an array.",
131846
- "readonly": true
131847
- },
131848
132167
  {
131849
132168
  "kind": "method",
131850
- "name": "_readFormData",
131851
- "privacy": "private",
131852
- "return": {
131853
- "type": {
131854
- "text": "Promise<T>"
131855
- }
131856
- },
131857
- "parameters": [
131858
- {
131859
- "name": "formData",
131860
- "type": {
131861
- "text": "FormData"
131862
- }
131863
- }
131864
- ]
131865
- },
131866
- {
131867
- "kind": "method",
131868
- "name": "_updateToggle",
132169
+ "name": "_uncheckOtherOptions",
131869
132170
  "privacy": "private",
131870
132171
  "return": {
131871
132172
  "type": {
@@ -131875,25 +132176,7 @@
131875
132176
  },
131876
132177
  {
131877
132178
  "kind": "method",
131878
- "name": "_valueChanged",
131879
- "privacy": "private",
131880
- "return": {
131881
- "type": {
131882
- "text": "void"
131883
- }
131884
- },
131885
- "parameters": [
131886
- {
131887
- "name": "value",
131888
- "type": {
131889
- "text": "T | null"
131890
- }
131891
- }
131892
- ]
131893
- },
131894
- {
131895
- "kind": "method",
131896
- "name": "_updateDisabled",
132179
+ "name": "_handleDisabledChange",
131897
132180
  "privacy": "private",
131898
132181
  "return": {
131899
132182
  "type": {
@@ -131909,44 +132192,17 @@
131909
132192
  "type": {
131910
132193
  "text": "void"
131911
132194
  }
131912
- },
131913
- "description": "Called on user interaction (click or keyboard)"
131914
- },
131915
- {
131916
- "kind": "method",
131917
- "name": "_handleKeyDown",
131918
- "privacy": "private",
131919
- "return": {
131920
- "type": {
131921
- "text": "void"
131922
- }
131923
- },
131924
- "parameters": [
131925
- {
131926
- "name": "evt",
131927
- "type": {
131928
- "text": "KeyboardEvent"
131929
- }
131930
- }
131931
- ]
132195
+ }
131932
132196
  },
131933
132197
  {
131934
132198
  "kind": "method",
131935
- "name": "_selectAndFocusOption",
132199
+ "name": "_verifyTabindex",
131936
132200
  "privacy": "private",
131937
132201
  "return": {
131938
132202
  "type": {
131939
132203
  "text": "void"
131940
132204
  }
131941
- },
131942
- "parameters": [
131943
- {
131944
- "name": "option",
131945
- "type": {
131946
- "text": "SbbToggleOptionElement<T> | undefined"
131947
- }
131948
- }
131949
- ]
132205
+ }
131950
132206
  },
131951
132207
  {
131952
132208
  "kind": "field",
@@ -131994,317 +132250,68 @@
131994
132250
  },
131995
132251
  {
131996
132252
  "kind": "field",
131997
- "name": "formAssociated",
131998
- "type": {
131999
- "text": "boolean"
132000
- },
132001
- "privacy": "public",
132002
- "static": true,
132003
- "default": "true",
132004
- "inheritedFrom": {
132005
- "name": "SbbFormAssociatedMixin",
132006
- "module": "core/mixins/form-associated-mixin.js"
132007
- }
132008
- },
132009
- {
132010
- "kind": "field",
132011
- "name": "form",
132012
- "type": {
132013
- "text": "HTMLFormElement | null"
132014
- },
132015
- "privacy": "public",
132016
- "description": "Returns the form owner of this element.",
132017
- "readonly": true,
132018
- "inheritedFrom": {
132019
- "name": "SbbFormAssociatedMixin",
132020
- "module": "core/mixins/form-associated-mixin.js"
132021
- }
132022
- },
132023
- {
132024
- "kind": "field",
132025
- "name": "name",
132026
- "privacy": "public",
132027
- "description": "Name of the form element. Will be read from name attribute.",
132028
- "type": {
132029
- "text": "string"
132030
- },
132031
- "attribute": "name",
132032
- "inheritedFrom": {
132033
- "name": "SbbFormAssociatedMixin",
132034
- "module": "core/mixins/form-associated-mixin.js"
132035
- }
132036
- },
132037
- {
132038
- "kind": "field",
132039
- "name": "validity",
132040
- "type": {
132041
- "text": "ValidityState"
132042
- },
132043
- "privacy": "public",
132044
- "description": "Returns the ValidityState object for this element.",
132045
- "readonly": true,
132046
- "inheritedFrom": {
132047
- "name": "SbbFormAssociatedMixin",
132048
- "module": "core/mixins/form-associated-mixin.js"
132049
- }
132050
- },
132051
- {
132052
- "kind": "field",
132053
- "name": "validationMessage",
132253
+ "name": "iconName",
132054
132254
  "type": {
132055
132255
  "text": "string"
132056
132256
  },
132057
132257
  "privacy": "public",
132058
- "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.",
132059
- "readonly": true,
132060
- "inheritedFrom": {
132061
- "name": "SbbFormAssociatedMixin",
132062
- "module": "core/mixins/form-associated-mixin.js"
132063
- }
132064
- },
132065
- {
132066
- "kind": "field",
132067
- "name": "willValidate",
132068
- "type": {
132069
- "text": "boolean"
132070
- },
132071
- "privacy": "public",
132072
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
132073
- "readonly": true,
132074
- "inheritedFrom": {
132075
- "name": "SbbFormAssociatedMixin",
132076
- "module": "core/mixins/form-associated-mixin.js"
132077
- }
132078
- },
132079
- {
132080
- "kind": "field",
132081
- "name": "_validityStates",
132082
- "privacy": "private",
132083
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
132084
- "inheritedFrom": {
132085
- "name": "SbbFormAssociatedMixin",
132086
- "module": "core/mixins/form-associated-mixin.js"
132087
- }
132088
- },
132089
- {
132090
- "kind": "field",
132091
- "name": "formDisabled",
132092
- "type": {
132093
- "text": "boolean"
132094
- },
132095
- "privacy": "protected",
132096
- "default": "false",
132097
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
132098
- "inheritedFrom": {
132099
- "name": "SbbFormAssociatedMixin",
132100
- "module": "core/mixins/form-associated-mixin.js"
132101
- }
132102
- },
132103
- {
132104
- "kind": "method",
132105
- "name": "checkValidity",
132106
- "privacy": "public",
132107
- "return": {
132108
- "type": {
132109
- "text": "boolean"
132110
- }
132111
- },
132112
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
132113
- "inheritedFrom": {
132114
- "name": "SbbFormAssociatedMixin",
132115
- "module": "core/mixins/form-associated-mixin.js"
132116
- }
132117
- },
132118
- {
132119
- "kind": "method",
132120
- "name": "reportValidity",
132121
- "privacy": "public",
132122
- "return": {
132123
- "type": {
132124
- "text": "boolean"
132125
- }
132126
- },
132127
- "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.",
132128
- "inheritedFrom": {
132129
- "name": "SbbFormAssociatedMixin",
132130
- "module": "core/mixins/form-associated-mixin.js"
132131
- }
132132
- },
132133
- {
132134
- "kind": "method",
132135
- "name": "setCustomValidity",
132136
- "privacy": "public",
132137
- "return": {
132138
- "type": {
132139
- "text": "void"
132140
- }
132141
- },
132142
- "parameters": [
132143
- {
132144
- "name": "message",
132145
- "type": {
132146
- "text": "string"
132147
- }
132148
- }
132149
- ],
132150
- "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.",
132151
- "inheritedFrom": {
132152
- "name": "SbbFormAssociatedMixin",
132153
- "module": "core/mixins/form-associated-mixin.js"
132154
- }
132155
- },
132156
- {
132157
- "kind": "method",
132158
- "name": "_hasDisabledAncestor",
132159
- "privacy": "private",
132160
- "return": {
132161
- "type": {
132162
- "text": "boolean"
132163
- }
132164
- },
132165
- "inheritedFrom": {
132166
- "name": "SbbFormAssociatedMixin",
132167
- "module": "core/mixins/form-associated-mixin.js"
132168
- }
132169
- },
132170
- {
132171
- "kind": "method",
132172
- "name": "updateFormValue",
132173
- "privacy": "protected",
132174
- "return": {
132175
- "type": {
132176
- "text": "void"
132177
- }
132178
- },
132179
- "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",
132180
- "inheritedFrom": {
132181
- "name": "SbbFormAssociatedMixin",
132182
- "module": "core/mixins/form-associated-mixin.js"
132183
- }
132184
- },
132185
- {
132186
- "kind": "method",
132187
- "name": "formState",
132188
- "privacy": "protected",
132189
- "return": {
132190
- "type": {
132191
- "text": "FormRestoreState"
132192
- }
132193
- },
132258
+ "default": "''",
132259
+ "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.",
132260
+ "attribute": "icon-name",
132194
132261
  "inheritedFrom": {
132195
- "name": "SbbFormAssociatedMixin",
132196
- "module": "core/mixins/form-associated-mixin.js"
132262
+ "name": "SbbIconNameMixin",
132263
+ "module": "icon/icon-name-mixin.js"
132197
132264
  }
132198
132265
  },
132199
132266
  {
132200
132267
  "kind": "method",
132201
- "name": "setValidityFlag",
132268
+ "name": "renderIconSlot",
132202
132269
  "privacy": "protected",
132203
132270
  "return": {
132204
132271
  "type": {
132205
- "text": "void"
132272
+ "text": "TemplateResult"
132206
132273
  }
132207
132274
  },
132208
132275
  "parameters": [
132209
132276
  {
132210
- "name": "flag",
132211
- "type": {
132212
- "text": "T"
132213
- }
132214
- },
132215
- {
132216
- "name": "message",
132217
- "type": {
132218
- "text": "string"
132219
- }
132220
- },
132221
- {
132222
- "name": "flagValue",
132277
+ "name": "classname",
132223
132278
  "optional": true,
132224
132279
  "type": {
132225
- "text": "ValidityStateFlags[T]"
132226
- }
132227
- }
132228
- ],
132229
- "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).",
132230
- "inheritedFrom": {
132231
- "name": "SbbFormAssociatedMixin",
132232
- "module": "core/mixins/form-associated-mixin.js"
132233
- }
132234
- },
132235
- {
132236
- "kind": "method",
132237
- "name": "removeValidityFlag",
132238
- "privacy": "protected",
132239
- "return": {
132240
- "type": {
132241
- "text": "void"
132242
- }
132243
- },
132244
- "parameters": [
132245
- {
132246
- "name": "flag",
132247
- "type": {
132248
- "text": "T"
132280
+ "text": "string"
132249
132281
  }
132250
132282
  }
132251
132283
  ],
132252
- "description": "Removes the validity state flag entry and updates validity state.",
132253
- "inheritedFrom": {
132254
- "name": "SbbFormAssociatedMixin",
132255
- "module": "core/mixins/form-associated-mixin.js"
132256
- }
132257
- },
132258
- {
132259
- "kind": "method",
132260
- "name": "validate",
132261
- "privacy": "protected",
132262
- "return": {
132263
- "type": {
132264
- "text": "void"
132265
- }
132266
- },
132267
- "description": "To be called whenever the current element needs to be validated.",
132268
132284
  "inheritedFrom": {
132269
- "name": "SbbFormAssociatedMixin",
132270
- "module": "core/mixins/form-associated-mixin.js"
132285
+ "name": "SbbIconNameMixin",
132286
+ "module": "icon/icon-name-mixin.js"
132271
132287
  }
132272
132288
  },
132273
132289
  {
132274
132290
  "kind": "method",
132275
- "name": "shouldValidate",
132291
+ "name": "renderIconName",
132276
132292
  "privacy": "protected",
132277
132293
  "return": {
132278
132294
  "type": {
132279
- "text": "boolean"
132295
+ "text": "string"
132280
132296
  }
132281
132297
  },
132282
- "parameters": [
132283
- {
132284
- "name": "name",
132285
- "type": {
132286
- "text": "PropertyKey | undefined"
132287
- }
132288
- }
132289
- ],
132290
- "description": "Whether validation should be run on a property change with the given name.",
132291
132298
  "inheritedFrom": {
132292
- "name": "SbbFormAssociatedMixin",
132293
- "module": "core/mixins/form-associated-mixin.js"
132299
+ "name": "SbbIconNameMixin",
132300
+ "module": "icon/icon-name-mixin.js"
132294
132301
  }
132295
132302
  },
132296
132303
  {
132297
132304
  "kind": "method",
132298
- "name": "_setInternalValidity",
132305
+ "name": "_renderIconName",
132299
132306
  "privacy": "private",
132300
132307
  "return": {
132301
132308
  "type": {
132302
- "text": "void"
132309
+ "text": "string"
132303
132310
  }
132304
132311
  },
132305
132312
  "inheritedFrom": {
132306
- "name": "SbbFormAssociatedMixin",
132307
- "module": "core/mixins/form-associated-mixin.js"
132313
+ "name": "SbbIconNameMixin",
132314
+ "module": "icon/icon-name-mixin.js"
132308
132315
  }
132309
132316
  },
132310
132317
  {
@@ -132415,38 +132422,30 @@
132415
132422
  ],
132416
132423
  "events": [
132417
132424
  {
132418
- "name": "change",
132419
132425
  "type": {
132420
- "text": "Event"
132426
+ "text": "InputEvent"
132421
132427
  },
132422
- "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."
132428
+ "description": "The input event fires when the value has been changed as a direct result of a user action.",
132429
+ "name": "input"
132423
132430
  }
132424
132431
  ],
132425
132432
  "attributes": [
132426
132433
  {
132427
- "name": "even",
132434
+ "name": "checked",
132428
132435
  "type": {
132429
132436
  "text": "boolean"
132430
132437
  },
132431
132438
  "default": "false",
132432
- "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.",
132433
- "fieldName": "even"
132434
- },
132435
- {
132436
- "name": "size",
132437
- "type": {
132438
- "text": "'s' | 'm'"
132439
- },
132440
- "description": "Size variant, either m or s.",
132441
- "default": "'m' / 's' (lean)",
132442
- "fieldName": "size"
132439
+ "description": "Whether the toggle-option is checked.",
132440
+ "fieldName": "checked"
132443
132441
  },
132444
132442
  {
132445
132443
  "name": "value",
132446
- "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).",
132447
132444
  "type": {
132448
132445
  "text": "T | null"
132449
132446
  },
132447
+ "default": "null",
132448
+ "description": "Value of toggle-option.",
132450
132449
  "fieldName": "value"
132451
132450
  },
132452
132451
  {
@@ -132463,15 +132462,16 @@
132463
132462
  }
132464
132463
  },
132465
132464
  {
132466
- "name": "name",
132467
- "description": "Name of the form element. Will be read from name attribute.",
132465
+ "name": "icon-name",
132468
132466
  "type": {
132469
132467
  "text": "string"
132470
132468
  },
132471
- "fieldName": "name",
132469
+ "default": "''",
132470
+ "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.",
132471
+ "fieldName": "iconName",
132472
132472
  "inheritedFrom": {
132473
- "name": "SbbFormAssociatedMixin",
132474
- "module": "core/mixins/form-associated-mixin.js"
132473
+ "name": "SbbIconNameMixin",
132474
+ "module": "icon/icon-name-mixin.js"
132475
132475
  }
132476
132476
  }
132477
132477
  ],
@@ -132481,15 +132481,15 @@
132481
132481
  "module": "core/mixins.js"
132482
132482
  },
132483
132483
  {
132484
- "name": "SbbFormAssociatedMixin",
132485
- "module": "core/mixins.js"
132484
+ "name": "SbbIconNameMixin",
132485
+ "module": "icon.js"
132486
132486
  }
132487
132487
  ],
132488
132488
  "superclass": {
132489
132489
  "name": "SbbElement",
132490
132490
  "module": "core/base-elements.js"
132491
132491
  },
132492
- "tagName": "sbb-toggle",
132492
+ "tagName": "sbb-toggle-option",
132493
132493
  "customElement": true,
132494
132494
  "classGenerics": "T = string"
132495
132495
  }
@@ -132497,10 +132497,10 @@
132497
132497
  "exports": [
132498
132498
  {
132499
132499
  "kind": "js",
132500
- "name": "SbbToggleElement",
132500
+ "name": "SbbToggleOptionElement",
132501
132501
  "declaration": {
132502
- "name": "SbbToggleElement",
132503
- "module": "toggle/toggle/toggle.component.js"
132502
+ "name": "SbbToggleOptionElement",
132503
+ "module": "toggle/toggle-option/toggle-option.component.js"
132504
132504
  }
132505
132505
  }
132506
132506
  ]