@abp/ng.core 7.0.0 → 7.1.0-rc.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.
Files changed (37) hide show
  1. package/esm2020/lib/clients/http.client.mjs +34 -0
  2. package/esm2020/lib/clients/index.mjs +2 -0
  3. package/esm2020/lib/core.module.mjs +7 -1
  4. package/esm2020/lib/directives/permission.directive.mjs +11 -6
  5. package/esm2020/lib/providers/include-localization-resources.provider.mjs +2 -2
  6. package/esm2020/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +1 -1
  7. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +1 -1
  8. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +1 -1
  9. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +2 -2
  10. package/esm2020/lib/proxy/volo/abp/http/modeling/models.mjs +1 -1
  11. package/esm2020/lib/proxy/volo/abp/localization/models.mjs +1 -1
  12. package/esm2020/lib/services/localization.service.mjs +2 -2
  13. package/esm2020/lib/tokens/http-context.token.mjs +3 -0
  14. package/esm2020/lib/tokens/include-localization-resources.token.mjs +2 -2
  15. package/esm2020/lib/tokens/index.mjs +3 -1
  16. package/esm2020/lib/tokens/queue.token.mjs +3 -0
  17. package/esm2020/lib/utils/index.mjs +2 -1
  18. package/esm2020/lib/utils/queue.mjs +41 -0
  19. package/esm2020/public-api.mjs +2 -1
  20. package/fesm2015/abp-ng.core.mjs +91 -8
  21. package/fesm2015/abp-ng.core.mjs.map +1 -1
  22. package/fesm2020/abp-ng.core.mjs +90 -7
  23. package/fesm2020/abp-ng.core.mjs.map +1 -1
  24. package/lib/clients/http.client.d.ts +11 -0
  25. package/lib/clients/index.d.ts +1 -0
  26. package/lib/directives/permission.directive.d.ts +4 -2
  27. package/lib/providers/include-localization-resources.provider.d.ts +1 -1
  28. package/lib/proxy/volo/abp/http/modeling/models.d.ts +1 -1
  29. package/lib/proxy/volo/abp/localization/models.d.ts +1 -0
  30. package/lib/tokens/http-context.token.d.ts +2 -0
  31. package/lib/tokens/include-localization-resources.token.d.ts +1 -1
  32. package/lib/tokens/index.d.ts +2 -0
  33. package/lib/tokens/queue.token.d.ts +3 -0
  34. package/lib/utils/index.d.ts +1 -0
  35. package/lib/utils/queue.d.ts +14 -0
  36. package/package.json +2 -2
  37. package/public-api.d.ts +1 -0
@@ -0,0 +1,11 @@
1
+ import { HttpClient, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ExternalHttpClient extends HttpClient {
5
+ #private;
6
+ request(first: string | HttpRequest<any>, url?: string, options?: RequestOptions): Observable<any>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExternalHttpClient, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExternalHttpClient>;
9
+ }
10
+ declare type RequestOptions = Parameters<HttpClient['request']>[2];
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './http.client';
@@ -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
  }
@@ -1,2 +1,2 @@
1
- import { Provider } from "@angular/core";
1
+ import { Provider } from '@angular/core';
2
2
  export declare const IncludeLocalizationResourcesProvider: Provider;
@@ -21,7 +21,7 @@ export interface ControllerApiDescriptionModel {
21
21
  controllerName?: string;
22
22
  controllerGroupName?: string;
23
23
  isRemoteService: boolean;
24
- integrationService: boolean;
24
+ isIntegrationService: boolean;
25
25
  apiVersion?: string;
26
26
  type?: string;
27
27
  interfaces: ControllerInterfaceApiDescriptionModel[];
@@ -2,5 +2,6 @@ export interface LanguageInfo {
2
2
  cultureName?: string;
3
3
  uiCultureName?: string;
4
4
  displayName?: string;
5
+ twoLetterISOLanguageName?: string;
5
6
  flagIcon?: string;
6
7
  }
@@ -0,0 +1,2 @@
1
+ import { HttpContextToken } from '@angular/common/http';
2
+ export declare const IS_EXTERNAL_REQUEST: HttpContextToken<boolean>;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from "@angular/core";
1
+ import { InjectionToken } from '@angular/core';
2
2
  export declare const INCUDE_LOCALIZATION_RESOURCES_TOKEN: InjectionToken<boolean>;
@@ -5,8 +5,10 @@ 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';
11
12
  export * from './set-token-response-to-storage.token';
12
13
  export * from './check-authentication-state';
14
+ export * from './http-context.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",
3
+ "version": "7.1.0-rc.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",
10
+ "@abp/utils": "~7.1.0-rc.1",
11
11
  "angular-oauth2-oidc": "^15.0.1",
12
12
  "just-clone": "^6.1.1",
13
13
  "just-compare": "^1.4.0",
package/public-api.d.ts CHANGED
@@ -22,3 +22,4 @@ export * from './lib/tokens';
22
22
  export * from './lib/utils';
23
23
  export * from './lib/validators';
24
24
  export * from './lib/interceptors';
25
+ export * from './lib/clients';