@eui/core 21.0.0-alpha.9 → 21.0.0-next.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +672 -5333
  2. package/docs/changelog.html +784 -7639
  3. package/docs/classes/ActivatedRouteAction.html +18 -0
  4. package/docs/classes/AddApiQueueItemAction.html +18 -0
  5. package/docs/classes/AddAppLoadedConfigModulesAction.html +18 -0
  6. package/docs/classes/ApiQueueServiceMock.html +18 -0
  7. package/docs/classes/AsyncStorageService.html +18 -0
  8. package/docs/classes/AsyncStorageServiceMock.html +18 -0
  9. package/docs/classes/CssUtils.html +45 -0
  10. package/docs/classes/EmptyApiQueueAction.html +18 -0
  11. package/docs/classes/ErrorSubClass.html +18 -0
  12. package/docs/classes/EuiCoreRootGuardClass.html +18 -0
  13. package/docs/classes/EuiError.html +18 -0
  14. package/docs/classes/I18nResourceImpl.html +18 -0
  15. package/docs/classes/InitStoreAction.html +18 -0
  16. package/docs/classes/LogServiceMock.html +18 -0
  17. package/docs/classes/RemoveApiQueueItemAction.html +18 -0
  18. package/docs/classes/StorageService.html +18 -0
  19. package/docs/classes/StorageServiceMock.html +18 -0
  20. package/docs/classes/TranslateServiceMock.html +18 -0
  21. package/docs/classes/UpdateAppConnectionAction.html +18 -0
  22. package/docs/classes/UpdateAppStatusAction.html +18 -0
  23. package/docs/classes/UpdateAppVersionAction.html +18 -0
  24. package/docs/classes/UpdateCurrentModuleAction.html +18 -0
  25. package/docs/classes/UpdateI18nStateAction.html +18 -0
  26. package/docs/classes/UpdateLocaleStateAction.html +18 -0
  27. package/docs/classes/UpdateNotificationsListAction.html +18 -0
  28. package/docs/classes/UpdateUserDashboardAction.html +18 -0
  29. package/docs/classes/UpdateUserDetailsAction.html +18 -0
  30. package/docs/classes/UpdateUserPreferencesAction.html +18 -0
  31. package/docs/classes/UpdateUserRightsAction.html +18 -0
  32. package/docs/classes/UpdateUserStateAction.html +18 -0
  33. package/docs/dependencies.html +18 -0
  34. package/docs/directives/TranslateMockDirective.html +18 -0
  35. package/docs/index.html +20 -2
  36. package/docs/injectables/ApiQueueService.html +18 -0
  37. package/docs/injectables/EuiAppShellService.html +55 -0
  38. package/docs/injectables/EuiDynamicComponentService.html +18 -0
  39. package/docs/injectables/EuiDynamicMenuService.html +18 -0
  40. package/docs/injectables/EuiGrowlService.html +18 -0
  41. package/docs/injectables/EuiLoaderService.html +18 -0
  42. package/docs/injectables/EuiPermissionService.html +18 -0
  43. package/docs/injectables/EuiThemeService.html +18 -0
  44. package/docs/injectables/EuiTimezoneService.html +18 -0
  45. package/docs/injectables/GlobalErrorHandler.html +18 -0
  46. package/docs/injectables/I18nLoader.html +18 -0
  47. package/docs/injectables/I18nService.html +18 -0
  48. package/docs/injectables/I18nServiceMock.html +18 -0
  49. package/docs/injectables/LocalForageService.html +18 -0
  50. package/docs/injectables/LocalStorageService.html +18 -0
  51. package/docs/injectables/LocaleService.html +18 -0
  52. package/docs/injectables/LocaleServiceMock.html +18 -0
  53. package/docs/injectables/LogService.html +18 -0
  54. package/docs/injectables/SessionStorageService.html +18 -0
  55. package/docs/injectables/StoreService.html +18 -0
  56. package/docs/injectables/StoreServiceMock.html +18 -0
  57. package/docs/injectables/UserService.html +18 -0
  58. package/docs/injectables/UserServiceMock.html +18 -0
  59. package/docs/interceptors/AddLangParamInterceptor.html +18 -0
  60. package/docs/interceptors/CachePreventionInterceptor.html +18 -0
  61. package/docs/interceptors/CorsSecurityInterceptor.html +18 -0
  62. package/docs/interceptors/CsrfPreventionInterceptor.html +18 -0
  63. package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +18 -0
  64. package/docs/interceptors/HttpErrorHandlerInterceptor.html +18 -0
  65. package/docs/interceptors/UxRequestErrorModelInterceptor.html +18 -0
  66. package/docs/interfaces/Action.html +18 -0
  67. package/docs/interfaces/ActionReducer.html +18 -0
  68. package/docs/interfaces/Dependency.html +18 -0
  69. package/docs/interfaces/EuiTimeZone.html +18 -0
  70. package/docs/interfaces/IEuiTheme.html +18 -0
  71. package/docs/interfaces/Library.html +18 -0
  72. package/docs/interfaces/LoadedResources.html +18 -0
  73. package/docs/interfaces/LoadedResourcesError.html +18 -0
  74. package/docs/interfaces/MemoizedSelector.html +18 -0
  75. package/docs/interfaces/MemoizedSelectorWithProps.html +18 -0
  76. package/docs/interfaces/ModuleLoadEvent.html +18 -0
  77. package/docs/interfaces/Policy.html +18 -0
  78. package/docs/interfaces/ResourceError.html +18 -0
  79. package/docs/interfaces/ThemeState.html +18 -0
  80. package/docs/interfaces/TranslationKeys.html +18 -0
  81. package/docs/interfaces/UIState.html +108 -0
  82. package/docs/interfaces/body.html +18 -0
  83. package/docs/js/libs/bootstrap-native.js +1 -1
  84. package/docs/js/libs/jszip.min.js +13 -0
  85. package/docs/js/libs/svg-pan-zoom.min.js +3 -3
  86. package/docs/js/libs/tablesort.min.js +3 -3
  87. package/docs/js/libs/tablesort.number.min.js +3 -3
  88. package/docs/js/menu-wc.js +16 -20
  89. package/docs/js/menu-wc_es5.js +1 -1
  90. package/docs/js/routes/routes_index.js +1 -0
  91. package/docs/js/routes.js +15 -8
  92. package/docs/js/search/search_index.js +2 -2
  93. package/docs/license.html +20 -2
  94. package/docs/miscellaneous/enumerations.html +18 -0
  95. package/docs/miscellaneous/functions.html +18 -0
  96. package/docs/miscellaneous/typealiases.html +18 -0
  97. package/docs/miscellaneous/variables.html +48 -53
  98. package/docs/modules/CoreModule.html +18 -0
  99. package/docs/modules/I18nModule.html +18 -0
  100. package/docs/modules/LogModule.html +18 -0
  101. package/docs/modules/TranslateMockModule.html +18 -0
  102. package/docs/modules.html +18 -0
  103. package/docs/overview.html +28 -0
  104. package/docs/pipes/TranslateMockPipe.html +18 -0
  105. package/docs/properties.html +19 -1
  106. package/docs/routes.html +204 -0
  107. package/docs/template-playground/default-templates.json +192 -0
  108. package/docs/template-playground/hbs-render.service.ts +212 -0
  109. package/docs/template-playground/main.ts +9 -0
  110. package/docs/template-playground/template-editor.service.ts +173 -0
  111. package/docs/template-playground/template-playground.component.ts +614 -0
  112. package/docs/template-playground/template-playground.module.ts +29 -0
  113. package/docs/template-playground/zip-export.service.ts +86 -0
  114. package/docs/template-playground-app/app.js +1389 -0
  115. package/docs/template-playground-app/index.html +462 -0
  116. package/fesm2022/eui-core.mjs +150 -110
  117. package/fesm2022/eui-core.mjs.map +1 -1
  118. package/package.json +44 -45
  119. package/{index.d.ts → types/eui-core.d.ts} +13 -1
  120. package/types/eui-core.d.ts.map +1 -0
  121. package/index.d.ts.map +0 -1
