adb-shared 1.0.16 → 1.0.19
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/adb-shared.umd.js +125 -55
- package/bundles/adb-shared.umd.js.map +1 -1
- package/esm2015/lib/components/adb-header/adb-header.component.js +2 -2
- package/esm2015/lib/components/pagers/infinite-scroll.component.js +30 -37
- package/esm2015/lib/components/pagers/pager-base.directive.js +42 -0
- package/esm2015/lib/components/pagers/pager.js +34 -0
- package/esm2015/lib/components/pagers/pagers.module.js +16 -6
- package/esm2015/public-api.js +2 -1
- package/fesm2015/adb-shared.js +109 -41
- package/fesm2015/adb-shared.js.map +1 -1
- package/lib/components/pagers/infinite-scroll.component.d.ts +9 -12
- package/lib/components/pagers/pager-base.directive.d.ts +14 -0
- package/lib/components/pagers/pager.d.ts +13 -0
- package/lib/components/pagers/pagers.module.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare abstract class PagerBaseDirective {
|
|
3
|
+
private static DEFAULT_LIMIT;
|
|
4
|
+
private static VISIBLE_PAGES;
|
|
5
|
+
protected static SKIP_RESOURCE: string;
|
|
6
|
+
totalCount: number;
|
|
7
|
+
pages: Array<number>;
|
|
8
|
+
limit: number;
|
|
9
|
+
amountOfPages: number;
|
|
10
|
+
currentPage: number;
|
|
11
|
+
protected calculatePages(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PagerBaseDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PagerBaseDirective, never, never, { "totalCount": "totalCount"; "limit": "limit"; }, {}, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { PagerBaseDirective } from './pager-base.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PagerComponent extends PagerBaseDirective implements OnInit, OnDestroy {
|
|
6
|
+
private activatedRoute;
|
|
7
|
+
private subscription;
|
|
8
|
+
constructor(activatedRoute: ActivatedRoute);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PagerComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PagerComponent, "adb-pager-nav", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./infinite-scroll.component";
|
|
3
|
+
import * as i2 from "./pager";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
3
6
|
export declare class PagersModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<PagersModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PagersModule, [typeof i1.InfiniteScrollComponent],
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PagersModule, [typeof i1.InfiniteScrollComponent, typeof i2.PagerComponent], [typeof i3.CommonModule, typeof i4.RouterModule], [typeof i1.InfiniteScrollComponent, typeof i2.PagerComponent]>;
|
|
6
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<PagersModule>;
|
|
7
10
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export * from './lib/directives/directives.module';
|
|
|
4
4
|
export * from './lib/directives/click-outside.directive';
|
|
5
5
|
export * from './lib/components/pagers/pagers.module';
|
|
6
6
|
export * from './lib/components/pagers/infinite-scroll.component';
|
|
7
|
+
export * from './lib/components/pagers/pager';
|