carbon-components-angular 5.9.2 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/documentation/components/Accordion.html +1 -1
- package/docs/documentation/components/AccordionItem.html +1 -1
- package/docs/documentation/components/ActionableNotification.html +1 -1
- package/docs/documentation/components/AlertModal.html +1 -1
- package/docs/documentation/components/BaseIconButton.html +1 -1
- package/docs/documentation/components/BaseNotification.html +1 -1
- package/docs/documentation/components/BaseTabHeader.html +1 -1
- package/docs/documentation/components/Breadcrumb.html +1 -1
- package/docs/documentation/components/BreadcrumbItemComponent.html +1 -1
- package/docs/documentation/components/ButtonSet.html +1 -1
- package/docs/documentation/components/Checkbox.html +1 -1
- package/docs/documentation/components/ClickableTile.html +1 -1
- package/docs/documentation/components/CodeSnippet.html +1 -1
- package/docs/documentation/components/ComboBox.html +1 -1
- package/docs/documentation/components/ContentSwitcher.html +1 -1
- package/docs/documentation/components/ContextMenuComponent.html +1 -1
- package/docs/documentation/components/ContextMenuDividerComponent.html +1 -1
- package/docs/documentation/components/ContextMenuGroupComponent.html +1 -1
- package/docs/documentation/components/ContextMenuItemComponent.html +1 -1
- package/docs/documentation/components/DatePicker.html +1 -1
- package/docs/documentation/components/DatePickerInput.html +1 -1
- package/docs/documentation/components/Dialog.html +1 -1
- package/docs/documentation/components/Documentation.html +1 -1
- package/docs/documentation/components/Dropdown.html +1 -1
- package/docs/documentation/components/DropdownList.html +1 -1
- package/docs/documentation/components/ExpandableTile.html +196 -76
- package/docs/documentation/components/FileComponent.html +1 -1
- package/docs/documentation/components/FileUploader.html +1 -1
- package/docs/documentation/components/Hamburger.html +1 -1
- package/docs/documentation/components/Header.html +1 -1
- package/docs/documentation/components/HeaderAction.html +1 -1
- package/docs/documentation/components/HeaderGlobal.html +1 -1
- package/docs/documentation/components/HeaderItem.html +1 -1
- package/docs/documentation/components/HeaderMenu.html +1 -1
- package/docs/documentation/components/HeaderNavigation.html +1 -1
- package/docs/documentation/components/IconButton.html +1 -1
- package/docs/documentation/components/InlineLoading.html +1 -1
- package/docs/documentation/components/Label.html +1 -1
- package/docs/documentation/components/ListColumn.html +1 -1
- package/docs/documentation/components/ListHeader.html +1 -1
- package/docs/documentation/components/ListRow.html +1 -1
- package/docs/documentation/components/Loading.html +1 -1
- package/docs/documentation/components/Modal.html +1 -1
- package/docs/documentation/components/ModalFooter.html +1 -1
- package/docs/documentation/components/ModalHeader.html +1 -1
- package/docs/documentation/components/Notification.html +1 -1
- package/docs/documentation/components/NumberComponent.html +1 -1
- package/docs/documentation/components/OverflowMenu.html +1 -1
- package/docs/documentation/components/OverflowMenuCustomPane.html +1 -1
- package/docs/documentation/components/OverflowMenuOption.html +1 -1
- package/docs/documentation/components/OverflowMenuPane.html +1 -1
- package/docs/documentation/components/Overlay.html +1 -1
- package/docs/documentation/components/Pagination.html +1 -1
- package/docs/documentation/components/PaginationNav.html +1 -1
- package/docs/documentation/components/PaginationNavItem.html +1 -1
- package/docs/documentation/components/PaginationOverflow.html +1 -1
- package/docs/documentation/components/Panel.html +1 -1
- package/docs/documentation/components/Placeholder.html +1 -1
- package/docs/documentation/components/PopoverContent.html +1 -1
- package/docs/documentation/components/ProgressBar.html +1 -1
- package/docs/documentation/components/ProgressIndicator.html +1 -1
- package/docs/documentation/components/Radio.html +7 -17
- package/docs/documentation/components/RadioGroup.html +461 -99
- package/docs/documentation/components/Search.html +1 -1
- package/docs/documentation/components/Select.html +1 -1
- package/docs/documentation/components/SelectionTile.html +1 -1
- package/docs/documentation/components/SideNav.html +1 -1
- package/docs/documentation/components/SideNavItem.html +1 -1
- package/docs/documentation/components/SideNavMenu.html +1 -1
- package/docs/documentation/components/SkeletonPlaceholder.html +1 -1
- package/docs/documentation/components/SkeletonText.html +1 -1
- package/docs/documentation/components/Slider.html +1 -1
- package/docs/documentation/components/StructuredList.html +1 -1
- package/docs/documentation/components/SwitcherList.html +1 -1
- package/docs/documentation/components/SwitcherListItem.html +1 -1
- package/docs/documentation/components/Tab.html +1 -1
- package/docs/documentation/components/TabHeaderGroup.html +1 -1
- package/docs/documentation/components/TabHeaders.html +1 -1
- package/docs/documentation/components/TabSkeleton.html +1 -1
- package/docs/documentation/components/Table.html +1 -1
- package/docs/documentation/components/TableBody.html +1 -1
- package/docs/documentation/components/TableCheckbox.html +1 -1
- package/docs/documentation/components/TableContainer.html +1 -1
- package/docs/documentation/components/TableData.html +1 -1
- package/docs/documentation/components/TableExpandButton.html +1 -1
- package/docs/documentation/components/TableExpandedRow.html +1 -1
- package/docs/documentation/components/TableHead.html +1 -1
- package/docs/documentation/components/TableHeadCell.html +1 -1
- package/docs/documentation/components/TableHeadCheckbox.html +1 -1
- package/docs/documentation/components/TableHeadExpand.html +1 -1
- package/docs/documentation/components/TableHeader.html +1 -1
- package/docs/documentation/components/TableRadio.html +1 -1
- package/docs/documentation/components/TableRowComponent.html +1 -1
- package/docs/documentation/components/TableToolbar.html +1 -1
- package/docs/documentation/components/TableToolbarActions.html +1 -1
- package/docs/documentation/components/TableToolbarContent.html +1 -1
- package/docs/documentation/components/TableToolbarSearch.html +1 -1
- package/docs/documentation/components/Tabs.html +1 -1
- package/docs/documentation/components/Tag.html +1 -1
- package/docs/documentation/components/TagFilter.html +1 -1
- package/docs/documentation/components/TextInputLabelComponent.html +1 -1
- package/docs/documentation/components/TextareaLabelComponent.html +1 -1
- package/docs/documentation/components/Tile.html +1 -1
- package/docs/documentation/components/TileGroup.html +1 -1
- package/docs/documentation/components/TimePicker.html +1 -1
- package/docs/documentation/components/TimePickerSelect.html +1 -1
- package/docs/documentation/components/Toast.html +1 -1
- package/docs/documentation/components/Toggle.html +1 -1
- package/docs/documentation/components/Toggletip.html +1 -1
- package/docs/documentation/components/Tooltip.html +1 -1
- package/docs/documentation/components/TooltipDefinition.html +1 -1
- package/docs/documentation/coverage.html +30 -6
- package/docs/documentation/directives/ExpandableTileAboveFoldDirective.html +304 -0
- package/docs/documentation/directives/ExpandableTileBelowFoldDirective.html +304 -0
- package/docs/documentation/graph/dependencies.svg +2242 -2182
- package/docs/documentation/images/coverage-badge-documentation.svg +1 -1
- package/docs/documentation/interfaces/ExpandableTileTranslations.html +62 -24
- package/docs/documentation/js/menu-wc.js +23 -6
- package/docs/documentation/js/menu-wc_es5.js +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/CodeSnippetModule/dependencies.svg +4 -4
- package/docs/documentation/modules/CodeSnippetModule.html +4 -4
- package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ComboBoxModule.html +4 -4
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +20 -20
- package/docs/documentation/modules/DatePickerInputModule.html +20 -20
- package/docs/documentation/modules/DatePickerModule/dependencies.svg +38 -38
- package/docs/documentation/modules/DatePickerModule.html +38 -38
- package/docs/documentation/modules/DialogModule/dependencies.svg +34 -34
- package/docs/documentation/modules/DialogModule.html +34 -34
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/FileUploaderModule.html +4 -4
- package/docs/documentation/modules/GridModule/dependencies.svg +60 -60
- package/docs/documentation/modules/GridModule.html +60 -60
- package/docs/documentation/modules/NFormsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NFormsModule.html +4 -4
- package/docs/documentation/modules/NumberModule/dependencies.svg +25 -25
- package/docs/documentation/modules/NumberModule.html +25 -25
- package/docs/documentation/modules/ProgressBarModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressBarModule.html +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +61 -41
- package/docs/documentation/modules/RadioModule.html +74 -42
- package/docs/documentation/modules/SearchModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SearchModule.html +4 -4
- package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/TableModule/dependencies.svg +216 -216
- package/docs/documentation/modules/TableModule.html +216 -216
- package/docs/documentation/modules/TabsModule/dependencies.svg +68 -68
- package/docs/documentation/modules/TabsModule.html +68 -68
- package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ThemeModule.html +4 -4
- package/docs/documentation/modules/TilesModule/dependencies.svg +163 -103
- package/docs/documentation/modules/TilesModule.html +186 -103
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +26 -26
- package/docs/documentation/modules/TimePickerModule.html +26 -26
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TimePickerSelectModule.html +4 -4
- package/docs/documentation/modules/ToggleModule/dependencies.svg +38 -42
- package/docs/documentation/modules/ToggleModule.html +38 -42
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +39 -39
- package/docs/documentation/modules/ToggletipModule.html +39 -39
- package/docs/documentation/modules/TooltipModule/dependencies.svg +28 -28
- package/docs/documentation/modules/TooltipModule.html +28 -28
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation/overview.html +2243 -2183
- package/docs/documentation.json +413 -104
- package/docs/storybook/1895.69e2c275.iframe.bundle.js +1 -0
- package/docs/storybook/{795.2461bc53.iframe.bundle.js → 795.c2864771.iframe.bundle.js} +3 -3
- package/docs/storybook/{795.2461bc53.iframe.bundle.js.map → 795.c2864771.iframe.bundle.js.map} +1 -1
- package/docs/storybook/9558.8ae92105.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/index.json +1 -1
- package/docs/storybook/main.css +892 -248
- package/docs/storybook/main.e1ee5785.iframe.bundle.js +1 -0
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/radio-radio-stories.b67e94b9.iframe.bundle.js +1 -0
- package/docs/storybook/{runtime~main.453b0bbc.iframe.bundle.js → runtime~main.ceeada28.iframe.bundle.js} +1 -1
- package/docs/storybook/stories.json +1 -1
- package/docs/storybook/tiles-expandable-tile-stories.5a0ef8e1.iframe.bundle.js +1 -0
- package/esm2020/radio/radio-group.component.mjs +121 -21
- package/esm2020/radio/radio.component.mjs +3 -11
- package/esm2020/radio/radio.module.mjs +8 -4
- package/esm2020/tiles/expandable-tile-above.directive.mjs +19 -0
- package/esm2020/tiles/expandable-tile-below.directive.mjs +19 -0
- package/esm2020/tiles/expandable-tile.component.mjs +111 -41
- package/esm2020/tiles/index.mjs +3 -1
- package/esm2020/tiles/tiles.module.mjs +15 -1
- package/fesm2015/carbon-components-angular-radio.mjs +129 -33
- package/fesm2015/carbon-components-angular-radio.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-tiles.mjs +157 -41
- package/fesm2015/carbon-components-angular-tiles.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-radio.mjs +129 -33
- package/fesm2020/carbon-components-angular-radio.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-tiles.mjs +157 -41
- package/fesm2020/carbon-components-angular-tiles.mjs.map +1 -1
- package/package.json +1 -1
- package/radio/radio-group.component.d.ts +46 -24
- package/radio/radio.component.d.ts +1 -1
- package/radio/radio.module.d.ts +2 -1
- package/tiles/expandable-tile-above.directive.d.ts +26 -0
- package/tiles/expandable-tile-below.directive.d.ts +26 -0
- package/tiles/expandable-tile.component.d.ts +17 -10
- package/tiles/index.d.ts +2 -0
- package/tiles/tiles.module.d.ts +10 -7
- package/docs/storybook/1741.0cb8b504.iframe.bundle.js +0 -1
- package/docs/storybook/1895.d4241266.iframe.bundle.js +0 -1
- package/docs/storybook/main.93c601c0.iframe.bundle.js +0 -1
- package/docs/storybook/radio-radio-stories.6838bad5.iframe.bundle.js +0 -1
- package/docs/storybook/tiles-expandable-tile-stories.0a85fa2e.iframe.bundle.js +0 -1
- /package/docs/storybook/{795.2461bc53.iframe.bundle.js.LICENSE.txt → 795.c2864771.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/documentation.json
CHANGED
|
@@ -569,12 +569,12 @@
|
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
571
|
"name": "ExpandableTileTranslations",
|
|
572
|
-
"id": "interface-ExpandableTileTranslations-
|
|
572
|
+
"id": "interface-ExpandableTileTranslations-3bea5aa8a6f48228e64b1a305bec0cef5bcd6f09e5230d92f29c79ac251257c2faa478eef8e6bee2d6aea3e53ca2d4a9e924f83c6099bbeb6ef24f2210226a63",
|
|
573
573
|
"file": "src/tiles/expandable-tile.component.ts",
|
|
574
574
|
"deprecated": false,
|
|
575
575
|
"deprecationMessage": "",
|
|
576
576
|
"type": "interface",
|
|
577
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tElementRef,\n\
|
|
577
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tElementRef,\n\tAfterViewInit,\n\tViewChild\n} from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { merge } from \"carbon-components-angular/utils\";\n\nexport interface ExpandableTileTranslations {\n\tEXPAND: string;\n\tCOLLAPSE: string;\n}\n\n@Component({\n\tselector: \"cds-expandable-tile, ibm-expandable-tile\",\n\ttemplate: `\n\t\t<button\n\t\t\t*ngIf=\"!interactive\"\n\t\t\tclass=\"cds--tile cds--tile--expandable\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--tile--is-expanded' : expanded,\n\t\t\t\t'cds--tile--light': theme === 'light'\n\t\t\t}\"\n\t\t\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\t\t\ttype=\"button\"\n\t\t\t(click)=\"onClick()\"\n\t\t\t[attr.aria-expanded]=\"expanded\"\n\t\t\t[attr.title]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"expandableTileContent\"></ng-container>\n\t\t</button>\n\n\t\t<div\n\t\t\t*ngIf=\"interactive\"\n\t\t\tclass=\"cds--tile cds--tile--expandable cds--tile--expandable--interactive\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--tile--is-expanded' : expanded,\n\t\t\t\t'cds--tile--light': theme === 'light'\n\t\t\t}\"\n\t\t\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\t\t\t[attr.title]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t<ng-container *ngTemplateOutlet=\"expandableTileContent\"></ng-container>\n\t\t</div>\n\n\t\t<ng-template #chevronIcon>\n\t\t\t<svg cdsIcon=\"chevron--down\" size=\"16\"></svg>\n\t\t</ng-template>\n\n\t\t<ng-template #expandableTileContent>\n\t\t\t<div #container>\n\t\t\t\t<div class=\"cds--tile-content\">\n\t\t\t\t\t<ng-content select=\"[cdsAboveFold],[ibmAboveFold],.cds--tile-content__above-the-fold\"></ng-content>\n\t\t\t\t</div>\n\t\t\t\t<div *ngIf=\"!interactive\" class=\"cds--tile__chevron\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"chevronIcon\"></ng-container>\n\t\t\t\t</div>\n\t\t\t\t<button\n\t\t\t\t\t*ngIf=\"interactive\"\n\t\t\t\t\tclass=\"cds--tile__chevron cds--tile__chevron--interactive\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t(click)=\"onClick()\"\n\t\t\t\t\t[attr.aria-expanded]=\"expanded\"\n\t\t\t\t\t[attr.aria-label]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"chevronIcon\"></ng-container>\n\t\t\t\t</button>\n\t\t\t\t<div class=\"cds--tile-content\">\n\t\t\t\t\t<ng-content select=\"[cdsBelowFold],[ibmBelowFold],.cds--tile-content__below-the-fold\"></ng-content>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-template>\n\t`\n})\nexport class ExpandableTile implements AfterViewInit {\n\t/**\n\t * @deprecated since v5 - Use `cdsLayer` directive instead\n\t * Set to `\"light\"` to apply the light style\n\t */\n\t@Input() theme: \"light\" | \"dark\" = \"dark\";\n\n\t/**\n\t * Controls the expanded state\n\t */\n\t@Input() expanded = false;\n\t/**\n\t * Controls the interactive state\n\t */\n\t@Input() interactive = false;\n\t/**\n\t * Expects an object that contains some or all of:\n\t * ```\n\t * {\n\t *\t\t\"EXPAND\": \"Expand\",\n\t *\t\t\"COLLAPSE\": \"Collapse\",\n\t * }\n\t * ```\n\t */\n\t@Input()\n\tset translations(value: ExpandableTileTranslations) {\n\t\tconst valueWithDefaults = merge(this.i18n.getMultiple(\"TILES\"), value);\n\t\tthis.expand.override(valueWithDefaults.EXPAND);\n\t\tthis.collapse.override(valueWithDefaults.COLLAPSE);\n\t}\n\n\t@ViewChild(\"container\") tileContainer: ElementRef;\n\n\ttileMaxHeight = 0;\n\tcurrentExpandedHeight = 0;\n\n\texpand = this.i18n.getOverridable(\"TILES.EXPAND\");\n\tcollapse = this.i18n.getOverridable(\"TILES.COLLAPSE\");\n\n\tconstructor(protected i18n: I18n, protected element: ElementRef) {}\n\n\tngAfterViewInit() {\n\t\tthis.updateMaxHeight();\n\t}\n\n\tget expandedHeight() {\n\t\tconst tile = this.element.nativeElement.querySelector(\".cds--tile\");\n\t\tconst tilePadding\n\t\t\t= parseInt(getComputedStyle(tile).paddingBottom, 10) + parseInt(getComputedStyle(tile).paddingTop, 10);\n\t\tconst expandedHeight = this.tileMaxHeight + tilePadding;\n\t\tif (!isNaN(expandedHeight)) {\n\t\t\tthis.currentExpandedHeight = expandedHeight;\n\t\t}\n\t\treturn this.currentExpandedHeight;\n\t}\n\n\tupdateMaxHeight() {\n\t\tif (this.expanded) {\n\t\t\tthis.tileMaxHeight = this.tileContainer.nativeElement.getBoundingClientRect().height;\n\t\t} else {\n\t\t\tthis.tileMaxHeight = this.element.nativeElement.querySelector(\".cds--tile-content__above-the-fold\").getBoundingClientRect().height;\n\t\t}\n\t}\n\n\tonClick() {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.updateMaxHeight();\n\t}\n}\n",
|
|
578
578
|
"properties": [
|
|
579
579
|
{
|
|
580
580
|
"name": "COLLAPSE",
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
"type": "string",
|
|
584
584
|
"optional": false,
|
|
585
585
|
"description": "",
|
|
586
|
-
"line":
|
|
586
|
+
"line": 13
|
|
587
587
|
},
|
|
588
588
|
{
|
|
589
589
|
"name": "EXPAND",
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
"type": "string",
|
|
593
593
|
"optional": false,
|
|
594
594
|
"description": "",
|
|
595
|
-
"line":
|
|
595
|
+
"line": 12
|
|
596
596
|
}
|
|
597
597
|
],
|
|
598
598
|
"indexSignatures": [],
|
|
@@ -11908,6 +11908,108 @@
|
|
|
11908
11908
|
}
|
|
11909
11909
|
}
|
|
11910
11910
|
},
|
|
11911
|
+
{
|
|
11912
|
+
"name": "ExpandableTileAboveFoldDirective",
|
|
11913
|
+
"id": "directive-ExpandableTileAboveFoldDirective-76488cf603d86a274d230956261957c5ade24f39fe79710271ef84172215ad9b4fcbd290e42a8ff0a04c927bd994b9a2d3531af6f42737a692c9d21f090a0c47",
|
|
11914
|
+
"file": "src/tiles/expandable-tile-above.directive.ts",
|
|
11915
|
+
"type": "directive",
|
|
11916
|
+
"description": "",
|
|
11917
|
+
"rawdescription": "\n",
|
|
11918
|
+
"sourceCode": "import { Directive, HostBinding } from \"@angular/core\";\n\n@Directive({\n\tselector: \"[cdsAboveFold], [ibmAboveFold]\"\n})\nexport class ExpandableTileAboveFoldDirective {\n\t@HostBinding(\"class.cds--tile-content__above-the-fold\") aboveFold = true;\n}\n",
|
|
11919
|
+
"selector": "[cdsAboveFold], [ibmAboveFold]",
|
|
11920
|
+
"providers": [],
|
|
11921
|
+
"hostDirectives": [],
|
|
11922
|
+
"standalone": false,
|
|
11923
|
+
"inputsClass": [],
|
|
11924
|
+
"outputsClass": [],
|
|
11925
|
+
"deprecated": false,
|
|
11926
|
+
"deprecationMessage": "",
|
|
11927
|
+
"hostBindings": [
|
|
11928
|
+
{
|
|
11929
|
+
"name": "class.cds--tile-content__above-the-fold",
|
|
11930
|
+
"defaultValue": "true",
|
|
11931
|
+
"deprecated": false,
|
|
11932
|
+
"deprecationMessage": "",
|
|
11933
|
+
"line": 7,
|
|
11934
|
+
"type": "boolean",
|
|
11935
|
+
"decorators": []
|
|
11936
|
+
}
|
|
11937
|
+
],
|
|
11938
|
+
"hostListeners": [],
|
|
11939
|
+
"propertiesClass": [
|
|
11940
|
+
{
|
|
11941
|
+
"name": "aboveFold",
|
|
11942
|
+
"defaultValue": "true",
|
|
11943
|
+
"deprecated": false,
|
|
11944
|
+
"deprecationMessage": "",
|
|
11945
|
+
"type": "",
|
|
11946
|
+
"optional": false,
|
|
11947
|
+
"description": "",
|
|
11948
|
+
"line": 7,
|
|
11949
|
+
"decorators": [
|
|
11950
|
+
{
|
|
11951
|
+
"name": "HostBinding",
|
|
11952
|
+
"stringifiedArguments": "'class.cds--tile-content__above-the-fold'"
|
|
11953
|
+
}
|
|
11954
|
+
],
|
|
11955
|
+
"modifierKind": [
|
|
11956
|
+
167
|
|
11957
|
+
]
|
|
11958
|
+
}
|
|
11959
|
+
],
|
|
11960
|
+
"methodsClass": []
|
|
11961
|
+
},
|
|
11962
|
+
{
|
|
11963
|
+
"name": "ExpandableTileBelowFoldDirective",
|
|
11964
|
+
"id": "directive-ExpandableTileBelowFoldDirective-81506a53ba66ad095f5c4cb4df7affed7fe9043b071b744e8949d287403b6c804ff161e77d551327bccfb6604accd20f1667b46b8e4cbb7b02f1dc9a14ec86b2",
|
|
11965
|
+
"file": "src/tiles/expandable-tile-below.directive.ts",
|
|
11966
|
+
"type": "directive",
|
|
11967
|
+
"description": "",
|
|
11968
|
+
"rawdescription": "\n",
|
|
11969
|
+
"sourceCode": "import { Directive, HostBinding } from \"@angular/core\";\n\n@Directive({\n\tselector: \"[cdsBelowFold], [ibmBelowFold]\"\n})\nexport class ExpandableTileBelowFoldDirective {\n\t@HostBinding(\"class.cds--tile-content__below-the-fold\") belowFold = true;\n}\n",
|
|
11970
|
+
"selector": "[cdsBelowFold], [ibmBelowFold]",
|
|
11971
|
+
"providers": [],
|
|
11972
|
+
"hostDirectives": [],
|
|
11973
|
+
"standalone": false,
|
|
11974
|
+
"inputsClass": [],
|
|
11975
|
+
"outputsClass": [],
|
|
11976
|
+
"deprecated": false,
|
|
11977
|
+
"deprecationMessage": "",
|
|
11978
|
+
"hostBindings": [
|
|
11979
|
+
{
|
|
11980
|
+
"name": "class.cds--tile-content__below-the-fold",
|
|
11981
|
+
"defaultValue": "true",
|
|
11982
|
+
"deprecated": false,
|
|
11983
|
+
"deprecationMessage": "",
|
|
11984
|
+
"line": 7,
|
|
11985
|
+
"type": "boolean",
|
|
11986
|
+
"decorators": []
|
|
11987
|
+
}
|
|
11988
|
+
],
|
|
11989
|
+
"hostListeners": [],
|
|
11990
|
+
"propertiesClass": [
|
|
11991
|
+
{
|
|
11992
|
+
"name": "belowFold",
|
|
11993
|
+
"defaultValue": "true",
|
|
11994
|
+
"deprecated": false,
|
|
11995
|
+
"deprecationMessage": "",
|
|
11996
|
+
"type": "",
|
|
11997
|
+
"optional": false,
|
|
11998
|
+
"description": "",
|
|
11999
|
+
"line": 7,
|
|
12000
|
+
"decorators": [
|
|
12001
|
+
{
|
|
12002
|
+
"name": "HostBinding",
|
|
12003
|
+
"stringifiedArguments": "'class.cds--tile-content__below-the-fold'"
|
|
12004
|
+
}
|
|
12005
|
+
],
|
|
12006
|
+
"modifierKind": [
|
|
12007
|
+
167
|
|
12008
|
+
]
|
|
12009
|
+
}
|
|
12010
|
+
],
|
|
12011
|
+
"methodsClass": []
|
|
12012
|
+
},
|
|
11911
12013
|
{
|
|
11912
12014
|
"name": "ExpandedRowHover",
|
|
11913
12015
|
"id": "directive-ExpandedRowHover-6c74402214f5db85133454ab0679f5aaf513b970abac4baf4355258b3a0853ac623287e099bed45dc35a51bbc957f278da8dae9167fda32e0b31f1b5582cb1bf",
|
|
@@ -28547,7 +28649,7 @@
|
|
|
28547
28649
|
},
|
|
28548
28650
|
{
|
|
28549
28651
|
"name": "ExpandableTile",
|
|
28550
|
-
"id": "component-ExpandableTile-
|
|
28652
|
+
"id": "component-ExpandableTile-3bea5aa8a6f48228e64b1a305bec0cef5bcd6f09e5230d92f29c79ac251257c2faa478eef8e6bee2d6aea3e53ca2d4a9e924f83c6099bbeb6ef24f2210226a63",
|
|
28551
28653
|
"file": "src/tiles/expandable-tile.component.ts",
|
|
28552
28654
|
"encapsulation": [],
|
|
28553
28655
|
"entryComponents": [],
|
|
@@ -28557,7 +28659,7 @@
|
|
|
28557
28659
|
"selector": "cds-expandable-tile, ibm-expandable-tile",
|
|
28558
28660
|
"styleUrls": [],
|
|
28559
28661
|
"styles": [],
|
|
28560
|
-
"template": "<button\n\tclass=\"cds--tile cds--tile--expandable\"\n\t[ngClass]=\"{\n\t\t'cds--tile--is-expanded' : expanded,\n\t\t'cds--tile--light': theme === 'light'\n\t}\"\n\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\ttype=\"button\"\n\t(click)=\"onClick()\"
|
|
28662
|
+
"template": "<button\n\t*ngIf=\"!interactive\"\n\tclass=\"cds--tile cds--tile--expandable\"\n\t[ngClass]=\"{\n\t\t'cds--tile--is-expanded' : expanded,\n\t\t'cds--tile--light': theme === 'light'\n\t}\"\n\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\ttype=\"button\"\n\t(click)=\"onClick()\"\n\t[attr.aria-expanded]=\"expanded\"\n\t[attr.title]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t<ng-container *ngTemplateOutlet=\"expandableTileContent\"></ng-container>\n</button>\n\n<div\n\t*ngIf=\"interactive\"\n\tclass=\"cds--tile cds--tile--expandable cds--tile--expandable--interactive\"\n\t[ngClass]=\"{\n\t\t'cds--tile--is-expanded' : expanded,\n\t\t'cds--tile--light': theme === 'light'\n\t}\"\n\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\t[attr.title]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t<ng-container *ngTemplateOutlet=\"expandableTileContent\"></ng-container>\n</div>\n\n<ng-template #chevronIcon>\n\t<svg cdsIcon=\"chevron--down\" size=\"16\"></svg>\n</ng-template>\n\n<ng-template #expandableTileContent>\n\t<div #container>\n\t\t<div class=\"cds--tile-content\">\n\t\t\t<ng-content select=\"[cdsAboveFold],[ibmAboveFold],.cds--tile-content__above-the-fold\"></ng-content>\n\t\t</div>\n\t\t<div *ngIf=\"!interactive\" class=\"cds--tile__chevron\">\n\t\t\t<ng-container *ngTemplateOutlet=\"chevronIcon\"></ng-container>\n\t\t</div>\n\t\t<button\n\t\t\t*ngIf=\"interactive\"\n\t\t\tclass=\"cds--tile__chevron cds--tile__chevron--interactive\"\n\t\t\ttype=\"button\"\n\t\t\t(click)=\"onClick()\"\n\t\t\t[attr.aria-expanded]=\"expanded\"\n\t\t\t[attr.aria-label]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t<ng-container *ngTemplateOutlet=\"chevronIcon\"></ng-container>\n\t\t</button>\n\t\t<div class=\"cds--tile-content\">\n\t\t\t<ng-content select=\"[cdsBelowFold],[ibmBelowFold],.cds--tile-content__below-the-fold\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n\t",
|
|
28561
28663
|
"templateUrl": [],
|
|
28562
28664
|
"viewProviders": [],
|
|
28563
28665
|
"hostDirectives": [],
|
|
@@ -28567,7 +28669,20 @@
|
|
|
28567
28669
|
"defaultValue": "false",
|
|
28568
28670
|
"deprecated": false,
|
|
28569
28671
|
"deprecationMessage": "",
|
|
28570
|
-
"
|
|
28672
|
+
"rawdescription": "\n\nControls the expanded state\n",
|
|
28673
|
+
"description": "<p>Controls the expanded state</p>\n",
|
|
28674
|
+
"line": 84,
|
|
28675
|
+
"type": "boolean",
|
|
28676
|
+
"decorators": []
|
|
28677
|
+
},
|
|
28678
|
+
{
|
|
28679
|
+
"name": "interactive",
|
|
28680
|
+
"defaultValue": "false",
|
|
28681
|
+
"deprecated": false,
|
|
28682
|
+
"deprecationMessage": "",
|
|
28683
|
+
"rawdescription": "\n\nControls the interactive state\n",
|
|
28684
|
+
"description": "<p>Controls the interactive state</p>\n",
|
|
28685
|
+
"line": 88,
|
|
28571
28686
|
"type": "boolean",
|
|
28572
28687
|
"decorators": []
|
|
28573
28688
|
},
|
|
@@ -28578,15 +28693,15 @@
|
|
|
28578
28693
|
"deprecationMessage": "since v5 - Use `cdsLayer` directive instead\nSet to `\"light\"` to apply the light style",
|
|
28579
28694
|
"jsdoctags": [
|
|
28580
28695
|
{
|
|
28581
|
-
"pos":
|
|
28582
|
-
"end":
|
|
28696
|
+
"pos": 2306,
|
|
28697
|
+
"end": 2410,
|
|
28583
28698
|
"flags": 8421376,
|
|
28584
28699
|
"modifierFlagsCache": 0,
|
|
28585
28700
|
"transformFlags": 0,
|
|
28586
28701
|
"kind": 334,
|
|
28587
28702
|
"tagName": {
|
|
28588
|
-
"pos":
|
|
28589
|
-
"end":
|
|
28703
|
+
"pos": 2307,
|
|
28704
|
+
"end": 2317,
|
|
28590
28705
|
"flags": 8421376,
|
|
28591
28706
|
"modifierFlagsCache": 0,
|
|
28592
28707
|
"transformFlags": 0,
|
|
@@ -28596,7 +28711,7 @@
|
|
|
28596
28711
|
"comment": "<p>since v5 - Use <code>cdsLayer</code> directive instead\nSet to <code>"light"</code> to apply the light style</p>\n"
|
|
28597
28712
|
}
|
|
28598
28713
|
],
|
|
28599
|
-
"line":
|
|
28714
|
+
"line": 79,
|
|
28600
28715
|
"type": "\"light\" | \"dark\"",
|
|
28601
28716
|
"decorators": []
|
|
28602
28717
|
},
|
|
@@ -28606,7 +28721,7 @@
|
|
|
28606
28721
|
"deprecationMessage": "",
|
|
28607
28722
|
"rawdescription": "\n\nExpects an object that contains some or all of:\n```\n{\n\t\t\"EXPAND\": \"Expand\",\n\t\t\"COLLAPSE\": \"Collapse\",\n}\n```\n",
|
|
28608
28723
|
"description": "<p>Expects an object that contains some or all of:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-none\">{\n "EXPAND": "Expand",\n "COLLAPSE": "Collapse",\n}</code></pre></div>",
|
|
28609
|
-
"line":
|
|
28724
|
+
"line": 99,
|
|
28610
28725
|
"type": "ExpandableTileTranslations",
|
|
28611
28726
|
"decorators": []
|
|
28612
28727
|
}
|
|
@@ -28621,7 +28736,7 @@
|
|
|
28621
28736
|
"type": "",
|
|
28622
28737
|
"optional": false,
|
|
28623
28738
|
"description": "",
|
|
28624
|
-
"line":
|
|
28739
|
+
"line": 111
|
|
28625
28740
|
},
|
|
28626
28741
|
{
|
|
28627
28742
|
"name": "currentExpandedHeight",
|
|
@@ -28631,27 +28746,35 @@
|
|
|
28631
28746
|
"type": "number",
|
|
28632
28747
|
"optional": false,
|
|
28633
28748
|
"description": "",
|
|
28634
|
-
"line":
|
|
28749
|
+
"line": 108
|
|
28635
28750
|
},
|
|
28636
28751
|
{
|
|
28637
|
-
"name": "
|
|
28638
|
-
"defaultValue": "this.
|
|
28752
|
+
"name": "expand",
|
|
28753
|
+
"defaultValue": "this.i18n.getOverridable(\"TILES.EXPAND\")",
|
|
28639
28754
|
"deprecated": false,
|
|
28640
28755
|
"deprecationMessage": "",
|
|
28641
28756
|
"type": "",
|
|
28642
28757
|
"optional": false,
|
|
28643
28758
|
"description": "",
|
|
28644
|
-
"line":
|
|
28759
|
+
"line": 110
|
|
28645
28760
|
},
|
|
28646
28761
|
{
|
|
28647
|
-
"name": "
|
|
28648
|
-
"defaultValue": "this.i18n.getOverridable(\"TILES.EXPAND\")",
|
|
28762
|
+
"name": "tileContainer",
|
|
28649
28763
|
"deprecated": false,
|
|
28650
28764
|
"deprecationMessage": "",
|
|
28651
|
-
"type": "",
|
|
28765
|
+
"type": "ElementRef",
|
|
28652
28766
|
"optional": false,
|
|
28653
28767
|
"description": "",
|
|
28654
|
-
"line":
|
|
28768
|
+
"line": 105,
|
|
28769
|
+
"decorators": [
|
|
28770
|
+
{
|
|
28771
|
+
"name": "ViewChild",
|
|
28772
|
+
"stringifiedArguments": "'container'"
|
|
28773
|
+
}
|
|
28774
|
+
],
|
|
28775
|
+
"modifierKind": [
|
|
28776
|
+
167
|
|
28777
|
+
]
|
|
28655
28778
|
},
|
|
28656
28779
|
{
|
|
28657
28780
|
"name": "tileMaxHeight",
|
|
@@ -28661,7 +28784,7 @@
|
|
|
28661
28784
|
"type": "number",
|
|
28662
28785
|
"optional": false,
|
|
28663
28786
|
"description": "",
|
|
28664
|
-
"line":
|
|
28787
|
+
"line": 107
|
|
28665
28788
|
}
|
|
28666
28789
|
],
|
|
28667
28790
|
"methodsClass": [
|
|
@@ -28671,7 +28794,7 @@
|
|
|
28671
28794
|
"optional": false,
|
|
28672
28795
|
"returnType": "void",
|
|
28673
28796
|
"typeParameters": [],
|
|
28674
|
-
"line":
|
|
28797
|
+
"line": 138,
|
|
28675
28798
|
"deprecated": false,
|
|
28676
28799
|
"deprecationMessage": ""
|
|
28677
28800
|
},
|
|
@@ -28681,7 +28804,7 @@
|
|
|
28681
28804
|
"optional": false,
|
|
28682
28805
|
"returnType": "void",
|
|
28683
28806
|
"typeParameters": [],
|
|
28684
|
-
"line":
|
|
28807
|
+
"line": 130,
|
|
28685
28808
|
"deprecated": false,
|
|
28686
28809
|
"deprecationMessage": ""
|
|
28687
28810
|
}
|
|
@@ -28695,7 +28818,7 @@
|
|
|
28695
28818
|
"description": "",
|
|
28696
28819
|
"rawdescription": "\n",
|
|
28697
28820
|
"type": "component",
|
|
28698
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tElementRef,\n\
|
|
28821
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tElementRef,\n\tAfterViewInit,\n\tViewChild\n} from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { merge } from \"carbon-components-angular/utils\";\n\nexport interface ExpandableTileTranslations {\n\tEXPAND: string;\n\tCOLLAPSE: string;\n}\n\n@Component({\n\tselector: \"cds-expandable-tile, ibm-expandable-tile\",\n\ttemplate: `\n\t\t<button\n\t\t\t*ngIf=\"!interactive\"\n\t\t\tclass=\"cds--tile cds--tile--expandable\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--tile--is-expanded' : expanded,\n\t\t\t\t'cds--tile--light': theme === 'light'\n\t\t\t}\"\n\t\t\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\t\t\ttype=\"button\"\n\t\t\t(click)=\"onClick()\"\n\t\t\t[attr.aria-expanded]=\"expanded\"\n\t\t\t[attr.title]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"expandableTileContent\"></ng-container>\n\t\t</button>\n\n\t\t<div\n\t\t\t*ngIf=\"interactive\"\n\t\t\tclass=\"cds--tile cds--tile--expandable cds--tile--expandable--interactive\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--tile--is-expanded' : expanded,\n\t\t\t\t'cds--tile--light': theme === 'light'\n\t\t\t}\"\n\t\t\t[ngStyle]=\"{'max-height': expandedHeight + 'px'}\"\n\t\t\t[attr.title]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t<ng-container *ngTemplateOutlet=\"expandableTileContent\"></ng-container>\n\t\t</div>\n\n\t\t<ng-template #chevronIcon>\n\t\t\t<svg cdsIcon=\"chevron--down\" size=\"16\"></svg>\n\t\t</ng-template>\n\n\t\t<ng-template #expandableTileContent>\n\t\t\t<div #container>\n\t\t\t\t<div class=\"cds--tile-content\">\n\t\t\t\t\t<ng-content select=\"[cdsAboveFold],[ibmAboveFold],.cds--tile-content__above-the-fold\"></ng-content>\n\t\t\t\t</div>\n\t\t\t\t<div *ngIf=\"!interactive\" class=\"cds--tile__chevron\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"chevronIcon\"></ng-container>\n\t\t\t\t</div>\n\t\t\t\t<button\n\t\t\t\t\t*ngIf=\"interactive\"\n\t\t\t\t\tclass=\"cds--tile__chevron cds--tile__chevron--interactive\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t(click)=\"onClick()\"\n\t\t\t\t\t[attr.aria-expanded]=\"expanded\"\n\t\t\t\t\t[attr.aria-label]=\"(expanded ? collapse.subject : expand.subject) | async\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"chevronIcon\"></ng-container>\n\t\t\t\t</button>\n\t\t\t\t<div class=\"cds--tile-content\">\n\t\t\t\t\t<ng-content select=\"[cdsBelowFold],[ibmBelowFold],.cds--tile-content__below-the-fold\"></ng-content>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-template>\n\t`\n})\nexport class ExpandableTile implements AfterViewInit {\n\t/**\n\t * @deprecated since v5 - Use `cdsLayer` directive instead\n\t * Set to `\"light\"` to apply the light style\n\t */\n\t@Input() theme: \"light\" | \"dark\" = \"dark\";\n\n\t/**\n\t * Controls the expanded state\n\t */\n\t@Input() expanded = false;\n\t/**\n\t * Controls the interactive state\n\t */\n\t@Input() interactive = false;\n\t/**\n\t * Expects an object that contains some or all of:\n\t * ```\n\t * {\n\t *\t\t\"EXPAND\": \"Expand\",\n\t *\t\t\"COLLAPSE\": \"Collapse\",\n\t * }\n\t * ```\n\t */\n\t@Input()\n\tset translations(value: ExpandableTileTranslations) {\n\t\tconst valueWithDefaults = merge(this.i18n.getMultiple(\"TILES\"), value);\n\t\tthis.expand.override(valueWithDefaults.EXPAND);\n\t\tthis.collapse.override(valueWithDefaults.COLLAPSE);\n\t}\n\n\t@ViewChild(\"container\") tileContainer: ElementRef;\n\n\ttileMaxHeight = 0;\n\tcurrentExpandedHeight = 0;\n\n\texpand = this.i18n.getOverridable(\"TILES.EXPAND\");\n\tcollapse = this.i18n.getOverridable(\"TILES.COLLAPSE\");\n\n\tconstructor(protected i18n: I18n, protected element: ElementRef) {}\n\n\tngAfterViewInit() {\n\t\tthis.updateMaxHeight();\n\t}\n\n\tget expandedHeight() {\n\t\tconst tile = this.element.nativeElement.querySelector(\".cds--tile\");\n\t\tconst tilePadding\n\t\t\t= parseInt(getComputedStyle(tile).paddingBottom, 10) + parseInt(getComputedStyle(tile).paddingTop, 10);\n\t\tconst expandedHeight = this.tileMaxHeight + tilePadding;\n\t\tif (!isNaN(expandedHeight)) {\n\t\t\tthis.currentExpandedHeight = expandedHeight;\n\t\t}\n\t\treturn this.currentExpandedHeight;\n\t}\n\n\tupdateMaxHeight() {\n\t\tif (this.expanded) {\n\t\t\tthis.tileMaxHeight = this.tileContainer.nativeElement.getBoundingClientRect().height;\n\t\t} else {\n\t\t\tthis.tileMaxHeight = this.element.nativeElement.querySelector(\".cds--tile-content__above-the-fold\").getBoundingClientRect().height;\n\t\t}\n\t}\n\n\tonClick() {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.updateMaxHeight();\n\t}\n}\n",
|
|
28699
28822
|
"assetsDirs": [],
|
|
28700
28823
|
"styleUrlsData": "",
|
|
28701
28824
|
"stylesData": "",
|
|
@@ -28712,13 +28835,13 @@
|
|
|
28712
28835
|
"deprecationMessage": ""
|
|
28713
28836
|
},
|
|
28714
28837
|
{
|
|
28715
|
-
"name": "
|
|
28838
|
+
"name": "element",
|
|
28716
28839
|
"type": "ElementRef",
|
|
28717
28840
|
"deprecated": false,
|
|
28718
28841
|
"deprecationMessage": ""
|
|
28719
28842
|
}
|
|
28720
28843
|
],
|
|
28721
|
-
"line":
|
|
28844
|
+
"line": 111,
|
|
28722
28845
|
"jsdoctags": [
|
|
28723
28846
|
{
|
|
28724
28847
|
"name": "i18n",
|
|
@@ -28730,7 +28853,7 @@
|
|
|
28730
28853
|
}
|
|
28731
28854
|
},
|
|
28732
28855
|
{
|
|
28733
|
-
"name": "
|
|
28856
|
+
"name": "element",
|
|
28734
28857
|
"type": "ElementRef",
|
|
28735
28858
|
"deprecated": false,
|
|
28736
28859
|
"deprecationMessage": "",
|
|
@@ -28741,7 +28864,7 @@
|
|
|
28741
28864
|
]
|
|
28742
28865
|
},
|
|
28743
28866
|
"implements": [
|
|
28744
|
-
"
|
|
28867
|
+
"AfterViewInit"
|
|
28745
28868
|
],
|
|
28746
28869
|
"accessors": {
|
|
28747
28870
|
"translations": {
|
|
@@ -28760,7 +28883,7 @@
|
|
|
28760
28883
|
}
|
|
28761
28884
|
],
|
|
28762
28885
|
"returnType": "void",
|
|
28763
|
-
"line":
|
|
28886
|
+
"line": 99,
|
|
28764
28887
|
"rawdescription": "\n\nExpects an object that contains some or all of:\n```\n{\n\t\t\"EXPAND\": \"Expand\",\n\t\t\"COLLAPSE\": \"Collapse\",\n}\n```\n",
|
|
28765
28888
|
"description": "<p>Expects an object that contains some or all of:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-none\">{\n "EXPAND": "Expand",\n "COLLAPSE": "Collapse",\n}</code></pre></div>",
|
|
28766
28889
|
"jsdoctags": [
|
|
@@ -28782,7 +28905,7 @@
|
|
|
28782
28905
|
"name": "expandedHeight",
|
|
28783
28906
|
"type": "",
|
|
28784
28907
|
"returnType": "",
|
|
28785
|
-
"line":
|
|
28908
|
+
"line": 119
|
|
28786
28909
|
}
|
|
28787
28910
|
}
|
|
28788
28911
|
}
|
|
@@ -41128,7 +41251,7 @@
|
|
|
41128
41251
|
},
|
|
41129
41252
|
{
|
|
41130
41253
|
"name": "Radio",
|
|
41131
|
-
"id": "component-Radio-
|
|
41254
|
+
"id": "component-Radio-c8843624caafee7784002695d7c9e979bc0495b0e346d046ad569302a7e7448065485546a2b71d719a295a1c29cc1bb163df73988f28ab7b47da0d3b35fb3de2",
|
|
41132
41255
|
"file": "src/radio/radio.component.ts",
|
|
41133
41256
|
"encapsulation": [],
|
|
41134
41257
|
"entryComponents": [],
|
|
@@ -41142,14 +41265,13 @@
|
|
|
41142
41265
|
"selector": "cds-radio, ibm-radio",
|
|
41143
41266
|
"styleUrls": [],
|
|
41144
41267
|
"styles": [],
|
|
41145
|
-
"template": "<input\n\t*ngIf=\"!skeleton\"\n\tclass=\"cds--radio-button\"\n\ttype=\"radio\"\n\t[checked]=\"checked\"\n\t[disabled]=\"disabled || disabledFromGroup\"\n\t[name]=\"name\"\n\t[id]=\"id\"\n\t[required]=\"required\"\n\t[value]=\"value\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t(change)=\"onChange($event)\"\n\t(click)=\"onClick($event)\">\n<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n<label\n\tclass=\"cds--radio-button__label\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[ngClass]=\"{\n\t\t'cds--skeleton': skeleton\n\t}\"\n\t[for]=\"id\"\n\tid=\"label-{{id}}\">\n\t<span class=\"cds--radio-button__appearance\"></span>\n\t<ng-content></ng-content>\n</label>\n\t",
|
|
41268
|
+
"template": "<input\n\t*ngIf=\"!skeleton\"\n\tclass=\"cds--radio-button\"\n\ttype=\"radio\"\n\t[checked]=\"checked\"\n\t[disabled]=\"disabled || disabledFromGroup\"\n\t[name]=\"name\"\n\t[id]=\"id\"\n\t[required]=\"required\"\n\t[attr.value]=\"value\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t(change)=\"onChange($event)\"\n\t(click)=\"onClick($event)\">\n<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n<label\n\tclass=\"cds--radio-button__label\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[ngClass]=\"{\n\t\t'cds--skeleton': skeleton\n\t}\"\n\t[for]=\"id\"\n\tid=\"label-{{id}}\">\n\t<span class=\"cds--radio-button__appearance\"></span>\n\t<ng-content></ng-content>\n</label>\n\t",
|
|
41146
41269
|
"templateUrl": [],
|
|
41147
41270
|
"viewProviders": [],
|
|
41148
41271
|
"hostDirectives": [],
|
|
41149
41272
|
"inputsClass": [
|
|
41150
41273
|
{
|
|
41151
41274
|
"name": "ariaLabel",
|
|
41152
|
-
"defaultValue": "\"\"",
|
|
41153
41275
|
"deprecated": false,
|
|
41154
41276
|
"deprecationMessage": "",
|
|
41155
41277
|
"rawdescription": "\n\nUsed to set the `aria-label` attribute on the input label.\n",
|
|
@@ -41237,13 +41359,12 @@
|
|
|
41237
41359
|
},
|
|
41238
41360
|
{
|
|
41239
41361
|
"name": "value",
|
|
41240
|
-
"defaultValue": "\"\"",
|
|
41241
41362
|
"deprecated": false,
|
|
41242
41363
|
"deprecationMessage": "",
|
|
41243
41364
|
"rawdescription": "\n\nThe value of the `Radio`.\n",
|
|
41244
41365
|
"description": "<p>The value of the <code>Radio</code>.</p>\n",
|
|
41245
41366
|
"line": 98,
|
|
41246
|
-
"type": "
|
|
41367
|
+
"type": "any",
|
|
41247
41368
|
"decorators": []
|
|
41248
41369
|
}
|
|
41249
41370
|
],
|
|
@@ -41404,8 +41525,8 @@
|
|
|
41404
41525
|
"jsdoctags": [
|
|
41405
41526
|
{
|
|
41406
41527
|
"name": {
|
|
41407
|
-
"pos":
|
|
41408
|
-
"end":
|
|
41528
|
+
"pos": 3186,
|
|
41529
|
+
"end": 3188,
|
|
41409
41530
|
"flags": 8421376,
|
|
41410
41531
|
"modifierFlagsCache": 0,
|
|
41411
41532
|
"transformFlags": 0,
|
|
@@ -41424,8 +41545,8 @@
|
|
|
41424
41545
|
}
|
|
41425
41546
|
],
|
|
41426
41547
|
"tagName": {
|
|
41427
|
-
"pos":
|
|
41428
|
-
"end":
|
|
41548
|
+
"pos": 3180,
|
|
41549
|
+
"end": 3185,
|
|
41429
41550
|
"flags": 8421376,
|
|
41430
41551
|
"modifierFlagsCache": 0,
|
|
41431
41552
|
"transformFlags": 0,
|
|
@@ -41492,7 +41613,7 @@
|
|
|
41492
41613
|
"description": "<p>class: Radio (extends Checkbox)</p>\n<p>selector: <code>n-radio</code></p>\n<p>source: <code>src/forms/radio.component.ts</code></p>\n<div><pre class=\"line-numbers\"><code class=\"language-html\"> <cds-radio [(ngModel)]="radioState">Radio</cds-radio></code></pre></div><p>Also see: <a href=\"#cds-radio-group\"><code>RadioGroup</code></a></p>\n",
|
|
41493
41614
|
"rawdescription": "\n\nclass: Radio (extends Checkbox)\n\nselector: `n-radio`\n\nsource: `src/forms/radio.component.ts`\n\n```html\n\t<cds-radio [(ngModel)]=\"radioState\">Radio</cds-radio>\n```\n\nAlso see: [`RadioGroup`](#cds-radio-group)\n",
|
|
41494
41615
|
"type": "component",
|
|
41495
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * class: Radio (extends Checkbox)\n *\n * selector: `n-radio`\n *\n * source: `src/forms/radio.component.ts`\n *\n * ```html\n *\t<cds-radio [(ngModel)]=\"radioState\">Radio</cds-radio>\n * ```\n *\n * Also see: [`RadioGroup`](#cds-radio-group)\n */\n@Component({\n\tselector: \"cds-radio, ibm-radio\",\n\ttemplate: `\n\t\t<input\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tclass=\"cds--radio-button\"\n\t\t\ttype=\"radio\"\n\t\t\t[checked]=\"checked\"\n\t\t\t[disabled]=\"disabled || disabledFromGroup\"\n\t\t\t[name]=\"name\"\n\t\t\t[id]=\"id\"\n\t\t\t[required]=\"required\"\n\t\t\t[value]=\"value\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t(change)=\"onChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n\t\t<label\n\t\t\tclass=\"cds--radio-button__label\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton': skeleton\n\t\t\t}\"\n\t\t\t[for]=\"id\"\n\t\t\tid=\"label-{{id}}\">\n\t\t\t<span class=\"cds--radio-button__appearance\"></span>\n\t\t\t<ng-content></ng-content>\n\t\t</label>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Radio,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Radio {\n\t/**\n\t * Used to dynamically create unique ids for the `Radio`.\n\t */\n\tstatic radioCount = 0;\n\n\t@Input() checked = false;\n\n\t@Input() name = \"\";\n\n\t@Input() disabled = false;\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t@Input() set ariaLabelledby(value: string) {\n\t\tthis._labelledby = value;\n\t}\n\n\tget ariaLabelledby() {\n\t\tif (this._labelledby) {\n\t\t\treturn this._labelledby;\n\t\t}\n\t\treturn `label-${this.id}`;\n\t}\n\n\t/**\n\t * Used to set the `aria-label` attribute on the input label.\n\t */\n\t@Input() ariaLabel
|
|
41616
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * class: Radio (extends Checkbox)\n *\n * selector: `n-radio`\n *\n * source: `src/forms/radio.component.ts`\n *\n * ```html\n *\t<cds-radio [(ngModel)]=\"radioState\">Radio</cds-radio>\n * ```\n *\n * Also see: [`RadioGroup`](#cds-radio-group)\n */\n@Component({\n\tselector: \"cds-radio, ibm-radio\",\n\ttemplate: `\n\t\t<input\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tclass=\"cds--radio-button\"\n\t\t\ttype=\"radio\"\n\t\t\t[checked]=\"checked\"\n\t\t\t[disabled]=\"disabled || disabledFromGroup\"\n\t\t\t[name]=\"name\"\n\t\t\t[id]=\"id\"\n\t\t\t[required]=\"required\"\n\t\t\t[attr.value]=\"value\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t(change)=\"onChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t<div *ngIf=\"skeleton\" class=\"cds--radio-button cds--skeleton\"></div>\n\t\t<label\n\t\t\tclass=\"cds--radio-button__label\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--skeleton': skeleton\n\t\t\t}\"\n\t\t\t[for]=\"id\"\n\t\t\tid=\"label-{{id}}\">\n\t\t\t<span class=\"cds--radio-button__appearance\"></span>\n\t\t\t<ng-content></ng-content>\n\t\t</label>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Radio,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Radio {\n\t/**\n\t * Used to dynamically create unique ids for the `Radio`.\n\t */\n\tstatic radioCount = 0;\n\n\t@Input() checked = false;\n\n\t@Input() name = \"\";\n\n\t@Input() disabled = false;\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t@Input() set ariaLabelledby(value: string) {\n\t\tthis._labelledby = value;\n\t}\n\n\tget ariaLabelledby() {\n\t\tif (this._labelledby) {\n\t\t\treturn this._labelledby;\n\t\t}\n\t\treturn `label-${this.id}`;\n\t}\n\n\t/**\n\t * Used to set the `aria-label` attribute on the input label.\n\t */\n\t@Input() ariaLabel: string;\n\n\t/**\n\t * Sets the HTML required attribute\n\t */\n\t@Input() required = false;\n\t/**\n\t * The value of the `Radio`.\n\t */\n\t@Input() value;\n\t/**\n\t * Set to `true` for a loading table.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * The id for the `Radio`.\n\t */\n\t@Input() id = `radio-${Radio.radioCount++}`;\n\t/**\n\t * emits when the state of the radio changes\n\t */\n\t@Output() change = new EventEmitter<RadioChange>();\n\n\t@HostBinding(\"class.cds--radio-button-wrapper\") hostClass = true;\n\n\t@HostBinding(\"class.cds--radio-button-wrapper--label-left\") get labelLeft() {\n\t\treturn this.labelPlacement === \"left\";\n\t}\n\n\t/**\n\t * Reflects whether or not the input is disabled at `RadioGroup` level.\n\t */\n\tdisabledFromGroup = false;\n\n\tprotected _labelledby = \"\";\n\n\t/**\n\t * Handler provided by the `RadioGroup` to bubble events up\n\t */\n\tradioChangeHandler = (event: RadioChange) => {};\n\n\t/**\n\t * Synchronizes with the `RadioGroup` in the event of a changed `Radio`.\n\t * Emits the changes of both the `RadioGroup` and `Radio`.\n\t */\n\tonChange(event: Event) {\n\t\tevent.stopPropagation();\n\t}\n\n\tonClick(event: Event) {\n\t\tthis.checked = (event.target as HTMLInputElement).checked;\n\t\tconst radioEvent = new RadioChange(this, this.value);\n\t\tthis.change.emit(radioEvent);\n\t\tthis.radioChangeHandler(radioEvent);\n\t}\n\n\t/**\n\t * Method called by `RadioGroup` with a callback function to bubble `RadioChange` events\n\t * @param fn callback that expects a `RadioChange` as an argument\n\t */\n\tregisterRadioChangeHandler(fn: (event: RadioChange) => void) {\n\t\tthis.radioChangeHandler = fn;\n\t}\n\n\tsetDisabledFromGroup(disabled: boolean) {\n\t\tthis.disabledFromGroup = disabled;\n\t}\n}\n",
|
|
41496
41617
|
"assetsDirs": [],
|
|
41497
41618
|
"styleUrlsData": "",
|
|
41498
41619
|
"stylesData": "",
|
|
@@ -41546,7 +41667,7 @@
|
|
|
41546
41667
|
},
|
|
41547
41668
|
{
|
|
41548
41669
|
"name": "RadioGroup",
|
|
41549
|
-
"id": "component-RadioGroup-
|
|
41670
|
+
"id": "component-RadioGroup-eb7f6b447e4eb186c075006786b0a294153ab7d41ecb0c9b9e4a9ddf3610b8351cbcb82263f96c5550fdbb23264650fab8a998e623e482edaa152a7a4ab18c08",
|
|
41550
41671
|
"file": "src/radio/radio-group.component.ts",
|
|
41551
41672
|
"encapsulation": [],
|
|
41552
41673
|
"entryComponents": [],
|
|
@@ -41560,7 +41681,7 @@
|
|
|
41560
41681
|
"selector": "cds-radio-group, ibm-radio-group",
|
|
41561
41682
|
"styleUrls": [],
|
|
41562
41683
|
"styles": [],
|
|
41563
|
-
"template": "<
|
|
41684
|
+
"template": "<fieldset\n\tclass=\"cds--radio-button-group\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t[ngClass]=\"{\n\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t'cds--radio-button-group--label-left': labelPlacement === 'left',\n\t\t'cds--radio-button-group--invalid' : !warn && invalid,\n\t\t'cds--radio-button-group--warning': !invalid && warn\n\t}\"\n\t[attr.data-invalid]=\"invalid ? true : null\">\n\t<legend *ngIf=\"legend\" class=\"cds--label\">\n\t\t<ng-template *ngIf=\"isTemplate(legend); else legendLabel;\" [ngTemplateOutlet]=\"legend\"></ng-template>\n\t\t<ng-template #legendLabel>{{legend}}</ng-template>\n\t</legend>\n\t<ng-content></ng-content>\n</fieldset>\n<div class=\"cds--radio-button__validation-msg\">\n\t<ng-container *ngIf=\"!warn && invalid\">\n\t\t<svg\n\t\t\tcdsIcon=\"warning--filled\"\n\t\t\tsize=\"16\"\n\t\t\tclass=\"cds--radio-button__invalid-icon\">\n\t\t</svg>\n\t\t<div class=\"cds--form-requirement\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{ invalidText }}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"invalidText\"></ng-template>\n\t\t</div>\n\t</ng-container>\n\t<ng-container *ngIf=\"!invalid && warn\">\n\t\t<svg\n\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\tclass=\"cds--radio-button__invalid-icon cds--radio-button__invalid-icon--warning\"\n\t\t\tsize=\"16\">\n\t\t</svg>\n\t\t<div class=\"cds--form-requirement\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"warnText\"></ng-template>\n\t\t</div>\n\t</ng-container>\n</div>\n<div\n\t*ngIf=\"helperText && !invalid && !warn\"\n\tclass=\"cds--form__helper-text\"\n\t[ngClass]=\"{'cds--form__helper-text--disabled': disabled}\">\n\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"helperText\"></ng-template>\n</div>\n\t",
|
|
41564
41685
|
"templateUrl": [],
|
|
41565
41686
|
"viewProviders": [],
|
|
41566
41687
|
"hostDirectives": [],
|
|
@@ -41571,7 +41692,7 @@
|
|
|
41571
41692
|
"deprecationMessage": "",
|
|
41572
41693
|
"rawdescription": "\n\nUsed to set the `aria-label` attribute on the radio group element.\n",
|
|
41573
41694
|
"description": "<p>Used to set the <code>aria-label</code> attribute on the radio group element.</p>\n",
|
|
41574
|
-
"line":
|
|
41695
|
+
"line": 213,
|
|
41575
41696
|
"type": "string",
|
|
41576
41697
|
"decorators": []
|
|
41577
41698
|
},
|
|
@@ -41581,7 +41702,7 @@
|
|
|
41581
41702
|
"deprecationMessage": "",
|
|
41582
41703
|
"rawdescription": "\n\nUsed to set the `aria-labelledby` attribute on the radio group element.\n",
|
|
41583
41704
|
"description": "<p>Used to set the <code>aria-labelledby</code> attribute on the radio group element.</p>\n",
|
|
41584
|
-
"line":
|
|
41705
|
+
"line": 218,
|
|
41585
41706
|
"type": "string",
|
|
41586
41707
|
"decorators": []
|
|
41587
41708
|
},
|
|
@@ -41591,26 +41712,65 @@
|
|
|
41591
41712
|
"deprecationMessage": "",
|
|
41592
41713
|
"rawdescription": "\n\nSet to true to disable the whole radio group\n",
|
|
41593
41714
|
"description": "<p>Set to true to disable the whole radio group</p>\n",
|
|
41594
|
-
"line":
|
|
41715
|
+
"line": 173,
|
|
41716
|
+
"type": "boolean",
|
|
41717
|
+
"decorators": []
|
|
41718
|
+
},
|
|
41719
|
+
{
|
|
41720
|
+
"name": "helperText",
|
|
41721
|
+
"deprecated": false,
|
|
41722
|
+
"deprecationMessage": "",
|
|
41723
|
+
"rawdescription": "\n\nSets the optional helper text.\n",
|
|
41724
|
+
"description": "<p>Sets the optional helper text.</p>\n",
|
|
41725
|
+
"line": 223,
|
|
41726
|
+
"type": "string | TemplateRef<any>",
|
|
41727
|
+
"decorators": []
|
|
41728
|
+
},
|
|
41729
|
+
{
|
|
41730
|
+
"name": "invalid",
|
|
41731
|
+
"defaultValue": "false",
|
|
41732
|
+
"deprecated": false,
|
|
41733
|
+
"deprecationMessage": "",
|
|
41734
|
+
"rawdescription": "\n\nSet to `true` to show the invalid state.\n",
|
|
41735
|
+
"description": "<p>Set to <code>true</code> to show the invalid state.</p>\n",
|
|
41736
|
+
"line": 228,
|
|
41595
41737
|
"type": "boolean",
|
|
41596
41738
|
"decorators": []
|
|
41597
41739
|
},
|
|
41740
|
+
{
|
|
41741
|
+
"name": "invalidText",
|
|
41742
|
+
"deprecated": false,
|
|
41743
|
+
"deprecationMessage": "",
|
|
41744
|
+
"rawdescription": "\n\nValue displayed if combobox is in an invalid state.\n",
|
|
41745
|
+
"description": "<p>Value displayed if combobox is in an invalid state.</p>\n",
|
|
41746
|
+
"line": 233,
|
|
41747
|
+
"type": "string | TemplateRef<any>",
|
|
41748
|
+
"decorators": []
|
|
41749
|
+
},
|
|
41598
41750
|
{
|
|
41599
41751
|
"name": "labelPlacement",
|
|
41600
41752
|
"defaultValue": "\"right\"",
|
|
41601
41753
|
"deprecated": false,
|
|
41602
41754
|
"deprecationMessage": "",
|
|
41603
|
-
"line":
|
|
41755
|
+
"line": 206,
|
|
41604
41756
|
"type": "\"right\" | \"left\"",
|
|
41605
41757
|
"decorators": []
|
|
41606
41758
|
},
|
|
41759
|
+
{
|
|
41760
|
+
"name": "legend",
|
|
41761
|
+
"deprecated": false,
|
|
41762
|
+
"deprecationMessage": "",
|
|
41763
|
+
"line": 208,
|
|
41764
|
+
"type": "string | TemplateRef<any>",
|
|
41765
|
+
"decorators": []
|
|
41766
|
+
},
|
|
41607
41767
|
{
|
|
41608
41768
|
"name": "name",
|
|
41609
41769
|
"deprecated": false,
|
|
41610
41770
|
"deprecationMessage": "",
|
|
41611
41771
|
"rawdescription": "\n\nReplaces the name associated with the `RadioGroup` with the provided parameter.\n",
|
|
41612
41772
|
"description": "<p>Replaces the name associated with the <code>RadioGroup</code> with the provided parameter.</p>\n",
|
|
41613
|
-
"line":
|
|
41773
|
+
"line": 158,
|
|
41614
41774
|
"type": "string",
|
|
41615
41775
|
"decorators": []
|
|
41616
41776
|
},
|
|
@@ -41619,7 +41779,7 @@
|
|
|
41619
41779
|
"defaultValue": "\"horizontal\"",
|
|
41620
41780
|
"deprecated": false,
|
|
41621
41781
|
"deprecationMessage": "",
|
|
41622
|
-
"line":
|
|
41782
|
+
"line": 204,
|
|
41623
41783
|
"type": "\"horizontal\" | \"vertical\"",
|
|
41624
41784
|
"decorators": []
|
|
41625
41785
|
},
|
|
@@ -41629,7 +41789,7 @@
|
|
|
41629
41789
|
"deprecationMessage": "",
|
|
41630
41790
|
"rawdescription": "\n\nSets the passed in `Radio` item as the selected input within the `RadioGroup`.\n",
|
|
41631
41791
|
"description": "<p>Sets the passed in <code>Radio</code> item as the selected input within the <code>RadioGroup</code>.</p>\n",
|
|
41632
|
-
"line":
|
|
41792
|
+
"line": 112,
|
|
41633
41793
|
"type": "Radio | null",
|
|
41634
41794
|
"decorators": []
|
|
41635
41795
|
},
|
|
@@ -41639,7 +41799,7 @@
|
|
|
41639
41799
|
"deprecationMessage": "",
|
|
41640
41800
|
"rawdescription": "\n\nReturns the skeleton value in the `RadioGroup` if there is one.\n",
|
|
41641
41801
|
"description": "<p>Returns the skeleton value in the <code>RadioGroup</code> if there is one.</p>\n",
|
|
41642
|
-
"line":
|
|
41802
|
+
"line": 188,
|
|
41643
41803
|
"type": "any",
|
|
41644
41804
|
"decorators": []
|
|
41645
41805
|
},
|
|
@@ -41649,9 +41809,30 @@
|
|
|
41649
41809
|
"deprecationMessage": "",
|
|
41650
41810
|
"rawdescription": "\n\nSets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n",
|
|
41651
41811
|
"description": "<p>Sets the value/state of the selected <code>Radio</code> within the <code>RadioGroup</code> to the passed in value.</p>\n",
|
|
41652
|
-
"line":
|
|
41812
|
+
"line": 138,
|
|
41653
41813
|
"type": "any",
|
|
41654
41814
|
"decorators": []
|
|
41815
|
+
},
|
|
41816
|
+
{
|
|
41817
|
+
"name": "warn",
|
|
41818
|
+
"defaultValue": "false",
|
|
41819
|
+
"deprecated": false,
|
|
41820
|
+
"deprecationMessage": "",
|
|
41821
|
+
"rawdescription": "\n\nSet to `true` to show a warning (contents set by warnText)\n",
|
|
41822
|
+
"description": "<p>Set to <code>true</code> to show a warning (contents set by warnText)</p>\n",
|
|
41823
|
+
"line": 238,
|
|
41824
|
+
"type": "boolean",
|
|
41825
|
+
"decorators": []
|
|
41826
|
+
},
|
|
41827
|
+
{
|
|
41828
|
+
"name": "warnText",
|
|
41829
|
+
"deprecated": false,
|
|
41830
|
+
"deprecationMessage": "",
|
|
41831
|
+
"rawdescription": "\n\nSets the warning text\n",
|
|
41832
|
+
"description": "<p>Sets the warning text</p>\n",
|
|
41833
|
+
"line": 243,
|
|
41834
|
+
"type": "string | TemplateRef<any>",
|
|
41835
|
+
"decorators": []
|
|
41655
41836
|
}
|
|
41656
41837
|
],
|
|
41657
41838
|
"outputsClass": [
|
|
@@ -41662,7 +41843,7 @@
|
|
|
41662
41843
|
"deprecationMessage": "",
|
|
41663
41844
|
"rawdescription": "\n\nEmits event notifying other classes of a change using a `RadioChange` class.\n",
|
|
41664
41845
|
"description": "<p>Emits event notifying other classes of a change using a <code>RadioChange</code> class.</p>\n",
|
|
41665
|
-
"line":
|
|
41846
|
+
"line": 248,
|
|
41666
41847
|
"type": "EventEmitter<RadioChange>"
|
|
41667
41848
|
}
|
|
41668
41849
|
],
|
|
@@ -41675,7 +41856,7 @@
|
|
|
41675
41856
|
"type": "function",
|
|
41676
41857
|
"optional": false,
|
|
41677
41858
|
"description": "<p>Needed to properly implement ControlValueAccessor.</p>\n",
|
|
41678
|
-
"line":
|
|
41859
|
+
"line": 401,
|
|
41679
41860
|
"rawdescription": "\n\nNeeded to properly implement ControlValueAccessor.\n"
|
|
41680
41861
|
},
|
|
41681
41862
|
{
|
|
@@ -41686,7 +41867,7 @@
|
|
|
41686
41867
|
"type": "",
|
|
41687
41868
|
"optional": false,
|
|
41688
41869
|
"description": "<p>Method set in registerOnChange to propagate changes back to the form.</p>\n",
|
|
41689
|
-
"line":
|
|
41870
|
+
"line": 406,
|
|
41690
41871
|
"rawdescription": "\n\nMethod set in registerOnChange to propagate changes back to the form.\n"
|
|
41691
41872
|
},
|
|
41692
41873
|
{
|
|
@@ -41697,7 +41878,7 @@
|
|
|
41697
41878
|
"type": "",
|
|
41698
41879
|
"optional": false,
|
|
41699
41880
|
"description": "<p>Binds 'cds--form-item' value to the class for <code>RadioGroup</code>.</p>\n",
|
|
41700
|
-
"line":
|
|
41881
|
+
"line": 259,
|
|
41701
41882
|
"rawdescription": "\n\nBinds 'cds--form-item' value to the class for `RadioGroup`.\n",
|
|
41702
41883
|
"decorators": [
|
|
41703
41884
|
{
|
|
@@ -41717,7 +41898,7 @@
|
|
|
41717
41898
|
"type": "number",
|
|
41718
41899
|
"optional": false,
|
|
41719
41900
|
"description": "<p>Used for creating the <code>RadioGroup</code> 'name' property dynamically.</p>\n",
|
|
41720
|
-
"line":
|
|
41901
|
+
"line": 202,
|
|
41721
41902
|
"rawdescription": "\n\nUsed for creating the `RadioGroup` 'name' property dynamically.\n",
|
|
41722
41903
|
"modifierKind": [
|
|
41723
41904
|
124
|
|
@@ -41730,7 +41911,7 @@
|
|
|
41730
41911
|
"type": "QueryList<Radio>",
|
|
41731
41912
|
"optional": false,
|
|
41732
41913
|
"description": "<p>The <code>Radio</code> input items in the <code>RadioGroup</code>.</p>\n",
|
|
41733
|
-
"line":
|
|
41914
|
+
"line": 254,
|
|
41734
41915
|
"rawdescription": "\n\nThe `Radio` input items in the `RadioGroup`.\n",
|
|
41735
41916
|
"decorators": [
|
|
41736
41917
|
{
|
|
@@ -41750,7 +41931,7 @@
|
|
|
41750
41931
|
"optional": false,
|
|
41751
41932
|
"returnType": "void",
|
|
41752
41933
|
"typeParameters": [],
|
|
41753
|
-
"line":
|
|
41934
|
+
"line": 289,
|
|
41754
41935
|
"deprecated": false,
|
|
41755
41936
|
"deprecationMessage": "",
|
|
41756
41937
|
"rawdescription": "\n\nUpdates the selected `Radio` to be checked (selected).\n",
|
|
@@ -41769,7 +41950,7 @@
|
|
|
41769
41950
|
"optional": false,
|
|
41770
41951
|
"returnType": "void",
|
|
41771
41952
|
"typeParameters": [],
|
|
41772
|
-
"line":
|
|
41953
|
+
"line": 330,
|
|
41773
41954
|
"deprecated": false,
|
|
41774
41955
|
"deprecationMessage": "",
|
|
41775
41956
|
"rawdescription": "\n\nCreates a class of `RadioChange` to emit the change in the `RadioGroup`.\n",
|
|
@@ -41792,7 +41973,7 @@
|
|
|
41792
41973
|
"optional": false,
|
|
41793
41974
|
"returnType": "void",
|
|
41794
41975
|
"typeParameters": [],
|
|
41795
|
-
"line":
|
|
41976
|
+
"line": 394,
|
|
41796
41977
|
"deprecated": false,
|
|
41797
41978
|
"deprecationMessage": "",
|
|
41798
41979
|
"decorators": [
|
|
@@ -41805,6 +41986,37 @@
|
|
|
41805
41986
|
167
|
|
41806
41987
|
]
|
|
41807
41988
|
},
|
|
41989
|
+
{
|
|
41990
|
+
"name": "isTemplate",
|
|
41991
|
+
"args": [
|
|
41992
|
+
{
|
|
41993
|
+
"name": "value",
|
|
41994
|
+
"type": "",
|
|
41995
|
+
"deprecated": false,
|
|
41996
|
+
"deprecationMessage": ""
|
|
41997
|
+
}
|
|
41998
|
+
],
|
|
41999
|
+
"optional": false,
|
|
42000
|
+
"returnType": "boolean",
|
|
42001
|
+
"typeParameters": [],
|
|
42002
|
+
"line": 408,
|
|
42003
|
+
"deprecated": false,
|
|
42004
|
+
"deprecationMessage": "",
|
|
42005
|
+
"modifierKind": [
|
|
42006
|
+
123
|
|
42007
|
+
],
|
|
42008
|
+
"jsdoctags": [
|
|
42009
|
+
{
|
|
42010
|
+
"name": "value",
|
|
42011
|
+
"type": "",
|
|
42012
|
+
"deprecated": false,
|
|
42013
|
+
"deprecationMessage": "",
|
|
42014
|
+
"tagName": {
|
|
42015
|
+
"text": "param"
|
|
42016
|
+
}
|
|
42017
|
+
}
|
|
42018
|
+
]
|
|
42019
|
+
},
|
|
41808
42020
|
{
|
|
41809
42021
|
"name": "registerOnChange",
|
|
41810
42022
|
"args": [
|
|
@@ -41818,7 +42030,7 @@
|
|
|
41818
42030
|
"optional": false,
|
|
41819
42031
|
"returnType": "void",
|
|
41820
42032
|
"typeParameters": [],
|
|
41821
|
-
"line":
|
|
42033
|
+
"line": 381,
|
|
41822
42034
|
"deprecated": false,
|
|
41823
42035
|
"deprecationMessage": "",
|
|
41824
42036
|
"rawdescription": "\n\nUsed to set method to propagate changes back to the form.\n",
|
|
@@ -41851,7 +42063,7 @@
|
|
|
41851
42063
|
"optional": false,
|
|
41852
42064
|
"returnType": "void",
|
|
41853
42065
|
"typeParameters": [],
|
|
41854
|
-
"line":
|
|
42066
|
+
"line": 389,
|
|
41855
42067
|
"deprecated": false,
|
|
41856
42068
|
"deprecationMessage": "",
|
|
41857
42069
|
"rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
|
|
@@ -41862,8 +42074,8 @@
|
|
|
41862
42074
|
"jsdoctags": [
|
|
41863
42075
|
{
|
|
41864
42076
|
"name": {
|
|
41865
|
-
"pos":
|
|
41866
|
-
"end":
|
|
42077
|
+
"pos": 9430,
|
|
42078
|
+
"end": 9432,
|
|
41867
42079
|
"flags": 8421376,
|
|
41868
42080
|
"modifierFlagsCache": 0,
|
|
41869
42081
|
"transformFlags": 0,
|
|
@@ -41874,8 +42086,8 @@
|
|
|
41874
42086
|
"deprecated": false,
|
|
41875
42087
|
"deprecationMessage": "",
|
|
41876
42088
|
"tagName": {
|
|
41877
|
-
"pos":
|
|
41878
|
-
"end":
|
|
42089
|
+
"pos": 9424,
|
|
42090
|
+
"end": 9429,
|
|
41879
42091
|
"flags": 8421376,
|
|
41880
42092
|
"modifierFlagsCache": 0,
|
|
41881
42093
|
"transformFlags": 0,
|
|
@@ -41899,7 +42111,7 @@
|
|
|
41899
42111
|
"optional": false,
|
|
41900
42112
|
"returnType": "void",
|
|
41901
42113
|
"typeParameters": [],
|
|
41902
|
-
"line":
|
|
42114
|
+
"line": 323,
|
|
41903
42115
|
"deprecated": false,
|
|
41904
42116
|
"deprecationMessage": "",
|
|
41905
42117
|
"rawdescription": "\n\n`ControlValueAccessor` method to programmatically disable the `RadioGroup`.\n\nex: `this.formGroup.get(\"myRadioGroup\").disable();`\n\n",
|
|
@@ -41907,8 +42119,8 @@
|
|
|
41907
42119
|
"jsdoctags": [
|
|
41908
42120
|
{
|
|
41909
42121
|
"name": {
|
|
41910
|
-
"pos":
|
|
41911
|
-
"end":
|
|
42122
|
+
"pos": 8061,
|
|
42123
|
+
"end": 8071,
|
|
41912
42124
|
"flags": 8421376,
|
|
41913
42125
|
"modifierFlagsCache": 0,
|
|
41914
42126
|
"transformFlags": 0,
|
|
@@ -41919,8 +42131,8 @@
|
|
|
41919
42131
|
"deprecated": false,
|
|
41920
42132
|
"deprecationMessage": "",
|
|
41921
42133
|
"tagName": {
|
|
41922
|
-
"pos":
|
|
41923
|
-
"end":
|
|
42134
|
+
"pos": 8055,
|
|
42135
|
+
"end": 8060,
|
|
41924
42136
|
"flags": 8421376,
|
|
41925
42137
|
"modifierFlagsCache": 0,
|
|
41926
42138
|
"transformFlags": 0,
|
|
@@ -41937,7 +42149,7 @@
|
|
|
41937
42149
|
"optional": false,
|
|
41938
42150
|
"returnType": "void",
|
|
41939
42151
|
"typeParameters": [],
|
|
41940
|
-
"line":
|
|
42152
|
+
"line": 339,
|
|
41941
42153
|
"deprecated": false,
|
|
41942
42154
|
"deprecationMessage": "",
|
|
41943
42155
|
"rawdescription": "\n\nSynchronizes radio properties.\n",
|
|
@@ -41949,7 +42161,7 @@
|
|
|
41949
42161
|
"optional": false,
|
|
41950
42162
|
"returnType": "void",
|
|
41951
42163
|
"typeParameters": [],
|
|
41952
|
-
"line":
|
|
42164
|
+
"line": 298,
|
|
41953
42165
|
"deprecated": false,
|
|
41954
42166
|
"deprecationMessage": "",
|
|
41955
42167
|
"rawdescription": "\n\nUse the value of the `RadioGroup` to update the selected radio to the right state (selected state).\n",
|
|
@@ -41968,7 +42180,7 @@
|
|
|
41968
42180
|
"optional": false,
|
|
41969
42181
|
"returnType": "void",
|
|
41970
42182
|
"typeParameters": [],
|
|
41971
|
-
"line":
|
|
42183
|
+
"line": 356,
|
|
41972
42184
|
"deprecated": false,
|
|
41973
42185
|
"deprecationMessage": "",
|
|
41974
42186
|
"rawdescription": "\n\nUpdates the value of the `RadioGroup` using the provided parameter.\n",
|
|
@@ -41996,7 +42208,7 @@
|
|
|
41996
42208
|
"deprecationMessage": "",
|
|
41997
42209
|
"rawdescription": "\n\nBinds 'cds--form-item' value to the class for `RadioGroup`.\n",
|
|
41998
42210
|
"description": "<p>Binds 'cds--form-item' value to the class for <code>RadioGroup</code>.</p>\n",
|
|
41999
|
-
"line":
|
|
42211
|
+
"line": 259,
|
|
42000
42212
|
"type": "boolean",
|
|
42001
42213
|
"decorators": []
|
|
42002
42214
|
}
|
|
@@ -42008,7 +42220,7 @@
|
|
|
42008
42220
|
"argsDecorator": [],
|
|
42009
42221
|
"deprecated": false,
|
|
42010
42222
|
"deprecationMessage": "",
|
|
42011
|
-
"line":
|
|
42223
|
+
"line": 394
|
|
42012
42224
|
}
|
|
42013
42225
|
],
|
|
42014
42226
|
"standalone": false,
|
|
@@ -42016,7 +42228,7 @@
|
|
|
42016
42228
|
"description": "<p><a href=\"../../?path=/story/components-radio--basic\">See demo</a></p>\n<p>class: RadioGroup</p>\n<p>selector: <code>cds-radio-group</code></p>\n<p>source: <code>src/forms/radio.component.ts</code></p>\n<p>Ex:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-html\"><cds-radio-group [(ngModel)]="radio">\n <cds-radio *ngFor="let one of manyRadios" [value]="one">\n Radio {{one}}\n </cds-radio>\n</cds-radio-group>\n\nRadio selected: {{radio}}</code></pre></div><div><pre class=\"line-numbers\"><code class=\"language-ts\"> const manyRadios = ["one", "two", "three", "four", "five", "six"];</code></pre></div><p>Also see: <a href=\"#cds-radio\">Radio</a></p>\n",
|
|
42017
42229
|
"rawdescription": "\n\n[See demo](../../?path=/story/components-radio--basic)\n\nclass: RadioGroup\n\nselector: `cds-radio-group`\n\nsource: `src/forms/radio.component.ts`\n\nEx:\n\n```html\n<cds-radio-group [(ngModel)]=\"radio\">\n\t<cds-radio *ngFor=\"let one of manyRadios\" [value]=\"one\">\n\t\tRadio {{one}}\n\t</cds-radio>\n</cds-radio-group>\n\nRadio selected: {{radio}}\n```\n\n```ts\n\tconst manyRadios = [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"];\n```\n\nAlso see: [Radio](#cds-radio)\n",
|
|
42018
42230
|
"type": "component",
|
|
42019
|
-
"sourceCode": "import {\n\tAfterContentInit,\n\tContentChildren,\n\tComponent,\n\tEventEmitter,\n\tforwardRef,\n\tInput,\n\tOutput,\n\tQueryList,\n\tHostBinding,\n\tAfterViewInit,\n\tHostListener\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { Radio } from \"./radio.component\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * [See demo](../../?path=/story/components-radio--basic)\n *\n * class: RadioGroup\n *\n * selector: `cds-radio-group`\n *\n * source: `src/forms/radio.component.ts`\n *\n * Ex:\n *\n * ```html\n * <cds-radio-group [(ngModel)]=\"radio\">\n * \t<cds-radio *ngFor=\"let one of manyRadios\" [value]=\"one\">\n *\t\tRadio {{one}}\n * \t</cds-radio>\n * </cds-radio-group>\n *\n * Radio selected: {{radio}}\n * ```\n *\n * ```ts\n *\tconst manyRadios = [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"];\n * ```\n *\n * Also see: [Radio](#cds-radio)\n */\n@Component({\n\tselector: \"cds-radio-group, ibm-radio-group\",\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"cds--radio-button-group\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t\t\t'cds--radio-button-group--label-left': labelPlacement === 'left'\n\t\t\t}\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: RadioGroup,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class RadioGroup implements AfterContentInit, AfterViewInit, ControlValueAccessor {\n\t/**\n\t * Used for creating the `RadioGroup` 'name' property dynamically.\n\t */\n\tstatic radioGroupCount = 0;\n\n\t@Input() orientation: \"horizontal\" | \"vertical\" = \"horizontal\";\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t/**\n\t * Used to set the `aria-label` attribute on the radio group element.\n\t */\n\t// tslint:disable-next-line:no-input-rename\n\t@Input() ariaLabel: string;\n\t/**\n\t * Used to set the `aria-labelledby` attribute on the radio group element.\n\t */\n\t// tslint:disable-next-line:no-input-rename\n\t@Input() ariaLabelledby: string;\n\n\t/**\n\t * Emits event notifying other classes of a change using a `RadioChange` class.\n\t */\n\t@Output() change: EventEmitter<RadioChange> = new EventEmitter<RadioChange>();\n\n\t/**\n\t * The `Radio` input items in the `RadioGroup`.\n\t */\n\t// tslint:disable-next-line:no-forward-ref\n\t@ContentChildren(forwardRef(() => Radio)) radios: QueryList<Radio>;\n\n\t/**\n\t * Sets the passed in `Radio` item as the selected input within the `RadioGroup`.\n\t */\n\t@Input()\n\tset selected(selected: Radio | null) {\n\t\tconst alreadySelected = (this._selected && this._selected.value) === (selected && selected.value);\n\t\tif (alreadySelected) {\n\t\t\t// no need to redo\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._selected) {\n\t\t\tthis._selected.checked = false;\n\t\t}\n\t\tthis._selected = selected;\n\t\tthis.value = selected ? selected.value : null;\n\t\tthis.checkSelectedRadio();\n\t}\n\n\t/**\n\t * Returns the `Radio` that is selected within the `RadioGroup`.\n\t */\n\tget selected() {\n\t\treturn this._selected;\n\t}\n\n\t/**\n\t * Sets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n\t */\n\t@Input()\n\tset value(newValue: any) {\n\t\tif (this._value !== newValue) {\n\t\t\tthis._value = newValue;\n\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t}\n\t}\n\n\t/**\n\t * Returns the value/state of the selected `Radio` within the `RadioGroup`.\n\t */\n\tget value() {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * Replaces the name associated with the `RadioGroup` with the provided parameter.\n\t */\n\t@Input()\n\tset name(name: string) {\n\t\tthis._name = name;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the associated name of the `RadioGroup`.\n\t */\n\tget name() {\n\t\treturn this._name;\n\t}\n\n\t/**\n\t * Set to true to disable the whole radio group\n\t */\n\t@Input()\n\tset disabled(disabled: boolean) {\n\t\tthis._disabled = disabled;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the disabled value for the `RadioGroup`.\n\t */\n\tget disabled(): boolean {\n\t\treturn this._disabled;\n\t}\n\n\t/**\n\t * Returns the skeleton value in the `RadioGroup` if there is one.\n\t */\n\t@Input()\n\tget skeleton(): any {\n\t\treturn this._skeleton;\n\t}\n\n\t/**\n\t * Sets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.\n\t */\n\tset skeleton(value: any) {\n\t\tthis._skeleton = value;\n\t\tthis.updateChildren();\n\t}\n\n\t/**\n\t * Binds 'cds--form-item' value to the class for `RadioGroup`.\n\t */\n\t@HostBinding(\"class.cds--form-item\") radioButtonGroupClass = true;\n\n\t/**\n\t * To track whether the `RadioGroup` has been initialized.\n\t */\n\tprotected isInitialized = false;\n\t/**\n\t * Reflects whether or not the input is disabled and cannot be selected.\n\t */\n\tprotected _disabled = false;\n\t/**\n\t * Reflects whether or not the dropdown is loading.\n\t */\n\tprotected _skeleton = false;\n\t/**\n\t * The value of the selected option within the `RadioGroup`.\n\t */\n\tprotected _value: any = null;\n\t/**\n\t * The `Radio` within the `RadioGroup` that is selected.\n\t */\n\tprotected _selected: Radio = null;\n\t/**\n\t * The name attribute associated with the `RadioGroup`.\n\t */\n\tprotected _name = `radio-group-${RadioGroup.radioGroupCount++}`;\n\n\t/**\n\t * Updates the selected `Radio` to be checked (selected).\n\t */\n\tcheckSelectedRadio() {\n\t\tif (this.selected && !this._selected.checked) {\n\t\t\tthis.selected.checked = true;\n\t\t}\n\t}\n\n\t/**\n\t * Use the value of the `RadioGroup` to update the selected radio to the right state (selected state).\n\t */\n\tupdateSelectedRadioFromValue() {\n\t\tlet alreadySelected = this._selected != null && this._selected.value === this._value;\n\t\tif (this.radios && !alreadySelected) {\n\t\t\tif (this.selected && this.value) {\n\t\t\t\tthis.selected.checked = false;\n\t\t\t}\n\t\t\tthis._selected = null;\n\t\t\tthis.radios.forEach(radio => {\n\t\t\t\tif (radio.checked || radio.value === this._value) {\n\t\t\t\t\tthis._selected = radio;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (this.selected && !this.value) {\n\t\t\t\tthis._value = this.selected.value;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the `RadioGroup`.\n\t *\n\t * ex: `this.formGroup.get(\"myRadioGroup\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the inputs\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n\n\t/**\n\t * Creates a class of `RadioChange` to emit the change in the `RadioGroup`.\n\t */\n\temitChangeEvent(event: RadioChange) {\n\t\tthis.change.emit(event);\n\t\tthis.propagateChange(event.value);\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Synchronizes radio properties.\n\t */\n\tupdateRadios() {\n\t\tif (this.radios) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.radios.forEach(radio => {\n\t\t\t\t\tradio.name = this.name;\n\t\t\t\t\tradio.setDisabledFromGroup(this.disabled);\n\t\t\t\t\tif (this.labelPlacement === \"left\") {\n\t\t\t\t\t\tradio.labelPlacement = \"left\";\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Updates the value of the `RadioGroup` using the provided parameter.\n\t */\n\twriteValue(value: any) {\n\t\tthis.value = value;\n\t\tsetTimeout(() => {\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t});\n\t}\n\n\tngAfterContentInit() {\n\t\tthis.radios.changes.subscribe(() => {\n\t\t\tthis.updateRadios();\n\t\t\tthis.updateRadioChangeHandler();\n\t\t});\n\n\t\tthis.updateChildren();\n\t\tthis.updateRadioChangeHandler();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.updateRadios();\n\t}\n\n\t/**\n\t * Used to set method to propagate changes back to the form.\n\t */\n\tpublic registerOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback to be triggered when the control has been touched.\n\t * @param fn Callback to be triggered when the checkbox is touched.\n\t */\n\tpublic registerOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t@HostListener(\"focusout\")\n\tfocusOut() {\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Needed to properly implement ControlValueAccessor.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Method set in registerOnChange to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\tprotected updateChildren() {\n\t\tif (this.radios) {\n\t\t\tthis.radios.forEach(child => child.skeleton = this.skeleton);\n\t\t}\n\t}\n\n\tprotected updateRadioChangeHandler() {\n\t\tthis.radios.forEach(radio => {\n\t\t\tradio.registerRadioChangeHandler((event: RadioChange) => {\n\t\t\t\tif ((this.selected && this.selected.value) === event.value) {\n\t\t\t\t\t// no need to redo\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// deselect previous radio\n\t\t\t\tif (this.selected) {\n\t\t\t\t\tthis.selected.checked = false;\n\t\t\t\t}\n\t\t\t\t// update selected and value from the event\n\t\t\t\tthis._selected = event.source;\n\t\t\t\tthis._value = event.value;\n\t\t\t\t// bubble the event\n\t\t\t\tthis.emitChangeEvent(event);\n\t\t\t});\n\t\t});\n\t}\n}\n",
|
|
42231
|
+
"sourceCode": "import {\n\tAfterContentInit,\n\tContentChildren,\n\tComponent,\n\tEventEmitter,\n\tforwardRef,\n\tInput,\n\tOutput,\n\tQueryList,\n\tHostBinding,\n\tAfterViewInit,\n\tHostListener,\n\tTemplateRef\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { Radio } from \"./radio.component\";\nimport { RadioChange } from \"./radio-change.class\";\n\n/**\n * [See demo](../../?path=/story/components-radio--basic)\n *\n * class: RadioGroup\n *\n * selector: `cds-radio-group`\n *\n * source: `src/forms/radio.component.ts`\n *\n * Ex:\n *\n * ```html\n * <cds-radio-group [(ngModel)]=\"radio\">\n * \t<cds-radio *ngFor=\"let one of manyRadios\" [value]=\"one\">\n *\t\tRadio {{one}}\n * \t</cds-radio>\n * </cds-radio-group>\n *\n * Radio selected: {{radio}}\n * ```\n *\n * ```ts\n *\tconst manyRadios = [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"];\n * ```\n *\n * Also see: [Radio](#cds-radio)\n */\n@Component({\n\tselector: \"cds-radio-group, ibm-radio-group\",\n\ttemplate: `\n\t\t<fieldset\n\t\t\tclass=\"cds--radio-button-group\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[attr.aria-labelledby]=\"ariaLabelledby\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--radio-button-group--vertical': orientation === 'vertical',\n\t\t\t\t'cds--radio-button-group--label-left': labelPlacement === 'left',\n\t\t\t\t'cds--radio-button-group--invalid' : !warn && invalid,\n\t\t\t\t'cds--radio-button-group--warning': !invalid && warn\n\t\t\t}\"\n\t\t\t[attr.data-invalid]=\"invalid ? true : null\">\n\t\t\t<legend *ngIf=\"legend\" class=\"cds--label\">\n\t\t\t\t<ng-template *ngIf=\"isTemplate(legend); else legendLabel;\" [ngTemplateOutlet]=\"legend\"></ng-template>\n\t\t\t\t<ng-template #legendLabel>{{legend}}</ng-template>\n\t\t\t</legend>\n\t\t\t<ng-content></ng-content>\n\t\t</fieldset>\n\t\t<div class=\"cds--radio-button__validation-msg\">\n\t\t\t<ng-container *ngIf=\"!warn && invalid\">\n\t\t\t\t<svg\n\t\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\t\tsize=\"16\"\n\t\t\t\t\tclass=\"cds--radio-button__invalid-icon\">\n\t\t\t\t</svg>\n\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(invalidText)\">{{ invalidText }}</ng-container>\n\t\t\t\t\t<ng-template *ngIf=\"isTemplate(invalidText)\" [ngTemplateOutlet]=\"invalidText\"></ng-template>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t\t<ng-container *ngIf=\"!invalid && warn\">\n\t\t\t\t<svg\n\t\t\t\t\tcdsIcon=\"warning--alt--filled\"\n\t\t\t\t\tclass=\"cds--radio-button__invalid-icon cds--radio-button__invalid-icon--warning\"\n\t\t\t\t\tsize=\"16\">\n\t\t\t\t</svg>\n\t\t\t\t<div class=\"cds--form-requirement\">\n\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(warnText)\">{{warnText}}</ng-container>\n\t\t\t\t\t<ng-template *ngIf=\"isTemplate(warnText)\" [ngTemplateOutlet]=\"warnText\"></ng-template>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</div>\n\t\t<div\n\t\t\t*ngIf=\"helperText && !invalid && !warn\"\n\t\t\tclass=\"cds--form__helper-text\"\n\t\t\t[ngClass]=\"{'cds--form__helper-text--disabled': disabled}\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(helperText)\">{{helperText}}</ng-container>\n\t\t\t<ng-template *ngIf=\"isTemplate(helperText)\" [ngTemplateOutlet]=\"helperText\"></ng-template>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: RadioGroup,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class RadioGroup implements AfterContentInit, AfterViewInit, ControlValueAccessor {\n\n\t/**\n\t * Sets the passed in `Radio` item as the selected input within the `RadioGroup`.\n\t */\n\t@Input()\n\tset selected(selected: Radio | null) {\n\t\tconst alreadySelected = (this._selected && this._selected.value) === (selected && selected.value);\n\t\tif (alreadySelected) {\n\t\t\t// no need to redo\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._selected) {\n\t\t\tthis._selected.checked = false;\n\t\t}\n\t\tthis._selected = selected;\n\t\tthis.value = selected ? selected.value : null;\n\t\tthis.checkSelectedRadio();\n\t}\n\n\t/**\n\t * Returns the `Radio` that is selected within the `RadioGroup`.\n\t */\n\tget selected() {\n\t\treturn this._selected;\n\t}\n\n\t/**\n\t * Sets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n\t */\n\t@Input()\n\tset value(newValue: any) {\n\t\tif (this._value !== newValue) {\n\t\t\tthis._value = newValue;\n\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t}\n\t}\n\n\t/**\n\t * Returns the value/state of the selected `Radio` within the `RadioGroup`.\n\t */\n\tget value() {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * Replaces the name associated with the `RadioGroup` with the provided parameter.\n\t */\n\t@Input()\n\tset name(name: string) {\n\t\tthis._name = name;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the associated name of the `RadioGroup`.\n\t */\n\tget name() {\n\t\treturn this._name;\n\t}\n\n\t/**\n\t * Set to true to disable the whole radio group\n\t */\n\t@Input()\n\tset disabled(disabled: boolean) {\n\t\tthis._disabled = disabled;\n\t\tthis.updateRadios();\n\t}\n\t/**\n\t * Returns the disabled value for the `RadioGroup`.\n\t */\n\tget disabled(): boolean {\n\t\treturn this._disabled;\n\t}\n\n\t/**\n\t * Returns the skeleton value in the `RadioGroup` if there is one.\n\t */\n\t@Input()\n\tget skeleton(): any {\n\t\treturn this._skeleton;\n\t}\n\n\t/**\n\t * Sets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.\n\t */\n\tset skeleton(value: any) {\n\t\tthis._skeleton = value;\n\t\tthis.updateChildren();\n\t}\n\t/**\n\t * Used for creating the `RadioGroup` 'name' property dynamically.\n\t */\n\tstatic radioGroupCount = 0;\n\n\t@Input() orientation: \"horizontal\" | \"vertical\" = \"horizontal\";\n\n\t@Input() labelPlacement: \"right\" | \"left\" = \"right\";\n\n\t@Input() legend: string | TemplateRef<any>;\n\n\t/**\n\t * Used to set the `aria-label` attribute on the radio group element.\n\t */\n\t@Input() ariaLabel: string;\n\n\t/**\n\t * Used to set the `aria-labelledby` attribute on the radio group element.\n\t */\n\t@Input() ariaLabelledby: string;\n\n\t/**\n\t * Sets the optional helper text.\n\t */\n\t@Input() helperText: string | TemplateRef<any>;\n\n\t/**\n\t * Set to `true` to show the invalid state.\n\t */\n\t@Input() invalid = false;\n\n\t/**\n\t * Value displayed if combobox is in an invalid state.\n\t */\n\t@Input() invalidText: string | TemplateRef<any>;\n\n\t/**\n\t* Set to `true` to show a warning (contents set by warnText)\n\t*/\n\t@Input() warn = false;\n\n\t/**\n\t * Sets the warning text\n\t */\n\t@Input() warnText: string | TemplateRef<any>;\n\n\t/**\n\t * Emits event notifying other classes of a change using a `RadioChange` class.\n\t */\n\t@Output() change: EventEmitter<RadioChange> = new EventEmitter<RadioChange>();\n\n\t/**\n\t * The `Radio` input items in the `RadioGroup`.\n\t */\n\t// tslint:disable-next-line:no-forward-ref\n\t@ContentChildren(forwardRef(() => Radio)) radios: QueryList<Radio>;\n\n\t/**\n\t * Binds 'cds--form-item' value to the class for `RadioGroup`.\n\t */\n\t@HostBinding(\"class.cds--form-item\") radioButtonGroupClass = true;\n\n\t/**\n\t * To track whether the `RadioGroup` has been initialized.\n\t */\n\tprotected isInitialized = false;\n\t/**\n\t * Reflects whether or not the input is disabled and cannot be selected.\n\t */\n\tprotected _disabled = false;\n\t/**\n\t * Reflects whether or not the dropdown is loading.\n\t */\n\tprotected _skeleton = false;\n\t/**\n\t * The value of the selected option within the `RadioGroup`.\n\t */\n\tprotected _value: any = null;\n\t/**\n\t * The `Radio` within the `RadioGroup` that is selected.\n\t */\n\tprotected _selected: Radio = null;\n\t/**\n\t * The name attribute associated with the `RadioGroup`.\n\t */\n\tprotected _name = `radio-group-${RadioGroup.radioGroupCount++}`;\n\n\t/**\n\t * Updates the selected `Radio` to be checked (selected).\n\t */\n\tcheckSelectedRadio() {\n\t\tif (this.selected && !this._selected.checked) {\n\t\t\tthis.selected.checked = true;\n\t\t}\n\t}\n\n\t/**\n\t * Use the value of the `RadioGroup` to update the selected radio to the right state (selected state).\n\t */\n\tupdateSelectedRadioFromValue() {\n\t\tlet alreadySelected = this._selected != null && this._selected.value === this._value;\n\t\tif (this.radios && !alreadySelected) {\n\t\t\tif (this.selected && this.value) {\n\t\t\t\tthis.selected.checked = false;\n\t\t\t}\n\t\t\tthis._selected = null;\n\t\t\tthis.radios.forEach(radio => {\n\t\t\t\tif (radio.checked || radio.value === this._value) {\n\t\t\t\t\tthis._selected = radio;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (this.selected && !this.value) {\n\t\t\t\tthis._value = this.selected.value;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the `RadioGroup`.\n\t *\n\t * ex: `this.formGroup.get(\"myRadioGroup\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the inputs\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n\n\t/**\n\t * Creates a class of `RadioChange` to emit the change in the `RadioGroup`.\n\t */\n\temitChangeEvent(event: RadioChange) {\n\t\tthis.change.emit(event);\n\t\tthis.propagateChange(event.value);\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Synchronizes radio properties.\n\t */\n\tupdateRadios() {\n\t\tif (this.radios) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.radios.forEach(radio => {\n\t\t\t\t\tradio.name = this.name;\n\t\t\t\t\tradio.setDisabledFromGroup(this.disabled);\n\t\t\t\t\tif (this.labelPlacement === \"left\") {\n\t\t\t\t\t\tradio.labelPlacement = \"left\";\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Updates the value of the `RadioGroup` using the provided parameter.\n\t */\n\twriteValue(value: any) {\n\t\tthis.value = value;\n\t\tsetTimeout(() => {\n\t\t\tthis.updateSelectedRadioFromValue();\n\t\t\tthis.checkSelectedRadio();\n\t\t});\n\t}\n\n\tngAfterContentInit() {\n\t\tthis.radios.changes.subscribe(() => {\n\t\t\tthis.updateRadios();\n\t\t\tthis.updateRadioChangeHandler();\n\t\t});\n\n\t\tthis.updateChildren();\n\t\tthis.updateRadioChangeHandler();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.updateRadios();\n\t}\n\n\t/**\n\t * Used to set method to propagate changes back to the form.\n\t */\n\tpublic registerOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback to be triggered when the control has been touched.\n\t * @param fn Callback to be triggered when the checkbox is touched.\n\t */\n\tpublic registerOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t@HostListener(\"focusout\")\n\tfocusOut() {\n\t\tthis.onTouched();\n\t}\n\n\t/**\n\t * Needed to properly implement ControlValueAccessor.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Method set in registerOnChange to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\tprotected updateChildren() {\n\t\tif (this.radios) {\n\t\t\tthis.radios.forEach(child => child.skeleton = this.skeleton);\n\t\t}\n\t}\n\n\tprotected updateRadioChangeHandler() {\n\t\tthis.radios.forEach(radio => {\n\t\t\tradio.registerRadioChangeHandler((event: RadioChange) => {\n\t\t\t\tif ((this.selected && this.selected.value) === event.value) {\n\t\t\t\t\t// no need to redo\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// deselect previous radio\n\t\t\t\tif (this.selected) {\n\t\t\t\t\tthis.selected.checked = false;\n\t\t\t\t}\n\t\t\t\t// update selected and value from the event\n\t\t\t\tthis._selected = event.source;\n\t\t\t\tthis._value = event.value;\n\t\t\t\t// bubble the event\n\t\t\t\tthis.emitChangeEvent(event);\n\t\t\t});\n\t\t});\n\t}\n}\n",
|
|
42020
42232
|
"assetsDirs": [],
|
|
42021
42233
|
"styleUrlsData": "",
|
|
42022
42234
|
"stylesData": "",
|
|
@@ -42042,7 +42254,7 @@
|
|
|
42042
42254
|
}
|
|
42043
42255
|
],
|
|
42044
42256
|
"returnType": "void",
|
|
42045
|
-
"line":
|
|
42257
|
+
"line": 112,
|
|
42046
42258
|
"rawdescription": "\n\nSets the passed in `Radio` item as the selected input within the `RadioGroup`.\n",
|
|
42047
42259
|
"description": "<p>Sets the passed in <code>Radio</code> item as the selected input within the <code>RadioGroup</code>.</p>\n",
|
|
42048
42260
|
"jsdoctags": [
|
|
@@ -42061,7 +42273,7 @@
|
|
|
42061
42273
|
"name": "selected",
|
|
42062
42274
|
"type": "",
|
|
42063
42275
|
"returnType": "",
|
|
42064
|
-
"line":
|
|
42276
|
+
"line": 130,
|
|
42065
42277
|
"rawdescription": "\n\nReturns the `Radio` that is selected within the `RadioGroup`.\n",
|
|
42066
42278
|
"description": "<p>Returns the <code>Radio</code> that is selected within the <code>RadioGroup</code>.</p>\n"
|
|
42067
42279
|
}
|
|
@@ -42082,7 +42294,7 @@
|
|
|
42082
42294
|
}
|
|
42083
42295
|
],
|
|
42084
42296
|
"returnType": "void",
|
|
42085
|
-
"line":
|
|
42297
|
+
"line": 138,
|
|
42086
42298
|
"rawdescription": "\n\nSets the value/state of the selected `Radio` within the `RadioGroup` to the passed in value.\n",
|
|
42087
42299
|
"description": "<p>Sets the value/state of the selected <code>Radio</code> within the <code>RadioGroup</code> to the passed in value.</p>\n",
|
|
42088
42300
|
"jsdoctags": [
|
|
@@ -42101,7 +42313,7 @@
|
|
|
42101
42313
|
"name": "value",
|
|
42102
42314
|
"type": "",
|
|
42103
42315
|
"returnType": "",
|
|
42104
|
-
"line":
|
|
42316
|
+
"line": 150,
|
|
42105
42317
|
"rawdescription": "\n\nReturns the value/state of the selected `Radio` within the `RadioGroup`.\n",
|
|
42106
42318
|
"description": "<p>Returns the value/state of the selected <code>Radio</code> within the <code>RadioGroup</code>.</p>\n"
|
|
42107
42319
|
}
|
|
@@ -42122,7 +42334,7 @@
|
|
|
42122
42334
|
}
|
|
42123
42335
|
],
|
|
42124
42336
|
"returnType": "void",
|
|
42125
|
-
"line":
|
|
42337
|
+
"line": 158,
|
|
42126
42338
|
"rawdescription": "\n\nReplaces the name associated with the `RadioGroup` with the provided parameter.\n",
|
|
42127
42339
|
"description": "<p>Replaces the name associated with the <code>RadioGroup</code> with the provided parameter.</p>\n",
|
|
42128
42340
|
"jsdoctags": [
|
|
@@ -42141,7 +42353,7 @@
|
|
|
42141
42353
|
"name": "name",
|
|
42142
42354
|
"type": "",
|
|
42143
42355
|
"returnType": "",
|
|
42144
|
-
"line":
|
|
42356
|
+
"line": 165,
|
|
42145
42357
|
"rawdescription": "\n\nReturns the associated name of the `RadioGroup`.\n",
|
|
42146
42358
|
"description": "<p>Returns the associated name of the <code>RadioGroup</code>.</p>\n"
|
|
42147
42359
|
}
|
|
@@ -42162,7 +42374,7 @@
|
|
|
42162
42374
|
}
|
|
42163
42375
|
],
|
|
42164
42376
|
"returnType": "void",
|
|
42165
|
-
"line":
|
|
42377
|
+
"line": 173,
|
|
42166
42378
|
"rawdescription": "\n\nSet to true to disable the whole radio group\n",
|
|
42167
42379
|
"description": "<p>Set to true to disable the whole radio group</p>\n",
|
|
42168
42380
|
"jsdoctags": [
|
|
@@ -42181,7 +42393,7 @@
|
|
|
42181
42393
|
"name": "disabled",
|
|
42182
42394
|
"type": "boolean",
|
|
42183
42395
|
"returnType": "boolean",
|
|
42184
|
-
"line":
|
|
42396
|
+
"line": 180,
|
|
42185
42397
|
"rawdescription": "\n\nReturns the disabled value for the `RadioGroup`.\n",
|
|
42186
42398
|
"description": "<p>Returns the disabled value for the <code>RadioGroup</code>.</p>\n"
|
|
42187
42399
|
}
|
|
@@ -42202,7 +42414,7 @@
|
|
|
42202
42414
|
}
|
|
42203
42415
|
],
|
|
42204
42416
|
"returnType": "void",
|
|
42205
|
-
"line":
|
|
42417
|
+
"line": 195,
|
|
42206
42418
|
"rawdescription": "\n\nSets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.\n",
|
|
42207
42419
|
"description": "<p>Sets the skeleton value for all <code>Radio</code> to the skeleton value of <code>RadioGroup</code>.</p>\n",
|
|
42208
42420
|
"jsdoctags": [
|
|
@@ -42221,7 +42433,7 @@
|
|
|
42221
42433
|
"name": "skeleton",
|
|
42222
42434
|
"type": "any",
|
|
42223
42435
|
"returnType": "any",
|
|
42224
|
-
"line":
|
|
42436
|
+
"line": 188,
|
|
42225
42437
|
"rawdescription": "\n\nReturns the skeleton value in the `RadioGroup` if there is one.\n",
|
|
42226
42438
|
"description": "<p>Returns the skeleton value in the <code>RadioGroup</code> if there is one.</p>\n"
|
|
42227
42439
|
}
|
|
@@ -65172,13 +65384,13 @@
|
|
|
65172
65384
|
},
|
|
65173
65385
|
{
|
|
65174
65386
|
"name": "RadioModule",
|
|
65175
|
-
"id": "module-RadioModule-
|
|
65387
|
+
"id": "module-RadioModule-5b60c2abc6e47e3a77afa997f18bc6a5e5dedc04b6f929aa6766de1713b8323047ffb93c52475e0fb5f63965deed1af4eaace48e8ad1088cc2cbf39f13cba1e7",
|
|
65176
65388
|
"description": "",
|
|
65177
65389
|
"deprecationMessage": "",
|
|
65178
65390
|
"deprecated": false,
|
|
65179
65391
|
"file": "src/radio/radio.module.ts",
|
|
65180
65392
|
"methods": [],
|
|
65181
|
-
"sourceCode": "// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\n// imports\nimport { Radio } from \"./radio.component\";\nimport { RadioGroup } from \"./radio-group.component\";\n\n@NgModule({\n\tdeclarations: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\texports: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule\n\t]\n})\nexport class RadioModule { }\n",
|
|
65393
|
+
"sourceCode": "// modules\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\n// imports\nimport { Radio } from \"./radio.component\";\nimport { RadioGroup } from \"./radio-group.component\";\nimport { IconModule } from \"carbon-components-angular/icon\";\n\n@NgModule({\n\tdeclarations: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\texports: [\n\t\tRadio,\n\t\tRadioGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule,\n\t\tIconModule\n\t]\n})\nexport class RadioModule { }\n",
|
|
65182
65394
|
"children": [
|
|
65183
65395
|
{
|
|
65184
65396
|
"type": "providers",
|
|
@@ -65197,7 +65409,11 @@
|
|
|
65197
65409
|
},
|
|
65198
65410
|
{
|
|
65199
65411
|
"type": "imports",
|
|
65200
|
-
"elements": [
|
|
65412
|
+
"elements": [
|
|
65413
|
+
{
|
|
65414
|
+
"name": "IconModule"
|
|
65415
|
+
}
|
|
65416
|
+
]
|
|
65201
65417
|
},
|
|
65202
65418
|
{
|
|
65203
65419
|
"type": "exports",
|
|
@@ -65938,13 +66154,13 @@
|
|
|
65938
66154
|
},
|
|
65939
66155
|
{
|
|
65940
66156
|
"name": "TilesModule",
|
|
65941
|
-
"id": "module-TilesModule-
|
|
66157
|
+
"id": "module-TilesModule-be7553ce1e8f3f4af7b5c76a38e25875159e6018a7cb3ef453ce2d303ded9093c80f01a10b61e0946cf14dbf5bfda4d2001a22b54f258517e46946f2058954f6",
|
|
65942
66158
|
"description": "",
|
|
65943
66159
|
"deprecationMessage": "",
|
|
65944
66160
|
"deprecated": false,
|
|
65945
66161
|
"file": "src/tiles/tiles.module.ts",
|
|
65946
66162
|
"methods": [],
|
|
65947
|
-
"sourceCode": "import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { Tile } from \"./tile.component\";\nimport { ClickableTile } from \"./clickable-tile.component\";\nimport { ExpandableTile } from \"./expandable-tile.component\";\nimport { SelectionTile } from \"./selection-tile.component\";\nimport { TileGroup } from \"./tile-group.component\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nimport { LinkModule } from \"carbon-components-angular/link\";\n\n@NgModule({\n\tdeclarations: [\n\t\tTile,\n\t\tClickableTile,\n\t\tExpandableTile,\n\t\tSelectionTile,\n\t\tTileGroup\n\t],\n\texports: [\n\t\tTile,\n\t\tClickableTile,\n\t\tExpandableTile,\n\t\tSelectionTile,\n\t\tTileGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tI18nModule,\n\t\tLinkModule\n\t]\n})\nexport class TilesModule {}\n",
|
|
66163
|
+
"sourceCode": "import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { Tile } from \"./tile.component\";\nimport { ClickableTile } from \"./clickable-tile.component\";\nimport { ExpandableTile } from \"./expandable-tile.component\";\nimport { ExpandableTileAboveFoldDirective } from \"./expandable-tile-above.directive\";\nimport { ExpandableTileBelowFoldDirective } from \"./expandable-tile-below.directive\";\nimport { SelectionTile } from \"./selection-tile.component\";\nimport { TileGroup } from \"./tile-group.component\";\nimport { I18nModule } from \"carbon-components-angular/i18n\";\nimport { IconModule } from \"carbon-components-angular/icon\";\nimport { LinkModule } from \"carbon-components-angular/link\";\n\n@NgModule({\n\tdeclarations: [\n\t\tTile,\n\t\tClickableTile,\n\t\tExpandableTileAboveFoldDirective,\n\t\tExpandableTileBelowFoldDirective,\n\t\tExpandableTile,\n\t\tSelectionTile,\n\t\tTileGroup\n\t],\n\texports: [\n\t\tTile,\n\t\tClickableTile,\n\t\tExpandableTileAboveFoldDirective,\n\t\tExpandableTileBelowFoldDirective,\n\t\tExpandableTile,\n\t\tSelectionTile,\n\t\tTileGroup\n\t],\n\timports: [\n\t\tCommonModule,\n\t\tI18nModule,\n\t\tIconModule,\n\t\tLinkModule\n\t]\n})\nexport class TilesModule {}\n",
|
|
65948
66164
|
"children": [
|
|
65949
66165
|
{
|
|
65950
66166
|
"type": "providers",
|
|
@@ -65959,6 +66175,12 @@
|
|
|
65959
66175
|
{
|
|
65960
66176
|
"name": "ExpandableTile"
|
|
65961
66177
|
},
|
|
66178
|
+
{
|
|
66179
|
+
"name": "ExpandableTileAboveFoldDirective"
|
|
66180
|
+
},
|
|
66181
|
+
{
|
|
66182
|
+
"name": "ExpandableTileBelowFoldDirective"
|
|
66183
|
+
},
|
|
65962
66184
|
{
|
|
65963
66185
|
"name": "SelectionTile"
|
|
65964
66186
|
},
|
|
@@ -65976,6 +66198,9 @@
|
|
|
65976
66198
|
{
|
|
65977
66199
|
"name": "I18nModule"
|
|
65978
66200
|
},
|
|
66201
|
+
{
|
|
66202
|
+
"name": "IconModule"
|
|
66203
|
+
},
|
|
65979
66204
|
{
|
|
65980
66205
|
"name": "LinkModule"
|
|
65981
66206
|
}
|
|
@@ -65990,6 +66215,12 @@
|
|
|
65990
66215
|
{
|
|
65991
66216
|
"name": "ExpandableTile"
|
|
65992
66217
|
},
|
|
66218
|
+
{
|
|
66219
|
+
"name": "ExpandableTileAboveFoldDirective"
|
|
66220
|
+
},
|
|
66221
|
+
{
|
|
66222
|
+
"name": "ExpandableTileBelowFoldDirective"
|
|
66223
|
+
},
|
|
65993
66224
|
{
|
|
65994
66225
|
"name": "SelectionTile"
|
|
65995
66226
|
},
|
|
@@ -67729,6 +67960,26 @@
|
|
|
67729
67960
|
"type": "Story",
|
|
67730
67961
|
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-inline-notification [notificationObj]=\"{\n\t\t\ttype: type,\n\t\t\ttitle: 'Sample notification',\n\t\t\tmessage: 'Sample error message',\n\t\t\tshowClose: showClose,\n\t\t\tlowContrast: lowContrast}\">\n\t\t</cds-inline-notification>\n\t`\n})"
|
|
67731
67962
|
},
|
|
67963
|
+
{
|
|
67964
|
+
"name": "Interactive",
|
|
67965
|
+
"ctype": "miscellaneous",
|
|
67966
|
+
"subtype": "variable",
|
|
67967
|
+
"file": "src/tiles/expandable-tile.stories.ts",
|
|
67968
|
+
"deprecated": false,
|
|
67969
|
+
"deprecationMessage": "",
|
|
67970
|
+
"type": "",
|
|
67971
|
+
"defaultValue": "InteractiveTemplate.bind({})"
|
|
67972
|
+
},
|
|
67973
|
+
{
|
|
67974
|
+
"name": "InteractiveTemplate",
|
|
67975
|
+
"ctype": "miscellaneous",
|
|
67976
|
+
"subtype": "variable",
|
|
67977
|
+
"file": "src/tiles/expandable-tile.stories.ts",
|
|
67978
|
+
"deprecated": false,
|
|
67979
|
+
"deprecationMessage": "",
|
|
67980
|
+
"type": "Story<ExpandableTile>",
|
|
67981
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile [interactive]=\"true\">\n\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\tAbove the fold content\n\t\t\t\t<button ibmButton>Click me!</button>\n\t\t\t</span>\n\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\tBelow the fold content here\n\t\t\t\t<button ibmButton>No me!</button>\n\t\t\t</span>\n\t\t</cds-expandable-tile>\n\t`\n})"
|
|
67982
|
+
},
|
|
67732
67983
|
{
|
|
67733
67984
|
"name": "isScrollableElement",
|
|
67734
67985
|
"ctype": "miscellaneous",
|
|
@@ -67791,7 +68042,7 @@
|
|
|
67791
68042
|
"deprecated": false,
|
|
67792
68043
|
"deprecationMessage": "",
|
|
67793
68044
|
"type": "Story<ExpandableTile>",
|
|
67794
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span
|
|
68045
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\tFirst Layer, above the fold content here\n\t\t\t</span>\n\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\tFirst Layer, below the fold content here\n\t\t\t</span>\n\t\t</cds-expandable-tile>\n\t\t<div cdsLayer>\n\t\t\t<cds-expandable-tile>\n\t\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\t\tSecond layer, above the fold content here\n\t\t\t\t</span>\n\t\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\t\tSecond layer, below the fold content here\n\t\t\t\t</span>\n\t\t\t</cds-expandable-tile>\n\t\t\t<div cdsLayer>\n\t\t\t\t<cds-expandable-tile>\n\t\t\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\t\t\tThird layer, above the fold content here\n\t\t\t\t\t</span>\n\t\t\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\t\t\tThird layer, below the fold content here\n\t\t\t\t\t</span>\n\t\t\t\t</cds-expandable-tile>\n\t\t\t</div>\n\t\t</div>\n\t`\n})"
|
|
67795
68046
|
},
|
|
67796
68047
|
{
|
|
67797
68048
|
"name": "LayerTemplate",
|
|
@@ -69328,7 +69579,7 @@
|
|
|
69328
69579
|
"deprecated": false,
|
|
69329
69580
|
"deprecationMessage": "",
|
|
69330
69581
|
"type": "Story<Radio>",
|
|
69331
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t<
|
|
69582
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-radio-group\n\t\t\t[legend]=\"label\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[helperText]=\"helperText\"\n\t\t\t[invalid]=\"invalid\"\n\t\t\t[invalidText]=\"invalidText\"\n\t\t\t[warn]=\"warn\"\n\t\t\t[warnText]=\"warnText\"\n\t\t\tariaLabel=\"radiogroup\"\n\t\t\t[orientation]=\"orientation\"\n\t\t\t[labelPlacement]=\"labelPlacement\"\n\t\t\t(change)=\"onChange($event)\">\n\t\t\t<cds-radio value=\"Zero\" [checked]=\"true\">\n\t\t\t\tZero\n\t\t\t</cds-radio>\n\t\t\t<cds-radio [value]=\"One\">One</cds-radio>\n\t\t\t<cds-radio [value]=\"Two\">Two</cds-radio>\n\t\t\t<cds-radio [value]=\"Three\">Three</cds-radio>\n\t\t\t<cds-radio [value]=\"Four\" [disabled]=\"true\">Four</cds-radio>\n\t\t</cds-radio-group>\n\t`\n})"
|
|
69332
69583
|
},
|
|
69333
69584
|
{
|
|
69334
69585
|
"name": "Template",
|
|
@@ -69438,7 +69689,7 @@
|
|
|
69438
69689
|
"deprecated": false,
|
|
69439
69690
|
"deprecationMessage": "",
|
|
69440
69691
|
"type": "Story<ExpandableTile>",
|
|
69441
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span
|
|
69692
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span cdsAboveFold style=\"height: 200px\">Above the fold content here</span>\n\t\t\t<span cdsBelowFold style=\"height: 400px\">Below the fold content here</span>\n\t\t</cds-expandable-tile>\n\t`\n})"
|
|
69442
69693
|
},
|
|
69443
69694
|
{
|
|
69444
69695
|
"name": "Template",
|
|
@@ -73665,7 +73916,7 @@
|
|
|
73665
73916
|
"deprecated": false,
|
|
73666
73917
|
"deprecationMessage": "",
|
|
73667
73918
|
"type": "Story<Radio>",
|
|
73668
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t<
|
|
73919
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-radio-group\n\t\t\t[legend]=\"label\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[helperText]=\"helperText\"\n\t\t\t[invalid]=\"invalid\"\n\t\t\t[invalidText]=\"invalidText\"\n\t\t\t[warn]=\"warn\"\n\t\t\t[warnText]=\"warnText\"\n\t\t\tariaLabel=\"radiogroup\"\n\t\t\t[orientation]=\"orientation\"\n\t\t\t[labelPlacement]=\"labelPlacement\"\n\t\t\t(change)=\"onChange($event)\">\n\t\t\t<cds-radio value=\"Zero\" [checked]=\"true\">\n\t\t\t\tZero\n\t\t\t</cds-radio>\n\t\t\t<cds-radio [value]=\"One\">One</cds-radio>\n\t\t\t<cds-radio [value]=\"Two\">Two</cds-radio>\n\t\t\t<cds-radio [value]=\"Three\">Three</cds-radio>\n\t\t\t<cds-radio [value]=\"Four\" [disabled]=\"true\">Four</cds-radio>\n\t\t</cds-radio-group>\n\t`\n})"
|
|
73669
73920
|
}
|
|
73670
73921
|
],
|
|
73671
73922
|
"src/search/search.stories.ts": [
|
|
@@ -74449,6 +74700,26 @@
|
|
|
74449
74700
|
"type": "",
|
|
74450
74701
|
"defaultValue": "Template.bind({})"
|
|
74451
74702
|
},
|
|
74703
|
+
{
|
|
74704
|
+
"name": "Interactive",
|
|
74705
|
+
"ctype": "miscellaneous",
|
|
74706
|
+
"subtype": "variable",
|
|
74707
|
+
"file": "src/tiles/expandable-tile.stories.ts",
|
|
74708
|
+
"deprecated": false,
|
|
74709
|
+
"deprecationMessage": "",
|
|
74710
|
+
"type": "",
|
|
74711
|
+
"defaultValue": "InteractiveTemplate.bind({})"
|
|
74712
|
+
},
|
|
74713
|
+
{
|
|
74714
|
+
"name": "InteractiveTemplate",
|
|
74715
|
+
"ctype": "miscellaneous",
|
|
74716
|
+
"subtype": "variable",
|
|
74717
|
+
"file": "src/tiles/expandable-tile.stories.ts",
|
|
74718
|
+
"deprecated": false,
|
|
74719
|
+
"deprecationMessage": "",
|
|
74720
|
+
"type": "Story<ExpandableTile>",
|
|
74721
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile [interactive]=\"true\">\n\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\tAbove the fold content\n\t\t\t\t<button ibmButton>Click me!</button>\n\t\t\t</span>\n\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\tBelow the fold content here\n\t\t\t\t<button ibmButton>No me!</button>\n\t\t\t</span>\n\t\t</cds-expandable-tile>\n\t`\n})"
|
|
74722
|
+
},
|
|
74452
74723
|
{
|
|
74453
74724
|
"name": "LayerTemplate",
|
|
74454
74725
|
"ctype": "miscellaneous",
|
|
@@ -74457,7 +74728,7 @@
|
|
|
74457
74728
|
"deprecated": false,
|
|
74458
74729
|
"deprecationMessage": "",
|
|
74459
74730
|
"type": "Story<ExpandableTile>",
|
|
74460
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span
|
|
74731
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\tFirst Layer, above the fold content here\n\t\t\t</span>\n\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\tFirst Layer, below the fold content here\n\t\t\t</span>\n\t\t</cds-expandable-tile>\n\t\t<div cdsLayer>\n\t\t\t<cds-expandable-tile>\n\t\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\t\tSecond layer, above the fold content here\n\t\t\t\t</span>\n\t\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\t\tSecond layer, below the fold content here\n\t\t\t\t</span>\n\t\t\t</cds-expandable-tile>\n\t\t\t<div cdsLayer>\n\t\t\t\t<cds-expandable-tile>\n\t\t\t\t\t<span cdsAboveFold style=\"height: 200px\">\n\t\t\t\t\t\tThird layer, above the fold content here\n\t\t\t\t\t</span>\n\t\t\t\t\t<span cdsBelowFold style=\"height: 400px\">\n\t\t\t\t\t\tThird layer, below the fold content here\n\t\t\t\t\t</span>\n\t\t\t\t</cds-expandable-tile>\n\t\t\t</div>\n\t\t</div>\n\t`\n})"
|
|
74461
74732
|
},
|
|
74462
74733
|
{
|
|
74463
74734
|
"name": "Template",
|
|
@@ -74467,7 +74738,7 @@
|
|
|
74467
74738
|
"deprecated": false,
|
|
74468
74739
|
"deprecationMessage": "",
|
|
74469
74740
|
"type": "Story<ExpandableTile>",
|
|
74470
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span
|
|
74741
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-expandable-tile>\n\t\t\t<span cdsAboveFold style=\"height: 200px\">Above the fold content here</span>\n\t\t\t<span cdsBelowFold style=\"height: 400px\">Below the fold content here</span>\n\t\t</cds-expandable-tile>\n\t`\n})"
|
|
74471
74742
|
},
|
|
74472
74743
|
{
|
|
74473
74744
|
"name": "WithLayers",
|
|
@@ -80623,8 +80894,8 @@
|
|
|
80623
80894
|
"type": "component",
|
|
80624
80895
|
"linktype": "component",
|
|
80625
80896
|
"name": "RadioGroup",
|
|
80626
|
-
"coveragePercent":
|
|
80627
|
-
"coverageCount": "
|
|
80897
|
+
"coveragePercent": 82,
|
|
80898
|
+
"coverageCount": "28/34",
|
|
80628
80899
|
"status": "very-good"
|
|
80629
80900
|
},
|
|
80630
80901
|
{
|
|
@@ -82116,13 +82387,31 @@
|
|
|
82116
82387
|
"coverageCount": "0/1",
|
|
82117
82388
|
"status": "low"
|
|
82118
82389
|
},
|
|
82390
|
+
{
|
|
82391
|
+
"filePath": "src/tiles/expandable-tile-above.directive.ts",
|
|
82392
|
+
"type": "directive",
|
|
82393
|
+
"linktype": "directive",
|
|
82394
|
+
"name": "ExpandableTileAboveFoldDirective",
|
|
82395
|
+
"coveragePercent": 0,
|
|
82396
|
+
"coverageCount": "0/3",
|
|
82397
|
+
"status": "low"
|
|
82398
|
+
},
|
|
82399
|
+
{
|
|
82400
|
+
"filePath": "src/tiles/expandable-tile-below.directive.ts",
|
|
82401
|
+
"type": "directive",
|
|
82402
|
+
"linktype": "directive",
|
|
82403
|
+
"name": "ExpandableTileBelowFoldDirective",
|
|
82404
|
+
"coveragePercent": 0,
|
|
82405
|
+
"coverageCount": "0/3",
|
|
82406
|
+
"status": "low"
|
|
82407
|
+
},
|
|
82119
82408
|
{
|
|
82120
82409
|
"filePath": "src/tiles/expandable-tile.component.ts",
|
|
82121
82410
|
"type": "component",
|
|
82122
82411
|
"linktype": "component",
|
|
82123
82412
|
"name": "ExpandableTile",
|
|
82124
|
-
"coveragePercent":
|
|
82125
|
-
"coverageCount": "
|
|
82413
|
+
"coveragePercent": 23,
|
|
82414
|
+
"coverageCount": "3/13",
|
|
82126
82415
|
"status": "low"
|
|
82127
82416
|
},
|
|
82128
82417
|
{
|
|
@@ -82144,6 +82433,26 @@
|
|
|
82144
82433
|
"coverageCount": "0/1",
|
|
82145
82434
|
"status": "low"
|
|
82146
82435
|
},
|
|
82436
|
+
{
|
|
82437
|
+
"filePath": "src/tiles/expandable-tile.stories.ts",
|
|
82438
|
+
"type": "variable",
|
|
82439
|
+
"linktype": "miscellaneous",
|
|
82440
|
+
"linksubtype": "variable",
|
|
82441
|
+
"name": "Interactive",
|
|
82442
|
+
"coveragePercent": 0,
|
|
82443
|
+
"coverageCount": "0/1",
|
|
82444
|
+
"status": "low"
|
|
82445
|
+
},
|
|
82446
|
+
{
|
|
82447
|
+
"filePath": "src/tiles/expandable-tile.stories.ts",
|
|
82448
|
+
"type": "variable",
|
|
82449
|
+
"linktype": "miscellaneous",
|
|
82450
|
+
"linksubtype": "variable",
|
|
82451
|
+
"name": "InteractiveTemplate",
|
|
82452
|
+
"coveragePercent": 0,
|
|
82453
|
+
"coverageCount": "0/1",
|
|
82454
|
+
"status": "low"
|
|
82455
|
+
},
|
|
82147
82456
|
{
|
|
82148
82457
|
"filePath": "src/tiles/expandable-tile.stories.ts",
|
|
82149
82458
|
"type": "variable",
|