carbon-components-angular 5.67.0 → 5.68.0

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 (272) hide show
  1. package/checkbox/checkbox-group-host.d.ts +31 -0
  2. package/checkbox/checkbox-group.component.d.ts +67 -0
  3. package/checkbox/checkbox.component.d.ts +56 -4
  4. package/checkbox/checkbox.module.d.ts +5 -3
  5. package/checkbox/index.d.ts +2 -0
  6. package/docs/documentation/components/AILabelComponent.html +1 -1
  7. package/docs/documentation/components/Accordion.html +1 -1
  8. package/docs/documentation/components/AccordionItem.html +1 -1
  9. package/docs/documentation/components/ActionableNotification.html +1 -1
  10. package/docs/documentation/components/AlertModal.html +1 -1
  11. package/docs/documentation/components/BaseIconButton.html +1 -1
  12. package/docs/documentation/components/BaseNotification.html +1 -1
  13. package/docs/documentation/components/BaseTabHeader.html +1 -1
  14. package/docs/documentation/components/Breadcrumb.html +1 -1
  15. package/docs/documentation/components/BreadcrumbItemComponent.html +1 -1
  16. package/docs/documentation/components/ButtonSet.html +1 -1
  17. package/docs/documentation/components/Checkbox.html +767 -58
  18. package/docs/documentation/components/CheckboxGroup.html +1401 -0
  19. package/docs/documentation/components/ClickableTile.html +1 -1
  20. package/docs/documentation/components/CodeSnippet.html +1 -1
  21. package/docs/documentation/components/ComboBox.html +1 -1
  22. package/docs/documentation/components/ComboButtonComponent.html +1 -1
  23. package/docs/documentation/components/ContainedList.html +1 -1
  24. package/docs/documentation/components/ContainedListItem.html +1 -1
  25. package/docs/documentation/components/ContentSwitcher.html +1 -1
  26. package/docs/documentation/components/ContextMenuComponent.html +1 -1
  27. package/docs/documentation/components/ContextMenuDividerComponent.html +1 -1
  28. package/docs/documentation/components/ContextMenuGroupComponent.html +1 -1
  29. package/docs/documentation/components/ContextMenuItemComponent.html +1 -1
  30. package/docs/documentation/components/DatePicker.html +1 -1
  31. package/docs/documentation/components/DatePickerInput.html +1 -1
  32. package/docs/documentation/components/Dialog.html +1 -1
  33. package/docs/documentation/components/Documentation.html +1 -1
  34. package/docs/documentation/components/Dropdown.html +1 -1
  35. package/docs/documentation/components/DropdownList.html +1 -1
  36. package/docs/documentation/components/ExpandableTile.html +1 -1
  37. package/docs/documentation/components/FileComponent.html +1 -1
  38. package/docs/documentation/components/FileUploader.html +1 -1
  39. package/docs/documentation/components/Hamburger.html +1 -1
  40. package/docs/documentation/components/Header.html +1 -1
  41. package/docs/documentation/components/HeaderAction.html +1 -1
  42. package/docs/documentation/components/HeaderGlobal.html +1 -1
  43. package/docs/documentation/components/HeaderItem.html +1 -1
  44. package/docs/documentation/components/HeaderMenu.html +1 -1
  45. package/docs/documentation/components/HeaderNavigation.html +1 -1
  46. package/docs/documentation/components/IconButton.html +1 -1
  47. package/docs/documentation/components/InlineLoading.html +1 -1
  48. package/docs/documentation/components/Label.html +1 -1
  49. package/docs/documentation/components/ListColumn.html +1 -1
  50. package/docs/documentation/components/ListHeader.html +1 -1
  51. package/docs/documentation/components/ListRow.html +1 -1
  52. package/docs/documentation/components/Loading.html +1 -1
  53. package/docs/documentation/components/MenuButtonComponent.html +1 -1
  54. package/docs/documentation/components/Modal.html +1 -1
  55. package/docs/documentation/components/ModalFooter.html +1 -1
  56. package/docs/documentation/components/ModalHeader.html +1 -1
  57. package/docs/documentation/components/Notification.html +1 -1
  58. package/docs/documentation/components/NumberComponent.html +1 -1
  59. package/docs/documentation/components/OverflowMenu.html +1 -1
  60. package/docs/documentation/components/OverflowMenuCustomPane.html +1 -1
  61. package/docs/documentation/components/OverflowMenuOption.html +1 -1
  62. package/docs/documentation/components/OverflowMenuPane.html +1 -1
  63. package/docs/documentation/components/Overlay.html +1 -1
  64. package/docs/documentation/components/Pagination.html +1 -1
  65. package/docs/documentation/components/PaginationNav.html +1 -1
  66. package/docs/documentation/components/PaginationNavItem.html +1 -1
  67. package/docs/documentation/components/PaginationOverflow.html +1 -1
  68. package/docs/documentation/components/Panel.html +1 -1
  69. package/docs/documentation/components/PasswordInputLabelComponent.html +1 -1
  70. package/docs/documentation/components/Placeholder.html +1 -1
  71. package/docs/documentation/components/PopoverContent.html +1 -1
  72. package/docs/documentation/components/ProgressBar.html +1 -1
  73. package/docs/documentation/components/ProgressIndicator.html +1 -1
  74. package/docs/documentation/components/Radio.html +1 -1
  75. package/docs/documentation/components/RadioGroup.html +1 -1
  76. package/docs/documentation/components/Search.html +1 -1
  77. package/docs/documentation/components/Select.html +1 -1
  78. package/docs/documentation/components/SelectionTile.html +1 -1
  79. package/docs/documentation/components/SideNav.html +1 -1
  80. package/docs/documentation/components/SideNavItem.html +1 -1
  81. package/docs/documentation/components/SideNavMenu.html +1 -1
  82. package/docs/documentation/components/SkeletonPlaceholder.html +1 -1
  83. package/docs/documentation/components/SkeletonText.html +1 -1
  84. package/docs/documentation/components/Slider.html +1 -1
  85. package/docs/documentation/components/StructuredList.html +1 -1
  86. package/docs/documentation/components/SwitcherList.html +1 -1
  87. package/docs/documentation/components/SwitcherListItem.html +1 -1
  88. package/docs/documentation/components/Tab.html +1 -1
  89. package/docs/documentation/components/TabHeaderGroup.html +1 -1
  90. package/docs/documentation/components/TabHeaders.html +1 -1
  91. package/docs/documentation/components/TabSkeleton.html +1 -1
  92. package/docs/documentation/components/Table.html +1 -1
  93. package/docs/documentation/components/TableBody.html +1 -1
  94. package/docs/documentation/components/TableCheckbox.html +1 -1
  95. package/docs/documentation/components/TableContainer.html +1 -1
  96. package/docs/documentation/components/TableData.html +1 -1
  97. package/docs/documentation/components/TableExpandButton.html +1 -1
  98. package/docs/documentation/components/TableExpandedRow.html +1 -1
  99. package/docs/documentation/components/TableHead.html +1 -1
  100. package/docs/documentation/components/TableHeadCell.html +1 -1
  101. package/docs/documentation/components/TableHeadCheckbox.html +1 -1
  102. package/docs/documentation/components/TableHeadExpand.html +1 -1
  103. package/docs/documentation/components/TableHeader.html +1 -1
  104. package/docs/documentation/components/TableHeaderDecorator.html +1 -1
  105. package/docs/documentation/components/TableRadio.html +1 -1
  106. package/docs/documentation/components/TableRowComponent.html +1 -1
  107. package/docs/documentation/components/TableToolbar.html +1 -1
  108. package/docs/documentation/components/TableToolbarActions.html +1 -1
  109. package/docs/documentation/components/TableToolbarContent.html +1 -1
  110. package/docs/documentation/components/TableToolbarSearch.html +1 -1
  111. package/docs/documentation/components/Tabs.html +1 -1
  112. package/docs/documentation/components/Tag.html +1 -1
  113. package/docs/documentation/components/TagFilter.html +1 -1
  114. package/docs/documentation/components/TagOperationalComponent.html +1 -1
  115. package/docs/documentation/components/TagSelectableComponent.html +1 -1
  116. package/docs/documentation/components/TextInputLabelComponent.html +1 -1
  117. package/docs/documentation/components/TextareaLabelComponent.html +1 -1
  118. package/docs/documentation/components/Tile.html +1 -1
  119. package/docs/documentation/components/TileGroup.html +1 -1
  120. package/docs/documentation/components/TimePicker.html +1 -1
  121. package/docs/documentation/components/TimePickerSelect.html +1 -1
  122. package/docs/documentation/components/Toast.html +1 -1
  123. package/docs/documentation/components/Toggle.html +526 -66
  124. package/docs/documentation/components/Toggletip.html +1 -1
  125. package/docs/documentation/components/Tooltip.html +1 -1
  126. package/docs/documentation/components/TooltipDefinition.html +1 -1
  127. package/docs/documentation/components/TreeNodeComponent.html +1 -1
  128. package/docs/documentation/components/TreeViewComponent.html +1 -1
  129. package/docs/documentation/coverage.html +42 -6
  130. package/docs/documentation/graph/dependencies.svg +3103 -3057
  131. package/docs/documentation/interfaces/CheckboxGroupHost.html +417 -0
  132. package/docs/documentation/js/menu-wc.js +9 -3
  133. package/docs/documentation/js/menu-wc_es5.js +1 -1
  134. package/docs/documentation/js/search/search_index.js +2 -2
  135. package/docs/documentation/miscellaneous/variables.html +26 -0
  136. package/docs/documentation/modules/CheckboxModule/dependencies.svg +92 -36
  137. package/docs/documentation/modules/CheckboxModule.html +116 -39
  138. package/docs/documentation/modules/CodeSnippetModule/dependencies.svg +4 -4
  139. package/docs/documentation/modules/CodeSnippetModule.html +4 -4
  140. package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
  141. package/docs/documentation/modules/ComboBoxModule.html +4 -4
  142. package/docs/documentation/modules/ComboButtonModule/dependencies.svg +4 -4
  143. package/docs/documentation/modules/ComboButtonModule.html +4 -4
  144. package/docs/documentation/modules/ContextMenuModule/dependencies.svg +52 -52
  145. package/docs/documentation/modules/ContextMenuModule.html +52 -52
  146. package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +42 -46
  147. package/docs/documentation/modules/DatePickerInputModule.html +42 -46
  148. package/docs/documentation/modules/DatePickerModule/dependencies.svg +54 -58
  149. package/docs/documentation/modules/DatePickerModule.html +54 -58
  150. package/docs/documentation/modules/DialogModule/dependencies.svg +34 -34
  151. package/docs/documentation/modules/DialogModule.html +34 -34
  152. package/docs/documentation/modules/DropdownModule/dependencies.svg +70 -70
  153. package/docs/documentation/modules/DropdownModule.html +70 -70
  154. package/docs/documentation/modules/FileUploaderModule/dependencies.svg +62 -62
  155. package/docs/documentation/modules/FileUploaderModule.html +62 -62
  156. package/docs/documentation/modules/GridModule/dependencies.svg +7 -7
  157. package/docs/documentation/modules/GridModule.html +7 -7
  158. package/docs/documentation/modules/I18nModule/dependencies.svg +4 -4
  159. package/docs/documentation/modules/I18nModule.html +4 -4
  160. package/docs/documentation/modules/IconModule/dependencies.svg +4 -4
  161. package/docs/documentation/modules/IconModule.html +4 -4
  162. package/docs/documentation/modules/InlineLoadingModule/dependencies.svg +4 -4
  163. package/docs/documentation/modules/InlineLoadingModule.html +4 -4
  164. package/docs/documentation/modules/InputModule/dependencies.svg +4 -4
  165. package/docs/documentation/modules/InputModule.html +4 -4
  166. package/docs/documentation/modules/LayerModule/dependencies.svg +4 -4
  167. package/docs/documentation/modules/LayerModule.html +4 -4
  168. package/docs/documentation/modules/LayoutModule/dependencies.svg +4 -4
  169. package/docs/documentation/modules/LayoutModule.html +4 -4
  170. package/docs/documentation/modules/LoadingModule/dependencies.svg +13 -13
  171. package/docs/documentation/modules/LoadingModule.html +13 -13
  172. package/docs/documentation/modules/MenuButtonModule/dependencies.svg +4 -4
  173. package/docs/documentation/modules/MenuButtonModule.html +4 -4
  174. package/docs/documentation/modules/ModalModule/dependencies.svg +115 -115
  175. package/docs/documentation/modules/ModalModule.html +115 -115
  176. package/docs/documentation/modules/NFormsModule/dependencies.svg +4 -4
  177. package/docs/documentation/modules/NFormsModule.html +4 -4
  178. package/docs/documentation/modules/NotificationModule/dependencies.svg +37 -37
  179. package/docs/documentation/modules/NotificationModule.html +37 -37
  180. package/docs/documentation/modules/NumberModule/dependencies.svg +24 -24
  181. package/docs/documentation/modules/NumberModule.html +24 -24
  182. package/docs/documentation/modules/PaginationModule/dependencies.svg +56 -56
  183. package/docs/documentation/modules/PaginationModule.html +56 -56
  184. package/docs/documentation/modules/PanelModule/dependencies.svg +36 -36
  185. package/docs/documentation/modules/PanelModule.html +36 -36
  186. package/docs/documentation/modules/PopoverModule/dependencies.svg +4 -4
  187. package/docs/documentation/modules/PopoverModule.html +4 -4
  188. package/docs/documentation/modules/ProgressBarModule/dependencies.svg +4 -4
  189. package/docs/documentation/modules/ProgressBarModule.html +4 -4
  190. package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +4 -4
  191. package/docs/documentation/modules/ProgressIndicatorModule.html +4 -4
  192. package/docs/documentation/modules/RadioModule/dependencies.svg +58 -62
  193. package/docs/documentation/modules/RadioModule.html +58 -62
  194. package/docs/documentation/modules/SearchModule/dependencies.svg +30 -30
  195. package/docs/documentation/modules/SearchModule.html +30 -30
  196. package/docs/documentation/modules/SelectModule/dependencies.svg +61 -61
  197. package/docs/documentation/modules/SelectModule.html +61 -61
  198. package/docs/documentation/modules/SideNavModule/dependencies.svg +4 -4
  199. package/docs/documentation/modules/SideNavModule.html +4 -4
  200. package/docs/documentation/modules/SkeletonModule/dependencies.svg +4 -4
  201. package/docs/documentation/modules/SkeletonModule.html +4 -4
  202. package/docs/documentation/modules/SliderModule/dependencies.svg +42 -46
  203. package/docs/documentation/modules/SliderModule.html +42 -46
  204. package/docs/documentation/modules/StructuredListModule/dependencies.svg +4 -4
  205. package/docs/documentation/modules/StructuredListModule.html +4 -4
  206. package/docs/documentation/modules/TableModule/dependencies.svg +224 -224
  207. package/docs/documentation/modules/TableModule.html +224 -224
  208. package/docs/documentation/modules/TabsModule/dependencies.svg +4 -4
  209. package/docs/documentation/modules/TabsModule.html +4 -4
  210. package/docs/documentation/modules/TagModule/dependencies.svg +37 -37
  211. package/docs/documentation/modules/TagModule.html +37 -37
  212. package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
  213. package/docs/documentation/modules/ThemeModule.html +13 -13
  214. package/docs/documentation/modules/TilesModule/dependencies.svg +4 -4
  215. package/docs/documentation/modules/TilesModule.html +4 -4
  216. package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +4 -4
  217. package/docs/documentation/modules/TimePickerSelectModule.html +4 -4
  218. package/docs/documentation/modules/ToggleModule/dependencies.svg +7 -7
  219. package/docs/documentation/modules/ToggleModule.html +7 -7
  220. package/docs/documentation/modules/ToggletipModule/dependencies.svg +4 -4
  221. package/docs/documentation/modules/ToggletipModule.html +4 -4
  222. package/docs/documentation/modules/TooltipModule/dependencies.svg +4 -4
  223. package/docs/documentation/modules/TooltipModule.html +4 -4
  224. package/docs/documentation/modules/TreeviewModule/dependencies.svg +35 -35
  225. package/docs/documentation/modules/TreeviewModule.html +35 -35
  226. package/docs/documentation/overview.html +3105 -3059
  227. package/docs/documentation.json +1002 -127
  228. package/docs/storybook/9300.537382cc.iframe.bundle.js +1 -0
  229. package/docs/storybook/955.99b6ac85.iframe.bundle.js +1 -0
  230. package/docs/storybook/checkbox-checkbox-stories.a40b7a36.iframe.bundle.js +1 -0
  231. package/docs/storybook/dialog-overflow-menu-overflow-menu-stories.d99d789a.iframe.bundle.js +1 -0
  232. package/docs/storybook/iframe.html +2 -2
  233. package/docs/storybook/index.json +1 -1
  234. package/docs/storybook/main.4ba3ac58.iframe.bundle.js +1 -0
  235. package/docs/storybook/modal-modal-stories.02e35bd4.iframe.bundle.js +1 -0
  236. package/docs/storybook/pagination-pagination-nav-stories.647ce4df.iframe.bundle.js +1 -0
  237. package/docs/storybook/pagination-pagination-stories.aa18b936.iframe.bundle.js +1 -0
  238. package/docs/storybook/project.json +1 -1
  239. package/docs/storybook/{runtime~main.018cbdfe.iframe.bundle.js → runtime~main.229d454b.iframe.bundle.js} +1 -1
  240. package/docs/storybook/stories.json +1 -1
  241. package/docs/storybook/toggle-toggle-stories.999199e8.iframe.bundle.js +1 -0
  242. package/esm2020/checkbox/checkbox-group-host.mjs +3 -0
  243. package/esm2020/checkbox/checkbox-group.component.mjs +201 -0
  244. package/esm2020/checkbox/checkbox.component.mjs +169 -9
  245. package/esm2020/checkbox/checkbox.module.mjs +16 -7
  246. package/esm2020/checkbox/index.mjs +3 -1
  247. package/esm2020/table/cell/table-checkbox.component.mjs +1 -1
  248. package/esm2020/table/head/table-head-checkbox.component.mjs +1 -1
  249. package/esm2020/toggle/toggle.component.mjs +12 -7
  250. package/fesm2015/carbon-components-angular-checkbox.mjs +385 -15
  251. package/fesm2015/carbon-components-angular-checkbox.mjs.map +1 -1
  252. package/fesm2015/carbon-components-angular-table.mjs +2 -2
  253. package/fesm2015/carbon-components-angular-table.mjs.map +1 -1
  254. package/fesm2015/carbon-components-angular-toggle.mjs +13 -6
  255. package/fesm2015/carbon-components-angular-toggle.mjs.map +1 -1
  256. package/fesm2020/carbon-components-angular-checkbox.mjs +379 -15
  257. package/fesm2020/carbon-components-angular-checkbox.mjs.map +1 -1
  258. package/fesm2020/carbon-components-angular-table.mjs +2 -2
  259. package/fesm2020/carbon-components-angular-table.mjs.map +1 -1
  260. package/fesm2020/carbon-components-angular-toggle.mjs +11 -6
  261. package/fesm2020/carbon-components-angular-toggle.mjs.map +1 -1
  262. package/package.json +1 -1
  263. package/toggle/toggle.component.d.ts +3 -3
  264. package/docs/storybook/1895.d3fd5755.iframe.bundle.js +0 -1
  265. package/docs/storybook/955.754a7cf6.iframe.bundle.js +0 -1
  266. package/docs/storybook/checkbox-checkbox-stories.3aeae19d.iframe.bundle.js +0 -1
  267. package/docs/storybook/dialog-overflow-menu-overflow-menu-stories.aa916da9.iframe.bundle.js +0 -1
  268. package/docs/storybook/main.544b1246.iframe.bundle.js +0 -1
  269. package/docs/storybook/modal-modal-stories.22f92029.iframe.bundle.js +0 -1
  270. package/docs/storybook/pagination-pagination-nav-stories.9f6e65be.iframe.bundle.js +0 -1
  271. package/docs/storybook/pagination-pagination-stories.540698c1.iframe.bundle.js +0 -1
  272. package/docs/storybook/toggle-toggle-stories.7832edbb.iframe.bundle.js +0 -1
@@ -306,6 +306,50 @@
306
306
  "methods": [],
307
307
  "extends": []
308
308
  },
309
+ {
310
+ "name": "CheckboxGroupHost",
311
+ "id": "interface-CheckboxGroupHost-c4ec340616a371bff4aa6cf430e46ca66c52e4fe9f0bb2ea4d17db7199fd93391f6ffa46c255623e844cc22adac558d1dc3cdeb09313e35540c22c8d77a375a8",
312
+ "file": "src/checkbox/checkbox-group-host.ts",
313
+ "deprecated": false,
314
+ "deprecationMessage": "",
315
+ "type": "interface",
316
+ "sourceCode": "import { InjectionToken } from \"@angular/core\";\r\n\r\n/**\r\n * Host context for `cds-checkbox` when nested in `cds-checkbox-group`\r\n * (read-only and validation state can propagate from the group).\r\n */\r\nexport interface CheckboxGroupHost {\r\n\treadOnly: boolean;\r\n\tinvalid: boolean;\r\n\twarn: boolean;\r\n}\r\n\r\nexport const CHECKBOX_GROUP_HOST = new InjectionToken<CheckboxGroupHost | null>(\"CheckboxGroupHost\");\r\n",
317
+ "properties": [
318
+ {
319
+ "name": "invalid",
320
+ "deprecated": false,
321
+ "deprecationMessage": "",
322
+ "type": "boolean",
323
+ "optional": false,
324
+ "description": "",
325
+ "line": 9
326
+ },
327
+ {
328
+ "name": "readOnly",
329
+ "deprecated": false,
330
+ "deprecationMessage": "",
331
+ "type": "boolean",
332
+ "optional": false,
333
+ "description": "",
334
+ "line": 8
335
+ },
336
+ {
337
+ "name": "warn",
338
+ "deprecated": false,
339
+ "deprecationMessage": "",
340
+ "type": "boolean",
341
+ "optional": false,
342
+ "description": "",
343
+ "line": 10
344
+ }
345
+ ],
346
+ "indexSignatures": [],
347
+ "kind": 171,
348
+ "description": "<p>Host context for <code>cds-checkbox</code> when nested in <code>cds-checkbox-group</code>\n(read-only and validation state can propagate from the group).</p>\n",
349
+ "rawdescription": "\n\nHost context for `cds-checkbox` when nested in `cds-checkbox-group`\n(read-only and validation state can propagate from the group).\n",
350
+ "methods": [],
351
+ "extends": []
352
+ },
309
353
  {
310
354
  "name": "CloseMeta",
311
355
  "id": "interface-CloseMeta-aa4ccbe5ac7f0c088c23f7030f0e80b6df1f15a896569560a9894c55fe3826cde419fb4a9a0a69fbe0bb63d7dab9007b383d7bcb048884fa67e9290ed759a73b",
@@ -22925,7 +22969,7 @@
22925
22969
  },
