@eui/core 21.0.0-alpha.4 → 21.0.0-alpha.40
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 +652 -5271
- package/docs/changelog.html +769 -7568
- package/docs/classes/ActivatedRouteAction.html +18 -0
- package/docs/classes/AddApiQueueItemAction.html +18 -0
- package/docs/classes/AddAppLoadedConfigModulesAction.html +18 -0
- package/docs/classes/ApiQueueServiceMock.html +18 -0
- package/docs/classes/AsyncStorageService.html +18 -0
- package/docs/classes/AsyncStorageServiceMock.html +18 -0
- package/docs/classes/CssUtils.html +45 -0
- package/docs/classes/EmptyApiQueueAction.html +18 -0
- package/docs/classes/ErrorSubClass.html +18 -0
- package/docs/classes/EuiCoreRootGuardClass.html +18 -0
- package/docs/classes/EuiError.html +18 -0
- package/docs/classes/I18nResourceImpl.html +18 -0
- package/docs/classes/InitStoreAction.html +18 -0
- package/docs/classes/LogServiceMock.html +18 -0
- package/docs/classes/RemoveApiQueueItemAction.html +18 -0
- package/docs/classes/StorageService.html +18 -0
- package/docs/classes/StorageServiceMock.html +18 -0
- package/docs/classes/TranslateServiceMock.html +18 -0
- package/docs/classes/UpdateAppConnectionAction.html +18 -0
- package/docs/classes/UpdateAppStatusAction.html +18 -0
- package/docs/classes/UpdateAppVersionAction.html +18 -0
- package/docs/classes/UpdateCurrentModuleAction.html +18 -0
- package/docs/classes/UpdateI18nStateAction.html +18 -0
- package/docs/classes/UpdateLocaleStateAction.html +18 -0
- package/docs/classes/UpdateNotificationsListAction.html +18 -0
- package/docs/classes/UpdateUserDashboardAction.html +18 -0
- package/docs/classes/UpdateUserDetailsAction.html +18 -0
- package/docs/classes/UpdateUserPreferencesAction.html +18 -0
- package/docs/classes/UpdateUserRightsAction.html +18 -0
- package/docs/classes/UpdateUserStateAction.html +18 -0
- package/docs/dependencies.html +18 -0
- package/docs/directives/TranslateMockDirective.html +18 -0
- package/docs/index.html +20 -2
- package/docs/injectables/ApiQueueService.html +18 -0
- package/docs/injectables/EuiAppShellService.html +55 -0
- package/docs/injectables/EuiDynamicComponentService.html +18 -0
- package/docs/injectables/EuiDynamicMenuService.html +18 -0
- package/docs/injectables/EuiGrowlService.html +18 -0
- package/docs/injectables/EuiLoaderService.html +18 -0
- package/docs/injectables/EuiPermissionService.html +18 -0
- package/docs/injectables/EuiThemeService.html +18 -0
- package/docs/injectables/EuiTimezoneService.html +18 -0
- package/docs/injectables/GlobalErrorHandler.html +18 -0
- package/docs/injectables/I18nLoader.html +18 -0
- package/docs/injectables/I18nService.html +18 -0
- package/docs/injectables/I18nServiceMock.html +18 -0
- package/docs/injectables/LocalForageService.html +18 -0
- package/docs/injectables/LocalStorageService.html +18 -0
- package/docs/injectables/LocaleService.html +18 -0
- package/docs/injectables/LocaleServiceMock.html +18 -0
- package/docs/injectables/LogService.html +18 -0
- package/docs/injectables/SessionStorageService.html +18 -0
- package/docs/injectables/StoreService.html +18 -0
- package/docs/injectables/StoreServiceMock.html +18 -0
- package/docs/injectables/UserService.html +18 -0
- package/docs/injectables/UserServiceMock.html +18 -0
- package/docs/interceptors/AddLangParamInterceptor.html +18 -0
- package/docs/interceptors/CachePreventionInterceptor.html +18 -0
- package/docs/interceptors/CorsSecurityInterceptor.html +18 -0
- package/docs/interceptors/CsrfPreventionInterceptor.html +18 -0
- package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +18 -0
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +18 -0
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +18 -0
- package/docs/interfaces/Action.html +18 -0
- package/docs/interfaces/ActionReducer.html +18 -0
- package/docs/interfaces/Dependency.html +18 -0
- package/docs/interfaces/EuiTimeZone.html +18 -0
- package/docs/interfaces/IEuiTheme.html +18 -0
- package/docs/interfaces/Library.html +18 -0
- package/docs/interfaces/LoadedResources.html +18 -0
- package/docs/interfaces/LoadedResourcesError.html +18 -0
- package/docs/interfaces/MemoizedSelector.html +18 -0
- package/docs/interfaces/MemoizedSelectorWithProps.html +18 -0
- package/docs/interfaces/ModuleLoadEvent.html +18 -0
- package/docs/interfaces/Policy.html +18 -0
- package/docs/interfaces/ResourceError.html +18 -0
- package/docs/interfaces/ThemeState.html +18 -0
- package/docs/interfaces/TranslationKeys.html +18 -0
- package/docs/interfaces/UIState.html +108 -0
- package/docs/interfaces/body.html +18 -0
- package/docs/js/libs/bootstrap-native.js +1 -1
- package/docs/js/libs/jszip.min.js +13 -0
- package/docs/js/libs/svg-pan-zoom.min.js +3 -3
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +3 -3
- package/docs/js/menu-wc.js +16 -20
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/routes/routes_index.js +1 -0
- package/docs/js/routes.js +15 -8
- package/docs/js/search/search_index.js +2 -2
- package/docs/license.html +20 -2
- package/docs/miscellaneous/enumerations.html +18 -0
- package/docs/miscellaneous/functions.html +18 -0
- package/docs/miscellaneous/typealiases.html +18 -0
- package/docs/miscellaneous/variables.html +48 -53
- package/docs/modules/CoreModule.html +18 -0
- package/docs/modules/I18nModule.html +18 -0
- package/docs/modules/LogModule.html +18 -0
- package/docs/modules/TranslateMockModule.html +18 -0
- package/docs/modules.html +18 -0
- package/docs/overview.html +28 -0
- package/docs/pipes/TranslateMockPipe.html +18 -0
- package/docs/properties.html +19 -1
- package/docs/routes.html +204 -0
- package/docs/template-playground/default-templates.json +192 -0
- package/docs/template-playground/hbs-render.service.ts +212 -0
- package/docs/template-playground/main.ts +9 -0
- package/docs/template-playground/template-editor.service.ts +173 -0
- package/docs/template-playground/template-playground.component.ts +614 -0
- package/docs/template-playground/template-playground.module.ts +29 -0
- package/docs/template-playground/zip-export.service.ts +86 -0
- package/docs/template-playground-app/app.js +1389 -0
- package/docs/template-playground-app/index.html +462 -0
- package/fesm2022/eui-core.mjs +150 -110
- package/fesm2022/eui-core.mjs.map +1 -1
- package/package.json +44 -45
- package/{index.d.ts → types/eui-core.d.ts} +13 -1
- package/types/eui-core.d.ts.map +1 -0
- package/index.d.ts.map +0 -1
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { ConsoleAppender, LogLevel, initialAppState, initialUserState, initialNo
|
|
|
2
2
|
export * from '@eui/base';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, inject, PLATFORM_ID, Injectable, Injector, NgModule, Optional, SkipSelf, provideAppInitializer, ErrorHandler, ApplicationRef, LOCALE_ID } from '@angular/core';
|
|
5
|
-
import
|
|
5
|
+
import { deepmerge } from 'deepmerge-ts';
|
|
6
6
|
import { isPlatformBrowser, LOCATION_INITIALIZED, DOCUMENT, isPlatformServer, getLocaleId, registerLocaleData } from '@angular/common';
|
|
7
7
|
import { BehaviorSubject, of, forkJoin, from, Subject, defer, firstValueFrom } from 'rxjs';
|
|
8
8
|
import { filter, debounceTime, distinctUntilChanged, map, tap, take, switchMap, catchError, concatMap, takeUntil } from 'rxjs/operators';
|
|
@@ -85,7 +85,6 @@ const DEFAULT_EUI_CONFIG = {
|
|
|
85
85
|
},
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
const extend$1 = extendProxy.default || extendProxy;
|
|
89
88
|
const EUI_CONFIG_TOKEN = new InjectionToken('EuiConfig');
|
|
90
89
|
const MODULE_NAME_TOKEN = new InjectionToken('moduleName');
|
|
91
90
|
const MODULE_CONFIG_TOKEN = new InjectionToken('moduleConfig');
|
|
@@ -138,7 +137,8 @@ function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge, is
|
|
|
138
137
|
typeof euiAppConfig[key] === 'object') {
|
|
139
138
|
if (isDeepMerge) {
|
|
140
139
|
deepMerged[key] = {};
|
|
141
|
-
|
|
140
|
+
deepMerged[key] = deepmerge(euiAppConfig[key], envAppJsonConfig[key]);
|
|
141
|
+
// extend(true, deepMerged[key], euiAppConfig[key], envAppJsonConfig[key]);
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
144
|
envAppJsonConfig[key] = {
|
|
@@ -532,7 +532,6 @@ const coreReducers = Object.assign({}, {
|
|
|
532
532
|
locale: coreLocaleReducers,
|
|
533
533
|
});
|
|
534
534
|
|
|
535
|
-
const extend = extendProxy.default || extendProxy;
|
|
536
535
|
// eslint-disable-next-line
|
|
537
536
|
function localStorageSync(reducer, platformId) {
|
|
538
537
|
if (platformId) {
|
|
@@ -623,7 +622,8 @@ const cb = (reducer, storage) => (state, action) => {
|
|
|
623
622
|
// const isUserIdOK = (localUserId === payloadUserId);
|
|
624
623
|
// update the entire state with deep merge of states, if the version and user are the same
|
|
625
624
|
if (isVersionOK) {
|
|
626
|
-
state =
|
|
625
|
+
state = { ...state, ...localState };
|
|
626
|
+
// state = extend(true, {}, state, localState);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
// update the app version, if defined
|
|
@@ -669,10 +669,10 @@ 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: "21.0.0-rc.0", ngImport: i0, type: LogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LogService }); }
|
|
674
674
|
}
|
|
675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LogService, decorators: [{
|
|
676
676
|
type: Injectable
|
|
677
677
|
}], ctorParameters: () => [] });
|
|
678
678
|
|
|
@@ -770,11 +770,11 @@ class LogModule {
|
|
|
770
770
|
],
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
774
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
775
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
773
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
774
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LogModule }); }
|
|
775
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LogModule }); }
|
|
776
776
|
}
|
|
777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LogModule, decorators: [{
|
|
778
778
|
type: NgModule
|
|
779
779
|
}] });
|
|
780
780
|
|
|
@@ -926,10 +926,10 @@ class StoreService {
|
|
|
926
926
|
isObject(item) {
|
|
927
927
|
return item && typeof item === 'object' && !Array.isArray(item);
|
|
928
928
|
}
|
|
929
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
930
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
929
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: StoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
930
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: StoreService, providedIn: 'root' }); }
|
|
931
931
|
}
|
|
932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: StoreService, decorators: [{
|
|
933
933
|
type: Injectable,
|
|
934
934
|
args: [{
|
|
935
935
|
providedIn: 'root',
|
|
@@ -948,10 +948,10 @@ class StoreServiceMock extends StoreService {
|
|
|
948
948
|
select() {
|
|
949
949
|
return of({});
|
|
950
950
|
}
|
|
951
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
952
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
951
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
952
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: StoreServiceMock }); }
|
|
953
953
|
}
|
|
954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
955
955
|
type: Injectable
|
|
956
956
|
}], ctorParameters: () => [] });
|
|
957
957
|
|
|
@@ -1044,11 +1044,11 @@ class CoreModule {
|
|
|
1044
1044
|
storeService.updateState({ moduleName, moduleConfig }, AddAppLoadedConfigModules);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1048
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1049
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1048
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CoreModule }); }
|
|
1049
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CoreModule }); }
|
|
1050
1050
|
}
|
|
1051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CoreModule, decorators: [{
|
|
1052
1052
|
type: NgModule
|
|
1053
1053
|
}], ctorParameters: () => [] });
|
|
1054
1054
|
const createEuiCoreRootGuard = (core) => {
|
|
@@ -1224,10 +1224,10 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
1224
1224
|
// throw error;
|
|
1225
1225
|
super.handleError(error);
|
|
1226
1226
|
}
|
|
1227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1228
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: GlobalErrorHandler, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1228
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' }); }
|
|
1229
1229
|
}
|
|
1230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
1231
1231
|
type: Injectable,
|
|
1232
1232
|
args: [{
|
|
1233
1233
|
providedIn: 'root',
|
|
@@ -1279,10 +1279,10 @@ class HttpErrorHandlerInterceptor {
|
|
|
1279
1279
|
// return the first matching route, if any
|
|
1280
1280
|
return routes.length > 0 ? routes[0] : null;
|
|
1281
1281
|
}
|
|
1282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1283
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1283
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: HttpErrorHandlerInterceptor }); }
|
|
1284
1284
|
}
|
|
1285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1286
1286
|
type: Injectable
|
|
1287
1287
|
}] });
|
|
1288
1288
|
|
|
@@ -1353,10 +1353,10 @@ class EuiGrowlService {
|
|
|
1353
1353
|
growlInfo(msg, position) {
|
|
1354
1354
|
this.growl({ severity: 'info', summary: 'INFO', detail: msg }, false, false, undefined, position);
|
|
1355
1355
|
}
|
|
1356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1357
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1356
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1357
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiGrowlService, providedIn: 'root' }); }
|
|
1358
1358
|
}
|
|
1359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
1360
1360
|
type: Injectable,
|
|
1361
1361
|
args: [{
|
|
1362
1362
|
providedIn: 'root',
|
|
@@ -1716,10 +1716,10 @@ class ApiQueueService {
|
|
|
1716
1716
|
buildHttpRequest(id, item) {
|
|
1717
1717
|
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap(() => this.removeQueueItem(id)));
|
|
1718
1718
|
}
|
|
1719
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1720
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1719
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: ApiQueueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1720
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: ApiQueueService, providedIn: 'root' }); }
|
|
1721
1721
|
}
|
|
1722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
1723
1723
|
type: Injectable,
|
|
1724
1724
|
args: [{
|
|
1725
1725
|
providedIn: 'root',
|
|
@@ -1959,10 +1959,10 @@ class I18nLoader {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
return undefined;
|
|
1961
1961
|
}
|
|
1962
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1963
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: I18nLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1963
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: I18nLoader }); }
|
|
1964
1964
|
}
|
|
1965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: I18nLoader, decorators: [{
|
|
1966
1966
|
type: Injectable
|
|
1967
1967
|
}], ctorParameters: () => [] });
|
|
1968
1968
|
const translateConfig = {
|
|
@@ -2201,10 +2201,10 @@ class I18nService extends EuiLazyService {
|
|
|
2201
2201
|
updateHTMLDOMLang(lang) {
|
|
2202
2202
|
this.document.documentElement.lang = lang;
|
|
2203
2203
|
}
|
|
2204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2205
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2205
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
2206
2206
|
}
|
|
2207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: I18nService, decorators: [{
|
|
2208
2208
|
type: Injectable,
|
|
2209
2209
|
args: [{
|
|
2210
2210
|
providedIn: 'root',
|
|
@@ -2475,6 +2475,7 @@ class CssUtils {
|
|
|
2475
2475
|
this.setCssVar('--eui-app-breadcrumb-height-default', '--eui-app-breadcrumb-height', document, platform);
|
|
2476
2476
|
this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height', document, platform);
|
|
2477
2477
|
this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height', document, platform);
|
|
2478
|
+
this.setCssVar('--eui-app-toolbar-mega-menu-height-default', '--eui-app-toolbar-mega-menu-height', document, platform);
|
|
2478
2479
|
this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width', document, platform);
|
|
2479
2480
|
this.setCssVar('--eui-app-sidebar-width-close-default', '--eui-app-sidebar-width-close', document, platform);
|
|
2480
2481
|
this.setCssVar('--eui-app-sidebar-header-height-default', '--eui-app-sidebar-header-height', document, platform);
|
|
@@ -2527,6 +2528,9 @@ class CssUtils {
|
|
|
2527
2528
|
static { this.activateToolbarCssVars = (document, platform) => {
|
|
2528
2529
|
this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height', document, platform);
|
|
2529
2530
|
}; }
|
|
2531
|
+
static { this.activateToolbarMegaMenuCssVars = (document, platform) => {
|
|
2532
|
+
this.setCssVar('--eui-app-toolbar-mega-menu-height-active', '--eui-app-toolbar-mega-menu-height', document, platform);
|
|
2533
|
+
}; }
|
|
2530
2534
|
static { this.activateFooterCssVars = (document, platform) => {
|
|
2531
2535
|
this.setCssVar('--eui-app-footer-height-active', '--eui-app-footer-height', document, platform);
|
|
2532
2536
|
}; }
|
|
@@ -2822,10 +2826,10 @@ class EuiPermissionService extends EuiService {
|
|
|
2822
2826
|
}
|
|
2823
2827
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2824
2828
|
}
|
|
2825
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2826
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2829
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiPermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2830
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiPermissionService, providedIn: 'root' }); }
|
|
2827
2831
|
}
|
|
2828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2829
2833
|
type: Injectable,
|
|
2830
2834
|
args: [{
|
|
2831
2835
|
providedIn: 'root',
|
|
@@ -2883,10 +2887,10 @@ class EuiDynamicMenuService {
|
|
|
2883
2887
|
return true;
|
|
2884
2888
|
});
|
|
2885
2889
|
}
|
|
2886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2887
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2890
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiDynamicMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2891
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiDynamicMenuService, providedIn: 'root' }); }
|
|
2888
2892
|
}
|
|
2889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiDynamicMenuService, decorators: [{
|
|
2890
2894
|
type: Injectable,
|
|
2891
2895
|
args: [{
|
|
2892
2896
|
providedIn: 'root',
|
|
@@ -2951,10 +2955,10 @@ class EuiDynamicComponentService {
|
|
|
2951
2955
|
parent: this.injector,
|
|
2952
2956
|
});
|
|
2953
2957
|
}
|
|
2954
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2955
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2958
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiDynamicComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2959
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiDynamicComponentService }); }
|
|
2956
2960
|
}
|
|
2957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiDynamicComponentService, decorators: [{
|
|
2958
2962
|
type: Injectable
|
|
2959
2963
|
}] });
|
|
2960
2964
|
|
|
@@ -2971,9 +2975,11 @@ const initialState$1 = {
|
|
|
2971
2975
|
hasHeaderLogo: false,
|
|
2972
2976
|
hasHeaderEnvironment: false,
|
|
2973
2977
|
hasToolbar: false,
|
|
2978
|
+
hasToolbarMegaMenu: false,
|
|
2974
2979
|
hasToolbarMenu: false,
|
|
2975
2980
|
environmentValue: '',
|
|
2976
2981
|
isSidebarHidden: false,
|
|
2982
|
+
isSidebarFocused: false,
|
|
2977
2983
|
hasSidebarCollapsedVariant: false,
|
|
2978
2984
|
hasTopMessage: false,
|
|
2979
2985
|
windowWidth: 0,
|
|
@@ -3233,6 +3239,13 @@ class EuiAppShellService {
|
|
|
3233
3239
|
});
|
|
3234
3240
|
CssUtils.activateToolbarCssVars(this.document, this.platformId);
|
|
3235
3241
|
}
|
|
3242
|
+
activateToolbarMegaMenu() {
|
|
3243
|
+
this.setState({
|
|
3244
|
+
...this.state,
|
|
3245
|
+
hasToolbarMegaMenu: true,
|
|
3246
|
+
});
|
|
3247
|
+
CssUtils.activateToolbarMegaMenuCssVars(this.document, this.platformId);
|
|
3248
|
+
}
|
|
3236
3249
|
activateToolbarMenu() {
|
|
3237
3250
|
this.setState({
|
|
3238
3251
|
...this.state,
|
|
@@ -3338,10 +3351,10 @@ class EuiAppShellService {
|
|
|
3338
3351
|
}
|
|
3339
3352
|
});
|
|
3340
3353
|
}
|
|
3341
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3342
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiAppShellService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3355
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiAppShellService, providedIn: 'root' }); }
|
|
3343
3356
|
}
|
|
3344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiAppShellService, decorators: [{
|
|
3345
3358
|
type: Injectable,
|
|
3346
3359
|
args: [{
|
|
3347
3360
|
providedIn: 'root',
|
|
@@ -4055,10 +4068,10 @@ class EuiTimezoneService {
|
|
|
4055
4068
|
getTimezone(tz) {
|
|
4056
4069
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4057
4070
|
}
|
|
4058
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4059
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4071
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4072
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiTimezoneService }); }
|
|
4060
4073
|
}
|
|
4061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiTimezoneService, decorators: [{
|
|
4062
4075
|
type: Injectable
|
|
4063
4076
|
}] });
|
|
4064
4077
|
|
|
@@ -4084,11 +4097,8 @@ const initialState = {
|
|
|
4084
4097
|
{ name: EuiTheme.ECL_EC_RTL, isActive: false, styleSheet: 'eui-ecl-ec-rtl.css', cssClass: null },
|
|
4085
4098
|
{ name: EuiTheme.ECL_EU, isActive: false, styleSheet: 'eui-ecl-eu.css', cssClass: null },
|
|
4086
4099
|
{ name: EuiTheme.ECL_EU_RTL, isActive: false, styleSheet: 'eui-ecl-eu-rtl.css', cssClass: null },
|
|
4087
|
-
{ name: EuiTheme.EUI_LEGACY, isActive: false, styleSheet: null, cssClass: 'eui-t-eui-legacy' },
|
|
4088
|
-
{ name: EuiTheme.EUI_LEGACY_HC, isActive: false, styleSheet: null, cssClass: 'eui-t-high-contrast' },
|
|
4089
4100
|
{ name: EuiTheme.DARK, isActive: false, styleSheet: null, cssClass: 'eui-t-dark' },
|
|
4090
4101
|
{ name: EuiTheme.COMPACT, isActive: false, styleSheet: null, cssClass: 'eui-t-compact' },
|
|
4091
|
-
{ name: EuiTheme.DS2025, isActive: false, styleSheet: null, cssClass: 'eui-t-ds2025' },
|
|
4092
4102
|
],
|
|
4093
4103
|
theme: {
|
|
4094
4104
|
isDefault: false,
|
|
@@ -4096,11 +4106,8 @@ const initialState = {
|
|
|
4096
4106
|
isEclEcRtl: false,
|
|
4097
4107
|
isEclEu: false,
|
|
4098
4108
|
isEclEuRtl: false,
|
|
4099
|
-
isEuiLegacy: false,
|
|
4100
|
-
isEuiLegacyHc: false,
|
|
4101
4109
|
isDark: false,
|
|
4102
4110
|
isCompact: false,
|
|
4103
|
-
isDs2025: false,
|
|
4104
4111
|
},
|
|
4105
4112
|
};
|
|
4106
4113
|
class EuiThemeService {
|
|
@@ -4219,29 +4226,34 @@ class EuiThemeService {
|
|
|
4219
4226
|
this._renderThemeCss(themeFound, isActive, compactLink);
|
|
4220
4227
|
}
|
|
4221
4228
|
else if (themeFound.name === EuiTheme.ECL_EC_RTL || themeFound.name === EuiTheme.ECL_EU_RTL) {
|
|
4222
|
-
|
|
4229
|
+
return;
|
|
4230
|
+
}
|
|
4231
|
+
else if (themeFound.name === EuiTheme.ECL_EC || themeFound.name === EuiTheme.ECL_EU) {
|
|
4232
|
+
const rtlLink = this.document.getElementById('eui-theme');
|
|
4223
4233
|
this._renderThemeCss(themeFound, isActive, rtlLink);
|
|
4224
4234
|
}
|
|
4225
4235
|
else {
|
|
4226
|
-
|
|
4227
|
-
this._renderThemeCss(themeFound, isActive, themeLink);
|
|
4236
|
+
this._renderThemeCss(themeFound, isActive, null);
|
|
4228
4237
|
}
|
|
4229
4238
|
}
|
|
4230
4239
|
_renderThemeCss(themeFound, isActive, link) {
|
|
4231
4240
|
const head = this.document.getElementsByTagName('head')[0];
|
|
4241
|
+
console.log(link);
|
|
4242
|
+
console.log(themeFound);
|
|
4232
4243
|
if (isActive) {
|
|
4233
4244
|
if (themeFound.cssClass) {
|
|
4234
4245
|
document.querySelector('html').classList.add(themeFound.cssClass);
|
|
4235
4246
|
}
|
|
4236
4247
|
if (themeFound.styleSheet) {
|
|
4237
4248
|
if (link) {
|
|
4238
|
-
link.href = themeFound.styleSheet
|
|
4249
|
+
link.href = `assets/${themeFound.styleSheet}`;
|
|
4239
4250
|
}
|
|
4240
4251
|
else {
|
|
4241
4252
|
const style = this.document.createElement('link');
|
|
4242
4253
|
style.id = 'eui-theme';
|
|
4243
4254
|
style.rel = 'stylesheet';
|
|
4244
4255
|
style.href = `assets/${themeFound.styleSheet}`;
|
|
4256
|
+
console.log(style);
|
|
4245
4257
|
head.appendChild(style);
|
|
4246
4258
|
}
|
|
4247
4259
|
}
|
|
@@ -4257,10 +4269,10 @@ class EuiThemeService {
|
|
|
4257
4269
|
}
|
|
4258
4270
|
}
|
|
4259
4271
|
}
|
|
4260
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4261
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4273
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiThemeService, providedIn: 'root' }); }
|
|
4262
4274
|
}
|
|
4263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiThemeService, decorators: [{
|
|
4264
4276
|
type: Injectable,
|
|
4265
4277
|
args: [{
|
|
4266
4278
|
providedIn: 'root',
|
|
@@ -4401,10 +4413,10 @@ class LocalStorageService extends StorageService {
|
|
|
4401
4413
|
}
|
|
4402
4414
|
}
|
|
4403
4415
|
}
|
|
4404
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4405
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocalStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4417
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocalStorageService }); }
|
|
4406
4418
|
}
|
|
4407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
4408
4420
|
type: Injectable
|
|
4409
4421
|
}] });
|
|
4410
4422
|
|
|
@@ -4474,10 +4486,10 @@ class SessionStorageService extends StorageService {
|
|
|
4474
4486
|
}
|
|
4475
4487
|
}
|
|
4476
4488
|
}
|
|
4477
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4478
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4489
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: SessionStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4490
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: SessionStorageService }); }
|
|
4479
4491
|
}
|
|
4480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
4481
4493
|
type: Injectable
|
|
4482
4494
|
}] });
|
|
4483
4495
|
|
|
@@ -4580,10 +4592,10 @@ class LocalForageService extends AsyncStorageService {
|
|
|
4580
4592
|
},
|
|
4581
4593
|
}));
|
|
4582
4594
|
}
|
|
4583
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4584
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4595
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocalForageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4596
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocalForageService }); }
|
|
4585
4597
|
}
|
|
4586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocalForageService, decorators: [{
|
|
4587
4599
|
type: Injectable
|
|
4588
4600
|
}], ctorParameters: () => [] });
|
|
4589
4601
|
|
|
@@ -4671,6 +4683,13 @@ class LocaleService extends EuiService {
|
|
|
4671
4683
|
init(state) {
|
|
4672
4684
|
super.initEuiService();
|
|
4673
4685
|
state = state || { id: this.currentLocale };
|
|
4686
|
+
if (state?.id && !this.isValidLocale(state.id)) {
|
|
4687
|
+
const message = `Locale '${state.id}' is not a valid locale string. Please provide a valid locale.`;
|
|
4688
|
+
if (this.log) {
|
|
4689
|
+
this.logger.error(message);
|
|
4690
|
+
}
|
|
4691
|
+
return of({ success: false, error: new Error(message) });
|
|
4692
|
+
}
|
|
4674
4693
|
// bind language changes to locale changes
|
|
4675
4694
|
if (this.config?.bindWithTranslate) {
|
|
4676
4695
|
this.bindTranslateServiceLangChangeToState();
|
|
@@ -4760,10 +4779,31 @@ class LocaleService extends EuiService {
|
|
|
4760
4779
|
});
|
|
4761
4780
|
}
|
|
4762
4781
|
}
|
|
4763
|
-
|
|
4764
|
-
|
|
4782
|
+
/**
|
|
4783
|
+
* Checks if a given locale string is valid according to the Intl.Locale API. (based on BCP 47)
|
|
4784
|
+
* A valid locale string can be used to create a new Intl.Locale object without throwing an error.
|
|
4785
|
+
*
|
|
4786
|
+
* @param localeString - The locale string to be validated.
|
|
4787
|
+
* @returns {boolean} - Returns true if the locale string is valid, false otherwise.
|
|
4788
|
+
*/
|
|
4789
|
+
isValidLocale(localeString) {
|
|
4790
|
+
try {
|
|
4791
|
+
// Normalize: replace underscores with hyphens (support for Angular locale ids)
|
|
4792
|
+
// e.g., 'en_US' -> 'en-US'
|
|
4793
|
+
// Note: Intl.Locale only accepts hyphens as separators
|
|
4794
|
+
// Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale
|
|
4795
|
+
const normalizedString = localeString.replace(/_/g, '-');
|
|
4796
|
+
new Intl.Locale(normalizedString);
|
|
4797
|
+
return true;
|
|
4798
|
+
}
|
|
4799
|
+
catch (error) {
|
|
4800
|
+
return false;
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4804
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocaleService, providedIn: 'root' }); }
|
|
4765
4805
|
}
|
|
4766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocaleService, decorators: [{
|
|
4767
4807
|
type: Injectable,
|
|
4768
4808
|
args: [{
|
|
4769
4809
|
providedIn: 'root',
|
|
@@ -4794,10 +4834,10 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4794
4834
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4795
4835
|
return of({ success: true });
|
|
4796
4836
|
}
|
|
4797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4798
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4837
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocaleServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4838
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocaleServiceMock }); }
|
|
4799
4839
|
}
|
|
4800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: LocaleServiceMock, decorators: [{
|
|
4801
4841
|
type: Injectable
|
|
4802
4842
|
}], ctorParameters: () => [] });
|
|
4803
4843
|
|
|
@@ -5089,10 +5129,10 @@ class EuiLoaderService {
|
|
|
5089
5129
|
this.loadStyle(dependency);
|
|
5090
5130
|
}
|
|
5091
5131
|
}
|
|
5092
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5093
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5133
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiLoaderService, providedIn: 'root' }); }
|
|
5094
5134
|
}
|
|
5095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuiLoaderService, decorators: [{
|
|
5096
5136
|
type: Injectable,
|
|
5097
5137
|
args: [{
|
|
5098
5138
|
providedIn: 'root',
|
|
@@ -5154,10 +5194,10 @@ class UserService extends EuiService {
|
|
|
5154
5194
|
getSignal() {
|
|
5155
5195
|
return this.state;
|
|
5156
5196
|
}
|
|
5157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5158
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5198
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
5159
5199
|
}
|
|
5160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UserService, decorators: [{
|
|
5161
5201
|
type: Injectable,
|
|
5162
5202
|
args: [{
|
|
5163
5203
|
providedIn: 'root',
|
|
@@ -5177,10 +5217,10 @@ class UserServiceMock extends UserService {
|
|
|
5177
5217
|
updateState(userState, reducer) {
|
|
5178
5218
|
/* empty */
|
|
5179
5219
|
}
|
|
5180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5181
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5221
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UserServiceMock }); }
|
|
5182
5222
|
}
|
|
5183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
5184
5224
|
type: Injectable
|
|
5185
5225
|
}], ctorParameters: () => [] });
|
|
5186
5226
|
|
|
@@ -5209,10 +5249,10 @@ class AddLangParamInterceptor {
|
|
|
5209
5249
|
params: req.params.set(langParam, langValue),
|
|
5210
5250
|
}));
|
|
5211
5251
|
}
|
|
5212
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5213
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: AddLangParamInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5253
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: AddLangParamInterceptor }); }
|
|
5214
5254
|
}
|
|
5215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
5216
5256
|
type: Injectable
|
|
5217
5257
|
}] });
|
|
5218
5258
|
|
|
@@ -5228,10 +5268,10 @@ class CachePreventionInterceptor {
|
|
|
5228
5268
|
headers: req.headers.set('Cache-Control', 'No-Cache'),
|
|
5229
5269
|
}));
|
|
5230
5270
|
}
|
|
5231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5232
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5272
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CachePreventionInterceptor }); }
|
|
5233
5273
|
}
|
|
5234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
5235
5275
|
type: Injectable
|
|
5236
5276
|
}] });
|
|
5237
5277
|
|
|
@@ -5241,10 +5281,10 @@ class CorsSecurityInterceptor {
|
|
|
5241
5281
|
withCredentials: true,
|
|
5242
5282
|
}));
|
|
5243
5283
|
}
|
|
5244
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5245
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5284
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5285
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CorsSecurityInterceptor }); }
|
|
5246
5286
|
}
|
|
5247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
5248
5288
|
type: Injectable
|
|
5249
5289
|
}] });
|
|
5250
5290
|
|
|
@@ -5254,10 +5294,10 @@ class CsrfPreventionInterceptor {
|
|
|
5254
5294
|
headers: request.headers.set('X-Requested-With', 'XMLHttpRequest'),
|
|
5255
5295
|
}));
|
|
5256
5296
|
}
|
|
5257
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5258
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5298
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CsrfPreventionInterceptor }); }
|
|
5259
5299
|
}
|
|
5260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
5261
5301
|
type: Injectable
|
|
5262
5302
|
}] });
|
|
5263
5303
|
|
|
@@ -5324,10 +5364,10 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
5324
5364
|
reauthenticate() {
|
|
5325
5365
|
document.location.reload();
|
|
5326
5366
|
}
|
|
5327
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5328
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5367
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5368
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor }); }
|
|
5329
5369
|
}
|
|
5330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
5331
5371
|
type: Injectable
|
|
5332
5372
|
}] });
|
|
5333
5373
|
|
|
@@ -5351,10 +5391,10 @@ class UxRequestErrorModelInterceptor {
|
|
|
5351
5391
|
return of(err);
|
|
5352
5392
|
}));
|
|
5353
5393
|
}
|
|
5354
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5355
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5394
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5395
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UxRequestErrorModelInterceptor }); }
|
|
5356
5396
|
}
|
|
5357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.0", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
5358
5398
|
type: Injectable
|
|
5359
5399
|
}] });
|
|
5360
5400
|
|