@@ -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 * as extendProxy from 'extend';
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
- extend$1(true, deepMerged[key], euiAppConfig[key], envAppJsonConfig[key]);
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 = extend(true, {}, state, localState);
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: "20.1.7", ngImport: i0, type: LogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
673
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LogService }); }
672
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
673
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LogService }); }
674
674
  }
675
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LogService, decorators: [{
675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
774
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.7", ngImport: i0, type: LogModule }); }
775
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LogModule }); }
773
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
774
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LogModule }); }
775
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LogModule }); }
776
776
  }
777
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LogModule, decorators: [{
777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: StoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
930
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: StoreService, providedIn: 'root' }); }
929
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: StoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
930
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: StoreService, providedIn: 'root' }); }
931
931
  }
932
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: StoreService, decorators: [{
932
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
952
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: StoreServiceMock }); }
951
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
952
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: StoreServiceMock }); }
953
953
  }
954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: StoreServiceMock, decorators: [{
954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1048
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.7", ngImport: i0, type: CoreModule }); }
1049
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CoreModule }); }
1047
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1048
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CoreModule }); }
1049
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CoreModule }); }
1050
1050
  }
1051
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CoreModule, decorators: [{
1051
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: GlobalErrorHandler, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1228
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' }); }
1227
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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.2", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' }); }
1229
1229
  }
1230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: GlobalErrorHandler, decorators: [{
1230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1283
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: HttpErrorHandlerInterceptor }); }
1282
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1283
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: HttpErrorHandlerInterceptor }); }
1284
1284
  }
1285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
1285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1357
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiGrowlService, providedIn: 'root' }); }
1356
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1357
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiGrowlService, providedIn: 'root' }); }
1358
1358
  }
