carbon-components-angular 5.10.0 → 5.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/docs/documentation/components/Radio.html +6 -16
  2. package/docs/documentation/components/RadioGroup.html +460 -98
  3. package/docs/documentation/coverage.html +3 -3
  4. package/docs/documentation/graph/dependencies.svg +2138 -2132
  5. package/docs/documentation/js/menu-wc.js +3 -3
  6. package/docs/documentation/js/menu-wc_es5.js +1 -1
  7. package/docs/documentation/js/search/search_index.js +2 -2
  8. package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
  9. package/docs/documentation/modules/ComboBoxModule.html +4 -4
  10. package/docs/documentation/modules/DatePickerModule/dependencies.svg +39 -39
  11. package/docs/documentation/modules/DatePickerModule.html +39 -39
  12. package/docs/documentation/modules/FileUploaderModule/dependencies.svg +34 -34
  13. package/docs/documentation/modules/FileUploaderModule.html +34 -34
  14. package/docs/documentation/modules/LoadingModule/dependencies.svg +4 -4
  15. package/docs/documentation/modules/LoadingModule.html +4 -4
  16. package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +4 -4
  17. package/docs/documentation/modules/ProgressIndicatorModule.html +4 -4
  18. package/docs/documentation/modules/RadioModule/dependencies.svg +54 -38
  19. package/docs/documentation/modules/RadioModule.html +67 -39
  20. package/docs/documentation/modules/SearchModule/dependencies.svg +4 -4
  21. package/docs/documentation/modules/SearchModule.html +4 -4
  22. package/docs/documentation/modules/SelectModule/dependencies.svg +4 -4
  23. package/docs/documentation/modules/SelectModule.html +4 -4
  24. package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
  25. package/docs/documentation/modules/SliderModule.html +4 -4
  26. package/docs/documentation/modules/TableModule/dependencies.svg +4 -4
  27. package/docs/documentation/modules/TableModule.html +4 -4
  28. package/docs/documentation/modules/TagModule/dependencies.svg +4 -4
  29. package/docs/documentation/modules/TagModule.html +4 -4
  30. package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
  31. package/docs/documentation/modules/ThemeModule.html +13 -13
  32. package/docs/documentation/modules/TilesModule/dependencies.svg +100 -100
  33. package/docs/documentation/modules/TilesModule.html +100 -100
  34. package/docs/documentation/modules/TimePickerModule/dependencies.svg +4 -4
  35. package/docs/documentation/modules/TimePickerModule.html +4 -4
  36. package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +4 -4
  37. package/docs/documentation/modules/TimePickerSelectModule.html +4 -4
  38. package/docs/documentation/modules/ToggleModule/dependencies.svg +41 -45
  39. package/docs/documentation/modules/ToggleModule.html +41 -45
  40. package/docs/documentation/modules/ToggletipModule/dependencies.svg +37 -37
  41. package/docs/documentation/modules/ToggletipModule.html +37 -37
  42. package/docs/documentation/modules/TooltipModule/dependencies.svg +4 -4
  43. package/docs/documentation/modules/TooltipModule.html +4 -4
  44. package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
  45. package/docs/documentation/modules/UIShellModule.html +4 -4
  46. package/docs/documentation/overview.html +2138 -2132
  47. package/docs/documentation.json +157 -64
  48. package/docs/storybook/1895.69e2c275.iframe.bundle.js +1 -0
  49. package/docs/storybook/{795.2461bc53.iframe.bundle.js → 795.c2864771.iframe.bundle.js} +3 -3
  50. package/docs/storybook/{795.2461bc53.iframe.bundle.js.map → 795.c2864771.iframe.bundle.js.map} +1 -1
  51. package/docs/storybook/iframe.html +3 -3
  52. package/docs/storybook/main.css +892 -248
  53. package/docs/storybook/{main.5099962e.iframe.bundle.js → main.e1ee5785.iframe.bundle.js} +1 -1
  54. package/docs/storybook/project.json +1 -1
  55. package/docs/storybook/radio-radio-stories.b67e94b9.iframe.bundle.js +1 -0
  56. package/docs/storybook/{runtime~main.593529e2.iframe.bundle.js → runtime~main.ceeada28.iframe.bundle.js} +1 -1
  57. package/esm2020/radio/radio-group.component.mjs +121 -21
  58. package/esm2020/radio/radio.component.mjs +3 -11
  59. package/esm2020/radio/radio.module.mjs +8 -4
  60. package/fesm2015/carbon-components-angular-radio.mjs +129 -33
  61. package/fesm2015/carbon-components-angular-radio.mjs.map +1 -1
  62. package/fesm2020/carbon-components-angular-radio.mjs +129 -33
  63. package/fesm2020/carbon-components-angular-radio.mjs.map +1 -1
  64. package/package.json +1 -1
  65. package/radio/radio-group.component.d.ts +46 -24
  66. package/radio/radio.component.d.ts +1 -1
  67. package/radio/radio.module.d.ts +2 -1
  68. package/docs/storybook/1895.d4241266.iframe.bundle.js +0 -1
  69. package/docs/storybook/radio-radio-stories.6838bad5.iframe.bundle.js +0 -1
  70. /package/docs/storybook/{795.2461bc53.iframe.bundle.js.LICENSE.txt → 795.c2864771.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -41251,7 +41251,7 @@
41251
41251
  },