22926
22970
  {
22927
22971
  "name": "Checkbox",
22928
- "id": "component-Checkbox-903078ac0c74d3b9c98940d4a7cd48115dd4609250ba018d2c54ae65f1a64faa99523ad63731575fef0c64690d2b409fe4b4c21a8b68a177c546d45bb48e78f6",
22972
+ "id": "component-Checkbox-f5344f91336f8bb7bb61eabd6f30550bb85d4d2d8f38ac77fdc15cfccf7c4b7a90b70de80ba98f57508795bb91c2002690d7f54ed1a5370a4844bdd8f309e791",
22929
22973
  "file": "src/checkbox/checkbox.component.ts",
22930
22974
  "changeDetection": "ChangeDetectionStrategy.OnPush",
22931
22975
  "encapsulation": [],
@@ -22940,7 +22984,7 @@
22940
22984
  "selector": "cds-checkbox, ibm-checkbox",
22941
22985
  "styleUrls": [],
22942
22986
  "styles": [],
22943
- "template": "<div class=\"cds--form-item cds--checkbox-wrapper\">\n\t<input\n\t\t#inputCheckbox\n\t\tclass=\"cds--checkbox\"\n\t\ttype=\"checkbox\"\n\t\t[id]=\"id + '_input'\"\n\t\t[value]=\"value\"\n\t\t[name]=\"name\"\n\t\t[required]=\"required\"\n\t\t[checked]=\"checked\"\n\t\t[disabled]=\"disabled\"\n\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t(change)=\"onChange($event)\"\n\t\t(click)=\"onClick($event)\">\n\t<label\n\t\t[for]=\"id + '_input'\"\n\t\t[attr.aria-label]=\"ariaLabel\"\n\t\tclass=\"cds--checkbox-label\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--skeleton' : skeleton\n\t\t}\">\n\t\t<span [ngClass]=\"{'cds--visually-hidden' : hideLabel}\" class=\"cds--checkbox-label-text\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</label>\n</div>\n\t",
22987
+ "template": "<div class=\"cds--form-item cds--checkbox-wrapper\"\n\t[ngClass]=\"{\n\t\t'cds--checkbox-wrapper--invalid': !effectiveReadOnly && effectiveInvalid,\n\t\t'cds--checkbox-wrapper--warning': !effectiveReadOnly && !effectiveInvalid && effectiveWarn,\n\t\t'cds--checkbox-wrapper--readonly': effectiveReadOnly,\n\t\t'cds--checkbox-wrapper--decorator': !!decorator\n\t}\">\n\t<input\n\t\t#inputCheckbox\n\t\tclass=\"cds--checkbox\"\n\t\ttype=\"checkbox\"\n\t\t[id]=\"id + '_input'\"\n\t\t[value]=\"value\"\n\t\t[name]=\"name\"\n\t\t[required]=\"required\"\n\t\t[checked]=\"checked\"\n\t\t[disabled]=\"disabled\"\n\t\t[attr.data-invalid]=\"(!effectiveReadOnly && effectiveInvalid) ? true : null\"\n\t\t[attr.aria-readonly]=\"effectiveReadOnly ? true : null\"\n\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t[attr.aria-describedby]=\"(helperText && !effectiveInvalid && !effectiveWarn) ? helperId : null\"\n\t\t(change)=\"onChange($event)\"\n\t\t(click)=\"onClick($event)\">\n\t<label\n\t\t[for]=\"id + '_input'\"\n\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t[attr.title]=\"title || null\"\n\t\tclass=\"cds--checkbox-label\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--skeleton' : skeleton\n\t\t}\">\n\t\t<span [ngClass]=\"{'cds--visually-hidden' : hideLabel}\" class=\"cds--checkbox-label-text\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<ng-container *ngIf=\"decorator\">\n\t\t\t\t<div class=\"cds--checkbox-wrapper-inner--decorator\">\n\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</span>\n\t</label>\n\t<div class=\"cds--checkbox__validation-msg\">\n\t\t<ng-container *ngIf=\"!effectiveReadOnly && effectiveInvalid\">\n\t\t\t<svg\n\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\tsize=\"16\"\n\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\n\t\t\t</svg>\n\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{invalidText}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"$any(invalidText)\"></ng-template>\n\t\t\t</div>\n\t\t</ng-container>\n\t\t<ng-container *ngIf=\"!effectiveReadOnly && !effectiveInvalid && effectiveWarn\">\n\t\t\t<svg\n\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\tsize=\"16\"\n\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\n\t\t\t</svg>\n\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"$any(warnText)\"></ng-template>\n\t\t\t</div>\n\t\t</ng-container>\n\t</div>\n\t<div\n\t\t*ngIf=\"helperText && !effectiveInvalid && !effectiveWarn\"\n\t\tclass=\"cds--form__helper-text\"\n\t\t[id]=\"helperId\">\n\t\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"$any(helperText)\"></ng-template>\n\t</div>\n</div>\n\t",
22944
22988
  "templateUrl": [],
22945
22989
  "viewProviders": [],
22946
22990
  "hostDirectives": [],
@@ -22949,7 +22993,7 @@
22949
22993
  "name": "ariaLabel",
22950
22994
  "deprecated": false,
22951
22995
  "deprecationMessage": "",
22952
- "line": 108,
22996
+ "line": 160,
22953
22997
  "type": "string",
22954
22998
  "decorators": []
22955
22999
  },
@@ -22957,7 +23001,7 @@
22957
23001
  "name": "ariaLabelledby",
22958
23002
  "deprecated": false,
22959
23003
  "deprecationMessage": "",
22960
- "line": 109,
23004
+ "line": 161,
22961
23005
  "type": "string",
22962
23006
  "decorators": []
22963
23007
  },
@@ -22967,10 +23011,20 @@
22967
23011
  "deprecationMessage": "",
22968
23012
  "rawdescription": "\n\nSets the `checked` state. `true` for checked, `false` for unchecked\n\nAllows double binding with the `checkedChange` Output.\n",
22969
23013
  "description": "<p>Sets the <code>checked</code> state. <code>true</code> for checked, <code>false</code> for unchecked</p>\n<p>Allows double binding with the <code>checkedChange</code> Output.</p>\n",
22970
- "line": 148,
23014
+ "line": 244,
22971
23015
  "type": "boolean",
22972
23016
  "decorators": []
22973
23017
  },
23018
+ {
23019
+ "name": "decorator",
23020
+ "deprecated": false,
23021
+ "deprecationMessage": "",
23022
+ "rawdescription": "\n\nOptional `TemplateRef` (e.g. AI label) rendered next to the label text.\n",
23023
+ "description": "<p>Optional <code>TemplateRef</code> (e.g. AI label) rendered next to the label text.</p>\n",
23024
+ "line": 205,
23025
+ "type": "TemplateRef<any>",
23026
+ "decorators": []
23027
+ },
22974
23028
  {
22975
23029
  "name": "disabled",
22976
23030
  "defaultValue": "false",
@@ -22978,10 +23032,20 @@
22978
23032
  "deprecationMessage": "",
22979
23033
  "rawdescription": "\n\nSet to `true` for a disabled checkbox.\n",
22980
23034
  "description": "<p>Set to <code>true</code> for a disabled checkbox.</p>\n",
22981
- "line": 83,
23035
+ "line": 135,
22982
23036
  "type": "boolean",
22983
23037
  "decorators": []
22984
23038
  },
23039
+ {
23040
+ "name": "helperText",
23041
+ "deprecated": false,
23042
+ "deprecationMessage": "",
23043
+ "rawdescription": "\n\nOptional helper text displayed below the checkbox label.\nNot shown when `invalid` or `warn` is `true`.\n",
23044
+ "description": "<p>Optional helper text displayed below the checkbox label.\nNot shown when <code>invalid</code> or <code>warn</code> is <code>true</code>.</p>\n",
23045
+ "line": 172,
23046
+ "type": "string | TemplateRef<any>",
23047
+ "decorators": []
23048
+ },
22985
23049
  {
22986
23050
  "name": "hideLabel",
22987
23051
  "defaultValue": "false",
@@ -22989,7 +23053,7 @@
22989
23053
  "deprecationMessage": "",
22990
23054
  "rawdescription": "\n\nSet to `true` to hide the checkbox labels.\n",
22991
23055
  "description": "<p>Set to <code>true</code> to hide the checkbox labels.</p>\n",
22992
- "line": 91,
23056
+ "line": 143,
22993
23057
  "type": "boolean",
22994
23058
  "decorators": []
22995
23059
  },
@@ -23000,7 +23064,7 @@
23000
23064
  "deprecationMessage": "",
23001
23065
  "rawdescription": "\n\nThe unique id for the checkbox component.\n",
23002
23066
  "description": "<p>The unique id for the checkbox component.</p>\n",
23003
- "line": 99,
23067
+ "line": 151,
23004
23068
  "type": "string",
23005
23069
  "decorators": []
23006
23070
  },
@@ -23010,27 +23074,57 @@
23010
23074
  "deprecationMessage": "",
23011
23075
  "rawdescription": "\n\nSet the checkbox's indeterminate state to match the parameter and transition the view to reflect the change.\n\nAllows double binding with the `indeterminateChange` Output.\n",
23012
23076
  "description": "<p>Set the checkbox&#39;s indeterminate state to match the parameter and transition the view to reflect the change.</p>\n<p>Allows double binding with the <code>indeterminateChange</code> Output.</p>\n",
23013
- "line": 116,
23077
+ "line": 212,
23078
+ "type": "boolean",
23079
+ "decorators": []
23080
+ },
23081
+ {
23082
+ "name": "invalid",
23083
+ "deprecated": false,
23084
+ "deprecationMessage": "",
23085
+ "rawdescription": "\n\nSet to `true` to show the checkbox in an invalid/error state.\nWhen omitted inside a `cds-checkbox-group`, the group's `invalid` value applies.\n",
23086
+ "description": "<p>Set to <code>true</code> to show the checkbox in an invalid/error state.\nWhen omitted inside a <code>cds-checkbox-group</code>, the group&#39;s <code>invalid</code> value applies.</p>\n",
23087
+ "line": 178,
23014
23088
  "type": "boolean",
23015
23089
  "decorators": []
23016
23090
  },
23091
+ {
23092
+ "name": "invalidText",
23093
+ "deprecated": false,
23094
+ "deprecationMessage": "",
23095
+ "rawdescription": "\n\nThe error message displayed when `invalid` is `true`.\n",
23096
+ "description": "<p>The error message displayed when <code>invalid</code> is <code>true</code>.</p>\n",
23097
+ "line": 183,
23098
+ "type": "string | TemplateRef<any>",
23099
+ "decorators": []
23100
+ },
23017
23101
  {
23018
23102
  "name": "name",
23019
23103
  "deprecated": false,
23020
23104
  "deprecationMessage": "",
23021
23105
  "rawdescription": "\n\nSets the name attribute on the `input` element.\n",
23022
23106
  "description": "<p>Sets the name attribute on the <code>input</code> element.</p>\n",
23023
- "line": 95,
23107
+ "line": 147,
23024
23108
  "type": "string",
23025
23109
  "decorators": []
23026
23110
  },
23111
+ {
23112
+ "name": "readOnly",
23113
+ "deprecated": false,
23114
+ "deprecationMessage": "",
23115
+ "rawdescription": "\n\nWhen `true`, the checkbox cannot be toggled (matches `readonly` attribute semantics for form controls).\nWhen omitted inside a `cds-checkbox-group`, the group's `readOnly` value applies.\n",
23116
+ "description": "<p>When <code>true</code>, the checkbox cannot be toggled (matches <code>readonly</code> attribute semantics for form controls).\nWhen omitted inside a <code>cds-checkbox-group</code>, the group&#39;s <code>readOnly</code> value applies.</p>\n",
23117
+ "line": 200,
23118
+ "type": "boolean",
23119
+ "decorators": []
23120
+ },
23027
23121
  {
23028
23122
  "name": "required",
23029
23123
  "deprecated": false,
23030
23124
  "deprecationMessage": "",
23031
23125
  "rawdescription": "\n\nReflects the required attribute of the `input` element.\n",
23032
23126
  "description": "<p>Reflects the required attribute of the <code>input</code> element.</p>\n",
23033
- "line": 103,
23127
+ "line": 155,
23034
23128
  "type": "boolean",
23035
23129
  "decorators": []
23036
23130
  },
@@ -23041,19 +23135,50 @@
23041
23135
  "deprecationMessage": "",
23042
23136
  "rawdescription": "\n\nSet to `true` for a loading checkbox.\n",
23043
23137
  "description": "<p>Set to <code>true</code> for a loading checkbox.</p>\n",
23044
- "line": 87,
23138
+ "line": 139,
23045
23139
  "type": "boolean",
23046
23140
  "decorators": []
23047
23141
  },
23142
+ {
23143
+ "name": "title",
23144
+ "defaultValue": "\"\"",
23145
+ "deprecated": false,
23146
+ "deprecationMessage": "",
23147
+ "rawdescription": "\n\nOptional title for the `<label>` element.\n",
23148
+ "description": "<p>Optional title for the <code>&lt;label&gt;</code> element.</p>\n",
23149
+ "line": 166,
23150
+ "type": "string",
23151
+ "decorators": []
23152
+ },
23048
23153
  {
23049
23154
  "name": "value",
23050
23155
  "deprecated": false,
23051
23156
  "deprecationMessage": "",
23052
23157
  "rawdescription": "\n\nSets the value attribute on the `input` element.\n",
23053
23158
  "description": "<p>Sets the value attribute on the <code>input</code> element.</p>\n",
23054
- "line": 107,
23159
+ "line": 159,
23055
23160
  "type": "CheckboxValue",
23056
23161
  "decorators": []
23162
+ },
23163
+ {
23164
+ "name": "warn",
23165
+ "deprecated": false,
23166
+ "deprecationMessage": "",
23167
+ "rawdescription": "\n\nSet to `true` to show the checkbox in a warning state.\nWhen omitted inside a `cds-checkbox-group`, the group's `warn` value applies.\n",
23168
+ "description": "<p>Set to <code>true</code> to show the checkbox in a warning state.\nWhen omitted inside a <code>cds-checkbox-group</code>, the group&#39;s <code>warn</code> value applies.</p>\n",
23169
+ "line": 189,
23170
+ "type": "boolean",
23171
+ "decorators": []
23172
+ },
23173
+ {
23174
+ "name": "warnText",
23175
+ "deprecated": false,
23176
+ "deprecationMessage": "",
23177
+ "rawdescription": "\n\nThe warning message displayed when `warn` is `true` and `invalid` is `false`.\n",
23178
+ "description": "<p>The warning message displayed when <code>warn</code> is <code>true</code> and <code>invalid</code> is <code>false</code>.</p>\n",
23179
+ "line": 194,
23180
+ "type": "string | TemplateRef<any>",
23181
+ "decorators": []
23057
23182
  }
23058
23183
  ],
23059
23184
  "outputsClass": [
@@ -23064,7 +23189,7 @@
23064
23189
  "deprecationMessage": "",
23065
23190
  "rawdescription": "\n\nEmits an event when the value of the checkbox changes.\n\nAllows double biding with the `checked` Input.\n",
23066
23191
  "description": "<p>Emits an event when the value of the checkbox changes.</p>\n<p>Allows double biding with the <code>checked</code> Input.</p>\n",
23067
- "line": 169,
23192
+ "line": 265,
23068
23193
  "type": "EventEmitter"
23069
23194
  },
23070
23195
  {
@@ -23074,7 +23199,7 @@
23074
23199
  "deprecationMessage": "",
23075
23200
  "rawdescription": "\n\nEmits click event.\n",
23076
23201
  "description": "<p>Emits click event.</p>\n",
23077
- "line": 162,
23202
+ "line": 258,
23078
23203
  "type": "EventEmitter"
23079
23204
  },
23080
23205
  {
@@ -23084,7 +23209,7 @@
23084
23209
  "deprecationMessage": "",
23085
23210
  "rawdescription": "\n\nEmits event notifying other classes when a change in state occurs specifically\non an indeterminate checkbox.\n",
23086
23211
  "description": "<p>Emits event notifying other classes when a change in state occurs specifically\non an indeterminate checkbox.</p>\n",
23087
- "line": 175,
23212
+ "line": 271,
23088
23213
  "type": "EventEmitter"
23089
23214
  }
23090
23215
  ],
@@ -23097,7 +23222,7 @@
23097
23222
  "type": "",
23098
23223
  "optional": false,
23099
23224
  "description": "<p>Set to <code>true</code> if the input checkbox is selected (or checked).</p>\n",
23100
- "line": 180,
23225
+ "line": 276,
23101
23226
  "rawdescription": "\n\nSet to `true` if the input checkbox is selected (or checked).\n"
23102
23227
  },
23103
23228
  {
@@ -23108,7 +23233,7 @@
23108
23233
  "type": "",
23109
23234
  "optional": false,
23110
23235
  "description": "<p>Set to <code>true</code> if the input checkbox is in state indeterminate.</p>\n",
23111
- "line": 184,
23236
+ "line": 280,
23112
23237
  "rawdescription": "\n\nSet to `true` if the input checkbox is in state indeterminate.\n"
23113
23238
  },
