lib-portal-angular 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/components/tables/data-table.component.mjs +23 -9
- package/esm2022/lib/lib-portal-angular.module.mjs +4 -1
- package/esm2022/lib/service/refresh-service.service.mjs +23 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/lib-portal-angular.mjs +47 -12
- package/fesm2022/lib-portal-angular.mjs.map +1 -1
- package/lib/components/tables/data-table.component.d.ts +5 -1
- package/lib/service/refresh-service.service.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { AuthService } from '../../service/auth-service.service';
|
4
|
+
import { RefreshService } from '../../service/refresh-service.service';
|
4
5
|
import { IDataIndexPaginate, IPaginateResult } from './data-paginate.service';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
export declare class DataTableComponent implements OnInit, OnChanges, OnDestroy {
|
7
8
|
private cdr;
|
8
9
|
private authService;
|
10
|
+
private refreshService;
|
9
11
|
columns: {
|
10
12
|
label: string;
|
11
13
|
prop: string;
|
@@ -43,16 +45,18 @@ export declare class DataTableComponent implements OnInit, OnChanges, OnDestroy
|
|
43
45
|
pagedData: any[];
|
44
46
|
isLoading: boolean;
|
45
47
|
private destroy$;
|
48
|
+
private isInitialized;
|
46
49
|
labelStyle: {
|
47
50
|
'font-family': string;
|
48
51
|
'font-size': string;
|
49
52
|
color: string;
|
50
53
|
};
|
51
|
-
constructor(cdr: ChangeDetectorRef, authService: AuthService);
|
54
|
+
constructor(cdr: ChangeDetectorRef, authService: AuthService, refreshService: RefreshService);
|
52
55
|
ngOnInit(): void;
|
53
56
|
ngOnChanges(changes: SimpleChanges): void;
|
54
57
|
ngOnDestroy(): void;
|
55
58
|
fetchData(): void;
|
59
|
+
refreshData(): void;
|
56
60
|
onSort(column: string): void;
|
57
61
|
onPageChange(page: number): void;
|
58
62
|
onItemsPerPageChange(): void;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Observable } from 'rxjs';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class RefreshService {
|
4
|
+
private refreshSubject;
|
5
|
+
get refresh$(): Observable<void>;
|
6
|
+
refresh(): void;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RefreshService, never>;
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RefreshService>;
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -21,3 +21,4 @@ export * from './lib/lib-portal-angular.module';
|
|
21
21
|
export * from './lib/components/alert/notification.service';
|
22
22
|
export * from './lib/components/confirmation/confirmation.service';
|
23
23
|
export * from './lib/components/tables/data-paginate.service';
|
24
|
+
export * from './lib/service/refresh-service.service';
|