41252
41252
  {
41253
41253
  "name": "Radio",
41254
- "id": "component-Radio-b46eb45aeba1d607b1abfe948208d8d1412575b5f04d2154e8433e2cd71cb4386018927ca69c9955856589fc882d5416c3584d8f18d2eb0ec2ace241b86fabc5",
41254
+ "id": "component-Radio-c8843624caafee7784002695d7c9e979bc0495b0e346d046ad569302a7e7448065485546a2b71d719a295a1c29cc1bb163df73988f28ab7b47da0d3b35fb3de2",
41255
41255
  "file": "src/radio/radio.component.ts",
41256
41256
  "encapsulation": [],
41257
41257
  "entryComponents": [],
@@ -41265,14 +41265,13 @@
41265
41265
  "selector": "cds-radio, ibm-radio",
41266
41266
  "styleUrls": [],
41267
41267
  "styles": [],
41268
- "template": "<input\n\t*ngIf=\"!skeleton\"\n\tclass=\"cds--radio-button\"\n\ttype=\"radio\"\n\t[checked]=\"checked\"\n\t[disabled]=\"disabled || disabledFromGroup\"\n\t[name]=\"name\"\n\t[id]=\"id\"\n\t[required]=\"required\"\n\t[value]=\"value\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t(change)=\"onChange($event)\"\n\t(click)=\"onClick($event)\">\n<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n<label\n\tclass=\"cds--radio-button__label\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[ngClass]=\"{\n\t\t'cds--skeleton': skeleton\n\t}\"\n\t[for]=\"id\"\n\tid=\"label-{{id}}\">\n\t<span class=\"cds--radio-button__appearance\"></span>\n\t<ng-content></ng-content>\n</label>\n\t",
41268
+ "template": "<input\n\t*ngIf=\"!skeleton\"\n\tclass=\"cds--radio-button\"\n\ttype=\"radio\"\n\t[checked]=\"checked\"\n\t[disabled]=\"disabled || disabledFromGroup\"\n\t[name]=\"name\"\n\t[id]=\"id\"\n\t[required]=\"required\"\n\t[attr.value]=\"value\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t(change)=\"onChange($event)\"\n\t(click)=\"onClick($event)\">\n<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n<label\n\tclass=\"cds--radio-button__label\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[ngClass]=\"{\n\t\t'cds--skeleton': skeleton\n\t}\"\n\t[for]=\"id\"\n\tid=\"label-{{id}}\">\n\t<span class=\"cds--radio-button__appearance\"></span>\n\t<ng-content></ng-content>\n</label>\n\t",
41269
41269
  "templateUrl": [],
41270
41270
  "viewProviders": [],
41271
41271
  "hostDirectives": [],
41272
41272
  "inputsClass": [
41273
41273
  {
41274
41274
  "name": "ariaLabel",
41275
- "defaultValue": "\"\"",
41276
41275
  "deprecated": false,
41277
41276
  "deprecationMessage": "",
41278
41277
  "rawdescription": "\n\nUsed to set the `aria-label` attribute on the input label.\n",
@@ -41360,13 +41359,12 @@
41360
41359
  },
41361
41360
  {
41362
41361
  "name": "value",
41363
- "defaultValue": "\"\"",
41364
41362
  "deprecated": false,
41365
41363
  "deprecationMessage": "",
41366
41364
  "rawdescription": "\n\nThe value of the `Radio`.\n",
41367
41365
  "description": "<p>The value of the <code>Radio</code>.</p>\n",
41368
41366
  "line": 98,
41369
- "type": "string",
41367
+ "type": "any",
41370
41368
  "decorators": []
41371
41369
  }
41372
41370
  ],
@@ -41527,8 +41525,8 @@
41527
41525
  "jsdoctags": [
41528
41526
  {
41529
41527
  "name": {
41530
- "pos": 3183,
41531
- "end": 3185,
41528
+ "pos": 3186,
41529
+ "end": 3188,
41532
41530
  "flags": 8421376,
41533
41531
  "modifierFlagsCache": 0,
41534
41532
  "transformFlags": 0,
@@ -41547,8 +41545,8 @@
41547
41545
  }
41548
41546
  ],
41549
41547
  "tagName": {
41550
- "pos": 3177,
41551
- "end": 3182,
41548
+ "pos": 3180,
41549
+ "end": 3185,
41552
41550
  "flags": 8421376,
41553
41551
  "modifierFlagsCache": 0,
41554
41552
  "transformFlags": 0,
@@ -41615,7 +41613,7 @@
41615
41613
  "description": "<p>class: Radio (extends Checkbox)</p>\n<p>selector: <code>n-radio</code></p>\n<p>source: <code>src/forms/radio.component.ts</code></p>\n<div><pre class=\"line-numbers\"><code class=\"language-html\"> &lt;cds-radio [(ngModel)]=&quot;radioState&quot;&gt;Radio&lt;/cds-radio&gt;</code></pre></div><p>Also see: <a href=\"#cds-radio-group\"><code>RadioGroup</code></a></p>\n",
41616
41614
  "rawdescription": "\n\nclass: Radio (extends Checkbox)\n\nselector: `n-radio`\n\nsource: `src/forms/radio.component.ts`\n\n```html\n\t<cds-radio [(ngModel)]=\"radioState\">Radio</cds-radio>\n```\n\nAlso see: [`RadioGroup`](#cds-radio-group)\n",
41617
41615
  "type": "component",
41618
- "sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * class: Radio (extends Checkbox)\n *\n * selector: `n-radio`\n *\n * source: `src/forms/radio.component.ts`\n *\n * ```html\n *\t<cds-radio [(ngModel)]=\"radioState\">Radio</cds-radio>\n * ```\n *\n * Also see: [`RadioGroup`](#cds-radio-group)\n */\n@Component({\n\tselector: \"cds-radio, ibm-radio\",\n\ttemplate: `\n\t\t<input\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tclass=\"cds--radio-button\"\n\t\t\ttype=\"radio\"\n\t\t\t[checked]=\"checked\"\n\t\t\t[disabled]=\"disabled || disabledFromGroup\"\n\t\t\t[name]=\"name\"\n\t\t\t[id]=\"id\"\n\t\t\t[required]=\"required\"\n\t\t\t[value]=\"value\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t(change)=\"onChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n\t\t<label\n\t\t\tclass=\"cds--radio-button__label\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton': skeleton\n\t\t\t}\"\n\t\t\t[for]=\"id\"\n\t\t\tid=\"label-{{id}}\">\n\t\t\t<span class=\"cds--radio-button__appearance\"></span>\n\t\t\t<ng-content></ng-content>\n\t\t</label>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Radio,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Radio {\n\t/**\n\t * Used to dynamically create unique ids for the `Radio`.\n\t */\n\tstatic radioCount = 0;\n\n\t@Input() checked = false;\n\n\t@Input() name = \"\";\n\n\t@Input() disabled = false;\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t@Input() set ariaLabelledby(value: string) {\n\t\tthis._labelledby = value;\n\t}\n\n\tget ariaLabelledby() {\n\t\tif (this._labelledby) {\n\t\t\treturn this._labelledby;\n\t\t}\n\t\treturn `label-${this.id}`;\n\t}\n\n\t/**\n\t * Used to set the `aria-label` attribute on the input label.\n\t */\n\t@Input() ariaLabel = \"\";\n\n\t/**\n\t * Sets the HTML required attribute\n\t */\n\t@Input() required = false;\n\t/**\n\t * The value of the `Radio`.\n\t */\n\t@Input() value = \"\";\n\t/**\n\t * Set to `true` for a loading table.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * The id for the `Radio`.\n\t */\n\t@Input() id = `radio-${Radio.radioCount++}`;\n\t/**\n\t * emits when the state of the radio changes\n\t */\n\t@Output() change = new EventEmitter<RadioChange>();\n\n\t@HostBinding(\"class.cds--radio-button-wrapper\") hostClass = true;\n\n\t@HostBinding(\"class.cds--radio-button-wrapper--label-left\") get labelLeft() {\n\t\treturn this.labelPlacement === \"left\";\n\t}\n\n\t/**\n\t * Reflects whether or not the input is disabled at `RadioGroup` level.\n\t */\n\tdisabledFromGroup = false;\n\n\tprotected _labelledby = \"\";\n\n\t/**\n\t * Handler provided by the `RadioGroup` to bubble events up\n\t */\n\tradioChangeHandler = (event: RadioChange) => {};\n\n\t/**\n\t * Synchronizes with the `RadioGroup` in the event of a changed `Radio`.\n\t * Emits the changes of both the `RadioGroup` and `Radio`.\n\t */\n\tonChange(event: Event) {\n\t\tevent.stopPropagation();\n\t}\n\n\tonClick(event: Event) {\n\t\tthis.checked = (event.target as HTMLInputElement).checked;\n\t\tconst radioEvent = new RadioChange(this, this.value);\n\t\tthis.change.emit(radioEvent);\n\t\tthis.radioChangeHandler(radioEvent);\n\t}\n\n\t/**\n\t * Method called by `RadioGroup` with a callback function to bubble `RadioChange` events\n\t * @param fn callback that expects a `RadioChange` as an argument\n\t */\n\tregisterRadioChangeHandler(fn: (event: RadioChange) => void) {\n\t\tthis.radioChangeHandler = fn;\n\t}\n\n\tsetDisabledFromGroup(disabled: boolean) {\n\t\tthis.disabledFromGroup = disabled;\n\t}\n}\n",
41616
+ "sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * class: Radio (extends Checkbox)\n *\n * selector: `n-radio`\n *\n * source: `src/forms/radio.component.ts`\n *\n * ```html\n *\t<cds-radio [(ngModel)]=\"radioState\">Radio</cds-radio>\n * ```\n *\n * Also see: [`RadioGroup`](#cds-radio-group)\n */\n@Component({\n\tselector: \"cds-radio, ibm-radio\",\n\ttemplate: `\n\t\t<input\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tclass=\"cds--radio-button\"\n\t\t\ttype=\"radio\"\n\t\t\t[checked]=\"checked\"\n\t\t\t[disabled]=\"disabled || disabledFromGroup\"\n\t\t\t[name]=\"name\"\n\t\t\t[id]=\"id\"\n\t\t\t[required]=\"required\"\n\t\t\t[attr.value]=\"value\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t(change)=\"onChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n\t\t<label\n\t\t\tclass=\"cds--radio-button__label\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton': skeleton\n\t\t\t}\"\n\t\t\t[for]=\"id\"\n\t\t\tid=\"label-{{id}}\">\n\t\t\t<span class=\"cds--radio-button__appearance\"></span>\n\t\t\t<ng-content></ng-content>\n\t\t</label>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Radio,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Radio {\n\t/**\n\t * Used to dynamically create unique ids for the `Radio`.\n\t */\n\tstatic radioCount = 0;\n\n\t@Input() checked = false;\n\n\t@Input() name = \"\";\n\n\t@Input() disabled = false;\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t@Input() set ariaLabelledby(value: string) {\n\t\tthis._labelledby = value;\n\t}\n\n\tget ariaLabelledby() {\n\t\tif (this._labelledby) {\n\t\t\treturn this._labelledby;\n\t\t}\n\t\treturn `label-${this.id}`;\n\t}\n\n\t/**\n\t * Used to set the `aria-label` attribute on the input label.\n\t */\n\t@Input() ariaLabel: string;\n\n\t/**\n\t * Sets the HTML required attribute\n\t */\n\t@Input() required = false;\n\t/**\n\t * The value of the `Radio`.\n\t */\n\t@Input() value;\n\t/**\n\t * Set to `true` for a loading table.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * The id for the `Radio`.\n\t */\n\t@Input() id = `radio-${Radio.radioCount++}`;\n\t/**\n\t * emits when the state of the radio changes\n\t */\n\t@Output() change = new EventEmitter<RadioChange>();\n\n\t@HostBinding(\"class.cds--radio-button-wrapper\") hostClass = true;\n\n\t@HostBinding(\"class.cds--radio-button-wrapper--label-left\") get labelLeft() {\n\t\treturn this.labelPlacement === \"left\";\n\t}\n\n\t/**\n\t * Reflects whether or not the input is disabled at `RadioGroup` level.\n\t */\n\tdisabledFromGroup = false;\n\n\tprotected _labelledby = \"\";\n\n\t/**\n\t * Handler provided by the `RadioGroup` to bubble events up\n\t */\n\tradioChangeHandler = (event: RadioChange) => {};\n\n\t/**\n\t * Synchronizes with the `RadioGroup` in the event of a changed `Radio`.\n\t * Emits the changes of both the `RadioGroup` and `Radio`.\n\t */\n\tonChange(event: Event) {\n\t\tevent.stopPropagation();\n\t}\n\n\tonClick(event: Event) {\n\t\tthis.checked = (event.target as HTMLInputElement).checked;\n\t\tconst radioEvent = new RadioChange(this, this.value);\n\t\tthis.change.emit(radioEvent);\n\t\tthis.radioChangeHandler(radioEvent);\n\t}\n\n\t/**\n\t * Method called by `RadioGroup` with a callback function to bubble `RadioChange` events\n\t * @param fn callback that expects a `RadioChange` as an argument\n\t */\n\tregisterRadioChangeHandler(fn: (event: RadioChange) => void) {\n\t\tthis.radioChangeHandler = fn;\n\t}\n\n\tsetDisabledFromGroup(disabled: boolean) {\n\t\tthis.disabledFromGroup = disabled;\n\t}\n}\n",
41619
41617
  "assetsDirs": [],
41620
41618
  "styleUrlsData": "",
41621
41619
  "stylesData": "",
@@ -41669,7 +41667,7 @@
41669
41667
  },
41670
41668
  {
41671
41669
  "name": "RadioGroup",
41672
- "id": "component-RadioGroup-a19039796bb3d83a44c8da02981e5727d2e4efd7ceeeedc28725a9d37ae2a75f9ef8687bd0f0370ace0f9e8a5e174cbc9028166c032683618365a947fa026480",
41670
+ "id": "component-RadioGroup-eb7f6b447e4eb186c075006786b0a294153ab7d41ecb0c9b9e4a9ddf3610b8351cbcb82263f96c5550fdbb23264650fab8a998e623e482edaa152a7a4ab18c08",
41673
41671
  "file": "src/radio/radio-group.component.ts",
41674
41672
  "encapsulation": [],
41675
41673
  "entryComponents": [],
@@ -41683,7 +41681,7 @@
41683
41681
  "selector": "cds-radio-group, ibm-radio-group",
41684
41682
  "styleUrls": [],
41685
41683
  "styles": [],
41686
- "template": "<div\n\tclass=\"cds--radio-button-group\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t[ngClass]=\"{\n\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t'cds--radio-button-group--label-left': labelPlacement === 'left'\n\t}\">\n\t<ng-content></ng-content>\n</div>\n\t",
41684
+ "template": "<fieldset\n\tclass=\"cds--radio-button-group\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t[ngClass]=\"{\n\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t'cds--radio-button-group--label-left': labelPlacement === 'left',\n\t\t'cds--radio-button-group--invalid' : !warn && invalid,\n\t\t'cds--radio-button-group--warning': !invalid && warn\n\t}\"\n\t[attr.data-invalid]=\"invalid ? true : null\">\n\t<legend *ngIf=\"legend\" class=\"cds--label\">\n\t\t<ng-template *ngIf=\"isTemplate(legend); else legendLabel;\" [ngTemplateOutlet]=\"legend\"></ng-template>\n\t\t<ng-template #legendLabel>{{legend}}</ng-template>\n\t</legend>\n\t<ng-content></ng-content>\n</fieldset>\n<div class=\"cds--radio-button__validation-msg\">\n\t<ng-container *ngIf=\"!warn && invalid\">\n\t\t<svg\n\t\t\tcdsIcon=\"warning--filled\"\n\t\t\tsize=\"16\"\n\t\t\tclass=\"cds--radio-button__invalid-icon\">\n\t\t</svg>\n\t\t<div class=\"cds--form-requirement\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{ invalidText }}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"invalidText\"></ng-template>\n\t\t</div>\n\t</ng-container>\n\t<ng-container *ngIf=\"!invalid && warn\">\n\t\t<svg\n\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\tclass=\"cds--radio-button__invalid-icon cds--radio-button__invalid-icon--warning\"\n\t\t\tsize=\"16\">\n\t\t</svg>\n\t\t<div class=\"cds--form-requirement\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"warnText\"></ng-template>\n\t\t</div>\n\t</ng-container>\n</div>\n<div\n\t*ngIf=\"helperText && !invalid && !warn\"\n\tclass=\"cds--form__helper-text\"\n\t[ngClass]=\"{'cds--form__helper-text--disabled': disabled}\">\n\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"helperText\"></ng-template>\n</div>\n\t",
41687
41685
  "templateUrl": [],
41688
41686
  "viewProviders": [],
41689
41687
  "hostDirectives": [],
@@ -41694,7 +41692,7 @@
41694
41692
  "deprecationMessage": "",
41695
41693
  "rawdescription": "\n\nUsed to set the `aria-label` attribute on the radio group element.\n",
41696
41694
  "description": "<p>Used to set the <code>aria-label</code> attribute on the radio group element.</p>\n",
41697
- "line": 81,
41695
+ "line": 213,
41698
41696
  "type": "string",
41699
41697
  "decorators": []
41700
41698
  },
@@ -41704,7 +41702,7 @@
41704
41702
  "deprecationMessage": "",
41705
41703
  "rawdescription": "\n\nUsed to set the `aria-labelledby` attribute on the radio group element.\n",
41706
41704
  "description": "<p>Used to set the <code>aria-labelledby</code> attribute on the radio group element.</p>\n",
41707
- "line": 86,
41705
+ "line": 218,
41708
41706
  "type": "string",
41709
41707
  "decorators": []
41710
41708
  },
@@ -41714,26 +41712,65 @@
41714
41712
  "deprecationMessage": "",
41715
41713
  "rawdescription": "\n\nSet to true to disable the whole radio group\n",
41716
41714
  "description": "<p>Set to true to disable the whole radio group</p>\n",
41717
- "line": 164,
41715
+ "line": 173,
41716
+ "type": "boolean",
41717
+ "decorators": []
41718
+ },
41719
+ {
41720
+ "name": "helperText",
41721
+ "deprecated": false,
41722
+ "deprecationMessage": "",
41723
+ "rawdescription": "\n\nSets the optional helper text.\n",
41724
+ "description": "<p>Sets the optional helper text.</p>\n",
41725
+ "line": 223,
41726
+ "type": "string | TemplateRef<any>",
41727
+ "decorators": []
41728
+ },
41729
+ {
41730
+ "name": "invalid",
41731
+ "defaultValue": "false",
41732
+ "deprecated": false,
41733
+ "deprecationMessage": "",
41734
+ "rawdescription": "\n\nSet to `true` to show the invalid state.\n",
41735
+ "description": "<p>Set to <code>true</code> to show the invalid state.</p>\n",
41736
+ "line": 228,
41718
41737
  "type": "boolean",
41719
41738
  "decorators": []
41720
41739
  },
