@eui/core 18.0.0-next.23 → 18.0.0-next.24
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/docs/classes/ApiQueueServiceMock.html +28 -7
- package/docs/classes/AsyncStorageService.html +10 -0
- package/docs/classes/AsyncStorageServiceMock.html +8 -2
- package/docs/dependencies.html +18 -4
- package/docs/index.html +1 -1
- package/docs/injectables/CoreAppEffects.html +448 -0
- package/docs/injectables/GlobalErrorHandler.html +4 -1
- package/docs/injectables/LocaleServiceMock.html +12 -3
- package/docs/injectables/StoreServiceMock.html +20 -5
- package/docs/injectables/UserServiceMock.html +28 -7
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +35 -3
- package/esm2022/lib/eui-core.module.mjs +4 -4
- package/esm2022/lib/interceptors/add-lang-param.interceptor.mjs +3 -3
- package/esm2022/lib/interceptors/cache-prevention.interceptor.mjs +3 -3
- package/esm2022/lib/interceptors/cors-security.interceptor.mjs +3 -3
- package/esm2022/lib/interceptors/csrf-prevention.interceptor.mjs +3 -3
- package/esm2022/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +3 -3
- package/esm2022/lib/interceptors/ux-request-error-model.interceptor.mjs +3 -3
- package/esm2022/lib/services/app/eui-init-app.mjs +3 -3
- package/esm2022/lib/services/dynamic-component/dynamic-component.service.mjs +3 -3
- package/esm2022/lib/services/dynamic-menu/dynamic-menu.service.mjs +3 -3
- package/esm2022/lib/services/errors/global-error-handler.mjs +3 -3
- package/esm2022/lib/services/errors/http-error-handler.interceptor.mjs +3 -3
- package/esm2022/lib/services/eui-app-shell.service.mjs +3 -3
- package/esm2022/lib/services/eui-timezone.service.mjs +3 -3
- package/esm2022/lib/services/growl/eui-growl.service.mjs +3 -3
- package/esm2022/lib/services/i18n/i18n.loader.mjs +3 -3
- package/esm2022/lib/services/i18n/i18n.service.mjs +3 -3
- package/esm2022/lib/services/loader/eui-loader.service.mjs +3 -3
- package/esm2022/lib/services/locale/locale.service.mjs +4 -4
- package/esm2022/lib/services/locale/locale.service.mock.mjs +3 -3
- package/esm2022/lib/services/log/log.module.mjs +4 -4
- package/esm2022/lib/services/log/log.service.mjs +3 -3
- package/esm2022/lib/services/permission/permission.service.mjs +3 -3
- package/esm2022/lib/services/queue/api-queue.service.mjs +3 -3
- package/esm2022/lib/services/queue/api-queue.service.mock.mjs +1 -1
- package/esm2022/lib/services/storage/async-storage.service.mjs +1 -1
- package/esm2022/lib/services/storage/async-storage.service.mock.mjs +1 -1
- package/esm2022/lib/services/storage/local-forage.service.mjs +3 -3
- package/esm2022/lib/services/storage/local-storage.service.mjs +3 -3
- package/esm2022/lib/services/storage/session-storage.service.mjs +3 -3
- package/esm2022/lib/services/store/effects/app.effects.mjs +55 -0
- package/esm2022/lib/services/store/effects/index.mjs +4 -0
- package/esm2022/lib/services/store/index.mjs +2 -2
- package/esm2022/lib/services/store/reducers/user.reducers.mjs +2 -2
- package/esm2022/lib/services/store/store.service.mjs +3 -3
- package/esm2022/lib/services/store/store.service.mock.mjs +3 -3
- package/esm2022/lib/services/user/user.service.mjs +3 -3
- package/esm2022/lib/services/user/user.service.mock.mjs +3 -3
- package/fesm2022/eui-core.mjs +383 -329
- package/fesm2022/eui-core.mjs.map +4 -4
- package/lib/helpers/form-helpers.d.ts +2 -2
- package/lib/helpers/form-helpers.d.ts.map +1 -1
- package/lib/services/errors/global-error-handler.d.ts.map +1 -1
- package/lib/services/locale/locale.service.mock.d.ts.map +1 -1
- package/lib/services/log/log.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.mock.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.mock.d.ts.map +1 -1
- package/lib/services/store/effects/app.effects.d.ts +20 -0
- package/lib/services/store/effects/app.effects.d.ts.map +1 -0
- package/lib/services/store/effects/index.d.ts +4 -0
- package/lib/services/store/effects/index.d.ts.map +1 -0
- package/lib/services/store/index.d.ts +1 -0
- package/lib/services/store/index.d.ts.map +1 -1
- package/lib/services/store/store.service.mock.d.ts.map +1 -1
- package/lib/services/user/user.service.mock.d.ts.map +1 -1
- package/package.json +2 -2
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -99,22 +99,22 @@ function getRootLogConfig(appConfig) {
|
|
|
99
99
|
}
|
|
100
100
|
function prepareEuiAppConfigToken(euiConfig) {
|
|
101
101
|
const environment = euiConfig && euiConfig.environment;
|
|
102
|
-
const
|
|
102
|
+
const merge2 = environment.envDynamicConfig && environment.envDynamicConfig.merge && Array.isArray(environment.envDynamicConfig.merge) ? environment.envDynamicConfig.merge : [];
|
|
103
103
|
const isDeepMerge = environment.envDynamicConfig && environment.envDynamicConfig.deepMerge ? environment.envDynamicConfig.deepMerge : false;
|
|
104
104
|
const envAppJsonConfig = environment && environment.loadedEnvDynamicConfig;
|
|
105
105
|
const initialAppConfig = euiConfig && euiConfig.appConfig;
|
|
106
106
|
const envAppHandlersConfig = environment && environment.envAppHandlersConfig;
|
|
107
107
|
const envHandlersMergedAppConfig = mergeAppHandlerConfigToAppConfig(initialAppConfig, envAppHandlersConfig);
|
|
108
|
-
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig,
|
|
108
|
+
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig, merge2, isDeepMerge);
|
|
109
109
|
return finalConfig;
|
|
110
110
|
}
|
|
111
111
|
function mergeAppHandlerConfigToAppConfig(euiAppConfig, envAppHandler) {
|
|
112
112
|
return Object.assign({}, euiAppConfig, envAppHandler);
|
|
113
113
|
}
|
|
114
|
-
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig,
|
|
114
|
+
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge2, isDeepMerge) {
|
|
115
115
|
const deepMerged = {};
|
|
116
|
-
if (
|
|
117
|
-
|
|
116
|
+
if (merge2 && merge2.length > 0) {
|
|
117
|
+
merge2.forEach((key) => {
|
|
118
118
|
if (envAppJsonConfig != null && envAppJsonConfig[key] && typeof envAppJsonConfig[key] === "object" && euiAppConfig != null && euiAppConfig[key] && typeof euiAppConfig[key] === "object") {
|
|
119
119
|
if (isDeepMerge) {
|
|
120
120
|
deepMerged[key] = {};
|
|
@@ -288,6 +288,134 @@ var UpdateLocaleStateAction = class {
|
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
|
|
291
|
+
// lib/services/growl/eui-growl.service.mjs
|
|
292
|
+
import { Injectable } from "@angular/core";
|
|
293
|
+
import * as i0 from "@angular/core";
|
|
294
|
+
var EuiGrowlService = class _EuiGrowlService {
|
|
295
|
+
constructor() {
|
|
296
|
+
this.growlMessages = [];
|
|
297
|
+
this.isGrowlSticky = false;
|
|
298
|
+
this.isCloseAllSticky = false;
|
|
299
|
+
this.growlLife = 3e3;
|
|
300
|
+
this.growlPosition = "bottom-right";
|
|
301
|
+
this.growlCallback = null;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* displays a growl UxMessage item, isSticky
|
|
305
|
+
*/
|
|
306
|
+
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
307
|
+
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
308
|
+
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
309
|
+
} else {
|
|
310
|
+
if (isMultiple === void 0 || !isMultiple) {
|
|
311
|
+
this.growlMessages = [];
|
|
312
|
+
}
|
|
313
|
+
this.growlMessages = this.growlMessages.concat(msg);
|
|
314
|
+
msg.life = life || msg.life;
|
|
315
|
+
msg.sticky = isSticky || msg.sticky;
|
|
316
|
+
if (life === void 0 || isNaN(life)) {
|
|
317
|
+
if (msg.severity === "danger") {
|
|
318
|
+
isSticky = true;
|
|
319
|
+
} else {
|
|
320
|
+
this.growlLife = 3e3;
|
|
321
|
+
}
|
|
322
|
+
} else {
|
|
323
|
+
this.growlLife = life;
|
|
324
|
+
}
|
|
325
|
+
if (isSticky) {
|
|
326
|
+
this.isGrowlSticky = isSticky;
|
|
327
|
+
} else {
|
|
328
|
+
this.isGrowlSticky = false;
|
|
329
|
+
}
|
|
330
|
+
if (position2) {
|
|
331
|
+
this.growlPosition = position2;
|
|
332
|
+
}
|
|
333
|
+
if (callback) {
|
|
334
|
+
this.growlCallback = callback;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
clearGrowl() {
|
|
339
|
+
this.growlMessages = [];
|
|
340
|
+
}
|
|
341
|
+
growlSuccess(msg, position2) {
|
|
342
|
+
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
343
|
+
}
|
|
344
|
+
growlError(msg, position2) {
|
|
345
|
+
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
346
|
+
}
|
|
347
|
+
growlWarning(msg, position2) {
|
|
348
|
+
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
349
|
+
}
|
|
350
|
+
growlInfo(msg, position2) {
|
|
351
|
+
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
352
|
+
}
|
|
353
|
+
static {
|
|
354
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: _EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
355
|
+
}
|
|
356
|
+
static {
|
|
357
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: _EuiGrowlService, providedIn: "root" });
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
361
|
+
type: Injectable,
|
|
362
|
+
args: [{
|
|
363
|
+
providedIn: "root"
|
|
364
|
+
}]
|
|
365
|
+
}] });
|
|
366
|
+
|
|
367
|
+
// lib/services/store/effects/app.effects.mjs
|
|
368
|
+
import { Injectable as Injectable2, Inject } from "@angular/core";
|
|
369
|
+
import { ofType, createEffect } from "@ngrx/effects";
|
|
370
|
+
import { fromEvent, merge } from "rxjs";
|
|
371
|
+
import { map, mapTo, mergeMap, tap } from "rxjs/operators";
|
|
372
|
+
import * as i02 from "@angular/core";
|
|
373
|
+
import * as i1 from "@ngrx/effects";
|
|
374
|
+
import * as i2 from "@ngx-translate/core";
|
|
375
|
+
var CoreAppEffects = class _CoreAppEffects {
|
|
376
|
+
constructor(actions, showConnectionStatus, translateService, asService) {
|
|
377
|
+
this.actions = actions;
|
|
378
|
+
this.showConnectionStatus = showConnectionStatus;
|
|
379
|
+
this.translateService = translateService;
|
|
380
|
+
this.asService = asService;
|
|
381
|
+
this.getAppConnectionInformation = createEffect(() => merge(fromEvent(window, "online").pipe(mapTo(true)), fromEvent(window, "offline").pipe(mapTo(false))).pipe(map((connected) => new UpdateAppConnectionAction(connected))));
|
|
382
|
+
this.activatedRoute = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.ACTIVATED_ROUTE), map((action) => action.payload), mergeMap((route) => {
|
|
383
|
+
const module = route.snapshot.data["module"] || "undefined";
|
|
384
|
+
return [new UpdateCurrentModuleAction(module)];
|
|
385
|
+
})));
|
|
386
|
+
this.updateAppConnection = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.UPDATE_APP_CONNECTION), map((action) => action.payload), tap((connected) => {
|
|
387
|
+
const isFeatureEnabled = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.enabled : this.showConnectionStatus;
|
|
388
|
+
const lifespan = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.messageBox?.lifespan || 0 : 0;
|
|
389
|
+
if (isFeatureEnabled) {
|
|
390
|
+
if (connected) {
|
|
391
|
+
this.translateService.get("eui.CONNECTED").subscribe((translation) => {
|
|
392
|
+
this.asService.growl({ severity: "success", summary: "MESSAGE", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
393
|
+
});
|
|
394
|
+
} else {
|
|
395
|
+
this.translateService.get("eui.NOTCONNECTED").subscribe((translation) => {
|
|
396
|
+
this.asService.growl({ severity: "danger", summary: "ERROR", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
})), { dispatch: false });
|
|
401
|
+
}
|
|
402
|
+
static {
|
|
403
|
+
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: _CoreAppEffects, deps: [{ token: i1.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: EuiGrowlService }], target: i02.ɵɵFactoryTarget.Injectable });
|
|
404
|
+
}
|
|
405
|
+
static {
|
|
406
|
+
this.ɵprov = i02.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: _CoreAppEffects });
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: CoreAppEffects, decorators: [{
|
|
410
|
+
type: Injectable2
|
|
411
|
+
}], ctorParameters: () => [{ type: i1.Actions }, { type: void 0, decorators: [{
|
|
412
|
+
type: Inject,
|
|
413
|
+
args: [SHOW_CONNECTION_STATUS_TOKEN]
|
|
414
|
+
}] }, { type: i2.TranslateService }, { type: EuiGrowlService }] });
|
|
415
|
+
|
|
416
|
+
// lib/services/store/effects/index.mjs
|
|
417
|
+
var CoreModuleEffects = [CoreAppEffects];
|
|
418
|
+
|
|
291
419
|
// lib/services/store/reducers/app.reducers.mjs
|
|
292
420
|
import { initialAppState } from "@eui/base";
|
|
293
421
|
var updateAppVersion = (state, action) => ({ ...state, version: action.payload });
|
|
@@ -353,7 +481,7 @@ var updateUserDetails = (state, action) => {
|
|
|
353
481
|
if (!fullName) {
|
|
354
482
|
fullName = `${action.payload.firstName || ""} ${action.payload.lastName || ""}`.trim();
|
|
355
483
|
}
|
|
356
|
-
const details = Object.assign({}, state
|
|
484
|
+
const details = Object.assign({}, state["details"], action.payload, { fullName });
|
|
357
485
|
return Object.assign({}, state, details);
|
|
358
486
|
};
|
|
359
487
|
var updateUserPreferences = (state, action) => {
|
|
@@ -485,10 +613,10 @@ var cb = (reducer, storage) => (state, action) => {
|
|
|
485
613
|
};
|
|
486
614
|
|
|
487
615
|
// lib/services/log/log.service.mjs
|
|
488
|
-
import { Inject, Injectable, InjectionToken as InjectionToken2 } from "@angular/core";
|
|
616
|
+
import { Inject as Inject2, Injectable as Injectable3, InjectionToken as InjectionToken2 } from "@angular/core";
|
|
489
617
|
import { Logger } from "@eui/base";
|
|
490
|
-
import * as
|
|
491
|
-
import * as
|
|
618
|
+
import * as i03 from "@angular/core";
|
|
619
|
+
import * as i12 from "@eui/base";
|
|
492
620
|
var BASE_LOGGER_NAME_TOKEN = new InjectionToken2("BASE_LOGGER_NAME");
|
|
493
621
|
var LOG_LEVEL_TOKEN = new InjectionToken2("LOG_LEVEL");
|
|
494
622
|
var LOG_APPENDERS_TOKEN = new InjectionToken2("LOG_APPENDERS");
|
|
@@ -515,22 +643,22 @@ var LogService = class _LogService extends Logger {
|
|
|
515
643
|
return logger;
|
|
516
644
|
}
|
|
517
645
|
static {
|
|
518
|
-
this.ɵfac =
|
|
646
|
+
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: _LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i03.ɵɵFactoryTarget.Injectable });
|
|
519
647
|
}
|
|
520
648
|
static {
|
|
521
|
-
this.ɵprov =
|
|
649
|
+
this.ɵprov = i03.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: _LogService });
|
|
522
650
|
}
|
|
523
651
|
};
|
|
524
|
-
|
|
525
|
-
type:
|
|
652
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: LogService, decorators: [{
|
|
653
|
+
type: Injectable3
|
|
526
654
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
527
|
-
type:
|
|
655
|
+
type: Inject2,
|
|
528
656
|
args: [BASE_LOGGER_NAME_TOKEN]
|
|
529
|
-
}] }, { type:
|
|
530
|
-
type:
|
|
657
|
+
}] }, { type: i12.LogLevel, decorators: [{
|
|
658
|
+
type: Inject2,
|
|
531
659
|
args: [LOG_LEVEL_TOKEN]
|
|
532
660
|
}] }, { type: void 0, decorators: [{
|
|
533
|
-
type:
|
|
661
|
+
type: Inject2,
|
|
534
662
|
args: [LOG_APPENDERS_TOKEN]
|
|
535
663
|
}] }] });
|
|
536
664
|
|
|
@@ -574,7 +702,7 @@ function euiLogServiceFactory(injector, rootBaseLoggerName, rootConfig, childBas
|
|
|
574
702
|
|
|
575
703
|
// lib/services/log/log.module.mjs
|
|
576
704
|
import { InjectionToken as InjectionToken3, Injector, NgModule } from "@angular/core";
|
|
577
|
-
import * as
|
|
705
|
+
import * as i04 from "@angular/core";
|
|
578
706
|
var LOG_MODULE_CONFIG_TOKEN = new InjectionToken3("LOG_CONFIG");
|
|
579
707
|
var LogModule = class _LogModule {
|
|
580
708
|
/** method called in your root module to provide the LogService */
|
|
@@ -598,25 +726,25 @@ var LogModule = class _LogModule {
|
|
|
598
726
|
};
|
|
599
727
|
}
|
|
600
728
|
static {
|
|
601
|
-
this.ɵfac =
|
|
729
|
+
this.ɵfac = i04.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i04, type: _LogModule, deps: [], target: i04.ɵɵFactoryTarget.NgModule });
|
|
602
730
|
}
|
|
603
731
|
static {
|
|
604
|
-
this.ɵmod =
|
|
732
|
+
this.ɵmod = i04.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i04, type: _LogModule });
|
|
605
733
|
}
|
|
606
734
|
static {
|
|
607
|
-
this.ɵinj =
|
|
735
|
+
this.ɵinj = i04.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i04, type: _LogModule });
|
|
608
736
|
}
|
|
609
737
|
};
|
|
610
|
-
|
|
738
|
+
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i04, type: LogModule, decorators: [{
|
|
611
739
|
type: NgModule
|
|
612
740
|
}] });
|
|
613
741
|
|
|
614
742
|
// lib/services/store/store.service.mjs
|
|
615
|
-
import { Injectable as
|
|
743
|
+
import { Injectable as Injectable4, Optional } from "@angular/core";
|
|
616
744
|
import { throwError } from "rxjs";
|
|
617
745
|
import { debounceTime, distinctUntilChanged } from "rxjs/operators";
|
|
618
|
-
import * as
|
|
619
|
-
import * as
|
|
746
|
+
import * as i05 from "@angular/core";
|
|
747
|
+
import * as i13 from "@ngrx/store";
|
|
620
748
|
var BrowserStorageType;
|
|
621
749
|
(function(BrowserStorageType2) {
|
|
622
750
|
BrowserStorageType2[BrowserStorageType2["local"] = 0] = "local";
|
|
@@ -708,18 +836,18 @@ var StoreService = class _StoreService {
|
|
|
708
836
|
}
|
|
709
837
|
}
|
|
710
838
|
static {
|
|
711
|
-
this.ɵfac =
|
|
839
|
+
this.ɵfac = i05.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i05, type: _StoreService, deps: [{ token: i13.Store, optional: true }, { token: LogService, optional: true }], target: i05.ɵɵFactoryTarget.Injectable });
|
|
712
840
|
}
|
|
713
841
|
static {
|
|
714
|
-
this.ɵprov =
|
|
842
|
+
this.ɵprov = i05.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i05, type: _StoreService, providedIn: "root" });
|
|
715
843
|
}
|
|
716
844
|
};
|
|
717
|
-
|
|
718
|
-
type:
|
|
845
|
+
i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i05, type: StoreService, decorators: [{
|
|
846
|
+
type: Injectable4,
|
|
719
847
|
args: [{
|
|
720
848
|
providedIn: "root"
|
|
721
849
|
}]
|
|
722
|
-
}], ctorParameters: () => [{ type:
|
|
850
|
+
}], ctorParameters: () => [{ type: i13.Store, decorators: [{
|
|
723
851
|
type: Optional
|
|
724
852
|
}] }, { type: LogService, decorators: [{
|
|
725
853
|
type: Optional
|
|
@@ -727,8 +855,8 @@ i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3",
|
|
|
727
855
|
|
|
728
856
|
// lib/services/store/store.service.mock.mjs
|
|
729
857
|
import { of } from "rxjs";
|
|
730
|
-
import { Injectable as
|
|
731
|
-
import * as
|
|
858
|
+
import { Injectable as Injectable5 } from "@angular/core";
|
|
859
|
+
import * as i06 from "@angular/core";
|
|
732
860
|
var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
733
861
|
constructor() {
|
|
734
862
|
super(null, null);
|
|
@@ -745,14 +873,14 @@ var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
|
745
873
|
return of({});
|
|
746
874
|
}
|
|
747
875
|
static {
|
|
748
|
-
this.ɵfac =
|
|
876
|
+
this.ɵfac = i06.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i06, type: _StoreServiceMock, deps: [], target: i06.ɵɵFactoryTarget.Injectable });
|
|
749
877
|
}
|
|
750
878
|
static {
|
|
751
|
-
this.ɵprov =
|
|
879
|
+
this.ɵprov = i06.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i06, type: _StoreServiceMock });
|
|
752
880
|
}
|
|
753
881
|
};
|
|
754
|
-
|
|
755
|
-
type:
|
|
882
|
+
i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i06, type: StoreServiceMock, decorators: [{
|
|
883
|
+
type: Injectable5
|
|
756
884
|
}], ctorParameters: () => [] });
|
|
757
885
|
|
|
758
886
|
// lib/services/app/eui-init-app.mjs
|
|
@@ -768,8 +896,8 @@ var euiInitApp = (injector) => () => new Promise((resolve) => {
|
|
|
768
896
|
appVersion = "0.0.0";
|
|
769
897
|
}
|
|
770
898
|
let storageType;
|
|
771
|
-
if (appConfig && appConfig
|
|
772
|
-
storageType = appConfig
|
|
899
|
+
if (appConfig && appConfig["saveStateStorage"]) {
|
|
900
|
+
storageType = appConfig["saveStateStorage"];
|
|
773
901
|
} else {
|
|
774
902
|
storageType = BrowserStorageType.local;
|
|
775
903
|
}
|
|
@@ -818,8 +946,8 @@ function getCoreChildProviders(moduleName) {
|
|
|
818
946
|
}
|
|
819
947
|
|
|
820
948
|
// lib/eui-core.module.mjs
|
|
821
|
-
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as
|
|
822
|
-
import * as
|
|
949
|
+
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as Inject3 } from "@angular/core";
|
|
950
|
+
import * as i07 from "@angular/core";
|
|
823
951
|
var CORE_ROOT_GUARD = new InjectionToken4("Internal Theme ForRoot Guard");
|
|
824
952
|
var CoreModule = class _CoreModule {
|
|
825
953
|
/**
|
|
@@ -858,16 +986,16 @@ var CoreModule = class _CoreModule {
|
|
|
858
986
|
}
|
|
859
987
|
}
|
|
860
988
|
static {
|
|
861
|
-
this.ɵfac =
|
|
989
|
+
this.ɵfac = i07.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i07, type: _CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: _CoreModule, optional: true, skipSelf: true }, { token: i07.Injector }], target: i07.ɵɵFactoryTarget.NgModule });
|
|
862
990
|
}
|
|
863
991
|
static {
|
|
864
|
-
this.ɵmod =
|
|
992
|
+
this.ɵmod = i07.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i07, type: _CoreModule });
|
|
865
993
|
}
|
|
866
994
|
static {
|
|
867
|
-
this.ɵinj =
|
|
995
|
+
this.ɵinj = i07.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i07, type: _CoreModule });
|
|
868
996
|
}
|
|
869
997
|
};
|
|
870
|
-
|
|
998
|
+
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i07, type: CoreModule, decorators: [{
|
|
871
999
|
type: NgModule2,
|
|
872
1000
|
args: [{
|
|
873
1001
|
imports: [
|
|
@@ -877,13 +1005,13 @@ i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3",
|
|
|
877
1005
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
878
1006
|
type: Optional2
|
|
879
1007
|
}, {
|
|
880
|
-
type:
|
|
1008
|
+
type: Inject3,
|
|
881
1009
|
args: [CORE_ROOT_GUARD]
|
|
882
1010
|
}] }, { type: CoreModule, decorators: [{
|
|
883
1011
|
type: Optional2
|
|
884
1012
|
}, {
|
|
885
1013
|
type: SkipSelf
|
|
886
|
-
}] }, { type:
|
|
1014
|
+
}] }, { type: i07.Injector }] });
|
|
887
1015
|
var createEuiCoreRootGuard = (core) => {
|
|
888
1016
|
if (core) {
|
|
889
1017
|
throw new TypeError("CoreModule.forRoot() called twice. Feature modules should use ThemeModule.forChild() instead.");
|
|
@@ -962,8 +1090,8 @@ var EuiError = class extends ErrorSubClass {
|
|
|
962
1090
|
};
|
|
963
1091
|
|
|
964
1092
|
// lib/services/errors/global-error-handler.mjs
|
|
965
|
-
import { ErrorHandler, Injectable as
|
|
966
|
-
import * as
|
|
1093
|
+
import { ErrorHandler, Injectable as Injectable6 } from "@angular/core";
|
|
1094
|
+
import * as i08 from "@angular/core";
|
|
967
1095
|
var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
968
1096
|
constructor(logService) {
|
|
969
1097
|
super();
|
|
@@ -976,25 +1104,25 @@ var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
|
976
1104
|
super.handleError(error);
|
|
977
1105
|
}
|
|
978
1106
|
static {
|
|
979
|
-
this.ɵfac =
|
|
1107
|
+
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: _GlobalErrorHandler, deps: [{ token: LogService }], target: i08.ɵɵFactoryTarget.Injectable });
|
|
980
1108
|
}
|
|
981
1109
|
static {
|
|
982
|
-
this.ɵprov =
|
|
1110
|
+
this.ɵprov = i08.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: _GlobalErrorHandler, providedIn: "root" });
|
|
983
1111
|
}
|
|
984
1112
|
};
|
|
985
|
-
|
|
986
|
-
type:
|
|
1113
|
+
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: GlobalErrorHandler, decorators: [{
|
|
1114
|
+
type: Injectable6,
|
|
987
1115
|
args: [{
|
|
988
1116
|
providedIn: "root"
|
|
989
1117
|
}]
|
|
990
1118
|
}], ctorParameters: () => [{ type: LogService }] });
|
|
991
1119
|
|
|
992
1120
|
// lib/services/errors/http-error-handler.interceptor.mjs
|
|
993
|
-
import { Inject as
|
|
1121
|
+
import { Inject as Inject4, Injectable as Injectable7 } from "@angular/core";
|
|
994
1122
|
import { HttpErrorResponse } from "@angular/common/http";
|
|
995
|
-
import { tap } from "rxjs/operators";
|
|
996
|
-
import * as
|
|
997
|
-
import * as
|
|
1123
|
+
import { tap as tap2 } from "rxjs/operators";
|
|
1124
|
+
import * as i09 from "@angular/core";
|
|
1125
|
+
import * as i14 from "@angular/router";
|
|
998
1126
|
var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
999
1127
|
constructor(config = DEFAULT_HTTP_ERROR_HANDLER_CONFIG, injector, router) {
|
|
1000
1128
|
this.config = config;
|
|
@@ -1004,7 +1132,7 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1004
1132
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1005
1133
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1006
1134
|
intercept(req, next) {
|
|
1007
|
-
return next.handle(req).pipe(
|
|
1135
|
+
return next.handle(req).pipe(tap2({
|
|
1008
1136
|
next: () => {
|
|
1009
1137
|
},
|
|
1010
1138
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
@@ -1036,94 +1164,18 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1036
1164
|
return routes.length > 0 ? routes[0] : null;
|
|
1037
1165
|
}
|
|
1038
1166
|
static {
|
|
1039
|
-
this.ɵfac =
|
|
1167
|
+
this.ɵfac = i09.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i09, type: _HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i09.Injector }, { token: i14.Router }], target: i09.ɵɵFactoryTarget.Injectable });
|
|
1040
1168
|
}
|
|
1041
1169
|
static {
|
|
1042
|
-
this.ɵprov =
|
|
1170
|
+
this.ɵprov = i09.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i09, type: _HttpErrorHandlerInterceptor });
|
|
1043
1171
|
}
|
|
1044
1172
|
};
|
|
1045
|
-
|
|
1046
|
-
type:
|
|
1173
|
+
i09.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i09, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1174
|
+
type: Injectable7
|
|
1047
1175
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1048
|
-
type:
|
|
1176
|
+
type: Inject4,
|
|
1049
1177
|
args: [HTTP_ERROR_HANDLER_CONFIG_TOKEN]
|
|
1050
|
-
}] }, { type:
|
|
1051
|
-
|
|
1052
|
-
// lib/services/growl/eui-growl.service.mjs
|
|
1053
|
-
import { Injectable as Injectable6 } from "@angular/core";
|
|
1054
|
-
import * as i08 from "@angular/core";
|
|
1055
|
-
var EuiGrowlService = class _EuiGrowlService {
|
|
1056
|
-
constructor() {
|
|
1057
|
-
this.growlMessages = [];
|
|
1058
|
-
this.isGrowlSticky = false;
|
|
1059
|
-
this.isCloseAllSticky = false;
|
|
1060
|
-
this.growlLife = 3e3;
|
|
1061
|
-
this.growlPosition = "bottom-right";
|
|
1062
|
-
this.growlCallback = null;
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* displays a growl UxMessage item, isSticky
|
|
1066
|
-
*/
|
|
1067
|
-
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
1068
|
-
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
1069
|
-
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
1070
|
-
} else {
|
|
1071
|
-
if (isMultiple === void 0 || !isMultiple) {
|
|
1072
|
-
this.growlMessages = [];
|
|
1073
|
-
}
|
|
1074
|
-
this.growlMessages = this.growlMessages.concat(msg);
|
|
1075
|
-
msg.life = life || msg.life;
|
|
1076
|
-
msg.sticky = isSticky || msg.sticky;
|
|
1077
|
-
if (life === void 0 || isNaN(life)) {
|
|
1078
|
-
if (msg.severity === "danger") {
|
|
1079
|
-
isSticky = true;
|
|
1080
|
-
} else {
|
|
1081
|
-
this.growlLife = 3e3;
|
|
1082
|
-
}
|
|
1083
|
-
} else {
|
|
1084
|
-
this.growlLife = life;
|
|
1085
|
-
}
|
|
1086
|
-
if (isSticky) {
|
|
1087
|
-
this.isGrowlSticky = isSticky;
|
|
1088
|
-
} else {
|
|
1089
|
-
this.isGrowlSticky = false;
|
|
1090
|
-
}
|
|
1091
|
-
if (position2) {
|
|
1092
|
-
this.growlPosition = position2;
|
|
1093
|
-
}
|
|
1094
|
-
if (callback) {
|
|
1095
|
-
this.growlCallback = callback;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
clearGrowl() {
|
|
1100
|
-
this.growlMessages = [];
|
|
1101
|
-
}
|
|
1102
|
-
growlSuccess(msg, position2) {
|
|
1103
|
-
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
1104
|
-
}
|
|
1105
|
-
growlError(msg, position2) {
|
|
1106
|
-
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
1107
|
-
}
|
|
1108
|
-
growlWarning(msg, position2) {
|
|
1109
|
-
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
1110
|
-
}
|
|
1111
|
-
growlInfo(msg, position2) {
|
|
1112
|
-
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
1113
|
-
}
|
|
1114
|
-
static {
|
|
1115
|
-
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: _EuiGrowlService, deps: [], target: i08.ɵɵFactoryTarget.Injectable });
|
|
1116
|
-
}
|
|
1117
|
-
static {
|
|
1118
|
-
this.ɵprov = i08.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: _EuiGrowlService, providedIn: "root" });
|
|
1119
|
-
}
|
|
1120
|
-
};
|
|
1121
|
-
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: EuiGrowlService, decorators: [{
|
|
1122
|
-
type: Injectable6,
|
|
1123
|
-
args: [{
|
|
1124
|
-
providedIn: "root"
|
|
1125
|
-
}]
|
|
1126
|
-
}] });
|
|
1178
|
+
}] }, { type: i09.Injector }, { type: i14.Router }] });
|
|
1127
1179
|
|
|
1128
1180
|
// lib/services/errors/http-error-handler-callback-functions.mjs
|
|
1129
1181
|
function AlertHttpErrorCallbackFn(error) {
|
|
@@ -1142,12 +1194,12 @@ function GrowlHttpErrorCallbackFn(error, injector) {
|
|
|
1142
1194
|
}
|
|
1143
1195
|
|
|
1144
1196
|
// lib/services/queue/api-queue.service.mjs
|
|
1145
|
-
import { Injectable as
|
|
1197
|
+
import { Injectable as Injectable8, Optional as Optional3 } from "@angular/core";
|
|
1146
1198
|
import { of as of2, forkJoin, from } from "rxjs";
|
|
1147
|
-
import { tap as
|
|
1199
|
+
import { tap as tap3, switchMap, take, map as map2, catchError, concatMap } from "rxjs/operators";
|
|
1148
1200
|
import { getApiQueue, getApiQueueItem } from "@eui/base";
|
|
1149
|
-
import * as
|
|
1150
|
-
import * as
|
|
1201
|
+
import * as i010 from "@angular/core";
|
|
1202
|
+
import * as i22 from "@angular/common/http";
|
|
1151
1203
|
var ApiQueueService = class _ApiQueueService {
|
|
1152
1204
|
constructor(store, http, logService) {
|
|
1153
1205
|
this.store = store;
|
|
@@ -1208,7 +1260,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1208
1260
|
* });
|
|
1209
1261
|
*/
|
|
1210
1262
|
getQueue() {
|
|
1211
|
-
return this.store.select(getApiQueue).pipe(take(1),
|
|
1263
|
+
return this.store.select(getApiQueue).pipe(take(1), map2((queue) => {
|
|
1212
1264
|
const queueArray = queue && Object.values(queue);
|
|
1213
1265
|
if (!queueArray || queueArray.length < 1) {
|
|
1214
1266
|
this.logger?.warn("No items in the queue exist.");
|
|
@@ -1242,7 +1294,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1242
1294
|
* });
|
|
1243
1295
|
*/
|
|
1244
1296
|
getQueueItem(id) {
|
|
1245
|
-
return this.store.select(getApiQueueItem(id)).pipe(take(1),
|
|
1297
|
+
return this.store.select(getApiQueueItem(id)).pipe(take(1), map2((queue) => {
|
|
1246
1298
|
if (!queue) {
|
|
1247
1299
|
this.logger?.warn(`Queue item with id "${id}" does not exist`);
|
|
1248
1300
|
return null;
|
|
@@ -1343,7 +1395,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1343
1395
|
// TODO: Refine the return type to be more specific or implement generics, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1344
1396
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1345
1397
|
processAllQueueItems(continueOnError = true) {
|
|
1346
|
-
return this.store.select(getApiQueue).pipe(
|
|
1398
|
+
return this.store.select(getApiQueue).pipe(map2((queue) => Object.entries(queue).map(([key, value]) => this.buildHttpRequest(key, value).pipe(catchError((error) => {
|
|
1347
1399
|
this.logger?.error(`Queue Item with id ${key} failed.`, error.message, error.stack);
|
|
1348
1400
|
if (!continueOnError) {
|
|
1349
1401
|
throw error;
|
|
@@ -1425,21 +1477,21 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1425
1477
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1426
1478
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1427
1479
|
buildHttpRequest(id, item) {
|
|
1428
|
-
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(
|
|
1480
|
+
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap3(() => this.removeQueueItem(id)));
|
|
1429
1481
|
}
|
|
1430
1482
|
static {
|
|
1431
|
-
this.ɵfac =
|
|
1483
|
+
this.ɵfac = i010.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i010, type: _ApiQueueService, deps: [{ token: StoreService }, { token: i22.HttpClient }, { token: LogService, optional: true }], target: i010.ɵɵFactoryTarget.Injectable });
|
|
1432
1484
|
}
|
|
1433
1485
|
static {
|
|
1434
|
-
this.ɵprov =
|
|
1486
|
+
this.ɵprov = i010.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i010, type: _ApiQueueService, providedIn: "root" });
|
|
1435
1487
|
}
|
|
1436
1488
|
};
|
|
1437
|
-
|
|
1438
|
-
type:
|
|
1489
|
+
i010.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i010, type: ApiQueueService, decorators: [{
|
|
1490
|
+
type: Injectable8,
|
|
1439
1491
|
args: [{
|
|
1440
1492
|
providedIn: "root"
|
|
1441
1493
|
}]
|
|
1442
|
-
}], ctorParameters: () => [{ type: StoreService }, { type:
|
|
1494
|
+
}], ctorParameters: () => [{ type: StoreService }, { type: i22.HttpClient }, { type: LogService, decorators: [{
|
|
1443
1495
|
type: Optional3
|
|
1444
1496
|
}] }] });
|
|
1445
1497
|
|
|
@@ -1520,13 +1572,13 @@ var I18nResourceImpl = class {
|
|
|
1520
1572
|
};
|
|
1521
1573
|
|
|
1522
1574
|
// lib/services/i18n/i18n.loader.mjs
|
|
1523
|
-
import { Inject as
|
|
1575
|
+
import { Inject as Inject5, Injectable as Injectable9, Optional as Optional4 } from "@angular/core";
|
|
1524
1576
|
import { TranslateLoader } from "@ngx-translate/core";
|
|
1525
1577
|
import { forkJoin as forkJoin2, of as of4 } from "rxjs";
|
|
1526
|
-
import { catchError as catchError2, map as
|
|
1578
|
+
import { catchError as catchError2, map as map3 } from "rxjs/operators";
|
|
1527
1579
|
import { getI18nLoaderConfig, mergeAll } from "@eui/base";
|
|
1528
|
-
import * as
|
|
1529
|
-
import * as
|
|
1580
|
+
import * as i011 from "@angular/core";
|
|
1581
|
+
import * as i15 from "@angular/common/http";
|
|
1530
1582
|
var I18nLoader = class _I18nLoader {
|
|
1531
1583
|
constructor(http, logService, euiAppConfig) {
|
|
1532
1584
|
this.http = http;
|
|
@@ -1550,7 +1602,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1550
1602
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1551
1603
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1552
1604
|
getTranslation(lang) {
|
|
1553
|
-
return this.loadResources(this.resources, lang).pipe(
|
|
1605
|
+
return this.loadResources(this.resources, lang).pipe(map3((loadedResources) => {
|
|
1554
1606
|
this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
|
|
1555
1607
|
return loadedResources.translations;
|
|
1556
1608
|
}));
|
|
@@ -1585,7 +1637,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1585
1637
|
loadResources(resources, lang) {
|
|
1586
1638
|
if (Array.isArray(resources) && resources.length > 0) {
|
|
1587
1639
|
const requests = resources.map((resource) => this.loadResource(resource, lang));
|
|
1588
|
-
return forkJoin2(requests).pipe(
|
|
1640
|
+
return forkJoin2(requests).pipe(map3((response) => {
|
|
1589
1641
|
const successResp = [];
|
|
1590
1642
|
const errResp = [];
|
|
1591
1643
|
response.forEach((item) => {
|
|
@@ -1649,10 +1701,10 @@ var I18nLoader = class _I18nLoader {
|
|
|
1649
1701
|
// preprocess the translations using the resource compiler
|
|
1650
1702
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1651
1703
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1652
|
-
|
|
1704
|
+
map3((translations) => resource.compileTranslations(translations, lang)),
|
|
1653
1705
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1654
1706
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1655
|
-
|
|
1707
|
+
map3((translations) => {
|
|
1656
1708
|
this.logger?.info(`I18n resource loaded from path ${path}`);
|
|
1657
1709
|
return translations;
|
|
1658
1710
|
}),
|
|
@@ -1671,18 +1723,18 @@ var I18nLoader = class _I18nLoader {
|
|
|
1671
1723
|
return void 0;
|
|
1672
1724
|
}
|
|
1673
1725
|
static {
|
|
1674
|
-
this.ɵfac =
|
|
1726
|
+
this.ɵfac = i011.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i011, type: _I18nLoader, deps: [{ token: i15.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i011.ɵɵFactoryTarget.Injectable });
|
|
1675
1727
|
}
|
|
1676
1728
|
static {
|
|
1677
|
-
this.ɵprov =
|
|
1729
|
+
this.ɵprov = i011.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i011, type: _I18nLoader });
|
|
1678
1730
|
}
|
|
1679
1731
|
};
|
|
1680
|
-
|
|
1681
|
-
type:
|
|
1682
|
-
}], ctorParameters: () => [{ type:
|
|
1732
|
+
i011.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i011, type: I18nLoader, decorators: [{
|
|
1733
|
+
type: Injectable9
|
|
1734
|
+
}], ctorParameters: () => [{ type: i15.HttpClient }, { type: LogService, decorators: [{
|
|
1683
1735
|
type: Optional4
|
|
1684
1736
|
}] }, { type: void 0, decorators: [{
|
|
1685
|
-
type:
|
|
1737
|
+
type: Inject5,
|
|
1686
1738
|
args: [CONFIG_TOKEN]
|
|
1687
1739
|
}] }] });
|
|
1688
1740
|
var translateConfig = {
|
|
@@ -1694,13 +1746,13 @@ var translateConfig = {
|
|
|
1694
1746
|
|
|
1695
1747
|
// lib/services/i18n/i18n.service.mjs
|
|
1696
1748
|
import { DOCUMENT } from "@angular/common";
|
|
1697
|
-
import { Inject as
|
|
1749
|
+
import { Inject as Inject6, Injectable as Injectable10, Optional as Optional5 } from "@angular/core";
|
|
1698
1750
|
import { BehaviorSubject, forkJoin as forkJoin3, of as of5 } from "rxjs";
|
|
1699
|
-
import { catchError as catchError3, filter, map as
|
|
1751
|
+
import { catchError as catchError3, filter, map as map4, take as take2, tap as tap4, switchMap as switchMap2 } from "rxjs/operators";
|
|
1700
1752
|
import { EuiLazyService, getI18nServiceConfigFromBase, getI18nState, getActiveLang, getLastAddedModule, getBrowserDefaultLanguage, EuiEuLanguages } from "@eui/base";
|
|
1701
1753
|
import { createSelector } from "@ngrx/store";
|
|
1702
|
-
import * as
|
|
1703
|
-
import * as
|
|
1754
|
+
import * as i012 from "@angular/core";
|
|
1755
|
+
import * as i16 from "@ngx-translate/core";
|
|
1704
1756
|
var I18nService = class _I18nService extends EuiLazyService {
|
|
1705
1757
|
constructor(baseGlobalConfig, translateService, logService, store, document2) {
|
|
1706
1758
|
super({ activeLang: "en" });
|
|
@@ -1746,7 +1798,7 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
1746
1798
|
}
|
|
1747
1799
|
onReady(moduleName) {
|
|
1748
1800
|
return this.onModuleLoad.pipe(
|
|
1749
|
-
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(
|
|
1801
|
+
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(tap4((m) => moduleName = m), map4(() => evt))),
|
|
1750
1802
|
// emit only if event emitted matches the module name and is ready
|
|
1751
1803
|
filter((evt) => evt.ready === true && evt.name === moduleName),
|
|
1752
1804
|
// make sure that observable completes
|
|
@@ -1775,16 +1827,16 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
1775
1827
|
const langSubscription = [];
|
|
1776
1828
|
const i18nLoader = loader;
|
|
1777
1829
|
const resources = i18nLoader.addResources(config);
|
|
1778
|
-
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1),
|
|
1830
|
+
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1), tap4((loadedResources) => {
|
|
1779
1831
|
this.translateService.setTranslation(this.translateService.currentLang, loadedResources.translations, true);
|
|
1780
1832
|
})));
|
|
1781
1833
|
const defaultLang = this.config.defaultLanguage || this.translateService.defaultLang;
|
|
1782
1834
|
if (this.translateService.currentLang !== defaultLang) {
|
|
1783
|
-
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1),
|
|
1835
|
+
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1), tap4((loadedResources) => {
|
|
1784
1836
|
this.translateService.setTranslation(defaultLang, loadedResources.translations, true);
|
|
1785
1837
|
})));
|
|
1786
1838
|
}
|
|
1787
|
-
return forkJoin3(langSubscription).pipe(
|
|
1839
|
+
return forkJoin3(langSubscription).pipe(map4((loadedResourcesArr) => !loadedResourcesArr[0].hasError ? { success: true } : { success: false, error: loadedResourcesArr[0].errors }), tap4(() => {
|
|
1788
1840
|
this.onModuleLoad.next({ ready: true, name: moduleName });
|
|
1789
1841
|
}), catchError3((error) => {
|
|
1790
1842
|
this.onModuleLoad.next({ ready: true, name: moduleName, error });
|
|
@@ -1816,13 +1868,13 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
1816
1868
|
this.logService.info(`I18n accepted languages set to ${EuiEuLanguages.getLanguageCodes(this.config.languages)}`);
|
|
1817
1869
|
}
|
|
1818
1870
|
}
|
|
1819
|
-
return this.translateService.use(initLanguage).pipe(
|
|
1871
|
+
return this.translateService.use(initLanguage).pipe(tap4(() => {
|
|
1820
1872
|
this.bindActiveLangStateToTranslateService();
|
|
1821
1873
|
this.bindTranslateServiceLangChangeToState();
|
|
1822
1874
|
if (this.config.defaultLanguage) {
|
|
1823
1875
|
this.setDefaultLanguage(this.config.defaultLanguage);
|
|
1824
1876
|
}
|
|
1825
|
-
}),
|
|
1877
|
+
}), map4(() => {
|
|
1826
1878
|
if (this.translateService.currentLoader instanceof I18nLoader) {
|
|
1827
1879
|
const failedResources = this.translateService.currentLoader.getFailedResources();
|
|
1828
1880
|
if (failedResources.length > 0) {
|
|
@@ -1876,24 +1928,24 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
1876
1928
|
this.document.documentElement.lang = lang;
|
|
1877
1929
|
}
|
|
1878
1930
|
static {
|
|
1879
|
-
this.ɵfac =
|
|
1931
|
+
this.ɵfac = i012.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i012, type: _I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i16.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i012.ɵɵFactoryTarget.Injectable });
|
|
1880
1932
|
}
|
|
1881
1933
|
static {
|
|
1882
|
-
this.ɵprov =
|
|
1934
|
+
this.ɵprov = i012.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i012, type: _I18nService, providedIn: "root" });
|
|
1883
1935
|
}
|
|
1884
1936
|
};
|
|
1885
|
-
|
|
1886
|
-
type:
|
|
1937
|
+
i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i012, type: I18nService, decorators: [{
|
|
1938
|
+
type: Injectable10,
|
|
1887
1939
|
args: [{
|
|
1888
1940
|
providedIn: "root"
|
|
1889
1941
|
}]
|
|
1890
1942
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1891
|
-
type:
|
|
1943
|
+
type: Inject6,
|
|
1892
1944
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
1893
|
-
}] }, { type:
|
|
1945
|
+
}] }, { type: i16.TranslateService }, { type: LogService, decorators: [{
|
|
1894
1946
|
type: Optional5
|
|
1895
1947
|
}] }, { type: StoreService }, { type: Document, decorators: [{
|
|
1896
|
-
type:
|
|
1948
|
+
type: Inject6,
|
|
1897
1949
|
args: [DOCUMENT]
|
|
1898
1950
|
}] }] });
|
|
1899
1951
|
|
|
@@ -2078,10 +2130,10 @@ var handleError = (error) => {
|
|
|
2078
2130
|
var isDefined = (value) => value !== void 0 && value !== null;
|
|
2079
2131
|
|
|
2080
2132
|
// lib/services/permission/permission.service.mjs
|
|
2081
|
-
import { Injectable as
|
|
2133
|
+
import { Injectable as Injectable11, Optional as Optional6 } from "@angular/core";
|
|
2082
2134
|
import { EuiService, getUserRights } from "@eui/base";
|
|
2083
2135
|
import { of as of6 } from "rxjs";
|
|
2084
|
-
import * as
|
|
2136
|
+
import * as i013 from "@angular/core";
|
|
2085
2137
|
var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
2086
2138
|
constructor(log, store) {
|
|
2087
2139
|
super([]);
|
|
@@ -2287,14 +2339,14 @@ var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
|
2287
2339
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2288
2340
|
}
|
|
2289
2341
|
static {
|
|
2290
|
-
this.ɵfac =
|
|
2342
|
+
this.ɵfac = i013.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i013, type: _EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i013.ɵɵFactoryTarget.Injectable });
|
|
2291
2343
|
}
|
|
2292
2344
|
static {
|
|
2293
|
-
this.ɵprov =
|
|
2345
|
+
this.ɵprov = i013.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i013, type: _EuiPermissionService, providedIn: "root" });
|
|
2294
2346
|
}
|
|
2295
2347
|
};
|
|
2296
|
-
|
|
2297
|
-
type:
|
|
2348
|
+
i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i013, type: EuiPermissionService, decorators: [{
|
|
2349
|
+
type: Injectable11,
|
|
2298
2350
|
args: [{
|
|
2299
2351
|
providedIn: "root"
|
|
2300
2352
|
}]
|
|
@@ -2303,9 +2355,9 @@ i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3"
|
|
|
2303
2355
|
}] }, { type: StoreService }] });
|
|
2304
2356
|
|
|
2305
2357
|
// lib/services/dynamic-menu/dynamic-menu.service.mjs
|
|
2306
|
-
import { Injectable as
|
|
2358
|
+
import { Injectable as Injectable12 } from "@angular/core";
|
|
2307
2359
|
import { getUserState } from "@eui/base";
|
|
2308
|
-
import * as
|
|
2360
|
+
import * as i014 from "@angular/core";
|
|
2309
2361
|
var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
2310
2362
|
// TODO: it should be moved euiservice, or it should be static
|
|
2311
2363
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
@@ -2354,23 +2406,23 @@ var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
|
2354
2406
|
});
|
|
2355
2407
|
}
|
|
2356
2408
|
static {
|
|
2357
|
-
this.ɵfac =
|
|
2409
|
+
this.ɵfac = i014.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i014, type: _EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i014.ɵɵFactoryTarget.Injectable });
|
|
2358
2410
|
}
|
|
2359
2411
|
static {
|
|
2360
|
-
this.ɵprov =
|
|
2412
|
+
this.ɵprov = i014.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i014, type: _EuiDynamicMenuService, providedIn: "root" });
|
|
2361
2413
|
}
|
|
2362
2414
|
};
|
|
2363
|
-
|
|
2364
|
-
type:
|
|
2415
|
+
i014.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i014, type: EuiDynamicMenuService, decorators: [{
|
|
2416
|
+
type: Injectable12,
|
|
2365
2417
|
args: [{
|
|
2366
2418
|
providedIn: "root"
|
|
2367
2419
|
}]
|
|
2368
2420
|
}], ctorParameters: () => [{ type: EuiPermissionService }, { type: StoreService }] });
|
|
2369
2421
|
|
|
2370
2422
|
// lib/services/dynamic-component/dynamic-component.service.mjs
|
|
2371
|
-
import { Injectable as
|
|
2423
|
+
import { Injectable as Injectable13, InjectionToken as InjectionToken5 } from "@angular/core";
|
|
2372
2424
|
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
|
|
2373
|
-
import * as
|
|
2425
|
+
import * as i015 from "@angular/core";
|
|
2374
2426
|
var DYNAMIC_COMPONENT_CONFIG = new InjectionToken5("DYNAMIC_COMPONENT_CONFIG");
|
|
2375
2427
|
var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
2376
2428
|
constructor(componentFactoryResolver, injector, appRef) {
|
|
@@ -2425,28 +2477,28 @@ var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
|
2425
2477
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2426
2478
|
}
|
|
2427
2479
|
static {
|
|
2428
|
-
this.ɵfac =
|
|
2480
|
+
this.ɵfac = i015.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i015, type: _EuiDynamicComponentService, deps: [{ token: i015.ComponentFactoryResolver }, { token: i015.Injector }, { token: i015.ApplicationRef }], target: i015.ɵɵFactoryTarget.Injectable });
|
|
2429
2481
|
}
|
|
2430
2482
|
static {
|
|
2431
|
-
this.ɵprov =
|
|
2483
|
+
this.ɵprov = i015.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i015, type: _EuiDynamicComponentService });
|
|
2432
2484
|
}
|
|
2433
2485
|
};
|
|
2434
|
-
|
|
2435
|
-
type:
|
|
2436
|
-
}], ctorParameters: () => [{ type:
|
|
2486
|
+
i015.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i015, type: EuiDynamicComponentService, decorators: [{
|
|
2487
|
+
type: Injectable13
|
|
2488
|
+
}], ctorParameters: () => [{ type: i015.ComponentFactoryResolver }, { type: i015.Injector }, { type: i015.ApplicationRef }] });
|
|
2437
2489
|
|
|
2438
2490
|
// lib/services/eui-app-shell.service.mjs
|
|
2439
|
-
import { Inject as
|
|
2491
|
+
import { Inject as Inject7, Injectable as Injectable14, Optional as Optional7, PLATFORM_ID } from "@angular/core";
|
|
2440
2492
|
import { isPlatformBrowser } from "@angular/common";
|
|
2441
2493
|
import { BehaviorSubject as BehaviorSubject2, defer, firstValueFrom } from "rxjs";
|
|
2442
2494
|
import { EuiEuLanguages as EuiEuLanguages2, getActiveLang as getActiveLang2 } from "@eui/base";
|
|
2443
2495
|
import { NavigationEnd } from "@angular/router";
|
|
2444
|
-
import { distinctUntilChanged as distinctUntilChanged2, map as
|
|
2496
|
+
import { distinctUntilChanged as distinctUntilChanged2, map as map5 } from "rxjs/operators";
|
|
2445
2497
|
import isEqual from "lodash-es/isEqual";
|
|
2446
2498
|
import get from "lodash-es/get";
|
|
2447
|
-
import * as
|
|
2448
|
-
import * as
|
|
2449
|
-
import * as
|
|
2499
|
+
import * as i016 from "@angular/core";
|
|
2500
|
+
import * as i17 from "@angular/common/http";
|
|
2501
|
+
import * as i23 from "@angular/router";
|
|
2450
2502
|
var initialState = {
|
|
2451
2503
|
appName: "",
|
|
2452
2504
|
appShortName: "",
|
|
@@ -2658,7 +2710,7 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2658
2710
|
return defer(() => (
|
|
2659
2711
|
// check if key exists
|
|
2660
2712
|
key ? this.state$.pipe(
|
|
2661
|
-
|
|
2713
|
+
map5((state) => get(state, key)),
|
|
2662
2714
|
// filter((state) => state),
|
|
2663
2715
|
distinctUntilChanged2((x, y) => isEqual(x, y))
|
|
2664
2716
|
) : this.state$
|
|
@@ -3076,32 +3128,32 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3076
3128
|
});
|
|
3077
3129
|
}
|
|
3078
3130
|
static {
|
|
3079
|
-
this.ɵfac =
|
|
3131
|
+
this.ɵfac = i016.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i016, type: _EuiAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i17.HttpClient }, { token: PLATFORM_ID }, { token: i23.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i016.ɵɵFactoryTarget.Injectable });
|
|
3080
3132
|
}
|
|
3081
3133
|
static {
|
|
3082
|
-
this.ɵprov =
|
|
3134
|
+
this.ɵprov = i016.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i016, type: _EuiAppShellService, providedIn: "root" });
|
|
3083
3135
|
}
|
|
3084
3136
|
};
|
|
3085
|
-
|
|
3086
|
-
type:
|
|
3137
|
+
i016.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i016, type: EuiAppShellService, decorators: [{
|
|
3138
|
+
type: Injectable14,
|
|
3087
3139
|
args: [{
|
|
3088
3140
|
providedIn: "root"
|
|
3089
3141
|
}]
|
|
3090
3142
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3091
3143
|
type: Optional7
|
|
3092
3144
|
}, {
|
|
3093
|
-
type:
|
|
3145
|
+
type: Inject7,
|
|
3094
3146
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
3095
|
-
}] }, { type:
|
|
3096
|
-
type:
|
|
3147
|
+
}] }, { type: i17.HttpClient }, { type: void 0, decorators: [{
|
|
3148
|
+
type: Inject7,
|
|
3097
3149
|
args: [PLATFORM_ID]
|
|
3098
|
-
}] }, { type:
|
|
3150
|
+
}] }, { type: i23.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3099
3151
|
type: Optional7
|
|
3100
3152
|
}] }] });
|
|
3101
3153
|
|
|
3102
3154
|
// lib/services/eui-timezone.service.mjs
|
|
3103
|
-
import { Injectable as
|
|
3104
|
-
import * as
|
|
3155
|
+
import { Injectable as Injectable15 } from "@angular/core";
|
|
3156
|
+
import * as i017 from "@angular/core";
|
|
3105
3157
|
var EUI_COUNTRIES = {
|
|
3106
3158
|
AF: "Afghanistan",
|
|
3107
3159
|
AX: "Aland Islands",
|
|
@@ -3809,14 +3861,14 @@ var EuiTimezoneService = class _EuiTimezoneService {
|
|
|
3809
3861
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
3810
3862
|
}
|
|
3811
3863
|
static {
|
|
3812
|
-
this.ɵfac =
|
|
3864
|
+
this.ɵfac = i017.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i017, type: _EuiTimezoneService, deps: [], target: i017.ɵɵFactoryTarget.Injectable });
|
|
3813
3865
|
}
|
|
3814
3866
|
static {
|
|
3815
|
-
this.ɵprov =
|
|
3867
|
+
this.ɵprov = i017.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i017, type: _EuiTimezoneService });
|
|
3816
3868
|
}
|
|
3817
3869
|
};
|
|
3818
|
-
|
|
3819
|
-
type:
|
|
3870
|
+
i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i017, type: EuiTimezoneService, decorators: [{
|
|
3871
|
+
type: Injectable15
|
|
3820
3872
|
}] });
|
|
3821
3873
|
|
|
3822
3874
|
// lib/services/storage/storage.service.mjs
|
|
@@ -3886,8 +3938,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
3886
3938
|
};
|
|
3887
3939
|
|
|
3888
3940
|
// lib/services/storage/local-storage.service.mjs
|
|
3889
|
-
import { Injectable as
|
|
3890
|
-
import * as
|
|
3941
|
+
import { Injectable as Injectable16, Optional as Optional8 } from "@angular/core";
|
|
3942
|
+
import * as i018 from "@angular/core";
|
|
3891
3943
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
3892
3944
|
static {
|
|
3893
3945
|
this.NAME = "LocalStorageService";
|
|
@@ -3951,21 +4003,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
3951
4003
|
}
|
|
3952
4004
|
}
|
|
3953
4005
|
static {
|
|
3954
|
-
this.ɵfac =
|
|
4006
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i018, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
3955
4007
|
}
|
|
3956
4008
|
static {
|
|
3957
|
-
this.ɵprov =
|
|
4009
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i018, type: _LocalStorageService });
|
|
3958
4010
|
}
|
|
3959
4011
|
};
|
|
3960
|
-
|
|
3961
|
-
type:
|
|
4012
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i018, type: LocalStorageService, decorators: [{
|
|
4013
|
+
type: Injectable16
|
|
3962
4014
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
3963
4015
|
type: Optional8
|
|
3964
4016
|
}] }] });
|
|
3965
4017
|
|
|
3966
4018
|
// lib/services/storage/session-storage.service.mjs
|
|
3967
|
-
import { Injectable as
|
|
3968
|
-
import * as
|
|
4019
|
+
import { Injectable as Injectable17, Optional as Optional9 } from "@angular/core";
|
|
4020
|
+
import * as i019 from "@angular/core";
|
|
3969
4021
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
3970
4022
|
static {
|
|
3971
4023
|
this.NAME = "SessionStorageService";
|
|
@@ -4029,24 +4081,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4029
4081
|
}
|
|
4030
4082
|
}
|
|
4031
4083
|
static {
|
|
4032
|
-
this.ɵfac =
|
|
4084
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i019, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4033
4085
|
}
|
|
4034
4086
|
static {
|
|
4035
|
-
this.ɵprov =
|
|
4087
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i019, type: _SessionStorageService });
|
|
4036
4088
|
}
|
|
4037
4089
|
};
|
|
4038
|
-
|
|
4039
|
-
type:
|
|
4090
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i019, type: SessionStorageService, decorators: [{
|
|
4091
|
+
type: Injectable17
|
|
4040
4092
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4041
4093
|
type: Optional9
|
|
4042
4094
|
}] }] });
|
|
4043
4095
|
|
|
4044
4096
|
// lib/services/storage/local-forage.service.mjs
|
|
4045
|
-
import { Inject as
|
|
4097
|
+
import { Inject as Inject8, Injectable as Injectable18, InjectionToken as InjectionToken6, Optional as Optional10 } from "@angular/core";
|
|
4046
4098
|
import { from as from2 } from "rxjs";
|
|
4047
|
-
import { take as take3, tap as
|
|
4099
|
+
import { take as take3, tap as tap5 } from "rxjs/operators";
|
|
4048
4100
|
import * as lf from "localforage";
|
|
4049
|
-
import * as
|
|
4101
|
+
import * as i020 from "@angular/core";
|
|
4050
4102
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4051
4103
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4052
4104
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4074,7 +4126,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4074
4126
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4075
4127
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4076
4128
|
ready() {
|
|
4077
|
-
return from2(localForage.ready()).pipe(take3(1),
|
|
4129
|
+
return from2(localForage.ready()).pipe(take3(1), tap5({
|
|
4078
4130
|
next: () => {
|
|
4079
4131
|
},
|
|
4080
4132
|
error: (err) => {
|
|
@@ -4092,7 +4144,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4092
4144
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4093
4145
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4094
4146
|
get(key) {
|
|
4095
|
-
return from2(localForage.getItem(key)).pipe(take3(1),
|
|
4147
|
+
return from2(localForage.getItem(key)).pipe(take3(1), tap5(() => {
|
|
4096
4148
|
}, (err) => {
|
|
4097
4149
|
if (this.log) {
|
|
4098
4150
|
this.log.error(this.name(), "get", err);
|
|
@@ -4108,7 +4160,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4108
4160
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4109
4161
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4110
4162
|
set(key, value) {
|
|
4111
|
-
return from2(localForage.setItem(key, value)).pipe(take3(1),
|
|
4163
|
+
return from2(localForage.setItem(key, value)).pipe(take3(1), tap5({
|
|
4112
4164
|
next: () => {
|
|
4113
4165
|
},
|
|
4114
4166
|
error: (err) => {
|
|
@@ -4126,7 +4178,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4126
4178
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4127
4179
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4128
4180
|
remove(key) {
|
|
4129
|
-
return from2(localForage.removeItem(key)).pipe(take3(1),
|
|
4181
|
+
return from2(localForage.removeItem(key)).pipe(take3(1), tap5({
|
|
4130
4182
|
next: () => {
|
|
4131
4183
|
},
|
|
4132
4184
|
error: (err) => {
|
|
@@ -4137,16 +4189,16 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4137
4189
|
}));
|
|
4138
4190
|
}
|
|
4139
4191
|
static {
|
|
4140
|
-
this.ɵfac =
|
|
4192
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i020, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i020.ɵɵFactoryTarget.Injectable });
|
|
4141
4193
|
}
|
|
4142
4194
|
static {
|
|
4143
|
-
this.ɵprov =
|
|
4195
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i020, type: _LocalForageService });
|
|
4144
4196
|
}
|
|
4145
4197
|
};
|
|
4146
|
-
|
|
4147
|
-
type:
|
|
4198
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i020, type: LocalForageService, decorators: [{
|
|
4199
|
+
type: Injectable18
|
|
4148
4200
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4149
|
-
type:
|
|
4201
|
+
type: Inject8,
|
|
4150
4202
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4151
4203
|
}, {
|
|
4152
4204
|
type: Optional10
|
|
@@ -4155,13 +4207,13 @@ i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3"
|
|
|
4155
4207
|
}] }] });
|
|
4156
4208
|
|
|
4157
4209
|
// lib/services/locale/locale.service.mjs
|
|
4158
|
-
import { Inject as
|
|
4210
|
+
import { Inject as Inject9, Injectable as Injectable19, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional11 } from "@angular/core";
|
|
4159
4211
|
import { getLocaleId } from "@angular/common";
|
|
4160
4212
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4161
4213
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4162
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4214
|
+
import { catchError as catchError4, filter as filter2, map as map6, switchMap as switchMap3, take as take4, takeUntil, tap as tap6 } from "rxjs/operators";
|
|
4163
4215
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4164
|
-
import * as
|
|
4216
|
+
import * as i021 from "@angular/core";
|
|
4165
4217
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4166
4218
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4167
4219
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4209,7 +4261,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4209
4261
|
return this.store.select(selector).pipe(
|
|
4210
4262
|
takeUntil(this.subNotifier),
|
|
4211
4263
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4212
|
-
|
|
4264
|
+
map6((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4213
4265
|
);
|
|
4214
4266
|
}
|
|
4215
4267
|
/**
|
|
@@ -4225,7 +4277,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4225
4277
|
this.bindTranslateServiceLangChangeToState();
|
|
4226
4278
|
}
|
|
4227
4279
|
const availableLocales = state?.available || this.config?.available || this.getBrowserLocales() || [this.currentLocale];
|
|
4228
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier),
|
|
4280
|
+
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap6(() => this.updateState(state || { id: this.currentLocale })));
|
|
4229
4281
|
}
|
|
4230
4282
|
/**
|
|
4231
4283
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4314,7 +4366,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4314
4366
|
if (this.log) {
|
|
4315
4367
|
this.logger.debug(error);
|
|
4316
4368
|
}
|
|
4317
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4369
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map6(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4318
4370
|
if (this.log) {
|
|
4319
4371
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4320
4372
|
}
|
|
@@ -4323,8 +4375,8 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4323
4375
|
})
|
|
4324
4376
|
)),
|
|
4325
4377
|
// update the "available" array attribute with newly registered
|
|
4326
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4327
|
-
const available = state
|
|
4378
|
+
switchMap3((id) => this.getState().pipe(take4(1), map6((state) => {
|
|
4379
|
+
const available = state["available"] ? state["available"] : [];
|
|
4328
4380
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4329
4381
|
})))
|
|
4330
4382
|
).subscribe((state) => {
|
|
@@ -4346,27 +4398,27 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4346
4398
|
return browserLocales.map((locale) => locale.trim());
|
|
4347
4399
|
}
|
|
4348
4400
|
static {
|
|
4349
|
-
this.ɵfac =
|
|
4401
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i021, type: _LocaleService, deps: [{ token: StoreService }, { token: GLOBAL_CONFIG_TOKEN }, { token: LOCALE_ID }, { token: LOCALE_ID_MAPPER, optional: true }, { token: I18nService, optional: true }, { token: LogService, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4350
4402
|
}
|
|
4351
4403
|
static {
|
|
4352
|
-
this.ɵprov =
|
|
4404
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i021, type: _LocaleService, providedIn: "root" });
|
|
4353
4405
|
}
|
|
4354
4406
|
};
|
|
4355
|
-
|
|
4356
|
-
type:
|
|
4407
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i021, type: LocaleService, decorators: [{
|
|
4408
|
+
type: Injectable19,
|
|
4357
4409
|
args: [{
|
|
4358
4410
|
providedIn: "root"
|
|
4359
4411
|
}]
|
|
4360
4412
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4361
|
-
type:
|
|
4413
|
+
type: Inject9,
|
|
4362
4414
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4363
4415
|
}] }, { type: void 0, decorators: [{
|
|
4364
|
-
type:
|
|
4416
|
+
type: Inject9,
|
|
4365
4417
|
args: [LOCALE_ID]
|
|
4366
4418
|
}] }, { type: void 0, decorators: [{
|
|
4367
4419
|
type: Optional11
|
|
4368
4420
|
}, {
|
|
4369
|
-
type:
|
|
4421
|
+
type: Inject9,
|
|
4370
4422
|
args: [LOCALE_ID_MAPPER]
|
|
4371
4423
|
}] }, { type: I18nService, decorators: [{
|
|
4372
4424
|
type: Optional11
|
|
@@ -4375,12 +4427,12 @@ i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3"
|
|
|
4375
4427
|
}] }] });
|
|
4376
4428
|
|
|
4377
4429
|
// lib/services/locale/locale.service.mock.mjs
|
|
4378
|
-
import { Optional as Optional12, Inject as
|
|
4430
|
+
import { Optional as Optional12, Inject as Inject10, Injectable as Injectable20, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4379
4431
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4380
4432
|
import localeFr from "@angular/common/locales/fr";
|
|
4381
4433
|
import localeEl from "@angular/common/locales/el";
|
|
4382
4434
|
import { registerLocaleData } from "@angular/common";
|
|
4383
|
-
import * as
|
|
4435
|
+
import * as i022 from "@angular/core";
|
|
4384
4436
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4385
4437
|
constructor(locale_id) {
|
|
4386
4438
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4405,18 +4457,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4405
4457
|
return of9({ success: true });
|
|
4406
4458
|
}
|
|
4407
4459
|
static {
|
|
4408
|
-
this.ɵfac =
|
|
4460
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i022, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i022.ɵɵFactoryTarget.Injectable });
|
|
4409
4461
|
}
|
|
4410
4462
|
static {
|
|
4411
|
-
this.ɵprov =
|
|
4463
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i022, type: _LocaleServiceMock });
|
|
4412
4464
|
}
|
|
4413
4465
|
};
|
|
4414
|
-
|
|
4415
|
-
type:
|
|
4466
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i022, type: LocaleServiceMock, decorators: [{
|
|
4467
|
+
type: Injectable20
|
|
4416
4468
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4417
4469
|
type: Optional12
|
|
4418
4470
|
}, {
|
|
4419
|
-
type:
|
|
4471
|
+
type: Inject10,
|
|
4420
4472
|
args: [LOCALE_ID2]
|
|
4421
4473
|
}] }] });
|
|
4422
4474
|
|
|
@@ -4429,10 +4481,10 @@ var Status;
|
|
|
4429
4481
|
})(Status || (Status = {}));
|
|
4430
4482
|
|
|
4431
4483
|
// lib/services/loader/eui-loader.service.mjs
|
|
4432
|
-
import { Injectable as
|
|
4484
|
+
import { Injectable as Injectable21 } from "@angular/core";
|
|
4433
4485
|
import { Subject as Subject2 } from "rxjs";
|
|
4434
|
-
import { filter as filter3, map as
|
|
4435
|
-
import * as
|
|
4486
|
+
import { filter as filter3, map as map7 } from "rxjs/operators";
|
|
4487
|
+
import * as i023 from "@angular/core";
|
|
4436
4488
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4437
4489
|
constructor() {
|
|
4438
4490
|
this.dependencies = [];
|
|
@@ -4526,7 +4578,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4526
4578
|
* @param name The name of the dependency
|
|
4527
4579
|
*/
|
|
4528
4580
|
statusChanges(name) {
|
|
4529
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4581
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map7(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4530
4582
|
}
|
|
4531
4583
|
/**
|
|
4532
4584
|
* Load a dependency and its prerequisites
|
|
@@ -4647,25 +4699,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4647
4699
|
}
|
|
4648
4700
|
}
|
|
4649
4701
|
static {
|
|
4650
|
-
this.ɵfac =
|
|
4702
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i023, type: _EuiLoaderService, deps: [], target: i023.ɵɵFactoryTarget.Injectable });
|
|
4651
4703
|
}
|
|
4652
4704
|
static {
|
|
4653
|
-
this.ɵprov =
|
|
4705
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i023, type: _EuiLoaderService, providedIn: "root" });
|
|
4654
4706
|
}
|
|
4655
4707
|
};
|
|
4656
|
-
|
|
4657
|
-
type:
|
|
4708
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i023, type: EuiLoaderService, decorators: [{
|
|
4709
|
+
type: Injectable21,
|
|
4658
4710
|
args: [{
|
|
4659
4711
|
providedIn: "root"
|
|
4660
4712
|
}]
|
|
4661
4713
|
}] });
|
|
4662
4714
|
|
|
4663
4715
|
// lib/services/user/user.service.mjs
|
|
4664
|
-
import { Injectable as
|
|
4716
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
4665
4717
|
import { of as of10 } from "rxjs";
|
|
4666
4718
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
4667
4719
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
4668
|
-
import * as
|
|
4720
|
+
import * as i024 from "@angular/core";
|
|
4669
4721
|
var UserService = class _UserService extends EuiService3 {
|
|
4670
4722
|
constructor(store) {
|
|
4671
4723
|
super({ userId: "annonymous" });
|
|
@@ -4704,14 +4756,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
4704
4756
|
}
|
|
4705
4757
|
}
|
|
4706
4758
|
static {
|
|
4707
|
-
this.ɵfac =
|
|
4759
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i024, type: _UserService, deps: [{ token: StoreService }], target: i024.ɵɵFactoryTarget.Injectable });
|
|
4708
4760
|
}
|
|
4709
4761
|
static {
|
|
4710
|
-
this.ɵprov =
|
|
4762
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i024, type: _UserService, providedIn: "root" });
|
|
4711
4763
|
}
|
|
4712
4764
|
};
|
|
4713
|
-
|
|
4714
|
-
type:
|
|
4765
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i024, type: UserService, decorators: [{
|
|
4766
|
+
type: Injectable22,
|
|
4715
4767
|
args: [{
|
|
4716
4768
|
providedIn: "root"
|
|
4717
4769
|
}]
|
|
@@ -4719,8 +4771,8 @@ i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3"
|
|
|
4719
4771
|
|
|
4720
4772
|
// lib/services/user/user.service.mock.mjs
|
|
4721
4773
|
import { of as of11 } from "rxjs";
|
|
4722
|
-
import { Injectable as
|
|
4723
|
-
import * as
|
|
4774
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
4775
|
+
import * as i025 from "@angular/core";
|
|
4724
4776
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
4725
4777
|
constructor() {
|
|
4726
4778
|
super(null);
|
|
@@ -4736,20 +4788,20 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
4736
4788
|
updateState(userState, reducer) {
|
|
4737
4789
|
}
|
|
4738
4790
|
static {
|
|
4739
|
-
this.ɵfac =
|
|
4791
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i025, type: _UserServiceMock, deps: [], target: i025.ɵɵFactoryTarget.Injectable });
|
|
4740
4792
|
}
|
|
4741
4793
|
static {
|
|
4742
|
-
this.ɵprov =
|
|
4794
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i025, type: _UserServiceMock });
|
|
4743
4795
|
}
|
|
4744
4796
|
};
|
|
4745
|
-
|
|
4746
|
-
type:
|
|
4797
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i025, type: UserServiceMock, decorators: [{
|
|
4798
|
+
type: Injectable23
|
|
4747
4799
|
}], ctorParameters: () => [] });
|
|
4748
4800
|
|
|
4749
4801
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
4750
|
-
import { Injectable as
|
|
4751
|
-
import * as
|
|
4752
|
-
import * as
|
|
4802
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
4803
|
+
import * as i026 from "@angular/core";
|
|
4804
|
+
import * as i18 from "@ngx-translate/core";
|
|
4753
4805
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
4754
4806
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
4755
4807
|
constructor(translateService) {
|
|
@@ -4769,19 +4821,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
4769
4821
|
}));
|
|
4770
4822
|
}
|
|
4771
4823
|
static {
|
|
4772
|
-
this.ɵfac =
|
|
4824
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i026, type: _AddLangParamInterceptor, deps: [{ token: i18.TranslateService }], target: i026.ɵɵFactoryTarget.Injectable });
|
|
4773
4825
|
}
|
|
4774
4826
|
static {
|
|
4775
|
-
this.ɵprov =
|
|
4827
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i026, type: _AddLangParamInterceptor });
|
|
4776
4828
|
}
|
|
4777
4829
|
};
|
|
4778
|
-
|
|
4779
|
-
type:
|
|
4780
|
-
}], ctorParameters: () => [{ type:
|
|
4830
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i026, type: AddLangParamInterceptor, decorators: [{
|
|
4831
|
+
type: Injectable24
|
|
4832
|
+
}], ctorParameters: () => [{ type: i18.TranslateService }] });
|
|
4781
4833
|
|
|
4782
4834
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
4783
|
-
import { Injectable as
|
|
4784
|
-
import * as
|
|
4835
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
4836
|
+
import * as i027 from "@angular/core";
|
|
4785
4837
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
4786
4838
|
intercept(req, next) {
|
|
4787
4839
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -4793,19 +4845,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
4793
4845
|
}));
|
|
4794
4846
|
}
|
|
4795
4847
|
static {
|
|
4796
|
-
this.ɵfac =
|
|
4848
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i027, type: _CachePreventionInterceptor, deps: [], target: i027.ɵɵFactoryTarget.Injectable });
|
|
4797
4849
|
}
|
|
4798
4850
|
static {
|
|
4799
|
-
this.ɵprov =
|
|
4851
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i027, type: _CachePreventionInterceptor });
|
|
4800
4852
|
}
|
|
4801
4853
|
};
|
|
4802
|
-
|
|
4803
|
-
type:
|
|
4854
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i027, type: CachePreventionInterceptor, decorators: [{
|
|
4855
|
+
type: Injectable25
|
|
4804
4856
|
}] });
|
|
4805
4857
|
|
|
4806
4858
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
4807
|
-
import { Injectable as
|
|
4808
|
-
import * as
|
|
4859
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
4860
|
+
import * as i028 from "@angular/core";
|
|
4809
4861
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
4810
4862
|
intercept(request, next) {
|
|
4811
4863
|
return next.handle(request.clone({
|
|
@@ -4813,19 +4865,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
4813
4865
|
}));
|
|
4814
4866
|
}
|
|
4815
4867
|
static {
|
|
4816
|
-
this.ɵfac =
|
|
4868
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i028, type: _CorsSecurityInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
4817
4869
|
}
|
|
4818
4870
|
static {
|
|
4819
|
-
this.ɵprov =
|
|
4871
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i028, type: _CorsSecurityInterceptor });
|
|
4820
4872
|
}
|
|
4821
4873
|
};
|
|
4822
|
-
|
|
4823
|
-
type:
|
|
4874
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i028, type: CorsSecurityInterceptor, decorators: [{
|
|
4875
|
+
type: Injectable26
|
|
4824
4876
|
}] });
|
|
4825
4877
|
|
|
4826
4878
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
4827
|
-
import { Injectable as
|
|
4828
|
-
import * as
|
|
4879
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
4880
|
+
import * as i029 from "@angular/core";
|
|
4829
4881
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
4830
4882
|
intercept(request, next) {
|
|
4831
4883
|
return next.handle(request.clone({
|
|
@@ -4833,24 +4885,24 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
4833
4885
|
}));
|
|
4834
4886
|
}
|
|
4835
4887
|
static {
|
|
4836
|
-
this.ɵfac =
|
|
4888
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i029, type: _CsrfPreventionInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
4837
4889
|
}
|
|
4838
4890
|
static {
|
|
4839
|
-
this.ɵprov =
|
|
4891
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i029, type: _CsrfPreventionInterceptor });
|
|
4840
4892
|
}
|
|
4841
4893
|
};
|
|
4842
|
-
|
|
4843
|
-
type:
|
|
4894
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i029, type: CsrfPreventionInterceptor, decorators: [{
|
|
4895
|
+
type: Injectable27
|
|
4844
4896
|
}] });
|
|
4845
4897
|
|
|
4846
4898
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
4847
|
-
import { Injectable as
|
|
4899
|
+
import { Injectable as Injectable28 } from "@angular/core";
|
|
4848
4900
|
import { HttpResponse } from "@angular/common/http";
|
|
4849
|
-
import { tap as
|
|
4850
|
-
import * as
|
|
4901
|
+
import { tap as tap7 } from "rxjs/operators";
|
|
4902
|
+
import * as i030 from "@angular/core";
|
|
4851
4903
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
4852
4904
|
intercept(request, next) {
|
|
4853
|
-
return next.handle(request).pipe(
|
|
4905
|
+
return next.handle(request).pipe(tap7((event) => {
|
|
4854
4906
|
this.checkRequestSuccessForEULoginSessionTimeout(request, event);
|
|
4855
4907
|
return event;
|
|
4856
4908
|
}, (error) => {
|
|
@@ -4898,23 +4950,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
4898
4950
|
document.location.reload();
|
|
4899
4951
|
}
|
|
4900
4952
|
static {
|
|
4901
|
-
this.ɵfac =
|
|
4953
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i030, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i030.ɵɵFactoryTarget.Injectable });
|
|
4902
4954
|
}
|
|
4903
4955
|
static {
|
|
4904
|
-
this.ɵprov =
|
|
4956
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i030, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
4905
4957
|
}
|
|
4906
4958
|
};
|
|
4907
|
-
|
|
4908
|
-
type:
|
|
4959
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i030, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4960
|
+
type: Injectable28
|
|
4909
4961
|
}] });
|
|
4910
4962
|
|
|
4911
4963
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
4912
|
-
import { Inject as
|
|
4964
|
+
import { Inject as Inject11, Injectable as Injectable29, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
4913
4965
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
4914
4966
|
import { of as of12 } from "rxjs";
|
|
4915
4967
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
4916
4968
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
4917
|
-
import * as
|
|
4969
|
+
import * as i031 from "@angular/core";
|
|
4918
4970
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
4919
4971
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
4920
4972
|
constructor(errorMappingHandler) {
|
|
@@ -4937,16 +4989,16 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
4937
4989
|
);
|
|
4938
4990
|
}
|
|
4939
4991
|
static {
|
|
4940
|
-
this.ɵfac =
|
|
4992
|
+
this.ɵfac = i031.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i031, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i031.ɵɵFactoryTarget.Injectable });
|
|
4941
4993
|
}
|
|
4942
4994
|
static {
|
|
4943
|
-
this.ɵprov =
|
|
4995
|
+
this.ɵprov = i031.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i031, type: _UxRequestErrorModelInterceptor });
|
|
4944
4996
|
}
|
|
4945
4997
|
};
|
|
4946
|
-
|
|
4947
|
-
type:
|
|
4998
|
+
i031.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i031, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4999
|
+
type: Injectable29
|
|
4948
5000
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4949
|
-
type:
|
|
5001
|
+
type: Inject11,
|
|
4950
5002
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
4951
5003
|
}] }] });
|
|
4952
5004
|
export {
|
|
@@ -4967,9 +5019,11 @@ export {
|
|
|
4967
5019
|
CachePreventionInterceptor,
|
|
4968
5020
|
ConsoleHttpErrorCallbackFn,
|
|
4969
5021
|
CoreAppActionTypes,
|
|
5022
|
+
CoreAppEffects,
|
|
4970
5023
|
CoreI18nActionTypes,
|
|
4971
5024
|
CoreLocaleActionTypes,
|
|
4972
5025
|
CoreModule,
|
|
5026
|
+
CoreModuleEffects,
|
|
4973
5027
|
CoreNotificationsActionTypes,
|
|
4974
5028
|
CoreUserActionTypes,
|
|
4975
5029
|
CorsSecurityInterceptor,
|