carbon-components-angular 5.53.0 → 5.54.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 (210) hide show
  1. package/docs/documentation/components/Accordion.html +2 -2
  2. package/docs/documentation/components/AccordionItem.html +2 -2
  3. package/docs/documentation/components/ActionableNotification.html +2 -2
  4. package/docs/documentation/components/AlertModal.html +2 -2
  5. package/docs/documentation/components/BaseIconButton.html +2 -2
  6. package/docs/documentation/components/BaseNotification.html +2 -2
  7. package/docs/documentation/components/BaseTabHeader.html +2 -2
  8. package/docs/documentation/components/Breadcrumb.html +2 -2
  9. package/docs/documentation/components/BreadcrumbItemComponent.html +2 -2
  10. package/docs/documentation/components/ButtonSet.html +2 -2
  11. package/docs/documentation/components/Checkbox.html +2 -2
  12. package/docs/documentation/components/ClickableTile.html +2 -2
  13. package/docs/documentation/components/CodeSnippet.html +2 -2
  14. package/docs/documentation/components/ComboBox.html +2 -2
  15. package/docs/documentation/components/ContainedList.html +2 -2
  16. package/docs/documentation/components/ContainedListItem.html +2 -2
  17. package/docs/documentation/components/ContentSwitcher.html +2 -2
  18. package/docs/documentation/components/ContextMenuComponent.html +2 -2
  19. package/docs/documentation/components/ContextMenuDividerComponent.html +2 -2
  20. package/docs/documentation/components/ContextMenuGroupComponent.html +2 -2
  21. package/docs/documentation/components/ContextMenuItemComponent.html +2 -2
  22. package/docs/documentation/components/DatePicker.html +2 -2
  23. package/docs/documentation/components/DatePickerInput.html +2 -2
  24. package/docs/documentation/components/Dialog.html +2 -2
  25. package/docs/documentation/components/Documentation.html +2 -2
  26. package/docs/documentation/components/Dropdown.html +2 -2
  27. package/docs/documentation/components/DropdownList.html +2 -2
  28. package/docs/documentation/components/ExpandableTile.html +2 -2
  29. package/docs/documentation/components/FileComponent.html +2 -2
  30. package/docs/documentation/components/FileUploader.html +2 -2
  31. package/docs/documentation/components/Hamburger.html +2 -2
  32. package/docs/documentation/components/Header.html +2 -2
  33. package/docs/documentation/components/HeaderAction.html +2 -2
  34. package/docs/documentation/components/HeaderGlobal.html +2 -2
  35. package/docs/documentation/components/HeaderItem.html +2 -2
  36. package/docs/documentation/components/HeaderMenu.html +2 -2
  37. package/docs/documentation/components/HeaderNavigation.html +2 -2
  38. package/docs/documentation/components/IconButton.html +2 -2
  39. package/docs/documentation/components/InlineLoading.html +2 -2
  40. package/docs/documentation/components/Label.html +2 -2
  41. package/docs/documentation/components/ListColumn.html +2 -2
  42. package/docs/documentation/components/ListHeader.html +2 -2
  43. package/docs/documentation/components/ListRow.html +2 -2
  44. package/docs/documentation/components/Loading.html +2 -2
  45. package/docs/documentation/components/Modal.html +2 -2
  46. package/docs/documentation/components/ModalFooter.html +2 -2
  47. package/docs/documentation/components/ModalHeader.html +2 -2
  48. package/docs/documentation/components/Notification.html +2 -2
  49. package/docs/documentation/components/NumberComponent.html +2 -2
  50. package/docs/documentation/components/OverflowMenu.html +2 -2
  51. package/docs/documentation/components/OverflowMenuCustomPane.html +2 -2
  52. package/docs/documentation/components/OverflowMenuOption.html +2 -2
  53. package/docs/documentation/components/OverflowMenuPane.html +2 -2
  54. package/docs/documentation/components/Overlay.html +2 -2
  55. package/docs/documentation/components/Pagination.html +2 -2
  56. package/docs/documentation/components/PaginationNav.html +2 -2
  57. package/docs/documentation/components/PaginationNavItem.html +2 -2
  58. package/docs/documentation/components/PaginationOverflow.html +2 -2
  59. package/docs/documentation/components/Panel.html +2 -2
  60. package/docs/documentation/components/PasswordInputLabelComponent.html +2 -2
  61. package/docs/documentation/components/Placeholder.html +2 -2
  62. package/docs/documentation/components/PopoverContent.html +2 -2
  63. package/docs/documentation/components/ProgressBar.html +2 -2
  64. package/docs/documentation/components/ProgressIndicator.html +2 -2
  65. package/docs/documentation/components/Radio.html +2 -2
  66. package/docs/documentation/components/RadioGroup.html +2 -2
  67. package/docs/documentation/components/Search.html +2 -2
  68. package/docs/documentation/components/Select.html +2 -2
  69. package/docs/documentation/components/SelectionTile.html +2 -2
  70. package/docs/documentation/components/SideNav.html +2 -2
  71. package/docs/documentation/components/SideNavItem.html +2 -2
  72. package/docs/documentation/components/SideNavMenu.html +2 -2
  73. package/docs/documentation/components/SkeletonPlaceholder.html +2 -2
  74. package/docs/documentation/components/SkeletonText.html +2 -2
  75. package/docs/documentation/components/Slider.html +2 -2
  76. package/docs/documentation/components/StructuredList.html +2 -2
  77. package/docs/documentation/components/SwitcherList.html +2 -2
  78. package/docs/documentation/components/SwitcherListItem.html +2 -2
  79. package/docs/documentation/components/Tab.html +2 -2
  80. package/docs/documentation/components/TabHeaderGroup.html +2 -2
  81. package/docs/documentation/components/TabHeaders.html +2 -2
  82. package/docs/documentation/components/TabSkeleton.html +2 -2
  83. package/docs/documentation/components/Table.html +2 -2
  84. package/docs/documentation/components/TableBody.html +2 -2
  85. package/docs/documentation/components/TableCheckbox.html +2 -2
  86. package/docs/documentation/components/TableContainer.html +2 -2
  87. package/docs/documentation/components/TableData.html +2 -2
  88. package/docs/documentation/components/TableExpandButton.html +2 -2
  89. package/docs/documentation/components/TableExpandedRow.html +2 -2
  90. package/docs/documentation/components/TableHead.html +2 -2
  91. package/docs/documentation/components/TableHeadCell.html +2 -2
  92. package/docs/documentation/components/TableHeadCheckbox.html +2 -2
  93. package/docs/documentation/components/TableHeadExpand.html +2 -2
  94. package/docs/documentation/components/TableHeader.html +2 -2
  95. package/docs/documentation/components/TableRadio.html +2 -2
  96. package/docs/documentation/components/TableRowComponent.html +2 -2
  97. package/docs/documentation/components/TableToolbar.html +2 -2
  98. package/docs/documentation/components/TableToolbarActions.html +2 -2
  99. package/docs/documentation/components/TableToolbarContent.html +2 -2
  100. package/docs/documentation/components/TableToolbarSearch.html +2 -2
  101. package/docs/documentation/components/Tabs.html +2 -2
  102. package/docs/documentation/components/Tag.html +73 -13
  103. package/docs/documentation/components/TagFilter.html +116 -51
  104. package/docs/documentation/components/TagOperationalComponent.html +920 -0
  105. package/docs/documentation/components/TagSelectableComponent.html +1085 -0
  106. package/docs/documentation/components/TextInputLabelComponent.html +2 -2
  107. package/docs/documentation/components/TextareaLabelComponent.html +2 -2
  108. package/docs/documentation/components/Tile.html +2 -2
  109. package/docs/documentation/components/TileGroup.html +2 -2
  110. package/docs/documentation/components/TimePicker.html +2 -2
  111. package/docs/documentation/components/TimePickerSelect.html +2 -2
  112. package/docs/documentation/components/Toast.html +2 -2
  113. package/docs/documentation/components/Toggle.html +81 -67
  114. package/docs/documentation/components/Toggletip.html +2 -2
  115. package/docs/documentation/components/Tooltip.html +2 -2
  116. package/docs/documentation/components/TooltipDefinition.html +2 -2
  117. package/docs/documentation/components/TreeNodeComponent.html +2 -2
  118. package/docs/documentation/components/TreeViewComponent.html +2 -2
  119. package/docs/documentation/coverage.html +46 -10
  120. package/docs/documentation/directives/TagIconDirective.html +368 -0
  121. package/docs/documentation/graph/dependencies.svg +1750 -1678
  122. package/docs/documentation/js/menu-wc.js +23 -3
  123. package/docs/documentation/js/menu-wc_es5.js +1 -1
  124. package/docs/documentation/js/search/search_index.js +2 -2
  125. package/docs/documentation/miscellaneous/enumerations.html +8 -8
  126. package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
  127. package/docs/documentation/modules/ComboBoxModule.html +4 -4
  128. package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +4 -4
  129. package/docs/documentation/modules/DatePickerInputModule.html +4 -4
  130. package/docs/documentation/modules/DatePickerModule/dependencies.svg +39 -39
  131. package/docs/documentation/modules/DatePickerModule.html +39 -39
  132. package/docs/documentation/modules/FileUploaderModule/dependencies.svg +34 -34
  133. package/docs/documentation/modules/FileUploaderModule.html +34 -34
  134. package/docs/documentation/modules/InlineLoadingModule/dependencies.svg +4 -4
  135. package/docs/documentation/modules/InlineLoadingModule.html +4 -4
  136. package/docs/documentation/modules/LoadingModule/dependencies.svg +4 -4
  137. package/docs/documentation/modules/LoadingModule.html +4 -4
  138. package/docs/documentation/modules/NFormsModule/dependencies.svg +4 -4
  139. package/docs/documentation/modules/NFormsModule.html +4 -4
  140. package/docs/documentation/modules/NumberModule/dependencies.svg +24 -24
  141. package/docs/documentation/modules/NumberModule.html +24 -24
  142. package/docs/documentation/modules/ProgressBarModule/dependencies.svg +4 -4
  143. package/docs/documentation/modules/ProgressBarModule.html +4 -4
  144. package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +4 -4
  145. package/docs/documentation/modules/ProgressIndicatorModule.html +4 -4
  146. package/docs/documentation/modules/RadioModule/dependencies.svg +53 -49
  147. package/docs/documentation/modules/RadioModule.html +53 -49
  148. package/docs/documentation/modules/SearchModule/dependencies.svg +6 -6
  149. package/docs/documentation/modules/SearchModule.html +6 -6
  150. package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
  151. package/docs/documentation/modules/SliderModule.html +4 -4
  152. package/docs/documentation/modules/TabsModule/dependencies.svg +69 -69
  153. package/docs/documentation/modules/TabsModule.html +69 -69
  154. package/docs/documentation/modules/TagModule/dependencies.svg +123 -51
  155. package/docs/documentation/modules/TagModule.html +160 -55
  156. package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
  157. package/docs/documentation/modules/ThemeModule.html +4 -4
  158. package/docs/documentation/modules/TilesModule/dependencies.svg +101 -101
  159. package/docs/documentation/modules/TilesModule.html +101 -101
  160. package/docs/documentation/modules/TimePickerModule/dependencies.svg +4 -4
  161. package/docs/documentation/modules/TimePickerModule.html +4 -4
  162. package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +49 -45
  163. package/docs/documentation/modules/TimePickerSelectModule.html +49 -45
  164. package/docs/documentation/modules/ToggleModule/dependencies.svg +4 -4
  165. package/docs/documentation/modules/ToggleModule.html +4 -4
  166. package/docs/documentation/modules/TreeviewModule/dependencies.svg +4 -4
  167. package/docs/documentation/modules/TreeviewModule.html +4 -4
  168. package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
  169. package/docs/documentation/modules/UIShellModule.html +4 -4
  170. package/docs/documentation/overview.html +1752 -1680
  171. package/docs/documentation.json +948 -89
  172. package/docs/storybook/{1895.0331c090.iframe.bundle.js → 1895.4ffc48da.iframe.bundle.js} +1 -1
  173. package/docs/storybook/contained-list-contained-list-stories.b87addfb.iframe.bundle.js +1 -0
  174. package/docs/storybook/iframe.html +2 -2
  175. package/docs/storybook/index.json +1 -1
  176. package/docs/storybook/main.4ed7d347.iframe.bundle.js +1 -0
  177. package/docs/storybook/{patterns-filtering-multiple-categories-stories.17085244.iframe.bundle.js → patterns-filtering-multiple-categories-stories.c7cc76c2.iframe.bundle.js} +1 -1
  178. package/docs/storybook/project.json +1 -1
  179. package/docs/storybook/{runtime~main.3d777cd5.iframe.bundle.js → runtime~main.5af8858a.iframe.bundle.js} +1 -1
  180. package/docs/storybook/stories.json +1 -1
  181. package/docs/storybook/tag-tag-stories.8b0e9efc.iframe.bundle.js +1 -0
  182. package/docs/storybook/{toggle-toggle-stories.def6c644.iframe.bundle.js → toggle-toggle-stories.7832edbb.iframe.bundle.js} +1 -1
  183. package/esm2020/tag/index.mjs +4 -1
  184. package/esm2020/tag/tag-filter.component.mjs +47 -32
  185. package/esm2020/tag/tag-icon.directive.mjs +19 -0
  186. package/esm2020/tag/tag-operational.component.mjs +62 -0
  187. package/esm2020/tag/tag-selectable.component.mjs +89 -0
  188. package/esm2020/tag/tag.component.mjs +28 -4
  189. package/esm2020/tag/tag.module.mjs +27 -4
  190. package/esm2020/toggle/toggle.component.mjs +9 -4
  191. package/fesm2015/carbon-components-angular-tag.mjs +259 -40
  192. package/fesm2015/carbon-components-angular-tag.mjs.map +1 -1
  193. package/fesm2015/carbon-components-angular-toggle.mjs +8 -3
  194. package/fesm2015/carbon-components-angular-toggle.mjs.map +1 -1
  195. package/fesm2020/carbon-components-angular-tag.mjs +259 -40
  196. package/fesm2020/carbon-components-angular-tag.mjs.map +1 -1
  197. package/fesm2020/carbon-components-angular-toggle.mjs +8 -3
  198. package/fesm2020/carbon-components-angular-toggle.mjs.map +1 -1
  199. package/package.json +1 -1
  200. package/tag/index.d.ts +3 -0
  201. package/tag/tag-filter.component.d.ts +5 -1
  202. package/tag/tag-icon.directive.d.ts +26 -0
  203. package/tag/tag-operational.component.d.ts +35 -0
  204. package/tag/tag-selectable.component.d.ts +42 -0
  205. package/tag/tag.component.d.ts +7 -2
  206. package/tag/tag.module.d.ts +6 -3
  207. package/toggle/toggle.component.d.ts +6 -1
  208. package/docs/storybook/contained-list-contained-list-stories.3c337840.iframe.bundle.js +0 -1
  209. package/docs/storybook/main.a065377d.iframe.bundle.js +0 -1
  210. package/docs/storybook/tag-tag-stories.60e1dec6.iframe.bundle.js +0 -1
