@eui/core 14.0.0-beta.2 → 14.0.0-rc.3

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 (179) hide show
  1. package/assets/i18n-eui/bg.json +114 -109
  2. package/assets/i18n-eui/cs.json +6 -1
  3. package/assets/i18n-eui/da.json +115 -110
  4. package/assets/i18n-eui/de.json +7 -2
  5. package/assets/i18n-eui/el.json +115 -110
  6. package/assets/i18n-eui/en.json +6 -1
  7. package/assets/i18n-eui/es.json +6 -1
  8. package/assets/i18n-eui/et.json +6 -1
  9. package/assets/i18n-eui/fi.json +7 -2
  10. package/assets/i18n-eui/fr.json +114 -109
  11. package/assets/i18n-eui/ga.json +7 -2
  12. package/assets/i18n-eui/hr.json +6 -1
  13. package/assets/i18n-eui/hu.json +7 -2
  14. package/assets/i18n-eui/it.json +114 -109
  15. package/assets/i18n-eui/lt.json +6 -1
  16. package/assets/i18n-eui/lv.json +6 -1
  17. package/assets/i18n-eui/mt.json +8 -3
  18. package/assets/i18n-eui/nl.json +7 -2
  19. package/assets/i18n-eui/pl.json +114 -109
  20. package/assets/i18n-eui/pt.json +9 -4
  21. package/assets/i18n-eui/ro.json +114 -109
  22. package/assets/i18n-eui/sk.json +6 -1
  23. package/assets/i18n-eui/sl.json +8 -3
  24. package/assets/i18n-eui/sv.json +8 -3
  25. package/docs/classes/ActivatedRouteAction.html +12 -1
  26. package/docs/classes/AddApiQueueItemAction.html +12 -1
  27. package/docs/classes/AddAppLoadedConfigModulesAction.html +12 -1
  28. package/docs/classes/ApiQueueServiceMock.html +12 -1
  29. package/docs/classes/AsyncStorageService.html +12 -1
  30. package/docs/classes/AsyncStorageServiceMock.html +12 -1
  31. package/docs/classes/EmptyApiQueueAction.html +12 -1
  32. package/docs/classes/EuiCoreRootGuardClass.html +12 -1
  33. package/docs/classes/EuiError.html +12 -1
  34. package/docs/classes/I18nResourceImpl.html +12 -1
  35. package/docs/classes/InitStoreAction.html +12 -1
  36. package/docs/classes/LogServiceMock.html +12 -1
  37. package/docs/classes/OpenIdConnectServiceMock.html +12 -1
  38. package/docs/classes/RemoveApiQueueItemAction.html +12 -1
  39. package/docs/classes/RouterMock.html +12 -1
  40. package/docs/classes/StorageService.html +12 -1
  41. package/docs/classes/StorageServiceMock.html +12 -1
  42. package/docs/classes/StoreMock.html +12 -1
  43. package/docs/classes/TranslateServiceMock.html +12 -1
  44. package/docs/classes/UpdateAppConnectionAction.html +12 -1
  45. package/docs/classes/UpdateAppStatusAction.html +12 -1
  46. package/docs/classes/UpdateAppVersionAction.html +12 -1
  47. package/docs/classes/UpdateCurrentModuleAction.html +12 -1
  48. package/docs/classes/UpdateI18nStateAction.html +12 -1
  49. package/docs/classes/UpdateLocaleStateAction.html +12 -1
  50. package/docs/classes/UpdateNotificationsListAction.html +12 -1
  51. package/docs/classes/UpdateUserDashboardAction.html +12 -1
  52. package/docs/classes/UpdateUserDetailsAction.html +12 -1
  53. package/docs/classes/UpdateUserPreferencesAction.html +12 -1
  54. package/docs/classes/UpdateUserRightsAction.html +12 -1
  55. package/docs/classes/UpdateUserStateAction.html +12 -1
  56. package/docs/classes/UxErrorManager.html +12 -1
  57. package/docs/classes/UxRootInjectorGuard.html +12 -1
  58. package/docs/dependencies.html +58 -49
  59. package/docs/directives/TranslateMockDirective.html +14 -2
  60. package/docs/index.html +12 -1
  61. package/docs/injectables/ApiQueueService.html +12 -1
  62. package/docs/injectables/CoreAppEffects.html +12 -1
  63. package/docs/injectables/EuiPermissionService.html +12 -1
  64. package/docs/injectables/GlobalErrorHandler.html +12 -1
  65. package/docs/injectables/I18nLoader.html +12 -1
  66. package/docs/injectables/I18nService.html +12 -1
  67. package/docs/injectables/I18nServiceMock.html +12 -1
  68. package/docs/injectables/LocalForageService.html +12 -1
  69. package/docs/injectables/LocalStorageService.html +12 -1
  70. package/docs/injectables/LocaleService.html +12 -1
  71. package/docs/injectables/LocaleServiceMock.html +43 -2
  72. package/docs/injectables/LogService.html +12 -1
  73. package/docs/injectables/OpenIdConnectService.html +12 -1
  74. package/docs/injectables/SessionStorageService.html +12 -1
  75. package/docs/injectables/StoreService.html +12 -1
  76. package/docs/injectables/StoreServiceMock.html +12 -1
  77. package/docs/injectables/UserService.html +12 -1
  78. package/docs/injectables/UserServiceMock.html +12 -1
  79. package/docs/injectables/UxAppShellService.html +12 -1
  80. package/docs/injectables/UxDynamicComponentService.html +13 -2
  81. package/docs/injectables/UxDynamicMenuService.html +13 -2
  82. package/docs/injectables/UxErrorFeedbackService.html +12 -1
  83. package/docs/injectables/UxTimezoneService.html +12 -1
  84. package/docs/interceptors/AddLangParamInterceptor.html +12 -1
  85. package/docs/interceptors/CachePreventionInterceptor.html +12 -1
  86. package/docs/interceptors/CorsSecurityInterceptor.html +12 -1
  87. package/docs/interceptors/CsrfPreventionInterceptor.html +12 -1
  88. package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +12 -1
  89. package/docs/interceptors/HttpErrorHandlerInterceptor.html +12 -1
  90. package/docs/interceptors/OpenIdConnectInterceptor.html +12 -1
  91. package/docs/interceptors/UxRequestErrorModelInterceptor.html +12 -1
  92. package/docs/interfaces/LoadedResources.html +12 -1
  93. package/docs/interfaces/LoadedResourcesError.html +12 -1
  94. package/docs/interfaces/ModuleLoadEvent.html +12 -1
  95. package/docs/interfaces/OpenIdConnectUserDetails.html +12 -1
  96. package/docs/interfaces/ResourceError.html +12 -1
  97. package/docs/interfaces/TimeZone.html +12 -1
  98. package/docs/interfaces/UIState.html +12 -1
  99. package/docs/js/menu-wc.js +11 -6
  100. package/docs/js/menu-wc_es5.js +4 -4
  101. package/docs/js/menu.js +62 -6
  102. package/docs/js/search/search_index.js +2 -2
  103. package/docs/license.html +12 -1
  104. package/docs/miscellaneous/enumerations.html +12 -1
  105. package/docs/miscellaneous/functions.html +12 -1
  106. package/docs/miscellaneous/typealiases.html +12 -1
  107. package/docs/miscellaneous/variables.html +12 -1
  108. package/docs/modules/CoreModule.html +12 -1
  109. package/docs/modules/I18nModule.html +12 -1
  110. package/docs/modules/LogModule.html +12 -1
  111. package/docs/modules/TranslateMockModule.html +12 -1
  112. package/docs/modules.html +16 -5
  113. package/docs/pipes/TranslateMockPipe.html +13 -2
  114. package/docs/properties.html +124 -0
  115. package/docs/styles/compodoc.css +79 -1
  116. package/docs/styles/dark.css +37 -33
  117. package/docs/styles/laravel.css +33 -35
  118. package/docs/styles/material.css +15 -17
  119. package/docs/styles/original.css +2 -4
  120. package/docs/styles/postmark.css +12 -14
  121. package/docs/styles/readthedocs.css +6 -8
  122. package/docs/styles/reset.css +115 -34
  123. package/docs/styles/stripe.css +33 -35
  124. package/docs/styles/vagrant.css +26 -28
  125. package/esm2020/lib/eui-core.module.mjs +6 -9
  126. package/esm2020/lib/interceptors/add-lang-param.interceptor.mjs +4 -4
  127. package/esm2020/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
  128. package/esm2020/lib/interceptors/cors-security.interceptor.mjs +4 -4
  129. package/esm2020/lib/interceptors/csrf-prevention.interceptor.mjs +4 -4
  130. package/esm2020/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +17 -11
  131. package/esm2020/lib/interceptors/openid/openid-connect.interceptor.mjs +4 -4
  132. package/esm2020/lib/interceptors/openid/openid-connect.service.mjs +36 -37
  133. package/esm2020/lib/interceptors/ux-request-error-model.interceptor.mjs +4 -4
  134. package/esm2020/lib/services/app/eui-init-app.mjs +16 -4
  135. package/esm2020/lib/services/config/tokens.mjs +3 -3
  136. package/esm2020/lib/services/errors/global-error-handler.mjs +4 -4
  137. package/esm2020/lib/services/errors/http-error-handler.interceptor.mjs +4 -4
  138. package/esm2020/lib/services/i18n/i18n.loader.mjs +4 -4
  139. package/esm2020/lib/services/i18n/i18n.service.mjs +17 -5
  140. package/esm2020/lib/services/i18n/i18n.service.mock.mjs +4 -4
  141. package/esm2020/lib/services/locale/index.mjs +2 -1
  142. package/esm2020/lib/services/locale/locale.service.mjs +4 -4
  143. package/esm2020/lib/services/locale/locale.service.mock.mjs +32 -0
  144. package/esm2020/lib/services/log/log.module.mjs +5 -5
  145. package/esm2020/lib/services/log/log.service.mjs +4 -4
  146. package/esm2020/lib/services/permission/permission.service.mjs +4 -4
  147. package/esm2020/lib/services/queue/api-queue.service.mjs +4 -4
  148. package/esm2020/lib/services/storage/local-forage.service.mjs +4 -4
  149. package/esm2020/lib/services/storage/local-storage.service.mjs +4 -4
  150. package/esm2020/lib/services/storage/session-storage.service.mjs +4 -4
  151. package/esm2020/lib/services/store/effects/app.effects.mjs +4 -4
  152. package/esm2020/lib/services/store/store.service.mjs +4 -4
  153. package/esm2020/lib/services/store/store.service.mock.mjs +4 -4
  154. package/esm2020/lib/services/user/user.service.mjs +4 -4
  155. package/esm2020/lib/services/user/user.service.mock.mjs +4 -4
  156. package/esm2020/lib/services/ux-app-shell.service.mjs +4 -4
  157. package/esm2020/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +7 -6
  158. package/esm2020/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +4 -4
  159. package/esm2020/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +4 -4
  160. package/esm2020/lib/services/ux-timezone.service.mjs +4 -4
  161. package/fesm2015/eui-core.mjs +206 -149
  162. package/fesm2015/eui-core.mjs.map +1 -1
  163. package/fesm2020/eui-core.mjs +204 -149
  164. package/fesm2020/eui-core.mjs.map +1 -1
  165. package/lib/eui-core.module.d.ts +1 -2
  166. package/lib/eui-core.module.d.ts.map +1 -1
  167. package/lib/helpers/form-helpers.d.ts +2 -2
  168. package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts.map +1 -1
  169. package/lib/interceptors/openid/openid-connect.service.d.ts.map +1 -1
  170. package/lib/services/app/eui-init-app.d.ts.map +1 -1
  171. package/lib/services/i18n/i18n.service.d.ts.map +1 -1
  172. package/lib/services/locale/index.d.ts +1 -0
  173. package/lib/services/locale/index.d.ts.map +1 -1
  174. package/lib/services/locale/locale.service.mock.d.ts +15 -0
  175. package/lib/services/locale/locale.service.mock.d.ts.map +1 -0
  176. package/lib/services/ux-dynamic-component/ux-dynamic-component.service.d.ts +1 -1
  177. package/lib/services/ux-dynamic-component/ux-dynamic-component.service.d.ts.map +1 -1
  178. package/package.json +4 -4
  179. package/eui-core.d.ts +0 -6
