@sbb-esta/lyne-elements-dev 4.6.0-dev.1772457568 → 4.6.0-dev.1772462503

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.
@@ -100241,283 +100241,230 @@
100241
100241
  },
100242
100242
  {
100243
100243
  "kind": "javascript-module",
100244
- "path": "radio-button/radio-button-panel/radio-button-panel.component.js",
100244
+ "path": "radio-button/radio-button-group/radio-button-group.component.js",
100245
100245
  "declarations": [
100246
100246
  {
100247
100247
  "kind": "class",
100248
- "description": "/**\n It displays a radio button enhanced with the panel design.",
100249
- "name": "SbbRadioButtonPanelElement",
100248
+ "description": "It can be used as a container for one or more `sbb-radio-button`.",
100249
+ "name": "SbbRadioButtonGroupElement",
100250
100250
  "slots": [
100251
100251
  {
100252
- "description": "Use the unnamed slot to add content to the radio label.",
100252
+ "description": "Use the unnamed slot to add `sbb-radio-button` elements to the `sbb-radio-button-group`.",
100253
100253
  "name": ""
100254
100254
  },
100255
100255
  {
100256
- "description": "Slot used to render a subtext under the label.",
100257
- "name": "subtext"
100258
- },
100259
- {
100260
- "description": "Slot used to render additional content after the label.",
100261
- "name": "suffix"
100262
- },
100263
- {
100264
- "description": "Use this slot to provide a `sbb-card-badge` (optional).",
100265
- "name": "badge"
100256
+ "description": "Use this to provide a `sbb-error` to show an error message.",
100257
+ "name": "error"
100266
100258
  }
100267
100259
  ],
100268
100260
  "members": [
100261
+ {
100262
+ "kind": "field",
100263
+ "name": "role",
100264
+ "type": {
100265
+ "text": "string"
100266
+ },
100267
+ "privacy": "public",
100268
+ "static": true,
100269
+ "readonly": true,
100270
+ "default": "'radiogroup'"
100271
+ },
100269
100272
  {
100270
100273
  "kind": "field",
100271
100274
  "name": "events",
100272
100275
  "privacy": "public",
100273
100276
  "static": true,
100274
100277
  "readonly": true,
100275
- "default": "{ change: 'change', input: 'input', }",
100278
+ "default": "{ didChange: 'didChange', change: 'change', input: 'input', }",
100276
100279
  "type": {
100277
- "text": "{\n change: 'change',\n input: 'input',\n }"
100278
- },
100279
- "inheritedFrom": {
100280
- "name": "SbbRadioButtonCommonElementMixin",
100281
- "module": "radio-button/common/radio-button-common.js"
100280
+ "text": "{\n didChange: 'didChange',\n change: 'change',\n input: 'input',\n }"
100282
100281
  }
100283
100282
  },
100284
100283
  {
100285
100284
  "kind": "field",
100286
- "name": "value",
100285
+ "name": "allowEmptySelection",
100287
100286
  "type": {
100288
- "text": "(T = string) | null"
100287
+ "text": "boolean"
100289
100288
  },
100290
100289
  "privacy": "public",
100291
- "default": "null",
100292
- "description": "The value of the form element",
100293
- "attribute": "value",
100294
- "inheritedFrom": {
100295
- "name": "SbbFormAssociatedMixin",
100296
- "module": "core/mixins/form-associated-mixin.js"
100297
- }
100290
+ "default": "false",
100291
+ "description": "Whether the radios can be deselected.",
100292
+ "attribute": "allow-empty-selection"
100298
100293
  },
100299
100294
  {
100300
100295
  "kind": "field",
100301
- "name": "_hasSelectionPanelElement",
100296
+ "name": "required",
100302
100297
  "type": {
100303
100298
  "text": "boolean"
100304
100299
  },
100305
- "privacy": "private",
100306
- "default": "false"
100307
- },
100308
- {
100309
- "kind": "method",
100310
- "name": "updateFocusableRadios",
100311
- "privacy": "protected",
100312
- "return": {
100313
- "type": {
100314
- "text": "void"
100315
- }
100316
- },
100317
- "description": "As an exception, panels with a selection-panel attached are always focusable",
100318
- "inheritedFrom": {
100319
- "name": "SbbFormAssociatedRadioButtonMixin",
100320
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100321
- }
100322
- },
100323
- {
100324
- "kind": "method",
100325
- "name": "navigateByKeyboard",
100326
- "privacy": "protected",
100327
- "return": {
100328
- "type": {
100329
- "text": "Promise<void>"
100330
- }
100331
- },
100332
- "parameters": [
100333
- {
100334
- "name": "next",
100335
- "type": {
100336
- "text": "SbbRadioButtonPanelElement"
100337
- }
100338
- }
100339
- ],
100340
- "description": "As an exception, radio-panels with a selection-panel attached are not checked automatically when navigating by keyboard",
100341
- "inheritedFrom": {
100342
- "name": "SbbFormAssociatedRadioButtonMixin",
100343
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100344
- }
100300
+ "privacy": "public",
100301
+ "default": "false",
100302
+ "description": "Whether the radio group is required.",
100303
+ "attribute": "required"
100345
100304
  },
100346
100305
  {
100347
100306
  "kind": "field",
100348
- "name": "color",
100307
+ "name": "value",
100308
+ "privacy": "public",
100309
+ "description": "The value of the radio group.",
100349
100310
  "type": {
100350
- "text": "'white' | 'milk'"
100311
+ "text": "(T = string) | null"
100351
100312
  },
100352
- "privacy": "public",
100353
- "default": "'white'",
100354
- "description": "The background color of the panel.",
100355
- "attribute": "color",
100356
- "reflects": true,
100357
- "inheritedFrom": {
100358
- "name": "SbbPanelMixin",
100359
- "module": "core/mixins/panel-mixin.js"
100360
- }
100313
+ "attribute": "value"
100361
100314
  },
100362
100315
  {
100363
100316
  "kind": "field",
100364
- "name": "borderless",
100317
+ "name": "_fallbackValue",
100365
100318
  "type": {
100366
- "text": "boolean"
100319
+ "text": "T | null"
100367
100320
  },
100368
- "privacy": "public",
100369
- "default": "false",
100370
- "description": "Whether the unselected panel has a border.",
100371
- "attribute": "borderless",
100372
- "reflects": true,
100373
- "inheritedFrom": {
100374
- "name": "SbbPanelMixin",
100375
- "module": "core/mixins/panel-mixin.js"
100376
- }
100321
+ "privacy": "private",
100322
+ "default": "null",
100323
+ "description": "Used to preserve the `value` in case the radios are not yet 'loaded'"
100377
100324
  },
100378
100325
  {
100379
100326
  "kind": "field",
100380
100327
  "name": "size",
100381
100328
  "type": {
100382
- "text": "SbbCheckboxSize | SbbRadioButtonSize"
100329
+ "text": "SbbRadioButtonSize"
100383
100330
  },
100384
100331
  "privacy": "public",
100385
100332
  "description": "Size variant, either xs, s or m.",
100386
100333
  "default": "'m' / 'xs' (lean)",
100387
- "attribute": "size",
100388
- "reflects": true,
100389
- "inheritedFrom": {
100390
- "name": "SbbPanelMixin",
100391
- "module": "core/mixins/panel-mixin.js"
100392
- }
100334
+ "attribute": "size"
100393
100335
  },
100394
100336
  {
100395
100337
  "kind": "field",
100396
- "name": "allowEmptySelection",
100397
- "privacy": "public",
100398
- "description": "Whether the radio can be deselected.",
100338
+ "name": "horizontalFrom",
100399
100339
  "type": {
100400
- "text": "boolean"
100401
- },
100402
- "attribute": "allow-empty-selection",
100403
- "inheritedFrom": {
100404
- "name": "SbbRadioButtonCommonElementMixin",
100405
- "module": "radio-button/common/radio-button-common.js"
100340
+ "text": "SbbHorizontalFrom | null"
100406
100341
  },
100407
- "default": "false"
100342
+ "privacy": "public",
100343
+ "default": "null",
100344
+ "description": "Overrides the behaviour of `orientation` property.",
100345
+ "attribute": "horizontal-from",
100346
+ "reflects": true
100408
100347
  },
100409
100348
  {
100410
100349
  "kind": "field",
100411
- "name": "_allowEmptySelection",
100350
+ "name": "orientation",
100412
100351
  "type": {
100413
- "text": "boolean"
100352
+ "text": "SbbOrientation"
100414
100353
  },
100415
- "privacy": "private",
100416
- "default": "false",
100417
- "inheritedFrom": {
100418
- "name": "SbbRadioButtonCommonElementMixin",
100419
- "module": "radio-button/common/radio-button-common.js"
100420
- }
100354
+ "privacy": "public",
100355
+ "default": "'horizontal'",
100356
+ "description": "Radio group's orientation, either horizontal or vertical.",
100357
+ "attribute": "orientation",
100358
+ "reflects": true
100421
100359
  },
100422
100360
  {
100423
100361
  "kind": "field",
100424
- "name": "group",
100362
+ "name": "name",
100425
100363
  "type": {
100426
- "text": "SbbRadioButtonGroupElement | null"
100364
+ "text": "string"
100427
100365
  },
100428
100366
  "privacy": "public",
100429
- "description": "Reference to the connected radio button group.",
100430
- "readonly": true,
100431
- "inheritedFrom": {
100432
- "name": "SbbRadioButtonCommonElementMixin",
100433
- "module": "radio-button/common/radio-button-common.js"
100434
- },
100435
- "default": "null"
100367
+ "default": "`sbb-radio-button-group-${++nextId}`",
100368
+ "attribute": "name"
100436
100369
  },
100437
100370
  {
100438
100371
  "kind": "field",
100439
- "name": "_group",
100372
+ "name": "radioButtons",
100440
100373
  "type": {
100441
- "text": "SbbRadioButtonGroupElement | null"
100374
+ "text": "(SbbRadioButtonElement<T> | SbbRadioButtonPanelElement<T>)[]"
100442
100375
  },
100443
- "privacy": "private",
100444
- "default": "null",
100445
- "inheritedFrom": {
100446
- "name": "SbbRadioButtonCommonElementMixin",
100447
- "module": "radio-button/common/radio-button-common.js"
100448
- }
100376
+ "privacy": "public",
100377
+ "description": "List of contained radio buttons.",
100378
+ "readonly": true
100449
100379
  },
100450
100380
  {
100451
100381
  "kind": "method",
100452
- "name": "select",
100453
- "privacy": "public",
100382
+ "name": "_onRadioChange",
100383
+ "privacy": "private",
100454
100384
  "return": {
100455
100385
  "type": {
100456
100386
  "text": "void"
100457
100387
  }
100458
100388
  },
100459
- "description": "Set the radio-button as 'checked'; if 'allowEmptySelection', toggle the checked property.\nIn both cases it emits the change events.",
100460
- "inheritedFrom": {
100461
- "name": "SbbRadioButtonCommonElementMixin",
100462
- "module": "radio-button/common/radio-button-common.js"
100463
- }
100389
+ "parameters": [
100390
+ {
100391
+ "name": "event",
100392
+ "type": {
100393
+ "text": "Event"
100394
+ }
100395
+ }
100396
+ ]
100464
100397
  },
100465
100398
  {
100466
100399
  "kind": "method",
100467
- "name": "isDisabledExternally",
100468
- "privacy": "protected",
100400
+ "name": "_updateRadiosName",
100401
+ "privacy": "private",
100469
100402
  "return": {
100470
100403
  "type": {
100471
- "text": "boolean"
100404
+ "text": "void"
100472
100405
  }
100473
100406
  },
100474
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100475
- "inheritedFrom": {
100476
- "name": "SbbDisabledMixin",
100477
- "module": "core/mixins/disabled-mixin.js"
100478
- }
100407
+ "description": "Proxy 'name' to child radio-buttons"
100479
100408
  },
100480
100409
  {
100481
100410
  "kind": "method",
100482
- "name": "isRequiredExternally",
100483
- "privacy": "protected",
100411
+ "name": "_updateRadioState",
100412
+ "privacy": "private",
100484
100413
  "return": {
100485
100414
  "type": {
100486
- "text": "boolean"
100415
+ "text": "void"
100487
100416
  }
100488
100417
  },
100489
- "description": "Will be used as 'or' check to the current required state.\nCan e.g. be used to read required state of a group.",
100418
+ "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"
100419
+ },
100420
+ {
100421
+ "kind": "field",
100422
+ "name": "disabled",
100423
+ "privacy": "public",
100424
+ "description": "Whether the component is disabled.",
100425
+ "default": "false",
100426
+ "type": {
100427
+ "text": "boolean"
100428
+ },
100429
+ "attribute": "disabled",
100430
+ "reflects": true,
100490
100431
  "inheritedFrom": {
100491
- "name": "SbbRequiredMixin",
100492
- "module": "core/mixins/required-mixin.js"
100432
+ "name": "SbbDisabledMixin",
100433
+ "module": "core/mixins/disabled-mixin.js"
100493
100434
  }
100494
100435
  },
100495
100436
  {
100496
- "kind": "method",
100497
- "name": "_handleClick",
100437
+ "kind": "field",
100438
+ "name": "#disabled",
100498
100439
  "privacy": "private",
100499
- "return": {
100440
+ "type": {
100441
+ "text": "boolean"
100442
+ },
100443
+ "default": "false",
100444
+ "inheritedFrom": {
100445
+ "name": "SbbDisabledMixin",
100446
+ "module": "core/mixins/disabled-mixin.js"
100447
+ }
100448
+ },
100449
+ {
100450
+ "kind": "method",
100451
+ "name": "isDisabledExternally",
100452
+ "privacy": "protected",
100453
+ "return": {
100500
100454
  "type": {
100501
- "text": "Promise<void>"
100455
+ "text": "boolean"
100502
100456
  }
100503
100457
  },
100504
- "parameters": [
100505
- {
100506
- "name": "event",
100507
- "type": {
100508
- "text": "Event"
100509
- }
100510
- }
100511
- ],
100458
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100512
100459
  "inheritedFrom": {
100513
- "name": "SbbRadioButtonCommonElementMixin",
100514
- "module": "radio-button/common/radio-button-common.js"
100460
+ "name": "SbbDisabledMixin",
100461
+ "module": "core/mixins/disabled-mixin.js"
100515
100462
  }
100516
100463
  },
100517
100464
  {
100518
100465
  "kind": "method",
100519
- "name": "_handleKeyDown",
100520
- "privacy": "private",
100466
+ "name": "toggleState",
100467
+ "privacy": "protected",
100521
100468
  "return": {
100522
100469
  "type": {
100523
100470
  "text": "void"
@@ -100525,119 +100472,225 @@
100525
100472
  },
100526
100473
  "parameters": [
100527
100474
  {
100528
- "name": "evt",
100475
+ "name": "value",
100529
100476
  "type": {
100530
- "text": "KeyboardEvent"
100477
+ "text": "string"
100478
+ }
100479
+ },
100480
+ {
100481
+ "name": "force",
100482
+ "optional": true,
100483
+ "type": {
100484
+ "text": "boolean"
100531
100485
  }
100532
100486
  }
100533
100487
  ],
100534
100488
  "inheritedFrom": {
100535
- "name": "SbbRadioButtonCommonElementMixin",
100536
- "module": "radio-button/common/radio-button-common.js"
100489
+ "name": "SbbElementInternalsMixin",
100490
+ "module": "core/mixins/element-internals-mixin.js"
100537
100491
  }
100538
- },
100492
+ }
100493
+ ],
100494
+ "events": [
100539
100495
  {
100540
- "kind": "field",
100541
- "name": "role",
100496
+ "name": "didChange",
100542
100497
  "type": {
100543
- "text": "string"
100498
+ "text": "Event"
100544
100499
  },
100545
- "privacy": "public",
100546
- "static": true,
100547
- "readonly": true,
100548
- "default": "'radio'",
100549
- "inheritedFrom": {
100550
- "name": "SbbFormAssociatedRadioButtonMixin",
100551
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100552
- }
100500
+ "description": "Deprecated. Mirrors change event for React. Will be removed once React properly supports change events.",
100501
+ "deprecated": "true"
100502
+ }
100503
+ ],
100504
+ "attributes": [
100505
+ {
100506
+ "name": "allow-empty-selection",
100507
+ "type": {
100508
+ "text": "boolean"
100509
+ },
100510
+ "default": "false",
100511
+ "description": "Whether the radios can be deselected.",
100512
+ "fieldName": "allowEmptySelection"
100553
100513
  },
100554
100514
  {
100555
- "kind": "field",
100556
- "name": "checked",
100557
- "privacy": "public",
100558
- "description": "Whether the radio button is checked.",
100515
+ "name": "required",
100559
100516
  "type": {
100560
100517
  "text": "boolean"
100561
100518
  },
100562
- "attribute": "checked",
100563
- "inheritedFrom": {
100564
- "name": "SbbFormAssociatedRadioButtonMixin",
100565
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100519
+ "default": "false",
100520
+ "description": "Whether the radio group is required.",
100521
+ "fieldName": "required"
100522
+ },
100523
+ {
100524
+ "name": "value",
100525
+ "description": "The value of the radio group.",
100526
+ "type": {
100527
+ "text": "T | null"
100566
100528
  },
100567
- "default": "false"
100529
+ "fieldName": "value"
100568
100530
  },
100569
100531
  {
100570
- "kind": "field",
100571
- "name": "_checked",
100532
+ "name": "size",
100572
100533
  "type": {
100573
- "text": "boolean"
100534
+ "text": "SbbRadioButtonSize"
100574
100535
  },
100575
- "privacy": "private",
100536
+ "description": "Size variant, either xs, s or m.",
100537
+ "default": "'m' / 'xs' (lean)",
100538
+ "fieldName": "size"
100539
+ },
100540
+ {
100541
+ "name": "horizontal-from",
100542
+ "type": {
100543
+ "text": "SbbHorizontalFrom | null"
100544
+ },
100545
+ "default": "null",
100546
+ "description": "Overrides the behaviour of `orientation` property.",
100547
+ "fieldName": "horizontalFrom"
100548
+ },
100549
+ {
100550
+ "name": "orientation",
100551
+ "type": {
100552
+ "text": "SbbOrientation"
100553
+ },
100554
+ "default": "'horizontal'",
100555
+ "description": "Radio group's orientation, either horizontal or vertical.",
100556
+ "fieldName": "orientation"
100557
+ },
100558
+ {
100559
+ "name": "name",
100560
+ "type": {
100561
+ "text": "string"
100562
+ },
100563
+ "default": "`sbb-radio-button-group-${++nextId}`",
100564
+ "fieldName": "name"
100565
+ },
100566
+ {
100567
+ "name": "disabled",
100568
+ "description": "Whether the component is disabled.",
100576
100569
  "default": "false",
100570
+ "type": {
100571
+ "text": "boolean"
100572
+ },
100573
+ "fieldName": "disabled",
100577
100574
  "inheritedFrom": {
100578
- "name": "SbbFormAssociatedRadioButtonMixin",
100579
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100575
+ "name": "SbbDisabledMixin",
100576
+ "module": "core/mixins/disabled-mixin.js"
100580
100577
  }
100578
+ }
100579
+ ],
100580
+ "mixins": [
100581
+ {
100582
+ "name": "SbbDisabledMixin",
100583
+ "module": "core/mixins.js"
100584
+ },
100585
+ {
100586
+ "name": "SbbElementInternalsMixin",
100587
+ "module": "core/mixins.js"
100588
+ }
100589
+ ],
100590
+ "superclass": {
100591
+ "name": "LitElement",
100592
+ "package": "lit"
100593
+ },
100594
+ "classGenerics": "T = string",
100595
+ "tagName": "sbb-radio-button-group",
100596
+ "customElement": true
100597
+ }
100598
+ ],
100599
+ "exports": [
100600
+ {
100601
+ "kind": "js",
100602
+ "name": "SbbRadioButtonGroupElement",
100603
+ "declaration": {
100604
+ "name": "SbbRadioButtonGroupElement",
100605
+ "module": "radio-button/radio-button-group/radio-button-group.component.js"
100606
+ }
100607
+ },
100608
+ {
100609
+ "kind": "custom-element-definition",
100610
+ "name": "sbb-radio-button-group",
100611
+ "declaration": {
100612
+ "name": "SbbRadioButtonGroupElement",
100613
+ "module": "radio-button/radio-button-group/radio-button-group.component.js"
100614
+ }
100615
+ }
100616
+ ]
100617
+ },
100618
+ {
100619
+ "kind": "javascript-module",
100620
+ "path": "radio-button/radio-button-panel/radio-button-panel.component.js",
100621
+ "declarations": [
100622
+ {
100623
+ "kind": "class",
100624
+ "description": "/**\n It displays a radio button enhanced with the panel design.",
100625
+ "name": "SbbRadioButtonPanelElement",
100626
+ "slots": [
100627
+ {
100628
+ "description": "Use the unnamed slot to add content to the radio label.",
100629
+ "name": ""
100630
+ },
100631
+ {
100632
+ "description": "Slot used to render a subtext under the label.",
100633
+ "name": "subtext"
100634
+ },
100635
+ {
100636
+ "description": "Slot used to render additional content after the label.",
100637
+ "name": "suffix"
100581
100638
  },
100639
+ {
100640
+ "description": "Use this slot to provide a `sbb-card-badge` (optional).",
100641
+ "name": "badge"
100642
+ }
100643
+ ],
100644
+ "members": [
100582
100645
  {
100583
100646
  "kind": "field",
100584
- "name": "name",
100647
+ "name": "events",
100585
100648
  "privacy": "public",
100586
- "description": "Name of the form element. Will be read from name attribute.",
100649
+ "static": true,
100650
+ "readonly": true,
100651
+ "default": "{ change: 'change', input: 'input', }",
100587
100652
  "type": {
100588
- "text": "string"
100653
+ "text": "{\n change: 'change',\n input: 'input',\n }"
100589
100654
  },
100590
- "attribute": "name",
100591
100655
  "inheritedFrom": {
100592
- "name": "SbbFormAssociatedMixin",
100593
- "module": "core/mixins/form-associated-mixin.js"
100656
+ "name": "SbbRadioButtonCommonElementMixin",
100657
+ "module": "radio-button/common/radio-button-common.js"
100594
100658
  }
100595
100659
  },
100596
100660
  {
100597
100661
  "kind": "field",
100598
- "name": "type",
100662
+ "name": "value",
100599
100663
  "type": {
100600
- "text": "string"
100664
+ "text": "(T = string) | null"
100601
100665
  },
100602
100666
  "privacy": "public",
100603
- "description": "Form type of element.",
100604
- "default": "'radio'",
100605
- "readonly": true,
100667
+ "default": "null",
100668
+ "description": "The value of the form element",
100669
+ "attribute": "value",
100606
100670
  "inheritedFrom": {
100607
- "name": "SbbFormAssociatedRadioButtonMixin",
100608
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100671
+ "name": "SbbFormAssociatedMixin",
100672
+ "module": "core/mixins/form-associated-mixin.js"
100609
100673
  }
100610
100674
  },
100611
100675
  {
100612
100676
  "kind": "field",
100613
- "name": "associatedRadioButtons",
100677
+ "name": "_hasSelectionPanelElement",
100614
100678
  "type": {
100615
- "text": "Set<SbbFormAssociatedRadioButtonElement> | undefined"
100679
+ "text": "boolean"
100616
100680
  },
100681
+ "privacy": "private",
100682
+ "default": "false"
100683
+ },
100684
+ {
100685
+ "kind": "method",
100686
+ "name": "updateFocusableRadios",
100617
100687
  "privacy": "protected",
100618
- "description": "Set of radio buttons that belongs to the same group of `this`.\nAssume them ordered in DOM order",
100619
- "inheritedFrom": {
100620
- "name": "SbbFormAssociatedRadioButtonMixin",
100621
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100622
- }
100623
- },
100624
- {
100625
- "kind": "field",
100626
- "name": "_radioButtonGroupsMap",
100627
- "type": {
100628
- "text": "Map<string, Set<SbbFormAssociatedRadioButtonMixinType>> | undefined"
100629
- },
100630
- "privacy": "private",
100631
- "inheritedFrom": {
100632
- "name": "SbbFormAssociatedRadioButtonMixin",
100633
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100634
- }
100635
- },
100636
- {
100637
- "kind": "field",
100638
- "name": "_languageController",
100639
- "privacy": "private",
100640
- "default": "new SbbLanguageController(this)",
100688
+ "return": {
100689
+ "type": {
100690
+ "text": "void"
100691
+ }
100692
+ },
100693
+ "description": "As an exception, panels with a selection-panel attached are always focusable",
100641
100694
  "inheritedFrom": {
100642
100695
  "name": "SbbFormAssociatedRadioButtonMixin",
100643
100696
  "module": "core/mixins/form-associated-radio-button-mixin.js"
@@ -100645,174 +100698,205 @@
100645
100698
  },
100646
100699
  {
100647
100700
  "kind": "method",
100648
- "name": "_readFormData",
100649
- "privacy": "private",
100701
+ "name": "navigateByKeyboard",
100702
+ "privacy": "protected",
100650
100703
  "return": {
100651
100704
  "type": {
100652
- "text": "Promise<unknown>"
100705
+ "text": "Promise<void>"
100653
100706
  }
100654
100707
  },
100655
100708
  "parameters": [
100656
100709
  {
100657
- "name": "formData",
100710
+ "name": "next",
100658
100711
  "type": {
100659
- "text": "FormData"
100712
+ "text": "SbbRadioButtonPanelElement"
100660
100713
  }
100661
100714
  }
100662
100715
  ],
100716
+ "description": "As an exception, radio-panels with a selection-panel attached are not checked automatically when navigating by keyboard",
100663
100717
  "inheritedFrom": {
100664
100718
  "name": "SbbFormAssociatedRadioButtonMixin",
100665
100719
  "module": "core/mixins/form-associated-radio-button-mixin.js"
100666
100720
  }
100667
100721
  },
100668
100722
  {
100669
- "kind": "method",
100670
- "name": "updateFormValue",
100671
- "privacy": "protected",
100672
- "return": {
100673
- "type": {
100674
- "text": "void"
100675
- }
100723
+ "kind": "field",
100724
+ "name": "color",
100725
+ "type": {
100726
+ "text": "'white' | 'milk'"
100676
100727
  },
100677
- "description": "Called on `value` change\nIf 'checked', update the value. Otherwise, do nothing.",
100728
+ "privacy": "public",
100729
+ "default": "'white'",
100730
+ "description": "The background color of the panel.",
100731
+ "attribute": "color",
100732
+ "reflects": true,
100678
100733
  "inheritedFrom": {
100679
- "name": "SbbFormAssociatedMixin",
100680
- "module": "core/mixins/form-associated-mixin.js"
100734
+ "name": "SbbPanelMixin",
100735
+ "module": "core/mixins/panel-mixin.js"
100681
100736
  }
100682
100737
  },
100683
100738
  {
100684
- "kind": "method",
100685
- "name": "shouldValidate",
100686
- "privacy": "protected",
100687
- "return": {
100688
- "type": {
100689
- "text": "boolean"
100690
- }
100739
+ "kind": "field",
100740
+ "name": "borderless",
100741
+ "type": {
100742
+ "text": "boolean"
100691
100743
  },
100692
- "parameters": [
100693
- {
100694
- "name": "name",
100695
- "type": {
100696
- "text": "PropertyKey | undefined"
100697
- }
100698
- }
100699
- ],
100700
- "description": "Whether validation should be run on a property change with the given name.",
100744
+ "privacy": "public",
100745
+ "default": "false",
100746
+ "description": "Whether the unselected panel has a border.",
100747
+ "attribute": "borderless",
100748
+ "reflects": true,
100701
100749
  "inheritedFrom": {
100702
- "name": "SbbFormAssociatedMixin",
100703
- "module": "core/mixins/form-associated-mixin.js"
100750
+ "name": "SbbPanelMixin",
100751
+ "module": "core/mixins/panel-mixin.js"
100704
100752
  }
100705
100753
  },
100706
100754
  {
100707
- "kind": "method",
100708
- "name": "validate",
100709
- "privacy": "protected",
100710
- "return": {
100711
- "type": {
100712
- "text": "void"
100713
- }
100755
+ "kind": "field",
100756
+ "name": "size",
100757
+ "type": {
100758
+ "text": "SbbCheckboxSize | SbbRadioButtonSize"
100714
100759
  },
100715
- "description": "Sets the validity of all associated radio buttons.\nIf any radio button is required, all associated are required as well.",
100760
+ "privacy": "public",
100761
+ "description": "Size variant, either xs, s or m.",
100762
+ "default": "'m' / 'xs' (lean)",
100763
+ "attribute": "size",
100764
+ "reflects": true,
100716
100765
  "inheritedFrom": {
100717
- "name": "SbbFormAssociatedMixin",
100718
- "module": "core/mixins/form-associated-mixin.js"
100766
+ "name": "SbbPanelMixin",
100767
+ "module": "core/mixins/panel-mixin.js"
100719
100768
  }
100720
100769
  },
100721
100770
  {
100722
- "kind": "method",
100723
- "name": "emitChangeEvents",
100724
- "privacy": "protected",
100725
- "return": {
100726
- "type": {
100727
- "text": "void"
100728
- }
100771
+ "kind": "field",
100772
+ "name": "allowEmptySelection",
100773
+ "privacy": "public",
100774
+ "description": "Whether the radio can be deselected.",
100775
+ "type": {
100776
+ "text": "boolean"
100729
100777
  },
100778
+ "attribute": "allow-empty-selection",
100730
100779
  "inheritedFrom": {
100731
- "name": "SbbFormAssociatedRadioButtonMixin",
100732
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100733
- }
100780
+ "name": "SbbRadioButtonCommonElementMixin",
100781
+ "module": "radio-button/common/radio-button-common.js"
100782
+ },
100783
+ "default": "false"
100734
100784
  },
100735
100785
  {
100736
- "kind": "method",
100737
- "name": "_synchronizeGroupState",
100786
+ "kind": "field",
100787
+ "name": "_allowEmptySelection",
100788
+ "type": {
100789
+ "text": "boolean"
100790
+ },
100738
100791
  "privacy": "private",
100739
- "return": {
100740
- "type": {
100741
- "text": "void"
100742
- }
100792
+ "default": "false",
100793
+ "inheritedFrom": {
100794
+ "name": "SbbRadioButtonCommonElementMixin",
100795
+ "module": "radio-button/common/radio-button-common.js"
100796
+ }
100797
+ },
100798
+ {
100799
+ "kind": "field",
100800
+ "name": "group",
100801
+ "type": {
100802
+ "text": "SbbRadioButtonGroupElement | null"
100743
100803
  },
100804
+ "privacy": "public",
100805
+ "description": "Reference to the connected radio button group.",
100806
+ "readonly": true,
100744
100807
  "inheritedFrom": {
100745
- "name": "SbbFormAssociatedRadioButtonMixin",
100746
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100808
+ "name": "SbbRadioButtonCommonElementMixin",
100809
+ "module": "radio-button/common/radio-button-common.js"
100810
+ },
100811
+ "default": "null"
100812
+ },
100813
+ {
100814
+ "kind": "field",
100815
+ "name": "_group",
100816
+ "type": {
100817
+ "text": "SbbRadioButtonGroupElement | null"
100818
+ },
100819
+ "privacy": "private",
100820
+ "default": "null",
100821
+ "inheritedFrom": {
100822
+ "name": "SbbRadioButtonCommonElementMixin",
100823
+ "module": "radio-button/common/radio-button-common.js"
100747
100824
  }
100748
100825
  },
100749
100826
  {
100750
100827
  "kind": "method",
100751
- "name": "_connectToRegistry",
100752
- "privacy": "private",
100828
+ "name": "select",
100829
+ "privacy": "public",
100753
100830
  "return": {
100754
100831
  "type": {
100755
100832
  "text": "void"
100756
100833
  }
100757
100834
  },
100758
- "description": "Add `this` to the radioButton registry",
100835
+ "description": "Set the radio-button as 'checked'; if 'allowEmptySelection', toggle the checked property.\nIn both cases it emits the change events.",
100759
100836
  "inheritedFrom": {
100760
- "name": "SbbFormAssociatedRadioButtonMixin",
100761
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100837
+ "name": "SbbRadioButtonCommonElementMixin",
100838
+ "module": "radio-button/common/radio-button-common.js"
100762
100839
  }
100763
100840
  },
100764
100841
  {
100765
100842
  "kind": "method",
100766
- "name": "_disconnectFromRegistry",
100767
- "privacy": "private",
100843
+ "name": "isDisabledExternally",
100844
+ "privacy": "protected",
100768
100845
  "return": {
100769
100846
  "type": {
100770
- "text": "void"
100847
+ "text": "boolean"
100771
100848
  }
100772
100849
  },
100773
- "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map",
100850
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100774
100851
  "inheritedFrom": {
100775
- "name": "SbbFormAssociatedRadioButtonMixin",
100776
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100852
+ "name": "SbbDisabledMixin",
100853
+ "module": "core/mixins/disabled-mixin.js"
100777
100854
  }
100778
100855
  },
100779
100856
  {
100780
100857
  "kind": "method",
100781
- "name": "_interactableGroupedRadios",
100782
- "privacy": "private",
100858
+ "name": "isRequiredExternally",
100859
+ "privacy": "protected",
100783
100860
  "return": {
100784
100861
  "type": {
100785
- "text": "SbbFormAssociatedRadioButtonElement[]"
100862
+ "text": "boolean"
100786
100863
  }
100787
100864
  },
100788
- "description": "Return a list of 'interactable' grouped radios, ordered in DOM order",
100865
+ "description": "Will be used as 'or' check to the current required state.\nCan e.g. be used to read required state of a group.",
100789
100866
  "inheritedFrom": {
100790
- "name": "SbbFormAssociatedRadioButtonMixin",
100791
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100867
+ "name": "SbbRequiredMixin",
100868
+ "module": "core/mixins/required-mixin.js"
100792
100869
  }
100793
100870
  },
100794
100871
  {
100795
100872
  "kind": "method",
100796
- "name": "_deselectGroupedRadios",
100873
+ "name": "_handleClick",
100797
100874
  "privacy": "private",
100798
100875
  "return": {
100799
100876
  "type": {
100800
- "text": "void"
100877
+ "text": "Promise<void>"
100801
100878
  }
100802
100879
  },
100803
- "description": "Deselect other radio of the same group",
100880
+ "parameters": [
100881
+ {
100882
+ "name": "event",
100883
+ "type": {
100884
+ "text": "Event"
100885
+ }
100886
+ }
100887
+ ],
100804
100888
  "inheritedFrom": {
100805
- "name": "SbbFormAssociatedRadioButtonMixin",
100806
- "module": "core/mixins/form-associated-radio-button-mixin.js"
100889
+ "name": "SbbRadioButtonCommonElementMixin",
100890
+ "module": "radio-button/common/radio-button-common.js"
100807
100891
  }
100808
100892
  },
100809
100893
  {
100810
100894
  "kind": "method",
100811
- "name": "_handleArrowKeyDown",
100895
+ "name": "_handleKeyDown",
100812
100896
  "privacy": "private",
100813
100897
  "return": {
100814
100898
  "type": {
100815
- "text": "Promise<void>"
100899
+ "text": "void"
100816
100900
  }
100817
100901
  },
100818
100902
  "parameters": [
@@ -100823,6 +100907,21 @@
100823
100907
  }
100824
100908
  }
100825
100909
  ],
100910
+ "inheritedFrom": {
100911
+ "name": "SbbRadioButtonCommonElementMixin",
100912
+ "module": "radio-button/common/radio-button-common.js"
100913
+ }
100914
+ },
100915
+ {
100916
+ "kind": "field",
100917
+ "name": "role",
100918
+ "type": {
100919
+ "text": "string"
100920
+ },
100921
+ "privacy": "public",
100922
+ "static": true,
100923
+ "readonly": true,
100924
+ "default": "'radio'",
100826
100925
  "inheritedFrom": {
100827
100926
  "name": "SbbFormAssociatedRadioButtonMixin",
100828
100927
  "module": "core/mixins/form-associated-radio-button-mixin.js"
@@ -100830,71 +100929,41 @@
100830
100929
  },
100831
100930
  {
100832
100931
  "kind": "field",
100833
- "name": "disabled",
100932
+ "name": "checked",
100834
100933
  "privacy": "public",
100835
- "description": "Whether the component is disabled.",
100836
- "default": "false",
100934
+ "description": "Whether the radio button is checked.",
100837
100935
  "type": {
100838
100936
  "text": "boolean"
100839
100937
  },
100840
- "attribute": "disabled",
100841
- "reflects": true,
100938
+ "attribute": "checked",
100842
100939
  "inheritedFrom": {
100843
- "name": "SbbDisabledMixin",
100844
- "module": "core/mixins/disabled-mixin.js"
100845
- }
100940
+ "name": "SbbFormAssociatedRadioButtonMixin",
100941
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100942
+ },
100943
+ "default": "false"
100846
100944
  },
100847
100945
  {
100848
100946
  "kind": "field",
100849
- "name": "#disabled",
100850
- "privacy": "private",
100947
+ "name": "_checked",
100851
100948
  "type": {
100852
100949
  "text": "boolean"
100853
100950
  },
100951
+ "privacy": "private",
100854
100952
  "default": "false",
100855
100953
  "inheritedFrom": {
100856
- "name": "SbbDisabledMixin",
100857
- "module": "core/mixins/disabled-mixin.js"
100954
+ "name": "SbbFormAssociatedRadioButtonMixin",
100955
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100858
100956
  }
100859
100957
  },
100860
100958
  {
100861
100959
  "kind": "field",
100862
- "name": "required",
100960
+ "name": "name",
100863
100961
  "privacy": "public",
100864
- "description": "Whether the component is required.",
100865
- "type": {
100866
- "text": "boolean"
100867
- },
100868
- "attribute": "required",
100869
- "reflects": true,
100870
- "inheritedFrom": {
100871
- "name": "SbbRequiredMixin",
100872
- "module": "core/mixins/required-mixin.js"
100873
- },
100874
- "default": "false"
100875
- },
100876
- {
100877
- "kind": "field",
100878
- "name": "_required",
100879
- "type": {
100880
- "text": "boolean"
100881
- },
100882
- "privacy": "private",
100883
- "default": "false",
100884
- "inheritedFrom": {
100885
- "name": "SbbRequiredMixin",
100886
- "module": "core/mixins/required-mixin.js"
100887
- }
100888
- },
100889
- {
100890
- "kind": "field",
100891
- "name": "formAssociated",
100962
+ "description": "Name of the form element. Will be read from name attribute.",
100892
100963
  "type": {
100893
- "text": "boolean"
100964
+ "text": "string"
100894
100965
  },
100895
- "privacy": "public",
100896
- "static": true,
100897
- "default": "true",
100966
+ "attribute": "name",
100898
100967
  "inheritedFrom": {
100899
100968
  "name": "SbbFormAssociatedMixin",
100900
100969
  "module": "core/mixins/form-associated-mixin.js"
@@ -100902,79 +100971,86 @@
100902
100971
  },
100903
100972
  {
100904
100973
  "kind": "field",
100905
- "name": "form",
100974
+ "name": "type",
100906
100975
  "type": {
100907
- "text": "HTMLFormElement | null"
100976
+ "text": "string"
100908
100977
  },
100909
100978
  "privacy": "public",
100910
- "description": "Returns the form owner of this element.",
100979
+ "description": "Form type of element.",
100980
+ "default": "'radio'",
100911
100981
  "readonly": true,
100912
100982
  "inheritedFrom": {
100913
- "name": "SbbFormAssociatedMixin",
100914
- "module": "core/mixins/form-associated-mixin.js"
100983
+ "name": "SbbFormAssociatedRadioButtonMixin",
100984
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100915
100985
  }
100916
100986
  },
100917
100987
  {
100918
100988
  "kind": "field",
100919
- "name": "validity",
100989
+ "name": "associatedRadioButtons",
100920
100990
  "type": {
100921
- "text": "ValidityState"
100991
+ "text": "Set<SbbFormAssociatedRadioButtonElement> | undefined"
100922
100992
  },
100923
- "privacy": "public",
100924
- "description": "Returns the ValidityState object for this element.",
100925
- "readonly": true,
100993
+ "privacy": "protected",
100994
+ "description": "Set of radio buttons that belongs to the same group of `this`.\nAssume them ordered in DOM order",
100926
100995
  "inheritedFrom": {
100927
- "name": "SbbFormAssociatedMixin",
100928
- "module": "core/mixins/form-associated-mixin.js"
100996
+ "name": "SbbFormAssociatedRadioButtonMixin",
100997
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100929
100998
  }
100930
100999
  },
100931
101000
  {
100932
101001
  "kind": "field",
100933
- "name": "validationMessage",
101002
+ "name": "_radioButtonGroupsMap",
100934
101003
  "type": {
100935
- "text": "string"
101004
+ "text": "Map<string, Set<SbbFormAssociatedRadioButtonMixinType>> | undefined"
100936
101005
  },
100937
- "privacy": "public",
100938
- "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.",
100939
- "readonly": true,
101006
+ "privacy": "private",
100940
101007
  "inheritedFrom": {
100941
- "name": "SbbFormAssociatedMixin",
100942
- "module": "core/mixins/form-associated-mixin.js"
101008
+ "name": "SbbFormAssociatedRadioButtonMixin",
101009
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100943
101010
  }
100944
101011
  },
100945
101012
  {
100946
101013
  "kind": "field",
100947
- "name": "willValidate",
100948
- "type": {
100949
- "text": "boolean"
100950
- },
100951
- "privacy": "public",
100952
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100953
- "readonly": true,
101014
+ "name": "_languageController",
101015
+ "privacy": "private",
101016
+ "default": "new SbbLanguageController(this)",
100954
101017
  "inheritedFrom": {
100955
- "name": "SbbFormAssociatedMixin",
100956
- "module": "core/mixins/form-associated-mixin.js"
101018
+ "name": "SbbFormAssociatedRadioButtonMixin",
101019
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100957
101020
  }
100958
101021
  },
100959
101022
  {
100960
- "kind": "field",
100961
- "name": "_validityStates",
101023
+ "kind": "method",
101024
+ "name": "_readFormData",
100962
101025
  "privacy": "private",
100963
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101026
+ "return": {
101027
+ "type": {
101028
+ "text": "Promise<unknown>"
101029
+ }
101030
+ },
101031
+ "parameters": [
101032
+ {
101033
+ "name": "formData",
101034
+ "type": {
101035
+ "text": "FormData"
101036
+ }
101037
+ }
101038
+ ],
100964
101039
  "inheritedFrom": {
100965
- "name": "SbbFormAssociatedMixin",
100966
- "module": "core/mixins/form-associated-mixin.js"
101040
+ "name": "SbbFormAssociatedRadioButtonMixin",
101041
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
100967
101042
  }
100968
101043
  },
100969
101044
  {
100970
- "kind": "field",
100971
- "name": "formDisabled",
100972
- "type": {
100973
- "text": "boolean"
100974
- },
101045
+ "kind": "method",
101046
+ "name": "updateFormValue",
100975
101047
  "privacy": "protected",
100976
- "default": "false",
100977
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101048
+ "return": {
101049
+ "type": {
101050
+ "text": "void"
101051
+ }
101052
+ },
101053
+ "description": "Called on `value` change\nIf 'checked', update the value. Otherwise, do nothing.",
100978
101054
  "inheritedFrom": {
100979
101055
  "name": "SbbFormAssociatedMixin",
100980
101056
  "module": "core/mixins/form-associated-mixin.js"
@@ -100982,14 +101058,22 @@
100982
101058
  },
100983
101059
  {
100984
101060
  "kind": "method",
100985
- "name": "checkValidity",
100986
- "privacy": "public",
101061
+ "name": "shouldValidate",
101062
+ "privacy": "protected",
100987
101063
  "return": {
100988
101064
  "type": {
100989
101065
  "text": "boolean"
100990
101066
  }
100991
101067
  },
100992
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101068
+ "parameters": [
101069
+ {
101070
+ "name": "name",
101071
+ "type": {
101072
+ "text": "PropertyKey | undefined"
101073
+ }
101074
+ }
101075
+ ],
101076
+ "description": "Whether validation should be run on a property change with the given name.",
100993
101077
  "inheritedFrom": {
100994
101078
  "name": "SbbFormAssociatedMixin",
100995
101079
  "module": "core/mixins/form-associated-mixin.js"
@@ -100997,14 +101081,14 @@
100997
101081
  },
100998
101082
  {
100999
101083
  "kind": "method",
101000
- "name": "reportValidity",
101001
- "privacy": "public",
101084
+ "name": "validate",
101085
+ "privacy": "protected",
101002
101086
  "return": {
101003
101087
  "type": {
101004
- "text": "boolean"
101088
+ "text": "void"
101005
101089
  }
101006
101090
  },
101007
- "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.",
101091
+ "description": "Sets the validity of all associated radio buttons.\nIf any radio button is required, all associated are required as well.",
101008
101092
  "inheritedFrom": {
101009
101093
  "name": "SbbFormAssociatedMixin",
101010
101094
  "module": "core/mixins/form-associated-mixin.js"
@@ -101012,537 +101096,387 @@
101012
101096
  },
101013
101097
  {
101014
101098
  "kind": "method",
101015
- "name": "setCustomValidity",
101016
- "privacy": "public",
101099
+ "name": "emitChangeEvents",
101100
+ "privacy": "protected",
101017
101101
  "return": {
101018
101102
  "type": {
101019
101103
  "text": "void"
101020
101104
  }
101021
101105
  },
101022
- "parameters": [
101023
- {
101024
- "name": "message",
101025
- "type": {
101026
- "text": "string"
101027
- }
101028
- }
101029
- ],
101030
- "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.",
101031
101106
  "inheritedFrom": {
101032
- "name": "SbbFormAssociatedMixin",
101033
- "module": "core/mixins/form-associated-mixin.js"
101107
+ "name": "SbbFormAssociatedRadioButtonMixin",
101108
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101034
101109
  }
101035
101110
  },
101036
101111
  {
101037
101112
  "kind": "method",
101038
- "name": "_hasDisabledAncestor",
101113
+ "name": "_synchronizeGroupState",
101039
101114
  "privacy": "private",
101040
101115
  "return": {
101041
101116
  "type": {
101042
- "text": "boolean"
101117
+ "text": "void"
101043
101118
  }
101044
101119
  },
101045
101120
  "inheritedFrom": {
101046
- "name": "SbbFormAssociatedMixin",
101047
- "module": "core/mixins/form-associated-mixin.js"
101121
+ "name": "SbbFormAssociatedRadioButtonMixin",
101122
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101048
101123
  }
101049
101124
  },
101050
101125
  {
101051
101126
  "kind": "method",
101052
- "name": "formState",
101053
- "privacy": "protected",
101127
+ "name": "_connectToRegistry",
101128
+ "privacy": "private",
101054
101129
  "return": {
101055
101130
  "type": {
101056
- "text": "FormRestoreState"
101131
+ "text": "void"
101057
101132
  }
101058
101133
  },
101134
+ "description": "Add `this` to the radioButton registry",
101059
101135
  "inheritedFrom": {
101060
- "name": "SbbFormAssociatedMixin",
101061
- "module": "core/mixins/form-associated-mixin.js"
101136
+ "name": "SbbFormAssociatedRadioButtonMixin",
101137
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101062
101138
  }
101063
101139
  },
101064
101140
  {
101065
101141
  "kind": "method",
101066
- "name": "setValidityFlag",
101067
- "privacy": "protected",
101142
+ "name": "_disconnectFromRegistry",
101143
+ "privacy": "private",
101068
101144
  "return": {
101069
101145
  "type": {
101070
101146
  "text": "void"
101071
101147
  }
101072
101148
  },
101073
- "parameters": [
101074
- {
101075
- "name": "flag",
101076
- "type": {
101077
- "text": "T"
101078
- }
101079
- },
101080
- {
101081
- "name": "message",
101082
- "type": {
101083
- "text": "string"
101084
- }
101085
- },
101086
- {
101087
- "name": "flagValue",
101088
- "optional": true,
101089
- "type": {
101090
- "text": "ValidityStateFlags[T]"
101091
- }
101092
- }
101093
- ],
101094
- "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).",
101149
+ "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map",
101095
101150
  "inheritedFrom": {
101096
- "name": "SbbFormAssociatedMixin",
101097
- "module": "core/mixins/form-associated-mixin.js"
101151
+ "name": "SbbFormAssociatedRadioButtonMixin",
101152
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101098
101153
  }
101099
101154
  },
101100
101155
  {
101101
101156
  "kind": "method",
101102
- "name": "removeValidityFlag",
101103
- "privacy": "protected",
101157
+ "name": "_interactableGroupedRadios",
101158
+ "privacy": "private",
101104
101159
  "return": {
101105
101160
  "type": {
101106
- "text": "void"
101161
+ "text": "SbbFormAssociatedRadioButtonElement[]"
101107
101162
  }
101108
101163
  },
101109
- "parameters": [
101110
- {
101111
- "name": "flag",
101112
- "type": {
101113
- "text": "T"
101114
- }
101115
- }
101116
- ],
101117
- "description": "Removes the validity state flag entry and updates validity state.",
101164
+ "description": "Return a list of 'interactable' grouped radios, ordered in DOM order",
101118
101165
  "inheritedFrom": {
101119
- "name": "SbbFormAssociatedMixin",
101120
- "module": "core/mixins/form-associated-mixin.js"
101166
+ "name": "SbbFormAssociatedRadioButtonMixin",
101167
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101121
101168
  }
101122
101169
  },
101123
101170
  {
101124
101171
  "kind": "method",
101125
- "name": "_setInternalValidity",
101172
+ "name": "_deselectGroupedRadios",
101126
101173
  "privacy": "private",
101127
101174
  "return": {
101128
101175
  "type": {
101129
101176
  "text": "void"
101130
101177
  }
101131
101178
  },
101179
+ "description": "Deselect other radio of the same group",
101132
101180
  "inheritedFrom": {
101133
- "name": "SbbFormAssociatedMixin",
101134
- "module": "core/mixins/form-associated-mixin.js"
101181
+ "name": "SbbFormAssociatedRadioButtonMixin",
101182
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101135
101183
  }
101136
101184
  },
101137
101185
  {
101138
101186
  "kind": "method",
101139
- "name": "toggleState",
101140
- "privacy": "protected",
101187
+ "name": "_handleArrowKeyDown",
101188
+ "privacy": "private",
101141
101189
  "return": {
101142
101190
  "type": {
101143
- "text": "void"
101191
+ "text": "Promise<void>"
101144
101192
  }
101145
101193
  },
101146
101194
  "parameters": [
101147
101195
  {
101148
- "name": "value",
101196
+ "name": "evt",
101149
101197
  "type": {
101150
- "text": "string"
101151
- }
101152
- },
101153
- {
101154
- "name": "force",
101155
- "optional": true,
101156
- "type": {
101157
- "text": "boolean"
101198
+ "text": "KeyboardEvent"
101158
101199
  }
101159
101200
  }
101160
101201
  ],
101161
- "inheritedFrom": {
101162
- "name": "SbbElementInternalsMixin",
101163
- "module": "core/mixins/element-internals-mixin.js"
101164
- }
101165
- },
101166
- {
101167
- "kind": "field",
101168
- "name": "_updatePromise",
101169
- "privacy": "private",
101170
- "inheritedFrom": {
101171
- "name": "SbbUpdateSchedulerMixin",
101172
- "module": "core/mixins/update-scheduler-mixin.js"
101173
- }
101174
- },
101175
- {
101176
- "kind": "field",
101177
- "name": "_updateResolve",
101178
- "privacy": "private",
101179
- "inheritedFrom": {
101180
- "name": "SbbUpdateSchedulerMixin",
101181
- "module": "core/mixins/update-scheduler-mixin.js"
101182
- }
101183
- },
101184
- {
101185
- "kind": "method",
101186
- "name": "startUpdate",
101187
- "privacy": "protected",
101188
- "return": {
101189
- "type": {
101190
- "text": "void"
101191
- }
101192
- },
101193
- "inheritedFrom": {
101194
- "name": "SbbUpdateSchedulerMixin",
101195
- "module": "core/mixins/update-scheduler-mixin.js"
101196
- }
101197
- },
101198
- {
101199
- "kind": "method",
101200
- "name": "completeUpdate",
101201
- "privacy": "protected",
101202
- "return": {
101203
- "type": {
101204
- "text": "void"
101205
- }
101206
- },
101207
- "inheritedFrom": {
101208
- "name": "SbbUpdateSchedulerMixin",
101209
- "module": "core/mixins/update-scheduler-mixin.js"
101210
- }
101211
- },
101212
- {
101213
- "kind": "method",
101214
- "name": "getUpdateComplete",
101215
- "privacy": "protected",
101216
- "return": {
101217
- "type": {
101218
- "text": "Promise<boolean>"
101219
- }
101220
- },
101221
- "inheritedFrom": {
101222
- "name": "SbbUpdateSchedulerMixin",
101223
- "module": "core/mixins/update-scheduler-mixin.js"
101224
- }
101225
- }
101226
- ],
101227
- "events": [
101228
- {
101229
- "name": "change",
101230
- "type": {
101231
- "text": "Event"
101232
- },
101233
- "description": "The change event is fired when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
101234
101202
  "inheritedFrom": {
101235
101203
  "name": "SbbFormAssociatedRadioButtonMixin",
101236
101204
  "module": "core/mixins/form-associated-radio-button-mixin.js"
101237
101205
  }
101238
101206
  },
101239
101207
  {
101240
- "name": "input",
101241
- "type": {
101242
- "text": "InputEvent"
101243
- },
101244
- "description": "The input event fires when the value has been changed as a direct result of a user action.",
101245
- "inheritedFrom": {
101246
- "name": "SbbFormAssociatedRadioButtonMixin",
101247
- "module": "core/mixins/form-associated-radio-button-mixin.js"
101248
- }
101249
- }
101250
- ],
101251
- "attributes": [
101252
- {
101253
- "name": "value",
101254
- "type": {
101255
- "text": "T | null"
101256
- },
101257
- "default": "null",
101258
- "description": "The value of the form element",
101259
- "fieldName": "value"
101260
- },
101261
- {
101262
- "name": "color",
101208
+ "kind": "field",
101209
+ "name": "disabled",
101210
+ "privacy": "public",
101211
+ "description": "Whether the component is disabled.",
101212
+ "default": "false",
101263
101213
  "type": {
101264
- "text": "'white' | 'milk'"
101214
+ "text": "boolean"
101265
101215
  },
101266
- "default": "'white'",
101267
- "description": "The background color of the panel.",
101268
- "fieldName": "color",
101216
+ "attribute": "disabled",
101217
+ "reflects": true,
101269
101218
  "inheritedFrom": {
101270
- "name": "SbbPanelMixin",
101271
- "module": "core/mixins/panel-mixin.js"
101219
+ "name": "SbbDisabledMixin",
101220
+ "module": "core/mixins/disabled-mixin.js"
101272
101221
  }
101273
101222
  },
101274
101223
  {
101275
- "name": "borderless",
101224
+ "kind": "field",
101225
+ "name": "#disabled",
101226
+ "privacy": "private",
101276
101227
  "type": {
101277
101228
  "text": "boolean"
101278
101229
  },
101279
101230
  "default": "false",
101280
- "description": "Whether the unselected panel has a border.",
101281
- "fieldName": "borderless",
101282
101231
  "inheritedFrom": {
101283
- "name": "SbbPanelMixin",
101284
- "module": "core/mixins/panel-mixin.js"
101285
- }
101286
- },
101287
- {
101288
- "name": "size",
101289
- "type": {
101290
- "text": "SbbCheckboxSize | SbbRadioButtonSize"
101291
- },
101292
- "description": "Size variant, either xs, s or m.",
101293
- "default": "'m' / 'xs' (lean)",
101294
- "fieldName": "size",
101295
- "inheritedFrom": {
101296
- "name": "SbbPanelMixin",
101297
- "module": "core/mixins/panel-mixin.js"
101232
+ "name": "SbbDisabledMixin",
101233
+ "module": "core/mixins/disabled-mixin.js"
101298
101234
  }
101299
101235
  },
101300
101236
  {
101301
- "name": "allow-empty-selection",
101302
- "description": "Whether the radio can be deselected.",
101237
+ "kind": "field",
101238
+ "name": "required",
101239
+ "privacy": "public",
101240
+ "description": "Whether the component is required.",
101303
101241
  "type": {
101304
101242
  "text": "boolean"
101305
101243
  },
101306
- "fieldName": "allowEmptySelection",
101244
+ "attribute": "required",
101245
+ "reflects": true,
101307
101246
  "inheritedFrom": {
101308
- "name": "SbbRadioButtonCommonElementMixin",
101309
- "module": "radio-button/common/radio-button-common.js"
101310
- }
101247
+ "name": "SbbRequiredMixin",
101248
+ "module": "core/mixins/required-mixin.js"
101249
+ },
101250
+ "default": "false"
101311
101251
  },
101312
101252
  {
101313
- "name": "checked",
101314
- "description": "Whether the radio button is checked.",
101253
+ "kind": "field",
101254
+ "name": "_required",
101315
101255
  "type": {
101316
101256
  "text": "boolean"
101317
101257
  },
101318
- "fieldName": "checked",
101258
+ "privacy": "private",
101259
+ "default": "false",
101319
101260
  "inheritedFrom": {
101320
- "name": "SbbFormAssociatedRadioButtonMixin",
101321
- "module": "core/mixins/form-associated-radio-button-mixin.js"
101261
+ "name": "SbbRequiredMixin",
101262
+ "module": "core/mixins/required-mixin.js"
101322
101263
  }
101323
101264
  },
101324
101265
  {
101325
- "name": "name",
101326
- "description": "Name of the form element. Will be read from name attribute.",
101266
+ "kind": "field",
101267
+ "name": "formAssociated",
101327
101268
  "type": {
101328
- "text": "string"
101269
+ "text": "boolean"
101329
101270
  },
101330
- "fieldName": "name",
101271
+ "privacy": "public",
101272
+ "static": true,
101273
+ "default": "true",
101331
101274
  "inheritedFrom": {
101332
101275
  "name": "SbbFormAssociatedMixin",
101333
101276
  "module": "core/mixins/form-associated-mixin.js"
101334
101277
  }
101335
101278
  },
101336
101279
  {
101337
- "name": "disabled",
101338
- "description": "Whether the component is disabled.",
101339
- "default": "false",
101280
+ "kind": "field",
101281
+ "name": "form",
101340
101282
  "type": {
101341
- "text": "boolean"
101283
+ "text": "HTMLFormElement | null"
101342
101284
  },
101343
- "fieldName": "disabled",
101285
+ "privacy": "public",
101286
+ "description": "Returns the form owner of this element.",
101287
+ "readonly": true,
101344
101288
  "inheritedFrom": {
101345
- "name": "SbbDisabledMixin",
101346
- "module": "core/mixins/disabled-mixin.js"
101289
+ "name": "SbbFormAssociatedMixin",
101290
+ "module": "core/mixins/form-associated-mixin.js"
101347
101291
  }
101348
101292
  },
101349
101293
  {
101350
- "name": "required",
101351
- "description": "Whether the component is required.",
101294
+ "kind": "field",
101295
+ "name": "validity",
101352
101296
  "type": {
101353
- "text": "boolean"
101297
+ "text": "ValidityState"
101354
101298
  },
101355
- "fieldName": "required",
101299
+ "privacy": "public",
101300
+ "description": "Returns the ValidityState object for this element.",
101301
+ "readonly": true,
101356
101302
  "inheritedFrom": {
101357
- "name": "SbbRequiredMixin",
101358
- "module": "core/mixins/required-mixin.js"
101303
+ "name": "SbbFormAssociatedMixin",
101304
+ "module": "core/mixins/form-associated-mixin.js"
101359
101305
  }
101360
- }
101361
- ],
101362
- "mixins": [
101363
- {
101364
- "name": "SbbPanelMixin",
101365
- "module": "core/mixins.js"
101366
- },
101367
- {
101368
- "name": "SbbRadioButtonCommonElementMixin",
101369
- "module": "radio-button/common.js"
101370
- },
101371
- {
101372
- "name": "SbbUpdateSchedulerMixin",
101373
- "module": "core/mixins.js"
101374
- }
101375
- ],
101376
- "superclass": {
101377
- "name": "LitElement",
101378
- "package": "lit"
101379
- },
101380
- "classGenerics": "T = string",
101381
- "tagName": "sbb-radio-button-panel",
101382
- "customElement": true
101383
- }
101384
- ],
101385
- "exports": [
101386
- {
101387
- "kind": "js",
101388
- "name": "SbbRadioButtonPanelElement",
101389
- "declaration": {
101390
- "name": "SbbRadioButtonPanelElement",
101391
- "module": "radio-button/radio-button-panel/radio-button-panel.component.js"
101392
- }
101393
- },
101394
- {
101395
- "kind": "custom-element-definition",
101396
- "name": "sbb-radio-button-panel",
101397
- "declaration": {
101398
- "name": "SbbRadioButtonPanelElement",
101399
- "module": "radio-button/radio-button-panel/radio-button-panel.component.js"
101400
- }
101401
- }
101402
- ]
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
101306
  },
101417
- {
101418
- "description": "Use this to provide a `sbb-error` to show an error message.",
101419
- "name": "error"
101420
- }
101421
- ],
101422
- "members": [
101423
101307
  {
101424
101308
  "kind": "field",
101425
- "name": "role",
101309
+ "name": "validationMessage",
101426
101310
  "type": {
101427
101311
  "text": "string"
101428
101312
  },
101429
101313
  "privacy": "public",
101430
- "static": true,
101314
+ "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.",
101431
101315
  "readonly": true,
101432
- "default": "'radiogroup'"
101316
+ "inheritedFrom": {
101317
+ "name": "SbbFormAssociatedMixin",
101318
+ "module": "core/mixins/form-associated-mixin.js"
101319
+ }
101433
101320
  },
101434
101321
  {
101435
101322
  "kind": "field",
101436
- "name": "events",
101323
+ "name": "willValidate",
101324
+ "type": {
101325
+ "text": "boolean"
101326
+ },
101437
101327
  "privacy": "public",
101438
- "static": true,
101328
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101439
101329
  "readonly": true,
101440
- "default": "{ didChange: 'didChange', change: 'change', input: 'input', }",
101441
- "type": {
101442
- "text": "{\n didChange: 'didChange',\n change: 'change',\n input: 'input',\n }"
101330
+ "inheritedFrom": {
101331
+ "name": "SbbFormAssociatedMixin",
101332
+ "module": "core/mixins/form-associated-mixin.js"
101443
101333
  }
101444
101334
  },
101445
101335
  {
101446
101336
  "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"
101337
+ "name": "_validityStates",
101338
+ "privacy": "private",
101339
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101340
+ "inheritedFrom": {
101341
+ "name": "SbbFormAssociatedMixin",
101342
+ "module": "core/mixins/form-associated-mixin.js"
101343
+ }
101455
101344
  },
101456
101345
  {
101457
101346
  "kind": "field",
101458
- "name": "required",
101347
+ "name": "formDisabled",
101459
101348
  "type": {
101460
101349
  "text": "boolean"
101461
101350
  },
101462
- "privacy": "public",
101351
+ "privacy": "protected",
101463
101352
  "default": "false",
101464
- "description": "Whether the radio group is required.",
101465
- "attribute": "required"
101353
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101354
+ "inheritedFrom": {
101355
+ "name": "SbbFormAssociatedMixin",
101356
+ "module": "core/mixins/form-associated-mixin.js"
101357
+ }
101466
101358
  },
101467
101359
  {
101468
- "kind": "field",
101469
- "name": "value",
101360
+ "kind": "method",
101361
+ "name": "checkValidity",
101470
101362
  "privacy": "public",
101471
- "description": "The value of the radio group.",
101472
- "type": {
101473
- "text": "(T = string) | null"
101363
+ "return": {
101364
+ "type": {
101365
+ "text": "boolean"
101366
+ }
101474
101367
  },
101475
- "attribute": "value"
101368
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101369
+ "inheritedFrom": {
101370
+ "name": "SbbFormAssociatedMixin",
101371
+ "module": "core/mixins/form-associated-mixin.js"
101372
+ }
101476
101373
  },
101477
101374
  {
101478
- "kind": "field",
101479
- "name": "_fallbackValue",
101480
- "type": {
101481
- "text": "T | null"
101375
+ "kind": "method",
101376
+ "name": "reportValidity",
101377
+ "privacy": "public",
101378
+ "return": {
101379
+ "type": {
101380
+ "text": "boolean"
101381
+ }
101482
101382
  },
101483
- "privacy": "private",
101484
- "default": "null",
101485
- "description": "Used to preserve the `value` in case the radios are not yet 'loaded'"
101383
+ "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.",
101384
+ "inheritedFrom": {
101385
+ "name": "SbbFormAssociatedMixin",
101386
+ "module": "core/mixins/form-associated-mixin.js"
101387
+ }
101486
101388
  },
101487
101389
  {
101488
- "kind": "field",
101489
- "name": "size",
101490
- "type": {
101491
- "text": "SbbRadioButtonSize"
101492
- },
101390
+ "kind": "method",
101391
+ "name": "setCustomValidity",
101493
101392
  "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"
101393
+ "return": {
101394
+ "type": {
101395
+ "text": "void"
101396
+ }
101503
101397
  },
101504
- "privacy": "public",
101505
- "default": "null",
101506
- "description": "Overrides the behaviour of `orientation` property.",
101507
- "attribute": "horizontal-from",
101508
- "reflects": true
101398
+ "parameters": [
101399
+ {
101400
+ "name": "message",
101401
+ "type": {
101402
+ "text": "string"
101403
+ }
101404
+ }
101405
+ ],
101406
+ "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.",
101407
+ "inheritedFrom": {
101408
+ "name": "SbbFormAssociatedMixin",
101409
+ "module": "core/mixins/form-associated-mixin.js"
101410
+ }
101509
101411
  },
101510
101412
  {
101511
- "kind": "field",
101512
- "name": "orientation",
101513
- "type": {
101514
- "text": "SbbOrientation"
101413
+ "kind": "method",
101414
+ "name": "_hasDisabledAncestor",
101415
+ "privacy": "private",
101416
+ "return": {
101417
+ "type": {
101418
+ "text": "boolean"
101419
+ }
101515
101420
  },
101516
- "privacy": "public",
101517
- "default": "'horizontal'",
101518
- "description": "Radio group's orientation, either horizontal or vertical.",
101519
- "attribute": "orientation",
101520
- "reflects": true
101421
+ "inheritedFrom": {
101422
+ "name": "SbbFormAssociatedMixin",
101423
+ "module": "core/mixins/form-associated-mixin.js"
101424
+ }
101521
101425
  },
101522
101426
  {
101523
- "kind": "field",
101524
- "name": "name",
101525
- "type": {
101526
- "text": "string"
101427
+ "kind": "method",
101428
+ "name": "formState",
101429
+ "privacy": "protected",
101430
+ "return": {
101431
+ "type": {
101432
+ "text": "FormRestoreState"
101433
+ }
101527
101434
  },
101528
- "privacy": "public",
101529
- "default": "`sbb-radio-button-group-${++nextId}`",
101530
- "attribute": "name"
101435
+ "inheritedFrom": {
101436
+ "name": "SbbFormAssociatedMixin",
101437
+ "module": "core/mixins/form-associated-mixin.js"
101438
+ }
101531
101439
  },
101532
101440
  {
101533
- "kind": "field",
101534
- "name": "radioButtons",
101535
- "type": {
101536
- "text": "(SbbRadioButtonElement<T> | SbbRadioButtonPanelElement<T>)[]"
101441
+ "kind": "method",
101442
+ "name": "setValidityFlag",
101443
+ "privacy": "protected",
101444
+ "return": {
101445
+ "type": {
101446
+ "text": "void"
101447
+ }
101537
101448
  },
101538
- "privacy": "public",
101539
- "description": "List of contained radio buttons.",
101540
- "readonly": true
101449
+ "parameters": [
101450
+ {
101451
+ "name": "flag",
101452
+ "type": {
101453
+ "text": "T"
101454
+ }
101455
+ },
101456
+ {
101457
+ "name": "message",
101458
+ "type": {
101459
+ "text": "string"
101460
+ }
101461
+ },
101462
+ {
101463
+ "name": "flagValue",
101464
+ "optional": true,
101465
+ "type": {
101466
+ "text": "ValidityStateFlags[T]"
101467
+ }
101468
+ }
101469
+ ],
101470
+ "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).",
101471
+ "inheritedFrom": {
101472
+ "name": "SbbFormAssociatedMixin",
101473
+ "module": "core/mixins/form-associated-mixin.js"
101474
+ }
101541
101475
  },
101542
101476
  {
101543
101477
  "kind": "method",
101544
- "name": "_onRadioChange",
101545
- "privacy": "private",
101478
+ "name": "removeValidityFlag",
101479
+ "privacy": "protected",
101546
101480
  "return": {
101547
101481
  "type": {
101548
101482
  "text": "void"
@@ -101550,180 +101484,230 @@
101550
101484
  },
101551
101485
  "parameters": [
101552
101486
  {
101553
- "name": "event",
101487
+ "name": "flag",
101554
101488
  "type": {
101555
- "text": "Event"
101489
+ "text": "T"
101556
101490
  }
101557
101491
  }
101558
- ]
101492
+ ],
101493
+ "description": "Removes the validity state flag entry and updates validity state.",
101494
+ "inheritedFrom": {
101495
+ "name": "SbbFormAssociatedMixin",
101496
+ "module": "core/mixins/form-associated-mixin.js"
101497
+ }
101559
101498
  },
101560
101499
  {
101561
101500
  "kind": "method",
101562
- "name": "_updateRadiosName",
101501
+ "name": "_setInternalValidity",
101563
101502
  "privacy": "private",
101564
101503
  "return": {
101565
101504
  "type": {
101566
101505
  "text": "void"
101567
101506
  }
101568
101507
  },
101569
- "description": "Proxy 'name' to child radio-buttons"
101508
+ "inheritedFrom": {
101509
+ "name": "SbbFormAssociatedMixin",
101510
+ "module": "core/mixins/form-associated-mixin.js"
101511
+ }
101570
101512
  },
101571
101513
  {
101572
101514
  "kind": "method",
101573
- "name": "_updateRadioState",
101574
- "privacy": "private",
101515
+ "name": "toggleState",
101516
+ "privacy": "protected",
101575
101517
  "return": {
101576
101518
  "type": {
101577
101519
  "text": "void"
101578
101520
  }
101579
101521
  },
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"
101522
+ "parameters": [
101523
+ {
101524
+ "name": "value",
101525
+ "type": {
101526
+ "text": "string"
101527
+ }
101528
+ },
101529
+ {
101530
+ "name": "force",
101531
+ "optional": true,
101532
+ "type": {
101533
+ "text": "boolean"
101534
+ }
101535
+ }
101536
+ ],
101537
+ "inheritedFrom": {
101538
+ "name": "SbbElementInternalsMixin",
101539
+ "module": "core/mixins/element-internals-mixin.js"
101540
+ }
101581
101541
  },
101582
101542
  {
101583
101543
  "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,
101544
+ "name": "_updatePromise",
101545
+ "privacy": "private",
101593
101546
  "inheritedFrom": {
101594
- "name": "SbbDisabledMixin",
101595
- "module": "core/mixins/disabled-mixin.js"
101547
+ "name": "SbbUpdateSchedulerMixin",
101548
+ "module": "core/mixins/update-scheduler-mixin.js"
101596
101549
  }
101597
101550
  },
101598
101551
  {
101599
101552
  "kind": "field",
101600
- "name": "#disabled",
101553
+ "name": "_updateResolve",
101601
101554
  "privacy": "private",
101602
- "type": {
101603
- "text": "boolean"
101604
- },
101605
- "default": "false",
101606
101555
  "inheritedFrom": {
101607
- "name": "SbbDisabledMixin",
101608
- "module": "core/mixins/disabled-mixin.js"
101556
+ "name": "SbbUpdateSchedulerMixin",
101557
+ "module": "core/mixins/update-scheduler-mixin.js"
101609
101558
  }
101610
101559
  },
101611
101560
  {
101612
101561
  "kind": "method",
101613
- "name": "isDisabledExternally",
101562
+ "name": "startUpdate",
101614
101563
  "privacy": "protected",
101615
101564
  "return": {
101616
101565
  "type": {
101617
- "text": "boolean"
101566
+ "text": "void"
101618
101567
  }
101619
101568
  },
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
101569
  "inheritedFrom": {
101622
- "name": "SbbDisabledMixin",
101623
- "module": "core/mixins/disabled-mixin.js"
101570
+ "name": "SbbUpdateSchedulerMixin",
101571
+ "module": "core/mixins/update-scheduler-mixin.js"
101624
101572
  }
101625
101573
  },
101626
101574
  {
101627
101575
  "kind": "method",
101628
- "name": "toggleState",
101576
+ "name": "completeUpdate",
101629
101577
  "privacy": "protected",
101630
101578
  "return": {
101631
101579
  "type": {
101632
101580
  "text": "void"
101633
101581
  }
101634
101582
  },
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
- }
101583
+ "inheritedFrom": {
101584
+ "name": "SbbUpdateSchedulerMixin",
101585
+ "module": "core/mixins/update-scheduler-mixin.js"
101586
+ }
101587
+ },
101588
+ {
101589
+ "kind": "method",
101590
+ "name": "getUpdateComplete",
101591
+ "privacy": "protected",
101592
+ "return": {
101593
+ "type": {
101594
+ "text": "Promise<boolean>"
101648
101595
  }
101649
- ],
101596
+ },
101650
101597
  "inheritedFrom": {
101651
- "name": "SbbElementInternalsMixin",
101652
- "module": "core/mixins/element-internals-mixin.js"
101598
+ "name": "SbbUpdateSchedulerMixin",
101599
+ "module": "core/mixins/update-scheduler-mixin.js"
101653
101600
  }
101654
101601
  }
101655
101602
  ],
101656
101603
  "events": [
101657
101604
  {
101658
- "name": "didChange",
101605
+ "name": "change",
101659
101606
  "type": {
101660
101607
  "text": "Event"
101661
101608
  },
101662
- "description": "Deprecated. Mirrors change event for React. Will be removed once React properly supports change events.",
101663
- "deprecated": "true"
101609
+ "description": "The change event is fired when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
101610
+ "inheritedFrom": {
101611
+ "name": "SbbFormAssociatedRadioButtonMixin",
101612
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101613
+ }
101614
+ },
101615
+ {
101616
+ "name": "input",
101617
+ "type": {
101618
+ "text": "InputEvent"
101619
+ },
101620
+ "description": "The input event fires when the value has been changed as a direct result of a user action.",
101621
+ "inheritedFrom": {
101622
+ "name": "SbbFormAssociatedRadioButtonMixin",
101623
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101624
+ }
101664
101625
  }
101665
101626
  ],
101666
101627
  "attributes": [
101667
101628
  {
101668
- "name": "allow-empty-selection",
101629
+ "name": "value",
101669
101630
  "type": {
101670
- "text": "boolean"
101631
+ "text": "T | null"
101671
101632
  },
101672
- "default": "false",
101673
- "description": "Whether the radios can be deselected.",
101674
- "fieldName": "allowEmptySelection"
101633
+ "default": "null",
101634
+ "description": "The value of the form element",
101635
+ "fieldName": "value"
101675
101636
  },
101676
101637
  {
101677
- "name": "required",
101638
+ "name": "color",
101678
101639
  "type": {
101679
- "text": "boolean"
101640
+ "text": "'white' | 'milk'"
101680
101641
  },
101681
- "default": "false",
101682
- "description": "Whether the radio group is required.",
101683
- "fieldName": "required"
101642
+ "default": "'white'",
101643
+ "description": "The background color of the panel.",
101644
+ "fieldName": "color",
101645
+ "inheritedFrom": {
101646
+ "name": "SbbPanelMixin",
101647
+ "module": "core/mixins/panel-mixin.js"
101648
+ }
101684
101649
  },
101685
101650
  {
101686
- "name": "value",
101687
- "description": "The value of the radio group.",
101651
+ "name": "borderless",
101688
101652
  "type": {
101689
- "text": "T | null"
101653
+ "text": "boolean"
101690
101654
  },
101691
- "fieldName": "value"
101655
+ "default": "false",
101656
+ "description": "Whether the unselected panel has a border.",
101657
+ "fieldName": "borderless",
101658
+ "inheritedFrom": {
101659
+ "name": "SbbPanelMixin",
101660
+ "module": "core/mixins/panel-mixin.js"
101661
+ }
101692
101662
  },
101693
101663
  {
101694
101664
  "name": "size",
101695
101665
  "type": {
101696
- "text": "SbbRadioButtonSize"
101666
+ "text": "SbbCheckboxSize | SbbRadioButtonSize"
101697
101667
  },
101698
101668
  "description": "Size variant, either xs, s or m.",
101699
101669
  "default": "'m' / 'xs' (lean)",
101700
- "fieldName": "size"
101670
+ "fieldName": "size",
101671
+ "inheritedFrom": {
101672
+ "name": "SbbPanelMixin",
101673
+ "module": "core/mixins/panel-mixin.js"
101674
+ }
101701
101675
  },
101702
101676
  {
101703
- "name": "horizontal-from",
101677
+ "name": "allow-empty-selection",
101678
+ "description": "Whether the radio can be deselected.",
101704
101679
  "type": {
101705
- "text": "SbbHorizontalFrom | null"
101680
+ "text": "boolean"
101706
101681
  },
101707
- "default": "null",
101708
- "description": "Overrides the behaviour of `orientation` property.",
101709
- "fieldName": "horizontalFrom"
101682
+ "fieldName": "allowEmptySelection",
101683
+ "inheritedFrom": {
101684
+ "name": "SbbRadioButtonCommonElementMixin",
101685
+ "module": "radio-button/common/radio-button-common.js"
101686
+ }
101710
101687
  },
101711
101688
  {
101712
- "name": "orientation",
101689
+ "name": "checked",
101690
+ "description": "Whether the radio button is checked.",
101713
101691
  "type": {
101714
- "text": "SbbOrientation"
101692
+ "text": "boolean"
101715
101693
  },
101716
- "default": "'horizontal'",
101717
- "description": "Radio group's orientation, either horizontal or vertical.",
101718
- "fieldName": "orientation"
101694
+ "fieldName": "checked",
101695
+ "inheritedFrom": {
101696
+ "name": "SbbFormAssociatedRadioButtonMixin",
101697
+ "module": "core/mixins/form-associated-radio-button-mixin.js"
101698
+ }
101719
101699
  },
101720
101700
  {
101721
101701
  "name": "name",
101702
+ "description": "Name of the form element. Will be read from name attribute.",
101722
101703
  "type": {
101723
101704
  "text": "string"
101724
101705
  },
101725
- "default": "`sbb-radio-button-group-${++nextId}`",
101726
- "fieldName": "name"
101706
+ "fieldName": "name",
101707
+ "inheritedFrom": {
101708
+ "name": "SbbFormAssociatedMixin",
101709
+ "module": "core/mixins/form-associated-mixin.js"
101710
+ }
101727
101711
  },
101728
101712
  {
101729
101713
  "name": "disabled",
@@ -101737,15 +101721,31 @@
101737
101721
  "name": "SbbDisabledMixin",
101738
101722
  "module": "core/mixins/disabled-mixin.js"
101739
101723
  }
101724
+ },
101725
+ {
101726
+ "name": "required",
101727
+ "description": "Whether the component is required.",
101728
+ "type": {
101729
+ "text": "boolean"
101730
+ },
101731
+ "fieldName": "required",
101732
+ "inheritedFrom": {
101733
+ "name": "SbbRequiredMixin",
101734
+ "module": "core/mixins/required-mixin.js"
101735
+ }
101740
101736
  }
101741
101737
  ],
101742
101738
  "mixins": [
101743
101739
  {
101744
- "name": "SbbDisabledMixin",
101740
+ "name": "SbbPanelMixin",
101745
101741
  "module": "core/mixins.js"
101746
101742
  },
101747
101743
  {
101748
- "name": "SbbElementInternalsMixin",
101744
+ "name": "SbbRadioButtonCommonElementMixin",
101745
+ "module": "radio-button/common.js"
101746
+ },
101747
+ {
101748
+ "name": "SbbUpdateSchedulerMixin",
101749
101749
  "module": "core/mixins.js"
101750
101750
  }
101751
101751
  ],
@@ -101754,25 +101754,25 @@
101754
101754
  "package": "lit"
101755
101755
  },
101756
101756
  "classGenerics": "T = string",
101757
- "tagName": "sbb-radio-button-group",
101757
+ "tagName": "sbb-radio-button-panel",
101758
101758
  "customElement": true
101759
101759
  }
101760
101760
  ],
101761
101761
  "exports": [
101762
101762
  {
101763
101763
  "kind": "js",
101764
- "name": "SbbRadioButtonGroupElement",
101764
+ "name": "SbbRadioButtonPanelElement",
101765
101765
  "declaration": {
101766
- "name": "SbbRadioButtonGroupElement",
101767
- "module": "radio-button/radio-button-group/radio-button-group.component.js"
101766
+ "name": "SbbRadioButtonPanelElement",
101767
+ "module": "radio-button/radio-button-panel/radio-button-panel.component.js"
101768
101768
  }
101769
101769
  },
101770
101770
  {
101771
101771
  "kind": "custom-element-definition",
101772
- "name": "sbb-radio-button-group",
101772
+ "name": "sbb-radio-button-panel",
101773
101773
  "declaration": {
101774
- "name": "SbbRadioButtonGroupElement",
101775
- "module": "radio-button/radio-button-group/radio-button-group.component.js"
101774
+ "name": "SbbRadioButtonPanelElement",
101775
+ "module": "radio-button/radio-button-panel/radio-button-panel.component.js"
101776
101776
  }
101777
101777
  }
101778
101778
  ]