23114
23239
  {
@@ -23119,7 +23244,7 @@
23119
23244
  "type": "number",
23120
23245
  "optional": false,
23121
23246
  "description": "<p>Variable used for creating unique ids for checkbox components.</p>\n",
23122
- "line": 78,
23247
+ "line": 128,
23123
23248
  "rawdescription": "\n\nVariable used for creating unique ids for checkbox components.\n",
23124
23249
  "modifierKind": [
23125
23250
  126
@@ -23133,9 +23258,22 @@
23133
23258
  "type": "",
23134
23259
  "optional": false,
23135
23260
  "description": "<p>Keeps a reference to the checkboxes current state, as defined in <code>CheckboxState</code>.</p>\n",
23136
- "line": 189,
23261
+ "line": 285,
23137
23262
  "rawdescription": "\n\nKeeps a reference to the checkboxes current state, as defined in `CheckboxState`.\n"
23138
23263
  },
23264
+ {
23265
+ "name": "helperId",
23266
+ "defaultValue": "`checkbox-helper-${Checkbox.helperIdCounter++}`",
23267
+ "deprecated": false,
23268
+ "deprecationMessage": "",
23269
+ "type": "",
23270
+ "optional": false,
23271
+ "description": "",
23272
+ "line": 292,
23273
+ "modifierKind": [
23274
+ 148
23275
+ ]
23276
+ },
23139
23277
  {
23140
23278
  "name": "inputCheckbox",
23141
23279
  "deprecated": false,
@@ -23143,7 +23281,7 @@
23143
23281
  "type": "ElementRef",
23144
23282
  "optional": false,
23145
23283
  "description": "<p>Maintains a reference to the view DOM element of the <code>Checkbox</code>.</p>\n",
23146
- "line": 194,
23284
+ "line": 290,
23147
23285
  "rawdescription": "\n\nMaintains a reference to the view DOM element of the `Checkbox`.\n",
23148
23286
  "decorators": [
23149
23287
  {
@@ -23163,7 +23301,7 @@
23163
23301
  "type": "function",
23164
23302
  "optional": false,
23165
23303
  "description": "<p>Called when checkbox is blurred. Needed to properly implement <code>ControlValueAccessor</code>.</p>\n",
23166
- "line": 284,
23304
+ "line": 421,
23167
23305
  "rawdescription": "\n\nCalled when checkbox is blurred. Needed to properly implement `ControlValueAccessor`.\n"
23168
23306
  },
23169
23307
  {
@@ -23174,7 +23312,7 @@
23174
23312
  "type": "",
23175
23313
  "optional": false,
23176
23314
  "description": "<p>Method set in <code>registerOnChange</code> to propagate changes back to the form.</p>\n",
23177
- "line": 313,
23315
+ "line": 450,
23178
23316
  "rawdescription": "\n\nMethod set in `registerOnChange` to propagate changes back to the form.\n"
23179
23317
  }
23180
23318
  ],
@@ -23185,7 +23323,7 @@
23185
23323
  "optional": false,
23186
23324
  "returnType": "void",
23187
23325
  "typeParameters": [],
23188
- "line": 296,
23326
+ "line": 433,
23189
23327
  "deprecated": false,
23190
23328
  "deprecationMessage": "",
23191
23329
  "rawdescription": "\n\nCreates instance of `CheckboxChange` used to propagate the change event.\n",
@@ -23197,7 +23335,7 @@
23197
23335
  "optional": false,
23198
23336
  "returnType": "void",
23199
23337
  "typeParameters": [],
23200
- "line": 251,
23338
+ "line": 381,
23201
23339
  "deprecated": false,
23202
23340
  "deprecationMessage": "",
23203
23341
  "decorators": [
@@ -23210,6 +23348,48 @@
23210
23348
  170
23211
23349
  ]
23212
23350
  },
23351
+ {
23352
+ "name": "isTemplate",
23353
+ "args": [
23354
+ {
23355
+ "name": "value",
23356
+ "type": "any",
23357
+ "deprecated": false,
23358
+ "deprecationMessage": ""
23359
+ }
23360
+ ],
23361
+ "optional": false,
23362
+ "returnType": "boolean",
23363
+ "typeParameters": [],
23364
+ "line": 455,
23365
+ "deprecated": false,
23366
+ "deprecationMessage": "",
23367
+ "rawdescription": "\n\nReturns `true` when the provided value is a `TemplateRef`.\n",
23368
+ "description": "<p>Returns <code>true</code> when the provided value is a <code>TemplateRef</code>.</p>\n",
23369
+ "jsdoctags": [
23370
+ {
23371
+ "name": "value",
23372
+ "type": "any",
23373
+ "deprecated": false,
23374
+ "deprecationMessage": "",
23375
+ "tagName": {
23376
+ "text": "param"
23377
+ }
23378
+ }
23379
+ ]
23380
+ },
23381
+ {
23382
+ "name": "markForCheckFromGroup",
23383
+ "args": [],
23384
+ "optional": false,
23385
+ "returnType": "void",
23386
+ "typeParameters": [],
23387
+ "line": 376,
23388
+ "deprecated": false,
23389
+ "deprecationMessage": "",
23390
+ "rawdescription": "\n\nInvoked by `CheckboxGroup` when group `readOnly`, `invalid`, `warn` change so `OnPush`\ncheckboxes still refresh inherited state from `CHECKBOX_GROUP_HOST`.\n",
23391
+ "description": "<p>Invoked by <code>CheckboxGroup</code> when group <code>readOnly</code>, <code>invalid</code>, <code>warn</code> change so <code>OnPush</code>\ncheckboxes still refresh inherited state from <code>CHECKBOX_GROUP_HOST</code>.</p>\n"
23392
+ },
23213
23393
  {
23214
23394
  "name": "onChange",
23215
23395
  "args": [
@@ -23223,7 +23403,7 @@
23223
23403
  "optional": false,
23224
23404
  "returnType": "void",
23225
23405
  "typeParameters": [],
23226
- "line": 258,
23406
+ "line": 388,
23227
23407
  "deprecated": false,
23228
23408
  "deprecationMessage": "",
23229
23409
  "rawdescription": "\n\nExecutes on the event of a change within `Checkbox` to block propagation.\n",
@@ -23253,7 +23433,7 @@
23253
23433
  "optional": false,
23254
23434
  "returnType": "void",
23255
23435
  "typeParameters": [],
23256
- "line": 265,
23436
+ "line": 395,
23257
23437
  "deprecated": false,
23258
23438
  "deprecationMessage": "",
23259
23439
  "rawdescription": "\n\nHandles click events on the `Checkbox` and emits changes to other classes.\n",
@@ -23283,7 +23463,7 @@
23283
23463
  "optional": false,
23284
23464
  "returnType": "void",
23285
23465
  "typeParameters": [],
23286
- "line": 226,
23466
+ "line": 348,
23287
23467
  "deprecated": false,
23288
23468
  "deprecationMessage": "",
23289
23469
  "rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
@@ -23316,7 +23496,7 @@
23316
23496
  "optional": false,
23317
23497
  "returnType": "void",
23318
23498
  "typeParameters": [],
23319
- "line": 234,
23499
+ "line": 356,
23320
23500
  "deprecated": false,
23321
23501
  "deprecationMessage": "",
23322
23502
  "rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
@@ -23327,8 +23507,8 @@
23327
23507
  "jsdoctags": [
23328
23508
  {
23329
23509
  "name": {
23330
- "pos": 5459,
23331
- "end": 5461,
23510
+ "pos": 9624,
23511
+ "end": 9626,
23332
23512
  "flags": 16842752,
23333
23513
  "modifierFlagsCache": 0,
23334
23514
  "transformFlags": 0,
@@ -23339,8 +23519,8 @@
23339
23519
  "deprecated": false,
23340
23520
  "deprecationMessage": "",
23341
23521
  "tagName": {
23342
- "pos": 5453,
23343
- "end": 5458,
23522
+ "pos": 9618,
23523
+ "end": 9623,
23344
23524
  "flags": 16842752,
23345
23525
  "modifierFlagsCache": 0,
23346
23526
  "transformFlags": 0,
@@ -23364,7 +23544,7 @@
23364
23544
  "optional": false,
23365
23545
  "returnType": "void",
23366
23546
  "typeParameters": [],
23367
- "line": 245,
23547
+ "line": 367,
23368
23548
  "deprecated": false,
23369
23549
  "deprecationMessage": "",
23370
23550
  "rawdescription": "\n\n`ControlValueAccessor` method to programmatically disable the checkbox.\n\nex: `this.formGroup.get(\"myCheckbox\").disable();`\n\n",
@@ -23372,8 +23552,8 @@
23372
23552
  "jsdoctags": [
23373
23553
  {
23374
23554
  "name": {
23375
- "pos": 5740,
23376
- "end": 5750,
23555
+ "pos": 9905,
23556
+ "end": 9915,
23377
23557
  "flags": 16842752,
23378
23558
  "modifierFlagsCache": 0,
23379
23559
  "transformFlags": 0,
@@ -23384,8 +23564,8 @@
23384
23564
  "deprecated": false,
23385
23565
  "deprecationMessage": "",
23386
23566
  "tagName": {
23387
- "pos": 5734,
23388
- "end": 5739,
23567
+ "pos": 9899,
23568
+ "end": 9904,
23389
23569
  "flags": 16842752,
23390
23570
  "modifierFlagsCache": 0,
23391
23571
  "transformFlags": 0,
@@ -23402,7 +23582,7 @@
23402
23582
  "optional": false,
23403
23583
  "returnType": "void",
23404
23584
  "typeParameters": [],
23405
- "line": 206,
23585
+ "line": 325,
23406
23586
  "deprecated": false,
23407
23587
  "deprecationMessage": "",
23408
23588
  "rawdescription": "\n\nToggle the selected state of the checkbox.\n",
@@ -23424,7 +23604,7 @@
23424
23604
  "optional": false,
23425
23605
  "returnType": "void",
23426
23606
  "typeParameters": [],
23427
- "line": 289,
23607
+ "line": 426,
23428
23608
  "deprecated": false,
23429
23609
  "deprecationMessage": "",
23430
23610
  "rawdescription": "\n\nHandles changes between checkbox states.\n",
@@ -23454,7 +23634,7 @@
23454
23634
  "optional": false,
23455
23635
  "returnType": "void",
23456
23636
  "typeParameters": [],
23457
- "line": 218,
23637
+ "line": 340,
23458
23638
  "deprecated": false,
23459
23639
  "deprecationMessage": "",
23460
23640
  "rawdescription": "\n\nWrites a value from `ngModel` to the component.\n\nIn this case the value is the `checked` property.\n\n",
@@ -23465,8 +23645,8 @@
23465
23645
  "jsdoctags": [
23466
23646
  {
23467
23647
  "name": {
23468
- "pos": 5051,
23469
- "end": 5056,
23648
+ "pos": 9216,
23649
+ "end": 9221,
23470
23650
  "flags": 16842752,
23471
23651
  "modifierFlagsCache": 0,
23472
23652
  "transformFlags": 0,
@@ -23477,8 +23657,8 @@
23477
23657
  "deprecated": false,
23478
23658
  "deprecationMessage": "",
23479
23659
  "tagName": {
23480
- "pos": 5045,
23481
- "end": 5050,
23660
+ "pos": 9210,
23661
+ "end": 9215,
23482
23662
  "flags": 16842752,
23483
23663
  "modifierFlagsCache": 0,
23484
23664
  "transformFlags": 0,
@@ -23500,7 +23680,7 @@
23500
23680
  "argsDecorator": [],
23501
23681
  "deprecated": false,
23502
23682
  "deprecationMessage": "",
23503
- "line": 251
23683
+ "line": 381
23504
23684
  }
23505
23685
  ],
23506
23686
  "standalone": false,
@@ -23508,7 +23688,7 @@
23508
23688
  "description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { CheckboxModule } from &#39;carbon-components-angular&#39;;</code></pre></div><p><a href=\"../../?path=/story/components-checkbox--basic\">See demo</a></p>\n",
23509
23689
  "rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { CheckboxModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-checkbox--basic)\n",
23510
23690
  "type": "component",
23511
- "sourceCode": "import {\n\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tEventEmitter,\n\tInput,\n\tOutput,\n\tViewChild,\n\tHostListener\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { CheckboxValue } from \"./checkbox.types\";\n\n/**\n * Defines the set of states for a checkbox component.\n */\nexport enum CheckboxState {\n\tInit,\n\tIndeterminate,\n\tChecked,\n\tUnchecked\n}\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { CheckboxModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-checkbox--basic)\n */\n@Component({\n\tselector: \"cds-checkbox, ibm-checkbox\",\n\ttemplate: `\n\t\t<div class=\"cds--form-item cds--checkbox-wrapper\">\n\t\t\t<input\n\t\t\t\t#inputCheckbox\n\t\t\t\tclass=\"cds--checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t[id]=\"id + '_input'\"\n\t\t\t\t[value]=\"value\"\n\t\t\t\t[name]=\"name\"\n\t\t\t\t[required]=\"required\"\n\t\t\t\t[checked]=\"checked\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t\t(change)=\"onChange($event)\"\n\t\t\t\t(click)=\"onClick($event)\">\n\t\t\t<label\n\t\t\t\t[for]=\"id + '_input'\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t\tclass=\"cds--checkbox-label\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--skeleton' : skeleton\n\t\t\t\t}\">\n\t\t\t\t<span [ngClass]=\"{'cds--visually-hidden' : hideLabel}\" class=\"cds--checkbox-label-text\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</span>\n\t\t\t</label>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Checkbox,\n\t\t\tmulti: true\n\t\t}\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class Checkbox implements ControlValueAccessor, AfterViewInit {\n\t/**\n\t * Variable used for creating unique ids for checkbox components.\n\t */\n\tstatic checkboxCount = 0;\n\n\t/**\n\t * Set to `true` for a disabled checkbox.\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Set to `true` for a loading checkbox.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Set to `true` to hide the checkbox labels.\n\t */\n\t@Input() hideLabel = false;\n\t/**\n\t * Sets the name attribute on the `input` element.\n\t */\n\t@Input() name: string;\n\t/**\n\t * The unique id for the checkbox component.\n\t */\n\t@Input() id = `checkbox-${Checkbox.checkboxCount}`;\n\t/**\n\t * Reflects the required attribute of the `input` element.\n\t */\n\t@Input() required: boolean;\n\t/**\n\t * Sets the value attribute on the `input` element.\n\t */\n\t@Input() value: CheckboxValue;\n\t@Input() ariaLabel: string;\n\t@Input() ariaLabelledby: string;\n\n\t/**\n\t * Set the checkbox's indeterminate state to match the parameter and transition the view to reflect the change.\n\t *\n\t * Allows double binding with the `indeterminateChange` Output.\n\t */\n\t@Input() set indeterminate(indeterminate: boolean) {\n\t\tif (indeterminate === this._indeterminate) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._indeterminate = indeterminate;\n\n\t\tif (this._indeterminate) {\n\t\t\tthis.transitionCheckboxState(CheckboxState.Indeterminate);\n\t\t} else {\n\t\t\tthis.transitionCheckboxState(this.checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n\t\t}\n\n\t\tif (this.inputCheckbox && this.inputCheckbox.nativeElement) {\n\t\t\tthis.inputCheckbox.nativeElement.indeterminate = indeterminate;\n\t\t}\n\t\tthis.changeDetectorRef.markForCheck();\n\t\tthis.indeterminateChange.emit(this._indeterminate);\n\t}\n\n\t/**\n\t * Reflects whether the checkbox state is indeterminate.\n\t */\n\tget indeterminate() {\n\t\treturn this._indeterminate;\n\t}\n\n\t/**\n\t * Sets the `checked` state. `true` for checked, `false` for unchecked\n\t *\n\t * Allows double binding with the `checkedChange` Output.\n\t */\n\t@Input() set checked (checked: boolean) {\n\t\tthis.setChecked(checked, false);\n\t}\n\n\t/**\n\t * Returns value `true` if state is selected for the checkbox.\n\t */\n\tget checked() {\n\t\treturn this._checked;\n\t}\n\n\t/**\n\t * Emits click event.\n\t */\n\t@Output() click = new EventEmitter<void>();\n\n\t/**\n\t * Emits an event when the value of the checkbox changes.\n\t *\n\t * Allows double biding with the `checked` Input.\n\t */\n\t@Output() checkedChange = new EventEmitter<boolean>();\n\n\t/**\n\t * Emits event notifying other classes when a change in state occurs specifically\n\t * on an indeterminate checkbox.\n\t */\n\t@Output() indeterminateChange = new EventEmitter<boolean>();\n\n\t/**\n\t * Set to `true` if the input checkbox is selected (or checked).\n\t */\n\t_checked = false;\n\t/**\n\t * Set to `true` if the input checkbox is in state indeterminate.\n\t */\n\t_indeterminate = false;\n\n\t/**\n\t * Keeps a reference to the checkboxes current state, as defined in `CheckboxState`.\n\t */\n\tcurrentCheckboxState = CheckboxState.Init;\n\n\t/**\n\t * Maintains a reference to the view DOM element of the `Checkbox`.\n\t */\n\t@ViewChild(\"inputCheckbox\") inputCheckbox: ElementRef;\n\n\t/**\n\t * Creates an instance of `Checkbox`.\n\t */\n\tconstructor(protected changeDetectorRef: ChangeDetectorRef) {\n\t\tCheckbox.checkboxCount++;\n\t}\n\n\t/**\n\t * Toggle the selected state of the checkbox.\n\t */\n\tpublic toggle() {\n\t\t// Flip checked and reset indeterminate\n\t\tthis.setChecked(!this.checked, true);\n\t}\n\n\t/**\n\t * Writes a value from `ngModel` to the component.\n\t *\n\t * In this case the value is the `checked` property.\n\t *\n\t * @param value boolean, corresponds to the `checked` property.\n\t */\n\tpublic writeValue(value: any) {\n\t\t// Set checked and reset indeterminate\n\t\tthis.setChecked(!!value, true);\n\t}\n\n\t/**\n\t * Sets a method in order 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/**\n\t * `ControlValueAccessor` method to programmatically disable the checkbox.\n\t *\n\t * ex: `this.formGroup.get(\"myCheckbox\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the checkbox\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t\tthis.changeDetectorRef.markForCheck();\n\t}\n\n\t@HostListener(\"focusout\")\n\tfocusOut() {\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Executes on the event of a change within `Checkbox` to block propagation.\n\t */\n\tonChange(event: Event) {\n\t\tevent.stopPropagation();\n\t}\n\n\t/**\n\t * Handles click events on the `Checkbox` and emits changes to other classes.\n\t */\n\tonClick(event: Event) {\n\t\tif (this.click.observers.length) {\n\t\t\t// Disable default checkbox activation behavior which flips checked and resets indeterminate.\n\t\t\t// This allows the parent component to control the checked/indeterminate properties.\n\t\t\tevent.preventDefault();\n\t\t\tthis.click.emit();\n\t\t\treturn;\n\t\t}\n\t\tif (!this.disabled) {\n\t\t\tthis.toggle();\n\t\t\tthis.transitionCheckboxState(this._checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n\t\t\tthis.emitChangeEvent();\n\t\t}\n\t}\n\n\n\t/**\n\t * Called when checkbox is blurred. Needed to properly implement `ControlValueAccessor`.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Handles changes between checkbox states.\n\t */\n\ttransitionCheckboxState(newState: CheckboxState) {\n\t\tthis.currentCheckboxState = newState;\n\t}\n\n\t/**\n\t * Creates instance of `CheckboxChange` used to propagate the change event.\n\t */\n\temitChangeEvent() {\n\t\tthis.checkedChange.emit(this.checked);\n\t\tthis.propagateChange(this.checked);\n\t}\n\n\t/**\n\t * Updates the checkbox if it is in the indeterminate state.\n\t */\n\tngAfterViewInit() {\n\t\tif (this.indeterminate && this.inputCheckbox && this.inputCheckbox.nativeElement) {\n\t\t\tthis.inputCheckbox.nativeElement.indeterminate = true;\n\t\t}\n\t}\n\n\t/**\n\t * Method set in `registerOnChange` to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\t/**\n\t * Sets checked state and optionally resets indeterminate state.\n\t */\n\tprivate setChecked(checked: boolean, resetIndeterminate: boolean) {\n\t\tif (checked === this._checked) {\n\t\t\treturn;\n\t\t}\n\t\tthis._checked = checked;\n\t\t// Reset indeterminate if requested\n\t\tif (resetIndeterminate && this._indeterminate) {\n\t\t\tthis._indeterminate = false;\n\t\t\tPromise.resolve().then(() => {\n\t\t\t\tthis.indeterminateChange.emit(this._indeterminate);\n\t\t\t});\n\t\t}\n\t\tthis.changeDetectorRef.markForCheck();\n\t}\n}\n",
23691
+ "sourceCode": "import {\n\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tEventEmitter,\n\tInject,\n\tInput,\n\tOptional,\n\tOutput,\n\tTemplateRef,\n\tViewChild,\n\tHostListener\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { CheckboxValue } from \"./checkbox.types\";\nimport { CHECKBOX_GROUP_HOST, CheckboxGroupHost } from \"./checkbox-group-host\";\n\n/**\n * Defines the set of states for a checkbox component.\n */\nexport enum CheckboxState {\n\tInit,\n\tIndeterminate,\n\tChecked,\n\tUnchecked\n}\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { CheckboxModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-checkbox--basic)\n */\n@Component({\n\tselector: \"cds-checkbox, ibm-checkbox\",\n\ttemplate: `\n\t\t<div class=\"cds--form-item cds--checkbox-wrapper\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--checkbox-wrapper--invalid': !effectiveReadOnly && effectiveInvalid,\n\t\t\t\t'cds--checkbox-wrapper--warning': !effectiveReadOnly && !effectiveInvalid && effectiveWarn,\n\t\t\t\t'cds--checkbox-wrapper--readonly': effectiveReadOnly,\n\t\t\t\t'cds--checkbox-wrapper--decorator': !!decorator\n\t\t\t}\">\n\t\t\t<input\n\t\t\t\t#inputCheckbox\n\t\t\t\tclass=\"cds--checkbox\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t[id]=\"id + '_input'\"\n\t\t\t\t[value]=\"value\"\n\t\t\t\t[name]=\"name\"\n\t\t\t\t[required]=\"required\"\n\t\t\t\t[checked]=\"checked\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[attr.data-invalid]=\"(!effectiveReadOnly && effectiveInvalid) ? true : null\"\n\t\t\t\t[attr.aria-readonly]=\"effectiveReadOnly ? true : null\"\n\t\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t\t[attr.aria-describedby]=\"(helperText && !effectiveInvalid && !effectiveWarn) ? helperId : null\"\n\t\t\t\t(change)=\"onChange($event)\"\n\t\t\t\t(click)=\"onClick($event)\">\n\t\t\t<label\n\t\t\t\t[for]=\"id + '_input'\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t\t[attr.title]=\"title || null\"\n\t\t\t\tclass=\"cds--checkbox-label\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--skeleton' : skeleton\n\t\t\t\t}\">\n\t\t\t\t<span [ngClass]=\"{'cds--visually-hidden' : hideLabel}\" class=\"cds--checkbox-label-text\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t\t<ng-container *ngIf=\"decorator\">\n\t\t\t\t\t\t<div class=\"cds--checkbox-wrapper-inner--decorator\">\n\t\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</span>\n\t\t\t</label>\n\t\t\t<div class=\"cds--checkbox__validation-msg\">\n\t\t\t\t<ng-container *ngIf=\"!effectiveReadOnly && effectiveInvalid\">\n\t\t\t\t\t<svg\n\t\t\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{invalidText}}</ng-container>\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"$any(invalidText)\"></ng-template>\n\t\t\t\t\t</div>\n\t\t\t\t</ng-container>\n\t\t\t\t<ng-container *ngIf=\"!effectiveReadOnly && !effectiveInvalid && effectiveWarn\">\n\t\t\t\t\t<svg\n\t\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"$any(warnText)\"></ng-template>\n\t\t\t\t\t</div>\n\t\t\t\t</ng-container>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\t*ngIf=\"helperText && !effectiveInvalid && !effectiveWarn\"\n\t\t\t\tclass=\"cds--form__helper-text\"\n\t\t\t\t[id]=\"helperId\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"$any(helperText)\"></ng-template>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Checkbox,\n\t\t\tmulti: true\n\t\t}\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class Checkbox implements ControlValueAccessor, AfterViewInit {\n\t/**\n\t * Variable used for creating unique ids for checkbox components.\n\t */\n\tstatic checkboxCount = 0;\n\n\tprivate static helperIdCounter = 0;\n\n\t/**\n\t * Set to `true` for a disabled checkbox.\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Set to `true` for a loading checkbox.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Set to `true` to hide the checkbox labels.\n\t */\n\t@Input() hideLabel = false;\n\t/**\n\t * Sets the name attribute on the `input` element.\n\t */\n\t@Input() name: string;\n\t/**\n\t * The unique id for the checkbox component.\n\t */\n\t@Input() id = `checkbox-${Checkbox.checkboxCount}`;\n\t/**\n\t * Reflects the required attribute of the `input` element.\n\t */\n\t@Input() required: boolean;\n\t/**\n\t * Sets the value attribute on the `input` element.\n\t */\n\t@Input() value: CheckboxValue;\n\t@Input() ariaLabel: string;\n\t@Input() ariaLabelledby: string;\n\n\t/**\n\t * Optional title for the `<label>` element.\n\t */\n\t@Input() title = \"\";\n\n\t/**\n\t * Optional helper text displayed below the checkbox label.\n\t * Not shown when `invalid` or `warn` is `true`.\n\t */\n\t@Input() helperText: string | TemplateRef<any>;\n\n\t/**\n\t * Set to `true` to show the checkbox in an invalid/error state.\n\t * When omitted inside a `cds-checkbox-group`, the group's `invalid` value applies.\n\t */\n\t@Input() invalid?: boolean;\n\n\t/**\n\t * The error message displayed when `invalid` is `true`.\n\t */\n\t@Input() invalidText: string | TemplateRef<any>;\n\n\t/**\n\t * Set to `true` to show the checkbox in a warning state.\n\t * When omitted inside a `cds-checkbox-group`, the group's `warn` value applies.\n\t */\n\t@Input() warn?: boolean;\n\n\t/**\n\t * The warning message displayed when `warn` is `true` and `invalid` is `false`.\n\t */\n\t@Input() warnText: string | TemplateRef<any>;\n\n\t/**\n\t * When `true`, the checkbox cannot be toggled (matches `readonly` attribute semantics for form controls).\n\t * When omitted inside a `cds-checkbox-group`, the group's `readOnly` value applies.\n\t */\n\t@Input() readOnly?: boolean;\n\n\t/**\n\t * Optional `TemplateRef` (e.g. AI label) rendered next to the label text.\n\t */\n\t@Input() decorator: TemplateRef<any>;\n\n\t/**\n\t * Set the checkbox's indeterminate state to match the parameter and transition the view to reflect the change.\n\t *\n\t * Allows double binding with the `indeterminateChange` Output.\n\t */\n\t@Input() set indeterminate(indeterminate: boolean) {\n\t\tif (indeterminate === this._indeterminate) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._indeterminate = indeterminate;\n\n\t\tif (this._indeterminate) {\n\t\t\tthis.transitionCheckboxState(CheckboxState.Indeterminate);\n\t\t} else {\n\t\t\tthis.transitionCheckboxState(this.checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n\t\t}\n\n\t\tif (this.inputCheckbox && this.inputCheckbox.nativeElement) {\n\t\t\tthis.inputCheckbox.nativeElement.indeterminate = indeterminate;\n\t\t}\n\t\tthis.changeDetectorRef.markForCheck();\n\t\tthis.indeterminateChange.emit(this._indeterminate);\n\t}\n\n\t/**\n\t * Reflects whether the checkbox state is indeterminate.\n\t */\n\tget indeterminate() {\n\t\treturn this._indeterminate;\n\t}\n\n\t/**\n\t * Sets the `checked` state. `true` for checked, `false` for unchecked\n\t *\n\t * Allows double binding with the `checkedChange` Output.\n\t */\n\t@Input() set checked (checked: boolean) {\n\t\tthis.setChecked(checked, false);\n\t}\n\n\t/**\n\t * Returns value `true` if state is selected for the checkbox.\n\t */\n\tget checked() {\n\t\treturn this._checked;\n\t}\n\n\t/**\n\t * Emits click event.\n\t */\n\t@Output() click = new EventEmitter<void>();\n\n\t/**\n\t * Emits an event when the value of the checkbox changes.\n\t *\n\t * Allows double biding with the `checked` Input.\n\t */\n\t@Output() checkedChange = new EventEmitter<boolean>();\n\n\t/**\n\t * Emits event notifying other classes when a change in state occurs specifically\n\t * on an indeterminate checkbox.\n\t */\n\t@Output() indeterminateChange = new EventEmitter<boolean>();\n\n\t/**\n\t * Set to `true` if the input checkbox is selected (or checked).\n\t */\n\t_checked = false;\n\t/**\n\t * Set to `true` if the input checkbox is in state indeterminate.\n\t */\n\t_indeterminate = false;\n\n\t/**\n\t * Keeps a reference to the checkboxes current state, as defined in `CheckboxState`.\n\t */\n\tcurrentCheckboxState = CheckboxState.Init;\n\n\t/**\n\t * Maintains a reference to the view DOM element of the `Checkbox`.\n\t */\n\t@ViewChild(\"inputCheckbox\") inputCheckbox: ElementRef;\n\n\treadonly helperId = `checkbox-helper-${Checkbox.helperIdCounter++}`;\n\n\t/**\n\t * Creates an instance of `Checkbox`.\n\t */\n\tconstructor(\n\t\tprotected changeDetectorRef: ChangeDetectorRef,\n\t\t@Optional() @Inject(CHECKBOX_GROUP_HOST) private hostGroup: CheckboxGroupHost | null\n\t) {\n\t\tCheckbox.checkboxCount++;\n\t}\n\n\tget effectiveReadOnly(): boolean {\n\t\tconst own = this.readOnly;\n\t\tconst group = this.hostGroup?.readOnly ?? false;\n\t\treturn !!(own !== undefined ? own : group);\n\t}\n\n\tget effectiveInvalid(): boolean {\n\t\tconst own = this.invalid;\n\t\tconst group = this.hostGroup?.invalid ?? false;\n\t\treturn !!(own !== undefined ? own : group);\n\t}\n\n\tget effectiveWarn(): boolean {\n\t\tconst own = this.warn;\n\t\tconst group = this.hostGroup?.warn ?? false;\n\t\treturn !!(own !== undefined ? own : group);\n\t}\n\n\t/**\n\t * Toggle the selected state of the checkbox.\n\t */\n\tpublic toggle() {\n\t\tif (this.effectiveReadOnly) {\n\t\t\treturn;\n\t\t}\n\t\t// Flip checked and reset indeterminate\n\t\tthis.setChecked(!this.checked, true);\n\t}\n\n\t/**\n\t * Writes a value from `ngModel` to the component.\n\t *\n\t * In this case the value is the `checked` property.\n\t *\n\t * @param value boolean, corresponds to the `checked` property.\n\t */\n\tpublic writeValue(value: any) {\n\t\t// Set checked and reset indeterminate\n\t\tthis.setChecked(!!value, true);\n\t}\n\n\t/**\n\t * Sets a method in order 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/**\n\t * `ControlValueAccessor` method to programmatically disable the checkbox.\n\t *\n\t * ex: `this.formGroup.get(\"myCheckbox\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the checkbox\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t\tthis.changeDetectorRef.markForCheck();\n\t}\n\n\t/**\n\t * Invoked by `CheckboxGroup` when group `readOnly`, `invalid`, `warn` change so `OnPush`\n\t * checkboxes still refresh inherited state from `CHECKBOX_GROUP_HOST`.\n\t */\n\tmarkForCheckFromGroup(): void {\n\t\tthis.changeDetectorRef.markForCheck();\n\t}\n\n\t@HostListener(\"focusout\")\n\tfocusOut() {\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Executes on the event of a change within `Checkbox` to block propagation.\n\t */\n\tonChange(event: Event) {\n\t\tevent.stopPropagation();\n\t}\n\n\t/**\n\t * Handles click events on the `Checkbox` and emits changes to other classes.\n\t */\n\tonClick(event: Event) {\n\t\tif (this.effectiveReadOnly) {\n\t\t\tevent.preventDefault();\n\t\t\tif (this.click.observers.length) {\n\t\t\t\tthis.click.emit();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (this.click.observers.length) {\n\t\t\t// Disable default checkbox activation behavior which flips checked and resets indeterminate.\n\t\t\t// This allows the parent component to control the checked/indeterminate properties.\n\t\t\tevent.preventDefault();\n\t\t\tthis.click.emit();\n\t\t\treturn;\n\t\t}\n\t\tif (!this.disabled) {\n\t\t\tthis.toggle();\n\t\t\tthis.transitionCheckboxState(this._checked ? CheckboxState.Checked : CheckboxState.Unchecked);\n\t\t\tthis.emitChangeEvent();\n\t\t}\n\t}\n\n\n\t/**\n\t * Called when checkbox is blurred. Needed to properly implement `ControlValueAccessor`.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Handles changes between checkbox states.\n\t */\n\ttransitionCheckboxState(newState: CheckboxState) {\n\t\tthis.currentCheckboxState = newState;\n\t}\n\n\t/**\n\t * Creates instance of `CheckboxChange` used to propagate the change event.\n\t */\n\temitChangeEvent() {\n\t\tthis.checkedChange.emit(this.checked);\n\t\tthis.propagateChange(this.checked);\n\t}\n\n\t/**\n\t * Updates the checkbox if it is in the indeterminate state.\n\t */\n\tngAfterViewInit() {\n\t\tif (this.indeterminate && this.inputCheckbox && this.inputCheckbox.nativeElement) {\n\t\t\tthis.inputCheckbox.nativeElement.indeterminate = true;\n\t\t}\n\t}\n\n\t/**\n\t * Method set in `registerOnChange` to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\t/**\n\t * Returns `true` when the provided value is a `TemplateRef`.\n\t */\n\tisTemplate(value: any): boolean {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\t/**\n\t * Sets checked state and optionally resets indeterminate state.\n\t */\n\tprivate setChecked(checked: boolean, resetIndeterminate: boolean) {\n\t\tif (checked === this._checked) {\n\t\t\treturn;\n\t\t}\n\t\tthis._checked = checked;\n\t\t// Reset indeterminate if requested\n\t\tif (resetIndeterminate && this._indeterminate) {\n\t\t\tthis._indeterminate = false;\n\t\t\tPromise.resolve().then(() => {\n\t\t\t\tthis.indeterminateChange.emit(this._indeterminate);\n\t\t\t});\n\t\t}\n\t\tthis.changeDetectorRef.markForCheck();\n\t}\n}\n",
23512
23692
  "assetsDirs": [],
23513
23693
  "styleUrlsData": "",
23514
23694
  "stylesData": "",
@@ -23523,9 +23703,15 @@
23523
23703
  "type": "ChangeDetectorRef",
23524
23704
  "deprecated": false,
23525
23705
  "deprecationMessage": ""
23706
+ },
23707
+ {
23708
+ "name": "hostGroup",
23709
+ "type": "CheckboxGroupHost | null",
23710
+ "deprecated": false,
23711
+ "deprecationMessage": ""
23526
23712
  }
23527
23713
  ],
23528
- "line": 194,
23714
+ "line": 292,
23529
23715
  "rawdescription": "\n\nCreates an instance of `Checkbox`.\n",
23530
23716
  "jsdoctags": [
23531
23717
  {
@@ -23536,6 +23722,15 @@
23536
23722
  "tagName": {
23537
23723
  "text": "param"
23538
23724
  }
23725
+ },
23726
+ {
23727
+ "name": "hostGroup",
23728
+ "type": "CheckboxGroupHost | null",
23729
+ "deprecated": false,
23730
+ "deprecationMessage": "",
23731
+ "tagName": {
23732
+ "text": "param"
23733
+ }
23539
23734
  }
23540
23735
  ]
23541
23736
  },
@@ -23561,7 +23756,7 @@
23561
23756
  }
23562
23757
  ],
23563
23758
  "returnType": "void",
23564
- "line": 116,
23759
+ "line": 212,
23565
23760
  "rawdescription": "\n\nSet the checkbox's indeterminate state to match the parameter and transition the view to reflect the change.\n\nAllows double binding with the `indeterminateChange` Output.\n",
23566
23761
  "description": "<p>Set the checkbox&#39;s indeterminate state to match the parameter and transition the view to reflect the change.</p>\n<p>Allows double binding with the <code>indeterminateChange</code> Output.</p>\n",
23567
23762
  "jsdoctags": [
@@ -23580,7 +23775,7 @@
23580
23775
  "name": "indeterminate",
23581
23776
  "type": "",
23582
23777
  "returnType": "",
23583
- "line": 139,
23778
+ "line": 235,
23584
23779
  "rawdescription": "\n\nReflects whether the checkbox state is indeterminate.\n",
23585
23780
  "description": "<p>Reflects whether the checkbox state is indeterminate.</p>\n"
23586
23781
  }
@@ -23601,7 +23796,7 @@
23601
23796
  }
23602
23797
  ],
23603
23798
  "returnType": "void",
23604
- "line": 148,
23799
+ "line": 244,
23605
23800
  "rawdescription": "\n\nSets the `checked` state. `true` for checked, `false` for unchecked\n\nAllows double binding with the `checkedChange` Output.\n",
23606
23801
  "description": "<p>Sets the <code>checked</code> state. <code>true</code> for checked, <code>false</code> for unchecked</p>\n<p>Allows double binding with the <code>checkedChange</code> Output.</p>\n",
23607
23802
  "jsdoctags": [
@@ -23620,13 +23815,299 @@
23620
23815
  "name": "checked",
23621
23816
  "type": "",
23622
23817
  "returnType": "",
23623
- "line": 155,
23818
+ "line": 251,
23624
23819
  "rawdescription": "\n\nReturns value `true` if state is selected for the checkbox.\n",
23625
23820
  "description": "<p>Returns value <code>true</code> if state is selected for the checkbox.</p>\n"
23626
23821
  }
23822
+ },
23823
+ "effectiveReadOnly": {
23824
+ "name": "effectiveReadOnly",
23825
+ "getSignature": {
23826
+ "name": "effectiveReadOnly",
23827
+ "type": "boolean",
23828
+ "returnType": "boolean",
23829
+ "line": 304
23830
+ }
23831
+ },
23832
+ "effectiveInvalid": {
23833
+ "name": "effectiveInvalid",
23834
+ "getSignature": {
23835
+ "name": "effectiveInvalid",
23836
+ "type": "boolean",
23837
+ "returnType": "boolean",
23838
+ "line": 310
23839
+ }
23840
+ },
23841
+ "effectiveWarn": {
23842
+ "name": "effectiveWarn",
23843
+ "getSignature": {
23844
+ "name": "effectiveWarn",
23845
+ "type": "boolean",
23846
+ "returnType": "boolean",
23847
+ "line": 316
23848
+ }
23627
23849
  }
23628
23850
  }
23629
23851
  },
23852
+ {
23853
+ "name": "CheckboxGroup",
23854
+ "id": "component-CheckboxGroup-dfc0081275f1f42cedf2100cc0472380ef2039695f15fdee02850bac0c36d4823bb04b0e2365bf308f9d4ee81172de2da76889aaecf27ca467d3ef88f9027645",
23855
+ "file": "src/checkbox/checkbox-group.component.ts",
23856
+ "changeDetection": "ChangeDetectionStrategy.OnPush",
23857
+ "encapsulation": [],
23858
+ "entryComponents": [],
23859
+ "inputs": [],
23860
+ "outputs": [],
23861
+ "providers": [
23862
+ {
23863
+ "name": "{ provide: CHECKBOX_GROUP_HOST, useExisting: CheckboxGroup }"
23864
+ }
23865
+ ],
23866
+ "selector": "cds-checkbox-group, ibm-checkbox-group",
23867
+ "styleUrls": [],
23868
+ "styles": [],
23869
+ "template": "<fieldset\n\tclass=\"cds--checkbox-group\"\n\t[ngClass]=\"{\n\t\t'cds--checkbox-group--horizontal': orientation === 'horizontal',\n\t\t'cds--checkbox-group--readonly': readOnly,\n\t\t'cds--checkbox-group--invalid': !readOnly && invalid,\n\t\t'cds--checkbox-group--warning': !readOnly && !invalid && warn,\n\t\t'cds--checkbox-group--decorator': !!decorator\n\t}\"\n\t[attr.data-invalid]=\"invalid ? true : null\"\n\t[attr.aria-labelledby]=\"legendId || fieldsetAriaLabelledby || null\"\n\t[attr.aria-readonly]=\"readOnly ? true : null\"\n\t[attr.aria-describedby]=\"(helperText && !invalid && !warn) ? helperTextId : null\">\n\t<legend *ngIf=\"legend\" class=\"cds--label\" [attr.id]=\"legendId || null\">\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\t<ng-container *ngIf=\"decorator\">\n\t\t\t<div class=\"cds--checkbox-group-inner--decorator\">\n\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\n\t\t\t</div>\n\t\t</ng-container>\n\t</legend>\n\t<ng-content></ng-content>\n\t<div class=\"cds--checkbox-group__validation-msg\">\n\t\t<ng-container *ngIf=\"!readOnly && invalid\">\n\t\t\t<svg\n\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\tsize=\"16\"\n\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\n\t\t\t</svg>\n\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{ invalidText }}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"invalidText\"></ng-template>\n\t\t\t</div>\n\t\t</ng-container>\n\t\t<ng-container *ngIf=\"!readOnly && !invalid && warn\">\n\t\t\t<svg\n\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\tsize=\"16\"\n\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\n\t\t\t</svg>\n\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"warnText\"></ng-template>\n\t\t\t</div>\n\t\t</ng-container>\n\t</div>\n\t<div\n\t\t*ngIf=\"helperText && !invalid && !warn\"\n\t\tclass=\"cds--form__helper-text\"\n\t\t[id]=\"helperTextId\">\n\t\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"helperText\"></ng-template>\n\t</div>\n</fieldset>\n\t",
23870
+ "templateUrl": [],
23871
+ "viewProviders": [],
23872
+ "hostDirectives": [],
23873
+ "inputsClass": [
23874
+ {
23875
+ "name": "decorator",
23876
+ "deprecated": false,
23877
+ "deprecationMessage": "",
23878
+ "rawdescription": "\n\nOptional decorator (e.g. AI label) rendered in the legend.\n",
23879
+ "description": "<p>Optional decorator (e.g. AI label) rendered in the legend.</p>\n",
23880
+ "line": 130,
23881
+ "type": "TemplateRef<any>",
23882
+ "decorators": []
23883
+ },
23884
+ {
23885
+ "name": "fieldsetAriaLabelledby",
23886
+ "deprecated": false,
23887
+ "deprecationMessage": "",
23888
+ "rawdescription": "\n\nOptional `aria-labelledby` for the `<fieldset>` when not using `legendId`.\n",
23889
+ "description": "<p>Optional <code>aria-labelledby</code> for the <code>&lt;fieldset&gt;</code> when not using <code>legendId</code>.</p>\n",
23890
+ "line": 111,
23891
+ "type": "string",
23892
+ "decorators": []
23893
+ },
23894
+ {
23895
+ "name": "helperText",
23896
+ "deprecated": false,
23897
+ "deprecationMessage": "",
23898
+ "line": 115,
23899
+ "type": "string | TemplateRef<any>",
23900
+ "decorators": []
23901
+ },
23902
+ {
23903
+ "name": "invalid",
23904
+ "defaultValue": "false",
23905
+ "deprecated": false,
23906
+ "deprecationMessage": "",
23907
+ "line": 117,
23908
+ "type": "boolean",
23909
+ "decorators": []
23910
+ },
23911
+ {
23912
+ "name": "invalidText",
23913
+ "deprecated": false,
23914
+ "deprecationMessage": "",
23915
+ "line": 119,
23916
+ "type": "string | TemplateRef<any>",
23917
+ "decorators": []
23918
+ },
23919
+ {
23920
+ "name": "legend",
23921
+ "deprecated": false,
23922
+ "deprecationMessage": "",
23923
+ "line": 101,
23924
+ "type": "string | TemplateRef<any>",
23925
+ "decorators": []
23926
+ },
23927
+ {
23928
+ "name": "legendId",
23929
+ "deprecated": false,
23930
+ "deprecationMessage": "",
23931
+ "rawdescription": "\n\nOptional id for the `<legend>`; referenced by `fieldsetAriaLabelledby` when set.\n",
23932
+ "description": "<p>Optional id for the <code>&lt;legend&gt;</code>; referenced by <code>fieldsetAriaLabelledby</code> when set.</p>\n",
23933
+ "line": 106,
23934
+ "type": "string",
23935
+ "decorators": []
23936
+ },
23937
+ {
23938
+ "name": "orientation",
23939
+ "defaultValue": "\"vertical\"",
23940
+ "deprecated": false,
23941
+ "deprecationMessage": "",
23942
+ "line": 113,
23943
+ "type": "\"horizontal\" | \"vertical\"",
23944
+ "decorators": []
23945
+ },
23946
+ {
23947
+ "name": "readOnly",
23948
+ "defaultValue": "false",
23949
+ "deprecated": false,
23950
+ "deprecationMessage": "",
23951
+ "line": 125,
23952
+ "type": "boolean",
23953
+ "decorators": []
23954
+ },
23955
+ {
23956
+ "name": "warn",
23957
+ "defaultValue": "false",
23958
+ "deprecated": false,
23959
+ "deprecationMessage": "",
23960
+ "line": 121,
23961
+ "type": "boolean",
23962
+ "decorators": []
23963
+ },
23964
+ {
23965
+ "name": "warnText",
23966
+ "deprecated": false,
23967
+ "deprecationMessage": "",
23968
+ "line": 123,
23969
+ "type": "string | TemplateRef<any>",
23970
+ "decorators": []
23971
+ }
23972
+ ],
23973
+ "outputsClass": [],
23974
+ "propertiesClass": [
23975
+ {
23976
+ "name": "checkboxes",
23977
+ "deprecated": false,
23978
+ "deprecationMessage": "",
23979
+ "type": "QueryList<Checkbox>",
23980
+ "optional": false,
23981
+ "description": "",
23982
+ "line": 97,
23983
+ "decorators": [
23984
+ {
23985
+ "name": "ContentChildren",
23986
+ "stringifiedArguments": "undefined, {descendants: true}"
23987
+ }
23988
+ ],
23989
+ "modifierKind": [
23990
+ 170
23991
+ ]
23992
+ },
23993
+ {
23994
+ "name": "helperTextId",
23995
+ "defaultValue": "`checkbox-group-helper-${CheckboxGroup.nextHelperId++}`",
23996
+ "deprecated": false,
23997
+ "deprecationMessage": "",
23998
+ "type": "",
23999
+ "optional": false,
24000
+ "description": "",
24001
+ "line": 99,
24002
+ "modifierKind": [
24003
+ 148
24004
+ ]
24005
+ },
24006
+ {
24007
+ "name": "hostFormItem",
24008
+ "defaultValue": "true",
24009
+ "deprecated": false,
24010
+ "deprecationMessage": "",
24011
+ "type": "",
24012
+ "optional": false,
24013
+ "description": "",
24014
+ "line": 94,
24015
+ "decorators": [
24016
+ {
24017
+ "name": "HostBinding",
24018
+ "stringifiedArguments": "'class.cds--form-item'"
24019
+ }
24020
+ ],
24021
+ "modifierKind": [
24022
+ 170
24023
+ ]
24024
+ }
24025
+ ],
24026
+ "methodsClass": [
24027
+ {
24028
+ "name": "isTemplate",
24029
+ "args": [
24030
+ {
24031
+ "name": "value",
24032
+ "type": "any",
24033
+ "deprecated": false,
24034
+ "deprecationMessage": ""
24035
+ }
24036
+ ],
24037
+ "optional": false,
24038
+ "returnType": "boolean",
24039
+ "typeParameters": [],
24040
+ "line": 144,
24041
+ "deprecated": false,
24042
+ "deprecationMessage": "",
24043
+ "jsdoctags": [
24044
+ {
24045
+ "name": "value",
24046
+ "type": "any",
24047
+ "deprecated": false,
24048
+ "deprecationMessage": "",
24049
+ "tagName": {
24050
+ "text": "param"
24051
+ }
24052
+ }
24053
+ ]
24054
+ }
24055
+ ],
24056
+ "deprecated": false,
24057
+ "deprecationMessage": "",
24058
+ "hostBindings": [
24059
+ {
24060
+ "name": "class.cds--form-item",
24061
+ "defaultValue": "true",
24062
+ "deprecated": false,
24063
+ "deprecationMessage": "",
24064
+ "line": 94,
24065
+ "type": "boolean",
24066
+ "decorators": []
24067
+ }
24068
+ ],
24069
+ "hostListeners": [],
24070
+ "standalone": false,
24071
+ "imports": [],
24072
+ "description": "<p>Groups related checkboxes with a shared legend, validation, and optional decorator\n(e.g. AI label).</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\">&lt;cds-checkbox-group legend=&quot;Group label&quot; [decorator]=&quot;decoratorTpl&quot;&gt;\n &lt;cds-checkbox&gt;Option 1&lt;/cds-checkbox&gt;\n&lt;/cds-checkbox-group&gt;</code></pre></div>",
24073
+ "rawdescription": "\n\nGroups related checkboxes with a shared legend, validation, and optional decorator\n(e.g. AI label).\n\n```html\n<cds-checkbox-group legend=\"Group label\" [decorator]=\"decoratorTpl\">\n <cds-checkbox>Option 1</cds-checkbox>\n</cds-checkbox-group>\n```\n",
24074
+ "type": "component",
24075
+ "sourceCode": "import {\r\n\tAfterContentInit,\r\n\tChangeDetectionStrategy,\r\n\tChangeDetectorRef,\r\n\tComponent,\r\n\tContentChildren,\r\n\tforwardRef,\r\n\tHostBinding,\r\n\tInput,\r\n\tOnChanges,\r\n\tQueryList,\r\n\tSimpleChanges,\r\n\tTemplateRef\r\n} from \"@angular/core\";\r\nimport { CHECKBOX_GROUP_HOST } from \"./checkbox-group-host\";\r\nimport { Checkbox } from \"./checkbox.component\";\r\n\r\n/**\r\n * Groups related checkboxes with a shared legend, validation, and optional decorator\r\n * (e.g. AI label).\r\n *\r\n * ```html\r\n * <cds-checkbox-group legend=\"Group label\" [decorator]=\"decoratorTpl\">\r\n * <cds-checkbox>Option 1</cds-checkbox>\r\n * </cds-checkbox-group>\r\n * ```\r\n */\r\n@Component({\r\n\tselector: \"cds-checkbox-group, ibm-checkbox-group\",\r\n\ttemplate: `\r\n\t\t<fieldset\r\n\t\t\tclass=\"cds--checkbox-group\"\r\n\t\t\t[ngClass]=\"{\r\n\t\t\t\t'cds--checkbox-group--horizontal': orientation === 'horizontal',\r\n\t\t\t\t'cds--checkbox-group--readonly': readOnly,\r\n\t\t\t\t'cds--checkbox-group--invalid': !readOnly && invalid,\r\n\t\t\t\t'cds--checkbox-group--warning': !readOnly && !invalid && warn,\r\n\t\t\t\t'cds--checkbox-group--decorator': !!decorator\r\n\t\t\t}\"\r\n\t\t\t[attr.data-invalid]=\"invalid ? true : null\"\r\n\t\t\t[attr.aria-labelledby]=\"legendId || fieldsetAriaLabelledby || null\"\r\n\t\t\t[attr.aria-readonly]=\"readOnly ? true : null\"\r\n\t\t\t[attr.aria-describedby]=\"(helperText && !invalid && !warn) ? helperTextId : null\">\r\n\t\t\t<legend *ngIf=\"legend\" class=\"cds--label\" [attr.id]=\"legendId || null\">\r\n\t\t\t\t<ng-template *ngIf=\"isTemplate(legend); else legendLabel\" [ngTemplateOutlet]=\"legend\"></ng-template>\r\n\t\t\t\t<ng-template #legendLabel>{{legend}}</ng-template>\r\n\t\t\t\t<ng-container *ngIf=\"decorator\">\r\n\t\t\t\t\t<div class=\"cds--checkbox-group-inner--decorator\">\r\n\t\t\t\t\t\t<ng-template [ngTemplateOutlet]=\"decorator\"></ng-template>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</ng-container>\r\n\t\t\t</legend>\r\n\t\t\t<ng-content></ng-content>\r\n\t\t\t<div class=\"cds--checkbox-group__validation-msg\">\r\n\t\t\t\t<ng-container *ngIf=\"!readOnly && invalid\">\r\n\t\t\t\t\t<svg\r\n\t\t\t\t\t\tcdsIcon=\"warning--filled\"\r\n\t\t\t\t\t\tsize=\"16\"\r\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon\">\r\n\t\t\t\t\t</svg>\r\n\t\t\t\t\t<div class=\"cds--form-requirement\">\r\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{ invalidText }}</ng-container>\r\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"invalidText\"></ng-template>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</ng-container>\r\n\t\t\t\t<ng-container *ngIf=\"!readOnly && !invalid && warn\">\r\n\t\t\t\t\t<svg\r\n\t\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\r\n\t\t\t\t\t\tsize=\"16\"\r\n\t\t\t\t\t\tclass=\"cds--checkbox__invalid-icon cds--checkbox__invalid-icon--warning\">\r\n\t\t\t\t\t</svg>\r\n\t\t\t\t\t<div class=\"cds--form-requirement\">\r\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\r\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"warnText\"></ng-template>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</ng-container>\r\n\t\t\t</div>\r\n\t\t\t<div\r\n\t\t\t\t*ngIf=\"helperText && !invalid && !warn\"\r\n\t\t\t\tclass=\"cds--form__helper-text\"\r\n\t\t\t\t[id]=\"helperTextId\">\r\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\r\n\t\t\t\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"helperText\"></ng-template>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t`,\r\n\tproviders: [\r\n\t\t{ provide: CHECKBOX_GROUP_HOST, useExisting: CheckboxGroup }\r\n\t],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CheckboxGroup implements OnChanges, AfterContentInit {\r\n\tprivate static nextHelperId = 0;\r\n\t@HostBinding(\"class.cds--form-item\") hostFormItem = true;\r\n\r\n\t// tslint:disable-next-line:no-forward-ref\r\n\t@ContentChildren(forwardRef(() => Checkbox), { descendants: true }) checkboxes: QueryList<Checkbox>;\r\n\r\n\treadonly helperTextId = `checkbox-group-helper-${CheckboxGroup.nextHelperId++}`;\r\n\r\n\t@Input() legend: string | TemplateRef<any>;\r\n\r\n\t/**\r\n\t * Optional id for the `<legend>`; referenced by `fieldsetAriaLabelledby` when set.\r\n\t */\r\n\t@Input() legendId: string;\r\n\r\n\t/**\r\n\t * Optional `aria-labelledby` for the `<fieldset>` when not using `legendId`.\r\n\t */\r\n\t@Input() fieldsetAriaLabelledby: string;\r\n\r\n\t@Input() orientation: \"horizontal\" | \"vertical\" = \"vertical\";\r\n\r\n\t@Input() helperText: string | TemplateRef<any>;\r\n\r\n\t@Input() invalid = false;\r\n\r\n\t@Input() invalidText: string | TemplateRef<any>;\r\n\r\n\t@Input() warn = false;\r\n\r\n\t@Input() warnText: string | TemplateRef<any>;\r\n\r\n\t@Input() readOnly = false;\r\n\r\n\t/**\r\n\t * Optional decorator (e.g. AI label) rendered in the legend.\r\n\t */\r\n\t@Input() decorator: TemplateRef<any>;\r\n\r\n\tconstructor(private changeDetectorRef: ChangeDetectorRef) {}\r\n\r\n\tngOnChanges(changes: SimpleChanges) {\r\n\t\tif (changes[\"readOnly\"] || changes[\"invalid\"] || changes[\"warn\"]) {\r\n\t\t\tthis.notifyCheckboxesHostStateChanged();\r\n\t\t}\r\n\t}\r\n\r\n\tngAfterContentInit() {\r\n\t\tthis.checkboxes.changes.subscribe(() => this.notifyCheckboxesHostStateChanged());\r\n\t}\r\n\r\n\tisTemplate(value: any): boolean {\r\n\t\treturn value instanceof TemplateRef;\r\n\t}\r\n\r\n\tprivate notifyCheckboxesHostStateChanged() {\r\n\t\tPromise.resolve().then(() => {\r\n\t\t\tthis.checkboxes?.forEach((cb) => cb.markForCheckFromGroup());\r\n\t\t\tthis.changeDetectorRef.markForCheck();\r\n\t\t});\r\n\t}\r\n}\r\n",
24076
+ "assetsDirs": [],
24077
+ "styleUrlsData": "",
24078
+ "stylesData": "",
24079
+ "constructorObj": {
24080
+ "name": "constructor",
24081
+ "description": "",
24082
+ "deprecated": false,
24083
+ "deprecationMessage": "",
24084
+ "args": [
24085
+ {
24086
+ "name": "changeDetectorRef",
24087
+ "type": "ChangeDetectorRef",
24088
+ "deprecated": false,
24089
+ "deprecationMessage": ""
24090
+ }
24091
+ ],
24092
+ "line": 130,
24093
+ "jsdoctags": [
24094
+ {
24095
+ "name": "changeDetectorRef",
24096
+ "type": "ChangeDetectorRef",
24097
+ "deprecated": false,
24098
+ "deprecationMessage": "",
24099
+ "tagName": {
24100
+ "text": "param"
24101
+ }
24102
+ }
24103
+ ]
24104
+ },
24105
+ "extends": [],
24106
+ "implements": [
24107
+ "OnChanges",
24108
+ "AfterContentInit"
24109
+ ]
24110
+ },
23630
24111
  {
23631
24112
  "name": "ClickableTile",
23632
24113
  "id": "component-ClickableTile-33c5524f5eb2a36febf1cae9ec1fa07c3bd0dcc4695974e1f1f2e9e24140795a15b1e7ed1220ffd02a24ae38b55601b92b6f5840b4e1b34de7239f80a0a0707f",
@@ -69694,7 +70175,7 @@
69694
70175
  },
69695
70176
  {
69696
70177
  "name": "Toggle",
69697
- "id": "component-Toggle-d995b80181399528e11b176c60b3306776c03e4548c63b010966add22c0027cf072b43d319555b9e055ab0f3252a63888fa3789470590c335e696af90c318fab",
70178
+ "id": "component-Toggle-ee04b9e5ebf39f394bb48005078e8449c7813ac9a7c4207629f81221f8d3fe05823b1b9e84764a21d90a8fb7fe5db055154b149a570d09faad144bef92c2f946",
69698
70179
  "file": "src/toggle/toggle.component.ts",
69699
70180
  "encapsulation": [],
69700
70181
  "entryComponents": [],
@@ -69719,7 +70200,7 @@
69719
70200
  "deprecationMessage": "",
69720
70201
  "rawdescription": "\n\nSet `aria-label` property for the button when label is empty\n",
69721
70202
  "description": "<p>Set <code>aria-label</code> property for the button when label is empty</p>\n",
69722
- "line": 151,
70203
+ "line": 153,
69723
70204
  "type": "string",
69724
70205
  "decorators": [],
69725
70206
  "inheritance": {
@@ -69733,7 +70214,7 @@
69733
70214
  "deprecationMessage": "",
69734
70215
  "rawdescription": "\n\nSet to `true` to hide the toggle label & set toggle on/off text to label.\n",
69735
70216
  "description": "<p>Set to <code>true</code> to hide the toggle label &amp; set toggle on/off text to label.</p>\n",
69736
- "line": 146,
70217
+ "line": 148,
69737
70218
  "type": "boolean",
69738
70219
  "decorators": [],
69739
70220
  "inheritance": {
@@ -69746,7 +70227,7 @@
69746
70227
  "deprecationMessage": "",
69747
70228
  "rawdescription": "\n\nText that is set as the label of the toggle.\n",
69748
70229
  "description": "<p>Text that is set as the label of the toggle.</p>\n",
69749
- "line": 138,
70230
+ "line": 140,
69750
70231
  "type": "string | TemplateRef<any>",
69751
70232
  "decorators": []
69752
70233
  },
@@ -69756,7 +70237,7 @@
69756
70237
  "deprecationMessage": "",
69757
70238
  "rawdescription": "\n\nText that is set on the left side of the toggle.\n",
69758
70239
  "description": "<p>Text that is set on the left side of the toggle.</p>\n",
69759
- "line": 116,
70240
+ "line": 118,
69760
70241
  "type": "string | Observable",
69761
70242
  "decorators": []
69762
70243
  },
@@ -69766,7 +70247,7 @@
69766
70247
  "deprecationMessage": "",
69767
70248
  "rawdescription": "\n\nText that is set on the right side of the toggle.\n",
69768
70249
  "description": "<p>Text that is set on the right side of the toggle.</p>\n",
69769
- "line": 128,
70250
+ "line": 130,
69770
70251
  "type": "string | Observable",
69771
70252
  "decorators": []
69772
70253
  },
@@ -69777,7 +70258,7 @@
69777
70258
  "deprecationMessage": "",
69778
70259
  "rawdescription": "\n\nSize of the toggle component.\n",
69779
70260
  "description": "<p>Size of the toggle component.</p>\n",
69780
- "line": 142,
70261
+ "line": 144,
69781
70262
  "type": "\"sm\" | \"md\"",
69782
70263
  "decorators": []
69783
70264
  },
@@ -69786,7 +70267,7 @@
69786
70267
  "defaultValue": "false",
69787
70268
  "deprecated": false,
69788
70269
  "deprecationMessage": "",
69789
- "line": 153,
70270
+ "line": 155,
69790
70271
  "type": "boolean",
69791
70272
  "decorators": [],
69792
70273
  "inheritance": {
@@ -69797,7 +70278,7 @@
69797
70278
  "name": "ariaLabelledby",
69798
70279
  "deprecated": false,
69799
70280
  "deprecationMessage": "",
69800
- "line": 109,
70281
+ "line": 161,
69801
70282
  "type": "string",
69802
70283
  "decorators": [],
69803
70284
  "inheritance": {
@@ -69810,13 +70291,26 @@
69810
70291
  "deprecationMessage": "",
69811
70292
  "rawdescription": "\n\nSets the `checked` state. `true` for checked, `false` for unchecked\n\nAllows double binding with the `checkedChange` Output.\n",
69812
70293
  "description": "<p>Sets the <code>checked</code> state. <code>true</code> for checked, <code>false</code> for unchecked</p>\n<p>Allows double binding with the <code>checkedChange</code> Output.</p>\n",
69813
- "line": 148,
70294
+ "line": 244,
69814
70295
  "type": "boolean",
69815
70296
  "decorators": [],
69816
70297
  "inheritance": {
69817
70298
  "file": "Checkbox"
69818
70299
  }
69819
70300
  },
70301
+ {
70302
+ "name": "decorator",
70303
+ "deprecated": false,
70304
+ "deprecationMessage": "",
70305
+ "rawdescription": "\n\nOptional `TemplateRef` (e.g. AI label) rendered next to the label text.\n",
70306
+ "description": "<p>Optional <code>TemplateRef</code> (e.g. AI label) rendered next to the label text.</p>\n",
70307
+ "line": 205,
70308
+ "type": "TemplateRef<any>",
70309
+ "decorators": [],
70310
+ "inheritance": {
70311
+ "file": "Checkbox"
70312
+ }
70313
+ },
69820
70314
  {
69821
70315
  "name": "disabled",
69822
70316
  "defaultValue": "false",
@@ -69824,13 +70318,26 @@
69824
70318
  "deprecationMessage": "",
69825
70319
  "rawdescription": "\n\nSet to `true` for a disabled checkbox.\n",
69826
70320
  "description": "<p>Set to <code>true</code> for a disabled checkbox.</p>\n",
69827
- "line": 83,
70321
+ "line": 135,
69828
70322
  "type": "boolean",
69829
70323
  "decorators": [],
69830
70324
  "inheritance": {
69831
70325
  "file": "Checkbox"
69832
70326
  }
69833
70327
  },
70328
+ {
70329
+ "name": "helperText",
70330
+ "deprecated": false,
70331
+ "deprecationMessage": "",
70332
+ "rawdescription": "\n\nOptional helper text displayed below the checkbox label.\nNot shown when `invalid` or `warn` is `true`.\n",
70333
+ "description": "<p>Optional helper text displayed below the checkbox label.\nNot shown when <code>invalid</code> or <code>warn</code> is <code>true</code>.</p>\n",
70334
+ "line": 172,
70335
+ "type": "string | TemplateRef<any>",
70336
+ "decorators": [],
70337
+ "inheritance": {
70338
+ "file": "Checkbox"
70339
+ }
70340
+ },
69834
70341
  {
69835
70342
  "name": "id",
69836
70343
  "defaultValue": "`checkbox-${Checkbox.checkboxCount}`",
@@ -69838,7 +70345,7 @@
69838
70345
  "deprecationMessage": "",
69839
70346
  "rawdescription": "\n\nThe unique id for the checkbox component.\n",
69840
70347
  "description": "<p>The unique id for the checkbox component.</p>\n",
69841
- "line": 99,
70348
+ "line": 151,
69842
70349
  "type": "string",
69843
70350
  "decorators": [],
69844
70351
  "inheritance": {
@@ -69851,51 +70358,130 @@
69851
70358
  "deprecationMessage": "",
69852
70359
  "rawdescription": "\n\nSet the checkbox's indeterminate state to match the parameter and transition the view to reflect the change.\n\nAllows double binding with the `indeterminateChange` Output.\n",
69853
70360
  "description": "<p>Set the checkbox&#39;s indeterminate state to match the parameter and transition the view to reflect the change.</p>\n<p>Allows double binding with the <code>indeterminateChange</code> Output.</p>\n",
69854
- "line": 116,
70361
+ "line": 212,
69855
70362
  "type": "boolean",
69856
70363
  "decorators": [],
69857
70364
  "inheritance": {
69858
70365
  "file": "Checkbox"
69859
70366
  }
69860
70367
  },
70368
+ {
70369
+ "name": "invalid",
70370
+ "deprecated": false,
70371
+ "deprecationMessage": "",
70372
+ "rawdescription": "\n\nSet to `true` to show the checkbox in an invalid/error state.\nWhen omitted inside a `cds-checkbox-group`, the group's `invalid` value applies.\n",
70373
+ "description": "<p>Set to <code>true</code> to show the checkbox in an invalid/error state.\nWhen omitted inside a <code>cds-checkbox-group</code>, the group&#39;s <code>invalid</code> value applies.</p>\n",
70374
+ "line": 178,
70375
+ "type": "boolean",
70376
+ "decorators": [],
70377
+ "inheritance": {
70378
+ "file": "Checkbox"
70379
+ }
70380
+ },
70381
+ {
70382
+ "name": "invalidText",
70383
+ "deprecated": false,
70384
+ "deprecationMessage": "",
70385
+ "rawdescription": "\n\nThe error message displayed when `invalid` is `true`.\n",
70386
+ "description": "<p>The error message displayed when <code>invalid</code> is <code>true</code>.</p>\n",
70387
+ "line": 183,
70388
+ "type": "string | TemplateRef<any>",
70389
+ "decorators": [],
70390
+ "inheritance": {
70391
+ "file": "Checkbox"
70392
+ }
70393
+ },
69861
70394
  {
69862
70395
  "name": "name",
69863
70396
  "deprecated": false,
69864
70397
  "deprecationMessage": "",
69865
70398
  "rawdescription": "\n\nSets the name attribute on the `input` element.\n",
69866
70399
  "description": "<p>Sets the name attribute on the <code>input</code> element.</p>\n",
69867
- "line": 95,
70400
+ "line": 147,
69868
70401
  "type": "string",
69869
70402
  "decorators": [],
69870
70403
  "inheritance": {
69871
70404
  "file": "Checkbox"
69872
70405
  }
69873
70406
  },
70407
+ {
70408
+ "name": "readOnly",
70409
+ "deprecated": false,
70410
+ "deprecationMessage": "",
70411
+ "rawdescription": "\n\nWhen `true`, the checkbox cannot be toggled (matches `readonly` attribute semantics for form controls).\nWhen omitted inside a `cds-checkbox-group`, the group's `readOnly` value applies.\n",
70412
+ "description": "<p>When <code>true</code>, the checkbox cannot be toggled (matches <code>readonly</code> attribute semantics for form controls).\nWhen omitted inside a <code>cds-checkbox-group</code>, the group&#39;s <code>readOnly</code> value applies.</p>\n",
70413
+ "line": 200,
70414
+ "type": "boolean",
70415
+ "decorators": [],
70416
+ "inheritance": {
70417
+ "file": "Checkbox"
70418
+ }
70419
+ },
69874
70420
  {
69875
70421
  "name": "required",
69876
70422
  "deprecated": false,
69877
70423
  "deprecationMessage": "",
69878
70424
  "rawdescription": "\n\nReflects the required attribute of the `input` element.\n",
69879
70425
  "description": "<p>Reflects the required attribute of the <code>input</code> element.</p>\n",
69880
- "line": 103,
70426
+ "line": 155,
69881
70427
  "type": "boolean",
69882
70428
  "decorators": [],
69883
70429
  "inheritance": {
69884
70430
  "file": "Checkbox"
69885
70431
  }
69886
70432
  },
70433
+ {
70434
+ "name": "title",
70435
+ "defaultValue": "\"\"",
70436
+ "deprecated": false,
70437
+ "deprecationMessage": "",
70438
+ "rawdescription": "\n\nOptional title for the `<label>` element.\n",
70439
+ "description": "<p>Optional title for the <code>&lt;label&gt;</code> element.</p>\n",
70440
+ "line": 166,
70441
+ "type": "string",
70442
+ "decorators": [],
70443
+ "inheritance": {
70444
+ "file": "Checkbox"
70445
+ }
70446
+ },
69887
70447
  {
69888
70448
  "name": "value",
69889
70449
  "deprecated": false,
69890
70450
  "deprecationMessage": "",
69891
70451
  "rawdescription": "\n\nSets the value attribute on the `input` element.\n",
69892
70452
  "description": "<p>Sets the value attribute on the <code>input</code> element.</p>\n",
69893
- "line": 107,
70453
+ "line": 159,
69894
70454
  "type": "CheckboxValue",
69895
70455
  "decorators": [],
69896
70456
  "inheritance": {
69897
70457
  "file": "Checkbox"
69898
70458
  }
70459
+ },
70460
+ {
70461
+ "name": "warn",
70462
+ "deprecated": false,
70463
+ "deprecationMessage": "",
70464
+ "rawdescription": "\n\nSet to `true` to show the checkbox in a warning state.\nWhen omitted inside a `cds-checkbox-group`, the group's `warn` value applies.\n",
70465
+ "description": "<p>Set to <code>true</code> to show the checkbox in a warning state.\nWhen omitted inside a <code>cds-checkbox-group</code>, the group&#39;s <code>warn</code> value applies.</p>\n",
70466
+ "line": 189,
70467
+ "type": "boolean",
70468
+ "decorators": [],
70469
+ "inheritance": {
70470
+ "file": "Checkbox"
70471
+ }
70472
+ },
70473
+ {
70474
+ "name": "warnText",
70475
+ "deprecated": false,
70476
+ "deprecationMessage": "",
70477
+ "rawdescription": "\n\nThe warning message displayed when `warn` is `true` and `invalid` is `false`.\n",
70478
+ "description": "<p>The warning message displayed when <code>warn</code> is <code>true</code> and <code>invalid</code> is <code>false</code>.</p>\n",
70479
+ "line": 194,
70480
+ "type": "string | TemplateRef<any>",
70481
+ "decorators": [],
70482
+ "inheritance": {
70483
+ "file": "Checkbox"
70484
+ }
69899
70485
  }
69900
70486
  ],
69901
70487
  "outputsClass": [
@@ -69906,7 +70492,7 @@
69906
70492
  "deprecationMessage": "",
69907
70493
  "rawdescription": "\n\nEmits an event when the value of the checkbox changes.\n\nAllows double biding with the `checked` Input.\n",
69908
70494
  "description": "<p>Emits an event when the value of the checkbox changes.</p>\n<p>Allows double biding with the <code>checked</code> Input.</p>\n",
69909
- "line": 169,
70495
+ "line": 265,
69910
70496
  "type": "EventEmitter",
69911
70497
  "inheritance": {
69912
70498
  "file": "Checkbox"
@@ -69919,7 +70505,7 @@
69919
70505
  "deprecationMessage": "",
69920
70506
  "rawdescription": "\n\nEmits click event.\n",
69921
70507
  "description": "<p>Emits click event.</p>\n",
69922
- "line": 162,
70508
+ "line": 258,
69923
70509
  "type": "EventEmitter",
69924
70510
  "inheritance": {
69925
70511
  "file": "Checkbox"
@@ -69932,7 +70518,7 @@
69932
70518
  "deprecationMessage": "",
69933
70519
  "rawdescription": "\n\nEmits event notifying other classes when a change in state occurs specifically\non an indeterminate checkbox.\n",
69934
70520
  "description": "<p>Emits event notifying other classes when a change in state occurs specifically\non an indeterminate checkbox.</p>\n",
69935
- "line": 175,
70521
+ "line": 271,
69936
70522
  "type": "EventEmitter",
69937
70523
  "inheritance": {
69938
70524
  "file": "Checkbox"
@@ -69948,7 +70534,7 @@
69948
70534
  "type": "",
69949
70535
  "optional": false,
69950
70536
  "description": "<p>The unique id allocated to the <code>Toggle</code>.</p>\n",
69951
- "line": 167,
70537
+ "line": 169,
69952
70538
  "rawdescription": "\n\nThe unique id allocated to the `Toggle`.\n"
69953
70539
  },
69954
70540
  {
@@ -69959,7 +70545,7 @@
69959
70545
  "type": "",
69960
70546
  "optional": false,
69961
70547
  "description": "",
69962
- "line": 155,
70548
+ "line": 157,
69963
70549
  "decorators": [
69964
70550
  {
69965
70551
  "name": "HostBinding",
@@ -69978,7 +70564,7 @@
69978
70564
  "type": "number",
69979
70565
  "optional": false,
69980
70566
  "description": "<p>Variable used for creating unique ids for toggle components.</p>\n",
69981
- "line": 110,
70567
+ "line": 112,
69982
70568
  "rawdescription": "\n\nVariable used for creating unique ids for toggle components.\n",
69983
70569
  "modifierKind": [
69984
70570
  126
@@ -69992,7 +70578,7 @@
69992
70578
  "type": "",
69993
70579
  "optional": false,
69994
70580
  "description": "<p>Set to <code>true</code> if the input checkbox is selected (or checked).</p>\n",
69995
- "line": 180,
70581
+ "line": 276,
69996
70582
  "rawdescription": "\n\nSet to `true` if the input checkbox is selected (or checked).\n",
69997
70583
  "inheritance": {
69998
70584
  "file": "Checkbox"
@@ -70006,7 +70592,7 @@
70006
70592
  "type": "",
70007
70593
  "optional": false,
70008
70594
  "description": "<p>Set to <code>true</code> if the input checkbox is in state indeterminate.</p>\n",
70009
- "line": 184,
70595
+ "line": 280,
70010
70596
  "rawdescription": "\n\nSet to `true` if the input checkbox is in state indeterminate.\n",
70011
70597
  "inheritance": {
70012
70598
  "file": "Checkbox"
@@ -70020,7 +70606,7 @@
70020
70606
  "type": "number",
70021
70607
  "optional": false,
70022
70608
  "description": "<p>Variable used for creating unique ids for checkbox components.</p>\n",
70023
- "line": 78,
70609
+ "line": 128,
70024
70610
  "rawdescription": "\n\nVariable used for creating unique ids for checkbox components.\n",
70025
70611
  "modifierKind": [
70026
70612
  126
@@ -70037,12 +70623,28 @@
70037
70623
  "type": "",
70038
70624
  "optional": false,
70039
70625
  "description": "<p>Keeps a reference to the checkboxes current state, as defined in <code>CheckboxState</code>.</p>\n",
70040
- "line": 189,
70626
+ "line": 285,
70041
70627
  "rawdescription": "\n\nKeeps a reference to the checkboxes current state, as defined in `CheckboxState`.\n",
70042
70628
  "inheritance": {
70043
70629
  "file": "Checkbox"
70044
70630
  }
70045
70631
  },
70632
+ {
70633
+ "name": "helperId",
70634
+ "defaultValue": "`checkbox-helper-${Checkbox.helperIdCounter++}`",
70635
+ "deprecated": false,
70636
+ "deprecationMessage": "",
70637
+ "type": "",
70638
+ "optional": false,
70639
+ "description": "",
70640
+ "line": 292,
70641
+ "modifierKind": [
70642
+ 148
70643
+ ],
70644
+ "inheritance": {
70645
+ "file": "Checkbox"
70646
+ }
70647
+ },
70046
70648
  {
70047
70649
  "name": "inputCheckbox",
70048
70650
  "deprecated": false,
@@ -70050,7 +70652,7 @@
70050
70652
  "type": "ElementRef",
70051
70653
  "optional": false,
70052
70654
  "description": "<p>Maintains a reference to the view DOM element of the <code>Checkbox</code>.</p>\n",
70053
- "line": 194,
70655
+ "line": 290,
70054
70656
  "rawdescription": "\n\nMaintains a reference to the view DOM element of the `Checkbox`.\n",
70055
70657
  "decorators": [
70056
70658
  {
@@ -70073,7 +70675,7 @@
70073
70675
  "type": "function",
70074
70676
  "optional": false,
70075
70677
  "description": "<p>Called when checkbox is blurred. Needed to properly implement <code>ControlValueAccessor</code>.</p>\n",
70076
- "line": 284,
70678
+ "line": 421,
70077
70679
  "rawdescription": "\n\nCalled when checkbox is blurred. Needed to properly implement `ControlValueAccessor`.\n",
70078
70680
  "inheritance": {
70079
70681
  "file": "Checkbox"
@@ -70087,7 +70689,7 @@
70087
70689
  "type": "",
70088
70690
  "optional": false,
70089
70691
  "description": "<p>Method set in <code>registerOnChange</code> to propagate changes back to the form.</p>\n",
70090
- "line": 313,
70692
+ "line": 450,
70091
70693
  "rawdescription": "\n\nMethod set in `registerOnChange` to propagate changes back to the form.\n",
70092
70694
  "inheritance": {
70093
70695
  "file": "Checkbox"
@@ -70101,7 +70703,7 @@
70101
70703
  "optional": false,
70102
70704
  "returnType": "void",
70103
70705
  "typeParameters": [],
70104
- "line": 208,
70706
+ "line": 214,
70105
70707
  "deprecated": false,
70106
70708
  "deprecationMessage": "",
70107
70709
  "rawdescription": "\n\nCreates instance of `ToggleChange` used to propagate the change event.\n",
@@ -70116,7 +70718,7 @@
70116
70718
  "optional": false,
70117
70719
  "returnType": "Observable<string>",
70118
70720
  "typeParameters": [],
70119
- "line": 198,
70721
+ "line": 204,
70120
70722
  "deprecated": false,
70121
70723
  "deprecationMessage": ""
70122
70724
  },
@@ -70126,7 +70728,7 @@
70126
70728
  "optional": false,
70127
70729
  "returnType": "Observable<string>",
70128
70730
  "typeParameters": [],
70129
- "line": 190,
70731
+ "line": 196,
70130
70732
  "deprecated": false,
70131
70733
  "deprecationMessage": ""
70132
70734
  },
@@ -70136,7 +70738,7 @@
70136
70738
  "optional": false,
70137
70739
  "returnType": "Observable<string>",
70138
70740
  "typeParameters": [],
70139
- "line": 194,
70741
+ "line": 200,
70140
70742
  "deprecated": false,
70141
70743
  "deprecationMessage": ""
70142
70744
  },
@@ -70153,7 +70755,7 @@
70153
70755
  "optional": false,
70154
70756
  "returnType": "boolean",
70155
70757
  "typeParameters": [],
70156
- "line": 213,
70758
+ "line": 219,
70157
70759
  "deprecated": false,
70158
70760
  "deprecationMessage": "",
70159
70761
  "modifierKind": [
@@ -70169,7 +70771,10 @@
70169
70771
  "text": "param"
70170
70772
  }
70171
70773
  }
70172
- ]
70774
+ ],
70775
+ "inheritance": {
70776
+ "file": "Checkbox"
70777
+ }
70173
70778
  },
70174
70779
  {
70175
70780
  "name": "setDisabledState",
@@ -70184,7 +70789,7 @@
70184
70789
  "optional": false,
70185
70790
  "returnType": "void",
70186
70791
  "typeParameters": [],
70187
- "line": 186,
70792
+ "line": 192,
70188
70793
  "deprecated": false,
70189
70794
  "deprecationMessage": "",
70190
70795
  "rawdescription": "\n\n`ControlValueAccessor` method to programmatically disable the toggle input.\n\nex: `this.formGroup.get(\"myToggle\").disable();`\n\n",
@@ -70192,8 +70797,8 @@
70192
70797
  "jsdoctags": [
70193
70798
  {
70194
70799
  "name": {
70195
- "pos": 4385,
70196
- "end": 4395,
70800
+ "pos": 4543,
70801
+ "end": 4553,
70197
70802
  "flags": 16842752,
70198
70803
  "modifierFlagsCache": 0,
70199
70804
  "transformFlags": 0,
@@ -70204,8 +70809,8 @@
70204
70809
  "deprecated": false,
70205
70810
  "deprecationMessage": "",
70206
70811
  "tagName": {
70207
- "pos": 4379,
70208
- "end": 4384,
70812
+ "pos": 4537,
70813
+ "end": 4542,
70209
70814
  "flags": 16842752,
70210
70815
  "modifierFlagsCache": 0,
70211
70816
  "transformFlags": 0,
@@ -70225,7 +70830,7 @@
70225
70830
  "optional": false,
70226
70831
  "returnType": "void",
70227
70832
  "typeParameters": [],
70228
- "line": 251,
70833
+ "line": 381,
70229
70834
  "deprecated": false,
70230
70835
  "deprecationMessage": "",
70231
70836
  "decorators": [
@@ -70241,6 +70846,21 @@
70241
70846
  "file": "Checkbox"
70242
70847
  }
70243
70848
  },
70849
+ {
70850
+ "name": "markForCheckFromGroup",
70851
+ "args": [],
70852
+ "optional": false,
70853
+ "returnType": "void",
70854
+ "typeParameters": [],
70855
+ "line": 376,
70856
+ "deprecated": false,
70857
+ "deprecationMessage": "",
70858
+ "rawdescription": "\n\nInvoked by `CheckboxGroup` when group `readOnly`, `invalid`, `warn` change so `OnPush`\ncheckboxes still refresh inherited state from `CHECKBOX_GROUP_HOST`.\n",
70859
+ "description": "<p>Invoked by <code>CheckboxGroup</code> when group <code>readOnly</code>, <code>invalid</code>, <code>warn</code> change so <code>OnPush</code>\ncheckboxes still refresh inherited state from <code>CHECKBOX_GROUP_HOST</code>.</p>\n",
70860
+ "inheritance": {
70861
+ "file": "Checkbox"
70862
+ }
70863
+ },
70244
70864
  {
70245
70865
  "name": "onChange",
70246
70866
  "args": [
@@ -70254,7 +70874,7 @@
70254
70874
  "optional": false,
70255
70875
  "returnType": "void",
70256
70876
  "typeParameters": [],
70257
- "line": 258,
70877
+ "line": 388,
70258
70878
  "deprecated": false,
70259
70879
  "deprecationMessage": "",
70260
70880
  "rawdescription": "\n\nExecutes on the event of a change within `Checkbox` to block propagation.\n",
@@ -70287,7 +70907,7 @@
70287
70907
  "optional": false,
70288
70908
  "returnType": "void",
70289
70909
  "typeParameters": [],
70290
- "line": 265,
70910
+ "line": 395,
70291
70911
  "deprecated": false,
70292
70912
  "deprecationMessage": "",
70293
70913
  "rawdescription": "\n\nHandles click events on the `Checkbox` and emits changes to other classes.\n",
@@ -70320,7 +70940,7 @@
70320
70940
  "optional": false,
70321
70941
  "returnType": "void",
70322
70942
  "typeParameters": [],
70323
- "line": 226,
70943
+ "line": 348,
70324
70944
  "deprecated": false,
70325
70945
  "deprecationMessage": "",
70326
70946
  "rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
@@ -70356,7 +70976,7 @@
70356
70976
  "optional": false,
70357
70977
  "returnType": "void",
70358
70978
  "typeParameters": [],
70359
- "line": 234,
70979
+ "line": 356,
70360
70980
  "deprecated": false,
70361
70981
  "deprecationMessage": "",
70362
70982
  "rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
@@ -70367,8 +70987,8 @@
70367
70987
  "jsdoctags": [
70368
70988
  {
70369
70989
  "name": {
70370
- "pos": 5459,
70371
- "end": 5461,
70990
+ "pos": 9624,
70991
+ "end": 9626,
70372
70992
  "flags": 16842752,
70373
70993
  "modifierFlagsCache": 0,
70374
70994
  "transformFlags": 0,
@@ -70379,8 +70999,8 @@
70379
70999
  "deprecated": false,
70380
71000
  "deprecationMessage": "",
70381
71001
  "tagName": {
70382
- "pos": 5453,
70383
- "end": 5458,
71002
+ "pos": 9618,
71003
+ "end": 9623,
70384
71004
  "flags": 16842752,
70385
71005
  "modifierFlagsCache": 0,
70386
71006
  "transformFlags": 0,
@@ -70400,7 +71020,7 @@
70400
71020
  "optional": false,
70401
71021
  "returnType": "void",
70402
71022
  "typeParameters": [],
70403
- "line": 206,
71023
+ "line": 325,
70404
71024
  "deprecated": false,
70405
71025
  "deprecationMessage": "",
70406
71026
  "rawdescription": "\n\nToggle the selected state of the checkbox.\n",
@@ -70425,7 +71045,7 @@
70425
71045
  "optional": false,
70426
71046
  "returnType": "void",
70427
71047
  "typeParameters": [],
70428
- "line": 289,
71048
+ "line": 426,
70429
71049
  "deprecated": false,
70430
71050
  "deprecationMessage": "",
70431
71051
  "rawdescription": "\n\nHandles changes between checkbox states.\n",
@@ -70458,7 +71078,7 @@
70458
71078
  "optional": false,
70459
71079
  "returnType": "void",
70460
71080
  "typeParameters": [],
70461
- "line": 218,
71081
+ "line": 340,
70462
71082
  "deprecated": false,
70463
71083
  "deprecationMessage": "",
70464
71084
  "rawdescription": "\n\nWrites a value from `ngModel` to the component.\n\nIn this case the value is the `checked` property.\n\n",
@@ -70469,8 +71089,8 @@
70469
71089
  "jsdoctags": [
70470
71090
  {
70471
71091
  "name": {
70472
- "pos": 5051,
70473
- "end": 5056,
71092
+ "pos": 9216,
71093
+ "end": 9221,
70474
71094
  "flags": 16842752,
70475
71095
  "modifierFlagsCache": 0,
70476
71096
  "transformFlags": 0,
@@ -70481,8 +71101,8 @@
70481
71101
  "deprecated": false,
70482
71102
  "deprecationMessage": "",
70483
71103
  "tagName": {
70484
- "pos": 5045,
70485
- "end": 5050,
71104
+ "pos": 9210,
71105
+ "end": 9215,
70486
71106
  "flags": 16842752,
70487
71107
  "modifierFlagsCache": 0,
70488
71108
  "transformFlags": 0,
@@ -70504,7 +71124,7 @@
70504
71124
  "name": "class.cds--form-item",
70505
71125
  "deprecated": false,
70506
71126
  "deprecationMessage": "",
70507
- "line": 160,
71127
+ "line": 162,
70508
71128
  "type": "boolean",
70509
71129
  "decorators": []
70510
71130
  },
@@ -70513,7 +71133,7 @@
70513
71133
  "defaultValue": "true",
70514
71134
  "deprecated": false,
70515
71135
  "deprecationMessage": "",
70516
- "line": 155,
71136
+ "line": 157,
70517
71137
  "type": "boolean",
70518
71138
  "decorators": []
70519
71139
  },
@@ -70521,7 +71141,7 @@
70521
71141
  "name": "class.cds--toggle--disabled",
70522
71142
  "deprecated": false,
70523
71143
  "deprecationMessage": "",
70524
- "line": 156,
71144
+ "line": 158,
70525
71145
  "type": "any",
70526
71146
  "decorators": []
70527
71147
  }
@@ -70533,7 +71153,7 @@
70533
71153
  "argsDecorator": [],
70534
71154
  "deprecated": false,
70535
71155
  "deprecationMessage": "",
70536
- "line": 251,
71156
+ "line": 381,
70537
71157
  "inheritance": {
70538
71158
  "file": "Checkbox"
70539
71159
  }
@@ -70544,7 +71164,7 @@
70544
71164
  "description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { ToggleModule } from &#39;carbon-components-angular&#39;;</code></pre></div><b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\">&lt;cds-toggle [(ngModel)]=&quot;toggleState&quot;&gt;Toggle&lt;/cds-toggle&gt;</code></pre></div><p><a href=\"../../?path=/story/components-toggle--basic\">See demo</a></p>\n",
70545
71165
  "rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { ToggleModule } from 'carbon-components-angular';\n```\n\n```html\n<cds-toggle [(ngModel)]=\"toggleState\">Toggle</cds-toggle>\n```\n\n[See demo](../../?path=/story/components-toggle--basic)\n",
70546
71166
  "type": "component",
70547
- "sourceCode": "import { Checkbox } from \"carbon-components-angular/checkbox\";\nimport {\n\tChangeDetectorRef,\n\tComponent,\n\tInput,\n\tHostBinding,\n\tTemplateRef\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { Observable } from \"rxjs\";\n\n/**\n * @deprecated since v5 - Use boolean\n * Defines the set of states for a toggle component.\n */\nexport enum ToggleState {\n\tInit,\n\tChecked,\n\tUnchecked\n}\n\n/**\n * @todo - Toggle component will no longer extend `Checkbox` component as of v6\n * Toggle is no longer repies on using checkbox, so doesn't make sense for us to continue inheriting ALL checkbox\n * component attributes.\n */\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { ToggleModule } from 'carbon-components-angular';\n * ```\n *\n * ```html\n * <cds-toggle [(ngModel)]=\"toggleState\">Toggle</cds-toggle>\n * ```\n *\n * [See demo](../../?path=/story/components-toggle--basic)\n */\n@Component({\n\tselector: \"cds-toggle, ibm-toggle\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate;\">\n\t\t\t<button\n\t\t\t\tclass=\"cds--toggle__button\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[id]=\"id\"\n\t\t\t\trole=\"switch\"\n\t\t\t\ttype=\"button\"\n\t\t\t\t[attr.aria-checked]=\"checked\"\n\t\t\t\t(click)=\"onClick($event)\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\">\n\t\t\t</button>\n\t\t\t<label\n\t\t\t\tclass=\"cds--toggle__label\"\n\t\t\t\t[for]=\"id\">\n\t\t\t\t<span\n\t\t\t\t\tclass=\"cds--toggle__label-text\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--visually-hidden': hideLabel\n\t\t\t\t\t}\">\n\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t\t\t</span>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"cds--toggle__appearance\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--toggle__appearance--sm': size === 'sm'\n\t\t\t\t\t}\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"cds--toggle__switch\"\n\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t'cds--toggle__switch--checked': checked\n\t\t\t\t\t\t}\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t*ngIf=\"size === 'sm'\"\n\t\t\t\t\t\t\tclass='cds--toggle__check'\n\t\t\t\t\t\t\twidth=\"6px\"\n\t\t\t\t\t\t\theight=\"5px\"\n\t\t\t\t\t\t\tviewBox=\"0 0 6 5\">\n\t\t\t\t\t\t\t<path d=\"M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span class=\"cds--toggle__text\">\n\t\t\t\t\t\t{{(hideLabel ? label : (getCheckedText() | async))}}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</label>\n\t\t</ng-container>\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"cds--toggle__skeleton-circle\"></div>\n\t\t\t<div class=\"cds--toggle__skeleton-rectangle\"></div>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Toggle,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Toggle extends Checkbox {\n\t/**\n\t * Variable used for creating unique ids for toggle components.\n\t */\n\tstatic toggleCount = 0;\n\n\t/**\n\t * Text that is set on the left side of the toggle.\n\t */\n\t@Input()\n\tset offText(value: string | Observable<string>) {\n\t\tthis._offValues.override(value);\n\t}\n\n\tget offText() {\n\t\treturn this._offValues.value;\n\t}\n\n\t/**\n\t * Text that is set on the right side of the toggle.\n\t */\n\t@Input()\n\tset onText(value: string | Observable<string>) {\n\t\tthis._onValues.override(value);\n\t}\n\n\tget onText() {\n\t\treturn this._onValues.value;\n\t}\n\t/**\n\t * Text that is set as the label of the toggle.\n\t */\n\t@Input() label: string | TemplateRef<any>;\n\t/**\n\t * Size of the toggle component.\n\t */\n\t@Input() size: \"sm\" | \"md\" = \"md\";\n\t/**\n\t * Set to `true` to hide the toggle label & set toggle on/off text to label.\n\t */\n\t@Input() hideLabel = false;\n\n\t/**\n\t * Set `aria-label` property for the button when label is empty\n\t */\n\t@Input() ariaLabel: string;\n\n\t@HostBinding(\"class.cds--toggle--skeleton\") @Input() skeleton = false;\n\n\t@HostBinding(\"class.cds--toggle\") toggleClass = true;\n\t@HostBinding(\"class.cds--toggle--disabled\") get disabledClass () {\n\t\treturn this.disabled;\n\t}\n\n\t@HostBinding(\"class.cds--form-item\") get formItem() {\n\t\treturn !this.skeleton;\n\t}\n\n\t/**\n\t * The unique id allocated to the `Toggle`.\n\t */\n\tid = \"toggle-\" + Toggle.toggleCount;\n\n\tprotected _offValues = this.i18n.getOverridable(\"TOGGLE.OFF\");\n\tprotected _onValues = this.i18n.getOverridable(\"TOGGLE.ON\");\n\t/**\n\t * Creates an instance of Toggle.\n\t */\n\tconstructor(protected changeDetectorRef: ChangeDetectorRef, protected i18n: I18n) {\n\t\tsuper(changeDetectorRef);\n\t\tToggle.toggleCount++;\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the toggle input.\n\t *\n\t * ex: `this.formGroup.get(\"myToggle\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the input\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n\n\tgetOffText(): Observable<string> {\n\t\treturn this._offValues.subject;\n\t}\n\n\tgetOnText(): Observable<string> {\n\t\treturn this._onValues.subject;\n\t}\n\n\tgetCheckedText(): Observable<string> {\n\t\tif (this.checked) {\n\t\t\treturn this._onValues.subject;\n\t\t}\n\t\treturn this._offValues.subject;\n\t}\n\n\t/**\n\t * Creates instance of `ToggleChange` used to propagate the change event.\n\t */\n\temitChangeEvent() {\n\t\tthis.checkedChange.emit(this.checked);\n\t\tthis.propagateChange(this.checked);\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n}\n",
71167
+ "sourceCode": "import { Checkbox, CHECKBOX_GROUP_HOST, CheckboxGroupHost } from \"carbon-components-angular/checkbox\";\nimport {\n\tChangeDetectorRef,\n\tComponent,\n\tInject,\n\tInput,\n\tOptional,\n\tHostBinding,\n\tTemplateRef\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { Observable } from \"rxjs\";\n\n/**\n * @deprecated since v5 - Use boolean\n * Defines the set of states for a toggle component.\n */\nexport enum ToggleState {\n\tInit,\n\tChecked,\n\tUnchecked\n}\n\n/**\n * @todo - Toggle component will no longer extend `Checkbox` component as of v6\n * Toggle is no longer repies on using checkbox, so doesn't make sense for us to continue inheriting ALL checkbox\n * component attributes.\n */\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { ToggleModule } from 'carbon-components-angular';\n * ```\n *\n * ```html\n * <cds-toggle [(ngModel)]=\"toggleState\">Toggle</cds-toggle>\n * ```\n *\n * [See demo](../../?path=/story/components-toggle--basic)\n */\n@Component({\n\tselector: \"cds-toggle, ibm-toggle\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate;\">\n\t\t\t<button\n\t\t\t\tclass=\"cds--toggle__button\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[id]=\"id\"\n\t\t\t\trole=\"switch\"\n\t\t\t\ttype=\"button\"\n\t\t\t\t[attr.aria-checked]=\"checked\"\n\t\t\t\t(click)=\"onClick($event)\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\">\n\t\t\t</button>\n\t\t\t<label\n\t\t\t\tclass=\"cds--toggle__label\"\n\t\t\t\t[for]=\"id\">\n\t\t\t\t<span\n\t\t\t\t\tclass=\"cds--toggle__label-text\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--visually-hidden': hideLabel\n\t\t\t\t\t}\">\n\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t\t\t</span>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"cds--toggle__appearance\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--toggle__appearance--sm': size === 'sm'\n\t\t\t\t\t}\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"cds--toggle__switch\"\n\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t'cds--toggle__switch--checked': checked\n\t\t\t\t\t\t}\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t*ngIf=\"size === 'sm'\"\n\t\t\t\t\t\t\tclass='cds--toggle__check'\n\t\t\t\t\t\t\twidth=\"6px\"\n\t\t\t\t\t\t\theight=\"5px\"\n\t\t\t\t\t\t\tviewBox=\"0 0 6 5\">\n\t\t\t\t\t\t\t<path d=\"M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span class=\"cds--toggle__text\">\n\t\t\t\t\t\t{{(hideLabel ? label : (getCheckedText() | async))}}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</label>\n\t\t</ng-container>\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"cds--toggle__skeleton-circle\"></div>\n\t\t\t<div class=\"cds--toggle__skeleton-rectangle\"></div>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Toggle,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Toggle extends Checkbox {\n\t/**\n\t * Variable used for creating unique ids for toggle components.\n\t */\n\tstatic toggleCount = 0;\n\n\t/**\n\t * Text that is set on the left side of the toggle.\n\t */\n\t@Input()\n\tset offText(value: string | Observable<string>) {\n\t\tthis._offValues.override(value);\n\t}\n\n\tget offText() {\n\t\treturn this._offValues.value;\n\t}\n\n\t/**\n\t * Text that is set on the right side of the toggle.\n\t */\n\t@Input()\n\tset onText(value: string | Observable<string>) {\n\t\tthis._onValues.override(value);\n\t}\n\n\tget onText() {\n\t\treturn this._onValues.value;\n\t}\n\t/**\n\t * Text that is set as the label of the toggle.\n\t */\n\t@Input() label: string | TemplateRef<any>;\n\t/**\n\t * Size of the toggle component.\n\t */\n\t@Input() size: \"sm\" | \"md\" = \"md\";\n\t/**\n\t * Set to `true` to hide the toggle label & set toggle on/off text to label.\n\t */\n\t@Input() hideLabel = false;\n\n\t/**\n\t * Set `aria-label` property for the button when label is empty\n\t */\n\t@Input() ariaLabel: string;\n\n\t@HostBinding(\"class.cds--toggle--skeleton\") @Input() skeleton = false;\n\n\t@HostBinding(\"class.cds--toggle\") toggleClass = true;\n\t@HostBinding(\"class.cds--toggle--disabled\") get disabledClass () {\n\t\treturn this.disabled;\n\t}\n\n\t@HostBinding(\"class.cds--form-item\") get formItem() {\n\t\treturn !this.skeleton;\n\t}\n\n\t/**\n\t * The unique id allocated to the `Toggle`.\n\t */\n\tid = \"toggle-\" + Toggle.toggleCount;\n\n\tprotected _offValues = this.i18n.getOverridable(\"TOGGLE.OFF\");\n\tprotected _onValues = this.i18n.getOverridable(\"TOGGLE.ON\");\n\t/**\n\t * Creates an instance of Toggle.\n\t */\n\tconstructor(\n\t\tprotected changeDetectorRef: ChangeDetectorRef,\n\t\t@Optional() @Inject(CHECKBOX_GROUP_HOST) hostGroup: CheckboxGroupHost | null,\n\t\tprotected i18n: I18n\n\t) {\n\t\tsuper(changeDetectorRef, hostGroup);\n\t\tToggle.toggleCount++;\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the toggle input.\n\t *\n\t * ex: `this.formGroup.get(\"myToggle\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the input\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n\n\tgetOffText(): Observable<string> {\n\t\treturn this._offValues.subject;\n\t}\n\n\tgetOnText(): Observable<string> {\n\t\treturn this._onValues.subject;\n\t}\n\n\tgetCheckedText(): Observable<string> {\n\t\tif (this.checked) {\n\t\t\treturn this._onValues.subject;\n\t\t}\n\t\treturn this._offValues.subject;\n\t}\n\n\t/**\n\t * Creates instance of `ToggleChange` used to propagate the change event.\n\t */\n\temitChangeEvent() {\n\t\tthis.checkedChange.emit(this.checked);\n\t\tthis.propagateChange(this.checked);\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n}\n",
70548
71168
  "assetsDirs": [],
70549
71169
  "styleUrlsData": "",
70550
71170
  "stylesData": "",
@@ -70560,6 +71180,12 @@
70560
71180
  "deprecated": false,
70561
71181
  "deprecationMessage": ""
70562
71182
  },
71183
+ {
71184
+ "name": "hostGroup",
71185
+ "type": "CheckboxGroupHost | null",
71186
+ "deprecated": false,
71187
+ "deprecationMessage": ""
71188
+ },
70563
71189
  {
70564
71190
  "name": "i18n",
70565
71191
  "type": "I18n",
@@ -70567,7 +71193,7 @@
70567
71193
  "deprecationMessage": ""
70568
71194
  }
70569
71195
  ],
70570
- "line": 170,
71196
+ "line": 172,
70571
71197
  "rawdescription": "\n\nCreates an instance of Toggle.\n",
70572
71198
  "jsdoctags": [
70573
71199
  {
@@ -70579,6 +71205,15 @@
70579
71205
  "text": "param"
70580
71206
  }
70581
71207
  },
71208
+ {
71209
+ "name": "hostGroup",
71210
+ "type": "CheckboxGroupHost | null",
71211
+ "deprecated": false,
71212
+ "deprecationMessage": "",
71213
+ "tagName": {
71214
+ "text": "param"
71215
+ }
71216
+ },
70582
71217
  {
70583
71218
  "name": "i18n",
70584
71219
  "type": "I18n",
@@ -70610,7 +71245,7 @@
70610
71245
  }
70611
71246
  ],
70612
71247
  "returnType": "void",
70613
- "line": 116,
71248
+ "line": 118,
70614
71249
  "rawdescription": "\n\nText that is set on the left side of the toggle.\n",
70615
71250
  "description": "<p>Text that is set on the left side of the toggle.</p>\n",
70616
71251
  "jsdoctags": [
@@ -70629,7 +71264,7 @@
70629
71264
  "name": "offText",
70630
71265
  "type": "",
70631
71266
  "returnType": "",
70632
- "line": 120
71267
+ "line": 122
70633
71268
  }
70634
71269
  },
70635
71270
  "onText": {
@@ -70648,7 +71283,7 @@
70648
71283
  }
70649
71284
  ],
70650
71285
  "returnType": "void",
70651
- "line": 128,
71286
+ "line": 130,
70652
71287
  "rawdescription": "\n\nText that is set on the right side of the toggle.\n",
70653
71288
  "description": "<p>Text that is set on the right side of the toggle.</p>\n",
70654
71289
  "jsdoctags": [
@@ -70667,7 +71302,7 @@
70667
71302
  "name": "onText",
70668
71303
  "type": "",
70669
71304
  "returnType": "",
70670
- "line": 132
71305
+ "line": 134
70671
71306
  }
70672
71307
  },
70673
71308
  "disabledClass": {
@@ -70676,7 +71311,7 @@
70676
71311
  "name": "disabledClass",
70677
71312
  "type": "",
70678
71313
  "returnType": "",
70679
- "line": 156
71314
+ "line": 158
70680
71315
  }
70681
71316
  },
70682
71317
  "formItem": {
@@ -70685,7 +71320,7 @@
70685
71320
  "name": "formItem",
70686
71321
  "type": "",
70687
71322
  "returnType": "",
70688
- "line": 160
71323
+ "line": 162
70689
71324
  }
70690
71325
  }
70691
71326
  }
@@ -74553,13 +75188,13 @@
74553
75188
  },
74554
75189
  {
74555
75190
  "name": "CheckboxModule",
74556
- "id": "module-CheckboxModule-748ab2aba9dee171c0c84304030b4a80d86a0fb7ad6142b7cabba7be41bbde43ed94698ae610d48db3bd6d3f760f3e0da79738a7fc4e4cc71351ae3aa7f4ad03",
75191
+ "id": "module-CheckboxModule-e61ff822d1dc3c376855b1e06a4b717dbac288581db17c0f5523b732ba77643461dff32c87610a19e35ba1ec6e06df788ef7aa7666720093bd4c49b6278e1012",
74557
75192
  "description": "",
74558
75193
  "deprecationMessage": "",
74559
75194
  "deprecated": false,
74560
75195
  "file": "src/checkbox/checkbox.module.ts",
74561
75196
  "methods": [],
74562
- "sourceCode": "// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\n// imports\nimport { Checkbox } from \"./checkbox.component\";\n\n@NgModule({\n\tdeclarations: [\n\t\tCheckbox\n\t],\n\texports: [\n\t\tCheckbox\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule\n\t]\n})\nexport class CheckboxModule { }\n",
75197
+ "sourceCode": "// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\n// imports\nimport { Checkbox } from \"./checkbox.component\";\nimport { CheckboxGroup } from \"./checkbox-group.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\n\n@NgModule({\n\tdeclarations: [\n\t\tCheckbox,\n\t\tCheckboxGroup\n\t],\n\texports: [\n\t\tCheckbox,\n\t\tCheckboxGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule,\n\t\tIconModule\n\t]\n})\nexport class CheckboxModule { }\n",
74563
75198
  "children": [
74564
75199
  {
74565
75200
  "type": "providers",
@@ -74570,18 +75205,28 @@
74570
75205
  "elements": [
74571
75206
  {
74572
75207
  "name": "Checkbox"
75208
+ },
75209
+ {
75210
+ "name": "CheckboxGroup"
74573
75211
  }
74574
75212
  ]
74575
75213
  },
74576
75214
  {
74577
75215
  "type": "imports",
74578
- "elements": []
75216
+ "elements": [
75217
+ {
75218
+ "name": "IconModule"
75219
+ }
75220
+ ]
74579
75221
  },
74580
75222
  {
74581
75223
  "type": "exports",
74582
75224
  "elements": [
74583
75225
  {
74584
75226
  "name": "Checkbox"
75227
+ },
75228
+ {
75229
+ "name": "CheckboxGroup"
74585
75230
  }
74586
75231
  ]
74587
75232
  },
@@ -79083,6 +79728,16 @@
79083
79728
  "type": "",
79084
79729
  "defaultValue": "fp => {\n\tconst setupElements = () => {\n\t\tif (!fp.monthElements || !fp.yearElements) {\n\t\t\treturn;\n\t\t}\n\t\tfp.monthElements.forEach(elem => {\n\t\t\tif (!elem.parentNode) { return; }\n\t\t\telem.parentNode.removeChild(elem);\n\t\t});\n\t\tfp.monthElements.splice(\n\t\t\t0,\n\t\t\tfp.monthElements.length,\n\t\t\t...fp.monthElements.map(() => {\n\t\t\t\t// eslint-disable-next-line no-underscore-dangle\n\t\t\t\tconst monthElement = fp._createElement(\n\t\t\t\t\t\"span\",\n\t\t\t\t\tconfig.classFlatpickrCurrentMonth\n\t\t\t\t);\n\t\t\t\tmonthElement.textContent = monthToStr(\n\t\t\t\t\tfp.currentMonth,\n\t\t\t\t\tconfig.shorthand === true,\n\t\t\t\t\tfp.l10n\n\t\t\t\t);\n\t\t\t\tfp.yearElements[0]\n\t\t\t\t\t.closest(config.selectorFlatpickrMonthYearContainer)\n\t\t\t\t\t.insertBefore(\n\t\t\t\t\t\tmonthElement,\n\t\t\t\t\t\tfp.yearElements[0].closest(config.selectorFlatpickrYearContainer)\n\t\t\t\t\t);\n\t\t\t\treturn monthElement;\n\t\t\t})\n\t\t);\n\t};\n\tconst updateCurrentMonth = () => {\n\t\tif (!fp.yearElements) {\n\t\t\treturn;\n\t\t}\n\t\tconst monthStr = monthToStr(\n\t\t\tfp.currentMonth,\n\t\t\tconfig.shorthand === true,\n\t\t\tfp.l10n\n\t\t);\n\t\tfp.yearElements.forEach(elem => {\n\t\t\tconst currentMonthContainer = elem.closest(\n\t\t\t\tconfig.selectorFlatpickrMonthYearContainer\n\t\t\t);\n\t\t\tArray.prototype.forEach.call(\n\t\t\t\tcurrentMonthContainer.querySelectorAll(\".cur-month\"),\n\t\t\t\tmonthElement => {\n\t\t\t\t\tmonthElement.textContent = monthStr;\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t};\n\n\tconst register = () => {\n\t\tfp.loadedPlugins.push(\"carbonFlatpickrMonthSelectPlugin\");\n\t};\n\n\treturn {\n\t\tonMonthChange: updateCurrentMonth,\n\t\tonValueUpdate: updateCurrentMonth,\n\t\tonOpen: updateCurrentMonth,\n\t\tonReady: [setupElements, updateCurrentMonth, register]\n\t};\n}"
79085
79730
  },
79731
+ {
79732
+ "name": "CHECKBOX_GROUP_HOST",
79733
+ "ctype": "miscellaneous",
79734
+ "subtype": "variable",
79735
+ "file": "src/checkbox/checkbox-group-host.ts",
79736
+ "deprecated": false,
79737
+ "deprecationMessage": "",
79738
+ "type": "",
79739
+ "defaultValue": "new InjectionToken<CheckboxGroupHost | null>(\"CheckboxGroupHost\")"
79740
+ },
79086
79741
  {
79087
79742
  "name": "ColumnAILabelSort",
79088
79743
  "ctype": "miscellaneous",
@@ -79827,6 +80482,26 @@
79827
80482
  "type": "",
79828
80483
  "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div\n\t\t\tcdsGrid\n\t\t\t[useCssGrid]=\"true\"\n\t\t\t[condensed]=\"condensed\"\n\t\t\t[narrow]=\"narrow\"\n\t\t\t[fullWidth]=\"fullWidth\">\n\t\t\t<div cdsCol [columnNumbers]=\"{\n\t\t\t\tsm: {span: 1, start: 4},\n\t\t\t\tmd: {span: 2, start: 7},\n\t\t\t\tlg: {span: 4, start: 13}\n\t\t\t}\">span, start</div>\n\t\t\t<div cdsCol [columnNumbers]=\"{\n\t\t\t\tsm: {span: 2, end: 5},\n\t\t\t\tmd: {span: 4, end: 9},\n\t\t\t\tlg: {span: 8, end: 17}\n\t\t\t}\">span, end</div>\n\t\t\t<div cdsCol [columnNumbers]=\"{\n\t\t\t\tsm: {start: 1, end: 4},\n\t\t\t\tmd: {start: 3, end: 7},\n\t\t\t\tlg: {start: 5, end: 17}\n\t\t\t}\">start, end</div>\n\t\t</div>\n\t`\n})"
79829
80484
  },
80485
+ {
80486
+ "name": "GroupStatePropagation",
80487
+ "ctype": "miscellaneous",
80488
+ "subtype": "variable",
80489
+ "file": "src/checkbox/checkbox.stories.ts",
80490
+ "deprecated": false,
80491
+ "deprecationMessage": "",
80492
+ "type": "",
80493
+ "defaultValue": "groupStatePropagationTemplate.bind({})"
80494
+ },
80495
+ {
80496
+ "name": "groupStatePropagationTemplate",
80497
+ "ctype": "miscellaneous",
80498
+ "subtype": "variable",
80499
+ "file": "src/checkbox/checkbox.stories.ts",
80500
+ "deprecated": false,
80501
+ "deprecationMessage": "",
80502
+ "type": "",
80503
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"max-width: 32rem;\">\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Controlled group\"\n\t\t\t\t[helperText]=\"groupHelperText\"\n\t\t\t\t[readOnly]=\"groupReadOnly\"\n\t\t\t\t[invalid]=\"groupInvalid\"\n\t\t\t\t[invalidText]=\"groupInvalidText\"\n\t\t\t\t[warn]=\"groupWarn\"\n\t\t\t\t[warnText]=\"groupWarnText\">\n\t\t\t\t<cds-checkbox id=\"group-inherit-1\">Inherits from group</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"group-inherit-2\">Inherits from group</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"group-override-invalid\" [invalid]=\"false\">\n\t\t\t\t\tExplicit invalid false (overrides group invalid)\n\t\t\t\t</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\n\n\t\t\t<p class=\"cds--label-01\" style=\"margin-bottom: 1rem; margin-top: 2rem;\">\n\t\t\t\tCheckbox sets its own invalid message:\n\t\t\t</p>\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Mixed per-checkbox state\"\n\t\t\t\thelperText=\"Group helper (hidden when any checkbox is invalid/warn at group level).\">\n\t\t\t\t<cds-checkbox id=\"mixed-1\">Default</cds-checkbox>\n\t\t\t\t<cds-checkbox\n\t\t\t\t\tid=\"mixed-2\"\n\t\t\t\t\t[invalid]=\"true\"\n\t\t\t\t\tinvalidText=\"This checkbox has its own error\">\n\t\t\t\t\tOwn invalid state\n\t\t\t\t</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\t\t</div>\n\t`\n})"
80504
+ },
79830
80505
  {
79831
80506
  "name": "hasScrollableParents",
79832
80507
  "ctype": "miscellaneous",
@@ -81168,6 +81843,16 @@
81168
81843
  "type": "",
81169
81844
  "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button #trigger cdsButton=\"primary\" (click)=\"open = true\">Open</button>\n\t\t<cds-modal [open]=\"open\" [trigger]=\"trigger\" (overlaySelected)=\"open = false\" (close)=\"open = false\">\n\t\t\t<cds-modal-header (closeSelect)=\"open = false\" [showCloseButton]=\"showCloseButton\">\n\t\t\t\t<p class=\"cds--modal-header__label cds--type-delta\">No service required</p>\n\t\t\t\t<p class=\"cds--modal-header__heading cds--type-beta\">A very simple modal</p>\n\t\t\t</cds-modal-header>\n\t\t\t<div class=\"cds--modal-content\">\n\t\t\t\t<p>hello world</p>\n\t\t\t</div>\n\t\t\t<cds-modal-footer>\n\t\t\t\t<ng-container>\n\t\t\t\t\t<button\n\t\t\t\t\t\tcdsButton=\"primary\"\n\t\t\t\t\t\t(click)=\"open = false\"\n\t\t\t\t\t\t[attr.modal-primary-focus]=\"true\">\n\t\t\t\t\t\tOkay\n\t\t\t\t\t</button>\n\t\t\t\t</ng-container>\n\t\t\t</cds-modal-footer>\n\t\t</cds-modal>\n\t`\n})"
81170
81845
  },
81846
+ {
81847
+ "name": "Single",
81848
+ "ctype": "miscellaneous",
81849
+ "subtype": "variable",
81850
+ "file": "src/checkbox/checkbox.stories.ts",
81851
+ "deprecated": false,
81852
+ "deprecationMessage": "",
81853
+ "type": "",
81854
+ "defaultValue": "singleTemplate.bind({})"
81855
+ },
81171
81856
  {
81172
81857
  "name": "Single",
81173
81858
  "ctype": "miscellaneous",
@@ -81188,6 +81873,16 @@
81188
81873
  "type": "",
81189
81874
  "defaultValue": "Template.bind({})"
81190
81875
  },
81876
+ {
81877
+ "name": "singleTemplate",
81878
+ "ctype": "miscellaneous",
81879
+ "subtype": "variable",
81880
+ "file": "src/checkbox/checkbox.stories.ts",
81881
+ "deprecated": false,
81882
+ "deprecationMessage": "",
81883
+ "type": "",
81884
+ "defaultValue": "() => ({\n\ttemplate: `\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-3\"\n\t\t\thelperText=\"Helper text goes here\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t\t<br /><br />\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-4\"\n\t\t\t[invalid]=\"true\"\n\t\t\tinvalidText=\"Invalid text goes here\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t\t<br /><br />\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-5\"\n\t\t\t[warn]=\"true\"\n\t\t\twarnText=\"Warning text goes here\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t\t<br /><br />\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-6\"\n\t\t\t[readOnly]=\"true\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t`\n})"
81885
+ },
81191
81886
  {
81192
81887
  "name": "SingleTemplate",
81193
81888
  "ctype": "miscellaneous",
@@ -82350,6 +83045,16 @@
82350
83045
  "type": "",
82351
83046
  "defaultValue": "() => ({\n\ttemplate: `\n\t\t<ng-template #action let-item>\n\t\t\t<button\n\t\t\t\tibmButton=\"ghost\"\n\t\t\t\taria-label=\"Action\"\n\t\t\t\ticonOnly=\"true\">\n\t\t\t\t<svg ibmIcon=\"subtract--alt\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t</button>\n\t\t</ng-template>\n\n\t\t<cds-contained-list label=\"List title\" [size]=\"size\">\n\t\t\t<cds-contained-list-item [action]=\"action\">List item</cds-contained-list-item>\n\t\t\t<cds-contained-list-item [action]=\"action\">List item</cds-contained-list-item>\n\t\t\t<cds-contained-list-item [action]=\"action\">List item</cds-contained-list-item>\n\t\t\t<cds-contained-list-item [action]=\"action\">List item</cds-contained-list-item>\n\t\t</cds-contained-list>\n\t`\n})"
82352
83047
  },
83048
+ {
83049
+ "name": "withAILabel",
83050
+ "ctype": "miscellaneous",
83051
+ "subtype": "variable",
83052
+ "file": "src/checkbox/checkbox.stories.ts",
83053
+ "deprecated": false,
83054
+ "deprecationMessage": "",
83055
+ "type": "",
83056
+ "defaultValue": "withAILabelTemplate.bind({})"
83057
+ },
82353
83058
  {
82354
83059
  "name": "withAILabel",
82355
83060
  "ctype": "miscellaneous",
@@ -82490,6 +83195,16 @@
82490
83195
  "type": "",
82491
83196
  "defaultValue": "() => ({\n\tstyles: AI_LABEL_STORY_STYLES,\n\ttemplate: `\n\t\t<cds-tile [decorator]=\"decoratorTpl\">\n\t\t\tTile with AI label\n\t\t</cds-tile>\n\t\t<ng-template #decoratorTpl>\n\t\t\t<cds-ai-label\n\t\t\t\tclass=\"ai-label-container\"\n\t\t\t\tkind=\"default\"\n\t\t\t\tsize=\"mini\"\n\t\t\t\t[autoAlign]=\"true\"\n\t\t\t\t[align]=\"'bottom-end'\"\n\t\t\t\taiText=\"AI\"\n\t\t\t\tariaLabel=\"Show information\">\n\t\t\t\t` + AI_LABEL_INNER + `\n\t\t\t</cds-ai-label>\n\t\t</ng-template>\n\t`\n})"
82492
83197
  },
83198
+ {
83199
+ "name": "withAILabelTemplate",
83200
+ "ctype": "miscellaneous",
83201
+ "subtype": "variable",
83202
+ "file": "src/checkbox/checkbox.stories.ts",
83203
+ "deprecated": false,
83204
+ "deprecationMessage": "",
83205
+ "type": "",
83206
+ "defaultValue": "(args) => ({\n\tprops: args,\n\tstyles: AI_LABEL_STORY_STYLES,\n\ttemplate: `\n\t\t<div class=\"ai-label-check-radio-container\">\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Group Label\"\n\t\t\t\t[decorator]=\"decoratorDefaultTpl\"\n\t\t\t\t[readOnly]=\"readOnly\"\n\t\t\t\t[invalid]=\"invalid\"\n\t\t\t\t[invalidText]=\"invalidText\"\n\t\t\t\t[warn]=\"warn\"\n\t\t\t\t[warnText]=\"warnText\">\n\t\t\t\t<cds-checkbox id=\"checkbox-label-1\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-2\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-3\">Checkbox label</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Group Label\"\n\t\t\t\t[readOnly]=\"readOnly\"\n\t\t\t\t[invalid]=\"invalid\"\n\t\t\t\t[invalidText]=\"invalidText\"\n\t\t\t\t[warn]=\"warn\"\n\t\t\t\t[warnText]=\"warnText\">\n\t\t\t\t<cds-checkbox id=\"checkbox-label-4\" [decorator]=\"decoratorDefaultTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-5\" [decorator]=\"decoratorDefaultTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-6\">Checkbox label</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Group Label\"\n\t\t\t\t[readOnly]=\"readOnly\"\n\t\t\t\t[invalid]=\"invalid\"\n\t\t\t\t[invalidText]=\"invalidText\"\n\t\t\t\t[warn]=\"warn\"\n\t\t\t\t[warnText]=\"warnText\">\n\t\t\t\t<cds-checkbox id=\"checkbox-label-7\" [decorator]=\"decoratorInlineTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-8\" [decorator]=\"decoratorInlineTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-9\">Checkbox label</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\t\t</div>\n\n\t\t<ng-template #decoratorDefaultTpl>\n\t\t\t<cds-ai-label\n\t\t\t\tsize=\"mini\"\n\t\t\t\taiText=\"AI\"\n\t\t\t\t[autoAlign]=\"true\"\n\t\t\t\tariaLabel=\"Show information\">\n\t\t\t\t` + AI_LABEL_INNER + `\n\t\t\t</cds-ai-label>\n\t\t</ng-template>\n\t\t<ng-template #decoratorInlineTpl>\n\t\t\t<cds-ai-label\n\t\t\t\t[autoAlign]=\"true\"\n\t\t\t\tkind=\"inline\"\n\t\t\t\tsize=\"md\"\n\t\t\t\taiText=\"AI\"\n\t\t\t\tariaLabel=\"Show information\">\n\t\t\t\t` + AI_LABEL_INNER + `\n\t\t\t</cds-ai-label>\n\t\t</ng-template>\n\t`\n})"
83207
+ },
82493
83208
  {
82494
83209
  "name": "withAILabelTemplate",
82495
83210
  "ctype": "miscellaneous",
@@ -86170,6 +86885,26 @@
86170
86885
  "type": "",
86171
86886
  "defaultValue": "Template.bind({})"
86172
86887
  },
86888
+ {
86889
+ "name": "GroupStatePropagation",
86890
+ "ctype": "miscellaneous",
86891
+ "subtype": "variable",
86892
+ "file": "src/checkbox/checkbox.stories.ts",
86893
+ "deprecated": false,
86894
+ "deprecationMessage": "",
86895
+ "type": "",
86896
+ "defaultValue": "groupStatePropagationTemplate.bind({})"
86897
+ },
86898
+ {
86899
+ "name": "groupStatePropagationTemplate",
86900
+ "ctype": "miscellaneous",
86901
+ "subtype": "variable",
86902
+ "file": "src/checkbox/checkbox.stories.ts",
86903
+ "deprecated": false,
86904
+ "deprecationMessage": "",
86905
+ "type": "",
86906
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"max-width: 32rem;\">\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Controlled group\"\n\t\t\t\t[helperText]=\"groupHelperText\"\n\t\t\t\t[readOnly]=\"groupReadOnly\"\n\t\t\t\t[invalid]=\"groupInvalid\"\n\t\t\t\t[invalidText]=\"groupInvalidText\"\n\t\t\t\t[warn]=\"groupWarn\"\n\t\t\t\t[warnText]=\"groupWarnText\">\n\t\t\t\t<cds-checkbox id=\"group-inherit-1\">Inherits from group</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"group-inherit-2\">Inherits from group</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"group-override-invalid\" [invalid]=\"false\">\n\t\t\t\t\tExplicit invalid false (overrides group invalid)\n\t\t\t\t</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\n\n\t\t\t<p class=\"cds--label-01\" style=\"margin-bottom: 1rem; margin-top: 2rem;\">\n\t\t\t\tCheckbox sets its own invalid message:\n\t\t\t</p>\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Mixed per-checkbox state\"\n\t\t\t\thelperText=\"Group helper (hidden when any checkbox is invalid/warn at group level).\">\n\t\t\t\t<cds-checkbox id=\"mixed-1\">Default</cds-checkbox>\n\t\t\t\t<cds-checkbox\n\t\t\t\t\tid=\"mixed-2\"\n\t\t\t\t\t[invalid]=\"true\"\n\t\t\t\t\tinvalidText=\"This checkbox has its own error\">\n\t\t\t\t\tOwn invalid state\n\t\t\t\t</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\t\t</div>\n\t`\n})"
86907
+ },
86173
86908
  {
86174
86909
  "name": "ModelTemplate",
86175
86910
  "ctype": "miscellaneous",
@@ -86190,6 +86925,26 @@
86190
86925
  "type": "",
86191
86926
  "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t<!--\n\tapp-* components are for demo purposes only.\n\tYou can create your own implementation by using the component source found at:\n\thttps://github.com/IBM/carbon-components-angular/tree/master/src/checkbox/stories/reactive-form.component.ts\n\t-->\n\t<app-reactive-forms></app-reactive-forms>\n\t`\n})"
86192
86927
  },
86928
+ {
86929
+ "name": "Single",
86930
+ "ctype": "miscellaneous",
86931
+ "subtype": "variable",
86932
+ "file": "src/checkbox/checkbox.stories.ts",
86933
+ "deprecated": false,
86934
+ "deprecationMessage": "",
86935
+ "type": "",
86936
+ "defaultValue": "singleTemplate.bind({})"
86937
+ },
86938
+ {
86939
+ "name": "singleTemplate",
86940
+ "ctype": "miscellaneous",
86941
+ "subtype": "variable",
86942
+ "file": "src/checkbox/checkbox.stories.ts",
86943
+ "deprecated": false,
86944
+ "deprecationMessage": "",
86945
+ "type": "",
86946
+ "defaultValue": "() => ({\n\ttemplate: `\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-3\"\n\t\t\thelperText=\"Helper text goes here\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t\t<br /><br />\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-4\"\n\t\t\t[invalid]=\"true\"\n\t\t\tinvalidText=\"Invalid text goes here\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t\t<br /><br />\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-5\"\n\t\t\t[warn]=\"true\"\n\t\t\twarnText=\"Warning text goes here\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t\t<br /><br />\n\t\t<cds-checkbox\n\t\t\tclass=\"some-class\"\n\t\t\tid=\"checkbox-6\"\n\t\t\t[readOnly]=\"true\">\n\t\t\tCheckbox label\n\t\t</cds-checkbox>\n\t`\n})"
86947
+ },
86193
86948
  {
86194
86949
  "name": "Template",
86195
86950
  "ctype": "miscellaneous",
@@ -86200,6 +86955,26 @@
86200
86955
  "type": "",
86201
86956
  "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<fieldset class=\"cds--fieldset\">\n\t\t\t<legend class=\"cds--label\">{{label}}</legend>\n\t\t\t<cds-checkbox\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[indeterminate]=\"indeterminate\"\n\t\t\t\t[checked]=\"checked\"\n\t\t\t\t(checkedChange)=\"onChange($event)\"\n\t\t\t\t[hideLabel]=\"hideLabel\"\n\t\t\t\t(indeterminateChange)=\"onIndeterminateChange($event)\">\n\t\t\t\tIndeterminate checkbox\n\t\t\t</cds-checkbox>\n\t\t</fieldset>\n\t`\n})"
86202
86957
  },
86958
+ {
86959
+ "name": "withAILabel",
86960
+ "ctype": "miscellaneous",
86961
+ "subtype": "variable",
86962
+ "file": "src/checkbox/checkbox.stories.ts",
86963
+ "deprecated": false,
86964
+ "deprecationMessage": "",
86965
+ "type": "",
86966
+ "defaultValue": "withAILabelTemplate.bind({})"
86967
+ },
86968
+ {
86969
+ "name": "withAILabelTemplate",
86970
+ "ctype": "miscellaneous",
86971
+ "subtype": "variable",
86972
+ "file": "src/checkbox/checkbox.stories.ts",
86973
+ "deprecated": false,
86974
+ "deprecationMessage": "",
86975
+ "type": "",
86976
+ "defaultValue": "(args) => ({\n\tprops: args,\n\tstyles: AI_LABEL_STORY_STYLES,\n\ttemplate: `\n\t\t<div class=\"ai-label-check-radio-container\">\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Group Label\"\n\t\t\t\t[decorator]=\"decoratorDefaultTpl\"\n\t\t\t\t[readOnly]=\"readOnly\"\n\t\t\t\t[invalid]=\"invalid\"\n\t\t\t\t[invalidText]=\"invalidText\"\n\t\t\t\t[warn]=\"warn\"\n\t\t\t\t[warnText]=\"warnText\">\n\t\t\t\t<cds-checkbox id=\"checkbox-label-1\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-2\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-3\">Checkbox label</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Group Label\"\n\t\t\t\t[readOnly]=\"readOnly\"\n\t\t\t\t[invalid]=\"invalid\"\n\t\t\t\t[invalidText]=\"invalidText\"\n\t\t\t\t[warn]=\"warn\"\n\t\t\t\t[warnText]=\"warnText\">\n\t\t\t\t<cds-checkbox id=\"checkbox-label-4\" [decorator]=\"decoratorDefaultTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-5\" [decorator]=\"decoratorDefaultTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-6\">Checkbox label</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\n\t\t\t<cds-checkbox-group\n\t\t\t\tlegend=\"Group Label\"\n\t\t\t\t[readOnly]=\"readOnly\"\n\t\t\t\t[invalid]=\"invalid\"\n\t\t\t\t[invalidText]=\"invalidText\"\n\t\t\t\t[warn]=\"warn\"\n\t\t\t\t[warnText]=\"warnText\">\n\t\t\t\t<cds-checkbox id=\"checkbox-label-7\" [decorator]=\"decoratorInlineTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-8\" [decorator]=\"decoratorInlineTpl\">Checkbox label</cds-checkbox>\n\t\t\t\t<cds-checkbox id=\"checkbox-label-9\">Checkbox label</cds-checkbox>\n\t\t\t</cds-checkbox-group>\n\t\t</div>\n\n\t\t<ng-template #decoratorDefaultTpl>\n\t\t\t<cds-ai-label\n\t\t\t\tsize=\"mini\"\n\t\t\t\taiText=\"AI\"\n\t\t\t\t[autoAlign]=\"true\"\n\t\t\t\tariaLabel=\"Show information\">\n\t\t\t\t` + AI_LABEL_INNER + `\n\t\t\t</cds-ai-label>\n\t\t</ng-template>\n\t\t<ng-template #decoratorInlineTpl>\n\t\t\t<cds-ai-label\n\t\t\t\t[autoAlign]=\"true\"\n\t\t\t\tkind=\"inline\"\n\t\t\t\tsize=\"md\"\n\t\t\t\taiText=\"AI\"\n\t\t\t\tariaLabel=\"Show information\">\n\t\t\t\t` + AI_LABEL_INNER + `\n\t\t\t</cds-ai-label>\n\t\t</ng-template>\n\t`\n})"
86977
+ },
86203
86978
  {
86204
86979
  "name": "WithNgModel",
86205
86980
  "ctype": "miscellaneous",
@@ -89197,6 +89972,18 @@
89197
89972
  "description": "<p>This is from carbon-components.\nWe need it to format the month select according to specs.\nCarbon currently doesn&#39;t expose this as a seperate package,\nand we don&#39;t import the carbon-components js (on purpose)\nso some copy pasta is required</p>\n<p>ref: <a href=\"https://github.com/carbon-design-system/carbon/blob/\">https://github.com/carbon-design-system/carbon/blob/</a>\n f06f38f0c2ef624e409a3d5711e897a79f4c88fc/packages/components/src/components/date-picker/date-picker.js#L52-L123</p>\n"
89198
89973
  }
89199
89974
  ],
89975
+ "src/checkbox/checkbox-group-host.ts": [
89976
+ {
89977
+ "name": "CHECKBOX_GROUP_HOST",
89978
+ "ctype": "miscellaneous",
89979
+ "subtype": "variable",
89980
+ "file": "src/checkbox/checkbox-group-host.ts",
89981
+ "deprecated": false,
89982
+ "deprecationMessage": "",
89983
+ "type": "",
89984
+ "defaultValue": "new InjectionToken<CheckboxGroupHost | null>(\"CheckboxGroupHost\")"
89985
+ }
89986
+ ],
89200
89987
  "src/test.ts": [
89201
89988
  {
89202
89989
  "name": "context",
@@ -92073,13 +92860,41 @@
92073
92860
  "coverageCount": "0/1",
92074
92861
  "status": "low"
92075
92862
  },
92863
+ {
92864
+ "filePath": "src/checkbox/checkbox-group-host.ts",
92865
+ "type": "interface",
92866
+ "linktype": "interface",
92867
+ "name": "CheckboxGroupHost",
92868
+ "coveragePercent": 25,
92869
+ "coverageCount": "1/4",
92870
+ "status": "low"
92871
+ },
92872
+ {
92873
+ "filePath": "src/checkbox/checkbox-group-host.ts",
92874
+ "type": "variable",
92875
+ "linktype": "miscellaneous",
92876
+ "linksubtype": "variable",
92877
+ "name": "CHECKBOX_GROUP_HOST",
92878
+ "coveragePercent": 0,
92879
+ "coverageCount": "0/1",
92880
+ "status": "low"
92881
+ },
92882
+ {
92883
+ "filePath": "src/checkbox/checkbox-group.component.ts",
92884
+ "type": "component",
92885
+ "linktype": "component",
92886
+ "name": "CheckboxGroup",
92887
+ "coveragePercent": 22,
92888
+ "coverageCount": "4/18",
92889
+ "status": "low"
92890
+ },
92076
92891
  {
92077
92892
  "filePath": "src/checkbox/checkbox.component.ts",
92078
92893
  "type": "component",
92079
92894
  "linktype": "component",
92080
92895
  "name": "Checkbox",
92081
92896
  "coveragePercent": 88,
92082
- "coverageCount": "30/34",
92897
+ "coverageCount": "40/45",
92083
92898
  "status": "very-good"
92084
92899
  },
92085
92900
  {
@@ -92092,6 +92907,26 @@
92092
92907
  "coverageCount": "0/1",
92093
92908
  "status": "low"
92094
92909
  },
92910
+ {
92911
+ "filePath": "src/checkbox/checkbox.stories.ts",
92912
+ "type": "variable",
92913
+ "linktype": "miscellaneous",
92914
+ "linksubtype": "variable",
92915
+ "name": "GroupStatePropagation",
92916
+ "coveragePercent": 0,
92917
+ "coverageCount": "0/1",
92918
+ "status": "low"
92919
+ },
92920
+ {
92921
+ "filePath": "src/checkbox/checkbox.stories.ts",
92922
+ "type": "variable",
92923
+ "linktype": "miscellaneous",
92924
+ "linksubtype": "variable",
92925
+ "name": "groupStatePropagationTemplate",
92926
+ "coveragePercent": 0,
92927
+ "coverageCount": "0/1",
92928
+ "status": "low"
92929
+ },
92095
92930
  {
92096
92931
  "filePath": "src/checkbox/checkbox.stories.ts",
92097
92932
  "type": "variable",
@@ -92112,6 +92947,26 @@
92112
92947
  "coverageCount": "0/1",
92113
92948
  "status": "low"
92114
92949
  },
92950
+ {
92951
+ "filePath": "src/checkbox/checkbox.stories.ts",
92952
+ "type": "variable",
92953
+ "linktype": "miscellaneous",
92954
+ "linksubtype": "variable",
92955
+ "name": "Single",
92956
+ "coveragePercent": 0,
92957
+ "coverageCount": "0/1",
92958
+ "status": "low"
92959
+ },
92960
+ {
92961
+ "filePath": "src/checkbox/checkbox.stories.ts",
92962
+ "type": "variable",
92963
+ "linktype": "miscellaneous",
92964
+ "linksubtype": "variable",
92965
+ "name": "singleTemplate",
92966
+ "coveragePercent": 0,
92967
+ "coverageCount": "0/1",
92968
+ "status": "low"
92969
+ },
92115
92970
  {
92116
92971
  "filePath": "src/checkbox/checkbox.stories.ts",
92117
92972
  "type": "variable",
@@ -92122,6 +92977,26 @@
92122
92977
  "coverageCount": "0/1",
92123
92978
  "status": "low"
92124
92979
  },
92980
+ {
92981
+ "filePath": "src/checkbox/checkbox.stories.ts",
92982
+ "type": "variable",
92983
+ "linktype": "miscellaneous",
92984
+ "linksubtype": "variable",
92985
+ "name": "withAILabel",
92986
+ "coveragePercent": 0,
92987
+ "coverageCount": "0/1",
92988
+ "status": "low"
92989
+ },
92990
+ {
92991
+ "filePath": "src/checkbox/checkbox.stories.ts",
92992
+ "type": "variable",
92993
+ "linktype": "miscellaneous",
92994
+ "linksubtype": "variable",
92995
+ "name": "withAILabelTemplate",
92996
+ "coveragePercent": 0,
92997
+ "coverageCount": "0/1",
92998
+ "status": "low"
92999
+ },
92125
93000
  {
92126
93001
  "filePath": "src/checkbox/checkbox.stories.ts",
92127
93002
  "type": "variable",
@@ -98329,9 +99204,9 @@
98329
99204
  "type": "component",
98330
99205
  "linktype": "component",
98331
99206
  "name": "Toggle",
98332
- "coveragePercent": 75,
98333
- "coverageCount": "36/48",
98334
- "status": "good"
99207
+ "coveragePercent": 77,
99208
+ "coverageCount": "45/58",
99209
+ "status": "very-good"
98335
99210
  },
98336
99211
  {
98337
99212
  "filePath": "src/toggle/toggle.stories.ts",