@abp/ng.core 7.0.0-rc.6 → 7.0.1

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,22 +1,24 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { ReplaySubject, Subscription } from 'rxjs';
3
3
  import { PermissionService } from '../services/permission.service';
4
+ import { QueueManager } from '../utils/queue';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class PermissionDirective implements OnDestroy, OnChanges, AfterViewInit {
6
7
  private templateRef;
7
8
  private vcRef;
8
9
  private permissionService;
9
10
  private cdRef;
11
+ queue: QueueManager;
10
12
  condition: string | undefined;
11
13
  runChangeDetection: boolean;
12
14
  subscription: Subscription;
13
15
  cdrSubject: ReplaySubject<void>;
14
16
  rendered: boolean;
15
- constructor(templateRef: TemplateRef<any>, vcRef: ViewContainerRef, permissionService: PermissionService, cdRef: ChangeDetectorRef);
17
+ constructor(templateRef: TemplateRef<any>, vcRef: ViewContainerRef, permissionService: PermissionService, cdRef: ChangeDetectorRef, queue: QueueManager);
16
18
  private check;
17
19
  ngOnDestroy(): void;
18
20
  ngOnChanges(): void;
19
21
  ngAfterViewInit(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionDirective, [{ optional: true; }, null, null, null]>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionDirective, [{ optional: true; }, null, null, null, null]>;
21
23
  static ɵdir: i0.ɵɵDirectiveDeclaration<PermissionDirective, "[abpPermission]", never, { "condition": "abpPermission"; "runChangeDetection": "abpPermissionRunChangeDetection"; }, {}, never, never, false, never>;
22
24
  }
@@ -5,6 +5,7 @@ export * from './localization.token';
5
5
  export * from './lodaer-delay.token';
6
6
  export * from './manage-profile.token';
7
7
  export * from './options.token';
8
+ export * from './queue.token';
8
9
  export * from './tenant-key.token';
9
10
  export * from './include-localization-resources.token';
10
11
  export * from './pipe-to-login.token';
@@ -0,0 +1,3 @@
1
+ import { QueueManager } from "../utils/queue";
2
+ import { InjectionToken } from "@angular/core";
3
+ export declare const QUEUE_MANAGER: InjectionToken<QueueManager>;
@@ -14,6 +14,7 @@ export * from './localization-utils';
14
14
  export * from './multi-tenancy-utils';
15
15
  export * from './number-utils';
16
16
  export * from './object-utils';
17
+ export * from './queue';
17
18
  export * from './route-utils';
18
19
  export * from './string-utils';
19
20
  export * from './tree-utils';
@@ -0,0 +1,14 @@
1
+ export interface QueueManager {
2
+ add(fn: () => void): void;
3
+ init(interval: number, stackSize: number): void;
4
+ }
5
+ export declare class DefaultQueueManager implements QueueManager {
6
+ private queue;
7
+ private isRunning;
8
+ private stack;
9
+ private interval;
10
+ private stackSize;
11
+ init(interval: number, stackSize: number): void;
12
+ add(fn: () => void): void;
13
+ private run;
14
+ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abp/ng.core",
3
- "version": "7.0.0-rc.6",
3
+ "version": "7.0.1",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/abpframework/abp.git"
8
8
  },
9
9
  "dependencies": {
10
- "@abp/utils": "~7.0.0-rc.6",
10
+ "@abp/utils": "~7.0.1",
11
11
  "angular-oauth2-oidc": "^15.0.1",
12
12
  "just-clone": "^6.1.1",
13
13
  "just-compare": "^1.4.0",