carbon-components-angular 5.57.5 → 5.57.6

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 (54) hide show
  1. package/docs/documentation/components/Tab.html +27 -127
  2. package/docs/documentation/coverage.html +3 -3
  3. package/docs/documentation/js/search/search_index.js +2 -2
  4. package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
  5. package/docs/documentation/modules/ComboBoxModule.html +4 -4
  6. package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +37 -41
  7. package/docs/documentation/modules/DatePickerInputModule.html +37 -41
  8. package/docs/documentation/modules/DialogModule/dependencies.svg +34 -34
  9. package/docs/documentation/modules/DialogModule.html +34 -34
  10. package/docs/documentation/modules/FileUploaderModule/dependencies.svg +36 -36
  11. package/docs/documentation/modules/FileUploaderModule.html +36 -36
  12. package/docs/documentation/modules/NumberModule/dependencies.svg +4 -4
  13. package/docs/documentation/modules/NumberModule.html +4 -4
  14. package/docs/documentation/modules/RadioModule/dependencies.svg +48 -48
  15. package/docs/documentation/modules/RadioModule.html +48 -48
  16. package/docs/documentation/modules/SelectModule/dependencies.svg +43 -43
  17. package/docs/documentation/modules/SelectModule.html +43 -43
  18. package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
  19. package/docs/documentation/modules/SliderModule.html +4 -4
  20. package/docs/documentation/modules/TabsModule/dependencies.svg +69 -69
  21. package/docs/documentation/modules/TabsModule.html +69 -69
  22. package/docs/documentation/modules/TagModule/dependencies.svg +37 -37
  23. package/docs/documentation/modules/TagModule.html +37 -37
  24. package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
  25. package/docs/documentation/modules/ThemeModule.html +4 -4
  26. package/docs/documentation/modules/TilesModule/dependencies.svg +106 -106
  27. package/docs/documentation/modules/TilesModule.html +106 -106
  28. package/docs/documentation/modules/TimePickerModule/dependencies.svg +20 -20
  29. package/docs/documentation/modules/TimePickerModule.html +20 -20
  30. package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +42 -46
  31. package/docs/documentation/modules/TimePickerSelectModule.html +42 -46
  32. package/docs/documentation/modules/ToggleModule/dependencies.svg +37 -41
  33. package/docs/documentation/modules/ToggleModule.html +37 -41
  34. package/docs/documentation/modules/ToggletipModule/dependencies.svg +39 -39
  35. package/docs/documentation/modules/ToggletipModule.html +39 -39
  36. package/docs/documentation/modules/TooltipModule/dependencies.svg +28 -28
  37. package/docs/documentation/modules/TooltipModule.html +28 -28
  38. package/docs/documentation/modules/TreeviewModule/dependencies.svg +37 -37
  39. package/docs/documentation/modules/TreeviewModule.html +37 -37
  40. package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
  41. package/docs/documentation/modules/UIShellModule.html +4 -4
  42. package/docs/documentation.json +32 -64
  43. package/docs/storybook/iframe.html +2 -2
  44. package/docs/storybook/{main.575135b9.iframe.bundle.js → main.9ce69c0b.iframe.bundle.js} +1 -1
  45. package/docs/storybook/project.json +1 -1
  46. package/docs/storybook/{runtime~main.d377732d.iframe.bundle.js → runtime~main.de44916a.iframe.bundle.js} +1 -1
  47. package/docs/storybook/{tabs-tabs-stories.066fa432.iframe.bundle.js → tabs-tabs-stories.40535f65.iframe.bundle.js} +1 -1
  48. package/esm2020/tabs/tab.component.mjs +5 -10
  49. package/fesm2015/carbon-components-angular-tabs.mjs +3 -8
  50. package/fesm2015/carbon-components-angular-tabs.mjs.map +1 -1
  51. package/fesm2020/carbon-components-angular-tabs.mjs +3 -8
  52. package/fesm2020/carbon-components-angular-tabs.mjs.map +1 -1
  53. package/package.json +1 -1
  54. package/tabs/tab.component.d.ts +0 -4
@@ -53893,7 +53893,7 @@
53893
53893
  },
