@abp/ng.core 7.1.0-rc.2 → 7.1.0
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.
- package/esm2020/lib/abstracts/auth-response.model.mjs +2 -0
- package/esm2020/lib/abstracts/auth.service.mjs +6 -3
- package/esm2020/lib/abstracts/index.mjs +2 -1
- package/esm2020/lib/services/config-state.service.mjs +8 -13
- package/esm2020/lib/services/index.mjs +2 -1
- package/esm2020/lib/services/local-storage.service.mjs +32 -0
- package/esm2020/lib/services/session-state.service.mjs +9 -6
- package/esm2020/testing/lib/core-testing.module.mjs +6 -2
- package/fesm2015/abp-ng.core-testing.mjs +5 -1
- package/fesm2015/abp-ng.core-testing.mjs.map +1 -1
- package/fesm2015/abp-ng.core.mjs +57 -28
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core-testing.mjs +5 -1
- package/fesm2020/abp-ng.core-testing.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +49 -18
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/abstracts/auth-response.model.d.ts +10 -0
- package/lib/abstracts/auth.service.d.ts +4 -1
- package/lib/abstracts/index.d.ts +1 -0
- package/lib/services/config-state.service.d.ts +3 -5
- package/lib/services/index.d.ts +1 -0
- package/lib/services/local-storage.service.d.ts +13 -0
- package/lib/services/session-state.service.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
1
2
|
import { Params } from '@angular/router';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { LoginParams } from '../models/auth';
|
|
5
|
+
import { AbpAuthResponse } from './auth-response.model';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
/**
|
|
6
8
|
* Abstract service for Authentication.
|
|
7
9
|
*/
|
|
8
10
|
export declare class AuthService implements IAuthService {
|
|
9
|
-
constructor();
|
|
10
11
|
private warningMessage;
|
|
11
12
|
init(): Promise<any>;
|
|
12
13
|
login(params: LoginParams): Observable<any>;
|
|
@@ -14,6 +15,7 @@ export declare class AuthService implements IAuthService {
|
|
|
14
15
|
navigateToLogin(queryParams?: Params): void;
|
|
15
16
|
get isInternalAuth(): boolean;
|
|
16
17
|
get isAuthenticated(): boolean;
|
|
18
|
+
loginUsingGrant(grantType: string, parameters: object, headers?: HttpHeaders): Promise<AbpAuthResponse>;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
18
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
19
21
|
}
|
|
@@ -24,4 +26,5 @@ export interface IAuthService {
|
|
|
24
26
|
logout(queryParams?: Params): Observable<any>;
|
|
25
27
|
navigateToLogin(queryParams?: Params): void;
|
|
26
28
|
login(params: LoginParams): Observable<any>;
|
|
29
|
+
loginUsingGrant(grantType: string, parameters: object, headers?: HttpHeaders): Promise<AbpAuthResponse>;
|
|
27
30
|
}
|
package/lib/abstracts/index.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { AbpApplicationConfigurationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service';
|
|
3
|
-
import { AbpApplicationLocalizationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service';
|
|
4
2
|
import { ApplicationConfigurationDto, ApplicationGlobalFeatureConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class ConfigStateService {
|
|
5
|
+
private readonly store;
|
|
6
|
+
private readonly includeLocalizationResources;
|
|
7
7
|
private abpConfigService;
|
|
8
8
|
private abpApplicationLocalizationService;
|
|
9
|
-
private readonly includeLocalizationResources;
|
|
10
|
-
private readonly store;
|
|
11
9
|
get createOnUpdateStream(): <Slice>(selector: (state: {
|
|
12
10
|
localization?: {
|
|
13
11
|
values?: {
|
|
@@ -178,7 +176,7 @@ export declare class ConfigStateService {
|
|
|
178
176
|
};
|
|
179
177
|
}) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
|
|
180
178
|
private updateSubject;
|
|
181
|
-
constructor(
|
|
179
|
+
constructor();
|
|
182
180
|
private initUpdateStream;
|
|
183
181
|
private getLocalizationAndCombineWithAppState;
|
|
184
182
|
private getlocalizationResource;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AbpLocalStorageService implements Storage {
|
|
3
|
+
constructor();
|
|
4
|
+
[name: string]: any;
|
|
5
|
+
get length(): number;
|
|
6
|
+
clear(): void;
|
|
7
|
+
getItem(key: string): string;
|
|
8
|
+
key(index: number): string;
|
|
9
|
+
removeItem(key: string): void;
|
|
10
|
+
setItem(key: string, value: string): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbpLocalStorageService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AbpLocalStorageService>;
|
|
13
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { CurrentTenantDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
|
|
2
2
|
import { ConfigStateService } from './config-state.service';
|
|
3
|
+
import { AbpLocalStorageService } from './local-storage.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SessionStateService {
|
|
5
6
|
private configState;
|
|
7
|
+
private localStorageService;
|
|
6
8
|
private readonly store;
|
|
7
9
|
private updateLocalStorage;
|
|
8
|
-
constructor(configState: ConfigStateService);
|
|
10
|
+
constructor(configState: ConfigStateService, localStorageService: AbpLocalStorageService);
|
|
9
11
|
private init;
|
|
10
12
|
private setInitialLanguage;
|
|
11
13
|
onLanguageChange$(): import("rxjs").Observable<string>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
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.1.0
|
|
10
|
+
"@abp/utils": "~7.1.0",
|
|
11
11
|
"angular-oauth2-oidc": "^15.0.1",
|
|
12
12
|
"just-clone": "^6.1.1",
|
|
13
13
|
"just-compare": "^2.3.0",
|