@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
|
@@ -160,9 +160,170 @@ export declare class ConfigStateService {
|
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
}) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
|
|
163
|
+
private updateSubject;
|
|
163
164
|
constructor(abpConfigService: AbpApplicationConfigurationService);
|
|
165
|
+
private initUpdateStream;
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated do not use this method directly, instead call refreshAppState
|
|
168
|
+
* This method will be private in v5.0
|
|
169
|
+
*/
|
|
164
170
|
setState(state: ApplicationConfigurationDto): void;
|
|
165
|
-
refreshAppState(): Observable<
|
|
171
|
+
refreshAppState(): Observable<{
|
|
172
|
+
localization?: {
|
|
173
|
+
values?: {
|
|
174
|
+
[x: string]: {
|
|
175
|
+
[x: string]: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
languages?: import("../../public-api").LanguageInfo[];
|
|
179
|
+
currentCulture?: {
|
|
180
|
+
displayName?: string;
|
|
181
|
+
englishName?: string;
|
|
182
|
+
threeLetterIsoLanguageName?: string;
|
|
183
|
+
twoLetterIsoLanguageName?: string;
|
|
184
|
+
isRightToLeft?: boolean;
|
|
185
|
+
cultureName?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
nativeName?: string;
|
|
188
|
+
dateTimeFormat?: {
|
|
189
|
+
calendarAlgorithmType?: string;
|
|
190
|
+
dateTimeFormatLong?: string;
|
|
191
|
+
shortDatePattern?: string;
|
|
192
|
+
fullDateTimePattern?: string;
|
|
193
|
+
dateSeparator?: string;
|
|
194
|
+
shortTimePattern?: string;
|
|
195
|
+
longTimePattern?: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
defaultResourceName?: string;
|
|
199
|
+
languagesMap?: {
|
|
200
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
201
|
+
};
|
|
202
|
+
languageFilesMap?: {
|
|
203
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
auth?: {
|
|
207
|
+
policies?: {
|
|
208
|
+
[x: string]: boolean;
|
|
209
|
+
};
|
|
210
|
+
grantedPolicies?: {
|
|
211
|
+
[x: string]: boolean;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
setting?: {
|
|
215
|
+
values?: {
|
|
216
|
+
[x: string]: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
currentUser?: {
|
|
220
|
+
isAuthenticated?: boolean;
|
|
221
|
+
id?: string;
|
|
222
|
+
tenantId?: string;
|
|
223
|
+
userName?: string;
|
|
224
|
+
name?: string;
|
|
225
|
+
surName?: string;
|
|
226
|
+
email?: string;
|
|
227
|
+
emailVerified?: boolean;
|
|
228
|
+
phoneNumber?: string;
|
|
229
|
+
phoneNumberVerified?: boolean;
|
|
230
|
+
roles?: string[];
|
|
231
|
+
impersonatorUserId?: string;
|
|
232
|
+
impersonatorTenantId?: string;
|
|
233
|
+
};
|
|
234
|
+
features?: {
|
|
235
|
+
values?: {
|
|
236
|
+
[x: string]: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
multiTenancy?: {
|
|
240
|
+
isEnabled?: boolean;
|
|
241
|
+
};
|
|
242
|
+
currentTenant?: {
|
|
243
|
+
id?: string;
|
|
244
|
+
name?: string;
|
|
245
|
+
isAvailable?: boolean;
|
|
246
|
+
};
|
|
247
|
+
timing?: {
|
|
248
|
+
timeZone?: {
|
|
249
|
+
iana?: {
|
|
250
|
+
timeZoneName?: string;
|
|
251
|
+
};
|
|
252
|
+
windows?: {
|
|
253
|
+
timeZoneId?: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
clock?: {
|
|
258
|
+
kind?: string;
|
|
259
|
+
};
|
|
260
|
+
objectExtensions?: {
|
|
261
|
+
modules?: {
|
|
262
|
+
[x: string]: {
|
|
263
|
+
entities?: {
|
|
264
|
+
[x: string]: {
|
|
265
|
+
properties?: {
|
|
266
|
+
[x: string]: {
|
|
267
|
+
type?: string;
|
|
268
|
+
typeSimple?: string;
|
|
269
|
+
displayName?: {
|
|
270
|
+
name?: string;
|
|
271
|
+
resource?: string;
|
|
272
|
+
};
|
|
273
|
+
api?: {
|
|
274
|
+
onGet?: {
|
|
275
|
+
isAvailable?: boolean;
|
|
276
|
+
};
|
|
277
|
+
onCreate?: {
|
|
278
|
+
isAvailable?: boolean;
|
|
279
|
+
};
|
|
280
|
+
onUpdate?: {
|
|
281
|
+
isAvailable?: boolean;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
ui?: {
|
|
285
|
+
onTable?: {
|
|
286
|
+
isVisible?: boolean;
|
|
287
|
+
};
|
|
288
|
+
onCreateForm?: {
|
|
289
|
+
isVisible?: boolean;
|
|
290
|
+
};
|
|
291
|
+
onEditForm?: {
|
|
292
|
+
isVisible?: boolean;
|
|
293
|
+
};
|
|
294
|
+
lookup?: {
|
|
295
|
+
url?: string;
|
|
296
|
+
resultListPropertyName?: string;
|
|
297
|
+
displayPropertyName?: string;
|
|
298
|
+
valuePropertyName?: string;
|
|
299
|
+
filterParamName?: string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
attributes?: import("../../public-api").ExtensionPropertyAttributeDto[];
|
|
303
|
+
configuration?: {
|
|
304
|
+
[x: string]: object;
|
|
305
|
+
};
|
|
306
|
+
defaultValue?: object;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
configuration?: {
|
|
310
|
+
[x: string]: object;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
configuration?: {
|
|
315
|
+
[x: string]: object;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
enums?: {
|
|
320
|
+
[x: string]: {
|
|
321
|
+
fields?: import("../../public-api").ExtensionEnumFieldDto[];
|
|
322
|
+
localizationResource?: string;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
}>;
|
|
166
327
|
getOne$(key: string): Observable<any>;
|
|
167
328
|
getOne(key: string): any;
|
|
168
329
|
getAll$(): Observable<ApplicationConfigurationDto>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Config } from '../models/config';
|
|
4
|
-
import { AbpApplicationConfigurationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service';
|
|
5
4
|
import { ConfigStateService } from './config-state.service';
|
|
6
5
|
import { SessionStateService } from './session-state.service';
|
|
7
6
|
export declare class LocalizationService {
|
|
8
7
|
private sessionState;
|
|
9
8
|
private injector;
|
|
10
9
|
private configState;
|
|
11
|
-
private appConfigService;
|
|
12
10
|
private latestLang;
|
|
13
11
|
private _languageChange$;
|
|
14
12
|
/**
|
|
@@ -16,7 +14,7 @@ export declare class LocalizationService {
|
|
|
16
14
|
*/
|
|
17
15
|
get currentLang(): string;
|
|
18
16
|
get languageChange$(): Observable<string>;
|
|
19
|
-
constructor(sessionState: SessionStateService, injector: Injector, otherInstance: LocalizationService, configState: ConfigStateService
|
|
17
|
+
constructor(sessionState: SessionStateService, injector: Injector, otherInstance: LocalizationService, configState: ConfigStateService);
|
|
20
18
|
private listenToSetLanguage;
|
|
21
19
|
registerLocale(locale: string): Promise<void>;
|
|
22
20
|
/**
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { State, StateContext, Store } from '@ngxs/store';
|
|
3
2
|
import { PatchConfigState, SetEnvironment } from '../actions/config.actions';
|
|
4
3
|
import { Config } from '../models/config';
|
|
5
4
|
import { ConfigStateService } from '../services/config-state.service';
|
|
6
5
|
import { EnvironmentService } from '../services/environment.service';
|
|
7
|
-
import { SessionStateService } from '../services/session-state.service';
|
|
8
|
-
import { ApplicationConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
|
|
9
6
|
/**
|
|
10
7
|
* @deprecated Use ConfigStateService instead. To be deleted in v5.0.
|
|
11
8
|
*/
|
|
12
9
|
export declare class ConfigState {
|
|
13
|
-
private http;
|
|
14
10
|
private store;
|
|
15
|
-
private sessionState;
|
|
16
11
|
private environmentService;
|
|
17
12
|
private configState;
|
|
18
13
|
static getAll(state: Config.State): Config.State;
|
|
@@ -32,10 +27,165 @@ export declare class ConfigState {
|
|
|
32
27
|
[key: string]: string;
|
|
33
28
|
};
|
|
34
29
|
static getLocalization(key: string | Config.LocalizationWithDefault, ...interpolateParams: string[]): (state: Config.State) => string;
|
|
35
|
-
constructor(
|
|
30
|
+
constructor(store: Store, environmentService: EnvironmentService, configState: ConfigStateService);
|
|
36
31
|
private syncConfigState;
|
|
37
32
|
private syncEnvironment;
|
|
38
|
-
addData({ patchState, dispatch }: StateContext<Config.State>): import("rxjs").Observable<
|
|
33
|
+
addData({ patchState, dispatch }: StateContext<Config.State>): import("rxjs").Observable<{
|
|
34
|
+
localization?: {
|
|
35
|
+
values?: {
|
|
36
|
+
[x: string]: {
|
|
37
|
+
[x: string]: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
languages?: import("../../public-api").LanguageInfo[];
|
|
41
|
+
currentCulture?: {
|
|
42
|
+
displayName?: string;
|
|
43
|
+
englishName?: string;
|
|
44
|
+
threeLetterIsoLanguageName?: string;
|
|
45
|
+
twoLetterIsoLanguageName?: string;
|
|
46
|
+
isRightToLeft?: boolean;
|
|
47
|
+
cultureName?: string;
|
|
48
|
+
name?: string;
|
|
49
|
+
nativeName?: string;
|
|
50
|
+
dateTimeFormat?: {
|
|
51
|
+
calendarAlgorithmType?: string;
|
|
52
|
+
dateTimeFormatLong?: string;
|
|
53
|
+
shortDatePattern?: string;
|
|
54
|
+
fullDateTimePattern?: string;
|
|
55
|
+
dateSeparator?: string;
|
|
56
|
+
shortTimePattern?: string;
|
|
57
|
+
longTimePattern?: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
defaultResourceName?: string;
|
|
61
|
+
languagesMap?: {
|
|
62
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
63
|
+
};
|
|
64
|
+
languageFilesMap?: {
|
|
65
|
+
[x: string]: import("../../public-api").NameValue<string>[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
auth?: {
|
|
69
|
+
policies?: {
|
|
70
|
+
[x: string]: boolean;
|
|
71
|
+
};
|
|
72
|
+
grantedPolicies?: {
|
|
73
|
+
[x: string]: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
setting?: {
|
|
77
|
+
values?: {
|
|
78
|
+
[x: string]: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
currentUser?: {
|
|
82
|
+
isAuthenticated?: boolean;
|
|
83
|
+
id?: string;
|
|
84
|
+
tenantId?: string;
|
|
85
|
+
userName?: string;
|
|
86
|
+
name?: string;
|
|
87
|
+
surName?: string;
|
|
88
|
+
email?: string;
|
|
89
|
+
emailVerified?: boolean;
|
|
90
|
+
phoneNumber?: string;
|
|
91
|
+
phoneNumberVerified?: boolean;
|
|
92
|
+
roles?: string[];
|
|
93
|
+
impersonatorUserId?: string;
|
|
94
|
+
impersonatorTenantId?: string;
|
|
95
|
+
};
|
|
96
|
+
features?: {
|
|
97
|
+
values?: {
|
|
98
|
+
[x: string]: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
multiTenancy?: {
|
|
102
|
+
isEnabled?: boolean;
|
|
103
|
+
};
|
|
104
|
+
currentTenant?: {
|
|
105
|
+
id?: string;
|
|
106
|
+
name?: string;
|
|
107
|
+
isAvailable?: boolean;
|
|
108
|
+
};
|
|
109
|
+
timing?: {
|
|
110
|
+
timeZone?: {
|
|
111
|
+
iana?: {
|
|
112
|
+
timeZoneName?: string;
|
|
113
|
+
};
|
|
114
|
+
windows?: {
|
|
115
|
+
timeZoneId?: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
clock?: {
|
|
120
|
+
kind?: string;
|
|
121
|
+
};
|
|
122
|
+
objectExtensions?: {
|
|
123
|
+
modules?: {
|
|
124
|
+
[x: string]: {
|
|
125
|
+
entities?: {
|
|
126
|
+
[x: string]: {
|
|
127
|
+
properties?: {
|
|
128
|
+
[x: string]: {
|
|
129
|
+
type?: string;
|
|
130
|
+
typeSimple?: string;
|
|
131
|
+
displayName?: {
|
|
132
|
+
name?: string;
|
|
133
|
+
resource?: string;
|
|
134
|
+
};
|
|
135
|
+
api?: {
|
|
136
|
+
onGet?: {
|
|
137
|
+
isAvailable?: boolean;
|
|
138
|
+
};
|
|
139
|
+
onCreate?: {
|
|
140
|
+
isAvailable?: boolean;
|
|
141
|
+
};
|
|
142
|
+
onUpdate?: {
|
|
143
|
+
isAvailable?: boolean;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
ui?: {
|
|
147
|
+
onTable?: {
|
|
148
|
+
isVisible?: boolean;
|
|
149
|
+
};
|
|
150
|
+
onCreateForm?: {
|
|
151
|
+
isVisible?: boolean;
|
|
152
|
+
};
|
|
153
|
+
onEditForm?: {
|
|
154
|
+
isVisible?: boolean;
|
|
155
|
+
};
|
|
156
|
+
lookup?: {
|
|
157
|
+
url?: string;
|
|
158
|
+
resultListPropertyName?: string;
|
|
159
|
+
displayPropertyName?: string;
|
|
160
|
+
valuePropertyName?: string;
|
|
161
|
+
filterParamName?: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
attributes?: import("../../public-api").ExtensionPropertyAttributeDto[];
|
|
165
|
+
configuration?: {
|
|
166
|
+
[x: string]: object;
|
|
167
|
+
};
|
|
168
|
+
defaultValue?: object;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
configuration?: {
|
|
172
|
+
[x: string]: object;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
configuration?: {
|
|
177
|
+
[x: string]: object;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
enums?: {
|
|
182
|
+
[x: string]: {
|
|
183
|
+
fields?: import("../../public-api").ExtensionEnumFieldDto[];
|
|
184
|
+
localizationResource?: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}>;
|
|
39
189
|
setEnvironment(_: any, { environment }: SetEnvironment): void;
|
|
40
190
|
setConfig({ patchState, getState }: StateContext<Config.State>, { state }: PatchConfigState): void;
|
|
41
191
|
}
|