53894
53894
  {
53895
53895
  "name": "Tab",
53896
- "id": "component-Tab-0ae655d3e471363bc34b21e94fd1c94af8fb537d797e9869a33865c2526d8171b7dd34808b2ef5b3794929fe4493c0ef80a25a46c2199cda736f5587bca002b0",
53896
+ "id": "component-Tab-c53c4b68c2b4ba9480fda90b175dff0c8259a692f0f6f0a615ff742fa1adbd62a8cf875c0bdffa71f77c498db2c8e9a56a409a996e46c14fc1c603055a7b6adb",
53897
53897
  "file": "src/tabs/tab.component.ts",
53898
53898
  "encapsulation": [],
53899
53899
  "entryComponents": [],
@@ -53903,7 +53903,7 @@
53903
53903
  "selector": "cds-tab, ibm-tab",
53904
53904
  "styleUrls": [],
53905
53905
  "styles": [],
53906
- "template": "<div\n\t[attr.tabindex]=\"tabIndex\"\n\trole=\"tabpanel\"\n\t*ngIf=\"shouldRender()\"\n\tclass=\"cds--tab-content\"\n\t[ngStyle]=\"{'display': active ? null : 'none'}\"\n\t[attr.aria-labelledby]=\"id + '-header'\"\n\taria-live=\"polite\">\n\t<ng-template\n\t\t*ngIf=\"isTemplate(tabContent)\"\n\t\t[ngTemplateOutlet]=\"tabContent\"\n\t\t[ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n\t</ng-template>\n\t<ng-content></ng-content>\n</div>\n\t",
53906
+ "template": "<div\n\t[attr.tabindex]=\"tabIndex\"\n\trole=\"tabpanel\"\n\t*ngIf=\"shouldRender()\"\n\tclass=\"cds--tab-content\"\n\t[id]=\"id\"\n\t[ngStyle]=\"{'display': active ? null : 'none'}\"\n\t[attr.aria-labelledby]=\"id + '-header'\"\n\taria-live=\"polite\">\n\t<ng-template\n\t\t*ngIf=\"isTemplate(tabContent)\"\n\t\t[ngTemplateOutlet]=\"tabContent\"\n\t\t[ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n\t</ng-template>\n\t<ng-content></ng-content>\n</div>\n\t",
53907
53907
  "templateUrl": [],
53908
53908
  "viewProviders": [],
53909
53909
  "hostDirectives": [],
@@ -53915,7 +53915,7 @@
53915
53915
  "deprecationMessage": "",
53916
53916
  "rawdescription": "\n\nIndicates whether the `Tab` is active/selected.\nDetermines whether it's `TabPanel` is rendered.\n",
53917
53917
  "description": "<p>Indicates whether the <code>Tab</code> is active/selected.\nDetermines whether it&#39;s <code>TabPanel</code> is rendered.</p>\n",
53918
- "line": 102,
53918
+ "line": 103,
53919
53919
  "type": "boolean",
53920
53920
  "decorators": []
53921
53921
  },
@@ -53925,7 +53925,7 @@
53925
53925
  "deprecationMessage": "",
53926
53926
  "rawdescription": "\n\nSet to true to have Tab items cached and not reloaded on tab switching.\n",
53927
53927
  "description": "<p>Set to true to have Tab items cached and not reloaded on tab switching.</p>\n",
53928
- "line": 116,
53928
+ "line": 117,
53929
53929
  "type": "boolean",
53930
53930
  "decorators": []
53931
53931
  },
@@ -53935,7 +53935,7 @@
53935
53935
  "deprecationMessage": "",
53936
53936
  "rawdescription": "\n\nAllows the user to pass data to the custom template for the `Tab` heading.\n",
53937
53937
  "description": "<p>Allows the user to pass data to the custom template for the <code>Tab</code> heading.</p>\n",
53938
- "line": 97,
53938
+ "line": 98,
53939
53939
  "type": "any",
53940
53940
  "decorators": []
53941
53941
  },
@@ -53946,7 +53946,7 @@
53946
53946
  "deprecationMessage": "",
53947
53947
  "rawdescription": "\n\nIndicates whether or not the `Tab` item is disabled.\n",
53948
53948
  "description": "<p>Indicates whether or not the <code>Tab</code> item is disabled.</p>\n",
53949
- "line": 106,
53949
+ "line": 107,
53950
53950
  "type": "boolean",
53951
53951
  "decorators": []
53952
53952
  },
@@ -53956,7 +53956,7 @@
53956
53956
  "deprecationMessage": "",
53957
53957
  "rawdescription": "\n\nThe `Tab`'s title to be displayed or custom temaplate for the `Tab` heading.\n",
53958
53958
  "description": "<p>The <code>Tab</code>&#39;s title to be displayed or custom temaplate for the <code>Tab</code> heading.</p>\n",
53959
- "line": 86,
53959
+ "line": 87,
53960
53960
  "type": "string | TemplateRef<any>",
53961
53961
  "decorators": []
53962
53962
  },
@@ -53967,7 +53967,7 @@
53967
53967
  "deprecationMessage": "",
53968
53968
  "rawdescription": "\n\nSets the id of the `Tab`. Will be uniquely generated if not provided.\n",
53969
53969
  "description": "<p>Sets the id of the <code>Tab</code>. Will be uniquely generated if not provided.</p>\n",
53970
- "line": 112,
53970
+ "line": 113,
53971
53971
  "type": "string",
53972
53972
  "decorators": []
53973
53973
  },
@@ -53977,7 +53977,7 @@
53977
53977
  "deprecationMessage": "",
53978
53978
  "rawdescription": "\n\nAllows life cycle hooks to be called on the rendered content\n",
53979
53979
  "description": "<p>Allows life cycle hooks to be called on the rendered content</p>\n",
53980
- "line": 122,
53980
+ "line": 123,
53981
53981
  "type": "TemplateRef<any>",
