@sbb-esta/lyne-elements-dev 4.6.0-dev.1772446524 → 4.6.0-dev.1772457568
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 +443 -378
- package/datepicker/common/datepicker-button.js +18 -14
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +18 -26
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +20 -28
- package/development/datepicker/common/datepicker-button.d.ts +3 -1
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common/datepicker-button.js +8 -4
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +1 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +3 -12
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +3 -12
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -62934,6 +62934,25 @@
|
|
|
62934
62934
|
"text": "T | null"
|
|
62935
62935
|
}
|
|
62936
62936
|
},
|
|
62937
|
+
"parameters": [
|
|
62938
|
+
{
|
|
62939
|
+
"name": "_date",
|
|
62940
|
+
"type": {
|
|
62941
|
+
"text": "T"
|
|
62942
|
+
}
|
|
62943
|
+
}
|
|
62944
|
+
],
|
|
62945
|
+
"deprecated": "Use `getFollowingDate(date: T)` instead."
|
|
62946
|
+
},
|
|
62947
|
+
{
|
|
62948
|
+
"kind": "method",
|
|
62949
|
+
"name": "getFollowingDate",
|
|
62950
|
+
"privacy": "protected",
|
|
62951
|
+
"return": {
|
|
62952
|
+
"type": {
|
|
62953
|
+
"text": "T | null"
|
|
62954
|
+
}
|
|
62955
|
+
},
|
|
62937
62956
|
"parameters": [
|
|
62938
62957
|
{
|
|
62939
62958
|
"name": "_date",
|
|
@@ -64738,7 +64757,7 @@
|
|
|
64738
64757
|
},
|
|
64739
64758
|
{
|
|
64740
64759
|
"kind": "method",
|
|
64741
|
-
"name": "
|
|
64760
|
+
"name": "getFollowingDate",
|
|
64742
64761
|
"privacy": "protected",
|
|
64743
64762
|
"return": {
|
|
64744
64763
|
"type": {
|
|
@@ -64805,6 +64824,29 @@
|
|
|
64805
64824
|
},
|
|
64806
64825
|
"default": "true"
|
|
64807
64826
|
},
|
|
64827
|
+
{
|
|
64828
|
+
"kind": "method",
|
|
64829
|
+
"name": "findAvailableDate",
|
|
64830
|
+
"privacy": "protected",
|
|
64831
|
+
"return": {
|
|
64832
|
+
"type": {
|
|
64833
|
+
"text": "T | null"
|
|
64834
|
+
}
|
|
64835
|
+
},
|
|
64836
|
+
"parameters": [
|
|
64837
|
+
{
|
|
64838
|
+
"name": "_date",
|
|
64839
|
+
"type": {
|
|
64840
|
+
"text": "T"
|
|
64841
|
+
}
|
|
64842
|
+
}
|
|
64843
|
+
],
|
|
64844
|
+
"deprecated": "Use `getFollowingDate(date: T)` instead.",
|
|
64845
|
+
"inheritedFrom": {
|
|
64846
|
+
"name": "SbbDatepickerButton",
|
|
64847
|
+
"module": "datepicker/common/datepicker-button.js"
|
|
64848
|
+
}
|
|
64849
|
+
},
|
|
64808
64850
|
{
|
|
64809
64851
|
"kind": "method",
|
|
64810
64852
|
"name": "_handleClick",
|
|
@@ -65673,7 +65715,7 @@
|
|
|
65673
65715
|
},
|
|
65674
65716
|
{
|
|
65675
65717
|
"kind": "method",
|
|
65676
|
-
"name": "
|
|
65718
|
+
"name": "getFollowingDate",
|
|
65677
65719
|
"privacy": "protected",
|
|
65678
65720
|
"return": {
|
|
65679
65721
|
"type": {
|
|
@@ -65740,6 +65782,29 @@
|
|
|
65740
65782
|
},
|
|
65741
65783
|
"default": "true"
|
|
65742
65784
|
},
|
|
65785
|
+
{
|
|
65786
|
+
"kind": "method",
|
|
65787
|
+
"name": "findAvailableDate",
|
|
65788
|
+
"privacy": "protected",
|
|
65789
|
+
"return": {
|
|
65790
|
+
"type": {
|
|
65791
|
+
"text": "T | null"
|
|
65792
|
+
}
|
|
65793
|
+
},
|
|
65794
|
+
"parameters": [
|
|
65795
|
+
{
|
|
65796
|
+
"name": "_date",
|
|
65797
|
+
"type": {
|
|
65798
|
+
"text": "T"
|
|
65799
|
+
}
|
|
65800
|
+
}
|
|
65801
|
+
],
|
|
65802
|
+
"deprecated": "Use `getFollowingDate(date: T)` instead.",
|
|
65803
|
+
"inheritedFrom": {
|
|
65804
|
+
"name": "SbbDatepickerButton",
|
|
65805
|
+
"module": "datepicker/common/datepicker-button.js"
|
|
65806
|
+
}
|
|
65807
|
+
},
|
|
65743
65808
|
{
|
|
65744
65809
|
"kind": "method",
|
|
65745
65810
|
"name": "_handleClick",
|
|
@@ -100174,382 +100239,6 @@
|
|
|
100174
100239
|
}
|
|
100175
100240
|
]
|
|
100176
100241
|
},
|
|
100177
|
-
{
|
|
100178
|
-
"kind": "javascript-module",
|
|
100179
|
-
"path": "radio-button/radio-button-group/radio-button-group.component.js",
|
|
100180
|
-
"declarations": [
|
|
100181
|
-
{
|
|
100182
|
-
"kind": "class",
|
|
100183
|
-
"description": "It can be used as a container for one or more `sbb-radio-button`.",
|
|
100184
|
-
"name": "SbbRadioButtonGroupElement",
|
|
100185
|
-
"slots": [
|
|
100186
|
-
{
|
|
100187
|
-
"description": "Use the unnamed slot to add `sbb-radio-button` elements to the `sbb-radio-button-group`.",
|
|
100188
|
-
"name": ""
|
|
100189
|
-
},
|
|
100190
|
-
{
|
|
100191
|
-
"description": "Use this to provide a `sbb-error` to show an error message.",
|
|
100192
|
-
"name": "error"
|
|
100193
|
-
}
|
|
100194
|
-
],
|
|
100195
|
-
"members": [
|
|
100196
|
-
{
|
|
100197
|
-
"kind": "field",
|
|
100198
|
-
"name": "role",
|
|
100199
|
-
"type": {
|
|
100200
|
-
"text": "string"
|
|
100201
|
-
},
|
|
100202
|
-
"privacy": "public",
|
|
100203
|
-
"static": true,
|
|
100204
|
-
"readonly": true,
|
|
100205
|
-
"default": "'radiogroup'"
|
|
100206
|
-
},
|
|
100207
|
-
{
|
|
100208
|
-
"kind": "field",
|
|
100209
|
-
"name": "events",
|
|
100210
|
-
"privacy": "public",
|
|
100211
|
-
"static": true,
|
|
100212
|
-
"readonly": true,
|
|
100213
|
-
"default": "{ didChange: 'didChange', change: 'change', input: 'input', }",
|
|
100214
|
-
"type": {
|
|
100215
|
-
"text": "{\n didChange: 'didChange',\n change: 'change',\n input: 'input',\n }"
|
|
100216
|
-
}
|
|
100217
|
-
},
|
|
100218
|
-
{
|
|
100219
|
-
"kind": "field",
|
|
100220
|
-
"name": "allowEmptySelection",
|
|
100221
|
-
"type": {
|
|
100222
|
-
"text": "boolean"
|
|
100223
|
-
},
|
|
100224
|
-
"privacy": "public",
|
|
100225
|
-
"default": "false",
|
|
100226
|
-
"description": "Whether the radios can be deselected.",
|
|
100227
|
-
"attribute": "allow-empty-selection"
|
|
100228
|
-
},
|
|
100229
|
-
{
|
|
100230
|
-
"kind": "field",
|
|
100231
|
-
"name": "required",
|
|
100232
|
-
"type": {
|
|
100233
|
-
"text": "boolean"
|
|
100234
|
-
},
|
|
100235
|
-
"privacy": "public",
|
|
100236
|
-
"default": "false",
|
|
100237
|
-
"description": "Whether the radio group is required.",
|
|
100238
|
-
"attribute": "required"
|
|
100239
|
-
},
|
|
100240
|
-
{
|
|
100241
|
-
"kind": "field",
|
|
100242
|
-
"name": "value",
|
|
100243
|
-
"privacy": "public",
|
|
100244
|
-
"description": "The value of the radio group.",
|
|
100245
|
-
"type": {
|
|
100246
|
-
"text": "(T = string) | null"
|
|
100247
|
-
},
|
|
100248
|
-
"attribute": "value"
|
|
100249
|
-
},
|
|
100250
|
-
{
|
|
100251
|
-
"kind": "field",
|
|
100252
|
-
"name": "_fallbackValue",
|
|
100253
|
-
"type": {
|
|
100254
|
-
"text": "T | null"
|
|
100255
|
-
},
|
|
100256
|
-
"privacy": "private",
|
|
100257
|
-
"default": "null",
|
|
100258
|
-
"description": "Used to preserve the `value` in case the radios are not yet 'loaded'"
|
|
100259
|
-
},
|
|
100260
|
-
{
|
|
100261
|
-
"kind": "field",
|
|
100262
|
-
"name": "size",
|
|
100263
|
-
"type": {
|
|
100264
|
-
"text": "SbbRadioButtonSize"
|
|
100265
|
-
},
|
|
100266
|
-
"privacy": "public",
|
|
100267
|
-
"description": "Size variant, either xs, s or m.",
|
|
100268
|
-
"default": "'m' / 'xs' (lean)",
|
|
100269
|
-
"attribute": "size"
|
|
100270
|
-
},
|
|
100271
|
-
{
|
|
100272
|
-
"kind": "field",
|
|
100273
|
-
"name": "horizontalFrom",
|
|
100274
|
-
"type": {
|
|
100275
|
-
"text": "SbbHorizontalFrom | null"
|
|
100276
|
-
},
|
|
100277
|
-
"privacy": "public",
|
|
100278
|
-
"default": "null",
|
|
100279
|
-
"description": "Overrides the behaviour of `orientation` property.",
|
|
100280
|
-
"attribute": "horizontal-from",
|
|
100281
|
-
"reflects": true
|
|
100282
|
-
},
|
|
100283
|
-
{
|
|
100284
|
-
"kind": "field",
|
|
100285
|
-
"name": "orientation",
|
|
100286
|
-
"type": {
|
|
100287
|
-
"text": "SbbOrientation"
|
|
100288
|
-
},
|
|
100289
|
-
"privacy": "public",
|
|
100290
|
-
"default": "'horizontal'",
|
|
100291
|
-
"description": "Radio group's orientation, either horizontal or vertical.",
|
|
100292
|
-
"attribute": "orientation",
|
|
100293
|
-
"reflects": true
|
|
100294
|
-
},
|
|
100295
|
-
{
|
|
100296
|
-
"kind": "field",
|
|
100297
|
-
"name": "name",
|
|
100298
|
-
"type": {
|
|
100299
|
-
"text": "string"
|
|
100300
|
-
},
|
|
100301
|
-
"privacy": "public",
|
|
100302
|
-
"default": "`sbb-radio-button-group-${++nextId}`",
|
|
100303
|
-
"attribute": "name"
|
|
100304
|
-
},
|
|
100305
|
-
{
|
|
100306
|
-
"kind": "field",
|
|
100307
|
-
"name": "radioButtons",
|
|
100308
|
-
"type": {
|
|
100309
|
-
"text": "(SbbRadioButtonElement<T> | SbbRadioButtonPanelElement<T>)[]"
|
|
100310
|
-
},
|
|
100311
|
-
"privacy": "public",
|
|
100312
|
-
"description": "List of contained radio buttons.",
|
|
100313
|
-
"readonly": true
|
|
100314
|
-
},
|
|
100315
|
-
{
|
|
100316
|
-
"kind": "method",
|
|
100317
|
-
"name": "_onRadioChange",
|
|
100318
|
-
"privacy": "private",
|
|
100319
|
-
"return": {
|
|
100320
|
-
"type": {
|
|
100321
|
-
"text": "void"
|
|
100322
|
-
}
|
|
100323
|
-
},
|
|
100324
|
-
"parameters": [
|
|
100325
|
-
{
|
|
100326
|
-
"name": "event",
|
|
100327
|
-
"type": {
|
|
100328
|
-
"text": "Event"
|
|
100329
|
-
}
|
|
100330
|
-
}
|
|
100331
|
-
]
|
|
100332
|
-
},
|
|
100333
|
-
{
|
|
100334
|
-
"kind": "method",
|
|
100335
|
-
"name": "_updateRadiosName",
|
|
100336
|
-
"privacy": "private",
|
|
100337
|
-
"return": {
|
|
100338
|
-
"type": {
|
|
100339
|
-
"text": "void"
|
|
100340
|
-
}
|
|
100341
|
-
},
|
|
100342
|
-
"description": "Proxy 'name' to child radio-buttons"
|
|
100343
|
-
},
|
|
100344
|
-
{
|
|
100345
|
-
"kind": "method",
|
|
100346
|
-
"name": "_updateRadioState",
|
|
100347
|
-
"privacy": "private",
|
|
100348
|
-
"return": {
|
|
100349
|
-
"type": {
|
|
100350
|
-
"text": "void"
|
|
100351
|
-
}
|
|
100352
|
-
},
|
|
100353
|
-
"description": "Re-trigger the setter and update the checked state of the radios.\nMainly used to cover cases where the setter is called before the radios are loaded"
|
|
100354
|
-
},
|
|
100355
|
-
{
|
|
100356
|
-
"kind": "field",
|
|
100357
|
-
"name": "disabled",
|
|
100358
|
-
"privacy": "public",
|
|
100359
|
-
"description": "Whether the component is disabled.",
|
|
100360
|
-
"default": "false",
|
|
100361
|
-
"type": {
|
|
100362
|
-
"text": "boolean"
|
|
100363
|
-
},
|
|
100364
|
-
"attribute": "disabled",
|
|
100365
|
-
"reflects": true,
|
|
100366
|
-
"inheritedFrom": {
|
|
100367
|
-
"name": "SbbDisabledMixin",
|
|
100368
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
100369
|
-
}
|
|
100370
|
-
},
|
|
100371
|
-
{
|
|
100372
|
-
"kind": "field",
|
|
100373
|
-
"name": "#disabled",
|
|
100374
|
-
"privacy": "private",
|
|
100375
|
-
"type": {
|
|
100376
|
-
"text": "boolean"
|
|
100377
|
-
},
|
|
100378
|
-
"default": "false",
|
|
100379
|
-
"inheritedFrom": {
|
|
100380
|
-
"name": "SbbDisabledMixin",
|
|
100381
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
100382
|
-
}
|
|
100383
|
-
},
|
|
100384
|
-
{
|
|
100385
|
-
"kind": "method",
|
|
100386
|
-
"name": "isDisabledExternally",
|
|
100387
|
-
"privacy": "protected",
|
|
100388
|
-
"return": {
|
|
100389
|
-
"type": {
|
|
100390
|
-
"text": "boolean"
|
|
100391
|
-
}
|
|
100392
|
-
},
|
|
100393
|
-
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
100394
|
-
"inheritedFrom": {
|
|
100395
|
-
"name": "SbbDisabledMixin",
|
|
100396
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
100397
|
-
}
|
|
100398
|
-
},
|
|
100399
|
-
{
|
|
100400
|
-
"kind": "method",
|
|
100401
|
-
"name": "toggleState",
|
|
100402
|
-
"privacy": "protected",
|
|
100403
|
-
"return": {
|
|
100404
|
-
"type": {
|
|
100405
|
-
"text": "void"
|
|
100406
|
-
}
|
|
100407
|
-
},
|
|
100408
|
-
"parameters": [
|
|
100409
|
-
{
|
|
100410
|
-
"name": "value",
|
|
100411
|
-
"type": {
|
|
100412
|
-
"text": "string"
|
|
100413
|
-
}
|
|
100414
|
-
},
|
|
100415
|
-
{
|
|
100416
|
-
"name": "force",
|
|
100417
|
-
"optional": true,
|
|
100418
|
-
"type": {
|
|
100419
|
-
"text": "boolean"
|
|
100420
|
-
}
|
|
100421
|
-
}
|
|
100422
|
-
],
|
|
100423
|
-
"inheritedFrom": {
|
|
100424
|
-
"name": "SbbElementInternalsMixin",
|
|
100425
|
-
"module": "core/mixins/element-internals-mixin.js"
|
|
100426
|
-
}
|
|
100427
|
-
}
|
|
100428
|
-
],
|
|
100429
|
-
"events": [
|
|
100430
|
-
{
|
|
100431
|
-
"name": "didChange",
|
|
100432
|
-
"type": {
|
|
100433
|
-
"text": "Event"
|
|
100434
|
-
},
|
|
100435
|
-
"description": "Deprecated. Mirrors change event for React. Will be removed once React properly supports change events.",
|
|
100436
|
-
"deprecated": "true"
|
|
100437
|
-
}
|
|
100438
|
-
],
|
|
100439
|
-
"attributes": [
|
|
100440
|
-
{
|
|
100441
|
-
"name": "allow-empty-selection",
|
|
100442
|
-
"type": {
|
|
100443
|
-
"text": "boolean"
|
|
100444
|
-
},
|
|
100445
|
-
"default": "false",
|
|
100446
|
-
"description": "Whether the radios can be deselected.",
|
|
100447
|
-
"fieldName": "allowEmptySelection"
|
|
100448
|
-
},
|
|
100449
|
-
{
|
|
100450
|
-
"name": "required",
|
|
100451
|
-
"type": {
|
|
100452
|
-
"text": "boolean"
|
|
100453
|
-
},
|
|
100454
|
-
"default": "false",
|
|
100455
|
-
"description": "Whether the radio group is required.",
|
|
100456
|
-
"fieldName": "required"
|
|
100457
|
-
},
|
|
100458
|
-
{
|
|
100459
|
-
"name": "value",
|
|
100460
|
-
"description": "The value of the radio group.",
|
|
100461
|
-
"type": {
|
|
100462
|
-
"text": "T | null"
|
|
100463
|
-
},
|
|
100464
|
-
"fieldName": "value"
|
|
100465
|
-
},
|
|
100466
|
-
{
|
|
100467
|
-
"name": "size",
|
|
100468
|
-
"type": {
|
|
100469
|
-
"text": "SbbRadioButtonSize"
|
|
100470
|
-
},
|
|
100471
|
-
"description": "Size variant, either xs, s or m.",
|
|
100472
|
-
"default": "'m' / 'xs' (lean)",
|
|
100473
|
-
"fieldName": "size"
|
|
100474
|
-
},
|
|
100475
|
-
{
|
|
100476
|
-
"name": "horizontal-from",
|
|
100477
|
-
"type": {
|
|
100478
|
-
"text": "SbbHorizontalFrom | null"
|
|
100479
|
-
},
|
|
100480
|
-
"default": "null",
|
|
100481
|
-
"description": "Overrides the behaviour of `orientation` property.",
|
|
100482
|
-
"fieldName": "horizontalFrom"
|
|
100483
|
-
},
|
|
100484
|
-
{
|
|
100485
|
-
"name": "orientation",
|
|
100486
|
-
"type": {
|
|
100487
|
-
"text": "SbbOrientation"
|
|
100488
|
-
},
|
|
100489
|
-
"default": "'horizontal'",
|
|
100490
|
-
"description": "Radio group's orientation, either horizontal or vertical.",
|
|
100491
|
-
"fieldName": "orientation"
|
|
100492
|
-
},
|
|
100493
|
-
{
|
|
100494
|
-
"name": "name",
|
|
100495
|
-
"type": {
|
|
100496
|
-
"text": "string"
|
|
100497
|
-
},
|
|
100498
|
-
"default": "`sbb-radio-button-group-${++nextId}`",
|
|
100499
|
-
"fieldName": "name"
|
|
100500
|
-
},
|
|
100501
|
-
{
|
|
100502
|
-
"name": "disabled",
|
|
100503
|
-
"description": "Whether the component is disabled.",
|
|
100504
|
-
"default": "false",
|
|
100505
|
-
"type": {
|
|
100506
|
-
"text": "boolean"
|
|
100507
|
-
},
|
|
100508
|
-
"fieldName": "disabled",
|
|
100509
|
-
"inheritedFrom": {
|
|
100510
|
-
"name": "SbbDisabledMixin",
|
|
100511
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
100512
|
-
}
|
|
100513
|
-
}
|
|
100514
|
-
],
|
|
100515
|
-
"mixins": [
|
|
100516
|
-
{
|
|
100517
|
-
"name": "SbbDisabledMixin",
|
|
100518
|
-
"module": "core/mixins.js"
|
|
100519
|
-
},
|
|
100520
|
-
{
|
|
100521
|
-
"name": "SbbElementInternalsMixin",
|
|
100522
|
-
"module": "core/mixins.js"
|
|
100523
|
-
}
|
|
100524
|
-
],
|
|
100525
|
-
"superclass": {
|
|
100526
|
-
"name": "LitElement",
|
|
100527
|
-
"package": "lit"
|
|
100528
|
-
},
|
|
100529
|
-
"classGenerics": "T = string",
|
|
100530
|
-
"tagName": "sbb-radio-button-group",
|
|
100531
|
-
"customElement": true
|
|
100532
|
-
}
|
|
100533
|
-
],
|
|
100534
|
-
"exports": [
|
|
100535
|
-
{
|
|
100536
|
-
"kind": "js",
|
|
100537
|
-
"name": "SbbRadioButtonGroupElement",
|
|
100538
|
-
"declaration": {
|
|
100539
|
-
"name": "SbbRadioButtonGroupElement",
|
|
100540
|
-
"module": "radio-button/radio-button-group/radio-button-group.component.js"
|
|
100541
|
-
}
|
|
100542
|
-
},
|
|
100543
|
-
{
|
|
100544
|
-
"kind": "custom-element-definition",
|
|
100545
|
-
"name": "sbb-radio-button-group",
|
|
100546
|
-
"declaration": {
|
|
100547
|
-
"name": "SbbRadioButtonGroupElement",
|
|
100548
|
-
"module": "radio-button/radio-button-group/radio-button-group.component.js"
|
|
100549
|
-
}
|
|
100550
|
-
}
|
|
100551
|
-
]
|
|
100552
|
-
},
|
|
100553
100242
|
{
|
|
100554
100243
|
"kind": "javascript-module",
|
|
100555
100244
|
"path": "radio-button/radio-button-panel/radio-button-panel.component.js",
|
|
@@ -101712,6 +101401,382 @@
|
|
|
101712
101401
|
}
|
|
101713
101402
|
]
|
|
101714
101403
|
},
|
|
101404
|
+
{
|
|
101405
|
+
"kind": "javascript-module",
|
|
101406
|
+
"path": "radio-button/radio-button-group/radio-button-group.component.js",
|
|
101407
|
+
"declarations": [
|
|
101408
|
+
{
|
|
101409
|
+
"kind": "class",
|
|
101410
|
+
"description": "It can be used as a container for one or more `sbb-radio-button`.",
|
|
101411
|
+
"name": "SbbRadioButtonGroupElement",
|
|
101412
|
+
"slots": [
|
|
101413
|
+
{
|
|
101414
|
+
"description": "Use the unnamed slot to add `sbb-radio-button` elements to the `sbb-radio-button-group`.",
|
|
101415
|
+
"name": ""
|
|
101416
|
+
},
|
|
101417
|
+
{
|
|
101418
|
+
"description": "Use this to provide a `sbb-error` to show an error message.",
|
|
101419
|
+
"name": "error"
|
|
101420
|
+
}
|
|
101421
|
+
],
|
|
101422
|
+
"members": [
|
|
101423
|
+
{
|
|
101424
|
+
"kind": "field",
|
|
101425
|
+
"name": "role",
|
|
101426
|
+
"type": {
|
|
101427
|
+
"text": "string"
|
|
101428
|
+
},
|
|
101429
|
+
"privacy": "public",
|
|
101430
|
+
"static": true,
|
|
101431
|
+
"readonly": true,
|
|
101432
|
+
"default": "'radiogroup'"
|
|
101433
|
+
},
|
|
101434
|
+
{
|
|
101435
|
+
"kind": "field",
|
|
101436
|
+
"name": "events",
|
|
101437
|
+
"privacy": "public",
|
|
101438
|
+
"static": true,
|
|
101439
|
+
"readonly": true,
|
|
101440
|
+
"default": "{ didChange: 'didChange', change: 'change', input: 'input', }",
|
|
101441
|
+
"type": {
|
|
101442
|
+
"text": "{\n didChange: 'didChange',\n change: 'change',\n input: 'input',\n }"
|
|
101443
|
+
}
|
|
101444
|
+
},
|
|
101445
|
+
{
|
|
101446
|
+
"kind": "field",
|
|
101447
|
+
"name": "allowEmptySelection",
|
|
101448
|
+
"type": {
|
|
101449
|
+
"text": "boolean"
|
|
101450
|
+
},
|
|
101451
|
+
"privacy": "public",
|
|
101452
|
+
"default": "false",
|
|
101453
|
+
"description": "Whether the radios can be deselected.",
|
|
101454
|
+
"attribute": "allow-empty-selection"
|
|
101455
|
+
},
|
|
101456
|
+
{
|
|
101457
|
+
"kind": "field",
|
|
101458
|
+
"name": "required",
|
|
101459
|
+
"type": {
|
|
101460
|
+
"text": "boolean"
|
|
101461
|
+
},
|
|
101462
|
+
"privacy": "public",
|
|
101463
|
+
"default": "false",
|
|
101464
|
+
"description": "Whether the radio group is required.",
|
|
101465
|
+
"attribute": "required"
|
|
101466
|
+
},
|
|
101467
|
+
{
|
|
101468
|
+
"kind": "field",
|
|
101469
|
+
"name": "value",
|
|
101470
|
+
"privacy": "public",
|
|
101471
|
+
"description": "The value of the radio group.",
|
|
101472
|
+
"type": {
|
|
101473
|
+
"text": "(T = string) | null"
|
|
101474
|
+
},
|
|
101475
|
+
"attribute": "value"
|
|
101476
|
+
},
|
|
101477
|
+
{
|
|
101478
|
+
"kind": "field",
|
|
101479
|
+
"name": "_fallbackValue",
|
|
101480
|
+
"type": {
|
|
101481
|
+
"text": "T | null"
|
|
101482
|
+
},
|
|
101483
|
+
"privacy": "private",
|
|
101484
|
+
"default": "null",
|
|
101485
|
+
"description": "Used to preserve the `value` in case the radios are not yet 'loaded'"
|
|
101486
|
+
},
|
|
101487
|
+
{
|
|
101488
|
+
"kind": "field",
|
|
101489
|
+
"name": "size",
|
|
101490
|
+
"type": {
|
|
101491
|
+
"text": "SbbRadioButtonSize"
|
|
101492
|
+
},
|
|
101493
|
+
"privacy": "public",
|
|
101494
|
+
"description": "Size variant, either xs, s or m.",
|
|
101495
|
+
"default": "'m' / 'xs' (lean)",
|
|
101496
|
+
"attribute": "size"
|
|
101497
|
+
},
|
|
101498
|
+
{
|
|
101499
|
+
"kind": "field",
|
|
101500
|
+
"name": "horizontalFrom",
|
|
101501
|
+
"type": {
|
|
101502
|
+
"text": "SbbHorizontalFrom | null"
|
|
101503
|
+
},
|
|
101504
|
+
"privacy": "public",
|
|
101505
|
+
"default": "null",
|
|
101506
|
+
"description": "Overrides the behaviour of `orientation` property.",
|
|
101507
|
+
"attribute": "horizontal-from",
|
|
101508
|
+
"reflects": true
|
|
101509
|
+
},
|
|
101510
|
+
{
|
|
101511
|
+
"kind": "field",
|
|
101512
|
+
"name": "orientation",
|
|
101513
|
+
"type": {
|
|
101514
|
+
"text": "SbbOrientation"
|
|
101515
|
+
},
|
|
101516
|
+
"privacy": "public",
|
|
101517
|
+
"default": "'horizontal'",
|
|
101518
|
+
"description": "Radio group's orientation, either horizontal or vertical.",
|
|
101519
|
+
"attribute": "orientation",
|
|
101520
|
+
"reflects": true
|
|
101521
|
+
},
|
|
101522
|
+
{
|
|
101523
|
+
"kind": "field",
|
|
101524
|
+
"name": "name",
|
|
101525
|
+
"type": {
|
|
101526
|
+
"text": "string"
|
|
101527
|
+
},
|
|
101528
|
+
"privacy": "public",
|
|
101529
|
+
"default": "`sbb-radio-button-group-${++nextId}`",
|
|
101530
|
+
"attribute": "name"
|
|
101531
|
+
},
|
|
101532
|
+
{
|
|
101533
|
+
"kind": "field",
|
|
101534
|
+
"name": "radioButtons",
|
|
101535
|
+
"type": {
|
|
101536
|
+
"text": "(SbbRadioButtonElement<T> | SbbRadioButtonPanelElement<T>)[]"
|
|
101537
|
+
},
|
|
101538
|
+
"privacy": "public",
|
|
101539
|
+
"description": "List of contained radio buttons.",
|
|
101540
|
+
"readonly": true
|
|
101541
|
+
},
|
|
101542
|
+
{
|
|
101543
|
+
"kind": "method",
|
|
101544
|
+
"name": "_onRadioChange",
|
|
101545
|
+
"privacy": "private",
|
|
101546
|
+
"return": {
|
|
101547
|
+
"type": {
|
|
101548
|
+
"text": "void"
|
|
101549
|
+
}
|
|
101550
|
+
},
|
|
101551
|
+
"parameters": [
|
|
101552
|
+
{
|
|
101553
|
+
"name": "event",
|
|
101554
|
+
"type": {
|
|
101555
|
+
"text": "Event"
|
|
101556
|
+
}
|
|
101557
|
+
}
|
|
101558
|
+
]
|
|
101559
|
+
},
|
|
101560
|
+
{
|
|
101561
|
+
"kind": "method",
|
|
101562
|
+
"name": "_updateRadiosName",
|
|
101563
|
+
"privacy": "private",
|
|
101564
|
+
"return": {
|
|
101565
|
+
"type": {
|
|
101566
|
+
"text": "void"
|
|
101567
|
+
}
|
|
101568
|
+
},
|
|
101569
|
+
"description": "Proxy 'name' to child radio-buttons"
|
|
101570
|
+
},
|
|
101571
|
+
{
|
|
101572
|
+
"kind": "method",
|
|
101573
|
+
"name": "_updateRadioState",
|
|
101574
|
+
"privacy": "private",
|
|
101575
|
+
"return": {
|
|
101576
|
+
"type": {
|
|
101577
|
+
"text": "void"
|
|
101578
|
+
}
|
|
101579
|
+
},
|
|
101580
|
+
"description": "Re-trigger the setter and update the checked state of the radios.\nMainly used to cover cases where the setter is called before the radios are loaded"
|
|
101581
|
+
},
|
|
101582
|
+
{
|
|
101583
|
+
"kind": "field",
|
|
101584
|
+
"name": "disabled",
|
|
101585
|
+
"privacy": "public",
|
|
101586
|
+
"description": "Whether the component is disabled.",
|
|
101587
|
+
"default": "false",
|
|
101588
|
+
"type": {
|
|
101589
|
+
"text": "boolean"
|
|
101590
|
+
},
|
|
101591
|
+
"attribute": "disabled",
|
|
101592
|
+
"reflects": true,
|
|
101593
|
+
"inheritedFrom": {
|
|
101594
|
+
"name": "SbbDisabledMixin",
|
|
101595
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
101596
|
+
}
|
|
101597
|
+
},
|
|
101598
|
+
{
|
|
101599
|
+
"kind": "field",
|
|
101600
|
+
"name": "#disabled",
|
|
101601
|
+
"privacy": "private",
|
|
101602
|
+
"type": {
|
|
101603
|
+
"text": "boolean"
|
|
101604
|
+
},
|
|
101605
|
+
"default": "false",
|
|
101606
|
+
"inheritedFrom": {
|
|
101607
|
+
"name": "SbbDisabledMixin",
|
|
101608
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
101609
|
+
}
|
|
101610
|
+
},
|
|
101611
|
+
{
|
|
101612
|
+
"kind": "method",
|
|
101613
|
+
"name": "isDisabledExternally",
|
|
101614
|
+
"privacy": "protected",
|
|
101615
|
+
"return": {
|
|
101616
|
+
"type": {
|
|
101617
|
+
"text": "boolean"
|
|
101618
|
+
}
|
|
101619
|
+
},
|
|
101620
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
101621
|
+
"inheritedFrom": {
|
|
101622
|
+
"name": "SbbDisabledMixin",
|
|
101623
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
101624
|
+
}
|
|
101625
|
+
},
|
|
101626
|
+
{
|
|
101627
|
+
"kind": "method",
|
|
101628
|
+
"name": "toggleState",
|
|
101629
|
+
"privacy": "protected",
|
|
101630
|
+
"return": {
|
|
101631
|
+
"type": {
|
|
101632
|
+
"text": "void"
|
|
101633
|
+
}
|
|
101634
|
+
},
|
|
101635
|
+
"parameters": [
|
|
101636
|
+
{
|
|
101637
|
+
"name": "value",
|
|
101638
|
+
"type": {
|
|
101639
|
+
"text": "string"
|
|
101640
|
+
}
|
|
101641
|
+
},
|
|
101642
|
+
{
|
|
101643
|
+
"name": "force",
|
|
101644
|
+
"optional": true,
|
|
101645
|
+
"type": {
|
|
101646
|
+
"text": "boolean"
|
|
101647
|
+
}
|
|
101648
|
+
}
|
|
101649
|
+
],
|
|
101650
|
+
"inheritedFrom": {
|
|
101651
|
+
"name": "SbbElementInternalsMixin",
|
|
101652
|
+
"module": "core/mixins/element-internals-mixin.js"
|
|
101653
|
+
}
|
|
101654
|
+
}
|
|
101655
|
+
],
|
|
101656
|
+
"events": [
|
|
101657
|
+
{
|
|
101658
|
+
"name": "didChange",
|
|
101659
|
+
"type": {
|
|
101660
|
+
"text": "Event"
|
|
101661
|
+
},
|
|
101662
|
+
"description": "Deprecated. Mirrors change event for React. Will be removed once React properly supports change events.",
|
|
101663
|
+
"deprecated": "true"
|
|
101664
|
+
}
|
|
101665
|
+
],
|
|
101666
|
+
"attributes": [
|
|
101667
|
+
{
|
|
101668
|
+
"name": "allow-empty-selection",
|
|
101669
|
+
"type": {
|
|
101670
|
+
"text": "boolean"
|
|
101671
|
+
},
|
|
101672
|
+
"default": "false",
|
|
101673
|
+
"description": "Whether the radios can be deselected.",
|
|
101674
|
+
"fieldName": "allowEmptySelection"
|
|
101675
|
+
},
|
|
101676
|
+
{
|
|
101677
|
+
"name": "required",
|
|
101678
|
+
"type": {
|
|
101679
|
+
"text": "boolean"
|
|
101680
|
+
},
|
|
101681
|
+
"default": "false",
|
|
101682
|
+
"description": "Whether the radio group is required.",
|
|
101683
|
+
"fieldName": "required"
|
|
101684
|
+
},
|
|
101685
|
+
{
|
|
101686
|
+
"name": "value",
|
|
101687
|
+
"description": "The value of the radio group.",
|
|
101688
|
+
"type": {
|
|
101689
|
+
"text": "T | null"
|
|
101690
|
+
},
|
|
101691
|
+
"fieldName": "value"
|
|
101692
|
+
},
|
|
101693
|
+
{
|
|
101694
|
+
"name": "size",
|
|
101695
|
+
"type": {
|
|
101696
|
+
"text": "SbbRadioButtonSize"
|
|
101697
|
+
},
|
|
101698
|
+
"description": "Size variant, either xs, s or m.",
|
|
101699
|
+
"default": "'m' / 'xs' (lean)",
|
|
101700
|
+
"fieldName": "size"
|
|
101701
|
+
},
|
|
101702
|
+
{
|
|
101703
|
+
"name": "horizontal-from",
|
|
101704
|
+
"type": {
|
|
101705
|
+
"text": "SbbHorizontalFrom | null"
|
|
101706
|
+
},
|
|
101707
|
+
"default": "null",
|
|
101708
|
+
"description": "Overrides the behaviour of `orientation` property.",
|
|
101709
|
+
"fieldName": "horizontalFrom"
|
|
101710
|
+
},
|
|
101711
|
+
{
|
|
101712
|
+
"name": "orientation",
|
|
101713
|
+
"type": {
|
|
101714
|
+
"text": "SbbOrientation"
|
|
101715
|
+
},
|
|
101716
|
+
"default": "'horizontal'",
|
|
101717
|
+
"description": "Radio group's orientation, either horizontal or vertical.",
|
|
101718
|
+
"fieldName": "orientation"
|
|
101719
|
+
},
|
|
101720
|
+
{
|
|
101721
|
+
"name": "name",
|
|
101722
|
+
"type": {
|
|
101723
|
+
"text": "string"
|
|
101724
|
+
},
|
|
101725
|
+
"default": "`sbb-radio-button-group-${++nextId}`",
|
|
101726
|
+
"fieldName": "name"
|
|
101727
|
+
},
|
|
101728
|
+
{
|
|
101729
|
+
"name": "disabled",
|
|
101730
|
+
"description": "Whether the component is disabled.",
|
|
101731
|
+
"default": "false",
|
|
101732
|
+
"type": {
|
|
101733
|
+
"text": "boolean"
|
|
101734
|
+
},
|
|
101735
|
+
"fieldName": "disabled",
|
|
101736
|
+
"inheritedFrom": {
|
|
101737
|
+
"name": "SbbDisabledMixin",
|
|
101738
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
101739
|
+
}
|
|
101740
|
+
}
|
|
101741
|
+
],
|
|
101742
|
+
"mixins": [
|
|
101743
|
+
{
|
|
101744
|
+
"name": "SbbDisabledMixin",
|
|
101745
|
+
"module": "core/mixins.js"
|
|
101746
|
+
},
|
|
101747
|
+
{
|
|
101748
|
+
"name": "SbbElementInternalsMixin",
|
|
101749
|
+
"module": "core/mixins.js"
|
|
101750
|
+
}
|
|
101751
|
+
],
|
|
101752
|
+
"superclass": {
|
|
101753
|
+
"name": "LitElement",
|
|
101754
|
+
"package": "lit"
|
|
101755
|
+
},
|
|
101756
|
+
"classGenerics": "T = string",
|
|
101757
|
+
"tagName": "sbb-radio-button-group",
|
|
101758
|
+
"customElement": true
|
|
101759
|
+
}
|
|
101760
|
+
],
|
|
101761
|
+
"exports": [
|
|
101762
|
+
{
|
|
101763
|
+
"kind": "js",
|
|
101764
|
+
"name": "SbbRadioButtonGroupElement",
|
|
101765
|
+
"declaration": {
|
|
101766
|
+
"name": "SbbRadioButtonGroupElement",
|
|
101767
|
+
"module": "radio-button/radio-button-group/radio-button-group.component.js"
|
|
101768
|
+
}
|
|
101769
|
+
},
|
|
101770
|
+
{
|
|
101771
|
+
"kind": "custom-element-definition",
|
|
101772
|
+
"name": "sbb-radio-button-group",
|
|
101773
|
+
"declaration": {
|
|
101774
|
+
"name": "SbbRadioButtonGroupElement",
|
|
101775
|
+
"module": "radio-button/radio-button-group/radio-button-group.component.js"
|
|
101776
|
+
}
|
|
101777
|
+
}
|
|
101778
|
+
]
|
|
101779
|
+
},
|
|
101715
101780
|
{
|
|
101716
101781
|
"kind": "javascript-module",
|
|
101717
101782
|
"path": "sidebar/sidebar/sidebar.component.js",
|