@sbb-esta/lyne-elements-dev 4.8.1-dev.1774268349 → 4.8.1-dev.1774268427
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.
- package/custom-elements.json +561 -561
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -130114,20 +130114,16 @@
|
|
|
130114
130114
|
},
|
|
130115
130115
|
{
|
|
130116
130116
|
"kind": "javascript-module",
|
|
130117
|
-
"path": "toggle/toggle
|
|
130117
|
+
"path": "toggle/toggle/toggle.component.js",
|
|
130118
130118
|
"declarations": [
|
|
130119
130119
|
{
|
|
130120
130120
|
"kind": "class",
|
|
130121
|
-
"description": "It
|
|
130122
|
-
"name": "
|
|
130121
|
+
"description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
|
|
130122
|
+
"name": "SbbToggleElement",
|
|
130123
130123
|
"slots": [
|
|
130124
130124
|
{
|
|
130125
|
-
"description": "Use the unnamed slot to add
|
|
130125
|
+
"description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
|
|
130126
130126
|
"name": ""
|
|
130127
|
-
},
|
|
130128
|
-
{
|
|
130129
|
-
"description": "Slot used to render the `sbb-icon`.",
|
|
130130
|
-
"name": "icon"
|
|
130131
130127
|
}
|
|
130132
130128
|
],
|
|
130133
130129
|
"members": [
|
|
@@ -130140,7 +130136,7 @@
|
|
|
130140
130136
|
"privacy": "public",
|
|
130141
130137
|
"static": true,
|
|
130142
130138
|
"readonly": true,
|
|
130143
|
-
"default": "'sbb-toggle
|
|
130139
|
+
"default": "'sbb-toggle'",
|
|
130144
130140
|
"inheritedFrom": {
|
|
130145
130141
|
"name": "SbbElement",
|
|
130146
130142
|
"module": "core/base-elements/element.js"
|
|
@@ -130155,18 +130151,41 @@
|
|
|
130155
130151
|
"privacy": "public",
|
|
130156
130152
|
"static": true,
|
|
130157
130153
|
"readonly": true,
|
|
130158
|
-
"default": "'
|
|
130154
|
+
"default": "'radiogroup'"
|
|
130159
130155
|
},
|
|
130160
130156
|
{
|
|
130161
130157
|
"kind": "field",
|
|
130162
|
-
"name": "
|
|
130158
|
+
"name": "events",
|
|
130159
|
+
"privacy": "public",
|
|
130160
|
+
"static": true,
|
|
130161
|
+
"readonly": true,
|
|
130162
|
+
"default": "{ change: 'change', }",
|
|
130163
|
+
"type": {
|
|
130164
|
+
"text": "{\n change: 'change',\n }"
|
|
130165
|
+
}
|
|
130166
|
+
},
|
|
130167
|
+
{
|
|
130168
|
+
"kind": "field",
|
|
130169
|
+
"name": "even",
|
|
130163
130170
|
"type": {
|
|
130164
130171
|
"text": "boolean"
|
|
130165
130172
|
},
|
|
130166
130173
|
"privacy": "public",
|
|
130167
130174
|
"default": "false",
|
|
130168
|
-
"description": "
|
|
130169
|
-
"attribute": "
|
|
130175
|
+
"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.",
|
|
130176
|
+
"attribute": "even",
|
|
130177
|
+
"reflects": true
|
|
130178
|
+
},
|
|
130179
|
+
{
|
|
130180
|
+
"kind": "field",
|
|
130181
|
+
"name": "size",
|
|
130182
|
+
"type": {
|
|
130183
|
+
"text": "'s' | 'm'"
|
|
130184
|
+
},
|
|
130185
|
+
"privacy": "public",
|
|
130186
|
+
"description": "Size variant, either m or s.",
|
|
130187
|
+
"default": "'m' / 's' (lean)",
|
|
130188
|
+
"attribute": "size",
|
|
130170
130189
|
"reflects": true
|
|
130171
130190
|
},
|
|
130172
130191
|
{
|
|
@@ -130176,22 +130195,53 @@
|
|
|
130176
130195
|
"text": "(T = string) | null"
|
|
130177
130196
|
},
|
|
130178
130197
|
"privacy": "public",
|
|
130179
|
-
"
|
|
130180
|
-
"
|
|
130181
|
-
"
|
|
130198
|
+
"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).",
|
|
130199
|
+
"attribute": "value",
|
|
130200
|
+
"inheritedFrom": {
|
|
130201
|
+
"name": "SbbFormAssociatedMixin",
|
|
130202
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130203
|
+
}
|
|
130182
130204
|
},
|
|
130183
130205
|
{
|
|
130184
130206
|
"kind": "field",
|
|
130185
|
-
"name": "
|
|
130207
|
+
"name": "_fallbackValue",
|
|
130186
130208
|
"type": {
|
|
130187
|
-
"text": "
|
|
130209
|
+
"text": "T | null"
|
|
130188
130210
|
},
|
|
130189
130211
|
"privacy": "private",
|
|
130190
130212
|
"default": "null"
|
|
130191
130213
|
},
|
|
130214
|
+
{
|
|
130215
|
+
"kind": "field",
|
|
130216
|
+
"name": "options",
|
|
130217
|
+
"type": {
|
|
130218
|
+
"text": "SbbToggleOptionElement<T>[]"
|
|
130219
|
+
},
|
|
130220
|
+
"privacy": "public",
|
|
130221
|
+
"description": "The child instances of sbb-toggle-option as an array.",
|
|
130222
|
+
"readonly": true
|
|
130223
|
+
},
|
|
130192
130224
|
{
|
|
130193
130225
|
"kind": "method",
|
|
130194
|
-
"name": "
|
|
130226
|
+
"name": "_readFormData",
|
|
130227
|
+
"privacy": "private",
|
|
130228
|
+
"return": {
|
|
130229
|
+
"type": {
|
|
130230
|
+
"text": "Promise<T>"
|
|
130231
|
+
}
|
|
130232
|
+
},
|
|
130233
|
+
"parameters": [
|
|
130234
|
+
{
|
|
130235
|
+
"name": "formData",
|
|
130236
|
+
"type": {
|
|
130237
|
+
"text": "FormData"
|
|
130238
|
+
}
|
|
130239
|
+
}
|
|
130240
|
+
]
|
|
130241
|
+
},
|
|
130242
|
+
{
|
|
130243
|
+
"kind": "method",
|
|
130244
|
+
"name": "_updateToggle",
|
|
130195
130245
|
"privacy": "private",
|
|
130196
130246
|
"return": {
|
|
130197
130247
|
"type": {
|
|
@@ -130201,7 +130251,25 @@
|
|
|
130201
130251
|
},
|
|
130202
130252
|
{
|
|
130203
130253
|
"kind": "method",
|
|
130204
|
-
"name": "
|
|
130254
|
+
"name": "_valueChanged",
|
|
130255
|
+
"privacy": "private",
|
|
130256
|
+
"return": {
|
|
130257
|
+
"type": {
|
|
130258
|
+
"text": "void"
|
|
130259
|
+
}
|
|
130260
|
+
},
|
|
130261
|
+
"parameters": [
|
|
130262
|
+
{
|
|
130263
|
+
"name": "value",
|
|
130264
|
+
"type": {
|
|
130265
|
+
"text": "T | null"
|
|
130266
|
+
}
|
|
130267
|
+
}
|
|
130268
|
+
]
|
|
130269
|
+
},
|
|
130270
|
+
{
|
|
130271
|
+
"kind": "method",
|
|
130272
|
+
"name": "_updateDisabled",
|
|
130205
130273
|
"privacy": "private",
|
|
130206
130274
|
"return": {
|
|
130207
130275
|
"type": {
|
|
@@ -130217,17 +130285,44 @@
|
|
|
130217
130285
|
"type": {
|
|
130218
130286
|
"text": "void"
|
|
130219
130287
|
}
|
|
130220
|
-
}
|
|
130288
|
+
},
|
|
130289
|
+
"description": "Called on user interaction (click or keyboard)"
|
|
130221
130290
|
},
|
|
130222
130291
|
{
|
|
130223
130292
|
"kind": "method",
|
|
130224
|
-
"name": "
|
|
130293
|
+
"name": "_handleKeyDown",
|
|
130225
130294
|
"privacy": "private",
|
|
130226
130295
|
"return": {
|
|
130227
130296
|
"type": {
|
|
130228
130297
|
"text": "void"
|
|
130229
130298
|
}
|
|
130230
|
-
}
|
|
130299
|
+
},
|
|
130300
|
+
"parameters": [
|
|
130301
|
+
{
|
|
130302
|
+
"name": "evt",
|
|
130303
|
+
"type": {
|
|
130304
|
+
"text": "KeyboardEvent"
|
|
130305
|
+
}
|
|
130306
|
+
}
|
|
130307
|
+
]
|
|
130308
|
+
},
|
|
130309
|
+
{
|
|
130310
|
+
"kind": "method",
|
|
130311
|
+
"name": "_selectAndFocusOption",
|
|
130312
|
+
"privacy": "private",
|
|
130313
|
+
"return": {
|
|
130314
|
+
"type": {
|
|
130315
|
+
"text": "void"
|
|
130316
|
+
}
|
|
130317
|
+
},
|
|
130318
|
+
"parameters": [
|
|
130319
|
+
{
|
|
130320
|
+
"name": "option",
|
|
130321
|
+
"type": {
|
|
130322
|
+
"text": "SbbToggleOptionElement<T> | undefined"
|
|
130323
|
+
}
|
|
130324
|
+
}
|
|
130325
|
+
]
|
|
130231
130326
|
},
|
|
130232
130327
|
{
|
|
130233
130328
|
"kind": "field",
|
|
@@ -130275,393 +130370,248 @@
|
|
|
130275
130370
|
},
|
|
130276
130371
|
{
|
|
130277
130372
|
"kind": "field",
|
|
130278
|
-
"name": "
|
|
130373
|
+
"name": "formAssociated",
|
|
130279
130374
|
"type": {
|
|
130280
|
-
"text": "
|
|
130375
|
+
"text": "boolean"
|
|
130281
130376
|
},
|
|
130282
130377
|
"privacy": "public",
|
|
130283
|
-
"
|
|
130284
|
-
"
|
|
130285
|
-
"attribute": "icon-name",
|
|
130378
|
+
"static": true,
|
|
130379
|
+
"default": "true",
|
|
130286
130380
|
"inheritedFrom": {
|
|
130287
|
-
"name": "
|
|
130288
|
-
"module": "
|
|
130381
|
+
"name": "SbbFormAssociatedMixin",
|
|
130382
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130289
130383
|
}
|
|
130290
130384
|
},
|
|
130291
130385
|
{
|
|
130292
|
-
"kind": "
|
|
130293
|
-
"name": "
|
|
130294
|
-
"
|
|
130295
|
-
|
|
130296
|
-
"type": {
|
|
130297
|
-
"text": "TemplateResult"
|
|
130298
|
-
}
|
|
130386
|
+
"kind": "field",
|
|
130387
|
+
"name": "form",
|
|
130388
|
+
"type": {
|
|
130389
|
+
"text": "HTMLFormElement | null"
|
|
130299
130390
|
},
|
|
130300
|
-
"
|
|
130301
|
-
|
|
130302
|
-
|
|
130303
|
-
"optional": true,
|
|
130304
|
-
"type": {
|
|
130305
|
-
"text": "string"
|
|
130306
|
-
}
|
|
130307
|
-
}
|
|
130308
|
-
],
|
|
130391
|
+
"privacy": "public",
|
|
130392
|
+
"description": "Returns the form owner of this element.",
|
|
130393
|
+
"readonly": true,
|
|
130309
130394
|
"inheritedFrom": {
|
|
130310
|
-
"name": "
|
|
130311
|
-
"module": "
|
|
130395
|
+
"name": "SbbFormAssociatedMixin",
|
|
130396
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130312
130397
|
}
|
|
130313
130398
|
},
|
|
130314
130399
|
{
|
|
130315
|
-
"kind": "
|
|
130316
|
-
"name": "
|
|
130317
|
-
"privacy": "
|
|
130318
|
-
"
|
|
130319
|
-
|
|
130320
|
-
|
|
130321
|
-
}
|
|
130400
|
+
"kind": "field",
|
|
130401
|
+
"name": "name",
|
|
130402
|
+
"privacy": "public",
|
|
130403
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
130404
|
+
"type": {
|
|
130405
|
+
"text": "string"
|
|
130322
130406
|
},
|
|
130407
|
+
"attribute": "name",
|
|
130323
130408
|
"inheritedFrom": {
|
|
130324
|
-
"name": "
|
|
130325
|
-
"module": "
|
|
130409
|
+
"name": "SbbFormAssociatedMixin",
|
|
130410
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130326
130411
|
}
|
|
130327
130412
|
},
|
|
130328
130413
|
{
|
|
130329
|
-
"kind": "
|
|
130330
|
-
"name": "
|
|
130331
|
-
"
|
|
130332
|
-
|
|
130333
|
-
"type": {
|
|
130334
|
-
"text": "string"
|
|
130335
|
-
}
|
|
130414
|
+
"kind": "field",
|
|
130415
|
+
"name": "validity",
|
|
130416
|
+
"type": {
|
|
130417
|
+
"text": "ValidityState"
|
|
130336
130418
|
},
|
|
130419
|
+
"privacy": "public",
|
|
130420
|
+
"description": "Returns the ValidityState object for this element.",
|
|
130421
|
+
"readonly": true,
|
|
130337
130422
|
"inheritedFrom": {
|
|
130338
|
-
"name": "
|
|
130339
|
-
"module": "
|
|
130423
|
+
"name": "SbbFormAssociatedMixin",
|
|
130424
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130340
130425
|
}
|
|
130341
130426
|
},
|
|
130342
130427
|
{
|
|
130343
130428
|
"kind": "field",
|
|
130344
|
-
"name": "
|
|
130429
|
+
"name": "validationMessage",
|
|
130345
130430
|
"type": {
|
|
130346
|
-
"text": "
|
|
130431
|
+
"text": "string"
|
|
130347
130432
|
},
|
|
130348
|
-
"privacy": "
|
|
130349
|
-
"
|
|
130433
|
+
"privacy": "public",
|
|
130434
|
+
"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.",
|
|
130435
|
+
"readonly": true,
|
|
130350
130436
|
"inheritedFrom": {
|
|
130351
|
-
"name": "
|
|
130352
|
-
"module": "core/
|
|
130437
|
+
"name": "SbbFormAssociatedMixin",
|
|
130438
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130353
130439
|
}
|
|
130354
130440
|
},
|
|
130355
130441
|
{
|
|
130356
130442
|
"kind": "field",
|
|
130357
|
-
"name": "
|
|
130358
|
-
"
|
|
130359
|
-
|
|
130443
|
+
"name": "willValidate",
|
|
130444
|
+
"type": {
|
|
130445
|
+
"text": "boolean"
|
|
130446
|
+
},
|
|
130447
|
+
"privacy": "public",
|
|
130448
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
130449
|
+
"readonly": true,
|
|
130360
130450
|
"inheritedFrom": {
|
|
130361
|
-
"name": "
|
|
130362
|
-
"module": "core/
|
|
130451
|
+
"name": "SbbFormAssociatedMixin",
|
|
130452
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130363
130453
|
}
|
|
130364
130454
|
},
|
|
130365
130455
|
{
|
|
130366
130456
|
"kind": "field",
|
|
130367
|
-
"name": "
|
|
130368
|
-
"type": {
|
|
130369
|
-
"text": "(hydrationRequired: boolean) => void"
|
|
130370
|
-
},
|
|
130457
|
+
"name": "_validityStates",
|
|
130371
130458
|
"privacy": "private",
|
|
130459
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
130372
130460
|
"inheritedFrom": {
|
|
130373
|
-
"name": "
|
|
130374
|
-
"module": "core/
|
|
130461
|
+
"name": "SbbFormAssociatedMixin",
|
|
130462
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130375
130463
|
}
|
|
130376
130464
|
},
|
|
130377
130465
|
{
|
|
130378
130466
|
"kind": "field",
|
|
130379
|
-
"name": "
|
|
130467
|
+
"name": "formDisabled",
|
|
130380
130468
|
"type": {
|
|
130381
130469
|
"text": "boolean"
|
|
130382
130470
|
},
|
|
130383
130471
|
"privacy": "protected",
|
|
130384
|
-
"
|
|
130385
|
-
"
|
|
130472
|
+
"default": "false",
|
|
130473
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
130386
130474
|
"inheritedFrom": {
|
|
130387
|
-
"name": "
|
|
130388
|
-
"module": "core/
|
|
130389
|
-
}
|
|
130390
|
-
"default": "!!this.shadowRoot"
|
|
130475
|
+
"name": "SbbFormAssociatedMixin",
|
|
130476
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130477
|
+
}
|
|
130391
130478
|
},
|
|
130392
130479
|
{
|
|
130393
130480
|
"kind": "method",
|
|
130394
|
-
"name": "
|
|
130395
|
-
"privacy": "
|
|
130481
|
+
"name": "checkValidity",
|
|
130482
|
+
"privacy": "public",
|
|
130396
130483
|
"return": {
|
|
130397
130484
|
"type": {
|
|
130398
|
-
"text": "
|
|
130485
|
+
"text": "boolean"
|
|
130399
130486
|
}
|
|
130400
130487
|
},
|
|
130401
|
-
"
|
|
130402
|
-
{
|
|
130403
|
-
"name": "value",
|
|
130404
|
-
"type": {
|
|
130405
|
-
"text": "string"
|
|
130406
|
-
}
|
|
130407
|
-
},
|
|
130408
|
-
{
|
|
130409
|
-
"name": "force",
|
|
130410
|
-
"optional": true,
|
|
130411
|
-
"type": {
|
|
130412
|
-
"text": "boolean"
|
|
130413
|
-
}
|
|
130414
|
-
}
|
|
130415
|
-
],
|
|
130488
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
130416
130489
|
"inheritedFrom": {
|
|
130417
|
-
"name": "
|
|
130418
|
-
"module": "core/
|
|
130490
|
+
"name": "SbbFormAssociatedMixin",
|
|
130491
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130419
130492
|
}
|
|
130420
130493
|
},
|
|
130421
130494
|
{
|
|
130422
|
-
"kind": "
|
|
130423
|
-
"name": "
|
|
130424
|
-
"type": {
|
|
130425
|
-
"text": "boolean"
|
|
130426
|
-
},
|
|
130495
|
+
"kind": "method",
|
|
130496
|
+
"name": "reportValidity",
|
|
130427
130497
|
"privacy": "public",
|
|
130428
|
-
"
|
|
130429
|
-
|
|
130430
|
-
|
|
130431
|
-
|
|
130432
|
-
"module": "core/base-elements/element.js"
|
|
130433
|
-
}
|
|
130434
|
-
},
|
|
130435
|
-
{
|
|
130436
|
-
"kind": "field",
|
|
130437
|
-
"name": "_controllers",
|
|
130438
|
-
"type": {
|
|
130439
|
-
"text": "Set<SbbReactiveController> | undefined"
|
|
130498
|
+
"return": {
|
|
130499
|
+
"type": {
|
|
130500
|
+
"text": "boolean"
|
|
130501
|
+
}
|
|
130440
130502
|
},
|
|
130441
|
-
"
|
|
130503
|
+
"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.",
|
|
130442
130504
|
"inheritedFrom": {
|
|
130443
|
-
"name": "
|
|
130444
|
-
"module": "core/
|
|
130505
|
+
"name": "SbbFormAssociatedMixin",
|
|
130506
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130445
130507
|
}
|
|
130446
|
-
}
|
|
130447
|
-
],
|
|
130448
|
-
"attributes": [
|
|
130449
|
-
{
|
|
130450
|
-
"name": "checked",
|
|
130451
|
-
"type": {
|
|
130452
|
-
"text": "boolean"
|
|
130453
|
-
},
|
|
130454
|
-
"default": "false",
|
|
130455
|
-
"description": "Whether the toggle-option is checked.",
|
|
130456
|
-
"fieldName": "checked"
|
|
130457
|
-
},
|
|
130458
|
-
{
|
|
130459
|
-
"name": "value",
|
|
130460
|
-
"type": {
|
|
130461
|
-
"text": "T | null"
|
|
130462
|
-
},
|
|
130463
|
-
"default": "null",
|
|
130464
|
-
"description": "Value of toggle-option.",
|
|
130465
|
-
"fieldName": "value"
|
|
130466
130508
|
},
|
|
130467
130509
|
{
|
|
130468
|
-
"
|
|
130469
|
-
"
|
|
130470
|
-
"
|
|
130471
|
-
"
|
|
130472
|
-
"
|
|
130510
|
+
"kind": "method",
|
|
130511
|
+
"name": "setCustomValidity",
|
|
130512
|
+
"privacy": "public",
|
|
130513
|
+
"return": {
|
|
130514
|
+
"type": {
|
|
130515
|
+
"text": "void"
|
|
130516
|
+
}
|
|
130473
130517
|
},
|
|
130474
|
-
"
|
|
130518
|
+
"parameters": [
|
|
130519
|
+
{
|
|
130520
|
+
"name": "message",
|
|
130521
|
+
"type": {
|
|
130522
|
+
"text": "string"
|
|
130523
|
+
}
|
|
130524
|
+
}
|
|
130525
|
+
],
|
|
130526
|
+
"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.",
|
|
130475
130527
|
"inheritedFrom": {
|
|
130476
|
-
"name": "
|
|
130477
|
-
"module": "core/mixins/
|
|
130528
|
+
"name": "SbbFormAssociatedMixin",
|
|
130529
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130478
130530
|
}
|
|
130479
130531
|
},
|
|
130480
130532
|
{
|
|
130481
|
-
"
|
|
130482
|
-
"
|
|
130483
|
-
|
|
130533
|
+
"kind": "method",
|
|
130534
|
+
"name": "_hasDisabledAncestor",
|
|
130535
|
+
"privacy": "private",
|
|
130536
|
+
"return": {
|
|
130537
|
+
"type": {
|
|
130538
|
+
"text": "boolean"
|
|
130539
|
+
}
|
|
130484
130540
|
},
|
|
130485
|
-
"default": "''",
|
|
130486
|
-
"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.",
|
|
130487
|
-
"fieldName": "iconName",
|
|
130488
130541
|
"inheritedFrom": {
|
|
130489
|
-
"name": "
|
|
130490
|
-
"module": "
|
|
130542
|
+
"name": "SbbFormAssociatedMixin",
|
|
130543
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130491
130544
|
}
|
|
130492
|
-
}
|
|
130493
|
-
],
|
|
130494
|
-
"mixins": [
|
|
130495
|
-
{
|
|
130496
|
-
"name": "SbbDisabledMixin",
|
|
130497
|
-
"module": "core/mixins.js"
|
|
130498
130545
|
},
|
|
130499
130546
|
{
|
|
130500
|
-
"
|
|
130501
|
-
"
|
|
130502
|
-
|
|
130503
|
-
|
|
130504
|
-
|
|
130505
|
-
|
|
130506
|
-
|
|
130507
|
-
},
|
|
130508
|
-
"tagName": "sbb-toggle-option",
|
|
130509
|
-
"customElement": true,
|
|
130510
|
-
"classGenerics": "T = string"
|
|
130511
|
-
}
|
|
130512
|
-
],
|
|
130513
|
-
"exports": [
|
|
130514
|
-
{
|
|
130515
|
-
"kind": "js",
|
|
130516
|
-
"name": "SbbToggleOptionElement",
|
|
130517
|
-
"declaration": {
|
|
130518
|
-
"name": "SbbToggleOptionElement",
|
|
130519
|
-
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
130520
|
-
}
|
|
130521
|
-
}
|
|
130522
|
-
]
|
|
130523
|
-
},
|
|
130524
|
-
{
|
|
130525
|
-
"kind": "javascript-module",
|
|
130526
|
-
"path": "toggle/toggle/toggle.component.js",
|
|
130527
|
-
"declarations": [
|
|
130528
|
-
{
|
|
130529
|
-
"kind": "class",
|
|
130530
|
-
"description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
|
|
130531
|
-
"name": "SbbToggleElement",
|
|
130532
|
-
"slots": [
|
|
130533
|
-
{
|
|
130534
|
-
"description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
|
|
130535
|
-
"name": ""
|
|
130536
|
-
}
|
|
130537
|
-
],
|
|
130538
|
-
"members": [
|
|
130539
|
-
{
|
|
130540
|
-
"kind": "field",
|
|
130541
|
-
"name": "elementName",
|
|
130542
|
-
"type": {
|
|
130543
|
-
"text": "string"
|
|
130547
|
+
"kind": "method",
|
|
130548
|
+
"name": "updateFormValue",
|
|
130549
|
+
"privacy": "protected",
|
|
130550
|
+
"return": {
|
|
130551
|
+
"type": {
|
|
130552
|
+
"text": "void"
|
|
130553
|
+
}
|
|
130544
130554
|
},
|
|
130545
|
-
"
|
|
130546
|
-
"static": true,
|
|
130547
|
-
"readonly": true,
|
|
130548
|
-
"default": "'sbb-toggle'",
|
|
130555
|
+
"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",
|
|
130549
130556
|
"inheritedFrom": {
|
|
130550
|
-
"name": "
|
|
130551
|
-
"module": "core/
|
|
130552
|
-
}
|
|
130553
|
-
},
|
|
130554
|
-
{
|
|
130555
|
-
"kind": "field",
|
|
130556
|
-
"name": "role",
|
|
130557
|
-
"type": {
|
|
130558
|
-
"text": "string"
|
|
130559
|
-
},
|
|
130560
|
-
"privacy": "public",
|
|
130561
|
-
"static": true,
|
|
130562
|
-
"readonly": true,
|
|
130563
|
-
"default": "'radiogroup'"
|
|
130564
|
-
},
|
|
130565
|
-
{
|
|
130566
|
-
"kind": "field",
|
|
130567
|
-
"name": "events",
|
|
130568
|
-
"privacy": "public",
|
|
130569
|
-
"static": true,
|
|
130570
|
-
"readonly": true,
|
|
130571
|
-
"default": "{ change: 'change', }",
|
|
130572
|
-
"type": {
|
|
130573
|
-
"text": "{\n change: 'change',\n }"
|
|
130557
|
+
"name": "SbbFormAssociatedMixin",
|
|
130558
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130574
130559
|
}
|
|
130575
130560
|
},
|
|
130576
130561
|
{
|
|
130577
|
-
"kind": "
|
|
130578
|
-
"name": "
|
|
130579
|
-
"
|
|
130580
|
-
|
|
130581
|
-
|
|
130582
|
-
|
|
130583
|
-
|
|
130584
|
-
"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.",
|
|
130585
|
-
"attribute": "even",
|
|
130586
|
-
"reflects": true
|
|
130587
|
-
},
|
|
130588
|
-
{
|
|
130589
|
-
"kind": "field",
|
|
130590
|
-
"name": "size",
|
|
130591
|
-
"type": {
|
|
130592
|
-
"text": "'s' | 'm'"
|
|
130593
|
-
},
|
|
130594
|
-
"privacy": "public",
|
|
130595
|
-
"description": "Size variant, either m or s.",
|
|
130596
|
-
"default": "'m' / 's' (lean)",
|
|
130597
|
-
"attribute": "size",
|
|
130598
|
-
"reflects": true
|
|
130599
|
-
},
|
|
130600
|
-
{
|
|
130601
|
-
"kind": "field",
|
|
130602
|
-
"name": "value",
|
|
130603
|
-
"type": {
|
|
130604
|
-
"text": "(T = string) | null"
|
|
130562
|
+
"kind": "method",
|
|
130563
|
+
"name": "formState",
|
|
130564
|
+
"privacy": "protected",
|
|
130565
|
+
"return": {
|
|
130566
|
+
"type": {
|
|
130567
|
+
"text": "FormRestoreState"
|
|
130568
|
+
}
|
|
130605
130569
|
},
|
|
130606
|
-
"privacy": "public",
|
|
130607
|
-
"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).",
|
|
130608
|
-
"attribute": "value",
|
|
130609
130570
|
"inheritedFrom": {
|
|
130610
130571
|
"name": "SbbFormAssociatedMixin",
|
|
130611
130572
|
"module": "core/mixins/form-associated-mixin.js"
|
|
130612
130573
|
}
|
|
130613
130574
|
},
|
|
130614
|
-
{
|
|
130615
|
-
"kind": "field",
|
|
130616
|
-
"name": "_fallbackValue",
|
|
130617
|
-
"type": {
|
|
130618
|
-
"text": "T | null"
|
|
130619
|
-
},
|
|
130620
|
-
"privacy": "private",
|
|
130621
|
-
"default": "null"
|
|
130622
|
-
},
|
|
130623
|
-
{
|
|
130624
|
-
"kind": "field",
|
|
130625
|
-
"name": "options",
|
|
130626
|
-
"type": {
|
|
130627
|
-
"text": "SbbToggleOptionElement<T>[]"
|
|
130628
|
-
},
|
|
130629
|
-
"privacy": "public",
|
|
130630
|
-
"description": "The child instances of sbb-toggle-option as an array.",
|
|
130631
|
-
"readonly": true
|
|
130632
|
-
},
|
|
130633
130575
|
{
|
|
130634
130576
|
"kind": "method",
|
|
130635
|
-
"name": "
|
|
130636
|
-
"privacy": "
|
|
130577
|
+
"name": "setValidityFlag",
|
|
130578
|
+
"privacy": "protected",
|
|
130637
130579
|
"return": {
|
|
130638
130580
|
"type": {
|
|
130639
|
-
"text": "
|
|
130581
|
+
"text": "void"
|
|
130640
130582
|
}
|
|
130641
130583
|
},
|
|
130642
130584
|
"parameters": [
|
|
130643
130585
|
{
|
|
130644
|
-
"name": "
|
|
130586
|
+
"name": "flag",
|
|
130645
130587
|
"type": {
|
|
130646
|
-
"text": "
|
|
130588
|
+
"text": "T"
|
|
130589
|
+
}
|
|
130590
|
+
},
|
|
130591
|
+
{
|
|
130592
|
+
"name": "message",
|
|
130593
|
+
"type": {
|
|
130594
|
+
"text": "string"
|
|
130595
|
+
}
|
|
130596
|
+
},
|
|
130597
|
+
{
|
|
130598
|
+
"name": "flagValue",
|
|
130599
|
+
"optional": true,
|
|
130600
|
+
"type": {
|
|
130601
|
+
"text": "ValidityStateFlags[T]"
|
|
130647
130602
|
}
|
|
130648
130603
|
}
|
|
130649
|
-
]
|
|
130650
|
-
|
|
130651
|
-
|
|
130652
|
-
|
|
130653
|
-
|
|
130654
|
-
"privacy": "private",
|
|
130655
|
-
"return": {
|
|
130656
|
-
"type": {
|
|
130657
|
-
"text": "void"
|
|
130658
|
-
}
|
|
130604
|
+
],
|
|
130605
|
+
"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).",
|
|
130606
|
+
"inheritedFrom": {
|
|
130607
|
+
"name": "SbbFormAssociatedMixin",
|
|
130608
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130659
130609
|
}
|
|
130660
130610
|
},
|
|
130661
130611
|
{
|
|
130662
130612
|
"kind": "method",
|
|
130663
|
-
"name": "
|
|
130664
|
-
"privacy": "
|
|
130613
|
+
"name": "removeValidityFlag",
|
|
130614
|
+
"privacy": "protected",
|
|
130665
130615
|
"return": {
|
|
130666
130616
|
"type": {
|
|
130667
130617
|
"text": "void"
|
|
@@ -130669,117 +130619,152 @@
|
|
|
130669
130619
|
},
|
|
130670
130620
|
"parameters": [
|
|
130671
130621
|
{
|
|
130672
|
-
"name": "
|
|
130622
|
+
"name": "flag",
|
|
130673
130623
|
"type": {
|
|
130674
|
-
"text": "T
|
|
130624
|
+
"text": "T"
|
|
130675
130625
|
}
|
|
130676
130626
|
}
|
|
130677
|
-
]
|
|
130678
|
-
|
|
130679
|
-
|
|
130680
|
-
|
|
130681
|
-
|
|
130682
|
-
"privacy": "private",
|
|
130683
|
-
"return": {
|
|
130684
|
-
"type": {
|
|
130685
|
-
"text": "void"
|
|
130686
|
-
}
|
|
130627
|
+
],
|
|
130628
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
130629
|
+
"inheritedFrom": {
|
|
130630
|
+
"name": "SbbFormAssociatedMixin",
|
|
130631
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130687
130632
|
}
|
|
130688
130633
|
},
|
|
130689
130634
|
{
|
|
130690
130635
|
"kind": "method",
|
|
130691
|
-
"name": "
|
|
130692
|
-
"privacy": "
|
|
130636
|
+
"name": "validate",
|
|
130637
|
+
"privacy": "protected",
|
|
130693
130638
|
"return": {
|
|
130694
130639
|
"type": {
|
|
130695
130640
|
"text": "void"
|
|
130696
130641
|
}
|
|
130697
130642
|
},
|
|
130698
|
-
"description": "
|
|
130643
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
130644
|
+
"inheritedFrom": {
|
|
130645
|
+
"name": "SbbFormAssociatedMixin",
|
|
130646
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130647
|
+
}
|
|
130699
130648
|
},
|
|
130700
130649
|
{
|
|
130701
130650
|
"kind": "method",
|
|
130702
|
-
"name": "
|
|
130703
|
-
"privacy": "
|
|
130651
|
+
"name": "shouldValidate",
|
|
130652
|
+
"privacy": "protected",
|
|
130704
130653
|
"return": {
|
|
130705
130654
|
"type": {
|
|
130706
|
-
"text": "
|
|
130655
|
+
"text": "boolean"
|
|
130707
130656
|
}
|
|
130708
130657
|
},
|
|
130709
130658
|
"parameters": [
|
|
130710
130659
|
{
|
|
130711
|
-
"name": "
|
|
130660
|
+
"name": "name",
|
|
130712
130661
|
"type": {
|
|
130713
|
-
"text": "
|
|
130662
|
+
"text": "PropertyKey | undefined"
|
|
130714
130663
|
}
|
|
130715
130664
|
}
|
|
130716
|
-
]
|
|
130665
|
+
],
|
|
130666
|
+
"description": "Whether validation should be run on a property change with the given name.",
|
|
130667
|
+
"inheritedFrom": {
|
|
130668
|
+
"name": "SbbFormAssociatedMixin",
|
|
130669
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130670
|
+
}
|
|
130717
130671
|
},
|
|
130718
130672
|
{
|
|
130719
130673
|
"kind": "method",
|
|
130720
|
-
"name": "
|
|
130674
|
+
"name": "_setInternalValidity",
|
|
130721
130675
|
"privacy": "private",
|
|
130722
130676
|
"return": {
|
|
130723
130677
|
"type": {
|
|
130724
130678
|
"text": "void"
|
|
130725
130679
|
}
|
|
130726
130680
|
},
|
|
130727
|
-
"
|
|
130728
|
-
|
|
130729
|
-
|
|
130730
|
-
|
|
130731
|
-
"text": "SbbToggleOptionElement<T> | undefined"
|
|
130732
|
-
}
|
|
130733
|
-
}
|
|
130734
|
-
]
|
|
130681
|
+
"inheritedFrom": {
|
|
130682
|
+
"name": "SbbFormAssociatedMixin",
|
|
130683
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
130684
|
+
}
|
|
130735
130685
|
},
|
|
130736
130686
|
{
|
|
130737
130687
|
"kind": "field",
|
|
130738
|
-
"name": "
|
|
130739
|
-
"privacy": "public",
|
|
130740
|
-
"description": "Whether the component is disabled.",
|
|
130741
|
-
"default": "false",
|
|
130688
|
+
"name": "_hydrationRequired",
|
|
130742
130689
|
"type": {
|
|
130743
130690
|
"text": "boolean"
|
|
130744
130691
|
},
|
|
130745
|
-
"
|
|
130746
|
-
"
|
|
130692
|
+
"privacy": "private",
|
|
130693
|
+
"default": "!!this.shadowRoot",
|
|
130747
130694
|
"inheritedFrom": {
|
|
130748
|
-
"name": "
|
|
130749
|
-
"module": "core/
|
|
130695
|
+
"name": "SbbElement",
|
|
130696
|
+
"module": "core/base-elements/element.js"
|
|
130750
130697
|
}
|
|
130751
130698
|
},
|
|
130752
130699
|
{
|
|
130753
130700
|
"kind": "field",
|
|
130754
|
-
"name": "
|
|
130701
|
+
"name": "_hydrationComplete",
|
|
130755
130702
|
"privacy": "private",
|
|
130703
|
+
"default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
|
|
130704
|
+
"inheritedFrom": {
|
|
130705
|
+
"name": "SbbElement",
|
|
130706
|
+
"module": "core/base-elements/element.js"
|
|
130707
|
+
}
|
|
130708
|
+
},
|
|
130709
|
+
{
|
|
130710
|
+
"kind": "field",
|
|
130711
|
+
"name": "_resolveHydration",
|
|
130756
130712
|
"type": {
|
|
130757
|
-
"text": "boolean"
|
|
130713
|
+
"text": "(hydrationRequired: boolean) => void"
|
|
130758
130714
|
},
|
|
130759
|
-
"
|
|
130715
|
+
"privacy": "private",
|
|
130760
130716
|
"inheritedFrom": {
|
|
130761
|
-
"name": "
|
|
130762
|
-
"module": "core/
|
|
130717
|
+
"name": "SbbElement",
|
|
130718
|
+
"module": "core/base-elements/element.js"
|
|
130763
130719
|
}
|
|
130764
130720
|
},
|
|
130721
|
+
{
|
|
130722
|
+
"kind": "field",
|
|
130723
|
+
"name": "hydrationRequired",
|
|
130724
|
+
"type": {
|
|
130725
|
+
"text": "boolean"
|
|
130726
|
+
},
|
|
130727
|
+
"privacy": "protected",
|
|
130728
|
+
"description": "Returns whether hydration is required and not completed.",
|
|
130729
|
+
"readonly": true,
|
|
130730
|
+
"inheritedFrom": {
|
|
130731
|
+
"name": "SbbElement",
|
|
130732
|
+
"module": "core/base-elements/element.js"
|
|
130733
|
+
},
|
|
130734
|
+
"default": "!!this.shadowRoot"
|
|
130735
|
+
},
|
|
130765
130736
|
{
|
|
130766
130737
|
"kind": "method",
|
|
130767
|
-
"name": "
|
|
130738
|
+
"name": "toggleState",
|
|
130768
130739
|
"privacy": "protected",
|
|
130769
130740
|
"return": {
|
|
130770
130741
|
"type": {
|
|
130771
|
-
"text": "
|
|
130742
|
+
"text": "void"
|
|
130772
130743
|
}
|
|
130773
130744
|
},
|
|
130774
|
-
"
|
|
130745
|
+
"parameters": [
|
|
130746
|
+
{
|
|
130747
|
+
"name": "value",
|
|
130748
|
+
"type": {
|
|
130749
|
+
"text": "string"
|
|
130750
|
+
}
|
|
130751
|
+
},
|
|
130752
|
+
{
|
|
130753
|
+
"name": "force",
|
|
130754
|
+
"optional": true,
|
|
130755
|
+
"type": {
|
|
130756
|
+
"text": "boolean"
|
|
130757
|
+
}
|
|
130758
|
+
}
|
|
130759
|
+
],
|
|
130775
130760
|
"inheritedFrom": {
|
|
130776
|
-
"name": "
|
|
130777
|
-
"module": "core/
|
|
130761
|
+
"name": "SbbElement",
|
|
130762
|
+
"module": "core/base-elements/element.js"
|
|
130778
130763
|
}
|
|
130779
130764
|
},
|
|
130780
130765
|
{
|
|
130781
130766
|
"kind": "field",
|
|
130782
|
-
"name": "
|
|
130767
|
+
"name": "['_$sbbElement$']",
|
|
130783
130768
|
"type": {
|
|
130784
130769
|
"text": "boolean"
|
|
130785
130770
|
},
|
|
@@ -130787,309 +130772,340 @@
|
|
|
130787
130772
|
"static": true,
|
|
130788
130773
|
"default": "true",
|
|
130789
130774
|
"inheritedFrom": {
|
|
130790
|
-
"name": "
|
|
130791
|
-
"module": "core/
|
|
130775
|
+
"name": "SbbElement",
|
|
130776
|
+
"module": "core/base-elements/element.js"
|
|
130792
130777
|
}
|
|
130793
130778
|
},
|
|
130794
130779
|
{
|
|
130795
130780
|
"kind": "field",
|
|
130796
|
-
"name": "
|
|
130781
|
+
"name": "_controllers",
|
|
130797
130782
|
"type": {
|
|
130798
|
-
"text": "
|
|
130783
|
+
"text": "Set<SbbReactiveController> | undefined"
|
|
130799
130784
|
},
|
|
130800
|
-
"privacy": "
|
|
130801
|
-
"description": "Returns the form owner of this element.",
|
|
130802
|
-
"readonly": true,
|
|
130785
|
+
"privacy": "private",
|
|
130803
130786
|
"inheritedFrom": {
|
|
130804
|
-
"name": "
|
|
130805
|
-
"module": "core/
|
|
130787
|
+
"name": "SbbElement",
|
|
130788
|
+
"module": "core/base-elements/element.js"
|
|
130789
|
+
}
|
|
130790
|
+
}
|
|
130791
|
+
],
|
|
130792
|
+
"events": [
|
|
130793
|
+
{
|
|
130794
|
+
"name": "change",
|
|
130795
|
+
"type": {
|
|
130796
|
+
"text": "Event"
|
|
130797
|
+
},
|
|
130798
|
+
"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."
|
|
130799
|
+
}
|
|
130800
|
+
],
|
|
130801
|
+
"attributes": [
|
|
130802
|
+
{
|
|
130803
|
+
"name": "even",
|
|
130804
|
+
"type": {
|
|
130805
|
+
"text": "boolean"
|
|
130806
|
+
},
|
|
130807
|
+
"default": "false",
|
|
130808
|
+
"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.",
|
|
130809
|
+
"fieldName": "even"
|
|
130810
|
+
},
|
|
130811
|
+
{
|
|
130812
|
+
"name": "size",
|
|
130813
|
+
"type": {
|
|
130814
|
+
"text": "'s' | 'm'"
|
|
130815
|
+
},
|
|
130816
|
+
"description": "Size variant, either m or s.",
|
|
130817
|
+
"default": "'m' / 's' (lean)",
|
|
130818
|
+
"fieldName": "size"
|
|
130819
|
+
},
|
|
130820
|
+
{
|
|
130821
|
+
"name": "value",
|
|
130822
|
+
"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).",
|
|
130823
|
+
"type": {
|
|
130824
|
+
"text": "T | null"
|
|
130825
|
+
},
|
|
130826
|
+
"fieldName": "value"
|
|
130827
|
+
},
|
|
130828
|
+
{
|
|
130829
|
+
"name": "disabled",
|
|
130830
|
+
"description": "Whether the component is disabled.",
|
|
130831
|
+
"default": "false",
|
|
130832
|
+
"type": {
|
|
130833
|
+
"text": "boolean"
|
|
130834
|
+
},
|
|
130835
|
+
"fieldName": "disabled",
|
|
130836
|
+
"inheritedFrom": {
|
|
130837
|
+
"name": "SbbDisabledMixin",
|
|
130838
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
130806
130839
|
}
|
|
130807
130840
|
},
|
|
130808
130841
|
{
|
|
130809
|
-
"kind": "field",
|
|
130810
130842
|
"name": "name",
|
|
130811
|
-
"privacy": "public",
|
|
130812
130843
|
"description": "Name of the form element. Will be read from name attribute.",
|
|
130813
130844
|
"type": {
|
|
130814
130845
|
"text": "string"
|
|
130815
130846
|
},
|
|
130816
|
-
"
|
|
130847
|
+
"fieldName": "name",
|
|
130817
130848
|
"inheritedFrom": {
|
|
130818
130849
|
"name": "SbbFormAssociatedMixin",
|
|
130819
130850
|
"module": "core/mixins/form-associated-mixin.js"
|
|
130820
130851
|
}
|
|
130852
|
+
}
|
|
130853
|
+
],
|
|
130854
|
+
"mixins": [
|
|
130855
|
+
{
|
|
130856
|
+
"name": "SbbDisabledMixin",
|
|
130857
|
+
"module": "core/mixins.js"
|
|
130858
|
+
},
|
|
130859
|
+
{
|
|
130860
|
+
"name": "SbbFormAssociatedMixin",
|
|
130861
|
+
"module": "core/mixins.js"
|
|
130862
|
+
}
|
|
130863
|
+
],
|
|
130864
|
+
"superclass": {
|
|
130865
|
+
"name": "SbbElement",
|
|
130866
|
+
"module": "core/base-elements.js"
|
|
130867
|
+
},
|
|
130868
|
+
"tagName": "sbb-toggle",
|
|
130869
|
+
"customElement": true,
|
|
130870
|
+
"classGenerics": "T = string"
|
|
130871
|
+
}
|
|
130872
|
+
],
|
|
130873
|
+
"exports": [
|
|
130874
|
+
{
|
|
130875
|
+
"kind": "js",
|
|
130876
|
+
"name": "SbbToggleElement",
|
|
130877
|
+
"declaration": {
|
|
130878
|
+
"name": "SbbToggleElement",
|
|
130879
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
130880
|
+
}
|
|
130881
|
+
}
|
|
130882
|
+
]
|
|
130883
|
+
},
|
|
130884
|
+
{
|
|
130885
|
+
"kind": "javascript-module",
|
|
130886
|
+
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
130887
|
+
"declarations": [
|
|
130888
|
+
{
|
|
130889
|
+
"kind": "class",
|
|
130890
|
+
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
130891
|
+
"name": "SbbToggleOptionElement",
|
|
130892
|
+
"slots": [
|
|
130893
|
+
{
|
|
130894
|
+
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
130895
|
+
"name": ""
|
|
130821
130896
|
},
|
|
130897
|
+
{
|
|
130898
|
+
"description": "Slot used to render the `sbb-icon`.",
|
|
130899
|
+
"name": "icon"
|
|
130900
|
+
}
|
|
130901
|
+
],
|
|
130902
|
+
"members": [
|
|
130822
130903
|
{
|
|
130823
130904
|
"kind": "field",
|
|
130824
|
-
"name": "
|
|
130905
|
+
"name": "elementName",
|
|
130825
130906
|
"type": {
|
|
130826
|
-
"text": "
|
|
130907
|
+
"text": "string"
|
|
130827
130908
|
},
|
|
130828
130909
|
"privacy": "public",
|
|
130829
|
-
"
|
|
130910
|
+
"static": true,
|
|
130830
130911
|
"readonly": true,
|
|
130912
|
+
"default": "'sbb-toggle-option'",
|
|
130831
130913
|
"inheritedFrom": {
|
|
130832
|
-
"name": "
|
|
130833
|
-
"module": "core/
|
|
130914
|
+
"name": "SbbElement",
|
|
130915
|
+
"module": "core/base-elements/element.js"
|
|
130834
130916
|
}
|
|
130835
130917
|
},
|
|
130836
130918
|
{
|
|
130837
130919
|
"kind": "field",
|
|
130838
|
-
"name": "
|
|
130920
|
+
"name": "role",
|
|
130839
130921
|
"type": {
|
|
130840
130922
|
"text": "string"
|
|
130841
130923
|
},
|
|
130842
130924
|
"privacy": "public",
|
|
130843
|
-
"
|
|
130925
|
+
"static": true,
|
|
130844
130926
|
"readonly": true,
|
|
130845
|
-
"
|
|
130846
|
-
"name": "SbbFormAssociatedMixin",
|
|
130847
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
130848
|
-
}
|
|
130927
|
+
"default": "'radio'"
|
|
130849
130928
|
},
|
|
130850
130929
|
{
|
|
130851
130930
|
"kind": "field",
|
|
130852
|
-
"name": "
|
|
130931
|
+
"name": "checked",
|
|
130853
130932
|
"type": {
|
|
130854
130933
|
"text": "boolean"
|
|
130855
130934
|
},
|
|
130856
130935
|
"privacy": "public",
|
|
130857
|
-
"
|
|
130858
|
-
"
|
|
130859
|
-
"
|
|
130860
|
-
|
|
130861
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
130862
|
-
}
|
|
130863
|
-
},
|
|
130864
|
-
{
|
|
130865
|
-
"kind": "field",
|
|
130866
|
-
"name": "_validityStates",
|
|
130867
|
-
"privacy": "private",
|
|
130868
|
-
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
130869
|
-
"inheritedFrom": {
|
|
130870
|
-
"name": "SbbFormAssociatedMixin",
|
|
130871
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
130872
|
-
}
|
|
130936
|
+
"default": "false",
|
|
130937
|
+
"description": "Whether the toggle-option is checked.",
|
|
130938
|
+
"attribute": "checked",
|
|
130939
|
+
"reflects": true
|
|
130873
130940
|
},
|
|
130874
130941
|
{
|
|
130875
130942
|
"kind": "field",
|
|
130876
|
-
"name": "
|
|
130943
|
+
"name": "value",
|
|
130877
130944
|
"type": {
|
|
130878
|
-
"text": "
|
|
130945
|
+
"text": "(T = string) | null"
|
|
130879
130946
|
},
|
|
130880
|
-
"privacy": "
|
|
130881
|
-
"default": "
|
|
130882
|
-
"description": "
|
|
130883
|
-
"
|
|
130884
|
-
|
|
130885
|
-
|
|
130886
|
-
|
|
130947
|
+
"privacy": "public",
|
|
130948
|
+
"default": "null",
|
|
130949
|
+
"description": "Value of toggle-option.",
|
|
130950
|
+
"attribute": "value"
|
|
130951
|
+
},
|
|
130952
|
+
{
|
|
130953
|
+
"kind": "field",
|
|
130954
|
+
"name": "_toggle",
|
|
130955
|
+
"type": {
|
|
130956
|
+
"text": "SbbToggleElement | null"
|
|
130957
|
+
},
|
|
130958
|
+
"privacy": "private",
|
|
130959
|
+
"default": "null"
|
|
130887
130960
|
},
|
|
130888
130961
|
{
|
|
130889
130962
|
"kind": "method",
|
|
130890
|
-
"name": "
|
|
130891
|
-
"privacy": "
|
|
130963
|
+
"name": "_uncheckOtherOptions",
|
|
130964
|
+
"privacy": "private",
|
|
130892
130965
|
"return": {
|
|
130893
130966
|
"type": {
|
|
130894
|
-
"text": "
|
|
130967
|
+
"text": "void"
|
|
130895
130968
|
}
|
|
130896
|
-
},
|
|
130897
|
-
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
130898
|
-
"inheritedFrom": {
|
|
130899
|
-
"name": "SbbFormAssociatedMixin",
|
|
130900
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
130901
130969
|
}
|
|
130902
130970
|
},
|
|
130903
130971
|
{
|
|
130904
130972
|
"kind": "method",
|
|
130905
|
-
"name": "
|
|
130906
|
-
"privacy": "
|
|
130973
|
+
"name": "_handleDisabledChange",
|
|
130974
|
+
"privacy": "private",
|
|
130907
130975
|
"return": {
|
|
130908
130976
|
"type": {
|
|
130909
|
-
"text": "
|
|
130977
|
+
"text": "void"
|
|
130910
130978
|
}
|
|
130911
|
-
},
|
|
130912
|
-
"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.",
|
|
130913
|
-
"inheritedFrom": {
|
|
130914
|
-
"name": "SbbFormAssociatedMixin",
|
|
130915
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
130916
130979
|
}
|
|
130917
130980
|
},
|
|
130918
130981
|
{
|
|
130919
130982
|
"kind": "method",
|
|
130920
|
-
"name": "
|
|
130921
|
-
"privacy": "
|
|
130983
|
+
"name": "_handleInput",
|
|
130984
|
+
"privacy": "private",
|
|
130922
130985
|
"return": {
|
|
130923
130986
|
"type": {
|
|
130924
130987
|
"text": "void"
|
|
130925
130988
|
}
|
|
130926
|
-
},
|
|
130927
|
-
"parameters": [
|
|
130928
|
-
{
|
|
130929
|
-
"name": "message",
|
|
130930
|
-
"type": {
|
|
130931
|
-
"text": "string"
|
|
130932
|
-
}
|
|
130933
|
-
}
|
|
130934
|
-
],
|
|
130935
|
-
"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.",
|
|
130936
|
-
"inheritedFrom": {
|
|
130937
|
-
"name": "SbbFormAssociatedMixin",
|
|
130938
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
130939
130989
|
}
|
|
130940
130990
|
},
|
|
130941
130991
|
{
|
|
130942
130992
|
"kind": "method",
|
|
130943
|
-
"name": "
|
|
130993
|
+
"name": "_verifyTabindex",
|
|
130944
130994
|
"privacy": "private",
|
|
130945
130995
|
"return": {
|
|
130946
130996
|
"type": {
|
|
130947
|
-
"text": "
|
|
130997
|
+
"text": "void"
|
|
130948
130998
|
}
|
|
130999
|
+
}
|
|
131000
|
+
},
|
|
131001
|
+
{
|
|
131002
|
+
"kind": "field",
|
|
131003
|
+
"name": "disabled",
|
|
131004
|
+
"privacy": "public",
|
|
131005
|
+
"description": "Whether the component is disabled.",
|
|
131006
|
+
"default": "false",
|
|
131007
|
+
"type": {
|
|
131008
|
+
"text": "boolean"
|
|
130949
131009
|
},
|
|
131010
|
+
"attribute": "disabled",
|
|
131011
|
+
"reflects": true,
|
|
130950
131012
|
"inheritedFrom": {
|
|
130951
|
-
"name": "
|
|
130952
|
-
"module": "core/mixins/
|
|
131013
|
+
"name": "SbbDisabledMixin",
|
|
131014
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
130953
131015
|
}
|
|
130954
131016
|
},
|
|
130955
131017
|
{
|
|
130956
|
-
"kind": "
|
|
130957
|
-
"name": "
|
|
130958
|
-
"privacy": "
|
|
130959
|
-
"
|
|
130960
|
-
"
|
|
130961
|
-
"text": "void"
|
|
130962
|
-
}
|
|
131018
|
+
"kind": "field",
|
|
131019
|
+
"name": "#disabled",
|
|
131020
|
+
"privacy": "private",
|
|
131021
|
+
"type": {
|
|
131022
|
+
"text": "boolean"
|
|
130963
131023
|
},
|
|
130964
|
-
"
|
|
131024
|
+
"default": "false",
|
|
130965
131025
|
"inheritedFrom": {
|
|
130966
|
-
"name": "
|
|
130967
|
-
"module": "core/mixins/
|
|
131026
|
+
"name": "SbbDisabledMixin",
|
|
131027
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
130968
131028
|
}
|
|
130969
131029
|
},
|
|
130970
131030
|
{
|
|
130971
131031
|
"kind": "method",
|
|
130972
|
-
"name": "
|
|
131032
|
+
"name": "isDisabledExternally",
|
|
130973
131033
|
"privacy": "protected",
|
|
130974
131034
|
"return": {
|
|
130975
131035
|
"type": {
|
|
130976
|
-
"text": "
|
|
131036
|
+
"text": "boolean"
|
|
130977
131037
|
}
|
|
130978
131038
|
},
|
|
131039
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
130979
131040
|
"inheritedFrom": {
|
|
130980
|
-
"name": "
|
|
130981
|
-
"module": "core/mixins/
|
|
131041
|
+
"name": "SbbDisabledMixin",
|
|
131042
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
130982
131043
|
}
|
|
130983
131044
|
},
|
|
130984
131045
|
{
|
|
130985
|
-
"kind": "
|
|
130986
|
-
"name": "
|
|
130987
|
-
"
|
|
130988
|
-
|
|
130989
|
-
"type": {
|
|
130990
|
-
"text": "void"
|
|
130991
|
-
}
|
|
131046
|
+
"kind": "field",
|
|
131047
|
+
"name": "iconName",
|
|
131048
|
+
"type": {
|
|
131049
|
+
"text": "string"
|
|
130992
131050
|
},
|
|
130993
|
-
"
|
|
130994
|
-
|
|
130995
|
-
|
|
130996
|
-
|
|
130997
|
-
"text": "T"
|
|
130998
|
-
}
|
|
130999
|
-
},
|
|
131000
|
-
{
|
|
131001
|
-
"name": "message",
|
|
131002
|
-
"type": {
|
|
131003
|
-
"text": "string"
|
|
131004
|
-
}
|
|
131005
|
-
},
|
|
131006
|
-
{
|
|
131007
|
-
"name": "flagValue",
|
|
131008
|
-
"optional": true,
|
|
131009
|
-
"type": {
|
|
131010
|
-
"text": "ValidityStateFlags[T]"
|
|
131011
|
-
}
|
|
131012
|
-
}
|
|
131013
|
-
],
|
|
131014
|
-
"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).",
|
|
131051
|
+
"privacy": "public",
|
|
131052
|
+
"default": "''",
|
|
131053
|
+
"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.",
|
|
131054
|
+
"attribute": "icon-name",
|
|
131015
131055
|
"inheritedFrom": {
|
|
131016
|
-
"name": "
|
|
131017
|
-
"module": "
|
|
131056
|
+
"name": "SbbIconNameMixin",
|
|
131057
|
+
"module": "icon/icon-name-mixin.js"
|
|
131018
131058
|
}
|
|
131019
131059
|
},
|
|
131020
131060
|
{
|
|
131021
131061
|
"kind": "method",
|
|
131022
|
-
"name": "
|
|
131062
|
+
"name": "renderIconSlot",
|
|
131023
131063
|
"privacy": "protected",
|
|
131024
131064
|
"return": {
|
|
131025
131065
|
"type": {
|
|
131026
|
-
"text": "
|
|
131066
|
+
"text": "TemplateResult"
|
|
131027
131067
|
}
|
|
131028
131068
|
},
|
|
131029
131069
|
"parameters": [
|
|
131030
131070
|
{
|
|
131031
|
-
"name": "
|
|
131071
|
+
"name": "classname",
|
|
131072
|
+
"optional": true,
|
|
131032
131073
|
"type": {
|
|
131033
|
-
"text": "
|
|
131074
|
+
"text": "string"
|
|
131034
131075
|
}
|
|
131035
131076
|
}
|
|
131036
131077
|
],
|
|
131037
|
-
"description": "Removes the validity state flag entry and updates validity state.",
|
|
131038
|
-
"inheritedFrom": {
|
|
131039
|
-
"name": "SbbFormAssociatedMixin",
|
|
131040
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
131041
|
-
}
|
|
131042
|
-
},
|
|
131043
|
-
{
|
|
131044
|
-
"kind": "method",
|
|
131045
|
-
"name": "validate",
|
|
131046
|
-
"privacy": "protected",
|
|
131047
|
-
"return": {
|
|
131048
|
-
"type": {
|
|
131049
|
-
"text": "void"
|
|
131050
|
-
}
|
|
131051
|
-
},
|
|
131052
|
-
"description": "To be called whenever the current element needs to be validated.",
|
|
131053
131078
|
"inheritedFrom": {
|
|
131054
|
-
"name": "
|
|
131055
|
-
"module": "
|
|
131079
|
+
"name": "SbbIconNameMixin",
|
|
131080
|
+
"module": "icon/icon-name-mixin.js"
|
|
131056
131081
|
}
|
|
131057
131082
|
},
|
|
131058
131083
|
{
|
|
131059
131084
|
"kind": "method",
|
|
131060
|
-
"name": "
|
|
131085
|
+
"name": "renderIconName",
|
|
131061
131086
|
"privacy": "protected",
|
|
131062
131087
|
"return": {
|
|
131063
131088
|
"type": {
|
|
131064
|
-
"text": "
|
|
131089
|
+
"text": "string"
|
|
131065
131090
|
}
|
|
131066
131091
|
},
|
|
131067
|
-
"parameters": [
|
|
131068
|
-
{
|
|
131069
|
-
"name": "name",
|
|
131070
|
-
"type": {
|
|
131071
|
-
"text": "PropertyKey | undefined"
|
|
131072
|
-
}
|
|
131073
|
-
}
|
|
131074
|
-
],
|
|
131075
|
-
"description": "Whether validation should be run on a property change with the given name.",
|
|
131076
131092
|
"inheritedFrom": {
|
|
131077
|
-
"name": "
|
|
131078
|
-
"module": "
|
|
131093
|
+
"name": "SbbIconNameMixin",
|
|
131094
|
+
"module": "icon/icon-name-mixin.js"
|
|
131079
131095
|
}
|
|
131080
131096
|
},
|
|
131081
131097
|
{
|
|
131082
131098
|
"kind": "method",
|
|
131083
|
-
"name": "
|
|
131099
|
+
"name": "_renderIconName",
|
|
131084
131100
|
"privacy": "private",
|
|
131085
131101
|
"return": {
|
|
131086
131102
|
"type": {
|
|
131087
|
-
"text": "
|
|
131103
|
+
"text": "string"
|
|
131088
131104
|
}
|
|
131089
131105
|
},
|
|
131090
131106
|
"inheritedFrom": {
|
|
131091
|
-
"name": "
|
|
131092
|
-
"module": "
|
|
131107
|
+
"name": "SbbIconNameMixin",
|
|
131108
|
+
"module": "icon/icon-name-mixin.js"
|
|
131093
131109
|
}
|
|
131094
131110
|
},
|
|
131095
131111
|
{
|
|
@@ -131198,40 +131214,23 @@
|
|
|
131198
131214
|
}
|
|
131199
131215
|
}
|
|
131200
131216
|
],
|
|
131201
|
-
"events": [
|
|
131202
|
-
{
|
|
131203
|
-
"name": "change",
|
|
131204
|
-
"type": {
|
|
131205
|
-
"text": "Event"
|
|
131206
|
-
},
|
|
131207
|
-
"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."
|
|
131208
|
-
}
|
|
131209
|
-
],
|
|
131210
131217
|
"attributes": [
|
|
131211
131218
|
{
|
|
131212
|
-
"name": "
|
|
131219
|
+
"name": "checked",
|
|
131213
131220
|
"type": {
|
|
131214
131221
|
"text": "boolean"
|
|
131215
131222
|
},
|
|
131216
131223
|
"default": "false",
|
|
131217
|
-
"description": "
|
|
131218
|
-
"fieldName": "
|
|
131219
|
-
},
|
|
131220
|
-
{
|
|
131221
|
-
"name": "size",
|
|
131222
|
-
"type": {
|
|
131223
|
-
"text": "'s' | 'm'"
|
|
131224
|
-
},
|
|
131225
|
-
"description": "Size variant, either m or s.",
|
|
131226
|
-
"default": "'m' / 's' (lean)",
|
|
131227
|
-
"fieldName": "size"
|
|
131224
|
+
"description": "Whether the toggle-option is checked.",
|
|
131225
|
+
"fieldName": "checked"
|
|
131228
131226
|
},
|
|
131229
131227
|
{
|
|
131230
131228
|
"name": "value",
|
|
131231
|
-
"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).",
|
|
131232
131229
|
"type": {
|
|
131233
131230
|
"text": "T | null"
|
|
131234
131231
|
},
|
|
131232
|
+
"default": "null",
|
|
131233
|
+
"description": "Value of toggle-option.",
|
|
131235
131234
|
"fieldName": "value"
|
|
131236
131235
|
},
|
|
131237
131236
|
{
|
|
@@ -131248,15 +131247,16 @@
|
|
|
131248
131247
|
}
|
|
131249
131248
|
},
|
|
131250
131249
|
{
|
|
131251
|
-
"name": "name",
|
|
131252
|
-
"description": "Name of the form element. Will be read from name attribute.",
|
|
131250
|
+
"name": "icon-name",
|
|
131253
131251
|
"type": {
|
|
131254
131252
|
"text": "string"
|
|
131255
131253
|
},
|
|
131256
|
-
"
|
|
131254
|
+
"default": "''",
|
|
131255
|
+
"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.",
|
|
131256
|
+
"fieldName": "iconName",
|
|
131257
131257
|
"inheritedFrom": {
|
|
131258
|
-
"name": "
|
|
131259
|
-
"module": "
|
|
131258
|
+
"name": "SbbIconNameMixin",
|
|
131259
|
+
"module": "icon/icon-name-mixin.js"
|
|
131260
131260
|
}
|
|
131261
131261
|
}
|
|
131262
131262
|
],
|
|
@@ -131266,15 +131266,15 @@
|
|
|
131266
131266
|
"module": "core/mixins.js"
|
|
131267
131267
|
},
|
|
131268
131268
|
{
|
|
131269
|
-
"name": "
|
|
131270
|
-
"module": "
|
|
131269
|
+
"name": "SbbIconNameMixin",
|
|
131270
|
+
"module": "icon.js"
|
|
131271
131271
|
}
|
|
131272
131272
|
],
|
|
131273
131273
|
"superclass": {
|
|
131274
131274
|
"name": "SbbElement",
|
|
131275
131275
|
"module": "core/base-elements.js"
|
|
131276
131276
|
},
|
|
131277
|
-
"tagName": "sbb-toggle",
|
|
131277
|
+
"tagName": "sbb-toggle-option",
|
|
131278
131278
|
"customElement": true,
|
|
131279
131279
|
"classGenerics": "T = string"
|
|
131280
131280
|
}
|
|
@@ -131282,10 +131282,10 @@
|
|
|
131282
131282
|
"exports": [
|
|
131283
131283
|
{
|
|
131284
131284
|
"kind": "js",
|
|
131285
|
-
"name": "
|
|
131285
|
+
"name": "SbbToggleOptionElement",
|
|
131286
131286
|
"declaration": {
|
|
131287
|
-
"name": "
|
|
131288
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
131287
|
+
"name": "SbbToggleOptionElement",
|
|
131288
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
131289
131289
|
}
|
|
131290
131290
|
}
|
|
131291
131291
|
]
|