41740
+ {
41741
+ "name": "invalidText",
41742
+ "deprecated": false,
41743
+ "deprecationMessage": "",
41744
+ "rawdescription": "\n\nValue displayed if combobox is in an invalid state.\n",
41745
+ "description": "<p>Value displayed if combobox is in an invalid state.</p>\n",
41746
+ "line": 233,
41747
+ "type": "string | TemplateRef<any>",
41748
+ "decorators": []
41749
+ },
41721
41750
  {
41722
41751
  "name": "labelPlacement",
41723
41752
  "defaultValue": "\"right\"",
41724
41753
  "deprecated": false,
41725
41754
  "deprecationMessage": "",
41726
- "line": 75,
41755
+ "line": 206,
41727
41756
  "type": "\"right\" | \"left\"",
41728
41757
  "decorators": []
41729
41758
  },
41759
+ {
41760
+ "name": "legend",
41761
+ "deprecated": false,
41762
+ "deprecationMessage": "",
41763
+ "line": 208,
41764
+ "type": "string | TemplateRef<any>",
41765
+ "decorators": []
41766
+ },
41730
41767
  {
41731
41768
  "name": "name",
41732
41769
  "deprecated": false,
41733
41770
  "deprecationMessage": "",
41734
41771
  "rawdescription": "\n\nReplaces the name associated with the `RadioGroup` with the provided parameter.\n",
41735
41772
  "description": "<p>Replaces the name associated with the <code>RadioGroup</code> with the provided parameter.</p>\n",
41736
- "line": 149,
41773
+ "line": 158,
41737
41774
  "type": "string",
41738
41775
  "decorators": []
41739
41776
  },
@@ -41742,7 +41779,7 @@
41742
41779
  "defaultValue": "\"horizontal\"",
41743
41780
  "deprecated": false,
41744
41781
  "deprecationMessage": "",
41745
- "line": 73,
41782
+ "line": 204,
41746
41783
  "type": "\"horizontal\" | \"vertical\"",
41747
41784
  "decorators": []
41748
41785
  },
@@ -41752,7 +41789,7 @@
41752
41789
  "deprecationMessage": "",
41753
41790
  "rawdescription": "\n\nSets the passed in `Radio` item as the selected input within the `RadioGroup`.\n",
41754
41791
  "description": "<p>Sets the passed in <code>Radio</code> item as the selected input within the <code>RadioGroup</code>.</p>\n",
41755
- "line": 103,
41792
+ "line": 112,
41756
41793
  "type": "Radio | null",
41757
41794
  "decorators": []
41758
41795
  },
@@ -41762,7 +41799,7 @@
41762
41799
  "deprecationMessage": "",
41763
41800
  "rawdescription": "\n\nReturns the skeleton value in the `RadioGroup` if there is one.\n",
41764
41801
  "description": "<p>Returns the skeleton value in the <code>RadioGroup</code> if there is one.</p>\n",
41765
- "line": 179,
41802
+ "line": 188,
41766
41803
  "type": "any",
41767
41804
  "decorators": []