1359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiGrowlService, decorators: [{
1359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: ApiQueueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1720
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ApiQueueService, providedIn: 'root' }); }
1719
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: ApiQueueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1720
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: ApiQueueService, providedIn: 'root' }); }
1721
1721
  }
1722
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ApiQueueService, decorators: [{
1722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: I18nLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1963
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: I18nLoader }); }
1962
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: I18nLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1963
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: I18nLoader }); }
1964
1964
  }
1965
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: I18nLoader, decorators: [{
1965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2205
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: I18nService, providedIn: 'root' }); }
2204
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2205
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: I18nService, providedIn: 'root' }); }
2206
2206
  }
2207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: I18nService, decorators: [{
2207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiPermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2826
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiPermissionService, providedIn: 'root' }); }
2829
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiPermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2830
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiPermissionService, providedIn: 'root' }); }
2827
2831
  }
2828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiPermissionService, decorators: [{
2832
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiDynamicMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2887
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiDynamicMenuService, providedIn: 'root' }); }
2890
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiDynamicMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2891
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiDynamicMenuService, providedIn: 'root' }); }
2888
2892
  }
2889
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiDynamicMenuService, decorators: [{
2893
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiDynamicComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2955
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiDynamicComponentService }); }
2958
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiDynamicComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2959
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiDynamicComponentService }); }
2956
2960
  }
2957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiDynamicComponentService, decorators: [{
2961
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiAppShellService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3342
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiAppShellService, providedIn: 'root' }); }
3354
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiAppShellService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3355
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiAppShellService, providedIn: 'root' }); }
3343
3356
  }
3344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiAppShellService, decorators: [{
3357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4059
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiTimezoneService }); }
4071
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4072
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiTimezoneService }); }
4060
4073
  }
4061
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiTimezoneService, decorators: [{
4074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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
- const rtlLink = this.document.getElementById('rtl-theme');
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
- const themeLink = this.document.getElementById('eui-theme');
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: "20.1.7", ngImport: i0, type: EuiThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4261
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiThemeService, providedIn: 'root' }); }
4272
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4273
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiThemeService, providedIn: 'root' }); }
4262
4274
  }
4263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiThemeService, decorators: [{
4275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: LocalStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4405
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocalStorageService }); }
4416
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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.2", ngImport: i0, type: LocalStorageService }); }
4406
4418
  }
4407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocalStorageService, decorators: [{
4419
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: SessionStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4478
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: SessionStorageService }); }
4489
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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.2", ngImport: i0, type: SessionStorageService }); }
4479
4491
  }
4480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: SessionStorageService, decorators: [{
4492
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: LocalForageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4584
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocalForageService }); }
4595
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LocalForageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4596
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LocalForageService }); }
4585
4597
  }
4586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocalForageService, decorators: [{
4598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4764
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocaleService, providedIn: 'root' }); }
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.2", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4804
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LocaleService, providedIn: 'root' }); }
4765
4805
  }
4766
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocaleService, decorators: [{
4806
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: LocaleServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4798
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocaleServiceMock }); }
4837
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LocaleServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4838
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: LocaleServiceMock }); }
4799
4839
  }
4800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: LocaleServiceMock, decorators: [{
4840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuiLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5093
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiLoaderService, providedIn: 'root' }); }
5132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5133
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuiLoaderService, providedIn: 'root' }); }
5094
5134
  }
5095
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuiLoaderService, decorators: [{
5135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5158
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UserService, providedIn: 'root' }); }
5197
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5198
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UserService, providedIn: 'root' }); }
5159
5199
  }
5160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UserService, decorators: [{
5200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5181
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UserServiceMock }); }
5220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5221
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UserServiceMock }); }
5182
5222
  }
5183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UserServiceMock, decorators: [{
5223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: AddLangParamInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5213
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: AddLangParamInterceptor }); }
5252
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: AddLangParamInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5253
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: AddLangParamInterceptor }); }
5214
5254
  }
5215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
5255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5232
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CachePreventionInterceptor }); }
5271
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5272
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CachePreventionInterceptor }); }
5233
5273
  }
5234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
5274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5245
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CorsSecurityInterceptor }); }
5284
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5285
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CorsSecurityInterceptor }); }
5246
5286
  }
5247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
5287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5258
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CsrfPreventionInterceptor }); }
5297
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5298
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: CsrfPreventionInterceptor }); }
5259
5299
  }
5260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
5300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5328
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor }); }
5367
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5368
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor }); }
5329
5369
  }
5330
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
5370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", 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: "20.1.7", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5355
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UxRequestErrorModelInterceptor }); }
5394
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5395
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UxRequestErrorModelInterceptor }); }
5356
5396
  }
5357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
5397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-rc.2", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
5358
5398
  type: Injectable
5359
5399
  }] });
5360
5400