@abp/ng.core 4.4.0 → 4.4.4
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/abp-ng.core.metadata.json +1 -1
- package/bundles/abp-ng.core.umd.js +115 -118
- package/bundles/abp-ng.core.umd.js.map +1 -1
- package/bundles/abp-ng.core.umd.min.js +2 -2
- package/bundles/abp-ng.core.umd.min.js.map +1 -1
- package/esm2015/lib/components/dynamic-layout.component.js +1 -2
- package/esm2015/lib/services/config-state.service.js +16 -3
- package/esm2015/lib/services/localization.service.js +6 -13
- package/esm2015/lib/states/config.state.js +4 -12
- package/esm2015/lib/strategies/auth-flow.strategy.js +9 -14
- package/esm2015/lib/utils/auth-utils.js +2 -5
- package/esm2015/lib/utils/initial-utils.js +4 -6
- package/esm2015/lib/utils/multi-tenancy-utils.js +7 -2
- package/fesm2015/abp-ng.core.js +110 -112
- package/fesm2015/abp-ng.core.js.map +1 -1
- package/lib/services/config-state.service.d.ts +162 -1
- package/lib/services/localization.service.d.ts +1 -3
- package/lib/states/config.state.d.ts +157 -7
- package/lib/strategies/auth-flow.strategy.d.ts +312 -4
- package/lib/utils/auth-utils.d.ts +156 -1
- package/lib/utils/initial-utils.d.ts +156 -1
- package/package.json +2 -2
|
@@ -4,7 +4,6 @@ import { Store } from '@ngxs/store';
|
|
|
4
4
|
import { AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { LoginParams } from '../models/auth';
|
|
7
|
-
import { AbpApplicationConfigurationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service';
|
|
8
7
|
import { ConfigStateService } from '../services/config-state.service';
|
|
9
8
|
import { EnvironmentService } from '../services/environment.service';
|
|
10
9
|
import { SessionStateService } from '../services/session-state.service';
|
|
@@ -18,7 +17,6 @@ export declare abstract class AuthFlowStrategy {
|
|
|
18
17
|
protected oAuthService: OAuthService;
|
|
19
18
|
protected oAuthConfig: AuthConfig;
|
|
20
19
|
protected sessionState: SessionStateService;
|
|
21
|
-
protected appConfigService: AbpApplicationConfigurationService;
|
|
22
20
|
protected tenantKey: string;
|
|
23
21
|
abstract checkIfInternalAuth(queryParams?: Params): boolean;
|
|
24
22
|
abstract navigateToLogin(queryParams?: Params): void;
|
|
@@ -48,8 +46,318 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
48
46
|
navigateToLogin(queryParams?: Params): void;
|
|
49
47
|
checkIfInternalAuth(): boolean;
|
|
50
48
|
login(params: LoginParams): Observable<any>;
|
|
51
|
-
pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'rememberMe'>): import("rxjs").UnaryFunction<Observable<unknown>, Observable<
|
|
52
|
-
|
|
49
|
+
pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'rememberMe'>): import("rxjs").UnaryFunction<Observable<unknown>, Observable<{
|
|
50
|
+
localization?: {
|
|
51
|
+
values?: {
|
|
52
|
+
[x: string]: {
|
|
53
|
+
[x: string]: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
languages?: import("../../public-api").LanguageInfo[];
|
|
57
|
+
currentCulture?: {
|
|
58
|
+
displayName?: string;
|
|
59
|
+
englishName?: string;
|
|
60
|
+
threeLetterIsoLanguageName?: string;
|
|
61
|
+
twoLetterIsoLanguageName?: string;
|
|
62
|
+
isRightToLeft?: boolean;
|
|
63
|
+
cultureName?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
nativeName?: string;
|
|
66
|
+
dateTimeFormat?: {
|
|
67
|
+
calendarAlgorithmType?: string;
|
|
68
|
+
dateTimeFormatLong?: string;
|
|
69
|
+
shortDatePattern?: string;
|
|
70
|
+
fullDateTimePattern?: string;
|
|
71
|
+
dateSeparator?: string;
|
|
72
|
+
shortTimePattern?: string;
|
|
73
|
+
longTimePattern?: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
defaultResourceName?: string;
|
|
77
|
+
languagesMap?: {
|
|
78
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
79
|
+
};
|
|
80
|
+
languageFilesMap?: {
|
|
81
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
auth?: {
|
|
85
|
+
policies?: {
|
|
86
|
+
[x: string]: boolean;
|
|
87
|
+
};
|
|
88
|
+
grantedPolicies?: {
|
|
89
|
+
[x: string]: boolean;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
setting?: {
|
|
93
|
+
values?: {
|
|
94
|
+
[x: string]: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
currentUser?: {
|
|
98
|
+
isAuthenticated?: boolean;
|
|
99
|
+
id?: string;
|
|
100
|
+
tenantId?: string;
|
|
101
|
+
userName?: string;
|
|
102
|
+
name?: string;
|
|
103
|
+
surName?: string;
|
|
104
|
+
email?: string;
|
|
105
|
+
emailVerified?: boolean;
|
|
106
|
+
phoneNumber?: string;
|
|
107
|
+
phoneNumberVerified?: boolean;
|
|
108
|
+
roles?: string[];
|
|
109
|
+
impersonatorUserId?: string;
|
|
110
|
+
impersonatorTenantId?: string;
|
|
111
|
+
};
|
|
112
|
+
features?: {
|
|
113
|
+
values?: {
|
|
114
|
+
[x: string]: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
multiTenancy?: {
|
|
118
|
+
isEnabled?: boolean;
|
|
119
|
+
};
|
|
120
|
+
currentTenant?: {
|
|
121
|
+
id?: string;
|
|
122
|
+
name?: string;
|
|
123
|
+
isAvailable?: boolean;
|
|
124
|
+
};
|
|
125
|
+
timing?: {
|
|
126
|
+
timeZone?: {
|
|
127
|
+
iana?: {
|
|
128
|
+
timeZoneName?: string;
|
|
129
|
+
};
|
|
130
|
+
windows?: {
|
|
131
|
+
timeZoneId?: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
clock?: {
|
|
136
|
+
kind?: string;
|
|
137
|
+
};
|
|
138
|
+
objectExtensions?: {
|
|
139
|
+
modules?: {
|
|
140
|
+
[x: string]: {
|
|
141
|
+
entities?: {
|
|
142
|
+
[x: string]: {
|
|
143
|
+
properties?: {
|
|
144
|
+
[x: string]: {
|
|
145
|
+
type?: string;
|
|
146
|
+
typeSimple?: string;
|
|
147
|
+
displayName?: {
|
|
148
|
+
name?: string;
|
|
149
|
+
resource?: string;
|
|
150
|
+
};
|
|
151
|
+
api?: {
|
|
152
|
+
onGet?: {
|
|
153
|
+
isAvailable?: boolean;
|
|
154
|
+
};
|
|
155
|
+
onCreate?: {
|
|
156
|
+
isAvailable?: boolean;
|
|
157
|
+
};
|
|
158
|
+
onUpdate?: {
|
|
159
|
+
isAvailable?: boolean;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
ui?: {
|
|
163
|
+
onTable?: {
|
|
164
|
+
isVisible?: boolean;
|
|
165
|
+
};
|
|
166
|
+
onCreateForm?: {
|
|
167
|
+
isVisible?: boolean;
|
|
168
|
+
};
|
|
169
|
+
onEditForm?: {
|
|
170
|
+
isVisible?: boolean;
|
|
171
|
+
};
|
|
172
|
+
lookup?: {
|
|
173
|
+
url?: string;
|
|
174
|
+
resultListPropertyName?: string;
|
|
175
|
+
displayPropertyName?: string;
|
|
176
|
+
valuePropertyName?: string;
|
|
177
|
+
filterParamName?: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
attributes?: import("../../public-api").ExtensionPropertyAttributeDto[];
|
|
181
|
+
configuration?: {
|
|
182
|
+
[x: string]: object;
|
|
183
|
+
};
|
|
184
|
+
defaultValue?: object;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
configuration?: {
|
|
188
|
+
[x: string]: object;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
configuration?: {
|
|
193
|
+
[x: string]: object;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
enums?: {
|
|
198
|
+
[x: string]: {
|
|
199
|
+
fields?: import("../../public-api").ExtensionEnumFieldDto[];
|
|
200
|
+
localizationResource?: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}>>;
|
|
205
|
+
logout(queryParams?: Params): Observable<{
|
|
206
|
+
localization?: {
|
|
207
|
+
values?: {
|
|
208
|
+
[x: string]: {
|
|
209
|
+
[x: string]: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
languages?: import("../../public-api").LanguageInfo[];
|
|
213
|
+
currentCulture?: {
|
|
214
|
+
displayName?: string;
|
|
215
|
+
englishName?: string;
|
|
216
|
+
threeLetterIsoLanguageName?: string;
|
|
217
|
+
twoLetterIsoLanguageName?: string;
|
|
218
|
+
isRightToLeft?: boolean;
|
|
219
|
+
cultureName?: string;
|
|
220
|
+
name?: string;
|
|
221
|
+
nativeName?: string;
|
|
222
|
+
dateTimeFormat?: {
|
|
223
|
+
calendarAlgorithmType?: string;
|
|
224
|
+
dateTimeFormatLong?: string;
|
|
225
|
+
shortDatePattern?: string;
|
|
226
|
+
fullDateTimePattern?: string;
|
|
227
|
+
dateSeparator?: string;
|
|
228
|
+
shortTimePattern?: string;
|
|
229
|
+
longTimePattern?: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
defaultResourceName?: string;
|
|
233
|
+
languagesMap?: {
|
|
234
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
235
|
+
};
|
|
236
|
+
languageFilesMap?: {
|
|
237
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
auth?: {
|
|
241
|
+
policies?: {
|
|
242
|
+
[x: string]: boolean;
|
|
243
|
+
};
|
|
244
|
+
grantedPolicies?: {
|
|
245
|
+
[x: string]: boolean;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
setting?: {
|
|
249
|
+
values?: {
|
|
250
|
+
[x: string]: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
currentUser?: {
|
|
254
|
+
isAuthenticated?: boolean;
|
|
255
|
+
id?: string;
|
|
256
|
+
tenantId?: string;
|
|
257
|
+
userName?: string;
|
|
258
|
+
name?: string;
|
|
259
|
+
surName?: string;
|
|
260
|
+
email?: string;
|
|
261
|
+
emailVerified?: boolean;
|
|
262
|
+
phoneNumber?: string;
|
|
263
|
+
phoneNumberVerified?: boolean;
|
|
264
|
+
roles?: string[];
|
|
265
|
+
impersonatorUserId?: string;
|
|
266
|
+
impersonatorTenantId?: string;
|
|
267
|
+
};
|
|
268
|
+
features?: {
|
|
269
|
+
values?: {
|
|
270
|
+
[x: string]: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
multiTenancy?: {
|
|
274
|
+
isEnabled?: boolean;
|
|
275
|
+
};
|
|
276
|
+
currentTenant?: {
|
|
277
|
+
id?: string;
|
|
278
|
+
name?: string;
|
|
279
|
+
isAvailable?: boolean;
|
|
280
|
+
};
|
|
281
|
+
timing?: {
|
|
282
|
+
timeZone?: {
|
|
283
|
+
iana?: {
|
|
284
|
+
timeZoneName?: string;
|
|
285
|
+
};
|
|
286
|
+
windows?: {
|
|
287
|
+
timeZoneId?: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
clock?: {
|
|
292
|
+
kind?: string;
|
|
293
|
+
};
|
|
294
|
+
objectExtensions?: {
|
|
295
|
+
modules?: {
|
|
296
|
+
[x: string]: {
|
|
297
|
+
entities?: {
|
|
298
|
+
[x: string]: {
|
|
299
|
+
properties?: {
|
|
300
|
+
[x: string]: {
|
|
301
|
+
type?: string;
|
|
302
|
+
typeSimple?: string;
|
|
303
|
+
displayName?: {
|
|
304
|
+
name?: string;
|
|
305
|
+
resource?: string;
|
|
306
|
+
};
|
|
307
|
+
api?: {
|
|
308
|
+
onGet?: {
|
|
309
|
+
isAvailable?: boolean;
|
|
310
|
+
};
|
|
311
|
+
onCreate?: {
|
|
312
|
+
isAvailable?: boolean;
|
|
313
|
+
};
|
|
314
|
+
onUpdate?: {
|
|
315
|
+
isAvailable?: boolean;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
ui?: {
|
|
319
|
+
onTable?: {
|
|
320
|
+
isVisible?: boolean;
|
|
321
|
+
};
|
|
322
|
+
onCreateForm?: {
|
|
323
|
+
isVisible?: boolean;
|
|
324
|
+
};
|
|
325
|
+
onEditForm?: {
|
|
326
|
+
isVisible?: boolean;
|
|
327
|
+
};
|
|
328
|
+
lookup?: {
|
|
329
|
+
url?: string;
|
|
330
|
+
resultListPropertyName?: string;
|
|
331
|
+
displayPropertyName?: string;
|
|
332
|
+
valuePropertyName?: string;
|
|
333
|
+
filterParamName?: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
attributes?: import("../../public-api").ExtensionPropertyAttributeDto[];
|
|
337
|
+
configuration?: {
|
|
338
|
+
[x: string]: object;
|
|
339
|
+
};
|
|
340
|
+
defaultValue?: object;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
configuration?: {
|
|
344
|
+
[x: string]: object;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
configuration?: {
|
|
349
|
+
[x: string]: object;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
enums?: {
|
|
354
|
+
[x: string]: {
|
|
355
|
+
fields?: import("../../public-api").ExtensionEnumFieldDto[];
|
|
356
|
+
localizationResource?: string;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
}>;
|
|
53
361
|
protected refreshToken(): Promise<void | import("angular-oauth2-oidc").TokenResponse>;
|
|
54
362
|
}
|
|
55
363
|
export declare const AUTH_FLOW_STRATEGY: {
|
|
@@ -1,7 +1,162 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { TokenResponse } from 'angular-oauth2-oidc';
|
|
3
3
|
import { LoginParams } from '../models/auth';
|
|
4
|
-
export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'rememberMe'>, injector: Injector): import("rxjs").UnaryFunction<import("rxjs").Observable<unknown>, import("rxjs").Observable<
|
|
4
|
+
export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'rememberMe'>, injector: Injector): import("rxjs").UnaryFunction<import("rxjs").Observable<unknown>, import("rxjs").Observable<{
|
|
5
|
+
localization?: {
|
|
6
|
+
values?: {
|
|
7
|
+
[x: string]: {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
languages?: import("../../public-api").LanguageInfo[];
|
|
12
|
+
currentCulture?: {
|
|
13
|
+
displayName?: string;
|
|
14
|
+
englishName?: string;
|
|
15
|
+
threeLetterIsoLanguageName?: string;
|
|
16
|
+
twoLetterIsoLanguageName?: string;
|
|
17
|
+
isRightToLeft?: boolean;
|
|
18
|
+
cultureName?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
nativeName?: string;
|
|
21
|
+
dateTimeFormat?: {
|
|
22
|
+
calendarAlgorithmType?: string;
|
|
23
|
+
dateTimeFormatLong?: string;
|
|
24
|
+
shortDatePattern?: string;
|
|
25
|
+
fullDateTimePattern?: string;
|
|
26
|
+
dateSeparator?: string;
|
|
27
|
+
shortTimePattern?: string;
|
|
28
|
+
longTimePattern?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
defaultResourceName?: string;
|
|
32
|
+
languagesMap?: {
|
|
33
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
34
|
+
};
|
|
35
|
+
languageFilesMap?: {
|
|
36
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
auth?: {
|
|
40
|
+
policies?: {
|
|
41
|
+
[x: string]: boolean;
|
|
42
|
+
};
|
|
43
|
+
grantedPolicies?: {
|
|
44
|
+
[x: string]: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
setting?: {
|
|
48
|
+
values?: {
|
|
49
|
+
[x: string]: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
currentUser?: {
|
|
53
|
+
isAuthenticated?: boolean;
|
|
54
|
+
id?: string;
|
|
55
|
+
tenantId?: string;
|
|
56
|
+
userName?: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
surName?: string;
|
|
59
|
+
email?: string;
|
|
60
|
+
emailVerified?: boolean;
|
|
61
|
+
phoneNumber?: string;
|
|
62
|
+
phoneNumberVerified?: boolean;
|
|
63
|
+
roles?: string[];
|
|
64
|
+
impersonatorUserId?: string;
|
|
65
|
+
impersonatorTenantId?: string;
|
|
66
|
+
};
|
|
67
|
+
features?: {
|
|
68
|
+
values?: {
|
|
69
|
+
[x: string]: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
multiTenancy?: {
|
|
73
|
+
isEnabled?: boolean;
|
|
74
|
+
};
|
|
75
|
+
currentTenant?: {
|
|
76
|
+
id?: string;
|
|
77
|
+
name?: string;
|
|
78
|
+
isAvailable?: boolean;
|
|
79
|
+
};
|
|
80
|
+
timing?: {
|
|
81
|
+
timeZone?: {
|
|
82
|
+
iana?: {
|
|
83
|
+
timeZoneName?: string;
|
|
84
|
+
};
|
|
85
|
+
windows?: {
|
|
86
|
+
timeZoneId?: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
clock?: {
|
|
91
|
+
kind?: string;
|
|
92
|
+
};
|
|
93
|
+
objectExtensions?: {
|
|
94
|
+
modules?: {
|
|
95
|
+
[x: string]: {
|
|
96
|
+
entities?: {
|
|
97
|
+
[x: string]: {
|
|
98
|
+
properties?: {
|
|
99
|
+
[x: string]: {
|
|
100
|
+
type?: string;
|
|
101
|
+
typeSimple?: string;
|
|
102
|
+
displayName?: {
|
|
103
|
+
name?: string;
|
|
104
|
+
resource?: string;
|
|
105
|
+
};
|
|
106
|
+
api?: {
|
|
107
|
+
onGet?: {
|
|
108
|
+
isAvailable?: boolean;
|
|
109
|
+
};
|
|
110
|
+
onCreate?: {
|
|
111
|
+
isAvailable?: boolean;
|
|
112
|
+
};
|
|
113
|
+
onUpdate?: {
|
|
114
|
+
isAvailable?: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
ui?: {
|
|
118
|
+
onTable?: {
|
|
119
|
+
isVisible?: boolean;
|
|
120
|
+
};
|
|
121
|
+
onCreateForm?: {
|
|
122
|
+
isVisible?: boolean;
|
|
123
|
+
};
|
|
124
|
+
onEditForm?: {
|
|
125
|
+
isVisible?: boolean;
|
|
126
|
+
};
|
|
127
|
+
lookup?: {
|
|
128
|
+
url?: string;
|
|
129
|
+
resultListPropertyName?: string;
|
|
130
|
+
displayPropertyName?: string;
|
|
131
|
+
valuePropertyName?: string;
|
|
132
|
+
filterParamName?: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
attributes?: import("../../public-api").ExtensionPropertyAttributeDto[];
|
|
136
|
+
configuration?: {
|
|
137
|
+
[x: string]: object;
|
|
138
|
+
};
|
|
139
|
+
defaultValue?: object;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
configuration?: {
|
|
143
|
+
[x: string]: object;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
configuration?: {
|
|
148
|
+
[x: string]: object;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
enums?: {
|
|
153
|
+
[x: string]: {
|
|
154
|
+
fields?: import("../../public-api").ExtensionEnumFieldDto[];
|
|
155
|
+
localizationResource?: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
}>>;
|
|
5
160
|
export declare function setTokenResponseToStorage(injector: Injector, tokenRes: TokenResponse): void;
|
|
6
161
|
export declare function setRememberMe(remember: boolean): void;
|
|
7
162
|
export declare function removeRememberMe(): void;
|
|
@@ -1,4 +1,159 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
export declare function getInitialData(injector: Injector): () => Promise<
|
|
2
|
+
export declare function getInitialData(injector: Injector): () => Promise<{
|
|
3
|
+
localization?: {
|
|
4
|
+
values?: {
|
|
5
|
+
[x: string]: {
|
|
6
|
+
[x: string]: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
languages?: import("../../public-api").LanguageInfo[];
|
|
10
|
+
currentCulture?: {
|
|
11
|
+
displayName?: string;
|
|
12
|
+
englishName?: string;
|
|
13
|
+
threeLetterIsoLanguageName?: string;
|
|
14
|
+
twoLetterIsoLanguageName?: string;
|
|
15
|
+
isRightToLeft?: boolean;
|
|
16
|
+
cultureName?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
nativeName?: string;
|
|
19
|
+
dateTimeFormat?: {
|
|
20
|
+
calendarAlgorithmType?: string;
|
|
21
|
+
dateTimeFormatLong?: string;
|
|
22
|
+
shortDatePattern?: string;
|
|
23
|
+
fullDateTimePattern?: string;
|
|
24
|
+
dateSeparator?: string;
|
|
25
|
+
shortTimePattern?: string;
|
|
26
|
+
longTimePattern?: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
defaultResourceName?: string;
|
|
30
|
+
languagesMap?: {
|
|
31
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
32
|
+
};
|
|
33
|
+
languageFilesMap?: {
|
|
34
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
auth?: {
|
|
38
|
+
policies?: {
|
|
39
|
+
[x: string]: boolean;
|
|
40
|
+
};
|
|
41
|
+
grantedPolicies?: {
|
|
42
|
+
[x: string]: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
setting?: {
|
|
46
|
+
values?: {
|
|
47
|
+
[x: string]: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
currentUser?: {
|
|
51
|
+
isAuthenticated?: boolean;
|
|
52
|
+
id?: string;
|
|
53
|
+
tenantId?: string;
|
|
54
|
+
userName?: string;
|
|
55
|
+
name?: string;
|
|
56
|
+
surName?: string;
|
|
57
|
+
email?: string;
|
|
58
|
+
emailVerified?: boolean;
|
|
59
|
+
phoneNumber?: string;
|
|
60
|
+
phoneNumberVerified?: boolean;
|
|
61
|
+
roles?: string[];
|
|
62
|
+
impersonatorUserId?: string;
|
|
63
|
+
impersonatorTenantId?: string;
|
|
64
|
+
};
|
|
65
|
+
features?: {
|
|
66
|
+
values?: {
|
|
67
|
+
[x: string]: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
multiTenancy?: {
|
|
71
|
+
isEnabled?: boolean;
|
|
72
|
+
};
|
|
73
|
+
currentTenant?: {
|
|
74
|
+
id?: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
isAvailable?: boolean;
|
|
77
|
+
};
|
|
78
|
+
timing?: {
|
|
79
|
+
timeZone?: {
|
|
80
|
+
iana?: {
|
|
81
|
+
timeZoneName?: string;
|
|
82
|
+
};
|
|
83
|
+
windows?: {
|
|
84
|
+
timeZoneId?: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
clock?: {
|
|
89
|
+
kind?: string;
|
|
90
|
+
};
|
|
91
|
+
objectExtensions?: {
|
|
92
|
+
modules?: {
|
|
93
|
+
[x: string]: {
|
|
94
|
+
entities?: {
|
|
95
|
+
[x: string]: {
|
|
96
|
+
properties?: {
|
|
97
|
+
[x: string]: {
|
|
98
|
+
type?: string;
|
|
99
|
+
typeSimple?: string;
|
|
100
|
+
displayName?: {
|
|
101
|
+
name?: string;
|
|
102
|
+
resource?: string;
|
|
103
|
+
};
|
|
104
|
+
api?: {
|
|
105
|
+
onGet?: {
|
|
106
|
+
isAvailable?: boolean;
|
|
107
|
+
};
|
|
108
|
+
onCreate?: {
|
|
109
|
+
isAvailable?: boolean;
|
|
110
|
+
};
|
|
111
|
+
onUpdate?: {
|
|
112
|
+
isAvailable?: boolean;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
ui?: {
|
|
116
|
+
onTable?: {
|
|
117
|
+
isVisible?: boolean;
|
|
118
|
+
};
|
|
119
|
+
onCreateForm?: {
|
|
120
|
+
isVisible?: boolean;
|
|
121
|
+
};
|
|
122
|
+
onEditForm?: {
|
|
123
|
+
isVisible?: boolean;
|
|
124
|
+
};
|
|
125
|
+
lookup?: {
|
|
126
|
+
url?: string;
|
|
127
|
+
resultListPropertyName?: string;
|
|
128
|
+
displayPropertyName?: string;
|
|
129
|
+
valuePropertyName?: string;
|
|
130
|
+
filterParamName?: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
attributes?: import("../../public-api").ExtensionPropertyAttributeDto[];
|
|
134
|
+
configuration?: {
|
|
135
|
+
[x: string]: object;
|
|
136
|
+
};
|
|
137
|
+
defaultValue?: object;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
configuration?: {
|
|
141
|
+
[x: string]: object;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
configuration?: {
|
|
146
|
+
[x: string]: object;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
enums?: {
|
|
151
|
+
[x: string]: {
|
|
152
|
+
fields?: import("../../public-api").ExtensionEnumFieldDto[];
|
|
153
|
+
localizationResource?: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
3
158
|
export declare function checkAccessToken(injector: Injector): void;
|
|
4
159
|
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": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
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": "~4.4.4",
|
|
11
11
|
"@angular/localize": "~10.0.10",
|
|
12
12
|
"@ngxs/store": "^3.7.0",
|
|
13
13
|
"angular-oauth2-oidc": "^10.0.0",
|