carbon-components-angular 5.68.0 → 5.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/aspect-ratio/aspect-ratio.directive.d.ts +54 -0
- package/aspect-ratio/aspect-ratio.module.d.ts +27 -0
- package/aspect-ratio/index.d.ts +23 -0
- package/breadcrumb/breadcrumb.component.d.ts +5 -1
- package/button/button-set.component.d.ts +11 -1
- package/docs/documentation/components/AILabelComponent.html +1 -1
- 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 +74 -32
- package/docs/documentation/components/BreadcrumbItemComponent.html +1 -1
- package/docs/documentation/components/ButtonSet.html +255 -7
- package/docs/documentation/components/Checkbox.html +1 -1
- package/docs/documentation/components/CheckboxGroup.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/ComboButtonComponent.html +1 -1
- package/docs/documentation/components/ContainedList.html +1 -1
- package/docs/documentation/components/ContainedListItem.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 +1 -1
- package/docs/documentation/components/FileComponent.html +1 -1
- package/docs/documentation/components/FileUploader.html +58 -50
- 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/MenuButtonComponent.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/PasswordInputLabelComponent.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 +80 -36
- package/docs/documentation/components/ProgressIndicator.html +1 -1
- package/docs/documentation/components/Radio.html +1 -1
- package/docs/documentation/components/RadioGroup.html +1 -1
- 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/TableHeaderDecorator.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/TagOperationalComponent.html +1 -1
- package/docs/documentation/components/TagSelectableComponent.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/components/TreeNodeComponent.html +1 -1
- package/docs/documentation/components/TreeViewComponent.html +82 -40
- package/docs/documentation/coverage.html +27 -15
- package/docs/documentation/dependencies.html +3 -3
- package/docs/documentation/directives/AspectRatioDirective.html +1037 -0
- package/docs/documentation/directives/Link.html +253 -4
- package/docs/documentation/graph/dependencies.svg +2432 -2390
- package/docs/documentation/index.html +19 -1
- package/docs/documentation/js/menu-wc.js +17 -0
- package/docs/documentation/js/menu-wc_es5.js +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/miscellaneous/typealiases.html +22 -1
- package/docs/documentation/modules/AspectRatioModule/dependencies.svg +66 -0
- package/docs/documentation/modules/AspectRatioModule.html +367 -0
- package/docs/documentation/modules/CheckboxModule/dependencies.svg +8 -8
- package/docs/documentation/modules/CheckboxModule.html +8 -8
- package/docs/documentation/modules/ComboBoxModule/dependencies.svg +6 -6
- package/docs/documentation/modules/ComboBoxModule.html +6 -6
- package/docs/documentation/modules/ComboButtonModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ComboButtonModule.html +4 -4
- package/docs/documentation/modules/ContextMenuModule/dependencies.svg +52 -52
- package/docs/documentation/modules/ContextMenuModule.html +52 -52
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +46 -42
- package/docs/documentation/modules/DatePickerInputModule.html +46 -42
- package/docs/documentation/modules/DatePickerModule/dependencies.svg +33 -29
- package/docs/documentation/modules/DatePickerModule.html +33 -29
- package/docs/documentation/modules/DialogModule/dependencies.svg +92 -92
- package/docs/documentation/modules/DialogModule.html +92 -92
- package/docs/documentation/modules/DocumentationModule/dependencies.svg +4 -4
- package/docs/documentation/modules/DocumentationModule.html +4 -4
- package/docs/documentation/modules/DropdownModule/dependencies.svg +83 -83
- package/docs/documentation/modules/DropdownModule.html +83 -83
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +58 -58
- package/docs/documentation/modules/FileUploaderModule.html +58 -58
- package/docs/documentation/modules/GridModule/dependencies.svg +63 -63
- package/docs/documentation/modules/GridModule.html +63 -63
- package/docs/documentation/modules/HeaderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/HeaderModule.html +4 -4
- package/docs/documentation/modules/I18nModule/dependencies.svg +15 -15
- package/docs/documentation/modules/I18nModule.html +15 -15
- package/docs/documentation/modules/InlineLoadingModule/dependencies.svg +4 -4
- package/docs/documentation/modules/InlineLoadingModule.html +4 -4
- package/docs/documentation/modules/InputModule/dependencies.svg +4 -4
- package/docs/documentation/modules/InputModule.html +4 -4
- package/docs/documentation/modules/LayerModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LayerModule.html +4 -4
- package/docs/documentation/modules/LayoutModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LayoutModule.html +4 -4
- package/docs/documentation/modules/LinkModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LinkModule.html +4 -4
- package/docs/documentation/modules/ListModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ListModule.html +4 -4
- package/docs/documentation/modules/LoadingModule/dependencies.svg +13 -13
- package/docs/documentation/modules/LoadingModule.html +13 -13
- package/docs/documentation/modules/MenuButtonModule/dependencies.svg +4 -4
- package/docs/documentation/modules/MenuButtonModule.html +4 -4
- package/docs/documentation/modules/ModalModule/dependencies.svg +38 -38
- package/docs/documentation/modules/ModalModule.html +38 -38
- package/docs/documentation/modules/NFormsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NFormsModule.html +4 -4
- package/docs/documentation/modules/NotificationModule/dependencies.svg +131 -131
- package/docs/documentation/modules/NotificationModule.html +131 -131
- package/docs/documentation/modules/NumberModule/dependencies.svg +24 -24
- package/docs/documentation/modules/NumberModule.html +24 -24
- package/docs/documentation/modules/PaginationModule/dependencies.svg +56 -56
- package/docs/documentation/modules/PaginationModule.html +56 -56
- package/docs/documentation/modules/PanelModule/dependencies.svg +36 -36
- package/docs/documentation/modules/PanelModule.html +36 -36
- package/docs/documentation/modules/PopoverModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PopoverModule.html +4 -4
- package/docs/documentation/modules/ProgressBarModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressBarModule.html +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +24 -24
- package/docs/documentation/modules/ProgressIndicatorModule.html +24 -24
- package/docs/documentation/modules/RadioModule/dependencies.svg +51 -47
- package/docs/documentation/modules/RadioModule.html +51 -47
- package/docs/documentation/modules/SearchModule/dependencies.svg +49 -45
- package/docs/documentation/modules/SearchModule.html +49 -45
- package/docs/documentation/modules/SelectModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SelectModule.html +4 -4
- package/docs/documentation/modules/SideNavModule/dependencies.svg +41 -41
- package/docs/documentation/modules/SideNavModule.html +41 -41
- package/docs/documentation/modules/SliderModule/dependencies.svg +26 -26
- package/docs/documentation/modules/SliderModule.html +26 -26
- package/docs/documentation/modules/StructuredListModule/dependencies.svg +68 -68
- package/docs/documentation/modules/StructuredListModule.html +68 -68
- package/docs/documentation/modules/TabsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TabsModule.html +4 -4
- package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
- package/docs/documentation/modules/ThemeModule.html +13 -13
- package/docs/documentation/modules/TilesModule/dependencies.svg +109 -109
- package/docs/documentation/modules/TilesModule.html +109 -109
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +20 -20
- package/docs/documentation/modules/TimePickerModule.html +20 -20
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +30 -30
- package/docs/documentation/modules/TimePickerSelectModule.html +30 -30
- package/docs/documentation/modules/ToggleModule/dependencies.svg +37 -41
- package/docs/documentation/modules/ToggleModule.html +37 -41
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +38 -38
- package/docs/documentation/modules/ToggletipModule.html +38 -38
- package/docs/documentation/modules/TooltipModule/dependencies.svg +28 -28
- package/docs/documentation/modules/TooltipModule.html +28 -28
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +36 -36
- package/docs/documentation/modules/TreeviewModule.html +36 -36
- package/docs/documentation/modules.html +17 -0
- package/docs/documentation/overview.html +2434 -2392
- package/docs/documentation.json +761 -174
- package/docs/storybook/3882.9e469f74.iframe.bundle.js +1 -0
- package/docs/storybook/6765.d3d95861.iframe.bundle.js +1 -0
- package/docs/storybook/8446.ede82a46.iframe.bundle.js +1 -0
- package/docs/storybook/901.85bd76a6.iframe.bundle.js +1 -0
- package/docs/storybook/ai-label-ai-label-stories.83ed183b.iframe.bundle.js +1 -0
- package/docs/storybook/aspect-ratio-aspect-ratio-stories.c37d215b.iframe.bundle.js +1 -0
- package/docs/storybook/breadcrumb-breadcrumb-stories.dd2ec21e.iframe.bundle.js +1 -0
- package/docs/storybook/button-button-set-stories.728ebf5f.iframe.bundle.js +1 -0
- package/docs/storybook/button-button-stories.c9729421.iframe.bundle.js +1 -0
- package/docs/storybook/button-icon-button-stories.fc23268c.iframe.bundle.js +1 -0
- package/docs/storybook/code-snippet-code-snippet-stories.3a3612f5.iframe.bundle.js +1 -0
- package/docs/storybook/combo-button-combo-button-stories.cef397f6.iframe.bundle.js +1 -0
- package/docs/storybook/contained-list-contained-list-stories.0ffa11a3.iframe.bundle.js +1 -0
- package/docs/storybook/dialog-overflow-menu-overflow-menu-stories.1472d98b.iframe.bundle.js +1 -0
- package/docs/storybook/file-uploader-file-stories.de3eb6c6.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/index-stories.aaa9daa9.iframe.bundle.js +1 -0
- package/docs/storybook/index.json +1 -1
- package/docs/storybook/input-password-stories.017691b2.iframe.bundle.js +1 -0
- package/docs/storybook/{link-link-stories.4cac438a.iframe.bundle.js → link-link-stories.f3492da3.iframe.bundle.js} +1 -1
- package/docs/storybook/main.6a758e9e.iframe.bundle.js +1 -0
- package/docs/storybook/main.css +4 -0
- package/docs/storybook/menu-button-menu-button-stories.8c0d07ce.iframe.bundle.js +1 -0
- package/docs/storybook/pagination-pagination-nav-stories.0597d93b.iframe.bundle.js +1 -0
- package/docs/storybook/pagination-pagination-stories.2cf29e31.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-dialogs-modal-with-table-stories.4f440932.iframe.bundle.js +1 -0
- package/docs/storybook/patterns-forms-multi-step-form-stories.b14dd97f.iframe.bundle.js +1 -0
- package/docs/storybook/{progress-bar-progress-bar-stories.1a710c39.iframe.bundle.js → progress-bar-progress-bar-stories.c95454e6.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/runtime~main.95ff2c7c.iframe.bundle.js +1 -0
- package/docs/storybook/stories.json +1 -1
- package/docs/storybook/toggletip-toggletip-stories.d189bccc.iframe.bundle.js +1 -0
- package/docs/storybook/{treeview-treeview-stories.5f353fb5.iframe.bundle.js → treeview-treeview-stories.dd4ab04a.iframe.bundle.js} +1 -1
- package/esm2020/aspect-ratio/aspect-ratio.directive.mjs +94 -0
- package/esm2020/aspect-ratio/aspect-ratio.module.mjs +16 -0
- package/esm2020/aspect-ratio/carbon-components-angular-aspect-ratio.mjs +5 -0
- package/esm2020/aspect-ratio/index.mjs +4 -0
- package/esm2020/breadcrumb/breadcrumb.component.mjs +12 -4
- package/esm2020/button/button-set.component.mjs +51 -4
- package/esm2020/file-uploader/file-uploader.component.mjs +1 -1
- package/esm2020/index.mjs +2 -1
- package/esm2020/link/link.directive.mjs +31 -2
- package/esm2020/notification/actionable-notification.component.mjs +1 -1
- package/esm2020/progress-bar/progress-bar.component.mjs +13 -3
- package/esm2020/tiles/clickable-tile.component.mjs +1 -1
- package/esm2020/treeview/treeview.component.mjs +12 -4
- package/fesm2015/carbon-components-angular-aspect-ratio.mjs +114 -0
- package/fesm2015/carbon-components-angular-aspect-ratio.mjs.map +1 -0
- package/fesm2015/carbon-components-angular-breadcrumb.mjs +11 -3
- package/fesm2015/carbon-components-angular-breadcrumb.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-button.mjs +48 -2
- package/fesm2015/carbon-components-angular-button.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-file-uploader.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-link.mjs +30 -1
- package/fesm2015/carbon-components-angular-link.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-notification.mjs +1 -1
- package/fesm2015/carbon-components-angular-notification.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-progress-bar.mjs +12 -2
- package/fesm2015/carbon-components-angular-progress-bar.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-tiles.mjs +1 -1
- package/fesm2015/carbon-components-angular-tiles.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-treeview.mjs +11 -3
- package/fesm2015/carbon-components-angular-treeview.mjs.map +1 -1
- package/fesm2015/carbon-components-angular.mjs +1 -0
- package/fesm2015/carbon-components-angular.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-aspect-ratio.mjs +114 -0
- package/fesm2020/carbon-components-angular-aspect-ratio.mjs.map +1 -0
- package/fesm2020/carbon-components-angular-breadcrumb.mjs +11 -3
- package/fesm2020/carbon-components-angular-breadcrumb.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-button.mjs +48 -2
- package/fesm2020/carbon-components-angular-button.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-file-uploader.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-link.mjs +30 -1
- package/fesm2020/carbon-components-angular-link.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-notification.mjs +1 -1
- package/fesm2020/carbon-components-angular-notification.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-progress-bar.mjs +12 -2
- package/fesm2020/carbon-components-angular-progress-bar.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-tiles.mjs +1 -1
- package/fesm2020/carbon-components-angular-tiles.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-treeview.mjs +11 -3
- package/fesm2020/carbon-components-angular-treeview.mjs.map +1 -1
- package/fesm2020/carbon-components-angular.mjs +1 -0
- package/fesm2020/carbon-components-angular.mjs.map +1 -1
- package/file-uploader/file-uploader.component.d.ts +1 -1
- package/index.d.ts +1 -0
- package/link/link.directive.d.ts +12 -1
- package/package.json +9 -1
- package/progress-bar/progress-bar.component.d.ts +5 -1
- package/treeview/treeview.component.d.ts +5 -1
- package/docs/storybook/3882.2af5ae61.iframe.bundle.js +0 -1
- package/docs/storybook/6765.d905495d.iframe.bundle.js +0 -1
- package/docs/storybook/8446.1692c590.iframe.bundle.js +0 -1
- package/docs/storybook/901.9de15b4c.iframe.bundle.js +0 -1
- package/docs/storybook/ai-label-ai-label-stories.3863651c.iframe.bundle.js +0 -1
- package/docs/storybook/breadcrumb-breadcrumb-stories.67d90790.iframe.bundle.js +0 -1
- package/docs/storybook/button-button-set-stories.f700607b.iframe.bundle.js +0 -1
- package/docs/storybook/button-button-stories.1ffb2978.iframe.bundle.js +0 -1
- package/docs/storybook/button-icon-button-stories.bf455670.iframe.bundle.js +0 -1
- package/docs/storybook/code-snippet-code-snippet-stories.206940f5.iframe.bundle.js +0 -1
- package/docs/storybook/combo-button-combo-button-stories.17bfb9ad.iframe.bundle.js +0 -1
- package/docs/storybook/contained-list-contained-list-stories.30927845.iframe.bundle.js +0 -1
- package/docs/storybook/dialog-overflow-menu-overflow-menu-stories.d99d789a.iframe.bundle.js +0 -1
- package/docs/storybook/file-uploader-file-stories.b2dca44d.iframe.bundle.js +0 -1
- package/docs/storybook/index-stories.c6574320.iframe.bundle.js +0 -1
- package/docs/storybook/input-password-stories.de80f004.iframe.bundle.js +0 -1
- package/docs/storybook/main.4ba3ac58.iframe.bundle.js +0 -1
- package/docs/storybook/menu-button-menu-button-stories.869bfd47.iframe.bundle.js +0 -1
- package/docs/storybook/pagination-pagination-nav-stories.647ce4df.iframe.bundle.js +0 -1
- package/docs/storybook/pagination-pagination-stories.aa18b936.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-dialogs-modal-with-table-stories.667327eb.iframe.bundle.js +0 -1
- package/docs/storybook/patterns-forms-multi-step-form-stories.9778a566.iframe.bundle.js +0 -1
- package/docs/storybook/runtime~main.229d454b.iframe.bundle.js +0 -1
- package/docs/storybook/toggletip-toggletip-stories.44da6843.iframe.bundle.js +0 -1
package/docs/documentation.json
CHANGED
|
@@ -11760,6 +11760,230 @@
|
|
|
11760
11760
|
]
|
|
11761
11761
|
}
|
|
11762
11762
|
},
|
|
11763
|
+
{
|
|
11764
|
+
"name": "AspectRatioDirective",
|
|
11765
|
+
"id": "directive-AspectRatioDirective-9b02a9d54c28db7afe4555b131c9fbbcd695f061b23dd8febfca2c2a8ff80655d3e9f9be617e258ec4b3490455cfd23294f9116aedd7a9f0107cfeae3e2e8bde",
|
|
11766
|
+
"file": "src/aspect-ratio/aspect-ratio.directive.ts",
|
|
11767
|
+
"type": "directive",
|
|
11768
|
+
"description": "<p>Applies Carbon aspect ratio box classes (<code>cds--aspect-ratio</code>) to the host element.</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\"><div cdsAspectRatio ratio="16x9">...</div></code></pre></div><b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { AspectRatioModule } from 'carbon-components-angular';</code></pre></div>",
|
|
11769
|
+
"rawdescription": "\n\nApplies Carbon aspect ratio box classes (`cds--aspect-ratio`) to the host element.\n\n```html\n<div cdsAspectRatio ratio=\"16x9\">...</div>\n```\n\n```typescript\nimport { AspectRatioModule } from 'carbon-components-angular';\n```\n",
|
|
11770
|
+
"sourceCode": "import { Directive, HostBinding, Input } from \"@angular/core\";\r\n\r\nexport type AspectRatioValue =\r\n\t| \"1x1\"\r\n\t| \"2x3\"\r\n\t| \"3x2\"\r\n\t| \"3x4\"\r\n\t| \"4x3\"\r\n\t| \"1x2\"\r\n\t| \"2x1\"\r\n\t| \"9x16\"\r\n\t| \"16x9\";\r\n\r\n/**\r\n * Applies Carbon aspect ratio box classes (`cds--aspect-ratio`) to the host element.\r\n *\r\n * ```html\r\n * <div cdsAspectRatio ratio=\"16x9\">...</div>\r\n * ```\r\n *\r\n * ```typescript\r\n * import { AspectRatioModule } from 'carbon-components-angular';\r\n * ```\r\n */\r\n@Directive({\r\n\tselector: \"[cdsAspectRatio], [ibmAspectRatio]\"\r\n})\r\nexport class AspectRatioDirective {\r\n\t/**\r\n\t * Set aspect ratio\r\n\t */\r\n\t@Input() ratio: AspectRatioValue = \"1x1\";\r\n\r\n\t// Set base class\r\n\t@HostBinding(\"class.cds--aspect-ratio\") readonly aspectRatioBase = true;\r\n\r\n\t/**\r\n\t * Set ratio class based on `ratio` input\r\n\t */\r\n\t@HostBinding(\"class.cds--aspect-ratio--1x1\") get ratio1x1() {\r\n\t\treturn this.ratio === \"1x1\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--2x3\") get ratio2x3() {\r\n\t\treturn this.ratio === \"2x3\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--3x2\") get ratio3x2() {\r\n\t\treturn this.ratio === \"3x2\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--3x4\") get ratio3x4() {\r\n\t\treturn this.ratio === \"3x4\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--4x3\") get ratio4x3() {\r\n\t\treturn this.ratio === \"4x3\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--1x2\") get ratio1x2() {\r\n\t\treturn this.ratio === \"1x2\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--2x1\") get ratio2x1() {\r\n\t\treturn this.ratio === \"2x1\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--9x16\") get ratio9x16() {\r\n\t\treturn this.ratio === \"9x16\";\r\n\t}\r\n\t@HostBinding(\"class.cds--aspect-ratio--16x9\") get ratio16x9() {\r\n\t\treturn this.ratio === \"16x9\";\r\n\t}\r\n}\r\n",
|
|
11771
|
+
"selector": "[cdsAspectRatio], [ibmAspectRatio]",
|
|
11772
|
+
"providers": [],
|
|
11773
|
+
"hostDirectives": [],
|
|
11774
|
+
"standalone": false,
|
|
11775
|
+
"inputsClass": [
|
|
11776
|
+
{
|
|
11777
|
+
"name": "ratio",
|
|
11778
|
+
"defaultValue": "\"1x1\"",
|
|
11779
|
+
"deprecated": false,
|
|
11780
|
+
"deprecationMessage": "",
|
|
11781
|
+
"rawdescription": "\n\nSet aspect ratio\n",
|
|
11782
|
+
"description": "<p>Set aspect ratio</p>\n",
|
|
11783
|
+
"line": 32,
|
|
11784
|
+
"type": "AspectRatioValue",
|
|
11785
|
+
"decorators": []
|
|
11786
|
+
}
|
|
11787
|
+
],
|
|
11788
|
+
"outputsClass": [],
|
|
11789
|
+
"deprecated": false,
|
|
11790
|
+
"deprecationMessage": "",
|
|
11791
|
+
"hostBindings": [
|
|
11792
|
+
{
|
|
11793
|
+
"name": "class.cds--aspect-ratio",
|
|
11794
|
+
"defaultValue": "true",
|
|
11795
|
+
"deprecated": false,
|
|
11796
|
+
"deprecationMessage": "",
|
|
11797
|
+
"line": 35,
|
|
11798
|
+
"type": "true",
|
|
11799
|
+
"decorators": []
|
|
11800
|
+
},
|
|
11801
|
+
{
|
|
11802
|
+
"name": "class.cds--aspect-ratio--16x9",
|
|
11803
|
+
"deprecated": false,
|
|
11804
|
+
"deprecationMessage": "",
|
|
11805
|
+
"line": 64,
|
|
11806
|
+
"type": "boolean",
|
|
11807
|
+
"decorators": []
|
|
11808
|
+
},
|
|
11809
|
+
{
|
|
11810
|
+
"name": "class.cds--aspect-ratio--1x1",
|
|
11811
|
+
"deprecated": false,
|
|
11812
|
+
"deprecationMessage": "",
|
|
11813
|
+
"rawdescription": "\n\nSet ratio class based on `ratio` input\n",
|
|
11814
|
+
"description": "<p>Set ratio class based on <code>ratio</code> input</p>\n",
|
|
11815
|
+
"line": 40,
|
|
11816
|
+
"type": "boolean",
|
|
11817
|
+
"decorators": []
|
|
11818
|
+
},
|
|
11819
|
+
{
|
|
11820
|
+
"name": "class.cds--aspect-ratio--1x2",
|
|
11821
|
+
"deprecated": false,
|
|
11822
|
+
"deprecationMessage": "",
|
|
11823
|
+
"line": 55,
|
|
11824
|
+
"type": "boolean",
|
|
11825
|
+
"decorators": []
|
|
11826
|
+
},
|
|
11827
|
+
{
|
|
11828
|
+
"name": "class.cds--aspect-ratio--2x1",
|
|
11829
|
+
"deprecated": false,
|
|
11830
|
+
"deprecationMessage": "",
|
|
11831
|
+
"line": 58,
|
|
11832
|
+
"type": "boolean",
|
|
11833
|
+
"decorators": []
|
|
11834
|
+
},
|
|
11835
|
+
{
|
|
11836
|
+
"name": "class.cds--aspect-ratio--2x3",
|
|
11837
|
+
"deprecated": false,
|
|
11838
|
+
"deprecationMessage": "",
|
|
11839
|
+
"line": 43,
|
|
11840
|
+
"type": "boolean",
|
|
11841
|
+
"decorators": []
|
|
11842
|
+
},
|
|
11843
|
+
{
|
|
11844
|
+
"name": "class.cds--aspect-ratio--3x2",
|
|
11845
|
+
"deprecated": false,
|
|
11846
|
+
"deprecationMessage": "",
|
|
11847
|
+
"line": 46,
|
|
11848
|
+
"type": "boolean",
|
|
11849
|
+
"decorators": []
|
|
11850
|
+
},
|
|
11851
|
+
{
|
|
11852
|
+
"name": "class.cds--aspect-ratio--3x4",
|
|
11853
|
+
"deprecated": false,
|
|
11854
|
+
"deprecationMessage": "",
|
|
11855
|
+
"line": 49,
|
|
11856
|
+
"type": "boolean",
|
|
11857
|
+
"decorators": []
|
|
11858
|
+
},
|
|
11859
|
+
{
|
|
11860
|
+
"name": "class.cds--aspect-ratio--4x3",
|
|
11861
|
+
"deprecated": false,
|
|
11862
|
+
"deprecationMessage": "",
|
|
11863
|
+
"line": 52,
|
|
11864
|
+
"type": "boolean",
|
|
11865
|
+
"decorators": []
|
|
11866
|
+
},
|
|
11867
|
+
{
|
|
11868
|
+
"name": "class.cds--aspect-ratio--9x16",
|
|
11869
|
+
"deprecated": false,
|
|
11870
|
+
"deprecationMessage": "",
|
|
11871
|
+
"line": 61,
|
|
11872
|
+
"type": "boolean",
|
|
11873
|
+
"decorators": []
|
|
11874
|
+
}
|
|
11875
|
+
],
|
|
11876
|
+
"hostListeners": [],
|
|
11877
|
+
"propertiesClass": [
|
|
11878
|
+
{
|
|
11879
|
+
"name": "aspectRatioBase",
|
|
11880
|
+
"defaultValue": "true",
|
|
11881
|
+
"deprecated": false,
|
|
11882
|
+
"deprecationMessage": "",
|
|
11883
|
+
"type": "",
|
|
11884
|
+
"optional": false,
|
|
11885
|
+
"description": "",
|
|
11886
|
+
"line": 35,
|
|
11887
|
+
"decorators": [
|
|
11888
|
+
{
|
|
11889
|
+
"name": "HostBinding",
|
|
11890
|
+
"stringifiedArguments": "'class.cds--aspect-ratio'"
|
|
11891
|
+
}
|
|
11892
|
+
],
|
|
11893
|
+
"modifierKind": [
|
|
11894
|
+
170,
|
|
11895
|
+
148
|
|
11896
|
+
]
|
|
11897
|
+
}
|
|
11898
|
+
],
|
|
11899
|
+
"methodsClass": [],
|
|
11900
|
+
"extends": [],
|
|
11901
|
+
"accessors": {
|
|
11902
|
+
"ratio1x1": {
|
|
11903
|
+
"name": "ratio1x1",
|
|
11904
|
+
"getSignature": {
|
|
11905
|
+
"name": "ratio1x1",
|
|
11906
|
+
"type": "",
|
|
11907
|
+
"returnType": "",
|
|
11908
|
+
"line": 40,
|
|
11909
|
+
"rawdescription": "\n\nSet ratio class based on `ratio` input\n",
|
|
11910
|
+
"description": "<p>Set ratio class based on <code>ratio</code> input</p>\n"
|
|
11911
|
+
}
|
|
11912
|
+
},
|
|
11913
|
+
"ratio2x3": {
|
|
11914
|
+
"name": "ratio2x3",
|
|
11915
|
+
"getSignature": {
|
|
11916
|
+
"name": "ratio2x3",
|
|
11917
|
+
"type": "",
|
|
11918
|
+
"returnType": "",
|
|
11919
|
+
"line": 43
|
|
11920
|
+
}
|
|
11921
|
+
},
|
|
11922
|
+
"ratio3x2": {
|
|
11923
|
+
"name": "ratio3x2",
|
|
11924
|
+
"getSignature": {
|
|
11925
|
+
"name": "ratio3x2",
|
|
11926
|
+
"type": "",
|
|
11927
|
+
"returnType": "",
|
|
11928
|
+
"line": 46
|
|
11929
|
+
}
|
|
11930
|
+
},
|
|
11931
|
+
"ratio3x4": {
|
|
11932
|
+
"name": "ratio3x4",
|
|
11933
|
+
"getSignature": {
|
|
11934
|
+
"name": "ratio3x4",
|
|
11935
|
+
"type": "",
|
|
11936
|
+
"returnType": "",
|
|
11937
|
+
"line": 49
|
|
11938
|
+
}
|
|
11939
|
+
},
|
|
11940
|
+
"ratio4x3": {
|
|
11941
|
+
"name": "ratio4x3",
|
|
11942
|
+
"getSignature": {
|
|
11943
|
+
"name": "ratio4x3",
|
|
11944
|
+
"type": "",
|
|
11945
|
+
"returnType": "",
|
|
11946
|
+
"line": 52
|
|
11947
|
+
}
|
|
11948
|
+
},
|
|
11949
|
+
"ratio1x2": {
|
|
11950
|
+
"name": "ratio1x2",
|
|
11951
|
+
"getSignature": {
|
|
11952
|
+
"name": "ratio1x2",
|
|
11953
|
+
"type": "",
|
|
11954
|
+
"returnType": "",
|
|
11955
|
+
"line": 55
|
|
11956
|
+
}
|
|
11957
|
+
},
|
|
11958
|
+
"ratio2x1": {
|
|
11959
|
+
"name": "ratio2x1",
|
|
11960
|
+
"getSignature": {
|
|
11961
|
+
"name": "ratio2x1",
|
|
11962
|
+
"type": "",
|
|
11963
|
+
"returnType": "",
|
|
11964
|
+
"line": 58
|
|
11965
|
+
}
|
|
11966
|
+
},
|
|
11967
|
+
"ratio9x16": {
|
|
11968
|
+
"name": "ratio9x16",
|
|
11969
|
+
"getSignature": {
|
|
11970
|
+
"name": "ratio9x16",
|
|
11971
|
+
"type": "",
|
|
11972
|
+
"returnType": "",
|
|
11973
|
+
"line": 61
|
|
11974
|
+
}
|
|
11975
|
+
},
|
|
11976
|
+
"ratio16x9": {
|
|
11977
|
+
"name": "ratio16x9",
|
|
11978
|
+
"getSignature": {
|
|
11979
|
+
"name": "ratio16x9",
|
|
11980
|
+
"type": "",
|
|
11981
|
+
"returnType": "",
|
|
11982
|
+
"line": 64
|
|
11983
|
+
}
|
|
11984
|
+
}
|
|
11985
|
+
}
|
|
11986
|
+
},
|
|
11763
11987
|
{
|
|
11764
11988
|
"name": "BaseModal",
|
|
11765
11989
|
"id": "directive-BaseModal-d8347362b4c8b2a962c04c43075c574d038768020fb11f313178a7199c25760bc83538501c0834382307a5b30cecce3ec90d5e468ad58291de23571ba48cbac5",
|
|
@@ -14603,12 +14827,12 @@
|
|
|
14603
14827
|
},
|
|
14604
14828
|
{
|
|
14605
14829
|
"name": "Link",
|
|
14606
|
-
"id": "directive-Link-
|
|
14830
|
+
"id": "directive-Link-c9c24f5c3d2578bf73fd9395c522dbed9b51037e0049a9bf69e4eee49568b7b9f7c876d7a86b73ea32897dd1e11d998d18c4e9f030d931141d22e59cc3dce225",
|
|
14607
14831
|
"file": "src/link/link.directive.ts",
|
|
14608
14832
|
"type": "directive",
|
|
14609
14833
|
"description": "<p>A convenience directive for applying styling to a link. Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { LinkModule } from 'carbon-components-angular';</code></pre></div><b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\"><a href="#" cdsLink>A link</a></code></pre></div><p>See the <a href=\"http://www.carbondesignsystem.com/components/link/code\">vanilla carbon docs</a> for more detail.</p>\n<p><a href=\"../../?path=/story/components-link--basic\">See demo</a></p>\n",
|
|
14610
14834
|
"rawdescription": "\n\nA convenience directive for applying styling to a link. Get started with importing the module:\n\n```typescript\nimport { LinkModule } from 'carbon-components-angular';\n```\n\n```html\n<a href=\"#\" cdsLink>A link</a>\n```\n\nSee the [vanilla carbon docs](http://www.carbondesignsystem.com/components/link/code) for more detail.\n\n[See demo](../../?path=/story/components-link--basic)\n",
|
|
14611
|
-
"sourceCode": "import {\n\tDirective,\n\tHostBinding,\n\tInput\n} from \"@angular/core\";\n\n/**\n * A convenience directive for applying styling to a link. Get started with importing the module:\n *\n * ```typescript\n * import { LinkModule } from 'carbon-components-angular';\n * ```\n *\n * ```html\n * <a href=\"#\" cdsLink>A link</a>\n * ```\n *\n * See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/link/code) for more detail.\n *\n * [See demo](../../?path=/story/components-link--basic)\n */\n@Directive({\n\tselector: \"[cdsLink], [ibmLink]\"\n})\n\n\nexport class Link {\n\t@HostBinding(\"class.cds--link\") baseClass = true;\n\n\t/**\n\t * Automatically set to `-1` when link is disabled.\n\t */\n\t@HostBinding(\"attr.tabindex\") tabindex;\n\n\t/**\n\t * Set to true to show links inline in a sentence or paragraph.\n\t */\n\t@Input()\n\t@HostBinding(\"class.cds--link--inline\") inline = false;\n\n\t/**\n\t * Set to true to disable link.\n\t */\n\t@Input()\n\t@HostBinding(\"attr.aria-disabled\")\n\t@HostBinding(\"class.cds--link--disabled\")\n\tset disabled(disabled: boolean) {\n\t\tthis._disabled = disabled;\n\t\tthis.tabindex = this.disabled ? -1 : null;\n\t}\n\n\tget disabled(): boolean {\n\t\treturn this._disabled;\n\t}\n\n\tprivate _disabled;\n}\n",
|
|
14835
|
+
"sourceCode": "import {\n\tDirective,\n\tHostBinding,\n\tInput\n} from \"@angular/core\";\n\n/**\n * A convenience directive for applying styling to a link. Get started with importing the module:\n *\n * ```typescript\n * import { LinkModule } from 'carbon-components-angular';\n * ```\n *\n * ```html\n * <a href=\"#\" cdsLink>A link</a>\n * ```\n *\n * See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/link/code) for more detail.\n *\n * [See demo](../../?path=/story/components-link--basic)\n */\n@Directive({\n\tselector: \"[cdsLink], [ibmLink]\"\n})\n\n\nexport class Link {\n\t@HostBinding(\"class.cds--link\") baseClass = true;\n\n\t/**\n\t * Automatically set to `-1` when link is disabled.\n\t */\n\t@HostBinding(\"attr.tabindex\") tabindex;\n\n\t/**\n\t * Set to true to show links inline in a sentence or paragraph.\n\t */\n\t@Input()\n\t@HostBinding(\"class.cds--link--inline\") inline = false;\n\n\t/**\n\t * Set to `sm`, `md`, or `lg` to scale the link typography.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\";\n\n\t@HostBinding(\"class.cds--link--sm\") get sizeSm(): boolean {\n\t\treturn this.size === \"sm\";\n\t}\n\n\t@HostBinding(\"class.cds--link--md\") get sizeMd(): boolean {\n\t\treturn this.size === \"md\";\n\t}\n\n\t@HostBinding(\"class.cds--link--lg\") get sizeLg(): boolean {\n\t\treturn this.size === \"lg\";\n\t}\n\n\t/**\n\t * Set to `true` to apply visited link styling.\n\t */\n\t@Input() @HostBinding(\"class.cds--link--visited\") visited = false;\n\n\t/**\n\t * Set to true to disable link.\n\t */\n\t@Input()\n\t@HostBinding(\"attr.aria-disabled\")\n\t@HostBinding(\"class.cds--link--disabled\")\n\tset disabled(disabled: boolean) {\n\t\tthis._disabled = disabled;\n\t\tthis.tabindex = this.disabled ? -1 : null;\n\t}\n\n\tget disabled(): boolean {\n\t\treturn this._disabled;\n\t}\n\n\tprivate _disabled;\n}\n",
|
|
14612
14836
|
"selector": "[cdsLink], [ibmLink]",
|
|
14613
14837
|
"providers": [],
|
|
14614
14838
|
"hostDirectives": [],
|
|
@@ -14620,7 +14844,7 @@
|
|
|
14620
14844
|
"deprecationMessage": "",
|
|
14621
14845
|
"rawdescription": "\n\nSet to true to disable link.\n",
|
|
14622
14846
|
"description": "<p>Set to true to disable link.</p>\n",
|
|
14623
|
-
"line":
|
|
14847
|
+
"line": 69,
|
|
14624
14848
|
"type": "boolean",
|
|
14625
14849
|
"decorators": []
|
|
14626
14850
|
},
|
|
@@ -14634,6 +14858,27 @@
|
|
|
14634
14858
|
"line": 39,
|
|
14635
14859
|
"type": "boolean",
|
|
14636
14860
|
"decorators": []
|
|
14861
|
+
},
|
|
14862
|
+
{
|
|
14863
|
+
"name": "size",
|
|
14864
|
+
"deprecated": false,
|
|
14865
|
+
"deprecationMessage": "",
|
|
14866
|
+
"rawdescription": "\n\nSet to `sm`, `md`, or `lg` to scale the link typography.\n",
|
|
14867
|
+
"description": "<p>Set to <code>sm</code>, <code>md</code>, or <code>lg</code> to scale the link typography.</p>\n",
|
|
14868
|
+
"line": 44,
|
|
14869
|
+
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
14870
|
+
"decorators": []
|
|
14871
|
+
},
|
|
14872
|
+
{
|
|
14873
|
+
"name": "visited",
|
|
14874
|
+
"defaultValue": "false",
|
|
14875
|
+
"deprecated": false,
|
|
14876
|
+
"deprecationMessage": "",
|
|
14877
|
+
"rawdescription": "\n\nSet to `true` to apply visited link styling.\n",
|
|
14878
|
+
"description": "<p>Set to <code>true</code> to apply visited link styling.</p>\n",
|
|
14879
|
+
"line": 61,
|
|
14880
|
+
"type": "boolean",
|
|
14881
|
+
"decorators": []
|
|
14637
14882
|
}
|
|
14638
14883
|
],
|
|
14639
14884
|
"outputsClass": [],
|
|
@@ -14658,6 +14903,30 @@
|
|
|
14658
14903
|
"line": 28,
|
|
14659
14904
|
"type": "boolean",
|
|
14660
14905
|
"decorators": []
|
|
14906
|
+
},
|
|
14907
|
+
{
|
|
14908
|
+
"name": "class.cds--link--lg",
|
|
14909
|
+
"deprecated": false,
|
|
14910
|
+
"deprecationMessage": "",
|
|
14911
|
+
"line": 54,
|
|
14912
|
+
"type": "boolean",
|
|
14913
|
+
"decorators": []
|
|
14914
|
+
},
|
|
14915
|
+
{
|
|
14916
|
+
"name": "class.cds--link--md",
|
|
14917
|
+
"deprecated": false,
|
|
14918
|
+
"deprecationMessage": "",
|
|
14919
|
+
"line": 50,
|
|
14920
|
+
"type": "boolean",
|
|
14921
|
+
"decorators": []
|
|
14922
|
+
},
|
|
14923
|
+
{
|
|
14924
|
+
"name": "class.cds--link--sm",
|
|
14925
|
+
"deprecated": false,
|
|
14926
|
+
"deprecationMessage": "",
|
|
14927
|
+
"line": 46,
|
|
14928
|
+
"type": "boolean",
|
|
14929
|
+
"decorators": []
|
|
14661
14930
|
}
|
|
14662
14931
|
],
|
|
14663
14932
|
"hostListeners": [],
|
|
@@ -14704,6 +14973,33 @@
|
|
|
14704
14973
|
"methodsClass": [],
|
|
14705
14974
|
"extends": [],
|
|
14706
14975
|
"accessors": {
|
|
14976
|
+
"sizeSm": {
|
|
14977
|
+
"name": "sizeSm",
|
|
14978
|
+
"getSignature": {
|
|
14979
|
+
"name": "sizeSm",
|
|
14980
|
+
"type": "boolean",
|
|
14981
|
+
"returnType": "boolean",
|
|
14982
|
+
"line": 46
|
|
14983
|
+
}
|
|
14984
|
+
},
|
|
14985
|
+
"sizeMd": {
|
|
14986
|
+
"name": "sizeMd",
|
|
14987
|
+
"getSignature": {
|
|
14988
|
+
"name": "sizeMd",
|
|
14989
|
+
"type": "boolean",
|
|
14990
|
+
"returnType": "boolean",
|
|
14991
|
+
"line": 50
|
|
14992
|
+
}
|
|
14993
|
+
},
|
|
14994
|
+
"sizeLg": {
|
|
14995
|
+
"name": "sizeLg",
|
|
14996
|
+
"getSignature": {
|
|
14997
|
+
"name": "sizeLg",
|
|
14998
|
+
"type": "boolean",
|
|
14999
|
+
"returnType": "boolean",
|
|
15000
|
+
"line": 54
|
|
15001
|
+
}
|
|
15002
|
+
},
|
|
14707
15003
|
"disabled": {
|
|
14708
15004
|
"name": "disabled",
|
|
14709
15005
|
"setSignature": {
|
|
@@ -14720,7 +15016,7 @@
|
|
|
14720
15016
|
}
|
|
14721
15017
|
],
|
|
14722
15018
|
"returnType": "void",
|
|
14723
|
-
"line":
|
|
15019
|
+
"line": 69,
|
|
14724
15020
|
"rawdescription": "\n\nSet to true to disable link.\n",
|
|
14725
15021
|
"description": "<p>Set to true to disable link.</p>\n",
|
|
14726
15022
|
"jsdoctags": [
|
|
@@ -14739,7 +15035,7 @@
|
|
|
14739
15035
|
"name": "disabled",
|
|
14740
15036
|
"type": "boolean",
|
|
14741
15037
|
"returnType": "boolean",
|
|
14742
|
-
"line":
|
|
15038
|
+
"line": 74
|
|
14743
15039
|
}
|
|
14744
15040
|
}
|
|
14745
15041
|
}
|
|
@@ -22310,7 +22606,7 @@
|
|
|
22310
22606
|
},
|
|
22311
22607
|
{
|
|
22312
22608
|
"name": "Breadcrumb",
|
|
22313
|
-
"id": "component-Breadcrumb-
|
|
22609
|
+
"id": "component-Breadcrumb-ab3b81bbe8e70095b2f4335a5dc47306d708c236b7ab97d4a9515476c3c89c4f39562ff1011e7b9db31bc39bfa547c0f7fa1aa6ab1263e700823c1b53119b050",
|
|
22314
22610
|
"file": "src/breadcrumb/breadcrumb.component.ts",
|
|
22315
22611
|
"encapsulation": [],
|
|
22316
22612
|
"entryComponents": [],
|
|
@@ -22320,7 +22616,7 @@
|
|
|
22320
22616
|
"selector": "cds-breadcrumb, ibm-breadcrumb",
|
|
22321
22617
|
"styleUrls": [],
|
|
22322
22618
|
"styles": [],
|
|
22323
|
-
"template": "<nav #nav class=\"cds--breadcrumb\"\n\t[ngClass]=\"{\n\t\t'cds--skeleton' : skeleton,\n\t\t'cds--breadcrumb--no-trailing-slash' : noTrailingSlash\n\t}\"\n\t[attr.aria-label]=\"ariaLabel\">\n\t<ng-template [ngIf]=\"shouldShowContent\">\n\t\t<ng-content></ng-content>\n\t</ng-template>\n\t<ng-template [ngIf]=\"!shouldShowOverflow\">\n\t\t<cds-breadcrumb-item\n\t\t\t*ngFor=\"let item of items\"\n\t\t\t[href]=\"item.href\"\n\t\t\t[route]=\"item.route\"\n\t\t\t[routeExtras]=\"item.routeExtras\"\n\t\t\t[current]=\"item.current\"\n\t\t\t[ariaCurrent]=\"item.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!item.template\">{{item.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"item.template\"\n\t\t\t\t[ngTemplateOutlet]=\"item.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t</ng-template>\n\t<ng-template [ngIf]=\"shouldShowOverflow\">\n\t\t<cds-breadcrumb-item\n\t\t\t[href]=\"first?.href\"\n\t\t\t[route]=\"first?.route\"\n\t\t\t[routeExtras]=\"first?.routeExtras\"\n\t\t\t[current]=\"first?.current\"\n\t\t\t[ariaCurrent]=\"first?.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!first?.template\">{{first?.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"first?.template\"\n\t\t\t\t[ngTemplateOutlet]=\"first?.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: first }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t\t<cds-breadcrumb-item>\n\t\t\t<ng-template #overflowMenuTrigger>\n\t\t\t\t<svg class=\"cds--overflow-menu__icon\" cdsIcon=\"overflow-menu--horizontal\" size=\"16\"></svg>\n\t\t\t</ng-template>\n\t\t\t<cds-overflow-menu\n\t\t\t\t[customTrigger]=\"overflowMenuTrigger\"\n\t\t\t\ttriggerClass=\"cds--btn--icon-only\"\n\t\t\t\t[description]=\"description\"\n\t\t\t\t[autoAlign]=\"autoAlign\">\n\t\t\t\t<li class=\"cds--overflow-menu-options__option\"\n\t\t\t\t\t*ngFor=\"let item of overflowItems\">\n\t\t\t\t\t<a class=\"cds--overflow-menu-options__btn\"\n\t\t\t\t\t\thref=\"{{item?.href}}\"\n\t\t\t\t\t\t(click)=\"navigate($event, item)\"\n\t\t\t\t\t\tstyle=\"text-decoration: none;\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!item?.template\">{{item?.content}}</ng-container>\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t*ngIf=\"item?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</cds-overflow-menu>\n\t\t</cds-breadcrumb-item>\n\t\t<cds-breadcrumb-item\n\t\t\t[href]=\"secondLast?.href\"\n\t\t\t[route]=\"secondLast?.route\"\n\t\t\t[routeExtras]=\"secondLast?.routeExtras\"\n\t\t\t[current]=\"secondLast?.current\"\n\t\t\t[ariaCurrent]=\"secondLast?.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!secondLast?.template\">{{secondLast?.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"secondLast?.template\"\n\t\t\t\t[ngTemplateOutlet]=\"secondLast?.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: secondLast }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t\t<cds-breadcrumb-item\n\t\t\t[href]=\"last?.href\"\n\t\t\t[route]=\"last?.route\"\n\t\t\t[routeExtras]=\"last?.routeExtras\"\n\t\t\t[current]=\"last?.current\"\n\t\t\t[ariaCurrent]=\"last?.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!last?.template\">{{last?.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"last?.template\"\n\t\t\t\t[ngTemplateOutlet]=\"last?.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: last }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t</ng-template>\n</nav>",
|
|
22619
|
+
"template": "<nav #nav class=\"cds--breadcrumb\"\n\t[ngClass]=\"{\n\t\t'cds--skeleton' : skeleton,\n\t\t'cds--breadcrumb--no-trailing-slash' : noTrailingSlash,\n\t\t'cds--breadcrumb--sm' : size === 'sm'\n\t}\"\n\t[attr.aria-label]=\"ariaLabel\">\n\t<ng-template [ngIf]=\"shouldShowContent\">\n\t\t<ng-content></ng-content>\n\t</ng-template>\n\t<ng-template [ngIf]=\"!shouldShowOverflow\">\n\t\t<cds-breadcrumb-item\n\t\t\t*ngFor=\"let item of items\"\n\t\t\t[href]=\"item.href\"\n\t\t\t[route]=\"item.route\"\n\t\t\t[routeExtras]=\"item.routeExtras\"\n\t\t\t[current]=\"item.current\"\n\t\t\t[ariaCurrent]=\"item.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!item.template\">{{item.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"item.template\"\n\t\t\t\t[ngTemplateOutlet]=\"item.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t</ng-template>\n\t<ng-template [ngIf]=\"shouldShowOverflow\">\n\t\t<cds-breadcrumb-item\n\t\t\t[href]=\"first?.href\"\n\t\t\t[route]=\"first?.route\"\n\t\t\t[routeExtras]=\"first?.routeExtras\"\n\t\t\t[current]=\"first?.current\"\n\t\t\t[ariaCurrent]=\"first?.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!first?.template\">{{first?.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"first?.template\"\n\t\t\t\t[ngTemplateOutlet]=\"first?.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: first }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t\t<cds-breadcrumb-item>\n\t\t\t<ng-template #overflowMenuTrigger>\n\t\t\t\t<svg class=\"cds--overflow-menu__icon\" cdsIcon=\"overflow-menu--horizontal\" size=\"16\"></svg>\n\t\t\t</ng-template>\n\t\t\t<cds-overflow-menu\n\t\t\t\t[customTrigger]=\"overflowMenuTrigger\"\n\t\t\t\ttriggerClass=\"cds--btn--icon-only\"\n\t\t\t\t[description]=\"description\"\n\t\t\t\t[autoAlign]=\"autoAlign\">\n\t\t\t\t<li class=\"cds--overflow-menu-options__option\"\n\t\t\t\t\t*ngFor=\"let item of overflowItems\">\n\t\t\t\t\t<a class=\"cds--overflow-menu-options__btn\"\n\t\t\t\t\t\thref=\"{{item?.href}}\"\n\t\t\t\t\t\t(click)=\"navigate($event, item)\"\n\t\t\t\t\t\tstyle=\"text-decoration: none;\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!item?.template\">{{item?.content}}</ng-container>\n\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t*ngIf=\"item?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item?.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</cds-overflow-menu>\n\t\t</cds-breadcrumb-item>\n\t\t<cds-breadcrumb-item\n\t\t\t[href]=\"secondLast?.href\"\n\t\t\t[route]=\"secondLast?.route\"\n\t\t\t[routeExtras]=\"secondLast?.routeExtras\"\n\t\t\t[current]=\"secondLast?.current\"\n\t\t\t[ariaCurrent]=\"secondLast?.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!secondLast?.template\">{{secondLast?.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"secondLast?.template\"\n\t\t\t\t[ngTemplateOutlet]=\"secondLast?.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: secondLast }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t\t<cds-breadcrumb-item\n\t\t\t[href]=\"last?.href\"\n\t\t\t[route]=\"last?.route\"\n\t\t\t[routeExtras]=\"last?.routeExtras\"\n\t\t\t[current]=\"last?.current\"\n\t\t\t[ariaCurrent]=\"last?.ariaCurrent\"\n\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t<ng-container *ngIf=\"!last?.template\">{{last?.content}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"last?.template\"\n\t\t\t\t[ngTemplateOutlet]=\"last?.template\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: last }\">\n\t\t\t</ng-template>\n\t\t</cds-breadcrumb-item>\n\t</ng-template>\n</nav>",
|
|
22324
22620
|
"templateUrl": [],
|
|
22325
22621
|
"viewProviders": [],
|
|
22326
22622
|
"hostDirectives": [],
|
|
@@ -22330,7 +22626,7 @@
|
|
|
22330
22626
|
"defaultValue": "this.i18n.get().BREADCRUMB.LABEL",
|
|
22331
22627
|
"deprecated": false,
|
|
22332
22628
|
"deprecationMessage": "",
|
|
22333
|
-
"line":
|
|
22629
|
+
"line": 142,
|
|
22334
22630
|
"type": "string",
|
|
22335
22631
|
"decorators": []
|
|
22336
22632
|
},
|
|
@@ -22341,7 +22637,7 @@
|
|
|
22341
22637
|
"deprecationMessage": "",
|
|
22342
22638
|
"rawdescription": "\n\n**Experimental**: Auto align menu tooltip position\n",
|
|
22343
22639
|
"description": "<p><strong>Experimental</strong>: Auto align menu tooltip position</p>\n",
|
|
22344
|
-
"line":
|
|
22640
|
+
"line": 169,
|
|
22345
22641
|
"type": "boolean",
|
|
22346
22642
|
"decorators": []
|
|
22347
22643
|
},
|
|
@@ -22350,7 +22646,7 @@
|
|
|
22350
22646
|
"defaultValue": "this.i18n.get().BREADCRUMB.OVERFLOW_MENU_DESCRIPTION",
|
|
22351
22647
|
"deprecated": false,
|
|
22352
22648
|
"deprecationMessage": "",
|
|
22353
|
-
"line":
|
|
22649
|
+
"line": 170,
|
|
22354
22650
|
"type": "string",
|
|
22355
22651
|
"decorators": []
|
|
22356
22652
|
},
|
|
@@ -22358,7 +22654,7 @@
|
|
|
22358
22654
|
"name": "items",
|
|
22359
22655
|
"deprecated": false,
|
|
22360
22656
|
"deprecationMessage": "",
|
|
22361
|
-
"line":
|
|
22657
|
+
"line": 133,
|
|
22362
22658
|
"type": "Array<BreadcrumbItem>",
|
|
22363
22659
|
"decorators": []
|
|
22364
22660
|
},
|
|
@@ -22367,15 +22663,26 @@
|
|
|
22367
22663
|
"defaultValue": "false",
|
|
22368
22664
|
"deprecated": false,
|
|
22369
22665
|
"deprecationMessage": "",
|
|
22370
|
-
"line":
|
|
22666
|
+
"line": 135,
|
|
22371
22667
|
"type": "boolean",
|
|
22372
22668
|
"decorators": []
|
|
22373
22669
|
},
|
|
22670
|
+
{
|
|
22671
|
+
"name": "size",
|
|
22672
|
+
"defaultValue": "\"md\"",
|
|
22673
|
+
"deprecated": false,
|
|
22674
|
+
"deprecationMessage": "",
|
|
22675
|
+
"rawdescription": "\n\nSet to `sm` for compact breadcrumb text. Defaults to `md`.\n",
|
|
22676
|
+
"description": "<p>Set to <code>sm</code> for compact breadcrumb text. Defaults to <code>md</code>.</p>\n",
|
|
22677
|
+
"line": 140,
|
|
22678
|
+
"type": "\"sm\" | \"md\"",
|
|
22679
|
+
"decorators": []
|
|
22680
|
+
},
|
|
22374
22681
|
{
|
|
22375
22682
|
"name": "skeleton",
|
|
22376
22683
|
"deprecated": false,
|
|
22377
22684
|
"deprecationMessage": "",
|
|
22378
|
-
"line":
|
|
22685
|
+
"line": 145,
|
|
22379
22686
|
"type": "any",
|
|
22380
22687
|
"decorators": []
|
|
22381
22688
|
},
|
|
@@ -22383,7 +22690,7 @@
|
|
|
22383
22690
|
"name": "threshold",
|
|
22384
22691
|
"deprecated": false,
|
|
22385
22692
|
"deprecationMessage": "",
|
|
22386
|
-
"line":
|
|
22693
|
+
"line": 155,
|
|
22387
22694
|
"type": "number",
|
|
22388
22695
|
"decorators": []
|
|
22389
22696
|
}
|
|
@@ -22396,7 +22703,7 @@
|
|
|
22396
22703
|
"deprecationMessage": "",
|
|
22397
22704
|
"rawdescription": "\n\nEmits the navigation status promise when the link is activated\n",
|
|
22398
22705
|
"description": "<p>Emits the navigation status promise when the link is activated</p>\n",
|
|
22399
|
-
"line":
|
|
22706
|
+
"line": 175,
|
|
22400
22707
|
"type": "EventEmitter"
|
|
22401
22708
|
}
|
|
22402
22709
|
],
|
|
@@ -22408,7 +22715,7 @@
|
|
|
22408
22715
|
"type": "QueryList<BreadcrumbItemComponent>",
|
|
22409
22716
|
"optional": false,
|
|
22410
22717
|
"description": "",
|
|
22411
|
-
"line":
|
|
22718
|
+
"line": 131,
|
|
22412
22719
|
"decorators": [
|
|
22413
22720
|
{
|
|
22414
22721
|
"name": "ContentChildren",
|
|
@@ -22440,7 +22747,7 @@
|
|
|
22440
22747
|
"optional": false,
|
|
22441
22748
|
"returnType": "void",
|
|
22442
22749
|
"typeParameters": [],
|
|
22443
|
-
"line":
|
|
22750
|
+
"line": 213,
|
|
22444
22751
|
"deprecated": false,
|
|
22445
22752
|
"deprecationMessage": "",
|
|
22446
22753
|
"jsdoctags": [
|
|
@@ -22474,7 +22781,7 @@
|
|
|
22474
22781
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { BreadcrumbModule } from 'carbon-components-angular';</code></pre></div><p><a href=\"../../?path=/story/components-breadcrumb--basic\">See demo</a></p>\n",
|
|
22475
22782
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { BreadcrumbModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-breadcrumb--basic)\n",
|
|
22476
22783
|
"type": "component",
|
|
22477
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tContentChildren,\n\tQueryList,\n\tAfterContentInit,\n\tTemplateRef,\n\tOptional,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\n\nimport { BreadcrumbItem } from \"./breadcrumb-item.interface\";\nimport { BreadcrumbItemComponent } from \"./breadcrumb-item.component\";\nimport { Router } from \"@angular/router\";\nimport { I18n } from \"carbon-components-angular/i18n\";\n\nconst MINIMUM_OVERFLOW_THRESHOLD = 4;\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { BreadcrumbModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-breadcrumb--basic)\n */\n@Component({\n\tselector: \"cds-breadcrumb, ibm-breadcrumb\",\n\ttemplate: `\n\t<nav #nav class=\"cds--breadcrumb\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--skeleton' : skeleton,\n\t\t\t'cds--breadcrumb--no-trailing-slash' : noTrailingSlash\n\t\t}\"\n\t\t[attr.aria-label]=\"ariaLabel\">\n\t\t<ng-template [ngIf]=\"shouldShowContent\">\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t\t<ng-template [ngIf]=\"!shouldShowOverflow\">\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t*ngFor=\"let item of items\"\n\t\t\t\t[href]=\"item.href\"\n\t\t\t\t[route]=\"item.route\"\n\t\t\t\t[routeExtras]=\"item.routeExtras\"\n\t\t\t\t[current]=\"item.current\"\n\t\t\t\t[ariaCurrent]=\"item.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!item.template\">{{item.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"item.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"item.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t</ng-template>\n\t\t<ng-template [ngIf]=\"shouldShowOverflow\">\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t[href]=\"first?.href\"\n\t\t\t\t[route]=\"first?.route\"\n\t\t\t\t[routeExtras]=\"first?.routeExtras\"\n\t\t\t\t[current]=\"first?.current\"\n\t\t\t\t[ariaCurrent]=\"first?.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!first?.template\">{{first?.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"first?.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"first?.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: first }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item>\n\t\t\t\t<ng-template #overflowMenuTrigger>\n\t\t\t\t\t<svg class=\"cds--overflow-menu__icon\" cdsIcon=\"overflow-menu--horizontal\" size=\"16\"></svg>\n\t\t\t\t</ng-template>\n\t\t\t\t<cds-overflow-menu\n\t\t\t\t\t[customTrigger]=\"overflowMenuTrigger\"\n\t\t\t\t\ttriggerClass=\"cds--btn--icon-only\"\n\t\t\t\t\t[description]=\"description\"\n\t\t\t\t\t[autoAlign]=\"autoAlign\">\n\t\t\t\t\t<li class=\"cds--overflow-menu-options__option\"\n\t\t\t\t\t\t*ngFor=\"let item of overflowItems\">\n\t\t\t\t\t\t<a class=\"cds--overflow-menu-options__btn\"\n\t\t\t\t\t\t\thref=\"{{item?.href}}\"\n\t\t\t\t\t\t\t(click)=\"navigate($event, item)\"\n\t\t\t\t\t\t\tstyle=\"text-decoration: none;\">\n\t\t\t\t\t\t\t<ng-container *ngIf=\"!item?.template\">{{item?.content}}</ng-container>\n\t\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t\t*ngIf=\"item?.template\"\n\t\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item?.template\"\n\t\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t</cds-overflow-menu>\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t[href]=\"secondLast?.href\"\n\t\t\t\t[route]=\"secondLast?.route\"\n\t\t\t\t[routeExtras]=\"secondLast?.routeExtras\"\n\t\t\t\t[current]=\"secondLast?.current\"\n\t\t\t\t[ariaCurrent]=\"secondLast?.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!secondLast?.template\">{{secondLast?.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"secondLast?.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"secondLast?.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: secondLast }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t[href]=\"last?.href\"\n\t\t\t\t[route]=\"last?.route\"\n\t\t\t\t[routeExtras]=\"last?.routeExtras\"\n\t\t\t\t[current]=\"last?.current\"\n\t\t\t\t[ariaCurrent]=\"last?.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!last?.template\">{{last?.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"last?.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"last?.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: last }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t</ng-template>\n\t</nav>`\n})\nexport class Breadcrumb implements AfterContentInit {\n\t@ContentChildren(BreadcrumbItemComponent) children: QueryList<BreadcrumbItemComponent>;\n\n\t@Input() items: Array<BreadcrumbItem>;\n\n\t@Input() noTrailingSlash = false;\n\n\t@Input() ariaLabel: string = this.i18n.get().BREADCRUMB.LABEL;\n\n\t@Input()\n\tset skeleton(value: any) {\n\t\tthis._skeleton = value;\n\t\tthis.updateChildren();\n\t}\n\n\tget skeleton(): any {\n\t\treturn this._skeleton;\n\t}\n\n\t@Input()\n\tset threshold(threshold: number) {\n\t\tthis._threshold = threshold;\n\t\tif (isNaN(threshold) || threshold < MINIMUM_OVERFLOW_THRESHOLD) {\n\t\t\tthis._threshold = MINIMUM_OVERFLOW_THRESHOLD;\n\t\t}\n\t}\n\n\tget threshold(): number {\n\t\treturn this._threshold;\n\t}\n\n\t/**\n\t * **Experimental**: Auto align menu tooltip position\n\t */\n\t@Input() autoAlign = false;\n\t@Input() description: string = this.i18n.get().BREADCRUMB.OVERFLOW_MENU_DESCRIPTION;\n\n\t/**\n\t * Emits the navigation status promise when the link is activated\n\t */\n\t@Output() navigation = new EventEmitter<Promise<boolean>>();\n\n\tget shouldShowContent(): boolean {\n\t\treturn !this.items;\n\t}\n\n\tget shouldShowOverflow(): boolean {\n\t\tif (!this.items) {\n\t\t\treturn false;\n\t\t}\n\t\treturn this.items.length > this.threshold;\n\t}\n\n\tget first(): BreadcrumbItem {\n\t\treturn this.shouldShowOverflow ? this.items[0] : null;\n\t}\n\n\tget overflowItems(): Array<BreadcrumbItem> {\n\t\treturn this.shouldShowOverflow ? this.items.slice(1, this.items.length - 2) : [];\n\t}\n\n\tget secondLast(): BreadcrumbItem {\n\t\treturn this.shouldShowOverflow ? this.items[this.items.length - 2] : null;\n\t}\n\n\tget last(): BreadcrumbItem {\n\t\treturn this.shouldShowOverflow ? this.items[this.items.length - 1] : null;\n\t}\n\n\tprotected _threshold: number;\n\tprotected _skeleton = false;\n\n\tconstructor(protected i18n: I18n, @Optional() protected router: Router) { }\n\n\tngAfterContentInit() {\n\t\tthis.updateChildren();\n\t}\n\n\tnavigate(event, item: BreadcrumbItem) {\n\t\tif (this.router && item.route) {\n\t\t\tevent.preventDefault();\n\t\t\tconst status = this.router.navigate(item.route, item.routeExtras);\n\t\t\tthis.navigation.emit(status);\n\t\t}\n\t}\n\n\tprotected updateChildren() {\n\t\tif (this.children) {\n\t\t\tthis.children.toArray().forEach(child => child.skeleton = this.skeleton);\n\t\t}\n\t}\n}\n",
|
|
22784
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tContentChildren,\n\tQueryList,\n\tAfterContentInit,\n\tTemplateRef,\n\tOptional,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\n\nimport { BreadcrumbItem } from \"./breadcrumb-item.interface\";\nimport { BreadcrumbItemComponent } from \"./breadcrumb-item.component\";\nimport { Router } from \"@angular/router\";\nimport { I18n } from \"carbon-components-angular/i18n\";\n\nconst MINIMUM_OVERFLOW_THRESHOLD = 4;\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { BreadcrumbModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-breadcrumb--basic)\n */\n@Component({\n\tselector: \"cds-breadcrumb, ibm-breadcrumb\",\n\ttemplate: `\n\t<nav #nav class=\"cds--breadcrumb\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--skeleton' : skeleton,\n\t\t\t'cds--breadcrumb--no-trailing-slash' : noTrailingSlash,\n\t\t\t'cds--breadcrumb--sm' : size === 'sm'\n\t\t}\"\n\t\t[attr.aria-label]=\"ariaLabel\">\n\t\t<ng-template [ngIf]=\"shouldShowContent\">\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t\t<ng-template [ngIf]=\"!shouldShowOverflow\">\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t*ngFor=\"let item of items\"\n\t\t\t\t[href]=\"item.href\"\n\t\t\t\t[route]=\"item.route\"\n\t\t\t\t[routeExtras]=\"item.routeExtras\"\n\t\t\t\t[current]=\"item.current\"\n\t\t\t\t[ariaCurrent]=\"item.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!item.template\">{{item.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"item.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"item.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t</ng-template>\n\t\t<ng-template [ngIf]=\"shouldShowOverflow\">\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t[href]=\"first?.href\"\n\t\t\t\t[route]=\"first?.route\"\n\t\t\t\t[routeExtras]=\"first?.routeExtras\"\n\t\t\t\t[current]=\"first?.current\"\n\t\t\t\t[ariaCurrent]=\"first?.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!first?.template\">{{first?.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"first?.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"first?.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: first }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item>\n\t\t\t\t<ng-template #overflowMenuTrigger>\n\t\t\t\t\t<svg class=\"cds--overflow-menu__icon\" cdsIcon=\"overflow-menu--horizontal\" size=\"16\"></svg>\n\t\t\t\t</ng-template>\n\t\t\t\t<cds-overflow-menu\n\t\t\t\t\t[customTrigger]=\"overflowMenuTrigger\"\n\t\t\t\t\ttriggerClass=\"cds--btn--icon-only\"\n\t\t\t\t\t[description]=\"description\"\n\t\t\t\t\t[autoAlign]=\"autoAlign\">\n\t\t\t\t\t<li class=\"cds--overflow-menu-options__option\"\n\t\t\t\t\t\t*ngFor=\"let item of overflowItems\">\n\t\t\t\t\t\t<a class=\"cds--overflow-menu-options__btn\"\n\t\t\t\t\t\t\thref=\"{{item?.href}}\"\n\t\t\t\t\t\t\t(click)=\"navigate($event, item)\"\n\t\t\t\t\t\t\tstyle=\"text-decoration: none;\">\n\t\t\t\t\t\t\t<ng-container *ngIf=\"!item?.template\">{{item?.content}}</ng-container>\n\t\t\t\t\t\t\t<ng-template\n\t\t\t\t\t\t\t\t*ngIf=\"item?.template\"\n\t\t\t\t\t\t\t\t[ngTemplateOutlet]=\"item?.template\"\n\t\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: item }\">\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t</cds-overflow-menu>\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t[href]=\"secondLast?.href\"\n\t\t\t\t[route]=\"secondLast?.route\"\n\t\t\t\t[routeExtras]=\"secondLast?.routeExtras\"\n\t\t\t\t[current]=\"secondLast?.current\"\n\t\t\t\t[ariaCurrent]=\"secondLast?.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!secondLast?.template\">{{secondLast?.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"secondLast?.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"secondLast?.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: secondLast }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item\n\t\t\t\t[href]=\"last?.href\"\n\t\t\t\t[route]=\"last?.route\"\n\t\t\t\t[routeExtras]=\"last?.routeExtras\"\n\t\t\t\t[current]=\"last?.current\"\n\t\t\t\t[ariaCurrent]=\"last?.ariaCurrent\"\n\t\t\t\t(navigation)=\"navigation.emit($event)\">\n\t\t\t\t<ng-container *ngIf=\"!last?.template\">{{last?.content}}</ng-container>\n\t\t\t\t<ng-template\n\t\t\t\t\t*ngIf=\"last?.template\"\n\t\t\t\t\t[ngTemplateOutlet]=\"last?.template\"\n\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: last }\">\n\t\t\t\t</ng-template>\n\t\t\t</cds-breadcrumb-item>\n\t\t</ng-template>\n\t</nav>`\n})\nexport class Breadcrumb implements AfterContentInit {\n\t@ContentChildren(BreadcrumbItemComponent) children: QueryList<BreadcrumbItemComponent>;\n\n\t@Input() items: Array<BreadcrumbItem>;\n\n\t@Input() noTrailingSlash = false;\n\n\t/**\n\t * Set to `sm` for compact breadcrumb text. Defaults to `md`.\n\t */\n\t@Input() size: \"sm\" | \"md\" = \"md\";\n\n\t@Input() ariaLabel: string = this.i18n.get().BREADCRUMB.LABEL;\n\n\t@Input()\n\tset skeleton(value: any) {\n\t\tthis._skeleton = value;\n\t\tthis.updateChildren();\n\t}\n\n\tget skeleton(): any {\n\t\treturn this._skeleton;\n\t}\n\n\t@Input()\n\tset threshold(threshold: number) {\n\t\tthis._threshold = threshold;\n\t\tif (isNaN(threshold) || threshold < MINIMUM_OVERFLOW_THRESHOLD) {\n\t\t\tthis._threshold = MINIMUM_OVERFLOW_THRESHOLD;\n\t\t}\n\t}\n\n\tget threshold(): number {\n\t\treturn this._threshold;\n\t}\n\n\t/**\n\t * **Experimental**: Auto align menu tooltip position\n\t */\n\t@Input() autoAlign = false;\n\t@Input() description: string = this.i18n.get().BREADCRUMB.OVERFLOW_MENU_DESCRIPTION;\n\n\t/**\n\t * Emits the navigation status promise when the link is activated\n\t */\n\t@Output() navigation = new EventEmitter<Promise<boolean>>();\n\n\tget shouldShowContent(): boolean {\n\t\treturn !this.items;\n\t}\n\n\tget shouldShowOverflow(): boolean {\n\t\tif (!this.items) {\n\t\t\treturn false;\n\t\t}\n\t\treturn this.items.length > this.threshold;\n\t}\n\n\tget first(): BreadcrumbItem {\n\t\treturn this.shouldShowOverflow ? this.items[0] : null;\n\t}\n\n\tget overflowItems(): Array<BreadcrumbItem> {\n\t\treturn this.shouldShowOverflow ? this.items.slice(1, this.items.length - 2) : [];\n\t}\n\n\tget secondLast(): BreadcrumbItem {\n\t\treturn this.shouldShowOverflow ? this.items[this.items.length - 2] : null;\n\t}\n\n\tget last(): BreadcrumbItem {\n\t\treturn this.shouldShowOverflow ? this.items[this.items.length - 1] : null;\n\t}\n\n\tprotected _threshold: number;\n\tprotected _skeleton = false;\n\n\tconstructor(protected i18n: I18n, @Optional() protected router: Router) { }\n\n\tngAfterContentInit() {\n\t\tthis.updateChildren();\n\t}\n\n\tnavigate(event, item: BreadcrumbItem) {\n\t\tif (this.router && item.route) {\n\t\t\tevent.preventDefault();\n\t\t\tconst status = this.router.navigate(item.route, item.routeExtras);\n\t\t\tthis.navigation.emit(status);\n\t\t}\n\t}\n\n\tprotected updateChildren() {\n\t\tif (this.children) {\n\t\t\tthis.children.toArray().forEach(child => child.skeleton = this.skeleton);\n\t\t}\n\t}\n}\n",
|
|
22478
22785
|
"assetsDirs": [],
|
|
22479
22786
|
"styleUrlsData": "",
|
|
22480
22787
|
"stylesData": "",
|
|
@@ -22497,7 +22804,7 @@
|
|
|
22497
22804
|
"deprecationMessage": ""
|
|
22498
22805
|
}
|
|
22499
22806
|
],
|
|
22500
|
-
"line":
|
|
22807
|
+
"line": 205,
|
|
22501
22808
|
"jsdoctags": [
|
|
22502
22809
|
{
|
|
22503
22810
|
"name": "i18n",
|
|
@@ -22540,7 +22847,7 @@
|
|
|
22540
22847
|
}
|
|
22541
22848
|
],
|
|
22542
22849
|
"returnType": "void",
|
|
22543
|
-
"line":
|
|
22850
|
+
"line": 145,
|
|
22544
22851
|
"jsdoctags": [
|
|
22545
22852
|
{
|
|
22546
22853
|
"name": "value",
|
|
@@ -22557,7 +22864,7 @@
|
|
|
22557
22864
|
"name": "skeleton",
|
|
22558
22865
|
"type": "any",
|
|
22559
22866
|
"returnType": "any",
|
|
22560
|
-
"line":
|
|
22867
|
+
"line": 150
|
|
22561
22868
|
}
|
|
22562
22869
|
},
|
|
22563
22870
|
"threshold": {
|
|
@@ -22576,7 +22883,7 @@
|
|
|
22576
22883
|
}
|
|
22577
22884
|
],
|
|
22578
22885
|
"returnType": "void",
|
|
22579
|
-
"line":
|
|
22886
|
+
"line": 155,
|
|
22580
22887
|
"jsdoctags": [
|
|
22581
22888
|
{
|
|
22582
22889
|
"name": "threshold",
|
|
@@ -22593,7 +22900,7 @@
|
|
|
22593
22900
|
"name": "threshold",
|
|
22594
22901
|
"type": "number",
|
|
22595
22902
|
"returnType": "number",
|
|
22596
|
-
"line":
|
|
22903
|
+
"line": 162
|
|
22597
22904
|
}
|
|
22598
22905
|
},
|
|
22599
22906
|
"shouldShowContent": {
|
|
@@ -22602,7 +22909,7 @@
|
|
|
22602
22909
|
"name": "shouldShowContent",
|
|
22603
22910
|
"type": "boolean",
|
|
22604
22911
|
"returnType": "boolean",
|
|
22605
|
-
"line":
|
|
22912
|
+
"line": 177
|
|
22606
22913
|
}
|
|
22607
22914
|
},
|
|
22608
22915
|
"shouldShowOverflow": {
|
|
@@ -22611,7 +22918,7 @@
|
|
|
22611
22918
|
"name": "shouldShowOverflow",
|
|
22612
22919
|
"type": "boolean",
|
|
22613
22920
|
"returnType": "boolean",
|
|
22614
|
-
"line":
|
|
22921
|
+
"line": 181
|
|
22615
22922
|
}
|
|
22616
22923
|
},
|
|
22617
22924
|
"first": {
|
|
@@ -22620,7 +22927,7 @@
|
|
|
22620
22927
|
"name": "first",
|
|
22621
22928
|
"type": "",
|
|
22622
22929
|
"returnType": "BreadcrumbItem",
|
|
22623
|
-
"line":
|
|
22930
|
+
"line": 188
|
|
22624
22931
|
}
|
|
22625
22932
|
},
|
|
22626
22933
|
"overflowItems": {
|
|
@@ -22629,7 +22936,7 @@
|
|
|
22629
22936
|
"name": "overflowItems",
|
|
22630
22937
|
"type": "",
|
|
22631
22938
|
"returnType": "Array<BreadcrumbItem>",
|
|
22632
|
-
"line":
|
|
22939
|
+
"line": 192
|
|
22633
22940
|
}
|
|
22634
22941
|
},
|
|
22635
22942
|
"secondLast": {
|
|
@@ -22638,7 +22945,7 @@
|
|
|
22638
22945
|
"name": "secondLast",
|
|
22639
22946
|
"type": "",
|
|
22640
22947
|
"returnType": "BreadcrumbItem",
|
|
22641
|
-
"line":
|
|
22948
|
+
"line": 196
|
|
22642
22949
|
}
|
|
22643
22950
|
},
|
|
22644
22951
|
"last": {
|
|
@@ -22647,7 +22954,7 @@
|
|
|
22647
22954
|
"name": "last",
|
|
22648
22955
|
"type": "",
|
|
22649
22956
|
"returnType": "BreadcrumbItem",
|
|
22650
|
-
"line":
|
|
22957
|
+
"line": 200
|
|
22651
22958
|
}
|
|
22652
22959
|
}
|
|
22653
22960
|
}
|
|
@@ -22904,7 +23211,7 @@
|
|
|
22904
23211
|
},
|
|
22905
23212
|
{
|
|
22906
23213
|
"name": "ButtonSet",
|
|
22907
|
-
"id": "component-ButtonSet-
|
|
23214
|
+
"id": "component-ButtonSet-01e776485ed19d9b25c233f684c94b6b3faa9bc4f3f2ea2fb9ffa7bdbb807c38d4c0f17ec696ee34bbaf73ad6e122201dc6170a9b39696d9bed6d546cf384aed",
|
|
22908
23215
|
"file": "src/button/button-set.component.ts",
|
|
22909
23216
|
"encapsulation": [],
|
|
22910
23217
|
"entryComponents": [],
|
|
@@ -22914,11 +23221,34 @@
|
|
|
22914
23221
|
"selector": "cds-button-set, ibm-button-set",
|
|
22915
23222
|
"styleUrls": [],
|
|
22916
23223
|
"styles": [],
|
|
22917
|
-
"template": "<ng-content></ng-content
|
|
23224
|
+
"template": "<div *ngIf=\"fluid\" class=\"cds--btn-set__fluid-inner cds--btn-set__fluid-inner--auto-stack\">\n\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n<ng-container *ngIf=\"!fluid\">\n\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-container>\n\n<ng-template #content>\n\t<ng-content></ng-content>\n</ng-template>\n\t",
|
|
22918
23225
|
"templateUrl": [],
|
|
22919
23226
|
"viewProviders": [],
|
|
22920
23227
|
"hostDirectives": [],
|
|
22921
|
-
"inputsClass": [
|
|
23228
|
+
"inputsClass": [
|
|
23229
|
+
{
|
|
23230
|
+
"name": "fluid",
|
|
23231
|
+
"defaultValue": "false",
|
|
23232
|
+
"deprecated": false,
|
|
23233
|
+
"deprecationMessage": "",
|
|
23234
|
+
"rawdescription": "\n\nWhen `true`, buttons grow to fill the container width (fluid button set).\n",
|
|
23235
|
+
"description": "<p>When <code>true</code>, buttons grow to fill the container width (fluid button set).</p>\n",
|
|
23236
|
+
"line": 33,
|
|
23237
|
+
"type": "boolean",
|
|
23238
|
+
"decorators": []
|
|
23239
|
+
},
|
|
23240
|
+
{
|
|
23241
|
+
"name": "stacked",
|
|
23242
|
+
"defaultValue": "false",
|
|
23243
|
+
"deprecated": false,
|
|
23244
|
+
"deprecationMessage": "",
|
|
23245
|
+
"rawdescription": "\n\nWhen `true`, stacks buttons vertically. Use with non-fluid layouts, otherwise `fluid` will override style\n",
|
|
23246
|
+
"description": "<p>When <code>true</code>, stacks buttons vertically. Use with non-fluid layouts, otherwise <code>fluid</code> will override style</p>\n",
|
|
23247
|
+
"line": 38,
|
|
23248
|
+
"type": "boolean",
|
|
23249
|
+
"decorators": []
|
|
23250
|
+
}
|
|
23251
|
+
],
|
|
22922
23252
|
"outputsClass": [],
|
|
22923
23253
|
"propertiesClass": [
|
|
22924
23254
|
{
|
|
@@ -22929,7 +23259,7 @@
|
|
|
22929
23259
|
"type": "",
|
|
22930
23260
|
"optional": false,
|
|
22931
23261
|
"description": "",
|
|
22932
|
-
"line":
|
|
23262
|
+
"line": 28,
|
|
22933
23263
|
"decorators": [
|
|
22934
23264
|
{
|
|
22935
23265
|
"name": "HostBinding",
|
|
@@ -22950,7 +23280,23 @@
|
|
|
22950
23280
|
"defaultValue": "true",
|
|
22951
23281
|
"deprecated": false,
|
|
22952
23282
|
"deprecationMessage": "",
|
|
22953
|
-
"line":
|
|
23283
|
+
"line": 28,
|
|
23284
|
+
"type": "boolean",
|
|
23285
|
+
"decorators": []
|
|
23286
|
+
},
|
|
23287
|
+
{
|
|
23288
|
+
"name": "class.cds--btn-set--fluid",
|
|
23289
|
+
"deprecated": false,
|
|
23290
|
+
"deprecationMessage": "",
|
|
23291
|
+
"line": 41,
|
|
23292
|
+
"type": "boolean",
|
|
23293
|
+
"decorators": []
|
|
23294
|
+
},
|
|
23295
|
+
{
|
|
23296
|
+
"name": "class.cds--btn-set--stacked",
|
|
23297
|
+
"deprecated": false,
|
|
23298
|
+
"deprecationMessage": "",
|
|
23299
|
+
"line": 46,
|
|
22954
23300
|
"type": "boolean",
|
|
22955
23301
|
"decorators": []
|
|
22956
23302
|
}
|
|
@@ -22961,11 +23307,31 @@
|
|
|
22961
23307
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { ButtonModule } from 'carbon-components-angular';</code></pre></div><p><a href=\"../../?path=/story/components-button-button-set--basic\">See demo</a></p>\n",
|
|
22962
23308
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { ButtonModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-button-button-set--basic)\n",
|
|
22963
23309
|
"type": "component",
|
|
22964
|
-
"sourceCode": "import { Component, HostBinding } from \"@angular/core\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { ButtonModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-button-button-set--basic)\n */\n@Component({\n\tselector: \"cds-button-set, ibm-button-set\",\n\ttemplate: \"<ng-content></ng-
|
|
23310
|
+
"sourceCode": "import { Component, HostBinding, Input } from \"@angular/core\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { ButtonModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-button-button-set--basic)\n */\n@Component({\n\tselector: \"cds-button-set, ibm-button-set\",\n\ttemplate: `\n\t\t<div *ngIf=\"fluid\" class=\"cds--btn-set__fluid-inner cds--btn-set__fluid-inner--auto-stack\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n\t\t</div>\n\t\t<ng-container *ngIf=\"!fluid\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n\t\t</ng-container>\n\n\t\t<ng-template #content>\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t`\n})\nexport class ButtonSet {\n\t@HostBinding(\"class.cds--btn-set\") buttonSetClass = true;\n\n\t/**\n\t * When `true`, buttons grow to fill the container width (fluid button set).\n\t */\n\t@Input() fluid = false;\n\n\t/**\n\t * When `true`, stacks buttons vertically. Use with non-fluid layouts, otherwise `fluid` will override style\n\t */\n\t@Input() stacked = false;\n\n\t@HostBinding(\"class.cds--btn-set--fluid\")\n\tget fluidClass(): boolean {\n\t\treturn this.fluid;\n\t}\n\n\t@HostBinding(\"class.cds--btn-set--stacked\")\n\tget stackedClass(): boolean {\n\t\treturn this.stacked;\n\t}\n}\n",
|
|
22965
23311
|
"assetsDirs": [],
|
|
22966
23312
|
"styleUrlsData": "",
|
|
22967
23313
|
"stylesData": "",
|
|
22968
|
-
"extends": []
|
|
23314
|
+
"extends": [],
|
|
23315
|
+
"accessors": {
|
|
23316
|
+
"fluidClass": {
|
|
23317
|
+
"name": "fluidClass",
|
|
23318
|
+
"getSignature": {
|
|
23319
|
+
"name": "fluidClass",
|
|
23320
|
+
"type": "boolean",
|
|
23321
|
+
"returnType": "boolean",
|
|
23322
|
+
"line": 41
|
|
23323
|
+
}
|
|
23324
|
+
},
|
|
23325
|
+
"stackedClass": {
|
|
23326
|
+
"name": "stackedClass",
|
|
23327
|
+
"getSignature": {
|
|
23328
|
+
"name": "stackedClass",
|
|
23329
|
+
"type": "boolean",
|
|
23330
|
+
"returnType": "boolean",
|
|
23331
|
+
"line": 46
|
|
23332
|
+
}
|
|
23333
|
+
}
|
|
23334
|
+
}
|
|
22969
23335
|
},
|
|
22970
23336
|
{
|
|
22971
23337
|
"name": "Checkbox",
|
|
@@ -34368,7 +34734,7 @@
|
|
|
34368
34734
|
},
|
|
34369
34735
|
{
|
|
34370
34736
|
"name": "FileUploader",
|
|
34371
|
-
"id": "component-FileUploader-
|
|
34737
|
+
"id": "component-FileUploader-d6ef140a1b6b1fadc5e949b0ff236b0d5c7222087e7a4fd471fde93c283cb36003950b8817dbf8fb195d8157c6b8240cc6205a3a8e5f7b28e4e14ebcf36b085a",
|
|
34372
34738
|
"file": "src/file-uploader/file-uploader.component.ts",
|
|
34373
34739
|
"encapsulation": [],
|
|
34374
34740
|
"entryComponents": [],
|
|
@@ -34394,7 +34760,7 @@
|
|
|
34394
34760
|
"deprecationMessage": "",
|
|
34395
34761
|
"rawdescription": "\n\nSpecify the types of files that the input should be able to receive\n",
|
|
34396
34762
|
"description": "<p>Specify the types of files that the input should be able to receive</p>\n",
|
|
34397
|
-
"line":
|
|
34763
|
+
"line": 134,
|
|
34398
34764
|
"type": "{}",
|
|
34399
34765
|
"decorators": []
|
|
34400
34766
|
},
|
|
@@ -34417,7 +34783,7 @@
|
|
|
34417
34783
|
"rawdescription": "\n\nType set for button\n",
|
|
34418
34784
|
"description": "<p>Type set for button</p>\n",
|
|
34419
34785
|
"line": 114,
|
|
34420
|
-
"type": "\"primary\" | \"secondary\" | \"tertiary\" | \"ghost\" | \"danger\"",
|
|
34786
|
+
"type": "\"primary\" | \"secondary\" | \"tertiary\" | \"ghost\" | \"danger\" | \"danger--primary\" | \"danger--tertiary\" | \"danger--ghost\"",
|
|
34421
34787
|
"decorators": []
|
|
34422
34788
|
},
|
|
34423
34789
|
{
|
|
@@ -34426,7 +34792,7 @@
|
|
|
34426
34792
|
"deprecationMessage": "",
|
|
34427
34793
|
"rawdescription": "\n\nText set to the description\n",
|
|
34428
34794
|
"description": "<p>Text set to the description</p>\n",
|
|
34429
|
-
"line":
|
|
34795
|
+
"line": 130,
|
|
34430
34796
|
"type": "string",
|
|
34431
34797
|
"decorators": []
|
|
34432
34798
|
},
|
|
@@ -34437,7 +34803,7 @@
|
|
|
34437
34803
|
"deprecationMessage": "",
|
|
34438
34804
|
"rawdescription": "\n\nSet to `true` to disable upload button\n",
|
|
34439
34805
|
"description": "<p>Set to <code>true</code> to disable upload button</p>\n",
|
|
34440
|
-
"line":
|
|
34806
|
+
"line": 176,
|
|
34441
34807
|
"type": "boolean",
|
|
34442
34808
|
"decorators": []
|
|
34443
34809
|
},
|
|
@@ -34448,7 +34814,7 @@
|
|
|
34448
34814
|
"deprecationMessage": "",
|
|
34449
34815
|
"rawdescription": "\n\nSet to `true` to enable drag and drop.\n",
|
|
34450
34816
|
"description": "<p>Set to <code>true</code> to enable drag and drop.</p>\n",
|
|
34451
|
-
"line":
|
|
34817
|
+
"line": 156,
|
|
34452
34818
|
"type": "boolean",
|
|
34453
34819
|
"decorators": []
|
|
34454
34820
|
},
|
|
@@ -34458,7 +34824,7 @@
|
|
|
34458
34824
|
"deprecationMessage": "",
|
|
34459
34825
|
"rawdescription": "\n\nSets the text shown in drag and drop box.\n",
|
|
34460
34826
|
"description": "<p>Sets the text shown in drag and drop box.</p>\n",
|
|
34461
|
-
"line":
|
|
34827
|
+
"line": 160,
|
|
34462
34828
|
"type": "string | TemplateRef<any>",
|
|
34463
34829
|
"decorators": []
|
|
34464
34830
|
},
|
|
@@ -34468,7 +34834,7 @@
|
|
|
34468
34834
|
"deprecationMessage": "",
|
|
34469
34835
|
"rawdescription": "\n\nCustom template used to render the file actions of uploaded files\n",
|
|
34470
34836
|
"description": "<p>Custom template used to render the file actions of uploaded files</p>\n",
|
|
34471
|
-
"line":
|
|
34837
|
+
"line": 184,
|
|
34472
34838
|
"type": "TemplateRef<>",
|
|
34473
34839
|
"decorators": []
|
|
34474
34840
|
},
|
|
@@ -34479,7 +34845,7 @@
|
|
|
34479
34845
|
"deprecationMessage": "",
|
|
34480
34846
|
"rawdescription": "\n\nSets the size of the file items\n",
|
|
34481
34847
|
"description": "<p>Sets the size of the file items</p>\n",
|
|
34482
|
-
"line":
|
|
34848
|
+
"line": 152,
|
|
34483
34849
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
34484
34850
|
"decorators": []
|
|
34485
34851
|
},
|
|
@@ -34489,7 +34855,7 @@
|
|
|
34489
34855
|
"deprecationMessage": "",
|
|
34490
34856
|
"rawdescription": "\n\nCustom template used to render the file name of uploaded files\n",
|
|
34491
34857
|
"description": "<p>Custom template used to render the file name of uploaded files</p>\n",
|
|
34492
|
-
"line":
|
|
34858
|
+
"line": 180,
|
|
34493
34859
|
"type": "TemplateRef<>",
|
|
34494
34860
|
"decorators": []
|
|
34495
34861
|
},
|
|
@@ -34500,7 +34866,7 @@
|
|
|
34500
34866
|
"deprecationMessage": "",
|
|
34501
34867
|
"rawdescription": "\n\nThe list of files that have been submitted to be uploaded\n",
|
|
34502
34868
|
"description": "<p>The list of files that have been submitted to be uploaded</p>\n",
|
|
34503
|
-
"line":
|
|
34869
|
+
"line": 172,
|
|
34504
34870
|
"type": "any",
|
|
34505
34871
|
"decorators": []
|
|
34506
34872
|
},
|
|
@@ -34511,7 +34877,7 @@
|
|
|
34511
34877
|
"deprecationMessage": "",
|
|
34512
34878
|
"rawdescription": "\n\nProvides a unique id for the underlying `<input>` node\n",
|
|
34513
34879
|
"description": "<p>Provides a unique id for the underlying <code><input></code> node</p>\n",
|
|
34514
|
-
"line":
|
|
34880
|
+
"line": 164,
|
|
34515
34881
|
"type": "string",
|
|
34516
34882
|
"decorators": []
|
|
34517
34883
|
},
|
|
@@ -34522,7 +34888,7 @@
|
|
|
34522
34888
|
"deprecationMessage": "",
|
|
34523
34889
|
"rawdescription": "\n\nSet to `false` to tell the component to only accept a single file on upload.\n\nDefaults to `true`. Accepts multiple files.\n",
|
|
34524
34890
|
"description": "<p>Set to <code>false</code> to tell the component to only accept a single file on upload.</p>\n<p>Defaults to <code>true</code>. Accepts multiple files.</p>\n",
|
|
34525
|
-
"line":
|
|
34891
|
+
"line": 140,
|
|
34526
34892
|
"type": "boolean",
|
|
34527
34893
|
"decorators": []
|
|
34528
34894
|
},
|
|
@@ -34532,7 +34898,7 @@
|
|
|
34532
34898
|
"deprecationMessage": "",
|
|
34533
34899
|
"rawdescription": "\n\nSets the size of the button.\n",
|
|
34534
34900
|
"description": "<p>Sets the size of the button.</p>\n",
|
|
34535
|
-
"line":
|
|
34901
|
+
"line": 148,
|
|
34536
34902
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
34537
34903
|
"decorators": []
|
|
34538
34904
|
},
|
|
@@ -34543,7 +34909,7 @@
|
|
|
34543
34909
|
"deprecationMessage": "",
|
|
34544
34910
|
"rawdescription": "\n\nSet to `true` for a loading file uploader.\n",
|
|
34545
34911
|
"description": "<p>Set to <code>true</code> for a loading file uploader.</p>\n",
|
|
34546
|
-
"line":
|
|
34912
|
+
"line": 144,
|
|
34547
34913
|
"type": "boolean",
|
|
34548
34914
|
"decorators": []
|
|
34549
34915
|
},
|
|
@@ -34553,7 +34919,7 @@
|
|
|
34553
34919
|
"deprecationMessage": "",
|
|
34554
34920
|
"rawdescription": "\n\nText set to the title\n",
|
|
34555
34921
|
"description": "<p>Text set to the title</p>\n",
|
|
34556
|
-
"line":
|
|
34922
|
+
"line": 126,
|
|
34557
34923
|
"type": "string",
|
|
34558
34924
|
"decorators": []
|
|
34559
34925
|
}
|
|
@@ -34564,7 +34930,7 @@
|
|
|
34564
34930
|
"defaultValue": "new EventEmitter<any>()",
|
|
34565
34931
|
"deprecated": false,
|
|
34566
34932
|
"deprecationMessage": "",
|
|
34567
|
-
"line":
|
|
34933
|
+
"line": 186,
|
|
34568
34934
|
"type": "EventEmitter"
|
|
34569
34935
|
}
|
|
34570
34936
|
],
|
|
@@ -34577,7 +34943,7 @@
|
|
|
34577
34943
|
"type": "",
|
|
34578
34944
|
"optional": false,
|
|
34579
34945
|
"description": "<p>Controls the state of the drag and drop file container</p>\n",
|
|
34580
|
-
"line":
|
|
34946
|
+
"line": 191,
|
|
34581
34947
|
"rawdescription": "\n\nControls the state of the drag and drop file container\n",
|
|
34582
34948
|
"modifierKind": [
|
|
34583
34949
|
125
|
|
@@ -34590,7 +34956,7 @@
|
|
|
34590
34956
|
"type": "",
|
|
34591
34957
|
"optional": false,
|
|
34592
34958
|
"description": "<p>Maintains a reference to the view DOM element of the underlying <input> node</p>\n",
|
|
34593
|
-
"line":
|
|
34959
|
+
"line": 168,
|
|
34594
34960
|
"rawdescription": "\n\nMaintains a reference to the view DOM element of the underlying <input> node\n",
|
|
34595
34961
|
"decorators": [
|
|
34596
34962
|
{
|
|
@@ -34631,7 +34997,7 @@
|
|
|
34631
34997
|
"optional": false,
|
|
34632
34998
|
"returnType": "FileItem",
|
|
34633
34999
|
"typeParameters": [],
|
|
34634
|
-
"line":
|
|
35000
|
+
"line": 231,
|
|
34635
35001
|
"deprecated": false,
|
|
34636
35002
|
"deprecationMessage": "",
|
|
34637
35003
|
"jsdoctags": [
|
|
@@ -34659,7 +35025,7 @@
|
|
|
34659
35025
|
"optional": false,
|
|
34660
35026
|
"returnType": "boolean",
|
|
34661
35027
|
"typeParameters": [],
|
|
34662
|
-
"line":
|
|
35028
|
+
"line": 310,
|
|
34663
35029
|
"deprecated": false,
|
|
34664
35030
|
"deprecationMessage": "",
|
|
34665
35031
|
"modifierKind": [
|
|
@@ -34683,7 +35049,7 @@
|
|
|
34683
35049
|
"optional": false,
|
|
34684
35050
|
"returnType": "void",
|
|
34685
35051
|
"typeParameters": [],
|
|
34686
|
-
"line":
|
|
35052
|
+
"line": 214,
|
|
34687
35053
|
"deprecated": false,
|
|
34688
35054
|
"deprecationMessage": ""
|
|
34689
35055
|
},
|
|
@@ -34700,7 +35066,7 @@
|
|
|
34700
35066
|
"optional": false,
|
|
34701
35067
|
"returnType": "void",
|
|
34702
35068
|
"typeParameters": [],
|
|
34703
|
-
"line":
|
|
35069
|
+
"line": 264,
|
|
34704
35070
|
"deprecated": false,
|
|
34705
35071
|
"deprecationMessage": "",
|
|
34706
35072
|
"jsdoctags": [
|
|
@@ -34728,7 +35094,7 @@
|
|
|
34728
35094
|
"optional": false,
|
|
34729
35095
|
"returnType": "void",
|
|
34730
35096
|
"typeParameters": [],
|
|
34731
|
-
"line":
|
|
35097
|
+
"line": 255,
|
|
34732
35098
|
"deprecated": false,
|
|
34733
35099
|
"deprecationMessage": "",
|
|
34734
35100
|
"jsdoctags": [
|
|
@@ -34756,7 +35122,7 @@
|
|
|
34756
35122
|
"optional": false,
|
|
34757
35123
|
"returnType": "void",
|
|
34758
35124
|
"typeParameters": [],
|
|
34759
|
-
"line":
|
|
35125
|
+
"line": 270,
|
|
34760
35126
|
"deprecated": false,
|
|
34761
35127
|
"deprecationMessage": "",
|
|
34762
35128
|
"jsdoctags": [
|
|
@@ -34777,7 +35143,7 @@
|
|
|
34777
35143
|
"optional": false,
|
|
34778
35144
|
"returnType": "void",
|
|
34779
35145
|
"typeParameters": [],
|
|
34780
|
-
"line":
|
|
35146
|
+
"line": 241,
|
|
34781
35147
|
"deprecated": false,
|
|
34782
35148
|
"deprecationMessage": ""
|
|
34783
35149
|
},
|
|
@@ -34794,7 +35160,7 @@
|
|
|
34794
35160
|
"optional": false,
|
|
34795
35161
|
"returnType": "void",
|
|
34796
35162
|
"typeParameters": [],
|
|
34797
|
-
"line":
|
|
35163
|
+
"line": 323,
|
|
34798
35164
|
"deprecated": false,
|
|
34799
35165
|
"deprecationMessage": "",
|
|
34800
35166
|
"rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
|
|
@@ -34824,7 +35190,7 @@
|
|
|
34824
35190
|
"optional": false,
|
|
34825
35191
|
"returnType": "void",
|
|
34826
35192
|
"typeParameters": [],
|
|
34827
|
-
"line":
|
|
35193
|
+
"line": 317,
|
|
34828
35194
|
"deprecated": false,
|
|
34829
35195
|
"deprecationMessage": "",
|
|
34830
35196
|
"rawdescription": "\n\nRegisters the injected function to control the touch use of the `FileUploader`.\n",
|
|
@@ -34854,7 +35220,7 @@
|
|
|
34854
35220
|
"optional": false,
|
|
34855
35221
|
"returnType": "void",
|
|
34856
35222
|
"typeParameters": [],
|
|
34857
|
-
"line":
|
|
35223
|
+
"line": 297,
|
|
34858
35224
|
"deprecated": false,
|
|
34859
35225
|
"deprecationMessage": "",
|
|
34860
35226
|
"jsdoctags": [
|
|
@@ -34882,7 +35248,7 @@
|
|
|
34882
35248
|
"optional": false,
|
|
34883
35249
|
"returnType": "void",
|
|
34884
35250
|
"typeParameters": [],
|
|
34885
|
-
"line":
|
|
35251
|
+
"line": 334,
|
|
34886
35252
|
"deprecated": false,
|
|
34887
35253
|
"deprecationMessage": "",
|
|
34888
35254
|
"rawdescription": "\n\n`ControlValueAccessor` method to programmatically disable the checkbox.\n\nex: `this.formGroup.get(\"myFileUploader\").disable();`\n\n",
|
|
@@ -34890,8 +35256,8 @@
|
|
|
34890
35256
|
"jsdoctags": [
|
|
34891
35257
|
{
|
|
34892
35258
|
"name": {
|
|
34893
|
-
"pos":
|
|
34894
|
-
"end":
|
|
35259
|
+
"pos": 8275,
|
|
35260
|
+
"end": 8285,
|
|
34895
35261
|
"flags": 16842752,
|
|
34896
35262
|
"modifierFlagsCache": 0,
|
|
34897
35263
|
"transformFlags": 0,
|
|
@@ -34902,8 +35268,8 @@
|
|
|
34902
35268
|
"deprecated": false,
|
|
34903
35269
|
"deprecationMessage": "",
|
|
34904
35270
|
"tagName": {
|
|
34905
|
-
"pos":
|
|
34906
|
-
"end":
|
|
35271
|
+
"pos": 8269,
|
|
35272
|
+
"end": 8274,
|
|
34907
35273
|
"flags": 16842752,
|
|
34908
35274
|
"modifierFlagsCache": 0,
|
|
34909
35275
|
"transformFlags": 0,
|
|
@@ -34927,7 +35293,7 @@
|
|
|
34927
35293
|
"optional": false,
|
|
34928
35294
|
"returnType": "void",
|
|
34929
35295
|
"typeParameters": [],
|
|
34930
|
-
"line":
|
|
35296
|
+
"line": 225,
|
|
34931
35297
|
"deprecated": false,
|
|
34932
35298
|
"deprecationMessage": "",
|
|
34933
35299
|
"rawdescription": "\n\nPropagates the injected `value`.\n",
|
|
@@ -34954,7 +35320,7 @@
|
|
|
34954
35320
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { FileUploaderModule } from 'carbon-components-angular';</code></pre></div><p><a href=\"../../?path=/story/components-file-uploader--basic\">See demo</a></p>\n",
|
|
34955
35321
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { FileUploaderModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-file-uploader--basic)\n",
|
|
34956
35322
|
"type": "component",
|
|
34957
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tTemplateRef\n} from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { FileItem } from \"./file-item.interface\";\n\nconst noop = () => { };\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { FileUploaderModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-file-uploader--basic)\n */\n@Component({\n\tselector: \"cds-file-uploader, ibm-file-uploader\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<label [for]=\"fileUploaderId\" class=\"cds--file--label\">{{title}}</label>\n\t\t\t<p class=\"cds--label-description\" role=\"alert\">{{description}}</p>\n\t\t\t<div class=\"cds--file\">\n\t\t\t\t<label\n\t\t\t\t\t*ngIf=\"drop\"\n\t\t\t\t\tclass=\"cds--file-browse-btn\"\n\t\t\t\t\t(keyup.enter)=\"fileInput.click()\"\n\t\t\t\t\t(keyup.space)=\"fileInput.click()\"\n\t\t\t\t\t[ngClass]=\"{'cds--file-browse-btn--disabled': disabled}\"\n\t\t\t\t\ttabindex=\"0\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"cds--file__drop-container\"\n\t\t\t\t\t\t[ngClass]=\"{'cds--file__drop-container--drag-over': dragOver}\"\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t\t(dragover)=\"onDragOver($event)\"\n\t\t\t\t\t\t(dragleave)=\"onDragLeave($event)\"\n\t\t\t\t\t\t(drop)=\"onDrop($event)\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(dropText)\">{{dropText}}</ng-container>\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(dropText)\" [ngTemplateOutlet]=\"dropText\"></ng-template>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<button\n\t\t\t\t\t*ngIf=\"!drop\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[cdsButton]=\"buttonType\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\"\n\t\t\t\t\t[disabled]=\"disabled\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"cds--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"\n\t\t\t\t\t[disabled]=\"disabled\"/>\n\t\t\t\t<div class=\"cds--file-container\">\n\t\t\t\t\t<ng-container *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<cds-file\n\t\t\t\t\t\t\t[fileItem]=\"fileItem\"\n\t\t\t\t\t\t\t[nameTpl]=\"fileNameTpl\"\n\t\t\t\t\t\t\t[actionsTpl]=\"fileActionsTpl\"\n\t\t\t\t\t\t\t[size]=\"fileItemSize\"\n\t\t\t\t\t\t\t(remove)=\"removeFile(fileItem)\">\n\t\t\t\t\t\t</cds-file>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button cdsButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: FileUploader,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class FileUploader implements ControlValueAccessor {\n\t/**\n\t * Counter used to create unique ids for file-uploader components\n\t */\n\tstatic fileUploaderCount = 0;\n\t/**\n\t * Accessible text for the button that opens the upload window.\n\t *\n\t * Defaults to the `FILE_UPLOADER.OPEN` value from the i18n service\n\t */\n\t@Input() buttonText = this.i18n.get().FILE_UPLOADER.OPEN;\n\t/**\n\t * Type set for button\n\t */\n\t@Input() buttonType
|
|
35323
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tTemplateRef\n} from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { FileItem } from \"./file-item.interface\";\n\nconst noop = () => { };\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { FileUploaderModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-file-uploader--basic)\n */\n@Component({\n\tselector: \"cds-file-uploader, ibm-file-uploader\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<label [for]=\"fileUploaderId\" class=\"cds--file--label\">{{title}}</label>\n\t\t\t<p class=\"cds--label-description\" role=\"alert\">{{description}}</p>\n\t\t\t<div class=\"cds--file\">\n\t\t\t\t<label\n\t\t\t\t\t*ngIf=\"drop\"\n\t\t\t\t\tclass=\"cds--file-browse-btn\"\n\t\t\t\t\t(keyup.enter)=\"fileInput.click()\"\n\t\t\t\t\t(keyup.space)=\"fileInput.click()\"\n\t\t\t\t\t[ngClass]=\"{'cds--file-browse-btn--disabled': disabled}\"\n\t\t\t\t\ttabindex=\"0\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"cds--file__drop-container\"\n\t\t\t\t\t\t[ngClass]=\"{'cds--file__drop-container--drag-over': dragOver}\"\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t\t(dragover)=\"onDragOver($event)\"\n\t\t\t\t\t\t(dragleave)=\"onDragLeave($event)\"\n\t\t\t\t\t\t(drop)=\"onDrop($event)\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(dropText)\">{{dropText}}</ng-container>\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(dropText)\" [ngTemplateOutlet]=\"dropText\"></ng-template>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<button\n\t\t\t\t\t*ngIf=\"!drop\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[cdsButton]=\"buttonType\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\"\n\t\t\t\t\t[disabled]=\"disabled\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"cds--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"\n\t\t\t\t\t[disabled]=\"disabled\"/>\n\t\t\t\t<div class=\"cds--file-container\">\n\t\t\t\t\t<ng-container *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<cds-file\n\t\t\t\t\t\t\t[fileItem]=\"fileItem\"\n\t\t\t\t\t\t\t[nameTpl]=\"fileNameTpl\"\n\t\t\t\t\t\t\t[actionsTpl]=\"fileActionsTpl\"\n\t\t\t\t\t\t\t[size]=\"fileItemSize\"\n\t\t\t\t\t\t\t(remove)=\"removeFile(fileItem)\">\n\t\t\t\t\t\t</cds-file>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button cdsButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: FileUploader,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class FileUploader implements ControlValueAccessor {\n\t/**\n\t * Counter used to create unique ids for file-uploader components\n\t */\n\tstatic fileUploaderCount = 0;\n\t/**\n\t * Accessible text for the button that opens the upload window.\n\t *\n\t * Defaults to the `FILE_UPLOADER.OPEN` value from the i18n service\n\t */\n\t@Input() buttonText = this.i18n.get().FILE_UPLOADER.OPEN;\n\t/**\n\t * Type set for button\n\t */\n\t@Input() buttonType:\n\t\t| \"primary\"\n\t\t| \"secondary\"\n\t\t| \"tertiary\"\n\t\t| \"ghost\"\n\t\t| \"danger\"\n\t\t| \"danger--primary\"\n\t\t| \"danger--tertiary\"\n\t\t| \"danger--ghost\" = \"primary\";\n\t/**\n\t * Text set to the title\n\t */\n\t@Input() title: string;\n\t/**\n\t * Text set to the description\n\t */\n\t@Input() description: string;\n\t/**\n\t * Specify the types of files that the input should be able to receive\n\t */\n\t@Input() accept = [];\n\t/**\n\t * Set to `false` to tell the component to only accept a single file on upload.\n\t *\n\t * Defaults to `true`. Accepts multiple files.\n\t */\n\t@Input() multiple = true;\n\t/**\n\t * Set to `true` for a loading file uploader.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Sets the size of the button.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\";\n\t/**\n\t * Sets the size of the file items\n\t */\n\t@Input() fileItemSize: \"sm\" | \"md\" | \"lg\" = \"lg\";\n\t/**\n\t * Set to `true` to enable drag and drop.\n\t */\n\t@Input() drop = false;\n\t/**\n\t * Sets the text shown in drag and drop box.\n\t */\n\t@Input() dropText: string | TemplateRef<any>;\n\t/**\n\t * Provides a unique id for the underlying `<input>` node\n\t */\n\t@Input() fileUploaderId = `file-uploader-${FileUploader.fileUploaderCount}`;\n\t/**\n\t * Maintains a reference to the view DOM element of the underlying <input> node\n\t */\n\t@ViewChild(\"fileInput\") fileInput;\n\t/**\n\t * The list of files that have been submitted to be uploaded\n\t */\n\t@Input() files = new Set<FileItem>();\n\t/**\n\t * Set to `true` to disable upload button\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Custom template used to render the file name of uploaded files\n\t */\n\t@Input() fileNameTpl: TemplateRef<unknown>;\n\t/**\n\t * Custom template used to render the file actions of uploaded files\n\t */\n\t@Input() fileActionsTpl: TemplateRef<unknown>;\n\n\t@Output() filesChange = new EventEmitter<any>();\n\n\t/**\n\t * Controls the state of the drag and drop file container\n\t */\n\tpublic dragOver = false;\n\n\tprotected onTouchedCallback: () => void = noop;\n\tprotected onChangeCallback: (_: Set<FileItem>) => void = noop;\n\n\tconstructor(protected i18n: I18n) {\n\t\tFileUploader.fileUploaderCount++;\n\t}\n\n\t/**\n\t * Specifies the property to be used as the return value to `ngModel` and reactive forms.\n\t * Updates `this.files`.\n\t */\n\tget value(): Set<FileItem> {\n\t\treturn this.files;\n\t}\n\tset value(v: Set<FileItem>) {\n\t\tif (v !== this.files) {\n\t\t\tthis.files = v;\n\t\t\tthis.onChangeCallback(v);\n\t\t}\n\t}\n\n\tonBlur() {\n\t\tthis.onTouchedCallback();\n\t}\n\n\tget fileList() {\n\t\treturn Array.from(this.fileInput.nativeElement.files);\n\t}\n\n\t/**\n\t * Propagates the injected `value`.\n\t */\n\twriteValue(value: Set<FileItem>) {\n\t\tif (value !== this.value) {\n\t\t\tthis.files = value;\n\t\t}\n\t}\n\n\tcreateFileItem(file): FileItem {\n\t\treturn {\n\t\t\tuploaded: false,\n\t\t\tstate: \"edit\",\n\t\t\tinvalid: false,\n\t\t\tinvalidText: \"\",\n\t\t\tfile: file\n\t\t};\n\t}\n\n\tonFilesAdded() {\n\t\tconst newFiles = new Set<FileItem>(this.files);\n\t\tif (!this.multiple) {\n\t\t\tnewFiles.clear();\n\t\t}\n\t\tfor (let file of this.fileList) {\n\t\t\tconst fileItem = this.createFileItem(file);\n\t\t\tnewFiles.add(fileItem);\n\t\t}\n\n\t\tthis.value = newFiles;\n\t\tthis.filesChange.emit(newFiles);\n\t}\n\n\tonDragOver(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dragOver = true;\n\t}\n\n\tonDragLeave(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tthis.dragOver = false;\n\t}\n\n\tonDrop(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst transferredFiles: Array<File> = Array.from(event.dataTransfer.files);\n\t\tconst newFiles = new Set<FileItem>(this.files);\n\n\t\ttransferredFiles.filter(({ name, type }) => {\n\t\t\t// Get the file extension and add a \".\" to the beginning.\n\t\t\tconst fileExtension = name.split(\".\").pop().replace(/^/, \".\");\n\t\t\t// Check if the accept array contains the mime type or extension of the file.\n\t\t\treturn this.accept.includes(type) || this.accept.includes(fileExtension) || !this.accept.length;\n\t\t}).forEach(file => {\n\t\t\tif (!newFiles.size || this.multiple) {\n\t\t\t\tconst fileItem = this.createFileItem(file);\n\t\t\t\tnewFiles.add(fileItem);\n\t\t\t}\n\t\t});\n\n\t\tthis.value = newFiles;\n\t\tthis.filesChange.emit(newFiles);\n\t\tthis.dragOver = false;\n\t}\n\n\tremoveFile(fileItem) {\n\t\t// Deleting an item from this.files removes the <ibm-file> component,\n\t\t// which triggers its ngOnDestroy(), which fires the (remove) event again.\n\t\t// So, (remove) may double-fire and we need to handle it here.\n\t\tif (this.files && this.files.has(fileItem)) {\n\t\t\tconst newFiles = new Set<FileItem>(this.files);\n\t\t\tnewFiles.delete(fileItem);\n\t\t\tthis.filesChange.emit(newFiles);\n\t\t\tthis.value = newFiles;\n\t\t}\n\t\tthis.fileInput.nativeElement.value = \"\";\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\t/**\n\t * Registers the injected function to control the touch use of the `FileUploader`.\n\t */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouchedCallback = fn;\n\t}\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tregisterOnChange(fn: any) {\n\t\tthis.onChangeCallback = fn;\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the checkbox.\n\t *\n\t * ex: `this.formGroup.get(\"myFileUploader\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the file uploader\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n}\n",
|
|
34958
35324
|
"assetsDirs": [],
|
|
34959
35325
|
"styleUrlsData": "",
|
|
34960
35326
|
"stylesData": "",
|
|
@@ -34971,7 +35337,7 @@
|
|
|
34971
35337
|
"deprecationMessage": ""
|
|
34972
35338
|
}
|
|
34973
35339
|
],
|
|
34974
|
-
"line":
|
|
35340
|
+
"line": 194,
|
|
34975
35341
|
"jsdoctags": [
|
|
34976
35342
|
{
|
|
34977
35343
|
"name": "i18n",
|
|
@@ -35005,7 +35371,7 @@
|
|
|
35005
35371
|
}
|
|
35006
35372
|
],
|
|
35007
35373
|
"returnType": "void",
|
|
35008
|
-
"line":
|
|
35374
|
+
"line": 207,
|
|
35009
35375
|
"jsdoctags": [
|
|
35010
35376
|
{
|
|
35011
35377
|
"name": "v",
|
|
@@ -35022,7 +35388,7 @@
|
|
|
35022
35388
|
"name": "value",
|
|
35023
35389
|
"type": "",
|
|
35024
35390
|
"returnType": "Set<FileItem>",
|
|
35025
|
-
"line":
|
|
35391
|
+
"line": 204,
|
|
35026
35392
|
"rawdescription": "\n\nSpecifies the property to be used as the return value to `ngModel` and reactive forms.\nUpdates `this.files`.\n",
|
|
35027
35393
|
"description": "<p>Specifies the property to be used as the return value to <code>ngModel</code> and reactive forms.\nUpdates <code>this.files</code>.</p>\n"
|
|
35028
35394
|
}
|
|
@@ -35033,7 +35399,7 @@
|
|
|
35033
35399
|
"name": "fileList",
|
|
35034
35400
|
"type": "",
|
|
35035
35401
|
"returnType": "",
|
|
35036
|
-
"line":
|
|
35402
|
+
"line": 218
|
|
35037
35403
|
}
|
|
35038
35404
|
}
|
|
35039
35405
|
}
|
|
@@ -47821,7 +48187,7 @@
|
|
|
47821
48187
|
},
|
|
47822
48188
|
{
|
|
47823
48189
|
"name": "ProgressBar",
|
|
47824
|
-
"id": "component-ProgressBar-
|
|
48190
|
+
"id": "component-ProgressBar-e26ab8fd482e624b7500578b7ea54da0b42d145a1499f27787d160c312d22b01e8f66d3de591a04d779877565e1eb5d43117fe2e4b95885ba727f043ddb373fc",
|
|
47825
48191
|
"file": "src/progress-bar/progress-bar.component.ts",
|
|
47826
48192
|
"encapsulation": [],
|
|
47827
48193
|
"entryComponents": [],
|
|
@@ -47831,7 +48197,7 @@
|
|
|
47831
48197
|
"selector": "cds-progress-bar, ibm-progress-bar",
|
|
47832
48198
|
"styleUrls": [],
|
|
47833
48199
|
"styles": [],
|
|
47834
|
-
"template": "<div\n\t*ngIf=\"label\"\n\tclass=\"cds--progress-bar__label\"\n\t[id]=\"id\">\n\t<span class=\"cds--progress-bar__label-text\">\n\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t</span>\n\t<svg\n\t\t*ngIf=\"isFinished\"\n\t\tfill=\"currentColor\"\n\t\tcdsIcon=\"checkmark--filled\"\n\t\tclass=\"cds--progress-bar__status-icon\">\n\t</svg>\n\t<svg\n\t\t*ngIf=\"isError\"\n\t\tfill=\"currentColor\"\n\t\tcdsIcon=\"error--filled\"\n\t\tclass=\"cds--progress-bar__status-icon\">\n\t</svg>\n</div>\n<div\n\tclass=\"cds--progress-bar__track\"\n\trole=\"progressbar\"\n\t[attr.aria-invalid]=\"isError\"\n\t[attr.aria-labelledby]=\"id\"\n\t[attr.aria-describedby]=\"helperText ? helperId : null\"\n\t[attr.aria-valuemin]=\"!indeterminate ? 0 : null\"\n\t[attr.aria-valuemax]=\"!indeterminate ? max : null\"\n\t[attr.aria-valuenow]=\"!indeterminate ? value : null\">\n\t<div\n\t\tclass=\"cds--progress-bar__bar\"\n\t\t[ngStyle]=\"{\n\t\t\t'transform': !isFinished && !isError ? percentage : null\n\t\t}\">\n\t</div>\n</div>\n<div\n\t[id]=\"helperId\"\n\t*ngIf=\"helperText\"\n\tclass=\"cds--progress-bar__helper-text\">\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",
|
|
48200
|
+
"template": "<div\n\t*ngIf=\"label\"\n\tclass=\"cds--progress-bar__label\"\n\t[ngClass]=\"{'cds--visually-hidden': hideLabel}\"\n\t[id]=\"id\">\n\t<span class=\"cds--progress-bar__label-text\">\n\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t</span>\n\t<svg\n\t\t*ngIf=\"isFinished\"\n\t\tfill=\"currentColor\"\n\t\tcdsIcon=\"checkmark--filled\"\n\t\tclass=\"cds--progress-bar__status-icon\">\n\t</svg>\n\t<svg\n\t\t*ngIf=\"isError\"\n\t\tfill=\"currentColor\"\n\t\tcdsIcon=\"error--filled\"\n\t\tclass=\"cds--progress-bar__status-icon\">\n\t</svg>\n</div>\n<div\n\tclass=\"cds--progress-bar__track\"\n\trole=\"progressbar\"\n\t[attr.aria-busy]=\"!isFinished\"\n\t[attr.aria-invalid]=\"isError\"\n\t[attr.aria-labelledby]=\"id\"\n\t[attr.aria-describedby]=\"helperText ? helperId : null\"\n\t[attr.aria-valuemin]=\"!indeterminate ? 0 : null\"\n\t[attr.aria-valuemax]=\"!indeterminate ? max : null\"\n\t[attr.aria-valuenow]=\"!indeterminate ? value : null\">\n\t<div\n\t\tclass=\"cds--progress-bar__bar\"\n\t\t[ngStyle]=\"{\n\t\t\t'transform': !isFinished && !isError ? percentage : null\n\t\t}\">\n\t</div>\n</div>\n<div\n\t[id]=\"helperId\"\n\t*ngIf=\"helperText\"\n\tclass=\"cds--progress-bar__helper-text\">\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",
|
|
47835
48201
|
"templateUrl": [],
|
|
47836
48202
|
"viewProviders": [],
|
|
47837
48203
|
"hostDirectives": [],
|
|
@@ -47842,16 +48208,27 @@
|
|
|
47842
48208
|
"deprecationMessage": "",
|
|
47843
48209
|
"rawdescription": "\n\nCurrent progress textual representation\n",
|
|
47844
48210
|
"description": "<p>Current progress textual representation</p>\n",
|
|
47845
|
-
"line":
|
|
48211
|
+
"line": 134,
|
|
47846
48212
|
"type": "string | TemplateRef<any>",
|
|
47847
48213
|
"decorators": []
|
|
47848
48214
|
},
|
|
48215
|
+
{
|
|
48216
|
+
"name": "hideLabel",
|
|
48217
|
+
"defaultValue": "false",
|
|
48218
|
+
"deprecated": false,
|
|
48219
|
+
"deprecationMessage": "",
|
|
48220
|
+
"rawdescription": "\n\nSet to `true` to visually hide the label while keeping it available to assistive technologies.\n",
|
|
48221
|
+
"description": "<p>Set to <code>true</code> to visually hide the label while keeping it available to assistive technologies.</p>\n",
|
|
48222
|
+
"line": 155,
|
|
48223
|
+
"type": "boolean",
|
|
48224
|
+
"decorators": []
|
|
48225
|
+
},
|
|
47849
48226
|
{
|
|
47850
48227
|
"name": "id",
|
|
47851
48228
|
"defaultValue": "`progress-bar-${ProgressBar.progressBarCounter++}`",
|
|
47852
48229
|
"deprecated": false,
|
|
47853
48230
|
"deprecationMessage": "",
|
|
47854
|
-
"line":
|
|
48231
|
+
"line": 125,
|
|
47855
48232
|
"type": "string",
|
|
47856
48233
|
"decorators": []
|
|
47857
48234
|
},
|
|
@@ -47861,7 +48238,7 @@
|
|
|
47861
48238
|
"deprecationMessage": "",
|
|
47862
48239
|
"rawdescription": "\n\nDescription of the progress bar\n",
|
|
47863
48240
|
"description": "<p>Description of the progress bar</p>\n",
|
|
47864
|
-
"line":
|
|
48241
|
+
"line": 130,
|
|
47865
48242
|
"type": "string | TemplateRef<any>",
|
|
47866
48243
|
"decorators": []
|
|
47867
48244
|
},
|
|
@@ -47872,7 +48249,7 @@
|
|
|
47872
48249
|
"deprecationMessage": "",
|
|
47873
48250
|
"rawdescription": "\n\nMaximum value\n",
|
|
47874
48251
|
"description": "<p>Maximum value</p>\n",
|
|
47875
|
-
"line":
|
|
48252
|
+
"line": 138,
|
|
47876
48253
|
"type": "number",
|
|
47877
48254
|
"decorators": []
|
|
47878
48255
|
},
|
|
@@ -47883,7 +48260,7 @@
|
|
|
47883
48260
|
"deprecationMessage": "",
|
|
47884
48261
|
"rawdescription": "\n\nSize of the progress bar, default is `big`\n",
|
|
47885
48262
|
"description": "<p>Size of the progress bar, default is <code>big</code></p>\n",
|
|
47886
|
-
"line":
|
|
48263
|
+
"line": 150,
|
|
47887
48264
|
"type": "\"small\" | \"big\"",
|
|
47888
48265
|
"decorators": []
|
|
47889
48266
|
},
|
|
@@ -47894,7 +48271,7 @@
|
|
|
47894
48271
|
"deprecationMessage": "",
|
|
47895
48272
|
"rawdescription": "\n\nCurrent status of the progress bar, default is `active`\n",
|
|
47896
48273
|
"description": "<p>Current status of the progress bar, default is <code>active</code></p>\n",
|
|
47897
|
-
"line":
|
|
48274
|
+
"line": 146,
|
|
47898
48275
|
"type": "\"active\" | \"finished\" | \"error\"",
|
|
47899
48276
|
"decorators": []
|
|
47900
48277
|
},
|
|
@@ -47905,7 +48282,7 @@
|
|
|
47905
48282
|
"deprecationMessage": "",
|
|
47906
48283
|
"rawdescription": "\n\nAlignment variant of the progress bar, default is `default`\n",
|
|
47907
48284
|
"description": "<p>Alignment variant of the progress bar, default is <code>default</code></p>\n",
|
|
47908
|
-
"line":
|
|
48285
|
+
"line": 142,
|
|
47909
48286
|
"type": "\"default\" | \"inline\" | \"indented\"",
|
|
47910
48287
|
"decorators": []
|
|
47911
48288
|
},
|
|
@@ -47915,7 +48292,7 @@
|
|
|
47915
48292
|
"deprecationMessage": "",
|
|
47916
48293
|
"rawdescription": "\n\nCurrent value\n",
|
|
47917
48294
|
"description": "<p>Current value</p>\n",
|
|
47918
|
-
"line":
|
|
48295
|
+
"line": 72,
|
|
47919
48296
|
"type": "number | undefined",
|
|
47920
48297
|
"decorators": []
|
|
47921
48298
|
}
|
|
@@ -47930,7 +48307,7 @@
|
|
|
47930
48307
|
"type": "",
|
|
47931
48308
|
"optional": false,
|
|
47932
48309
|
"description": "",
|
|
47933
|
-
"line":
|
|
48310
|
+
"line": 157,
|
|
47934
48311
|
"decorators": [
|
|
47935
48312
|
{
|
|
47936
48313
|
"name": "HostBinding",
|
|
@@ -47949,7 +48326,7 @@
|
|
|
47949
48326
|
"type": "",
|
|
47950
48327
|
"optional": false,
|
|
47951
48328
|
"description": "",
|
|
47952
|
-
"line":
|
|
48329
|
+
"line": 126
|
|
47953
48330
|
},
|
|
47954
48331
|
{
|
|
47955
48332
|
"name": "progressBarCounter",
|
|
@@ -47959,7 +48336,7 @@
|
|
|
47959
48336
|
"type": "number",
|
|
47960
48337
|
"optional": false,
|
|
47961
48338
|
"description": "",
|
|
47962
|
-
"line":
|
|
48339
|
+
"line": 123,
|
|
47963
48340
|
"modifierKind": [
|
|
47964
48341
|
126
|
|
47965
48342
|
]
|
|
@@ -47979,7 +48356,7 @@
|
|
|
47979
48356
|
"optional": false,
|
|
47980
48357
|
"returnType": "boolean",
|
|
47981
48358
|
"typeParameters": [],
|
|
47982
|
-
"line":
|
|
48359
|
+
"line": 160,
|
|
47983
48360
|
"deprecated": false,
|
|
47984
48361
|
"deprecationMessage": "",
|
|
47985
48362
|
"jsdoctags": [
|
|
@@ -48003,7 +48380,7 @@
|
|
|
48003
48380
|
"defaultValue": "true",
|
|
48004
48381
|
"deprecated": false,
|
|
48005
48382
|
"deprecationMessage": "",
|
|
48006
|
-
"line":
|
|
48383
|
+
"line": 157,
|
|
48007
48384
|
"type": "boolean",
|
|
48008
48385
|
"decorators": []
|
|
48009
48386
|
},
|
|
@@ -48011,7 +48388,7 @@
|
|
|
48011
48388
|
"name": "class.cds--progress-bar--big",
|
|
48012
48389
|
"deprecated": false,
|
|
48013
48390
|
"deprecationMessage": "",
|
|
48014
|
-
"line":
|
|
48391
|
+
"line": 97,
|
|
48015
48392
|
"type": "boolean",
|
|
48016
48393
|
"decorators": []
|
|
48017
48394
|
},
|
|
@@ -48019,7 +48396,7 @@
|
|
|
48019
48396
|
"name": "class.cds--progress-bar--default",
|
|
48020
48397
|
"deprecated": false,
|
|
48021
48398
|
"deprecationMessage": "",
|
|
48022
|
-
"line":
|
|
48399
|
+
"line": 104,
|
|
48023
48400
|
"type": "boolean",
|
|
48024
48401
|
"decorators": []
|
|
48025
48402
|
},
|
|
@@ -48027,7 +48404,7 @@
|
|
|
48027
48404
|
"name": "class.cds--progress-bar--error",
|
|
48028
48405
|
"deprecated": false,
|
|
48029
48406
|
"deprecationMessage": "",
|
|
48030
|
-
"line":
|
|
48407
|
+
"line": 117,
|
|
48031
48408
|
"type": "boolean",
|
|
48032
48409
|
"decorators": []
|
|
48033
48410
|
},
|
|
@@ -48035,7 +48412,7 @@
|
|
|
48035
48412
|
"name": "class.cds--progress-bar--finished",
|
|
48036
48413
|
"deprecated": false,
|
|
48037
48414
|
"deprecationMessage": "",
|
|
48038
|
-
"line":
|
|
48415
|
+
"line": 114,
|
|
48039
48416
|
"type": "boolean",
|
|
48040
48417
|
"decorators": []
|
|
48041
48418
|
},
|
|
@@ -48043,7 +48420,7 @@
|
|
|
48043
48420
|
"name": "class.cds--progress-bar--indented",
|
|
48044
48421
|
"deprecated": false,
|
|
48045
48422
|
"deprecationMessage": "",
|
|
48046
|
-
"line":
|
|
48423
|
+
"line": 107,
|
|
48047
48424
|
"type": "boolean",
|
|
48048
48425
|
"decorators": []
|
|
48049
48426
|
},
|
|
@@ -48051,7 +48428,7 @@
|
|
|
48051
48428
|
"name": "class.cds--progress-bar--indeterminate",
|
|
48052
48429
|
"deprecated": false,
|
|
48053
48430
|
"deprecationMessage": "",
|
|
48054
|
-
"line":
|
|
48431
|
+
"line": 120,
|
|
48055
48432
|
"type": "boolean",
|
|
48056
48433
|
"decorators": []
|
|
48057
48434
|
},
|
|
@@ -48059,7 +48436,7 @@
|
|
|
48059
48436
|
"name": "class.cds--progress-bar--inline",
|
|
48060
48437
|
"deprecated": false,
|
|
48061
48438
|
"deprecationMessage": "",
|
|
48062
|
-
"line":
|
|
48439
|
+
"line": 110,
|
|
48063
48440
|
"type": "boolean",
|
|
48064
48441
|
"decorators": []
|
|
48065
48442
|
},
|
|
@@ -48067,7 +48444,7 @@
|
|
|
48067
48444
|
"name": "class.cds--progress-bar--small",
|
|
48068
48445
|
"deprecated": false,
|
|
48069
48446
|
"deprecationMessage": "",
|
|
48070
|
-
"line":
|
|
48447
|
+
"line": 100,
|
|
48071
48448
|
"type": "boolean",
|
|
48072
48449
|
"decorators": []
|
|
48073
48450
|
}
|
|
@@ -48078,7 +48455,7 @@
|
|
|
48078
48455
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { ProgressBarModule } from 'carbon-components-angular';</code></pre></div><p><a href=\"../../?path=/story/components-progress-bar--basic\">See demo</a></p>\n",
|
|
48079
48456
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { ProgressBarModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-progress-bar--basic)\n",
|
|
48080
48457
|
"type": "component",
|
|
48081
|
-
"sourceCode": "import {\n\tComponent,\n\tHostBinding,\n\tInput,\n\tTemplateRef\n} from \"@angular/core\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { ProgressBarModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-progress-bar--basic)\n */\n@Component({\n\tselector: \"cds-progress-bar, ibm-progress-bar\",\n\ttemplate: `\n\t\t<div\n\t\t\t*ngIf=\"label\"\n\t\t\tclass=\"cds--progress-bar__label\"\n\t\t\t[id]=\"id\">\n\t\t\t<span class=\"cds--progress-bar__label-text\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t\t</span>\n\t\t\t<svg\n\t\t\t\t*ngIf=\"isFinished\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tcdsIcon=\"checkmark--filled\"\n\t\t\t\tclass=\"cds--progress-bar__status-icon\">\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\t*ngIf=\"isError\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tcdsIcon=\"error--filled\"\n\t\t\t\tclass=\"cds--progress-bar__status-icon\">\n\t\t\t</svg>\n\t\t</div>\n\t\t<div\n\t\t\tclass=\"cds--progress-bar__track\"\n\t\t\trole=\"progressbar\"\n\t\t\t[attr.aria-invalid]=\"isError\"\n\t\t\t[attr.aria-labelledby]=\"id\"\n\t\t\t[attr.aria-describedby]=\"helperText ? helperId : null\"\n\t\t\t[attr.aria-valuemin]=\"!indeterminate ? 0 : null\"\n\t\t\t[attr.aria-valuemax]=\"!indeterminate ? max : null\"\n\t\t\t[attr.aria-valuenow]=\"!indeterminate ? value : null\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--progress-bar__bar\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'transform': !isFinished && !isError ? percentage : null\n\t\t\t\t}\">\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\t[id]=\"helperId\"\n\t\t\t*ngIf=\"helperText\"\n\t\t\tclass=\"cds--progress-bar__helper-text\">\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})\nexport class ProgressBar {\n\t/**\n\t * Current value\n\t */\n\t@Input() set value(num: number | undefined) {\n\t\tthis._value = num;\n\t\t// Validate number\n\t\tif (num > this.max) {\n\t\t\tthis._value = this.max;\n\t\t}\n\t\tif (num < 0) {\n\t\t\tthis._value = 0;\n\t\t}\n\t\t// Set values based on current state\n\t\tif (this.isError) {\n\t\t\tthis._value = 0;\n\t\t} else if (this.isFinished) {\n\t\t\tthis._value = this.max;\n\t\t}\n\t}\n\n\tget value() {\n\t\treturn this._value;\n\t}\n\n\tget percentage() {\n\t\treturn `scaleX(${this.value / this.max})`;\n\t}\n\t// Size\n\t@HostBinding(\"class.cds--progress-bar--big\") get bigBar() {\n\t\treturn this.size === \"big\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--small\") get smallBar() {\n\t\treturn this.size === \"small\";\n\t}\n\t// Type\n\t@HostBinding(\"class.cds--progress-bar--default\") get defaultType() {\n\t\treturn this.type === \"default\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--indented\") get indentedType() {\n\t\treturn this.type === \"indented\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--inline\") get inlineType() {\n\t\treturn this.type === \"inline\";\n\t}\n\t// Status\n\t@HostBinding(\"class.cds--progress-bar--finished\") get isFinished() {\n\t\treturn this.status === \"finished\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--error\") get isError() {\n\t\treturn this.status === \"error\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--indeterminate\") get indeterminate() {\n\t\treturn this.value === undefined && !this.isFinished && !this.isError;\n\t}\n\tstatic progressBarCounter = 0;\n\n\t@Input() id = `progress-bar-${ProgressBar.progressBarCounter++}`;\n\thelperId = `progress-bar-helper-${ProgressBar.progressBarCounter}`;\n\t/**\n\t * Description of the progress bar\n\t */\n\t@Input() label: string | TemplateRef<any>;\n\t/**\n\t * Current progress textual representation\n\t */\n\t@Input() helperText: string | TemplateRef<any>;\n\t/**\n\t * Maximum value\n\t */\n\t@Input() max = 100;\n\t/**\n\t * Alignment variant of the progress bar, default is `default`\n\t */\n\t@Input() type: \"default\" | \"inline\" | \"indented\" = \"default\";\n\t/**\n\t * Current status of the progress bar, default is `active`\n\t */\n\t@Input() status: \"active\" | \"finished\" | \"error\" = \"active\";\n\t/**\n\t * Size of the progress bar, default is `big`\n\t */\n\t@Input() size: \"small\" | \"big\" = \"big\";\n\n\t@HostBinding(\"class.cds--progress-bar\") defaultClass = true;\n\tprivate _value = undefined;\n\n\tisTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n}\n",
|
|
48458
|
+
"sourceCode": "import {\n\tComponent,\n\tHostBinding,\n\tInput,\n\tTemplateRef\n} from \"@angular/core\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { ProgressBarModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-progress-bar--basic)\n */\n@Component({\n\tselector: \"cds-progress-bar, ibm-progress-bar\",\n\ttemplate: `\n\t\t<div\n\t\t\t*ngIf=\"label\"\n\t\t\tclass=\"cds--progress-bar__label\"\n\t\t\t[ngClass]=\"{'cds--visually-hidden': hideLabel}\"\n\t\t\t[id]=\"id\">\n\t\t\t<span class=\"cds--progress-bar__label-text\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t\t</span>\n\t\t\t<svg\n\t\t\t\t*ngIf=\"isFinished\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tcdsIcon=\"checkmark--filled\"\n\t\t\t\tclass=\"cds--progress-bar__status-icon\">\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\t*ngIf=\"isError\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tcdsIcon=\"error--filled\"\n\t\t\t\tclass=\"cds--progress-bar__status-icon\">\n\t\t\t</svg>\n\t\t</div>\n\t\t<div\n\t\t\tclass=\"cds--progress-bar__track\"\n\t\t\trole=\"progressbar\"\n\t\t\t[attr.aria-busy]=\"!isFinished\"\n\t\t\t[attr.aria-invalid]=\"isError\"\n\t\t\t[attr.aria-labelledby]=\"id\"\n\t\t\t[attr.aria-describedby]=\"helperText ? helperId : null\"\n\t\t\t[attr.aria-valuemin]=\"!indeterminate ? 0 : null\"\n\t\t\t[attr.aria-valuemax]=\"!indeterminate ? max : null\"\n\t\t\t[attr.aria-valuenow]=\"!indeterminate ? value : null\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--progress-bar__bar\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'transform': !isFinished && !isError ? percentage : null\n\t\t\t\t}\">\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\t[id]=\"helperId\"\n\t\t\t*ngIf=\"helperText\"\n\t\t\tclass=\"cds--progress-bar__helper-text\">\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})\nexport class ProgressBar {\n\t/**\n\t * Current value\n\t */\n\t@Input() set value(num: number | undefined) {\n\t\tthis._value = num;\n\t\t// Validate number\n\t\tif (num > this.max) {\n\t\t\tthis._value = this.max;\n\t\t}\n\t\tif (num < 0) {\n\t\t\tthis._value = 0;\n\t\t}\n\t\t// Set values based on current state\n\t\tif (this.isError) {\n\t\t\tthis._value = 0;\n\t\t} else if (this.isFinished) {\n\t\t\tthis._value = this.max;\n\t\t}\n\t}\n\n\tget value() {\n\t\treturn this._value;\n\t}\n\n\tget percentage() {\n\t\treturn `scaleX(${this.value / this.max})`;\n\t}\n\t// Size\n\t@HostBinding(\"class.cds--progress-bar--big\") get bigBar() {\n\t\treturn this.size === \"big\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--small\") get smallBar() {\n\t\treturn this.size === \"small\";\n\t}\n\t// Type\n\t@HostBinding(\"class.cds--progress-bar--default\") get defaultType() {\n\t\treturn this.type === \"default\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--indented\") get indentedType() {\n\t\treturn this.type === \"indented\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--inline\") get inlineType() {\n\t\treturn this.type === \"inline\";\n\t}\n\t// Status\n\t@HostBinding(\"class.cds--progress-bar--finished\") get isFinished() {\n\t\treturn this.status === \"finished\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--error\") get isError() {\n\t\treturn this.status === \"error\";\n\t}\n\t@HostBinding(\"class.cds--progress-bar--indeterminate\") get indeterminate() {\n\t\treturn this.value === undefined && !this.isFinished && !this.isError;\n\t}\n\tstatic progressBarCounter = 0;\n\n\t@Input() id = `progress-bar-${ProgressBar.progressBarCounter++}`;\n\thelperId = `progress-bar-helper-${ProgressBar.progressBarCounter}`;\n\t/**\n\t * Description of the progress bar\n\t */\n\t@Input() label: string | TemplateRef<any>;\n\t/**\n\t * Current progress textual representation\n\t */\n\t@Input() helperText: string | TemplateRef<any>;\n\t/**\n\t * Maximum value\n\t */\n\t@Input() max = 100;\n\t/**\n\t * Alignment variant of the progress bar, default is `default`\n\t */\n\t@Input() type: \"default\" | \"inline\" | \"indented\" = \"default\";\n\t/**\n\t * Current status of the progress bar, default is `active`\n\t */\n\t@Input() status: \"active\" | \"finished\" | \"error\" = \"active\";\n\t/**\n\t * Size of the progress bar, default is `big`\n\t */\n\t@Input() size: \"small\" | \"big\" = \"big\";\n\n\t/**\n\t * Set to `true` to visually hide the label while keeping it available to assistive technologies.\n\t */\n\t@Input() hideLabel = false;\n\n\t@HostBinding(\"class.cds--progress-bar\") defaultClass = true;\n\tprivate _value = undefined;\n\n\tisTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n}\n",
|
|
48082
48459
|
"assetsDirs": [],
|
|
48083
48460
|
"styleUrlsData": "",
|
|
48084
48461
|
"stylesData": "",
|
|
@@ -48100,7 +48477,7 @@
|
|
|
48100
48477
|
}
|
|
48101
48478
|
],
|
|
48102
48479
|
"returnType": "void",
|
|
48103
|
-
"line":
|
|
48480
|
+
"line": 72,
|
|
48104
48481
|
"rawdescription": "\n\nCurrent value\n",
|
|
48105
48482
|
"description": "<p>Current value</p>\n",
|
|
48106
48483
|
"jsdoctags": [
|
|
@@ -48119,7 +48496,7 @@
|
|
|
48119
48496
|
"name": "value",
|
|
48120
48497
|
"type": "",
|
|
48121
48498
|
"returnType": "",
|
|
48122
|
-
"line":
|
|
48499
|
+
"line": 89
|
|
48123
48500
|
}
|
|
48124
48501
|
},
|
|
48125
48502
|
"percentage": {
|
|
@@ -48128,7 +48505,7 @@
|
|
|
48128
48505
|
"name": "percentage",
|
|
48129
48506
|
"type": "",
|
|
48130
48507
|
"returnType": "",
|
|
48131
|
-
"line":
|
|
48508
|
+
"line": 93
|
|
48132
48509
|
}
|
|
48133
48510
|
},
|
|
48134
48511
|
"bigBar": {
|
|
@@ -48137,7 +48514,7 @@
|
|
|
48137
48514
|
"name": "bigBar",
|
|
48138
48515
|
"type": "",
|
|
48139
48516
|
"returnType": "",
|
|
48140
|
-
"line":
|
|
48517
|
+
"line": 97
|
|
48141
48518
|
}
|
|
48142
48519
|
},
|
|
48143
48520
|
"smallBar": {
|
|
@@ -48146,7 +48523,7 @@
|
|
|
48146
48523
|
"name": "smallBar",
|
|
48147
48524
|
"type": "",
|
|
48148
48525
|
"returnType": "",
|
|
48149
|
-
"line":
|
|
48526
|
+
"line": 100
|
|
48150
48527
|
}
|
|
48151
48528
|
},
|
|
48152
48529
|
"defaultType": {
|
|
@@ -48155,7 +48532,7 @@
|
|
|
48155
48532
|
"name": "defaultType",
|
|
48156
48533
|
"type": "",
|
|
48157
48534
|
"returnType": "",
|
|
48158
|
-
"line":
|
|
48535
|
+
"line": 104
|
|
48159
48536
|
}
|
|
48160
48537
|
},
|
|
48161
48538
|
"indentedType": {
|
|
@@ -48164,7 +48541,7 @@
|
|
|
48164
48541
|
"name": "indentedType",
|
|
48165
48542
|
"type": "",
|
|
48166
48543
|
"returnType": "",
|
|
48167
|
-
"line":
|
|
48544
|
+
"line": 107
|
|
48168
48545
|
}
|
|
48169
48546
|
},
|
|
48170
48547
|
"inlineType": {
|
|
@@ -48173,7 +48550,7 @@
|
|
|
48173
48550
|
"name": "inlineType",
|
|
48174
48551
|
"type": "",
|
|
48175
48552
|
"returnType": "",
|
|
48176
|
-
"line":
|
|
48553
|
+
"line": 110
|
|
48177
48554
|
}
|
|
48178
48555
|
},
|
|
48179
48556
|
"isFinished": {
|
|
@@ -48182,7 +48559,7 @@
|
|
|
48182
48559
|
"name": "isFinished",
|
|
48183
48560
|
"type": "",
|
|
48184
48561
|
"returnType": "",
|
|
48185
|
-
"line":
|
|
48562
|
+
"line": 114
|
|
48186
48563
|
}
|
|
48187
48564
|
},
|
|
48188
48565
|
"isError": {
|
|
@@ -48191,7 +48568,7 @@
|
|
|
48191
48568
|
"name": "isError",
|
|
48192
48569
|
"type": "",
|
|
48193
48570
|
"returnType": "",
|
|
48194
|
-
"line":
|
|
48571
|
+
"line": 117
|
|
48195
48572
|
}
|
|
48196
48573
|
},
|
|
48197
48574
|
"indeterminate": {
|
|
@@ -48200,7 +48577,7 @@
|
|
|
48200
48577
|
"name": "indeterminate",
|
|
48201
48578
|
"type": "",
|
|
48202
48579
|
"returnType": "",
|
|
48203
|
-
"line":
|
|
48580
|
+
"line": 120
|
|
48204
48581
|
}
|
|
48205
48582
|
}
|
|
48206
48583
|
}
|
|
@@ -74421,7 +74798,7 @@
|
|
|
74421
74798
|
},
|
|
74422
74799
|
{
|
|
74423
74800
|
"name": "TreeViewComponent",
|
|
74424
|
-
"id": "component-TreeViewComponent-
|
|
74801
|
+
"id": "component-TreeViewComponent-9a5e136c8a0cb3ca2c98b08eda50b7b4ac0f3eca9d3cf4b43a01ffee945dd51bc7c7cd607460e9dabf78e2028cfeb11ffb8ed9e80fc6e3d193394cc2dc9247cd",
|
|
74425
74802
|
"file": "src/treeview/treeview.component.ts",
|
|
74426
74803
|
"encapsulation": [],
|
|
74427
74804
|
"entryComponents": [],
|
|
@@ -74436,17 +74813,28 @@
|
|
|
74436
74813
|
"selector": "cds-tree-view",
|
|
74437
74814
|
"styleUrls": [],
|
|
74438
74815
|
"styles": [],
|
|
74439
|
-
"template": "<label\n\t*ngIf=\"label\"\n\t[id]=\"id\"\n\tclass=\"cds--label\">\n\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t<ng-template\n\t\t*ngIf=\"isTemplate(label)\"\n\t\t[ngTemplateOutlet]=\"label\"\n\t\t[ngTemplateOutletContext]=\"{ $implicit: labelContext }\">\n\t</ng-template>\n</label>\n<div\n\tclass=\"cds--tree\"\n\t[ngClass]=\"{\n\t\t'cds--tree--sm': size === 'sm',\n\t\t'cds--tree--xs': size === 'xs'\n\t}\"\n\t[attr.aria-label]=\"label ? label : null\"\n\t[attr.aria-labelledby]=\"!label ? id : null\"\n\t[attr.aria-multiselectable]=\"isMultiSelect || null\"\n\trole=\"tree\"\n\t(keydown)=\"navigateTree($event)\"\n\t#treeWrapper>\n\t<ng-container *ngIf=\"isProjected(); else notProjected\">\n\t\t<ng-content></ng-content>\n\t</ng-container>\n\t<ng-template #notProjected>\n\t\t<cds-tree-node\n\t\t\t*ngFor=\"let node of tree\"\n\t\t\t[node]=\"node\"\n\t\t\t(nodetoggle)=\"onNodeToggle($event)\">\n\t\t</cds-tree-node>\n\t</ng-template>\n</div>\n\t",
|
|
74816
|
+
"template": "<label\n\t*ngIf=\"label\"\n\t[id]=\"id\"\n\tclass=\"cds--label\"\n\t[ngClass]=\"{'cds--visually-hidden': hideLabel}\">\n\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t<ng-template\n\t\t*ngIf=\"isTemplate(label)\"\n\t\t[ngTemplateOutlet]=\"label\"\n\t\t[ngTemplateOutletContext]=\"{ $implicit: labelContext }\">\n\t</ng-template>\n</label>\n<div\n\tclass=\"cds--tree\"\n\t[ngClass]=\"{\n\t\t'cds--tree--sm': size === 'sm',\n\t\t'cds--tree--xs': size === 'xs'\n\t}\"\n\t[attr.aria-label]=\"label ? label : null\"\n\t[attr.aria-labelledby]=\"!label ? id : null\"\n\t[attr.aria-multiselectable]=\"isMultiSelect || null\"\n\trole=\"tree\"\n\t(keydown)=\"navigateTree($event)\"\n\t#treeWrapper>\n\t<ng-container *ngIf=\"isProjected(); else notProjected\">\n\t\t<ng-content></ng-content>\n\t</ng-container>\n\t<ng-template #notProjected>\n\t\t<cds-tree-node\n\t\t\t*ngFor=\"let node of tree\"\n\t\t\t[node]=\"node\"\n\t\t\t(nodetoggle)=\"onNodeToggle($event)\">\n\t\t</cds-tree-node>\n\t</ng-template>\n</div>\n\t",
|
|
74440
74817
|
"templateUrl": [],
|
|
74441
74818
|
"viewProviders": [],
|
|
74442
74819
|
"hostDirectives": [],
|
|
74443
74820
|
"inputsClass": [
|
|
74821
|
+
{
|
|
74822
|
+
"name": "hideLabel",
|
|
74823
|
+
"defaultValue": "false",
|
|
74824
|
+
"deprecated": false,
|
|
74825
|
+
"deprecationMessage": "",
|
|
74826
|
+
"rawdescription": "\n\nSet to `true` to visually hide the label while keeping it available to assistive technologies.\n",
|
|
74827
|
+
"description": "<p>Set to <code>true</code> to visually hide the label while keeping it available to assistive technologies.</p>\n",
|
|
74828
|
+
"line": 94,
|
|
74829
|
+
"type": "boolean",
|
|
74830
|
+
"decorators": []
|
|
74831
|
+
},
|
|
74444
74832
|
{
|
|
74445
74833
|
"name": "id",
|
|
74446
74834
|
"defaultValue": "`tree-view-${TreeViewComponent.treeViewCount++}`",
|
|
74447
74835
|
"deprecated": false,
|
|
74448
74836
|
"deprecationMessage": "",
|
|
74449
|
-
"line":
|
|
74837
|
+
"line": 85,
|
|
74450
74838
|
"type": "string",
|
|
74451
74839
|
"decorators": []
|
|
74452
74840
|
},
|
|
@@ -74456,7 +74844,7 @@
|
|
|
74456
74844
|
"deprecationMessage": "",
|
|
74457
74845
|
"rawdescription": "\n\n**Experimental** - Enable to select multiple nodes\n",
|
|
74458
74846
|
"description": "<p><strong>Experimental</strong> - Enable to select multiple nodes</p>\n",
|
|
74459
|
-
"line":
|
|
74847
|
+
"line": 106,
|
|
74460
74848
|
"type": "boolean",
|
|
74461
74849
|
"decorators": []
|
|
74462
74850
|
},
|
|
@@ -74466,7 +74854,7 @@
|
|
|
74466
74854
|
"deprecationMessage": "",
|
|
74467
74855
|
"rawdescription": "\n\nTree view label\n",
|
|
74468
74856
|
"description": "<p>Tree view label</p>\n",
|
|
74469
|
-
"line":
|
|
74857
|
+
"line": 89,
|
|
74470
74858
|
"type": "string | TemplateRef<any>",
|
|
74471
74859
|
"decorators": []
|
|
74472
74860
|
},
|
|
@@ -74476,7 +74864,7 @@
|
|
|
74476
74864
|
"deprecationMessage": "",
|
|
74477
74865
|
"rawdescription": "\n\nOptional context for label if it's a template\n",
|
|
74478
74866
|
"description": "<p>Optional context for label if it's a template</p>\n",
|
|
74479
|
-
"line":
|
|
74867
|
+
"line": 98,
|
|
74480
74868
|
"type": "any",
|
|
74481
74869
|
"decorators": []
|
|
74482
74870
|
},
|
|
@@ -74487,7 +74875,7 @@
|
|
|
74487
74875
|
"deprecationMessage": "",
|
|
74488
74876
|
"rawdescription": "\n\nSpecify the size of the list items in the tree\n",
|
|
74489
74877
|
"description": "<p>Specify the size of the list items in the tree</p>\n",
|
|
74490
|
-
"line":
|
|
74878
|
+
"line": 102,
|
|
74491
74879
|
"type": "\"xs\" | \"sm\"",
|
|
74492
74880
|
"decorators": []
|
|
74493
74881
|
},
|
|
@@ -74497,7 +74885,7 @@
|
|
|
74497
74885
|
"deprecationMessage": "",
|
|
74498
74886
|
"rawdescription": "\n\nPass `Node[]` array to have tree view render the nodes\nPassing value will disregard projected content\n",
|
|
74499
74887
|
"description": "<p>Pass <code>Node[]</code> array to have tree view render the nodes\nPassing value will disregard projected content</p>\n",
|
|
74500
|
-
"line":
|
|
74888
|
+
"line": 74,
|
|
74501
74889
|
"type": "Node[]",
|
|
74502
74890
|
"decorators": []
|
|
74503
74891
|
}
|
|
@@ -74508,7 +74896,7 @@
|
|
|
74508
74896
|
"defaultValue": "new EventEmitter<Node | Node[]>()",
|
|
74509
74897
|
"deprecated": false,
|
|
74510
74898
|
"deprecationMessage": "",
|
|
74511
|
-
"line":
|
|
74899
|
+
"line": 110,
|
|
74512
74900
|
"type": "EventEmitter"
|
|
74513
74901
|
},
|
|
74514
74902
|
{
|
|
@@ -74516,7 +74904,7 @@
|
|
|
74516
74904
|
"defaultValue": "new EventEmitter<Node>()",
|
|
74517
74905
|
"deprecated": false,
|
|
74518
74906
|
"deprecationMessage": "",
|
|
74519
|
-
"line":
|
|
74907
|
+
"line": 111,
|
|
74520
74908
|
"type": "EventEmitter"
|
|
74521
74909
|
}
|
|
74522
74910
|
],
|
|
@@ -74528,7 +74916,7 @@
|
|
|
74528
74916
|
"type": "ElementRef",
|
|
74529
74917
|
"optional": false,
|
|
74530
74918
|
"description": "",
|
|
74531
|
-
"line":
|
|
74919
|
+
"line": 112,
|
|
74532
74920
|
"decorators": [
|
|
74533
74921
|
{
|
|
74534
74922
|
"name": "ViewChild",
|
|
@@ -74547,7 +74935,7 @@
|
|
|
74547
74935
|
"type": "number",
|
|
74548
74936
|
"optional": false,
|
|
74549
74937
|
"description": "",
|
|
74550
|
-
"line":
|
|
74938
|
+
"line": 83,
|
|
74551
74939
|
"modifierKind": [
|
|
74552
74940
|
126
|
|
74553
74941
|
]
|
|
@@ -74559,7 +74947,7 @@
|
|
|
74559
74947
|
"type": "TreeViewService",
|
|
74560
74948
|
"optional": false,
|
|
74561
74949
|
"description": "",
|
|
74562
|
-
"line":
|
|
74950
|
+
"line": 120,
|
|
74563
74951
|
"modifierKind": [
|
|
74564
74952
|
125
|
|
74565
74953
|
]
|
|
@@ -74572,7 +74960,7 @@
|
|
|
74572
74960
|
"optional": false,
|
|
74573
74961
|
"returnType": "any",
|
|
74574
74962
|
"typeParameters": [],
|
|
74575
|
-
"line":
|
|
74963
|
+
"line": 201,
|
|
74576
74964
|
"deprecated": false,
|
|
74577
74965
|
"deprecationMessage": "",
|
|
74578
74966
|
"modifierKind": [
|
|
@@ -74592,7 +74980,7 @@
|
|
|
74592
74980
|
"optional": false,
|
|
74593
74981
|
"returnType": "boolean",
|
|
74594
74982
|
"typeParameters": [],
|
|
74595
|
-
"line":
|
|
74983
|
+
"line": 197,
|
|
74596
74984
|
"deprecated": false,
|
|
74597
74985
|
"deprecationMessage": "",
|
|
74598
74986
|
"modifierKind": [
|
|
@@ -74623,7 +75011,7 @@
|
|
|
74623
75011
|
"optional": false,
|
|
74624
75012
|
"returnType": "void",
|
|
74625
75013
|
"typeParameters": [],
|
|
74626
|
-
"line":
|
|
75014
|
+
"line": 162,
|
|
74627
75015
|
"deprecated": false,
|
|
74628
75016
|
"deprecationMessage": "",
|
|
74629
75017
|
"rawdescription": "\n\nNavigate tree using tree walker\n",
|
|
@@ -74631,8 +75019,8 @@
|
|
|
74631
75019
|
"jsdoctags": [
|
|
74632
75020
|
{
|
|
74633
75021
|
"name": {
|
|
74634
|
-
"pos":
|
|
74635
|
-
"end":
|
|
75022
|
+
"pos": 4130,
|
|
75023
|
+
"end": 4135,
|
|
74636
75024
|
"flags": 16842752,
|
|
74637
75025
|
"modifierFlagsCache": 0,
|
|
74638
75026
|
"transformFlags": 0,
|
|
@@ -74643,8 +75031,8 @@
|
|
|
74643
75031
|
"deprecated": false,
|
|
74644
75032
|
"deprecationMessage": "",
|
|
74645
75033
|
"tagName": {
|
|
74646
|
-
"pos":
|
|
74647
|
-
"end":
|
|
75034
|
+
"pos": 4124,
|
|
75035
|
+
"end": 4129,
|
|
74648
75036
|
"flags": 16842752,
|
|
74649
75037
|
"modifierFlagsCache": 0,
|
|
74650
75038
|
"transformFlags": 0,
|
|
@@ -74668,7 +75056,7 @@
|
|
|
74668
75056
|
"optional": false,
|
|
74669
75057
|
"returnType": "void",
|
|
74670
75058
|
"typeParameters": [],
|
|
74671
|
-
"line":
|
|
75059
|
+
"line": 187,
|
|
74672
75060
|
"deprecated": false,
|
|
74673
75061
|
"deprecationMessage": "",
|
|
74674
75062
|
"rawdescription": "\n\nNode focus change\n",
|
|
@@ -74676,8 +75064,8 @@
|
|
|
74676
75064
|
"jsdoctags": [
|
|
74677
75065
|
{
|
|
74678
75066
|
"name": {
|
|
74679
|
-
"pos":
|
|
74680
|
-
"end":
|
|
75067
|
+
"pos": 4632,
|
|
75068
|
+
"end": 4636,
|
|
74681
75069
|
"flags": 16842752,
|
|
74682
75070
|
"modifierFlagsCache": 0,
|
|
74683
75071
|
"transformFlags": 0,
|
|
@@ -74688,8 +75076,8 @@
|
|
|
74688
75076
|
"deprecated": false,
|
|
74689
75077
|
"deprecationMessage": "",
|
|
74690
75078
|
"tagName": {
|
|
74691
|
-
"pos":
|
|
74692
|
-
"end":
|
|
75079
|
+
"pos": 4626,
|
|
75080
|
+
"end": 4631,
|
|
74693
75081
|
"flags": 16842752,
|
|
74694
75082
|
"modifierFlagsCache": 0,
|
|
74695
75083
|
"transformFlags": 0,
|
|
@@ -74713,7 +75101,7 @@
|
|
|
74713
75101
|
"optional": false,
|
|
74714
75102
|
"returnType": "void",
|
|
74715
75103
|
"typeParameters": [],
|
|
74716
|
-
"line":
|
|
75104
|
+
"line": 176,
|
|
74717
75105
|
"deprecated": false,
|
|
74718
75106
|
"deprecationMessage": "",
|
|
74719
75107
|
"rawdescription": "\n\nPropagate node toggle event\n",
|
|
@@ -74721,8 +75109,8 @@
|
|
|
74721
75109
|
"jsdoctags": [
|
|
74722
75110
|
{
|
|
74723
75111
|
"name": {
|
|
74724
|
-
"pos":
|
|
74725
|
-
"end":
|
|
75112
|
+
"pos": 4442,
|
|
75113
|
+
"end": 4453,
|
|
74726
75114
|
"flags": 16842752,
|
|
74727
75115
|
"modifierFlagsCache": 0,
|
|
74728
75116
|
"transformFlags": 0,
|
|
@@ -74733,8 +75121,8 @@
|
|
|
74733
75121
|
"deprecated": false,
|
|
74734
75122
|
"deprecationMessage": "",
|
|
74735
75123
|
"tagName": {
|
|
74736
|
-
"pos":
|
|
74737
|
-
"end":
|
|
75124
|
+
"pos": 4436,
|
|
75125
|
+
"end": 4441,
|
|
74738
75126
|
"flags": 16842752,
|
|
74739
75127
|
"modifierFlagsCache": 0,
|
|
74740
75128
|
"transformFlags": 0,
|
|
@@ -74755,7 +75143,7 @@
|
|
|
74755
75143
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { TreeviewModule } from 'carbon-components-angular';</code></pre></div><p><a href=\"../../?path=/story/components-tree-view--basic\">See demo</a></p>\n",
|
|
74756
75144
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { TreeviewModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-tree-view--basic)\n",
|
|
74757
75145
|
"type": "component",
|
|
74758
|
-
"sourceCode": "import { DOCUMENT } from \"@angular/common\";\nimport {\n\tComponent,\n\tInput,\n\tOutput,\n\tTemplateRef,\n\tEventEmitter,\n\tAfterViewInit,\n\tInject,\n\tViewChild,\n\tElementRef,\n\tOnInit,\n\tOnDestroy\n} from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\nimport { EventOnNode, Node } from \"./tree-node.types\";\nimport { TreeViewService } from \"./treeview.service\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { TreeviewModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-tree-view--basic)\n */\n@Component({\n\tselector: \"cds-tree-view\",\n\ttemplate: `\n\t\t<label\n\t\t\t*ngIf=\"label\"\n\t\t\t[id]=\"id\"\n\t\t\tclass=\"cds--label\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"isTemplate(label)\"\n\t\t\t\t[ngTemplateOutlet]=\"label\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: labelContext }\">\n\t\t\t</ng-template>\n\t\t</label>\n\t\t<div\n\t\t\tclass=\"cds--tree\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--tree--sm': size === 'sm',\n\t\t\t\t'cds--tree--xs': size === 'xs'\n\t\t\t}\"\n\t\t\t[attr.aria-label]=\"label ? label : null\"\n\t\t\t[attr.aria-labelledby]=\"!label ? id : null\"\n\t\t\t[attr.aria-multiselectable]=\"isMultiSelect || null\"\n\t\t\trole=\"tree\"\n\t\t\t(keydown)=\"navigateTree($event)\"\n\t\t\t#treeWrapper>\n\t\t\t<ng-container *ngIf=\"isProjected(); else notProjected\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</ng-container>\n\t\t\t<ng-template #notProjected>\n\t\t\t\t<cds-tree-node\n\t\t\t\t\t*ngFor=\"let node of tree\"\n\t\t\t\t\t[node]=\"node\"\n\t\t\t\t\t(nodetoggle)=\"onNodeToggle($event)\">\n\t\t\t\t</cds-tree-node>\n\t\t\t</ng-template>\n\t\t</div>\n\t`,\n\tproviders: [TreeViewService]\n})\nexport class TreeViewComponent implements AfterViewInit, OnInit, OnDestroy {\n\t/**\n\t * Pass `Node[]` array to have tree view render the nodes\n\t * Passing value will disregard projected content\n\t */\n\t@Input() set tree(treeNodes: Node[]) {\n\t\tthis._tree = treeNodes.map((node) => this.copyNode(node));\n\t\tthis.treeViewService.contentProjected = false;\n\t}\n\n\tget tree() {\n\t\treturn this._tree;\n\t}\n\n\tstatic treeViewCount = 0;\n\n\t@Input() id = `tree-view-${TreeViewComponent.treeViewCount++}`;\n\t/**\n\t * Tree view label\n\t */\n\t@Input() label: string | TemplateRef<any>;\n\t/**\n\t * Optional context for label if it's a template\n\t */\n\t@Input() labelContext: any;\n\t/**\n\t * Specify the size of the list items in the tree\n\t */\n\t@Input() size: \"xs\" | \"sm\" = \"sm\";\n\t/**\n\t * **Experimental** - Enable to select multiple nodes\n\t */\n\t@Input() set isMultiSelect(isMulti: boolean) {\n\t\tthis.treeViewService.isMultiSelect = isMulti;\n\t}\n\n\t@Output() select = new EventEmitter<Node | Node[]>();\n\t@Output() toggle = new EventEmitter<Node>();\n\t@ViewChild(\"treeWrapper\") root: ElementRef;\n\n\tprivate treeWalker: TreeWalker;\n\tprivate _tree: Node[] = [];\n\tprivate subscription: Subscription;\n\n\tconstructor(\n\t\t@Inject(DOCUMENT) private document: Document,\n\t\tpublic treeViewService: TreeViewService,\n\t\tprivate elementRef: ElementRef\n\t) {}\n\n\t/**\n\t * Subscribe for node selection\n\t */\n\tngOnInit(): void {\n\t\tthis.subscription = this.treeViewService.selectionObservable.subscribe((nodesMap: Map<string, Node>) => {\n\t\t\t// Get all values from the map to emit\n\t\t\tconst nodes = [...nodesMap.values()];\n\n\t\t\tthis.select.emit(this.treeViewService.isMultiSelect ? nodes : nodes[0]);\n\t\t});\n\t\tthis.subscription.add(this.treeViewService.focusNodeObservable.subscribe(node => this.onNodeFocusChange(node)));\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.subscription.unsubscribe();\n\t}\n\n\t/**\n\t * Initialize tree walker to support keyboard navigation\n\t */\n\tngAfterViewInit(): void {\n\t\tthis.treeWalker = this.document.createTreeWalker(this.root.nativeElement, NodeFilter.SHOW_ELEMENT, {\n\t\t\tacceptNode: function (node: HTMLElement) {\n\t\t\t\tif (node.classList.contains(`cds--tree-node--disabled`)) {\n\t\t\t\t\treturn NodeFilter.FILTER_REJECT;\n\t\t\t\t}\n\t\t\t\tif (node.matches(`div.cds--tree-node`)) {\n\t\t\t\t\treturn NodeFilter.FILTER_ACCEPT;\n\t\t\t\t}\n\t\t\t\treturn NodeFilter.FILTER_SKIP;\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Navigate tree using tree walker\n\t * @param event - KeyboardEvent\n\t */\n\tnavigateTree(event: KeyboardEvent) {\n\t\tif (event.key === \"ArrowUp\") {\n\t\t\t(this.treeWalker.previousNode() as HTMLElement)?.focus();\n\t\t}\n\n\t\tif (event.key === \"ArrowDown\") {\n\t\t\t(this.treeWalker.nextNode() as HTMLElement)?.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Propagate node toggle event\n\t * @param eventOnNode - EventOnNode\n\t */\n\tonNodeToggle(eventOnNode: EventOnNode) {\n\t\tif (!eventOnNode) {\n\t\t\treturn;\n\t\t}\n\t\tthis.toggle.emit(eventOnNode.node);\n\t}\n\n\t/**\n\t * Node focus change\n\t * @param node - Node\n\t */\n\tonNodeFocusChange(node: Node) {\n\t\tif (!node) {\n\t\t\t// if for some reason the focused node is not defined we fallback on the root element of the treeview\n\t\t\tthis.treeWalker.currentNode = this.treeWalker.root;\n\t\t\treturn;\n\t\t}\n\t\t// Update current node based on focus change to have a better keyboard navigation experience\n\t\tthis.treeWalker.currentNode = this.elementRef.nativeElement.querySelector(`#${CSS.escape(node.id)}`);\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\tpublic isProjected() {\n\t\treturn this.treeViewService.contentProjected;\n\t}\n\n\tprivate copyNode(node: Node): Node {\n\t\t// making a recursive shallow copy to avoid performance issues when deeply cloning templateRefs if defined in the node\n\t\tconst copiedNode = Object.assign({}, node);\n\t\tif (node.children) {\n\t\t\tcopiedNode.children = node.children.map(child => this.copyNode(child));\n\t\t}\n\t\treturn copiedNode;\n\t}\n}\n",
|
|
75146
|
+
"sourceCode": "import { DOCUMENT } from \"@angular/common\";\nimport {\n\tComponent,\n\tInput,\n\tOutput,\n\tTemplateRef,\n\tEventEmitter,\n\tAfterViewInit,\n\tInject,\n\tViewChild,\n\tElementRef,\n\tOnInit,\n\tOnDestroy\n} from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\nimport { EventOnNode, Node } from \"./tree-node.types\";\nimport { TreeViewService } from \"./treeview.service\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { TreeviewModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-tree-view--basic)\n */\n@Component({\n\tselector: \"cds-tree-view\",\n\ttemplate: `\n\t\t<label\n\t\t\t*ngIf=\"label\"\n\t\t\t[id]=\"id\"\n\t\t\tclass=\"cds--label\"\n\t\t\t[ngClass]=\"{'cds--visually-hidden': hideLabel}\">\n\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t<ng-template\n\t\t\t\t*ngIf=\"isTemplate(label)\"\n\t\t\t\t[ngTemplateOutlet]=\"label\"\n\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: labelContext }\">\n\t\t\t</ng-template>\n\t\t</label>\n\t\t<div\n\t\t\tclass=\"cds--tree\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--tree--sm': size === 'sm',\n\t\t\t\t'cds--tree--xs': size === 'xs'\n\t\t\t}\"\n\t\t\t[attr.aria-label]=\"label ? label : null\"\n\t\t\t[attr.aria-labelledby]=\"!label ? id : null\"\n\t\t\t[attr.aria-multiselectable]=\"isMultiSelect || null\"\n\t\t\trole=\"tree\"\n\t\t\t(keydown)=\"navigateTree($event)\"\n\t\t\t#treeWrapper>\n\t\t\t<ng-container *ngIf=\"isProjected(); else notProjected\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</ng-container>\n\t\t\t<ng-template #notProjected>\n\t\t\t\t<cds-tree-node\n\t\t\t\t\t*ngFor=\"let node of tree\"\n\t\t\t\t\t[node]=\"node\"\n\t\t\t\t\t(nodetoggle)=\"onNodeToggle($event)\">\n\t\t\t\t</cds-tree-node>\n\t\t\t</ng-template>\n\t\t</div>\n\t`,\n\tproviders: [TreeViewService]\n})\nexport class TreeViewComponent implements AfterViewInit, OnInit, OnDestroy {\n\t/**\n\t * Pass `Node[]` array to have tree view render the nodes\n\t * Passing value will disregard projected content\n\t */\n\t@Input() set tree(treeNodes: Node[]) {\n\t\tthis._tree = treeNodes.map((node) => this.copyNode(node));\n\t\tthis.treeViewService.contentProjected = false;\n\t}\n\n\tget tree() {\n\t\treturn this._tree;\n\t}\n\n\tstatic treeViewCount = 0;\n\n\t@Input() id = `tree-view-${TreeViewComponent.treeViewCount++}`;\n\t/**\n\t * Tree view label\n\t */\n\t@Input() label: string | TemplateRef<any>;\n\n\t/**\n\t * Set to `true` to visually hide the label while keeping it available to assistive technologies.\n\t */\n\t@Input() hideLabel = false;\n\t/**\n\t * Optional context for label if it's a template\n\t */\n\t@Input() labelContext: any;\n\t/**\n\t * Specify the size of the list items in the tree\n\t */\n\t@Input() size: \"xs\" | \"sm\" = \"sm\";\n\t/**\n\t * **Experimental** - Enable to select multiple nodes\n\t */\n\t@Input() set isMultiSelect(isMulti: boolean) {\n\t\tthis.treeViewService.isMultiSelect = isMulti;\n\t}\n\n\t@Output() select = new EventEmitter<Node | Node[]>();\n\t@Output() toggle = new EventEmitter<Node>();\n\t@ViewChild(\"treeWrapper\") root: ElementRef;\n\n\tprivate treeWalker: TreeWalker;\n\tprivate _tree: Node[] = [];\n\tprivate subscription: Subscription;\n\n\tconstructor(\n\t\t@Inject(DOCUMENT) private document: Document,\n\t\tpublic treeViewService: TreeViewService,\n\t\tprivate elementRef: ElementRef\n\t) {}\n\n\t/**\n\t * Subscribe for node selection\n\t */\n\tngOnInit(): void {\n\t\tthis.subscription = this.treeViewService.selectionObservable.subscribe((nodesMap: Map<string, Node>) => {\n\t\t\t// Get all values from the map to emit\n\t\t\tconst nodes = [...nodesMap.values()];\n\n\t\t\tthis.select.emit(this.treeViewService.isMultiSelect ? nodes : nodes[0]);\n\t\t});\n\t\tthis.subscription.add(this.treeViewService.focusNodeObservable.subscribe(node => this.onNodeFocusChange(node)));\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.subscription.unsubscribe();\n\t}\n\n\t/**\n\t * Initialize tree walker to support keyboard navigation\n\t */\n\tngAfterViewInit(): void {\n\t\tthis.treeWalker = this.document.createTreeWalker(this.root.nativeElement, NodeFilter.SHOW_ELEMENT, {\n\t\t\tacceptNode: function (node: HTMLElement) {\n\t\t\t\tif (node.classList.contains(`cds--tree-node--disabled`)) {\n\t\t\t\t\treturn NodeFilter.FILTER_REJECT;\n\t\t\t\t}\n\t\t\t\tif (node.matches(`div.cds--tree-node`)) {\n\t\t\t\t\treturn NodeFilter.FILTER_ACCEPT;\n\t\t\t\t}\n\t\t\t\treturn NodeFilter.FILTER_SKIP;\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Navigate tree using tree walker\n\t * @param event - KeyboardEvent\n\t */\n\tnavigateTree(event: KeyboardEvent) {\n\t\tif (event.key === \"ArrowUp\") {\n\t\t\t(this.treeWalker.previousNode() as HTMLElement)?.focus();\n\t\t}\n\n\t\tif (event.key === \"ArrowDown\") {\n\t\t\t(this.treeWalker.nextNode() as HTMLElement)?.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Propagate node toggle event\n\t * @param eventOnNode - EventOnNode\n\t */\n\tonNodeToggle(eventOnNode: EventOnNode) {\n\t\tif (!eventOnNode) {\n\t\t\treturn;\n\t\t}\n\t\tthis.toggle.emit(eventOnNode.node);\n\t}\n\n\t/**\n\t * Node focus change\n\t * @param node - Node\n\t */\n\tonNodeFocusChange(node: Node) {\n\t\tif (!node) {\n\t\t\t// if for some reason the focused node is not defined we fallback on the root element of the treeview\n\t\t\tthis.treeWalker.currentNode = this.treeWalker.root;\n\t\t\treturn;\n\t\t}\n\t\t// Update current node based on focus change to have a better keyboard navigation experience\n\t\tthis.treeWalker.currentNode = this.elementRef.nativeElement.querySelector(`#${CSS.escape(node.id)}`);\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\tpublic isProjected() {\n\t\treturn this.treeViewService.contentProjected;\n\t}\n\n\tprivate copyNode(node: Node): Node {\n\t\t// making a recursive shallow copy to avoid performance issues when deeply cloning templateRefs if defined in the node\n\t\tconst copiedNode = Object.assign({}, node);\n\t\tif (node.children) {\n\t\t\tcopiedNode.children = node.children.map(child => this.copyNode(child));\n\t\t}\n\t\treturn copiedNode;\n\t}\n}\n",
|
|
74759
75147
|
"assetsDirs": [],
|
|
74760
75148
|
"styleUrlsData": "",
|
|
74761
75149
|
"stylesData": "",
|
|
@@ -74784,7 +75172,7 @@
|
|
|
74784
75172
|
"deprecationMessage": ""
|
|
74785
75173
|
}
|
|
74786
75174
|
],
|
|
74787
|
-
"line":
|
|
75175
|
+
"line": 116,
|
|
74788
75176
|
"jsdoctags": [
|
|
74789
75177
|
{
|
|
74790
75178
|
"name": "document",
|
|
@@ -74838,7 +75226,7 @@
|
|
|
74838
75226
|
}
|
|
74839
75227
|
],
|
|
74840
75228
|
"returnType": "void",
|
|
74841
|
-
"line":
|
|
75229
|
+
"line": 74,
|
|
74842
75230
|
"rawdescription": "\n\nPass `Node[]` array to have tree view render the nodes\nPassing value will disregard projected content\n",
|
|
74843
75231
|
"description": "<p>Pass <code>Node[]</code> array to have tree view render the nodes\nPassing value will disregard projected content</p>\n",
|
|
74844
75232
|
"jsdoctags": [
|
|
@@ -74857,7 +75245,7 @@
|
|
|
74857
75245
|
"name": "tree",
|
|
74858
75246
|
"type": "",
|
|
74859
75247
|
"returnType": "",
|
|
74860
|
-
"line":
|
|
75248
|
+
"line": 79
|
|
74861
75249
|
}
|
|
74862
75250
|
},
|
|
74863
75251
|
"isMultiSelect": {
|
|
@@ -74876,7 +75264,7 @@
|
|
|
74876
75264
|
}
|
|
74877
75265
|
],
|
|
74878
75266
|
"returnType": "void",
|
|
74879
|
-
"line":
|
|
75267
|
+
"line": 106,
|
|
74880
75268
|
"rawdescription": "\n\n**Experimental** - Enable to select multiple nodes\n",
|
|
74881
75269
|
"description": "<p><strong>Experimental</strong> - Enable to select multiple nodes</p>\n",
|
|
74882
75270
|
"jsdoctags": [
|
|
@@ -75060,6 +75448,50 @@
|
|
|
75060
75448
|
}
|
|
75061
75449
|
]
|
|
75062
75450
|
},
|
|
75451
|
+
{
|
|
75452
|
+
"name": "AspectRatioModule",
|
|
75453
|
+
"id": "module-AspectRatioModule-d7b8d5fa8ee6716328af68daeaf1394eac89a38b678c47f372b3717ba0233b465901f2101e10b3b872e1a12710fae3b9ebc2b105f96dc81404786892a9ea3f69",
|
|
75454
|
+
"description": "",
|
|
75455
|
+
"deprecationMessage": "",
|
|
75456
|
+
"deprecated": false,
|
|
75457
|
+
"file": "src/aspect-ratio/aspect-ratio.module.ts",
|
|
75458
|
+
"methods": [],
|
|
75459
|
+
"sourceCode": "import { NgModule } from \"@angular/core\";\r\nimport { AspectRatioDirective } from \"./aspect-ratio.directive\";\r\n\r\n@NgModule({\r\n\tdeclarations: [AspectRatioDirective],\r\n\texports: [AspectRatioDirective]\r\n})\r\nexport class AspectRatioModule {}\r\n",
|
|
75460
|
+
"children": [
|
|
75461
|
+
{
|
|
75462
|
+
"type": "providers",
|
|
75463
|
+
"elements": []
|
|
75464
|
+
},
|
|
75465
|
+
{
|
|
75466
|
+
"type": "declarations",
|
|
75467
|
+
"elements": [
|
|
75468
|
+
{
|
|
75469
|
+
"name": "AspectRatioDirective"
|
|
75470
|
+
}
|
|
75471
|
+
]
|
|
75472
|
+
},
|
|
75473
|
+
{
|
|
75474
|
+
"type": "imports",
|
|
75475
|
+
"elements": []
|
|
75476
|
+
},
|
|
75477
|
+
{
|
|
75478
|
+
"type": "exports",
|
|
75479
|
+
"elements": [
|
|
75480
|
+
{
|
|
75481
|
+
"name": "AspectRatioDirective"
|
|
75482
|
+
}
|
|
75483
|
+
]
|
|
75484
|
+
},
|
|
75485
|
+
{
|
|
75486
|
+
"type": "bootstrap",
|
|
75487
|
+
"elements": []
|
|
75488
|
+
},
|
|
75489
|
+
{
|
|
75490
|
+
"type": "classes",
|
|
75491
|
+
"elements": []
|
|
75492
|
+
}
|
|
75493
|
+
]
|
|
75494
|
+
},
|
|
75063
75495
|
{
|
|
75064
75496
|
"name": "BreadcrumbModule",
|
|
75065
75497
|
"id": "module-BreadcrumbModule-136f75a31aee3841f41ff9d7178ab0707770b9ccd9f8f1dfdd28d4408511b05804aa608c25147f19a9b1348293d70435f1bbdc3d25704aacd328b0cc075478c0",
|
|
@@ -79858,7 +80290,7 @@
|
|
|
79858
80290
|
"deprecated": false,
|
|
79859
80291
|
"deprecationMessage": "",
|
|
79860
80292
|
"type": "",
|
|
79861
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb>\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item current=\"true\" href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
80293
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [size]=\"size\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item current=\"true\" href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
79862
80294
|
},
|
|
79863
80295
|
{
|
|
79864
80296
|
"name": "Custom",
|
|
@@ -79990,6 +80422,16 @@
|
|
|
79990
80422
|
"type": "",
|
|
79991
80423
|
"defaultValue": "Template.bind({})"
|
|
79992
80424
|
},
|
|
80425
|
+
{
|
|
80426
|
+
"name": "Default",
|
|
80427
|
+
"ctype": "miscellaneous",
|
|
80428
|
+
"subtype": "variable",
|
|
80429
|
+
"file": "src/aspect-ratio/aspect-ratio.stories.ts",
|
|
80430
|
+
"deprecated": false,
|
|
80431
|
+
"deprecationMessage": "",
|
|
80432
|
+
"type": "",
|
|
80433
|
+
"defaultValue": "Template.bind({})"
|
|
80434
|
+
},
|
|
79993
80435
|
{
|
|
79994
80436
|
"name": "DEFAULT_TOOLTIP_CONFIG",
|
|
79995
80437
|
"ctype": "miscellaneous",
|
|
@@ -80302,6 +80744,16 @@
|
|
|
80302
80744
|
"type": "",
|
|
80303
80745
|
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<!--\n\t\tapp-* components are for demo purposes only.\n\t\tYou can create your own implementation by using the component source found at:\n\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-model-filter-table.component.ts\n\t\t-->\n\t\t<app-model-filter-table\n\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t[striped]=\"striped\"\n\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t</app-model-filter-table>\n\t`\n})"
|
|
80304
80746
|
},
|
|
80747
|
+
{
|
|
80748
|
+
"name": "Fluid",
|
|
80749
|
+
"ctype": "miscellaneous",
|
|
80750
|
+
"subtype": "variable",
|
|
80751
|
+
"file": "src/button/button-set.stories.ts",
|
|
80752
|
+
"deprecated": false,
|
|
80753
|
+
"deprecationMessage": "",
|
|
80754
|
+
"type": "",
|
|
80755
|
+
"defaultValue": "FluidTemplate.bind({})"
|
|
80756
|
+
},
|
|
80305
80757
|
{
|
|
80306
80758
|
"name": "Fluid",
|
|
80307
80759
|
"ctype": "miscellaneous",
|
|
@@ -80382,6 +80834,16 @@
|
|
|
80382
80834
|
"type": "",
|
|
80383
80835
|
"defaultValue": "Template.bind({})"
|
|
80384
80836
|
},
|
|
80837
|
+
{
|
|
80838
|
+
"name": "FluidTemplate",
|
|
80839
|
+
"ctype": "miscellaneous",
|
|
80840
|
+
"subtype": "variable",
|
|
80841
|
+
"file": "src/button/button-set.stories.ts",
|
|
80842
|
+
"deprecated": false,
|
|
80843
|
+
"deprecationMessage": "",
|
|
80844
|
+
"type": "",
|
|
80845
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set [fluid]=\"fluid\" [stacked]=\"stacked\" style=\"width: 800px;\">\n\t\t\t<button cdsButton=\"ghost\" [size]=\"size\">Cancel</button>\n\t\t\t<button cdsButton=\"secondary\" [size]=\"size\">Button</button>\n\t\t\t<button cdsButton>Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
80846
|
+
},
|
|
80385
80847
|
{
|
|
80386
80848
|
"name": "FormModal",
|
|
80387
80849
|
"ctype": "miscellaneous",
|
|
@@ -80630,7 +81092,7 @@
|
|
|
80630
81092
|
"deprecated": false,
|
|
80631
81093
|
"deprecationMessage": "",
|
|
80632
81094
|
"type": "",
|
|
80633
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a\n\t\t\thref=\"#\"\n\t\t\tcdsLink\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[inline]=\"inline\">\n\t\t\tLink\n\t\t\t<svg cdsLinkIcon cdsIcon=\"close\" size=\"16\"></svg>\n\t\t</a>\n\t`\n})"
|
|
81095
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a\n\t\t\thref=\"#\"\n\t\t\tcdsLink\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[size]=\"size\"\n\t\t\t[inline]=\"inline\"\n\t\t\t[visited]=\"visited\">\n\t\t\tLink\n\t\t\t<svg cdsLinkIcon cdsIcon=\"close\" size=\"16\"></svg>\n\t\t</a>\n\t`\n})"
|
|
80634
81096
|
},
|
|
80635
81097
|
{
|
|
80636
81098
|
"name": "Indeterminate",
|
|
@@ -80914,7 +81376,7 @@
|
|
|
80914
81376
|
"deprecated": false,
|
|
80915
81377
|
"deprecationMessage": "",
|
|
80916
81378
|
"type": "",
|
|
80917
|
-
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems\n\t},\n\ttemplate: `\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"createBreadcrumbItems(itemCount, content)\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
81379
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems\n\t},\n\ttemplate: `\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"createBreadcrumbItems(itemCount, content)\"\n\t\t\t[size]=\"size\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
80918
81380
|
},
|
|
80919
81381
|
{
|
|
80920
81382
|
"name": "ModelTemplate",
|
|
@@ -80974,7 +81436,7 @@
|
|
|
80974
81436
|
"deprecated": false,
|
|
80975
81437
|
"deprecationMessage": "",
|
|
80976
81438
|
"type": "",
|
|
80977
|
-
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems,\n\t\twithTemplate\n\t},\n\ttemplate: `\n\t\t<ng-template #breadcrumbTemplate let-item>\n\t\t\t{{ templateContent }}{{ item.content }}\n\t\t</ng-template>\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"withTemplate(breadcrumbTemplate, createBreadcrumbItems(itemCount, content))\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
81439
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems,\n\t\twithTemplate\n\t},\n\ttemplate: `\n\t\t<ng-template #breadcrumbTemplate let-item>\n\t\t\t{{ templateContent }}{{ item.content }}\n\t\t</ng-template>\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"withTemplate(breadcrumbTemplate, createBreadcrumbItems(itemCount, content))\"\n\t\t\t[size]=\"size\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
80978
81440
|
},
|
|
80979
81441
|
{
|
|
80980
81442
|
"name": "monthToStr",
|
|
@@ -82243,6 +82705,16 @@
|
|
|
82243
82705
|
"type": "",
|
|
82244
82706
|
"defaultValue": "(args) => ({\r\n\tprops: args,\r\n\ttemplate: `\r\n\t\t<div class=\"ai-label-container\">\r\n\t\t\t<cds-ai-label\r\n\t\t\t\t[aiText]=\"aiText\"\r\n\t\t\t\t[kind]=\"kind\"\r\n\t\t\t\t[size]=\"size\"\r\n\t\t\t\t[align]=\"align\"\r\n\t\t\t\t[isOpen]=\"isOpen\"\r\n\t\t\t\t[autoAlign]=\"autoAlign\"\r\n\t\t\t\t[ariaLabel]=\"ariaLabel\"\r\n\t\t\t\t[revertActive]=\"revertActive\"\r\n\t\t\t\t[revertLabel]=\"revertLabel\"\r\n\t\t\t\t(revertClick)=\"revertClick($event)\"\r\n\t\t\t\t(onOpen)=\"onOpen($event)\"\r\n\t\t\t\t(onClose)=\"onClose($event)\"\r\n\t\t\t\t(isOpenChange)=\"isOpenChange($event)\">\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<p class=\"secondary\">AI Explained</p>\r\n\t\t\t\t\t\t<h2 class=\"ai-label-heading\">84%</h2>\r\n\t\t\t\t\t\t<p class=\"secondary bold\">Confidence score</p>\r\n\t\t\t\t\t\t<p class=\"secondary\">\r\n\t\t\t\t\t\t\tLorem ipsum dolor sit amet, di os consectetur adipiscing elit, sed do\r\n\t\t\t\t\t\t\teiusmod tempor incididunt ut fsil labore et dolore magna aliqua.\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t<hr />\r\n\t\t\t\t\t\t<p class=\"secondary\">Model type</p>\r\n\t\t\t\t\t\t<p class=\"bold\">Foundation model</p>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div cdsAILabelActions>\r\n\t\t\t\t\t\t<cds-icon-button kind=\"ghost\" align=\"top\" description=\"View\">\r\n\t\t\t\t\t\t\t<svg cdsIcon=\"view\" size=\"16\"></svg>\r\n\t\t\t\t\t\t</cds-icon-button>\r\n\t\t\t\t\t\t<cds-icon-button kind=\"ghost\" align=\"top\" description=\"Download\">\r\n\t\t\t\t\t\t\t<svg cdsIcon=\"download\" size=\"16\"></svg>\r\n\t\t\t\t\t\t</cds-icon-button>\r\n\t\t\t\t\t\t<cds-icon-button kind=\"ghost\" align=\"top\" description=\"Folders\">\r\n\t\t\t\t\t\t\t<svg cdsIcon=\"folder\" size=\"16\"></svg>\r\n\t\t\t\t\t\t</cds-icon-button>\r\n\t\t\t\t\t\t<button cdsButton type=\"button\">View details</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t</cds-ai-label>\r\n\t\t</div>\r\n\t`,\r\n\tstyles: AI_LABEL_STORY_STYLES\r\n})"
|
|
82245
82707
|
},
|
|
82708
|
+
{
|
|
82709
|
+
"name": "Template",
|
|
82710
|
+
"ctype": "miscellaneous",
|
|
82711
|
+
"subtype": "variable",
|
|
82712
|
+
"file": "src/aspect-ratio/aspect-ratio.stories.ts",
|
|
82713
|
+
"deprecated": false,
|
|
82714
|
+
"deprecationMessage": "",
|
|
82715
|
+
"type": "",
|
|
82716
|
+
"defaultValue": "(args) => ({\r\n\tprops: args,\r\n\ttemplate: `\r\n\t\t<div cdsGrid>\r\n\t\t\t<div cdsRow>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t`\r\n})"
|
|
82717
|
+
},
|
|
82246
82718
|
{
|
|
82247
82719
|
"name": "Template",
|
|
82248
82720
|
"ctype": "miscellaneous",
|
|
@@ -82251,7 +82723,7 @@
|
|
|
82251
82723
|
"deprecated": false,
|
|
82252
82724
|
"deprecationMessage": "",
|
|
82253
82725
|
"type": "",
|
|
82254
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
82726
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\" [size]=\"size\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
82255
82727
|
},
|
|
82256
82728
|
{
|
|
82257
82729
|
"name": "Template",
|
|
@@ -82261,7 +82733,7 @@
|
|
|
82261
82733
|
"deprecated": false,
|
|
82262
82734
|
"deprecationMessage": "",
|
|
82263
82735
|
"type": "",
|
|
82264
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\"
|
|
82736
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\">Button</button>\n\t\t\t<button cdsButton>Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
82265
82737
|
},
|
|
82266
82738
|
{
|
|
82267
82739
|
"name": "Template",
|
|
@@ -82471,7 +82943,7 @@
|
|
|
82471
82943
|
"deprecated": false,
|
|
82472
82944
|
"deprecationMessage": "",
|
|
82473
82945
|
"type": "",
|
|
82474
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a
|
|
82946
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a\n\t\t\thref=\"#\"\n\t\t\tcdsLink\n\t\t\t[size]=\"size\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[visited]=\"visited\"\n\t\t\t[inline]=\"inline\">\n\t\t\tlink\n\t\t</a>\n\t`\n})"
|
|
82475
82947
|
},
|
|
82476
82948
|
{
|
|
82477
82949
|
"name": "Template",
|
|
@@ -83653,7 +84125,7 @@
|
|
|
83653
84125
|
"deprecated": false,
|
|
83654
84126
|
"deprecationMessage": "",
|
|
83655
84127
|
"type": "",
|
|
83656
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb skeleton=\"true\" [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
84128
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb skeleton=\"true\" [noTrailingSlash]=\"noTrailingSlash\" [size]=\"size\">\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
83657
84129
|
},
|
|
83658
84130
|
{
|
|
83659
84131
|
"name": "withTemplate",
|
|
@@ -84869,6 +85341,17 @@
|
|
|
84869
85341
|
}
|
|
84870
85342
|
],
|
|
84871
85343
|
"typealiases": [
|
|
85344
|
+
{
|
|
85345
|
+
"name": "AspectRatioValue",
|
|
85346
|
+
"ctype": "miscellaneous",
|
|
85347
|
+
"subtype": "typealias",
|
|
85348
|
+
"rawtype": "\"1x1\" | \"2x3\" | \"3x2\" | \"3x4\" | \"4x3\" | \"1x2\" | \"2x1\" | \"9x16\" | \"16x9\"",
|
|
85349
|
+
"file": "src/aspect-ratio/aspect-ratio.directive.ts",
|
|
85350
|
+
"deprecated": false,
|
|
85351
|
+
"deprecationMessage": "",
|
|
85352
|
+
"description": "",
|
|
85353
|
+
"kind": 192
|
|
85354
|
+
},
|
|
84872
85355
|
{
|
|
84873
85356
|
"name": "ButtonSize",
|
|
84874
85357
|
"ctype": "miscellaneous",
|
|
@@ -86727,7 +87210,7 @@
|
|
|
86727
87210
|
"deprecated": false,
|
|
86728
87211
|
"deprecationMessage": "",
|
|
86729
87212
|
"type": "",
|
|
86730
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb>\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item current=\"true\" href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
87213
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [size]=\"size\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item current=\"true\" href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
86731
87214
|
},
|
|
86732
87215
|
{
|
|
86733
87216
|
"name": "Model",
|
|
@@ -86747,7 +87230,7 @@
|
|
|
86747
87230
|
"deprecated": false,
|
|
86748
87231
|
"deprecationMessage": "",
|
|
86749
87232
|
"type": "",
|
|
86750
|
-
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems\n\t},\n\ttemplate: `\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"createBreadcrumbItems(itemCount, content)\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
87233
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems\n\t},\n\ttemplate: `\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"createBreadcrumbItems(itemCount, content)\"\n\t\t\t[size]=\"size\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
86751
87234
|
},
|
|
86752
87235
|
{
|
|
86753
87236
|
"name": "ModelWithTemplate",
|
|
@@ -86767,7 +87250,7 @@
|
|
|
86767
87250
|
"deprecated": false,
|
|
86768
87251
|
"deprecationMessage": "",
|
|
86769
87252
|
"type": "",
|
|
86770
|
-
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems,\n\t\twithTemplate\n\t},\n\ttemplate: `\n\t\t<ng-template #breadcrumbTemplate let-item>\n\t\t\t{{ templateContent }}{{ item.content }}\n\t\t</ng-template>\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"withTemplate(breadcrumbTemplate, createBreadcrumbItems(itemCount, content))\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
87253
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems,\n\t\twithTemplate\n\t},\n\ttemplate: `\n\t\t<ng-template #breadcrumbTemplate let-item>\n\t\t\t{{ templateContent }}{{ item.content }}\n\t\t</ng-template>\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"withTemplate(breadcrumbTemplate, createBreadcrumbItems(itemCount, content))\"\n\t\t\t[size]=\"size\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
86771
87254
|
},
|
|
86772
87255
|
{
|
|
86773
87256
|
"name": "Skeleton",
|
|
@@ -86787,7 +87270,7 @@
|
|
|
86787
87270
|
"deprecated": false,
|
|
86788
87271
|
"deprecationMessage": "",
|
|
86789
87272
|
"type": "",
|
|
86790
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
87273
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\" [size]=\"size\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
86791
87274
|
},
|
|
86792
87275
|
{
|
|
86793
87276
|
"name": "WithSkeleton",
|
|
@@ -86797,7 +87280,7 @@
|
|
|
86797
87280
|
"deprecated": false,
|
|
86798
87281
|
"deprecationMessage": "",
|
|
86799
87282
|
"type": "",
|
|
86800
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb skeleton=\"true\" [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
87283
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb skeleton=\"true\" [noTrailingSlash]=\"noTrailingSlash\" [size]=\"size\">\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
86801
87284
|
},
|
|
86802
87285
|
{
|
|
86803
87286
|
"name": "withTemplate",
|
|
@@ -86821,6 +87304,26 @@
|
|
|
86821
87304
|
"type": "",
|
|
86822
87305
|
"defaultValue": "Template.bind({})"
|
|
86823
87306
|
},
|
|
87307
|
+
{
|
|
87308
|
+
"name": "Fluid",
|
|
87309
|
+
"ctype": "miscellaneous",
|
|
87310
|
+
"subtype": "variable",
|
|
87311
|
+
"file": "src/button/button-set.stories.ts",
|
|
87312
|
+
"deprecated": false,
|
|
87313
|
+
"deprecationMessage": "",
|
|
87314
|
+
"type": "",
|
|
87315
|
+
"defaultValue": "FluidTemplate.bind({})"
|
|
87316
|
+
},
|
|
87317
|
+
{
|
|
87318
|
+
"name": "FluidTemplate",
|
|
87319
|
+
"ctype": "miscellaneous",
|
|
87320
|
+
"subtype": "variable",
|
|
87321
|
+
"file": "src/button/button-set.stories.ts",
|
|
87322
|
+
"deprecated": false,
|
|
87323
|
+
"deprecationMessage": "",
|
|
87324
|
+
"type": "",
|
|
87325
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set [fluid]=\"fluid\" [stacked]=\"stacked\" style=\"width: 800px;\">\n\t\t\t<button cdsButton=\"ghost\" [size]=\"size\">Cancel</button>\n\t\t\t<button cdsButton=\"secondary\" [size]=\"size\">Button</button>\n\t\t\t<button cdsButton>Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
87326
|
+
},
|
|
86824
87327
|
{
|
|
86825
87328
|
"name": "Template",
|
|
86826
87329
|
"ctype": "miscellaneous",
|
|
@@ -86829,7 +87332,7 @@
|
|
|
86829
87332
|
"deprecated": false,
|
|
86830
87333
|
"deprecationMessage": "",
|
|
86831
87334
|
"type": "",
|
|
86832
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\"
|
|
87335
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\">Button</button>\n\t\t\t<button cdsButton>Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
86833
87336
|
}
|
|
86834
87337
|
],
|
|
86835
87338
|
"src/button/button.stories.ts": [
|
|
@@ -88127,7 +88630,7 @@
|
|
|
88127
88630
|
"deprecated": false,
|
|
88128
88631
|
"deprecationMessage": "",
|
|
88129
88632
|
"type": "",
|
|
88130
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a\n\t\t\thref=\"#\"\n\t\t\tcdsLink\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[inline]=\"inline\">\n\t\t\tLink\n\t\t\t<svg cdsLinkIcon cdsIcon=\"close\" size=\"16\"></svg>\n\t\t</a>\n\t`\n})"
|
|
88633
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a\n\t\t\thref=\"#\"\n\t\t\tcdsLink\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[size]=\"size\"\n\t\t\t[inline]=\"inline\"\n\t\t\t[visited]=\"visited\">\n\t\t\tLink\n\t\t\t<svg cdsLinkIcon cdsIcon=\"close\" size=\"16\"></svg>\n\t\t</a>\n\t`\n})"
|
|
88131
88634
|
},
|
|
88132
88635
|
{
|
|
88133
88636
|
"name": "Template",
|
|
@@ -88137,7 +88640,7 @@
|
|
|
88137
88640
|
"deprecated": false,
|
|
88138
88641
|
"deprecationMessage": "",
|
|
88139
88642
|
"type": "",
|
|
88140
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a
|
|
88643
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<a\n\t\t\thref=\"#\"\n\t\t\tcdsLink\n\t\t\t[size]=\"size\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[visited]=\"visited\"\n\t\t\t[inline]=\"inline\">\n\t\t\tlink\n\t\t</a>\n\t`\n})"
|
|
88141
88644
|
},
|
|
88142
88645
|
{
|
|
88143
88646
|
"name": "WithIcon",
|
|
@@ -90005,6 +90508,28 @@
|
|
|
90005
90508
|
"type": "any"
|
|
90006
90509
|
}
|
|
90007
90510
|
],
|
|
90511
|
+
"src/aspect-ratio/aspect-ratio.stories.ts": [
|
|
90512
|
+
{
|
|
90513
|
+
"name": "Default",
|
|
90514
|
+
"ctype": "miscellaneous",
|
|
90515
|
+
"subtype": "variable",
|
|
90516
|
+
"file": "src/aspect-ratio/aspect-ratio.stories.ts",
|
|
90517
|
+
"deprecated": false,
|
|
90518
|
+
"deprecationMessage": "",
|
|
90519
|
+
"type": "",
|
|
90520
|
+
"defaultValue": "Template.bind({})"
|
|
90521
|
+
},
|
|
90522
|
+
{
|
|
90523
|
+
"name": "Template",
|
|
90524
|
+
"ctype": "miscellaneous",
|
|
90525
|
+
"subtype": "variable",
|
|
90526
|
+
"file": "src/aspect-ratio/aspect-ratio.stories.ts",
|
|
90527
|
+
"deprecated": false,
|
|
90528
|
+
"deprecationMessage": "",
|
|
90529
|
+
"type": "",
|
|
90530
|
+
"defaultValue": "(args) => ({\r\n\tprops: args,\r\n\ttemplate: `\r\n\t\t<div cdsGrid>\r\n\t\t\t<div cdsRow>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div cdsCol [columnNumbers]=\"{ sm: 1, md: 2, lg: 4 }\">\r\n\t\t\t\t\t<div cdsAspectRatio [ratio]=\"ratio\">Content</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t`\r\n})"
|
|
90531
|
+
}
|
|
90532
|
+
],
|
|
90008
90533
|
"src/tooltip/tooltip.interface.ts": [
|
|
90009
90534
|
{
|
|
90010
90535
|
"name": "DEFAULT_TOOLTIP_CONFIG",
|
|
@@ -92079,6 +92604,19 @@
|
|
|
92079
92604
|
]
|
|
92080
92605
|
},
|
|
92081
92606
|
"groupedTypeAliases": {
|
|
92607
|
+
"src/aspect-ratio/aspect-ratio.directive.ts": [
|
|
92608
|
+
{
|
|
92609
|
+
"name": "AspectRatioValue",
|
|
92610
|
+
"ctype": "miscellaneous",
|
|
92611
|
+
"subtype": "typealias",
|
|
92612
|
+
"rawtype": "\"1x1\" | \"2x3\" | \"3x2\" | \"3x4\" | \"4x3\" | \"1x2\" | \"2x1\" | \"9x16\" | \"16x9\"",
|
|
92613
|
+
"file": "src/aspect-ratio/aspect-ratio.directive.ts",
|
|
92614
|
+
"deprecated": false,
|
|
92615
|
+
"deprecationMessage": "",
|
|
92616
|
+
"description": "",
|
|
92617
|
+
"kind": 192
|
|
92618
|
+
}
|
|
92619
|
+
],
|
|
92082
92620
|
"src/button/button.types.ts": [
|
|
92083
92621
|
{
|
|
92084
92622
|
"name": "ButtonSize",
|
|
@@ -92538,6 +93076,35 @@
|
|
|
92538
93076
|
"coverageCount": "0/1",
|
|
92539
93077
|
"status": "low"
|
|
92540
93078
|
},
|
|
93079
|
+
{
|
|
93080
|
+
"filePath": "src/aspect-ratio/aspect-ratio.directive.ts",
|
|
93081
|
+
"type": "directive",
|
|
93082
|
+
"linktype": "directive",
|
|
93083
|
+
"name": "AspectRatioDirective",
|
|
93084
|
+
"coveragePercent": 23,
|
|
93085
|
+
"coverageCount": "3/13",
|
|
93086
|
+
"status": "low"
|
|
93087
|
+
},
|
|
93088
|
+
{
|
|
93089
|
+
"filePath": "src/aspect-ratio/aspect-ratio.stories.ts",
|
|
93090
|
+
"type": "variable",
|
|
93091
|
+
"linktype": "miscellaneous",
|
|
93092
|
+
"linksubtype": "variable",
|
|
93093
|
+
"name": "Default",
|
|
93094
|
+
"coveragePercent": 0,
|
|
93095
|
+
"coverageCount": "0/1",
|
|
93096
|
+
"status": "low"
|
|
93097
|
+
},
|
|
93098
|
+
{
|
|
93099
|
+
"filePath": "src/aspect-ratio/aspect-ratio.stories.ts",
|
|
93100
|
+
"type": "variable",
|
|
93101
|
+
"linktype": "miscellaneous",
|
|
93102
|
+
"linksubtype": "variable",
|
|
93103
|
+
"name": "Template",
|
|
93104
|
+
"coveragePercent": 0,
|
|
93105
|
+
"coverageCount": "0/1",
|
|
93106
|
+
"status": "low"
|
|
93107
|
+
},
|
|
92541
93108
|
{
|
|
92542
93109
|
"filePath": "src/breadcrumb/breadcrumb-item.component.ts",
|
|
92543
93110
|
"type": "component",
|
|
@@ -92561,9 +93128,9 @@
|
|
|
92561
93128
|
"type": "component",
|
|
92562
93129
|
"linktype": "component",
|
|
92563
93130
|
"name": "Breadcrumb",
|
|
92564
|
-
"coveragePercent":
|
|
92565
|
-
"coverageCount": "
|
|
92566
|
-
"status": "
|
|
93131
|
+
"coveragePercent": 30,
|
|
93132
|
+
"coverageCount": "4/13",
|
|
93133
|
+
"status": "medium"
|
|
92567
93134
|
},
|
|
92568
93135
|
{
|
|
92569
93136
|
"filePath": "src/breadcrumb/breadcrumb.component.ts",
|
|
@@ -92719,8 +93286,8 @@
|
|
|
92719
93286
|
"type": "component",
|
|
92720
93287
|
"linktype": "component",
|
|
92721
93288
|
"name": "ButtonSet",
|
|
92722
|
-
"coveragePercent":
|
|
92723
|
-
"coverageCount": "
|
|
93289
|
+
"coveragePercent": 42,
|
|
93290
|
+
"coverageCount": "3/7",
|
|
92724
93291
|
"status": "medium"
|
|
92725
93292
|
},
|
|
92726
93293
|
{
|
|
@@ -92733,6 +93300,26 @@
|
|
|
92733
93300
|
"coverageCount": "0/1",
|
|
92734
93301
|
"status": "low"
|
|
92735
93302
|
},
|
|
93303
|
+
{
|
|
93304
|
+
"filePath": "src/button/button-set.stories.ts",
|
|
93305
|
+
"type": "variable",
|
|
93306
|
+
"linktype": "miscellaneous",
|
|
93307
|
+
"linksubtype": "variable",
|
|
93308
|
+
"name": "Fluid",
|
|
93309
|
+
"coveragePercent": 0,
|
|
93310
|
+
"coverageCount": "0/1",
|
|
93311
|
+
"status": "low"
|
|
93312
|
+
},
|
|
93313
|
+
{
|
|
93314
|
+
"filePath": "src/button/button-set.stories.ts",
|
|
93315
|
+
"type": "variable",
|
|
93316
|
+
"linktype": "miscellaneous",
|
|
93317
|
+
"linksubtype": "variable",
|
|
93318
|
+
"name": "FluidTemplate",
|
|
93319
|
+
"coveragePercent": 0,
|
|
93320
|
+
"coverageCount": "0/1",
|
|
93321
|
+
"status": "low"
|
|
93322
|
+
},
|
|
92736
93323
|
{
|
|
92737
93324
|
"filePath": "src/button/button-set.stories.ts",
|
|
92738
93325
|
"type": "variable",
|
|
@@ -95521,8 +96108,8 @@
|
|
|
95521
96108
|
"type": "directive",
|
|
95522
96109
|
"linktype": "directive",
|
|
95523
96110
|
"name": "Link",
|
|
95524
|
-
"coveragePercent":
|
|
95525
|
-
"coverageCount": "
|
|
96111
|
+
"coveragePercent": 58,
|
|
96112
|
+
"coverageCount": "7/12",
|
|
95526
96113
|
"status": "good"
|
|
95527
96114
|
},
|
|
95528
96115
|
{
|
|
@@ -96882,8 +97469,8 @@
|
|
|
96882
97469
|
"type": "component",
|
|
96883
97470
|
"linktype": "component",
|
|
96884
97471
|
"name": "ProgressBar",
|
|
96885
|
-
"coveragePercent":
|
|
96886
|
-
"coverageCount": "
|
|
97472
|
+
"coveragePercent": 39,
|
|
97473
|
+
"coverageCount": "9/23",
|
|
96887
97474
|
"status": "medium"
|
|
96888
97475
|
},
|
|
96889
97476
|
{
|
|
@@ -99491,9 +100078,9 @@
|
|
|
99491
100078
|
"type": "component",
|
|
99492
100079
|
"linktype": "component",
|
|
99493
100080
|
"name": "TreeViewComponent",
|
|
99494
|
-
"coveragePercent":
|
|
99495
|
-
"coverageCount": "
|
|
99496
|
-
"status": "
|
|
100081
|
+
"coveragePercent": 52,
|
|
100082
|
+
"coverageCount": "10/19",
|
|
100083
|
+
"status": "good"
|
|
99497
100084
|
},
|
|
99498
100085
|
{
|
|
99499
100086
|
"filePath": "src/treeview/treeview.service.ts",
|