@yuuvis/client-core 2.3.15 → 2.3.17
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.
|
@@ -3228,6 +3228,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
3228
3228
|
}]
|
|
3229
3229
|
}], ctorParameters: () => [] });
|
|
3230
3230
|
|
|
3231
|
+
/**
|
|
3232
|
+
* Providing functions,that are are injected at application startup and executed during app initialization.
|
|
3233
|
+
*/
|
|
3234
|
+
const init_moduleFnc = () => {
|
|
3235
|
+
const coreConfig = inject(CORE_CONFIG);
|
|
3236
|
+
const logger = inject(Logger);
|
|
3237
|
+
const http = inject(HttpClient);
|
|
3238
|
+
const configService = inject(ConfigService);
|
|
3239
|
+
const authService = inject(AuthService);
|
|
3240
|
+
authService.setInitialRequestUri();
|
|
3241
|
+
return coreConfig.main
|
|
3242
|
+
? !Array.isArray(coreConfig.main)
|
|
3243
|
+
? of([coreConfig.main])
|
|
3244
|
+
: forkJoin([...coreConfig.main].map((uri) => http.get(`${Utils.getBaseHref()}${uri}`).pipe(catchError((e) => {
|
|
3245
|
+
logger.error('failed to catch config file', e);
|
|
3246
|
+
return of({});
|
|
3247
|
+
}), map((res) => res)))).pipe(
|
|
3248
|
+
// switchMap((configs: YuvConfig[]) => configService.extendConfig(configs)),
|
|
3249
|
+
tap((configs) => configService.extendConfig(configs)), switchMap(() => authService.initUser().pipe(catchError((e) => {
|
|
3250
|
+
authService.initError = {
|
|
3251
|
+
status: e.status,
|
|
3252
|
+
key: e.error.error
|
|
3253
|
+
};
|
|
3254
|
+
return of(true);
|
|
3255
|
+
}))))
|
|
3256
|
+
: of(false);
|
|
3257
|
+
};
|
|
3258
|
+
|
|
3231
3259
|
var DeviceScreenOrientation;
|
|
3232
3260
|
(function (DeviceScreenOrientation) {
|
|
3233
3261
|
DeviceScreenOrientation["PORTRAIT"] = "portrait";
|
|
@@ -3235,6 +3263,8 @@ var DeviceScreenOrientation;
|
|
|
3235
3263
|
})(DeviceScreenOrientation || (DeviceScreenOrientation = {}));
|
|
3236
3264
|
|
|
3237
3265
|
/**
|
|
3266
|
+
* @deprecated This service is deprecated. Please use the DeviceService from the `@yuuvis/material` package instead.
|
|
3267
|
+
*
|
|
3238
3268
|
* This service is used to adapt styles and designs of the client to
|
|
3239
3269
|
* different devices and screen sizes.
|
|
3240
3270
|
*
|
|
@@ -3383,36 +3413,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
3383
3413
|
}]
|
|
3384
3414
|
}], ctorParameters: () => [] });
|
|
3385
3415
|
|
|
3386
|
-
/**
|
|
3387
|
-
* Providing functions,that are are injected at application startup and executed during app initialization.
|
|
3388
|
-
*/
|
|
3389
|
-
const init_moduleFnc = () => {
|
|
3390
|
-
const coreConfig = inject(CORE_CONFIG);
|
|
3391
|
-
const deviceService = inject(DeviceService);
|
|
3392
|
-
const logger = inject(Logger);
|
|
3393
|
-
const http = inject(HttpClient);
|
|
3394
|
-
const configService = inject(ConfigService);
|
|
3395
|
-
const authService = inject(AuthService);
|
|
3396
|
-
authService.setInitialRequestUri();
|
|
3397
|
-
deviceService.init();
|
|
3398
|
-
return coreConfig.main
|
|
3399
|
-
? !Array.isArray(coreConfig.main)
|
|
3400
|
-
? of([coreConfig.main])
|
|
3401
|
-
: forkJoin([...coreConfig.main].map((uri) => http.get(`${Utils.getBaseHref()}${uri}`).pipe(catchError((e) => {
|
|
3402
|
-
logger.error('failed to catch config file', e);
|
|
3403
|
-
return of({});
|
|
3404
|
-
}), map((res) => res)))).pipe(
|
|
3405
|
-
// switchMap((configs: YuvConfig[]) => configService.extendConfig(configs)),
|
|
3406
|
-
tap((configs) => configService.extendConfig(configs)), switchMap(() => authService.initUser().pipe(catchError((e) => {
|
|
3407
|
-
authService.initError = {
|
|
3408
|
-
status: e.status,
|
|
3409
|
-
key: e.error.error
|
|
3410
|
-
};
|
|
3411
|
-
return of(true);
|
|
3412
|
-
}))))
|
|
3413
|
-
: of(false);
|
|
3414
|
-
};
|
|
3415
|
-
|
|
3416
3416
|
const transformResponse = () => map((res) => (res && res.body ? res.body.objects.map((val) => val) : null));
|
|
3417
3417
|
/**
|
|
3418
3418
|
* Service for providing upload of different object types into a client.
|