53982
53982
  "decorators": []
53983
53983
  },
@@ -53986,7 +53986,7 @@
53986
53986
  "defaultValue": "0",
53987
53987
  "deprecated": false,
53988
53988
  "deprecationMessage": "",
53989
- "line": 108,
53989
+ "line": 109,
53990
53990
  "type": "number",
53991
53991
  "decorators": []
53992
53992
  },
@@ -53996,7 +53996,7 @@
53996
53996
  "deprecationMessage": "",
53997
53997
  "rawdescription": "\n\nOptional data for templates passed as implicit context\n",
53998
53998
  "description": "<p>Optional data for templates passed as implicit context</p>\n",
53999
- "line": 126,
53999
+ "line": 127,
54000
54000
  "type": "any",
54001
54001
  "decorators": []
54002
54002
  },
@@ -54006,7 +54006,7 @@
54006
54006
  "deprecationMessage": "",
54007
54007
  "rawdescription": "\n\nOptional override for the `tabItem's`'s title attribute which is set in `TabHeaders`.\n`tabItem`'s title attribute is automatically set to `heading`.\n\nYou might want to use this if you set `heading` to a `TemplateRef`.\n",
54008
54008
  "description": "<p>Optional override for the <code>tabItem&#39;s</code>&#39;s title attribute which is set in <code>TabHeaders</code>.\n<code>tabItem</code>&#39;s title attribute is automatically set to <code>heading</code>.</p>\n<p>You might want to use this if you set <code>heading</code> to a <code>TemplateRef</code>.</p>\n",
54009
- "line": 93,
54009
+ "line": 94,
54010
54010
  "type": "string",
54011
54011
  "decorators": []
54012
54012
  }
@@ -54019,31 +54019,11 @@
54019
54019
  "deprecationMessage": "",
54020
54020
  "rawdescription": "\n\nValue 'selected' to be emitted after a new `Tab` is selected.\n",
54021
54021
  "description": "<p>Value &#39;selected&#39; to be emitted after a new <code>Tab</code> is selected.</p>\n",
54022
- "line": 130,
54022
+ "line": 131,
54023
54023
  "type": "EventEmitter<void>"
54024
54024
  }
54025
54025
  ],
