@eui/core 18.0.0-next.2 → 18.0.0-next.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/docs/dependencies.html +31 -45
- package/docs/index.html +1 -1
- package/docs/js/menu-wc.js +0 -3
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +0 -32
- package/esm2022/lib/eui-core.module.mjs +5 -5
- package/esm2022/lib/helpers/dom-helpers.mjs +1 -1
- package/esm2022/lib/helpers/event-helpers.mjs +1 -1
- package/esm2022/lib/helpers/form-helpers.mjs +1 -1
- package/esm2022/lib/helpers/format-helpers.mjs +1 -1
- package/esm2022/lib/interceptors/add-lang-param.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
- 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 +4 -4
- package/esm2022/lib/interceptors/ux-request-error-model.interceptor.mjs +4 -4
- package/esm2022/lib/services/app/eui-init-app.mjs +1 -1
- package/esm2022/lib/services/app/eui-pre-init-app.mjs +1 -1
- package/esm2022/lib/services/config/tokens.mjs +1 -1
- package/esm2022/lib/services/dynamic-component/dynamic-component.service.mjs +4 -4
- package/esm2022/lib/services/dynamic-menu/dynamic-menu.service.mjs +4 -4
- package/esm2022/lib/services/errors/eui.error.mjs +1 -1
- package/esm2022/lib/services/errors/global-error-handler.mjs +3 -3
- package/esm2022/lib/services/errors/http-error-handler.interceptor.mjs +4 -4
- package/esm2022/lib/services/eui-app-shell.service.mjs +4 -4
- package/esm2022/lib/services/eui-timezone.service.mjs +4 -4
- package/esm2022/lib/services/growl/eui-growl.service.mjs +4 -4
- package/esm2022/lib/services/i18n/i18n.loader.mjs +4 -4
- package/esm2022/lib/services/i18n/i18n.service.mjs +4 -4
- package/esm2022/lib/services/loader/eui-loader.service.mjs +4 -4
- package/esm2022/lib/services/locale/locale.service.mjs +4 -4
- package/esm2022/lib/services/locale/locale.service.mock.mjs +4 -4
- package/esm2022/lib/services/log/log.module.mjs +4 -4
- package/esm2022/lib/services/log/log.service.mjs +4 -4
- package/esm2022/lib/services/permission/permission.service.mjs +4 -4
- package/esm2022/lib/services/queue/api-queue.service.mjs +4 -4
- package/esm2022/lib/services/storage/local-forage.service.mjs +4 -4
- package/esm2022/lib/services/storage/local-storage.service.mjs +4 -4
- package/esm2022/lib/services/storage/session-storage.service.mjs +4 -4
- package/esm2022/lib/services/store/index.mjs +2 -2
- package/esm2022/lib/services/store/reducers/app.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/i18n.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/locale.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/meta.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/notifications.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/user.reducers.mjs +1 -1
- package/esm2022/lib/services/store/store.service.mjs +4 -4
- package/esm2022/lib/services/store/store.service.mock.mjs +3 -3
- package/esm2022/lib/services/user/user.service.mjs +4 -4
- package/esm2022/lib/services/user/user.service.mock.mjs +3 -3
- package/fesm2022/eui-core.mjs +325 -383
- package/fesm2022/eui-core.mjs.map +4 -4
- package/lib/helpers/dom-helpers.d.ts.map +1 -1
- package/lib/helpers/utils.d.ts +1 -1
- package/lib/helpers/utils.d.ts.map +1 -1
- package/lib/services/store/index.d.ts +0 -1
- package/lib/services/store/index.d.ts.map +1 -1
- package/lib/services/store/reducers/meta.reducers.d.ts.map +1 -1
- package/package.json +9 -9
- package/docs/injectables/CoreAppEffects.html +0 -448
- package/esm2022/lib/services/store/effects/app.effects.mjs +0 -55
- package/esm2022/lib/services/store/effects/index.mjs +0 -4
- package/lib/services/store/effects/app.effects.d.ts +0 -20
- package/lib/services/store/effects/app.effects.d.ts.map +0 -1
- package/lib/services/store/effects/index.d.ts +0 -4
- package/lib/services/store/effects/index.d.ts.map +0 -1
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -36,11 +36,9 @@ __export(eui_core_exports, {
|
|
|
36
36
|
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
37
37
|
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
38
38
|
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
39
|
-
CoreAppEffects: () => CoreAppEffects,
|
|
40
39
|
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
41
40
|
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
42
41
|
CoreModule: () => CoreModule,
|
|
43
|
-
CoreModuleEffects: () => CoreModuleEffects,
|
|
44
42
|
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
45
43
|
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
46
44
|
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
@@ -171,11 +169,9 @@ __export(esm2022_exports, {
|
|
|
171
169
|
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
172
170
|
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
173
171
|
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
174
|
-
CoreAppEffects: () => CoreAppEffects,
|
|
175
172
|
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
176
173
|
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
177
174
|
CoreModule: () => CoreModule,
|
|
178
|
-
CoreModuleEffects: () => CoreModuleEffects,
|
|
179
175
|
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
180
176
|
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
181
177
|
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
@@ -387,22 +383,22 @@ function getRootLogConfig(appConfig) {
|
|
|
387
383
|
}
|
|
388
384
|
function prepareEuiAppConfigToken(euiConfig) {
|
|
389
385
|
const environment = euiConfig && euiConfig.environment;
|
|
390
|
-
const
|
|
386
|
+
const merge = environment.envDynamicConfig && environment.envDynamicConfig.merge && Array.isArray(environment.envDynamicConfig.merge) ? environment.envDynamicConfig.merge : [];
|
|
391
387
|
const isDeepMerge = environment.envDynamicConfig && environment.envDynamicConfig.deepMerge ? environment.envDynamicConfig.deepMerge : false;
|
|
392
388
|
const envAppJsonConfig = environment && environment.loadedEnvDynamicConfig;
|
|
393
389
|
const initialAppConfig = euiConfig && euiConfig.appConfig;
|
|
394
390
|
const envAppHandlersConfig = environment && environment.envAppHandlersConfig;
|
|
395
391
|
const envHandlersMergedAppConfig = mergeAppHandlerConfigToAppConfig(initialAppConfig, envAppHandlersConfig);
|
|
396
|
-
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig,
|
|
392
|
+
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig, merge, isDeepMerge);
|
|
397
393
|
return finalConfig;
|
|
398
394
|
}
|
|
399
395
|
function mergeAppHandlerConfigToAppConfig(euiAppConfig, envAppHandler) {
|
|
400
396
|
return Object.assign({}, euiAppConfig, envAppHandler);
|
|
401
397
|
}
|
|
402
|
-
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig,
|
|
398
|
+
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge, isDeepMerge) {
|
|
403
399
|
const deepMerged = {};
|
|
404
|
-
if (
|
|
405
|
-
|
|
400
|
+
if (merge && merge.length > 0) {
|
|
401
|
+
merge.forEach((key) => {
|
|
406
402
|
if (envAppJsonConfig != null && envAppJsonConfig[key] && typeof envAppJsonConfig[key] === "object" && euiAppConfig != null && euiAppConfig[key] && typeof euiAppConfig[key] === "object") {
|
|
407
403
|
if (isDeepMerge) {
|
|
408
404
|
deepMerged[key] = {};
|
|
@@ -576,134 +572,6 @@ var UpdateLocaleStateAction = class {
|
|
|
576
572
|
}
|
|
577
573
|
};
|
|
578
574
|
|
|
579
|
-
// lib/services/growl/eui-growl.service.mjs
|
|
580
|
-
import { Injectable } from "@angular/core";
|
|
581
|
-
import * as i0 from "@angular/core";
|
|
582
|
-
var EuiGrowlService = class _EuiGrowlService {
|
|
583
|
-
constructor() {
|
|
584
|
-
this.growlMessages = [];
|
|
585
|
-
this.isGrowlSticky = false;
|
|
586
|
-
this.isCloseAllSticky = false;
|
|
587
|
-
this.growlLife = 3e3;
|
|
588
|
-
this.growlPosition = "bottom-right";
|
|
589
|
-
this.growlCallback = null;
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* displays a growl UxMessage item, isSticky
|
|
593
|
-
*/
|
|
594
|
-
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
595
|
-
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
596
|
-
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
597
|
-
} else {
|
|
598
|
-
if (isMultiple === void 0 || !isMultiple) {
|
|
599
|
-
this.growlMessages = [];
|
|
600
|
-
}
|
|
601
|
-
this.growlMessages = this.growlMessages.concat(msg);
|
|
602
|
-
msg.life = life || msg.life;
|
|
603
|
-
msg.sticky = isSticky || msg.sticky;
|
|
604
|
-
if (life === void 0 || isNaN(life)) {
|
|
605
|
-
if (msg.severity === "danger") {
|
|
606
|
-
isSticky = true;
|
|
607
|
-
} else {
|
|
608
|
-
this.growlLife = 3e3;
|
|
609
|
-
}
|
|
610
|
-
} else {
|
|
611
|
-
this.growlLife = life;
|
|
612
|
-
}
|
|
613
|
-
if (isSticky) {
|
|
614
|
-
this.isGrowlSticky = isSticky;
|
|
615
|
-
} else {
|
|
616
|
-
this.isGrowlSticky = false;
|
|
617
|
-
}
|
|
618
|
-
if (position2) {
|
|
619
|
-
this.growlPosition = position2;
|
|
620
|
-
}
|
|
621
|
-
if (callback) {
|
|
622
|
-
this.growlCallback = callback;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
clearGrowl() {
|
|
627
|
-
this.growlMessages = [];
|
|
628
|
-
}
|
|
629
|
-
growlSuccess(msg, position2) {
|
|
630
|
-
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
631
|
-
}
|
|
632
|
-
growlError(msg, position2) {
|
|
633
|
-
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
634
|
-
}
|
|
635
|
-
growlWarning(msg, position2) {
|
|
636
|
-
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
637
|
-
}
|
|
638
|
-
growlInfo(msg, position2) {
|
|
639
|
-
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
640
|
-
}
|
|
641
|
-
static {
|
|
642
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: _EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
643
|
-
}
|
|
644
|
-
static {
|
|
645
|
-
this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: _EuiGrowlService, providedIn: "root" });
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
649
|
-
type: Injectable,
|
|
650
|
-
args: [{
|
|
651
|
-
providedIn: "root"
|
|
652
|
-
}]
|
|
653
|
-
}] });
|
|
654
|
-
|
|
655
|
-
// lib/services/store/effects/app.effects.mjs
|
|
656
|
-
import { Injectable as Injectable2, Inject } from "@angular/core";
|
|
657
|
-
import { ofType, createEffect } from "@ngrx/effects";
|
|
658
|
-
import { fromEvent, merge } from "rxjs";
|
|
659
|
-
import { map, mapTo, mergeMap, tap } from "rxjs/operators";
|
|
660
|
-
import * as i02 from "@angular/core";
|
|
661
|
-
import * as i1 from "@ngrx/effects";
|
|
662
|
-
import * as i2 from "@ngx-translate/core";
|
|
663
|
-
var CoreAppEffects = class _CoreAppEffects {
|
|
664
|
-
constructor(actions, showConnectionStatus, translateService, asService) {
|
|
665
|
-
this.actions = actions;
|
|
666
|
-
this.showConnectionStatus = showConnectionStatus;
|
|
667
|
-
this.translateService = translateService;
|
|
668
|
-
this.asService = asService;
|
|
669
|
-
this.getAppConnectionInformation = createEffect(() => merge(fromEvent(window, "online").pipe(mapTo(true)), fromEvent(window, "offline").pipe(mapTo(false))).pipe(map((connected) => new UpdateAppConnectionAction(connected))));
|
|
670
|
-
this.activatedRoute = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.ACTIVATED_ROUTE), map((action) => action.payload), mergeMap((route) => {
|
|
671
|
-
const module = route.snapshot.data["module"] || "undefined";
|
|
672
|
-
return [new UpdateCurrentModuleAction(module)];
|
|
673
|
-
})));
|
|
674
|
-
this.updateAppConnection = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.UPDATE_APP_CONNECTION), map((action) => action.payload), tap((connected) => {
|
|
675
|
-
const isFeatureEnabled = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.enabled : this.showConnectionStatus;
|
|
676
|
-
const lifespan = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.messageBox?.lifespan || 0 : 0;
|
|
677
|
-
if (isFeatureEnabled) {
|
|
678
|
-
if (connected) {
|
|
679
|
-
this.translateService.get("eui.CONNECTED").subscribe((translation) => {
|
|
680
|
-
this.asService.growl({ severity: "success", summary: "MESSAGE", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
681
|
-
});
|
|
682
|
-
} else {
|
|
683
|
-
this.translateService.get("eui.NOTCONNECTED").subscribe((translation) => {
|
|
684
|
-
this.asService.growl({ severity: "danger", summary: "ERROR", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
})), { dispatch: false });
|
|
689
|
-
}
|
|
690
|
-
static {
|
|
691
|
-
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i02, type: _CoreAppEffects, deps: [{ token: i1.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: EuiGrowlService }], target: i02.ɵɵFactoryTarget.Injectable });
|
|
692
|
-
}
|
|
693
|
-
static {
|
|
694
|
-
this.ɵprov = i02.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i02, type: _CoreAppEffects });
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i02, type: CoreAppEffects, decorators: [{
|
|
698
|
-
type: Injectable2
|
|
699
|
-
}], ctorParameters: () => [{ type: i1.Actions }, { type: void 0, decorators: [{
|
|
700
|
-
type: Inject,
|
|
701
|
-
args: [SHOW_CONNECTION_STATUS_TOKEN]
|
|
702
|
-
}] }, { type: i2.TranslateService }, { type: EuiGrowlService }] });
|
|
703
|
-
|
|
704
|
-
// lib/services/store/effects/index.mjs
|
|
705
|
-
var CoreModuleEffects = [CoreAppEffects];
|
|
706
|
-
|
|
707
575
|
// lib/services/store/reducers/app.reducers.mjs
|
|
708
576
|
import { initialAppState } from "@eui/base";
|
|
709
577
|
var updateAppVersion = (state, action) => ({ ...state, version: action.payload });
|
|
@@ -901,10 +769,10 @@ var cb = (reducer, storage) => (state, action) => {
|
|
|
901
769
|
};
|
|
902
770
|
|
|
903
771
|
// lib/services/log/log.service.mjs
|
|
904
|
-
import { Inject
|
|
772
|
+
import { Inject, Injectable, InjectionToken as InjectionToken2 } from "@angular/core";
|
|
905
773
|
import { Logger } from "@eui/base";
|
|
906
|
-
import * as
|
|
907
|
-
import * as
|
|
774
|
+
import * as i0 from "@angular/core";
|
|
775
|
+
import * as i1 from "@eui/base";
|
|
908
776
|
var BASE_LOGGER_NAME_TOKEN = new InjectionToken2("BASE_LOGGER_NAME");
|
|
909
777
|
var LOG_LEVEL_TOKEN = new InjectionToken2("LOG_LEVEL");
|
|
910
778
|
var LOG_APPENDERS_TOKEN = new InjectionToken2("LOG_APPENDERS");
|
|
@@ -931,22 +799,22 @@ var LogService = class _LogService extends Logger {
|
|
|
931
799
|
return logger;
|
|
932
800
|
}
|
|
933
801
|
static {
|
|
934
|
-
this.ɵfac =
|
|
802
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i0, type: _LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
935
803
|
}
|
|
936
804
|
static {
|
|
937
|
-
this.ɵprov =
|
|
805
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i0, type: _LogService });
|
|
938
806
|
}
|
|
939
807
|
};
|
|
940
|
-
|
|
941
|
-
type:
|
|
808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i0, type: LogService, decorators: [{
|
|
809
|
+
type: Injectable
|
|
942
810
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
943
|
-
type:
|
|
811
|
+
type: Inject,
|
|
944
812
|
args: [BASE_LOGGER_NAME_TOKEN]
|
|
945
|
-
}] }, { type:
|
|
946
|
-
type:
|
|
813
|
+
}] }, { type: i1.LogLevel, decorators: [{
|
|
814
|
+
type: Inject,
|
|
947
815
|
args: [LOG_LEVEL_TOKEN]
|
|
948
816
|
}] }, { type: void 0, decorators: [{
|
|
949
|
-
type:
|
|
817
|
+
type: Inject,
|
|
950
818
|
args: [LOG_APPENDERS_TOKEN]
|
|
951
819
|
}] }] });
|
|
952
820
|
|
|
@@ -990,7 +858,7 @@ function euiLogServiceFactory(injector, rootBaseLoggerName, rootConfig, childBas
|
|
|
990
858
|
|
|
991
859
|
// lib/services/log/log.module.mjs
|
|
992
860
|
import { InjectionToken as InjectionToken3, Injector, NgModule } from "@angular/core";
|
|
993
|
-
import * as
|
|
861
|
+
import * as i02 from "@angular/core";
|
|
994
862
|
var LOG_MODULE_CONFIG_TOKEN = new InjectionToken3("LOG_CONFIG");
|
|
995
863
|
var LogModule = class _LogModule {
|
|
996
864
|
/** method called in your root module to provide the LogService */
|
|
@@ -1014,25 +882,25 @@ var LogModule = class _LogModule {
|
|
|
1014
882
|
};
|
|
1015
883
|
}
|
|
1016
884
|
static {
|
|
1017
|
-
this.ɵfac =
|
|
885
|
+
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i02, type: _LogModule, deps: [], target: i02.ɵɵFactoryTarget.NgModule });
|
|
1018
886
|
}
|
|
1019
887
|
static {
|
|
1020
|
-
this.ɵmod =
|
|
888
|
+
this.ɵmod = i02.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.2", ngImport: i02, type: _LogModule });
|
|
1021
889
|
}
|
|
1022
890
|
static {
|
|
1023
|
-
this.ɵinj =
|
|
891
|
+
this.ɵinj = i02.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i02, type: _LogModule });
|
|
1024
892
|
}
|
|
1025
893
|
};
|
|
1026
|
-
|
|
894
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i02, type: LogModule, decorators: [{
|
|
1027
895
|
type: NgModule
|
|
1028
896
|
}] });
|
|
1029
897
|
|
|
1030
898
|
// lib/services/store/store.service.mjs
|
|
1031
|
-
import { Injectable as
|
|
899
|
+
import { Injectable as Injectable2, Optional } from "@angular/core";
|
|
1032
900
|
import { throwError } from "rxjs";
|
|
1033
901
|
import { debounceTime, distinctUntilChanged } from "rxjs/operators";
|
|
1034
|
-
import * as
|
|
1035
|
-
import * as
|
|
902
|
+
import * as i03 from "@angular/core";
|
|
903
|
+
import * as i12 from "@ngrx/store";
|
|
1036
904
|
var BrowserStorageType;
|
|
1037
905
|
(function(BrowserStorageType2) {
|
|
1038
906
|
BrowserStorageType2[BrowserStorageType2["local"] = 0] = "local";
|
|
@@ -1124,18 +992,18 @@ var StoreService = class _StoreService {
|
|
|
1124
992
|
}
|
|
1125
993
|
}
|
|
1126
994
|
static {
|
|
1127
|
-
this.ɵfac =
|
|
995
|
+
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i03, type: _StoreService, deps: [{ token: i12.Store, optional: true }, { token: LogService, optional: true }], target: i03.ɵɵFactoryTarget.Injectable });
|
|
1128
996
|
}
|
|
1129
997
|
static {
|
|
1130
|
-
this.ɵprov =
|
|
998
|
+
this.ɵprov = i03.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i03, type: _StoreService, providedIn: "root" });
|
|
1131
999
|
}
|
|
1132
1000
|
};
|
|
1133
|
-
|
|
1134
|
-
type:
|
|
1001
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i03, type: StoreService, decorators: [{
|
|
1002
|
+
type: Injectable2,
|
|
1135
1003
|
args: [{
|
|
1136
1004
|
providedIn: "root"
|
|
1137
1005
|
}]
|
|
1138
|
-
}], ctorParameters: () => [{ type:
|
|
1006
|
+
}], ctorParameters: () => [{ type: i12.Store, decorators: [{
|
|
1139
1007
|
type: Optional
|
|
1140
1008
|
}] }, { type: LogService, decorators: [{
|
|
1141
1009
|
type: Optional
|
|
@@ -1143,8 +1011,8 @@ i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1",
|
|
|
1143
1011
|
|
|
1144
1012
|
// lib/services/store/store.service.mock.mjs
|
|
1145
1013
|
import { of } from "rxjs";
|
|
1146
|
-
import { Injectable as
|
|
1147
|
-
import * as
|
|
1014
|
+
import { Injectable as Injectable3 } from "@angular/core";
|
|
1015
|
+
import * as i04 from "@angular/core";
|
|
1148
1016
|
var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
1149
1017
|
constructor() {
|
|
1150
1018
|
super(null, null);
|
|
@@ -1161,14 +1029,14 @@ var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
|
1161
1029
|
return of({});
|
|
1162
1030
|
}
|
|
1163
1031
|
static {
|
|
1164
|
-
this.ɵfac =
|
|
1032
|
+
this.ɵfac = i04.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i04, type: _StoreServiceMock, deps: [], target: i04.ɵɵFactoryTarget.Injectable });
|
|
1165
1033
|
}
|
|
1166
1034
|
static {
|
|
1167
|
-
this.ɵprov =
|
|
1035
|
+
this.ɵprov = i04.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i04, type: _StoreServiceMock });
|
|
1168
1036
|
}
|
|
1169
1037
|
};
|
|
1170
|
-
|
|
1171
|
-
type:
|
|
1038
|
+
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i04, type: StoreServiceMock, decorators: [{
|
|
1039
|
+
type: Injectable3
|
|
1172
1040
|
}], ctorParameters: () => [] });
|
|
1173
1041
|
|
|
1174
1042
|
// lib/services/app/eui-init-app.mjs
|
|
@@ -1234,8 +1102,8 @@ function getCoreChildProviders(moduleName) {
|
|
|
1234
1102
|
}
|
|
1235
1103
|
|
|
1236
1104
|
// lib/eui-core.module.mjs
|
|
1237
|
-
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as
|
|
1238
|
-
import * as
|
|
1105
|
+
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as Inject2 } from "@angular/core";
|
|
1106
|
+
import * as i05 from "@angular/core";
|
|
1239
1107
|
var CORE_ROOT_GUARD = new InjectionToken4("Internal Theme ForRoot Guard");
|
|
1240
1108
|
var CoreModule = class _CoreModule {
|
|
1241
1109
|
/**
|
|
@@ -1274,16 +1142,16 @@ var CoreModule = class _CoreModule {
|
|
|
1274
1142
|
}
|
|
1275
1143
|
}
|
|
1276
1144
|
static {
|
|
1277
|
-
this.ɵfac =
|
|
1145
|
+
this.ɵfac = i05.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i05, type: _CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: _CoreModule, optional: true, skipSelf: true }, { token: i05.Injector }], target: i05.ɵɵFactoryTarget.NgModule });
|
|
1278
1146
|
}
|
|
1279
1147
|
static {
|
|
1280
|
-
this.ɵmod =
|
|
1148
|
+
this.ɵmod = i05.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.2", ngImport: i05, type: _CoreModule });
|
|
1281
1149
|
}
|
|
1282
1150
|
static {
|
|
1283
|
-
this.ɵinj =
|
|
1151
|
+
this.ɵinj = i05.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i05, type: _CoreModule });
|
|
1284
1152
|
}
|
|
1285
1153
|
};
|
|
1286
|
-
|
|
1154
|
+
i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i05, type: CoreModule, decorators: [{
|
|
1287
1155
|
type: NgModule2,
|
|
1288
1156
|
args: [{
|
|
1289
1157
|
imports: [
|
|
@@ -1293,13 +1161,13 @@ i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1",
|
|
|
1293
1161
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1294
1162
|
type: Optional2
|
|
1295
1163
|
}, {
|
|
1296
|
-
type:
|
|
1164
|
+
type: Inject2,
|
|
1297
1165
|
args: [CORE_ROOT_GUARD]
|
|
1298
1166
|
}] }, { type: CoreModule, decorators: [{
|
|
1299
1167
|
type: Optional2
|
|
1300
1168
|
}, {
|
|
1301
1169
|
type: SkipSelf
|
|
1302
|
-
}] }, { type:
|
|
1170
|
+
}] }, { type: i05.Injector }] });
|
|
1303
1171
|
var createEuiCoreRootGuard = (core) => {
|
|
1304
1172
|
if (core) {
|
|
1305
1173
|
throw new TypeError("CoreModule.forRoot() called twice. Feature modules should use ThemeModule.forChild() instead.");
|
|
@@ -1378,8 +1246,8 @@ var EuiError = class extends ErrorSubClass {
|
|
|
1378
1246
|
};
|
|
1379
1247
|
|
|
1380
1248
|
// lib/services/errors/global-error-handler.mjs
|
|
1381
|
-
import { ErrorHandler, Injectable as
|
|
1382
|
-
import * as
|
|
1249
|
+
import { ErrorHandler, Injectable as Injectable4 } from "@angular/core";
|
|
1250
|
+
import * as i06 from "@angular/core";
|
|
1383
1251
|
var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
1384
1252
|
constructor(logService) {
|
|
1385
1253
|
super();
|
|
@@ -1392,25 +1260,25 @@ var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
|
1392
1260
|
super.handleError(error);
|
|
1393
1261
|
}
|
|
1394
1262
|
static {
|
|
1395
|
-
this.ɵfac =
|
|
1263
|
+
this.ɵfac = i06.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i06, type: _GlobalErrorHandler, deps: [{ token: LogService }], target: i06.ɵɵFactoryTarget.Injectable });
|
|
1396
1264
|
}
|
|
1397
1265
|
static {
|
|
1398
|
-
this.ɵprov =
|
|
1266
|
+
this.ɵprov = i06.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i06, type: _GlobalErrorHandler, providedIn: "root" });
|
|
1399
1267
|
}
|
|
1400
1268
|
};
|
|
1401
|
-
|
|
1402
|
-
type:
|
|
1269
|
+
i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i06, type: GlobalErrorHandler, decorators: [{
|
|
1270
|
+
type: Injectable4,
|
|
1403
1271
|
args: [{
|
|
1404
1272
|
providedIn: "root"
|
|
1405
1273
|
}]
|
|
1406
1274
|
}], ctorParameters: () => [{ type: LogService }] });
|
|
1407
1275
|
|
|
1408
1276
|
// lib/services/errors/http-error-handler.interceptor.mjs
|
|
1409
|
-
import { Inject as
|
|
1277
|
+
import { Inject as Inject3, Injectable as Injectable5 } from "@angular/core";
|
|
1410
1278
|
import { HttpErrorResponse } from "@angular/common/http";
|
|
1411
|
-
import { tap
|
|
1412
|
-
import * as
|
|
1413
|
-
import * as
|
|
1279
|
+
import { tap } from "rxjs/operators";
|
|
1280
|
+
import * as i07 from "@angular/core";
|
|
1281
|
+
import * as i13 from "@angular/router";
|
|
1414
1282
|
var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
1415
1283
|
constructor(config = DEFAULT_HTTP_ERROR_HANDLER_CONFIG, injector, router) {
|
|
1416
1284
|
this.config = config;
|
|
@@ -1420,7 +1288,7 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1420
1288
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1421
1289
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1422
1290
|
intercept(req, next) {
|
|
1423
|
-
return next.handle(req).pipe(
|
|
1291
|
+
return next.handle(req).pipe(tap({
|
|
1424
1292
|
next: () => {
|
|
1425
1293
|
},
|
|
1426
1294
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
@@ -1452,18 +1320,94 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1452
1320
|
return routes.length > 0 ? routes[0] : null;
|
|
1453
1321
|
}
|
|
1454
1322
|
static {
|
|
1455
|
-
this.ɵfac =
|
|
1323
|
+
this.ɵfac = i07.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i07, type: _HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i07.Injector }, { token: i13.Router }], target: i07.ɵɵFactoryTarget.Injectable });
|
|
1456
1324
|
}
|
|
1457
1325
|
static {
|
|
1458
|
-
this.ɵprov =
|
|
1326
|
+
this.ɵprov = i07.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i07, type: _HttpErrorHandlerInterceptor });
|
|
1459
1327
|
}
|
|
1460
1328
|
};
|
|
1461
|
-
|
|
1462
|
-
type:
|
|
1329
|
+
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i07, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1330
|
+
type: Injectable5
|
|
1463
1331
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1464
|
-
type:
|
|
1332
|
+
type: Inject3,
|
|
1465
1333
|
args: [HTTP_ERROR_HANDLER_CONFIG_TOKEN]
|
|
1466
|
-
}] }, { type:
|
|
1334
|
+
}] }, { type: i07.Injector }, { type: i13.Router }] });
|
|
1335
|
+
|
|
1336
|
+
// lib/services/growl/eui-growl.service.mjs
|
|
1337
|
+
import { Injectable as Injectable6 } from "@angular/core";
|
|
1338
|
+
import * as i08 from "@angular/core";
|
|
1339
|
+
var EuiGrowlService = class _EuiGrowlService {
|
|
1340
|
+
constructor() {
|
|
1341
|
+
this.growlMessages = [];
|
|
1342
|
+
this.isGrowlSticky = false;
|
|
1343
|
+
this.isCloseAllSticky = false;
|
|
1344
|
+
this.growlLife = 3e3;
|
|
1345
|
+
this.growlPosition = "bottom-right";
|
|
1346
|
+
this.growlCallback = null;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* displays a growl UxMessage item, isSticky
|
|
1350
|
+
*/
|
|
1351
|
+
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
1352
|
+
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
1353
|
+
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
1354
|
+
} else {
|
|
1355
|
+
if (isMultiple === void 0 || !isMultiple) {
|
|
1356
|
+
this.growlMessages = [];
|
|
1357
|
+
}
|
|
1358
|
+
this.growlMessages = this.growlMessages.concat(msg);
|
|
1359
|
+
msg.life = life || msg.life;
|
|
1360
|
+
msg.sticky = isSticky || msg.sticky;
|
|
1361
|
+
if (life === void 0 || isNaN(life)) {
|
|
1362
|
+
if (msg.severity === "danger") {
|
|
1363
|
+
isSticky = true;
|
|
1364
|
+
} else {
|
|
1365
|
+
this.growlLife = 3e3;
|
|
1366
|
+
}
|
|
1367
|
+
} else {
|
|
1368
|
+
this.growlLife = life;
|
|
1369
|
+
}
|
|
1370
|
+
if (isSticky) {
|
|
1371
|
+
this.isGrowlSticky = isSticky;
|
|
1372
|
+
} else {
|
|
1373
|
+
this.isGrowlSticky = false;
|
|
1374
|
+
}
|
|
1375
|
+
if (position2) {
|
|
1376
|
+
this.growlPosition = position2;
|
|
1377
|
+
}
|
|
1378
|
+
if (callback) {
|
|
1379
|
+
this.growlCallback = callback;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
clearGrowl() {
|
|
1384
|
+
this.growlMessages = [];
|
|
1385
|
+
}
|
|
1386
|
+
growlSuccess(msg, position2) {
|
|
1387
|
+
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
1388
|
+
}
|
|
1389
|
+
growlError(msg, position2) {
|
|
1390
|
+
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
1391
|
+
}
|
|
1392
|
+
growlWarning(msg, position2) {
|
|
1393
|
+
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
1394
|
+
}
|
|
1395
|
+
growlInfo(msg, position2) {
|
|
1396
|
+
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
1397
|
+
}
|
|
1398
|
+
static {
|
|
1399
|
+
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i08, type: _EuiGrowlService, deps: [], target: i08.ɵɵFactoryTarget.Injectable });
|
|
1400
|
+
}
|
|
1401
|
+
static {
|
|
1402
|
+
this.ɵprov = i08.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i08, type: _EuiGrowlService, providedIn: "root" });
|
|
1403
|
+
}
|
|
1404
|
+
};
|
|
1405
|
+
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i08, type: EuiGrowlService, decorators: [{
|
|
1406
|
+
type: Injectable6,
|
|
1407
|
+
args: [{
|
|
1408
|
+
providedIn: "root"
|
|
1409
|
+
}]
|
|
1410
|
+
}] });
|
|
1467
1411
|
|
|
1468
1412
|
// lib/services/errors/http-error-handler-callback-functions.mjs
|
|
1469
1413
|
function AlertHttpErrorCallbackFn(error) {
|
|
@@ -1482,12 +1426,12 @@ function GrowlHttpErrorCallbackFn(error, injector) {
|
|
|
1482
1426
|
}
|
|
1483
1427
|
|
|
1484
1428
|
// lib/services/queue/api-queue.service.mjs
|
|
1485
|
-
import { Injectable as
|
|
1429
|
+
import { Injectable as Injectable7, Optional as Optional3 } from "@angular/core";
|
|
1486
1430
|
import { of as of2, forkJoin, from } from "rxjs";
|
|
1487
|
-
import { tap as
|
|
1431
|
+
import { tap as tap2, switchMap, take, map, catchError, concatMap } from "rxjs/operators";
|
|
1488
1432
|
import { getApiQueue, getApiQueueItem } from "@eui/base";
|
|
1489
|
-
import * as
|
|
1490
|
-
import * as
|
|
1433
|
+
import * as i09 from "@angular/core";
|
|
1434
|
+
import * as i2 from "@angular/common/http";
|
|
1491
1435
|
var ApiQueueService = class _ApiQueueService {
|
|
1492
1436
|
constructor(store, http, logService) {
|
|
1493
1437
|
this.store = store;
|
|
@@ -1548,7 +1492,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1548
1492
|
* });
|
|
1549
1493
|
*/
|
|
1550
1494
|
getQueue() {
|
|
1551
|
-
return this.store.select(getApiQueue).pipe(take(1),
|
|
1495
|
+
return this.store.select(getApiQueue).pipe(take(1), map((queue) => {
|
|
1552
1496
|
const queueArray = queue && Object.values(queue);
|
|
1553
1497
|
if (!queueArray || queueArray.length < 1) {
|
|
1554
1498
|
this.logger?.warn("No items in the queue exist.");
|
|
@@ -1582,7 +1526,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1582
1526
|
* });
|
|
1583
1527
|
*/
|
|
1584
1528
|
getQueueItem(id) {
|
|
1585
|
-
return this.store.select(getApiQueueItem(id)).pipe(take(1),
|
|
1529
|
+
return this.store.select(getApiQueueItem(id)).pipe(take(1), map((queue) => {
|
|
1586
1530
|
if (!queue) {
|
|
1587
1531
|
this.logger?.warn(`Queue item with id "${id}" does not exist`);
|
|
1588
1532
|
return null;
|
|
@@ -1683,7 +1627,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1683
1627
|
// TODO: Refine the return type to be more specific or implement generics, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1684
1628
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1685
1629
|
processAllQueueItems(continueOnError = true) {
|
|
1686
|
-
return this.store.select(getApiQueue).pipe(
|
|
1630
|
+
return this.store.select(getApiQueue).pipe(map((queue) => Object.entries(queue).map(([key, value]) => this.buildHttpRequest(key, value).pipe(catchError((error) => {
|
|
1687
1631
|
this.logger?.error(`Queue Item with id ${key} failed.`, error.message, error.stack);
|
|
1688
1632
|
if (!continueOnError) {
|
|
1689
1633
|
throw error;
|
|
@@ -1765,21 +1709,21 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1765
1709
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1766
1710
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1767
1711
|
buildHttpRequest(id, item) {
|
|
1768
|
-
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(
|
|
1712
|
+
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap2(() => this.removeQueueItem(id)));
|
|
1769
1713
|
}
|
|
1770
1714
|
static {
|
|
1771
|
-
this.ɵfac =
|
|
1715
|
+
this.ɵfac = i09.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i09, type: _ApiQueueService, deps: [{ token: StoreService }, { token: i2.HttpClient }, { token: LogService, optional: true }], target: i09.ɵɵFactoryTarget.Injectable });
|
|
1772
1716
|
}
|
|
1773
1717
|
static {
|
|
1774
|
-
this.ɵprov =
|
|
1718
|
+
this.ɵprov = i09.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i09, type: _ApiQueueService, providedIn: "root" });
|
|
1775
1719
|
}
|
|
1776
1720
|
};
|
|
1777
|
-
|
|
1778
|
-
type:
|
|
1721
|
+
i09.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i09, type: ApiQueueService, decorators: [{
|
|
1722
|
+
type: Injectable7,
|
|
1779
1723
|
args: [{
|
|
1780
1724
|
providedIn: "root"
|
|
1781
1725
|
}]
|
|
1782
|
-
}], ctorParameters: () => [{ type: StoreService }, { type:
|
|
1726
|
+
}], ctorParameters: () => [{ type: StoreService }, { type: i2.HttpClient }, { type: LogService, decorators: [{
|
|
1783
1727
|
type: Optional3
|
|
1784
1728
|
}] }] });
|
|
1785
1729
|
|
|
@@ -1860,13 +1804,13 @@ var I18nResourceImpl = class {
|
|
|
1860
1804
|
};
|
|
1861
1805
|
|
|
1862
1806
|
// lib/services/i18n/i18n.loader.mjs
|
|
1863
|
-
import { Inject as
|
|
1807
|
+
import { Inject as Inject4, Injectable as Injectable8, Optional as Optional4 } from "@angular/core";
|
|
1864
1808
|
import { TranslateLoader } from "@ngx-translate/core";
|
|
1865
1809
|
import { forkJoin as forkJoin2, of as of4 } from "rxjs";
|
|
1866
|
-
import { catchError as catchError2, map as
|
|
1810
|
+
import { catchError as catchError2, map as map2 } from "rxjs/operators";
|
|
1867
1811
|
import { getI18nLoaderConfig, mergeAll } from "@eui/base";
|
|
1868
|
-
import * as
|
|
1869
|
-
import * as
|
|
1812
|
+
import * as i010 from "@angular/core";
|
|
1813
|
+
import * as i14 from "@angular/common/http";
|
|
1870
1814
|
var I18nLoader = class _I18nLoader {
|
|
1871
1815
|
constructor(http, logService, euiAppConfig) {
|
|
1872
1816
|
this.http = http;
|
|
@@ -1890,7 +1834,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1890
1834
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1891
1835
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1892
1836
|
getTranslation(lang) {
|
|
1893
|
-
return this.loadResources(this.resources, lang).pipe(
|
|
1837
|
+
return this.loadResources(this.resources, lang).pipe(map2((loadedResources) => {
|
|
1894
1838
|
this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
|
|
1895
1839
|
return loadedResources.translations;
|
|
1896
1840
|
}));
|
|
@@ -1925,7 +1869,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1925
1869
|
loadResources(resources, lang) {
|
|
1926
1870
|
if (Array.isArray(resources) && resources.length > 0) {
|
|
1927
1871
|
const requests = resources.map((resource) => this.loadResource(resource, lang));
|
|
1928
|
-
return forkJoin2(requests).pipe(
|
|
1872
|
+
return forkJoin2(requests).pipe(map2((response) => {
|
|
1929
1873
|
const successResp = [];
|
|
1930
1874
|
const errResp = [];
|
|
1931
1875
|
response.forEach((item) => {
|
|
@@ -1989,10 +1933,10 @@ var I18nLoader = class _I18nLoader {
|
|
|
1989
1933
|
// preprocess the translations using the resource compiler
|
|
1990
1934
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1991
1935
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1992
|
-
|
|
1936
|
+
map2((translations) => resource.compileTranslations(translations, lang)),
|
|
1993
1937
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1994
1938
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1995
|
-
|
|
1939
|
+
map2((translations) => {
|
|
1996
1940
|
this.logger?.info(`I18n resource loaded from path ${path}`);
|
|
1997
1941
|
return translations;
|
|
1998
1942
|
}),
|
|
@@ -2011,18 +1955,18 @@ var I18nLoader = class _I18nLoader {
|
|
|
2011
1955
|
return void 0;
|
|
2012
1956
|
}
|
|
2013
1957
|
static {
|
|
2014
|
-
this.ɵfac =
|
|
1958
|
+
this.ɵfac = i010.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i010, type: _I18nLoader, deps: [{ token: i14.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i010.ɵɵFactoryTarget.Injectable });
|
|
2015
1959
|
}
|
|
2016
1960
|
static {
|
|
2017
|
-
this.ɵprov =
|
|
1961
|
+
this.ɵprov = i010.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i010, type: _I18nLoader });
|
|
2018
1962
|
}
|
|
2019
1963
|
};
|
|
2020
|
-
|
|
2021
|
-
type:
|
|
2022
|
-
}], ctorParameters: () => [{ type:
|
|
1964
|
+
i010.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i010, type: I18nLoader, decorators: [{
|
|
1965
|
+
type: Injectable8
|
|
1966
|
+
}], ctorParameters: () => [{ type: i14.HttpClient }, { type: LogService, decorators: [{
|
|
2023
1967
|
type: Optional4
|
|
2024
1968
|
}] }, { type: void 0, decorators: [{
|
|
2025
|
-
type:
|
|
1969
|
+
type: Inject4,
|
|
2026
1970
|
args: [CONFIG_TOKEN]
|
|
2027
1971
|
}] }] });
|
|
2028
1972
|
var translateConfig = {
|
|
@@ -2034,13 +1978,13 @@ var translateConfig = {
|
|
|
2034
1978
|
|
|
2035
1979
|
// lib/services/i18n/i18n.service.mjs
|
|
2036
1980
|
import { DOCUMENT } from "@angular/common";
|
|
2037
|
-
import { Inject as
|
|
1981
|
+
import { Inject as Inject5, Injectable as Injectable9, Optional as Optional5 } from "@angular/core";
|
|
2038
1982
|
import { BehaviorSubject, forkJoin as forkJoin3, of as of5 } from "rxjs";
|
|
2039
|
-
import { catchError as catchError3, filter, map as
|
|
1983
|
+
import { catchError as catchError3, filter, map as map3, take as take2, tap as tap3, switchMap as switchMap2 } from "rxjs/operators";
|
|
2040
1984
|
import { EuiLazyService, getI18nServiceConfigFromBase, getI18nState, getActiveLang, getLastAddedModule, getBrowserDefaultLanguage, EuiEuLanguages } from "@eui/base";
|
|
2041
1985
|
import { createSelector } from "@ngrx/store";
|
|
2042
|
-
import * as
|
|
2043
|
-
import * as
|
|
1986
|
+
import * as i011 from "@angular/core";
|
|
1987
|
+
import * as i15 from "@ngx-translate/core";
|
|
2044
1988
|
var I18nService = class _I18nService extends EuiLazyService {
|
|
2045
1989
|
constructor(baseGlobalConfig, translateService, logService, store, document2) {
|
|
2046
1990
|
super({ activeLang: "en" });
|
|
@@ -2086,7 +2030,7 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2086
2030
|
}
|
|
2087
2031
|
onReady(moduleName) {
|
|
2088
2032
|
return this.onModuleLoad.pipe(
|
|
2089
|
-
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(
|
|
2033
|
+
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(tap3((m) => moduleName = m), map3(() => evt))),
|
|
2090
2034
|
// emit only if event emitted matches the module name and is ready
|
|
2091
2035
|
filter((evt) => evt.ready === true && evt.name === moduleName),
|
|
2092
2036
|
// make sure that observable completes
|
|
@@ -2115,16 +2059,16 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2115
2059
|
const langSubscription = [];
|
|
2116
2060
|
const i18nLoader = loader;
|
|
2117
2061
|
const resources = i18nLoader.addResources(config);
|
|
2118
|
-
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1),
|
|
2062
|
+
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1), tap3((loadedResources) => {
|
|
2119
2063
|
this.translateService.setTranslation(this.translateService.currentLang, loadedResources.translations, true);
|
|
2120
2064
|
})));
|
|
2121
2065
|
const defaultLang = this.config.defaultLanguage || this.translateService.defaultLang;
|
|
2122
2066
|
if (this.translateService.currentLang !== defaultLang) {
|
|
2123
|
-
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1),
|
|
2067
|
+
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1), tap3((loadedResources) => {
|
|
2124
2068
|
this.translateService.setTranslation(defaultLang, loadedResources.translations, true);
|
|
2125
2069
|
})));
|
|
2126
2070
|
}
|
|
2127
|
-
return forkJoin3(langSubscription).pipe(
|
|
2071
|
+
return forkJoin3(langSubscription).pipe(map3((loadedResourcesArr) => !loadedResourcesArr[0].hasError ? { success: true } : { success: false, error: loadedResourcesArr[0].errors }), tap3(() => {
|
|
2128
2072
|
this.onModuleLoad.next({ ready: true, name: moduleName });
|
|
2129
2073
|
}), catchError3((error) => {
|
|
2130
2074
|
this.onModuleLoad.next({ ready: true, name: moduleName, error });
|
|
@@ -2156,13 +2100,13 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2156
2100
|
this.logService.info(`I18n accepted languages set to ${EuiEuLanguages.getLanguageCodes(this.config.languages)}`);
|
|
2157
2101
|
}
|
|
2158
2102
|
}
|
|
2159
|
-
return this.translateService.use(initLanguage).pipe(
|
|
2103
|
+
return this.translateService.use(initLanguage).pipe(tap3(() => {
|
|
2160
2104
|
this.bindActiveLangStateToTranslateService();
|
|
2161
2105
|
this.bindTranslateServiceLangChangeToState();
|
|
2162
2106
|
if (this.config.defaultLanguage) {
|
|
2163
2107
|
this.setDefaultLanguage(this.config.defaultLanguage);
|
|
2164
2108
|
}
|
|
2165
|
-
}),
|
|
2109
|
+
}), map3(() => {
|
|
2166
2110
|
if (this.translateService.currentLoader instanceof I18nLoader) {
|
|
2167
2111
|
const failedResources = this.translateService.currentLoader.getFailedResources();
|
|
2168
2112
|
if (failedResources.length > 0) {
|
|
@@ -2216,24 +2160,24 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2216
2160
|
this.document.documentElement.lang = lang;
|
|
2217
2161
|
}
|
|
2218
2162
|
static {
|
|
2219
|
-
this.ɵfac =
|
|
2163
|
+
this.ɵfac = i011.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i011, type: _I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i15.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i011.ɵɵFactoryTarget.Injectable });
|
|
2220
2164
|
}
|
|
2221
2165
|
static {
|
|
2222
|
-
this.ɵprov =
|
|
2166
|
+
this.ɵprov = i011.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i011, type: _I18nService, providedIn: "root" });
|
|
2223
2167
|
}
|
|
2224
2168
|
};
|
|
2225
|
-
|
|
2226
|
-
type:
|
|
2169
|
+
i011.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i011, type: I18nService, decorators: [{
|
|
2170
|
+
type: Injectable9,
|
|
2227
2171
|
args: [{
|
|
2228
2172
|
providedIn: "root"
|
|
2229
2173
|
}]
|
|
2230
2174
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
2231
|
-
type:
|
|
2175
|
+
type: Inject5,
|
|
2232
2176
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
2233
|
-
}] }, { type:
|
|
2177
|
+
}] }, { type: i15.TranslateService }, { type: LogService, decorators: [{
|
|
2234
2178
|
type: Optional5
|
|
2235
2179
|
}] }, { type: StoreService }, { type: Document, decorators: [{
|
|
2236
|
-
type:
|
|
2180
|
+
type: Inject5,
|
|
2237
2181
|
args: [DOCUMENT]
|
|
2238
2182
|
}] }] });
|
|
2239
2183
|
|
|
@@ -2418,10 +2362,10 @@ var handleError = (error) => {
|
|
|
2418
2362
|
var isDefined = (value) => value !== void 0 && value !== null;
|
|
2419
2363
|
|
|
2420
2364
|
// lib/services/permission/permission.service.mjs
|
|
2421
|
-
import { Injectable as
|
|
2365
|
+
import { Injectable as Injectable10, Optional as Optional6 } from "@angular/core";
|
|
2422
2366
|
import { EuiService, getUserRights } from "@eui/base";
|
|
2423
2367
|
import { of as of6 } from "rxjs";
|
|
2424
|
-
import * as
|
|
2368
|
+
import * as i012 from "@angular/core";
|
|
2425
2369
|
var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
2426
2370
|
constructor(log, store) {
|
|
2427
2371
|
super([]);
|
|
@@ -2627,14 +2571,14 @@ var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
|
2627
2571
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2628
2572
|
}
|
|
2629
2573
|
static {
|
|
2630
|
-
this.ɵfac =
|
|
2574
|
+
this.ɵfac = i012.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i012, type: _EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i012.ɵɵFactoryTarget.Injectable });
|
|
2631
2575
|
}
|
|
2632
2576
|
static {
|
|
2633
|
-
this.ɵprov =
|
|
2577
|
+
this.ɵprov = i012.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i012, type: _EuiPermissionService, providedIn: "root" });
|
|
2634
2578
|
}
|
|
2635
2579
|
};
|
|
2636
|
-
|
|
2637
|
-
type:
|
|
2580
|
+
i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i012, type: EuiPermissionService, decorators: [{
|
|
2581
|
+
type: Injectable10,
|
|
2638
2582
|
args: [{
|
|
2639
2583
|
providedIn: "root"
|
|
2640
2584
|
}]
|
|
@@ -2643,9 +2587,9 @@ i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
2643
2587
|
}] }, { type: StoreService }] });
|
|
2644
2588
|
|
|
2645
2589
|
// lib/services/dynamic-menu/dynamic-menu.service.mjs
|
|
2646
|
-
import { Injectable as
|
|
2590
|
+
import { Injectable as Injectable11 } from "@angular/core";
|
|
2647
2591
|
import { getUserState } from "@eui/base";
|
|
2648
|
-
import * as
|
|
2592
|
+
import * as i013 from "@angular/core";
|
|
2649
2593
|
var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
2650
2594
|
// TODO: it should be moved euiservice, or it should be static
|
|
2651
2595
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
@@ -2694,23 +2638,23 @@ var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
|
2694
2638
|
});
|
|
2695
2639
|
}
|
|
2696
2640
|
static {
|
|
2697
|
-
this.ɵfac =
|
|
2641
|
+
this.ɵfac = i013.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i013, type: _EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i013.ɵɵFactoryTarget.Injectable });
|
|
2698
2642
|
}
|
|
2699
2643
|
static {
|
|
2700
|
-
this.ɵprov =
|
|
2644
|
+
this.ɵprov = i013.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i013, type: _EuiDynamicMenuService, providedIn: "root" });
|
|
2701
2645
|
}
|
|
2702
2646
|
};
|
|
2703
|
-
|
|
2704
|
-
type:
|
|
2647
|
+
i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i013, type: EuiDynamicMenuService, decorators: [{
|
|
2648
|
+
type: Injectable11,
|
|
2705
2649
|
args: [{
|
|
2706
2650
|
providedIn: "root"
|
|
2707
2651
|
}]
|
|
2708
2652
|
}], ctorParameters: () => [{ type: EuiPermissionService }, { type: StoreService }] });
|
|
2709
2653
|
|
|
2710
2654
|
// lib/services/dynamic-component/dynamic-component.service.mjs
|
|
2711
|
-
import { Injectable as
|
|
2655
|
+
import { Injectable as Injectable12, InjectionToken as InjectionToken5 } from "@angular/core";
|
|
2712
2656
|
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
|
|
2713
|
-
import * as
|
|
2657
|
+
import * as i014 from "@angular/core";
|
|
2714
2658
|
var DYNAMIC_COMPONENT_CONFIG = new InjectionToken5("DYNAMIC_COMPONENT_CONFIG");
|
|
2715
2659
|
var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
2716
2660
|
constructor(componentFactoryResolver, injector, appRef) {
|
|
@@ -2765,28 +2709,28 @@ var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
|
2765
2709
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2766
2710
|
}
|
|
2767
2711
|
static {
|
|
2768
|
-
this.ɵfac =
|
|
2712
|
+
this.ɵfac = i014.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i014, type: _EuiDynamicComponentService, deps: [{ token: i014.ComponentFactoryResolver }, { token: i014.Injector }, { token: i014.ApplicationRef }], target: i014.ɵɵFactoryTarget.Injectable });
|
|
2769
2713
|
}
|
|
2770
2714
|
static {
|
|
2771
|
-
this.ɵprov =
|
|
2715
|
+
this.ɵprov = i014.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i014, type: _EuiDynamicComponentService });
|
|
2772
2716
|
}
|
|
2773
2717
|
};
|
|
2774
|
-
|
|
2775
|
-
type:
|
|
2776
|
-
}], ctorParameters: () => [{ type:
|
|
2718
|
+
i014.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i014, type: EuiDynamicComponentService, decorators: [{
|
|
2719
|
+
type: Injectable12
|
|
2720
|
+
}], ctorParameters: () => [{ type: i014.ComponentFactoryResolver }, { type: i014.Injector }, { type: i014.ApplicationRef }] });
|
|
2777
2721
|
|
|
2778
2722
|
// lib/services/eui-app-shell.service.mjs
|
|
2779
|
-
import { Inject as
|
|
2723
|
+
import { Inject as Inject6, Injectable as Injectable13, Optional as Optional7, PLATFORM_ID } from "@angular/core";
|
|
2780
2724
|
import { isPlatformBrowser } from "@angular/common";
|
|
2781
2725
|
import { BehaviorSubject as BehaviorSubject2, defer, firstValueFrom } from "rxjs";
|
|
2782
2726
|
import { EuiEuLanguages as EuiEuLanguages2, getActiveLang as getActiveLang2 } from "@eui/base";
|
|
2783
2727
|
import { NavigationEnd } from "@angular/router";
|
|
2784
|
-
import { distinctUntilChanged as distinctUntilChanged2, map as
|
|
2728
|
+
import { distinctUntilChanged as distinctUntilChanged2, map as map4 } from "rxjs/operators";
|
|
2785
2729
|
import isEqual from "lodash-es/isEqual";
|
|
2786
2730
|
import get from "lodash-es/get";
|
|
2787
|
-
import * as
|
|
2788
|
-
import * as
|
|
2789
|
-
import * as
|
|
2731
|
+
import * as i015 from "@angular/core";
|
|
2732
|
+
import * as i16 from "@angular/common/http";
|
|
2733
|
+
import * as i22 from "@angular/router";
|
|
2790
2734
|
var initialState = {
|
|
2791
2735
|
appName: "",
|
|
2792
2736
|
appShortName: "",
|
|
@@ -2998,7 +2942,7 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2998
2942
|
return defer(() => (
|
|
2999
2943
|
// check if key exists
|
|
3000
2944
|
key ? this.state$.pipe(
|
|
3001
|
-
|
|
2945
|
+
map4((state) => get(state, key)),
|
|
3002
2946
|
// filter((state) => state),
|
|
3003
2947
|
distinctUntilChanged2((x, y) => isEqual(x, y))
|
|
3004
2948
|
) : this.state$
|
|
@@ -3416,32 +3360,32 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3416
3360
|
});
|
|
3417
3361
|
}
|
|
3418
3362
|
static {
|
|
3419
|
-
this.ɵfac =
|
|
3363
|
+
this.ɵfac = i015.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i015, type: _EuiAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i16.HttpClient }, { token: PLATFORM_ID }, { token: i22.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i015.ɵɵFactoryTarget.Injectable });
|
|
3420
3364
|
}
|
|
3421
3365
|
static {
|
|
3422
|
-
this.ɵprov =
|
|
3366
|
+
this.ɵprov = i015.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i015, type: _EuiAppShellService, providedIn: "root" });
|
|
3423
3367
|
}
|
|
3424
3368
|
};
|
|
3425
|
-
|
|
3426
|
-
type:
|
|
3369
|
+
i015.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i015, type: EuiAppShellService, decorators: [{
|
|
3370
|
+
type: Injectable13,
|
|
3427
3371
|
args: [{
|
|
3428
3372
|
providedIn: "root"
|
|
3429
3373
|
}]
|
|
3430
3374
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3431
3375
|
type: Optional7
|
|
3432
3376
|
}, {
|
|
3433
|
-
type:
|
|
3377
|
+
type: Inject6,
|
|
3434
3378
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
3435
|
-
}] }, { type:
|
|
3436
|
-
type:
|
|
3379
|
+
}] }, { type: i16.HttpClient }, { type: void 0, decorators: [{
|
|
3380
|
+
type: Inject6,
|
|
3437
3381
|
args: [PLATFORM_ID]
|
|
3438
|
-
}] }, { type:
|
|
3382
|
+
}] }, { type: i22.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3439
3383
|
type: Optional7
|
|
3440
3384
|
}] }] });
|
|
3441
3385
|
|
|
3442
3386
|
// lib/services/eui-timezone.service.mjs
|
|
3443
|
-
import { Injectable as
|
|
3444
|
-
import * as
|
|
3387
|
+
import { Injectable as Injectable14 } from "@angular/core";
|
|
3388
|
+
import * as i016 from "@angular/core";
|
|
3445
3389
|
var EUI_COUNTRIES = {
|
|
3446
3390
|
AF: "Afghanistan",
|
|
3447
3391
|
AX: "Aland Islands",
|
|
@@ -4149,14 +4093,14 @@ var EuiTimezoneService = class _EuiTimezoneService {
|
|
|
4149
4093
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4150
4094
|
}
|
|
4151
4095
|
static {
|
|
4152
|
-
this.ɵfac =
|
|
4096
|
+
this.ɵfac = i016.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i016, type: _EuiTimezoneService, deps: [], target: i016.ɵɵFactoryTarget.Injectable });
|
|
4153
4097
|
}
|
|
4154
4098
|
static {
|
|
4155
|
-
this.ɵprov =
|
|
4099
|
+
this.ɵprov = i016.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i016, type: _EuiTimezoneService });
|
|
4156
4100
|
}
|
|
4157
4101
|
};
|
|
4158
|
-
|
|
4159
|
-
type:
|
|
4102
|
+
i016.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i016, type: EuiTimezoneService, decorators: [{
|
|
4103
|
+
type: Injectable14
|
|
4160
4104
|
}] });
|
|
4161
4105
|
|
|
4162
4106
|
// lib/services/storage/storage.service.mjs
|
|
@@ -4226,8 +4170,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
4226
4170
|
};
|
|
4227
4171
|
|
|
4228
4172
|
// lib/services/storage/local-storage.service.mjs
|
|
4229
|
-
import { Injectable as
|
|
4230
|
-
import * as
|
|
4173
|
+
import { Injectable as Injectable15, Optional as Optional8 } from "@angular/core";
|
|
4174
|
+
import * as i017 from "@angular/core";
|
|
4231
4175
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
4232
4176
|
static {
|
|
4233
4177
|
this.NAME = "LocalStorageService";
|
|
@@ -4291,21 +4235,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
4291
4235
|
}
|
|
4292
4236
|
}
|
|
4293
4237
|
static {
|
|
4294
|
-
this.ɵfac =
|
|
4238
|
+
this.ɵfac = i017.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i017, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i017.ɵɵFactoryTarget.Injectable });
|
|
4295
4239
|
}
|
|
4296
4240
|
static {
|
|
4297
|
-
this.ɵprov =
|
|
4241
|
+
this.ɵprov = i017.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i017, type: _LocalStorageService });
|
|
4298
4242
|
}
|
|
4299
4243
|
};
|
|
4300
|
-
|
|
4301
|
-
type:
|
|
4244
|
+
i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i017, type: LocalStorageService, decorators: [{
|
|
4245
|
+
type: Injectable15
|
|
4302
4246
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4303
4247
|
type: Optional8
|
|
4304
4248
|
}] }] });
|
|
4305
4249
|
|
|
4306
4250
|
// lib/services/storage/session-storage.service.mjs
|
|
4307
|
-
import { Injectable as
|
|
4308
|
-
import * as
|
|
4251
|
+
import { Injectable as Injectable16, Optional as Optional9 } from "@angular/core";
|
|
4252
|
+
import * as i018 from "@angular/core";
|
|
4309
4253
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
4310
4254
|
static {
|
|
4311
4255
|
this.NAME = "SessionStorageService";
|
|
@@ -4369,24 +4313,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4369
4313
|
}
|
|
4370
4314
|
}
|
|
4371
4315
|
static {
|
|
4372
|
-
this.ɵfac =
|
|
4316
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i018, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
4373
4317
|
}
|
|
4374
4318
|
static {
|
|
4375
|
-
this.ɵprov =
|
|
4319
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i018, type: _SessionStorageService });
|
|
4376
4320
|
}
|
|
4377
4321
|
};
|
|
4378
|
-
|
|
4379
|
-
type:
|
|
4322
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i018, type: SessionStorageService, decorators: [{
|
|
4323
|
+
type: Injectable16
|
|
4380
4324
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4381
4325
|
type: Optional9
|
|
4382
4326
|
}] }] });
|
|
4383
4327
|
|
|
4384
4328
|
// lib/services/storage/local-forage.service.mjs
|
|
4385
|
-
import { Inject as
|
|
4329
|
+
import { Inject as Inject7, Injectable as Injectable17, InjectionToken as InjectionToken6, Optional as Optional10 } from "@angular/core";
|
|
4386
4330
|
import { from as from2 } from "rxjs";
|
|
4387
|
-
import { take as take3, tap as
|
|
4331
|
+
import { take as take3, tap as tap4 } from "rxjs/operators";
|
|
4388
4332
|
import * as lf from "localforage";
|
|
4389
|
-
import * as
|
|
4333
|
+
import * as i019 from "@angular/core";
|
|
4390
4334
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4391
4335
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4392
4336
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4414,7 +4358,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4414
4358
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4415
4359
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4416
4360
|
ready() {
|
|
4417
|
-
return from2(localForage.ready()).pipe(take3(1),
|
|
4361
|
+
return from2(localForage.ready()).pipe(take3(1), tap4({
|
|
4418
4362
|
next: () => {
|
|
4419
4363
|
},
|
|
4420
4364
|
error: (err) => {
|
|
@@ -4432,7 +4376,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4432
4376
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4433
4377
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4434
4378
|
get(key) {
|
|
4435
|
-
return from2(localForage.getItem(key)).pipe(take3(1),
|
|
4379
|
+
return from2(localForage.getItem(key)).pipe(take3(1), tap4(() => {
|
|
4436
4380
|
}, (err) => {
|
|
4437
4381
|
if (this.log) {
|
|
4438
4382
|
this.log.error(this.name(), "get", err);
|
|
@@ -4448,7 +4392,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4448
4392
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4449
4393
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4450
4394
|
set(key, value) {
|
|
4451
|
-
return from2(localForage.setItem(key, value)).pipe(take3(1),
|
|
4395
|
+
return from2(localForage.setItem(key, value)).pipe(take3(1), tap4({
|
|
4452
4396
|
next: () => {
|
|
4453
4397
|
},
|
|
4454
4398
|
error: (err) => {
|
|
@@ -4466,7 +4410,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4466
4410
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4467
4411
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4468
4412
|
remove(key) {
|
|
4469
|
-
return from2(localForage.removeItem(key)).pipe(take3(1),
|
|
4413
|
+
return from2(localForage.removeItem(key)).pipe(take3(1), tap4({
|
|
4470
4414
|
next: () => {
|
|
4471
4415
|
},
|
|
4472
4416
|
error: (err) => {
|
|
@@ -4477,16 +4421,16 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4477
4421
|
}));
|
|
4478
4422
|
}
|
|
4479
4423
|
static {
|
|
4480
|
-
this.ɵfac =
|
|
4424
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i019, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4481
4425
|
}
|
|
4482
4426
|
static {
|
|
4483
|
-
this.ɵprov =
|
|
4427
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i019, type: _LocalForageService });
|
|
4484
4428
|
}
|
|
4485
4429
|
};
|
|
4486
|
-
|
|
4487
|
-
type:
|
|
4430
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i019, type: LocalForageService, decorators: [{
|
|
4431
|
+
type: Injectable17
|
|
4488
4432
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4489
|
-
type:
|
|
4433
|
+
type: Inject7,
|
|
4490
4434
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4491
4435
|
}, {
|
|
4492
4436
|
type: Optional10
|
|
@@ -4495,13 +4439,13 @@ i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
4495
4439
|
}] }] });
|
|
4496
4440
|
|
|
4497
4441
|
// lib/services/locale/locale.service.mjs
|
|
4498
|
-
import { Inject as
|
|
4442
|
+
import { Inject as Inject8, Injectable as Injectable18, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional11 } from "@angular/core";
|
|
4499
4443
|
import { getLocaleId } from "@angular/common";
|
|
4500
4444
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4501
4445
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4502
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4446
|
+
import { catchError as catchError4, filter as filter2, map as map5, switchMap as switchMap3, take as take4, takeUntil, tap as tap5 } from "rxjs/operators";
|
|
4503
4447
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4504
|
-
import * as
|
|
4448
|
+
import * as i020 from "@angular/core";
|
|
4505
4449
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4506
4450
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4507
4451
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4549,7 +4493,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4549
4493
|
return this.store.select(selector).pipe(
|
|
4550
4494
|
takeUntil(this.subNotifier),
|
|
4551
4495
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4552
|
-
|
|
4496
|
+
map5((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4553
4497
|
);
|
|
4554
4498
|
}
|
|
4555
4499
|
/**
|
|
@@ -4565,7 +4509,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4565
4509
|
this.bindTranslateServiceLangChangeToState();
|
|
4566
4510
|
}
|
|
4567
4511
|
const availableLocales = state?.available || this.config?.available || this.getBrowserLocales() || [this.currentLocale];
|
|
4568
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier),
|
|
4512
|
+
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap5(() => this.updateState(state || { id: this.currentLocale })));
|
|
4569
4513
|
}
|
|
4570
4514
|
/**
|
|
4571
4515
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4654,7 +4598,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4654
4598
|
if (this.log) {
|
|
4655
4599
|
this.logger.debug(error);
|
|
4656
4600
|
}
|
|
4657
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4601
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map5(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4658
4602
|
if (this.log) {
|
|
4659
4603
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4660
4604
|
}
|
|
@@ -4663,7 +4607,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4663
4607
|
})
|
|
4664
4608
|
)),
|
|
4665
4609
|
// update the "available" array attribute with newly registered
|
|
4666
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4610
|
+
switchMap3((id) => this.getState().pipe(take4(1), map5((state) => {
|
|
4667
4611
|
const available = state?.available ? state.available : [];
|
|
4668
4612
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4669
4613
|
})))
|
|
@@ -4686,27 +4630,27 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4686
4630
|
return browserLocales.map((locale) => locale.trim());
|
|
4687
4631
|
}
|
|
4688
4632
|
static {
|
|
4689
|
-
this.ɵfac =
|
|
4633
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i020, 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: i020.ɵɵFactoryTarget.Injectable });
|
|
4690
4634
|
}
|
|
4691
4635
|
static {
|
|
4692
|
-
this.ɵprov =
|
|
4636
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i020, type: _LocaleService, providedIn: "root" });
|
|
4693
4637
|
}
|
|
4694
4638
|
};
|
|
4695
|
-
|
|
4696
|
-
type:
|
|
4639
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i020, type: LocaleService, decorators: [{
|
|
4640
|
+
type: Injectable18,
|
|
4697
4641
|
args: [{
|
|
4698
4642
|
providedIn: "root"
|
|
4699
4643
|
}]
|
|
4700
4644
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4701
|
-
type:
|
|
4645
|
+
type: Inject8,
|
|
4702
4646
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4703
4647
|
}] }, { type: void 0, decorators: [{
|
|
4704
|
-
type:
|
|
4648
|
+
type: Inject8,
|
|
4705
4649
|
args: [LOCALE_ID]
|
|
4706
4650
|
}] }, { type: void 0, decorators: [{
|
|
4707
4651
|
type: Optional11
|
|
4708
4652
|
}, {
|
|
4709
|
-
type:
|
|
4653
|
+
type: Inject8,
|
|
4710
4654
|
args: [LOCALE_ID_MAPPER]
|
|
4711
4655
|
}] }, { type: I18nService, decorators: [{
|
|
4712
4656
|
type: Optional11
|
|
@@ -4715,12 +4659,12 @@ i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
4715
4659
|
}] }] });
|
|
4716
4660
|
|
|
4717
4661
|
// lib/services/locale/locale.service.mock.mjs
|
|
4718
|
-
import { Optional as Optional12, Inject as
|
|
4662
|
+
import { Optional as Optional12, Inject as Inject9, Injectable as Injectable19, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4719
4663
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4720
4664
|
import localeFr from "@angular/common/locales/fr";
|
|
4721
4665
|
import localeEl from "@angular/common/locales/el";
|
|
4722
4666
|
import { registerLocaleData } from "@angular/common";
|
|
4723
|
-
import * as
|
|
4667
|
+
import * as i021 from "@angular/core";
|
|
4724
4668
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4725
4669
|
constructor(locale_id) {
|
|
4726
4670
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4745,18 +4689,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4745
4689
|
return of9({ success: true });
|
|
4746
4690
|
}
|
|
4747
4691
|
static {
|
|
4748
|
-
this.ɵfac =
|
|
4692
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i021, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4749
4693
|
}
|
|
4750
4694
|
static {
|
|
4751
|
-
this.ɵprov =
|
|
4695
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i021, type: _LocaleServiceMock });
|
|
4752
4696
|
}
|
|
4753
4697
|
};
|
|
4754
|
-
|
|
4755
|
-
type:
|
|
4698
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i021, type: LocaleServiceMock, decorators: [{
|
|
4699
|
+
type: Injectable19
|
|
4756
4700
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4757
4701
|
type: Optional12
|
|
4758
4702
|
}, {
|
|
4759
|
-
type:
|
|
4703
|
+
type: Inject9,
|
|
4760
4704
|
args: [LOCALE_ID2]
|
|
4761
4705
|
}] }] });
|
|
4762
4706
|
|
|
@@ -4769,10 +4713,10 @@ var Status;
|
|
|
4769
4713
|
})(Status || (Status = {}));
|
|
4770
4714
|
|
|
4771
4715
|
// lib/services/loader/eui-loader.service.mjs
|
|
4772
|
-
import { Injectable as
|
|
4716
|
+
import { Injectable as Injectable20 } from "@angular/core";
|
|
4773
4717
|
import { Subject as Subject2 } from "rxjs";
|
|
4774
|
-
import { filter as filter3, map as
|
|
4775
|
-
import * as
|
|
4718
|
+
import { filter as filter3, map as map6 } from "rxjs/operators";
|
|
4719
|
+
import * as i022 from "@angular/core";
|
|
4776
4720
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4777
4721
|
constructor() {
|
|
4778
4722
|
this.dependencies = [];
|
|
@@ -4866,7 +4810,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4866
4810
|
* @param name The name of the dependency
|
|
4867
4811
|
*/
|
|
4868
4812
|
statusChanges(name) {
|
|
4869
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4813
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map6(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4870
4814
|
}
|
|
4871
4815
|
/**
|
|
4872
4816
|
* Load a dependency and its prerequisites
|
|
@@ -4987,25 +4931,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4987
4931
|
}
|
|
4988
4932
|
}
|
|
4989
4933
|
static {
|
|
4990
|
-
this.ɵfac =
|
|
4934
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i022, type: _EuiLoaderService, deps: [], target: i022.ɵɵFactoryTarget.Injectable });
|
|
4991
4935
|
}
|
|
4992
4936
|
static {
|
|
4993
|
-
this.ɵprov =
|
|
4937
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i022, type: _EuiLoaderService, providedIn: "root" });
|
|
4994
4938
|
}
|
|
4995
4939
|
};
|
|
4996
|
-
|
|
4997
|
-
type:
|
|
4940
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i022, type: EuiLoaderService, decorators: [{
|
|
4941
|
+
type: Injectable20,
|
|
4998
4942
|
args: [{
|
|
4999
4943
|
providedIn: "root"
|
|
5000
4944
|
}]
|
|
5001
4945
|
}] });
|
|
5002
4946
|
|
|
5003
4947
|
// lib/services/user/user.service.mjs
|
|
5004
|
-
import { Injectable as
|
|
4948
|
+
import { Injectable as Injectable21 } from "@angular/core";
|
|
5005
4949
|
import { of as of10 } from "rxjs";
|
|
5006
4950
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
5007
4951
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
5008
|
-
import * as
|
|
4952
|
+
import * as i023 from "@angular/core";
|
|
5009
4953
|
var UserService = class _UserService extends EuiService3 {
|
|
5010
4954
|
constructor(store) {
|
|
5011
4955
|
super({ userId: "annonymous" });
|
|
@@ -5044,14 +4988,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
5044
4988
|
}
|
|
5045
4989
|
}
|
|
5046
4990
|
static {
|
|
5047
|
-
this.ɵfac =
|
|
4991
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i023, type: _UserService, deps: [{ token: StoreService }], target: i023.ɵɵFactoryTarget.Injectable });
|
|
5048
4992
|
}
|
|
5049
4993
|
static {
|
|
5050
|
-
this.ɵprov =
|
|
4994
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i023, type: _UserService, providedIn: "root" });
|
|
5051
4995
|
}
|
|
5052
4996
|
};
|
|
5053
|
-
|
|
5054
|
-
type:
|
|
4997
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i023, type: UserService, decorators: [{
|
|
4998
|
+
type: Injectable21,
|
|
5055
4999
|
args: [{
|
|
5056
5000
|
providedIn: "root"
|
|
5057
5001
|
}]
|
|
@@ -5059,8 +5003,8 @@ i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
5059
5003
|
|
|
5060
5004
|
// lib/services/user/user.service.mock.mjs
|
|
5061
5005
|
import { of as of11 } from "rxjs";
|
|
5062
|
-
import { Injectable as
|
|
5063
|
-
import * as
|
|
5006
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
5007
|
+
import * as i024 from "@angular/core";
|
|
5064
5008
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
5065
5009
|
constructor() {
|
|
5066
5010
|
super(null);
|
|
@@ -5076,20 +5020,20 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
5076
5020
|
updateState(userState, reducer) {
|
|
5077
5021
|
}
|
|
5078
5022
|
static {
|
|
5079
|
-
this.ɵfac =
|
|
5023
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i024, type: _UserServiceMock, deps: [], target: i024.ɵɵFactoryTarget.Injectable });
|
|
5080
5024
|
}
|
|
5081
5025
|
static {
|
|
5082
|
-
this.ɵprov =
|
|
5026
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i024, type: _UserServiceMock });
|
|
5083
5027
|
}
|
|
5084
5028
|
};
|
|
5085
|
-
|
|
5086
|
-
type:
|
|
5029
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i024, type: UserServiceMock, decorators: [{
|
|
5030
|
+
type: Injectable22
|
|
5087
5031
|
}], ctorParameters: () => [] });
|
|
5088
5032
|
|
|
5089
5033
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
5090
|
-
import { Injectable as
|
|
5091
|
-
import * as
|
|
5092
|
-
import * as
|
|
5034
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
5035
|
+
import * as i025 from "@angular/core";
|
|
5036
|
+
import * as i17 from "@ngx-translate/core";
|
|
5093
5037
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
5094
5038
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
5095
5039
|
constructor(translateService) {
|
|
@@ -5109,19 +5053,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
5109
5053
|
}));
|
|
5110
5054
|
}
|
|
5111
5055
|
static {
|
|
5112
|
-
this.ɵfac =
|
|
5056
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i025, type: _AddLangParamInterceptor, deps: [{ token: i17.TranslateService }], target: i025.ɵɵFactoryTarget.Injectable });
|
|
5113
5057
|
}
|
|
5114
5058
|
static {
|
|
5115
|
-
this.ɵprov =
|
|
5059
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i025, type: _AddLangParamInterceptor });
|
|
5116
5060
|
}
|
|
5117
5061
|
};
|
|
5118
|
-
|
|
5119
|
-
type:
|
|
5120
|
-
}], ctorParameters: () => [{ type:
|
|
5062
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i025, type: AddLangParamInterceptor, decorators: [{
|
|
5063
|
+
type: Injectable23
|
|
5064
|
+
}], ctorParameters: () => [{ type: i17.TranslateService }] });
|
|
5121
5065
|
|
|
5122
5066
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
5123
|
-
import { Injectable as
|
|
5124
|
-
import * as
|
|
5067
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
5068
|
+
import * as i026 from "@angular/core";
|
|
5125
5069
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
5126
5070
|
intercept(req, next) {
|
|
5127
5071
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -5133,19 +5077,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
5133
5077
|
}));
|
|
5134
5078
|
}
|
|
5135
5079
|
static {
|
|
5136
|
-
this.ɵfac =
|
|
5080
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i026, type: _CachePreventionInterceptor, deps: [], target: i026.ɵɵFactoryTarget.Injectable });
|
|
5137
5081
|
}
|
|
5138
5082
|
static {
|
|
5139
|
-
this.ɵprov =
|
|
5083
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i026, type: _CachePreventionInterceptor });
|
|
5140
5084
|
}
|
|
5141
5085
|
};
|
|
5142
|
-
|
|
5143
|
-
type:
|
|
5086
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i026, type: CachePreventionInterceptor, decorators: [{
|
|
5087
|
+
type: Injectable24
|
|
5144
5088
|
}] });
|
|
5145
5089
|
|
|
5146
5090
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
5147
|
-
import { Injectable as
|
|
5148
|
-
import * as
|
|
5091
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
5092
|
+
import * as i027 from "@angular/core";
|
|
5149
5093
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
5150
5094
|
intercept(request, next) {
|
|
5151
5095
|
return next.handle(request.clone({
|
|
@@ -5153,19 +5097,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
5153
5097
|
}));
|
|
5154
5098
|
}
|
|
5155
5099
|
static {
|
|
5156
|
-
this.ɵfac =
|
|
5100
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i027, type: _CorsSecurityInterceptor, deps: [], target: i027.ɵɵFactoryTarget.Injectable });
|
|
5157
5101
|
}
|
|
5158
5102
|
static {
|
|
5159
|
-
this.ɵprov =
|
|
5103
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i027, type: _CorsSecurityInterceptor });
|
|
5160
5104
|
}
|
|
5161
5105
|
};
|
|
5162
|
-
|
|
5163
|
-
type:
|
|
5106
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i027, type: CorsSecurityInterceptor, decorators: [{
|
|
5107
|
+
type: Injectable25
|
|
5164
5108
|
}] });
|
|
5165
5109
|
|
|
5166
5110
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
5167
|
-
import { Injectable as
|
|
5168
|
-
import * as
|
|
5111
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
5112
|
+
import * as i028 from "@angular/core";
|
|
5169
5113
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
5170
5114
|
intercept(request, next) {
|
|
5171
5115
|
return next.handle(request.clone({
|
|
@@ -5173,24 +5117,24 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
5173
5117
|
}));
|
|
5174
5118
|
}
|
|
5175
5119
|
static {
|
|
5176
|
-
this.ɵfac =
|
|
5120
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i028, type: _CsrfPreventionInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
5177
5121
|
}
|
|
5178
5122
|
static {
|
|
5179
|
-
this.ɵprov =
|
|
5123
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i028, type: _CsrfPreventionInterceptor });
|
|
5180
5124
|
}
|
|
5181
5125
|
};
|
|
5182
|
-
|
|
5183
|
-
type:
|
|
5126
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i028, type: CsrfPreventionInterceptor, decorators: [{
|
|
5127
|
+
type: Injectable26
|
|
5184
5128
|
}] });
|
|
5185
5129
|
|
|
5186
5130
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
5187
|
-
import { Injectable as
|
|
5131
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
5188
5132
|
import { HttpResponse } from "@angular/common/http";
|
|
5189
|
-
import { tap as
|
|
5190
|
-
import * as
|
|
5133
|
+
import { tap as tap6 } from "rxjs/operators";
|
|
5134
|
+
import * as i029 from "@angular/core";
|
|
5191
5135
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
5192
5136
|
intercept(request, next) {
|
|
5193
|
-
return next.handle(request).pipe(
|
|
5137
|
+
return next.handle(request).pipe(tap6((event) => {
|
|
5194
5138
|
this.checkRequestSuccessForEULoginSessionTimeout(request, event);
|
|
5195
5139
|
return event;
|
|
5196
5140
|
}, (error) => {
|
|
@@ -5238,23 +5182,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
5238
5182
|
document.location.reload();
|
|
5239
5183
|
}
|
|
5240
5184
|
static {
|
|
5241
|
-
this.ɵfac =
|
|
5185
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i029, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
5242
5186
|
}
|
|
5243
5187
|
static {
|
|
5244
|
-
this.ɵprov =
|
|
5188
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i029, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
5245
5189
|
}
|
|
5246
5190
|
};
|
|
5247
|
-
|
|
5248
|
-
type:
|
|
5191
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i029, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
5192
|
+
type: Injectable27
|
|
5249
5193
|
}] });
|
|
5250
5194
|
|
|
5251
5195
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
5252
|
-
import { Inject as
|
|
5196
|
+
import { Inject as Inject10, Injectable as Injectable28, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
5253
5197
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
5254
5198
|
import { of as of12 } from "rxjs";
|
|
5255
5199
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
5256
5200
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
5257
|
-
import * as
|
|
5201
|
+
import * as i030 from "@angular/core";
|
|
5258
5202
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
5259
5203
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
5260
5204
|
constructor(errorMappingHandler) {
|
|
@@ -5277,16 +5221,16 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
5277
5221
|
);
|
|
5278
5222
|
}
|
|
5279
5223
|
static {
|
|
5280
|
-
this.ɵfac =
|
|
5224
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i030, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i030.ɵɵFactoryTarget.Injectable });
|
|
5281
5225
|
}
|
|
5282
5226
|
static {
|
|
5283
|
-
this.ɵprov =
|
|
5227
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i030, type: _UxRequestErrorModelInterceptor });
|
|
5284
5228
|
}
|
|
5285
5229
|
};
|
|
5286
|
-
|
|
5287
|
-
type:
|
|
5230
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i030, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
5231
|
+
type: Injectable28
|
|
5288
5232
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
5289
|
-
type:
|
|
5233
|
+
type: Inject10,
|
|
5290
5234
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5291
5235
|
}] }] });
|
|
5292
5236
|
|
|
@@ -5314,11 +5258,9 @@ export {
|
|
|
5314
5258
|
CachePreventionInterceptor,
|
|
5315
5259
|
ConsoleHttpErrorCallbackFn,
|
|
5316
5260
|
CoreAppActionTypes,
|
|
5317
|
-
CoreAppEffects,
|
|
5318
5261
|
CoreI18nActionTypes,
|
|
5319
5262
|
CoreLocaleActionTypes,
|
|
5320
5263
|
CoreModule,
|
|
5321
|
-
CoreModuleEffects,
|
|
5322
5264
|
CoreNotificationsActionTypes,
|
|
5323
5265
|
CoreUserActionTypes,
|
|
5324
5266
|
CorsSecurityInterceptor,
|