@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,51 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
export interface ITdNavNode {
|
3
|
-
label: string;
|
4
|
-
show?: boolean;
|
5
|
-
}
|
6
|
-
export interface ITdNavHeader extends ITdNavNode {
|
7
|
-
children: ITdLink[];
|
8
|
-
}
|
9
|
-
export interface ITdNavExpansion extends ITdNavHeader {
|
10
|
-
collapsable?: boolean;
|
11
|
-
}
|
12
|
-
export interface ITdLink extends ITdNavNode {
|
13
|
-
link: {
|
14
|
-
href: string;
|
15
|
-
openInNewTab?: boolean;
|
16
|
-
} | {
|
17
|
-
routerLink: string | string[];
|
18
|
-
openInNewTab?: boolean;
|
19
|
-
};
|
20
|
-
icon: {
|
21
|
-
fontSet?: string;
|
22
|
-
name: string;
|
23
|
-
};
|
24
|
-
}
|
25
|
-
export declare class TdNavLinksComponent {
|
26
|
-
private _uniqueId;
|
27
|
-
private _collapsedSet;
|
28
|
-
id: string;
|
29
|
-
/**
|
30
|
-
* Links to be rendered by component.
|
31
|
-
*/
|
32
|
-
links: Array<ITdNavExpansion | ITdNavHeader | ITdLink>;
|
33
|
-
/**
|
34
|
-
* Event trigger after a navigation click
|
35
|
-
*/
|
36
|
-
afterNavigation: EventEmitter<ITdLink>;
|
37
|
-
_linkClicked(link: ITdLink): void;
|
38
|
-
_href(link: ITdLink): string;
|
39
|
-
_routerLink(link: ITdLink): string | string[];
|
40
|
-
/**
|
41
|
-
* @param link
|
42
|
-
* Toggles expand/collapse state of expansion link.
|
43
|
-
* Only applied when `collapsable` is true
|
44
|
-
*/
|
45
|
-
_toggle(link: ITdNavExpansion): void;
|
46
|
-
/**
|
47
|
-
* @param link
|
48
|
-
* Returns true if the state of provided expansion link is collapsed.
|
49
|
-
*/
|
50
|
-
_isCollapsed(link: ITdNavExpansion): boolean;
|
51
|
-
}
|
package/nav-links/package.json
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"main": "../bundles/covalent-core-nav-links.umd.js",
|
3
|
-
"module": "../fesm2015/covalent-core-nav-links.js",
|
4
|
-
"es2015": "../fesm2015/covalent-core-nav-links.js",
|
5
|
-
"esm2015": "../esm2015/nav-links/covalent-core-nav-links.js",
|
6
|
-
"fesm2015": "../fesm2015/covalent-core-nav-links.js",
|
7
|
-
"typings": "covalent-core-nav-links.d.ts",
|
8
|
-
"metadata": "covalent-core-nav-links.metadata.json",
|
9
|
-
"sideEffects": false,
|
10
|
-
"name": "@covalent/core/nav-links"
|
11
|
-
}
|
package/notifications/README.md
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
# td-notification-count
|
2
|
-
|
3
|
-
`td-notification-count` element renders a number of notifications.
|
4
|
-
|
5
|
-
## API Summary
|
6
|
-
|
7
|
-
#### Inputs
|
8
|
-
|
9
|
-
+ color?: 'primary' | 'accent' | 'warn'
|
10
|
-
+ Sets the theme color of the notification tip.
|
11
|
-
+ Defaults to 'warn'
|
12
|
-
+ notifications?: number | boolean
|
13
|
-
+ Number for the notification count.
|
14
|
-
+ Shows number if the input is a positive number or its no count state if boolean 'true'.
|
15
|
-
+ positionX?: TdNotificationCountPositionX or 'before' | 'after' | 'center'
|
16
|
-
+ Sets the X position of the notification tip.
|
17
|
-
+ Defaults to 'after' if it has content, else 'center'.
|
18
|
-
+ positionY?: TdNotificationCountPositionY or 'top' | 'bottom' | 'center'
|
19
|
-
+ Sets the Y position of the notification tip. Defaults to 'top' if it has content, else 'center'.
|
20
|
-
+ limit?: number
|
21
|
-
+ Limit for the notification count.
|
22
|
-
+ When the notification count exceeds this limit, it will be displayed as limit+. Defaults to 99.
|
23
|
-
|
24
|
-
## Setup
|
25
|
-
|
26
|
-
Import the [CovalentNotificationsModule] in your NgModule:
|
27
|
-
|
28
|
-
```typescript
|
29
|
-
import { CovalentNotificationsModule } from '@covalent/core/notifications';
|
30
|
-
@NgModule({
|
31
|
-
imports: [
|
32
|
-
CovalentNotificationsModule,
|
33
|
-
...
|
34
|
-
],
|
35
|
-
...
|
36
|
-
})
|
37
|
-
export class MyModule {}
|
38
|
-
```
|
39
|
-
|
40
|
-
## Usage
|
41
|
-
|
42
|
-
Example for HTML count usage:
|
43
|
-
|
44
|
-
```html
|
45
|
-
<td-notification-count positionX="after" positionY="top" [notifications]="1">
|
46
|
-
<mat-icon>notifications</mat-icon>
|
47
|
-
</td-notification-count>
|
48
|
-
```
|
49
|
-
|
50
|
-
Example for HTML no count usage:
|
51
|
-
|
52
|
-
```html
|
53
|
-
<td-notification-count positionX="after" positionY="top" [notifications]="true">
|
54
|
-
<mat-icon>notifications</mat-icon>
|
55
|
-
</td-notification-count>
|
56
|
-
```
|
57
|
-
|
58
|
-
Example for HTML stand alone count usage:
|
59
|
-
|
60
|
-
```html
|
61
|
-
<td-notification-count positionX="center" positionY="center" [notifications]="1">
|
62
|
-
</td-notification-count>
|
63
|
-
```
|
64
|
-
Example for HTML limit usage:
|
65
|
-
|
66
|
-
```html
|
67
|
-
<td-notification-count [notifications]="100" [limit]=50>
|
68
|
-
</td-notification-count>
|
69
|
-
```
|
@@ -1,27 +0,0 @@
|
|
1
|
-
@import '../common/styles/variables';
|
2
|
-
@import '../common/styles/elevation';
|
3
|
-
@import '../common/styles/theme-functions';
|
4
|
-
|
5
|
-
@mixin td-notification-count-theme($theme) {
|
6
|
-
$primary: map-get($theme, primary);
|
7
|
-
$accent: map-get($theme, accent);
|
8
|
-
$warn: map-get($theme, warn);
|
9
|
-
$foreground: map-get($theme, foreground);
|
10
|
-
$background: map-get($theme, background);
|
11
|
-
|
12
|
-
.td-notification-count {
|
13
|
-
@include mat-elevation(1);
|
14
|
-
&.mat-warn {
|
15
|
-
background-color: mat-color($warn);
|
16
|
-
color: mat-color($warn, default-contrast);
|
17
|
-
}
|
18
|
-
&.mat-primary {
|
19
|
-
background-color: mat-color($primary);
|
20
|
-
color: mat-color($primary, default-contrast);
|
21
|
-
}
|
22
|
-
&.mat-accent {
|
23
|
-
background-color: mat-color($accent);
|
24
|
-
color: mat-color($accent, default-contrast);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"CovalentNotificationsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":12}],"declarations":[[{"__symbolic":"reference","name":"TdNotificationCountComponent"}]],"exports":[[{"__symbolic":"reference","name":"TdNotificationCountComponent"}]]}]}],"members":{}},"TdNotificationCountPositionY":{"Top":"top","Bottom":"bottom","Center":"center"},"TdNotificationCountPositionX":{"Before":"before","After":"after","Center":"center"},"DEFAULT_NOTIFICATION_LIMIT":99,"TdNotificationCountComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"selector":"td-notification-count","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":28,"character":19},"member":"OnPush"},"template":"<div #content class=\"td-notification-content\">\n <ng-content></ng-content>\n</div>\n<div\n *ngIf=\"show\"\n class=\"td-notification-count mat-{{ color }}\"\n [class.td-notification-top]=\"positionY === 'top'\"\n [class.td-notification-bottom]=\"positionY === 'bottom'\"\n [class.td-notification-before]=\"positionX === 'before'\"\n [class.td-notification-after]=\"positionX === 'after'\"\n [class.td-notification-center-y]=\"positionY === 'center'\"\n [class.td-notification-center-x]=\"positionX === 'center'\"\n [class.td-notification-no-count]=\"noCount\"\n>\n {{ noCount ? '' : notificationsDisplay }}\n</div>\n","styles":[":host{display:block;height:40px;min-width:40px;position:relative;text-align:center}:host.td-notification-hidden{min-width:0}.td-notification-count{border-radius:50%;font-size:10px;font-weight:600;height:20px;line-height:21px;position:absolute;width:20px;z-index:1}.td-notification-count.td-notification-center-x{left:0;margin-left:auto;margin-right:auto;right:0}.td-notification-count.td-notification-center-y{bottom:0;margin-bottom:auto;margin-top:auto;top:0}.td-notification-count.td-notification-top{top:0}.td-notification-count.td-notification-bottom{bottom:0}.td-notification-count.td-notification-before{left:0}.td-notification-count.td-notification-after{right:0}.td-notification-count.td-notification-no-count{height:8px;width:8px}.td-notification-count.td-notification-no-count.td-notification-top{top:8px}.td-notification-count.td-notification-no-count.td-notification-bottom{bottom:8px}.td-notification-count.td-notification-no-count.td-notification-before{left:8px}.td-notification-count.td-notification-no-count.td-notification-after{right:8px}::ng-deep [dir=rtl] .td-notification-count.td-notification-before{left:auto;right:0}::ng-deep [dir=rtl] .td-notification-count.td-notification-after{left:0;right:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-no-count.td-notification-before{left:auto;right:8px}::ng-deep [dir=rtl] .td-notification-count.td-notification-no-count.td-notification-after{left:8px;right:auto}.td-notification-content,.td-notification-content ::ng-deep>*{line-height:40px}"]}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":39,"character":3},"arguments":["content",{"static":true}]}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"positionX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"positionY":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":65,"character":3}}]}],"notifications":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":3}}]}],"limit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":3}}]}],"hideHost":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":91,"character":3},"arguments":["class.td-notification-hidden"]}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"_hasContent":[{"__symbolic":"method"}]}}},"origins":{"CovalentNotificationsModule":"./notifications.module","TdNotificationCountPositionY":"./notification-count.component","TdNotificationCountPositionX":"./notification-count.component","DEFAULT_NOTIFICATION_LIMIT":"./notification-count.component","TdNotificationCountComponent":"./notification-count.component"},"importAs":"@covalent/core/notifications"}
|
package/notifications/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './public-api';
|
@@ -1,74 +0,0 @@
|
|
1
|
-
import { ElementRef, AfterContentInit } from '@angular/core';
|
2
|
-
export declare enum TdNotificationCountPositionY {
|
3
|
-
Top = "top",
|
4
|
-
Bottom = "bottom",
|
5
|
-
Center = "center"
|
6
|
-
}
|
7
|
-
export declare enum TdNotificationCountPositionX {
|
8
|
-
Before = "before",
|
9
|
-
After = "after",
|
10
|
-
Center = "center"
|
11
|
-
}
|
12
|
-
export declare const DEFAULT_NOTIFICATION_LIMIT: number;
|
13
|
-
export declare class TdNotificationCountComponent implements AfterContentInit {
|
14
|
-
private _notifications;
|
15
|
-
private _positionY;
|
16
|
-
private _positionX;
|
17
|
-
private _limit;
|
18
|
-
/**
|
19
|
-
* Div content wrapper of `ng-content`.
|
20
|
-
*/
|
21
|
-
content: ElementRef;
|
22
|
-
/**
|
23
|
-
* color?: "primary" | "accent" | "warn"
|
24
|
-
* Sets the theme color of the notification tip. Defaults to "warn"
|
25
|
-
*/
|
26
|
-
color: 'primary' | 'accent' | 'warn';
|
27
|
-
/**
|
28
|
-
* positionX?: TdNotificationCountPositionX or "before" | "after" | "center"
|
29
|
-
* Sets the X position of the notification tip.
|
30
|
-
* Defaults to "after" if it has content, else 'center'.
|
31
|
-
*/
|
32
|
-
set positionX(positionX: TdNotificationCountPositionX);
|
33
|
-
get positionX(): TdNotificationCountPositionX;
|
34
|
-
/**
|
35
|
-
* positionY?: TdNotificationCountPositionY or "top" | "bottom" | "center"
|
36
|
-
* Sets the Y position of the notification tip.
|
37
|
-
* Defaults to "top" if it has content, else 'center'.
|
38
|
-
*/
|
39
|
-
set positionY(positionY: TdNotificationCountPositionY);
|
40
|
-
get positionY(): TdNotificationCountPositionY;
|
41
|
-
/**
|
42
|
-
* notifications?: number | boolean
|
43
|
-
* Number for the notification count. Shows component only if the input is a positive number or 'true'
|
44
|
-
*/
|
45
|
-
set notifications(notifications: number | boolean);
|
46
|
-
/**
|
47
|
-
* limit?: number
|
48
|
-
* Limit for notification count. If the number of notifications is greater than limit, then + will be added. Defaults to 99.
|
49
|
-
*/
|
50
|
-
set limit(limit: number);
|
51
|
-
get hideHost(): boolean;
|
52
|
-
/**
|
53
|
-
* Sets the component in its 'noCount' state if [notifications] is a boolean 'true'.
|
54
|
-
* Makes the notification tip show without a count.
|
55
|
-
*/
|
56
|
-
get noCount(): string | boolean;
|
57
|
-
/**
|
58
|
-
* Notification display string when a count is available.
|
59
|
-
* Anything over 99 gets set as 99+
|
60
|
-
*/
|
61
|
-
get notificationsDisplay(): string;
|
62
|
-
/**
|
63
|
-
* Shows notification tip only when [notifications] is true or a positive integer.
|
64
|
-
*/
|
65
|
-
get show(): boolean;
|
66
|
-
/**
|
67
|
-
* Check if [positionX] and [positionY] have been set as inputs, else use defaults depending on component content.
|
68
|
-
*/
|
69
|
-
ngAfterContentInit(): void;
|
70
|
-
/**
|
71
|
-
* Method to check if element has any kind of content (elements or text)
|
72
|
-
*/
|
73
|
-
private _hasContent;
|
74
|
-
}
|
@@ -1,90 +0,0 @@
|
|
1
|
-
$td-notification-size: 20px !default;
|
2
|
-
$td-notification-content-size: 40px !default;
|
3
|
-
|
4
|
-
:host {
|
5
|
-
position: relative;
|
6
|
-
display: block;
|
7
|
-
text-align: center;
|
8
|
-
min-width: $td-notification-content-size;
|
9
|
-
height: $td-notification-content-size;
|
10
|
-
&.td-notification-hidden {
|
11
|
-
min-width: 0;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
.td-notification-count {
|
15
|
-
line-height: $td-notification-size + 1;
|
16
|
-
width: $td-notification-size;
|
17
|
-
height: $td-notification-size;
|
18
|
-
position: absolute;
|
19
|
-
font-size: 10px;
|
20
|
-
font-weight: 600;
|
21
|
-
border-radius: 50%;
|
22
|
-
z-index: 1;
|
23
|
-
&.td-notification-center-x {
|
24
|
-
margin-left: auto;
|
25
|
-
margin-right: auto;
|
26
|
-
left: 0;
|
27
|
-
right: 0;
|
28
|
-
}
|
29
|
-
&.td-notification-center-y {
|
30
|
-
margin-top: auto;
|
31
|
-
margin-bottom: auto;
|
32
|
-
top: 0;
|
33
|
-
bottom: 0;
|
34
|
-
}
|
35
|
-
&.td-notification-top {
|
36
|
-
top: 0;
|
37
|
-
}
|
38
|
-
&.td-notification-bottom {
|
39
|
-
bottom: 0;
|
40
|
-
}
|
41
|
-
&.td-notification-before {
|
42
|
-
left: 0;
|
43
|
-
}
|
44
|
-
&.td-notification-after {
|
45
|
-
right: 0;
|
46
|
-
}
|
47
|
-
&.td-notification-no-count {
|
48
|
-
width: 8px;
|
49
|
-
height: 8px;
|
50
|
-
&.td-notification-top {
|
51
|
-
top: 8px;
|
52
|
-
}
|
53
|
-
&.td-notification-bottom {
|
54
|
-
bottom: 8px;
|
55
|
-
}
|
56
|
-
&.td-notification-before {
|
57
|
-
left: 8px;
|
58
|
-
}
|
59
|
-
&.td-notification-after {
|
60
|
-
right: 8px;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
::ng-deep [dir='rtl'] & {
|
64
|
-
&.td-notification-before {
|
65
|
-
right: 0;
|
66
|
-
left: auto;
|
67
|
-
}
|
68
|
-
&.td-notification-after {
|
69
|
-
left: 0;
|
70
|
-
right: auto;
|
71
|
-
}
|
72
|
-
&.td-notification-no-count {
|
73
|
-
&.td-notification-before {
|
74
|
-
right: 8px;
|
75
|
-
left: auto;
|
76
|
-
}
|
77
|
-
&.td-notification-after {
|
78
|
-
left: 8px;
|
79
|
-
right: auto;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
.td-notification-content {
|
86
|
-
&,
|
87
|
-
::ng-deep > * {
|
88
|
-
line-height: $td-notification-content-size;
|
89
|
-
}
|
90
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"main": "../bundles/covalent-core-notifications.umd.js",
|
3
|
-
"module": "../fesm2015/covalent-core-notifications.js",
|
4
|
-
"es2015": "../fesm2015/covalent-core-notifications.js",
|
5
|
-
"esm2015": "../esm2015/notifications/covalent-core-notifications.js",
|
6
|
-
"fesm2015": "../fesm2015/covalent-core-notifications.js",
|
7
|
-
"typings": "covalent-core-notifications.d.ts",
|
8
|
-
"metadata": "covalent-core-notifications.metadata.json",
|
9
|
-
"sideEffects": false,
|
10
|
-
"name": "@covalent/core/notifications"
|
11
|
-
}
|
package/paging/README.md
DELETED
@@ -1,141 +0,0 @@
|
|
1
|
-
# td-paging-bar
|
2
|
-
|
3
|
-
`td-paging-bar` element generates a paging bar.
|
4
|
-
|
5
|
-
The `(change)` event throws an event with the following interface:
|
6
|
-
|
7
|
-
```typescript
|
8
|
-
export interface IPageChangeEvent {
|
9
|
-
page: number;
|
10
|
-
maxPage: number;
|
11
|
-
pageSize: number;
|
12
|
-
total: number;
|
13
|
-
fromRow: number;
|
14
|
-
toRow: number;
|
15
|
-
}
|
16
|
-
```
|
17
|
-
|
18
|
-
## API Summary
|
19
|
-
|
20
|
-
#### Inputs
|
21
|
-
|
22
|
-
+ initialPage?: number
|
23
|
-
+ Sets starting page for the paging bar. Defaults to 1.
|
24
|
-
+ pagingLinkCount?: number
|
25
|
-
+ Amount of page navigation links for the paging bar. Defaults to 0
|
26
|
-
+ firstLast?: boolean
|
27
|
-
+ Shows or hides the first and last page buttons of the paging bar. Defaults to 'false'
|
28
|
-
+ pageSize?: number
|
29
|
-
+ Selected page size for the pagination. Defaults to 50.
|
30
|
-
+ total: number
|
31
|
-
+ Total rows for the pagination.
|
32
|
-
|
33
|
-
#### Events
|
34
|
-
|
35
|
-
+ change: function($event: IPageChangeEvent)
|
36
|
-
+ Method to be executed when page size changes or any button is clicked in the paging bar.
|
37
|
-
|
38
|
-
#### Methods
|
39
|
-
|
40
|
-
+ navigateToPage: function(page: number)
|
41
|
-
+ Navigates to a specific valid page. Returns 'true' if page is valid, else 'false'.
|
42
|
-
|
43
|
-
## Setup
|
44
|
-
|
45
|
-
Import the [CovalentPagingModule] in your NgModule:
|
46
|
-
|
47
|
-
```typescript
|
48
|
-
import { CovalentPagingModule } from '@covalent/core/paging';
|
49
|
-
@NgModule({
|
50
|
-
imports: [
|
51
|
-
CovalentPagingModule,
|
52
|
-
...
|
53
|
-
],
|
54
|
-
...
|
55
|
-
})
|
56
|
-
export class MyModule {}
|
57
|
-
```
|
58
|
-
|
59
|
-
## Usage
|
60
|
-
|
61
|
-
Example with page links for navigation:
|
62
|
-
|
63
|
-
```html
|
64
|
-
<td-paging-bar #pagingBar
|
65
|
-
[pageLinkCount]="5"
|
66
|
-
[pageSize]="100"
|
67
|
-
[total]="1345"
|
68
|
-
(change)="change($event)">
|
69
|
-
{{pagingBar.range}} <span hide-xs>of {{pagingBar.total}}</span>
|
70
|
-
</td-paging-bar>
|
71
|
-
```
|
72
|
-
|
73
|
-
Example with material select for dynamic page sizes:
|
74
|
-
|
75
|
-
```html
|
76
|
-
<td-paging-bar #pagingBar
|
77
|
-
[pageSize]="pageSize"
|
78
|
-
[total]="1345"
|
79
|
-
(change)="change($event)">
|
80
|
-
<span hide-xs>Rows per page:</span>
|
81
|
-
<mat-select [style.width.px]="50" [(ngModel)]="pageSize">
|
82
|
-
<mat-option *ngFor="let size of [50,100,200,500,100]" [value]="size">
|
83
|
-
{{size}}
|
84
|
-
</mat-option>
|
85
|
-
</mat-select>
|
86
|
-
{{pagingBar.range}} <span hide-xs>of {{pagingBar.total}}</span>
|
87
|
-
</td-paging-bar>
|
88
|
-
```
|
89
|
-
|
90
|
-
Example with material input for navigation:
|
91
|
-
|
92
|
-
```html
|
93
|
-
<td-paging-bar #pagingBar
|
94
|
-
[pageSize]="100"
|
95
|
-
[total]="1345"
|
96
|
-
(change)="change($event)">
|
97
|
-
<p hide-xs>Go to:</p>
|
98
|
-
<mat-form-field>
|
99
|
-
<input #goToInput
|
100
|
-
matInput
|
101
|
-
type="number"
|
102
|
-
[min]="1"
|
103
|
-
[max]="pagingBar.maxPage"
|
104
|
-
[value]="pagingBar.page"
|
105
|
-
(blur)="goToInput.value = pagingBar.page"
|
106
|
-
(keyup.enter)="pagingBar.navigateToPage(goToInput.value); goToInput.value = pagingBar.page"/>
|
107
|
-
</mat-form-field>
|
108
|
-
{{pagingBar.range}} <span hide-xs>of {{pagingBar.total}}</span>
|
109
|
-
|
110
|
-
</td-paging-bar>
|
111
|
-
```
|
112
|
-
|
113
|
-
Example with dynamic page sizes, input and page links for navigation:
|
114
|
-
|
115
|
-
```html
|
116
|
-
<td-paging-bar #pagingBar
|
117
|
-
[firstLast]="true"
|
118
|
-
[pageLinkCount]="5"
|
119
|
-
[pageSize]="pageSize"
|
120
|
-
[total]="1345"
|
121
|
-
(change)="change($event)">
|
122
|
-
<span hide-xs>Rows per page:</span>
|
123
|
-
<mat-select [style.width.px]="50" [(ngModel)]="pageSize">
|
124
|
-
<mat-option *ngFor="let size of [50,100,200,500,100]" [value]="size">
|
125
|
-
{{size}}
|
126
|
-
</mat-option>
|
127
|
-
</mat-select>
|
128
|
-
<p hide-xs>Go to:</p>
|
129
|
-
<mat-form-field>
|
130
|
-
<input #goToInput
|
131
|
-
matInput
|
132
|
-
type="number"
|
133
|
-
[min]="1"
|
134
|
-
[max]="pagingBar.maxPage"
|
135
|
-
[value]="pagingBar.page"
|
136
|
-
(blur)="goToInput.value = pagingBar.page"
|
137
|
-
(keyup.enter)="pagingBar.navigateToPage(goToInput.value); goToInput.value = pagingBar.page"/>
|
138
|
-
</mat-form-field>
|
139
|
-
{{pagingBar.range}} <span hide-xs>of {{pagingBar.total}}</span>
|
140
|
-
</td-paging-bar>
|
141
|
-
```
|
@@ -1,26 +0,0 @@
|
|
1
|
-
@import '../common/styles/theme-functions';
|
2
|
-
@import '../common/styles/typography-functions';
|
3
|
-
|
4
|
-
@mixin td-paging-bar-typography($config) {
|
5
|
-
.td-paging-bar {
|
6
|
-
font: {
|
7
|
-
family: td-font-family($config);
|
8
|
-
size: td-font-size($config, caption);
|
9
|
-
}
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
@mixin td-paging-bar-theme($theme) {
|
14
|
-
$primary: map-get($theme, primary);
|
15
|
-
$accent: map-get($theme, accent);
|
16
|
-
$warn: map-get($theme, warn);
|
17
|
-
$background: map-get($theme, background);
|
18
|
-
$foreground: map-get($theme, foreground);
|
19
|
-
|
20
|
-
td-paging-bar {
|
21
|
-
&,
|
22
|
-
& mat-select .mat-select-value {
|
23
|
-
color: mat-color($foreground, secondary-text);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"CovalentPagingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":12},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":10,"character":26},{"__symbolic":"reference","module":"@angular/material/button","name":"MatButtonModule","line":10,"character":41}],"declarations":[{"__symbolic":"reference","name":"TdPagingBarComponent"}],"exports":[{"__symbolic":"reference","name":"TdPagingBarComponent"}]}]}],"members":{}},"IPageChangeEvent":{"__symbolic":"interface"},"TdPagingBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":19},"member":"OnPush"},"selector":"td-paging-bar","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","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}"]}]}],"members":{"firstLast":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"initialPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"pageLinkCount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3},"arguments":["pageLinkCount"]}]}],"pageSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":72,"character":3},"arguments":["pageSize"]}]}],"total":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":3},"arguments":["total"]}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":137,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":146,"character":15}}],null],"parameters":[{"__symbolic":"reference","module":"@angular/cdk/bidi","name":"Dir","line":146,"character":40},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":146,"character":73}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateToPage":[{"__symbolic":"method"}],"firstPage":[{"__symbolic":"method"}],"prevPage":[{"__symbolic":"method"}],"nextPage":[{"__symbolic":"method"}],"lastPage":[{"__symbolic":"method"}],"isMinPage":[{"__symbolic":"method"}],"isMaxPage":[{"__symbolic":"method"}],"_calculateRows":[{"__symbolic":"method"}],"_calculatePageLinks":[{"__symbolic":"method"}],"_handleOnChange":[{"__symbolic":"method"}]}}},"origins":{"CovalentPagingModule":"./paging.module","IPageChangeEvent":"./paging-bar.component","TdPagingBarComponent":"./paging-bar.component"},"importAs":"@covalent/core/paging"}
|
package/paging/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './public-api';
|
package/paging/package.json
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"main": "../bundles/covalent-core-paging.umd.js",
|
3
|
-
"module": "../fesm2015/covalent-core-paging.js",
|
4
|
-
"es2015": "../fesm2015/covalent-core-paging.js",
|
5
|
-
"esm2015": "../esm2015/paging/covalent-core-paging.js",
|
6
|
-
"fesm2015": "../fesm2015/covalent-core-paging.js",
|
7
|
-
"typings": "covalent-core-paging.d.ts",
|
8
|
-
"metadata": "covalent-core-paging.metadata.json",
|
9
|
-
"sideEffects": false,
|
10
|
-
"name": "@covalent/core/paging"
|
11
|
-
}
|