54026
54026
  "propertiesClass": [
54027
- {
54028
- "name": "attrClass",
54029
- "defaultValue": "this.id",
54030
- "deprecated": false,
54031
- "deprecationMessage": "",
54032
- "type": "",
54033
- "optional": false,
54034
- "description": "<p>Used to set the id property on the element.</p>\n",
54035
- "line": 134,
54036
- "rawdescription": "\n\nUsed to set the id property on the element.\n",
54037
- "decorators": [
54038
- {
54039
- "name": "HostBinding",
54040
- "stringifiedArguments": "'attr.id'"
54041
- }
54042
- ],
54043
- "modifierKind": [
54044
- 170
54045
- ]
54046
- },
54047
54027
  {
54048
54028
  "name": "headingIsTemplate",
54049
54029
  "defaultValue": "false",
@@ -54052,7 +54032,7 @@
54052
54032
  "type": "",
54053
54033
  "optional": false,
54054
54034
  "description": "<p>Boolean value reflects if the <code>Tab</code> is using a custom template for the heading.\nDefault value is false.</p>\n",
54055
- "line": 81,
54035
+ "line": 82,
54056
54036
  "rawdescription": "\n\nBoolean value reflects if the `Tab` is using a custom template for the heading.\nDefault value is false.\n",
54057
54037
  "modifierKind": [
54058
54038
  125
@@ -54066,7 +54046,7 @@
54066
54046
  "optional": false,
54067
54047
  "returnType": "void",
54068
54048
  "typeParameters": [],
54069
- "line": 155,
54049
+ "line": 152,
54070
54050
  "deprecated": false,
54071
54051
  "deprecationMessage": "",
54072
54052
  "rawdescription": "\n\nEmit the status of the `Tab`, specifically 'select' and 'selected' properties.\n",
@@ -54085,7 +54065,7 @@
54085
54065
  "optional": false,
54086
54066
  "returnType": "boolean",
54087
54067
  "typeParameters": [],
54088
- "line": 166,
54068
+ "line": 163,
54089
54069
  "deprecated": false,
54090
54070
  "deprecationMessage": "",
54091
54071
  "modifierKind": [
@@ -54109,7 +54089,7 @@
54109
54089
  "optional": false,
54110
54090
  "returnType": "boolean",
54111
54091
  "typeParameters": [],
54112
- "line": 162,
54092
+ "line": 159,
54113
54093
  "deprecated": false,
54114
54094
  "deprecationMessage": "",
54115
54095
  "rawdescription": "\n\nReturns value indicating whether this `Tab` should be rendered in a `TabPanel`.\n",
@@ -54118,26 +54098,14 @@
54118
54098
  ],
54119
54099
  "deprecated": false,
54120
54100
  "deprecationMessage": "",
54121
- "hostBindings": [
54122
- {
54123
- "name": "attr.id",
54124
- "defaultValue": "this.id",
54125
- "deprecated": false,
54126
- "deprecationMessage": "",
54127
- "rawdescription": "\n\nUsed to set the id property on the element.\n",
54128
- "description": "<p>Used to set the id property on the element.</p>\n",
54129
- "line": 134,
54130
- "type": "string",
54131
- "decorators": []
54132
- }
54133
- ],
54101
+ "hostBindings": [],
54134
54102
  "hostListeners": [],
54135
54103
  "standalone": false,
54136
54104
  "imports": [],
54137
54105
  "description": "<p>The <code>Tab</code> component is a child of the <code>Tabs</code> component.\nIt represents one <code>Tab</code> item and its content within a panel of other <code>Tab</code> items.</p>\n<p><code>Tab</code> takes a string or <code>TemplateRef</code> for the header, and any content for the body of the tab.\nDisabled states should be handled by the application (ie. switch to the tab, but display some\nindication as to <em>why</em> the tab is disabled).</p>\n<p>When the tab is selected the <code>select</code> output will be triggered.\nThe <code>select</code> output will also be triggered for the active tab when the tabs are loaded or updated.</p>\n<p>Tab with string header:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\">&lt;cds-tab heading=&#39;tab1&#39;&gt;\n tab 1 content\n&lt;/cds-tab&gt;</code></pre></div><p>Tab with custom header:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\">&lt;ng-template #tabHeading&gt;\n &lt;svg cdsIcon=&quot;facebook&quot;\n size=&quot;sm&quot;\n style=&quot;margin-right: 7px;&quot;&gt;\n &lt;/svg&gt;\n Hello Tab 1\n&lt;/ng-template&gt;\n&lt;cds-tabs&gt;\n &lt;cds-tab [heading]=&quot;tabHeading&quot;&gt;\n Tab 1 content &lt;svg cdsIcon=&quot;alert&quot; size=&quot;lg&quot;&gt;&lt;/svg&gt;\n &lt;/cds-tab&gt;\n &lt;cds-tab heading=&#39;Tab2&#39;&gt;\n Tab 2 content\n &lt;/cds-tab&gt;\n &lt;cds-tab heading=&#39;Tab3&#39;&gt;\n Tab 3 content\n &lt;/cds-tab&gt;\n&lt;/cds-tabs&gt;</code></pre></div>",
54138
54106
  "rawdescription": "\n\nThe `Tab` component is a child of the `Tabs` component.\nIt represents one `Tab` item and its content within a panel of other `Tab` items.\n\n\n`Tab` takes a string or `TemplateRef` for the header, and any content for the body of the tab.\nDisabled states should be handled by the application (ie. switch to the tab, but display some\nindication as to _why_ the tab is disabled).\n\nWhen the tab is selected the `select` output will be triggered.\nThe `select` output will also be triggered for the active tab when the tabs are loaded or updated.\n\n\nTab with string header:\n\n```html\n<cds-tab heading='tab1'>\n\ttab 1 content\n</cds-tab>\n```\n\nTab with custom header:\n\n```html\n<ng-template #tabHeading>\n\t<svg cdsIcon=\"facebook\"\n\t\tsize=\"sm\"\n\t\tstyle=\"margin-right: 7px;\">\n\t</svg>\n\tHello Tab 1\n</ng-template>\n<cds-tabs>\n\t<cds-tab [heading]=\"tabHeading\">\n\t\tTab 1 content <svg cdsIcon=\"alert\" size=\"lg\"></svg>\n\t</cds-tab>\n\t<cds-tab heading='Tab2'>\n\t\tTab 2 content\n\t</cds-tab>\n\t<cds-tab heading='Tab3'>\n\t\tTab 3 content\n\t</cds-tab>\n</cds-tabs>\n```\n",
54139
54107
  "type": "component",
54140
- "sourceCode": "import {\n\tComponent,\n\tOnInit,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tTemplateRef,\n\tHostBinding\n} from \"@angular/core\";\n\n/**\n* The `Tab` component is a child of the `Tabs` component.\n* It represents one `Tab` item and its content within a panel of other `Tab` items.\n*\n*\n* `Tab` takes a string or `TemplateRef` for the header, and any content for the body of the tab.\n* Disabled states should be handled by the application (ie. switch to the tab, but display some\n* indication as to _why_ the tab is disabled).\n*\n* When the tab is selected the `select` output will be triggered.\n* The `select` output will also be triggered for the active tab when the tabs are loaded or updated.\n*\n*\n* Tab with string header:\n*\n* ```html\n* <cds-tab heading='tab1'>\n* \ttab 1 content\n* </cds-tab>\n* ```\n*\n* Tab with custom header:\n*\n* ```html\n* <ng-template #tabHeading>\n* \t<svg cdsIcon=\"facebook\"\n* \t\tsize=\"sm\"\n* \t\tstyle=\"margin-right: 7px;\">\n* \t</svg>\n* \tHello Tab 1\n* </ng-template>\n* <cds-tabs>\n* \t<cds-tab [heading]=\"tabHeading\">\n* \t\tTab 1 content <svg cdsIcon=\"alert\" size=\"lg\"></svg>\n* \t</cds-tab>\n* \t<cds-tab heading='Tab2'>\n* \t\tTab 2 content\n* \t</cds-tab>\n* \t<cds-tab heading='Tab3'>\n* \t\tTab 3 content\n* \t</cds-tab>\n* </cds-tabs>\n* ```\n*/\n@Component({\n\tselector: \"cds-tab, ibm-tab\",\n\ttemplate: `\n\t\t<div\n\t\t\t[attr.tabindex]=\"tabIndex\"\n\t\t\trole=\"tabpanel\"\n\t\t\t*ngIf=\"shouldRender()\"\n\t\t\tclass=\"cds--tab-content\"\n\t\t\t[ngStyle]=\"{'display': active ? null : 'none'}\"\n\t\t\t[attr.aria-labelledby]=\"id + '-header'\"\n\t\t\taria-live=\"polite\">\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"isTemplate(tabContent)\"\n\t\t\t\t[ngTemplateOutlet]=\"tabContent\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n\t\t\t</ng-template>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`\n})\nexport class Tab implements OnInit {\n\tprivate static counter = 0;\n\t/**\n\t * Boolean value reflects if the `Tab` is using a custom template for the heading.\n\t * Default value is false.\n\t */\n\tpublic headingIsTemplate = false;\n\n\t/**\n\t * The `Tab`'s title to be displayed or custom temaplate for the `Tab` heading.\n\t */\n\t@Input() heading: string | TemplateRef<any>;\n\t/**\n\t * Optional override for the `tabItem's`'s title attribute which is set in `TabHeaders`.\n\t * `tabItem`'s title attribute is automatically set to `heading`.\n\t *\n\t * You might want to use this if you set `heading` to a `TemplateRef`.\n\t */\n\t@Input() title: string;\n\t/**\n\t * Allows the user to pass data to the custom template for the `Tab` heading.\n\t */\n\t@Input() context: any;\n\t/**\n\t * Indicates whether the `Tab` is active/selected.\n\t * Determines whether it's `TabPanel` is rendered.\n\t */\n\t@Input() active = false;\n\t/**\n\t * Indicates whether or not the `Tab` item is disabled.\n\t */\n\t@Input() disabled = false;\n\n\t@Input() tabIndex = 0;\n\t/**\n\t * Sets the id of the `Tab`. Will be uniquely generated if not provided.\n\t */\n\t@Input() id = `n-tab-${Tab.counter++}`;\n\t/**\n\t * Set to true to have Tab items cached and not reloaded on tab switching.\n\t */\n\t@Input() set cacheActive(shouldCache: boolean) {\n\t\tthis._cacheActive = shouldCache;\n\t}\n\t/**\n\t * Allows life cycle hooks to be called on the rendered content\n\t */\n\t@Input() tabContent: TemplateRef<any>;\n\t/**\n\t * Optional data for templates passed as implicit context\n\t */\n\t@Input() templateContext: any;\n\t/**\n\t * Value 'selected' to be emitted after a new `Tab` is selected.\n\t */\n\t@Output() selected: EventEmitter<void> = new EventEmitter<void>();\n\t/**\n\t * Used to set the id property on the element.\n\t */\n\t@HostBinding(\"attr.id\") attrClass = this.id;\n\n\tget cacheActive() {\n\t\treturn this._cacheActive;\n\t}\n\n\tprotected _cacheActive = false;\n\n\t/**\n\t * Checks for custom heading template on initialization and updates the value\n\t * of the boolean 'headingIsTemplate'.\n\t */\n\tngOnInit() {\n\t\tif (this.heading instanceof TemplateRef) {\n\t\t\tthis.headingIsTemplate = true;\n\t\t}\n\t}\n\n\t/**\n\t * Emit the status of the `Tab`, specifically 'select' and 'selected' properties.\n\t */\n\tdoSelect() {\n\t\tthis.selected.emit();\n\t}\n\n\t/**\n\t* Returns value indicating whether this `Tab` should be rendered in a `TabPanel`.\n\t*/\n\tshouldRender() {\n\t\treturn this.active || this.cacheActive;\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n}\n",
54108
+ "sourceCode": "import {\n\tComponent,\n\tOnInit,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tTemplateRef,\n\tHostBinding\n} from \"@angular/core\";\n\n/**\n* The `Tab` component is a child of the `Tabs` component.\n* It represents one `Tab` item and its content within a panel of other `Tab` items.\n*\n*\n* `Tab` takes a string or `TemplateRef` for the header, and any content for the body of the tab.\n* Disabled states should be handled by the application (ie. switch to the tab, but display some\n* indication as to _why_ the tab is disabled).\n*\n* When the tab is selected the `select` output will be triggered.\n* The `select` output will also be triggered for the active tab when the tabs are loaded or updated.\n*\n*\n* Tab with string header:\n*\n* ```html\n* <cds-tab heading='tab1'>\n* \ttab 1 content\n* </cds-tab>\n* ```\n*\n* Tab with custom header:\n*\n* ```html\n* <ng-template #tabHeading>\n* \t<svg cdsIcon=\"facebook\"\n* \t\tsize=\"sm\"\n* \t\tstyle=\"margin-right: 7px;\">\n* \t</svg>\n* \tHello Tab 1\n* </ng-template>\n* <cds-tabs>\n* \t<cds-tab [heading]=\"tabHeading\">\n* \t\tTab 1 content <svg cdsIcon=\"alert\" size=\"lg\"></svg>\n* \t</cds-tab>\n* \t<cds-tab heading='Tab2'>\n* \t\tTab 2 content\n* \t</cds-tab>\n* \t<cds-tab heading='Tab3'>\n* \t\tTab 3 content\n* \t</cds-tab>\n* </cds-tabs>\n* ```\n*/\n@Component({\n\tselector: \"cds-tab, ibm-tab\",\n\ttemplate: `\n\t\t<div\n\t\t\t[attr.tabindex]=\"tabIndex\"\n\t\t\trole=\"tabpanel\"\n\t\t\t*ngIf=\"shouldRender()\"\n\t\t\tclass=\"cds--tab-content\"\n\t\t\t[id]=\"id\"\n\t\t\t[ngStyle]=\"{'display': active ? null : 'none'}\"\n\t\t\t[attr.aria-labelledby]=\"id + '-header'\"\n\t\t\taria-live=\"polite\">\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"isTemplate(tabContent)\"\n\t\t\t\t[ngTemplateOutlet]=\"tabContent\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n\t\t\t</ng-template>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`\n})\nexport class Tab implements OnInit {\n\tprivate static counter = 0;\n\t/**\n\t * Boolean value reflects if the `Tab` is using a custom template for the heading.\n\t * Default value is false.\n\t */\n\tpublic headingIsTemplate = false;\n\n\t/**\n\t * The `Tab`'s title to be displayed or custom temaplate for the `Tab` heading.\n\t */\n\t@Input() heading: string | TemplateRef<any>;\n\t/**\n\t * Optional override for the `tabItem's`'s title attribute which is set in `TabHeaders`.\n\t * `tabItem`'s title attribute is automatically set to `heading`.\n\t *\n\t * You might want to use this if you set `heading` to a `TemplateRef`.\n\t */\n\t@Input() title: string;\n\t/**\n\t * Allows the user to pass data to the custom template for the `Tab` heading.\n\t */\n\t@Input() context: any;\n\t/**\n\t * Indicates whether the `Tab` is active/selected.\n\t * Determines whether it's `TabPanel` is rendered.\n\t */\n\t@Input() active = false;\n\t/**\n\t * Indicates whether or not the `Tab` item is disabled.\n\t */\n\t@Input() disabled = false;\n\n\t@Input() tabIndex = 0;\n\t/**\n\t * Sets the id of the `Tab`. Will be uniquely generated if not provided.\n\t */\n\t@Input() id = `n-tab-${Tab.counter++}`;\n\t/**\n\t * Set to true to have Tab items cached and not reloaded on tab switching.\n\t */\n\t@Input() set cacheActive(shouldCache: boolean) {\n\t\tthis._cacheActive = shouldCache;\n\t}\n\t/**\n\t * Allows life cycle hooks to be called on the rendered content\n\t */\n\t@Input() tabContent: TemplateRef<any>;\n\t/**\n\t * Optional data for templates passed as implicit context\n\t */\n\t@Input() templateContext: any;\n\t/**\n\t * Value 'selected' to be emitted after a new `Tab` is selected.\n\t */\n\t@Output() selected: EventEmitter<void> = new EventEmitter<void>();\n\n\tget cacheActive() {\n\t\treturn this._cacheActive;\n\t}\n\n\tprotected _cacheActive = false;\n\n\t/**\n\t * Checks for custom heading template on initialization and updates the value\n\t * of the boolean 'headingIsTemplate'.\n\t */\n\tngOnInit() {\n\t\tif (this.heading instanceof TemplateRef) {\n\t\t\tthis.headingIsTemplate = true;\n\t\t}\n\t}\n\n\t/**\n\t * Emit the status of the `Tab`, specifically 'select' and 'selected' properties.\n\t */\n\tdoSelect() {\n\t\tthis.selected.emit();\n\t}\n\n\t/**\n\t* Returns value indicating whether this `Tab` should be rendered in a `TabPanel`.\n\t*/\n\tshouldRender() {\n\t\treturn this.active || this.cacheActive;\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n}\n",
54141
54109
  "assetsDirs": [],
54142
54110
  "styleUrlsData": "",
54143
54111
  "stylesData": "",
@@ -54162,7 +54130,7 @@
54162
54130
  }
54163
54131
  ],
54164
54132
  "returnType": "void",
54165
- "line": 116,
54133
+ "line": 117,
54166
54134
  "rawdescription": "\n\nSet to true to have Tab items cached and not reloaded on tab switching.\n",
54167
54135
  "description": "<p>Set to true to have Tab items cached and not reloaded on tab switching.</p>\n",
54168
54136
  "jsdoctags": [
@@ -54181,7 +54149,7 @@
54181
54149
  "name": "cacheActive",
54182
54150
  "type": "",
54183
54151
  "returnType": "",
54184
- "line": 136
54152
+ "line": 133
54185
54153
  }
54186
54154
  }
