@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,579 +0,0 @@
|
|
1
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Optional, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
5
|
-
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
6
|
-
import { Dir } from '@angular/cdk/bidi';
|
7
|
-
|
8
|
-
/**
|
9
|
-
* @fileoverview added by tsickle
|
10
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
* @record
|
14
|
-
*/
|
15
|
-
function IPageChangeEvent() { }
|
16
|
-
if (false) {
|
17
|
-
/** @type {?} */
|
18
|
-
IPageChangeEvent.prototype.page;
|
19
|
-
/** @type {?} */
|
20
|
-
IPageChangeEvent.prototype.maxPage;
|
21
|
-
/** @type {?} */
|
22
|
-
IPageChangeEvent.prototype.pageSize;
|
23
|
-
/** @type {?} */
|
24
|
-
IPageChangeEvent.prototype.total;
|
25
|
-
/** @type {?} */
|
26
|
-
IPageChangeEvent.prototype.fromRow;
|
27
|
-
/** @type {?} */
|
28
|
-
IPageChangeEvent.prototype.toRow;
|
29
|
-
}
|
30
|
-
var TdPagingBarComponent = /** @class */ (function () {
|
31
|
-
function TdPagingBarComponent(_dir, _changeDetectorRef) {
|
32
|
-
this._dir = _dir;
|
33
|
-
this._changeDetectorRef = _changeDetectorRef;
|
34
|
-
this._pageSize = 50;
|
35
|
-
this._total = 0;
|
36
|
-
this._page = 1;
|
37
|
-
this._fromRow = 1;
|
38
|
-
this._toRow = 1;
|
39
|
-
this._initialized = false;
|
40
|
-
this._pageLinks = [];
|
41
|
-
this._pageLinkCount = 0;
|
42
|
-
// special case when 2 pageLinks, detect when hit end of pages so can lead in correct direction
|
43
|
-
this._hitEnd = false;
|
44
|
-
// special case when 2 pageLinks, detect when hit start of pages so can lead in correct direction
|
45
|
-
this._hitStart = false;
|
46
|
-
/**
|
47
|
-
* firstLast?: boolean
|
48
|
-
* Shows or hides the first and last page buttons of the paging bar. Defaults to 'false'
|
49
|
-
*/
|
50
|
-
this.firstLast = true;
|
51
|
-
/**
|
52
|
-
* initialPage?: number
|
53
|
-
* Sets starting page for the paging bar. Defaults to '1'
|
54
|
-
*/
|
55
|
-
this.initialPage = 1;
|
56
|
-
/**
|
57
|
-
* change?: function
|
58
|
-
* Method to be executed when page size changes or any button is clicked in the paging bar.
|
59
|
-
* Emits an [IPageChangeEvent] implemented object.
|
60
|
-
*/
|
61
|
-
this.change = new EventEmitter();
|
62
|
-
}
|
63
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "pageLinkCount", {
|
64
|
-
get: /**
|
65
|
-
* @return {?}
|
66
|
-
*/
|
67
|
-
function () {
|
68
|
-
return this._pageLinkCount;
|
69
|
-
},
|
70
|
-
/**
|
71
|
-
* pageLinkCount?: number
|
72
|
-
* Amount of page navigation links for the paging bar. Defaults to '0'
|
73
|
-
*/
|
74
|
-
set: /**
|
75
|
-
* pageLinkCount?: number
|
76
|
-
* Amount of page navigation links for the paging bar. Defaults to '0'
|
77
|
-
* @param {?} pageLinkCount
|
78
|
-
* @return {?}
|
79
|
-
*/
|
80
|
-
function (pageLinkCount) {
|
81
|
-
this._pageLinkCount = coerceNumberProperty(pageLinkCount);
|
82
|
-
this._calculatePageLinks();
|
83
|
-
this._changeDetectorRef.markForCheck();
|
84
|
-
},
|
85
|
-
enumerable: true,
|
86
|
-
configurable: true
|
87
|
-
});
|
88
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "pageSize", {
|
89
|
-
get: /**
|
90
|
-
* @return {?}
|
91
|
-
*/
|
92
|
-
function () {
|
93
|
-
return this._pageSize;
|
94
|
-
},
|
95
|
-
/**
|
96
|
-
* pageSize?: number
|
97
|
-
* Selected page size for the pagination. Defaults 50.
|
98
|
-
*/
|
99
|
-
set: /**
|
100
|
-
* pageSize?: number
|
101
|
-
* Selected page size for the pagination. Defaults 50.
|
102
|
-
* @param {?} pageSize
|
103
|
-
* @return {?}
|
104
|
-
*/
|
105
|
-
function (pageSize) {
|
106
|
-
this._pageSize = coerceNumberProperty(pageSize);
|
107
|
-
this._page = 1;
|
108
|
-
if (this._initialized) {
|
109
|
-
this._handleOnChange();
|
110
|
-
}
|
111
|
-
this._changeDetectorRef.markForCheck();
|
112
|
-
},
|
113
|
-
enumerable: true,
|
114
|
-
configurable: true
|
115
|
-
});
|
116
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "total", {
|
117
|
-
get: /**
|
118
|
-
* @return {?}
|
119
|
-
*/
|
120
|
-
function () {
|
121
|
-
return this._total;
|
122
|
-
},
|
123
|
-
/**
|
124
|
-
* total: number
|
125
|
-
* Total rows for the pagination.
|
126
|
-
*/
|
127
|
-
set: /**
|
128
|
-
* total: number
|
129
|
-
* Total rows for the pagination.
|
130
|
-
* @param {?} total
|
131
|
-
* @return {?}
|
132
|
-
*/
|
133
|
-
function (total) {
|
134
|
-
this._total = coerceNumberProperty(total);
|
135
|
-
this._calculateRows();
|
136
|
-
this._calculatePageLinks();
|
137
|
-
this._changeDetectorRef.markForCheck();
|
138
|
-
},
|
139
|
-
enumerable: true,
|
140
|
-
configurable: true
|
141
|
-
});
|
142
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "pageLinks", {
|
143
|
-
/**
|
144
|
-
* pageLinks: number[]
|
145
|
-
* Returns the pageLinks in an array
|
146
|
-
*/
|
147
|
-
get: /**
|
148
|
-
* pageLinks: number[]
|
149
|
-
* Returns the pageLinks in an array
|
150
|
-
* @return {?}
|
151
|
-
*/
|
152
|
-
function () {
|
153
|
-
return this._pageLinks;
|
154
|
-
},
|
155
|
-
enumerable: true,
|
156
|
-
configurable: true
|
157
|
-
});
|
158
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "range", {
|
159
|
-
/**
|
160
|
-
* range: string
|
161
|
-
* Returns the range of the rows.
|
162
|
-
*/
|
163
|
-
get: /**
|
164
|
-
* range: string
|
165
|
-
* Returns the range of the rows.
|
166
|
-
* @return {?}
|
167
|
-
*/
|
168
|
-
function () {
|
169
|
-
return (!this._toRow ? 0 : this._fromRow) + "-" + this._toRow;
|
170
|
-
},
|
171
|
-
enumerable: true,
|
172
|
-
configurable: true
|
173
|
-
});
|
174
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "page", {
|
175
|
-
/**
|
176
|
-
* page: number
|
177
|
-
* Returns the current page.
|
178
|
-
*/
|
179
|
-
get: /**
|
180
|
-
* page: number
|
181
|
-
* Returns the current page.
|
182
|
-
* @return {?}
|
183
|
-
*/
|
184
|
-
function () {
|
185
|
-
return this._page;
|
186
|
-
},
|
187
|
-
enumerable: true,
|
188
|
-
configurable: true
|
189
|
-
});
|
190
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "maxPage", {
|
191
|
-
/**
|
192
|
-
* page: number
|
193
|
-
* Returns the max page for the current pageSize and total.
|
194
|
-
*/
|
195
|
-
get: /**
|
196
|
-
* page: number
|
197
|
-
* Returns the max page for the current pageSize and total.
|
198
|
-
* @return {?}
|
199
|
-
*/
|
200
|
-
function () {
|
201
|
-
return Math.ceil(this._total / this._pageSize);
|
202
|
-
},
|
203
|
-
enumerable: true,
|
204
|
-
configurable: true
|
205
|
-
});
|
206
|
-
Object.defineProperty(TdPagingBarComponent.prototype, "isRTL", {
|
207
|
-
get: /**
|
208
|
-
* @return {?}
|
209
|
-
*/
|
210
|
-
function () {
|
211
|
-
if (this._dir) {
|
212
|
-
return this._dir.dir === 'rtl';
|
213
|
-
}
|
214
|
-
return false;
|
215
|
-
},
|
216
|
-
enumerable: true,
|
217
|
-
configurable: true
|
218
|
-
});
|
219
|
-
/**
|
220
|
-
* @return {?}
|
221
|
-
*/
|
222
|
-
TdPagingBarComponent.prototype.ngOnInit = /**
|
223
|
-
* @return {?}
|
224
|
-
*/
|
225
|
-
function () {
|
226
|
-
this._page = coerceNumberProperty(this.initialPage);
|
227
|
-
this._calculateRows();
|
228
|
-
this._calculatePageLinks();
|
229
|
-
this._initialized = true;
|
230
|
-
this._changeDetectorRef.markForCheck();
|
231
|
-
};
|
232
|
-
/**
|
233
|
-
* navigateToPage?: function
|
234
|
-
* Navigates to a specific valid page. Returns 'true' if page is valid, else 'false'.
|
235
|
-
*/
|
236
|
-
/**
|
237
|
-
* navigateToPage?: function
|
238
|
-
* Navigates to a specific valid page. Returns 'true' if page is valid, else 'false'.
|
239
|
-
* @param {?} page
|
240
|
-
* @return {?}
|
241
|
-
*/
|
242
|
-
TdPagingBarComponent.prototype.navigateToPage = /**
|
243
|
-
* navigateToPage?: function
|
244
|
-
* Navigates to a specific valid page. Returns 'true' if page is valid, else 'false'.
|
245
|
-
* @param {?} page
|
246
|
-
* @return {?}
|
247
|
-
*/
|
248
|
-
function (page) {
|
249
|
-
if (page === 1 || (page >= 1 && page <= this.maxPage)) {
|
250
|
-
this._page = coerceNumberProperty(Math.floor(page));
|
251
|
-
this._handleOnChange();
|
252
|
-
return true;
|
253
|
-
}
|
254
|
-
return false;
|
255
|
-
};
|
256
|
-
/**
|
257
|
-
* firstPage?: function
|
258
|
-
* Navigates to the first page. Returns 'true' if page is valid, else 'false'.
|
259
|
-
*/
|
260
|
-
/**
|
261
|
-
* firstPage?: function
|
262
|
-
* Navigates to the first page. Returns 'true' if page is valid, else 'false'.
|
263
|
-
* @return {?}
|
264
|
-
*/
|
265
|
-
TdPagingBarComponent.prototype.firstPage = /**
|
266
|
-
* firstPage?: function
|
267
|
-
* Navigates to the first page. Returns 'true' if page is valid, else 'false'.
|
268
|
-
* @return {?}
|
269
|
-
*/
|
270
|
-
function () {
|
271
|
-
return this.navigateToPage(1);
|
272
|
-
};
|
273
|
-
/**
|
274
|
-
* prevPage?: function
|
275
|
-
* Navigates to the previous page. Returns 'true' if page is valid, else 'false'.
|
276
|
-
*/
|
277
|
-
/**
|
278
|
-
* prevPage?: function
|
279
|
-
* Navigates to the previous page. Returns 'true' if page is valid, else 'false'.
|
280
|
-
* @return {?}
|
281
|
-
*/
|
282
|
-
TdPagingBarComponent.prototype.prevPage = /**
|
283
|
-
* prevPage?: function
|
284
|
-
* Navigates to the previous page. Returns 'true' if page is valid, else 'false'.
|
285
|
-
* @return {?}
|
286
|
-
*/
|
287
|
-
function () {
|
288
|
-
return this.navigateToPage(this._page - 1);
|
289
|
-
};
|
290
|
-
/**
|
291
|
-
* nextPage?: function
|
292
|
-
* Navigates to the next page. Returns 'true' if page is valid, else 'false'.
|
293
|
-
*/
|
294
|
-
/**
|
295
|
-
* nextPage?: function
|
296
|
-
* Navigates to the next page. Returns 'true' if page is valid, else 'false'.
|
297
|
-
* @return {?}
|
298
|
-
*/
|
299
|
-
TdPagingBarComponent.prototype.nextPage = /**
|
300
|
-
* nextPage?: function
|
301
|
-
* Navigates to the next page. Returns 'true' if page is valid, else 'false'.
|
302
|
-
* @return {?}
|
303
|
-
*/
|
304
|
-
function () {
|
305
|
-
return this.navigateToPage(this._page + 1);
|
306
|
-
};
|
307
|
-
/**
|
308
|
-
* lastPage?: function
|
309
|
-
* Navigates to the last page. Returns 'true' if page is valid, else 'false'.
|
310
|
-
*/
|
311
|
-
/**
|
312
|
-
* lastPage?: function
|
313
|
-
* Navigates to the last page. Returns 'true' if page is valid, else 'false'.
|
314
|
-
* @return {?}
|
315
|
-
*/
|
316
|
-
TdPagingBarComponent.prototype.lastPage = /**
|
317
|
-
* lastPage?: function
|
318
|
-
* Navigates to the last page. Returns 'true' if page is valid, else 'false'.
|
319
|
-
* @return {?}
|
320
|
-
*/
|
321
|
-
function () {
|
322
|
-
return this.navigateToPage(this.maxPage);
|
323
|
-
};
|
324
|
-
/**
|
325
|
-
* @return {?}
|
326
|
-
*/
|
327
|
-
TdPagingBarComponent.prototype.isMinPage = /**
|
328
|
-
* @return {?}
|
329
|
-
*/
|
330
|
-
function () {
|
331
|
-
return this._page <= 1;
|
332
|
-
};
|
333
|
-
/**
|
334
|
-
* @return {?}
|
335
|
-
*/
|
336
|
-
TdPagingBarComponent.prototype.isMaxPage = /**
|
337
|
-
* @return {?}
|
338
|
-
*/
|
339
|
-
function () {
|
340
|
-
return this._page >= this.maxPage;
|
341
|
-
};
|
342
|
-
/**
|
343
|
-
* @private
|
344
|
-
* @return {?}
|
345
|
-
*/
|
346
|
-
TdPagingBarComponent.prototype._calculateRows = /**
|
347
|
-
* @private
|
348
|
-
* @return {?}
|
349
|
-
*/
|
350
|
-
function () {
|
351
|
-
/** @type {?} */
|
352
|
-
var top = this._pageSize * this._page;
|
353
|
-
this._fromRow = this._pageSize * (this._page - 1) + 1;
|
354
|
-
this._toRow = this._total > top ? top : this._total;
|
355
|
-
};
|
356
|
-
/**
|
357
|
-
* _calculatePageLinks?: function
|
358
|
-
* Calculates the page links that should be shown to the user based on the current state of the paginator
|
359
|
-
*/
|
360
|
-
/**
|
361
|
-
* _calculatePageLinks?: function
|
362
|
-
* Calculates the page links that should be shown to the user based on the current state of the paginator
|
363
|
-
* @private
|
364
|
-
* @return {?}
|
365
|
-
*/
|
366
|
-
TdPagingBarComponent.prototype._calculatePageLinks = /**
|
367
|
-
* _calculatePageLinks?: function
|
368
|
-
* Calculates the page links that should be shown to the user based on the current state of the paginator
|
369
|
-
* @private
|
370
|
-
* @return {?}
|
371
|
-
*/
|
372
|
-
function () {
|
373
|
-
// special case when 2 pageLinks, detect when hit end of pages so can lead in correct direction
|
374
|
-
if (this.isMaxPage()) {
|
375
|
-
this._hitEnd = true;
|
376
|
-
this._hitStart = false;
|
377
|
-
}
|
378
|
-
// special case when 2 pageLinks, detect when hit start of pages so can lead in correct direction
|
379
|
-
if (this.isMinPage()) {
|
380
|
-
this._hitEnd = false;
|
381
|
-
this._hitStart = true;
|
382
|
-
}
|
383
|
-
// If the pageLinkCount goes above max possible pages based on perpage setting then reset it to maxPage
|
384
|
-
/** @type {?} */
|
385
|
-
var actualPageLinkCount = this.pageLinkCount;
|
386
|
-
if (this.pageLinkCount > this.maxPage) {
|
387
|
-
actualPageLinkCount = this.maxPage;
|
388
|
-
}
|
389
|
-
// reset the pageLinks array
|
390
|
-
this._pageLinks = [];
|
391
|
-
// fill in the array with the pageLinks based on the current selected page
|
392
|
-
/** @type {?} */
|
393
|
-
var middlePageLinks = Math.floor(actualPageLinkCount / 2);
|
394
|
-
for (var x = 0; x < actualPageLinkCount; x++) {
|
395
|
-
// don't go past the maxPage in the pageLinks
|
396
|
-
// have to handle even and odd pageLinkCounts differently so can still lead to the next numbers
|
397
|
-
if ((actualPageLinkCount % 2 === 0 && this.page + middlePageLinks > this.maxPage) ||
|
398
|
-
(actualPageLinkCount % 2 !== 0 && this.page + middlePageLinks >= this.maxPage)) {
|
399
|
-
this._pageLinks[x] = this.maxPage - (actualPageLinkCount - (x + 1));
|
400
|
-
// if the selected page is after the middle then set that page as middle and get the correct balance on left and right
|
401
|
-
// special handling when there are only 2 pageLinks to just drop to next if block so can lead to next numbers when moving to right
|
402
|
-
// when moving to the left then go into this block
|
403
|
-
}
|
404
|
-
else if ((actualPageLinkCount > 2 || (actualPageLinkCount <= 2 && this._hitEnd)) &&
|
405
|
-
this.page - middlePageLinks > 0) {
|
406
|
-
this._pageLinks[x] = this.page - middlePageLinks + x;
|
407
|
-
// if the selected page is before the middle then set the pages based on the x index leading up to and after selected page
|
408
|
-
}
|
409
|
-
else if (this.page - middlePageLinks <= 0) {
|
410
|
-
this._pageLinks[x] = x + 1;
|
411
|
-
// other wise just set the array in order starting from the selected page
|
412
|
-
}
|
413
|
-
else {
|
414
|
-
this._pageLinks[x] = this.page + x;
|
415
|
-
}
|
416
|
-
}
|
417
|
-
};
|
418
|
-
/**
|
419
|
-
* @private
|
420
|
-
* @return {?}
|
421
|
-
*/
|
422
|
-
TdPagingBarComponent.prototype._handleOnChange = /**
|
423
|
-
* @private
|
424
|
-
* @return {?}
|
425
|
-
*/
|
426
|
-
function () {
|
427
|
-
this._calculateRows();
|
428
|
-
this._calculatePageLinks();
|
429
|
-
/** @type {?} */
|
430
|
-
var event = {
|
431
|
-
page: this._page,
|
432
|
-
maxPage: this.maxPage,
|
433
|
-
pageSize: this._pageSize,
|
434
|
-
total: this._total,
|
435
|
-
fromRow: this._fromRow,
|
436
|
-
toRow: this._toRow,
|
437
|
-
};
|
438
|
-
this._changeDetectorRef.markForCheck();
|
439
|
-
this.change.emit(event);
|
440
|
-
};
|
441
|
-
TdPagingBarComponent.decorators = [
|
442
|
-
{ type: Component, args: [{
|
443
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
444
|
-
selector: 'td-paging-bar',
|
445
|
-
template: "<div class=\"td-paging-bar\" (change)=\"$event.stopPropagation()\">\n <ng-content></ng-content>\n <div class=\"td-paging-bar-navigation\">\n <button\n mat-icon-button\n class=\"td-paging-bar-first-page\"\n type=\"button\"\n *ngIf=\"firstLast\"\n [disabled]=\"isMinPage()\"\n (click)=\"firstPage()\"\n >\n <mat-icon>{{ isRTL ? 'skip_next' : 'skip_previous' }}</mat-icon>\n </button>\n <button mat-icon-button class=\"td-paging-bar-prev-page\" type=\"button\" [disabled]=\"isMinPage()\" (click)=\"prevPage()\">\n <mat-icon>{{ isRTL ? 'navigate_next' : 'navigate_before' }}</mat-icon>\n </button>\n <ng-template *ngIf=\"pageLinkCount > 0\" let-link let-index=\"index\" ngFor [ngForOf]=\"pageLinks\">\n <button\n class=\"td-paging-bar-link-page\"\n mat-icon-button\n type=\"button\"\n [color]=\"page === link ? 'accent' : undefined\"\n (click)=\"navigateToPage(link)\"\n >\n {{ link }}\n </button>\n </ng-template>\n <button mat-icon-button class=\"td-paging-bar-next-page\" type=\"button\" [disabled]=\"isMaxPage()\" (click)=\"nextPage()\">\n <mat-icon>{{ isRTL ? 'navigate_before' : 'navigate_next' }}</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"td-paging-bar-last-page\"\n type=\"button\"\n *ngIf=\"firstLast\"\n [disabled]=\"isMaxPage()\"\n (click)=\"lastPage()\"\n >\n <mat-icon>{{ isRTL ? 'skip_previous' : 'skip_next' }}</mat-icon>\n </button>\n </div>\n</div>\n",
|
446
|
-
styles: [":host{display:block}:host .td-paging-bar{height:48px;box-sizing:border-box;display:-ms-flexbox;display:flex;-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-paging-bar ::ng-deep>*{margin:0 10px}:host .td-paging-bar [mat-icon-button]{font-size:12px;font-weight:400}"]
|
447
|
-
}] }
|
448
|
-
];
|
449
|
-
/** @nocollapse */
|
450
|
-
TdPagingBarComponent.ctorParameters = function () { return [
|
451
|
-
{ type: Dir, decorators: [{ type: Optional }] },
|
452
|
-
{ type: ChangeDetectorRef }
|
453
|
-
]; };
|
454
|
-
TdPagingBarComponent.propDecorators = {
|
455
|
-
firstLast: [{ type: Input }],
|
456
|
-
initialPage: [{ type: Input }],
|
457
|
-
pageLinkCount: [{ type: Input, args: ['pageLinkCount',] }],
|
458
|
-
pageSize: [{ type: Input, args: ['pageSize',] }],
|
459
|
-
total: [{ type: Input, args: ['total',] }],
|
460
|
-
change: [{ type: Output }]
|
461
|
-
};
|
462
|
-
return TdPagingBarComponent;
|
463
|
-
}());
|
464
|
-
if (false) {
|
465
|
-
/**
|
466
|
-
* @type {?}
|
467
|
-
* @private
|
468
|
-
*/
|
469
|
-
TdPagingBarComponent.prototype._pageSize;
|
470
|
-
/**
|
471
|
-
* @type {?}
|
472
|
-
* @private
|
473
|
-
*/
|
474
|
-
TdPagingBarComponent.prototype._total;
|
475
|
-
/**
|
476
|
-
* @type {?}
|
477
|
-
* @private
|
478
|
-
*/
|
479
|
-
TdPagingBarComponent.prototype._page;
|
480
|
-
/**
|
481
|
-
* @type {?}
|
482
|
-
* @private
|
483
|
-
*/
|
484
|
-
TdPagingBarComponent.prototype._fromRow;
|
485
|
-
/**
|
486
|
-
* @type {?}
|
487
|
-
* @private
|
488
|
-
*/
|
489
|
-
TdPagingBarComponent.prototype._toRow;
|
490
|
-
/**
|
491
|
-
* @type {?}
|
492
|
-
* @private
|
493
|
-
*/
|
494
|
-
TdPagingBarComponent.prototype._initialized;
|
495
|
-
/**
|
496
|
-
* @type {?}
|
497
|
-
* @private
|
498
|
-
*/
|
499
|
-
TdPagingBarComponent.prototype._pageLinks;
|
500
|
-
/**
|
501
|
-
* @type {?}
|
502
|
-
* @private
|
503
|
-
*/
|
504
|
-
TdPagingBarComponent.prototype._pageLinkCount;
|
505
|
-
/**
|
506
|
-
* @type {?}
|
507
|
-
* @private
|
508
|
-
*/
|
509
|
-
TdPagingBarComponent.prototype._hitEnd;
|
510
|
-
/**
|
511
|
-
* @type {?}
|
512
|
-
* @private
|
513
|
-
*/
|
514
|
-
TdPagingBarComponent.prototype._hitStart;
|
515
|
-
/**
|
516
|
-
* firstLast?: boolean
|
517
|
-
* Shows or hides the first and last page buttons of the paging bar. Defaults to 'false'
|
518
|
-
* @type {?}
|
519
|
-
*/
|
520
|
-
TdPagingBarComponent.prototype.firstLast;
|
521
|
-
/**
|
522
|
-
* initialPage?: number
|
523
|
-
* Sets starting page for the paging bar. Defaults to '1'
|
524
|
-
* @type {?}
|
525
|
-
*/
|
526
|
-
TdPagingBarComponent.prototype.initialPage;
|
527
|
-
/**
|
528
|
-
* change?: function
|
529
|
-
* Method to be executed when page size changes or any button is clicked in the paging bar.
|
530
|
-
* Emits an [IPageChangeEvent] implemented object.
|
531
|
-
* @type {?}
|
532
|
-
*/
|
533
|
-
TdPagingBarComponent.prototype.change;
|
534
|
-
/**
|
535
|
-
* @type {?}
|
536
|
-
* @private
|
537
|
-
*/
|
538
|
-
TdPagingBarComponent.prototype._dir;
|
539
|
-
/**
|
540
|
-
* @type {?}
|
541
|
-
* @private
|
542
|
-
*/
|
543
|
-
TdPagingBarComponent.prototype._changeDetectorRef;
|
544
|
-
}
|
545
|
-
|
546
|
-
/**
|
547
|
-
* @fileoverview added by tsickle
|
548
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
549
|
-
*/
|
550
|
-
var CovalentPagingModule = /** @class */ (function () {
|
551
|
-
function CovalentPagingModule() {
|
552
|
-
}
|
553
|
-
CovalentPagingModule.decorators = [
|
554
|
-
{ type: NgModule, args: [{
|
555
|
-
imports: [CommonModule, MatIconModule, MatButtonModule],
|
556
|
-
declarations: [TdPagingBarComponent],
|
557
|
-
exports: [TdPagingBarComponent],
|
558
|
-
},] }
|
559
|
-
];
|
560
|
-
return CovalentPagingModule;
|
561
|
-
}());
|
562
|
-
|
563
|
-
/**
|
564
|
-
* @fileoverview added by tsickle
|
565
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
566
|
-
*/
|
567
|
-
|
568
|
-
/**
|
569
|
-
* @fileoverview added by tsickle
|
570
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
571
|
-
*/
|
572
|
-
|
573
|
-
/**
|
574
|
-
* @fileoverview added by tsickle
|
575
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
576
|
-
*/
|
577
|
-
|
578
|
-
export { CovalentPagingModule, TdPagingBarComponent };
|
579
|
-
//# sourceMappingURL=covalent-core-paging.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-paging.js","sources":["ng://@covalent/core/paging/paging-bar.component.ts","ng://@covalent/core/paging/paging.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Output,\n EventEmitter,\n OnInit,\n Optional,\n ChangeDetectorRef,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Dir } from '@angular/cdk/bidi';\n\nexport interface IPageChangeEvent {\n page: number;\n maxPage: number;\n pageSize: number;\n total: number;\n fromRow: number;\n toRow: number;\n}\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'td-paging-bar',\n templateUrl: './paging-bar.component.html',\n styleUrls: ['./paging-bar.component.scss'],\n})\nexport class TdPagingBarComponent implements OnInit {\n private _pageSize: number = 50;\n private _total: number = 0;\n private _page: number = 1;\n private _fromRow: number = 1;\n private _toRow: number = 1;\n private _initialized: boolean = false;\n private _pageLinks: number[] = [];\n private _pageLinkCount: number = 0;\n // special case when 2 pageLinks, detect when hit end of pages so can lead in correct direction\n private _hitEnd: boolean = false;\n // special case when 2 pageLinks, detect when hit start of pages so can lead in correct direction\n private _hitStart: boolean = false;\n\n /**\n * firstLast?: boolean\n * Shows or hides the first and last page buttons of the paging bar. Defaults to 'false'\n */\n @Input() firstLast: boolean = true;\n\n /**\n * initialPage?: number\n * Sets starting page for the paging bar. Defaults to '1'\n */\n @Input() initialPage: number = 1;\n\n /**\n * pageLinkCount?: number\n * Amount of page navigation links for the paging bar. Defaults to '0'\n */\n @Input('pageLinkCount')\n set pageLinkCount(pageLinkCount: number) {\n this._pageLinkCount = coerceNumberProperty(pageLinkCount);\n this._calculatePageLinks();\n this._changeDetectorRef.markForCheck();\n }\n get pageLinkCount(): number {\n return this._pageLinkCount;\n }\n\n /**\n * pageSize?: number\n * Selected page size for the pagination. Defaults 50.\n */\n @Input('pageSize')\n set pageSize(pageSize: number) {\n this._pageSize = coerceNumberProperty(pageSize);\n this._page = 1;\n if (this._initialized) {\n this._handleOnChange();\n }\n this._changeDetectorRef.markForCheck();\n }\n get pageSize(): number {\n return this._pageSize;\n }\n\n /**\n * total: number\n * Total rows for the pagination.\n */\n @Input('total')\n set total(total: number) {\n this._total = coerceNumberProperty(total);\n this._calculateRows();\n this._calculatePageLinks();\n this._changeDetectorRef.markForCheck();\n }\n get total(): number {\n return this._total;\n }\n\n /**\n * pageLinks: number[]\n * Returns the pageLinks in an array\n */\n get pageLinks(): number[] {\n return this._pageLinks;\n }\n\n /**\n * range: string\n * Returns the range of the rows.\n */\n get range(): string {\n return `${!this._toRow ? 0 : this._fromRow}-${this._toRow}`;\n }\n\n /**\n * page: number\n * Returns the current page.\n */\n get page(): number {\n return this._page;\n }\n\n /**\n * page: number\n * Returns the max page for the current pageSize and total.\n */\n get maxPage(): number {\n return Math.ceil(this._total / this._pageSize);\n }\n\n /**\n * change?: function\n * Method to be executed when page size changes or any button is clicked in the paging bar.\n * Emits an [IPageChangeEvent] implemented object.\n */\n @Output() change: EventEmitter<IPageChangeEvent> = new EventEmitter<IPageChangeEvent>();\n\n get isRTL(): boolean {\n if (this._dir) {\n return this._dir.dir === 'rtl';\n }\n return false;\n }\n\n constructor(@Optional() private _dir: Dir, private _changeDetectorRef: ChangeDetectorRef) {}\n\n ngOnInit(): void {\n this._page = coerceNumberProperty(this.initialPage);\n this._calculateRows();\n this._calculatePageLinks();\n this._initialized = true;\n this._changeDetectorRef.markForCheck();\n }\n\n /**\n * navigateToPage?: function\n * Navigates to a specific valid page. Returns 'true' if page is valid, else 'false'.\n */\n navigateToPage(page: number): boolean {\n if (page === 1 || (page >= 1 && page <= this.maxPage)) {\n this._page = coerceNumberProperty(Math.floor(page));\n this._handleOnChange();\n return true;\n }\n return false;\n }\n\n /**\n * firstPage?: function\n * Navigates to the first page. Returns 'true' if page is valid, else 'false'.\n */\n firstPage(): boolean {\n return this.navigateToPage(1);\n }\n\n /**\n * prevPage?: function\n * Navigates to the previous page. Returns 'true' if page is valid, else 'false'.\n */\n prevPage(): boolean {\n return this.navigateToPage(this._page - 1);\n }\n\n /**\n * nextPage?: function\n * Navigates to the next page. Returns 'true' if page is valid, else 'false'.\n */\n nextPage(): boolean {\n return this.navigateToPage(this._page + 1);\n }\n\n /**\n * lastPage?: function\n * Navigates to the last page. Returns 'true' if page is valid, else 'false'.\n */\n lastPage(): boolean {\n return this.navigateToPage(this.maxPage);\n }\n\n isMinPage(): boolean {\n return this._page <= 1;\n }\n\n isMaxPage(): boolean {\n return this._page >= this.maxPage;\n }\n\n private _calculateRows(): void {\n const top: number = this._pageSize * this._page;\n this._fromRow = this._pageSize * (this._page - 1) + 1;\n this._toRow = this._total > top ? top : this._total;\n }\n\n /**\n * _calculatePageLinks?: function\n * Calculates the page links that should be shown to the user based on the current state of the paginator\n */\n private _calculatePageLinks(): void {\n // special case when 2 pageLinks, detect when hit end of pages so can lead in correct direction\n if (this.isMaxPage()) {\n this._hitEnd = true;\n this._hitStart = false;\n }\n // special case when 2 pageLinks, detect when hit start of pages so can lead in correct direction\n if (this.isMinPage()) {\n this._hitEnd = false;\n this._hitStart = true;\n }\n // If the pageLinkCount goes above max possible pages based on perpage setting then reset it to maxPage\n let actualPageLinkCount: number = this.pageLinkCount;\n if (this.pageLinkCount > this.maxPage) {\n actualPageLinkCount = this.maxPage;\n }\n // reset the pageLinks array\n this._pageLinks = [];\n // fill in the array with the pageLinks based on the current selected page\n const middlePageLinks: number = Math.floor(actualPageLinkCount / 2);\n for (let x: number = 0; x < actualPageLinkCount; x++) {\n // don't go past the maxPage in the pageLinks\n // have to handle even and odd pageLinkCounts differently so can still lead to the next numbers\n if (\n (actualPageLinkCount % 2 === 0 && this.page + middlePageLinks > this.maxPage) ||\n (actualPageLinkCount % 2 !== 0 && this.page + middlePageLinks >= this.maxPage)\n ) {\n this._pageLinks[x] = this.maxPage - (actualPageLinkCount - (x + 1));\n // if the selected page is after the middle then set that page as middle and get the correct balance on left and right\n // special handling when there are only 2 pageLinks to just drop to next if block so can lead to next numbers when moving to right\n // when moving to the left then go into this block\n } else if (\n (actualPageLinkCount > 2 || (actualPageLinkCount <= 2 && this._hitEnd)) &&\n this.page - middlePageLinks > 0\n ) {\n this._pageLinks[x] = this.page - middlePageLinks + x;\n // if the selected page is before the middle then set the pages based on the x index leading up to and after selected page\n } else if (this.page - middlePageLinks <= 0) {\n this._pageLinks[x] = x + 1;\n // other wise just set the array in order starting from the selected page\n } else {\n this._pageLinks[x] = this.page + x;\n }\n }\n }\n\n private _handleOnChange(): void {\n this._calculateRows();\n this._calculatePageLinks();\n const event: IPageChangeEvent = {\n page: this._page,\n maxPage: this.maxPage,\n pageSize: this._pageSize,\n total: this._total,\n fromRow: this._fromRow,\n toRow: this._toRow,\n };\n this._changeDetectorRef.markForCheck();\n this.change.emit(event);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\nimport { TdPagingBarComponent } from './paging-bar.component';\n\n@NgModule({\n imports: [CommonModule, MatIconModule, MatButtonModule],\n declarations: [TdPagingBarComponent],\n exports: [TdPagingBarComponent],\n})\nexport class CovalentPagingModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;+BAoBC;;;IANC,gCAAa;;IACb,mCAAgB;;IAChB,oCAAiB;;IACjB,iCAAc;;IACd,mCAAgB;;IAChB,iCAAc;;;IA+Hd,8BAAgC,IAAS,EAAU,kBAAqC;QAAxD,SAAI,GAAJ,IAAI,CAAK;QAAU,uBAAkB,GAAlB,kBAAkB,CAAmB;QArHhF,cAAS,GAAW,EAAE,CAAC;QACvB,WAAM,GAAW,CAAC,CAAC;QACnB,UAAK,GAAW,CAAC,CAAC;QAClB,aAAQ,GAAW,CAAC,CAAC;QACrB,WAAM,GAAW,CAAC,CAAC;QACnB,iBAAY,GAAY,KAAK,CAAC;QAC9B,eAAU,GAAa,EAAE,CAAC;QAC1B,mBAAc,GAAW,CAAC,CAAC;;QAE3B,YAAO,GAAY,KAAK,CAAC;;QAEzB,cAAS,GAAY,KAAK,CAAC;;;;;QAM1B,cAAS,GAAY,IAAI,CAAC;;;;;QAM1B,gBAAW,GAAW,CAAC,CAAC;;;;;;QAqFvB,WAAM,GAAmC,IAAI,YAAY,EAAoB,CAAC;KASI;IAxF5F,sBACI,+CAAa;;;;QAKjB;YACE,OAAO,IAAI,CAAC,cAAc,CAAC;SAC5B;;;;;;;;;;;QARD,UACkB,aAAqB;YACrC,IAAI,CAAC,cAAc,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;YAC1D,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,IAAI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