41768
41805
  },
@@ -41772,9 +41809,30 @@
41772
41809
  "deprecationMessage": "",
41773
41810
  "rawdescription": "\n\nSets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n",
41774
41811
  "description": "<p>Sets the value/state of the selected <code>Radio</code> within the <code>RadioGroup</code> to the passed in value.</p>\n",
41775
- "line": 129,
41812
+ "line": 138,
41776
41813
  "type": "any",
41777
41814
  "decorators": []
41815
+ },
41816
+ {
41817
+ "name": "warn",
41818
+ "defaultValue": "false",
41819
+ "deprecated": false,
41820
+ "deprecationMessage": "",
41821
+ "rawdescription": "\n\nSet to `true` to show a warning (contents set by warnText)\n",
41822
+ "description": "<p>Set to <code>true</code> to show a warning (contents set by warnText)</p>\n",
41823
+ "line": 238,
41824
+ "type": "boolean",
41825
+ "decorators": []
41826
+ },
41827
+ {
41828
+ "name": "warnText",
41829
+ "deprecated": false,
41830
+ "deprecationMessage": "",
41831
+ "rawdescription": "\n\nSets the warning text\n",
41832
+ "description": "<p>Sets the warning text</p>\n",
41833
+ "line": 243,
41834
+ "type": "string | TemplateRef<any>",
41835
+ "decorators": []
41778
41836
  }
41779
41837
  ],
41780
41838
  "outputsClass": [
@@ -41785,7 +41843,7 @@
41785
41843
  "deprecationMessage": "",
41786
41844
  "rawdescription": "\n\nEmits event notifying other classes of a change using a `RadioChange` class.\n",
41787
41845
  "description": "<p>Emits event notifying other classes of a change using a <code>RadioChange</code> class.</p>\n",
41788
- "line": 91,
41846
+ "line": 248,
41789
41847
  "type": "EventEmitter<RadioChange>"
41790
41848
  }
41791
41849
  ],
@@ -41798,7 +41856,7 @@
41798
41856
  "type": "function",
41799
41857
  "optional": false,
41800
41858
  "description": "<p>Needed to properly implement ControlValueAccessor.</p>\n",
41801
- "line": 336,
41859
+ "line": 401,
41802
41860
  "rawdescription": "\n\nNeeded to properly implement ControlValueAccessor.\n"
41803
41861
  },
41804
41862
  {
@@ -41809,7 +41867,7 @@
41809
41867
  "type": "",
41810
41868
  "optional": false,
41811
41869
  "description": "<p>Method set in registerOnChange to propagate changes back to the form.</p>\n",
41812
- "line": 341,
41870
+ "line": 406,
41813
41871
  "rawdescription": "\n\nMethod set in registerOnChange to propagate changes back to the form.\n"
41814
41872
  },