54187
54155
  }
@@ -75356,7 +75324,7 @@
75356
75324
  "name": "Basic",
75357
75325
  "ctype": "miscellaneous",
75358
75326
  "subtype": "variable",
75359
- "file": "src/tooltip/definition-tooptip.stories.ts",
75327
+ "file": "src/treeview/treeview.stories.ts",
75360
75328
  "deprecated": false,
75361
75329
  "deprecationMessage": "",
75362
75330
  "type": "",
@@ -75366,7 +75334,7 @@
75366
75334
  "name": "Basic",
75367
75335
  "ctype": "miscellaneous",
75368
75336
  "subtype": "variable",
75369
- "file": "src/tooltip/tooltip.stories.ts",
75337
+ "file": "src/tooltip/definition-tooptip.stories.ts",
75370
75338
  "deprecated": false,
75371
75339
  "deprecationMessage": "",
75372
75340
  "type": "",
@@ -75376,7 +75344,7 @@
75376
75344
  "name": "Basic",
75377
75345
  "ctype": "miscellaneous",
75378
75346
  "subtype": "variable",
75379
- "file": "src/treeview/treeview.stories.ts",
75347
+ "file": "src/tooltip/tooltip.stories.ts",
75380
75348
  "deprecated": false,
75381
75349
  "deprecationMessage": "",
