carbon-components-angular 5.56.5 → 5.56.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion-item.component.d.ts +1 -1
- package/accordion/accordion.component.d.ts +1 -1
- package/accordion/accordion.module.d.ts +1 -1
- package/accordion/index.d.ts +1 -1
- package/breadcrumb/breadcrumb-item.component.d.ts +1 -1
- package/breadcrumb/breadcrumb-item.interface.d.ts +1 -1
- package/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/breadcrumb/breadcrumb.module.d.ts +1 -1
- package/breadcrumb/index.d.ts +1 -1
- package/button/base-icon-button.component.d.ts +1 -1
- package/button/button-set.component.d.ts +1 -1
- package/button/button.directive.d.ts +1 -1
- package/button/button.module.d.ts +1 -1
- package/button/button.types.d.ts +1 -1
- package/button/icon-button.component.d.ts +1 -1
- package/button/index.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox.module.d.ts +1 -1
- package/checkbox/checkbox.types.d.ts +1 -1
- package/checkbox/index.d.ts +1 -1
- package/code-snippet/code-snippet.component.d.ts +1 -1
- package/code-snippet/code-snippet.module.d.ts +1 -1
- package/code-snippet/index.d.ts +1 -1
- package/combobox/combobox.component.d.ts +1 -1
- package/combobox/combobox.module.d.ts +1 -1
- package/combobox/index.d.ts +1 -1
- package/common/index.d.ts +1 -1
- package/common/tab.service.d.ts +1 -1
- package/common/utils.d.ts +1 -1
- package/contained-list/contained-list-item.component.d.ts +1 -1
- package/contained-list/contained-list.component.d.ts +1 -1
- package/contained-list/contained-list.enums.d.ts +1 -1
- package/contained-list/contained-list.module.d.ts +1 -1
- package/contained-list/index.d.ts +1 -1
- package/content-switcher/content-switcher-option.directive.d.ts +1 -1
- package/content-switcher/content-switcher.component.d.ts +1 -1
- package/content-switcher/content-switcher.module.d.ts +1 -1
- package/content-switcher/index.d.ts +1 -1
- package/context-menu/context-menu-divider.component.d.ts +1 -1
- package/context-menu/context-menu-group.component.d.ts +1 -1
- package/context-menu/context-menu-item.component.d.ts +1 -1
- package/context-menu/context-menu-selection.service.d.ts +1 -1
- package/context-menu/context-menu.component.d.ts +1 -1
- package/context-menu/context-menu.module.d.ts +1 -1
- package/context-menu/index.d.ts +1 -1
- package/datepicker/carbon-flatpickr-month-select.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +1 -1
- package/datepicker/datepicker.module.d.ts +1 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker-input/datepicker-input.component.d.ts +1 -1
- package/datepicker-input/datepicker-input.module.d.ts +1 -1
- package/datepicker-input/index.d.ts +1 -1
- package/dialog/dialog-config.interface.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -1
- package/dialog/dialog.directive.d.ts +1 -1
- package/dialog/dialog.module.d.ts +1 -1
- package/dialog/dialog.service.d.ts +1 -1
- package/dialog/index.d.ts +1 -1
- package/dialog/overflow-menu/overflow-menu-custom-pane.component.d.ts +1 -1
- package/dialog/overflow-menu/overflow-menu-option.component.d.ts +1 -1
- package/dialog/overflow-menu/overflow-menu-pane.component.d.ts +1 -1
- package/dialog/overflow-menu/overflow-menu.component.d.ts +1 -1
- package/dialog/overflow-menu/overflow-menu.directive.d.ts +1 -1
- package/docs/documentation/components/CodeSnippet.html +55 -53
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/CodeSnippetModule/dependencies.svg +4 -4
- package/docs/documentation/modules/CodeSnippetModule.html +4 -4
- package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ComboBoxModule.html +4 -4
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +4 -4
- package/docs/documentation/modules/DatePickerInputModule.html +4 -4
- package/docs/documentation/modules/DatePickerModule/dependencies.svg +4 -4
- package/docs/documentation/modules/DatePickerModule.html +4 -4
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +34 -34
- package/docs/documentation/modules/FileUploaderModule.html +34 -34
- package/docs/documentation/modules/NFormsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NFormsModule.html +4 -4
- package/docs/documentation/modules/NumberModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NumberModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +57 -61
- package/docs/documentation/modules/RadioModule.html +57 -61
- package/docs/documentation/modules/SearchModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SearchModule.html +4 -4
- package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/StructuredListModule/dependencies.svg +66 -66
- package/docs/documentation/modules/StructuredListModule.html +66 -66
- package/docs/documentation/modules/TagModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TagModule.html +4 -4
- package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ThemeModule.html +4 -4
- package/docs/documentation/modules/TilesModule/dependencies.svg +7 -7
- package/docs/documentation/modules/TilesModule.html +7 -7
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +41 -37
- package/docs/documentation/modules/TimePickerModule.html +41 -37
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +44 -48
- package/docs/documentation/modules/TimePickerSelectModule.html +44 -48
- package/docs/documentation/modules/ToggleModule/dependencies.svg +42 -46
- package/docs/documentation/modules/ToggleModule.html +42 -46
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggletipModule.html +4 -4
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +28 -28
- package/docs/documentation/modules/TreeviewModule.html +28 -28
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +271 -271
- package/docs/storybook/{code-snippet-code-snippet-stories.07e87dc8.iframe.bundle.js → code-snippet-code-snippet-stories.0351d43b.iframe.bundle.js} +1 -1
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/main.9bc55d67.iframe.bundle.js +1 -0
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.f0dc5a47.iframe.bundle.js → runtime~main.31991a82.iframe.bundle.js} +1 -1
- package/dropdown/abstract-dropdown-view.class.d.ts +1 -1
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/dropdown.module.d.ts +1 -1
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdowntools.d.ts +1 -1
- package/dropdown/index.d.ts +1 -1
- package/dropdown/list/dropdown-list.component.d.ts +1 -1
- package/dropdown/list/scroll-custom-event.interface.d.ts +1 -1
- package/dropdown/list-item.interface.d.ts +1 -1
- package/dropdown/scrollable-list.directive.d.ts +1 -1
- package/esm2020/code-snippet/code-snippet.component.mjs +3 -1
- package/experimental/experimental.module.d.ts +1 -1
- package/experimental/experimental.service.d.ts +1 -1
- package/experimental/index.d.ts +1 -1
- package/fesm2015/carbon-components-angular-code-snippet.mjs +2 -0
- package/fesm2015/carbon-components-angular-code-snippet.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-code-snippet.mjs +2 -0
- package/fesm2020/carbon-components-angular-code-snippet.mjs.map +1 -1
- package/file-uploader/file-item.interface.d.ts +1 -1
- package/file-uploader/file-uploader.component.d.ts +1 -1
- package/file-uploader/file-uploader.module.d.ts +1 -1
- package/file-uploader/file.component.d.ts +1 -1
- package/file-uploader/index.d.ts +1 -1
- package/forms/forms.module.d.ts +1 -1
- package/forms/index.d.ts +1 -1
- package/grid/column.directive.d.ts +1 -1
- package/grid/grid.directive.d.ts +1 -1
- package/grid/grid.module.d.ts +1 -1
- package/grid/grid.service.d.ts +1 -1
- package/grid/index.d.ts +1 -1
- package/grid/row.directive.d.ts +1 -1
- package/i18n/en.d.ts +1 -1
- package/i18n/i18n.module.d.ts +1 -1
- package/i18n/i18n.service.d.ts +1 -1
- package/i18n/index.d.ts +1 -1
- package/i18n/replace.pipe.d.ts +1 -1
- package/icon/icon.directive.d.ts +1 -1
- package/icon/icon.module.d.ts +1 -1
- package/icon/icon.service.d.ts +1 -1
- package/icon/index.d.ts +1 -1
- package/icon/public_api.d.ts +1 -1
- package/index.d.ts +1 -1
- package/inline-loading/index.d.ts +1 -1
- package/inline-loading/inline-loading.component.d.ts +1 -1
- package/inline-loading/inline-loading.module.d.ts +1 -1
- package/input/index.d.ts +1 -1
- package/input/input.directive.d.ts +1 -1
- package/input/input.module.d.ts +1 -1
- package/input/label.component.d.ts +1 -1
- package/input/password-input-label.component.d.ts +1 -1
- package/input/password.directive.d.ts +1 -1
- package/input/text-area.directive.d.ts +1 -1
- package/input/text-input-label.component.d.ts +1 -1
- package/input/textarea-label.component.d.ts +1 -1
- package/layer/index.d.ts +1 -1
- package/layer/layer.directive.d.ts +1 -1
- package/layer/layer.module.d.ts +1 -1
- package/layout/index.d.ts +1 -1
- package/layout/layout.module.d.ts +1 -1
- package/layout/stack.directive.d.ts +1 -1
- package/link/index.d.ts +1 -1
- package/link/link-icon.directive.d.ts +1 -1
- package/link/link.directive.d.ts +1 -1
- package/link/link.module.d.ts +1 -1
- package/list/index.d.ts +1 -1
- package/list/list-item.directive.d.ts +1 -1
- package/list/list.directive.d.ts +1 -1
- package/list/list.module.d.ts +1 -1
- package/loading/index.d.ts +1 -1
- package/loading/loading.component.d.ts +1 -1
- package/loading/loading.module.d.ts +1 -1
- package/modal/alert-modal.component.d.ts +1 -1
- package/modal/alert-modal.interface.d.ts +1 -1
- package/modal/base-modal.class.d.ts +1 -1
- package/modal/base-modal.service.d.ts +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/modal-content-text.directive.d.ts +1 -1
- package/modal/modal-content.directive.d.ts +1 -1
- package/modal/modal-footer.component.d.ts +1 -1
- package/modal/modal-header-heading.directive.d.ts +1 -1
- package/modal/modal-header-label.directive.d.ts +1 -1
- package/modal/modal-header.component.d.ts +1 -1
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.module.d.ts +1 -1
- package/modal/modal.service.d.ts +1 -1
- package/modal/overlay.component.d.ts +1 -1
- package/notification/actionable-button.directive.d.ts +1 -1
- package/notification/actionable-notification.component.d.ts +1 -1
- package/notification/actionable-subtitle.directive.d.ts +1 -1
- package/notification/actionable-title.directive.d.ts +1 -1
- package/notification/base-notification.component.d.ts +1 -1
- package/notification/index.d.ts +1 -1
- package/notification/notification-content.interface.d.ts +1 -1
- package/notification/notification-display.service.d.ts +1 -1
- package/notification/notification-subtitle.directive.d.ts +1 -1
- package/notification/notification-title.directive.d.ts +1 -1
- package/notification/notification.component.d.ts +1 -1
- package/notification/notification.module.d.ts +1 -1
- package/notification/notification.service.d.ts +1 -1
- package/notification/toast-caption.directive.d.ts +1 -1
- package/notification/toast-subtitle.directive.d.ts +1 -1
- package/notification/toast-title.directive.d.ts +1 -1
- package/notification/toast.component.d.ts +1 -1
- package/number-input/index.d.ts +1 -1
- package/number-input/number.component.d.ts +1 -1
- package/number-input/number.module.d.ts +1 -1
- package/package.json +1 -1
- package/pagination/index.d.ts +1 -1
- package/pagination/pagination-model.class.d.ts +1 -1
- package/pagination/pagination-nav/pagination-item.component.d.ts +1 -1
- package/pagination/pagination-nav/pagination-nav.component.d.ts +1 -1
- package/pagination/pagination-nav/pagination-overflow.component.d.ts +1 -1
- package/pagination/pagination.component.d.ts +1 -1
- package/pagination/pagination.module.d.ts +1 -1
- package/placeholder/index.d.ts +1 -1
- package/placeholder/placeholder.component.d.ts +1 -1
- package/placeholder/placeholder.module.d.ts +1 -1
- package/placeholder/placeholder.service.d.ts +1 -1
- package/popover/index.d.ts +1 -1
- package/popover/popover-content.component.d.ts +1 -1
- package/popover/popover.directive.d.ts +1 -1
- package/popover/popover.module.d.ts +1 -1
- package/progress-bar/index.d.ts +1 -1
- package/progress-bar/progress-bar.component.d.ts +1 -1
- package/progress-bar/progress-bar.module.d.ts +1 -1
- package/progress-indicator/index.d.ts +1 -1
- package/progress-indicator/progress-indicator-step.interface.d.ts +1 -1
- package/progress-indicator/progress-indicator.component.d.ts +1 -1
- package/progress-indicator/progress-indicator.module.d.ts +1 -1
- package/radio/index.d.ts +1 -1
- package/radio/radio-change.class.d.ts +1 -1
- package/radio/radio-group.component.d.ts +1 -1
- package/radio/radio.component.d.ts +1 -1
- package/radio/radio.module.d.ts +1 -1
- package/search/index.d.ts +1 -1
- package/search/search.component.d.ts +1 -1
- package/search/search.module.d.ts +1 -1
- package/select/index.d.ts +1 -1
- package/select/optgroup.directive.d.ts +1 -1
- package/select/option.directive.d.ts +1 -1
- package/select/select.component.d.ts +1 -1
- package/select/select.module.d.ts +1 -1
- package/skeleton/index.d.ts +1 -1
- package/skeleton/skeleton-placeholder.component.d.ts +1 -1
- package/skeleton/skeleton-text.component.d.ts +1 -1
- package/skeleton/skeleton.module.d.ts +1 -1
- package/slider/index.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/slider/slider.module.d.ts +1 -1
- package/structured-list/index.d.ts +1 -1
- package/structured-list/list-column.component.d.ts +1 -1
- package/structured-list/list-header.component.d.ts +1 -1
- package/structured-list/list-row.component.d.ts +1 -1
- package/structured-list/structured-list.component.d.ts +1 -1
- package/structured-list/structured-list.module.d.ts +1 -1
- package/table/body/table-body.component.d.ts +1 -1
- package/table/body/table-expanded-row.component.d.ts +1 -1
- package/table/body/table-row.component.d.ts +1 -1
- package/table/cell/table-checkbox.component.d.ts +1 -1
- package/table/cell/table-data.component.d.ts +1 -1
- package/table/cell/table-expand-button.component.d.ts +1 -1
- package/table/cell/table-radio.component.d.ts +1 -1
- package/table/data-grid-interaction-model.class.d.ts +1 -1
- package/table/expanded-row-hover.directive.d.ts +1 -1
- package/table/head/table-head-cell-label.directive.d.ts +1 -1
- package/table/head/table-head-cell.component.d.ts +1 -1
- package/table/head/table-head-checkbox.component.d.ts +1 -1
- package/table/head/table-head-expand.component.d.ts +1 -1
- package/table/head/table-head.component.d.ts +1 -1
- package/table/header/table-header-description.directive.d.ts +1 -1
- package/table/header/table-header-title.directive.d.ts +1 -1
- package/table/header/table-header.component.d.ts +1 -1
- package/table/index.d.ts +1 -1
- package/table/table-adapter.class.d.ts +1 -1
- package/table/table-container.component.d.ts +1 -1
- package/table/table-header-item.class.d.ts +1 -1
- package/table/table-item.class.d.ts +1 -1
- package/table/table-model.class.d.ts +1 -1
- package/table/table-row.class.d.ts +1 -1
- package/table/table.component.d.ts +1 -1
- package/table/table.directive.d.ts +1 -1
- package/table/table.module.d.ts +1 -1
- package/table/table.types.d.ts +1 -1
- package/table/toolbar/table-toolbar-actions.component.d.ts +1 -1
- package/table/toolbar/table-toolbar-content.component.d.ts +1 -1
- package/table/toolbar/table-toolbar-search.component.d.ts +1 -1
- package/table/toolbar/table-toolbar.component.d.ts +1 -1
- package/tabs/base-tab-header.component.d.ts +1 -1
- package/tabs/index.d.ts +1 -1
- package/tabs/tab-header-group.component.d.ts +1 -1
- package/tabs/tab-header.directive.d.ts +1 -1
- package/tabs/tab-headers.component.d.ts +1 -1
- package/tabs/tab-skeleton.component.d.ts +1 -1
- package/tabs/tab.component.d.ts +1 -1
- package/tabs/tabs.component.d.ts +1 -1
- package/tabs/tabs.module.d.ts +1 -1
- package/tag/index.d.ts +1 -1
- package/tag/tag-filter.component.d.ts +1 -1
- package/tag/tag-icon.directive.d.ts +1 -1
- package/tag/tag-operational.component.d.ts +1 -1
- package/tag/tag-selectable.component.d.ts +1 -1
- package/tag/tag.component.d.ts +1 -1
- package/tag/tag.module.d.ts +1 -1
- package/theme/index.d.ts +1 -1
- package/theme/theme.directive.d.ts +1 -1
- package/theme/theme.module.d.ts +1 -1
- package/tiles/clickable-tile-icon.directive.d.ts +1 -1
- package/tiles/clickable-tile.component.d.ts +1 -1
- package/tiles/expandable-tile-above.directive.d.ts +1 -1
- package/tiles/expandable-tile-below.directive.d.ts +1 -1
- package/tiles/expandable-tile.component.d.ts +1 -1
- package/tiles/index.d.ts +1 -1
- package/tiles/selection-tile.component.d.ts +1 -1
- package/tiles/tile-group.component.d.ts +1 -1
- package/tiles/tile-selection.interface.d.ts +1 -1
- package/tiles/tile.component.d.ts +1 -1
- package/tiles/tiles.module.d.ts +1 -1
- package/timepicker/index.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +1 -1
- package/timepicker/timepicker.module.d.ts +1 -1
- package/timepicker-select/index.d.ts +1 -1
- package/timepicker-select/timepicker-select.component.d.ts +1 -1
- package/timepicker-select/timepicker-select.module.d.ts +1 -1
- package/toggle/index.d.ts +1 -1
- package/toggle/toggle.component.d.ts +1 -1
- package/toggle/toggle.module.d.ts +1 -1
- package/toggletip/index.d.ts +1 -1
- package/toggletip/toggletip-action.directive.d.ts +1 -1
- package/toggletip/toggletip-button.directive.d.ts +1 -1
- package/toggletip/toggletip-content.directive.d.ts +1 -1
- package/toggletip/toggletip-label.directive.d.ts +1 -1
- package/toggletip/toggletip.component.d.ts +1 -1
- package/toggletip/toggletip.module.d.ts +1 -1
- package/tooltip/definition-tooptip.component.d.ts +1 -1
- package/tooltip/index.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +1 -1
- package/tooltip/tooltip.interface.d.ts +1 -1
- package/tooltip/tooltip.module.d.ts +1 -1
- package/treeview/index.d.ts +1 -1
- package/treeview/tree-node.component.d.ts +1 -1
- package/treeview/tree-node.types.d.ts +1 -1
- package/treeview/treeview.component.d.ts +1 -1
- package/treeview/treeview.module.d.ts +1 -1
- package/treeview/treeview.service.d.ts +1 -1
- package/ui-shell/header/hamburger.component.d.ts +1 -1
- package/ui-shell/header/header-action.component.d.ts +1 -1
- package/ui-shell/header/header-global.component.d.ts +1 -1
- package/ui-shell/header/header-item.component.d.ts +1 -1
- package/ui-shell/header/header-menu.component.d.ts +1 -1
- package/ui-shell/header/header-navigation-items.interface.d.ts +1 -1
- package/ui-shell/header/header-navigation.component.d.ts +1 -1
- package/ui-shell/header/header.component.d.ts +1 -1
- package/ui-shell/header/header.module.d.ts +1 -1
- package/ui-shell/index.d.ts +1 -1
- package/ui-shell/panel/panel.component.d.ts +1 -1
- package/ui-shell/panel/panel.module.d.ts +1 -1
- package/ui-shell/panel/switcher-list-item.component.d.ts +1 -1
- package/ui-shell/panel/switcher-list.component.d.ts +1 -1
- package/ui-shell/sidenav/routerlink-extended.directive.d.ts +1 -1
- package/ui-shell/sidenav/sidenav-item.component.d.ts +1 -1
- package/ui-shell/sidenav/sidenav-item.interface.d.ts +1 -1
- package/ui-shell/sidenav/sidenav-menu.component.d.ts +1 -1
- package/ui-shell/sidenav/sidenav.component.d.ts +1 -1
- package/ui-shell/sidenav/sidenav.module.d.ts +1 -1
- package/ui-shell/ui-shell.module.d.ts +1 -1
- package/utils/a11y.d.ts +1 -1
- package/utils/animation-frame.service.d.ts +1 -1
- package/utils/document.service.d.ts +1 -1
- package/utils/element.service.d.ts +1 -1
- package/utils/element.types.d.ts +1 -1
- package/utils/event-observable.d.ts +1 -1
- package/utils/event.service.d.ts +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/object.d.ts +1 -1
- package/utils/position.d.ts +1 -1
- package/utils/public_api.d.ts +1 -1
- package/utils/scroll.d.ts +1 -1
- package/utils/types.d.ts +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.module.d.ts +1 -1
- package/utils/window-tools.d.ts +1 -1
- package/docs/storybook/main.44dbc42d.iframe.bundle.js +0 -1
package/docs/documentation.json
CHANGED
|
@@ -22481,7 +22481,7 @@
|
|
|
22481
22481
|
},
|
|
22482
22482
|
{
|
|
22483
22483
|
"name": "CodeSnippet",
|
|
22484
|
-
"id": "component-CodeSnippet-
|
|
22484
|
+
"id": "component-CodeSnippet-72e1aea3258b346513008c821263e69261e4d63be4e22daa7b0828df812d14fbe9312ddadbf3045e29206bf241e189b34321ab5b5f04f993d7aeda2fd1345013",
|
|
22485
22485
|
"file": "src/code-snippet/code-snippet.component.ts",
|
|
22486
22486
|
"encapsulation": [],
|
|
22487
22487
|
"entryComponents": [],
|
|
@@ -22491,7 +22491,7 @@
|
|
|
22491
22491
|
"selector": "cds-code-snippet, ibm-code-snippet",
|
|
22492
22492
|
"styleUrls": [],
|
|
22493
22493
|
"styles": [],
|
|
22494
|
-
"template": "<ng-container *ngIf=\"display === 'inline'; else notInline\">\n\t<ng-container *ngIf=\"!hideCopyButton; else noBtnInline\">\n\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t</ng-container>\n\t<ng-template #noBtnInline>\n\t\t<span\n\t\t\tclass=\"cds--snippet cds--snippet--inline cds--snippet--no-copy\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--snippet--light': theme === 'light'\n\t\t\t}\">\n\t\t\t<code #code>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t</code>\n\t\t</span>\n\t</ng-template>\n</ng-container>\n\n<ng-template #notInline>\n\t<div\n\t\t#codeContainer\n\t\tclass=\"cds--snippet-container\"\n\t\t[attr.aria-label]=\"translations.CODE_SNIPPET_TEXT\"\n\t\t[attr.tabindex]=\"display === 'single' && !disabled ? '0' : null\"\n\t\t[attr.role]=\"display==='single' ? 'textarea' : null\"\n\t\t[ngStyle]=\"styles\"\n\t\t(scroll)=\"(display === 'single' ? handleScroll() : null)\">\n\t\t<ng-container *ngIf=\"skeleton\">\n\t\t\t<span *ngIf=\"display === 'single'; else multiSkeleton\"></span>\n\t\t\t<ng-template #multiSkeleton>\n\t\t\t\t<span></span>\n\t\t\t\t<span></span>\n\t\t\t\t<span></span>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\t\t<pre\n\t\t\t#codeContent\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\t(scroll)=\"(display === 'multi' ? handleScroll() : null)\"><code #code><ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container></code></pre>\n\t</div>\n\t<div *ngIf=\"hasLeft\" class=\"cds--snippet__overflow-indicator--left\"></div>\n\t<div *ngIf=\"hasRight\" class=\"cds--snippet__overflow-indicator--right\"></div>\n\t<ng-container *ngIf=\"!hideCopyButton;\">\n\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t</ng-container>\n\t<button\n\t\t*ngIf=\"isExpandable\"\n\t\tclass=\"cds--btn cds--btn--ghost cds--btn--sm cds--snippet-btn--expand\"\n\t\t(click)=\"toggleSnippetExpansion()\"\n\t\ttype=\"button\">\n\t\t<span class=\"cds--snippet-btn--text\">{{expanded ? translations.SHOW_LESS : translations.SHOW_MORE}}</span>\n\t\t<svg cdsIcon=\"chevron--down\" size=\"16\" class=\"cds--icon-chevron--down\" [attr.aria-label]=\"translations.SHOW_MORE_ICON\"></svg>\n\t</button>\n</ng-template>\n\n<ng-template #buttonTemplate>\n\t<cds-icon-button\n\t\t*ngIf=\"!skeleton\"\n\t\t[description]=\"showFeedback ? feedbackText : copyButtonDescription\"\n\t\t[align]=\"align\"\n\t\t[dropShadow]=\"dropShadow\"\n\t\t[caret]=\"caret\"\n\t\t[highContrast]=\"highContrast\"\n\t\t[isOpen]=\"isOpen\"\n\t\t[enterDelayMs]=\"enterDelayMs\"\n\t\t[leaveDelayMs]=\"leaveDelayMs\"\n\t\ttype=\"button\"\n\t\tkind=\"primary\"\n\t\tsize=\"md\"\n\t\t(click)=\"onCopyButtonClicked($event)\"\n\t\t[buttonNgClass]=\"{\n\t\t\t'cds--snippet--light': theme === 'light',\n\t\t\t'cds--snippet--inline': display === 'inline',\n\t\t\t'cds--btn--icon-only': display !== 'inline',\n\t\t\t'cds--copy-btn': display !== 'inline',\n\t\t\t'cds--copy-btn--animating': animating,\n\t\t\t'cds--copy-btn--fade-in': showFeedback,\n\t\t\t'cds--copy-btn--fade-out': !showFeedback && animating,\n\t\t\t'cds--snippet cds--copy': true\n\t\t}\"\n\t\t[buttonAttributes]=\"{\n\t\t\t'aria-label': translations.COPY_CODE,\n\t\t\t'aria-live': 'polite',\n\t\t\t'tabindex': '0'\n\t\t}\">\n\t\t<ng-container *ngIf=\"display === 'inline'\">\n\t\t\t<code #code>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t</code>\n\t\t</ng-container>\n\t\t<ng-container *ngIf=\"display !== 'inline'\">\n\t\t\t<svg cdsIcon=\"copy\" size=\"16\" class=\"cds--snippet__icon\"></svg>\n\t\t</ng-container>\n\t</cds-icon-button>\n</ng-template>\n\n<ng-template #codeTemplate>\n\t<ng-content></ng-content>\n</ng-template>\n\t",
|
|
22494
|
+
"template": "<ng-container *ngIf=\"display === 'inline'; else notInline\">\n\t<ng-container *ngIf=\"!hideCopyButton; else noBtnInline\">\n\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t</ng-container>\n\t<ng-template #noBtnInline>\n\t\t<span\n\t\t\tclass=\"cds--snippet cds--snippet--inline cds--snippet--no-copy\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--snippet--light': theme === 'light'\n\t\t\t}\">\n\t\t\t<code #code>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t</code>\n\t\t</span>\n\t</ng-template>\n</ng-container>\n\n<ng-template #notInline>\n\t<div\n\t\t#codeContainer\n\t\tclass=\"cds--snippet-container\"\n\t\t[attr.aria-label]=\"translations.CODE_SNIPPET_TEXT\"\n\t\t[attr.tabindex]=\"display === 'single' && !disabled ? '0' : null\"\n\t\t[attr.role]=\"display==='single' ? 'textarea' : null\"\n\t\t[ngStyle]=\"styles\"\n\t\t(scroll)=\"(display === 'single' ? handleScroll() : null)\">\n\t\t<ng-container *ngIf=\"skeleton\">\n\t\t\t<span *ngIf=\"display === 'single'; else multiSkeleton\"></span>\n\t\t\t<ng-template #multiSkeleton>\n\t\t\t\t<span></span>\n\t\t\t\t<span></span>\n\t\t\t\t<span></span>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\t\t<pre\n\t\t\t#codeContent\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\t(scroll)=\"(display === 'multi' ? handleScroll() : null)\"><code #code><ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container></code></pre>\n\t</div>\n\t<div *ngIf=\"hasLeft\" class=\"cds--snippet__overflow-indicator--left\"></div>\n\t<div *ngIf=\"hasRight\" class=\"cds--snippet__overflow-indicator--right\"></div>\n\t<ng-container *ngIf=\"!hideCopyButton;\">\n\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t</ng-container>\n\t<button\n\t\t*ngIf=\"isExpandable\"\n\t\tclass=\"cds--btn cds--btn--ghost cds--btn--sm cds--snippet-btn--expand\"\n\t\t(click)=\"toggleSnippetExpansion()\"\n\t\ttype=\"button\">\n\t\t<span class=\"cds--snippet-btn--text\">{{expanded ? translations.SHOW_LESS : translations.SHOW_MORE}}</span>\n\t\t<svg cdsIcon=\"chevron--down\" size=\"16\" class=\"cds--icon-chevron--down\" [attr.aria-label]=\"translations.SHOW_MORE_ICON\"></svg>\n\t</button>\n</ng-template>\n\n<ng-template #buttonTemplate>\n\t<cds-icon-button\n\t\t*ngIf=\"!skeleton\"\n\t\t[description]=\"showFeedback ? feedbackText : copyButtonDescription\"\n\t\t[align]=\"align\"\n\t\t[autoAlign]=\"autoAlign\"\n\t\t[dropShadow]=\"dropShadow\"\n\t\t[caret]=\"caret\"\n\t\t[highContrast]=\"highContrast\"\n\t\t[isOpen]=\"isOpen\"\n\t\t[enterDelayMs]=\"enterDelayMs\"\n\t\t[leaveDelayMs]=\"leaveDelayMs\"\n\t\ttype=\"button\"\n\t\tkind=\"primary\"\n\t\tsize=\"md\"\n\t\t(click)=\"onCopyButtonClicked($event)\"\n\t\t[buttonNgClass]=\"{\n\t\t\t'cds--snippet--light': theme === 'light',\n\t\t\t'cds--snippet--inline': display === 'inline',\n\t\t\t'cds--btn--icon-only': display !== 'inline',\n\t\t\t'cds--copy-btn': display !== 'inline',\n\t\t\t'cds--copy-btn--animating': animating,\n\t\t\t'cds--copy-btn--fade-in': showFeedback,\n\t\t\t'cds--copy-btn--fade-out': !showFeedback && animating,\n\t\t\t'cds--snippet cds--copy': true\n\t\t}\"\n\t\t[buttonAttributes]=\"{\n\t\t\t'aria-label': translations.COPY_CODE,\n\t\t\t'aria-live': 'polite',\n\t\t\t'tabindex': '0'\n\t\t}\">\n\t\t<ng-container *ngIf=\"display === 'inline'\">\n\t\t\t<code #code>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t</code>\n\t\t</ng-container>\n\t\t<ng-container *ngIf=\"display !== 'inline'\">\n\t\t\t<svg cdsIcon=\"copy\" size=\"16\" class=\"cds--snippet__icon\"></svg>\n\t\t</ng-container>\n\t</cds-icon-button>\n</ng-template>\n\n<ng-template #codeTemplate>\n\t<ng-content></ng-content>\n</ng-template>\n\t",
|
|
22495
22495
|
"templateUrl": [],
|
|
22496
22496
|
"viewProviders": [],
|
|
22497
22497
|
"hostDirectives": [],
|
|
@@ -22502,7 +22502,7 @@
|
|
|
22502
22502
|
"deprecationMessage": "",
|
|
22503
22503
|
"rawdescription": "\n\ncopy button description to show on hover\n",
|
|
22504
22504
|
"description": "<p>copy button description to show on hover</p>\n",
|
|
22505
|
-
"line":
|
|
22505
|
+
"line": 164,
|
|
22506
22506
|
"type": "string",
|
|
22507
22507
|
"decorators": []
|
|
22508
22508
|
},
|
|
@@ -22513,7 +22513,7 @@
|
|
|
22513
22513
|
"deprecationMessage": "",
|
|
22514
22514
|
"rawdescription": "\n\nSet to `true` to disable the code snippet\n",
|
|
22515
22515
|
"description": "<p>Set to <code>true</code> to disable the code snippet</p>\n",
|
|
22516
|
-
"line":
|
|
22516
|
+
"line": 172,
|
|
22517
22517
|
"type": "boolean",
|
|
22518
22518
|
"decorators": []
|
|
22519
22519
|
},
|
|
@@ -22524,7 +22524,7 @@
|
|
|
22524
22524
|
"deprecationMessage": "",
|
|
22525
22525
|
"rawdescription": "\n\nIt can be `\"single\"`, `\"multi\"` or `\"inline\"`\n",
|
|
22526
22526
|
"description": "<p>It can be <code>"single"</code>, <code>"multi"</code> or <code>"inline"</code></p>\n",
|
|
22527
|
-
"line":
|
|
22527
|
+
"line": 159,
|
|
22528
22528
|
"type": "SnippetType",
|
|
22529
22529
|
"decorators": []
|
|
22530
22530
|
},
|
|
@@ -22533,7 +22533,7 @@
|
|
|
22533
22533
|
"defaultValue": "false",
|
|
22534
22534
|
"deprecated": false,
|
|
22535
22535
|
"deprecationMessage": "",
|
|
22536
|
-
"line":
|
|
22536
|
+
"line": 212,
|
|
22537
22537
|
"type": "boolean",
|
|
22538
22538
|
"decorators": []
|
|
22539
22539
|
},
|
|
@@ -22544,7 +22544,7 @@
|
|
|
22544
22544
|
"deprecationMessage": "",
|
|
22545
22545
|
"rawdescription": "\n\nText displayed in the tooltip when user clicks button to copy code.\n",
|
|
22546
22546
|
"description": "<p>Text displayed in the tooltip when user clicks button to copy code.</p>\n",
|
|
22547
|
-
"line":
|
|
22547
|
+
"line": 205,
|
|
22548
22548
|
"type": "any",
|
|
22549
22549
|
"decorators": []
|
|
22550
22550
|
},
|
|
@@ -22555,7 +22555,7 @@
|
|
|
22555
22555
|
"deprecationMessage": "",
|
|
22556
22556
|
"rawdescription": "\n\nTime in miliseconds to keep the feedback tooltip displayed.\nDefaults to 2 seconds\n",
|
|
22557
22557
|
"description": "<p>Time in miliseconds to keep the feedback tooltip displayed.\nDefaults to 2 seconds</p>\n",
|
|
22558
|
-
"line":
|
|
22558
|
+
"line": 210,
|
|
22559
22559
|
"type": "number",
|
|
22560
22560
|
"decorators": []
|
|
22561
22561
|
},
|
|
@@ -22566,7 +22566,7 @@
|
|
|
22566
22566
|
"deprecationMessage": "",
|
|
22567
22567
|
"rawdescription": "\n\nSet to `true` to hide copy button\n",
|
|
22568
22568
|
"description": "<p>Set to <code>true</code> to hide copy button</p>\n",
|
|
22569
|
-
"line":
|
|
22569
|
+
"line": 168,
|
|
22570
22570
|
"type": "boolean",
|
|
22571
22571
|
"decorators": []
|
|
22572
22572
|
},
|
|
@@ -22577,7 +22577,7 @@
|
|
|
22577
22577
|
"deprecationMessage": "",
|
|
22578
22578
|
"rawdescription": "\n\nSpecify the max number of rows to show when collapsed\nDefault is `15`\n",
|
|
22579
22579
|
"description": "<p>Specify the max number of rows to show when collapsed\nDefault is <code>15</code></p>\n",
|
|
22580
|
-
"line":
|
|
22580
|
+
"line": 177,
|
|
22581
22581
|
"type": "number",
|
|
22582
22582
|
"decorators": []
|
|
22583
22583
|
},
|
|
@@ -22588,7 +22588,7 @@
|
|
|
22588
22588
|
"deprecationMessage": "",
|
|
22589
22589
|
"rawdescription": "\n\nSpecify the max number of rows to show when expanded\nDefault is `0`, hence all content will be visible when expanded\n",
|
|
22590
22590
|
"description": "<p>Specify the max number of rows to show when expanded\nDefault is <code>0</code>, hence all content will be visible when expanded</p>\n",
|
|
22591
|
-
"line":
|
|
22591
|
+
"line": 187,
|
|
22592
22592
|
"type": "number",
|
|
22593
22593
|
"decorators": []
|
|
22594
22594
|
},
|
|
@@ -22599,7 +22599,7 @@
|
|
|
22599
22599
|
"deprecationMessage": "",
|
|
22600
22600
|
"rawdescription": "\n\nSpecify the min number of rows to show when collapsed\nDefault is `3`\n",
|
|
22601
22601
|
"description": "<p>Specify the min number of rows to show when collapsed\nDefault is <code>3</code></p>\n",
|
|
22602
|
-
"line":
|
|
22602
|
+
"line": 182,
|
|
22603
22603
|
"type": "number",
|
|
22604
22604
|
"decorators": []
|
|
22605
22605
|
},
|
|
@@ -22610,7 +22610,7 @@
|
|
|
22610
22610
|
"deprecationMessage": "",
|
|
22611
22611
|
"rawdescription": "\n\nSpecify the min number of rows to show when expanded\nDefault is `16`, hence height of expanded row will be 16 * rowHeightInPixel (16) = 256px\n",
|
|
22612
22612
|
"description": "<p>Specify the min number of rows to show when expanded\nDefault is <code>16</code>, hence height of expanded row will be 16 * rowHeightInPixel (16) = 256px</p>\n",
|
|
22613
|
-
"line":
|
|
22613
|
+
"line": 192,
|
|
22614
22614
|
"type": "number",
|
|
22615
22615
|
"decorators": []
|
|
22616
22616
|
},
|
|
@@ -22619,7 +22619,7 @@
|
|
|
22619
22619
|
"defaultValue": "false",
|
|
22620
22620
|
"deprecated": false,
|
|
22621
22621
|
"deprecationMessage": "",
|
|
22622
|
-
"line":
|
|
22622
|
+
"line": 213,
|
|
22623
22623
|
"type": "boolean",
|
|
22624
22624
|
"decorators": []
|
|
22625
22625
|
},
|
|
@@ -22630,15 +22630,15 @@
|
|
|
22630
22630
|
"deprecationMessage": "since v5 - Use `cdsLayer` directive instead\nSet to `\"light\"` to apply the light style",
|
|
22631
22631
|
"jsdoctags": [
|
|
22632
22632
|
{
|
|
22633
|
-
"pos":
|
|
22634
|
-
"end":
|
|
22633
|
+
"pos": 6125,
|
|
22634
|
+
"end": 6229,
|
|
22635
22635
|
"flags": 16842752,
|
|
22636
22636
|
"modifierFlagsCache": 0,
|
|
22637
22637
|
"transformFlags": 0,
|
|
22638
22638
|
"kind": 338,
|
|
22639
22639
|
"tagName": {
|
|
22640
|
-
"pos":
|
|
22641
|
-
"end":
|
|
22640
|
+
"pos": 6126,
|
|
22641
|
+
"end": 6136,
|
|
22642
22642
|
"flags": 16842752,
|
|
22643
22643
|
"modifierFlagsCache": 0,
|
|
22644
22644
|
"transformFlags": 0,
|
|
@@ -22648,7 +22648,7 @@
|
|
|
22648
22648
|
"comment": "<p>since v5 - Use <code>cdsLayer</code> directive instead\nSet to <code>"light"</code> to apply the light style</p>\n"
|
|
22649
22649
|
}
|
|
22650
22650
|
],
|
|
22651
|
-
"line":
|
|
22651
|
+
"line": 201,
|
|
22652
22652
|
"type": "\"light\" | \"dark\"",
|
|
22653
22653
|
"decorators": []
|
|
22654
22654
|
},
|
|
@@ -22657,7 +22657,7 @@
|
|
|
22657
22657
|
"defaultValue": "this.i18n.get().CODE_SNIPPET",
|
|
22658
22658
|
"deprecated": false,
|
|
22659
22659
|
"deprecationMessage": "",
|
|
22660
|
-
"line":
|
|
22660
|
+
"line": 160,
|
|
22661
22661
|
"type": "any",
|
|
22662
22662
|
"decorators": []
|
|
22663
22663
|
},
|
|
@@ -22668,7 +22668,7 @@
|
|
|
22668
22668
|
"deprecationMessage": "",
|
|
22669
22669
|
"rawdescription": "\n\nSet to `true` to wrap the text\n",
|
|
22670
22670
|
"description": "<p>Set to <code>true</code> to wrap the text</p>\n",
|
|
22671
|
-
"line":
|
|
22671
|
+
"line": 196,
|
|
22672
22672
|
"type": "boolean",
|
|
22673
22673
|
"decorators": []
|
|
22674
22674
|
},
|
|
@@ -22795,7 +22795,7 @@
|
|
|
22795
22795
|
"type": "",
|
|
22796
22796
|
"optional": false,
|
|
22797
22797
|
"description": "",
|
|
22798
|
-
"line":
|
|
22798
|
+
"line": 221
|
|
22799
22799
|
},
|
|
22800
22800
|
{
|
|
22801
22801
|
"name": "code",
|
|
@@ -22804,7 +22804,7 @@
|
|
|
22804
22804
|
"type": "",
|
|
22805
22805
|
"optional": false,
|
|
22806
22806
|
"description": "",
|
|
22807
|
-
"line":
|
|
22807
|
+
"line": 216,
|
|
22808
22808
|
"decorators": [
|
|
22809
22809
|
{
|
|
22810
22810
|
"name": "ViewChild",
|
|
@@ -22822,7 +22822,7 @@
|
|
|
22822
22822
|
"type": "",
|
|
22823
22823
|
"optional": false,
|
|
22824
22824
|
"description": "",
|
|
22825
|
-
"line":
|
|
22825
|
+
"line": 218,
|
|
22826
22826
|
"decorators": [
|
|
22827
22827
|
{
|
|
22828
22828
|
"name": "ViewChild",
|
|
@@ -22840,7 +22840,7 @@
|
|
|
22840
22840
|
"type": "",
|
|
22841
22841
|
"optional": false,
|
|
22842
22842
|
"description": "",
|
|
22843
|
-
"line":
|
|
22843
|
+
"line": 217,
|
|
22844
22844
|
"decorators": [
|
|
22845
22845
|
{
|
|
22846
22846
|
"name": "ViewChild",
|
|
@@ -22859,7 +22859,7 @@
|
|
|
22859
22859
|
"type": "null",
|
|
22860
22860
|
"optional": false,
|
|
22861
22861
|
"description": "",
|
|
22862
|
-
"line":
|
|
22862
|
+
"line": 222
|
|
22863
22863
|
},
|
|
22864
22864
|
{
|
|
22865
22865
|
"name": "hasLeft",
|
|
@@ -22869,7 +22869,7 @@
|
|
|
22869
22869
|
"type": "",
|
|
22870
22870
|
"optional": false,
|
|
22871
22871
|
"description": "",
|
|
22872
|
-
"line":
|
|
22872
|
+
"line": 227
|
|
22873
22873
|
},
|
|
22874
22874
|
{
|
|
22875
22875
|
"name": "hasRight",
|
|
@@ -22879,7 +22879,7 @@
|
|
|
22879
22879
|
"type": "",
|
|
22880
22880
|
"optional": false,
|
|
22881
22881
|
"description": "",
|
|
22882
|
-
"line":
|
|
22882
|
+
"line": 226
|
|
22883
22883
|
},
|
|
22884
22884
|
{
|
|
22885
22885
|
"name": "hasRightOverflow",
|
|
@@ -22889,7 +22889,7 @@
|
|
|
22889
22889
|
"type": "",
|
|
22890
22890
|
"optional": false,
|
|
22891
22891
|
"description": "",
|
|
22892
|
-
"line":
|
|
22892
|
+
"line": 224
|
|
22893
22893
|
},
|
|
22894
22894
|
{
|
|
22895
22895
|
"name": "isExpandable",
|
|
@@ -22899,7 +22899,7 @@
|
|
|
22899
22899
|
"type": "",
|
|
22900
22900
|
"optional": false,
|
|
22901
22901
|
"description": "",
|
|
22902
|
-
"line":
|
|
22902
|
+
"line": 223
|
|
22903
22903
|
},
|
|
22904
22904
|
{
|
|
22905
22905
|
"name": "rowHeightInPixel",
|
|
@@ -22909,7 +22909,7 @@
|
|
|
22909
22909
|
"type": "number",
|
|
22910
22910
|
"optional": false,
|
|
22911
22911
|
"description": "",
|
|
22912
|
-
"line":
|
|
22912
|
+
"line": 154,
|
|
22913
22913
|
"modifierKind": [
|
|
22914
22914
|
148
|
|
22915
22915
|
]
|
|
@@ -22922,7 +22922,7 @@
|
|
|
22922
22922
|
"type": "",
|
|
22923
22923
|
"optional": false,
|
|
22924
22924
|
"description": "",
|
|
22925
|
-
"line":
|
|
22925
|
+
"line": 220
|
|
22926
22926
|
},
|
|
22927
22927
|
{
|
|
22928
22928
|
"name": "styles",
|
|
@@ -22932,7 +22932,7 @@
|
|
|
22932
22932
|
"type": "any",
|
|
22933
22933
|
"optional": false,
|
|
22934
22934
|
"description": "",
|
|
22935
|
-
"line":
|
|
22935
|
+
"line": 214
|
|
22936
22936
|
}
|
|
22937
22937
|
],
|
|
22938
22938
|
"methodsClass": [
|
|
@@ -22942,7 +22942,7 @@
|
|
|
22942
22942
|
"optional": false,
|
|
22943
22943
|
"returnType": "void",
|
|
22944
22944
|
"typeParameters": [],
|
|
22945
|
-
"line":
|
|
22945
|
+
"line": 299,
|
|
22946
22946
|
"deprecated": false,
|
|
22947
22947
|
"deprecationMessage": ""
|
|
22948
22948
|
},
|
|
@@ -22952,7 +22952,7 @@
|
|
|
22952
22952
|
"optional": false,
|
|
22953
22953
|
"returnType": "void",
|
|
22954
22954
|
"typeParameters": [],
|
|
22955
|
-
"line":
|
|
22955
|
+
"line": 237,
|
|
22956
22956
|
"deprecated": false,
|
|
22957
22957
|
"deprecationMessage": ""
|
|
22958
22958
|
},
|
|
@@ -22962,7 +22962,7 @@
|
|
|
22962
22962
|
"optional": false,
|
|
22963
22963
|
"returnType": "void",
|
|
22964
22964
|
"typeParameters": [],
|
|
22965
|
-
"line":
|
|
22965
|
+
"line": 270,
|
|
22966
22966
|
"deprecated": false,
|
|
22967
22967
|
"deprecationMessage": ""
|
|
22968
22968
|
},
|
|
@@ -22972,7 +22972,7 @@
|
|
|
22972
22972
|
"optional": false,
|
|
22973
22973
|
"returnType": "void",
|
|
22974
22974
|
"typeParameters": [],
|
|
22975
|
-
"line":
|
|
22975
|
+
"line": 265,
|
|
22976
22976
|
"deprecated": false,
|
|
22977
22977
|
"deprecationMessage": ""
|
|
22978
22978
|
}
|
|
@@ -22984,7 +22984,7 @@
|
|
|
22984
22984
|
"name": "class.cds--snippet",
|
|
22985
22985
|
"deprecated": false,
|
|
22986
22986
|
"deprecationMessage": "",
|
|
22987
|
-
"line":
|
|
22987
|
+
"line": 138,
|
|
22988
22988
|
"type": "boolean",
|
|
22989
22989
|
"decorators": []
|
|
22990
22990
|
},
|
|
@@ -22992,7 +22992,7 @@
|
|
|
22992
22992
|
"name": "class.cds--snippet--disabled",
|
|
22993
22993
|
"deprecated": false,
|
|
22994
22994
|
"deprecationMessage": "",
|
|
22995
|
-
"line":
|
|
22995
|
+
"line": 147,
|
|
22996
22996
|
"type": "boolean",
|
|
22997
22997
|
"decorators": []
|
|
22998
22998
|
},
|
|
@@ -23000,7 +23000,7 @@
|
|
|
23000
23000
|
"name": "class.cds--snippet--light",
|
|
23001
23001
|
"deprecated": false,
|
|
23002
23002
|
"deprecationMessage": "",
|
|
23003
|
-
"line":
|
|
23003
|
+
"line": 150,
|
|
23004
23004
|
"type": "boolean",
|
|
23005
23005
|
"decorators": []
|
|
23006
23006
|
},
|
|
@@ -23008,7 +23008,7 @@
|
|
|
23008
23008
|
"name": "class.cds--snippet--multi",
|
|
23009
23009
|
"deprecated": false,
|
|
23010
23010
|
"deprecationMessage": "",
|
|
23011
|
-
"line":
|
|
23011
|
+
"line": 144,
|
|
23012
23012
|
"type": "boolean",
|
|
23013
23013
|
"decorators": []
|
|
23014
23014
|
},
|
|
@@ -23016,7 +23016,7 @@
|
|
|
23016
23016
|
"name": "class.cds--snippet--single",
|
|
23017
23017
|
"deprecated": false,
|
|
23018
23018
|
"deprecationMessage": "",
|
|
23019
|
-
"line":
|
|
23019
|
+
"line": 141,
|
|
23020
23020
|
"type": "boolean",
|
|
23021
23021
|
"decorators": []
|
|
23022
23022
|
}
|
|
@@ -23027,7 +23027,7 @@
|
|
|
23027
23027
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { CodeSnippetModule } from 'carbon-components-angular';</code></pre></div><b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\"><cds-code-snippet>Code</cds-code-snippet></code></pre></div><p><a href=\"../../?path=/story/components-code-snippet--basic\">See demo</a></p>\n",
|
|
23028
23028
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { CodeSnippetModule } from 'carbon-components-angular';\n```\n\n```html\n<cds-code-snippet>Code</cds-code-snippet>\n```\n\n[See demo](../../?path=/story/components-code-snippet--basic)\n",
|
|
23029
23029
|
"type": "component",
|
|
23030
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding,\n\tViewChild,\n\tAfterViewInit,\n\tOnInit\n} from \"@angular/core\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { EventService } from \"carbon-components-angular/utils\";\nimport { BaseIconButton } from \"carbon-components-angular/button\";\n\nexport enum SnippetType {\n\tsingle = \"single\",\n\tmulti = \"multi\",\n\tinline = \"inline\"\n}\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { CodeSnippetModule } from 'carbon-components-angular';\n * ```\n *\n * ```html\n * <cds-code-snippet>Code</cds-code-snippet>\n * ```\n *\n * [See demo](../../?path=/story/components-code-snippet--basic)\n */\n@Component({\n\tselector: \"cds-code-snippet, ibm-code-snippet\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"display === 'inline'; else notInline\">\n\t\t\t<ng-container *ngIf=\"!hideCopyButton; else noBtnInline\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t\t\t</ng-container>\n\t\t\t<ng-template #noBtnInline>\n\t\t\t\t<span\n\t\t\t\t\tclass=\"cds--snippet cds--snippet--inline cds--snippet--no-copy\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--snippet--light': theme === 'light'\n\t\t\t\t\t}\">\n\t\t\t\t\t<code #code>\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t\t\t</code>\n\t\t\t\t</span>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\n\t\t<ng-template #notInline>\n\t\t\t<div\n\t\t\t\t#codeContainer\n\t\t\t\tclass=\"cds--snippet-container\"\n\t\t\t\t[attr.aria-label]=\"translations.CODE_SNIPPET_TEXT\"\n\t\t\t\t[attr.tabindex]=\"display === 'single' && !disabled ? '0' : null\"\n\t\t\t\t[attr.role]=\"display==='single' ? 'textarea' : null\"\n\t\t\t\t[ngStyle]=\"styles\"\n\t\t\t\t(scroll)=\"(display === 'single' ? handleScroll() : null)\">\n\t\t\t\t<ng-container *ngIf=\"skeleton\">\n\t\t\t\t\t<span *ngIf=\"display === 'single'; else multiSkeleton\"></span>\n\t\t\t\t\t<ng-template #multiSkeleton>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ng-container>\n\t\t\t\t<pre\n\t\t\t\t\t#codeContent\n\t\t\t\t\t*ngIf=\"!skeleton\"\n\t\t\t\t\t(scroll)=\"(display === 'multi' ? handleScroll() : null)\"><code #code><ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container></code></pre>\n\t\t\t</div>\n\t\t\t<div *ngIf=\"hasLeft\" class=\"cds--snippet__overflow-indicator--left\"></div>\n\t\t\t<div *ngIf=\"hasRight\" class=\"cds--snippet__overflow-indicator--right\"></div>\n\t\t\t<ng-container *ngIf=\"!hideCopyButton;\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t\t\t</ng-container>\n\t\t\t<button\n\t\t\t\t*ngIf=\"isExpandable\"\n\t\t\t\tclass=\"cds--btn cds--btn--ghost cds--btn--sm cds--snippet-btn--expand\"\n\t\t\t\t(click)=\"toggleSnippetExpansion()\"\n\t\t\t\ttype=\"button\">\n\t\t\t\t<span class=\"cds--snippet-btn--text\">{{expanded ? translations.SHOW_LESS : translations.SHOW_MORE}}</span>\n\t\t\t\t<svg cdsIcon=\"chevron--down\" size=\"16\" class=\"cds--icon-chevron--down\" [attr.aria-label]=\"translations.SHOW_MORE_ICON\"></svg>\n\t\t\t</button>\n\t\t</ng-template>\n\n\t\t<ng-template #buttonTemplate>\n\t\t\t<cds-icon-button\n\t\t\t\t*ngIf=\"!skeleton\"\n\t\t\t\t[description]=\"showFeedback ? feedbackText : copyButtonDescription\"\n\t\t\t\t[align]=\"align\"\n\t\t\t\t[dropShadow]=\"dropShadow\"\n\t\t\t\t[caret]=\"caret\"\n\t\t\t\t[highContrast]=\"highContrast\"\n\t\t\t\t[isOpen]=\"isOpen\"\n\t\t\t\t[enterDelayMs]=\"enterDelayMs\"\n\t\t\t\t[leaveDelayMs]=\"leaveDelayMs\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tkind=\"primary\"\n\t\t\t\tsize=\"md\"\n\t\t\t\t(click)=\"onCopyButtonClicked($event)\"\n\t\t\t\t[buttonNgClass]=\"{\n\t\t\t\t\t'cds--snippet--light': theme === 'light',\n\t\t\t\t\t'cds--snippet--inline': display === 'inline',\n\t\t\t\t\t'cds--btn--icon-only': display !== 'inline',\n\t\t\t\t\t'cds--copy-btn': display !== 'inline',\n\t\t\t\t\t'cds--copy-btn--animating': animating,\n\t\t\t\t\t'cds--copy-btn--fade-in': showFeedback,\n\t\t\t\t\t'cds--copy-btn--fade-out': !showFeedback && animating,\n\t\t\t\t\t'cds--snippet cds--copy': true\n\t\t\t\t}\"\n\t\t\t\t[buttonAttributes]=\"{\n\t\t\t\t\t'aria-label': translations.COPY_CODE,\n\t\t\t\t\t'aria-live': 'polite',\n\t\t\t\t\t'tabindex': '0'\n\t\t\t\t}\">\n\t\t\t\t<ng-container *ngIf=\"display === 'inline'\">\n\t\t\t\t\t<code #code>\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t\t\t</code>\n\t\t\t\t</ng-container>\n\t\t\t\t<ng-container *ngIf=\"display !== 'inline'\">\n\t\t\t\t\t<svg cdsIcon=\"copy\" size=\"16\" class=\"cds--snippet__icon\"></svg>\n\t\t\t\t</ng-container>\n\t\t\t</cds-icon-button>\n\t\t</ng-template>\n\n\t\t<ng-template #codeTemplate>\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t`\n})\nexport class CodeSnippet extends BaseIconButton implements OnInit, AfterViewInit {\n\t@HostBinding(\"class.cds--snippet\") get snippetClass() {\n\t\treturn this.display !== SnippetType.inline;\n\t}\n\t@HostBinding(\"class.cds--snippet--single\") get snippetSingleClass() {\n\t\treturn this.display === SnippetType.single;\n\t}\n\t@HostBinding(\"class.cds--snippet--multi\") get snippetMultiClass() {\n\t\treturn this.display === SnippetType.multi;\n\t}\n\t@HostBinding(\"class.cds--snippet--disabled\") get snippetDisabledClass() {\n\t\treturn this.display !== \"inline\" && this.disabled;\n\t}\n\t@HostBinding(\"class.cds--snippet--light\") get snippetInlineLightClass() {\n\t\treturn this.theme === \"light\";\n\t}\n\n\treadonly rowHeightInPixel: number = 16;\n\n\t/**\n\t * It can be `\"single\"`, `\"multi\"` or `\"inline\"`\n\t */\n\t@Input() display: SnippetType = SnippetType.single;\n\t@Input() translations = this.i18n.get().CODE_SNIPPET;\n\t/**\n\t * copy button description to show on hover\n\t */\n\t@Input() copyButtonDescription: string;\n\t/**\n\t * Set to `true` to hide copy button\n\t */\n\t@Input() hideCopyButton = false;\n\t/**\n\t * Set to `true` to disable the code snippet\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Specify the max number of rows to show when collapsed\n\t * Default is `15`\n\t */\n\t@Input() maxCollapsedNumberOfRows = 15;\n\t/**\n\t * Specify the min number of rows to show when collapsed\n\t * Default is `3`\n\t */\n\t@Input() minCollapsedNumberOfRows = 3;\n\t/**\n\t * Specify the max number of rows to show when expanded\n\t * Default is `0`, hence all content will be visible when expanded\n\t */\n\t@Input() maxExpandedNumberOfRows = 0;\n\t/**\n\t * Specify the min number of rows to show when expanded\n\t * Default is `16`, hence height of expanded row will be 16 * rowHeightInPixel (16) = 256px\n\t */\n\t@Input() minExpandedNumberOfRows = 16;\n\t/**\n\t * Set to `true` to wrap the text\n\t */\n\t@HostBinding(\"class.cds--snippet--wraptext\") @Input() wrapText = false;\n\t/**\n\t * @deprecated since v5 - Use `cdsLayer` directive instead\n\t * Set to `\"light\"` to apply the light style\n\t */\n\t@Input() theme: \"light\" | \"dark\" = \"dark\";\n\t/**\n\t * Text displayed in the tooltip when user clicks button to copy code.\n\t */\n\t@Input() feedbackText = this.translations.COPIED;\n\t/**\n\t * Time in miliseconds to keep the feedback tooltip displayed.\n\t * Defaults to 2 seconds\n\t */\n\t@Input() feedbackTimeout = 2000;\n\n\t@HostBinding(\"class.cds--snippet--expand\") @Input() expanded = false;\n\t@HostBinding(\"class.cds--skeleton\") @Input() skeleton = false;\n\tstyles: any = {};\n\n\t@ViewChild(\"code\") code;\n\t@ViewChild(\"codeContent\") codeContent;\n\t@ViewChild(\"codeContainer\") codeContainer;\n\n\tshowFeedback = false;\n\tanimating = false;\n\thasExpandButton = null;\n\tisExpandable = false;\n\thasRightOverflow = false;\n\n\thasRight = false;\n\thasLeft = false;\n\n\t/**\n\t * Creates an instance of CodeSnippet.\n\t */\n\tconstructor(protected i18n: I18n, protected eventService: EventService) {\n\t\tsuper();\n\t\tthis.dropShadow = false;\n\t}\n\n\thandleScroll() {\n\t\tif (this.skeleton) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet ref;\n\t\tswitch (this.display) {\n\t\t\tcase \"multi\":\n\t\t\t\tref = this.codeContent.nativeElement;\n\t\t\t\tbreak;\n\t\t\tcase \"single\":\n\t\t\t\tref = this.codeContainer.nativeElement;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t\tif (ref) {\n\t\t\tconst {\n\t\t\t\tscrollWidth,\n\t\t\t\tclientWidth,\n\t\t\t\tscrollLeft\n\t\t\t} = ref;\n\t\t\tconst horizontalOverflow = scrollWidth > clientWidth;\n\t\t\tthis.hasLeft = horizontalOverflow && !!scrollLeft;\n\t\t\tthis.hasRight = horizontalOverflow && scrollLeft + clientWidth !== scrollWidth;\n\t\t}\n\t}\n\n\ttoggleSnippetExpansion() {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.calculateContainerHeight();\n\t}\n\n\tonCopyButtonClicked() {\n\t\tif (!this.disabled) {\n\t\t\twindow.navigator.clipboard\n\t\t\t\t.writeText(this.code.nativeElement.innerText || this.code.nativeElement.textContent).then(() => {\n\t\t\t\t\tthis.showFeedback = true;\n\t\t\t\t\tthis.animating = true;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.showFeedback = false;\n\t\t\t\t\t\tthis.animating = false;\n\t\t\t\t\t}, this.feedbackTimeout);\n\t\t\t\t});\n\t\t}\n\t}\n\n\tngOnInit() {\n\t\tthis.calculateContainerHeight();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.canExpand();\n\t\tthis.handleScroll();\n\t\tif (window) {\n\t\t\tthis.eventService.on(window as any, \"resize\", () => {\n\t\t\t\tthis.canExpand();\n\t\t\t\tthis.handleScroll();\n\t\t\t});\n\t\t}\n\t}\n\n\tcalculateContainerHeight() {\n\t\tif (this.display === \"multi\" && !this.skeleton) {\n\t\t\tthis.styles = {};\n\t\t\tif (this.expanded) {\n\t\t\t\tif (this.maxExpandedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"max-height\"] = `${this.maxExpandedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t\tif (this.minExpandedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"min-height\"] = `${this.minExpandedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (this.maxCollapsedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"max-height\"] = `${this.maxCollapsedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t\tif (this.minCollapsedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"min-height\"] = `${this.minCollapsedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected canExpand() {\n\t\tif (this.display === \"multi\" && !this.skeleton) {\n\t\t\tconst height = this.codeContent.nativeElement.getBoundingClientRect().height;\n\t\t\tif (\n\t\t\t\tthis.maxCollapsedNumberOfRows > 0 &&\n\t\t\t\t(this.maxExpandedNumberOfRows <= 0 ||\n\t\t\t\t\tthis.maxExpandedNumberOfRows > this.maxCollapsedNumberOfRows) &&\n\t\t\t\theight > this.maxCollapsedNumberOfRows * this.rowHeightInPixel\n\t\t\t) {\n\t\t\t\tthis.isExpandable = true;\n\t\t\t} else {\n\t\t\t\tthis.isExpandable = false;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tthis.expanded &&\n\t\t\t\tthis.minExpandedNumberOfRows > 0 &&\n\t\t\t\theight <= this.minExpandedNumberOfRows * this.rowHeightInPixel\n\t\t\t) {\n\t\t\t\tthis.isExpandable = false;\n\t\t\t}\n\t\t}\n\t}\n}\n",
|
|
23030
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tHostBinding,\n\tViewChild,\n\tAfterViewInit,\n\tOnInit\n} from \"@angular/core\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { EventService } from \"carbon-components-angular/utils\";\nimport { BaseIconButton } from \"carbon-components-angular/button\";\n\nexport enum SnippetType {\n\tsingle = \"single\",\n\tmulti = \"multi\",\n\tinline = \"inline\"\n}\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { CodeSnippetModule } from 'carbon-components-angular';\n * ```\n *\n * ```html\n * <cds-code-snippet>Code</cds-code-snippet>\n * ```\n *\n * [See demo](../../?path=/story/components-code-snippet--basic)\n */\n@Component({\n\tselector: \"cds-code-snippet, ibm-code-snippet\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"display === 'inline'; else notInline\">\n\t\t\t<ng-container *ngIf=\"!hideCopyButton; else noBtnInline\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t\t\t</ng-container>\n\t\t\t<ng-template #noBtnInline>\n\t\t\t\t<span\n\t\t\t\t\tclass=\"cds--snippet cds--snippet--inline cds--snippet--no-copy\"\n\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t'cds--snippet--light': theme === 'light'\n\t\t\t\t\t}\">\n\t\t\t\t\t<code #code>\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t\t\t</code>\n\t\t\t\t</span>\n\t\t\t</ng-template>\n\t\t</ng-container>\n\n\t\t<ng-template #notInline>\n\t\t\t<div\n\t\t\t\t#codeContainer\n\t\t\t\tclass=\"cds--snippet-container\"\n\t\t\t\t[attr.aria-label]=\"translations.CODE_SNIPPET_TEXT\"\n\t\t\t\t[attr.tabindex]=\"display === 'single' && !disabled ? '0' : null\"\n\t\t\t\t[attr.role]=\"display==='single' ? 'textarea' : null\"\n\t\t\t\t[ngStyle]=\"styles\"\n\t\t\t\t(scroll)=\"(display === 'single' ? handleScroll() : null)\">\n\t\t\t\t<ng-container *ngIf=\"skeleton\">\n\t\t\t\t\t<span *ngIf=\"display === 'single'; else multiSkeleton\"></span>\n\t\t\t\t\t<ng-template #multiSkeleton>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ng-container>\n\t\t\t\t<pre\n\t\t\t\t\t#codeContent\n\t\t\t\t\t*ngIf=\"!skeleton\"\n\t\t\t\t\t(scroll)=\"(display === 'multi' ? handleScroll() : null)\"><code #code><ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container></code></pre>\n\t\t\t</div>\n\t\t\t<div *ngIf=\"hasLeft\" class=\"cds--snippet__overflow-indicator--left\"></div>\n\t\t\t<div *ngIf=\"hasRight\" class=\"cds--snippet__overflow-indicator--right\"></div>\n\t\t\t<ng-container *ngIf=\"!hideCopyButton;\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t\t\t</ng-container>\n\t\t\t<button\n\t\t\t\t*ngIf=\"isExpandable\"\n\t\t\t\tclass=\"cds--btn cds--btn--ghost cds--btn--sm cds--snippet-btn--expand\"\n\t\t\t\t(click)=\"toggleSnippetExpansion()\"\n\t\t\t\ttype=\"button\">\n\t\t\t\t<span class=\"cds--snippet-btn--text\">{{expanded ? translations.SHOW_LESS : translations.SHOW_MORE}}</span>\n\t\t\t\t<svg cdsIcon=\"chevron--down\" size=\"16\" class=\"cds--icon-chevron--down\" [attr.aria-label]=\"translations.SHOW_MORE_ICON\"></svg>\n\t\t\t</button>\n\t\t</ng-template>\n\n\t\t<ng-template #buttonTemplate>\n\t\t\t<cds-icon-button\n\t\t\t\t*ngIf=\"!skeleton\"\n\t\t\t\t[description]=\"showFeedback ? feedbackText : copyButtonDescription\"\n\t\t\t\t[align]=\"align\"\n\t\t\t\t[autoAlign]=\"autoAlign\"\n\t\t\t\t[dropShadow]=\"dropShadow\"\n\t\t\t\t[caret]=\"caret\"\n\t\t\t\t[highContrast]=\"highContrast\"\n\t\t\t\t[isOpen]=\"isOpen\"\n\t\t\t\t[enterDelayMs]=\"enterDelayMs\"\n\t\t\t\t[leaveDelayMs]=\"leaveDelayMs\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tkind=\"primary\"\n\t\t\t\tsize=\"md\"\n\t\t\t\t(click)=\"onCopyButtonClicked($event)\"\n\t\t\t\t[buttonNgClass]=\"{\n\t\t\t\t\t'cds--snippet--light': theme === 'light',\n\t\t\t\t\t'cds--snippet--inline': display === 'inline',\n\t\t\t\t\t'cds--btn--icon-only': display !== 'inline',\n\t\t\t\t\t'cds--copy-btn': display !== 'inline',\n\t\t\t\t\t'cds--copy-btn--animating': animating,\n\t\t\t\t\t'cds--copy-btn--fade-in': showFeedback,\n\t\t\t\t\t'cds--copy-btn--fade-out': !showFeedback && animating,\n\t\t\t\t\t'cds--snippet cds--copy': true\n\t\t\t\t}\"\n\t\t\t\t[buttonAttributes]=\"{\n\t\t\t\t\t'aria-label': translations.COPY_CODE,\n\t\t\t\t\t'aria-live': 'polite',\n\t\t\t\t\t'tabindex': '0'\n\t\t\t\t}\">\n\t\t\t\t<ng-container *ngIf=\"display === 'inline'\">\n\t\t\t\t\t<code #code>\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"codeTemplate\"></ng-container>\n\t\t\t\t\t</code>\n\t\t\t\t</ng-container>\n\t\t\t\t<ng-container *ngIf=\"display !== 'inline'\">\n\t\t\t\t\t<svg cdsIcon=\"copy\" size=\"16\" class=\"cds--snippet__icon\"></svg>\n\t\t\t\t</ng-container>\n\t\t\t</cds-icon-button>\n\t\t</ng-template>\n\n\t\t<ng-template #codeTemplate>\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t`\n})\nexport class CodeSnippet extends BaseIconButton implements OnInit, AfterViewInit {\n\t@HostBinding(\"class.cds--snippet\") get snippetClass() {\n\t\treturn this.display !== SnippetType.inline;\n\t}\n\t@HostBinding(\"class.cds--snippet--single\") get snippetSingleClass() {\n\t\treturn this.display === SnippetType.single;\n\t}\n\t@HostBinding(\"class.cds--snippet--multi\") get snippetMultiClass() {\n\t\treturn this.display === SnippetType.multi;\n\t}\n\t@HostBinding(\"class.cds--snippet--disabled\") get snippetDisabledClass() {\n\t\treturn this.display !== \"inline\" && this.disabled;\n\t}\n\t@HostBinding(\"class.cds--snippet--light\") get snippetInlineLightClass() {\n\t\treturn this.theme === \"light\";\n\t}\n\n\treadonly rowHeightInPixel: number = 16;\n\n\t/**\n\t * It can be `\"single\"`, `\"multi\"` or `\"inline\"`\n\t */\n\t@Input() display: SnippetType = SnippetType.single;\n\t@Input() translations = this.i18n.get().CODE_SNIPPET;\n\t/**\n\t * copy button description to show on hover\n\t */\n\t@Input() copyButtonDescription: string;\n\t/**\n\t * Set to `true` to hide copy button\n\t */\n\t@Input() hideCopyButton = false;\n\t/**\n\t * Set to `true` to disable the code snippet\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Specify the max number of rows to show when collapsed\n\t * Default is `15`\n\t */\n\t@Input() maxCollapsedNumberOfRows = 15;\n\t/**\n\t * Specify the min number of rows to show when collapsed\n\t * Default is `3`\n\t */\n\t@Input() minCollapsedNumberOfRows = 3;\n\t/**\n\t * Specify the max number of rows to show when expanded\n\t * Default is `0`, hence all content will be visible when expanded\n\t */\n\t@Input() maxExpandedNumberOfRows = 0;\n\t/**\n\t * Specify the min number of rows to show when expanded\n\t * Default is `16`, hence height of expanded row will be 16 * rowHeightInPixel (16) = 256px\n\t */\n\t@Input() minExpandedNumberOfRows = 16;\n\t/**\n\t * Set to `true` to wrap the text\n\t */\n\t@HostBinding(\"class.cds--snippet--wraptext\") @Input() wrapText = false;\n\t/**\n\t * @deprecated since v5 - Use `cdsLayer` directive instead\n\t * Set to `\"light\"` to apply the light style\n\t */\n\t@Input() theme: \"light\" | \"dark\" = \"dark\";\n\t/**\n\t * Text displayed in the tooltip when user clicks button to copy code.\n\t */\n\t@Input() feedbackText = this.translations.COPIED;\n\t/**\n\t * Time in miliseconds to keep the feedback tooltip displayed.\n\t * Defaults to 2 seconds\n\t */\n\t@Input() feedbackTimeout = 2000;\n\n\t@HostBinding(\"class.cds--snippet--expand\") @Input() expanded = false;\n\t@HostBinding(\"class.cds--skeleton\") @Input() skeleton = false;\n\tstyles: any = {};\n\n\t@ViewChild(\"code\") code;\n\t@ViewChild(\"codeContent\") codeContent;\n\t@ViewChild(\"codeContainer\") codeContainer;\n\n\tshowFeedback = false;\n\tanimating = false;\n\thasExpandButton = null;\n\tisExpandable = false;\n\thasRightOverflow = false;\n\n\thasRight = false;\n\thasLeft = false;\n\n\t/**\n\t * Creates an instance of CodeSnippet.\n\t */\n\tconstructor(protected i18n: I18n, protected eventService: EventService) {\n\t\tsuper();\n\t\tthis.dropShadow = false;\n\t}\n\n\thandleScroll() {\n\t\tif (this.skeleton) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet ref;\n\t\tswitch (this.display) {\n\t\t\tcase \"multi\":\n\t\t\t\tref = this.codeContent.nativeElement;\n\t\t\t\tbreak;\n\t\t\tcase \"single\":\n\t\t\t\tref = this.codeContainer.nativeElement;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t\tif (ref) {\n\t\t\tconst {\n\t\t\t\tscrollWidth,\n\t\t\t\tclientWidth,\n\t\t\t\tscrollLeft\n\t\t\t} = ref;\n\t\t\tconst horizontalOverflow = scrollWidth > clientWidth;\n\t\t\tthis.hasLeft = horizontalOverflow && !!scrollLeft;\n\t\t\tthis.hasRight = horizontalOverflow && scrollLeft + clientWidth !== scrollWidth;\n\t\t}\n\t}\n\n\ttoggleSnippetExpansion() {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.calculateContainerHeight();\n\t}\n\n\tonCopyButtonClicked() {\n\t\tif (!this.disabled) {\n\t\t\twindow.navigator.clipboard\n\t\t\t\t.writeText(this.code.nativeElement.innerText || this.code.nativeElement.textContent).then(() => {\n\t\t\t\t\tthis.showFeedback = true;\n\t\t\t\t\tthis.animating = true;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.showFeedback = false;\n\t\t\t\t\t\tthis.animating = false;\n\t\t\t\t\t}, this.feedbackTimeout);\n\t\t\t\t});\n\t\t}\n\t}\n\n\tngOnInit() {\n\t\tthis.calculateContainerHeight();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.canExpand();\n\t\tthis.handleScroll();\n\t\tif (window) {\n\t\t\tthis.eventService.on(window as any, \"resize\", () => {\n\t\t\t\tthis.canExpand();\n\t\t\t\tthis.handleScroll();\n\t\t\t});\n\t\t}\n\t}\n\n\tcalculateContainerHeight() {\n\t\tif (this.display === \"multi\" && !this.skeleton) {\n\t\t\tthis.styles = {};\n\t\t\tif (this.expanded) {\n\t\t\t\tif (this.maxExpandedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"max-height\"] = `${this.maxExpandedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t\tif (this.minExpandedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"min-height\"] = `${this.minExpandedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (this.maxCollapsedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"max-height\"] = `${this.maxCollapsedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t\tif (this.minCollapsedNumberOfRows > 0) {\n\t\t\t\t\tthis.styles[\"min-height\"] = `${this.minCollapsedNumberOfRows * this.rowHeightInPixel}px`;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected canExpand() {\n\t\tif (this.display === \"multi\" && !this.skeleton) {\n\t\t\tconst height = this.codeContent.nativeElement.getBoundingClientRect().height;\n\t\t\tif (\n\t\t\t\tthis.maxCollapsedNumberOfRows > 0 &&\n\t\t\t\t(this.maxExpandedNumberOfRows <= 0 ||\n\t\t\t\t\tthis.maxExpandedNumberOfRows > this.maxCollapsedNumberOfRows) &&\n\t\t\t\theight > this.maxCollapsedNumberOfRows * this.rowHeightInPixel\n\t\t\t) {\n\t\t\t\tthis.isExpandable = true;\n\t\t\t} else {\n\t\t\t\tthis.isExpandable = false;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tthis.expanded &&\n\t\t\t\tthis.minExpandedNumberOfRows > 0 &&\n\t\t\t\theight <= this.minExpandedNumberOfRows * this.rowHeightInPixel\n\t\t\t) {\n\t\t\t\tthis.isExpandable = false;\n\t\t\t}\n\t\t}\n\t}\n}\n",
|
|
23031
23031
|
"assetsDirs": [],
|
|
23032
23032
|
"styleUrlsData": "",
|
|
23033
23033
|
"stylesData": "",
|
|
@@ -23050,7 +23050,7 @@
|
|
|
23050
23050
|
"deprecationMessage": ""
|
|
23051
23051
|
}
|
|
23052
23052
|
],
|
|
23053
|
-
"line":
|
|
23053
|
+
"line": 227,
|
|
23054
23054
|
"rawdescription": "\n\nCreates an instance of CodeSnippet.\n",
|
|
23055
23055
|
"jsdoctags": [
|
|
23056
23056
|
{
|
|
@@ -23087,7 +23087,7 @@
|
|
|
23087
23087
|
"name": "snippetClass",
|
|
23088
23088
|
"type": "",
|
|
23089
23089
|
"returnType": "",
|
|
23090
|
-
"line":
|
|
23090
|
+
"line": 138
|
|
23091
23091
|
}
|
|
23092
23092
|
},
|
|
23093
23093
|
"snippetSingleClass": {
|
|
@@ -23096,7 +23096,7 @@
|
|
|
23096
23096
|
"name": "snippetSingleClass",
|
|
23097
23097
|
"type": "",
|
|
23098
23098
|
"returnType": "",
|
|
23099
|
-
"line":
|
|
23099
|
+
"line": 141
|
|
23100
23100
|
}
|
|
23101
23101
|
},
|
|
23102
23102
|
"snippetMultiClass": {
|
|
@@ -23105,7 +23105,7 @@
|
|
|
23105
23105
|
"name": "snippetMultiClass",
|
|
23106
23106
|
"type": "",
|
|
23107
23107
|
"returnType": "",
|
|
23108
|
-
"line":
|
|
23108
|
+
"line": 144
|
|
23109
23109
|
}
|
|
23110
23110
|
},
|
|
23111
23111
|
"snippetDisabledClass": {
|
|
@@ -23114,7 +23114,7 @@
|
|
|
23114
23114
|
"name": "snippetDisabledClass",
|
|
23115
23115
|
"type": "",
|
|
23116
23116
|
"returnType": "",
|
|
23117
|
-
"line":
|
|
23117
|
+
"line": 147
|
|
23118
23118
|
}
|
|
23119
23119
|
},
|
|
23120
23120
|
"snippetInlineLightClass": {
|
|
@@ -23123,7 +23123,7 @@
|
|
|
23123
23123
|
"name": "snippetInlineLightClass",
|
|
23124
23124
|
"type": "",
|
|
23125
23125
|
"returnType": "",
|
|
23126
|
-
"line":
|
|
23126
|
+
"line": 150
|
|
23127
23127
|
}
|
|
23128
23128
|
}
|
|
23129
23129
|
}
|
|
@@ -73589,7 +73589,7 @@
|
|
|
73589
73589
|
"name": "Basic",
|
|
73590
73590
|
"ctype": "miscellaneous",
|
|
73591
73591
|
"subtype": "variable",
|
|
73592
|
-
"file": "src/
|
|
73592
|
+
"file": "src/button/button-set.stories.ts",
|
|
73593
73593
|
"deprecated": false,
|
|
73594
73594
|
"deprecationMessage": "",
|
|
73595
73595
|
"type": "",
|
|
@@ -73599,7 +73599,7 @@
|
|
|
73599
73599
|
"name": "Basic",
|
|
73600
73600
|
"ctype": "miscellaneous",
|
|
73601
73601
|
"subtype": "variable",
|
|
73602
|
-
"file": "src/button/button
|
|
73602
|
+
"file": "src/button/button.stories.ts",
|
|
73603
73603
|
"deprecated": false,
|
|
73604
73604
|
"deprecationMessage": "",
|
|
73605
73605
|
"type": "",
|
|
@@ -73609,7 +73609,7 @@
|
|
|
73609
73609
|
"name": "Basic",
|
|
73610
73610
|
"ctype": "miscellaneous",
|
|
73611
73611
|
"subtype": "variable",
|
|
73612
|
-
"file": "src/button/button.stories.ts",
|
|
73612
|
+
"file": "src/button/icon-button.stories.ts",
|
|
73613
73613
|
"deprecated": false,
|
|
73614
73614
|
"deprecationMessage": "",
|
|
73615
73615
|
"type": "",
|
|
@@ -73619,7 +73619,7 @@
|
|
|
73619
73619
|
"name": "Basic",
|
|
73620
73620
|
"ctype": "miscellaneous",
|
|
73621
73621
|
"subtype": "variable",
|
|
73622
|
-
"file": "src/
|
|
73622
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
73623
73623
|
"deprecated": false,
|
|
73624
73624
|
"deprecationMessage": "",
|
|
73625
73625
|
"type": "",
|
|
@@ -73959,7 +73959,7 @@
|
|
|
73959
73959
|
"name": "Basic",
|
|
73960
73960
|
"ctype": "miscellaneous",
|
|
73961
73961
|
"subtype": "variable",
|
|
73962
|
-
"file": "src/
|
|
73962
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
73963
73963
|
"deprecated": false,
|
|
73964
73964
|
"deprecationMessage": "",
|
|
73965
73965
|
"type": "",
|
|
@@ -73969,7 +73969,7 @@
|
|
|
73969
73969
|
"name": "Basic",
|
|
73970
73970
|
"ctype": "miscellaneous",
|
|
73971
73971
|
"subtype": "variable",
|
|
73972
|
-
"file": "src/
|
|
73972
|
+
"file": "src/tag/tag.stories.ts",
|
|
73973
73973
|
"deprecated": false,
|
|
73974
73974
|
"deprecationMessage": "",
|
|
73975
73975
|
"type": "",
|
|
@@ -73979,7 +73979,7 @@
|
|
|
73979
73979
|
"name": "Basic",
|
|
73980
73980
|
"ctype": "miscellaneous",
|
|
73981
73981
|
"subtype": "variable",
|
|
73982
|
-
"file": "src/
|
|
73982
|
+
"file": "src/table/table.stories.ts",
|
|
73983
73983
|
"deprecated": false,
|
|
73984
73984
|
"deprecationMessage": "",
|
|
73985
73985
|
"type": "",
|
|
@@ -75320,7 +75320,7 @@
|
|
|
75320
75320
|
"deprecated": false,
|
|
75321
75321
|
"deprecationMessage": "",
|
|
75322
75322
|
"type": "",
|
|
75323
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-code-snippet
|
|
75323
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-code-snippet\n\t\t\tdisplay=\"multi\"\n\t\t\t[autoAlign]=\"true\"\n\t\t\t[copyButtonDescription]=\"copyButtonDescription\">\n\t\t\t{{snippet}}\n\t\t</cds-code-snippet>\n\t`\n})"
|
|
75324
75324
|
},
|
|
75325
75325
|
{
|
|
75326
75326
|
"name": "MultiTemplate",
|
|
@@ -76201,7 +76201,7 @@
|
|
|
76201
76201
|
"name": "Skeleton",
|
|
76202
76202
|
"ctype": "miscellaneous",
|
|
76203
76203
|
"subtype": "variable",
|
|
76204
|
-
"file": "src/
|
|
76204
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
76205
76205
|
"deprecated": false,
|
|
76206
76206
|
"deprecationMessage": "",
|
|
76207
76207
|
"type": "",
|
|
@@ -76211,7 +76211,7 @@
|
|
|
76211
76211
|
"name": "Skeleton",
|
|
76212
76212
|
"ctype": "miscellaneous",
|
|
76213
76213
|
"subtype": "variable",
|
|
76214
|
-
"file": "src/
|
|
76214
|
+
"file": "src/table/table.stories.ts",
|
|
76215
76215
|
"deprecated": false,
|
|
76216
76216
|
"deprecationMessage": "",
|
|
76217
76217
|
"type": "",
|
|
@@ -76321,21 +76321,21 @@
|
|
|
76321
76321
|
"name": "SkeletonTemplate",
|
|
76322
76322
|
"ctype": "miscellaneous",
|
|
76323
76323
|
"subtype": "variable",
|
|
76324
|
-
"file": "src/
|
|
76324
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
76325
76325
|
"deprecated": false,
|
|
76326
76326
|
"deprecationMessage": "",
|
|
76327
76327
|
"type": "",
|
|
76328
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t
|
|
76328
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tabs skeleton=\"true\">\n\t\t\t<cds-tab></cds-tab>\n\t\t\t<cds-tab></cds-tab>\n\t\t</cds-tabs>\n\n\t\t<div style=\"margin-top: 5rem\">\n\t\t\t<p>Tab skeleton component for cds-tab-header-group:</p>\n\t\t\t<cds-tabs-skeleton></cds-tabs-skeleton>\n\t\t</div>\n\t`\n})"
|
|
76329
76329
|
},
|
|
76330
76330
|
{
|
|
76331
76331
|
"name": "SkeletonTemplate",
|
|
76332
76332
|
"ctype": "miscellaneous",
|
|
76333
76333
|
"subtype": "variable",
|
|
76334
|
-
"file": "src/
|
|
76334
|
+
"file": "src/table/table.stories.ts",
|
|
76335
76335
|
"deprecated": false,
|
|
76336
76336
|
"deprecationMessage": "",
|
|
76337
76337
|
"type": "",
|
|
76338
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t
|
|
76338
|
+
"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-skeleton-table.component.ts\n\t\t-->\n\t\t<app-skeleton-table\n\t\t\t[skeletonModel]=\"skeletonModel\"\n\t\t\t[size]=\"size\"\n\t\t\t[striped]=\"striped\">\n\t\t</app-skeleton-table>\n\t`\n})"
|
|
76339
76339
|
},
|
|
76340
76340
|
{
|
|
76341
76341
|
"name": "SkeletonTemplate",
|
|
@@ -76431,41 +76431,41 @@
|
|
|
76431
76431
|
"name": "Template",
|
|
76432
76432
|
"ctype": "miscellaneous",
|
|
76433
76433
|
"subtype": "variable",
|
|
76434
|
-
"file": "src/
|
|
76434
|
+
"file": "src/button/button-set.stories.ts",
|
|
76435
76435
|
"deprecated": false,
|
|
76436
76436
|
"deprecationMessage": "",
|
|
76437
76437
|
"type": "",
|
|
76438
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
76438
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\" [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t\t<button cdsButton [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
76439
76439
|
},
|
|
76440
76440
|
{
|
|
76441
76441
|
"name": "Template",
|
|
76442
76442
|
"ctype": "miscellaneous",
|
|
76443
76443
|
"subtype": "variable",
|
|
76444
|
-
"file": "src/button/button
|
|
76444
|
+
"file": "src/button/button.stories.ts",
|
|
76445
76445
|
"deprecated": false,
|
|
76446
76446
|
"deprecationMessage": "",
|
|
76447
76447
|
"type": "",
|
|
76448
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
76448
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[cdsButton]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[isExpressive]=\"isExpressive\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseLeave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\tButton\n\t\t</button>\n\t`\n})"
|
|
76449
76449
|
},
|
|
76450
76450
|
{
|
|
76451
76451
|
"name": "Template",
|
|
76452
76452
|
"ctype": "miscellaneous",
|
|
76453
76453
|
"subtype": "variable",
|
|
76454
|
-
"file": "src/button/button.stories.ts",
|
|
76454
|
+
"file": "src/button/icon-button.stories.ts",
|
|
76455
76455
|
"deprecated": false,
|
|
76456
76456
|
"deprecationMessage": "",
|
|
76457
76457
|
"type": "",
|
|
76458
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[
|
|
76458
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-icon-button\n\t\t\tbuttonId=\"icon-btn1\"\n\t\t\ttype=\"button\"\n\t\t\t[kind]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[align]=\"align\"\n\t\t\t[buttonNgClass]=\"buttonNgClass\"\n\t\t\t[buttonAttributes]=\"buttonAttributes\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[showTooltipWhenDisabled]=\"showTooltipWhenDisabled\"\n\t\t\tdescription=\"Icon Description\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseLeave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\t<svg class=\"cds--btn__icon\" cdsIcon=\"copy\" size=\"16\"></svg>\n\t\t</cds-icon-button>\n\t`\n})"
|
|
76459
76459
|
},
|
|
76460
76460
|
{
|
|
76461
76461
|
"name": "Template",
|
|
76462
76462
|
"ctype": "miscellaneous",
|
|
76463
76463
|
"subtype": "variable",
|
|
76464
|
-
"file": "src/
|
|
76464
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
76465
76465
|
"deprecated": false,
|
|
76466
76466
|
"deprecationMessage": "",
|
|
76467
76467
|
"type": "",
|
|
76468
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
76468
|
+
"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})"
|
|
76469
76469
|
},
|
|
76470
76470
|
{
|
|
76471
76471
|
"name": "Template",
|
|
@@ -76801,31 +76801,31 @@
|
|
|
76801
76801
|
"name": "Template",
|
|
76802
76802
|
"ctype": "miscellaneous",
|
|
76803
76803
|
"subtype": "variable",
|
|
76804
|
-
"file": "src/
|
|
76804
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
76805
76805
|
"deprecated": false,
|
|
76806
76806
|
"deprecationMessage": "",
|
|
76807
76807
|
"type": "",
|
|
76808
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
76808
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tabs\n\t\t\t[type]=\"type\"\n\t\t\t[followFocus]=\"followFocus\"\n\t\t\t[isNavigation]=\"isNavigation\"\n\t\t\t[cacheActive]=\"cacheActive\">\n\t\t\t<cds-tab heading=\"one\">Tab Content 1</cds-tab>\n\t\t\t<cds-tab heading=\"two\">Tab Content 2</cds-tab>\n\t\t\t<cds-tab heading=\"three\" [tabContent]=\"three\"></cds-tab>\n\t\t\t<cds-tab heading=\"four\" [tabContent]=\"four\"></cds-tab>\n\t\t</cds-tabs>\n\n\t\t<!-- Use templates if you would like to have lifecycle hooks called when cacheActive is false -->\n\t\t<ng-template #three>\n\t\t\tTab Content 3\n\t\t</ng-template>\n\n\t\t<ng-template #four>\n\t\t\tTab Content 4\n\t\t</ng-template>\n\t`\n})"
|
|
76809
76809
|
},
|
|
76810
76810
|
{
|
|
76811
76811
|
"name": "Template",
|
|
76812
76812
|
"ctype": "miscellaneous",
|
|
76813
76813
|
"subtype": "variable",
|
|
76814
|
-
"file": "src/
|
|
76814
|
+
"file": "src/tag/tag.stories.ts",
|
|
76815
76815
|
"deprecated": false,
|
|
76816
76816
|
"deprecationMessage": "",
|
|
76817
76817
|
"type": "",
|
|
76818
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
76818
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag\n\t\t\t[type]=\"type\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[size]=\"size\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tRead only\n\t\t</cds-tag>\n\t`\n})"
|
|
76819
76819
|
},
|
|
76820
76820
|
{
|
|
76821
76821
|
"name": "Template",
|
|
76822
76822
|
"ctype": "miscellaneous",
|
|
76823
76823
|
"subtype": "variable",
|
|
76824
|
-
"file": "src/
|
|
76824
|
+
"file": "src/table/table.stories.ts",
|
|
76825
76825
|
"deprecated": false,
|
|
76826
76826
|
"deprecationMessage": "",
|
|
76827
76827
|
"type": "",
|
|
76828
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
76828
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-table.component.ts\n\t\t\t-->\n\t\t\t<app-table\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[enableSingleSelect]=\"enableSingleSelect\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t\t</app-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
76829
76829
|
},
|
|
76830
76830
|
{
|
|
76831
76831
|
"name": "Template",
|
|
@@ -80241,199 +80241,199 @@
|
|
|
80241
80241
|
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"width: 500px\">\n\t\t\t<cds-accordion>\n\t\t\t\t<cds-accordion-item [title]=\"title\" (selected)=\"selected($event)\">\n\t\t\t\t\tLorem ipsum dolor sit amet, \\\n\t\t\t\t\tconsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore \\\n\t\t\t\t\tet dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \\\n\t\t\t\t\tullamco laboris nisi ut aliquip ex ea commodo consequat.\n\t\t\t\t</cds-accordion-item>\n\t\t\t\t<cds-accordion-item [title]=\"titleWithContext\" [context]=\"{ index: 2 }\" (selected)=\"selected($event)\">\n\t\t\t\t\tLorem ipsum dolor sit amet, \\\n\t\t\t\t\tconsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore \\\n\t\t\t\t\tet dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \\\n\t\t\t\t\tullamco laboris nisi ut aliquip ex ea commodo consequat.\n\t\t\t\t</cds-accordion-item>\n\t\t\t</cds-accordion>\n\t\t</div>\n\t\t<ng-template #title>\n\t\t\t<p class=\"cds--accordion__title\">Section 1 title</p>\n\t\t</ng-template>\n\t\t<ng-template #titleWithContext let-index=\"index\">\n\t\t\t<p class=\"cds--accordion__title\">Section {{ index }} title</p>\n\t\t</ng-template>\n\t`\n})"
|
|
80242
80242
|
}
|
|
80243
80243
|
],
|
|
80244
|
-
"src/
|
|
80244
|
+
"src/button/button-set.stories.ts": [
|
|
80245
80245
|
{
|
|
80246
80246
|
"name": "Basic",
|
|
80247
80247
|
"ctype": "miscellaneous",
|
|
80248
80248
|
"subtype": "variable",
|
|
80249
|
-
"file": "src/
|
|
80249
|
+
"file": "src/button/button-set.stories.ts",
|
|
80250
80250
|
"deprecated": false,
|
|
80251
80251
|
"deprecationMessage": "",
|
|
80252
80252
|
"type": "",
|
|
80253
80253
|
"defaultValue": "Template.bind({})"
|
|
80254
80254
|
},
|
|
80255
80255
|
{
|
|
80256
|
-
"name": "
|
|
80256
|
+
"name": "Template",
|
|
80257
80257
|
"ctype": "miscellaneous",
|
|
80258
80258
|
"subtype": "variable",
|
|
80259
|
-
"file": "src/
|
|
80259
|
+
"file": "src/button/button-set.stories.ts",
|
|
80260
80260
|
"deprecated": false,
|
|
80261
80261
|
"deprecationMessage": "",
|
|
80262
|
-
"type": ""
|
|
80263
|
-
|
|
80262
|
+
"type": "",
|
|
80263
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\" [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t\t<button cdsButton [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
80264
|
+
}
|
|
80265
|
+
],
|
|
80266
|
+
"src/button/button.stories.ts": [
|
|
80264
80267
|
{
|
|
80265
|
-
"name": "
|
|
80268
|
+
"name": "Basic",
|
|
80266
80269
|
"ctype": "miscellaneous",
|
|
80267
80270
|
"subtype": "variable",
|
|
80268
|
-
"file": "src/
|
|
80271
|
+
"file": "src/button/button.stories.ts",
|
|
80269
80272
|
"deprecated": false,
|
|
80270
80273
|
"deprecationMessage": "",
|
|
80271
80274
|
"type": "",
|
|
80272
|
-
"defaultValue": "
|
|
80275
|
+
"defaultValue": "Template.bind({})"
|
|
80273
80276
|
},
|
|
80274
80277
|
{
|
|
80275
|
-
"name": "
|
|
80278
|
+
"name": "Template",
|
|
80276
80279
|
"ctype": "miscellaneous",
|
|
80277
80280
|
"subtype": "variable",
|
|
80278
|
-
"file": "src/
|
|
80281
|
+
"file": "src/button/button.stories.ts",
|
|
80279
80282
|
"deprecated": false,
|
|
80280
80283
|
"deprecationMessage": "",
|
|
80281
80284
|
"type": "",
|
|
80282
|
-
"defaultValue": "
|
|
80285
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[cdsButton]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[isExpressive]=\"isExpressive\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseLeave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\tButton\n\t\t</button>\n\t`\n})"
|
|
80283
80286
|
},
|
|
80284
80287
|
{
|
|
80285
|
-
"name": "
|
|
80288
|
+
"name": "WithIcon",
|
|
80286
80289
|
"ctype": "miscellaneous",
|
|
80287
80290
|
"subtype": "variable",
|
|
80288
|
-
"file": "src/
|
|
80291
|
+
"file": "src/button/button.stories.ts",
|
|
80289
80292
|
"deprecated": false,
|
|
80290
80293
|
"deprecationMessage": "",
|
|
80291
80294
|
"type": "",
|
|
80292
|
-
"defaultValue": "(
|
|
80295
|
+
"defaultValue": "WithIconTemplate.bind({})"
|
|
80293
80296
|
},
|
|
80294
80297
|
{
|
|
80295
|
-
"name": "
|
|
80298
|
+
"name": "WithIconTemplate",
|
|
80296
80299
|
"ctype": "miscellaneous",
|
|
80297
80300
|
"subtype": "variable",
|
|
80298
|
-
"file": "src/
|
|
80301
|
+
"file": "src/button/button.stories.ts",
|
|
80299
80302
|
"deprecated": false,
|
|
80300
80303
|
"deprecationMessage": "",
|
|
80301
80304
|
"type": "",
|
|
80302
|
-
"defaultValue": "
|
|
80303
|
-
}
|
|
80305
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[cdsButton]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[isExpressive]=\"isExpressive\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseleave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\tWith icon\n\t\t\t<svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n\t\t</button>\n\t`\n})"
|
|
80306
|
+
}
|
|
80307
|
+
],
|
|
80308
|
+
"src/breadcrumb/breadcrumb.stories.ts": [
|
|
80304
80309
|
{
|
|
80305
|
-
"name": "
|
|
80310
|
+
"name": "Basic",
|
|
80306
80311
|
"ctype": "miscellaneous",
|
|
80307
80312
|
"subtype": "variable",
|
|
80308
80313
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80309
80314
|
"deprecated": false,
|
|
80310
80315
|
"deprecationMessage": "",
|
|
80311
80316
|
"type": "",
|
|
80312
|
-
"defaultValue": "(
|
|
80317
|
+
"defaultValue": "Template.bind({})"
|
|
80313
80318
|
},
|
|
80314
80319
|
{
|
|
80315
|
-
"name": "
|
|
80320
|
+
"name": "breadcrumbItems",
|
|
80316
80321
|
"ctype": "miscellaneous",
|
|
80317
80322
|
"subtype": "variable",
|
|
80318
80323
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80319
80324
|
"deprecated": false,
|
|
80320
80325
|
"deprecationMessage": "",
|
|
80321
|
-
"type": ""
|
|
80322
|
-
"defaultValue": "ModelWTemplate.bind({})"
|
|
80326
|
+
"type": ""
|
|
80323
80327
|
},
|
|
80324
80328
|
{
|
|
80325
|
-
"name": "
|
|
80329
|
+
"name": "createBreadcrumbItems",
|
|
80326
80330
|
"ctype": "miscellaneous",
|
|
80327
80331
|
"subtype": "variable",
|
|
80328
80332
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80329
80333
|
"deprecated": false,
|
|
80330
80334
|
"deprecationMessage": "",
|
|
80331
80335
|
"type": "",
|
|
80332
|
-
"defaultValue": "(
|
|
80336
|
+
"defaultValue": "(count: number, content = \"Breadcrumb\"): Array<BreadcrumbItem> => {\n\tif (breadcrumbItems && count === breadcrumbItems.length) {\n\t\treturn breadcrumbItems;\n\t}\n\tbreadcrumbItems = Array(count).fill(0).map((x, i) => ({\n\t\tcontent: `${content} ${i + 1}`,\n\t\thref: \"#\" + (i + 1)\n\t}));\n\treturn breadcrumbItems;\n}"
|
|
80333
80337
|
},
|
|
80334
80338
|
{
|
|
80335
|
-
"name": "
|
|
80339
|
+
"name": "CurrentPage",
|
|
80336
80340
|
"ctype": "miscellaneous",
|
|
80337
80341
|
"subtype": "variable",
|
|
80338
80342
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80339
80343
|
"deprecated": false,
|
|
80340
80344
|
"deprecationMessage": "",
|
|
80341
80345
|
"type": "",
|
|
80342
|
-
"defaultValue": "
|
|
80346
|
+
"defaultValue": "CurrentPageTemplate.bind({})"
|
|
80343
80347
|
},
|
|
80344
80348
|
{
|
|
80345
|
-
"name": "
|
|
80349
|
+
"name": "CurrentPageTemplate",
|
|
80346
80350
|
"ctype": "miscellaneous",
|
|
80347
80351
|
"subtype": "variable",
|
|
80348
80352
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80349
80353
|
"deprecated": false,
|
|
80350
80354
|
"deprecationMessage": "",
|
|
80351
80355
|
"type": "",
|
|
80352
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb
|
|
80356
|
+
"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})"
|
|
80353
80357
|
},
|
|
80354
80358
|
{
|
|
80355
|
-
"name": "
|
|
80359
|
+
"name": "Model",
|
|
80356
80360
|
"ctype": "miscellaneous",
|
|
80357
80361
|
"subtype": "variable",
|
|
80358
80362
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80359
80363
|
"deprecated": false,
|
|
80360
80364
|
"deprecationMessage": "",
|
|
80361
80365
|
"type": "",
|
|
80362
|
-
"defaultValue": "(
|
|
80366
|
+
"defaultValue": "ModelTemplate.bind({})"
|
|
80363
80367
|
},
|
|
80364
80368
|
{
|
|
80365
|
-
"name": "
|
|
80369
|
+
"name": "ModelTemplate",
|
|
80366
80370
|
"ctype": "miscellaneous",
|
|
80367
80371
|
"subtype": "variable",
|
|
80368
80372
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80369
80373
|
"deprecated": false,
|
|
80370
80374
|
"deprecationMessage": "",
|
|
80371
80375
|
"type": "",
|
|
80372
|
-
"defaultValue": "(
|
|
80373
|
-
}
|
|
80374
|
-
],
|
|
80375
|
-
"src/button/button-set.stories.ts": [
|
|
80376
|
+
"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})"
|
|
80377
|
+
},
|
|
80376
80378
|
{
|
|
80377
|
-
"name": "
|
|
80379
|
+
"name": "ModelWithTemplate",
|
|
80378
80380
|
"ctype": "miscellaneous",
|
|
80379
80381
|
"subtype": "variable",
|
|
80380
|
-
"file": "src/
|
|
80382
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80381
80383
|
"deprecated": false,
|
|
80382
80384
|
"deprecationMessage": "",
|
|
80383
80385
|
"type": "",
|
|
80384
|
-
"defaultValue": "
|
|
80386
|
+
"defaultValue": "ModelWTemplate.bind({})"
|
|
80385
80387
|
},
|
|
80386
80388
|
{
|
|
80387
|
-
"name": "
|
|
80389
|
+
"name": "ModelWTemplate",
|
|
80388
80390
|
"ctype": "miscellaneous",
|
|
80389
80391
|
"subtype": "variable",
|
|
80390
|
-
"file": "src/
|
|
80392
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80391
80393
|
"deprecated": false,
|
|
80392
80394
|
"deprecationMessage": "",
|
|
80393
80395
|
"type": "",
|
|
80394
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
80395
|
-
}
|
|
80396
|
-
],
|
|
80397
|
-
"src/button/button.stories.ts": [
|
|
80396
|
+
"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})"
|
|
80397
|
+
},
|
|
80398
80398
|
{
|
|
80399
|
-
"name": "
|
|
80399
|
+
"name": "Skeleton",
|
|
80400
80400
|
"ctype": "miscellaneous",
|
|
80401
80401
|
"subtype": "variable",
|
|
80402
|
-
"file": "src/
|
|
80402
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80403
80403
|
"deprecated": false,
|
|
80404
80404
|
"deprecationMessage": "",
|
|
80405
80405
|
"type": "",
|
|
80406
|
-
"defaultValue": "
|
|
80406
|
+
"defaultValue": "WithSkeleton.bind({})"
|
|
80407
80407
|
},
|
|
80408
80408
|
{
|
|
80409
80409
|
"name": "Template",
|
|
80410
80410
|
"ctype": "miscellaneous",
|
|
80411
80411
|
"subtype": "variable",
|
|
80412
|
-
"file": "src/
|
|
80412
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80413
80413
|
"deprecated": false,
|
|
80414
80414
|
"deprecationMessage": "",
|
|
80415
80415
|
"type": "",
|
|
80416
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
80416
|
+
"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})"
|
|
80417
80417
|
},
|
|
80418
80418
|
{
|
|
80419
|
-
"name": "
|
|
80419
|
+
"name": "WithSkeleton",
|
|
80420
80420
|
"ctype": "miscellaneous",
|
|
80421
80421
|
"subtype": "variable",
|
|
80422
|
-
"file": "src/
|
|
80422
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80423
80423
|
"deprecated": false,
|
|
80424
80424
|
"deprecationMessage": "",
|
|
80425
80425
|
"type": "",
|
|
80426
|
-
"defaultValue": "
|
|
80426
|
+
"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})"
|
|
80427
80427
|
},
|
|
80428
80428
|
{
|
|
80429
|
-
"name": "
|
|
80429
|
+
"name": "withTemplate",
|
|
80430
80430
|
"ctype": "miscellaneous",
|
|
80431
80431
|
"subtype": "variable",
|
|
80432
|
-
"file": "src/
|
|
80432
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
80433
80433
|
"deprecated": false,
|
|
80434
80434
|
"deprecationMessage": "",
|
|
80435
80435
|
"type": "",
|
|
80436
|
-
"defaultValue": "(
|
|
80436
|
+
"defaultValue": "(templateRef, items) => items.map(item => Object.assign(item, { template: templateRef }))"
|
|
80437
80437
|
}
|
|
80438
80438
|
],
|
|
80439
80439
|
"src/checkbox/checkbox.stories.ts": [
|
|
@@ -80547,7 +80547,7 @@
|
|
|
80547
80547
|
"deprecated": false,
|
|
80548
80548
|
"deprecationMessage": "",
|
|
80549
80549
|
"type": "",
|
|
80550
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-code-snippet
|
|
80550
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-code-snippet\n\t\t\tdisplay=\"multi\"\n\t\t\t[autoAlign]=\"true\"\n\t\t\t[copyButtonDescription]=\"copyButtonDescription\">\n\t\t\t{{snippet}}\n\t\t</cds-code-snippet>\n\t`\n})"
|
|
80551
80551
|
},
|
|
80552
80552
|
{
|
|
80553
80553
|
"name": "Skeleton",
|
|
@@ -82198,480 +82198,480 @@
|
|
|
82198
82198
|
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-structured-list [condensed]=\"condensed\">\n\t\t\t<cds-list-header>\n\t\t\t\t<cds-list-column nowrap=\"true\">Column 1</cds-list-column>\n\t\t\t\t<cds-list-column nowrap=\"true\">Column 2</cds-list-column>\n\t\t\t\t<cds-list-column>Column 3</cds-list-column>\n\t\t\t</cds-list-header>\n\t\t\t<cds-list-row>\n\t\t\t\t<cds-list-column>Row 1</cds-list-column>\n\t\t\t\t<cds-list-column nowrap=\"true\">Row One</cds-list-column>\n\t\t\t\t<cds-list-column>\n\t\t\t\t\tLorem ipsum dolor sit amet,\n\t\t\t\t\tconsectetur adipiscing elit. Nunc dui magna,\n\t\t\t\t\tfinibus id tortor sed, aliquet bibendum augue.\n\t\t\t\t\tAenean posuere sem vel euismod dignissim. Nulla ut cursus dolor.\n\t\t\t\t\tPellentesque vulputate nisl a porttitor interdum.\n\t\t\t\t</cds-list-column>\n\t\t\t</cds-list-row>\n\t\t\t<cds-list-row>\n\t\t\t\t<cds-list-column>Row 2</cds-list-column>\n\t\t\t\t<cds-list-column nowrap=\"true\">Row Two</cds-list-column>\n\t\t\t\t<cds-list-column>\n\t\t\t\t\tLorem ipsum dolor sit amet,\n\t\t\t\t\tconsectetur adipiscing elit. Nunc dui magna,\n\t\t\t\t\tfinibus id tortor sed, aliquet bibendum augue.\n\t\t\t\t\tAenean posuere sem vel euismod dignissim. Nulla ut cursus dolor.\n\t\t\t\t\tPellentesque vulputate nisl a porttitor interdum.\n\t\t\t\t</cds-list-column>\n\t\t\t</cds-list-row>\n\t\t</cds-structured-list>\n\t`\n})"
|
|
82199
82199
|
}
|
|
82200
82200
|
],
|
|
82201
|
-
"src/
|
|
82201
|
+
"src/tabs/tabs.stories.ts": [
|
|
82202
82202
|
{
|
|
82203
82203
|
"name": "Basic",
|
|
82204
82204
|
"ctype": "miscellaneous",
|
|
82205
82205
|
"subtype": "variable",
|
|
82206
|
-
"file": "src/
|
|
82206
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82207
82207
|
"deprecated": false,
|
|
82208
82208
|
"deprecationMessage": "",
|
|
82209
82209
|
"type": "",
|
|
82210
82210
|
"defaultValue": "Template.bind({})"
|
|
82211
82211
|
},
|
|
82212
82212
|
{
|
|
82213
|
-
"name": "
|
|
82213
|
+
"name": "BeforeAndAfter",
|
|
82214
82214
|
"ctype": "miscellaneous",
|
|
82215
82215
|
"subtype": "variable",
|
|
82216
|
-
"file": "src/
|
|
82216
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82217
82217
|
"deprecated": false,
|
|
82218
82218
|
"deprecationMessage": "",
|
|
82219
82219
|
"type": "",
|
|
82220
|
-
"defaultValue": "(
|
|
82220
|
+
"defaultValue": "BeforeAndAfterTemplate.bind({})"
|
|
82221
82221
|
},
|
|
82222
82222
|
{
|
|
82223
|
-
"name": "
|
|
82223
|
+
"name": "BeforeAndAfterTemplate",
|
|
82224
82224
|
"ctype": "miscellaneous",
|
|
82225
82225
|
"subtype": "variable",
|
|
82226
|
-
"file": "src/
|
|
82226
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82227
82227
|
"deprecated": false,
|
|
82228
82228
|
"deprecationMessage": "",
|
|
82229
82229
|
"type": "",
|
|
82230
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
82230
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"font-weight: 600; padding-bottom: 10px; padding-top: 20px;\">before</div>\n\t\t<cds-tabs [type]=\"type\" [followFocus]=\"followFocus\" [isNavigation]=\"isNavigation\">\n\t\t\t<cds-tab heading=\"one\">foo</cds-tab>\n\t\t\t<cds-tab heading=\"two\">bar</cds-tab>\n\t\t\t<span before>content before</span>\n\t\t</cds-tabs>\n\t\t<div style=\"font-weight: 600; padding-bottom: 10px; padding-top: 20px;\">after</div>\n\t\t<cds-tabs [type]=\"type\" [followFocus]=\"followFocus\" [isNavigation]=\"isNavigation\">\n\t\t\t<cds-tab heading=\"one\">foo</cds-tab>\n\t\t\t<cds-tab heading=\"two\">bar</cds-tab>\n\t\t\t<span after>content after</span>\n\t\t</cds-tabs>\n\t\t<div style=\"font-weight: 600; padding-bottom: 10px; padding-top: 20px;\">both</div>\n\t\t<cds-tabs [type]=\"type\" [followFocus]=\"followFocus\" [isNavigation]=\"isNavigation\">\n\t\t\t<cds-tab heading=\"one\">foo</cds-tab>\n\t\t\t<cds-tab heading=\"two\">bar</cds-tab>\n\t\t\t<span before>content before</span>\n\t\t\t<span after>content after</span>\n\t\t</cds-tabs>\n\t`\n})"
|
|
82231
82231
|
},
|
|
82232
82232
|
{
|
|
82233
|
-
"name": "
|
|
82233
|
+
"name": "Skeleton",
|
|
82234
82234
|
"ctype": "miscellaneous",
|
|
82235
82235
|
"subtype": "variable",
|
|
82236
|
-
"file": "src/
|
|
82236
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82237
82237
|
"deprecated": false,
|
|
82238
82238
|
"deprecationMessage": "",
|
|
82239
82239
|
"type": "",
|
|
82240
|
-
"defaultValue": "
|
|
82240
|
+
"defaultValue": "SkeletonTemplate.bind({})"
|
|
82241
82241
|
},
|
|
82242
82242
|
{
|
|
82243
|
-
"name": "
|
|
82243
|
+
"name": "SkeletonTemplate",
|
|
82244
82244
|
"ctype": "miscellaneous",
|
|
82245
82245
|
"subtype": "variable",
|
|
82246
|
-
"file": "src/
|
|
82246
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82247
82247
|
"deprecated": false,
|
|
82248
82248
|
"deprecationMessage": "",
|
|
82249
82249
|
"type": "",
|
|
82250
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
82250
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tabs skeleton=\"true\">\n\t\t\t<cds-tab></cds-tab>\n\t\t\t<cds-tab></cds-tab>\n\t\t</cds-tabs>\n\n\t\t<div style=\"margin-top: 5rem\">\n\t\t\t<p>Tab skeleton component for cds-tab-header-group:</p>\n\t\t\t<cds-tabs-skeleton></cds-tabs-skeleton>\n\t\t</div>\n\t`\n})"
|
|
82251
82251
|
},
|
|
82252
82252
|
{
|
|
82253
|
-
"name": "
|
|
82253
|
+
"name": "TabheaderGroup",
|
|
82254
82254
|
"ctype": "miscellaneous",
|
|
82255
82255
|
"subtype": "variable",
|
|
82256
|
-
"file": "src/
|
|
82256
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82257
82257
|
"deprecated": false,
|
|
82258
82258
|
"deprecationMessage": "",
|
|
82259
82259
|
"type": "",
|
|
82260
|
-
"defaultValue": "
|
|
82260
|
+
"defaultValue": "TabHeaderGroupTemplate.bind({})"
|
|
82261
82261
|
},
|
|
82262
82262
|
{
|
|
82263
|
-
"name": "
|
|
82263
|
+
"name": "TabHeaderGroupTemplate",
|
|
82264
82264
|
"ctype": "miscellaneous",
|
|
82265
82265
|
"subtype": "variable",
|
|
82266
|
-
"file": "src/
|
|
82266
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82267
82267
|
"deprecated": false,
|
|
82268
82268
|
"deprecationMessage": "",
|
|
82269
82269
|
"type": "",
|
|
82270
|
-
"defaultValue": "
|
|
82270
|
+
"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/pagination/stories/pagination.component.ts\n\t\t-->\n\t\t<app-header-group\n\t\t\t[type]=\"type\"\n\t\t\t[followFocus]=\"followFocus\"\n\t\t\t[cacheActive]=\"cacheActive\"\n\t\t\t[isNavigation]=\"isNavigation\">\n\t\t</app-header-group>\n\t`\n})"
|
|
82271
82271
|
},
|
|
82272
82272
|
{
|
|
82273
|
-
"name": "
|
|
82273
|
+
"name": "Template",
|
|
82274
82274
|
"ctype": "miscellaneous",
|
|
82275
82275
|
"subtype": "variable",
|
|
82276
|
-
"file": "src/
|
|
82276
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82277
82277
|
"deprecated": false,
|
|
82278
82278
|
"deprecationMessage": "",
|
|
82279
82279
|
"type": "",
|
|
82280
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t
|
|
82280
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tabs\n\t\t\t[type]=\"type\"\n\t\t\t[followFocus]=\"followFocus\"\n\t\t\t[isNavigation]=\"isNavigation\"\n\t\t\t[cacheActive]=\"cacheActive\">\n\t\t\t<cds-tab heading=\"one\">Tab Content 1</cds-tab>\n\t\t\t<cds-tab heading=\"two\">Tab Content 2</cds-tab>\n\t\t\t<cds-tab heading=\"three\" [tabContent]=\"three\"></cds-tab>\n\t\t\t<cds-tab heading=\"four\" [tabContent]=\"four\"></cds-tab>\n\t\t</cds-tabs>\n\n\t\t<!-- Use templates if you would like to have lifecycle hooks called when cacheActive is false -->\n\t\t<ng-template #three>\n\t\t\tTab Content 3\n\t\t</ng-template>\n\n\t\t<ng-template #four>\n\t\t\tTab Content 4\n\t\t</ng-template>\n\t`\n})"
|
|
82281
82281
|
},
|
|
82282
82282
|
{
|
|
82283
|
-
"name": "
|
|
82283
|
+
"name": "With",
|
|
82284
82284
|
"ctype": "miscellaneous",
|
|
82285
82285
|
"subtype": "variable",
|
|
82286
|
-
"file": "src/
|
|
82286
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82287
82287
|
"deprecated": false,
|
|
82288
82288
|
"deprecationMessage": "",
|
|
82289
82289
|
"type": "",
|
|
82290
|
-
"defaultValue": "(
|
|
82290
|
+
"defaultValue": "WithTemplate.bind({})"
|
|
82291
82291
|
},
|
|
82292
82292
|
{
|
|
82293
|
-
"name": "
|
|
82293
|
+
"name": "WithTemplate",
|
|
82294
82294
|
"ctype": "miscellaneous",
|
|
82295
82295
|
"subtype": "variable",
|
|
82296
|
-
"file": "src/
|
|
82296
|
+
"file": "src/tabs/tabs.stories.ts",
|
|
82297
82297
|
"deprecated": false,
|
|
82298
82298
|
"deprecationMessage": "",
|
|
82299
82299
|
"type": "",
|
|
82300
|
-
"defaultValue": "
|
|
82301
|
-
}
|
|
82300
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<ng-template #customTabs let-item>\n\t\t\t{{item ? item.name : \"wait for it\"}}\n\t\t</ng-template>\n\t\t<ng-template #iconTab>\n\t\t\t<div style=\"height: 14px;\">\n\t\t\t\tSomething custom\n\t\t\t\t<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"\n\t\t\t\tstyle=\"height: 14px; width: 14px; fill: #3d70b2;\">\n\t\t\t\t\t<path d=\"M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zM8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16z\"></path>\n\t\t\t\t\t<path d=\"M9 13H7V7h2z\"></path>\n\t\t\t\t\t<path d=\"M7 4a1 1 0 1 1 2 0 1 1 0 1 1-2 0\"></path>\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t</ng-template>\n\t\t<cds-tabs [type]=\"type\" [followFocus]=\"followFocus\" [isNavigation]=\"isNavigation\">\n\t\t\t<cds-tab\n\t\t\t\t*ngFor=\"let item of data; let i = index;\"\n\t\t\t\t[heading]=\"customTabs\"\n\t\t\t\ttitle=\"Tab Content\"\n\t\t\t\t[context]=\"item\">\n\t\t\t\tTab Content {{i + 1}}\n\t\t\t</cds-tab>\n\t\t\t<cds-tab [heading]=\"iconTab\" title=\"Custom tab content\">Tab Content Custom</cds-tab>\n\t\t</cds-tabs>\n\t`\n})"
|
|
82301
|
+
}
|
|
82302
|
+
],
|
|
82303
|
+
"src/tag/tag.stories.ts": [
|
|
82302
82304
|
{
|
|
82303
|
-
"name": "
|
|
82305
|
+
"name": "Basic",
|
|
82304
82306
|
"ctype": "miscellaneous",
|
|
82305
82307
|
"subtype": "variable",
|
|
82306
|
-
"file": "src/
|
|
82308
|
+
"file": "src/tag/tag.stories.ts",
|
|
82307
82309
|
"deprecated": false,
|
|
82308
82310
|
"deprecationMessage": "",
|
|
82309
82311
|
"type": "",
|
|
82310
|
-
"defaultValue": "(
|
|
82312
|
+
"defaultValue": "Template.bind({})"
|
|
82311
82313
|
},
|
|
82312
82314
|
{
|
|
82313
|
-
"name": "
|
|
82315
|
+
"name": "Filter",
|
|
82314
82316
|
"ctype": "miscellaneous",
|
|
82315
82317
|
"subtype": "variable",
|
|
82316
|
-
"file": "src/
|
|
82318
|
+
"file": "src/tag/tag.stories.ts",
|
|
82317
82319
|
"deprecated": false,
|
|
82318
82320
|
"deprecationMessage": "",
|
|
82319
82321
|
"type": "",
|
|
82320
|
-
"defaultValue": "(
|
|
82322
|
+
"defaultValue": "FilteredTemplate.bind({})"
|
|
82321
82323
|
},
|
|
82322
82324
|
{
|
|
82323
|
-
"name": "
|
|
82325
|
+
"name": "FilteredTemplate",
|
|
82324
82326
|
"ctype": "miscellaneous",
|
|
82325
82327
|
"subtype": "variable",
|
|
82326
|
-
"file": "src/
|
|
82328
|
+
"file": "src/tag/tag.stories.ts",
|
|
82327
82329
|
"deprecated": false,
|
|
82328
82330
|
"deprecationMessage": "",
|
|
82329
82331
|
"type": "",
|
|
82330
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
82332
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-filter\n\t\t\t[type]=\"type\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\ttitle=\"Filter\"\n\t\t\tcloseButtonLabel=\"Clear\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tFiltered\n\t\t</cds-tag-filter>\n\t`\n})"
|
|
82331
82333
|
},
|
|
82332
82334
|
{
|
|
82333
|
-
"name": "
|
|
82335
|
+
"name": "OperationalTag",
|
|
82334
82336
|
"ctype": "miscellaneous",
|
|
82335
82337
|
"subtype": "variable",
|
|
82336
|
-
"file": "src/
|
|
82338
|
+
"file": "src/tag/tag.stories.ts",
|
|
82337
82339
|
"deprecated": false,
|
|
82338
82340
|
"deprecationMessage": "",
|
|
82339
82341
|
"type": "",
|
|
82340
|
-
"defaultValue": "(
|
|
82342
|
+
"defaultValue": "OperationalTagTemplate.bind({})"
|
|
82341
82343
|
},
|
|
82342
82344
|
{
|
|
82343
|
-
"name": "
|
|
82345
|
+
"name": "OperationalTagTemplate",
|
|
82344
82346
|
"ctype": "miscellaneous",
|
|
82345
82347
|
"subtype": "variable",
|
|
82346
|
-
"file": "src/
|
|
82348
|
+
"file": "src/tag/tag.stories.ts",
|
|
82347
82349
|
"deprecated": false,
|
|
82348
82350
|
"deprecationMessage": "",
|
|
82349
82351
|
"type": "",
|
|
82350
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
82352
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-operational\n\t\t\ttype=\"cyan\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tOperational\n\t\t</cds-tag-operational>\n\n\n\t\t<div\n\t\t\tcdsPopover\n\t\t\t[isOpen]=\"isOpen\"\n\t\t\t[highContrast]=\"true\">\n\t\t\t<cds-tag-operational\n\t\t\t\t[type]=\"type\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t(click)=\"isOpen = !isOpen\">\n\t\t\t\t<div cdsTagIcon>\n\t\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t\t</div>\n\t\t\t\tOperational w/ popover\n\t\t\t</cds-tag-operational>\n\t\t\t<cds-popover-content>\n\t\t\t\t<div class=\"popover-content\">\n\t\t\t\t\tTag 1 name <br>\n\t\t\t\t\tTag 2 name <br>\n\t\t\t\t\tTag 3 name <br>\n\t\t\t\t\tTag 4 name <br>\n\t\t\t\t\t<cds-tag type=\"green\">Tag 5 name</cds-tag>\n\t\t\t\t</div>\n\t\t\t</cds-popover-content>\n\t\t</div>\n\t`,\n\tstyles: [\n\t\t`.popover-content {\n\t\t\tline-height: 1.5;\n\t\t\tpadding: 1rem;\n\t\t\tfont-size: 14px;\n\t\t}`\n\t]\n})"
|
|
82351
82353
|
},
|
|
82352
82354
|
{
|
|
82353
|
-
"name": "
|
|
82355
|
+
"name": "SelectedTag",
|
|
82354
82356
|
"ctype": "miscellaneous",
|
|
82355
82357
|
"subtype": "variable",
|
|
82356
|
-
"file": "src/
|
|
82358
|
+
"file": "src/tag/tag.stories.ts",
|
|
82357
82359
|
"deprecated": false,
|
|
82358
82360
|
"deprecationMessage": "",
|
|
82359
82361
|
"type": "",
|
|
82360
|
-
"defaultValue": "
|
|
82362
|
+
"defaultValue": "SelectedTagTemplate.bind({})"
|
|
82361
82363
|
},
|
|
82362
82364
|
{
|
|
82363
|
-
"name": "
|
|
82365
|
+
"name": "SelectedTagTemplate",
|
|
82364
82366
|
"ctype": "miscellaneous",
|
|
82365
82367
|
"subtype": "variable",
|
|
82366
|
-
"file": "src/
|
|
82368
|
+
"file": "src/tag/tag.stories.ts",
|
|
82367
82369
|
"deprecated": false,
|
|
82368
82370
|
"deprecationMessage": "",
|
|
82369
82371
|
"type": "",
|
|
82370
|
-
"defaultValue": "
|
|
82372
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag-selectable\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[selected]=\"selected\"\n\t\t\t(selectedChange)=\"selectedChange($event)\"\n\t\t\t(click)=\"onClick($event)\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tSelectable\n\t\t</cds-tag-selectable>\n\t`\n})"
|
|
82371
82373
|
},
|
|
82372
82374
|
{
|
|
82373
|
-
"name": "
|
|
82375
|
+
"name": "Template",
|
|
82374
82376
|
"ctype": "miscellaneous",
|
|
82375
82377
|
"subtype": "variable",
|
|
82376
|
-
"file": "src/
|
|
82378
|
+
"file": "src/tag/tag.stories.ts",
|
|
82377
82379
|
"deprecated": false,
|
|
82378
82380
|
"deprecationMessage": "",
|
|
82379
82381
|
"type": "",
|
|
82380
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t
|
|
82381
|
-
}
|
|
82382
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-tag\n\t\t\t[type]=\"type\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[size]=\"size\">\n\t\t\t<div cdsTagIcon>\n\t\t\t\t<svg ibmIcon=\"settings\" size=\"16\"></svg>\n\t\t\t</div>\n\t\t\tRead only\n\t\t</cds-tag>\n\t`\n})"
|
|
82383
|
+
}
|
|
82384
|
+
],
|
|
82385
|
+
"src/table/table.stories.ts": [
|
|
82382
82386
|
{
|
|
82383
|
-
"name": "
|
|
82387
|
+
"name": "Basic",
|
|
82384
82388
|
"ctype": "miscellaneous",
|
|
82385
82389
|
"subtype": "variable",
|
|
82386
82390
|
"file": "src/table/table.stories.ts",
|
|
82387
82391
|
"deprecated": false,
|
|
82388
82392
|
"deprecationMessage": "",
|
|
82389
82393
|
"type": "",
|
|
82390
|
-
"defaultValue": "(
|
|
82394
|
+
"defaultValue": "Template.bind({})"
|
|
82391
82395
|
},
|
|
82392
82396
|
{
|
|
82393
|
-
"name": "
|
|
82397
|
+
"name": "DisabledRowsTemplate",
|
|
82394
82398
|
"ctype": "miscellaneous",
|
|
82395
82399
|
"subtype": "variable",
|
|
82396
82400
|
"file": "src/table/table.stories.ts",
|
|
82397
82401
|
"deprecated": false,
|
|
82398
82402
|
"deprecationMessage": "",
|
|
82399
82403
|
"type": "",
|
|
82400
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<cds-table-toolbar
|
|
82404
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<cds-table-toolbar [model]=\"model\" [batchText]=\"batchText\" #toolbar>\n\t\t\t\t<cds-table-toolbar-actions>\n\t\t\t\t\t<button cdsButton=\"primary\">\n\t\t\t\t\t\tDelete\n\t\t\t\t\t\t<svg cdsIcon=\"delete\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button cdsButton=\"primary\">\n\t\t\t\t\t\tSave\n\t\t\t\t\t\t<svg cdsIcon=\"save\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button cdsButton=\"primary\">\n\t\t\t\t\t\tDownload\n\t\t\t\t\t\t<svg cdsIcon=\"download\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</cds-table-toolbar-actions>\n\t\t\t\t<cds-table-toolbar-content *ngIf=\"!toolbar.selected\">\n\t\t\t\t\t<cds-table-toolbar-search [expandable]=\"true\"></cds-table-toolbar-search>\n\t\t\t\t\t<button cdsButton=\"ghost\" class=\"toolbar-action\">\n\t\t\t\t\t\t<svg cdsIcon=\"settings\" size=\"16\" class=\"cds--toolbar-action__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button cdsButton=\"primary\" size=\"sm\">\n\t\t\t\t\t\tPrimary button<svg cdsIcon=\"add\" size=\"20\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</cds-table-toolbar-content>\n\t\t\t</cds-table-toolbar>\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-no-data-table.component.ts\n\t\t\t-->\n\t\t\t<app-no-data-table\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[size]=\"lg\"\n\t\t\t\t[showSelectionColumn]=\"true\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t\t</app-no-data-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82401
82405
|
},
|
|
82402
82406
|
{
|
|
82403
|
-
"name": "
|
|
82407
|
+
"name": "DyanmicContentTemplate",
|
|
82404
82408
|
"ctype": "miscellaneous",
|
|
82405
82409
|
"subtype": "variable",
|
|
82406
82410
|
"file": "src/table/table.stories.ts",
|
|
82407
82411
|
"deprecated": false,
|
|
82408
82412
|
"deprecationMessage": "",
|
|
82409
82413
|
"type": "",
|
|
82410
|
-
"defaultValue": "
|
|
82414
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-custom-table.component.ts\n\t\t\t-->\n\t\t\t<app-custom-table\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t\t</app-custom-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82411
82415
|
},
|
|
82412
82416
|
{
|
|
82413
|
-
"name": "
|
|
82417
|
+
"name": "emptyModel",
|
|
82414
82418
|
"ctype": "miscellaneous",
|
|
82415
82419
|
"subtype": "variable",
|
|
82416
82420
|
"file": "src/table/table.stories.ts",
|
|
82417
82421
|
"deprecated": false,
|
|
82418
82422
|
"deprecationMessage": "",
|
|
82419
82423
|
"type": "",
|
|
82420
|
-
"defaultValue": "
|
|
82424
|
+
"defaultValue": "new TableModel()"
|
|
82421
82425
|
},
|
|
82422
82426
|
{
|
|
82423
|
-
"name": "
|
|
82427
|
+
"name": "ExpansionTemplate",
|
|
82424
82428
|
"ctype": "miscellaneous",
|
|
82425
82429
|
"subtype": "variable",
|
|
82426
82430
|
"file": "src/table/table.stories.ts",
|
|
82427
82431
|
"deprecated": false,
|
|
82428
82432
|
"deprecationMessage": "",
|
|
82429
82433
|
"type": "",
|
|
82430
|
-
"defaultValue": "
|
|
82434
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-expansion-table.component.ts\n\t\t\t-->\n\t\t\t<app-expansion-table\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\"\n\t\t\t\t[showExpandAllToggle]=\"showExpandAllToggle\">\n\t\t\t</app-expansion-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82431
82435
|
},
|
|
82432
82436
|
{
|
|
82433
|
-
"name": "
|
|
82437
|
+
"name": "Filtering",
|
|
82434
82438
|
"ctype": "miscellaneous",
|
|
82435
82439
|
"subtype": "variable",
|
|
82436
82440
|
"file": "src/table/table.stories.ts",
|
|
82437
82441
|
"deprecated": false,
|
|
82438
82442
|
"deprecationMessage": "",
|
|
82439
82443
|
"type": "",
|
|
82440
|
-
"defaultValue": "(
|
|
82444
|
+
"defaultValue": "FilteringTemplate.bind({})"
|
|
82441
82445
|
},
|
|
82442
82446
|
{
|
|
82443
|
-
"name": "
|
|
82447
|
+
"name": "FilteringOverriding",
|
|
82444
82448
|
"ctype": "miscellaneous",
|
|
82445
82449
|
"subtype": "variable",
|
|
82446
82450
|
"file": "src/table/table.stories.ts",
|
|
82447
82451
|
"deprecated": false,
|
|
82448
82452
|
"deprecationMessage": "",
|
|
82449
82453
|
"type": "",
|
|
82450
|
-
"defaultValue": "
|
|
82454
|
+
"defaultValue": "FilteringOverridingTemplate.bind({})"
|
|
82451
82455
|
},
|
|
82452
82456
|
{
|
|
82453
|
-
"name": "
|
|
82457
|
+
"name": "FilteringOverridingTemplate",
|
|
82454
82458
|
"ctype": "miscellaneous",
|
|
82455
82459
|
"subtype": "variable",
|
|
82456
82460
|
"file": "src/table/table.stories.ts",
|
|
82457
82461
|
"deprecated": false,
|
|
82458
82462
|
"deprecationMessage": "",
|
|
82459
82463
|
"type": "",
|
|
82460
|
-
"defaultValue": "
|
|
82464
|
+
"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-function-override-filter-table.component.ts\n\t\t-->\n\t\t<app-function-override-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-function-override-filter-table>\n\t`\n})"
|
|
82461
82465
|
},
|
|
82462
82466
|
{
|
|
82463
|
-
"name": "
|
|
82467
|
+
"name": "FilteringTemplate",
|
|
82464
82468
|
"ctype": "miscellaneous",
|
|
82465
82469
|
"subtype": "variable",
|
|
82466
82470
|
"file": "src/table/table.stories.ts",
|
|
82467
82471
|
"deprecated": false,
|
|
82468
82472
|
"deprecationMessage": "",
|
|
82469
82473
|
"type": "",
|
|
82470
|
-
"defaultValue": "
|
|
82474
|
+
"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})"
|
|
82471
82475
|
},
|
|
82472
82476
|
{
|
|
82473
|
-
"name": "
|
|
82477
|
+
"name": "FromComponents",
|
|
82474
82478
|
"ctype": "miscellaneous",
|
|
82475
82479
|
"subtype": "variable",
|
|
82476
82480
|
"file": "src/table/table.stories.ts",
|
|
82477
82481
|
"deprecated": false,
|
|
82478
82482
|
"deprecationMessage": "",
|
|
82479
82483
|
"type": "",
|
|
82480
|
-
"defaultValue": "
|
|
82484
|
+
"defaultValue": "FromComponentsTemplate.bind({})"
|
|
82481
82485
|
},
|
|
82482
82486
|
{
|
|
82483
|
-
"name": "
|
|
82487
|
+
"name": "FromComponentsTemplate",
|
|
82484
82488
|
"ctype": "miscellaneous",
|
|
82485
82489
|
"subtype": "variable",
|
|
82486
82490
|
"file": "src/table/table.stories.ts",
|
|
82487
82491
|
"deprecated": false,
|
|
82488
82492
|
"deprecationMessage": "",
|
|
82489
82493
|
"type": "",
|
|
82490
|
-
"defaultValue": "
|
|
82491
|
-
}
|
|
82492
|
-
],
|
|
82493
|
-
"src/tabs/tabs.stories.ts": [
|
|
82494
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<table cdsTable [sortable]=\"false\">\n\t\t\t<thead cdsTableHead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th\n\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\tcdsTableHeadCell\n\t\t\t\t\t\t*ngFor=\"let column of model.header\"\n\t\t\t\t\t\t[column]=\"column\">\n\t\t\t\t\t</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody cdsTableBody>\n\t\t\t\t<tr\n\t\t\t\t\t*ngFor=\"let row of model.data\"\n\t\t\t\t\tcdsTableRow\n\t\t\t\t\t[row]=\"row\">\n\t\t\t\t\t<td\n\t\t\t\t\t\t*ngFor=\"let item of row; let j = index\"\n\t\t\t\t\t\tcdsTableData\n\t\t\t\t\t\t[item]=\"item\"\n\t\t\t\t\t\t[class]=\"model.header[j].className\"\n\t\t\t\t\t\t[ngStyle]=\"model.header[j].style\">\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t`\n})"
|
|
82495
|
+
},
|
|
82494
82496
|
{
|
|
82495
|
-
"name": "
|
|
82497
|
+
"name": "getProps",
|
|
82496
82498
|
"ctype": "miscellaneous",
|
|
82497
82499
|
"subtype": "variable",
|
|
82498
|
-
"file": "src/
|
|
82500
|
+
"file": "src/table/table.stories.ts",
|
|
82499
82501
|
"deprecated": false,
|
|
82500
82502
|
"deprecationMessage": "",
|
|
82501
82503
|
"type": "",
|
|
82502
|
-
"defaultValue": "
|
|
82504
|
+
"defaultValue": "(more = {}, type: \"args\" | \"argTypes\") => {\n\tconst defaultProps = type === \"args\" ? {\n\t\tmodel: simpleModel,\n\t\ttitle: \"Table title\",\n\t\tdescription: \"\",\n\t\tsize: \"md\",\n\t\tshowSelectionColumn: true,\n\t\tstriped: false,\n\t\tsortable: true,\n\t\tisDataGrid: true,\n\t\tstickyHeader: false,\n\t\tskeleton: false\n\t} : {\n\t\tsize: {\n\t\t\toptions: [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"],\n\t\t\tcontrol: \"select\"\n\t\t}\n\t};\n\treturn { ...defaultProps, ...more };\n}"
|
|
82503
82505
|
},
|
|
82504
82506
|
{
|
|
82505
|
-
"name": "
|
|
82507
|
+
"name": "NoDataTemplate",
|
|
82506
82508
|
"ctype": "miscellaneous",
|
|
82507
82509
|
"subtype": "variable",
|
|
82508
|
-
"file": "src/
|
|
82510
|
+
"file": "src/table/table.stories.ts",
|
|
82509
82511
|
"deprecated": false,
|
|
82510
82512
|
"deprecationMessage": "",
|
|
82511
82513
|
"type": "",
|
|
82512
|
-
"defaultValue": "
|
|
82514
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle id=\"table-header\">{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription id=\"table-description\">{{description}}</p>\n\t\t\t</cds-table-header>\n\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-no-data.component.ts\n\t\t\t-->\n\t\t\t<app-no-data-table\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\tariaLabelledby=\"table-header\"\n\t\t\t\tariaDescribedby=\"table-description\">\n\t\t\t\t<tbody><tr><td class=\"no-data\" colspan=\"3\"><div>No data.</div></td></tr></tbody>\n\t\t\t</app-no-data-table>\n\t\t</cds-table-container>\n\t`,\n\tstyles: [`\n\t\t.no-data {\n\t\t\twidth: 100%;\n\t\t\theight: 150px;\n\t\t\ttext-align: center;\n\t\t}\n\t`]\n})"
|
|
82513
82515
|
},
|
|
82514
82516
|
{
|
|
82515
|
-
"name": "
|
|
82517
|
+
"name": "OverflowMenuTemplate",
|
|
82516
82518
|
"ctype": "miscellaneous",
|
|
82517
82519
|
"subtype": "variable",
|
|
82518
|
-
"file": "src/
|
|
82520
|
+
"file": "src/table/table.stories.ts",
|
|
82519
82521
|
"deprecated": false,
|
|
82520
82522
|
"deprecationMessage": "",
|
|
82521
82523
|
"type": "",
|
|
82522
|
-
"defaultValue": "(args) => ({\n\tprops:
|
|
82524
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...getProps({\n\t\t\tdescription: \"With overflow menu\"\n\t\t}, \"args\")\n\t},\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-overflow-table.component.ts\n\t\t\t-->\n\t\t\t<app-overflow-table\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t\t</app-overflow-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82523
82525
|
},
|
|
82524
82526
|
{
|
|
82525
|
-
"name": "
|
|
82527
|
+
"name": "PaginationTemplate",
|
|
82526
82528
|
"ctype": "miscellaneous",
|
|
82527
82529
|
"subtype": "variable",
|
|
82528
|
-
"file": "src/
|
|
82530
|
+
"file": "src/table/table.stories.ts",
|
|
82529
82531
|
"deprecated": false,
|
|
82530
82532
|
"deprecationMessage": "",
|
|
82531
82533
|
"type": "",
|
|
82532
|
-
"defaultValue": "
|
|
82534
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-pagination-table.component.ts\n\t\t\t-->\n\t\t\t<app-pagination-table\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[totalDataLength]=\"totalDataLength\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[model]=\"model\">\n\t\t\t</app-pagination-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82533
82535
|
},
|
|
82534
82536
|
{
|
|
82535
|
-
"name": "
|
|
82537
|
+
"name": "simpleModel",
|
|
82536
82538
|
"ctype": "miscellaneous",
|
|
82537
82539
|
"subtype": "variable",
|
|
82538
|
-
"file": "src/
|
|
82540
|
+
"file": "src/table/table.stories.ts",
|
|
82539
82541
|
"deprecated": false,
|
|
82540
82542
|
"deprecationMessage": "",
|
|
82541
82543
|
"type": "",
|
|
82542
|
-
"defaultValue": "
|
|
82544
|
+
"defaultValue": "new TableModel()"
|
|
82543
82545
|
},
|
|
82544
82546
|
{
|
|
82545
|
-
"name": "
|
|
82547
|
+
"name": "Skeleton",
|
|
82546
82548
|
"ctype": "miscellaneous",
|
|
82547
82549
|
"subtype": "variable",
|
|
82548
|
-
"file": "src/
|
|
82550
|
+
"file": "src/table/table.stories.ts",
|
|
82549
82551
|
"deprecated": false,
|
|
82550
82552
|
"deprecationMessage": "",
|
|
82551
82553
|
"type": "",
|
|
82552
|
-
"defaultValue": "
|
|
82554
|
+
"defaultValue": "SkeletonTemplate.bind({})"
|
|
82553
82555
|
},
|
|
82554
82556
|
{
|
|
82555
|
-
"name": "
|
|
82557
|
+
"name": "SkeletonTemplate",
|
|
82556
82558
|
"ctype": "miscellaneous",
|
|
82557
82559
|
"subtype": "variable",
|
|
82558
|
-
"file": "src/
|
|
82560
|
+
"file": "src/table/table.stories.ts",
|
|
82559
82561
|
"deprecated": false,
|
|
82560
82562
|
"deprecationMessage": "",
|
|
82561
82563
|
"type": "",
|
|
82562
|
-
"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/
|
|
82564
|
+
"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-skeleton-table.component.ts\n\t\t-->\n\t\t<app-skeleton-table\n\t\t\t[skeletonModel]=\"skeletonModel\"\n\t\t\t[size]=\"size\"\n\t\t\t[striped]=\"striped\">\n\t\t</app-skeleton-table>\n\t`\n})"
|
|
82563
82565
|
},
|
|
82564
82566
|
{
|
|
82565
82567
|
"name": "Template",
|
|
82566
82568
|
"ctype": "miscellaneous",
|
|
82567
82569
|
"subtype": "variable",
|
|
82568
|
-
"file": "src/
|
|
82570
|
+
"file": "src/table/table.stories.ts",
|
|
82569
82571
|
"deprecated": false,
|
|
82570
82572
|
"deprecationMessage": "",
|
|
82571
82573
|
"type": "",
|
|
82572
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
82574
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-table.component.ts\n\t\t\t-->\n\t\t\t<app-table\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[enableSingleSelect]=\"enableSingleSelect\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t\t</app-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82573
82575
|
},
|
|
82574
82576
|
{
|
|
82575
|
-
"name": "
|
|
82577
|
+
"name": "ToolbarTemplate",
|
|
82576
82578
|
"ctype": "miscellaneous",
|
|
82577
82579
|
"subtype": "variable",
|
|
82578
|
-
"file": "src/
|
|
82580
|
+
"file": "src/table/table.stories.ts",
|
|
82579
82581
|
"deprecated": false,
|
|
82580
82582
|
"deprecationMessage": "",
|
|
82581
82583
|
"type": "",
|
|
82582
|
-
"defaultValue": "
|
|
82584
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle>{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription>{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<cds-table-toolbar\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[batchText]=\"batchText\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t(cancel)=\"cancelMethod()\"\n\t\t\t\t#toolbar>\n\t\t\t\t<cds-table-toolbar-actions>\n\t\t\t\t\t<button cdsButton=\"primary\" [tabindex]=\"toolbar.selected ? 0 : -1\">\n\t\t\t\t\t\tDelete\n\t\t\t\t\t\t<svg cdsIcon=\"trash-can\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button cdsButton=\"primary\" [tabindex]=\"toolbar.selected ? 0 : -1\">\n\t\t\t\t\t\tSave\n\t\t\t\t\t\t<svg cdsIcon=\"save\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button cdsButton=\"primary\" [tabindex]=\"toolbar.selected ? 0 : -1\">\n\t\t\t\t\t\tDownload\n\t\t\t\t\t\t<svg cdsIcon=\"download\" size=\"16\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</cds-table-toolbar-actions>\n\t\t\t\t<cds-table-toolbar-content *ngIf=\"!toolbar.selected\">\n\t\t\t\t\t<cds-table-toolbar-search\n\t\t\t\t\t\tngDefaultControl\n\t\t\t\t\t\t[expandable]=\"searchExpandable\"\n\t\t\t\t\t\t[(ngModel)]=\"searchModel\">\n\t\t\t\t\t</cds-table-toolbar-search>\n\t\t\t\t\t<cds-overflow-menu\n\t\t\t\t\t\ttriggerClass=\"cds--toolbar-action\"\n\t\t\t\t\t\t[customTrigger]=\"customTrigger\"\n\t\t\t\t\t\tplacement=\"bottom\"\n\t\t\t\t\t\t[offset]=\"size === 'sm' ? null : offset\">\n\t\t\t\t\t\t<cds-overflow-menu-option>Option 1</cds-overflow-menu-option>\n\t\t\t\t\t\t<cds-overflow-menu-option>Option 2</cds-overflow-menu-option>\n\t\t\t\t\t\t<cds-overflow-menu-option disabled=\"true\">Disabled</cds-overflow-menu-option>\n\t\t\t\t\t\t<cds-overflow-menu-option type=\"danger\">Danger option</cds-overflow-menu-option>\n\t\t\t\t\t</cds-overflow-menu>\n\t\t\t\t\t<button cdsButton=\"primary\" size=\"sm\" [tabindex]=\"toolbar.selected ? -1 : 0\">\n\t\t\t\t\t\tPrimary button<svg cdsIcon=\"add\" size=\"20\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</cds-table-toolbar-content>\n\t\t\t</cds-table-toolbar>\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-table.component.ts\n\t\t\t-->\n\t\t\t<app-table\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[enableSingleSelect]=\"enableSingleSelect\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t\t</app-table>\n\t\t\t<ng-template #customTrigger><svg cdsIcon=\"settings\" size=\"16\"></svg></ng-template>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82583
82585
|
},
|
|
82584
82586
|
{
|
|
82585
|
-
"name": "
|
|
82587
|
+
"name": "WithDisabledRows",
|
|
82586
82588
|
"ctype": "miscellaneous",
|
|
82587
82589
|
"subtype": "variable",
|
|
82588
|
-
"file": "src/
|
|
82590
|
+
"file": "src/table/table.stories.ts",
|
|
82589
82591
|
"deprecated": false,
|
|
82590
82592
|
"deprecationMessage": "",
|
|
82591
82593
|
"type": "",
|
|
82592
|
-
"defaultValue": "(
|
|
82593
|
-
}
|
|
82594
|
-
],
|
|
82595
|
-
"src/tag/tag.stories.ts": [
|
|
82594
|
+
"defaultValue": "DisabledRowsTemplate.bind({})"
|
|
82595
|
+
},
|
|
82596
82596
|
{
|
|
82597
|
-
"name": "
|
|
82597
|
+
"name": "WithDynamicContent",
|
|
82598
82598
|
"ctype": "miscellaneous",
|
|
82599
82599
|
"subtype": "variable",
|
|
82600
|
-
"file": "src/
|
|
82600
|
+
"file": "src/table/table.stories.ts",
|
|
82601
82601
|
"deprecated": false,
|
|
82602
82602
|
"deprecationMessage": "",
|
|
82603
82603
|
"type": "",
|
|
82604
|
-
"defaultValue": "
|
|
82604
|
+
"defaultValue": "DyanmicContentTemplate.bind({})"
|
|
82605
82605
|
},
|
|
82606
82606
|
{
|
|
82607
|
-
"name": "
|
|
82607
|
+
"name": "WithExpansion",
|
|
82608
82608
|
"ctype": "miscellaneous",
|
|
82609
82609
|
"subtype": "variable",
|
|
82610
|
-
"file": "src/
|
|
82610
|
+
"file": "src/table/table.stories.ts",
|
|
82611
82611
|
"deprecated": false,
|
|
82612
82612
|
"deprecationMessage": "",
|
|
82613
82613
|
"type": "",
|
|
82614
|
-
"defaultValue": "
|
|
82614
|
+
"defaultValue": "ExpansionTemplate.bind({})"
|
|
82615
82615
|
},
|
|
82616
82616
|
{
|
|
82617
|
-
"name": "
|
|
82617
|
+
"name": "WithoutActionTemplate",
|
|
82618
82618
|
"ctype": "miscellaneous",
|
|
82619
82619
|
"subtype": "variable",
|
|
82620
|
-
"file": "src/
|
|
82620
|
+
"file": "src/table/table.stories.ts",
|
|
82621
82621
|
"deprecated": false,
|
|
82622
82622
|
"deprecationMessage": "",
|
|
82623
82623
|
"type": "",
|
|
82624
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
82624
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-table-container>\n\t\t\t<cds-table-header>\n\t\t\t\t<h4 cdsTableHeaderTitle id=\"table-header\">{{title}}</h4>\n\t\t\t\t<p cdsTableHeaderDescription id=\"table-description\">{{description}}</p>\n\t\t\t</cds-table-header>\n\t\t\t<cds-table-toolbar>\n\t\t\t\t<cds-table-toolbar-content>\n\t\t\t\t\t<cds-table-toolbar-search [expandable]=\"true\"></cds-table-toolbar-search>\n\t\t\t\t\t<button cdsButton=\"ghost\" class=\"toolbar-action\">\n\t\t\t\t\t\t<svg cdsIcon=\"settings\" size=\"16\" class=\"cds--toolbar-action__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button cdsButton=\"primary\" size=\"sm\">\n\t\t\t\t\t\tPrimary button<svg cdsIcon=\"add\" size=\"20\" class=\"cds--btn__icon\"></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</cds-table-toolbar-content>\n\t\t\t</cds-table-toolbar>\n\n\t\t\t<!--\n\t\t\tapp-* components are for demo purposes only.\n\t\t\tYou can create your own implementation by using the component source found at:\n\t\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-table.component.ts\n\t\t\t-->\n\t\t\t<app-table\n\t\t\t\t[model]=\"model\"\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t\t[enableSingleSelect]=\"enableSingleSelect\"\n\t\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[striped]=\"striped\"\n\t\t\t\t[sortable]=\"sortable\"\n\t\t\t\t[isDataGrid]=\"isDataGrid\"\n\t\t\t\tariaLabelledby=\"table-header\"\n\t\t\t\tariaDescribedby=\"table-description\">\n\t\t\t</app-table>\n\t\t</cds-table-container>\n\t`\n})"
|
|
82625
82625
|
},
|
|
82626
82626
|
{
|
|
82627
|
-
"name": "
|
|
82627
|
+
"name": "WithoutData",
|
|
82628
82628
|
"ctype": "miscellaneous",
|
|
82629
82629
|
"subtype": "variable",
|
|
82630
|
-
"file": "src/
|
|
82630
|
+
"file": "src/table/table.stories.ts",
|
|
82631
82631
|
"deprecated": false,
|
|
82632
82632
|
"deprecationMessage": "",
|
|
82633
82633
|
"type": "",
|
|
82634
|
-
"defaultValue": "
|
|
82634
|
+
"defaultValue": "NoDataTemplate.bind({})"
|
|
82635
82635
|
},
|
|
82636
82636
|
{
|
|
82637
|
-
"name": "
|
|
82637
|
+
"name": "WithOverflowMenu",
|
|
82638
82638
|
"ctype": "miscellaneous",
|
|
82639
82639
|
"subtype": "variable",
|
|
82640
|
-
"file": "src/
|
|
82640
|
+
"file": "src/table/table.stories.ts",
|
|
82641
82641
|
"deprecated": false,
|
|
82642
82642
|
"deprecationMessage": "",
|
|
82643
82643
|
"type": "",
|
|
82644
|
-
"defaultValue": "(
|
|
82644
|
+
"defaultValue": "OverflowMenuTemplate.bind({})"
|
|
82645
82645
|
},
|
|
82646
82646
|
{
|
|
82647
|
-
"name": "
|
|
82647
|
+
"name": "WithPagination",
|
|
82648
82648
|
"ctype": "miscellaneous",
|
|
82649
82649
|
"subtype": "variable",
|
|
82650
|
-
"file": "src/
|
|
82650
|
+
"file": "src/table/table.stories.ts",
|
|
82651
82651
|
"deprecated": false,
|
|
82652
82652
|
"deprecationMessage": "",
|
|
82653
82653
|
"type": "",
|
|
82654
|
-
"defaultValue": "
|
|
82654
|
+
"defaultValue": "PaginationTemplate.bind({})"
|
|
82655
82655
|
},
|
|
82656
82656
|
{
|
|
82657
|
-
"name": "
|
|
82657
|
+
"name": "WithToolbar",
|
|
82658
82658
|
"ctype": "miscellaneous",
|
|
82659
82659
|
"subtype": "variable",
|
|
82660
|
-
"file": "src/
|
|
82660
|
+
"file": "src/table/table.stories.ts",
|
|
82661
82661
|
"deprecated": false,
|
|
82662
82662
|
"deprecationMessage": "",
|
|
82663
82663
|
"type": "",
|
|
82664
|
-
"defaultValue": "(
|
|
82664
|
+
"defaultValue": "ToolbarTemplate.bind({})"
|
|
82665
82665
|
},
|
|
82666
82666
|
{
|
|
82667
|
-
"name": "
|
|
82667
|
+
"name": "WithToolbarWithoutToolbarAction",
|
|
82668
82668
|
"ctype": "miscellaneous",
|
|
82669
82669
|
"subtype": "variable",
|
|
82670
|
-
"file": "src/
|
|
82670
|
+
"file": "src/table/table.stories.ts",
|
|
82671
82671
|
"deprecated": false,
|
|
82672
82672
|
"deprecationMessage": "",
|
|
82673
82673
|
"type": "",
|
|
82674
|
-
"defaultValue": "(
|
|
82674
|
+
"defaultValue": "WithoutActionTemplate.bind({})"
|
|
82675
82675
|
}
|
|
82676
82676
|
],
|
|
82677
82677
|
"src/theme/theme.stories.ts": [
|