raise-common-lib 0.0.37 → 0.0.39

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.
@@ -10,6 +10,7 @@ export declare class DrawerComponent {
10
10
  config: DrawerConfig;
11
11
  useTransition: "yes" | "no";
12
12
  $isOpened: BehaviorSubject<boolean>;
13
+ showToolbarContainer: boolean;
13
14
  private componentRefMap;
14
15
  constructor(resolver: ComponentFactoryResolver, service: DrawerService);
15
16
  private createDynamicComponent;
@@ -18,6 +19,7 @@ export declare class DrawerComponent {
18
19
  private getToolbarElement;
19
20
  private setToolbarElement;
20
21
  show<T>(component: new (...args: any[]) => T, config: DrawerConfig, data: Record<string, any>): T;
22
+ hide(): void;
21
23
  back(): void;
22
24
  deleteCache(cacheKey: string): void;
23
25
  onRouteChange(): void;
@@ -14,6 +14,7 @@ export declare class MultiTabComponent implements OnInit, AfterViewInit, OnDestr
14
14
  constructor(router: Router, cf: CommonFunctionService, activatedRoute: ActivatedRoute, ref: ChangeDetectorRef, drawer: DrawerService, routeReuseStrategy: RouteReuseStrategy);
15
15
  keepAlive: KeepAliveService;
16
16
  singleReuseUrls: string[];
17
+ noGenerateTabUrls: string[];
17
18
  private subscription;
18
19
  TAB_WIDTH: number;
19
20
  GAP_NORMAL: number;
@@ -14,12 +14,19 @@ export declare type DrawerShowInstance<T> = {
14
14
  data?: any;
15
15
  }>;
16
16
  };
17
+ export declare type DrawerChangeEvent = {
18
+ type: "show" | "hide" | "complete";
19
+ cancel: () => void;
20
+ detail: Record<string, any>;
21
+ };
22
+ export declare type DrawerChangeListener = (event: DrawerChangeEvent) => void;
17
23
  export declare class DrawerService implements OnDestroy {
18
24
  private router;
19
25
  private uniqueDrawerComponent;
20
26
  private resultPromiseResolveMap;
21
27
  private openedSubscription;
22
28
  private routerSubscription;
29
+ private ListenChangeCbs;
23
30
  constructor(router: Router);
24
31
  readonly cacheKey: string;
25
32
  ngOnDestroy(): void;
@@ -30,4 +37,6 @@ export declare class DrawerService implements OnDestroy {
30
37
  hide(): void;
31
38
  complete(data?: any): void;
32
39
  deleteCache(cacheKey: string): void;
40
+ onChange(callback: DrawerChangeListener): () => void;
41
+ private checkChange;
33
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"