@@ -17511,6 +17511,58 @@
17511
17511
  "methodsClass": [],
17512
17512
  "extends": []
17513
17513
  },
17514
+ {
17515
+ "name": "TagIconDirective",
17516
+ "id": "directive-TagIconDirective-9dd312d1ac95dd89098a9bb1fa9378101eda24c999093b11785a6a111cec157212c04a44d712b4fc6b10d0466f646d9b4efaf571d8fd665ce55e774fbfc637ad",
17517
+ "file": "src/tag/tag-icon.directive.ts",
17518
+ "type": "directive",
17519
+ "description": "",
17520
+ "rawdescription": "\n",
17521
+ "sourceCode": "import { Directive, HostBinding } from \"@angular/core\";\n\n@Directive({\n\tselector: \"[cdsTagIcon], [ibmTagIcon]\"\n})\nexport class TagIconDirective {\n\t@HostBinding(\"class.cds--tag__custom-icon\") tagIcon = true;\n}\n",
17522
+ "selector": "[cdsTagIcon], [ibmTagIcon]",
17523
+ "providers": [],
17524
+ "hostDirectives": [],
17525
+ "standalone": false,
17526
+ "inputsClass": [],
17527
+ "outputsClass": [],
17528
+ "deprecated": false,
17529
+ "deprecationMessage": "",
17530
+ "hostBindings": [
17531
+ {
17532
+ "name": "class.cds--tag__custom-icon",
17533
+ "defaultValue": "true",
17534
+ "deprecated": false,
17535
+ "deprecationMessage": "",
17536
+ "line": 7,
17537
+ "type": "boolean",
17538
+ "decorators": []
17539
+ }
17540
+ ],
17541
+ "hostListeners": [],
17542
+ "propertiesClass": [
17543
+ {
17544
+ "name": "tagIcon",
17545
+ "defaultValue": "true",
17546
+ "deprecated": false,
17547
+ "deprecationMessage": "",
17548
+ "type": "",
17549
+ "optional": false,
17550
+ "description": "",
17551
+ "line": 7,
17552
+ "decorators": [
17553
+ {
17554
+ "name": "HostBinding",
17555
+ "stringifiedArguments": "'class.cds--tag__custom-icon'"
17556
+ }
17557
+ ],
17558
+ "modifierKind": [
17559
+ 170
17560
+ ]
17561
+ }
17562
+ ],
17563
+ "methodsClass": [],
17564
+ "extends": []
17565
+ },
17514
17566
  {
17515
17567
  "name": "TextArea",
17516
17568
  "id": "directive-TextArea-8d330b7a2bb57091bffb8b71f610d9f3f98049b5d8dfb70f002d482b00d7509202e1ed207dc3f39eb43e3501ef0eddbe53558b9d3882d3c690ad73e626db938f",
@@ -61399,7 +61451,7 @@
61399
61451
  },
61400
61452
  {
61401
61453
  "name": "Tag",
61402
- "id": "component-Tag-55f1cd7859c977c4d14ecf483d3b9c59bca8fd99161ad6142e3f1023e093c13da427591c7d445837a0d4417ea866a94c686b0aa054051b98832fa609bf9b4f55",
61454
+ "id": "component-Tag-c1aae23a3d592b407693ad02f2748e209315c9e57f5e91ae24409644c1f78ae8d82074448fa0892bc98e27280876ac99d33aa10b6af1e92a7bdf86f17ba39889",
61403
61455
  "file": "src/tag/tag.component.ts",
61404
61456
  "encapsulation": [],
61405
61457
  "entryComponents": [],
@@ -61409,7 +61461,7 @@
61409
61461
  "selector": "cds-tag, ibm-tag",
61410
61462
  "styleUrls": [],
61411
61463
  "styles": [],
61412
- "template": "<ng-content></ng-content>",
61464
+ "template": "<ng-container *ngIf=\"!skeleton\">\n\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t<span class=\"cds--tag__label\">\n\t\t<ng-content></ng-content>\n\t</span>\n</ng-container>\n\t",
61413
61465
  "templateUrl": [],
61414
61466
  "viewProviders": [],
61415
61467
  "hostDirectives": [],
@@ -61419,7 +61471,7 @@
61419
61471
  "defaultValue": "\"\"",
61420
61472
  "deprecated": false,
61421
61473
  "deprecationMessage": "",
61422
- "line": 47,
61474
+ "line": 54,
61423
61475
  "type": "string",
61424
61476
  "decorators": []
61425
61477
  },
@@ -61430,8 +61482,17 @@
61430
61482
  "deprecationMessage": "",
61431
61483
  "rawdescription": "\n\nTag render size\n",
61432
61484
  "description": "<p>Tag render size</p>\n",
61433
- "line": 45,
61434
- "type": "\"sm\" | \"md\"",
61485
+ "line": 52,
61486
+ "type": "\"sm\" | \"md\" | \"lg\"",
61487
+ "decorators": []
61488
+ },
61489
+ {
61490
+ "name": "skeleton",
61491
+ "defaultValue": "false",
61492
+ "deprecated": false,
61493
+ "deprecationMessage": "",
61494
+ "line": 56,
61495
+ "type": "boolean",
61435
61496
  "decorators": []
61436
61497
  },
61437
61498
  {
@@ -61441,7 +61502,7 @@
61441
61502
  "deprecationMessage": "",
61442
61503
  "rawdescription": "\n\nType of the tag determines the styling\n",
61443
61504
  "description": "<p>Type of the tag determines the styling</p>\n",
61444
- "line": 40,
61505
+ "line": 47,
61445
61506
  "type": "TagType",
61446
61507
  "decorators": []
61447
61508
  }
@@ -61456,7 +61517,27 @@
61456
61517
  "name": "attr.class",
61457
61518
  "deprecated": false,
61458
61519
  "deprecationMessage": "",
61459
- "line": 49,
61520
+ "jsdoctags": [
61521
+ {
61522
+ "pos": 1047,
61523
+ "end": 1097,
61524
+ "flags": 16842752,
61525
+ "modifierFlagsCache": 0,
61526
+ "transformFlags": 0,
61527
+ "kind": 334,
61528
+ "tagName": {
61529
+ "pos": 1048,
61530
+ "end": 1052,
61531
+ "flags": 16842752,
61532
+ "modifierFlagsCache": 0,
61533
+ "transformFlags": 0,
61534
+ "kind": 80,
61535
+ "escapedText": "todo"
61536
+ },
61537
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
61538
+ }
61539
+ ],
61540
+ "line": 62,
61460
61541
  "type": "string",
61461
61542
  "decorators": []
61462
61543
  }
@@ -61467,7 +61548,7 @@
61467
61548
  "description": "<p>Component that represents a tag for labelling/categorizing using keywords. Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { TagModule } from &#39;carbon-components-angular&#39;;</code></pre></div><p><a href=\"../../?path=/story/components-tag--basic\">See demo</a></p>\n",
61468
61549
  "rawdescription": "\n\nComponent that represents a tag for labelling/categorizing using keywords. Get started with importing the module:\n\n```typescript\nimport { TagModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-tag--basic)\n",
61469
61550
  "type": "component",
61470
- "sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding\n} from \"@angular/core\";\n\n/**\n * Supported tag types for carbon v10\n */\nexport type TagType = \"red\" |\n\t\"magenta\" |\n\t\"purple\" |\n\t\"blue\" |\n\t\"cyan\" |\n\t\"teal\" |\n\t\"green\" |\n\t\"gray\" |\n\t\"cool-gray\" |\n\t\"warm-gray\" |\n\t\"high-contrast\" |\n\t\"outline\";\n\n/**\n * Component that represents a tag for labelling/categorizing using keywords. Get started with importing the module:\n *\n * ```typescript\n * import { TagModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-tag--basic)\n */\n@Component({\n\tselector: \"cds-tag, ibm-tag\",\n\ttemplate: `<ng-content></ng-content>`\n})\nexport class Tag {\n\t/**\n\t * Type of the tag determines the styling\n\t */\n\t@Input() type: TagType = \"gray\";\n\n\t/**\n\t * Tag render size\n\t */\n\t@Input() size: \"sm\" | \"md\" = \"md\";\n\n\t@Input() class = \"\";\n\n\t@HostBinding(\"attr.class\") get attrClass() {\n\t\treturn `cds--tag cds--tag--${this.type} cds--tag--${this.size} cds--layout--size-${this.size} ${this.class}`;\n\t}\n}\n",
61551
+ "sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding\n} from \"@angular/core\";\n\n/**\n * Supported tag types for carbon v10\n */\nexport type TagType = \"red\" |\n\t\"magenta\" |\n\t\"purple\" |\n\t\"blue\" |\n\t\"cyan\" |\n\t\"teal\" |\n\t\"green\" |\n\t\"gray\" |\n\t\"cool-gray\" |\n\t\"warm-gray\" |\n\t\"high-contrast\" |\n\t\"outline\";\n\n/**\n * Component that represents a tag for labelling/categorizing using keywords. Get started with importing the module:\n *\n * ```typescript\n * import { TagModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-tag--basic)\n */\n@Component({\n\tselector: \"cds-tag, ibm-tag\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton\">\n\t\t\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t\t\t<span class=\"cds--tag__label\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</span>\n\t\t</ng-container>\n\t`\n})\nexport class Tag {\n\t/**\n\t * Type of the tag determines the styling\n\t */\n\t@Input() type: TagType = \"gray\";\n\n\t/**\n\t * Tag render size\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n\t@Input() class = \"\";\n\n\t@Input() skeleton = false;\n\n\t/**\n\t * @todo\n\t * Remove `cds--tag--${this.size}` in v7\n\t */\n\t@HostBinding(\"attr.class\") get attrClass() {\n\t\tconst skeletonClass = this.skeleton ? \"cds--skeleton\" : \"\";\n\t\tconst sizeClass = `cds--tag--${this.size} cds--layout--size-${this.size}`;\n\n\t\treturn `cds--tag cds--tag--${this.type} ${sizeClass} ${skeletonClass} ${this.class}`;\n\t}\n}\n",
61471
61552
  "assetsDirs": [],
