@covalent/core 3.1.0 → 3.1.2-beta.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/breadcrumbs/covalent-core-breadcrumbs.metadata.json +1 -1
- package/breadcrumbs/package.json +1 -3
- package/bundles/covalent-core-breadcrumbs.umd.js +131 -167
- package/bundles/covalent-core-breadcrumbs.umd.js.map +1 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js +1 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/covalent-core-chips.umd.js +533 -708
- package/bundles/covalent-core-chips.umd.js.map +1 -1
- package/bundles/covalent-core-chips.umd.min.js +12 -12
- package/bundles/covalent-core-chips.umd.min.js.map +1 -1
- package/bundles/covalent-core-common.umd.js +566 -571
- package/bundles/covalent-core-common.umd.js.map +1 -1
- package/bundles/covalent-core-common.umd.min.js +13 -12
- package/bundles/covalent-core-common.umd.min.js.map +1 -1
- package/bundles/covalent-core-data-table.umd.js +727 -1038
- package/bundles/covalent-core-data-table.umd.js.map +1 -1
- package/bundles/covalent-core-data-table.umd.min.js +12 -12
- package/bundles/covalent-core-data-table.umd.min.js.map +1 -1
- package/bundles/covalent-core-dialogs.umd.js +515 -592
- package/bundles/covalent-core-dialogs.umd.js.map +1 -1
- package/bundles/covalent-core-dialogs.umd.min.js +1 -15
- package/bundles/covalent-core-dialogs.umd.min.js.map +1 -1
- package/bundles/covalent-core-dynamic-menu.umd.js +73 -62
- package/bundles/covalent-core-dynamic-menu.umd.js.map +1 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js +1 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js.map +1 -1
- package/bundles/covalent-core-expansion-panel.umd.js +465 -449
- package/bundles/covalent-core-expansion-panel.umd.js.map +1 -1
- package/bundles/covalent-core-expansion-panel.umd.min.js +12 -12
- package/bundles/covalent-core-expansion-panel.umd.min.js.map +1 -1
- package/bundles/covalent-core-file.umd.js +533 -598
- package/bundles/covalent-core-file.umd.js.map +1 -1
- package/bundles/covalent-core-file.umd.min.js +13 -12
- package/bundles/covalent-core-file.umd.min.js.map +1 -1
- package/bundles/covalent-core-json-formatter.umd.js +101 -152
- package/bundles/covalent-core-json-formatter.umd.js.map +1 -1
- package/bundles/covalent-core-json-formatter.umd.min.js +1 -1
- package/bundles/covalent-core-json-formatter.umd.min.js.map +1 -1
- package/bundles/covalent-core-layout.umd.js +845 -883
- package/bundles/covalent-core-layout.umd.js.map +1 -1
- package/bundles/covalent-core-layout.umd.min.js +13 -12
- package/bundles/covalent-core-layout.umd.min.js.map +1 -1
- package/bundles/covalent-core-loading.umd.js +481 -723
- package/bundles/covalent-core-loading.umd.js.map +1 -1
- package/bundles/covalent-core-loading.umd.min.js +12 -12
- package/bundles/covalent-core-loading.umd.min.js.map +1 -1
- package/bundles/covalent-core-media.umd.js +395 -375
- package/bundles/covalent-core-media.umd.js.map +1 -1
- package/bundles/covalent-core-media.umd.min.js +12 -12
- package/bundles/covalent-core-media.umd.min.js.map +1 -1
- package/bundles/covalent-core-menu.umd.js +37 -17
- package/bundles/covalent-core-menu.umd.js.map +1 -1
- package/bundles/covalent-core-menu.umd.min.js +1 -1
- package/bundles/covalent-core-menu.umd.min.js.map +1 -1
- package/bundles/covalent-core-message.umd.js +96 -152
- package/bundles/covalent-core-message.umd.js.map +1 -1
- package/bundles/covalent-core-message.umd.min.js +1 -1
- package/bundles/covalent-core-message.umd.min.js.map +1 -1
- package/bundles/covalent-core-nav-links.umd.js +63 -75
- package/bundles/covalent-core-nav-links.umd.js.map +1 -1
- package/bundles/covalent-core-nav-links.umd.min.js +1 -1
- package/bundles/covalent-core-nav-links.umd.min.js.map +1 -1
- package/bundles/covalent-core-notifications.umd.js +77 -101
- package/bundles/covalent-core-notifications.umd.js.map +1 -1
- package/bundles/covalent-core-notifications.umd.min.js +1 -1
- package/bundles/covalent-core-notifications.umd.min.js.map +1 -1
- package/bundles/covalent-core-paging.umd.js +89 -166
- package/bundles/covalent-core-paging.umd.js.map +1 -1
- package/bundles/covalent-core-paging.umd.min.js +1 -1
- package/bundles/covalent-core-paging.umd.min.js.map +1 -1
- package/bundles/covalent-core-search.umd.js +469 -418
- package/bundles/covalent-core-search.umd.js.map +1 -1
- package/bundles/covalent-core-search.umd.min.js +12 -12
- package/bundles/covalent-core-search.umd.min.js.map +1 -1
- package/bundles/covalent-core-sidesheet.umd.js +72 -52
- package/bundles/covalent-core-sidesheet.umd.js.map +1 -1
- package/bundles/covalent-core-sidesheet.umd.min.js +1 -1
- package/bundles/covalent-core-sidesheet.umd.min.js.map +1 -1
- package/bundles/covalent-core-steps.umd.js +663 -822
- package/bundles/covalent-core-steps.umd.js.map +1 -1
- package/bundles/covalent-core-steps.umd.min.js +12 -12
- package/bundles/covalent-core-steps.umd.min.js.map +1 -1
- package/bundles/covalent-core-tab-select.umd.js +446 -385
- package/bundles/covalent-core-tab-select.umd.js.map +1 -1
- package/bundles/covalent-core-tab-select.umd.min.js +12 -12
- package/bundles/covalent-core-tab-select.umd.min.js.map +1 -1
- package/bundles/covalent-core-user-profile.umd.js +65 -48
- package/bundles/covalent-core-user-profile.umd.js.map +1 -1
- package/bundles/covalent-core-user-profile.umd.min.js +1 -1
- package/bundles/covalent-core-user-profile.umd.min.js.map +1 -1
- package/bundles/covalent-core-virtual-scroll.umd.js +412 -356
- package/bundles/covalent-core-virtual-scroll.umd.js.map +1 -1
- package/bundles/covalent-core-virtual-scroll.umd.min.js +12 -12
- package/bundles/covalent-core-virtual-scroll.umd.min.js.map +1 -1
- package/bundles/covalent-core.umd.js +0 -8
- package/bundles/covalent-core.umd.js.map +1 -1
- package/chips/covalent-core-chips.metadata.json +1 -1
- package/chips/package.json +1 -3
- package/common/_common-theme.scss +11 -0
- package/common/package.json +1 -3
- package/data-table/covalent-core-data-table.metadata.json +1 -1
- package/data-table/package.json +1 -3
- package/dialogs/_dialog-theme.scss +6 -0
- package/dialogs/covalent-core-dialogs.metadata.json +1 -1
- package/dialogs/package.json +1 -3
- package/dialogs/window-dialog/window-dialog.component.scss +4 -0
- package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -4
- package/dynamic-menu/package.json +1 -3
- package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +4 -3
- package/esm2015/breadcrumbs/breadcrumbs.component.js +3 -2
- package/esm2015/breadcrumbs/breadcrumbs.module.js +3 -2
- package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +3 -2
- package/esm2015/breadcrumbs/index.js +3 -2
- package/esm2015/breadcrumbs/public-api.js +3 -2
- package/esm2015/chips/chips.component.js +4 -3
- package/esm2015/chips/chips.module.js +3 -2
- package/esm2015/chips/covalent-core-chips.js +3 -2
- package/esm2015/chips/index.js +3 -2
- package/esm2015/chips/public-api.js +3 -2
- package/esm2015/common/animations/bounce/bounce.animation.js +3 -2
- package/esm2015/common/animations/collapse/collapse.animation.js +3 -2
- package/esm2015/common/animations/common/interfaces.js +3 -2
- package/esm2015/common/animations/fade/fadeInOut.animation.js +3 -2
- package/esm2015/common/animations/flash/flash.animation.js +3 -2
- package/esm2015/common/animations/headshake/headshake.animation.js +3 -2
- package/esm2015/common/animations/jello/jello.animation.js +3 -2
- package/esm2015/common/animations/pulse/pulse.animation.js +3 -2
- package/esm2015/common/animations/rotate/rotate.animation.js +3 -2
- package/esm2015/common/behaviors/control-value-accesor.mixin.js +3 -2
- package/esm2015/common/behaviors/disable-ripple.mixin.js +3 -2
- package/esm2015/common/behaviors/disabled.mixin.js +3 -2
- package/esm2015/common/common.module.js +3 -2
- package/esm2015/common/covalent-core-common.js +3 -2
- package/esm2015/common/directives/fullscreen/fullscreen.directive.js +3 -2
- package/esm2015/common/forms/auto-trim/auto-trim.directive.js +3 -2
- package/esm2015/common/forms/validators/validators.js +3 -2
- package/esm2015/common/functions/clipboard.js +3 -2
- package/esm2015/common/functions/convert.js +3 -2
- package/esm2015/common/functions/download.js +3 -2
- package/esm2015/common/functions/file.js +3 -2
- package/esm2015/common/index.js +3 -2
- package/esm2015/common/pipes/bytes/bytes.pipe.js +3 -2
- package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +3 -2
- package/esm2015/common/pipes/digits/digits.pipe.js +3 -2
- package/esm2015/common/pipes/time-ago/time-ago.pipe.js +3 -2
- package/esm2015/common/pipes/time-difference/time-difference.pipe.js +3 -2
- package/esm2015/common/pipes/time-until/time-until.pipe.js +3 -2
- package/esm2015/common/pipes/truncate/truncate.pipe.js +3 -2
- package/esm2015/common/public-api.js +3 -2
- package/esm2015/common/services/icon.service.js +3 -2
- package/esm2015/common/services/router-path.service.js +3 -2
- package/esm2015/covalent-core.js +3 -2
- package/esm2015/data-table/covalent-core-data-table.js +3 -2
- package/esm2015/data-table/data-table-cell/data-table-cell.component.js +4 -3
- package/esm2015/data-table/data-table-column/data-table-column.component.js +4 -3
- package/esm2015/data-table/data-table-row/data-table-row.component.js +3 -2
- package/esm2015/data-table/data-table-table/data-table-table.component.js +4 -3
- package/esm2015/data-table/data-table.component.js +6 -5
- package/esm2015/data-table/data-table.module.js +3 -2
- package/esm2015/data-table/directives/data-table-template.directive.js +3 -2
- package/esm2015/data-table/index.js +3 -2
- package/esm2015/data-table/public-api.js +3 -2
- package/esm2015/data-table/services/data-table.service.js +3 -2
- package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +3 -2
- package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +3 -2
- package/esm2015/dialogs/covalent-core-dialogs.js +3 -2
- package/esm2015/dialogs/dialog.component.js +4 -3
- package/esm2015/dialogs/dialogs.module.js +3 -2
- package/esm2015/dialogs/index.js +3 -2
- package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +4 -3
- package/esm2015/dialogs/public-api.js +3 -2
- package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +14 -13
- package/esm2015/dialogs/services/dialog.service.js +3 -2
- package/esm2015/dialogs/window-dialog/window-dialog.component.js +4 -3
- package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +3 -2
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +5 -4
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +4 -3
- package/esm2015/dynamic-menu/dynamic-menu.component.js +3 -2
- package/esm2015/dynamic-menu/dynamic-menu.module.js +3 -2
- package/esm2015/dynamic-menu/index.js +3 -2
- package/esm2015/dynamic-menu/public_api.js +3 -2
- package/esm2015/expansion-panel/covalent-core-expansion-panel.js +3 -2
- package/esm2015/expansion-panel/expansion-panel-group.component.js +3 -2
- package/esm2015/expansion-panel/expansion-panel.component.js +4 -3
- package/esm2015/expansion-panel/expansion-panel.module.js +3 -2
- package/esm2015/expansion-panel/index.js +3 -2
- package/esm2015/expansion-panel/public-api.js +3 -2
- package/esm2015/file/covalent-core-file.js +3 -2
- package/esm2015/file/directives/file-drop.directive.js +3 -2
- package/esm2015/file/directives/file-select.directive.js +3 -2
- package/esm2015/file/file-input/file-input.component.js +3 -2
- package/esm2015/file/file-upload/file-upload.component.js +4 -3
- package/esm2015/file/file.module.js +3 -2
- package/esm2015/file/index.js +3 -2
- package/esm2015/file/public-api.js +3 -2
- package/esm2015/file/services/file.service.js +3 -2
- package/esm2015/index.js +4 -2
- package/esm2015/json-formatter/covalent-core-json-formatter.js +3 -2
- package/esm2015/json-formatter/index.js +3 -2
- package/esm2015/json-formatter/json-formatter.component.js +4 -3
- package/esm2015/json-formatter/json-formatter.module.js +3 -2
- package/esm2015/json-formatter/public-api.js +3 -2
- package/esm2015/layout/covalent-core-layout.js +4 -3
- package/esm2015/layout/index.js +4 -3
- package/esm2015/layout/layout-card-over/layout-card-over.component.js +4 -3
- package/esm2015/layout/layout-footer/layout-footer.component.js +3 -2
- package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +4 -3
- package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +7 -6
- package/esm2015/layout/layout-nav/layout-nav.component.js +4 -3
- package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +4 -3
- package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +7 -6
- package/esm2015/layout/layout-toggle.class.js +22 -12
- package/esm2015/layout/layout.component.js +4 -3
- package/esm2015/layout/layout.directives.js +7 -6
- package/esm2015/layout/layout.module.js +3 -2
- package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +4 -3
- package/esm2015/layout/public-api.js +4 -3
- package/esm2015/loading/covalent-core-loading.js +3 -2
- package/esm2015/loading/directives/loading.directive.js +3 -2
- package/esm2015/loading/index.js +3 -2
- package/esm2015/loading/loading.component.js +13 -12
- package/esm2015/loading/loading.module.js +3 -2
- package/esm2015/loading/public-api.js +3 -2
- package/esm2015/loading/services/loading.factory.js +3 -2
- package/esm2015/loading/services/loading.service.js +3 -2
- package/esm2015/media/covalent-core-media.js +3 -2
- package/esm2015/media/directives/media-toggle.directive.js +3 -2
- package/esm2015/media/index.js +3 -2
- package/esm2015/media/media.module.js +3 -2
- package/esm2015/media/public-api.js +3 -2
- package/esm2015/media/services/media.service.js +3 -2
- package/esm2015/menu/covalent-core-menu.js +3 -2
- package/esm2015/menu/index.js +3 -2
- package/esm2015/menu/menu.component.js +4 -3
- package/esm2015/menu/menu.module.js +3 -2
- package/esm2015/menu/public-api.js +3 -2
- package/esm2015/message/covalent-core-message.js +3 -2
- package/esm2015/message/index.js +3 -2
- package/esm2015/message/message.component.js +4 -3
- package/esm2015/message/message.module.js +3 -2
- package/esm2015/message/public-api.js +3 -2
- package/esm2015/nav-links/covalent-core-nav-links.js +3 -2
- package/esm2015/nav-links/index.js +3 -2
- package/esm2015/nav-links/nav-links.component.js +3 -2
- package/esm2015/nav-links/nav-links.module.js +3 -2
- package/esm2015/nav-links/public-api.js +3 -2
- package/esm2015/notifications/covalent-core-notifications.js +3 -2
- package/esm2015/notifications/index.js +3 -2
- package/esm2015/notifications/notification-count.component.js +10 -9
- package/esm2015/notifications/notifications.module.js +3 -2
- package/esm2015/notifications/public-api.js +3 -2
- package/esm2015/paging/covalent-core-paging.js +3 -2
- package/esm2015/paging/index.js +3 -2
- package/esm2015/paging/paging-bar.component.js +4 -3
- package/esm2015/paging/paging.module.js +3 -2
- package/esm2015/paging/public-api.js +3 -2
- package/esm2015/search/covalent-core-search.js +3 -2
- package/esm2015/search/index.js +3 -2
- package/esm2015/search/public-api.js +3 -2
- package/esm2015/search/search-box/search-box.component.js +4 -3
- package/esm2015/search/search-input/search-input.component.js +4 -3
- package/esm2015/search/search.module.js +3 -2
- package/esm2015/sidesheet/covalent-core-sidesheet.js +3 -2
- package/esm2015/sidesheet/index.js +3 -2
- package/esm2015/sidesheet/public-api.js +3 -2
- package/esm2015/sidesheet/sidesheet.component.js +4 -3
- package/esm2015/sidesheet/sidesheet.module.js +3 -2
- package/esm2015/steps/covalent-core-steps.js +3 -2
- package/esm2015/steps/index.js +3 -2
- package/esm2015/steps/nav/nav-step-link/nav-step-link.component.js +4 -3
- package/esm2015/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +4 -3
- package/esm2015/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +4 -3
- package/esm2015/steps/public-api.js +3 -2
- package/esm2015/steps/step-body/step-body.component.js +4 -3
- package/esm2015/steps/step-header/step-header.component.js +4 -3
- package/esm2015/steps/step.component.js +6 -5
- package/esm2015/steps/steps.component.js +6 -5
- package/esm2015/steps/steps.module.js +3 -2
- package/esm2015/tab-select/covalent-core-tab-select.js +3 -2
- package/esm2015/tab-select/index.js +3 -2
- package/esm2015/tab-select/public-api.js +3 -2
- package/esm2015/tab-select/tab-option.component.js +3 -2
- package/esm2015/tab-select/tab-select.component.js +3 -2
- package/esm2015/tab-select/tab-select.module.js +3 -2
- package/esm2015/user-profile/covalent-core-user-profile.js +3 -2
- package/esm2015/user-profile/index.js +3 -2
- package/esm2015/user-profile/public_api.js +3 -2
- package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +4 -3
- package/esm2015/user-profile/user-profile.component.js +3 -2
- package/esm2015/user-profile/user-profile.module.js +3 -2
- package/esm2015/virtual-scroll/covalent-core-virtual-scroll.js +3 -2
- package/esm2015/virtual-scroll/index.js +3 -2
- package/esm2015/virtual-scroll/public-api.js +3 -2
- package/esm2015/virtual-scroll/virtual-scroll-container.component.js +4 -3
- package/esm2015/virtual-scroll/virtual-scroll-row.directive.js +3 -2
- package/esm2015/virtual-scroll/virtual-scroll.module.js +3 -2
- package/expansion-panel/covalent-core-expansion-panel.metadata.json +1 -1
- package/expansion-panel/package.json +1 -3
- package/fesm2015/covalent-core-breadcrumbs.js +13 -7
- package/fesm2015/covalent-core-breadcrumbs.js.map +1 -1
- package/fesm2015/covalent-core-chips.js +11 -6
- package/fesm2015/covalent-core-chips.js.map +1 -1
- package/fesm2015/covalent-core-common.js +62 -31
- package/fesm2015/covalent-core-common.js.map +1 -1
- package/fesm2015/covalent-core-data-table.js +28 -17
- package/fesm2015/covalent-core-data-table.js.map +1 -1
- package/fesm2015/covalent-core-dialogs.js +36 -25
- package/fesm2015/covalent-core-dialogs.js.map +1 -1
- package/fesm2015/covalent-core-dynamic-menu.js +17 -10
- package/fesm2015/covalent-core-dynamic-menu.js.map +1 -1
- package/fesm2015/covalent-core-expansion-panel.js +13 -7
- package/fesm2015/covalent-core-expansion-panel.js.map +1 -1
- package/fesm2015/covalent-core-file.js +19 -10
- package/fesm2015/covalent-core-file.js.map +1 -1
- package/fesm2015/covalent-core-json-formatter.js +11 -6
- package/fesm2015/covalent-core-json-formatter.js.map +1 -1
- package/fesm2015/covalent-core-layout.js +65 -41
- package/fesm2015/covalent-core-layout.js.map +1 -1
- package/fesm2015/covalent-core-loading.js +26 -18
- package/fesm2015/covalent-core-loading.js.map +1 -1
- package/fesm2015/covalent-core-media.js +12 -6
- package/fesm2015/covalent-core-media.js.map +1 -1
- package/fesm2015/covalent-core-menu.js +11 -6
- package/fesm2015/covalent-core-menu.js.map +1 -1
- package/fesm2015/covalent-core-message.js +11 -6
- package/fesm2015/covalent-core-message.js.map +1 -1
- package/fesm2015/covalent-core-nav-links.js +10 -5
- package/fesm2015/covalent-core-nav-links.js.map +1 -1
- package/fesm2015/covalent-core-notifications.js +17 -12
- package/fesm2015/covalent-core-notifications.js.map +1 -1
- package/fesm2015/covalent-core-paging.js +11 -6
- package/fesm2015/covalent-core-paging.js.map +1 -1
- package/fesm2015/covalent-core-search.js +14 -8
- package/fesm2015/covalent-core-search.js.map +1 -1
- package/fesm2015/covalent-core-sidesheet.js +11 -6
- package/fesm2015/covalent-core-sidesheet.js.map +1 -1
- package/fesm2015/covalent-core-steps.js +33 -22
- package/fesm2015/covalent-core-steps.js.map +1 -1
- package/fesm2015/covalent-core-tab-select.js +12 -6
- package/fesm2015/covalent-core-tab-select.js.map +1 -1
- package/fesm2015/covalent-core-user-profile.js +13 -7
- package/fesm2015/covalent-core-user-profile.js.map +1 -1
- package/fesm2015/covalent-core-virtual-scroll.js +13 -7
- package/fesm2015/covalent-core-virtual-scroll.js.map +1 -1
- package/fesm2015/covalent-core.js +4 -2
- package/fesm2015/covalent-core.js.map +1 -1
- package/file/covalent-core-file.metadata.json +1 -1
- package/file/package.json +1 -3
- package/json-formatter/covalent-core-json-formatter.metadata.json +1 -1
- package/json-formatter/package.json +1 -3
- package/layout/covalent-core-layout.metadata.json +1 -1
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +4 -4
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +4 -4
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.directives.d.ts +4 -4
- package/layout/package.json +1 -3
- package/loading/covalent-core-loading.metadata.json +1 -1
- package/loading/package.json +1 -3
- package/media/package.json +1 -3
- package/menu/covalent-core-menu.metadata.json +1 -1
- package/menu/package.json +1 -3
- package/message/covalent-core-message.metadata.json +1 -1
- package/message/package.json +1 -3
- package/nav-links/package.json +1 -3
- package/notifications/covalent-core-notifications.metadata.json +1 -1
- package/notifications/package.json +1 -3
- package/package.json +12 -12
- package/paging/covalent-core-paging.metadata.json +1 -1
- package/paging/package.json +1 -3
- package/schematics/components.js +1 -0
- package/schematics/components.js.map +1 -1
- package/schematics/ng-add/files/theme.scss +1 -1
- package/schematics/ng-add/index.js +4 -6
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-update/index.js +1 -0
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/target-version.js +1 -0
- package/schematics/ng-update/target-version.js.map +1 -1
- package/schematics/version-names.js +1 -0
- package/schematics/version-names.js.map +1 -1
- package/search/covalent-core-search.metadata.json +1 -1
- package/search/package.json +1 -3
- package/sidesheet/covalent-core-sidesheet.metadata.json +1 -1
- package/sidesheet/package.json +1 -3
- package/steps/covalent-core-steps.metadata.json +1 -1
- package/steps/package.json +1 -3
- package/tab-select/covalent-core-tab-select.metadata.json +1 -1
- package/tab-select/package.json +1 -3
- package/theming/prebuilt/blue-grey-deep-orange.css +193 -28
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +193 -28
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +193 -28
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +193 -28
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +193 -28
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/user-profile/covalent-core-user-profile.metadata.json +1 -1
- package/user-profile/package.json +1 -3
- package/virtual-scroll/covalent-core-virtual-scroll.metadata.json +1 -1
- package/virtual-scroll/package.json +1 -3
- package/esm5/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -216
- package/esm5/breadcrumbs/breadcrumbs.component.js +0 -286
- package/esm5/breadcrumbs/breadcrumbs.module.js +0 -23
- package/esm5/breadcrumbs/covalent-core-breadcrumbs.js +0 -9
- package/esm5/breadcrumbs/index.js +0 -6
- package/esm5/breadcrumbs/public-api.js +0 -8
- package/esm5/chips/chips.component.js +0 -1453
- package/esm5/chips/chips.module.js +0 -26
- package/esm5/chips/covalent-core-chips.js +0 -9
- package/esm5/chips/index.js +0 -6
- package/esm5/chips/public-api.js +0 -7
- package/esm5/common/animations/bounce/bounce.animation.js +0 -75
- package/esm5/common/animations/collapse/collapse.animation.js +0 -66
- package/esm5/common/animations/common/interfaces.js +0 -17
- package/esm5/common/animations/fade/fadeInOut.animation.js +0 -52
- package/esm5/common/animations/flash/flash.animation.js +0 -39
- package/esm5/common/animations/headshake/headshake.animation.js +0 -40
- package/esm5/common/animations/jello/jello.animation.js +0 -43
- package/esm5/common/animations/pulse/pulse.animation.js +0 -37
- package/esm5/common/animations/rotate/rotate.animation.js +0 -40
- package/esm5/common/behaviors/control-value-accesor.mixin.js +0 -127
- package/esm5/common/behaviors/disable-ripple.mixin.js +0 -75
- package/esm5/common/behaviors/disabled.mixin.js +0 -75
- package/esm5/common/common.module.js +0 -57
- package/esm5/common/covalent-core-common.js +0 -11
- package/esm5/common/directives/fullscreen/fullscreen.directive.js +0 -228
- package/esm5/common/forms/auto-trim/auto-trim.directive.js +0 -52
- package/esm5/common/forms/validators/validators.js +0 -73
- package/esm5/common/functions/clipboard.js +0 -29
- package/esm5/common/functions/convert.js +0 -120
- package/esm5/common/functions/download.js +0 -93
- package/esm5/common/functions/file.js +0 -28
- package/esm5/common/index.js +0 -6
- package/esm5/common/pipes/bytes/bytes.pipe.js +0 -54
- package/esm5/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -54
- package/esm5/common/pipes/digits/digits.pipe.js +0 -72
- package/esm5/common/pipes/time-ago/time-ago.pipe.js +0 -89
- package/esm5/common/pipes/time-difference/time-difference.pipe.js +0 -74
- package/esm5/common/pipes/time-until/time-until.pipe.js +0 -89
- package/esm5/common/pipes/truncate/truncate.pipe.js +0 -42
- package/esm5/common/public-api.js +0 -43
- package/esm5/common/services/icon.service.js +0 -1118
- package/esm5/common/services/router-path.service.js +0 -69
- package/esm5/covalent-core.js +0 -9
- package/esm5/data-table/covalent-core-data-table.js +0 -9
- package/esm5/data-table/data-table-cell/data-table-cell.component.js +0 -98
- package/esm5/data-table/data-table-column/data-table-column.component.js +0 -257
- package/esm5/data-table/data-table-row/data-table-row.component.js +0 -145
- package/esm5/data-table/data-table-table/data-table-table.component.js +0 -40
- package/esm5/data-table/data-table.component.js +0 -2079
- package/esm5/data-table/data-table.module.js +0 -42
- package/esm5/data-table/directives/data-table-template.directive.js +0 -31
- package/esm5/data-table/index.js +0 -6
- package/esm5/data-table/public-api.js +0 -13
- package/esm5/data-table/services/data-table.service.js +0 -184
- package/esm5/dialogs/alert-dialog/alert-dialog.component.js +0 -48
- package/esm5/dialogs/confirm-dialog/confirm-dialog.component.js +0 -63
- package/esm5/dialogs/covalent-core-dialogs.js +0 -10
- package/esm5/dialogs/dialog.component.js +0 -76
- package/esm5/dialogs/dialogs.module.js +0 -60
- package/esm5/dialogs/index.js +0 -6
- package/esm5/dialogs/prompt-dialog/prompt-dialog.component.js +0 -100
- package/esm5/dialogs/public-api.js +0 -12
- package/esm5/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -356
- package/esm5/dialogs/services/dialog.service.js +0 -441
- package/esm5/dialogs/window-dialog/window-dialog.component.js +0 -60
- package/esm5/dynamic-menu/covalent-core-dynamic-menu.js +0 -10
- package/esm5/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -45
- package/esm5/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -39
- package/esm5/dynamic-menu/dynamic-menu.component.js +0 -94
- package/esm5/dynamic-menu/dynamic-menu.module.js +0 -29
- package/esm5/dynamic-menu/index.js +0 -6
- package/esm5/dynamic-menu/public_api.js +0 -8
- package/esm5/expansion-panel/covalent-core-expansion-panel.js +0 -9
- package/esm5/expansion-panel/expansion-panel-group.component.js +0 -251
- package/esm5/expansion-panel/expansion-panel.component.js +0 -344
- package/esm5/expansion-panel/expansion-panel.module.js +0 -34
- package/esm5/expansion-panel/index.js +0 -6
- package/esm5/expansion-panel/public-api.js +0 -8
- package/esm5/file/covalent-core-file.js +0 -9
- package/esm5/file/directives/file-drop.directive.js +0 -276
- package/esm5/file/directives/file-select.directive.js +0 -124
- package/esm5/file/file-input/file-input.component.js +0 -225
- package/esm5/file/file-upload/file-upload.component.js +0 -284
- package/esm5/file/file.module.js +0 -38
- package/esm5/file/index.js +0 -6
- package/esm5/file/public-api.js +0 -11
- package/esm5/file/services/file.service.js +0 -137
- package/esm5/index.js +0 -5
- package/esm5/json-formatter/covalent-core-json-formatter.js +0 -9
- package/esm5/json-formatter/index.js +0 -6
- package/esm5/json-formatter/json-formatter.component.js +0 -433
- package/esm5/json-formatter/json-formatter.module.js +0 -23
- package/esm5/json-formatter/public-api.js +0 -7
- package/esm5/layout/covalent-core-layout.js +0 -9
- package/esm5/layout/index.js +0 -6
- package/esm5/layout/layout-card-over/layout-card-over.component.js +0 -72
- package/esm5/layout/layout-footer/layout-footer.component.js +0 -77
- package/esm5/layout/layout-manage-list/layout-manage-list.component.js +0 -175
- package/esm5/layout/layout-manage-list/layout-manage-list.directives.js +0 -147
- package/esm5/layout/layout-nav/layout-nav.component.js +0 -108
- package/esm5/layout/layout-nav-list/layout-nav-list.component.js +0 -257
- package/esm5/layout/layout-nav-list/layout-nav-list.directives.js +0 -147
- package/esm5/layout/layout-toggle.class.js +0 -214
- package/esm5/layout/layout.component.js +0 -175
- package/esm5/layout/layout.directives.js +0 -144
- package/esm5/layout/layout.module.js +0 -67
- package/esm5/layout/navigation-drawer/navigation-drawer.component.js +0 -364
- package/esm5/layout/public-api.js +0 -17
- package/esm5/loading/covalent-core-loading.js +0 -9
- package/esm5/loading/directives/loading.directive.js +0 -304
- package/esm5/loading/index.js +0 -6
- package/esm5/loading/loading.component.js +0 -367
- package/esm5/loading/loading.module.js +0 -33
- package/esm5/loading/public-api.js +0 -10
- package/esm5/loading/services/loading.factory.js +0 -378
- package/esm5/loading/services/loading.service.js +0 -494
- package/esm5/media/covalent-core-media.js +0 -9
- package/esm5/media/directives/media-toggle.directive.js +0 -261
- package/esm5/media/index.js +0 -6
- package/esm5/media/media.module.js +0 -23
- package/esm5/media/public-api.js +0 -8
- package/esm5/media/services/media.service.js +0 -229
- package/esm5/menu/covalent-core-menu.js +0 -9
- package/esm5/menu/index.js +0 -6
- package/esm5/menu/menu.component.js +0 -19
- package/esm5/menu/menu.module.js +0 -25
- package/esm5/menu/public-api.js +0 -7
- package/esm5/message/covalent-core-message.js +0 -9
- package/esm5/message/index.js +0 -6
- package/esm5/message/message.component.js +0 -402
- package/esm5/message/message.module.js +0 -24
- package/esm5/message/public-api.js +0 -7
- package/esm5/nav-links/covalent-core-nav-links.js +0 -9
- package/esm5/nav-links/index.js +0 -6
- package/esm5/nav-links/nav-links.component.js +0 -171
- package/esm5/nav-links/nav-links.module.js +0 -40
- package/esm5/nav-links/public-api.js +0 -7
- package/esm5/notifications/covalent-core-notifications.js +0 -9
- package/esm5/notifications/index.js +0 -6
- package/esm5/notifications/notification-count.component.js +0 -268
- package/esm5/notifications/notifications.module.js +0 -23
- package/esm5/notifications/public-api.js +0 -7
- package/esm5/paging/covalent-core-paging.js +0 -9
- package/esm5/paging/index.js +0 -6
- package/esm5/paging/paging-bar.component.js +0 -542
- package/esm5/paging/paging.module.js +0 -23
- package/esm5/paging/public-api.js +0 -7
- package/esm5/search/covalent-core-search.js +0 -9
- package/esm5/search/index.js +0 -6
- package/esm5/search/public-api.js +0 -8
- package/esm5/search/search-box/search-box.component.js +0 -298
- package/esm5/search/search-input/search-input.component.js +0 -297
- package/esm5/search/search.module.js +0 -26
- package/esm5/sidesheet/covalent-core-sidesheet.js +0 -9
- package/esm5/sidesheet/index.js +0 -6
- package/esm5/sidesheet/public-api.js +0 -7
- package/esm5/sidesheet/sidesheet.component.js +0 -89
- package/esm5/sidesheet/sidesheet.module.js +0 -30
- package/esm5/steps/covalent-core-steps.js +0 -9
- package/esm5/steps/index.js +0 -6
- package/esm5/steps/nav/nav-step-link/nav-step-link.component.js +0 -165
- package/esm5/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +0 -464
- package/esm5/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +0 -143
- package/esm5/steps/public-api.js +0 -13
- package/esm5/steps/step-body/step-body.component.js +0 -103
- package/esm5/steps/step-header/step-header.component.js +0 -101
- package/esm5/steps/step.component.js +0 -399
- package/esm5/steps/steps.component.js +0 -313
- package/esm5/steps/steps.module.js +0 -47
- package/esm5/tab-select/covalent-core-tab-select.js +0 -9
- package/esm5/tab-select/index.js +0 -6
- package/esm5/tab-select/public-api.js +0 -8
- package/esm5/tab-select/tab-option.component.js +0 -86
- package/esm5/tab-select/tab-select.component.js +0 -344
- package/esm5/tab-select/tab-select.module.js +0 -34
- package/esm5/user-profile/covalent-core-user-profile.js +0 -9
- package/esm5/user-profile/index.js +0 -6
- package/esm5/user-profile/public_api.js +0 -8
- package/esm5/user-profile/user-profile-menu/user-profile-menu.component.js +0 -42
- package/esm5/user-profile/user-profile.component.js +0 -29
- package/esm5/user-profile/user-profile.module.js +0 -36
- package/esm5/virtual-scroll/covalent-core-virtual-scroll.js +0 -9
- package/esm5/virtual-scroll/index.js +0 -6
- package/esm5/virtual-scroll/public-api.js +0 -8
- package/esm5/virtual-scroll/virtual-scroll-container.component.js +0 -468
- package/esm5/virtual-scroll/virtual-scroll-row.directive.js +0 -24
- package/esm5/virtual-scroll/virtual-scroll.module.js +0 -24
- package/fesm5/covalent-core-breadcrumbs.js +0 -535
- package/fesm5/covalent-core-breadcrumbs.js.map +0 -1
- package/fesm5/covalent-core-chips.js +0 -1484
- package/fesm5/covalent-core-chips.js.map +0 -1
- package/fesm5/covalent-core-common.js +0 -2961
- package/fesm5/covalent-core-common.js.map +0 -1
- package/fesm5/covalent-core-data-table.js +0 -2863
- package/fesm5/covalent-core-data-table.js.map +0 -1
- package/fesm5/covalent-core-dialogs.js +0 -1189
- package/fesm5/covalent-core-dialogs.js.map +0 -1
- package/fesm5/covalent-core-dynamic-menu.js +0 -214
- package/fesm5/covalent-core-dynamic-menu.js.map +0 -1
- package/fesm5/covalent-core-expansion-panel.js +0 -631
- package/fesm5/covalent-core-expansion-panel.js.map +0 -1
- package/fesm5/covalent-core-file.js +0 -1068
- package/fesm5/covalent-core-file.js.map +0 -1
- package/fesm5/covalent-core-json-formatter.js +0 -470
- package/fesm5/covalent-core-json-formatter.js.map +0 -1
- package/fesm5/covalent-core-layout.js +0 -1906
- package/fesm5/covalent-core-layout.js.map +0 -1
- package/fesm5/covalent-core-loading.js +0 -1562
- package/fesm5/covalent-core-loading.js.map +0 -1
- package/fesm5/covalent-core-media.js +0 -522
- package/fesm5/covalent-core-media.js.map +0 -1
- package/fesm5/covalent-core-menu.js +0 -58
- package/fesm5/covalent-core-menu.js.map +0 -1
- package/fesm5/covalent-core-message.js +0 -439
- package/fesm5/covalent-core-message.js.map +0 -1
- package/fesm5/covalent-core-nav-links.js +0 -224
- package/fesm5/covalent-core-nav-links.js.map +0 -1
- package/fesm5/covalent-core-notifications.js +0 -303
- package/fesm5/covalent-core-notifications.js.map +0 -1
- package/fesm5/covalent-core-paging.js +0 -579
- package/fesm5/covalent-core-paging.js.map +0 -1
- package/fesm5/covalent-core-search.js +0 -623
- package/fesm5/covalent-core-search.js.map +0 -1
- package/fesm5/covalent-core-sidesheet.js +0 -129
- package/fesm5/covalent-core-sidesheet.js.map +0 -1
- package/fesm5/covalent-core-steps.js +0 -1704
- package/fesm5/covalent-core-steps.js.map +0 -1
- package/fesm5/covalent-core-tab-select.js +0 -467
- package/fesm5/covalent-core-tab-select.js.map +0 -1
- package/fesm5/covalent-core-user-profile.js +0 -118
- package/fesm5/covalent-core-user-profile.js.map +0 -1
- package/fesm5/covalent-core-virtual-scroll.js +0 -526
- package/fesm5/covalent-core-virtual-scroll.js.map +0 -1
- package/fesm5/covalent-core.js +0 -10
- package/fesm5/covalent-core.js.map +0 -1
@@ -1,535 +0,0 @@
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, HostBinding, ContentChildren, Input, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
4
|
-
import { Subscription, Subject, merge, fromEvent } from 'rxjs';
|
5
|
-
import { debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';
|
6
|
-
|
7
|
-
/**
|
8
|
-
* @fileoverview added by tsickle
|
9
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
10
|
-
*/
|
11
|
-
var TdBreadcrumbComponent = /** @class */ (function () {
|
12
|
-
function TdBreadcrumbComponent(_elementRef, _changeDetectorRef) {
|
13
|
-
this._elementRef = _elementRef;
|
14
|
-
this._changeDetectorRef = _changeDetectorRef;
|
15
|
-
this._displayCrumb = true;
|
16
|
-
this._width = 0;
|
17
|
-
this._displayIcon = true;
|
18
|
-
this._separatorIcon = 'chevron_right';
|
19
|
-
}
|
20
|
-
Object.defineProperty(TdBreadcrumbComponent.prototype, "separatorIcon", {
|
21
|
-
// Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'
|
22
|
-
get:
|
23
|
-
// Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'
|
24
|
-
/**
|
25
|
-
* @return {?}
|
26
|
-
*/
|
27
|
-
function () {
|
28
|
-
return this._separatorIcon;
|
29
|
-
},
|
30
|
-
set: /**
|
31
|
-
* @param {?} separatorIcon
|
32
|
-
* @return {?}
|
33
|
-
*/
|
34
|
-
function (separatorIcon) {
|
35
|
-
var _this = this;
|
36
|
-
this._separatorIcon = separatorIcon;
|
37
|
-
setTimeout((/**
|
38
|
-
* @return {?}
|
39
|
-
*/
|
40
|
-
function () {
|
41
|
-
_this._changeDetectorRef.markForCheck();
|
42
|
-
}));
|
43
|
-
},
|
44
|
-
enumerable: true,
|
45
|
-
configurable: true
|
46
|
-
});
|
47
|
-
Object.defineProperty(TdBreadcrumbComponent.prototype, "displayIcon", {
|
48
|
-
// Should show the right chevron or not before the label
|
49
|
-
get:
|
50
|
-
// Should show the right chevron or not before the label
|
51
|
-
/**
|
52
|
-
* @return {?}
|
53
|
-
*/
|
54
|
-
function () {
|
55
|
-
return this._displayIcon;
|
56
|
-
},
|
57
|
-
set: /**
|
58
|
-
* @param {?} displayIcon
|
59
|
-
* @return {?}
|
60
|
-
*/
|
61
|
-
function (displayIcon) {
|
62
|
-
var _this = this;
|
63
|
-
this._displayIcon = displayIcon;
|
64
|
-
setTimeout((/**
|
65
|
-
* @return {?}
|
66
|
-
*/
|
67
|
-
function () {
|
68
|
-
_this._changeDetectorRef.markForCheck();
|
69
|
-
}));
|
70
|
-
},
|
71
|
-
enumerable: true,
|
72
|
-
configurable: true
|
73
|
-
});
|
74
|
-
Object.defineProperty(TdBreadcrumbComponent.prototype, "displayCrumb", {
|
75
|
-
get: /**
|
76
|
-
* @return {?}
|
77
|
-
*/
|
78
|
-
function () {
|
79
|
-
return this._displayCrumb;
|
80
|
-
},
|
81
|
-
/**
|
82
|
-
* Whether to display the crumb or not
|
83
|
-
*/
|
84
|
-
set: /**
|
85
|
-
* Whether to display the crumb or not
|
86
|
-
* @param {?} shouldDisplay
|
87
|
-
* @return {?}
|
88
|
-
*/
|
89
|
-
function (shouldDisplay) {
|
90
|
-
var _this = this;
|
91
|
-
this._displayCrumb = shouldDisplay;
|
92
|
-
setTimeout((/**
|
93
|
-
* @return {?}
|
94
|
-
*/
|
95
|
-
function () {
|
96
|
-
_this._changeDetectorRef.markForCheck();
|
97
|
-
}));
|
98
|
-
},
|
99
|
-
enumerable: true,
|
100
|
-
configurable: true
|
101
|
-
});
|
102
|
-
Object.defineProperty(TdBreadcrumbComponent.prototype, "width", {
|
103
|
-
/**
|
104
|
-
* Width of the DOM element of the crumb
|
105
|
-
*/
|
106
|
-
get: /**
|
107
|
-
* Width of the DOM element of the crumb
|
108
|
-
* @return {?}
|
109
|
-
*/
|
110
|
-
function () {
|
111
|
-
return this._width;
|
112
|
-
},
|
113
|
-
enumerable: true,
|
114
|
-
configurable: true
|
115
|
-
});
|
116
|
-
Object.defineProperty(TdBreadcrumbComponent.prototype, "displayBinding", {
|
117
|
-
/**
|
118
|
-
* Gets the display style of the crumb
|
119
|
-
*/
|
120
|
-
get: /**
|
121
|
-
* Gets the display style of the crumb
|
122
|
-
* @return {?}
|
123
|
-
*/
|
124
|
-
function () {
|
125
|
-
// Set the display to none on the component, just in case the end user is hiding
|
126
|
-
// and showing them instead of the component doing itself for reasons like responsive
|
127
|
-
return this._displayCrumb ? undefined : 'none';
|
128
|
-
},
|
129
|
-
enumerable: true,
|
130
|
-
configurable: true
|
131
|
-
});
|
132
|
-
/**
|
133
|
-
* @return {?}
|
134
|
-
*/
|
135
|
-
TdBreadcrumbComponent.prototype.ngAfterViewInit = /**
|
136
|
-
* @return {?}
|
137
|
-
*/
|
138
|
-
function () {
|
139
|
-
var _this = this;
|
140
|
-
// set the width from the actual rendered DOM element
|
141
|
-
setTimeout((/**
|
142
|
-
* @return {?}
|
143
|
-
*/
|
144
|
-
function () {
|
145
|
-
_this._width = ((/** @type {?} */ (_this._elementRef.nativeElement))).getBoundingClientRect().width;
|
146
|
-
_this._changeDetectorRef.markForCheck();
|
147
|
-
}));
|
148
|
-
};
|
149
|
-
/**
|
150
|
-
* Stop click propagation when clicking on icon
|
151
|
-
*/
|
152
|
-
/**
|
153
|
-
* Stop click propagation when clicking on icon
|
154
|
-
* @param {?} event
|
155
|
-
* @return {?}
|
156
|
-
*/
|
157
|
-
TdBreadcrumbComponent.prototype._handleIconClick = /**
|
158
|
-
* Stop click propagation when clicking on icon
|
159
|
-
* @param {?} event
|
160
|
-
* @return {?}
|
161
|
-
*/
|
162
|
-
function (event) {
|
163
|
-
event.stopPropagation();
|
164
|
-
event.preventDefault();
|
165
|
-
};
|
166
|
-
TdBreadcrumbComponent.decorators = [
|
167
|
-
{ type: Component, args: [{
|
168
|
-
selector: 'td-breadcrumb, a[td-breadcrumb]',
|
169
|
-
template: "<ng-content></ng-content>\n<mat-icon\n *ngIf=\"displayIcon\"\n class=\"td-breadcrumb-separator-icon\"\n [style.cursor]=\"'default'\"\n (click)=\"_handleIconClick($event)\"\n>\n {{ separatorIcon }}\n</mat-icon>\n",
|
170
|
-
/* tslint:disable-next-line */
|
171
|
-
host: {
|
172
|
-
class: 'mat-button td-breadcrumb',
|
173
|
-
},
|
174
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
175
|
-
styles: [":host.td-breadcrumb{display:inline-block;box-sizing:border-box;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}:host.td-breadcrumb ::ng-deep>*{margin:0 10px}:host .td-breadcrumb-separator-icon{display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host.mat-button{min-width:0;padding:0}"]
|
176
|
-
}] }
|
177
|
-
];
|
178
|
-
/** @nocollapse */
|
179
|
-
TdBreadcrumbComponent.ctorParameters = function () { return [
|
180
|
-
{ type: ElementRef },
|
181
|
-
{ type: ChangeDetectorRef }
|
182
|
-
]; };
|
183
|
-
TdBreadcrumbComponent.propDecorators = {
|
184
|
-
displayBinding: [{ type: HostBinding, args: ['style.display',] }]
|
185
|
-
};
|
186
|
-
return TdBreadcrumbComponent;
|
187
|
-
}());
|
188
|
-
if (false) {
|
189
|
-
/**
|
190
|
-
* @type {?}
|
191
|
-
* @private
|
192
|
-
*/
|
193
|
-
TdBreadcrumbComponent.prototype._displayCrumb;
|
194
|
-
/**
|
195
|
-
* @type {?}
|
196
|
-
* @private
|
197
|
-
*/
|
198
|
-
TdBreadcrumbComponent.prototype._width;
|
199
|
-
/**
|
200
|
-
* @type {?}
|
201
|
-
* @private
|
202
|
-
*/
|
203
|
-
TdBreadcrumbComponent.prototype._displayIcon;
|
204
|
-
/**
|
205
|
-
* @type {?}
|
206
|
-
* @private
|
207
|
-
*/
|
208
|
-
TdBreadcrumbComponent.prototype._separatorIcon;
|
209
|
-
/**
|
210
|
-
* @type {?}
|
211
|
-
* @private
|
212
|
-
*/
|
213
|
-
TdBreadcrumbComponent.prototype._elementRef;
|
214
|
-
/**
|
215
|
-
* @type {?}
|
216
|
-
* @private
|
217
|
-
*/
|
218
|
-
TdBreadcrumbComponent.prototype._changeDetectorRef;
|
219
|
-
}
|
220
|
-
|
221
|
-
/**
|
222
|
-
* @fileoverview added by tsickle
|
223
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
224
|
-
*/
|
225
|
-
var TdBreadcrumbsComponent = /** @class */ (function () {
|
226
|
-
function TdBreadcrumbsComponent(_elementRef, _changeDetectorRef) {
|
227
|
-
this._elementRef = _elementRef;
|
228
|
-
this._changeDetectorRef = _changeDetectorRef;
|
229
|
-
this._resizeSubscription = Subscription.EMPTY;
|
230
|
-
this._widthSubject = new Subject();
|
231
|
-
this._resizing = false;
|
232
|
-
this._separatorIcon = 'chevron_right';
|
233
|
-
// the list of hidden breadcrumbs not shown right now (responsive)
|
234
|
-
this.hiddenBreadcrumbs = [];
|
235
|
-
}
|
236
|
-
Object.defineProperty(TdBreadcrumbsComponent.prototype, "separatorIcon", {
|
237
|
-
get: /**
|
238
|
-
* @return {?}
|
239
|
-
*/
|
240
|
-
function () {
|
241
|
-
return this._separatorIcon;
|
242
|
-
},
|
243
|
-
/**
|
244
|
-
* Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'.
|
245
|
-
*/
|
246
|
-
set: /**
|
247
|
-
* Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'.
|
248
|
-
* @param {?} separatorIcon
|
249
|
-
* @return {?}
|
250
|
-
*/
|
251
|
-
function (separatorIcon) {
|
252
|
-
this._separatorIcon = separatorIcon;
|
253
|
-
this.setCrumbIcons();
|
254
|
-
},
|
255
|
-
enumerable: true,
|
256
|
-
configurable: true
|
257
|
-
});
|
258
|
-
/**
|
259
|
-
* @return {?}
|
260
|
-
*/
|
261
|
-
TdBreadcrumbsComponent.prototype.ngOnInit = /**
|
262
|
-
* @return {?}
|
263
|
-
*/
|
264
|
-
function () {
|
265
|
-
var _this = this;
|
266
|
-
this._resizeSubscription = merge(fromEvent(window, 'resize').pipe(debounceTime(10)), this._widthSubject.asObservable().pipe(distinctUntilChanged())).subscribe((/**
|
267
|
-
* @return {?}
|
268
|
-
*/
|
269
|
-
function () {
|
270
|
-
if (!_this._resizing) {
|
271
|
-
_this._resizing = true;
|
272
|
-
setTimeout((/**
|
273
|
-
* @return {?}
|
274
|
-
*/
|
275
|
-
function () {
|
276
|
-
_this._calculateVisibility();
|
277
|
-
_this._resizing = false;
|
278
|
-
_this._changeDetectorRef.markForCheck();
|
279
|
-
}), 100);
|
280
|
-
}
|
281
|
-
}));
|
282
|
-
};
|
283
|
-
/**
|
284
|
-
* @return {?}
|
285
|
-
*/
|
286
|
-
TdBreadcrumbsComponent.prototype.ngDoCheck = /**
|
287
|
-
* @return {?}
|
288
|
-
*/
|
289
|
-
function () {
|
290
|
-
if (this._elementRef && this._elementRef.nativeElement) {
|
291
|
-
this._widthSubject.next(this.nativeElementWidth);
|
292
|
-
}
|
293
|
-
};
|
294
|
-
/**
|
295
|
-
* @return {?}
|
296
|
-
*/
|
297
|
-
TdBreadcrumbsComponent.prototype.ngAfterContentInit = /**
|
298
|
-
* @return {?}
|
299
|
-
*/
|
300
|
-
function () {
|
301
|
-
var _this = this;
|
302
|
-
this._contentChildrenSub = this._breadcrumbs.changes.pipe(startWith(this._breadcrumbs)).subscribe((/**
|
303
|
-
* @return {?}
|
304
|
-
*/
|
305
|
-
function () {
|
306
|
-
_this.setCrumbIcons();
|
307
|
-
_this._changeDetectorRef.markForCheck();
|
308
|
-
}));
|
309
|
-
};
|
310
|
-
/**
|
311
|
-
* @return {?}
|
312
|
-
*/
|
313
|
-
TdBreadcrumbsComponent.prototype.ngOnDestroy = /**
|
314
|
-
* @return {?}
|
315
|
-
*/
|
316
|
-
function () {
|
317
|
-
this._resizeSubscription.unsubscribe();
|
318
|
-
this._contentChildrenSub.unsubscribe();
|
319
|
-
};
|
320
|
-
Object.defineProperty(TdBreadcrumbsComponent.prototype, "nativeElementWidth", {
|
321
|
-
/*
|
322
|
-
* Current width of the element container
|
323
|
-
*/
|
324
|
-
get: /*
|
325
|
-
* Current width of the element container
|
326
|
-
*/
|
327
|
-
/**
|
328
|
-
* @return {?}
|
329
|
-
*/
|
330
|
-
function () {
|
331
|
-
/** @type {?} */
|
332
|
-
var element = (/** @type {?} */ (this._elementRef.nativeElement));
|
333
|
-
// Need to take into account border, margin and padding that might be around all the crumbs
|
334
|
-
/** @type {?} */
|
335
|
-
var style = window.getComputedStyle(element);
|
336
|
-
/** @type {?} */
|
337
|
-
var borderLeft = parseInt(style.borderLeft, 10);
|
338
|
-
/** @type {?} */
|
339
|
-
var borderRight = parseInt(style.borderRight, 10);
|
340
|
-
/** @type {?} */
|
341
|
-
var marginLeft = parseInt(style.marginLeft, 10);
|
342
|
-
/** @type {?} */
|
343
|
-
var marginRight = parseInt(style.marginRight, 10);
|
344
|
-
/** @type {?} */
|
345
|
-
var paddingLeft = parseInt(style.paddingLeft, 10);
|
346
|
-
/** @type {?} */
|
347
|
-
var paddingRight = parseInt(style.paddingRight, 10);
|
348
|
-
return (element.getBoundingClientRect().width -
|
349
|
-
borderLeft -
|
350
|
-
borderRight -
|
351
|
-
marginLeft -
|
352
|
-
marginRight -
|
353
|
-
paddingLeft -
|
354
|
-
paddingRight);
|
355
|
-
},
|
356
|
-
enumerable: true,
|
357
|
-
configurable: true
|
358
|
-
});
|
359
|
-
Object.defineProperty(TdBreadcrumbsComponent.prototype, "count", {
|
360
|
-
/**
|
361
|
-
* The total count of individual breadcrumbs
|
362
|
-
*/
|
363
|
-
get: /**
|
364
|
-
* The total count of individual breadcrumbs
|
365
|
-
* @return {?}
|
366
|
-
*/
|
367
|
-
function () {
|
368
|
-
return this._breadcrumbs ? this._breadcrumbs.length : 0;
|
369
|
-
},
|
370
|
-
enumerable: true,
|
371
|
-
configurable: true
|
372
|
-
});
|
373
|
-
/**
|
374
|
-
* Set the crumb icon separators
|
375
|
-
*/
|
376
|
-
/**
|
377
|
-
* Set the crumb icon separators
|
378
|
-
* @private
|
379
|
-
* @return {?}
|
380
|
-
*/
|
381
|
-
TdBreadcrumbsComponent.prototype.setCrumbIcons = /**
|
382
|
-
* Set the crumb icon separators
|
383
|
-
* @private
|
384
|
-
* @return {?}
|
385
|
-
*/
|
386
|
-
function () {
|
387
|
-
var _this = this;
|
388
|
-
if (this._breadcrumbs) {
|
389
|
-
/** @type {?} */
|
390
|
-
var breadcrumbArray_1 = this._breadcrumbs.toArray();
|
391
|
-
breadcrumbArray_1.forEach((/**
|
392
|
-
* @param {?} breadcrumb
|
393
|
-
* @param {?} index
|
394
|
-
* @return {?}
|
395
|
-
*/
|
396
|
-
function (breadcrumb, index) {
|
397
|
-
breadcrumb.separatorIcon = _this.separatorIcon;
|
398
|
-
// don't show the icon on the last breadcrumb
|
399
|
-
breadcrumb.displayIcon = index < breadcrumbArray_1.length - 1;
|
400
|
-
}));
|
401
|
-
}
|
402
|
-
};
|
403
|
-
/**
|
404
|
-
* @private
|
405
|
-
* @return {?}
|
406
|
-
*/
|
407
|
-
TdBreadcrumbsComponent.prototype._calculateVisibility = /**
|
408
|
-
* @private
|
409
|
-
* @return {?}
|
410
|
-
*/
|
411
|
-
function () {
|
412
|
-
/** @type {?} */
|
413
|
-
var crumbsArray = this._breadcrumbs.toArray();
|
414
|
-
/** @type {?} */
|
415
|
-
var crumbWidthSum = 0;
|
416
|
-
/** @type {?} */
|
417
|
-
var hiddenCrumbs = [];
|
418
|
-
// loop through crumbs in reverse order to calculate which ones should be removed
|
419
|
-
for (var i = crumbsArray.length - 1; i >= 0; i--) {
|
420
|
-
/** @type {?} */
|
421
|
-
var breadcrumb = crumbsArray[i];
|
422
|
-
// if crumb exceeds width, then we skip it from the sum and add it into the hiddencrumbs array
|
423
|
-
// and hide it
|
424
|
-
if (crumbWidthSum + breadcrumb.width > this.nativeElementWidth) {
|
425
|
-
breadcrumb.displayCrumb = false;
|
426
|
-
hiddenCrumbs.push(breadcrumb);
|
427
|
-
}
|
428
|
-
else {
|
429
|
-
// else we show it
|
430
|
-
breadcrumb.displayCrumb = true;
|
431
|
-
}
|
432
|
-
crumbWidthSum += breadcrumb.width;
|
433
|
-
}
|
434
|
-
this.hiddenBreadcrumbs = hiddenCrumbs;
|
435
|
-
this._changeDetectorRef.markForCheck();
|
436
|
-
};
|
437
|
-
TdBreadcrumbsComponent.decorators = [
|
438
|
-
{ type: Component, args: [{
|
439
|
-
selector: 'td-breadcrumbs',
|
440
|
-
template: "<ng-content></ng-content>\n",
|
441
|
-
/* tslint:disable-next-line */
|
442
|
-
host: {
|
443
|
-
class: 'td-breadcrumbs',
|
444
|
-
},
|
445
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
446
|
-
styles: [":host{display:block;width:100%}:host.td-breadcrumbs{white-space:nowrap}"]
|
447
|
-
}] }
|
448
|
-
];
|
449
|
-
/** @nocollapse */
|
450
|
-
TdBreadcrumbsComponent.ctorParameters = function () { return [
|
451
|
-
{ type: ElementRef },
|
452
|
-
{ type: ChangeDetectorRef }
|
453
|
-
]; };
|
454
|
-
TdBreadcrumbsComponent.propDecorators = {
|
455
|
-
_breadcrumbs: [{ type: ContentChildren, args: [TdBreadcrumbComponent, { descendants: true },] }],
|
456
|
-
separatorIcon: [{ type: Input }]
|
457
|
-
};
|
458
|
-
return TdBreadcrumbsComponent;
|
459
|
-
}());
|
460
|
-
if (false) {
|
461
|
-
/**
|
462
|
-
* @type {?}
|
463
|
-
* @private
|
464
|
-
*/
|
465
|
-
TdBreadcrumbsComponent.prototype._resizeSubscription;
|
466
|
-
/**
|
467
|
-
* @type {?}
|
468
|
-
* @private
|
469
|
-
*/
|
470
|
-
TdBreadcrumbsComponent.prototype._widthSubject;
|
471
|
-
/**
|
472
|
-
* @type {?}
|
473
|
-
* @private
|
474
|
-
*/
|
475
|
-
TdBreadcrumbsComponent.prototype._contentChildrenSub;
|
476
|
-
/**
|
477
|
-
* @type {?}
|
478
|
-
* @private
|
479
|
-
*/
|
480
|
-
TdBreadcrumbsComponent.prototype._resizing;
|
481
|
-
/**
|
482
|
-
* @type {?}
|
483
|
-
* @private
|
484
|
-
*/
|
485
|
-
TdBreadcrumbsComponent.prototype._separatorIcon;
|
486
|
-
/** @type {?} */
|
487
|
-
TdBreadcrumbsComponent.prototype._breadcrumbs;
|
488
|
-
/** @type {?} */
|
489
|
-
TdBreadcrumbsComponent.prototype.hiddenBreadcrumbs;
|
490
|
-
/**
|
491
|
-
* @type {?}
|
492
|
-
* @private
|
493
|
-
*/
|
494
|
-
TdBreadcrumbsComponent.prototype._elementRef;
|
495
|
-
/**
|
496
|
-
* @type {?}
|
497
|
-
* @private
|
498
|
-
*/
|
499
|
-
TdBreadcrumbsComponent.prototype._changeDetectorRef;
|
500
|
-
}
|
501
|
-
|
502
|
-
/**
|
503
|
-
* @fileoverview added by tsickle
|
504
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
505
|
-
*/
|
506
|
-
var CovalentBreadcrumbsModule = /** @class */ (function () {
|
507
|
-
function CovalentBreadcrumbsModule() {
|
508
|
-
}
|
509
|
-
CovalentBreadcrumbsModule.decorators = [
|
510
|
-
{ type: NgModule, args: [{
|
511
|
-
imports: [CommonModule, MatIconModule],
|
512
|
-
declarations: [TdBreadcrumbsComponent, TdBreadcrumbComponent],
|
513
|
-
exports: [TdBreadcrumbsComponent, TdBreadcrumbComponent],
|
514
|
-
},] }
|
515
|
-
];
|
516
|
-
return CovalentBreadcrumbsModule;
|
517
|
-
}());
|
518
|
-
|
519
|
-
/**
|
520
|
-
* @fileoverview added by tsickle
|
521
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
522
|
-
*/
|
523
|
-
|
524
|
-
/**
|
525
|
-
* @fileoverview added by tsickle
|
526
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
527
|
-
*/
|
528
|
-
|
529
|
-
/**
|
530
|
-
* @fileoverview added by tsickle
|
531
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
532
|
-
*/
|
533
|
-
|
534
|
-
export { CovalentBreadcrumbsModule, TdBreadcrumbComponent, TdBreadcrumbsComponent };
|
535
|
-
//# sourceMappingURL=covalent-core-breadcrumbs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-breadcrumbs.js","sources":["ng://@covalent/core/breadcrumbs/breadcrumb/breadcrumb.component.ts","ng://@covalent/core/breadcrumbs/breadcrumbs.component.ts","ng://@covalent/core/breadcrumbs/breadcrumbs.module.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n HostBinding,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n} from '@angular/core';\n\n@Component({\n selector: 'td-breadcrumb, a[td-breadcrumb]',\n styleUrls: ['./breadcrumb.component.scss'],\n templateUrl: './breadcrumb.component.html',\n /* tslint:disable-next-line */\n host: {\n class: 'mat-button td-breadcrumb',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdBreadcrumbComponent implements AfterViewInit {\n private _displayCrumb: boolean = true;\n private _width: number = 0;\n private _displayIcon: boolean = true;\n private _separatorIcon: string = 'chevron_right';\n\n // Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'\n public get separatorIcon(): string {\n return this._separatorIcon;\n }\n public set separatorIcon(separatorIcon: string) {\n this._separatorIcon = separatorIcon;\n setTimeout(() => {\n this._changeDetectorRef.markForCheck();\n });\n }\n\n // Should show the right chevron or not before the label\n public get displayIcon(): boolean {\n return this._displayIcon;\n }\n public set displayIcon(displayIcon: boolean) {\n this._displayIcon = displayIcon;\n setTimeout(() => {\n this._changeDetectorRef.markForCheck();\n });\n }\n\n get displayCrumb(): boolean {\n return this._displayCrumb;\n }\n\n /**\n * Whether to display the crumb or not\n */\n set displayCrumb(shouldDisplay: boolean) {\n this._displayCrumb = shouldDisplay;\n setTimeout(() => {\n this._changeDetectorRef.markForCheck();\n });\n }\n\n /**\n * Width of the DOM element of the crumb\n */\n get width(): number {\n return this._width;\n }\n\n /**\n * Gets the display style of the crumb\n */\n @HostBinding('style.display')\n get displayBinding(): string {\n // Set the display to none on the component, just in case the end user is hiding\n // and showing them instead of the component doing itself for reasons like responsive\n return this._displayCrumb ? undefined : 'none';\n }\n\n constructor(private _elementRef: ElementRef, private _changeDetectorRef: ChangeDetectorRef) {}\n\n ngAfterViewInit(): void {\n // set the width from the actual rendered DOM element\n setTimeout(() => {\n this._width = (<HTMLElement>this._elementRef.nativeElement).getBoundingClientRect().width;\n this._changeDetectorRef.markForCheck();\n });\n }\n\n /**\n * Stop click propagation when clicking on icon\n */\n _handleIconClick(event: Event): void {\n event.stopPropagation();\n event.preventDefault();\n }\n}\n","import {\n Component,\n ContentChildren,\n QueryList,\n OnInit,\n OnDestroy,\n ChangeDetectionStrategy,\n AfterContentInit,\n DoCheck,\n ChangeDetectorRef,\n ElementRef,\n Input,\n} from '@angular/core';\n\nimport { Subscription, Subject, fromEvent, merge } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';\n\nimport { TdBreadcrumbComponent } from './breadcrumb/breadcrumb.component';\n\n@Component({\n selector: 'td-breadcrumbs',\n styleUrls: ['./breadcrumbs.component.scss'],\n templateUrl: './breadcrumbs.component.html',\n /* tslint:disable-next-line */\n host: {\n class: 'td-breadcrumbs',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdBreadcrumbsComponent implements OnInit, DoCheck, AfterContentInit, OnDestroy {\n private _resizeSubscription: Subscription = Subscription.EMPTY;\n private _widthSubject: Subject<number> = new Subject<number>();\n private _contentChildrenSub: Subscription;\n private _resizing: boolean = false;\n private _separatorIcon: string = 'chevron_right';\n\n // all the sub components, which are the individual breadcrumbs\n @ContentChildren(TdBreadcrumbComponent, { descendants: true }) _breadcrumbs: QueryList<TdBreadcrumbComponent>;\n // the list of hidden breadcrumbs not shown right now (responsive)\n hiddenBreadcrumbs: TdBreadcrumbComponent[] = [];\n\n /**\n * Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'.\n */\n @Input() public set separatorIcon(separatorIcon: string) {\n this._separatorIcon = separatorIcon;\n this.setCrumbIcons();\n }\n public get separatorIcon(): string {\n return this._separatorIcon;\n }\n\n constructor(private _elementRef: ElementRef, private _changeDetectorRef: ChangeDetectorRef) {}\n\n ngOnInit(): void {\n this._resizeSubscription = merge(\n fromEvent(window, 'resize').pipe(debounceTime(10)),\n this._widthSubject.asObservable().pipe(distinctUntilChanged()),\n ).subscribe(() => {\n if (!this._resizing) {\n this._resizing = true;\n setTimeout(() => {\n this._calculateVisibility();\n this._resizing = false;\n this._changeDetectorRef.markForCheck();\n }, 100);\n }\n });\n }\n\n ngDoCheck(): void {\n if (this._elementRef && this._elementRef.nativeElement) {\n this._widthSubject.next(this.nativeElementWidth);\n }\n }\n\n ngAfterContentInit(): void {\n this._contentChildrenSub = this._breadcrumbs.changes.pipe(startWith(this._breadcrumbs)).subscribe(() => {\n this.setCrumbIcons();\n this._changeDetectorRef.markForCheck();\n });\n }\n\n ngOnDestroy(): void {\n this._resizeSubscription.unsubscribe();\n this._contentChildrenSub.unsubscribe();\n }\n\n /*\n * Current width of the element container\n */\n get nativeElementWidth(): number {\n const element: HTMLElement = <HTMLElement>this._elementRef.nativeElement;\n // Need to take into account border, margin and padding that might be around all the crumbs\n const style: CSSStyleDeclaration = window.getComputedStyle(element);\n const borderLeft: number = parseInt(style.borderLeft, 10);\n const borderRight: number = parseInt(style.borderRight, 10);\n const marginLeft: number = parseInt(style.marginLeft, 10);\n const marginRight: number = parseInt(style.marginRight, 10);\n const paddingLeft: number = parseInt(style.paddingLeft, 10);\n const paddingRight: number = parseInt(style.paddingRight, 10);\n\n return (\n element.getBoundingClientRect().width -\n borderLeft -\n borderRight -\n marginLeft -\n marginRight -\n paddingLeft -\n paddingRight\n );\n }\n\n /**\n * The total count of individual breadcrumbs\n */\n get count(): number {\n return this._breadcrumbs ? this._breadcrumbs.length : 0;\n }\n\n /**\n * Set the crumb icon separators\n */\n private setCrumbIcons(): void {\n if (this._breadcrumbs) {\n const breadcrumbArray: TdBreadcrumbComponent[] = this._breadcrumbs.toArray();\n breadcrumbArray.forEach((breadcrumb: TdBreadcrumbComponent, index: number) => {\n breadcrumb.separatorIcon = this.separatorIcon;\n // don't show the icon on the last breadcrumb\n breadcrumb.displayIcon = index < breadcrumbArray.length - 1;\n });\n }\n }\n\n private _calculateVisibility(): void {\n const crumbsArray: TdBreadcrumbComponent[] = this._breadcrumbs.toArray();\n let crumbWidthSum: number = 0;\n const hiddenCrumbs: TdBreadcrumbComponent[] = [];\n // loop through crumbs in reverse order to calculate which ones should be removed\n for (let i: number = crumbsArray.length - 1; i >= 0; i--) {\n const breadcrumb: TdBreadcrumbComponent = crumbsArray[i];\n // if crumb exceeds width, then we skip it from the sum and add it into the hiddencrumbs array\n // and hide it\n if (crumbWidthSum + breadcrumb.width > this.nativeElementWidth) {\n breadcrumb.displayCrumb = false;\n hiddenCrumbs.push(breadcrumb);\n } else {\n // else we show it\n breadcrumb.displayCrumb = true;\n }\n crumbWidthSum += breadcrumb.width;\n }\n this.hiddenBreadcrumbs = hiddenCrumbs;\n this._changeDetectorRef.markForCheck();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { TdBreadcrumbsComponent } from './breadcrumbs.component';\nimport { TdBreadcrumbComponent } from './breadcrumb/breadcrumb.component';\n\n@NgModule({\n imports: [CommonModule, MatIconModule],\n declarations: [TdBreadcrumbsComponent, TdBreadcrumbComponent],\n exports: [TdBreadcrum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