75382
75350
  "type": "",
@@ -78218,31 +78186,31 @@
78218
78186
  "name": "Template",
78219
78187
  "ctype": "miscellaneous",
78220
78188
  "subtype": "variable",
78221
- "file": "src/tooltip/definition-tooptip.stories.ts",
78189
+ "file": "src/treeview/treeview.stories.ts",
78222
78190
  "deprecated": false,
78223
78191
  "deprecationMessage": "",
78224
78192
  "type": "",
78225
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"height:3000px\">\n\t\t\tScrolling will update the position of the popover:\n\t\t\t<div style=\"position: absolute; top: 500px; left: 500px;\">\n\t\t\t\t<p>Custom domains direct requests for your apps in this Cloud Foundry organization to a\n\t\t\t\t<cds-tooltip-definition\n\t\t\t\t\t[isOpen]=\"isOpen\"\n\t\t\t\t\t[caret]=\"caret\"\n\t\t\t\t\t[align]=\"align\"\n\t\t\t\t\t(onOpen)=\"onOpen($event)\"\n\t\t\t\t\t(onClose)=\"onClose($event)\"\n\t\t\t\t\t(isOpenChange)=\"isOpenChange($event)\"\n\t\t\t\t\t[description]=\"description\">\n\t\t\t\t\tURL\n\t\t\t\t</cds-tooltip-definition>\n\t\t\t\tthat you own. A custom domain can be a shared domain, a shared subdomain, or a shared domain and host.</p>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyles: [`\n\t\t.tooltip-trigger {\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: 0;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 2rem;\n\t\t\theight: 2rem;\n\t\t\tbackground: white;\n\t\t\tborder: 1px solid var(--cds-border-subtle);\n\t\t\tcursor: pointer;\n\t\t}\n\t\tsvg { fill: var(--cds-background-inverse); }\n\t`]\n})"
78193
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tree-view\n\t\t\tlabel=\"Tree view\"\n\t\t\tstyle=\"width: 18rem; display: block;\"\n\t\t\t[size]=\"size\"\n\t\t\t[tree]=\"tree\"\n\t\t\t[isMultiSelect]=\"isMultiSelect\"\n\t\t\t(select)=\"onSelect($event)\">\n\t\t</cds-tree-view>\n\t`\n})"
78226
78194
  },