61472
61553
  "styleUrlsData": "",
61473
61554
  "stylesData": "",
@@ -61479,14 +61560,36 @@
61479
61560
  "name": "attrClass",
61480
61561
  "type": "",
61481
61562
  "returnType": "",
61482
- "line": 49
61563
+ "line": 62,
61564
+ "rawdescription": "\n\nRemove `cds--tag--${this.size}` in v7\n",
61565
+ "description": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n",
61566
+ "jsdoctags": [
61567
+ {
61568
+ "pos": 1047,
61569
+ "end": 1097,
61570
+ "flags": 16842752,
61571
+ "modifierFlagsCache": 0,
61572
+ "transformFlags": 0,
61573
+ "kind": 334,
61574
+ "tagName": {
61575
+ "pos": 1048,
61576
+ "end": 1052,
61577
+ "flags": 16842752,
61578
+ "modifierFlagsCache": 0,
61579
+ "transformFlags": 0,
61580
+ "kind": 80,
61581
+ "escapedText": "todo"
61582
+ },
61583
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
61584
+ }
61585
+ ]
61483
61586
  }
61484
61587
  }
61485
61588
  }
61486
61589
  },
61487
61590
  {
61488
61591
  "name": "TagFilter",
61489
- "id": "component-TagFilter-2fd52f7c7ac83ecea74676e707ea5de54c612ca1cb3cc457f01445d92a2fab1d347a8e9557eee18bca47267ae7a0aaf0c9f8f7ce4077090620b18d017c60fd57",
61592
+ "id": "component-TagFilter-798d22f3f19d7e6083cd447721b3260a2750650b5df1b41675b4179ac1e10fac49b974783e536111cdec5225f3597bf6de1ffe863b52a3fae3f51748f34528c3",
61490
61593
  "file": "src/tag/tag-filter.component.ts",
61491
61594
  "encapsulation": [],
61492
61595
  "entryComponents": [],
@@ -61496,7 +61599,7 @@
61496
61599
  "selector": "cds-tag-filter, ibm-tag-filter",
61497
61600
  "styleUrls": [],
61498
61601
  "styles": [],
61499
- "template": "<span\n\tclass=\"cds--tag__label\"\n\t[attr.title]=\"title ? title : null\"\n\t(click)=\"onClick($event)\">\n\t<ng-content></ng-content>\n</span>\n<button\n\tclass=\"cds--tag__close-icon\"\n\t(click)=\"onClose($event)\"\n\t[disabled]=\"disabled\"\n\t[title]=\"closeButtonLabel\">\n\t<span class=\"cds--visually-hidden\">{{closeButtonLabel}}</span>\n\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n</button>\n\t",
61602
+ "template": "<ng-container *ngIf=\"!skeleton\">\n\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t<span\n\t\tclass=\"cds--tag__label\"\n\t\t[attr.title]=\"title ? title : null\"\n\t\t(click)=\"onClick($event)\">\n\t\t<ng-content></ng-content>\n\t</span>\n\t<button\n\t\tclass=\"cds--tag__close-icon\"\n\t\t(click)=\"onClose($event)\"\n\t\t[disabled]=\"disabled\"\n\t\t[title]=\"closeButtonLabel\">\n\t\t<span class=\"cds--visually-hidden\">{{closeButtonLabel}}</span>\n\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t</button>\n</ng-container>\n\t",
61500
61603
  "templateUrl": [],
61501
61604
  "viewProviders": [],
61502
61605
  "hostDirectives": [],
@@ -61506,15 +61609,16 @@
61506
61609
  "defaultValue": "\"Clear Filter\"",
61507
61610
  "deprecated": false,
61508
61611
  "deprecationMessage": "",
61509
- "line": 30,
61612
+ "line": 34,
61510
61613
  "type": "string",
61511
61614
  "decorators": []
61512
61615
  },
61513
61616
  {
61514
61617
  "name": "disabled",
61618
+ "defaultValue": "false",
61515
61619
  "deprecated": false,
61516
61620
  "deprecationMessage": "",
61517
- "line": 31,
61621
+ "line": 35,
61518
61622
  "type": "boolean",
61519
61623
  "decorators": []
61520
61624
  },
@@ -61522,7 +61626,7 @@
61522
61626
  "name": "title",
61523
61627
  "deprecated": false,
61524
61628
  "deprecationMessage": "",
61525
- "line": 32,
61629
+ "line": 36,
61526
61630
  "type": "string",
61527
61631
  "decorators": []
61528
61632
  },
@@ -61531,7 +61635,7 @@
61531
61635
  "defaultValue": "\"\"",
61532
61636
  "deprecated": false,
61533
61637
  "deprecationMessage": "",
61534
- "line": 47,
61638
+ "line": 54,
61535
61639
  "type": "string",
61536
61640
  "decorators": [],