41815
41873
  {
@@ -41820,7 +41878,7 @@
41820
41878
  "type": "",
41821
41879
  "optional": false,
41822
41880
  "description": "<p>Binds &#39;cds--form-item&#39; value to the class for <code>RadioGroup</code>.</p>\n",
41823
- "line": 194,
41881
+ "line": 259,
41824
41882
  "rawdescription": "\n\nBinds 'cds--form-item' value to the class for `RadioGroup`.\n",
41825
41883
  "decorators": [
41826
41884
  {
@@ -41840,7 +41898,7 @@
41840
41898
  "type": "number",
41841
41899
  "optional": false,
41842
41900
  "description": "<p>Used for creating the <code>RadioGroup</code> &#39;name&#39; property dynamically.</p>\n",
41843
- "line": 71,
41901
+ "line": 202,
41844
41902
  "rawdescription": "\n\nUsed for creating the `RadioGroup` 'name' property dynamically.\n",
41845
41903
  "modifierKind": [
41846
41904
  124
@@ -41853,7 +41911,7 @@
41853
41911
  "type": "QueryList<Radio>",
41854
41912
  "optional": false,
41855
41913
  "description": "<p>The <code>Radio</code> input items in the <code>RadioGroup</code>.</p>\n",
41856
- "line": 97,
41914
+ "line": 254,
41857
41915
  "rawdescription": "\n\nThe `Radio` input items in the `RadioGroup`.\n",
41858
41916
  "decorators": [
41859
41917
  {
@@ -41873,7 +41931,7 @@
41873
41931
  "optional": false,
41874
41932
  "returnType": "void",
41875
41933
  "typeParameters": [],
41876
- "line": 224,
41934
+ "line": 289,
41877
41935
  "deprecated": false,
41878
41936
  "deprecationMessage": "",
41879
41937
  "rawdescription": "\n\nUpdates the selected `Radio` to be checked (selected).\n",
@@ -41892,7 +41950,7 @@
41892
41950
  "optional": false,
41893
41951
  "returnType": "void",
41894
41952
  "typeParameters": [],
41895
- "line": 265,
41953
+ "line": 330,
41896
41954
  "deprecated": false,
41897
41955
  "deprecationMessage": "",
41898
41956
  "rawdescription": "\n\nCreates a class of `RadioChange` to emit the change in the `RadioGroup`.\n",
@@ -41915,7 +41973,7 @@
41915
41973
  "optional": false,
41916
41974
  "returnType": "void",
41917
41975
  "typeParameters": [],
41918
- "line": 329,
41976
+ "line": 394,
41919
41977
  "deprecated": false,
41920
41978
  "deprecationMessage": "",
41921
41979
  "decorators": [
@@ -41928,6 +41986,37 @@
41928
41986
  167
41929
41987
  ]
41930
41988
  },
41989
+ {
41990
+ "name": "isTemplate",
41991
+ "args": [
41992
+ {
41993
+ "name": "value",
41994
+ "type": "",
41995
+ "deprecated": false,
41996
+ "deprecationMessage": ""
41997
+ }
41998
+ ],
41999
+ "optional": false,
42000
+ "returnType": "boolean",
42001
+ "typeParameters": [],
42002
+ "line": 408,
42003
+ "deprecated": false,
42004
+ "deprecationMessage": "",
42005
+ "modifierKind": [
42006
+ 123
42007
+ ],
42008
+ "jsdoctags": [
42009
+ {
42010
+ "name": "value",
42011
+ "type": "",
42012
+ "deprecated": false,
42013
+ "deprecationMessage": "",
42014
+ "tagName": {
42015
+ "text": "param"
42016
+ }
42017
+ }
42018
+ ]
42019
+ },
41931
42020
  {
41932
42021
  "name": "registerOnChange",
41933
42022
  "args": [
@@ -41941,7 +42030,7 @@
41941
42030
  "optional": false,
41942
42031
  "returnType": "void",
41943
42032
  "typeParameters": [],
41944
- "line": 316,
42033
+ "line": 381,
41945
42034
  "deprecated": false,
41946
42035
  "deprecationMessage": "",
41947
42036
  "rawdescription": "\n\nUsed to set method to propagate changes back to the form.\n",
@@ -41974,7 +42063,7 @@
41974
42063
  "optional": false,
41975
42064
  "returnType": "void",
41976
42065
  "typeParameters": [],
41977
- "line": 324,
42066
+ "line": 389,
41978
42067
  "deprecated": false,
41979
42068
  "deprecationMessage": "",
41980
42069
  "rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
@@ -41985,8 +42074,8 @@
41985
42074
  "jsdoctags": [
41986
42075
  {
41987
42076
  "name": {
41988
- "pos": 7354,
41989
- "end": 7356,
42077
+ "pos": 9430,
42078
+ "end": 9432,
41990
42079
  "flags": 8421376,
41991
42080
  "modifierFlagsCache": 0,
41992
42081
  "transformFlags": 0,
@@ -41997,8 +42086,8 @@
41997
42086
  "deprecated": false,
41998
42087
  "deprecationMessage": "",
41999
42088
  "tagName": {
42000
- "pos": 7348,
42001
- "end": 7353,
42089
+ "pos": 9424,
42090
+ "end": 9429,
42002
42091
  "flags": 8421376,
42003
42092
  "modifierFlagsCache": 0,
42004
42093
  "transformFlags": 0,
@@ -42022,7 +42111,7 @@
42022
42111
  "optional": false,
42023
42112
  "returnType": "void",
42024
42113
  "typeParameters": [],
42025
- "line": 258,
42114
+ "line": 323,
42026
42115
  "deprecated": false,
42027
42116
  "deprecationMessage": "",
42028
42117
  "rawdescription": "\n\n`ControlValueAccessor` method to programmatically disable the `RadioGroup`.\n\nex: `this.formGroup.get(\"myRadioGroup\").disable();`\n\n",
@@ -42030,8 +42119,8 @@
42030
42119
  "jsdoctags": [
42031
42120
  {
42032
42121
  "name": {
42033
- "pos": 5985,
42034
- "end": 5995,
42122
+ "pos": 8061,
42123
+ "end": 8071,
42035
42124
  "flags": 8421376,
42036
42125
  "modifierFlagsCache": 0,
42037
42126
  "transformFlags": 0,
@@ -42042,8 +42131,8 @@
42042
42131
  "deprecated": false,
42043
42132
  "deprecationMessage": "",
42044
42133
  "tagName": {
42045
- "pos": 5979,
42046
- "end": 5984,
42134
+ "pos": 8055,
42135
+ "end": 8060,
42047
42136
  "flags": 8421376,
42048
42137
  "modifierFlagsCache": 0,
42049
42138
  "transformFlags": 0,
@@ -42060,7 +42149,7 @@
42060
42149
  "optional": false,
42061
42150
  "returnType": "void",
42062
42151
  "typeParameters": [],
42063
- "line": 274,
42152
+ "line": 339,
42064
42153
  "deprecated": false,
42065
42154
  "deprecationMessage": "",
42066
42155
  "rawdescription": "\n\nSynchronizes radio properties.\n",
@@ -42072,7 +42161,7 @@
42072
42161
  "optional": false,
42073
42162
  "returnType": "void",
42074
42163
  "typeParameters": [],
42075
- "line": 233,
42164
+ "line": 298,
42076
42165
  "deprecated": false,
42077
42166
  "deprecationMessage": "",
42078
42167
  "rawdescription": "\n\nUse the value of the `RadioGroup` to update the selected radio to the right state (selected state).\n",
@@ -42091,7 +42180,7 @@
42091
42180
  "optional": false,
42092
42181
  "returnType": "void",
42093
42182
  "typeParameters": [],
42094
- "line": 291,
42183
+ "line": 356,
42095
42184
  "deprecated": false,
42096
42185
  "deprecationMessage": "",
42097
42186
  "rawdescription": "\n\nUpdates the value of the `RadioGroup` using the provided parameter.\n",
@@ -42119,7 +42208,7 @@
42119
42208
  "deprecationMessage": "",
42120
42209
  "rawdescription": "\n\nBinds 'cds--form-item' value to the class for `RadioGroup`.\n",
42121
42210
  "description": "<p>Binds &#39;cds--form-item&#39; value to the class for <code>RadioGroup</code>.</p>\n",
42122
- "line": 194,
42211
+ "line": 259,
42123
42212
  "type": "boolean",
42124
42213
  "decorators": []
42125
42214
  }
@@ -42131,7 +42220,7 @@
42131
42220
  "argsDecorator": [],
42132
42221
  "deprecated": false,
42133
42222
  "deprecationMessage": "",
42134
- "line": 329
42223
+ "line": 394
42135
42224
  }
42136
42225
  ],
42137
42226
  "standalone": false,
@@ -42139,7 +42228,7 @@
42139
42228
  "description": "<p><a href=\"../../?path=/story/components-radio--basic\">See demo</a></p>\n<p>class: RadioGroup</p>\n<p>selector: <code>cds-radio-group</code></p>\n<p>source: <code>src/forms/radio.component.ts</code></p>\n<p>Ex:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-html\">&lt;cds-radio-group [(ngModel)]=&quot;radio&quot;&gt;\n &lt;cds-radio *ngFor=&quot;let one of manyRadios&quot; [value]=&quot;one&quot;&gt;\n Radio {{one}}\n &lt;/cds-radio&gt;\n&lt;/cds-radio-group&gt;\n\nRadio selected: {{radio}}</code></pre></div><div><pre class=\"line-numbers\"><code class=\"language-ts\"> const manyRadios = [&quot;one&quot;, &quot;two&quot;, &quot;three&quot;, &quot;four&quot;, &quot;five&quot;, &quot;six&quot;];</code></pre></div><p>Also see: <a href=\"#cds-radio\">Radio</a></p>\n",
42140
42229
  "rawdescription": "\n\n[See demo](../../?path=/story/components-radio--basic)\n\nclass: RadioGroup\n\nselector: `cds-radio-group`\n\nsource: `src/forms/radio.component.ts`\n\nEx:\n\n```html\n<cds-radio-group [(ngModel)]=\"radio\">\n\t<cds-radio *ngFor=\"let one of manyRadios\" [value]=\"one\">\n\t\tRadio {{one}}\n\t</cds-radio>\n</cds-radio-group>\n\nRadio selected: {{radio}}\n```\n\n```ts\n\tconst manyRadios = [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"];\n```\n\nAlso see: [Radio](#cds-radio)\n",
42141
42230
  "type": "component",
42142
- "sourceCode": "import {\n\tAfterContentInit,\n\tContentChildren,\n\tComponent,\n\tEventEmitter,\n\tforwardRef,\n\tInput,\n\tOutput,\n\tQueryList,\n\tHostBinding,\n\tAfterViewInit,\n\tHostListener\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { Radio } from \"./radio.component\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * [See demo](../../?path=/story/components-radio--basic)\n *\n * class: RadioGroup\n *\n * selector: `cds-radio-group`\n *\n * source: `src/forms/radio.component.ts`\n *\n * Ex:\n *\n * ```html\n * <cds-radio-group [(ngModel)]=\"radio\">\n * \t<cds-radio *ngFor=\"let one of manyRadios\" [value]=\"one\">\n *\t\tRadio {{one}}\n * \t</cds-radio>\n * </cds-radio-group>\n *\n * Radio selected: {{radio}}\n * ```\n *\n * ```ts\n *\tconst manyRadios = [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"];\n * ```\n *\n * Also see: [Radio](#cds-radio)\n */\n@Component({\n\tselector: \"cds-radio-group, ibm-radio-group\",\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"cds--radio-button-group\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t\t\t'cds--radio-button-group--label-left': labelPlacement === 'left'\n\t\t\t}\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: RadioGroup,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class RadioGroup implements AfterContentInit, AfterViewInit, ControlValueAccessor {\n\t/**\n\t * Used for creating the `RadioGroup` 'name' property dynamically.\n\t */\n\tstatic radioGroupCount = 0;\n\n\t@Input() orientation: \"horizontal\" | \"vertical\" = \"horizontal\";\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t/**\n\t * Used to set the `aria-label` attribute on the radio group element.\n\t */\n\t// tslint:disable-next-line:no-input-rename\n\t@Input() ariaLabel: string;\n\t/**\n\t * Used to set the `aria-labelledby` attribute on the radio group element.\n\t */\n\t// tslint:disable-next-line:no-input-rename\n\t@Input() ariaLabelledby: string;\n\n\t/**\n\t * Emits event notifying other classes of a change using a `RadioChange` class.\n\t */\n\t@Output() change: EventEmitter<RadioChange> = new EventEmitter<RadioChange>();\n\n\t/**\n\t * The `Radio` input items in the `RadioGroup`.\n\t */\n\t// tslint:disable-next-line:no-forward-ref\n\t@ContentChildren(forwardRef(() => Radio)) radios: QueryList<Radio>;\n\n\t/**\n\t * Sets the passed in `Radio` item as the selected input within the `RadioGroup`.\n\t */\n\t@Input()\n\tset selected(selected: Radio | null) {\n\t\tconst alreadySelected = (this._selected && this._selected.value) === (selected && selected.value);\n\t\tif (alreadySelected) {\n\t\t\t// no need to redo\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._selected) {\n\t\t\tthis._selected.checked = false;\n\t\t}\n\t\tthis._selected = selected;\n\t\tthis.value = selected ? selected.value : null;\n\t\tthis.checkSelectedRadio();\n\t}\n\n\t/**\n\t * Returns the `Radio` that is selected within the `RadioGroup`.\n\t */\n\tget selected() {\n\t\treturn this._selected;\n\t}\n\n\t/**\n\t * Sets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n\t */\n\t@Input()\n\tset value(newValue: any) {\n\t\tif (this._value !== newValue) {\n\t\t\tthis._value = newValue;\n\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t}\n\t}\n\n\t/**\n\t * Returns the value/state of the selected `Radio` within the `RadioGroup`.\n\t */\n\tget value() {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * Replaces the name associated with the `RadioGroup` with the provided parameter.\n\t */\n\t@Input()\n\tset name(name: string) {\n\t\tthis._name = name;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the associated name of the `RadioGroup`.\n\t */\n\tget name() {\n\t\treturn this._name;\n\t}\n\n\t/**\n\t * Set to true to disable the whole radio group\n\t */\n\t@Input()\n\tset disabled(disabled: boolean) {\n\t\tthis._disabled = disabled;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the disabled value for the `RadioGroup`.\n\t */\n\tget disabled(): boolean {\n\t\treturn this._disabled;\n\t}\n\n\t/**\n\t * Returns the skeleton value in the `RadioGroup` if there is one.\n\t */\n\t@Input()\n\tget skeleton(): any {\n\t\treturn this._skeleton;\n\t}\n\n\t/**\n\t * Sets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.\n\t */\n\tset skeleton(value: any) {\n\t\tthis._skeleton = value;\n\t\tthis.updateChildren();\n\t}\n\n\t/**\n\t * Binds 'cds--form-item' value to the class for `RadioGroup`.\n\t */\n\t@HostBinding(\"class.cds--form-item\") radioButtonGroupClass = true;\n\n\t/**\n\t * To track whether the `RadioGroup` has been initialized.\n\t */\n\tprotected isInitialized = false;\n\t/**\n\t * Reflects whether or not the input is disabled and cannot be selected.\n\t */\n\tprotected _disabled = false;\n\t/**\n\t * Reflects whether or not the dropdown is loading.\n\t */\n\tprotected _skeleton = false;\n\t/**\n\t * The value of the selected option within the `RadioGroup`.\n\t */\n\tprotected _value: any = null;\n\t/**\n\t * The `Radio` within the `RadioGroup` that is selected.\n\t */\n\tprotected _selected: Radio = null;\n\t/**\n\t * The name attribute associated with the `RadioGroup`.\n\t */\n\tprotected _name = `radio-group-${RadioGroup.radioGroupCount++}`;\n\n\t/**\n\t * Updates the selected `Radio` to be checked (selected).\n\t */\n\tcheckSelectedRadio() {\n\t\tif (this.selected && !this._selected.checked) {\n\t\t\tthis.selected.checked = true;\n\t\t}\n\t}\n\n\t/**\n\t * Use the value of the `RadioGroup` to update the selected radio to the right state (selected state).\n\t */\n\tupdateSelectedRadioFromValue() {\n\t\tlet alreadySelected = this._selected != null && this._selected.value === this._value;\n\t\tif (this.radios && !alreadySelected) {\n\t\t\tif (this.selected && this.value) {\n\t\t\t\tthis.selected.checked = false;\n\t\t\t}\n\t\t\tthis._selected = null;\n\t\t\tthis.radios.forEach(radio => {\n\t\t\t\tif (radio.checked || radio.value === this._value) {\n\t\t\t\t\tthis._selected = radio;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (this.selected && !this.value) {\n\t\t\t\tthis._value = this.selected.value;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the `RadioGroup`.\n\t *\n\t * ex: `this.formGroup.get(\"myRadioGroup\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the inputs\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n\n\t/**\n\t * Creates a class of `RadioChange` to emit the change in the `RadioGroup`.\n\t */\n\temitChangeEvent(event: RadioChange) {\n\t\tthis.change.emit(event);\n\t\tthis.propagateChange(event.value);\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Synchronizes radio properties.\n\t */\n\tupdateRadios() {\n\t\tif (this.radios) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.radios.forEach(radio => {\n\t\t\t\t\tradio.name = this.name;\n\t\t\t\t\tradio.setDisabledFromGroup(this.disabled);\n\t\t\t\t\tif (this.labelPlacement === \"left\") {\n\t\t\t\t\t\tradio.labelPlacement = \"left\";\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Updates the value of the `RadioGroup` using the provided parameter.\n\t */\n\twriteValue(value: any) {\n\t\tthis.value = value;\n\t\tsetTimeout(() => {\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t});\n\t}\n\n\tngAfterContentInit() {\n\t\tthis.radios.changes.subscribe(() => {\n\t\t\tthis.updateRadios();\n\t\t\tthis.updateRadioChangeHandler();\n\t\t});\n\n\t\tthis.updateChildren();\n\t\tthis.updateRadioChangeHandler();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.updateRadios();\n\t}\n\n\t/**\n\t * Used to set method to propagate changes back to the form.\n\t */\n\tpublic registerOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback to be triggered when the control has been touched.\n\t * @param fn Callback to be triggered when the checkbox is touched.\n\t */\n\tpublic registerOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t@HostListener(\"focusout\")\n\tfocusOut() {\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Needed to properly implement ControlValueAccessor.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Method set in registerOnChange to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\tprotected updateChildren() {\n\t\tif (this.radios) {\n\t\t\tthis.radios.forEach(child => child.skeleton = this.skeleton);\n\t\t}\n\t}\n\n\tprotected updateRadioChangeHandler() {\n\t\tthis.radios.forEach(radio => {\n\t\t\tradio.registerRadioChangeHandler((event: RadioChange) => {\n\t\t\t\tif ((this.selected && this.selected.value) === event.value) {\n\t\t\t\t\t// no need to redo\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// deselect previous radio\n\t\t\t\tif (this.selected) {\n\t\t\t\t\tthis.selected.checked = false;\n\t\t\t\t}\n\t\t\t\t// update selected and value from the event\n\t\t\t\tthis._selected = event.source;\n\t\t\t\tthis._value = event.value;\n\t\t\t\t// bubble the event\n\t\t\t\tthis.emitChangeEvent(event);\n\t\t\t});\n\t\t});\n\t}\n}\n",
42231
+ "sourceCode": "import {\n\tAfterContentInit,\n\tContentChildren,\n\tComponent,\n\tEventEmitter,\n\tforwardRef,\n\tInput,\n\tOutput,\n\tQueryList,\n\tHostBinding,\n\tAfterViewInit,\n\tHostListener,\n\tTemplateRef\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { Radio } from \"./radio.component\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * [See demo](../../?path=/story/components-radio--basic)\n *\n * class: RadioGroup\n *\n * selector: `cds-radio-group`\n *\n * source: `src/forms/radio.component.ts`\n *\n * Ex:\n *\n * ```html\n * <cds-radio-group [(ngModel)]=\"radio\">\n * \t<cds-radio *ngFor=\"let one of manyRadios\" [value]=\"one\">\n *\t\tRadio {{one}}\n * \t</cds-radio>\n * </cds-radio-group>\n *\n * Radio selected: {{radio}}\n * ```\n *\n * ```ts\n *\tconst manyRadios = [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"];\n * ```\n *\n * Also see: [Radio](#cds-radio)\n */\n@Component({\n\tselector: \"cds-radio-group, ibm-radio-group\",\n\ttemplate: `\n\t\t<fieldset\n\t\t\tclass=\"cds--radio-button-group\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t\t\t'cds--radio-button-group--label-left': labelPlacement === 'left',\n\t\t\t\t'cds--radio-button-group--invalid' : !warn && invalid,\n\t\t\t\t'cds--radio-button-group--warning': !invalid && warn\n\t\t\t}\"\n\t\t\t[attr.data-invalid]=\"invalid ? true : null\">\n\t\t\t<legend *ngIf=\"legend\" class=\"cds--label\">\n\t\t\t\t<ng-template *ngIf=\"isTemplate(legend); else legendLabel;\" [ngTemplateOutlet]=\"legend\"></ng-template>\n\t\t\t\t<ng-template #legendLabel>{{legend}}</ng-template>\n\t\t\t</legend>\n\t\t\t<ng-content></ng-content>\n\t\t</fieldset>\n\t\t<div class=\"cds--radio-button__validation-msg\">\n\t\t\t<ng-container *ngIf=\"!warn && invalid\">\n\t\t\t\t<svg\n\t\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\t\tsize=\"16\"\n\t\t\t\t\tclass=\"cds--radio-button__invalid-icon\">\n\t\t\t\t</svg>\n\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{ invalidText }}</ng-container>\n\t\t\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"invalidText\"></ng-template>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t\t<ng-container *ngIf=\"!invalid && warn\">\n\t\t\t\t<svg\n\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\t\tclass=\"cds--radio-button__invalid-icon cds--radio-button__invalid-icon--warning\"\n\t\t\t\t\tsize=\"16\">\n\t\t\t\t</svg>\n\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"warnText\"></ng-template>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</div>\n\t\t<div\n\t\t\t*ngIf=\"helperText && !invalid && !warn\"\n\t\t\tclass=\"cds--form__helper-text\"\n\t\t\t[ngClass]=\"{'cds--form__helper-text--disabled': disabled}\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"helperText\"></ng-template>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: RadioGroup,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class RadioGroup implements AfterContentInit, AfterViewInit, ControlValueAccessor {\n\n\t/**\n\t * Sets the passed in `Radio` item as the selected input within the `RadioGroup`.\n\t */\n\t@Input()\n\tset selected(selected: Radio | null) {\n\t\tconst alreadySelected = (this._selected && this._selected.value) === (selected && selected.value);\n\t\tif (alreadySelected) {\n\t\t\t// no need to redo\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._selected) {\n\t\t\tthis._selected.checked = false;\n\t\t}\n\t\tthis._selected = selected;\n\t\tthis.value = selected ? selected.value : null;\n\t\tthis.checkSelectedRadio();\n\t}\n\n\t/**\n\t * Returns the `Radio` that is selected within the `RadioGroup`.\n\t */\n\tget selected() {\n\t\treturn this._selected;\n\t}\n\n\t/**\n\t * Sets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n\t */\n\t@Input()\n\tset value(newValue: any) {\n\t\tif (this._value !== newValue) {\n\t\t\tthis._value = newValue;\n\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t}\n\t}\n\n\t/**\n\t * Returns the value/state of the selected `Radio` within the `RadioGroup`.\n\t */\n\tget value() {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * Replaces the name associated with the `RadioGroup` with the provided parameter.\n\t */\n\t@Input()\n\tset name(name: string) {\n\t\tthis._name = name;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the associated name of the `RadioGroup`.\n\t */\n\tget name() {\n\t\treturn this._name;\n\t}\n\n\t/**\n\t * Set to true to disable the whole radio group\n\t */\n\t@Input()\n\tset disabled(disabled: boolean) {\n\t\tthis._disabled = disabled;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the disabled value for the `RadioGroup`.\n\t */\n\tget disabled(): boolean {\n\t\treturn this._disabled;\n\t}\n\n\t/**\n\t * Returns the skeleton value in the `RadioGroup` if there is one.\n\t */\n\t@Input()\n\tget skeleton(): any {\n\t\treturn this._skeleton;\n\t}\n\n\t/**\n\t * Sets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.\n\t */\n\tset skeleton(value: any) {\n\t\tthis._skeleton = value;\n\t\tthis.updateChildren();\n\t}\n\t/**\n\t * Used for creating the `RadioGroup` 'name' property dynamically.\n\t */\n\tstatic radioGroupCount = 0;\n\n\t@Input() orientation: \"horizontal\" | \"vertical\" = \"horizontal\";\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t@Input() legend: string | TemplateRef<any>;\n\n\t/**\n\t * Used to set the `aria-label` attribute on the radio group element.\n\t */\n\t@Input() ariaLabel: string;\n\n\t/**\n\t * Used to set the `aria-labelledby` attribute on the radio group element.\n\t */\n\t@Input() ariaLabelledby: string;\n\n\t/**\n\t * Sets the optional helper text.\n\t */\n\t@Input() helperText: string | TemplateRef<any>;\n\n\t/**\n\t * Set to `true` to show the invalid state.\n\t */\n\t@Input() invalid = false;\n\n\t/**\n\t * Value displayed if combobox is in an invalid state.\n\t */\n\t@Input() invalidText: string | TemplateRef<any>;\n\n\t/**\n\t* Set to `true` to show a warning (contents set by warnText)\n\t*/\n\t@Input() warn = false;\n\n\t/**\n\t * Sets the warning text\n\t */\n\t@Input() warnText: string | TemplateRef<any>;\n\n\t/**\n\t * Emits event notifying other classes of a change using a `RadioChange` class.\n\t */\n\t@Output() change: EventEmitter<RadioChange> = new EventEmitter<RadioChange>();\n\n\t/**\n\t * The `Radio` input items in the `RadioGroup`.\n\t */\n\t// tslint:disable-next-line:no-forward-ref\n\t@ContentChildren(forwardRef(() => Radio)) radios: QueryList<Radio>;\n\n\t/**\n\t * Binds 'cds--form-item' value to the class for `RadioGroup`.\n\t */\n\t@HostBinding(\"class.cds--form-item\") radioButtonGroupClass = true;\n\n\t/**\n\t * To track whether the `RadioGroup` has been initialized.\n\t */\n\tprotected isInitialized = false;\n\t/**\n\t * Reflects whether or not the input is disabled and cannot be selected.\n\t */\n\tprotected _disabled = false;\n\t/**\n\t * Reflects whether or not the dropdown is loading.\n\t */\n\tprotected _skeleton = false;\n\t/**\n\t * The value of the selected option within the `RadioGroup`.\n\t */\n\tprotected _value: any = null;\n\t/**\n\t * The `Radio` within the `RadioGroup` that is selected.\n\t */\n\tprotected _selected: Radio = null;\n\t/**\n\t * The name attribute associated with the `RadioGroup`.\n\t */\n\tprotected _name = `radio-group-${RadioGroup.radioGroupCount++}`;\n\n\t/**\n\t * Updates the selected `Radio` to be checked (selected).\n\t */\n\tcheckSelectedRadio() {\n\t\tif (this.selected && !this._selected.checked) {\n\t\t\tthis.selected.checked = true;\n\t\t}\n\t}\n\n\t/**\n\t * Use the value of the `RadioGroup` to update the selected radio to the right state (selected state).\n\t */\n\tupdateSelectedRadioFromValue() {\n\t\tlet alreadySelected = this._selected != null && this._selected.value === this._value;\n\t\tif (this.radios && !alreadySelected) {\n\t\t\tif (this.selected && this.value) {\n\t\t\t\tthis.selected.checked = false;\n\t\t\t}\n\t\t\tthis._selected = null;\n\t\t\tthis.radios.forEach(radio => {\n\t\t\t\tif (radio.checked || radio.value === this._value) {\n\t\t\t\t\tthis._selected = radio;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (this.selected && !this.value) {\n\t\t\t\tthis._value = this.selected.value;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the `RadioGroup`.\n\t *\n\t * ex: `this.formGroup.get(\"myRadioGroup\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the inputs\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n\n\t/**\n\t * Creates a class of `RadioChange` to emit the change in the `RadioGroup`.\n\t */\n\temitChangeEvent(event: RadioChange) {\n\t\tthis.change.emit(event);\n\t\tthis.propagateChange(event.value);\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Synchronizes radio properties.\n\t */\n\tupdateRadios() {\n\t\tif (this.radios) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.radios.forEach(radio => {\n\t\t\t\t\tradio.name = this.name;\n\t\t\t\t\tradio.setDisabledFromGroup(this.disabled);\n\t\t\t\t\tif (this.labelPlacement === \"left\") {\n\t\t\t\t\t\tradio.labelPlacement = \"left\";\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Updates the value of the `RadioGroup` using the provided parameter.\n\t */\n\twriteValue(value: any) {\n\t\tthis.value = value;\n\t\tsetTimeout(() => {\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t});\n\t}\n\n\tngAfterContentInit() {\n\t\tthis.radios.changes.subscribe(() => {\n\t\t\tthis.updateRadios();\n\t\t\tthis.updateRadioChangeHandler();\n\t\t});\n\n\t\tthis.updateChildren();\n\t\tthis.updateRadioChangeHandler();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.updateRadios();\n\t}\n\n\t/**\n\t * Used to set method to propagate changes back to the form.\n\t */\n\tpublic registerOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback to be triggered when the control has been touched.\n\t * @param fn Callback to be triggered when the checkbox is touched.\n\t */\n\tpublic registerOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t@HostListener(\"focusout\")\n\tfocusOut() {\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Needed to properly implement ControlValueAccessor.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Method set in registerOnChange to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\tprotected updateChildren() {\n\t\tif (this.radios) {\n\t\t\tthis.radios.forEach(child => child.skeleton = this.skeleton);\n\t\t}\n\t}\n\n\tprotected updateRadioChangeHandler() {\n\t\tthis.radios.forEach(radio => {\n\t\t\tradio.registerRadioChangeHandler((event: RadioChange) => {\n\t\t\t\tif ((this.selected && this.selected.value) === event.value) {\n\t\t\t\t\t// no need to redo\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// deselect previous radio\n\t\t\t\tif (this.selected) {\n\t\t\t\t\tthis.selected.checked = false;\n\t\t\t\t}\n\t\t\t\t// update selected and value from the event\n\t\t\t\tthis._selected = event.source;\n\t\t\t\tthis._value = event.value;\n\t\t\t\t// bubble the event\n\t\t\t\tthis.emitChangeEvent(event);\n\t\t\t});\n\t\t});\n\t}\n}\n",
42143
42232
  "assetsDirs": [],
42144
42233
  "styleUrlsData": "",
42145
42234
  "stylesData": "",
@@ -42165,7 +42254,7 @@
42165
42254
  }
42166
42255
  ],
42167
42256
  "returnType": "void",
42168
- "line": 103,
42257
+ "line": 112,
42169
42258
  "rawdescription": "\n\nSets the passed in `Radio` item as the selected input within the `RadioGroup`.\n",
42170
42259
  "description": "<p>Sets the passed in <code>Radio</code> item as the selected input within the <code>RadioGroup</code>.</p>\n",
42171
42260
  "jsdoctags": [
@@ -42184,7 +42273,7 @@
42184
42273
  "name": "selected",
42185
42274
  "type": "",
42186
42275
  "returnType": "",
42187
- "line": 121,
42276
+ "line": 130,
42188
42277
  "rawdescription": "\n\nReturns the `Radio` that is selected within the `RadioGroup`.\n",
42189
42278
  "description": "<p>Returns the <code>Radio</code> that is selected within the <code>RadioGroup</code>.</p>\n"
42190
42279
  }
@@ -42205,7 +42294,7 @@
42205
42294
  }
42206
42295
  ],
42207
42296
  "returnType": "void",
42208
- "line": 129,
42297
+ "line": 138,
42209
42298
  "rawdescription": "\n\nSets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n",
42210
42299
  "description": "<p>Sets the value/state of the selected <code>Radio</code> within the <code>RadioGroup</code> to the passed in value.</p>\n",
42211
42300
  "jsdoctags": [
@@ -42224,7 +42313,7 @@
42224
42313
  "name": "value",
42225
42314
  "type": "",
42226
42315
  "returnType": "",
42227
- "line": 141,
42316
+ "line": 150,
42228
42317
  "rawdescription": "\n\nReturns the value/state of the selected `Radio` within the `RadioGroup`.\n",
42229
42318
  "description": "<p>Returns the value/state of the selected <code>Radio</code> within the <code>RadioGroup</code>.</p>\n"
42230
42319
  }
@@ -42245,7 +42334,7 @@
42245
42334
  }
42246
42335
  ],
42247
42336
  "returnType": "void",
42248
- "line": 149,
42337
+ "line": 158,
42249
42338
  "rawdescription": "\n\nReplaces the name associated with the `RadioGroup` with the provided parameter.\n",
42250
42339
  "description": "<p>Replaces the name associated with the <code>RadioGroup</code> with the provided parameter.</p>\n",
42251
42340
  "jsdoctags": [
@@ -42264,7 +42353,7 @@
42264
42353
  "name": "name",
42265
42354
  "type": "",
42266
42355
  "returnType": "",
42267
- "line": 156,
42356
+ "line": 165,
42268
42357
  "rawdescription": "\n\nReturns the associated name of the `RadioGroup`.\n",
42269
42358
  "description": "<p>Returns the associated name of the <code>RadioGroup</code>.</p>\n"
42270
42359
  }
@@ -42285,7 +42374,7 @@
42285
42374
  }
42286
42375
  ],
42287
42376
  "returnType": "void",
42288
- "line": 164,
42377
+ "line": 173,
42289
42378
  "rawdescription": "\n\nSet to true to disable the whole radio group\n",
42290
42379
  "description": "<p>Set to true to disable the whole radio group</p>\n",
42291
42380
  "jsdoctags": [
@@ -42304,7 +42393,7 @@
42304
42393
  "name": "disabled",
42305
42394
  "type": "boolean",
42306
42395
  "returnType": "boolean",
42307
- "line": 171,
42396
+ "line": 180,
42308
42397
  "rawdescription": "\n\nReturns the disabled value for the `RadioGroup`.\n",
42309
42398
  "description": "<p>Returns the disabled value for the <code>RadioGroup</code>.</p>\n"
42310
42399
  }
@@ -42325,7 +42414,7 @@
42325
42414
  }
42326
42415
  ],
