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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lib-portal-angular",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0"
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';