61537
61641
  "inheritance": {
@@ -61545,8 +61649,20 @@
61545
61649
  "deprecationMessage": "",
61546
61650
  "rawdescription": "\n\nTag render size\n",
61547
61651
  "description": "<p>Tag render size</p>\n",
61548
- "line": 45,
61549
- "type": "\"sm\" | \"md\"",
61652
+ "line": 52,
61653
+ "type": "\"sm\" | \"md\" | \"lg\"",
61654
+ "decorators": [],
61655
+ "inheritance": {
61656
+ "file": "Tag"
61657
+ }
61658
+ },
61659
+ {
61660
+ "name": "skeleton",
61661
+ "defaultValue": "false",
61662
+ "deprecated": false,
61663
+ "deprecationMessage": "",
61664
+ "line": 56,
61665
+ "type": "boolean",
61550
61666
  "decorators": [],
61551
61667
  "inheritance": {
61552
61668
  "file": "Tag"
@@ -61559,7 +61675,7 @@
61559
61675
  "deprecationMessage": "",
61560
61676
  "rawdescription": "\n\nType of the tag determines the styling\n",
61561
61677
  "description": "<p>Type of the tag determines the styling</p>\n",
61562
- "line": 40,
61678
+ "line": 47,
61563
61679
  "type": "TagType",
61564
61680
  "decorators": [],
61565
61681
  "inheritance": {
@@ -61575,7 +61691,7 @@
61575
61691
  "deprecationMessage": "",
61576
61692
  "rawdescription": "\n\nWe need to stop the immedate propagation of click on the close button\nto prevent undesired effects when used within dialogs.\n\nWe need to emit a click event on close to allow for clicks to be listened\nto on the immediate close button element. `action` distinguishes between clicks on\nthe tag vs. clicks on the close button.\n",
61577
61693
  "description": "<p>We need to stop the immedate propagation of click on the close button\nto prevent undesired effects when used within dialogs.</p>\n<p>We need to emit a click event on close to allow for clicks to be listened\nto on the immediate close button element. <code>action</code> distinguishes between clicks on\nthe tag vs. clicks on the close button.</p>\n",
61578
- "line": 47,
61694
+ "line": 51,
61579
61695
  "type": "EventEmitter"
61580
61696
  },
61581
61697
  {
@@ -61585,7 +61701,7 @@
61585
61701
  "deprecationMessage": "",
61586
61702
  "rawdescription": "\n\nFunction for close/delete the tag\n",
61587
61703
  "description": "<p>Function for close/delete the tag</p>\n",
61588
- "line": 37,
61704
+ "line": 41,
61589
61705
  "type": "EventEmitter"
61590
61706
  }
61591
61707
  ],
@@ -61604,7 +61720,7 @@
61604
61720
  "optional": false,
61605
61721
  "returnType": "void",
61606
61722
  "typeParameters": [],
61607
- "line": 49,
61723
+ "line": 53,
61608
61724
  "deprecated": false,
61609
61725
  "deprecationMessage": "",
61610
61726
  "jsdoctags": [
@@ -61632,7 +61748,7 @@
61632
61748
  "optional": false,
61633
61749
  "returnType": "void",
61634
61750
  "typeParameters": [],
61635
- "line": 56,
61751
+ "line": 60,
61636
61752
  "deprecated": false,
61637
61753
  "deprecationMessage": "",
61638
61754
  "jsdoctags": [
@@ -61655,7 +61771,7 @@
61655
61771
  "name": "attr.aria-label",
61656
61772
  "deprecated": false,
61657
61773
  "deprecationMessage": "",
61658
- "line": 66,
61774
+ "line": 78,
61659
61775
  "type": "any",
61660
61776
  "decorators": []
61661
61777
  },
@@ -61663,7 +61779,27 @@
61663
61779
  "name": "attr.class",
61664
61780
  "deprecated": false,
61665
61781
  "deprecationMessage": "",
61666
- "line": 62,
61782
+ "jsdoctags": [
61783
+ {
61784
+ "pos": 1662,
61785
+ "end": 1712,
61786
+ "flags": 16842752,
61787
+ "modifierFlagsCache": 0,
61788
+ "transformFlags": 0,
61789
+ "kind": 334,
61790
+ "tagName": {
61791
+ "pos": 1663,
61792
+ "end": 1667,
61793
+ "flags": 16842752,
61794
+ "modifierFlagsCache": 0,
61795
+ "transformFlags": 0,
61796
+ "kind": 80,
61797
+ "escapedText": "todo"
61798
+ },
61799
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
61800
+ }
61801
+ ],
61802
+ "line": 70,
61667
61803
  "type": "string",
61668
61804
  "decorators": [],
61669
61805
  "inheritance": {
@@ -61677,7 +61813,7 @@
61677
61813
  "description": "",
61678
61814
  "rawdescription": "\n",
61679
61815
  "type": "component",
61680
- "sourceCode": "import {\n\tComponent,\n\tOutput,\n\tEventEmitter,\n\tHostBinding,\n\tInput\n} from \"@angular/core\";\nimport { Tag } from \"./tag.component\";\n\n@Component({\n\tselector: \"cds-tag-filter, ibm-tag-filter\",\n\ttemplate: `\n\t\t<span\n\t\t\tclass=\"cds--tag__label\"\n\t\t\t[attr.title]=\"title ? title : null\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t<button\n\t\t\tclass=\"cds--tag__close-icon\"\n\t\t\t(click)=\"onClose($event)\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[title]=\"closeButtonLabel\">\n\t\t\t<span class=\"cds--visually-hidden\">{{closeButtonLabel}}</span>\n\t\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t\t</button>\n\t`\n})\nexport class TagFilter extends Tag {\n\t@Input() closeButtonLabel = \"Clear Filter\";\n\t@Input() disabled: boolean;\n\t@Input() title: string;\n\n\t/**\n\t * Function for close/delete the tag\n\t */\n\t@Output() close = new EventEmitter<any>();\n\n\t/**\n\t * We need to stop the immedate propagation of click on the close button\n\t * to prevent undesired effects when used within dialogs.\n\t *\n\t * We need to emit a click event on close to allow for clicks to be listened\n\t * to on the immediate close button element. `action` distinguishes between clicks on\n\t * the tag vs. clicks on the close button.\n\t */\n\t@Output() click = new EventEmitter<{ action: \"click\" | \"close\" }>();\n\n\tonClick(event: any) {\n\t\tevent.stopImmediatePropagation();\n\t\tif (!this.disabled) {\n\t\t\tthis.click.emit({ action: \"click\" });\n\t\t}\n\t}\n\n\tonClose(event: any) {\n\t\tevent.stopImmediatePropagation();\n\t\tthis.click.emit({ action: \"close\" });\n\t\tthis.close.emit();\n\t}\n\n\t@HostBinding(\"attr.class\") get attrClass() {\n\t\treturn `cds--tag cds--tag--filter cds--tag--${this.type} cds--tag--${this.size} cds--layout--size-${this.size} ${this.class}${this.disabled ? \" cds--tag--disabled\" : \"\"}`;\n\t}\n\n\t@HostBinding(\"attr.aria-label\") get attrAriaLabel() {\n\t\treturn `${this.title || \"\"} ${this.closeButtonLabel}`.trim();\n\t}\n}\n",
61816
+ "sourceCode": "import {\n\tComponent,\n\tOutput,\n\tEventEmitter,\n\tHostBinding,\n\tInput,\n\tTemplateRef\n} from \"@angular/core\";\nimport { Tag } from \"./tag.component\";\n\n@Component({\n\tselector: \"cds-tag-filter, ibm-tag-filter\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton\">\n\t\t\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t\t\t<span\n\t\t\t\tclass=\"cds--tag__label\"\n\t\t\t\t[attr.title]=\"title ? title : null\"\n\t\t\t\t(click)=\"onClick($event)\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</span>\n\t\t\t<button\n\t\t\t\tclass=\"cds--tag__close-icon\"\n\t\t\t\t(click)=\"onClose($event)\"\n\t\t\t\t[disabled]=\"disabled\"\n\t\t\t\t[title]=\"closeButtonLabel\">\n\t\t\t\t<span class=\"cds--visually-hidden\">{{closeButtonLabel}}</span>\n\t\t\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t\t\t</button>\n\t\t</ng-container>\n\t`\n})\nexport class TagFilter extends Tag {\n\t@Input() closeButtonLabel = \"Clear Filter\";\n\t@Input() disabled = false;\n\t@Input() title: string;\n\n\t/**\n\t * Function for close/delete the tag\n\t */\n\t@Output() close = new EventEmitter<any>();\n\n\t/**\n\t * We need to stop the immedate propagation of click on the close button\n\t * to prevent undesired effects when used within dialogs.\n\t *\n\t * We need to emit a click event on close to allow for clicks to be listened\n\t * to on the immediate close button element. `action` distinguishes between clicks on\n\t * the tag vs. clicks on the close button.\n\t */\n\t@Output() click = new EventEmitter<{ action: \"click\" | \"close\" }>();\n\n\tonClick(event: any) {\n\t\tevent.stopImmediatePropagation();\n\t\tif (!this.disabled) {\n\t\t\tthis.click.emit({ action: \"click\" });\n\t\t}\n\t}\n\n\tonClose(event: any) {\n\t\tevent.stopImmediatePropagation();\n\t\tthis.click.emit({ action: \"close\" });\n\t\tthis.close.emit();\n\t}\n\n\t/**\n\t * @todo\n\t * Remove `cds--tag--${this.size}` in v7\n\t */\n\t@HostBinding(\"attr.class\") get attrClass() {\n\t\tconst disabledClass = this.disabled ? \"cds--tag--disabled\" : \"\";\n\t\tconst sizeClass = `cds--tag--${this.size} cds--layout--size-${this.size}`;\n\t\tconst skeletonClass = this.skeleton ? \"cds--skeleton\" : \"\";\n\n\t\treturn `cds--tag cds--tag--filter cds--tag--${this.type} ${disabledClass} ${sizeClass} ${skeletonClass} ${this.class}`;\n\t}\n\n\t@HostBinding(\"attr.aria-label\") get attrAriaLabel() {\n\t\treturn `${this.title || \"\"} ${this.closeButtonLabel}`.trim();\n\t}\n}\n",
61681
61817
  "assetsDirs": [],
61682
61818
  "styleUrlsData": "",
61683
61819
  "stylesData": "",
@@ -61691,7 +61827,29 @@
61691
61827
  "name": "attrClass",
61692
61828
  "type": "",
61693
61829
  "returnType": "",
61694
- "line": 62
61830
+ "line": 70,
61831
+ "rawdescription": "\n\nRemove `cds--tag--${this.size}` in v7\n",
61832
+ "description": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n",
61833
+ "jsdoctags": [
61834
+ {
61835
+ "pos": 1662,
61836
+ "end": 1712,
61837
+ "flags": 16842752,
61838
+ "modifierFlagsCache": 0,
61839
+ "transformFlags": 0,
61840
+ "kind": 334,
61841
+ "tagName": {
61842
+ "pos": 1663,
61843
+ "end": 1667,
61844
+ "flags": 16842752,
61845
+ "modifierFlagsCache": 0,
61846
+ "transformFlags": 0,
61847
+ "kind": 80,
61848
+ "escapedText": "todo"
61849
+ },
61850
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
61851
+ }
61852
+ ]
61695
61853
  }
61696
61854
  },
61697
61855
  "attrAriaLabel": {
@@ -61700,7 +61858,541 @@
61700
61858
  "name": "attrAriaLabel",
61701
61859
  "type": "",
61702
61860
  "returnType": "",
61703
- "line": 66
61861
+ "line": 78
61862
+ }
61863
+ }
61864
+ }
61865
+ },
61866
+ {
61867
+ "name": "TagOperationalComponent",
61868
+ "id": "component-TagOperationalComponent-d2b919d83748916a545489466c570a5e13fe7e38e2667165259a99f41a09dc8c5f197d5bdd64e3842c6b5db96ba75dc2f78aec0fac73848d621496af5a51fe02",
61869
+ "file": "src/tag/tag-operational.component.ts",
61870
+ "changeDetection": "ChangeDetectionStrategy.OnPush",
61871
+ "encapsulation": [],
61872
+ "entryComponents": [],
61873
+ "inputs": [],
61874
+ "outputs": [],
61875
+ "providers": [],
61876
+ "selector": "cds-tag-operational, ibm-tag-operational",
61877
+ "styleUrls": [],
61878
+ "styles": [],
61879
+ "template": "<ng-container *ngIf=\"!skeleton\">\n\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t<span class=\"cds--tag__label\">\n\t\t<ng-content></ng-content>\n\t</span>\n</ng-container>\n\t",
61880
+ "templateUrl": [],
61881
+ "viewProviders": [],
61882
+ "hostDirectives": [],
61883
+ "inputsClass": [
61884
+ {
61885
+ "name": "disabled",
61886
+ "defaultValue": "false",
61887
+ "deprecated": false,
61888
+ "deprecationMessage": "",
61889
+ "line": 26,
61890
+ "type": "boolean",
61891
+ "decorators": []
61892
+ },
61893
+ {
61894
+ "name": "class",
61895
+ "defaultValue": "\"\"",
61896
+ "deprecated": false,
61897
+ "deprecationMessage": "",
61898
+ "line": 54,
61899
+ "type": "string",
61900
+ "decorators": [],
61901
+ "inheritance": {
61902
+ "file": "Tag"
61903
+ }
61904
+ },
61905
+ {
61906
+ "name": "size",
61907
+ "defaultValue": "\"md\"",
61908
+ "deprecated": false,
61909
+ "deprecationMessage": "",
61910
+ "rawdescription": "\n\nTag render size\n",
61911
+ "description": "<p>Tag render size</p>\n",
61912
+ "line": 52,
61913
+ "type": "\"sm\" | \"md\" | \"lg\"",
61914
+ "decorators": [],
61915
+ "inheritance": {
61916
+ "file": "Tag"
61917
+ }
61918
+ },
61919
+ {
61920
+ "name": "skeleton",
61921
+ "defaultValue": "false",
61922
+ "deprecated": false,
61923
+ "deprecationMessage": "",
61924
+ "line": 56,
61925
+ "type": "boolean",
61926
+ "decorators": [],
61927
+ "inheritance": {
61928
+ "file": "Tag"
61929
+ }
61930
+ },
61931
+ {
61932
+ "name": "type",
61933
+ "defaultValue": "\"gray\"",
61934
+ "deprecated": false,
61935
+ "deprecationMessage": "",
61936
+ "rawdescription": "\n\nType of the tag determines the styling\n",
61937
+ "description": "<p>Type of the tag determines the styling</p>\n",
61938
+ "line": 47,
61939
+ "type": "TagType",
61940
+ "decorators": [],
61941
+ "inheritance": {
61942
+ "file": "Tag"
61943
+ }
61944
+ }
61945
+ ],
61946
+ "outputsClass": [],
61947
+ "propertiesClass": [
61948
+ {
61949
+ "name": "buttonType",
61950
+ "defaultValue": "\"button\"",
61951
+ "deprecated": false,
61952
+ "deprecationMessage": "",
61953
+ "type": "string",
61954
+ "optional": false,
61955
+ "description": "",
61956
+ "line": 23,
61957
+ "decorators": [
61958
+ {
61959
+ "name": "HostBinding",
61960
+ "stringifiedArguments": "'attr.type'"
61961
+ }
61962
+ ],
61963
+ "modifierKind": [
61964
+ 170
61965
+ ]
61966
+ },
61967
+ {
61968
+ "name": "role",
61969
+ "defaultValue": "\"button\"",
61970
+ "deprecated": false,
61971
+ "deprecationMessage": "",
61972
+ "type": "string",
61973
+ "optional": false,
61974
+ "description": "",
61975
+ "line": 22,
61976
+ "decorators": [
61977
+ {
61978
+ "name": "HostBinding",
61979
+ "stringifiedArguments": "'attr.role'"
61980
+ }
61981
+ ],
61982
+ "modifierKind": [
61983
+ 170
61984
+ ]
61985
+ },
61986
+ {
61987
+ "name": "tabIndex",
61988
+ "defaultValue": "0",
61989
+ "deprecated": false,
61990
+ "deprecationMessage": "",
61991
+ "type": "number",
61992
+ "optional": false,
61993
+ "description": "",
61994
+ "line": 24,
61995
+ "decorators": [
61996
+ {
61997
+ "name": "HostBinding",
61998
+ "stringifiedArguments": "'attr.tabindex'"
61999
+ }
62000
+ ],
62001
+ "modifierKind": [
62002
+ 170
62003
+ ]
62004
+ }
62005
+ ],
62006
+ "methodsClass": [],
62007
+ "deprecated": false,
62008
+ "deprecationMessage": "",
62009
+ "hostBindings": [
62010
+ {
62011
+ "name": "attr.class",
62012
+ "deprecated": false,
62013
+ "deprecationMessage": "",
62014
+ "jsdoctags": [
62015
+ {
62016
+ "pos": 690,
62017
+ "end": 740,
62018
+ "flags": 16842752,
62019
+ "modifierFlagsCache": 0,
62020
+ "transformFlags": 0,
62021
+ "kind": 334,
62022
+ "tagName": {
62023
+ "pos": 691,
62024
+ "end": 695,
62025
+ "flags": 16842752,
62026
+ "modifierFlagsCache": 0,
62027
+ "transformFlags": 0,
62028
+ "kind": 80,
62029
+ "escapedText": "todo"
62030
+ },
62031
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
62032
+ }
62033
+ ],
62034
+ "line": 32,
62035
+ "type": "string",
62036
+ "decorators": [],
62037
+ "inheritance": {
62038
+ "file": "Tag"
62039
+ }
62040
+ },
62041
+ {
62042
+ "name": "attr.role",
62043
+ "defaultValue": "\"button\"",
62044
+ "deprecated": false,
62045
+ "deprecationMessage": "",
62046
+ "line": 22,
62047
+ "type": "string",
62048
+ "decorators": []
62049
+ },
62050
+ {
62051
+ "name": "attr.tabindex",
62052
+ "defaultValue": "0",
62053
+ "deprecated": false,
62054
+ "deprecationMessage": "",
62055
+ "line": 24,
62056
+ "type": "number",
62057
+ "decorators": []
62058
+ },
62059
+ {
62060
+ "name": "attr.type",
62061
+ "defaultValue": "\"button\"",
62062
+ "deprecated": false,
62063
+ "deprecationMessage": "",
62064
+ "line": 23,
62065
+ "type": "string",
62066
+ "decorators": []
62067
+ }
62068
+ ],
62069
+ "hostListeners": [],
62070
+ "standalone": false,
62071
+ "imports": [],
62072
+ "description": "",
62073
+ "rawdescription": "\n",
62074
+ "type": "component",
62075
+ "sourceCode": "import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tHostBinding,\n\tInput\n} from \"@angular/core\";\nimport { Tag } from \"./tag.component\";\n\n@Component({\n\tselector: \"cds-tag-operational, ibm-tag-operational\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton\">\n\t\t\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t\t\t<span class=\"cds--tag__label\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</span>\n\t\t</ng-container>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TagOperationalComponent extends Tag {\n\t@HostBinding(\"attr.role\") role = \"button\";\n\t@HostBinding(\"attr.type\") buttonType = \"button\";\n\t@HostBinding(\"attr.tabindex\") tabIndex = 0;\n\n\t@Input() disabled = false;\n\n\t/**\n\t * @todo\n\t * Remove `cds--tag--${this.size}` in v7\n\t */\n\t@HostBinding(\"attr.class\") get attrClass() {\n\t\tconst disabledClass = this.disabled ? \"cds--tag--disabled\" : \"\";\n\t\tconst sizeClass = `cds--tag--${this.size} cds--layout--size-${this.size}`;\n\t\tconst skeletonClass = this.skeleton ? \"cds--skeleton\" : \"\";\n\n\t\treturn `cds--tag cds--tag--operational cds--tag--${this.type} ${disabledClass} ${sizeClass} ${skeletonClass} ${this.class}`;\n\t}\n}\n",
62076
+ "assetsDirs": [],
62077
+ "styleUrlsData": "",
62078
+ "stylesData": "",
62079
+ "extends": [
62080
+ "Tag"
62081
+ ],
62082
+ "accessors": {
62083
+ "attrClass": {
62084
+ "name": "attrClass",
62085
+ "getSignature": {
62086
+ "name": "attrClass",
62087
+ "type": "",
62088
+ "returnType": "",
62089
+ "line": 32,
62090
+ "rawdescription": "\n\nRemove `cds--tag--${this.size}` in v7\n",
62091
+ "description": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n",
62092
+ "jsdoctags": [
62093
+ {
62094
+ "pos": 690,
62095
+ "end": 740,
62096
+ "flags": 16842752,
62097
+ "modifierFlagsCache": 0,
62098
+ "transformFlags": 0,
62099
+ "kind": 334,
62100
+ "tagName": {
62101
+ "pos": 691,
62102
+ "end": 695,
62103
+ "flags": 16842752,
62104
+ "modifierFlagsCache": 0,
62105
+ "transformFlags": 0,
62106
+ "kind": 80,
62107
+ "escapedText": "todo"
62108
+ },
62109
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
62110
+ }
62111
+ ]
62112
+ }
62113
+ }
62114
+ }
62115
+ },
62116
+ {
62117
+ "name": "TagSelectableComponent",
62118
+ "id": "component-TagSelectableComponent-a65ac3aa63090d3652d72b074395f65256cdd474553539598bb9b655a9656f2fb566bb43b9bffdcf608acf7c5ab167a062977311511e9ecb06f404b8051acf7e",
62119
+ "file": "src/tag/tag-selectable.component.ts",
62120
+ "changeDetection": "ChangeDetectionStrategy.OnPush",
62121
+ "encapsulation": [],
62122
+ "entryComponents": [],
62123
+ "inputs": [],
62124
+ "outputs": [],
62125
+ "providers": [],
62126
+ "selector": "cds-tag-selectable, ibm-tag-selectable",
62127
+ "styleUrls": [],
62128
+ "styles": [],
62129
+ "template": "<ng-container *ngIf=\"!skeleton\">\n\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t<span class=\"cds--tag__label\">\n\t\t<ng-content></ng-content>\n\t</span>\n</ng-container>\n\t",
62130
+ "templateUrl": [],
62131
+ "viewProviders": [],
62132
+ "hostDirectives": [],
62133
+ "inputsClass": [
62134
+ {
62135
+ "name": "class",
62136
+ "defaultValue": "\"\"",
62137
+ "deprecated": false,
62138
+ "deprecationMessage": "",
62139
+ "line": 34,
62140
+ "type": "string",
62141
+ "decorators": []
62142
+ },
62143
+ {
62144
+ "name": "disabled",
62145
+ "defaultValue": "false",
62146
+ "deprecated": false,
62147
+ "deprecationMessage": "",
62148
+ "line": 33,
62149
+ "type": "boolean",
62150
+ "decorators": []
62151
+ },
62152
+ {
62153
+ "name": "selected",
62154
+ "defaultValue": "false",
62155
+ "deprecated": false,
62156
+ "deprecationMessage": "",
62157
+ "line": 35,
62158
+ "type": "boolean",
62159
+ "decorators": []
62160
+ },
62161
+ {
62162
+ "name": "size",
62163
+ "defaultValue": "\"md\"",
62164
+ "deprecated": false,
62165
+ "deprecationMessage": "",
62166
+ "line": 31,
62167
+ "type": "\"sm\" | \"md\" | \"lg\"",
62168
+ "decorators": []
62169
+ },
62170
+ {
62171
+ "name": "skeleton",
62172
+ "defaultValue": "false",
62173
+ "deprecated": false,
62174
+ "deprecationMessage": "",
62175
+ "line": 32,
62176
+ "type": "boolean",
62177
+ "decorators": []
62178
+ }
62179
+ ],
62180
+ "outputsClass": [
62181
+ {
62182
+ "name": "selectedChange",
62183
+ "defaultValue": "new EventEmitter<boolean>()",
62184
+ "deprecated": false,
62185
+ "deprecationMessage": "",
62186
+ "line": 37,
62187
+ "type": "EventEmitter"
62188
+ }
62189
+ ],
62190
+ "propertiesClass": [
62191
+ {
62192
+ "name": "buttonType",
62193
+ "defaultValue": "\"button\"",
62194
+ "deprecated": false,
62195
+ "deprecationMessage": "",
62196
+ "type": "string",
62197
+ "optional": false,
62198
+ "description": "",
62199
+ "line": 25,
62200
+ "decorators": [
62201
+ {
62202
+ "name": "HostBinding",
62203
+ "stringifiedArguments": "'attr.type'"
62204
+ }
62205
+ ],
62206
+ "modifierKind": [
62207
+ 170
62208
+ ]
62209
+ },
62210
+ {
62211
+ "name": "role",
62212
+ "defaultValue": "\"button\"",
62213
+ "deprecated": false,
62214
+ "deprecationMessage": "",
62215
+ "type": "string",
62216
+ "optional": false,
62217
+ "description": "",
62218
+ "line": 24,
62219
+ "decorators": [
62220
+ {
62221
+ "name": "HostBinding",
62222
+ "stringifiedArguments": "'attr.role'"
62223
+ }
62224
+ ],
62225
+ "modifierKind": [
62226
+ 170
62227
+ ]
62228
+ },
62229
+ {
62230
+ "name": "tabIndex",
62231
+ "defaultValue": "0",
62232
+ "deprecated": false,
62233
+ "deprecationMessage": "",
62234
+ "type": "number",
62235
+ "optional": false,
62236
+ "description": "",
62237
+ "line": 26,
62238
+ "decorators": [
62239
+ {
62240
+ "name": "HostBinding",
62241
+ "stringifiedArguments": "'attr.tabindex'"
62242
+ }
62243
+ ],
62244
+ "modifierKind": [
62245
+ 170
62246
+ ]
62247
+ }
62248
+ ],
62249
+ "methodsClass": [
62250
+ {
62251
+ "name": "onClick",
62252
+ "args": [],
62253
+ "optional": false,
62254
+ "returnType": "void",
62255
+ "typeParameters": [],
62256
+ "line": 40,
62257
+ "deprecated": false,
62258
+ "deprecationMessage": "",
62259
+ "decorators": [
62260
+ {
62261
+ "name": "HostListener",
62262
+ "stringifiedArguments": "'click'"
62263
+ }
62264
+ ],
62265
+ "modifierKind": [
62266
+ 170
62267
+ ]
62268
+ }
62269
+ ],
62270
+ "deprecated": false,
62271
+ "deprecationMessage": "",
62272
+ "hostBindings": [
62273
+ {
62274
+ "name": "attr.aria-pressed",
62275
+ "deprecated": false,
62276
+ "deprecationMessage": "",
62277
+ "line": 27,
62278
+ "type": "boolean",
62279
+ "decorators": []
62280
+ },
62281
+ {
62282
+ "name": "attr.class",
62283
+ "deprecated": false,
62284
+ "deprecationMessage": "",
62285
+ "jsdoctags": [
62286
+ {
62287
+ "pos": 1054,
62288
+ "end": 1104,
62289
+ "flags": 16842752,
62290
+ "modifierFlagsCache": 0,
62291
+ "transformFlags": 0,
62292
+ "kind": 334,
62293
+ "tagName": {
62294
+ "pos": 1055,
62295
+ "end": 1059,
62296
+ "flags": 16842752,
62297
+ "modifierFlagsCache": 0,
62298
+ "transformFlags": 0,
62299
+ "kind": 80,
62300
+ "escapedText": "todo"
62301
+ },
62302
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
62303
+ }
62304
+ ],
62305
+ "line": 49,
62306
+ "type": "string",
62307
+ "decorators": []
62308
+ },
62309
+ {
62310
+ "name": "attr.role",
62311
+ "defaultValue": "\"button\"",
62312
+ "deprecated": false,
62313
+ "deprecationMessage": "",
62314
+ "line": 24,
62315
+ "type": "string",
62316
+ "decorators": []
62317
+ },
62318
+ {
62319
+ "name": "attr.tabindex",
62320
+ "defaultValue": "0",
62321
+ "deprecated": false,
62322
+ "deprecationMessage": "",
62323
+ "line": 26,
62324
+ "type": "number",
62325
+ "decorators": []
62326
+ },
62327
+ {
62328
+ "name": "attr.type",
62329
+ "defaultValue": "\"button\"",
62330
+ "deprecated": false,
62331
+ "deprecationMessage": "",
62332
+ "line": 25,
62333
+ "type": "string",
62334
+ "decorators": []
62335
+ }
62336
+ ],
62337
+ "hostListeners": [
62338
+ {
62339
+ "name": "click",
62340
+ "args": [],
62341
+ "argsDecorator": [],
62342
+ "deprecated": false,
62343
+ "deprecationMessage": "",
62344
+ "line": 40
62345
+ }
62346
+ ],
62347
+ "standalone": false,
62348
+ "imports": [],
62349
+ "description": "",
62350
+ "rawdescription": "\n",
62351
+ "type": "component",
62352
+ "sourceCode": "import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tEventEmitter,\n\tHostBinding,\n\tHostListener,\n\tInput,\n\tOutput\n} from \"@angular/core\";\n\n@Component({\n\tselector: \"cds-tag-selectable, ibm-tag-selectable\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton\">\n\t\t\t<ng-content select=\"[cdsTagIcon],[ibmTagIcon]\"></ng-content>\n\t\t\t<span class=\"cds--tag__label\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</span>\n\t\t</ng-container>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TagSelectableComponent {\n\t@HostBinding(\"attr.role\") role = \"button\";\n\t@HostBinding(\"attr.type\") buttonType = \"button\";\n\t@HostBinding(\"attr.tabindex\") tabIndex = 0;\n\t@HostBinding(\"attr.aria-pressed\") get ariaPressed() {\n\t\treturn this.selected;\n\t}\n\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\t@Input() skeleton = false;\n\t@Input() disabled = false;\n\t@Input() class = \"\";\n\t@Input() selected = false;\n\n\t@Output() selectedChange = new EventEmitter<boolean>();\n\n\t@HostListener(\"click\")\n\tonClick() {\n\t\tthis.selected = !this.selected;\n\t\tthis.selectedChange.emit(this.selected);\n\t}\n\n\t/**\n\t * @todo\n\t * Remove `cds--tag--${this.size}` in v7\n\t */\n\t@HostBinding(\"attr.class\") get attrClass() {\n\t\tconst disabledClass = this.disabled ? \"cds--tag--disabled\" : \"\";\n\t\tconst sizeClass = `cds--tag--${this.size} cds--layout--size-${this.size}`;\n\t\tconst skeletonClass = this.skeleton ? \"cds--skeleton\" : \"\";\n\t\tconst selectedClass = this.selected ? \"cds--tag--selectable-selected\" : \"\";\n\n\t\treturn `cds--tag cds--tag--selectable ${selectedClass} ${disabledClass} ${sizeClass} ${skeletonClass} ${this.class}`;\n\t}\n}\n",
62353
+ "assetsDirs": [],
62354
+ "styleUrlsData": "",
62355
+ "stylesData": "",
62356
+ "extends": [],
62357
+ "accessors": {
62358
+ "ariaPressed": {
62359
+ "name": "ariaPressed",
62360
+ "getSignature": {
62361
+ "name": "ariaPressed",
62362
+ "type": "",
62363
+ "returnType": "",
62364
+ "line": 27
62365
+ }
62366
+ },
62367
+ "attrClass": {
62368
+ "name": "attrClass",
62369
+ "getSignature": {
62370
+ "name": "attrClass",
62371
+ "type": "",
62372
+ "returnType": "",
62373
+ "line": 49,
62374
+ "rawdescription": "\n\nRemove `cds--tag--${this.size}` in v7\n",
62375
+ "description": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n",
62376
+ "jsdoctags": [
62377
+ {
62378
+ "pos": 1054,
62379
+ "end": 1104,
62380
+ "flags": 16842752,
62381
+ "modifierFlagsCache": 0,
62382
+ "transformFlags": 0,
62383
+ "kind": 334,
62384
+ "tagName": {
62385
+ "pos": 1055,
62386
+ "end": 1059,
62387
+ "flags": 16842752,
62388
+ "modifierFlagsCache": 0,
62389
+ "transformFlags": 0,
62390
+ "kind": 80,
62391
+ "escapedText": "todo"
62392
+ },
62393
+ "comment": "<p>Remove <code>cds--tag--${this.size}</code> in v7</p>\n"
62394
+ }
62395
+ ]
61704
62396
  }
61705
62397
  }
61706
62398
  }
@@ -64570,7 +65262,7 @@
64570
65262
  },
