raise-common-lib 0.0.31 → 0.0.33

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.
@@ -1,17 +1,20 @@
1
- import { ChangeDetectorRef, OnInit } from "@angular/core";
1
+ import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from "@angular/core";
2
2
  import { ActivatedRoute, Router, RouterOutlet } from "@angular/router";
3
+ import { RouteReuseStrategy } from "@angular/router";
3
4
  import { CommonFunctionService } from "../../service/common-function.service";
4
- import { KeepAliveService } from "../../service/keep-alive.service";
5
5
  import { DrawerService } from "../../service/drawer.service";
6
- export declare class MultiTabComponent implements OnInit {
6
+ import { KeepAliveService } from "../../service/keep-alive.service";
7
+ export declare class MultiTabComponent implements OnInit, AfterViewInit, OnDestroy {
7
8
  router: Router;
8
9
  cf: CommonFunctionService;
9
10
  activatedRoute: ActivatedRoute;
10
- keepAlive: KeepAliveService;
11
11
  private ref;
12
12
  private drawer;
13
- constructor(router: Router, cf: CommonFunctionService, activatedRoute: ActivatedRoute, keepAlive: KeepAliveService, ref: ChangeDetectorRef, drawer: DrawerService);
13
+ private routeReuseStrategy;
14
+ constructor(router: Router, cf: CommonFunctionService, activatedRoute: ActivatedRoute, ref: ChangeDetectorRef, drawer: DrawerService, routeReuseStrategy: RouteReuseStrategy);
15
+ keepAlive: KeepAliveService;
14
16
  singleReuseUrls: string[];
17
+ private subscription;
15
18
  TAB_WIDTH: number;
16
19
  GAP_NORMAL: number;
17
20
  GAP_SMALL: number;
@@ -25,6 +28,7 @@ export declare class MultiTabComponent implements OnInit {
25
28
  onResize(event: any): void;
26
29
  ngOnInit(): void;
27
30
  ngAfterViewInit(): void;
31
+ ngOnDestroy(): void;
28
32
  setEllipsisTitle(title?: any): any;
29
33
  calcTabWidth(): {
30
34
  allWidth: any;
@@ -1,5 +1,6 @@
1
1
  import { RouteReuseStrategy, ActivatedRouteSnapshot, DetachedRouteHandle } from "@angular/router";
2
2
  export declare class KeepAliveService implements RouteReuseStrategy {
3
+ private baseComponent;
3
4
  setExcludeRoutes(routes: string[]): void;
4
5
  shouldDetach(route: ActivatedRouteSnapshot): boolean;
5
6
  store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
@@ -9,4 +10,5 @@ export declare class KeepAliveService implements RouteReuseStrategy {
9
10
  getRoutePath(route: any): string;
10
11
  clearCache(path: string): void;
11
12
  clearAllCache(): void;
13
+ setBaseComponent(component: any): void;
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"