@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,224 +0,0 @@
|
|
1
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { RouterModule } from '@angular/router';
|
4
|
-
import { MatRippleModule } from '@angular/material/core';
|
5
|
-
import { MatListModule } from '@angular/material/list';
|
6
|
-
import { MatIconModule } from '@angular/material/icon';
|
7
|
-
import { MatDividerModule } from '@angular/material/divider';
|
8
|
-
import { MatMenuModule } from '@angular/material/menu';
|
9
|
-
import { tdCollapseAnimation, tdRotateAnimation, CovalentCommonModule } from '@covalent/core/common';
|
10
|
-
import { CovalentExpansionPanelModule } from '@covalent/core/expansion-panel';
|
11
|
-
|
12
|
-
/**
|
13
|
-
* @fileoverview added by tsickle
|
14
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
15
|
-
*/
|
16
|
-
/**
|
17
|
-
* @record
|
18
|
-
*/
|
19
|
-
function ITdNavNode() { }
|
20
|
-
if (false) {
|
21
|
-
/** @type {?} */
|
22
|
-
ITdNavNode.prototype.label;
|
23
|
-
/** @type {?|undefined} */
|
24
|
-
ITdNavNode.prototype.show;
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* @record
|
28
|
-
*/
|
29
|
-
function ITdNavHeader() { }
|
30
|
-
if (false) {
|
31
|
-
/** @type {?} */
|
32
|
-
ITdNavHeader.prototype.children;
|
33
|
-
}
|
34
|
-
/**
|
35
|
-
* @record
|
36
|
-
*/
|
37
|
-
function ITdNavExpansion() { }
|
38
|
-
if (false) {
|
39
|
-
/** @type {?|undefined} */
|
40
|
-
ITdNavExpansion.prototype.collapsable;
|
41
|
-
}
|
42
|
-
/**
|
43
|
-
* @record
|
44
|
-
*/
|
45
|
-
function ITdLink() { }
|
46
|
-
if (false) {
|
47
|
-
/** @type {?} */
|
48
|
-
ITdLink.prototype.link;
|
49
|
-
/** @type {?} */
|
50
|
-
ITdLink.prototype.icon;
|
51
|
-
}
|
52
|
-
/** @type {?} */
|
53
|
-
var nextUniqueId = 0;
|
54
|
-
var TdNavLinksComponent = /** @class */ (function () {
|
55
|
-
function TdNavLinksComponent() {
|
56
|
-
this._uniqueId = "td-nav-links-" + ++nextUniqueId;
|
57
|
-
this._collapsedSet = new Set();
|
58
|
-
this.id = this._uniqueId;
|
59
|
-
/**
|
60
|
-
* Event trigger after a navigation click
|
61
|
-
*/
|
62
|
-
this.afterNavigation = new EventEmitter();
|
63
|
-
}
|
64
|
-
/**
|
65
|
-
* @param {?} link
|
66
|
-
* @return {?}
|
67
|
-
*/
|
68
|
-
TdNavLinksComponent.prototype._linkClicked = /**
|
69
|
-
* @param {?} link
|
70
|
-
* @return {?}
|
71
|
-
*/
|
72
|
-
function (link) {
|
73
|
-
this.afterNavigation.emit(link);
|
74
|
-
};
|
75
|
-
/**
|
76
|
-
* @param {?} link
|
77
|
-
* @return {?}
|
78
|
-
*/
|
79
|
-
TdNavLinksComponent.prototype._href = /**
|
80
|
-
* @param {?} link
|
81
|
-
* @return {?}
|
82
|
-
*/
|
83
|
-
function (link) {
|
84
|
-
return link.link && ((/** @type {?} */ (link.link))).href;
|
85
|
-
};
|
86
|
-
/**
|
87
|
-
* @param {?} link
|
88
|
-
* @return {?}
|
89
|
-
*/
|
90
|
-
TdNavLinksComponent.prototype._routerLink = /**
|
91
|
-
* @param {?} link
|
92
|
-
* @return {?}
|
93
|
-
*/
|
94
|
-
function (link) {
|
95
|
-
return link.link && ((/** @type {?} */ (link.link))).routerLink;
|
96
|
-
};
|
97
|
-
/**
|
98
|
-
* @param link
|
99
|
-
* Toggles expand/collapse state of expansion link.
|
100
|
-
* Only applied when `collapsable` is true
|
101
|
-
*/
|
102
|
-
/**
|
103
|
-
* @param {?} link
|
104
|
-
* Toggles expand/collapse state of expansion link.
|
105
|
-
* Only applied when `collapsable` is true
|
106
|
-
* @return {?}
|
107
|
-
*/
|
108
|
-
TdNavLinksComponent.prototype._toggle = /**
|
109
|
-
* @param {?} link
|
110
|
-
* Toggles expand/collapse state of expansion link.
|
111
|
-
* Only applied when `collapsable` is true
|
112
|
-
* @return {?}
|
113
|
-
*/
|
114
|
-
function (link) {
|
115
|
-
if (this._isCollapsed(link)) {
|
116
|
-
this._collapsedSet.delete(link);
|
117
|
-
}
|
118
|
-
else {
|
119
|
-
this._collapsedSet.add(link);
|
120
|
-
}
|
121
|
-
};
|
122
|
-
/**
|
123
|
-
* @param link
|
124
|
-
* Returns true if the state of provided expansion link is collapsed.
|
125
|
-
*/
|
126
|
-
/**
|
127
|
-
* @param {?} link
|
128
|
-
* Returns true if the state of provided expansion link is collapsed.
|
129
|
-
* @return {?}
|
130
|
-
*/
|
131
|
-
TdNavLinksComponent.prototype._isCollapsed = /**
|
132
|
-
* @param {?} link
|
133
|
-
* Returns true if the state of provided expansion link is collapsed.
|
134
|
-
* @return {?}
|
135
|
-
*/
|
136
|
-
function (link) {
|
137
|
-
return this._collapsedSet.has(link);
|
138
|
-
};
|
139
|
-
TdNavLinksComponent.decorators = [
|
140
|
-
{ type: Component, args: [{
|
141
|
-
selector: 'td-nav-links',
|
142
|
-
template: "<mat-nav-list dense *ngIf=\"links && links.length > 0\">\n <ng-template ngFor [ngForOf]=\"links\" let-link let-linkIndex=\"index\">\n <ng-container *ngIf=\"link.show === undefined || link.show\">\n <ng-container *ngIf=\"link.children?.length && !link.link\">\n <h3\n [class.td-nav-link-cursor]=\"link.collapsable\"\n matSubheader\n matRipple\n [matRippleDisabled]=\"!link.collapsable\"\n (click)=\"link.collapsable && _toggle(link)\"\n >\n <mat-icon *ngIf=\"link.icon\" [fontSet]=\"link.icon?.fontSet\">{{ link.icon?.name }}</mat-icon>\n <span [style.width.%]=\"100\">{{ link.label }}</span>\n <mat-icon [@tdRotate]=\"!_isCollapsed(link)\" *ngIf=\"link.collapsable\">keyboard_arrow_down</mat-icon>\n </h3>\n <td-nav-links\n [id]=\"id + '-' + linkIndex\"\n [@tdCollapse]=\"!!_isCollapsed(link)\"\n [links]=\"link.children\"\n ></td-nav-links>\n </ng-container>\n <ng-container *ngIf=\"link.link\">\n <a\n mat-list-item\n *ngIf=\"_href(link)\"\n [href]=\"_href(link)\"\n [target]=\"link.link.openInNewTab ? '_blank' : undefined\"\n id=\"{{ id }}-{{ linkIndex }}\"\n class=\"td-nav-link\"\n (click)=\"_linkClicked(link)\"\n >\n <mat-icon matListIcon [fontSet]=\"link.icon?.fontSet\">{{ link.icon?.name }}</mat-icon>\n <span matLine>{{ link.label }}</span>\n <mat-icon *ngIf=\"link.link.openInNewTab\">launch</mat-icon>\n </a>\n <a\n mat-list-item\n *ngIf=\"_routerLink(link)\"\n [routerLink]=\"_routerLink(link)\"\n [target]=\"link.link.openInNewTab ? '_blank' : undefined\"\n id=\"{{ id }}-{{ linkIndex }}\"\n class=\"td-nav-link\"\n (click)=\"_linkClicked(link)\"\n >\n <mat-icon matListIcon [fontSet]=\"link.icon?.fontSet\">{{ link.icon?.name }}</mat-icon>\n <span matLine>{{ link.label }}</span>\n <mat-icon *ngIf=\"link.link.openInNewTab\">launch</mat-icon>\n </a>\n </ng-container>\n </ng-container>\n </ng-template>\n</mat-nav-list>\n",
|
143
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
144
|
-
animations: [tdCollapseAnimation, tdRotateAnimation],
|
145
|
-
styles: [":host{display:block}:host .mat-nav-list.mat-list-base{padding-top:2px}:host .mat-nav-list.mat-list-base .td-nav-link-cursor{cursor:pointer}:host .mat-nav-list.mat-list-base .mat-list-item{height:40px}:host .mat-icon{margin-right:0}"]
|
146
|
-
}] }
|
147
|
-
];
|
148
|
-
TdNavLinksComponent.propDecorators = {
|
149
|
-
id: [{ type: Input }],
|
150
|
-
links: [{ type: Input }],
|
151
|
-
afterNavigation: [{ type: Output }]
|
152
|
-
};
|
153
|
-
return TdNavLinksComponent;
|
154
|
-
}());
|
155
|
-
if (false) {
|
156
|
-
/**
|
157
|
-
* @type {?}
|
158
|
-
* @private
|
159
|
-
*/
|
160
|
-
TdNavLinksComponent.prototype._uniqueId;
|
161
|
-
/**
|
162
|
-
* @type {?}
|
163
|
-
* @private
|
164
|
-
*/
|
165
|
-
TdNavLinksComponent.prototype._collapsedSet;
|
166
|
-
/** @type {?} */
|
167
|
-
TdNavLinksComponent.prototype.id;
|
168
|
-
/**
|
169
|
-
* Links to be rendered by component.
|
170
|
-
* @type {?}
|
171
|
-
*/
|
172
|
-
TdNavLinksComponent.prototype.links;
|
173
|
-
/**
|
174
|
-
* Event trigger after a navigation click
|
175
|
-
* @type {?}
|
176
|
-
*/
|
177
|
-
TdNavLinksComponent.prototype.afterNavigation;
|
178
|
-
}
|
179
|
-
|
180
|
-
/**
|
181
|
-
* @fileoverview added by tsickle
|
182
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
183
|
-
*/
|
184
|
-
var CovalentNavLinksModule = /** @class */ (function () {
|
185
|
-
function CovalentNavLinksModule() {
|
186
|
-
}
|
187
|
-
CovalentNavLinksModule.decorators = [
|
188
|
-
{ type: NgModule, args: [{
|
189
|
-
declarations: [TdNavLinksComponent],
|
190
|
-
// directives, components, and pipes owned by this NgModule
|
191
|
-
exports: [TdNavLinksComponent],
|
192
|
-
imports: [
|
193
|
-
CommonModule,
|
194
|
-
CovalentCommonModule,
|
195
|
-
CovalentExpansionPanelModule,
|
196
|
-
MatRippleModule,
|
197
|
-
MatMenuModule,
|
198
|
-
MatListModule,
|
199
|
-
MatIconModule,
|
200
|
-
MatDividerModule,
|
201
|
-
RouterModule,
|
202
|
-
],
|
203
|
-
},] }
|
204
|
-
];
|
205
|
-
return CovalentNavLinksModule;
|
206
|
-
}());
|
207
|
-
|
208
|
-
/**
|
209
|
-
* @fileoverview added by tsickle
|
210
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
211
|
-
*/
|
212
|
-
|
213
|
-
/**
|
214
|
-
* @fileoverview added by tsickle
|
215
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
216
|
-
*/
|
217
|
-
|
218
|
-
/**
|
219
|
-
* @fileoverview added by tsickle
|
220
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
221
|
-
*/
|
222
|
-
|
223
|
-
export { CovalentNavLinksModule, TdNavLinksComponent };
|
224
|
-
//# sourceMappingURL=covalent-core-nav-links.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-nav-links.js","sources":["ng://@covalent/core/nav-links/nav-links.component.ts","ng://@covalent/core/nav-links/nav-links.module.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\n\nimport { tdCollapseAnimation, tdRotateAnimation } from '@covalent/core/common';\n\nexport interface ITdNavNode {\n label: string;\n show?: boolean;\n}\n\nexport interface ITdNavHeader extends ITdNavNode {\n children: ITdLink[];\n}\n\nexport interface ITdNavExpansion extends ITdNavHeader {\n collapsable?: boolean;\n}\n\nexport interface ITdLink extends ITdNavNode {\n link: { href: string; openInNewTab?: boolean } | { routerLink: string | string[]; openInNewTab?: boolean };\n icon: { fontSet?: string; name: string };\n}\n\nlet nextUniqueId: number = 0;\n\n@Component({\n selector: 'td-nav-links',\n templateUrl: './nav-links.component.html',\n styleUrls: ['./nav-links.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tdCollapseAnimation, tdRotateAnimation],\n})\nexport class TdNavLinksComponent {\n private _uniqueId: string = `td-nav-links-${++nextUniqueId}`;\n\n private _collapsedSet: Set<ITdNavExpansion> = new Set<ITdNavExpansion>();\n\n @Input() id: string = this._uniqueId;\n\n /**\n * Links to be rendered by component.\n */\n /* tslint:disable-next-line */\n @Input() links: Array<ITdNavExpansion | ITdNavHeader | ITdLink>;\n\n /**\n * Event trigger after a navigation click\n */\n @Output() afterNavigation: EventEmitter<ITdLink> = new EventEmitter<ITdLink>();\n\n _linkClicked(link: ITdLink): void {\n this.afterNavigation.emit(link);\n }\n\n _href(link: ITdLink): string {\n return link.link && (<{ href?: string }>link.link).href;\n }\n\n _routerLink(link: ITdLink): string | string[] {\n return link.link && (<{ routerLink?: string | string[] }>link.link).routerLink;\n }\n\n /**\n * @param link\n * Toggles expand/collapse state of expansion link.\n * Only applied when `collapsable` is true\n */\n _toggle(link: ITdNavExpansion): void {\n if (this._isCollapsed(link)) {\n this._collapsedSet.delete(link);\n } else {\n this._collapsedSet.add(link);\n }\n }\n\n /**\n * @param link\n * Returns true if the state of provided expansion link is collapsed.\n */\n _isCollapsed(link: ITdNavExpansion): boolean {\n return this._collapsedSet.has(link);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { MatRippleModule } from '@angular/material/core';\nimport { MatListModule } from '@angular/material/list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatMenuModule } from '@angular/material/menu';\n\nimport { CovalentCommonModule } from '@covalent/core/common';\nimport { CovalentExpansionPanelModule } from '@covalent/core/expansion-panel';\n\nimport { TdNavLinksComponent } from './nav-links.component';\n\n@NgModule({\n declarations: [TdNavLinksComponent], // directives, components, and pipes owned by this NgModule\n exports: [TdNavLinksComponent],\n imports: [\n CommonModule,\n CovalentCommonModule,\n CovalentExpansionPanelModule,\n MatRippleModule,\n MatMenuModule,\n MatListModule,\n MatIconModule,\n MatDividerModule,\n RouterModule,\n ], // modules needed to run this module\n})\nexport class CovalentNavLinksModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;yBAOC;;;IAFC,2BAAc;;IACd,0BAAe;;;;;2BAKhB;;;IADC,gCAAoB;;;;;8BAKrB;;;IADC,sCAAsB;;;;;sBAMvB;;;IAFC,uBAA2G;;IAC3G,uBAAyC;;;IAGvC,YAAY,GAAW,CAAC;;IAE5B;QAQU,cAAS,GAAW,kBAAgB,EAAE,YAAc,CAAC;QAErD,kBAAa,GAAyB,IAAI,GAAG,EAAmB,CAAC;QAEhE,OAAE,GAAW,IAAI,CAAC,SAAS,CAAC;;;;QAW3B,oBAAe,GAA0B,IAAI,YAAY,EAAW,CAAC;KAkChF;;;;;IAhCC,0CAAY;;;;IAAZ,UAAa,IAAa;QACxB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACjC;;;;;IAED,mCAAK;;;;IAAL,UAAM,IAAa;QACjB,OAAO,IAAI,CAAC,IAAI,IAAI,oBAAoB,IAAI,CAAC,IAAI,IAAE,IAAI,CAAC;KACzD;;;;;IAED,yCAAW;;;;IAAX,UAAY,IAAa;QACvB,OAAO,IAAI,CAAC,IAAI,IAAI,oBAAqC,IAAI,CAAC,IAAI,IAAE,UAAU,CAAC;KAChF;;;;;;;;;;;;IAOD,qCAAO;;;;;;IAAP,UAAQ,IAAqB;QAC3B,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YAC3B,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACjC;aAAM;YACL,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAC9B;KACF;;;;;;;;;;IAMD,0CAAY;;;;;IAAZ,UAAa,IAAqB;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACrC;;gBAxDF,SAAS,SAAC;oBACT,QAAQ,EAAE,cAAc;oBACxB,0rEAAyC;oBAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,UAAU,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;;iBACrD;;;qBAME,KAAK;wBAML,KAAK;kCAKL,MAAM;;IAkCT,0BAAC;CAzDD,IAyDC;;;;;;IAjDC,wCAA6D;;;;;IAE7D,4CAAyE;;IAEzE,iCAAqC;;;;;IAMrC,oCAAgE;;;;;IAKhE,8CAA+E;;;;;;;;IC/BjF;KAesC;;gBAfrC,QAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE;wBACP,YAAY;wBACZ,oBAAoB;wBACpB,4BAA4B;wBAC5B,eAAe;wBACf,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb,gBAAgB;wBAChB,YAAY;qBACb;iBACF;;IACoC,6BAAC;CAftC;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,303 +0,0 @@
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ViewChild, Input, HostBinding, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* @fileoverview added by tsickle
|
6
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
7
|
-
*/
|
8
|
-
/** @enum {string} */
|
9
|
-
var TdNotificationCountPositionY = {
|
10
|
-
Top: 'top',
|
11
|
-
Bottom: 'bottom',
|
12
|
-
Center: 'center',
|
13
|
-
};
|
14
|
-
/** @enum {string} */
|
15
|
-
var TdNotificationCountPositionX = {
|
16
|
-
Before: 'before',
|
17
|
-
After: 'after',
|
18
|
-
Center: 'center',
|
19
|
-
};
|
20
|
-
/** @type {?} */
|
21
|
-
var DEFAULT_NOTIFICATION_LIMIT = 99;
|
22
|
-
var TdNotificationCountComponent = /** @class */ (function () {
|
23
|
-
function TdNotificationCountComponent() {
|
24
|
-
this._notifications = 0;
|
25
|
-
this._limit = DEFAULT_NOTIFICATION_LIMIT;
|
26
|
-
/**
|
27
|
-
* color?: "primary" | "accent" | "warn"
|
28
|
-
* Sets the theme color of the notification tip. Defaults to "warn"
|
29
|
-
*/
|
30
|
-
this.color = 'warn';
|
31
|
-
}
|
32
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "positionX", {
|
33
|
-
get: /**
|
34
|
-
* @return {?}
|
35
|
-
*/
|
36
|
-
function () {
|
37
|
-
return this._positionX;
|
38
|
-
},
|
39
|
-
/**
|
40
|
-
* positionX?: TdNotificationCountPositionX or "before" | "after" | "center"
|
41
|
-
* Sets the X position of the notification tip.
|
42
|
-
* Defaults to "after" if it has content, else 'center'.
|
43
|
-
*/
|
44
|
-
set: /**
|
45
|
-
* positionX?: TdNotificationCountPositionX or "before" | "after" | "center"
|
46
|
-
* Sets the X position of the notification tip.
|
47
|
-
* Defaults to "after" if it has content, else 'center'.
|
48
|
-
* @param {?} positionX
|
49
|
-
* @return {?}
|
50
|
-
*/
|
51
|
-
function (positionX) {
|
52
|
-
this._positionX = positionX;
|
53
|
-
},
|
54
|
-
enumerable: true,
|
55
|
-
configurable: true
|
56
|
-
});
|
57
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "positionY", {
|
58
|
-
get: /**
|
59
|
-
* @return {?}
|
60
|
-
*/
|
61
|
-
function () {
|
62
|
-
return this._positionY;
|
63
|
-
},
|
64
|
-
/**
|
65
|
-
* positionY?: TdNotificationCountPositionY or "top" | "bottom" | "center"
|
66
|
-
* Sets the Y position of the notification tip.
|
67
|
-
* Defaults to "top" if it has content, else 'center'.
|
68
|
-
*/
|
69
|
-
set: /**
|
70
|
-
* positionY?: TdNotificationCountPositionY or "top" | "bottom" | "center"
|
71
|
-
* Sets the Y position of the notification tip.
|
72
|
-
* Defaults to "top" if it has content, else 'center'.
|
73
|
-
* @param {?} positionY
|
74
|
-
* @return {?}
|
75
|
-
*/
|
76
|
-
function (positionY) {
|
77
|
-
this._positionY = positionY;
|
78
|
-
},
|
79
|
-
enumerable: true,
|
80
|
-
configurable: true
|
81
|
-
});
|
82
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "notifications", {
|
83
|
-
/**
|
84
|
-
* notifications?: number | boolean
|
85
|
-
* Number for the notification count. Shows component only if the input is a positive number or 'true'
|
86
|
-
*/
|
87
|
-
set: /**
|
88
|
-
* notifications?: number | boolean
|
89
|
-
* Number for the notification count. Shows component only if the input is a positive number or 'true'
|
90
|
-
* @param {?} notifications
|
91
|
-
* @return {?}
|
92
|
-
*/
|
93
|
-
function (notifications) {
|
94
|
-
this._notifications = notifications;
|
95
|
-
},
|
96
|
-
enumerable: true,
|
97
|
-
configurable: true
|
98
|
-
});
|
99
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "limit", {
|
100
|
-
/**
|
101
|
-
* limit?: number
|
102
|
-
* Limit for notification count. If the number of notifications is greater than limit, then + will be added. Defaults to 99.
|
103
|
-
*/
|
104
|
-
set: /**
|
105
|
-
* limit?: number
|
106
|
-
* Limit for notification count. If the number of notifications is greater than limit, then + will be added. Defaults to 99.
|
107
|
-
* @param {?} limit
|
108
|
-
* @return {?}
|
109
|
-
*/
|
110
|
-
function (limit) {
|
111
|
-
this._limit = limit;
|
112
|
-
},
|
113
|
-
enumerable: true,
|
114
|
-
configurable: true
|
115
|
-
});
|
116
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "hideHost", {
|
117
|
-
get: /**
|
118
|
-
* @return {?}
|
119
|
-
*/
|
120
|
-
function () {
|
121
|
-
return !this.show && !this._hasContent();
|
122
|
-
},
|
123
|
-
enumerable: true,
|
124
|
-
configurable: true
|
125
|
-
});
|
126
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "noCount", {
|
127
|
-
/**
|
128
|
-
* Sets the component in its 'noCount' state if [notifications] is a boolean 'true'.
|
129
|
-
* Makes the notification tip show without a count.
|
130
|
-
*/
|
131
|
-
get: /**
|
132
|
-
* Sets the component in its 'noCount' state if [notifications] is a boolean 'true'.
|
133
|
-
* Makes the notification tip show without a count.
|
134
|
-
* @return {?}
|
135
|
-
*/
|
136
|
-
function () {
|
137
|
-
return this._notifications === true;
|
138
|
-
},
|
139
|
-
enumerable: true,
|
140
|
-
configurable: true
|
141
|
-
});
|
142
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "notificationsDisplay", {
|
143
|
-
/**
|
144
|
-
* Notification display string when a count is available.
|
145
|
-
* Anything over 99 gets set as 99+
|
146
|
-
*/
|
147
|
-
get: /**
|
148
|
-
* Notification display string when a count is available.
|
149
|
-
* Anything over 99 gets set as 99+
|
150
|
-
* @return {?}
|
151
|
-
*/
|
152
|
-
function () {
|
153
|
-
if (this._notifications > this._limit) {
|
154
|
-
return this._limit + "+";
|
155
|
-
}
|
156
|
-
return this._notifications.toString();
|
157
|
-
},
|
158
|
-
enumerable: true,
|
159
|
-
configurable: true
|
160
|
-
});
|
161
|
-
Object.defineProperty(TdNotificationCountComponent.prototype, "show", {
|
162
|
-
/**
|
163
|
-
* Shows notification tip only when [notifications] is true or a positive integer.
|
164
|
-
*/
|
165
|
-
get: /**
|
166
|
-
* Shows notification tip only when [notifications] is true or a positive integer.
|
167
|
-
* @return {?}
|
168
|
-
*/
|
169
|
-
function () {
|
170
|
-
return this._notifications === true || (!isNaN((/** @type {?} */ (this._notifications))) && this._notifications > 0);
|
171
|
-
},
|
172
|
-
enumerable: true,
|
173
|
-
configurable: true
|
174
|
-
});
|
175
|
-
/**
|
176
|
-
* Check if [positionX] and [positionY] have been set as inputs, else use defaults depending on component content.
|
177
|
-
*/
|
178
|
-
/**
|
179
|
-
* Check if [positionX] and [positionY] have been set as inputs, else use defaults depending on component content.
|
180
|
-
* @return {?}
|
181
|
-
*/
|
182
|
-
TdNotificationCountComponent.prototype.ngAfterContentInit = /**
|
183
|
-
* Check if [positionX] and [positionY] have been set as inputs, else use defaults depending on component content.
|
184
|
-
* @return {?}
|
185
|
-
*/
|
186
|
-
function () {
|
187
|
-
if (!this._positionX) {
|
188
|
-
this.positionX = this._hasContent() ? TdNotificationCountPositionX.After : TdNotificationCountPositionX.Center;
|
189
|
-
}
|
190
|
-
if (!this._positionY) {
|
191
|
-
this.positionY = this._hasContent() ? TdNotificationCountPositionY.Top : TdNotificationCountPositionY.Center;
|
192
|
-
}
|
193
|
-
};
|
194
|
-
/**
|
195
|
-
* Method to check if element has any kind of content (elements or text)
|
196
|
-
*/
|
197
|
-
/**
|
198
|
-
* Method to check if element has any kind of content (elements or text)
|
199
|
-
* @private
|
200
|
-
* @return {?}
|
201
|
-
*/
|
202
|
-
TdNotificationCountComponent.prototype._hasContent = /**
|
203
|
-
* Method to check if element has any kind of content (elements or text)
|
204
|
-
* @private
|
205
|
-
* @return {?}
|
206
|
-
*/
|
207
|
-
function () {
|
208
|
-
if (this.content) {
|
209
|
-
/** @type {?} */
|
210
|
-
var contentElement = this.content.nativeElement;
|
211
|
-
return contentElement && (contentElement.children.length > 0 || !!contentElement.textContent.trim());
|
212
|
-
}
|
213
|
-
return false;
|
214
|
-
};
|
215
|
-
TdNotificationCountComponent.decorators = [
|
216
|
-
{ type: Component, args: [{
|
217
|
-
selector: 'td-notification-count',
|
218
|
-
template: "<div #content class=\"td-notification-content\">\n <ng-content></ng-content>\n</div>\n<div\n *ngIf=\"show\"\n class=\"td-notification-count mat-{{ color }}\"\n [class.td-notification-top]=\"positionY === 'top'\"\n [class.td-notification-bottom]=\"positionY === 'bottom'\"\n [class.td-notification-before]=\"positionX === 'before'\"\n [class.td-notification-after]=\"positionX === 'after'\"\n [class.td-notification-center-y]=\"positionY === 'center'\"\n [class.td-notification-center-x]=\"positionX === 'center'\"\n [class.td-notification-no-count]=\"noCount\"\n>\n {{ noCount ? '' : notificationsDisplay }}\n</div>\n",
|
219
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
220
|
-
styles: [":host{position:relative;display:block;text-align:center;min-width:40px;height:40px}:host.td-notification-hidden{min-width:0}.td-notification-count{line-height:21px;width:20px;height:20px;position:absolute;font-size:10px;font-weight:600;border-radius:50%;z-index:1}.td-notification-count.td-notification-center-x{margin-left:auto;margin-right:auto;left:0;right:0}.td-notification-count.td-notification-center-y{margin-top:auto;margin-bottom:auto;top:0;bottom:0}.td-notification-count.td-notification-top{top:0}.td-notification-count.td-notification-bottom{bottom:0}.td-notification-count.td-notification-before{left:0}.td-notification-count.td-notification-after{right:0}.td-notification-count.td-notification-no-count{width:8px;height:8px}.td-notification-count.td-notification-no-count.td-notification-top{top:8px}.td-notification-count.td-notification-no-count.td-notification-bottom{bottom:8px}.td-notification-count.td-notification-no-count.td-notification-before{left:8px}.td-notification-count.td-notification-no-count.td-notification-after{right:8px}::ng-deep [dir=rtl] .td-notification-count.td-notification-before{right:0;left:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-after{left:0;right:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-no-count.td-notification-before{right:8px;left:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-no-count.td-notification-after{left:8px;right:auto}.td-notification-content,.td-notification-content ::ng-deep>*{line-height:40px}"]
|
221
|
-
}] }
|
222
|
-
];
|
223
|
-
TdNotificationCountComponent.propDecorators = {
|
224
|
-
content: [{ type: ViewChild, args: ['content', { static: true },] }],
|
225
|
-
color: [{ type: Input }],
|
226
|
-
positionX: [{ type: Input }],
|
227
|
-
positionY: [{ type: Input }],
|
228
|
-
notifications: [{ type: Input }],
|
229
|
-
limit: [{ type: Input }],
|
230
|
-
hideHost: [{ type: HostBinding, args: ['class.td-notification-hidden',] }]
|
231
|
-
};
|
232
|
-
return TdNotificationCountComponent;
|
233
|
-
}());
|
234
|
-
if (false) {
|
235
|
-
/**
|
236
|
-
* @type {?}
|
237
|
-
* @private
|
238
|
-
*/
|
239
|
-
TdNotificationCountComponent.prototype._notifications;
|
240
|
-
/**
|
241
|
-
* @type {?}
|
242
|
-
* @private
|
243
|
-
*/
|
244
|
-
TdNotificationCountComponent.prototype._positionY;
|
245
|
-
/**
|
246
|
-
* @type {?}
|
247
|
-
* @private
|
248
|
-
*/
|
249
|
-
TdNotificationCountComponent.prototype._positionX;
|
250
|
-
/**
|
251
|
-
* @type {?}
|
252
|
-
* @private
|
253
|
-
*/
|
254
|
-
TdNotificationCountComponent.prototype._limit;
|
255
|
-
/**
|
256
|
-
* Div content wrapper of `ng-content`.
|
257
|
-
* @type {?}
|
258
|
-
*/
|
259
|
-
TdNotificationCountComponent.prototype.content;
|
260
|
-
/**
|
261
|
-
* color?: "primary" | "accent" | "warn"
|
262
|
-
* Sets the theme color of the notification tip. Defaults to "warn"
|
263
|
-
* @type {?}
|
264
|
-
*/
|
265
|
-
TdNotificationCountComponent.prototype.color;
|
266
|
-
}
|
267
|
-
|
268
|
-
/**
|
269
|
-
* @fileoverview added by tsickle
|
270
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
271
|
-
*/
|
272
|
-
/** @type {?} */
|
273
|
-
var TD_NOTIFICATIONS = [TdNotificationCountComponent];
|
274
|
-
var CovalentNotificationsModule = /** @class */ (function () {
|
275
|
-
function CovalentNotificationsModule() {
|
276
|
-
}
|
277
|
-
CovalentNotificationsModule.decorators = [
|
278
|
-
{ type: NgModule, args: [{
|
279
|
-
imports: [CommonModule],
|
280
|
-
declarations: [TD_NOTIFICATIONS],
|
281
|
-
exports: [TD_NOTIFICATIONS],
|
282
|
-
},] }
|
283
|
-
];
|
284
|
-
return CovalentNotificationsModule;
|
285
|
-
}());
|
286
|
-
|
287
|
-
/**
|
288
|
-
* @fileoverview added by tsickle
|
289
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
290
|
-
*/
|
291
|
-
|
292
|
-
/**
|
293
|
-
* @fileoverview added by tsickle
|
294
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
295
|
-
*/
|
296
|
-
|
297
|
-
/**
|
298
|
-
* @fileoverview added by tsickle
|
299
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
300
|
-
*/
|
301
|
-
|
302
|
-
export { CovalentNotificationsModule, DEFAULT_NOTIFICATION_LIMIT, TdNotificationCountComponent, TdNotificationCountPositionX, TdNotificationCountPositionY };
|
303
|
-
//# sourceMappingURL=covalent-core-notifications.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-notifications.js","sources":["ng://@covalent/core/notifications/notification-count.component.ts","ng://@covalent/core/notifications/notifications.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n HostBinding,\n ChangeDetectionStrategy,\n ViewChild,\n ElementRef,\n AfterContentInit,\n} from '@angular/core';\n\nexport enum TdNotificationCountPositionY {\n Top = 'top',\n Bottom = 'bottom',\n Center = 'center',\n}\n\nexport enum TdNotificationCountPositionX {\n Before = 'before',\n After = 'after',\n Center = 'center',\n}\n\nexport const DEFAULT_NOTIFICATION_LIMIT: number = 99;\n\n@Component({\n selector: 'td-notification-count',\n styleUrls: ['./notification-count.component.scss'],\n templateUrl: './notification-count.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdNotificationCountComponent implements AfterContentInit {\n private _notifications: number | boolean = 0;\n private _positionY: TdNotificationCountPositionY;\n private _positionX: TdNotificationCountPositionX;\n private _limit: number = DEFAULT_NOTIFICATION_LIMIT;\n\n /**\n * Div content wrapper of `ng-content`.\n */\n @ViewChild('content', { static: true }) content: ElementRef;\n\n /**\n * color?: \"primary\" | \"accent\" | \"warn\"\n * Sets the theme color of the notification tip. Defaults to \"warn\"\n */\n @Input() color: 'primary' | 'accent' | 'warn' = 'warn';\n\n /**\n * positionX?: TdNotificationCountPositionX or \"before\" | \"after\" | \"center\"\n * Sets the X position of the notification tip.\n * Defaults to \"after\" if it has content, else 'center'.\n */\n @Input()\n set positionX(positionX: TdNotificationCountPositionX) {\n this._positionX = positionX;\n }\n get positionX(): TdNotificationCountPositionX {\n return this._positionX;\n }\n\n /**\n * positionY?: TdNotificationCountPositionY or \"top\" | \"bottom\" | \"center\"\n * Sets the Y position of the notification tip.\n * Defaults to \"top\" if it has content, else 'center'.\n */\n @Input()\n set positionY(positionY: TdNotificationCountPositionY) {\n this._positionY = positionY;\n }\n get positionY(): TdNotificationCountPositionY {\n return this._positionY;\n }\n\n /**\n * notifications?: number | boolean\n * Number for the notification count. Shows component only if the input is a positive number or 'true'\n */\n @Input()\n set notifications(notifications: number | boolean) {\n this._notifications = notifications;\n }\n\n /**\n * limit?: number\n * Limit for notification count. If the number of notifications is greater than limit, then + will be added. Defaults to 99.\n */\n @Input()\n set limit(limit: number) {\n this._limit = limit;\n }\n\n @HostBinding('class.td-notification-hidden')\n get hideHost(): boolean {\n return !this.show && !this._hasContent();\n }\n\n /**\n * Sets the component in its 'noCount' state if [notifications] is a boolean 'true'.\n * Makes the notification tip show without a count.\n */\n get noCount(): string | boolean {\n return this._notifications === true;\n }\n\n /**\n * Notification display string when a count is available.\n * Anything over 99 gets set as 99+\n */\n get notificationsDisplay(): string {\n if (this._notifications > this._limit) {\n return `${this._limit}+`;\n }\n return this._notifications.toString();\n }\n\n /**\n * Shows notification tip only when [notifications] is true or a positive integer.\n */\n get show(): boolean {\n return this._notifications === true || (!isNaN(<any>this._notifications) && this._notifications > 0);\n }\n\n /**\n * Check if [positionX] and [positionY] have been set as inputs, else use defaults depending on component content.\n */\n ngAfterContentInit(): void {\n if (!this._positionX) {\n this.positionX = this._hasContent() ? TdNotificationCountPositionX.After : TdNotificationCountPositionX.Center;\n }\n if (!this._positionY) {\n this.positionY = this._hasContent() ? TdNotificationCountPositionY.Top : TdNotificationCountPositionY.Center;\n }\n }\n\n /**\n * Method to check if element has any kind of content (elements or text)\n */\n private _hasContent(): boolean {\n if (this.content) {\n const contentElement: HTMLElement = this.content.nativeElement;\n return contentElement && (contentElement.children.length > 0 || !!contentElement.textContent.trim());\n }\n return false;\n }\n}\n","import { Type } from '@angular/core';\nimport { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { TdNotificationCountComponent } from './notification-count.component';\n\nconst TD_NOTIFICATIONS: Type<any>[] = [TdNotificationCountComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TD_NOTIFICATIONS],\n exports: [TD_NOTIFICATIONS],\n})\nexport class CovalentNotificationsModule {}\n"],"names":[],"mappings":";;;;;;;;;IAWE,KAAM,KAAK;IACX,QAAS,QAAQ;IACjB,QAAS,QAAQ;;;;IAIjB,QAAS,QAAQ;IACjB,OAAQ,OAAO;IACf,QAAS,QAAQ;;;IAGN,0BAA0B,GAAW;;IAElD;QAOU,mBAAc,GAAqB,CAAC,CAAC;QAGrC,WAAM,GAAW,0BAA0B,CAAC;;;;;QAW3C,UAAK,GAAkC,MAAM,CAAC;KAmGxD;IA5FC,sBACI,mDAAS;;;;QAGb;YACE,OAAO,IAAI,CAAC,UAAU,CAAC;SACxB;;;;;;;;;;;;;QAND,UACc,SAAuC;YACnD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;SAC7B;;;OAAA;IAUD,sBACI,mDAAS;;;;QAGb;YACE,OAAO,IAAI,CAAC,UAAU,CAAC;SACxB;;;;;;;;;;;;;QAND,UACc,SAAuC;YACnD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;SAC7B;;;OAAA;IASD,sBACI,uDAAa;;;;;;;;;;;QADjB,UACkB,aAA+B;YAC/C,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;SACrC;;;OAAA;IAMD,sBACI,+CAAK;;;;;;;;;;;QADT,UACU,KAAa;YACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;SACrB;;;OAAA;IAED,sBACI,kDAAQ;;;;QADZ;YAEE,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;SAC1C;;;OAAA;IAMD,sBAAI,iDAAO;;;;;;;;;;QAAX;YACE,OAAO,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC;SACrC;;;OAAA;IAMD,sBAAI,8DAAoB;;;;;;;;;;QAAxB;YACE,IAAI,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE;gBACrC,OAAU,IAAI,CAAC,MAAM,MAAG,CAAC;aAC1B;YACD,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;SACvC;;;OAAA;IAKD,sBAAI,8CAAI;;;;;;;;QAAR;YACE,OAAO,IAAI,CAAC,cAAc,KAAK,IAAI,KAAK,CAAC,KAAK,oBAAM,IAAI,CAAC,cAAc,GAAC,IAAI,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;SACtG;;;OAAA;;;;;;;;IAKD,yDAAkB;;;;IAAlB;QACE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,4BAA4B,CAAC,KAAK,GAAG,4BAA4B,CAAC,MAAM,CAAC;SAChH;QACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,4BAA4B,CAAC,GAAG,GAAG,4BAA4B,CAAC,MAAM,CAAC;SAC9G;KACF;;;;;;;;;IAKO,kDAAW;;;;;IAAnB;QACE,IAAI,IAAI,CAAC,OAAO,EAAE;;gBACV,cAAc,GAAgB,IAAI,CAAC,OAAO,CAAC,aAAa;YAC9D,OAAO,cAAc,KAAK,cAAc,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;SACtG;QACD,OAAO,KAAK,CAAC;KACd;;gBAvHF,SAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;oBAEjC,goBAAkD;oBAClD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;iBAChD;;;0BAUE,SAAS,SAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;wBAMrC,KAAK;4BAOL,KAAK;4BAaL,KAAK;gCAYL,KAAK;wBASL,KAAK;2BAKL,WAAW,SAAC,8BAA8B;;IAqD7C,mCAAC;CAxHD,IAwHC;;;;;;IAjHC,sDAA6C;;;;;IAC7C,kDAAiD;;;;;IACjD,kDAAiD;;;;;IACjD,8CAAoD;;;;;IAKpD,+CAA4D;;;;;;IAM5D,6CAAuD;;;;;;;;ICtCnD,gBAAgB,GAAgB,CAAC,4BAA4B,CAAC;;IAEpE;KAK2C;;gBAL1C,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;IACyC,kCAAC;CAL3C;;;;;;;;;;;;;;;;;;;"}
|