64571
65263
  {
64572
65264
  "name": "Toggle",
64573
- "id": "component-Toggle-630556cb1912c46e615e8220bc9e3bda9fe05619dd4477bf6b06fcba589ef78f8bf4ba33458b21bbaddff3ca38e60dab6272159be15b648e4cb45cbf7bc47686",
65265
+ "id": "component-Toggle-d995b80181399528e11b176c60b3306776c03e4548c63b010966add22c0027cf072b43d319555b9e055ab0f3252a63888fa3789470590c335e696af90c318fab",
64574
65266
  "file": "src/toggle/toggle.component.ts",
64575
65267
  "encapsulation": [],
64576
65268
  "entryComponents": [],
@@ -64584,11 +65276,24 @@
64584
65276
  "selector": "cds-toggle, ibm-toggle",
64585
65277
  "styleUrls": [],
64586
65278
  "styles": [],
64587
- "template": "<ng-container *ngIf=\"!skeleton; else skeletonTemplate;\">\n\t<button\n\t\tclass=\"cds--toggle__button\"\n\t\t[disabled]=\"disabled\"\n\t\t[id]=\"id\"\n\t\trole=\"switch\"\n\t\ttype=\"button\"\n\t\t[attr.aria-checked]=\"checked\"\n\t\t(click)=\"onClick($event)\">\n\t</button>\n\t<label\n\t\tclass=\"cds--toggle__label\"\n\t\t[for]=\"id\">\n\t\t<span\n\t\t\tclass=\"cds--toggle__label-text\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--visually-hidden': hideLabel\n\t\t\t}\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t</span>\n\t\t<div\n\t\t\tclass=\"cds--toggle__appearance\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--toggle__appearance--sm': size === 'sm'\n\t\t\t}\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--toggle__switch\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--toggle__switch--checked': checked\n\t\t\t\t}\">\n\t\t\t\t<svg\n\t\t\t\t\t*ngIf=\"size === 'sm'\"\n\t\t\t\t\tclass='cds--toggle__check'\n\t\t\t\t\twidth=\"6px\"\n\t\t\t\t\theight=\"5px\"\n\t\t\t\t\tviewBox=\"0 0 6 5\">\n\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</svg>\n\t\t\t</div>\n\t\t\t<span class=\"cds--toggle__text\">\n\t\t\t\t{{(hideLabel ? label : (getCheckedText() | async))}}\n\t\t\t</span>\n\t\t</div>\n\t</label>\n</ng-container>\n<ng-template #skeletonTemplate>\n\t<div class=\"cds--toggle__skeleton-circle\"></div>\n\t<div class=\"cds--toggle__skeleton-rectangle\"></div>\n</ng-template>\n\t",
65279
+ "template": "<ng-container *ngIf=\"!skeleton; else skeletonTemplate;\">\n\t<button\n\t\tclass=\"cds--toggle__button\"\n\t\t[disabled]=\"disabled\"\n\t\t[id]=\"id\"\n\t\trole=\"switch\"\n\t\ttype=\"button\"\n\t\t[attr.aria-checked]=\"checked\"\n\t\t(click)=\"onClick($event)\"\n\t\t[attr.aria-label]=\"ariaLabel\">\n\t</button>\n\t<label\n\t\tclass=\"cds--toggle__label\"\n\t\t[for]=\"id\">\n\t\t<span\n\t\t\tclass=\"cds--toggle__label-text\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--visually-hidden': hideLabel\n\t\t\t}\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t</span>\n\t\t<div\n\t\t\tclass=\"cds--toggle__appearance\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--toggle__appearance--sm': size === 'sm'\n\t\t\t}\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--toggle__switch\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--toggle__switch--checked': checked\n\t\t\t\t}\">\n\t\t\t\t<svg\n\t\t\t\t\t*ngIf=\"size === 'sm'\"\n\t\t\t\t\tclass='cds--toggle__check'\n\t\t\t\t\twidth=\"6px\"\n\t\t\t\t\theight=\"5px\"\n\t\t\t\t\tviewBox=\"0 0 6 5\">\n\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</svg>\n\t\t\t</div>\n\t\t\t<span class=\"cds--toggle__text\">\n\t\t\t\t{{(hideLabel ? label : (getCheckedText() | async))}}\n\t\t\t</span>\n\t\t</div>\n\t</label>\n</ng-container>\n<ng-template #skeletonTemplate>\n\t<div class=\"cds--toggle__skeleton-circle\"></div>\n\t<div class=\"cds--toggle__skeleton-rectangle\"></div>\n</ng-template>\n\t",
64588
65280
  "templateUrl": [],
64589
65281
  "viewProviders": [],
64590
65282
  "hostDirectives": [],
64591
65283
  "inputsClass": [
65284
+ {
65285
+ "name": "ariaLabel",
65286
+ "deprecated": false,
65287
+ "deprecationMessage": "",
65288
+ "rawdescription": "\n\nSet `aria-label` property for the button when label is empty\n",
65289
+ "description": "<p>Set <code>aria-label</code> property for the button when label is empty</p>\n",
65290
+ "line": 151,
65291
+ "type": "string",
65292
+ "decorators": [],
65293
+ "inheritance": {
65294
+ "file": "Checkbox"
65295
+ }
65296
+ },
64592
65297
  {
64593
65298
  "name": "hideLabel",
64594
65299
  "defaultValue": "false",
@@ -64596,7 +65301,7 @@
64596
65301
  "deprecationMessage": "",
64597
65302
  "rawdescription": "\n\nSet to `true` to hide the toggle label & set toggle on/off text to label.\n",
64598
65303
  "description": "<p>Set to <code>true</code> to hide the toggle label &amp; set toggle on/off text to label.</p>\n",
64599
- "line": 144,
65304
+ "line": 146,
64600
65305
  "type": "boolean",
64601
65306
  "decorators": [],
64602
65307
  "inheritance": {
@@ -64609,7 +65314,7 @@
64609
65314
  "deprecationMessage": "",
64610
65315
  "rawdescription": "\n\nText that is set as the label of the toggle.\n",
64611
65316
  "description": "<p>Text that is set as the label of the toggle.</p>\n",
64612
- "line": 136,
65317
+ "line": 138,
64613
65318
  "type": "string | TemplateRef<any>",
64614
65319
  "decorators": []
64615
65320
  },
@@ -64619,7 +65324,7 @@
64619
65324
  "deprecationMessage": "",
64620
65325
  "rawdescription": "\n\nText that is set on the left side of the toggle.\n",
64621
65326
  "description": "<p>Text that is set on the left side of the toggle.</p>\n",
64622
- "line": 114,
65327
+ "line": 116,
64623
65328
  "type": "string | Observable",
64624
65329
  "decorators": []
64625
65330
  },
@@ -64629,7 +65334,7 @@
64629
65334
  "deprecationMessage": "",
64630
65335
  "rawdescription": "\n\nText that is set on the right side of the toggle.\n",
64631
65336
  "description": "<p>Text that is set on the right side of the toggle.</p>\n",
64632
- "line": 126,
65337
+ "line": 128,
64633
65338
  "type": "string | Observable",
64634
65339
  "decorators": []
64635
65340
  },
@@ -64640,7 +65345,7 @@
64640
65345
  "deprecationMessage": "",
64641
65346
  "rawdescription": "\n\nSize of the toggle component.\n",
64642
65347
  "description": "<p>Size of the toggle component.</p>\n",
64643
- "line": 140,
65348
+ "line": 142,
64644
65349
  "type": "\"sm\" | \"md\"",
64645
65350
  "decorators": []
64646
65351
  },