@@ -3,8 +3,6 @@ import { LogLevel, ConsoleAppender, Logger, LoggerMock, mergeAll, getI18nLoaderC
3
3
  export * from '@eui/base';
4
4
  import * as i0 from '@angular/core';
5
5
  import { InjectionToken, Injectable, Inject, Injector, NgModule, Optional, APP_INITIALIZER, EventEmitter, PLATFORM_ID, SkipSelf, ErrorHandler, LOCALE_ID } from '@angular/core';
6
- import * as i1$2 from '@angular/common/http';
7
- import { HttpClientModule, HttpErrorResponse, HttpResponse, HttpHeaders, HttpEventType } from '@angular/common/http';
8
6
  import * as extendProxy from 'extend';
9
7
  import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';
10
8
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
@@ -21,6 +19,8 @@ import * as i2$1 from '@angular/router';
21
19
  import { NavigationEnd } from '@angular/router';
22
20
  import isEqual from 'lodash-es/isEqual';
23
21
  import get from 'lodash-es/get';
22
+ import * as i1$2 from '@angular/common/http';
23
+ import { HttpErrorResponse, HttpResponse, HttpHeaders, HttpEventType } from '@angular/common/http';
24
24
  import { __awaiter } from 'tslib';
25
25
  import { By } from '@angular/platform-browser';
26
26
  import { FormGroup, FormArray } from '@angular/forms';
@@ -131,8 +131,8 @@ function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge, is
131
131
  const deepMerged = {};
132
132
  if (merge && merge.length > 0) {
133
133
  merge.forEach((key) => {
134
- if (envAppJsonConfig[key] && typeof envAppJsonConfig[key] === 'object'
135
- && euiAppConfig[key] && typeof euiAppConfig[key] === 'object') {
134
+ if (envAppJsonConfig != null && envAppJsonConfig[key] && typeof envAppJsonConfig[key] === 'object' &&
135
+ euiAppConfig != null && euiAppConfig[key] && typeof euiAppConfig[key] === 'object') {
136
136
  if (isDeepMerge) {
137
137
  deepMerged[key] = {};
138
138
  extend$1(true, deepMerged[key], euiAppConfig[key], envAppJsonConfig[key]);
@@ -177,9 +177,9 @@ class LogService extends Logger {
177
177
  return logger;
178
178
  }
179
179
  }
180
- /** @nocollapse */ /** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
181
- /** @nocollapse */ /** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogService });
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogService, decorators: [{
180
+ /** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
181
+ /** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LogService });
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LogService, decorators: [{
183
183
  type: Injectable
184
184
  }], ctorParameters: function () {
185
185
  return [{ type: undefined, decorators: [{
@@ -353,10 +353,10 @@ class LogModule {
353
353
  };
354
354
  }
355
355
  }
356
- /** @nocollapse */ /** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
357
- /** @nocollapse */ /** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogModule });
358
- /** @nocollapse */ /** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogModule });
359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LogModule, decorators: [{
356
+ /** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
357
+ /** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: LogModule });
358
+ /** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LogModule });
359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LogModule, decorators: [{
360
360
  type: NgModule
361
361
  }] });
362
362
 
@@ -448,9 +448,9 @@ class StoreService {
448
448
  }
449
449
  }
450
450
  }
451
- /** @nocollapse */ /** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: StoreService, deps: [{ token: i1$1.Store, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
452
- /** @nocollapse */ /** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: StoreService, providedIn: 'root' });
453
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: StoreService, decorators: [{
451
+ /** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StoreService, deps: [{ token: i1$1.Store, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
452
+ /** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StoreService, providedIn: 'root' });
453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StoreService, decorators: [{
454
454
  type: Injectable,
455
455
  args: [{
456
456
  providedIn: 'root',
@@ -470,8 +470,20 @@ function euiInitApp(injector) {
470
470
  locationInitialized.then(() => {
471
471
  const appConfig = injector.get(CONFIG_TOKEN);
472
472
  // necessary config parameters
473
- const appVersion = appConfig && appConfig.versions && appConfig.versions.app;
474
- const storageType = appConfig && appConfig.saveStateStorage;
473
+ let appVersion;
474
+ if (appConfig && appConfig.versions && appConfig.versions.app) {
475
+ appVersion = appConfig.versions.app;
476
+ }
477
+ else {
478
+ appVersion = '0.0.0';
479
+ }
480
+ let storageType;
481
+ if (appConfig && appConfig.saveStateStorage) {
482
+ storageType = appConfig.saveStateStorage;
483
+ }
484
+ else {
485
+ storageType = BrowserStorageType.local;
486
+ }
475
487
  const storeService = injector.get(StoreService);
476
488
  storeService.init(appVersion, storageType);
477
489
  storeService.handleAutoSave();
@@ -786,9 +798,9 @@ class I18nLoader {
786
798
  return undefined;
787
799
  }
788
800
  }
789
- /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nLoader, deps: [{ token: i1$2.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
790
- /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nLoader });
791
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nLoader, decorators: [{
801
+ /** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nLoader, deps: [{ token: i1$2.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
802
+ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nLoader });
803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nLoader, decorators: [{
792
804
  type: Injectable
793
805
  }], ctorParameters: function () {
794
806
  return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
@@ -817,7 +829,18 @@ class I18nService extends EuiLazyService {
817
829
  this.onModuleLoad = new BehaviorSubject({ ready: false, name: null });
818
830
  }
819
831
  getState(keyOrMapFn) {
820
- return this.store.select(getI18nState);
832
+ let selector = getI18nState;
833
+ if (keyOrMapFn) {
834
+ switch (typeof keyOrMapFn) {
835
+ case 'function':
836
+ selector = createSelector(getI18nState, keyOrMapFn);
837
+ break;
838
+ case 'string':
839
+ selector = createSelector(getI18nState, (state) => state[keyOrMapFn]);
840
+ break;
841
+ }
842
+ }
843
+ return this.store.select(selector);
821
844
  }
822
845
  updateState(langState) {
823
846
  this.updateHTMLDOMLang(langState.activeLang);
@@ -991,9 +1014,9 @@ class I18nService extends EuiLazyService {
991
1014
  this.document.documentElement.lang = lang;
992
1015
  }
993
1016
  }
994
- /** @nocollapse */ /** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i2.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
995
- /** @nocollapse */ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nService, providedIn: 'root' });
996
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nService, decorators: [{
1017
+ /** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i2.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1018
+ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nService, providedIn: 'root' });
1019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nService, decorators: [{
997
1020
  type: Injectable,
998
1021
  args: [{
999
1022
  providedIn: 'root',
@@ -1038,9 +1061,9 @@ class I18nServiceMock extends I18nService {
1038
1061
  return of({ success: true });
1039
1062
  }
1040
1063
  }
1041
- /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1042
- /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nServiceMock });
1043
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: I18nServiceMock, decorators: [{
1064
+ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1065
+ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nServiceMock });
1066
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: I18nServiceMock, decorators: [{
1044
1067
  type: Injectable
1045
1068
  }], ctorParameters: function () { return []; } });
1046
1069
 
@@ -1611,9 +1634,9 @@ class UxAppShellService {
1611
1634
  });
1612
1635
  }
1613
1636
  }
1614
- /** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i1$2.HttpClient }, { token: PLATFORM_ID }, { token: i2$1.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1615
- /** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
1616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxAppShellService, decorators: [{
1637
+ /** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i1$2.HttpClient }, { token: PLATFORM_ID }, { token: i2$1.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1638
+ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
1639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxAppShellService, decorators: [{
1617
1640
  type: Injectable,
1618
1641
  args: [{
1619
1642
  providedIn: 'root',
@@ -1673,9 +1696,9 @@ class CoreAppEffects {
1673
1696
  })), { dispatch: false });
1674
1697
  }
1675
1698
  }
1676
- /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreAppEffects, deps: [{ token: i1$3.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: UxAppShellService }], target: i0.ɵɵFactoryTarget.Injectable });
1677
- /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreAppEffects });
1678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreAppEffects, decorators: [{
1699
+ /** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreAppEffects, deps: [{ token: i1$3.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: UxAppShellService }], target: i0.ɵɵFactoryTarget.Injectable });
1700
+ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreAppEffects });
1701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreAppEffects, decorators: [{
1679
1702
  type: Injectable
1680
1703
  }], ctorParameters: function () {
1681
1704
  return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
@@ -1935,9 +1958,9 @@ class StoreServiceMock extends StoreService {
1935
1958
  return of({});
1936
1959
  }
1937
1960
  }
1938
- /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1939
- /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: StoreServiceMock });
1940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: StoreServiceMock, decorators: [{
1961
+ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1962
+ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StoreServiceMock });
1963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StoreServiceMock, decorators: [{
1941
1964
  type: Injectable
1942
1965
  }], ctorParameters: function () { return []; } });
1943
1966
 
@@ -1982,16 +2005,14 @@ class CoreModule {
1982
2005
  };
1983
2006
  }
1984
2007
  }
1985
- /** @nocollapse */ /** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: CoreModule, optional: true, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
1986
- /** @nocollapse */ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
1987
- /** @nocollapse */ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreModule, imports: [[
1988
- HttpClientModule,
1989
- ]] });
1990
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CoreModule, decorators: [{
2008
+ /** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: CoreModule, optional: true, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
2009
+ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: CoreModule });
2010
+ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule });
2011
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule, decorators: [{
1991
2012
  type: NgModule,
1992
2013
  args: [{
1993
2014
  imports: [
1994
- HttpClientModule,
2015
+ // HttpClientModule, no more..
1995
2016
  ],
1996
2017
  }]
1997
2018
  }], ctorParameters: function () {
@@ -2117,9 +2138,9 @@ class GlobalErrorHandler extends ErrorHandler {
2117
2138
  super.handleError(error);
2118
2139
  }
2119
2140
  }
2120
- /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2121
- /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
2122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: GlobalErrorHandler, decorators: [{
2141
+ /** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2142
+ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
2143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: GlobalErrorHandler, decorators: [{
2123
2144
  type: Injectable,
2124
2145
  args: [{
2125
2146
  providedIn: 'root',
@@ -2166,9 +2187,9 @@ class HttpErrorHandlerInterceptor {
2166
2187
  return routes.length > 0 ? routes[0] : null;
2167
2188
  }
2168
2189
  }
2169
- /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i0.Injector }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2170
- /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: HttpErrorHandlerInterceptor });
2171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
2190
+ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i0.Injector }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2191
+ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor });
2192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
2172
2193
  type: Injectable
2173
2194
  }], ctorParameters: function () {
2174
2195
  return [{ type: undefined, decorators: [{
@@ -2317,9 +2338,9 @@ class ApiQueueService {
2317
2338
  .pipe(tap(() => this.removeQueueItem(id)));
2318
2339
  }
2319
2340
  }
2320
- /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: ApiQueueService, deps: [{ token: StoreService }, { token: i1$2.HttpClient }, { token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2321
- /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
2322
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: ApiQueueService, decorators: [{
2341
+ /** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ApiQueueService, deps: [{ token: StoreService }, { token: i1$2.HttpClient }, { token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2342
+ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
2343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ApiQueueService, decorators: [{
2323
2344
  type: Injectable,
2324
2345
  args: [{
2325
2346
  providedIn: 'root',
@@ -2676,9 +2697,9 @@ class EuiPermissionService extends EuiService {
2676
2697
  return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
2677
2698
  }
2678
2699
  }
2679
- /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2680
- /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
2681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: EuiPermissionService, decorators: [{
2700
+ /** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2701
+ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
2702
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: EuiPermissionService, decorators: [{
2682
2703
  type: Injectable,
2683
2704
  args: [{
2684
2705
  providedIn: 'root',
@@ -2741,9 +2762,9 @@ class UxDynamicMenuService {
2741
2762
  });
2742
2763
  }
2743
2764
  }
2744
- /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2745
- /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
2746
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxDynamicMenuService, decorators: [{
2765
+ /** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2766
+ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
2767
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxDynamicMenuService, decorators: [{
2747
2768
  type: Injectable,
2748
2769
  args: [{
2749
2770
  providedIn: 'root',
@@ -2811,9 +2832,9 @@ class UxErrorFeedbackService {
2811
2832
  return new UxErrorManager(this, true);
2812
2833
  }
2813
2834
  }
2814
- /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxErrorFeedbackService, deps: [{ token: UxAppShellService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2815
- /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
2816
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
2835
+ /** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxErrorFeedbackService, deps: [{ token: UxAppShellService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2836
+ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
2837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
2817
2838
  type: Injectable,
2818
2839
  args: [{
2819
2840
  providedIn: 'root'
@@ -2869,6 +2890,7 @@ class UxDynamicComponentService {
2869
2890
  * @param config The data to be passed (config) for the DYNAMIC_COMPONENT_CONFIG token
2870
2891
  */
2871
2892
  add(component, el, config) {
2893
+ // TODO: take a look and replace deprecated componentFactoryResolver https://github.com/angular/components/issues/24334
2872
2894
  // Create a portalHost from a DOM element
2873
2895
  this.portalHost = new DomPortalOutlet(el ? el.nativeElement : document.body, this.componentFactoryResolver, this.appRef, this.injector);
2874
2896
  // Locate the component factory for the ComponentToIncludeDynamicallyComponent
@@ -2899,7 +2921,7 @@ class UxDynamicComponentService {
2899
2921
  this.portalComponentInstance = null;
2900
2922
  }
2901
2923
  /**
2902
- * creates an Custom injector to be used when providing custom injection tokens to components inside a portal
2924
+ * creates a custom injector to be used when providing custom injection tokens to components inside a portal
2903
2925
  * @param data to be used by DYNAMIC_COMPONENT_CONFIG token
2904
2926
  */
2905
2927
  createInjector(data) {
@@ -2908,9 +2930,9 @@ class UxDynamicComponentService {
2908
2930
  return new PortalInjector(this.injector, injectorTokens);
2909
2931
  }
2910
2932
  }
2911
- /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
2912
- /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
2913
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxDynamicComponentService, decorators: [{
2933
+ /** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
2934
+ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
2935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxDynamicComponentService, decorators: [{
2914
2936
  type: Injectable,
2915
2937
  args: [{ providedIn: 'root' }]
2916
2938
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
@@ -3625,9 +3647,9 @@ class UxTimezoneService {
3625
3647
  });
3626
3648
  }
3627
3649
  }
3628
- /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3629
- /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxTimezoneService });
3630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxTimezoneService, decorators: [{
3650
+ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3651
+ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxTimezoneService });
3652
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxTimezoneService, decorators: [{
3631
3653
  type: Injectable
3632
3654
  }] });
3633
3655
 
@@ -3753,9 +3775,9 @@ class LocalStorageService extends StorageService {
3753
3775
  }
3754
3776
  }
3755
3777
  LocalStorageService.NAME = 'LocalStorageService';
3756
- /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocalStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3757
- /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocalStorageService });
3758
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocalStorageService, decorators: [{
3778
+ /** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3779
+ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalStorageService });
3780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalStorageService, decorators: [{
3759
3781
  type: Injectable
3760
3782
  }], ctorParameters: function () {
3761
3783
  return [{ type: LogService, decorators: [{
@@ -3826,9 +3848,9 @@ class SessionStorageService extends StorageService {
3826
3848
  }
3827
3849
  }
3828
3850
  SessionStorageService.NAME = 'SessionStorageService';
3829
- /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: SessionStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3830
- /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: SessionStorageService });
3831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: SessionStorageService, decorators: [{
3851
+ /** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SessionStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3852
+ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SessionStorageService });
3853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SessionStorageService, decorators: [{
3832
3854
  type: Injectable
3833
3855
  }], ctorParameters: function () {
3834
3856
  return [{ type: LogService, decorators: [{
@@ -3919,9 +3941,9 @@ class LocalForageService extends AsyncStorageService {
3919
3941
  }
3920
3942
  }
3921
3943
  LocalForageService.NAME = 'LocalForageService';
3922
- /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3923
- /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocalForageService });
3924
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocalForageService, decorators: [{
3944
+ /** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3945
+ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalForageService });
3946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalForageService, decorators: [{
3925
3947
  type: Injectable
3926
3948
  }], ctorParameters: function () {
3927
3949
  return [{ type: undefined, decorators: [{
@@ -4159,9 +4181,9 @@ class LocaleService extends EuiService {
4159
4181
  return from(this.importLocale(localeId)).pipe(mergeMap((data) => from(this.importExtraLocale(localeId)).pipe(map((extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
4160
4182
  }
4161
4183
  }
4162
- /** @nocollapse */ /** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocaleService, deps: [{ token: StoreService }, { token: GLOBAL_CONFIG_TOKEN }, { token: LOCALE_ID }, { token: LOCALE_ID_MAPPER, optional: true }, { token: I18nService, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4163
- /** @nocollapse */ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocaleService, providedIn: 'root' });
4164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: LocaleService, decorators: [{
4184
+ /** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleService, deps: [{ token: StoreService }, { token: GLOBAL_CONFIG_TOKEN }, { token: LOCALE_ID }, { token: LOCALE_ID_MAPPER, optional: true }, { token: I18nService, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4185
+ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleService, providedIn: 'root' });
4186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleService, decorators: [{
4165
4187
  type: Injectable,
4166
4188
  args: [{
4167
4189
  providedIn: 'root'
@@ -4185,6 +4207,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
4185
4207
  }] }];
4186
4208
  } });
4187
4209
 
4210
+ class LocaleServiceMock extends LocaleService {
4211
+ constructor(locale_id) {
4212
+ super(null, { locale: { id: 'en', available: [] } }, locale_id, null, null, null);
4213
+ this.locale_id = locale_id;
4214
+ this.DEFAULT_LOCALE = 'en';
4215
+ }
4216
+ getState() {
4217
+ return of({ id: this.DEFAULT_LOCALE });
4218
+ }
4219
+ updateState(state) {
4220
+ this.DEFAULT_LOCALE = state.id || 'en';
4221
+ }
4222
+ init(state) {
4223
+ this.DEFAULT_LOCALE = state.id || 'en';
4224
+ return of({ success: true });
4225
+ }
4226
+ }
4227
+ /** @nocollapse */ LocaleServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleServiceMock, deps: [{ token: LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4228
+ /** @nocollapse */ LocaleServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleServiceMock });
4229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleServiceMock, decorators: [{
4230
+ type: Injectable
4231
+ }], ctorParameters: function () {
4232
+ return [{ type: undefined, decorators: [{
4233
+ type: Optional
4234
+ }, {
4235
+ type: Inject,
4236
+ args: [LOCALE_ID]
4237
+ }] }];
4238
+ } });
4239
+
4188
4240
  // export const USER_API_CONFIG_TOKEN = new InjectionToken<UserApiConfig>('USER_API_CONFIG');
4189
4241
  // export const DEFAULT_USER_PREFERENCES_TOKEN = new InjectionToken<BaseUserPreferences>('DEFAULT_USER_PREFERENCES');
4190
4242
  class UserService extends EuiService {
@@ -4218,9 +4270,9 @@ class UserService extends EuiService {
4218
4270
  this.store.dispatch(new UpdateUserStateAction(userState));
4219
4271
  }
4220
4272
  }
4221
- /** @nocollapse */ /** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
4222
- /** @nocollapse */ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UserService, providedIn: 'root' });
4223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UserService, decorators: [{
4273
+ /** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
4274
+ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserService, providedIn: 'root' });
4275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserService, decorators: [{
4224
4276
  type: Injectable,
4225
4277
  args: [{
4226
4278
  providedIn: 'root',
@@ -4251,9 +4303,9 @@ class UserServiceMock extends UserService {
4251
4303
  return of('anonymous');
4252
4304
  }
4253
4305
  }
4254
- /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4255
- /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UserServiceMock });
4256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UserServiceMock, decorators: [{
4306
+ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4307
+ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserServiceMock });
4308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserServiceMock, decorators: [{
4257
4309
  type: Injectable
4258
4310
  }], ctorParameters: function () { return []; } });
4259
4311
 
@@ -4283,9 +4335,9 @@ class AddLangParamInterceptor {
4283
4335
  }));
4284
4336
  }
4285
4337
  }
4286
- /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: AddLangParamInterceptor, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
4287
- /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: AddLangParamInterceptor });
4288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
4338
+ /** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AddLangParamInterceptor, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
4339
+ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AddLangParamInterceptor });
4340
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
4289
4341
  type: Injectable
4290
4342
  }], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
4291
4343
 
@@ -4302,9 +4354,9 @@ class CachePreventionInterceptor {
4302
4354
  }));
4303
4355
  }
4304
4356
  }
4305
- /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4306
- /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CachePreventionInterceptor });
4307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
4357
+ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4358
+ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CachePreventionInterceptor });
4359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
4308
4360
  type: Injectable
4309
4361
  }] });
4310
4362
 
@@ -4315,9 +4367,9 @@ class CorsSecurityInterceptor {
4315
4367
  }));
4316
4368
  }
4317
4369
  }
4318
- /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4319
- /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CorsSecurityInterceptor });
4320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
4370
+ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4371
+ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CorsSecurityInterceptor });
4372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
4321
4373
  type: Injectable
4322
4374
  }] });
4323
4375
 
@@ -4328,9 +4380,9 @@ class CsrfPreventionInterceptor {
4328
4380
  }));
4329
4381
  }
4330
4382
  }
4331
- /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4332
- /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CsrfPreventionInterceptor });
4333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
4383
+ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4384
+ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CsrfPreventionInterceptor });
4385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
4334
4386
  type: Injectable
4335
4387
  }] });
4336
4388
 
@@ -4367,13 +4419,19 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4367
4419
  }
4368
4420
  else {
4369
4421
  const html = body;
4370
- return ((html.indexOf('<meta name="Keywords" content="EU Login, ECAS, Authentication, Security" />') >= 0 &&
4371
- html.indexOf('<meta name="Description" content="EU Login" />') >= 0) ||
4372
- html.indexOf('<meta name="Description" content="European Commission Authentication Service" />') >= 0 ||
4373
- html.indexOf('<title>Mock Login Form</title>') >= 0 ||
4374
- html.indexOf('<title>Redirecting To ECAS</title>') >= 0 ||
4375
- html === '{ success : false, status : "ECAS_AUTHENTICATION_REQUIRED", code : 303, message : "session expired" }' ||
4376
- html === '{ "success" : false, "status" : "ECAS_AUTHENTICATION_REQUIRED", "code" : 303, "message": "session expired" }');
4422
+ try {
4423
+ return ((html.indexOf('<meta name="Keywords" content="EU Login, ECAS, Authentication, Security" />') >= 0 &&
4424
+ html.indexOf('<meta name="Description" content="EU Login" />') >= 0) ||
4425
+ html.indexOf('<meta name="Description" content="European Commission Authentication Service" />') >= 0 ||
4426
+ html.indexOf('<title>Mock Login Form</title>') >= 0 ||
4427
+ html.indexOf('<title>Redirecting To ECAS</title>') >= 0 ||
4428
+ html === '{ success : false, status : "ECAS_AUTHENTICATION_REQUIRED", code : 303, message : "session expired" }' ||
4429
+ // tslint:disable-next-line:max-line-length
4430
+ JSON.stringify(JSON.parse(html)) === JSON.stringify({ success: false, status: 'ECAS_AUTHENTICATION_REQUIRED', code: 303, message: 'session expired' }));
4431
+ }
4432
+ catch (e) {
4433
+ return false;
4434
+ }
4377
4435
  }
4378
4436
  }
4379
4437
  else {
@@ -4384,9 +4442,9 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4384
4442
  document.location.reload();
4385
4443
  }
4386
4444
  }
4387
- /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4388
- /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
4389
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
4445
+ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4446
+ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
4447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
4390
4448
  type: Injectable
4391
4449
  }] });
4392
4450
 
@@ -4407,9 +4465,9 @@ class UxRequestErrorModelInterceptor {
4407
4465
  }));
4408
4466
  }
4409
4467
  }
4410
- /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
4411
- /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxRequestErrorModelInterceptor });
4412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
4468
+ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
4469
+ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor });
4470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
4413
4471
  type: Injectable
4414
4472
  }], ctorParameters: function () {
4415
4473
  return [{ type: undefined, decorators: [{
@@ -4553,55 +4611,54 @@ class OpenIdConnectInterceptor {
4553
4611
  }
4554
4612
  }
4555
4613
  }
4556
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4557
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: OpenIdConnectInterceptor });
4558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
4614
+ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4615
+ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: OpenIdConnectInterceptor });
4616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
4559
4617
  type: Injectable
4560
4618
  }], ctorParameters: function () { return []; } });
4561
4619
 
4562
4620
  class OpenIdConnectService {
4563
4621
  constructor() {
4564
- this.userDetails = new Subject();
4565
- if ((typeof ApiGateway) !== 'undefined') {
4566
- const that = this;
4567
- ApiGateway.getUser((user) => {
4568
- that.userDetails.next({
4569
- domain: null,
4570
- domainUsername: user.username,
4571
- firstName: user.given_name,
4572
- lastName: user.family_name,
4573
- email: user.email,
4574
- departmentNumber: user['https://ecas.ec.europa.eu/claims/department_number'],
4622
+ this.userDetails = new Observable(observer => {
4623
+ if ((typeof ApiGateway) !== 'undefined') {
4624
+ ApiGateway.getUser((user) => {
4625
+ observer.next({
4626
+ domain: null,
4627
+ domainUsername: user.username,
4628
+ firstName: user.given_name,
4629
+ lastName: user.family_name,
4630
+ email: user.email,
4631
+ departmentNumber: user['https://ecas.ec.europa.eu/claims/department_number'],
4632
+ });
4633
+ observer.complete();
4575
4634
  });
4576
- that.userDetails.complete();
4577
- });
4578
- }
4579
- else if ((typeof OpenIdConnect) !== 'undefined') {
4580
- const that = this;
4581
- OpenIdConnect.getIdToken(() => {
4582
- const detailsString = sessionStorage.getItem(OpenIdConnect.SESSION_STORAGE_KEY_USER_DETAILS);
4583
- if (detailsString) {
4584
- that.userDetails.next(JSON.parse(detailsString));
4585
- that.userDetails.complete();
4586
- }
4587
- else {
4588
- that.userDetails.next(null);
4589
- that.userDetails.complete();
4590
- }
4591
- });
4592
- }
4593
- else {
4594
- this.userDetails.next(null);
4595
- this.userDetails.complete();
4596
- }
4635
+ }
4636
+ else if ((typeof OpenIdConnect) !== 'undefined') {
4637
+ OpenIdConnect.getIdToken(() => {
4638
+ const detailsString = sessionStorage.getItem(OpenIdConnect.SESSION_STORAGE_KEY_USER_DETAILS);
4639
+ if (detailsString) {
4640
+ observer.next(JSON.parse(detailsString));
4641
+ observer.complete();
4642
+ }
4643
+ else {
4644
+ observer.next(null);
4645
+ observer.complete();
4646
+ }
4647
+ });
4648
+ }
4649
+ else {
4650
+ observer.next(null);
4651
+ observer.complete();
4652
+ }
4653
+ });
4597
4654
  }
4598
4655
  getUserDetails() {
4599
4656
  return this.userDetails;
4600
4657
  }
4601
4658
  }
4602
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4603
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
4604
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: OpenIdConnectService, decorators: [{
4659
+ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4660
+ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
4661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: OpenIdConnectService, decorators: [{
4605
4662
  type: Injectable,
4606
4663
  args: [{
4607
4664
  providedIn: 'root'
@@ -4620,5 +4677,5 @@ class OpenIdConnectServiceMock extends OpenIdConnectService {
4620
4677
  * Generated bundle index. Do not edit.
4621
4678
  */
4622
4679
 
4623
- export { ActivatedRouteAction, AddApiQueueItemAction, AddAppLoadedConfigModulesAction, AddLangParamInterceptor, AlertHttpErrorCallbackFn, ApiQueueService, ApiQueueServiceMock, AsyncStorageService, AsyncStorageServiceMock, BASE_LOGGER_NAME_TOKEN, BASE_NAME_TOKEN, BrowserStorageType, CONFIG_TOKEN, CORE_ROOT_GUARD, CachePreventionInterceptor, ConsoleHttpErrorCallbackFn, CoreAppActionTypes, CoreAppEffects, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreModuleEffects, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiCoreRootGuardClass, EuiError, EuiPermissionService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, I18nServiceMock, InitStoreAction, LANG_PARAM_KEY, LOCALE_ID_MAPPER, LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, LOG_APPENDERS_TOKEN, LOG_LEVEL_TOKEN, LocalForageService, LocalStorageService, LocaleService, LogHttpErrorCallbackFn, LogModule, LogService, LogServiceMock, MODULE_CONFIG_TOKEN, MODULE_NAME_TOKEN, OpenIdConnectInterceptor, OpenIdConnectService, OpenIdConnectServiceMock, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_COUNTRIES, UX_ERROR_MAPPING_HANDLER_TOKEN, UX_TIMEZONES, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxAppShellService, UxDynamicComponentService, UxDynamicMenuService, UxErrorFeedbackService, UxErrorManager, UxRequestErrorModelInterceptor, UxTimezoneService, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, formatNumber, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, position, preInitApp, prepareEuiAppConfigToken, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail, withUxErrorManager };
4680
+ export { ActivatedRouteAction, AddApiQueueItemAction, AddAppLoadedConfigModulesAction, AddLangParamInterceptor, AlertHttpErrorCallbackFn, ApiQueueService, ApiQueueServiceMock, AsyncStorageService, AsyncStorageServiceMock, BASE_LOGGER_NAME_TOKEN, BASE_NAME_TOKEN, BrowserStorageType, CONFIG_TOKEN, CORE_ROOT_GUARD, CachePreventionInterceptor, ConsoleHttpErrorCallbackFn, CoreAppActionTypes, CoreAppEffects, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreModuleEffects, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiCoreRootGuardClass, EuiError, EuiPermissionService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, I18nServiceMock, InitStoreAction, LANG_PARAM_KEY, LOCALE_ID_MAPPER, LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, LOG_APPENDERS_TOKEN, LOG_LEVEL_TOKEN, LocalForageService, LocalStorageService, LocaleService, LocaleServiceMock, LogHttpErrorCallbackFn, LogModule, LogService, LogServiceMock, MODULE_CONFIG_TOKEN, MODULE_NAME_TOKEN, OpenIdConnectInterceptor, OpenIdConnectService, OpenIdConnectServiceMock, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_COUNTRIES, UX_ERROR_MAPPING_HANDLER_TOKEN, UX_TIMEZONES, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxAppShellService, UxDynamicComponentService, UxDynamicMenuService, UxErrorFeedbackService, UxErrorManager, UxRequestErrorModelInterceptor, UxTimezoneService, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, formatNumber, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, position, preInitApp, prepareEuiAppConfigToken, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail, withUxErrorManager };
4624
4681
  //# sourceMappingURL=eui-core.mjs.map