@covalent/core 3.1.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/covalent-core-user-profile.umd.js +1 -9
- package/bundles/covalent-core-user-profile.umd.js.map +1 -1
- package/bundles/covalent-core-user-profile.umd.min.js.map +1 -1
- package/esm2015/user-profile/user-profile.module.js +3 -11
- package/fesm2015/covalent-core-user-profile.js +1 -9
- package/fesm2015/covalent-core-user-profile.js.map +1 -1
- package/package.json +1 -1
- package/schematics/components.js +1 -14
- package/schematics/components.js.map +1 -1
- package/theming/_all-theme.scss +0 -14
- package/theming/prebuilt/blue-grey-deep-orange.css +0 -248
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +0 -248
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +0 -248
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +0 -248
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +0 -248
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/typography/_all-typography.scss +0 -10
- package/user-profile/covalent-core-user-profile.metadata.json +1 -1
- package/bundles/covalent-core-chips.umd.js +0 -1507
- package/bundles/covalent-core-chips.umd.js.map +0 -1
- package/bundles/covalent-core-chips.umd.min.js +0 -16
- package/bundles/covalent-core-chips.umd.min.js.map +0 -1
- package/bundles/covalent-core-data-table.umd.js +0 -2756
- package/bundles/covalent-core-data-table.umd.js.map +0 -1
- package/bundles/covalent-core-data-table.umd.min.js +0 -16
- package/bundles/covalent-core-data-table.umd.min.js.map +0 -1
- package/bundles/covalent-core-expansion-panel.umd.js +0 -853
- package/bundles/covalent-core-expansion-panel.umd.js.map +0 -1
- package/bundles/covalent-core-expansion-panel.umd.min.js +0 -16
- package/bundles/covalent-core-expansion-panel.umd.min.js.map +0 -1
- package/bundles/covalent-core-loading.umd.js +0 -1534
- package/bundles/covalent-core-loading.umd.js.map +0 -1
- package/bundles/covalent-core-loading.umd.min.js +0 -16
- package/bundles/covalent-core-loading.umd.min.js.map +0 -1
- package/bundles/covalent-core-media.umd.js +0 -749
- package/bundles/covalent-core-media.umd.js.map +0 -1
- package/bundles/covalent-core-media.umd.min.js +0 -16
- package/bundles/covalent-core-media.umd.min.js.map +0 -1
- package/bundles/covalent-core-nav-links.umd.js +0 -197
- package/bundles/covalent-core-nav-links.umd.js.map +0 -1
- package/bundles/covalent-core-nav-links.umd.min.js +0 -2
- package/bundles/covalent-core-nav-links.umd.min.js.map +0 -1
- package/bundles/covalent-core-notifications.umd.js +0 -275
- package/bundles/covalent-core-notifications.umd.js.map +0 -1
- package/bundles/covalent-core-notifications.umd.min.js +0 -2
- package/bundles/covalent-core-notifications.umd.min.js.map +0 -1
- package/bundles/covalent-core-paging.umd.js +0 -491
- package/bundles/covalent-core-paging.umd.js.map +0 -1
- package/bundles/covalent-core-paging.umd.min.js +0 -2
- package/bundles/covalent-core-paging.umd.min.js.map +0 -1
- package/bundles/covalent-core-sidesheet.umd.js +0 -145
- package/bundles/covalent-core-sidesheet.umd.js.map +0 -1
- package/bundles/covalent-core-sidesheet.umd.min.js +0 -2
- package/bundles/covalent-core-sidesheet.umd.min.js.map +0 -1
- package/bundles/covalent-core-steps.umd.js +0 -1756
- package/bundles/covalent-core-steps.umd.js.map +0 -1
- package/bundles/covalent-core-steps.umd.min.js +0 -16
- package/bundles/covalent-core-steps.umd.min.js.map +0 -1
- package/bundles/covalent-core-tab-select.umd.js +0 -732
- package/bundles/covalent-core-tab-select.umd.js.map +0 -1
- package/bundles/covalent-core-tab-select.umd.min.js +0 -16
- package/bundles/covalent-core-tab-select.umd.min.js.map +0 -1
- package/bundles/covalent-core-virtual-scroll.umd.js +0 -785
- package/bundles/covalent-core-virtual-scroll.umd.js.map +0 -1
- package/bundles/covalent-core-virtual-scroll.umd.min.js +0 -16
- package/bundles/covalent-core-virtual-scroll.umd.min.js.map +0 -1
- package/chips/README.md +0 -99
- package/chips/_chips-theme.scss +0 -87
- package/chips/chips.component.d.ts +0 -287
- package/chips/chips.component.scss +0 -147
- package/chips/chips.module.d.ts +0 -2
- package/chips/covalent-core-chips.d.ts +0 -4
- package/chips/covalent-core-chips.metadata.json +0 -1
- package/chips/index.d.ts +0 -1
- package/chips/package.json +0 -11
- package/chips/public-api.d.ts +0 -2
- package/data-table/README.md +0 -134
- package/data-table/_data-table-theme.scss +0 -115
- package/data-table/covalent-core-data-table.d.ts +0 -4
- package/data-table/covalent-core-data-table.metadata.json +0 -1
- package/data-table/data-table-cell/data-table-cell.component.d.ts +0 -22
- package/data-table/data-table-cell/data-table-cell.component.scss +0 -58
- package/data-table/data-table-column/data-table-column.component.d.ts +0 -63
- package/data-table/data-table-column/data-table-column.component.scss +0 -80
- package/data-table/data-table-row/data-table-row.component.d.ts +0 -20
- package/data-table/data-table-row/data-table-row.component.scss +0 -12
- package/data-table/data-table-table/data-table-table.component.d.ts +0 -6
- package/data-table/data-table-table/data-table-table.component.scss +0 -7
- package/data-table/data-table.component.d.ts +0 -356
- package/data-table/data-table.component.scss +0 -93
- package/data-table/data-table.module.d.ts +0 -2
- package/data-table/directives/data-table-template.directive.d.ts +0 -6
- package/data-table/index.d.ts +0 -1
- package/data-table/package.json +0 -11
- package/data-table/public-api.d.ts +0 -8
- package/data-table/services/data-table.service.d.ts +0 -31
- package/esm2015/chips/chips.component.js +0 -1115
- package/esm2015/chips/chips.module.js +0 -23
- package/esm2015/chips/covalent-core-chips.js +0 -10
- package/esm2015/chips/index.js +0 -7
- package/esm2015/chips/public-api.js +0 -8
- package/esm2015/data-table/covalent-core-data-table.js +0 -10
- package/esm2015/data-table/data-table-cell/data-table-cell.component.js +0 -88
- package/esm2015/data-table/data-table-column/data-table-column.component.js +0 -218
- package/esm2015/data-table/data-table-row/data-table-row.component.js +0 -132
- package/esm2015/data-table/data-table-table/data-table-table.component.js +0 -43
- package/esm2015/data-table/data-table.component.js +0 -1640
- package/esm2015/data-table/data-table.module.js +0 -39
- package/esm2015/data-table/directives/data-table-template.directive.js +0 -32
- package/esm2015/data-table/index.js +0 -7
- package/esm2015/data-table/public-api.js +0 -14
- package/esm2015/data-table/services/data-table.service.js +0 -116
- package/esm2015/expansion-panel/covalent-core-expansion-panel.js +0 -10
- package/esm2015/expansion-panel/expansion-panel-group.component.js +0 -212
- package/esm2015/expansion-panel/expansion-panel.component.js +0 -272
- package/esm2015/expansion-panel/expansion-panel.module.js +0 -31
- package/esm2015/expansion-panel/index.js +0 -7
- package/esm2015/expansion-panel/public-api.js +0 -9
- package/esm2015/loading/covalent-core-loading.js +0 -10
- package/esm2015/loading/directives/loading.directive.js +0 -231
- package/esm2015/loading/index.js +0 -7
- package/esm2015/loading/loading.component.js +0 -302
- package/esm2015/loading/loading.module.js +0 -30
- package/esm2015/loading/public-api.js +0 -11
- package/esm2015/loading/services/loading.factory.js +0 -297
- package/esm2015/loading/services/loading.service.js +0 -319
- package/esm2015/media/covalent-core-media.js +0 -10
- package/esm2015/media/directives/media-toggle.directive.js +0 -207
- package/esm2015/media/index.js +0 -7
- package/esm2015/media/media.module.js +0 -20
- package/esm2015/media/public-api.js +0 -9
- package/esm2015/media/services/media.service.js +0 -169
- package/esm2015/nav-links/covalent-core-nav-links.js +0 -10
- package/esm2015/nav-links/index.js +0 -7
- package/esm2015/nav-links/nav-links.component.js +0 -138
- package/esm2015/nav-links/nav-links.module.js +0 -37
- package/esm2015/nav-links/public-api.js +0 -8
- package/esm2015/notifications/covalent-core-notifications.js +0 -10
- package/esm2015/notifications/index.js +0 -7
- package/esm2015/notifications/notification-count.component.js +0 -191
- package/esm2015/notifications/notifications.module.js +0 -20
- package/esm2015/notifications/public-api.js +0 -8
- package/esm2015/paging/covalent-core-paging.js +0 -10
- package/esm2015/paging/index.js +0 -7
- package/esm2015/paging/paging-bar.component.js +0 -412
- package/esm2015/paging/paging.module.js +0 -20
- package/esm2015/paging/public-api.js +0 -8
- package/esm2015/sidesheet/covalent-core-sidesheet.js +0 -10
- package/esm2015/sidesheet/index.js +0 -7
- package/esm2015/sidesheet/public-api.js +0 -8
- package/esm2015/sidesheet/sidesheet.component.js +0 -72
- package/esm2015/sidesheet/sidesheet.module.js +0 -27
- package/esm2015/steps/covalent-core-steps.js +0 -10
- package/esm2015/steps/index.js +0 -7
- package/esm2015/steps/nav/nav-step-link/nav-step-link.component.js +0 -144
- package/esm2015/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +0 -371
- package/esm2015/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +0 -130
- package/esm2015/steps/public-api.js +0 -14
- package/esm2015/steps/step-body/step-body.component.js +0 -83
- package/esm2015/steps/step-header/step-header.component.js +0 -79
- package/esm2015/steps/step.component.js +0 -312
- package/esm2015/steps/steps.component.js +0 -234
- package/esm2015/steps/steps.module.js +0 -44
- package/esm2015/tab-select/covalent-core-tab-select.js +0 -10
- package/esm2015/tab-select/index.js +0 -7
- package/esm2015/tab-select/public-api.js +0 -9
- package/esm2015/tab-select/tab-option.component.js +0 -82
- package/esm2015/tab-select/tab-select.component.js +0 -291
- package/esm2015/tab-select/tab-select.module.js +0 -31
- package/esm2015/virtual-scroll/covalent-core-virtual-scroll.js +0 -10
- package/esm2015/virtual-scroll/index.js +0 -7
- package/esm2015/virtual-scroll/public-api.js +0 -9
- package/esm2015/virtual-scroll/virtual-scroll-container.component.js +0 -391
- package/esm2015/virtual-scroll/virtual-scroll-row.directive.js +0 -25
- package/esm2015/virtual-scroll/virtual-scroll.module.js +0 -21
- package/expansion-panel/README.md +0 -116
- package/expansion-panel/_expansion-panel-theme.scss +0 -80
- package/expansion-panel/covalent-core-expansion-panel.d.ts +0 -4
- package/expansion-panel/covalent-core-expansion-panel.metadata.json +0 -1
- package/expansion-panel/expansion-panel-group.component.d.ts +0 -31
- package/expansion-panel/expansion-panel-group.component.scss +0 -0
- package/expansion-panel/expansion-panel.component.d.ts +0 -82
- package/expansion-panel/expansion-panel.component.scss +0 -50
- package/expansion-panel/expansion-panel.module.d.ts +0 -2
- package/expansion-panel/index.d.ts +0 -1
- package/expansion-panel/package.json +0 -11
- package/expansion-panel/public-api.d.ts +0 -3
- package/fesm2015/covalent-core-chips.js +0 -1151
- package/fesm2015/covalent-core-chips.js.map +0 -1
- package/fesm2015/covalent-core-data-table.js +0 -2309
- package/fesm2015/covalent-core-data-table.js.map +0 -1
- package/fesm2015/covalent-core-expansion-panel.js +0 -528
- package/fesm2015/covalent-core-expansion-panel.js.map +0 -1
- package/fesm2015/covalent-core-loading.js +0 -1179
- package/fesm2015/covalent-core-loading.js.map +0 -1
- package/fesm2015/covalent-core-media.js +0 -411
- package/fesm2015/covalent-core-media.js.map +0 -1
- package/fesm2015/covalent-core-nav-links.js +0 -193
- package/fesm2015/covalent-core-nav-links.js.map +0 -1
- package/fesm2015/covalent-core-notifications.js +0 -228
- package/fesm2015/covalent-core-notifications.js.map +0 -1
- package/fesm2015/covalent-core-paging.js +0 -451
- package/fesm2015/covalent-core-paging.js.map +0 -1
- package/fesm2015/covalent-core-sidesheet.js +0 -118
- package/fesm2015/covalent-core-sidesheet.js.map +0 -1
- package/fesm2015/covalent-core-steps.js +0 -1384
- package/fesm2015/covalent-core-steps.js.map +0 -1
- package/fesm2015/covalent-core-tab-select.js +0 -416
- package/fesm2015/covalent-core-tab-select.js.map +0 -1
- package/fesm2015/covalent-core-virtual-scroll.js +0 -453
- package/fesm2015/covalent-core-virtual-scroll.js.map +0 -1
- package/loading/README.md +0 -180
- package/loading/_loading-theme.scss +0 -10
- package/loading/covalent-core-loading.d.ts +0 -4
- package/loading/covalent-core-loading.metadata.json +0 -1
- package/loading/directives/loading.directive.d.ts +0 -71
- package/loading/index.d.ts +0 -1
- package/loading/loading.component.d.ts +0 -87
- package/loading/loading.component.scss +0 -42
- package/loading/loading.module.d.ts +0 -2
- package/loading/package.json +0 -11
- package/loading/public-api.d.ts +0 -5
- package/loading/services/loading.factory.d.ts +0 -66
- package/loading/services/loading.service.d.ts +0 -118
- package/media/covalent-core-media.d.ts +0 -4
- package/media/covalent-core-media.metadata.json +0 -1
- package/media/directives/media-toggle.directive.d.ts +0 -42
- package/media/index.d.ts +0 -1
- package/media/media.module.d.ts +0 -2
- package/media/package.json +0 -11
- package/media/public-api.d.ts +0 -3
- package/media/services/media.service.d.ts +0 -31
- package/nav-links/README.md +0 -1
- package/nav-links/covalent-core-nav-links.d.ts +0 -4
- package/nav-links/covalent-core-nav-links.metadata.json +0 -1
- package/nav-links/index.d.ts +0 -1
- package/nav-links/nav-links.component.d.ts +0 -51
- package/nav-links/nav-links.component.scss +0 -15
- package/nav-links/nav-links.module.d.ts +0 -2
- package/nav-links/package.json +0 -11
- package/nav-links/public-api.d.ts +0 -2
- package/notifications/README.md +0 -69
- package/notifications/_notification-count-theme.scss +0 -27
- package/notifications/covalent-core-notifications.d.ts +0 -4
- package/notifications/covalent-core-notifications.metadata.json +0 -1
- package/notifications/index.d.ts +0 -1
- package/notifications/notification-count.component.d.ts +0 -74
- package/notifications/notification-count.component.scss +0 -90
- package/notifications/notifications.module.d.ts +0 -2
- package/notifications/package.json +0 -11
- package/notifications/public-api.d.ts +0 -2
- package/paging/README.md +0 -141
- package/paging/_paging-bar-theme.scss +0 -26
- package/paging/covalent-core-paging.d.ts +0 -4
- package/paging/covalent-core-paging.metadata.json +0 -1
- package/paging/index.d.ts +0 -1
- package/paging/package.json +0 -11
- package/paging/paging-bar.component.d.ts +0 -115
- package/paging/paging-bar.component.scss +0 -23
- package/paging/paging.module.d.ts +0 -2
- package/paging/public-api.d.ts +0 -2
- package/sidesheet/README.md +0 -68
- package/sidesheet/covalent-core-sidesheet.d.ts +0 -4
- package/sidesheet/covalent-core-sidesheet.metadata.json +0 -1
- package/sidesheet/index.d.ts +0 -1
- package/sidesheet/package.json +0 -11
- package/sidesheet/public-api.d.ts +0 -2
- package/sidesheet/sidesheet.component.d.ts +0 -13
- package/sidesheet/sidesheet.component.scss +0 -101
- package/sidesheet/sidesheet.module.d.ts +0 -2
- package/steps/README.md +0 -159
- package/steps/_steps-theme.scss +0 -108
- package/steps/covalent-core-steps.d.ts +0 -4
- package/steps/covalent-core-steps.metadata.json +0 -1
- package/steps/index.d.ts +0 -1
- package/steps/nav/README.md +0 -90
- package/steps/nav/nav-step-link/nav-step-link.component.d.ts +0 -42
- package/steps/nav/nav-step-link/nav-step-link.component.scss +0 -17
- package/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.d.ts +0 -79
- package/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.scss +0 -83
- package/steps/nav/nav-steps-vertical/nav-steps-vertical.component.d.ts +0 -18
- package/steps/nav/nav-steps-vertical/nav-steps-vertical.component.scss +0 -18
- package/steps/package.json +0 -11
- package/steps/public-api.d.ts +0 -8
- package/steps/step-body/step-body.component.d.ts +0 -25
- package/steps/step-body/step-body.component.scss +0 -29
- package/steps/step-header/step-header.component.d.ts +0 -35
- package/steps/step-header/step-header.component.scss +0 -90
- package/steps/step.component.d.ts +0 -97
- package/steps/steps.component.d.ts +0 -60
- package/steps/steps.component.scss +0 -55
- package/steps/steps.module.d.ts +0 -2
- package/tab-select/README.md +0 -93
- package/tab-select/covalent-core-tab-select.d.ts +0 -4
- package/tab-select/covalent-core-tab-select.metadata.json +0 -1
- package/tab-select/index.d.ts +0 -1
- package/tab-select/package.json +0 -11
- package/tab-select/public-api.d.ts +0 -3
- package/tab-select/tab-option.component.d.ts +0 -20
- package/tab-select/tab-option.component.scss +0 -0
- package/tab-select/tab-select.component.d.ts +0 -62
- package/tab-select/tab-select.component.scss +0 -3
- package/tab-select/tab-select.module.d.ts +0 -2
- package/virtual-scroll/README.md +0 -68
- package/virtual-scroll/covalent-core-virtual-scroll.d.ts +0 -4
- package/virtual-scroll/covalent-core-virtual-scroll.metadata.json +0 -1
- package/virtual-scroll/index.d.ts +0 -1
- package/virtual-scroll/package.json +0 -11
- package/virtual-scroll/public-api.d.ts +0 -3
- package/virtual-scroll/virtual-scroll-container.component.d.ts +0 -73
- package/virtual-scroll/virtual-scroll-container.component.scss +0 -7
- package/virtual-scroll/virtual-scroll-row.directive.d.ts +0 -5
- package/virtual-scroll/virtual-scroll.module.d.ts +0 -2
@@ -1,451 +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
|
-
* Generated from: paging-bar.component.ts
|
11
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
12
|
-
*/
|
13
|
-
/**
|
14
|
-
* @record
|
15
|
-
*/
|
16
|
-
function IPageChangeEvent() { }
|
17
|
-
if (false) {
|
18
|
-
/** @type {?} */
|
19
|
-
IPageChangeEvent.prototype.page;
|
20
|
-
/** @type {?} */
|
21
|
-
IPageChangeEvent.prototype.maxPage;
|
22
|
-
/** @type {?} */
|
23
|
-
IPageChangeEvent.prototype.pageSize;
|
24
|
-
/** @type {?} */
|
25
|
-
IPageChangeEvent.prototype.total;
|
26
|
-
/** @type {?} */
|
27
|
-
IPageChangeEvent.prototype.fromRow;
|
28
|
-
/** @type {?} */
|
29
|
-
IPageChangeEvent.prototype.toRow;
|
30
|
-
}
|
31
|
-
class TdPagingBarComponent {
|
32
|
-
/**
|
33
|
-
* @param {?} _dir
|
34
|
-
* @param {?} _changeDetectorRef
|
35
|
-
*/
|
36
|
-
constructor(_dir, _changeDetectorRef) {
|
37
|
-
this._dir = _dir;
|
38
|
-
this._changeDetectorRef = _changeDetectorRef;
|
39
|
-
this._pageSize = 50;
|
40
|
-
this._total = 0;
|
41
|
-
this._page = 1;
|
42
|
-
this._fromRow = 1;
|
43
|
-
this._toRow = 1;
|
44
|
-
this._initialized = false;
|
45
|
-
this._pageLinks = [];
|
46
|
-
this._pageLinkCount = 0;
|
47
|
-
// special case when 2 pageLinks, detect when hit end of pages so can lead in correct direction
|
48
|
-
this._hitEnd = false;
|
49
|
-
// special case when 2 pageLinks, detect when hit start of pages so can lead in correct direction
|
50
|
-
this._hitStart = false;
|
51
|
-
/**
|
52
|
-
* firstLast?: boolean
|
53
|
-
* Shows or hides the first and last page buttons of the paging bar. Defaults to 'false'
|
54
|
-
*/
|
55
|
-
this.firstLast = true;
|
56
|
-
/**
|
57
|
-
* initialPage?: number
|
58
|
-
* Sets starting page for the paging bar. Defaults to '1'
|
59
|
-
*/
|
60
|
-
this.initialPage = 1;
|
61
|
-
/**
|
62
|
-
* change?: function
|
63
|
-
* Method to be executed when page size changes or any button is clicked in the paging bar.
|
64
|
-
* Emits an [IPageChangeEvent] implemented object.
|
65
|
-
*/
|
66
|
-
this.change = new EventEmitter();
|
67
|
-
}
|
68
|
-
/**
|
69
|
-
* pageLinkCount?: number
|
70
|
-
* Amount of page navigation links for the paging bar. Defaults to '0'
|
71
|
-
* @param {?} pageLinkCount
|
72
|
-
* @return {?}
|
73
|
-
*/
|
74
|
-
set pageLinkCount(pageLinkCount) {
|
75
|
-
this._pageLinkCount = coerceNumberProperty(pageLinkCount);
|
76
|
-
this._calculatePageLinks();
|
77
|
-
this._changeDetectorRef.markForCheck();
|
78
|
-
}
|
79
|
-
/**
|
80
|
-
* @return {?}
|
81
|
-
*/
|
82
|
-
get pageLinkCount() {
|
83
|
-
return this._pageLinkCount;
|
84
|
-
}
|
85
|
-
/**
|
86
|
-
* pageSize?: number
|
87
|
-
* Selected page size for the pagination. Defaults 50.
|
88
|
-
* @param {?} pageSize
|
89
|
-
* @return {?}
|
90
|
-
*/
|
91
|
-
set pageSize(pageSize) {
|
92
|
-
this._pageSize = coerceNumberProperty(pageSize);
|
93
|
-
this._page = 1;
|
94
|
-
if (this._initialized) {
|
95
|
-
this._handleOnChange();
|
96
|
-
}
|
97
|
-
this._changeDetectorRef.markForCheck();
|
98
|
-
}
|
99
|
-
/**
|
100
|
-
* @return {?}
|
101
|
-
*/
|
102
|
-
get pageSize() {
|
103
|
-
return this._pageSize;
|
104
|
-
}
|
105
|
-
/**
|
106
|
-
* total: number
|
107
|
-
* Total rows for the pagination.
|
108
|
-
* @param {?} total
|
109
|
-
* @return {?}
|
110
|
-
*/
|
111
|
-
set total(total) {
|
112
|
-
this._total = coerceNumberProperty(total);
|
113
|
-
this._calculateRows();
|
114
|
-
this._calculatePageLinks();
|
115
|
-
this._changeDetectorRef.markForCheck();
|
116
|
-
}
|
117
|
-
/**
|
118
|
-
* @return {?}
|
119
|
-
*/
|
120
|
-
get total() {
|
121
|
-
return this._total;
|
122
|
-
}
|
123
|
-
/**
|
124
|
-
* pageLinks: number[]
|
125
|
-
* Returns the pageLinks in an array
|
126
|
-
* @return {?}
|
127
|
-
*/
|
128
|
-
get pageLinks() {
|
129
|
-
return this._pageLinks;
|
130
|
-
}
|
131
|
-
/**
|
132
|
-
* range: string
|
133
|
-
* Returns the range of the rows.
|
134
|
-
* @return {?}
|
135
|
-
*/
|
136
|
-
get range() {
|
137
|
-
return `${!this._toRow ? 0 : this._fromRow}-${this._toRow}`;
|
138
|
-
}
|
139
|
-
/**
|
140
|
-
* page: number
|
141
|
-
* Returns the current page.
|
142
|
-
* @return {?}
|
143
|
-
*/
|
144
|
-
get page() {
|
145
|
-
return this._page;
|
146
|
-
}
|
147
|
-
/**
|
148
|
-
* page: number
|
149
|
-
* Returns the max page for the current pageSize and total.
|
150
|
-
* @return {?}
|
151
|
-
*/
|
152
|
-
get maxPage() {
|
153
|
-
return Math.ceil(this._total / this._pageSize);
|
154
|
-
}
|
155
|
-
/**
|
156
|
-
* @return {?}
|
157
|
-
*/
|
158
|
-
get isRTL() {
|
159
|
-
if (this._dir) {
|
160
|
-
return this._dir.dir === 'rtl';
|
161
|
-
}
|
162
|
-
return false;
|
163
|
-
}
|
164
|
-
/**
|
165
|
-
* @return {?}
|
166
|
-
*/
|
167
|
-
ngOnInit() {
|
168
|
-
this._page = coerceNumberProperty(this.initialPage);
|
169
|
-
this._calculateRows();
|
170
|
-
this._calculatePageLinks();
|
171
|
-
this._initialized = true;
|
172
|
-
this._changeDetectorRef.markForCheck();
|
173
|
-
}
|
174
|
-
/**
|
175
|
-
* navigateToPage?: function
|
176
|
-
* Navigates to a specific valid page. Returns 'true' if page is valid, else 'false'.
|
177
|
-
* @param {?} page
|
178
|
-
* @return {?}
|
179
|
-
*/
|
180
|
-
navigateToPage(page) {
|
181
|
-
if (page === 1 || (page >= 1 && page <= this.maxPage)) {
|
182
|
-
this._page = coerceNumberProperty(Math.floor(page));
|
183
|
-
this._handleOnChange();
|
184
|
-
return true;
|
185
|
-
}
|
186
|
-
return false;
|
187
|
-
}
|
188
|
-
/**
|
189
|
-
* firstPage?: function
|
190
|
-
* Navigates to the first page. Returns 'true' if page is valid, else 'false'.
|
191
|
-
* @return {?}
|
192
|
-
*/
|
193
|
-
firstPage() {
|
194
|
-
return this.navigateToPage(1);
|
195
|
-
}
|
196
|
-
/**
|
197
|
-
* prevPage?: function
|
198
|
-
* Navigates to the previous page. Returns 'true' if page is valid, else 'false'.
|
199
|
-
* @return {?}
|
200
|
-
*/
|
201
|
-
prevPage() {
|
202
|
-
return this.navigateToPage(this._page - 1);
|
203
|
-
}
|
204
|
-
/**
|
205
|
-
* nextPage?: function
|
206
|
-
* Navigates to the next page. Returns 'true' if page is valid, else 'false'.
|
207
|
-
* @return {?}
|
208
|
-
*/
|
209
|
-
nextPage() {
|
210
|
-
return this.navigateToPage(this._page + 1);
|
211
|
-
}
|
212
|
-
/**
|
213
|
-
* lastPage?: function
|
214
|
-
* Navigates to the last page. Returns 'true' if page is valid, else 'false'.
|
215
|
-
* @return {?}
|
216
|
-
*/
|
217
|
-
lastPage() {
|
218
|
-
return this.navigateToPage(this.maxPage);
|
219
|
-
}
|
220
|
-
/**
|
221
|
-
* @return {?}
|
222
|
-
*/
|
223
|
-
isMinPage() {
|
224
|
-
return this._page <= 1;
|
225
|
-
}
|
226
|
-
/**
|
227
|
-
* @return {?}
|
228
|
-
*/
|
229
|
-
isMaxPage() {
|
230
|
-
return this._page >= this.maxPage;
|
231
|
-
}
|
232
|
-
/**
|
233
|
-
* @private
|
234
|
-
* @return {?}
|
235
|
-
*/
|
236
|
-
_calculateRows() {
|
237
|
-
/** @type {?} */
|
238
|
-
const top = this._pageSize * this._page;
|
239
|
-
this._fromRow = this._pageSize * (this._page - 1) + 1;
|
240
|
-
this._toRow = this._total > top ? top : this._total;
|
241
|
-
}
|
242
|
-
/**
|
243
|
-
* _calculatePageLinks?: function
|
244
|
-
* Calculates the page links that should be shown to the user based on the current state of the paginator
|
245
|
-
* @private
|
246
|
-
* @return {?}
|
247
|
-
*/
|
248
|
-
_calculatePageLinks() {
|
249
|
-
// special case when 2 pageLinks, detect when hit end of pages so can lead in correct direction
|
250
|
-
if (this.isMaxPage()) {
|
251
|
-
this._hitEnd = true;
|
252
|
-
this._hitStart = false;
|
253
|
-
}
|
254
|
-
// special case when 2 pageLinks, detect when hit start of pages so can lead in correct direction
|
255
|
-
if (this.isMinPage()) {
|
256
|
-
this._hitEnd = false;
|
257
|
-
this._hitStart = true;
|
258
|
-
}
|
259
|
-
// If the pageLinkCount goes above max possible pages based on perpage setting then reset it to maxPage
|
260
|
-
/** @type {?} */
|
261
|
-
let actualPageLinkCount = this.pageLinkCount;
|
262
|
-
if (this.pageLinkCount > this.maxPage) {
|
263
|
-
actualPageLinkCount = this.maxPage;
|
264
|
-
}
|
265
|
-
// reset the pageLinks array
|
266
|
-
this._pageLinks = [];
|
267
|
-
// fill in the array with the pageLinks based on the current selected page
|
268
|
-
/** @type {?} */
|
269
|
-
const middlePageLinks = Math.floor(actualPageLinkCount / 2);
|
270
|
-
for (let x = 0; x < actualPageLinkCount; x++) {
|
271
|
-
// don't go past the maxPage in the pageLinks
|
272
|
-
// have to handle even and odd pageLinkCounts differently so can still lead to the next numbers
|
273
|
-
if ((actualPageLinkCount % 2 === 0 && this.page + middlePageLinks > this.maxPage) ||
|
274
|
-
(actualPageLinkCount % 2 !== 0 && this.page + middlePageLinks >= this.maxPage)) {
|
275
|
-
this._pageLinks[x] = this.maxPage - (actualPageLinkCount - (x + 1));
|
276
|
-
// if the selected page is after the middle then set that page as middle and get the correct balance on left and right
|
277
|
-
// 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
|
278
|
-
// when moving to the left then go into this block
|
279
|
-
}
|
280
|
-
else if ((actualPageLinkCount > 2 || (actualPageLinkCount <= 2 && this._hitEnd)) &&
|
281
|
-
this.page - middlePageLinks > 0) {
|
282
|
-
this._pageLinks[x] = this.page - middlePageLinks + x;
|
283
|
-
// if the selected page is before the middle then set the pages based on the x index leading up to and after selected page
|
284
|
-
}
|
285
|
-
else if (this.page - middlePageLinks <= 0) {
|
286
|
-
this._pageLinks[x] = x + 1;
|
287
|
-
// other wise just set the array in order starting from the selected page
|
288
|
-
}
|
289
|
-
else {
|
290
|
-
this._pageLinks[x] = this.page + x;
|
291
|
-
}
|
292
|
-
}
|
293
|
-
}
|
294
|
-
/**
|
295
|
-
* @private
|
296
|
-
* @return {?}
|
297
|
-
*/
|
298
|
-
_handleOnChange() {
|
299
|
-
this._calculateRows();
|
300
|
-
this._calculatePageLinks();
|
301
|
-
/** @type {?} */
|
302
|
-
const event = {
|
303
|
-
page: this._page,
|
304
|
-
maxPage: this.maxPage,
|
305
|
-
pageSize: this._pageSize,
|
306
|
-
total: this._total,
|
307
|
-
fromRow: this._fromRow,
|
308
|
-
toRow: this._toRow,
|
309
|
-
};
|
310
|
-
this._changeDetectorRef.markForCheck();
|
311
|
-
this.change.emit(event);
|
312
|
-
}
|
313
|
-
}
|
314
|
-
TdPagingBarComponent.decorators = [
|
315
|
-
{ type: Component, args: [{
|
316
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
317
|
-
selector: 'td-paging-bar',
|
318
|
-
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",
|
319
|
-
styles: [":host{display:block}:host .td-paging-bar{-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:end;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;height:48px;justify-content:flex-end;max-width:100%}:host .td-paging-bar ::ng-deep>*{margin:0 10px}:host .td-paging-bar [mat-icon-button]{font-size:12px;font-weight:400}"]
|
320
|
-
}] }
|
321
|
-
];
|
322
|
-
/** @nocollapse */
|
323
|
-
TdPagingBarComponent.ctorParameters = () => [
|
324
|
-
{ type: Dir, decorators: [{ type: Optional }] },
|
325
|
-
{ type: ChangeDetectorRef }
|
326
|
-
];
|
327
|
-
TdPagingBarComponent.propDecorators = {
|
328
|
-
firstLast: [{ type: Input }],
|
329
|
-
initialPage: [{ type: Input }],
|
330
|
-
pageLinkCount: [{ type: Input, args: ['pageLinkCount',] }],
|
331
|
-
pageSize: [{ type: Input, args: ['pageSize',] }],
|
332
|
-
total: [{ type: Input, args: ['total',] }],
|
333
|
-
change: [{ type: Output }]
|
334
|
-
};
|
335
|
-
if (false) {
|
336
|
-
/**
|
337
|
-
* @type {?}
|
338
|
-
* @private
|
339
|
-
*/
|
340
|
-
TdPagingBarComponent.prototype._pageSize;
|
341
|
-
/**
|
342
|
-
* @type {?}
|
343
|
-
* @private
|
344
|
-
*/
|
345
|
-
TdPagingBarComponent.prototype._total;
|
346
|
-
/**
|
347
|
-
* @type {?}
|
348
|
-
* @private
|
349
|
-
*/
|
350
|
-
TdPagingBarComponent.prototype._page;
|
351
|
-
/**
|
352
|
-
* @type {?}
|
353
|
-
* @private
|
354
|
-
*/
|
355
|
-
TdPagingBarComponent.prototype._fromRow;
|
356
|
-
/**
|
357
|
-
* @type {?}
|
358
|
-
* @private
|
359
|
-
*/
|
360
|
-
TdPagingBarComponent.prototype._toRow;
|
361
|
-
/**
|
362
|
-
* @type {?}
|
363
|
-
* @private
|
364
|
-
*/
|
365
|
-
TdPagingBarComponent.prototype._initialized;
|
366
|
-
/**
|
367
|
-
* @type {?}
|
368
|
-
* @private
|
369
|
-
*/
|
370
|
-
TdPagingBarComponent.prototype._pageLinks;
|
371
|
-
/**
|
372
|
-
* @type {?}
|
373
|
-
* @private
|
374
|
-
*/
|
375
|
-
TdPagingBarComponent.prototype._pageLinkCount;
|
376
|
-
/**
|
377
|
-
* @type {?}
|
378
|
-
* @private
|
379
|
-
*/
|
380
|
-
TdPagingBarComponent.prototype._hitEnd;
|
381
|
-
/**
|
382
|
-
* @type {?}
|
383
|
-
* @private
|
384
|
-
*/
|
385
|
-
TdPagingBarComponent.prototype._hitStart;
|
386
|
-
/**
|
387
|
-
* firstLast?: boolean
|
388
|
-
* Shows or hides the first and last page buttons of the paging bar. Defaults to 'false'
|
389
|
-
* @type {?}
|
390
|
-
*/
|
391
|
-
TdPagingBarComponent.prototype.firstLast;
|
392
|
-
/**
|
393
|
-
* initialPage?: number
|
394
|
-
* Sets starting page for the paging bar. Defaults to '1'
|
395
|
-
* @type {?}
|
396
|
-
*/
|
397
|
-
TdPagingBarComponent.prototype.initialPage;
|
398
|
-
/**
|
399
|
-
* change?: function
|
400
|
-
* Method to be executed when page size changes or any button is clicked in the paging bar.
|
401
|
-
* Emits an [IPageChangeEvent] implemented object.
|
402
|
-
* @type {?}
|
403
|
-
*/
|
404
|
-
TdPagingBarComponent.prototype.change;
|
405
|
-
/**
|
406
|
-
* @type {?}
|
407
|
-
* @private
|
408
|
-
*/
|
409
|
-
TdPagingBarComponent.prototype._dir;
|
410
|
-
/**
|
411
|
-
* @type {?}
|
412
|
-
* @private
|
413
|
-
*/
|
414
|
-
TdPagingBarComponent.prototype._changeDetectorRef;
|
415
|
-
}
|
416
|
-
|
417
|
-
/**
|
418
|
-
* @fileoverview added by tsickle
|
419
|
-
* Generated from: paging.module.ts
|
420
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
421
|
-
*/
|
422
|
-
class CovalentPagingModule {
|
423
|
-
}
|
424
|
-
CovalentPagingModule.decorators = [
|
425
|
-
{ type: NgModule, args: [{
|
426
|
-
imports: [CommonModule, MatIconModule, MatButtonModule],
|
427
|
-
declarations: [TdPagingBarComponent],
|
428
|
-
exports: [TdPagingBarComponent],
|
429
|
-
},] }
|
430
|
-
];
|
431
|
-
|
432
|
-
/**
|
433
|
-
* @fileoverview added by tsickle
|
434
|
-
* Generated from: public-api.ts
|
435
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
436
|
-
*/
|
437
|
-
|
438
|
-
/**
|
439
|
-
* @fileoverview added by tsickle
|
440
|
-
* Generated from: index.ts
|
441
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
442
|
-
*/
|
443
|
-
|
444
|
-
/**
|
445
|
-
* @fileoverview added by tsickle
|
446
|
-
* Generated from: covalent-core-paging.ts
|
447
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
448
|
-
*/
|
449
|
-
|
450
|
-
export { CovalentPagingModule, TdPagingBarComponent };
|
451
|
-
//# sourceMappingURL=covalent-core-paging.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-paging.js","sources":["../../../../src/platform/core/paging/paging-bar.component.ts","../../../../src/platform/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;;MASH,oBAAoB;;;;;IAsH/B,YAAgC,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,IACI,aAAa,CAAC,aAAqB;QACrC,IAAI,CAAC,cAAc,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;QAC1D,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC;KACxC;;;;IACD,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;KAC5B;;;;;;;IAMD,IACI,QAAQ,CAAC,QAAgB;QAC3B,IAAI,CAAC,SAAS,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAChD,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;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;;;;;;IAqFjC,sCAAwF;;;;;IAS5E,oCAA6B;;;;;IAAE,kDAA6C;;;;;;;;MCpI7E,oBAAoB;;;YALhC,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC;gBACvD,YAAY,EAAE,CAAC,oBAAoB,CAAC;gBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;aAChC;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,118 +0,0 @@
|
|
1
|
-
import { Directive, Input, Component, ViewEncapsulation, ContentChild, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { MatDividerModule } from '@angular/material/divider';
|
4
|
-
|
5
|
-
/**
|
6
|
-
* @fileoverview added by tsickle
|
7
|
-
* Generated from: sidesheet.component.ts
|
8
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
9
|
-
*/
|
10
|
-
class TdSidesheetContentDirective {
|
11
|
-
}
|
12
|
-
TdSidesheetContentDirective.decorators = [
|
13
|
-
{ type: Directive, args: [{
|
14
|
-
selector: 'td-sidesheet-content',
|
15
|
-
},] }
|
16
|
-
];
|
17
|
-
class TdSidesheetTitleDirective {
|
18
|
-
}
|
19
|
-
TdSidesheetTitleDirective.decorators = [
|
20
|
-
{ type: Directive, args: [{
|
21
|
-
selector: 'td-sidesheet-title',
|
22
|
-
},] }
|
23
|
-
];
|
24
|
-
class TdSidesheetActionsDirective {
|
25
|
-
constructor() {
|
26
|
-
this.align = 'start';
|
27
|
-
}
|
28
|
-
}
|
29
|
-
TdSidesheetActionsDirective.decorators = [
|
30
|
-
{ type: Directive, args: [{
|
31
|
-
selector: 'td-sidesheet-actions',
|
32
|
-
/* tslint:disable-next-line */
|
33
|
-
host: {
|
34
|
-
'[class.align-end]': 'align === "end"',
|
35
|
-
'[class.align-start]': 'align === "start"',
|
36
|
-
},
|
37
|
-
},] }
|
38
|
-
];
|
39
|
-
TdSidesheetActionsDirective.propDecorators = {
|
40
|
-
align: [{ type: Input }]
|
41
|
-
};
|
42
|
-
if (false) {
|
43
|
-
/** @type {?} */
|
44
|
-
TdSidesheetActionsDirective.prototype.align;
|
45
|
-
}
|
46
|
-
class TdSidesheetHeaderComponent {
|
47
|
-
}
|
48
|
-
TdSidesheetHeaderComponent.decorators = [
|
49
|
-
{ type: Component, args: [{
|
50
|
-
selector: 'td-sidesheet-header',
|
51
|
-
template: "<ng-content select=\"td-sidesheet-title\"></ng-content>\n<ng-content select=\"[mat-icon-button][td-sidesheet-header-action]\"></ng-content>\n"
|
52
|
-
}] }
|
53
|
-
];
|
54
|
-
class TdSidesheetComponent {
|
55
|
-
}
|
56
|
-
TdSidesheetComponent.decorators = [
|
57
|
-
{ type: Component, args: [{
|
58
|
-
selector: 'td-sidesheet',
|
59
|
-
template: "<ng-content select=\"td-sidesheet-header\"></ng-content>\n<ng-template [ngIf]=\"headerExists\">\n <mat-divider></mat-divider>\n</ng-template>\n<div class=\"td-sidesheet-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<ng-template [ngIf]=\"actionsExist\">\n <mat-divider></mat-divider>\n</ng-template>\n<ng-content select=\"td-sidesheet-actions\"></ng-content>\n",
|
60
|
-
// tslint:disable-next-line:use-component-view-encapsulation
|
61
|
-
encapsulation: ViewEncapsulation.None,
|
62
|
-
styles: ["td-sidesheet,td-sidesheet td-sidesheet-header{box-sizing:border-box;display:-ms-flexbox;display:flex}td-sidesheet{-ms-flex-direction:column;flex-direction:column}td-sidesheet td-sidesheet-header{-ms-flex-direction:row;flex-direction:row}td-sidesheet{height:100%;margin:0;min-height:100%;width:100%}td-sidesheet td-sidesheet-header{-ms-flex-align:center;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;justify-content:flex-start;max-width:100%}td-sidesheet .mat-divider-horizontal{position:static!important}td-sidesheet td-sidesheet-title{-ms-flex:1;flex:1}td-sidesheet td-sidesheet-header{font-size:18px;padding:20px 16px;width:100%}td-sidesheet td-sidesheet-header .mat-button-focus-overlay{background-color:rgba(0,0,0,0)!important}td-sidesheet td-sidesheet-header .mat-icon-button{height:24px;line-height:21px;width:24px}td-sidesheet td-sidesheet-actions{display:block;padding:8px}td-sidesheet .td-sidesheet-content-wrapper{-ms-flex:1;flex:1;overflow-y:auto;position:relative}td-sidesheet td-sidesheet-content{display:block;padding:16px}td-sidesheet-content>:first-child,td-sidesheet>:first-child{margin-top:0}td-sidesheet-content>:last-child,td-sidesheet>:last-child{margin-bottom:0}"]
|
63
|
-
}] }
|
64
|
-
];
|
65
|
-
TdSidesheetComponent.propDecorators = {
|
66
|
-
headerExists: [{ type: ContentChild, args: [TdSidesheetHeaderComponent,] }],
|
67
|
-
actionsExist: [{ type: ContentChild, args: [TdSidesheetActionsDirective,] }]
|
68
|
-
};
|
69
|
-
if (false) {
|
70
|
-
/** @type {?} */
|
71
|
-
TdSidesheetComponent.prototype.headerExists;
|
72
|
-
/** @type {?} */
|
73
|
-
TdSidesheetComponent.prototype.actionsExist;
|
74
|
-
}
|
75
|
-
|
76
|
-
/**
|
77
|
-
* @fileoverview added by tsickle
|
78
|
-
* Generated from: sidesheet.module.ts
|
79
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
80
|
-
*/
|
81
|
-
/** @type {?} */
|
82
|
-
const TD_SIDESHEET = [
|
83
|
-
TdSidesheetComponent,
|
84
|
-
TdSidesheetHeaderComponent,
|
85
|
-
TdSidesheetContentDirective,
|
86
|
-
TdSidesheetTitleDirective,
|
87
|
-
TdSidesheetActionsDirective,
|
88
|
-
];
|
89
|
-
class CovalentSidesheetModule {
|
90
|
-
}
|
91
|
-
CovalentSidesheetModule.decorators = [
|
92
|
-
{ type: NgModule, args: [{
|
93
|
-
imports: [CommonModule, MatDividerModule],
|
94
|
-
declarations: [TD_SIDESHEET],
|
95
|
-
exports: [TD_SIDESHEET],
|
96
|
-
},] }
|
97
|
-
];
|
98
|
-
|
99
|
-
/**
|
100
|
-
* @fileoverview added by tsickle
|
101
|
-
* Generated from: public-api.ts
|
102
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
103
|
-
*/
|
104
|
-
|
105
|
-
/**
|
106
|
-
* @fileoverview added by tsickle
|
107
|
-
* Generated from: index.ts
|
108
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
109
|
-
*/
|
110
|
-
|
111
|
-
/**
|
112
|
-
* @fileoverview added by tsickle
|
113
|
-
* Generated from: covalent-core-sidesheet.ts
|
114
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
115
|
-
*/
|
116
|
-
|
117
|
-
export { CovalentSidesheetModule, TdSidesheetActionsDirective, TdSidesheetComponent, TdSidesheetContentDirective, TdSidesheetHeaderComponent, TdSidesheetTitleDirective };
|
118
|
-
//# sourceMappingURL=covalent-core-sidesheet.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-sidesheet.js","sources":["../../../../src/platform/core/sidesheet/sidesheet.component.ts","../../../../src/platform/core/sidesheet/sidesheet.module.ts"],"sourcesContent":["import { Component, ContentChild, Directive, Input, ViewEncapsulation } from '@angular/core';\n\n@Directive({\n selector: 'td-sidesheet-content',\n})\nexport class TdSidesheetContentDirective {}\n\n@Directive({\n selector: 'td-sidesheet-title',\n})\nexport class TdSidesheetTitleDirective {}\n\n@Directive({\n selector: 'td-sidesheet-actions',\n /* tslint:disable-next-line */\n host: {\n '[class.align-end]': 'align === \"end\"',\n '[class.align-start]': 'align === \"start\"',\n },\n})\nexport class TdSidesheetActionsDirective {\n @Input() align: 'start' | 'end' = 'start';\n}\n\n@Component({\n selector: 'td-sidesheet-header',\n templateUrl: 'sidesheet-header.component.html',\n})\nexport class TdSidesheetHeaderComponent {}\n\n@Component({\n selector: 'td-sidesheet',\n templateUrl: './sidesheet.component.html',\n styleUrls: ['./sidesheet.component.scss'],\n // tslint:disable-next-line:use-component-view-encapsulation\n encapsulation: ViewEncapsulation.None,\n})\nexport class TdSidesheetComponent {\n @ContentChild(TdSidesheetHeaderComponent) headerExists: TdSidesheetHeaderComponent;\n @ContentChild(TdSidesheetActionsDirective) actionsExist: TdSidesheetActionsDirective;\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatDividerModule } from '@angular/material/divider';\n\nimport {\n TdSidesheetComponent,\n TdSidesheetHeaderComponent,\n TdSidesheetContentDirective,\n TdSidesheetTitleDirective,\n TdSidesheetActionsDirective,\n} from './sidesheet.component';\n\nconst TD_SIDESHEET: Type<any>[] = [\n TdSidesheetComponent,\n TdSidesheetHeaderComponent,\n TdSidesheetContentDirective,\n TdSidesheetTitleDirective,\n TdSidesheetActionsDirective,\n];\n\n@NgModule({\n imports: [CommonModule, MatDividerModule],\n declarations: [TD_SIDESHEET],\n exports: [TD_SIDESHEET],\n})\nexport class CovalentSidesheetModule {}\n"],"names":[],"mappings":";;;;;;;;;MAKa,2BAA2B;;;YAHvC,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;aACjC;;MAMY,yBAAyB;;;YAHrC,SAAS,SAAC;gBACT,QAAQ,EAAE,oBAAoB;aAC/B;;MAWY,2BAA2B;IARxC;QASW,UAAK,GAAoB,OAAO,CAAC;KAC3C;;;YAVA,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;;gBAEhC,IAAI,EAAE;oBACJ,mBAAmB,EAAE,iBAAiB;oBACtC,qBAAqB,EAAE,mBAAmB;iBAC3C;aACF;;;oBAEE,KAAK;;;;IAAN,4CAA0C;;MAO/B,0BAA0B;;;YAJtC,SAAS,SAAC;gBACT,QAAQ,EAAE,qBAAqB;gBAC/B,yJAA8C;aAC/C;;MAUY,oBAAoB;;;YAPhC,SAAS,SAAC;gBACT,QAAQ,EAAE,cAAc;gBACxB,gYAAyC;;gBAGzC,aAAa,EAAE,iBAAiB,CAAC,IAAI;;aACtC;;;2BAEE,YAAY,SAAC,0BAA0B;2BACvC,YAAY,SAAC,2BAA2B;;;;IADzC,4CAAmF;;IACnF,4CAAqF;;;;;;;;;MC1BjF,YAAY,GAAgB;IAChC,oBAAoB;IACpB,0BAA0B;IAC1B,2BAA2B;IAC3B,yBAAyB;IACzB,2BAA2B;CAC5B;MAOY,uBAAuB;;;YALnC,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;gBACzC,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC;aACxB;;;;;;;;;;;;;;;;;;;;;;;"}
|