42327
42416
  "returnType": "void",
42328
- "line": 186,
42417
+ "line": 195,
42329
42418
  "rawdescription": "\n\nSets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.\n",
42330
42419
  "description": "<p>Sets the skeleton value for all <code>Radio</code> to the skeleton value of <code>RadioGroup</code>.</p>\n",
42331
42420
  "jsdoctags": [
@@ -42344,7 +42433,7 @@
42344
42433
  "name": "skeleton",
42345
42434
  "type": "any",
42346
42435
  "returnType": "any",
42347
- "line": 179,
42436
+ "line": 188,
42348
42437
  "rawdescription": "\n\nReturns the skeleton value in the `RadioGroup` if there is one.\n",
42349
42438
  "description": "<p>Returns the skeleton value in the <code>RadioGroup</code> if there is one.</p>\n"
42350
42439
  }
@@ -65295,13 +65384,13 @@
65295
65384
  },
65296
65385
  {
65297
65386
  "name": "RadioModule",
65298
- "id": "module-RadioModule-916932a999af2511bea978faacd079717aba4e7e14075ba1668f9c4b8aebb810c4e1f6d4baf5438c9c15396e8f78bd89271774f1f6c69fcc3b50e101a02374b3",
65387
+ "id": "module-RadioModule-5b60c2abc6e47e3a77afa997f18bc6a5e5dedc04b6f929aa6766de1713b8323047ffb93c52475e0fb5f63965deed1af4eaace48e8ad1088cc2cbf39f13cba1e7",
65299
65388
  "description": "",
65300
65389
  "deprecationMessage": "",
65301
65390
  "deprecated": false,
65302
65391
  "file": "src/radio/radio.module.ts",
65303
65392
  "methods": [],
65304
- "sourceCode": "// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\n// imports\nimport { Radio } from \"./radio.component\";\nimport { RadioGroup } from \"./radio-group.component\";\n\n@NgModule({\n\tdeclarations: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\texports: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule\n\t]\n})\nexport class RadioModule { }\n",
65393
+ "sourceCode": "// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\n// imports\nimport { Radio } from \"./radio.component\";\nimport { RadioGroup } from \"./radio-group.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\n\n@NgModule({\n\tdeclarations: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\texports: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule,\n\t\tIconModule\n\t]\n})\nexport class RadioModule { }\n",
65305
65394
  "children": [
65306
65395
  {
65307
65396
  "type": "providers",
@@ -65320,7 +65409,11 @@
65320
65409
  },
65321
65410
  {
65322
65411
  "type": "imports",
65323
- "elements": []
65412
+ "elements": [
65413
+ {
65414
+ "name": "IconModule"
65415
+ }
65416
+ ]
65324
65417
  },
65325
65418
  {
65326
65419
  "type": "exports",
@@ -69486,7 +69579,7 @@
69486
69579
  "deprecated": false,
69487
69580
  "deprecationMessage": "",
69488
69581
  "type": "Story<Radio>",
69489
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t<fieldset class=\"cds--fieldset\">\n\t\t<legend class=\"cds--label\">{{label}}</legend>\n\t\t<cds-radio-group\n\t\t\t[disabled]=\"disabled\"\n\t\t\taria-label=\"radiogroup\"\n\t\t\t[orientation]=\"orientation\"\n\t\t\t[labelPlacement]=\"labelPlacement\"\n\t\t\t(change)=\"onChange($event)\">\n\t\t\t<cds-radio value=\"Zero\" [checked]=\"true\">\n\t\t\t\tZero\n\t\t\t</cds-radio>\n\t\t\t<cds-radio [value]=\"One\">One</cds-radio>\n\t\t\t<cds-radio [value]=\"Two\">Two</cds-radio>\n\t\t\t<cds-radio [value]=\"Three\">Three</cds-radio>\n\t\t\t<cds-radio [value]=\"Four\" [disabled]=\"true\">Four</cds-radio>\n\t\t</cds-radio-group>\n\t</fieldset>\n\t`\n})"
69582
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-radio-group\n\t\t\t[legend]=\"label\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[helperText]=\"helperText\"\n\t\t\t[invalid]=\"invalid\"\n\t\t\t[invalidText]=\"invalidText\"\n\t\t\t[warn]=\"warn\"\n\t\t\t[warnText]=\"warnText\"\n\t\t\tariaLabel=\"radiogroup\"\n\t\t\t[orientation]=\"orientation\"\n\t\t\t[labelPlacement]=\"labelPlacement\"\n\t\t\t(change)=\"onChange($event)\">\n\t\t\t<cds-radio value=\"Zero\" [checked]=\"true\">\n\t\t\t\tZero\n\t\t\t</cds-radio>\n\t\t\t<cds-radio [value]=\"One\">One</cds-radio>\n\t\t\t<cds-radio [value]=\"Two\">Two</cds-radio>\n\t\t\t<cds-radio [value]=\"Three\">Three</cds-radio>\n\t\t\t<cds-radio [value]=\"Four\" [disabled]=\"true\">Four</cds-radio>\n\t\t</cds-radio-group>\n\t`\n})"
69490
69583
  },
69491
69584
  {
69492
69585
  "name": "Template",
@@ -73823,7 +73916,7 @@
73823
73916
  "deprecated": false,
73824
73917
  "deprecationMessage": "",
73825
73918
  "type": "Story<Radio>",
73826
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t<fieldset class=\"cds--fieldset\">\n\t\t<legend class=\"cds--label\">{{label}}</legend>\n\t\t<cds-radio-group\n\t\t\t[disabled]=\"disabled\"\n\t\t\taria-label=\"radiogroup\"\n\t\t\t[orientation]=\"orientation\"\n\t\t\t[labelPlacement]=\"labelPlacement\"\n\t\t\t(change)=\"onChange($event)\">\n\t\t\t<cds-radio value=\"Zero\" [checked]=\"true\">\n\t\t\t\tZero\n\t\t\t</cds-radio>\n\t\t\t<cds-radio [value]=\"One\">One</cds-radio>\n\t\t\t<cds-radio [value]=\"Two\">Two</cds-radio>\n\t\t\t<cds-radio [value]=\"Three\">Three</cds-radio>\n\t\t\t<cds-radio [value]=\"Four\" [disabled]=\"true\">Four</cds-radio>\n\t\t</cds-radio-group>\n\t</fieldset>\n\t`\n})"
73919
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-radio-group\n\t\t\t[legend]=\"label\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[helperText]=\"helperText\"\n\t\t\t[invalid]=\"invalid\"\n\t\t\t[invalidText]=\"invalidText\"\n\t\t\t[warn]=\"warn\"\n\t\t\t[warnText]=\"warnText\"\n\t\t\tariaLabel=\"radiogroup\"\n\t\t\t[orientation]=\"orientation\"\n\t\t\t[labelPlacement]=\"labelPlacement\"\n\t\t\t(change)=\"onChange($event)\">\n\t\t\t<cds-radio value=\"Zero\" [checked]=\"true\">\n\t\t\t\tZero\n\t\t\t</cds-radio>\n\t\t\t<cds-radio [value]=\"One\">One</cds-radio>\n\t\t\t<cds-radio [value]=\"Two\">Two</cds-radio>\n\t\t\t<cds-radio [value]=\"Three\">Three</cds-radio>\n\t\t\t<cds-radio [value]=\"Four\" [disabled]=\"true\">Four</cds-radio>\n\t\t</cds-radio-group>\n\t`\n})"
73827
73920
  }
73828
73921
  ],
73829
73922
  "src/search/search.stories.ts": [
@@ -80801,8 +80894,8 @@
80801
80894
  "type": "component",
80802
80895
  "linktype": "component",
80803
80896
  "name": "RadioGroup",
80804
- "coveragePercent": 85,
80805
- "coverageCount": "23/27",
80897
+ "coveragePercent": 82,
80898
+ "coverageCount": "28/34",
80806
80899
  "status": "very-good"
80807
80900
  },
80808
80901
  {