78227
78195
  {
78228
78196
  "name": "Template",
78229
78197
  "ctype": "miscellaneous",
78230
78198
  "subtype": "variable",
78231
- "file": "src/tooltip/tooltip.stories.ts",
78199
+ "file": "src/tooltip/definition-tooptip.stories.ts",
78232
78200
  "deprecated": false,
78233
78201
  "deprecationMessage": "",
78234
78202
  "type": "",
78235
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tooltip\n\t\t\t[isOpen]=\"isOpen\"\n\t\t\t[caret]=\"caret\"\n\t\t\t[align]=\"align\"\n\t\t\t(onOpen)=\"onOpen($event)\"\n\t\t\t(onClose)=\"onClose($event)\"\n\t\t\t(isOpenChange)=\"isOpenChange($event)\"\n\t\t\t[description]=\"description\">\n\t\t\t<button type=\"button\" class=\"tooltip-trigger\">\n\t\t\t\t<svg preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 32 32\">\n\t\t\t\t\t<path d=\"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z\"></path>\n\t\t\t\t</svg>\n\t\t\t</button>\n\t\t</cds-tooltip>\n\t`,\n\tstyles: [`\n\t\t.tooltip-trigger {\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: 0;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 2rem;\n\t\t\theight: 2rem;\n\t\t\tbackground: white;\n\t\t\tborder: 1px solid var(--cds-border-subtle);\n\t\t\tcursor: pointer;\n\t\t}\n\t\tsvg { fill: var(--cds-background-inverse); }\n\t`]\n})"
78203
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"height:3000px\">\n\t\t\tScrolling will update the position of the popover:\n\t\t\t<div style=\"position: absolute; top: 500px; left: 500px;\">\n\t\t\t\t<p>Custom domains direct requests for your apps in this Cloud Foundry organization to a\n\t\t\t\t<cds-tooltip-definition\n\t\t\t\t\t[isOpen]=\"isOpen\"\n\t\t\t\t\t[caret]=\"caret\"\n\t\t\t\t\t[align]=\"align\"\n\t\t\t\t\t(onOpen)=\"onOpen($event)\"\n\t\t\t\t\t(onClose)=\"onClose($event)\"\n\t\t\t\t\t(isOpenChange)=\"isOpenChange($event)\"\n\t\t\t\t\t[description]=\"description\">\n\t\t\t\t\tURL\n\t\t\t\t</cds-tooltip-definition>\n\t\t\t\tthat you own. A custom domain can be a shared domain, a shared subdomain, or a shared domain and host.</p>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyles: [`\n\t\t.tooltip-trigger {\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: 0;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 2rem;\n\t\t\theight: 2rem;\n\t\t\tbackground: white;\n\t\t\tborder: 1px solid var(--cds-border-subtle);\n\t\t\tcursor: pointer;\n\t\t}\n\t\tsvg { fill: var(--cds-background-inverse); }\n\t`]\n})"
78236
78204
  },