@@ -64649,24 +65354,13 @@
64649
65354
  "defaultValue": "false",
64650
65355
  "deprecated": false,
64651
65356
  "deprecationMessage": "",
64652
- "line": 146,
65357
+ "line": 153,
64653
65358
  "type": "boolean",
64654
65359
  "decorators": [],
64655
65360
  "inheritance": {
64656
65361
  "file": "Checkbox"
64657
65362
  }
64658
65363
  },
64659
- {
64660
- "name": "ariaLabel",
64661
- "deprecated": false,
64662
- "deprecationMessage": "",
64663
- "line": 108,
64664
- "type": "string",
64665
- "decorators": [],
64666
- "inheritance": {
64667
- "file": "Checkbox"
64668
- }
64669
- },
64670
65364
  {
64671
65365
  "name": "ariaLabelledby",
64672
65366
  "deprecated": false,
@@ -64822,7 +65516,7 @@
64822
65516
  "type": "",
64823
65517
  "optional": false,
64824
65518
  "description": "<p>The unique id allocated to the <code>Toggle</code>.</p>\n",
64825
- "line": 160,
65519
+ "line": 167,
64826
65520
  "rawdescription": "\n\nThe unique id allocated to the `Toggle`.\n"
64827
65521
  },
64828
65522
  {
@@ -64833,7 +65527,7 @@
64833
65527
  "type": "",
64834
65528
  "optional": false,
64835
65529
  "description": "",
64836
- "line": 148,
65530
+ "line": 155,
64837
65531
  "decorators": [
64838
65532
  {
64839
65533
  "name": "HostBinding",
@@ -64852,7 +65546,7 @@
64852
65546
  "type": "number",
64853
65547
  "optional": false,
64854
65548
  "description": "<p>Variable used for creating unique ids for toggle components.</p>\n",
64855
- "line": 108,
65549
+ "line": 110,
64856
65550
  "rawdescription": "\n\nVariable used for creating unique ids for toggle components.\n",
64857
65551
  "modifierKind": [
64858
65552
  126
@@ -64975,7 +65669,7 @@
64975
65669
  "optional": false,
64976
65670
  "returnType": "void",
64977
65671
  "typeParameters": [],
64978
- "line": 201,
65672
+ "line": 208,
64979
65673
  "deprecated": false,
64980
65674
  "deprecationMessage": "",
64981
65675
  "rawdescription": "\n\nCreates instance of `ToggleChange` used to propagate the change event.\n",
@@ -64990,7 +65684,7 @@
64990
65684
  "optional": false,
64991
65685
  "returnType": "Observable<string>",
64992
65686
  "typeParameters": [],
64993
- "line": 191,
65687
+ "line": 198,
64994
65688
  "deprecated": false,
64995
65689
  "deprecationMessage": ""
64996
65690
  },
@@ -65000,7 +65694,7 @@
65000
65694
  "optional": false,
65001
65695
  "returnType": "Observable<string>",
65002
65696
  "typeParameters": [],
65003
- "line": 183,
65697
+ "line": 190,
65004
65698
  "deprecated": false,
65005
65699
  "deprecationMessage": ""
65006
65700
  },
@@ -65010,7 +65704,7 @@
65010
65704
  "optional": false,
65011
65705
  "returnType": "Observable<string>",
65012
65706
  "typeParameters": [],
65013
- "line": 187,
65707
+ "line": 194,
65014
65708
  "deprecated": false,
65015
65709
  "deprecationMessage": ""
65016
65710
  },
@@ -65027,7 +65721,7 @@
65027
65721
  "optional": false,
65028
65722
  "returnType": "boolean",
65029
65723
  "typeParameters": [],
65030
- "line": 206,
65724
+ "line": 213,
65031
65725
  "deprecated": false,
65032
65726
  "deprecationMessage": "",
65033
65727
  "modifierKind": [
@@ -65058,7 +65752,7 @@
65058
65752
  "optional": false,
65059
65753
  "returnType": "void",
65060
65754
  "typeParameters": [],
65061
- "line": 179,
65755
+ "line": 186,
65062
65756
  "deprecated": false,
65063
65757
  "deprecationMessage": "",
65064
65758
  "rawdescription": "\n\n`ControlValueAccessor` method to programmatically disable the toggle input.\n\nex: `this.formGroup.get(\"myToggle\").disable();`\n\n",
@@ -65066,8 +65760,8 @@
65066
65760
  "jsdoctags": [
65067
65761
  {
65068
65762
  "name": {
65069
- "pos": 4208,
65070
- "end": 4218,
65763
+ "pos": 4385,
65764
+ "end": 4395,
65071
65765
  "flags": 16842752,
65072
65766
  "modifierFlagsCache": 0,
65073
65767
  "transformFlags": 0,
@@ -65078,8 +65772,8 @@
65078
65772
  "deprecated": false,
65079
65773
  "deprecationMessage": "",
65080
65774
  "tagName": {
65081
- "pos": 4202,
65082
- "end": 4207,
65775
+ "pos": 4379,
65776
+ "end": 4384,
65083
65777
  "flags": 16842752,
65084
65778
  "modifierFlagsCache": 0,
65085
65779
  "transformFlags": 0,
@@ -65378,7 +66072,7 @@
65378
66072
  "name": "class.cds--form-item",
65379
66073
  "deprecated": false,
65380
66074
  "deprecationMessage": "",
65381
- "line": 153,
66075
+ "line": 160,
65382
66076
  "type": "boolean",
65383
66077
  "decorators": []
65384
66078
  },
@@ -65387,7 +66081,7 @@
65387
66081
  "defaultValue": "true",
65388
66082
  "deprecated": false,
65389
66083
  "deprecationMessage": "",
65390
- "line": 148,
66084
+ "line": 155,
65391
66085
  "type": "boolean",
65392
66086
  "decorators": []
65393
66087
  },
@@ -65395,7 +66089,7 @@
65395
66089
  "name": "class.cds--toggle--disabled",
65396
66090
  "deprecated": false,
65397
66091
  "deprecationMessage": "",
65398
- "line": 149,
66092
+ "line": 156,
65399
66093
  "type": "any",
65400
66094
  "decorators": []
65401
66095
  }
@@ -65418,7 +66112,7 @@
65418
66112
  "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",
65419
66113
  "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",
65420
66114
  "type": "component",
65421
- "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 * 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</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@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",
66115
+ "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",
65422
66116
  "assetsDirs": [],
65423
66117
  "styleUrlsData": "",
65424
66118
  "stylesData": "",
@@ -65441,7 +66135,7 @@
65441
66135
  "deprecationMessage": ""
65442
66136
  }
65443
66137
  ],
65444
- "line": 163,
66138
+ "line": 170,
65445
66139
  "rawdescription": "\n\nCreates an instance of Toggle.\n",
65446
66140
  "jsdoctags": [
65447
66141
  {
@@ -65484,7 +66178,7 @@
65484
66178
  }
65485
66179
  ],
65486
66180
  "returnType": "void",
65487
- "line": 114,
66181
+ "line": 116,
65488
66182
  "rawdescription": "\n\nText that is set on the left side of the toggle.\n",
65489
66183
  "description": "<p>Text that is set on the left side of the toggle.</p>\n",
65490
66184
  "jsdoctags": [
@@ -65503,7 +66197,7 @@
65503
66197
  "name": "offText",
65504
66198
  "type": "",
65505
66199
  "returnType": "",
65506
- "line": 118
66200
+ "line": 120
65507
66201
  }
65508
66202
  },
