@abp/ng.core 6.0.0 → 7.0.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.
- package/esm2020/lib/core.module.mjs +3 -1
- package/esm2020/lib/providers/include-localization-resources.provider.mjs +6 -0
- package/esm2020/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +1 -1
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +1 -1
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +3 -2
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +24 -0
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.mjs +2 -1
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.mjs +1 -1
- package/esm2020/lib/proxy/volo/abp/http/modeling/models.mjs +1 -1
- package/esm2020/lib/services/config-state.service.mjs +37 -7
- package/esm2020/lib/services/localization.service.mjs +35 -6
- package/esm2020/lib/tokens/include-localization-resources.token.mjs +3 -0
- package/esm2020/lib/tokens/index.mjs +2 -1
- package/fesm2015/abp-ng.core.mjs +99 -12
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +97 -12
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/providers/include-localization-resources.provider.d.ts +2 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.d.ts +2 -2
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.d.ts +11 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.d.ts +1 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.d.ts +16 -1
- package/lib/proxy/volo/abp/http/modeling/models.d.ts +8 -0
- package/lib/services/config-state.service.d.ts +29 -7
- package/lib/strategies/auth-flow.strategy.d.ts +22 -6
- package/lib/tokens/include-localization-resources.token.d.ts +2 -0
- package/lib/tokens/index.d.ts +1 -0
- package/lib/utils/auth-utils.d.ts +11 -3
- package/lib/utils/initial-utils.d.ts +11 -3
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ApplicationConfigurationDto } from './models';
|
|
1
|
+
import type { ApplicationConfigurationDto, ApplicationConfigurationRequestOptions } from './models';
|
|
2
2
|
import { RestService } from '../../../../../../services/rest.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AbpApplicationConfigurationService {
|
|
5
5
|
private restService;
|
|
6
6
|
apiName: string;
|
|
7
|
-
get: () => import("rxjs").Observable<ApplicationConfigurationDto>;
|
|
7
|
+
get: (options: ApplicationConfigurationRequestOptions) => import("rxjs").Observable<ApplicationConfigurationDto>;
|
|
8
8
|
constructor(restService: RestService);
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationConfigurationService, never>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationConfigurationService>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApplicationLocalizationDto, ApplicationLocalizationRequestDto } from './models';
|
|
2
|
+
import { RestService } from '../../../../../../services/rest.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AbpApplicationLocalizationService {
|
|
5
|
+
private restService;
|
|
6
|
+
apiName: string;
|
|
7
|
+
get: (input: ApplicationLocalizationRequestDto) => import("rxjs").Observable<ApplicationLocalizationDto>;
|
|
8
|
+
constructor(restService: RestService);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationLocalizationService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationLocalizationService>;
|
|
11
|
+
}
|
|
@@ -3,7 +3,6 @@ import type { ObjectExtensionsDto } from './object-extending/models';
|
|
|
3
3
|
import type { LanguageInfo } from '../../../localization/models';
|
|
4
4
|
import type { NameValue } from '../../../models';
|
|
5
5
|
export interface ApplicationAuthConfigurationDto {
|
|
6
|
-
policies: Record<string, boolean>;
|
|
7
6
|
grantedPolicies: Record<string, boolean>;
|
|
8
7
|
}
|
|
9
8
|
export interface ApplicationConfigurationDto {
|
|
@@ -18,6 +17,10 @@ export interface ApplicationConfigurationDto {
|
|
|
18
17
|
timing: TimingDto;
|
|
19
18
|
clock: ClockDto;
|
|
20
19
|
objectExtensions: ObjectExtensionsDto;
|
|
20
|
+
extraProperties: Record<string, object>;
|
|
21
|
+
}
|
|
22
|
+
export interface ApplicationConfigurationRequestOptions {
|
|
23
|
+
includeLocalizationResources: boolean;
|
|
21
24
|
}
|
|
22
25
|
export interface ApplicationFeatureConfigurationDto {
|
|
23
26
|
values: Record<string, string>;
|
|
@@ -27,12 +30,24 @@ export interface ApplicationGlobalFeatureConfigurationDto {
|
|
|
27
30
|
}
|
|
28
31
|
export interface ApplicationLocalizationConfigurationDto {
|
|
29
32
|
values: Record<string, Record<string, string>>;
|
|
33
|
+
resources: Record<string, ApplicationLocalizationResourceDto>;
|
|
30
34
|
languages: LanguageInfo[];
|
|
31
35
|
currentCulture: CurrentCultureDto;
|
|
32
36
|
defaultResourceName?: string;
|
|
33
37
|
languagesMap: Record<string, NameValue[]>;
|
|
34
38
|
languageFilesMap: Record<string, NameValue[]>;
|
|
35
39
|
}
|
|
40
|
+
export interface ApplicationLocalizationDto {
|
|
41
|
+
resources: Record<string, ApplicationLocalizationResourceDto>;
|
|
42
|
+
}
|
|
43
|
+
export interface ApplicationLocalizationRequestDto {
|
|
44
|
+
cultureName: string;
|
|
45
|
+
onlyDynamics: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ApplicationLocalizationResourceDto {
|
|
48
|
+
texts: Record<string, string>;
|
|
49
|
+
baseResources: string[];
|
|
50
|
+
}
|
|
36
51
|
export interface ApplicationSettingConfigurationDto {
|
|
37
52
|
values: Record<string, string>;
|
|
38
53
|
}
|
|
@@ -21,6 +21,7 @@ export interface ControllerApiDescriptionModel {
|
|
|
21
21
|
controllerName?: string;
|
|
22
22
|
controllerGroupName?: string;
|
|
23
23
|
isRemoteService: boolean;
|
|
24
|
+
integrationService: boolean;
|
|
24
25
|
apiVersion?: string;
|
|
25
26
|
type?: string;
|
|
26
27
|
interfaces: ControllerInterfaceApiDescriptionModel[];
|
|
@@ -28,6 +29,13 @@ export interface ControllerApiDescriptionModel {
|
|
|
28
29
|
}
|
|
29
30
|
export interface ControllerInterfaceApiDescriptionModel {
|
|
30
31
|
type?: string;
|
|
32
|
+
name?: string;
|
|
33
|
+
methods: InterfaceMethodApiDescriptionModel[];
|
|
34
|
+
}
|
|
35
|
+
export interface InterfaceMethodApiDescriptionModel {
|
|
36
|
+
name?: string;
|
|
37
|
+
parametersOnMethod: MethodParameterApiDescriptionModel[];
|
|
38
|
+
returnValue: ReturnValueApiDescriptionModel;
|
|
31
39
|
}
|
|
32
40
|
export interface MethodParameterApiDescriptionModel {
|
|
33
41
|
name?: string;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
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';
|
|
3
4
|
import { ApplicationConfigurationDto, ApplicationGlobalFeatureConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ConfigStateService {
|
|
6
7
|
private abpConfigService;
|
|
8
|
+
private abpApplicationLocalizationService;
|
|
9
|
+
private readonly includeLocalizationResources;
|
|
7
10
|
private readonly store;
|
|
8
11
|
get createOnUpdateStream(): <Slice>(selector: (state: {
|
|
9
12
|
localization?: {
|
|
@@ -12,6 +15,14 @@ export declare class ConfigStateService {
|
|
|
12
15
|
[x: string]: string;
|
|
13
16
|
};
|
|
14
17
|
};
|
|
18
|
+
resources?: {
|
|
19
|
+
[x: string]: {
|
|
20
|
+
texts?: {
|
|
21
|
+
[x: string]: string;
|
|
22
|
+
};
|
|
23
|
+
baseResources?: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
15
26
|
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
16
27
|
currentCulture?: {
|
|
17
28
|
displayName?: string;
|
|
@@ -41,9 +52,6 @@ export declare class ConfigStateService {
|
|
|
41
52
|
};
|
|
42
53
|
};
|
|
43
54
|
auth?: {
|
|
44
|
-
policies?: {
|
|
45
|
-
[x: string]: boolean;
|
|
46
|
-
};
|
|
47
55
|
grantedPolicies?: {
|
|
48
56
|
[x: string]: boolean;
|
|
49
57
|
};
|
|
@@ -165,10 +173,15 @@ export declare class ConfigStateService {
|
|
|
165
173
|
};
|
|
166
174
|
};
|
|
167
175
|
};
|
|
176
|
+
extraProperties?: {
|
|
177
|
+
[x: string]: object;
|
|
178
|
+
};
|
|
168
179
|
}) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
|
|
169
180
|
private updateSubject;
|
|
170
|
-
constructor(abpConfigService: AbpApplicationConfigurationService);
|
|
181
|
+
constructor(abpConfigService: AbpApplicationConfigurationService, abpApplicationLocalizationService: AbpApplicationLocalizationService, includeLocalizationResources: boolean);
|
|
171
182
|
private initUpdateStream;
|
|
183
|
+
private getLocalizationAndCombineWithAppState;
|
|
184
|
+
private getlocalizationResource;
|
|
172
185
|
refreshAppState(): Observable<{
|
|
173
186
|
localization?: {
|
|
174
187
|
values?: {
|
|
@@ -176,6 +189,14 @@ export declare class ConfigStateService {
|
|
|
176
189
|
[x: string]: string;
|
|
177
190
|
};
|
|
178
191
|
};
|
|
192
|
+
resources?: {
|
|
193
|
+
[x: string]: {
|
|
194
|
+
texts?: {
|
|
195
|
+
[x: string]: string;
|
|
196
|
+
};
|
|
197
|
+
baseResources?: string[];
|
|
198
|
+
};
|
|
199
|
+
};
|
|
179
200
|
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
180
201
|
currentCulture?: {
|
|
181
202
|
displayName?: string;
|
|
@@ -205,9 +226,6 @@ export declare class ConfigStateService {
|
|
|
205
226
|
};
|
|
206
227
|
};
|
|
207
228
|
auth?: {
|
|
208
|
-
policies?: {
|
|
209
|
-
[x: string]: boolean;
|
|
210
|
-
};
|
|
211
229
|
grantedPolicies?: {
|
|
212
230
|
[x: string]: boolean;
|
|
213
231
|
};
|
|
@@ -329,7 +347,11 @@ export declare class ConfigStateService {
|
|
|
329
347
|
};
|
|
330
348
|
};
|
|
331
349
|
};
|
|
350
|
+
extraProperties?: {
|
|
351
|
+
[x: string]: object;
|
|
352
|
+
};
|
|
332
353
|
}>;
|
|
354
|
+
refreshLocalization(lang: string): Observable<null>;
|
|
333
355
|
getOne$(key: string): Observable<any>;
|
|
334
356
|
getOne(key: string): any;
|
|
335
357
|
getAll$(): Observable<ApplicationConfigurationDto>;
|
|
@@ -53,6 +53,14 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
53
53
|
[x: string]: string;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
+
resources?: {
|
|
57
|
+
[x: string]: {
|
|
58
|
+
texts?: {
|
|
59
|
+
[x: string]: string;
|
|
60
|
+
};
|
|
61
|
+
baseResources?: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
56
64
|
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
57
65
|
currentCulture?: {
|
|
58
66
|
displayName?: string;
|
|
@@ -82,9 +90,6 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
82
90
|
};
|
|
83
91
|
};
|
|
84
92
|
auth?: {
|
|
85
|
-
policies?: {
|
|
86
|
-
[x: string]: boolean;
|
|
87
|
-
};
|
|
88
93
|
grantedPolicies?: {
|
|
89
94
|
[x: string]: boolean;
|
|
90
95
|
};
|
|
@@ -206,6 +211,9 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
206
211
|
};
|
|
207
212
|
};
|
|
208
213
|
};
|
|
214
|
+
extraProperties?: {
|
|
215
|
+
[x: string]: object;
|
|
216
|
+
};
|
|
209
217
|
}>>;
|
|
210
218
|
logout(queryParams?: Params): Observable<{
|
|
211
219
|
localization?: {
|
|
@@ -214,6 +222,14 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
214
222
|
[x: string]: string;
|
|
215
223
|
};
|
|
216
224
|
};
|
|
225
|
+
resources?: {
|
|
226
|
+
[x: string]: {
|
|
227
|
+
texts?: {
|
|
228
|
+
[x: string]: string;
|
|
229
|
+
};
|
|
230
|
+
baseResources?: string[];
|
|
231
|
+
};
|
|
232
|
+
};
|
|
217
233
|
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
218
234
|
currentCulture?: {
|
|
219
235
|
displayName?: string;
|
|
@@ -243,9 +259,6 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
243
259
|
};
|
|
244
260
|
};
|
|
245
261
|
auth?: {
|
|
246
|
-
policies?: {
|
|
247
|
-
[x: string]: boolean;
|
|
248
|
-
};
|
|
249
262
|
grantedPolicies?: {
|
|
250
263
|
[x: string]: boolean;
|
|
251
264
|
};
|
|
@@ -367,6 +380,9 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
367
380
|
};
|
|
368
381
|
};
|
|
369
382
|
};
|
|
383
|
+
extraProperties?: {
|
|
384
|
+
[x: string]: object;
|
|
385
|
+
};
|
|
370
386
|
}>;
|
|
371
387
|
protected refreshToken(): Promise<void | import("angular-oauth2-oidc").TokenResponse>;
|
|
372
388
|
}
|
package/lib/tokens/index.d.ts
CHANGED
|
@@ -8,6 +8,14 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
8
8
|
[x: string]: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
resources?: {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
texts?: {
|
|
14
|
+
[x: string]: string;
|
|
15
|
+
};
|
|
16
|
+
baseResources?: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
11
19
|
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
12
20
|
currentCulture?: {
|
|
13
21
|
displayName?: string;
|
|
@@ -37,9 +45,6 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
37
45
|
};
|
|
38
46
|
};
|
|
39
47
|
auth?: {
|
|
40
|
-
policies?: {
|
|
41
|
-
[x: string]: boolean;
|
|
42
|
-
};
|
|
43
48
|
grantedPolicies?: {
|
|
44
49
|
[x: string]: boolean;
|
|
45
50
|
};
|
|
@@ -161,6 +166,9 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
161
166
|
};
|
|
162
167
|
};
|
|
163
168
|
};
|
|
169
|
+
extraProperties?: {
|
|
170
|
+
[x: string]: object;
|
|
171
|
+
};
|
|
164
172
|
}>>;
|
|
165
173
|
export declare function setTokenResponseToStorage(injector: Injector, tokenRes: TokenResponse): void;
|
|
166
174
|
export declare function setRememberMe(remember: boolean): void;
|
|
@@ -6,6 +6,14 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
6
6
|
[x: string]: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
resources?: {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
texts?: {
|
|
12
|
+
[x: string]: string;
|
|
13
|
+
};
|
|
14
|
+
baseResources?: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
9
17
|
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
10
18
|
currentCulture?: {
|
|
11
19
|
displayName?: string;
|
|
@@ -35,9 +43,6 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
35
43
|
};
|
|
36
44
|
};
|
|
37
45
|
auth?: {
|
|
38
|
-
policies?: {
|
|
39
|
-
[x: string]: boolean;
|
|
40
|
-
};
|
|
41
46
|
grantedPolicies?: {
|
|
42
47
|
[x: string]: boolean;
|
|
43
48
|
};
|
|
@@ -159,6 +164,9 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
159
164
|
};
|
|
160
165
|
};
|
|
161
166
|
};
|
|
167
|
+
extraProperties?: {
|
|
168
|
+
[x: string]: object;
|
|
169
|
+
};
|
|
162
170
|
}>;
|
|
163
171
|
export declare function checkAccessToken(injector: Injector): void;
|
|
164
172
|
export declare function localeInitializer(injector: Injector): () => Promise<unknown>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.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": "~
|
|
10
|
+
"@abp/utils": "~7.0.0-rc.1",
|
|
11
11
|
"angular-oauth2-oidc": "^13.0.1",
|
|
12
12
|
"just-clone": "^3.2.1",
|
|
13
13
|
"just-compare": "^1.4.0",
|