78237
78205
  {
78238
78206
  "name": "Template",
78239
78207
  "ctype": "miscellaneous",
78240
78208
  "subtype": "variable",
78241
- "file": "src/treeview/treeview.stories.ts",
78209
+ "file": "src/tooltip/tooltip.stories.ts",
78242
78210
  "deprecated": false,
78243
78211
  "deprecationMessage": "",
78244
78212
  "type": "",
78245
- "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tree-view\n\t\t\tlabel=\"Tree view\"\n\t\t\tstyle=\"width: 18rem; display: block;\"\n\t\t\t[size]=\"size\"\n\t\t\t[tree]=\"tree\"\n\t\t\t[isMultiSelect]=\"isMultiSelect\"\n\t\t\t(select)=\"onSelect($event)\">\n\t\t</cds-tree-view>\n\t`\n})"
78213
+ "defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tooltip\n\t\t\t[isOpen]=\"isOpen\"\n\t\t\t[caret]=\"caret\"\n\t\t\t[align]=\"align\"\n\t\t\t(onOpen)=\"onOpen($event)\"\n\t\t\t(onClose)=\"onClose($event)\"\n\t\t\t(isOpenChange)=\"isOpenChange($event)\"\n\t\t\t[description]=\"description\">\n\t\t\t<button type=\"button\" class=\"tooltip-trigger\">\n\t\t\t\t<svg preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 32 32\">\n\t\t\t\t\t<path d=\"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z\"></path>\n\t\t\t\t</svg>\n\t\t\t</button>\n\t\t</cds-tooltip>\n\t`,\n\tstyles: [`\n\t\t.tooltip-trigger {\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: 0;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 2rem;\n\t\t\theight: 2rem;\n\t\t\tbackground: white;\n\t\t\tborder: 1px solid var(--cds-border-subtle);\n\t\t\tcursor: pointer;\n\t\t}\n\t\tsvg { fill: var(--cds-background-inverse); }\n\t`]\n})"
78246
78214
  },
78247
78215
  {
78248
78216
  "name": "Template",
@@ -92131,8 +92099,8 @@
92131
92099
  "type": "component",
92132
92100
  "linktype": "component",
92133
92101
  "name": "Tab",
92134
- "coveragePercent": 88,
92135
- "coverageCount": "16/18",
92102
+ "coveragePercent": 87,
92103
+ "coverageCount": "14/16",
92136
92104
  "status": "very-good"
92137
92105
  },
92138
92106
  {
@@ -348,8 +348,8 @@
348
348
  window['DOCS_OPTIONS'] = {"defaultName":"Docs","autodocs":true};</script><script type="module">import './sb-preview/runtime.js';
349
349
 
350
350
 
351
- import './runtime~main.d377732d.iframe.bundle.js';
351
+ import './runtime~main.de44916a.iframe.bundle.js';
352
352
 
353
353
  import './5478.5fc19af5.iframe.bundle.js';
354
354
 
355
- import './main.575135b9.iframe.bundle.js';</script></body></html>
355
+ import './main.9ce69c0b.iframe.bundle.js';</script></body></html>