65509
66203
  "onText": {
@@ -65522,7 +66216,7 @@
65522
66216
  }
65523
66217
  ],
65524
66218
  "returnType": "void",
65525
- "line": 126,
66219
+ "line": 128,
65526
66220
  "rawdescription": "\n\nText that is set on the right side of the toggle.\n",
65527
66221
  "description": "<p>Text that is set on the right side of the toggle.</p>\n",
65528
66222
  "jsdoctags": [
@@ -65541,7 +66235,7 @@
65541
66235
  "name": "onText",
65542
66236
  "type": "",
65543
66237
  "returnType": "",
65544
- "line": 130
66238
+ "line": 132
65545
66239
  }
65546
66240
  },
65547
66241
  "disabledClass": {
@@ -65550,7 +66244,7 @@
65550
66244
  "name": "disabledClass",
65551
66245
  "type": "",
65552
66246
  "returnType": "",
65553
- "line": 149
66247
+ "line": 156
65554
66248
  }
65555
66249
  },
65556
66250
  "formItem": {
@@ -65559,7 +66253,7 @@
65559
66253
  "name": "formItem",
65560
66254
  "type": "",
65561
66255
  "returnType": "",
65562
- "line": 153
66256
+ "line": 160
65563
66257
  }
65564
66258
  }
65565
66259
  }
@@ -71960,13 +72654,13 @@
71960
72654
  },
71961
72655
  {
71962
72656
  "name": "TagModule",
71963
- "id": "module-TagModule-c290f8b002297d858541d2169824e0cea5fa3ca674d892c90222206c9af83bd591d7be4f181ae21c66ca7b5decb57c6489677a58d5d3212a0c096a5410b99392",
72657
+ "id": "module-TagModule-a12f7c1beadebb1231cfa39b78a4a3e27ac65cca69d8fec86df62e6c1ce237b841727ba69c33192f2692cd8259c9173a8b83c311a29bc821e3b0c2351ba75fa8",
71964
72658
  "description": "",
71965
72659
  "deprecationMessage": "",
71966
72660
  "deprecated": false,
71967
72661
  "file": "src/tag/tag.module.ts",
71968
72662
  "methods": [],
71969
- "sourceCode": "import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { Tag } from \"./tag.component\";\nimport { TagFilter } from \"./tag-filter.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\n\n@NgModule({\n\tdeclarations: [ Tag, TagFilter ],\n\texports: [ Tag, TagFilter ],\n\timports: [ CommonModule, IconModule ]\n})\nexport class TagModule { }\n",
72663
+ "sourceCode": "import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { Tag } from \"./tag.component\";\nimport { TagFilter } from \"./tag-filter.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\nimport { TagIconDirective } from \"./tag-icon.directive\";\nimport { TagSelectableComponent } from \"./tag-selectable.component\";\nimport { TagOperationalComponent } from \"./tag-operational.component\";\n\n@NgModule({\n\tdeclarations: [\n\t\tTag,\n\t\tTagFilter,\n\t\tTagIconDirective,\n\t\tTagSelectableComponent,\n\t\tTagOperationalComponent\n\t],\n\texports: [\n\t\tTag,\n\t\tTagFilter,\n\t\tTagIconDirective,\n\t\tTagSelectableComponent,\n\t\tTagOperationalComponent\n\t],\n\timports: [CommonModule, IconModule]\n})\nexport class TagModule {}\n",
71970
72664
  "children": [
71971
72665
  {
71972
72666
  "type": "providers",
@@ -71980,6 +72674,15 @@
71980
72674
  },
71981
72675
  {
71982
72676
  "name": "TagFilter"
72677
+ },
72678
+ {
72679
+ "name": "TagIconDirective"
72680
+ },
72681
+ {
72682
+ "name": "TagOperationalComponent"
72683
+ },
72684
+ {
72685
+ "name": "TagSelectableComponent"
71983
72686
  }
71984
72687
  ]
71985
72688
  },
@@ -71999,6 +72702,15 @@
71999
72702
  },
72000
72703
  {
72001
72704
  "name": "TagFilter"
72705
+ },
72706
+ {
72707
+ "name": "TagIconDirective"
72708
+ },
72709
+ {
72710
+ "name": "TagOperationalComponent"
72711
+ },
72712
+ {
72713
+ "name": "TagSelectableComponent"
72002
72714
  }
72003
72715
  ]
72004
72716
  },
@@ -73746,7 +74458,7 @@
73746
74458
  "deprecated": false,
73747
74459
  "deprecationMessage": "",
73748
74460
  "type": "",
73749
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-filter\n\t\t\t[type]=\"type\"\n\t\t\t[size]=\"size\"\n\t\t\ttitle=\"Filter\"\n\t\t\tcloseButtonLabel=\"Clear\">\n\t\t\tfilter\n\t\t</cds-tag-filter>\n\t`\n})"
74461
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-filter\n\t\t\t[type]=\"type\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\ttitle=\"Filter\"\n\t\t\tcloseButtonLabel=\"Clear\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tFiltered\n\t\t</cds-tag-filter>\n\t`\n})"
73750
74462
  },
73751
74463
  {
73752
74464
  "name": "Filtering",
@@ -74644,6 +75356,26 @@
74644
75356
  "type": "",
74645
75357
  "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div\n\t\t\tcdsGrid\n\t\t\t[condensed]=\"condensed\"\n\t\t\t[fullWidth]=\"fullWidth\"\n\t\t\t[narrow]=\"narrow\">\n\t\t\t<div cdsRow>\n\t\t\t\t<div cdsCol class=\"custom-class-example\" [columnNumbers]=\"{sm: 1}\" [offsets]=\"{sm: 3}\">\n\t\t\t\t\t<div class=\"inside\">Small: Offset 3</div>\n\t\t\t\t</div>\n\t\t\t\t<div cdsCol class=\"custom-class-example\" [columnNumbers]=\"{sm: 2}\" [offsets]=\"{sm: 2}\">\n\t\t\t\t\t<div class=\"inside\">Small: Offset 2</div>\n\t\t\t\t</div>\n\t\t\t\t<div cdsCol class=\"custom-class-example\" [columnNumbers]=\"{sm: 3}\" [offsets]=\"{sm: 1}\">\n\t\t\t\t\t<div class=\"inside\">Small: Offset 1</div>\n\t\t\t\t</div>\n\t\t\t\t<div cdsCol class=\"custom-class-example\" [columnNumbers]=\"{sm: 4}\" [offsets]=\"{sm: 0}\">\n\t\t\t\t\t<div class=\"inside\">Small: Offset -</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`\n})"
74646
75358
  },
75359
+ {
75360
+ "name": "OperationalTag",
75361
+ "ctype": "miscellaneous",
75362
+ "subtype": "variable",
75363
+ "file": "src/tag/tag.stories.ts",
75364
+ "deprecated": false,
75365
+ "deprecationMessage": "",
75366
+ "type": "",
75367
+ "defaultValue": "OperationalTagTemplate.bind({})"
75368
+ },
75369
+ {
75370
+ "name": "OperationalTagTemplate",
75371
+ "ctype": "miscellaneous",
75372
+ "subtype": "variable",
75373
+ "file": "src/tag/tag.stories.ts",
75374
+ "deprecated": false,
75375
+ "deprecationMessage": "",
75376
+ "type": "",
75377
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-operational\n\t\t\ttype=\"cyan\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tOperational\n\t\t</cds-tag-operational>\n\n\n\t\t<div\n\t\t\tcdsPopover\n\t\t\t[isOpen]=\"isOpen\"\n\t\t\t[highContrast]=\"true\">\n\t\t\t<cds-tag-operational\n\t\t\t\t[type]=\"type\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t(click)=\"isOpen = !isOpen\">\n\t\t\t\t<div cdsTagIcon>\n\t\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t\t</div>\n\t\t\t\tOperational w/ popover\n\t\t\t</cds-tag-operational>\n\t\t\t<cds-popover-content>\n\t\t\t\t<div class=\"popover-content\">\n\t\t\t\t\tTag 1 name <br>\n\t\t\t\t\tTag 2 name <br>\n\t\t\t\t\tTag 3 name <br>\n\t\t\t\t\tTag 4 name <br>\n\t\t\t\t\t<cds-tag type=\"green\">Tag 5 name</cds-tag>\n\t\t\t\t</div>\n\t\t\t</cds-popover-content>\n\t\t</div>\n\t`,\n\tstyles: [\n\t\t`.popover-content {\n\t\t\tline-height: 1.5;\n\t\t\tpadding: 1rem;\n\t\t\tfont-size: 14px;\n\t\t}`\n\t]\n})"
75378
+ },
74647
75379
  {
74648
75380
  "name": "OptionsSelected",
74649
75381
  "ctype": "miscellaneous",
@@ -75009,6 +75741,26 @@
75009
75741
  "type": "",
75010
75742
  "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tile-group (selected)=\"selected($event)\" [multiple]=\"false\">\n\t\t\t<cds-selection-tile value=\"tile1\" [selected]=\"true\">Selectable Tile</cds-selection-tile>\n\t\t\t<cds-selection-tile value=\"tile2\">Selectable Tile</cds-selection-tile>\n\t\t\t<cds-selection-tile value=\"tile3\">Selectable Tile</cds-selection-tile>\n\t\t</cds-tile-group>\n\t`\n})"
75011
75743
  },
