@eui/core 19.3.3-snapshot-1754655052849 → 21.0.0-alpha.1
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/CHANGELOG.md +86 -0
- package/docs/directives/TranslateMockDirective.html +0 -43
- package/docs/injectables/ApiQueueService.html +1 -55
- package/docs/injectables/EuiAppShellService.html +1 -103
- package/docs/injectables/EuiDynamicComponentService.html +0 -67
- package/docs/injectables/EuiDynamicMenuService.html +1 -43
- package/docs/injectables/EuiPermissionService.html +1 -43
- package/docs/injectables/EuiThemeService.html +1 -55
- package/docs/injectables/GlobalErrorHandler.html +0 -43
- package/docs/injectables/I18nLoader.html +1 -55
- package/docs/injectables/I18nService.html +1 -79
- package/docs/injectables/LocalForageService.html +1 -43
- package/docs/injectables/LocalStorageService.html +0 -54
- package/docs/injectables/LocaleService.html +1 -91
- package/docs/injectables/LocaleServiceMock.html +1 -31
- package/docs/injectables/LogService.html +1 -55
- package/docs/injectables/SessionStorageService.html +0 -43
- package/docs/injectables/StoreService.html +1 -42
- package/docs/injectables/UserService.html +1 -31
- package/docs/interceptors/AddLangParamInterceptor.html +0 -43
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +0 -67
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +0 -43
- package/docs/js/menu-wc.js +6 -6
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +224 -315
- package/fesm2022/eui-core.mjs.map +1 -1
- package/index.d.ts +2470 -5
- package/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/eui-core.d.ts.map +0 -1
- package/lib/eui-core.module.d.ts +0 -21
- package/lib/eui-core.module.d.ts.map +0 -1
- package/lib/helpers/css-utils.d.ts +0 -35
- package/lib/helpers/css-utils.d.ts.map +0 -1
- package/lib/helpers/date-helpers.d.ts +0 -3
- package/lib/helpers/date-helpers.d.ts.map +0 -1
- package/lib/helpers/dom-helpers.d.ts +0 -34
- package/lib/helpers/dom-helpers.d.ts.map +0 -1
- package/lib/helpers/event-helpers.d.ts +0 -2
- package/lib/helpers/event-helpers.d.ts.map +0 -1
- package/lib/helpers/form-helpers.d.ts +0 -11
- package/lib/helpers/form-helpers.d.ts.map +0 -1
- package/lib/helpers/format-helpers.d.ts +0 -13
- package/lib/helpers/format-helpers.d.ts.map +0 -1
- package/lib/helpers/http-helpers.d.ts +0 -8
- package/lib/helpers/http-helpers.d.ts.map +0 -1
- package/lib/helpers/index.d.ts +0 -10
- package/lib/helpers/index.d.ts.map +0 -1
- package/lib/helpers/injector.d.ts +0 -11
- package/lib/helpers/injector.d.ts.map +0 -1
- package/lib/helpers/utils.d.ts +0 -7
- package/lib/helpers/utils.d.ts.map +0 -1
- package/lib/interceptors/add-lang-param.interceptor.d.ts +0 -17
- package/lib/interceptors/add-lang-param.interceptor.d.ts.map +0 -1
- package/lib/interceptors/cache-prevention.interceptor.d.ts +0 -9
- package/lib/interceptors/cache-prevention.interceptor.d.ts.map +0 -1
- package/lib/interceptors/cors-security.interceptor.d.ts +0 -9
- package/lib/interceptors/cors-security.interceptor.d.ts.map +0 -1
- package/lib/interceptors/csrf-prevention.interceptor.d.ts +0 -9
- package/lib/interceptors/csrf-prevention.interceptor.d.ts.map +0 -1
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts +0 -20
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts.map +0 -1
- package/lib/interceptors/index.d.ts +0 -7
- package/lib/interceptors/index.d.ts.map +0 -1
- package/lib/interceptors/ux-request-error-model.interceptor.d.ts +0 -14
- package/lib/interceptors/ux-request-error-model.interceptor.d.ts.map +0 -1
- package/lib/services/app/eui-init-app.d.ts +0 -12
- package/lib/services/app/eui-init-app.d.ts.map +0 -1
- package/lib/services/app/eui-pre-init-app.d.ts +0 -17
- package/lib/services/app/eui-pre-init-app.d.ts.map +0 -1
- package/lib/services/app/eui-startup.d.ts +0 -5
- package/lib/services/app/eui-startup.d.ts.map +0 -1
- package/lib/services/app/factories/log.d.ts +0 -26
- package/lib/services/app/factories/log.d.ts.map +0 -1
- package/lib/services/app/index.d.ts +0 -3
- package/lib/services/app/index.d.ts.map +0 -1
- package/lib/services/config/defaults.d.ts +0 -12
- package/lib/services/config/defaults.d.ts.map +0 -1
- package/lib/services/config/tokens.d.ts +0 -20
- package/lib/services/config/tokens.d.ts.map +0 -1
- package/lib/services/dynamic-component/dynamic-component.service.d.ts +0 -42
- package/lib/services/dynamic-component/dynamic-component.service.d.ts.map +0 -1
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts +0 -15
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts.map +0 -1
- package/lib/services/errors/eui.error.d.ts +0 -14
- package/lib/services/errors/eui.error.d.ts.map +0 -1
- package/lib/services/errors/global-error-handler.d.ts +0 -11
- package/lib/services/errors/global-error-handler.d.ts.map +0 -1
- package/lib/services/errors/http-error-handler-callback-functions.d.ts +0 -7
- package/lib/services/errors/http-error-handler-callback-functions.d.ts.map +0 -1
- package/lib/services/errors/http-error-handler.interceptor.d.ts +0 -23
- package/lib/services/errors/http-error-handler.interceptor.d.ts.map +0 -1
- package/lib/services/errors/index.d.ts +0 -5
- package/lib/services/errors/index.d.ts.map +0 -1
- package/lib/services/eui-app-shell.service.d.ts +0 -110
- package/lib/services/eui-app-shell.service.d.ts.map +0 -1
- package/lib/services/eui-theme.service.d.ts +0 -52
- package/lib/services/eui-theme.service.d.ts.map +0 -1
- package/lib/services/eui-timezone.service.d.ts +0 -270
- package/lib/services/eui-timezone.service.d.ts.map +0 -1
- package/lib/services/growl/eui-growl.service.d.ts +0 -23
- package/lib/services/growl/eui-growl.service.d.ts.map +0 -1
- package/lib/services/growl/index.d.ts +0 -2
- package/lib/services/growl/index.d.ts.map +0 -1
- package/lib/services/i18n/i18n.loader.d.ts +0 -93
- package/lib/services/i18n/i18n.loader.d.ts.map +0 -1
- package/lib/services/i18n/i18n.resource.d.ts +0 -36
- package/lib/services/i18n/i18n.resource.d.ts.map +0 -1
- package/lib/services/i18n/i18n.service.d.ts +0 -102
- package/lib/services/i18n/i18n.service.d.ts.map +0 -1
- package/lib/services/i18n/index.d.ts +0 -4
- package/lib/services/i18n/index.d.ts.map +0 -1
- package/lib/services/index.d.ts +0 -20
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/loader/eui-loader.model.d.ts +0 -97
- package/lib/services/loader/eui-loader.model.d.ts.map +0 -1
- package/lib/services/loader/eui-loader.service.d.ts +0 -143
- package/lib/services/loader/eui-loader.service.d.ts.map +0 -1
- package/lib/services/loader/index.d.ts +0 -3
- package/lib/services/loader/index.d.ts.map +0 -1
- package/lib/services/locale/index.d.ts +0 -3
- package/lib/services/locale/index.d.ts.map +0 -1
- package/lib/services/locale/locale.service.d.ts +0 -103
- package/lib/services/locale/locale.service.d.ts.map +0 -1
- package/lib/services/locale/locale.service.mock.d.ts +0 -16
- package/lib/services/locale/locale.service.mock.d.ts.map +0 -1
- package/lib/services/log/index.d.ts +0 -4
- package/lib/services/log/index.d.ts.map +0 -1
- package/lib/services/log/log.module.d.ts +0 -16
- package/lib/services/log/log.module.d.ts.map +0 -1
- package/lib/services/log/log.service.d.ts +0 -28
- package/lib/services/log/log.service.d.ts.map +0 -1
- package/lib/services/log/log.service.mock.d.ts +0 -5
- package/lib/services/log/log.service.mock.d.ts.map +0 -1
- package/lib/services/permission/permission.service.d.ts +0 -188
- package/lib/services/permission/permission.service.d.ts.map +0 -1
- package/lib/services/queue/api-queue.service.d.ts +0 -278
- package/lib/services/queue/api-queue.service.d.ts.map +0 -1
- package/lib/services/queue/api-queue.service.mock.d.ts +0 -14
- package/lib/services/queue/api-queue.service.mock.d.ts.map +0 -1
- package/lib/services/queue/index.d.ts +0 -3
- package/lib/services/queue/index.d.ts.map +0 -1
- package/lib/services/storage/async-storage.service.d.ts +0 -45
- package/lib/services/storage/async-storage.service.d.ts.map +0 -1
- package/lib/services/storage/async-storage.service.mock.d.ts +0 -12
- package/lib/services/storage/async-storage.service.mock.d.ts.map +0 -1
- package/lib/services/storage/index.d.ts +0 -8
- package/lib/services/storage/index.d.ts.map +0 -1
- package/lib/services/storage/local-forage.service.d.ts +0 -49
- package/lib/services/storage/local-forage.service.d.ts.map +0 -1
- package/lib/services/storage/local-storage.service.d.ts +0 -36
- package/lib/services/storage/local-storage.service.d.ts.map +0 -1
- package/lib/services/storage/session-storage.service.d.ts +0 -35
- package/lib/services/storage/session-storage.service.d.ts.map +0 -1
- package/lib/services/storage/storage.service.d.ts +0 -29
- package/lib/services/storage/storage.service.d.ts.map +0 -1
- package/lib/services/storage/storage.service.mock.d.ts +0 -8
- package/lib/services/storage/storage.service.mock.d.ts.map +0 -1
- package/lib/services/store/actions/app.actions.d.ts +0 -119
- package/lib/services/store/actions/app.actions.d.ts.map +0 -1
- package/lib/services/store/actions/i18n.actions.d.ts +0 -21
- package/lib/services/store/actions/i18n.actions.d.ts.map +0 -1
- package/lib/services/store/actions/index.d.ts +0 -6
- package/lib/services/store/actions/index.d.ts.map +0 -1
- package/lib/services/store/actions/locale.actions.d.ts +0 -21
- package/lib/services/store/actions/locale.actions.d.ts.map +0 -1
- package/lib/services/store/actions/notifications.actions.d.ts +0 -20
- package/lib/services/store/actions/notifications.actions.d.ts.map +0 -1
- package/lib/services/store/actions/user.actions.d.ts +0 -57
- package/lib/services/store/actions/user.actions.d.ts.map +0 -1
- package/lib/services/store/index.d.ts +0 -5
- package/lib/services/store/index.d.ts.map +0 -1
- package/lib/services/store/ngrx_kit.d.ts +0 -54
- package/lib/services/store/ngrx_kit.d.ts.map +0 -1
- package/lib/services/store/reducers/app.reducers.d.ts +0 -7
- package/lib/services/store/reducers/app.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/core.reducers.d.ts +0 -7
- package/lib/services/store/reducers/core.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/i18n.reducers.d.ts +0 -7
- package/lib/services/store/reducers/i18n.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/index.d.ts +0 -8
- package/lib/services/store/reducers/index.d.ts.map +0 -1
- package/lib/services/store/reducers/locale.reducers.d.ts +0 -7
- package/lib/services/store/reducers/locale.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/meta.reducers.d.ts +0 -32
- package/lib/services/store/reducers/meta.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/notifications.reducers.d.ts +0 -7
- package/lib/services/store/reducers/notifications.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/user.reducers.d.ts +0 -7
- package/lib/services/store/reducers/user.reducers.d.ts.map +0 -1
- package/lib/services/store/store.service.d.ts +0 -72
- package/lib/services/store/store.service.d.ts.map +0 -1
- package/lib/services/store/store.service.mock.d.ts +0 -15
- package/lib/services/store/store.service.mock.d.ts.map +0 -1
- package/lib/services/user/index.d.ts +0 -3
- package/lib/services/user/index.d.ts.map +0 -1
- package/lib/services/user/user.service.d.ts +0 -46
- package/lib/services/user/user.service.d.ts.map +0 -1
- package/lib/services/user/user.service.mock.d.ts +0 -15
- package/lib/services/user/user.service.mock.d.ts.map +0 -1
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as i1 from '@eui/base';
|
|
2
1
|
import { ConsoleAppender, LogLevel, initialAppState, initialUserState, initialNotificationsState, initialI18nState, initialLocaleState, Logger, LoggerMock, initialCoreState, xhr, mergeAll, getI18nLoaderConfig, EuiLazyService, getI18nServiceConfigFromBase, getBrowserDefaultLanguage, EuiEuLanguages, EuiService, getUserState, getLocaleServiceConfigFromBase, transformToUxHttpResponse } from '@eui/base';
|
|
3
2
|
export * from '@eui/base';
|
|
4
3
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { InjectionToken, inject, PLATFORM_ID,
|
|
4
|
+
import { InjectionToken, inject, PLATFORM_ID, Injectable, Injector, NgModule, Optional, SkipSelf, provideAppInitializer, ErrorHandler, ApplicationRef, LOCALE_ID } from '@angular/core';
|
|
6
5
|
import * as extendProxy from 'extend';
|
|
7
6
|
import { isPlatformBrowser, LOCATION_INITIALIZED, DOCUMENT, isPlatformServer, getLocaleId, registerLocaleData } from '@angular/common';
|
|
8
7
|
import { BehaviorSubject, of, forkJoin, from, Subject, defer, firstValueFrom } from 'rxjs';
|
|
@@ -10,12 +9,10 @@ import { filter, debounceTime, distinctUntilChanged, map, tap, take, switchMap,
|
|
|
10
9
|
import { isEqual, get } from 'lodash-es';
|
|
11
10
|
import { MAT_DATE_LOCALE, DateAdapter } from '@angular/material/core';
|
|
12
11
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import * as i1$1 from '@angular/router';
|
|
12
|
+
import { HttpErrorResponse, HttpClient, HttpResponse } from '@angular/common/http';
|
|
13
|
+
import { Router } from '@angular/router';
|
|
16
14
|
import { createSelector } from 'reselect';
|
|
17
|
-
import
|
|
18
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
15
|
+
import { TranslateLoader, TranslateService } from '@ngx-translate/core';
|
|
19
16
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
20
17
|
import { By } from '@angular/platform-browser';
|
|
21
18
|
import { FormGroup, FormArray } from '@angular/forms';
|
|
@@ -645,13 +642,16 @@ const LOG_APPENDERS_TOKEN = new InjectionToken('LOG_APPENDERS');
|
|
|
645
642
|
* Log service, responsible for getting or creating loggers. It itself acts as a base logger
|
|
646
643
|
*/
|
|
647
644
|
class LogService extends Logger {
|
|
648
|
-
constructor(
|
|
645
|
+
constructor() {
|
|
646
|
+
const name = inject(BASE_LOGGER_NAME_TOKEN);
|
|
647
|
+
const level = inject(LOG_LEVEL_TOKEN);
|
|
648
|
+
const appenders = inject(LOG_APPENDERS_TOKEN);
|
|
649
649
|
super(name, level, appenders);
|
|
650
|
+
/** the list of persistent loggers */
|
|
651
|
+
this.loggers = {};
|
|
650
652
|
this.name = name;
|
|
651
653
|
this.level = level;
|
|
652
654
|
this.appenders = appenders;
|
|
653
|
-
/** the list of persistent loggers */
|
|
654
|
-
this.loggers = {};
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
657
657
|
* Gets a logger by name. If the logger does not exist, it is created
|
|
@@ -669,21 +669,12 @@ class LogService extends Logger {
|
|
|
669
669
|
}
|
|
670
670
|
return logger;
|
|
671
671
|
}
|
|
672
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
673
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LogService }); }
|
|
674
674
|
}
|
|
675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LogService, decorators: [{
|
|
676
676
|
type: Injectable
|
|
677
|
-
}], ctorParameters: () => [
|
|
678
|
-
type: Inject,
|
|
679
|
-
args: [BASE_LOGGER_NAME_TOKEN]
|
|
680
|
-
}] }, { type: i1.LogLevel, decorators: [{
|
|
681
|
-
type: Inject,
|
|
682
|
-
args: [LOG_LEVEL_TOKEN]
|
|
683
|
-
}] }, { type: undefined, decorators: [{
|
|
684
|
-
type: Inject,
|
|
685
|
-
args: [LOG_APPENDERS_TOKEN]
|
|
686
|
-
}] }] });
|
|
677
|
+
}], ctorParameters: () => [] });
|
|
687
678
|
|
|
688
679
|
class LogServiceMock extends LoggerMock {
|
|
689
680
|
getLogger() {
|
|
@@ -729,8 +720,18 @@ function logServiceFactory(config = DEFAULT_LOG_CONFIG, injector = null) {
|
|
|
729
720
|
// extract parameters from config
|
|
730
721
|
const logLevel = config.logLevel;
|
|
731
722
|
const logAppenders = getLogAppendersConfig(config, injector);
|
|
723
|
+
// Create a child injector with the necessary providers
|
|
724
|
+
const childInjector = Injector.create({
|
|
725
|
+
providers: [
|
|
726
|
+
{ provide: BASE_LOGGER_NAME_TOKEN, useValue: config.baseLoggerName },
|
|
727
|
+
{ provide: LOG_LEVEL_TOKEN, useValue: logLevel },
|
|
728
|
+
{ provide: LOG_APPENDERS_TOKEN, useValue: logAppenders },
|
|
729
|
+
LogService,
|
|
730
|
+
],
|
|
731
|
+
parent: injector,
|
|
732
|
+
});
|
|
732
733
|
// return an instance of LogService
|
|
733
|
-
return
|
|
734
|
+
return childInjector.get(LogService);
|
|
734
735
|
}
|
|
735
736
|
function euiLogServiceFactory(injector, rootBaseLoggerName, rootConfig, childBaseLoggerName = null, childConfig = {}) {
|
|
736
737
|
// determine if the configuration is for non-root modules
|
|
@@ -769,11 +770,11 @@ class LogModule {
|
|
|
769
770
|
],
|
|
770
771
|
};
|
|
771
772
|
}
|
|
772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
773
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
774
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
773
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
774
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: LogModule }); }
|
|
775
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LogModule }); }
|
|
775
776
|
}
|
|
776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LogModule, decorators: [{
|
|
777
778
|
type: NgModule
|
|
778
779
|
}] });
|
|
779
780
|
|
|
@@ -786,9 +787,9 @@ var BrowserStorageType;
|
|
|
786
787
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
787
788
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
788
789
|
class StoreService {
|
|
789
|
-
constructor(
|
|
790
|
-
this.logService =
|
|
791
|
-
this.platformId =
|
|
790
|
+
constructor() {
|
|
791
|
+
this.logService = inject(LogService, { optional: true });
|
|
792
|
+
this.platformId = inject(PLATFORM_ID);
|
|
792
793
|
/**
|
|
793
794
|
* autoSave handlers to call before saving in local Storage
|
|
794
795
|
*/
|
|
@@ -925,25 +926,20 @@ class StoreService {
|
|
|
925
926
|
isObject(item) {
|
|
926
927
|
return item && typeof item === 'object' && !Array.isArray(item);
|
|
927
928
|
}
|
|
928
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
929
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
929
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: StoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
930
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: StoreService, providedIn: 'root' }); }
|
|
930
931
|
}
|
|
931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: StoreService, decorators: [{
|
|
932
933
|
type: Injectable,
|
|
933
934
|
args: [{
|
|
934
935
|
providedIn: 'root',
|
|
935
936
|
}]
|
|
936
|
-
}], ctorParameters: () => [
|
|
937
|
-
type: Optional
|
|
938
|
-
}] }, { type: undefined, decorators: [{
|
|
939
|
-
type: Inject,
|
|
940
|
-
args: [PLATFORM_ID]
|
|
941
|
-
}] }] });
|
|
937
|
+
}], ctorParameters: () => [] });
|
|
942
938
|
|
|
943
939
|
const PLATFORM_BROWSER_ID = 'browser';
|
|
944
940
|
class StoreServiceMock extends StoreService {
|
|
945
941
|
constructor() {
|
|
946
|
-
super(
|
|
942
|
+
super();
|
|
947
943
|
}
|
|
948
944
|
init() { }
|
|
949
945
|
addAutoSaveHandler() { }
|
|
@@ -952,10 +948,10 @@ class StoreServiceMock extends StoreService {
|
|
|
952
948
|
select() {
|
|
953
949
|
return of({});
|
|
954
950
|
}
|
|
955
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
956
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
951
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
952
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: StoreServiceMock }); }
|
|
957
953
|
}
|
|
958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
959
955
|
type: Injectable
|
|
960
956
|
}], ctorParameters: () => [] });
|
|
961
957
|
|
|
@@ -1035,7 +1031,9 @@ class CoreModule {
|
|
|
1035
1031
|
providers: getCoreChildProviders(moduleName),
|
|
1036
1032
|
};
|
|
1037
1033
|
}
|
|
1038
|
-
constructor(
|
|
1034
|
+
constructor() {
|
|
1035
|
+
const parentModule = inject(CoreModule, { optional: true, skipSelf: true });
|
|
1036
|
+
const injector = inject(Injector);
|
|
1039
1037
|
// if there is a parentModule, a new instance is created in a lazy loaded module
|
|
1040
1038
|
if (parentModule) {
|
|
1041
1039
|
// extract the i18n service and the i18n loader config
|
|
@@ -1046,22 +1044,13 @@ class CoreModule {
|
|
|
1046
1044
|
storeService.updateState({ moduleName, moduleConfig }, AddAppLoadedConfigModules);
|
|
1047
1045
|
}
|
|
1048
1046
|
}
|
|
1049
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1050
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1051
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1048
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: CoreModule }); }
|
|
1049
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CoreModule }); }
|
|
1052
1050
|
}
|
|
1053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CoreModule, decorators: [{
|
|
1054
1052
|
type: NgModule
|
|
1055
|
-
}], ctorParameters: () => [
|
|
1056
|
-
type: Optional
|
|
1057
|
-
}, {
|
|
1058
|
-
type: Inject,
|
|
1059
|
-
args: [CORE_ROOT_GUARD]
|
|
1060
|
-
}] }, { type: CoreModule, decorators: [{
|
|
1061
|
-
type: Optional
|
|
1062
|
-
}, {
|
|
1063
|
-
type: SkipSelf
|
|
1064
|
-
}] }, { type: i0.Injector }] });
|
|
1053
|
+
}], ctorParameters: () => [] });
|
|
1065
1054
|
const createEuiCoreRootGuard = (core) => {
|
|
1066
1055
|
if (core) {
|
|
1067
1056
|
throw new TypeError('CoreModule.forRoot() called twice. Feature modules should use ThemeModule.forChild() instead.');
|
|
@@ -1223,9 +1212,9 @@ class EuiError extends ErrorSubClass {
|
|
|
1223
1212
|
}
|
|
1224
1213
|
|
|
1225
1214
|
class GlobalErrorHandler extends ErrorHandler {
|
|
1226
|
-
constructor(
|
|
1227
|
-
super();
|
|
1228
|
-
this.logService =
|
|
1215
|
+
constructor() {
|
|
1216
|
+
super(...arguments);
|
|
1217
|
+
this.logService = inject(LogService);
|
|
1229
1218
|
}
|
|
1230
1219
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1231
1220
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1235,21 +1224,21 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
1235
1224
|
// throw error;
|
|
1236
1225
|
super.handleError(error);
|
|
1237
1226
|
}
|
|
1238
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1239
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: GlobalErrorHandler, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1228
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' }); }
|
|
1240
1229
|
}
|
|
1241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
1242
1231
|
type: Injectable,
|
|
1243
1232
|
args: [{
|
|
1244
1233
|
providedIn: 'root',
|
|
1245
1234
|
}]
|
|
1246
|
-
}]
|
|
1235
|
+
}] });
|
|
1247
1236
|
|
|
1248
1237
|
class HttpErrorHandlerInterceptor {
|
|
1249
|
-
constructor(
|
|
1250
|
-
this.config =
|
|
1251
|
-
this.injector =
|
|
1252
|
-
this.router =
|
|
1238
|
+
constructor() {
|
|
1239
|
+
this.config = inject(HTTP_ERROR_HANDLER_CONFIG_TOKEN) ?? DEFAULT_HTTP_ERROR_HANDLER_CONFIG;
|
|
1240
|
+
this.injector = inject(Injector);
|
|
1241
|
+
this.router = inject(Router);
|
|
1253
1242
|
}
|
|
1254
1243
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1255
1244
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1290,15 +1279,12 @@ class HttpErrorHandlerInterceptor {
|
|
|
1290
1279
|
// return the first matching route, if any
|
|
1291
1280
|
return routes.length > 0 ? routes[0] : null;
|
|
1292
1281
|
}
|
|
1293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1283
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: HttpErrorHandlerInterceptor }); }
|
|
1295
1284
|
}
|
|
1296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1297
1286
|
type: Injectable
|
|
1298
|
-
}]
|
|
1299
|
-
type: Inject,
|
|
1300
|
-
args: [HTTP_ERROR_HANDLER_CONFIG_TOKEN]
|
|
1301
|
-
}] }, { type: i0.Injector }, { type: i1$1.Router }] });
|
|
1287
|
+
}] });
|
|
1302
1288
|
|
|
1303
1289
|
class EuiGrowlService {
|
|
1304
1290
|
constructor() {
|
|
@@ -1367,10 +1353,10 @@ class EuiGrowlService {
|
|
|
1367
1353
|
growlInfo(msg, position) {
|
|
1368
1354
|
this.growl({ severity: 'info', summary: 'INFO', detail: msg }, false, false, undefined, position);
|
|
1369
1355
|
}
|
|
1370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1371
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1356
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1357
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiGrowlService, providedIn: 'root' }); }
|
|
1372
1358
|
}
|
|
1373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
1374
1360
|
type: Injectable,
|
|
1375
1361
|
args: [{
|
|
1376
1362
|
providedIn: 'root',
|
|
@@ -1427,10 +1413,10 @@ function GrowlHttpErrorCallbackFn(error, injector) {
|
|
|
1427
1413
|
* });
|
|
1428
1414
|
*/
|
|
1429
1415
|
class ApiQueueService {
|
|
1430
|
-
constructor(
|
|
1431
|
-
this.store =
|
|
1432
|
-
this.http =
|
|
1433
|
-
this.logService =
|
|
1416
|
+
constructor() {
|
|
1417
|
+
this.store = inject(StoreService);
|
|
1418
|
+
this.http = inject(HttpClient);
|
|
1419
|
+
this.logService = inject(LogService, { optional: true });
|
|
1434
1420
|
/**
|
|
1435
1421
|
* A state reducer that adds an item to the API queue.
|
|
1436
1422
|
* @param state
|
|
@@ -1458,6 +1444,7 @@ class ApiQueueService {
|
|
|
1458
1444
|
}, {});
|
|
1459
1445
|
return Object.assign({}, state, { app: { ...state.app, apiQueue } });
|
|
1460
1446
|
};
|
|
1447
|
+
const logService = this.logService;
|
|
1461
1448
|
if (logService) {
|
|
1462
1449
|
this.logger = logService.getLogger('core.ApiQueueService');
|
|
1463
1450
|
}
|
|
@@ -1729,21 +1716,19 @@ class ApiQueueService {
|
|
|
1729
1716
|
buildHttpRequest(id, item) {
|
|
1730
1717
|
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap(() => this.removeQueueItem(id)));
|
|
1731
1718
|
}
|
|
1732
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1733
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1719
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ApiQueueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1720
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ApiQueueService, providedIn: 'root' }); }
|
|
1734
1721
|
}
|
|
1735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
1736
1723
|
type: Injectable,
|
|
1737
1724
|
args: [{
|
|
1738
1725
|
providedIn: 'root',
|
|
1739
1726
|
}]
|
|
1740
|
-
}], ctorParameters: () => [
|
|
1741
|
-
type: Optional
|
|
1742
|
-
}] }] });
|
|
1727
|
+
}], ctorParameters: () => [] });
|
|
1743
1728
|
|
|
1744
1729
|
class ApiQueueServiceMock extends ApiQueueService {
|
|
1745
1730
|
constructor() {
|
|
1746
|
-
super(
|
|
1731
|
+
super();
|
|
1747
1732
|
}
|
|
1748
1733
|
getQueue() {
|
|
1749
1734
|
return of([]);
|
|
@@ -1806,12 +1791,13 @@ class I18nResourceImpl {
|
|
|
1806
1791
|
}
|
|
1807
1792
|
|
|
1808
1793
|
class I18nLoader {
|
|
1809
|
-
constructor(
|
|
1810
|
-
this.http =
|
|
1811
|
-
this.logService =
|
|
1812
|
-
this.euiAppConfig =
|
|
1794
|
+
constructor() {
|
|
1795
|
+
this.http = inject(HttpClient);
|
|
1796
|
+
this.logService = inject(LogService, { optional: true });
|
|
1797
|
+
this.euiAppConfig = inject(CONFIG_TOKEN);
|
|
1813
1798
|
this.resources = [];
|
|
1814
1799
|
this.failedResources = [];
|
|
1800
|
+
const logService = this.logService;
|
|
1815
1801
|
if (logService) {
|
|
1816
1802
|
this.logger = this.logService.getLogger('core.I18nLoader');
|
|
1817
1803
|
}
|
|
@@ -1973,17 +1959,12 @@ class I18nLoader {
|
|
|
1973
1959
|
}
|
|
1974
1960
|
return undefined;
|
|
1975
1961
|
}
|
|
1976
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1977
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: I18nLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1963
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: I18nLoader }); }
|
|
1978
1964
|
}
|
|
1979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: I18nLoader, decorators: [{
|
|
1980
1966
|
type: Injectable
|
|
1981
|
-
}], ctorParameters: () => [
|
|
1982
|
-
type: Optional
|
|
1983
|
-
}] }, { type: undefined, decorators: [{
|
|
1984
|
-
type: Inject,
|
|
1985
|
-
args: [CONFIG_TOKEN]
|
|
1986
|
-
}] }] });
|
|
1967
|
+
}], ctorParameters: () => [] });
|
|
1987
1968
|
const translateConfig = {
|
|
1988
1969
|
loader: {
|
|
1989
1970
|
provide: TranslateLoader,
|
|
@@ -1994,13 +1975,13 @@ const translateConfig = {
|
|
|
1994
1975
|
const getLastAddedModule = (state) => state.app.loadedConfigModules.lastAddedModule;
|
|
1995
1976
|
class I18nService extends EuiLazyService {
|
|
1996
1977
|
static { this.DEFAULT_STATE = { activeLang: 'en' }; }
|
|
1997
|
-
constructor(
|
|
1978
|
+
constructor() {
|
|
1998
1979
|
super(I18nService.DEFAULT_STATE);
|
|
1999
|
-
this.baseGlobalConfig =
|
|
2000
|
-
this.translateService =
|
|
2001
|
-
this.logService =
|
|
2002
|
-
this.store =
|
|
2003
|
-
this.document =
|
|
1980
|
+
this.baseGlobalConfig = inject(GLOBAL_CONFIG_TOKEN);
|
|
1981
|
+
this.translateService = inject(TranslateService);
|
|
1982
|
+
this.logService = inject(LogService, { optional: true });
|
|
1983
|
+
this.store = inject(StoreService);
|
|
1984
|
+
this.document = inject(DOCUMENT);
|
|
2004
1985
|
this.subNotifier = new Subject();
|
|
2005
1986
|
// Create a BehaviorSubject with the initial state
|
|
2006
1987
|
this.stateSubject = new BehaviorSubject(this.stateInstance);
|
|
@@ -2220,23 +2201,15 @@ class I18nService extends EuiLazyService {
|
|
|
2220
2201
|
updateHTMLDOMLang(lang) {
|
|
2221
2202
|
this.document.documentElement.lang = lang;
|
|
2222
2203
|
}
|
|
2223
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2224
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2205
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
2225
2206
|
}
|
|
2226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: I18nService, decorators: [{
|
|
2227
2208
|
type: Injectable,
|
|
2228
2209
|
args: [{
|
|
2229
2210
|
providedIn: 'root',
|
|
2230
2211
|
}]
|
|
2231
|
-
}], ctorParameters: () => [
|
|
2232
|
-
type: Inject,
|
|
2233
|
-
args: [GLOBAL_CONFIG_TOKEN]
|
|
2234
|
-
}] }, { type: i1$3.TranslateService }, { type: LogService, decorators: [{
|
|
2235
|
-
type: Optional
|
|
2236
|
-
}] }, { type: StoreService }, { type: Document, decorators: [{
|
|
2237
|
-
type: Inject,
|
|
2238
|
-
args: [DOCUMENT]
|
|
2239
|
-
}] }] });
|
|
2212
|
+
}], ctorParameters: () => [] });
|
|
2240
2213
|
|
|
2241
2214
|
// export * from './i18n.service.mock';
|
|
2242
2215
|
|
|
@@ -2639,10 +2612,11 @@ function injectOptional(token, injector = inject(Injector)) {
|
|
|
2639
2612
|
* }
|
|
2640
2613
|
*/
|
|
2641
2614
|
class EuiPermissionService extends EuiService {
|
|
2642
|
-
constructor(
|
|
2615
|
+
constructor() {
|
|
2643
2616
|
super([]);
|
|
2644
|
-
this.log =
|
|
2645
|
-
this.store =
|
|
2617
|
+
this.log = inject(LogService, { optional: true });
|
|
2618
|
+
this.store = inject(StoreService);
|
|
2619
|
+
const log = this.log;
|
|
2646
2620
|
if (log) {
|
|
2647
2621
|
this.logger = log.getLogger('core.PermissionService');
|
|
2648
2622
|
}
|
|
@@ -2848,25 +2822,23 @@ class EuiPermissionService extends EuiService {
|
|
|
2848
2822
|
}
|
|
2849
2823
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2850
2824
|
}
|
|
2851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2852
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiPermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2826
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiPermissionService, providedIn: 'root' }); }
|
|
2853
2827
|
}
|
|
2854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2855
2829
|
type: Injectable,
|
|
2856
2830
|
args: [{
|
|
2857
2831
|
providedIn: 'root',
|
|
2858
2832
|
}]
|
|
2859
|
-
}], ctorParameters: () => [
|
|
2860
|
-
type: Optional
|
|
2861
|
-
}] }, { type: StoreService }] });
|
|
2833
|
+
}], ctorParameters: () => [] });
|
|
2862
2834
|
|
|
2863
2835
|
class EuiDynamicMenuService {
|
|
2864
2836
|
// TODO: it should be moved euiService, or it should be static
|
|
2865
2837
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
2866
|
-
constructor(
|
|
2867
|
-
this.euiPermission = euiPermission;
|
|
2868
|
-
this.store = store;
|
|
2838
|
+
constructor() {
|
|
2869
2839
|
this.menuLinks = [];
|
|
2840
|
+
this.euiPermission = inject(EuiPermissionService);
|
|
2841
|
+
this.store = inject(StoreService);
|
|
2870
2842
|
this.store.select(getUserState).subscribe((user) => {
|
|
2871
2843
|
if (user?.menuLinks) {
|
|
2872
2844
|
this.menuLinks = user.menuLinks;
|
|
@@ -2911,28 +2883,22 @@ class EuiDynamicMenuService {
|
|
|
2911
2883
|
return true;
|
|
2912
2884
|
});
|
|
2913
2885
|
}
|
|
2914
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2915
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2886
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiDynamicMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2887
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiDynamicMenuService, providedIn: 'root' }); }
|
|
2916
2888
|
}
|
|
2917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiDynamicMenuService, decorators: [{
|
|
2918
2890
|
type: Injectable,
|
|
2919
2891
|
args: [{
|
|
2920
2892
|
providedIn: 'root',
|
|
2921
2893
|
}]
|
|
2922
|
-
}], ctorParameters: () => [
|
|
2894
|
+
}], ctorParameters: () => [] });
|
|
2923
2895
|
|
|
2924
2896
|
// TODO: Do we need that service anymore? Can we remove it?
|
|
2925
2897
|
const DYNAMIC_COMPONENT_CONFIG = new InjectionToken('DYNAMIC_COMPONENT_CONFIG');
|
|
2926
2898
|
class EuiDynamicComponentService {
|
|
2927
|
-
constructor(
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
* @breaking-change 21.0.0
|
|
2931
|
-
*/
|
|
2932
|
-
componentFactoryResolver, injector, appRef) {
|
|
2933
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
2934
|
-
this.injector = injector;
|
|
2935
|
-
this.appRef = appRef;
|
|
2899
|
+
constructor() {
|
|
2900
|
+
this.injector = inject(Injector);
|
|
2901
|
+
this.appRef = inject(ApplicationRef);
|
|
2936
2902
|
}
|
|
2937
2903
|
/**
|
|
2938
2904
|
* Adds a component to portal host dynamically
|
|
@@ -2945,7 +2911,7 @@ class EuiDynamicComponentService {
|
|
|
2945
2911
|
add(component, el, config) {
|
|
2946
2912
|
// TODO: take a look and replace deprecated componentFactoryResolver https://github.com/angular/components/issues/24334
|
|
2947
2913
|
// Create a portalHost from a DOM element
|
|
2948
|
-
this.portalHost = new DomPortalOutlet(el ? el.nativeElement : document.body,
|
|
2914
|
+
this.portalHost = new DomPortalOutlet(el ? el.nativeElement : document.body, this.appRef);
|
|
2949
2915
|
// Locate the component factory for the ComponentToIncludeDynamicallyComponent
|
|
2950
2916
|
this.portal = new ComponentPortal(component, null, config ? this.createInjector(config) : null);
|
|
2951
2917
|
// Attach portal to host
|
|
@@ -2985,12 +2951,12 @@ class EuiDynamicComponentService {
|
|
|
2985
2951
|
parent: this.injector,
|
|
2986
2952
|
});
|
|
2987
2953
|
}
|
|
2988
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2989
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2954
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiDynamicComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2955
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiDynamicComponentService }); }
|
|
2990
2956
|
}
|
|
2991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiDynamicComponentService, decorators: [{
|
|
2992
2958
|
type: Injectable
|
|
2993
|
-
}]
|
|
2959
|
+
}] });
|
|
2994
2960
|
|
|
2995
2961
|
const initialState$1 = {
|
|
2996
2962
|
appName: '',
|
|
@@ -3116,14 +3082,15 @@ class EuiAppShellService {
|
|
|
3116
3082
|
isDimmerActive: isActive,
|
|
3117
3083
|
});
|
|
3118
3084
|
}
|
|
3119
|
-
constructor(
|
|
3120
|
-
this.config =
|
|
3121
|
-
this.http =
|
|
3122
|
-
this.platformId =
|
|
3123
|
-
this.document =
|
|
3124
|
-
this.router =
|
|
3125
|
-
this.storeService =
|
|
3126
|
-
this.i18nService =
|
|
3085
|
+
constructor() {
|
|
3086
|
+
this.config = inject(GLOBAL_CONFIG_TOKEN, { optional: true });
|
|
3087
|
+
this.http = inject(HttpClient);
|
|
3088
|
+
this.platformId = inject(PLATFORM_ID);
|
|
3089
|
+
this.document = inject(DOCUMENT);
|
|
3090
|
+
this.router = inject(Router);
|
|
3091
|
+
this.storeService = inject(StoreService);
|
|
3092
|
+
this.i18nService = inject(I18nService, { optional: true });
|
|
3093
|
+
const config = this.config;
|
|
3127
3094
|
let stateWithConfig = initialState$1;
|
|
3128
3095
|
const languages = config?.i18n?.i18nService?.languages || initialState$1.languages;
|
|
3129
3096
|
const defaultLanguage = config?.i18n?.i18nService?.defaultLanguage || initialState$1.activeLanguage;
|
|
@@ -3371,28 +3338,15 @@ class EuiAppShellService {
|
|
|
3371
3338
|
}
|
|
3372
3339
|
});
|
|
3373
3340
|
}
|
|
3374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3375
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3341
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiAppShellService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3342
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiAppShellService, providedIn: 'root' }); }
|
|
3376
3343
|
}
|
|
3377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiAppShellService, decorators: [{
|
|
3378
3345
|
type: Injectable,
|
|
3379
3346
|
args: [{
|
|
3380
3347
|
providedIn: 'root',
|
|
3381
3348
|
}]
|
|
3382
|
-
}], ctorParameters: () => [
|
|
3383
|
-
type: Optional
|
|
3384
|
-
}, {
|
|
3385
|
-
type: Inject,
|
|
3386
|
-
args: [GLOBAL_CONFIG_TOKEN]
|
|
3387
|
-
}] }, { type: i1$2.HttpClient }, { type: undefined, decorators: [{
|
|
3388
|
-
type: Inject,
|
|
3389
|
-
args: [PLATFORM_ID]
|
|
3390
|
-
}] }, { type: Document, decorators: [{
|
|
3391
|
-
type: Inject,
|
|
3392
|
-
args: [DOCUMENT]
|
|
3393
|
-
}] }, { type: i1$1.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3394
|
-
type: Optional
|
|
3395
|
-
}] }] });
|
|
3349
|
+
}], ctorParameters: () => [] });
|
|
3396
3350
|
|
|
3397
3351
|
/* eslint-disable */
|
|
3398
3352
|
const EUI_COUNTRIES = {
|
|
@@ -4101,10 +4055,10 @@ class EuiTimezoneService {
|
|
|
4101
4055
|
getTimezone(tz) {
|
|
4102
4056
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4103
4057
|
}
|
|
4104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4105
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4058
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4059
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiTimezoneService }); }
|
|
4106
4060
|
}
|
|
4107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiTimezoneService, decorators: [{
|
|
4108
4062
|
type: Injectable
|
|
4109
4063
|
}] });
|
|
4110
4064
|
|
|
@@ -4150,10 +4104,10 @@ const initialState = {
|
|
|
4150
4104
|
},
|
|
4151
4105
|
};
|
|
4152
4106
|
class EuiThemeService {
|
|
4153
|
-
constructor(
|
|
4154
|
-
this.document =
|
|
4155
|
-
this.config =
|
|
4156
|
-
this.asService =
|
|
4107
|
+
constructor() {
|
|
4108
|
+
this.document = inject(DOCUMENT);
|
|
4109
|
+
this.config = inject(GLOBAL_CONFIG_TOKEN, { optional: true });
|
|
4110
|
+
this.asService = inject(EuiAppShellService);
|
|
4157
4111
|
this._state$ = new BehaviorSubject(initialState);
|
|
4158
4112
|
const themeName = this.config?.eui?.theme || EuiTheme.DEFAULT;
|
|
4159
4113
|
this.setActiveTheme(themeName, true);
|
|
@@ -4303,23 +4257,15 @@ class EuiThemeService {
|
|
|
4303
4257
|
}
|
|
4304
4258
|
}
|
|
4305
4259
|
}
|
|
4306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4307
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4261
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiThemeService, providedIn: 'root' }); }
|
|
4308
4262
|
}
|
|
4309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiThemeService, decorators: [{
|
|
4310
4264
|
type: Injectable,
|
|
4311
4265
|
args: [{
|
|
4312
4266
|
providedIn: 'root',
|
|
4313
4267
|
}]
|
|
4314
|
-
}], ctorParameters: () => [
|
|
4315
|
-
type: Inject,
|
|
4316
|
-
args: [DOCUMENT]
|
|
4317
|
-
}] }, { type: undefined, decorators: [{
|
|
4318
|
-
type: Optional
|
|
4319
|
-
}, {
|
|
4320
|
-
type: Inject,
|
|
4321
|
-
args: [GLOBAL_CONFIG_TOKEN]
|
|
4322
|
-
}] }, { type: EuiAppShellService }] });
|
|
4268
|
+
}], ctorParameters: () => [] });
|
|
4323
4269
|
|
|
4324
4270
|
/**
|
|
4325
4271
|
* Generic storage service. Concrete storage services must extend this class
|
|
@@ -4386,12 +4332,12 @@ class AsyncStorageServiceMock extends AsyncStorageService {
|
|
|
4386
4332
|
* localStorage service
|
|
4387
4333
|
*/
|
|
4388
4334
|
class LocalStorageService extends StorageService {
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
this.
|
|
4393
|
-
this.platformId = platformId;
|
|
4335
|
+
constructor() {
|
|
4336
|
+
super(...arguments);
|
|
4337
|
+
this.log = inject(LogService, { optional: true });
|
|
4338
|
+
this.platformId = inject(PLATFORM_ID);
|
|
4394
4339
|
}
|
|
4340
|
+
static { this.NAME = 'LocalStorageService'; }
|
|
4395
4341
|
/**
|
|
4396
4342
|
* the name of the storage service
|
|
4397
4343
|
*/
|
|
@@ -4455,27 +4401,22 @@ class LocalStorageService extends StorageService {
|
|
|
4455
4401
|
}
|
|
4456
4402
|
}
|
|
4457
4403
|
}
|
|
4458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4459
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocalStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4405
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocalStorageService }); }
|
|
4460
4406
|
}
|
|
4461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
4462
4408
|
type: Injectable
|
|
4463
|
-
}]
|
|
4464
|
-
type: Optional
|
|
4465
|
-
}] }, { type: undefined, decorators: [{
|
|
4466
|
-
type: Inject,
|
|
4467
|
-
args: [PLATFORM_ID]
|
|
4468
|
-
}] }] });
|
|
4409
|
+
}] });
|
|
4469
4410
|
|
|
4470
4411
|
/**
|
|
4471
4412
|
* sessionStorage service
|
|
4472
4413
|
*/
|
|
4473
4414
|
class SessionStorageService extends StorageService {
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
this.log = log;
|
|
4415
|
+
constructor() {
|
|
4416
|
+
super(...arguments);
|
|
4417
|
+
this.log = inject(LogService, { optional: true });
|
|
4478
4418
|
}
|
|
4419
|
+
static { this.NAME = 'SessionStorageService'; }
|
|
4479
4420
|
/**
|
|
4480
4421
|
* the name of the storage service
|
|
4481
4422
|
*/
|
|
@@ -4533,14 +4474,12 @@ class SessionStorageService extends StorageService {
|
|
|
4533
4474
|
}
|
|
4534
4475
|
}
|
|
4535
4476
|
}
|
|
4536
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4537
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4477
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SessionStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4478
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SessionStorageService }); }
|
|
4538
4479
|
}
|
|
4539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
4540
4481
|
type: Injectable
|
|
4541
|
-
}]
|
|
4542
|
-
type: Optional
|
|
4543
|
-
}] }] });
|
|
4482
|
+
}] });
|
|
4544
4483
|
|
|
4545
4484
|
/** @internal */
|
|
4546
4485
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
@@ -4555,13 +4494,11 @@ const LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken('LOCAL_FORAGE_SERVI
|
|
|
4555
4494
|
*/
|
|
4556
4495
|
class LocalForageService extends AsyncStorageService {
|
|
4557
4496
|
static { this.NAME = 'LocalForageService'; }
|
|
4558
|
-
constructor(
|
|
4559
|
-
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4560
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4561
|
-
config, log) {
|
|
4497
|
+
constructor() {
|
|
4562
4498
|
super();
|
|
4563
|
-
this.config =
|
|
4564
|
-
this.log =
|
|
4499
|
+
this.config = inject(LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, { optional: true });
|
|
4500
|
+
this.log = inject(LogService, { optional: true });
|
|
4501
|
+
const config = this.config;
|
|
4565
4502
|
// configure localforage, if specified
|
|
4566
4503
|
if (config) {
|
|
4567
4504
|
localForage.config(config);
|
|
@@ -4643,19 +4580,12 @@ class LocalForageService extends AsyncStorageService {
|
|
|
4643
4580
|
},
|
|
4644
4581
|
}));
|
|
4645
4582
|
}
|
|
4646
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4647
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4583
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocalForageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4584
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocalForageService }); }
|
|
4648
4585
|
}
|
|
4649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocalForageService, decorators: [{
|
|
4650
4587
|
type: Injectable
|
|
4651
|
-
}], ctorParameters: () => [
|
|
4652
|
-
type: Inject,
|
|
4653
|
-
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4654
|
-
}, {
|
|
4655
|
-
type: Optional
|
|
4656
|
-
}] }, { type: LogService, decorators: [{
|
|
4657
|
-
type: Optional
|
|
4658
|
-
}] }] });
|
|
4588
|
+
}], ctorParameters: () => [] });
|
|
4659
4589
|
|
|
4660
4590
|
const LOCALE_ID_MAPPER = new InjectionToken('localeIdMapper');
|
|
4661
4591
|
/**
|
|
@@ -4673,15 +4603,17 @@ const LOCALE_ID_MAPPER = new InjectionToken('localeIdMapper');
|
|
|
4673
4603
|
*/
|
|
4674
4604
|
class LocaleService extends EuiService {
|
|
4675
4605
|
static { this.DEFAULT_STATE = { id: 'en-US' }; }
|
|
4676
|
-
constructor(
|
|
4606
|
+
constructor() {
|
|
4607
|
+
const locale_id = inject(LOCALE_ID);
|
|
4677
4608
|
super({ id: locale_id || Intl.DateTimeFormat().resolvedOptions().locale || LocaleService.DEFAULT_STATE.id });
|
|
4678
|
-
this.store =
|
|
4679
|
-
this.baseGlobalConfig =
|
|
4680
|
-
this.
|
|
4681
|
-
this.
|
|
4682
|
-
this.
|
|
4683
|
-
this.log = log;
|
|
4609
|
+
this.store = inject(StoreService);
|
|
4610
|
+
this.baseGlobalConfig = inject(GLOBAL_CONFIG_TOKEN);
|
|
4611
|
+
this.localeMapper = inject(LOCALE_ID_MAPPER, { optional: true });
|
|
4612
|
+
this.i18n = inject(I18nService, { optional: true });
|
|
4613
|
+
this.log = inject(LogService, { optional: true });
|
|
4684
4614
|
this.subNotifier = new Subject();
|
|
4615
|
+
this.locale_id = locale_id;
|
|
4616
|
+
const log = this.log;
|
|
4685
4617
|
if (log) {
|
|
4686
4618
|
this.logger = log.getLogger('core.LocaleService');
|
|
4687
4619
|
}
|
|
@@ -4828,35 +4760,20 @@ class LocaleService extends EuiService {
|
|
|
4828
4760
|
});
|
|
4829
4761
|
}
|
|
4830
4762
|
}
|
|
4831
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4832
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4763
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4764
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocaleService, providedIn: 'root' }); }
|
|
4833
4765
|
}
|
|
4834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocaleService, decorators: [{
|
|
4835
4767
|
type: Injectable,
|
|
4836
4768
|
args: [{
|
|
4837
4769
|
providedIn: 'root',
|
|
4838
4770
|
}]
|
|
4839
|
-
}], ctorParameters: () => [
|
|
4840
|
-
type: Inject,
|
|
4841
|
-
args: [GLOBAL_CONFIG_TOKEN]
|
|
4842
|
-
}] }, { type: undefined, decorators: [{
|
|
4843
|
-
type: Inject,
|
|
4844
|
-
args: [LOCALE_ID]
|
|
4845
|
-
}] }, { type: undefined, decorators: [{
|
|
4846
|
-
type: Optional
|
|
4847
|
-
}, {
|
|
4848
|
-
type: Inject,
|
|
4849
|
-
args: [LOCALE_ID_MAPPER]
|
|
4850
|
-
}] }, { type: I18nService, decorators: [{
|
|
4851
|
-
type: Optional
|
|
4852
|
-
}] }, { type: LogService, decorators: [{
|
|
4853
|
-
type: Optional
|
|
4854
|
-
}] }] });
|
|
4771
|
+
}], ctorParameters: () => [] });
|
|
4855
4772
|
|
|
4856
4773
|
class LocaleServiceMock extends LocaleService {
|
|
4857
|
-
constructor(
|
|
4858
|
-
super(
|
|
4859
|
-
this.locale_id =
|
|
4774
|
+
constructor() {
|
|
4775
|
+
super();
|
|
4776
|
+
this.locale_id = inject(LOCALE_ID, { optional: true });
|
|
4860
4777
|
this.DEFAULT_LOCALE = 'en';
|
|
4861
4778
|
this.stateSub = new BehaviorSubject({ id: this.DEFAULT_LOCALE });
|
|
4862
4779
|
}
|
|
@@ -4877,17 +4794,12 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4877
4794
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4878
4795
|
return of({ success: true });
|
|
4879
4796
|
}
|
|
4880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4881
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4797
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocaleServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4798
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocaleServiceMock }); }
|
|
4882
4799
|
}
|
|
4883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LocaleServiceMock, decorators: [{
|
|
4884
4801
|
type: Injectable
|
|
4885
|
-
}], ctorParameters: () => [
|
|
4886
|
-
type: Optional
|
|
4887
|
-
}, {
|
|
4888
|
-
type: Inject,
|
|
4889
|
-
args: [LOCALE_ID]
|
|
4890
|
-
}] }] });
|
|
4802
|
+
}], ctorParameters: () => [] });
|
|
4891
4803
|
|
|
4892
4804
|
/**
|
|
4893
4805
|
* The status of a library
|
|
@@ -5177,10 +5089,10 @@ class EuiLoaderService {
|
|
|
5177
5089
|
this.loadStyle(dependency);
|
|
5178
5090
|
}
|
|
5179
5091
|
}
|
|
5180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5181
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5092
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5093
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiLoaderService, providedIn: 'root' }); }
|
|
5182
5094
|
}
|
|
5183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuiLoaderService, decorators: [{
|
|
5184
5096
|
type: Injectable,
|
|
5185
5097
|
args: [{
|
|
5186
5098
|
providedIn: 'root',
|
|
@@ -5189,9 +5101,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
5189
5101
|
|
|
5190
5102
|
class UserService extends EuiService {
|
|
5191
5103
|
static { this.DEFAULT_STATE = { userId: 'annonymous' }; }
|
|
5192
|
-
constructor(
|
|
5104
|
+
constructor() {
|
|
5193
5105
|
super(UserService.DEFAULT_STATE);
|
|
5194
|
-
this.store =
|
|
5106
|
+
this.store = inject(StoreService);
|
|
5195
5107
|
// Create a BehaviorSubject with the initial state
|
|
5196
5108
|
this.stateSubject = new BehaviorSubject(this.stateInstance);
|
|
5197
5109
|
// Initialize signal with base state
|
|
@@ -5242,19 +5154,19 @@ class UserService extends EuiService {
|
|
|
5242
5154
|
getSignal() {
|
|
5243
5155
|
return this.state;
|
|
5244
5156
|
}
|
|
5245
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5246
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5158
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
5247
5159
|
}
|
|
5248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UserService, decorators: [{
|
|
5249
5161
|
type: Injectable,
|
|
5250
5162
|
args: [{
|
|
5251
5163
|
providedIn: 'root',
|
|
5252
5164
|
}]
|
|
5253
|
-
}], ctorParameters: () => [
|
|
5165
|
+
}], ctorParameters: () => [] });
|
|
5254
5166
|
|
|
5255
5167
|
class UserServiceMock extends UserService {
|
|
5256
5168
|
constructor() {
|
|
5257
|
-
super(
|
|
5169
|
+
super();
|
|
5258
5170
|
}
|
|
5259
5171
|
init(userState) {
|
|
5260
5172
|
return of({ success: true });
|
|
@@ -5265,10 +5177,10 @@ class UserServiceMock extends UserService {
|
|
|
5265
5177
|
updateState(userState, reducer) {
|
|
5266
5178
|
/* empty */
|
|
5267
5179
|
}
|
|
5268
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5269
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5181
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UserServiceMock }); }
|
|
5270
5182
|
}
|
|
5271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
5272
5184
|
type: Injectable
|
|
5273
5185
|
}], ctorParameters: () => [] });
|
|
5274
5186
|
|
|
@@ -5278,8 +5190,8 @@ const LANG_PARAM_KEY = 'X-Lang-Param';
|
|
|
5278
5190
|
* Add the header (LANG_PARAM_KEY, <language parameter>) to your request http headers
|
|
5279
5191
|
*/
|
|
5280
5192
|
class AddLangParamInterceptor {
|
|
5281
|
-
constructor(
|
|
5282
|
-
this.translateService =
|
|
5193
|
+
constructor() {
|
|
5194
|
+
this.translateService = inject(TranslateService);
|
|
5283
5195
|
}
|
|
5284
5196
|
intercept(req, next) {
|
|
5285
5197
|
// take the lang param name from header, if specified
|
|
@@ -5297,12 +5209,12 @@ class AddLangParamInterceptor {
|
|
|
5297
5209
|
params: req.params.set(langParam, langValue),
|
|
5298
5210
|
}));
|
|
5299
5211
|
}
|
|
5300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5301
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AddLangParamInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5213
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AddLangParamInterceptor }); }
|
|
5302
5214
|
}
|
|
5303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
5304
5216
|
type: Injectable
|
|
5305
|
-
}]
|
|
5217
|
+
}] });
|
|
5306
5218
|
|
|
5307
5219
|
class CachePreventionInterceptor {
|
|
5308
5220
|
intercept(req, next) {
|
|
@@ -5316,10 +5228,10 @@ class CachePreventionInterceptor {
|
|
|
5316
5228
|
headers: req.headers.set('Cache-Control', 'No-Cache'),
|
|
5317
5229
|
}));
|
|
5318
5230
|
}
|
|
5319
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5320
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5231
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5232
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CachePreventionInterceptor }); }
|
|
5321
5233
|
}
|
|
5322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
5323
5235
|
type: Injectable
|
|
5324
5236
|
}] });
|
|
5325
5237
|
|
|
@@ -5329,10 +5241,10 @@ class CorsSecurityInterceptor {
|
|
|
5329
5241
|
withCredentials: true,
|
|
5330
5242
|
}));
|
|
5331
5243
|
}
|
|
5332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5333
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5244
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5245
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CorsSecurityInterceptor }); }
|
|
5334
5246
|
}
|
|
5335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
5336
5248
|
type: Injectable
|
|
5337
5249
|
}] });
|
|
5338
5250
|
|
|
@@ -5342,10 +5254,10 @@ class CsrfPreventionInterceptor {
|
|
|
5342
5254
|
headers: request.headers.set('X-Requested-With', 'XMLHttpRequest'),
|
|
5343
5255
|
}));
|
|
5344
5256
|
}
|
|
5345
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5346
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5257
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5258
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CsrfPreventionInterceptor }); }
|
|
5347
5259
|
}
|
|
5348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
5349
5261
|
type: Injectable
|
|
5350
5262
|
}] });
|
|
5351
5263
|
|
|
@@ -5412,17 +5324,17 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
5412
5324
|
reauthenticate() {
|
|
5413
5325
|
document.location.reload();
|
|
5414
5326
|
}
|
|
5415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5416
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5327
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5328
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor }); }
|
|
5417
5329
|
}
|
|
5418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
5419
5331
|
type: Injectable
|
|
5420
5332
|
}] });
|
|
5421
5333
|
|
|
5422
5334
|
const UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken('UX_ERROR_MAPPING_HANDLER');
|
|
5423
5335
|
class UxRequestErrorModelInterceptor {
|
|
5424
|
-
constructor(
|
|
5425
|
-
this.errorMappingHandler =
|
|
5336
|
+
constructor() {
|
|
5337
|
+
this.errorMappingHandler = inject(UX_ERROR_MAPPING_HANDLER_TOKEN);
|
|
5426
5338
|
}
|
|
5427
5339
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
5428
5340
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -5439,15 +5351,12 @@ class UxRequestErrorModelInterceptor {
|
|
|
5439
5351
|
return of(err);
|
|
5440
5352
|
}));
|
|
5441
5353
|
}
|
|
5442
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5443
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5355
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UxRequestErrorModelInterceptor }); }
|
|
5444
5356
|
}
|
|
5445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
5446
5358
|
type: Injectable
|
|
5447
|
-
}]
|
|
5448
|
-
type: Inject,
|
|
5449
|
-
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5450
|
-
}] }] });
|
|
5359
|
+
}] });
|
|
5451
5360
|
|
|
5452
5361
|
/* BASE PACKAGE */
|
|
5453
5362
|
|