75744
+ {
75745
+ "name": "SelectedTag",
75746
+ "ctype": "miscellaneous",
75747
+ "subtype": "variable",
75748
+ "file": "src/tag/tag.stories.ts",
75749
+ "deprecated": false,
75750
+ "deprecationMessage": "",
75751
+ "type": "",
75752
+ "defaultValue": "SelectedTagTemplate.bind({})"
75753
+ },
75754
+ {
75755
+ "name": "SelectedTagTemplate",
75756
+ "ctype": "miscellaneous",
75757
+ "subtype": "variable",
75758
+ "file": "src/tag/tag.stories.ts",
75759
+ "deprecated": false,
75760
+ "deprecationMessage": "",
75761
+ "type": "",
75762
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-selectable\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[selected]=\"selected\"\n\t\t\t(selectedChange)=\"selectedChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tSelectable\n\t\t</cds-tag-selectable>\n\t`\n})"
75763
+ },
75012
75764
  {
75013
75765
  "name": "Selection",
75014
75766
  "ctype": "miscellaneous",
@@ -75927,7 +76679,7 @@
75927
76679
  "deprecated": false,
75928
76680
  "deprecationMessage": "",
75929
76681
  "type": "",
75930
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag [type]=\"type\" [size]=\"size\">Tag</cds-tag>\n\t`\n})"
76682
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag\n\t\t\t[type]=\"type\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[size]=\"size\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tRead only\n\t\t</cds-tag>\n\t`\n})"
75931
76683
  },
75932
76684
  {
75933
76685
  "name": "Template",
@@ -78372,9 +79124,9 @@
78372
79124
  ],
78373
79125
  "ctype": "miscellaneous",
78374
79126
  "subtype": "enum",
78375
- "deprecated": false,
78376
- "deprecationMessage": "",
78377
- "description": "<p>Defines the set of states for a toggle component.</p>\n",
79127
+ "deprecated": true,
79128
+ "deprecationMessage": "since v5 - Use boolean\nDefines the set of states for a toggle component.",
79129
+ "description": "",
78378
79130
  "file": "src/toggle/toggle.component.ts"
78379
79131
  }
78380
79132
  ],
@@ -81703,7 +82455,47 @@
81703
82455
  "deprecated": false,
81704
82456
  "deprecationMessage": "",
81705
82457
  "type": "",
81706
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-filter\n\t\t\t[type]=\"type\"\n\t\t\t[size]=\"size\"\n\t\t\ttitle=\"Filter\"\n\t\t\tcloseButtonLabel=\"Clear\">\n\t\t\tfilter\n\t\t</cds-tag-filter>\n\t`\n})"
82458
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-filter\n\t\t\t[type]=\"type\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\ttitle=\"Filter\"\n\t\t\tcloseButtonLabel=\"Clear\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tFiltered\n\t\t</cds-tag-filter>\n\t`\n})"
82459
+ },
82460
+ {
82461
+ "name": "OperationalTag",
82462
+ "ctype": "miscellaneous",
82463
+ "subtype": "variable",
82464
+ "file": "src/tag/tag.stories.ts",
82465
+ "deprecated": false,
82466
+ "deprecationMessage": "",
82467
+ "type": "",
82468
+ "defaultValue": "OperationalTagTemplate.bind({})"
82469
+ },
82470
+ {
82471
+ "name": "OperationalTagTemplate",
82472
+ "ctype": "miscellaneous",
82473
+ "subtype": "variable",
82474
+ "file": "src/tag/tag.stories.ts",
82475
+ "deprecated": false,
82476
+ "deprecationMessage": "",
82477
+ "type": "",
82478
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-operational\n\t\t\ttype=\"cyan\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tOperational\n\t\t</cds-tag-operational>\n\n\n\t\t<div\n\t\t\tcdsPopover\n\t\t\t[isOpen]=\"isOpen\"\n\t\t\t[highContrast]=\"true\">\n\t\t\t<cds-tag-operational\n\t\t\t\t[type]=\"type\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t(click)=\"isOpen = !isOpen\">\n\t\t\t\t<div cdsTagIcon>\n\t\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t\t</div>\n\t\t\t\tOperational w/ popover\n\t\t\t</cds-tag-operational>\n\t\t\t<cds-popover-content>\n\t\t\t\t<div class=\"popover-content\">\n\t\t\t\t\tTag 1 name <br>\n\t\t\t\t\tTag 2 name <br>\n\t\t\t\t\tTag 3 name <br>\n\t\t\t\t\tTag 4 name <br>\n\t\t\t\t\t<cds-tag type=\"green\">Tag 5 name</cds-tag>\n\t\t\t\t</div>\n\t\t\t</cds-popover-content>\n\t\t</div>\n\t`,\n\tstyles: [\n\t\t`.popover-content {\n\t\t\tline-height: 1.5;\n\t\t\tpadding: 1rem;\n\t\t\tfont-size: 14px;\n\t\t}`\n\t]\n})"
82479
+ },
82480
+ {
82481
+ "name": "SelectedTag",
82482
+ "ctype": "miscellaneous",
82483
+ "subtype": "variable",
82484
+ "file": "src/tag/tag.stories.ts",
82485
+ "deprecated": false,
82486
+ "deprecationMessage": "",
82487
+ "type": "",
82488
+ "defaultValue": "SelectedTagTemplate.bind({})"
82489
+ },
82490
+ {
82491
+ "name": "SelectedTagTemplate",
82492
+ "ctype": "miscellaneous",
82493
+ "subtype": "variable",
82494
+ "file": "src/tag/tag.stories.ts",
82495
+ "deprecated": false,
82496
+ "deprecationMessage": "",
82497
+ "type": "",
82498
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-selectable\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[selected]=\"selected\"\n\t\t\t(selectedChange)=\"selectedChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tSelectable\n\t\t</cds-tag-selectable>\n\t`\n})"
81707
82499
  },
81708
82500
  {
81709
82501
  "name": "Template",
@@ -81713,7 +82505,7 @@
81713
82505
  "deprecated": false,
81714
82506
  "deprecationMessage": "",
81715
82507
  "type": "",
81716
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag [type]=\"type\" [size]=\"size\">Tag</cds-tag>\n\t`\n})"
82508
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag\n\t\t\t[type]=\"type\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[size]=\"size\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tRead only\n\t\t</cds-tag>\n\t`\n})"
81717
82509
  }
81718
82510
  ],
81719
82511
  "src/theme/theme.stories.ts": [
@@ -84202,9 +84994,9 @@
84202
84994
  ],
84203
84995
  "ctype": "miscellaneous",
84204
84996
  "subtype": "enum",
84205
- "deprecated": false,
84206
- "deprecationMessage": "",
84207
- "description": "<p>Defines the set of states for a toggle component.</p>\n",
84997
+ "deprecated": true,
84998
+ "deprecationMessage": "since v5 - Use boolean\nDefines the set of states for a toggle component.",
84999
+ "description": "",
84208
85000
  "file": "src/toggle/toggle.component.ts"
84209
85001
  }
84210
85002
  ]
@@ -89805,18 +90597,45 @@
89805
90597
  "type": "component",
89806
90598
  "linktype": "component",
89807
90599
  "name": "TagFilter",
89808
- "coveragePercent": 30,
89809
- "coverageCount": "4/13",
90600
+ "coveragePercent": 28,
90601
+ "coverageCount": "4/14",
89810
90602
  "status": "medium"
89811
90603
  },
90604
+ {
90605
+ "filePath": "src/tag/tag-icon.directive.ts",
90606
+ "type": "directive",
90607
+ "linktype": "directive",
90608
+ "name": "TagIconDirective",
90609
+ "coveragePercent": 0,
90610
+ "coverageCount": "0/3",
90611
+ "status": "low"
90612
+ },
90613
+ {
90614
+ "filePath": "src/tag/tag-operational.component.ts",
90615
+ "type": "component",
90616
+ "linktype": "component",
90617
+ "name": "TagOperationalComponent",
90618
+ "coveragePercent": 15,
90619
+ "coverageCount": "2/13",
90620
+ "status": "low"
90621
+ },
90622
+ {
90623
+ "filePath": "src/tag/tag-selectable.component.ts",
90624
+ "type": "component",
90625
+ "linktype": "component",
90626
+ "name": "TagSelectableComponent",
90627
+ "coveragePercent": 0,
90628
+ "coverageCount": "0/17",
90629
+ "status": "low"
90630
+ },
89812
90631
  {
89813
90632
  "filePath": "src/tag/tag.component.ts",
89814
90633
  "type": "component",
89815
90634
  "linktype": "component",
89816
90635
  "name": "Tag",
89817
- "coveragePercent": 60,
89818
- "coverageCount": "3/5",
89819
- "status": "good"
90636
+ "coveragePercent": 50,
90637
+ "coverageCount": "3/6",
90638
+ "status": "medium"
89820
90639
  },
89821
90640
  {
89822
90641
  "filePath": "src/tag/tag.stories.ts",
@@ -89848,6 +90667,46 @@
89848
90667
  "coverageCount": "0/1",
89849
90668
  "status": "low"
89850
90669
  },
90670
+ {
90671
+ "filePath": "src/tag/tag.stories.ts",
90672
+ "type": "variable",
90673
+ "linktype": "miscellaneous",
90674
+ "linksubtype": "variable",
90675
+ "name": "OperationalTag",
90676
+ "coveragePercent": 0,
90677
+ "coverageCount": "0/1",
90678
+ "status": "low"
90679
+ },
90680
+ {
90681
+ "filePath": "src/tag/tag.stories.ts",
90682
+ "type": "variable",
90683
+ "linktype": "miscellaneous",
90684
+ "linksubtype": "variable",
90685
+ "name": "OperationalTagTemplate",
90686
+ "coveragePercent": 0,
90687
+ "coverageCount": "0/1",
90688
+ "status": "low"
90689
+ },
90690
+ {
90691
+ "filePath": "src/tag/tag.stories.ts",
90692
+ "type": "variable",
90693
+ "linktype": "miscellaneous",
90694
+ "linksubtype": "variable",
90695
+ "name": "SelectedTag",
90696
+ "coveragePercent": 0,
90697
+ "coverageCount": "0/1",
90698
+ "status": "low"
90699
+ },
90700
+ {
90701
+ "filePath": "src/tag/tag.stories.ts",
90702
+ "type": "variable",
90703
+ "linktype": "miscellaneous",
90704
+ "linksubtype": "variable",
90705
+ "name": "SelectedTagTemplate",
90706
+ "coveragePercent": 0,
90707
+ "coverageCount": "0/1",
90708
+ "status": "low"
90709
+ },
89851
90710
  {
89852
90711
  "filePath": "src/tag/tag.stories.ts",
89853
90712
  "type": "variable",
@@ -90300,8 +91159,8 @@
90300
91159
  "type": "component",
90301
91160
  "linktype": "component",
90302
91161
  "name": "Toggle",
90303
- "coveragePercent": 72,
90304
- "coverageCount": "35/48",
91162
+ "coveragePercent": 75,
91163
+ "coverageCount": "36/48",
90305
91164
  "status": "good"
90306
91165
  },
90307
91166
  {