@eui/core 13.0.0-rc.5 → 13.0.0-rc.50

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 (75) hide show
  1. package/docs/dependencies.html +50 -50
  2. package/docs/injectables/I18nLoader.html +39 -0
  3. package/docs/injectables/LocaleService.html +20 -0
  4. package/docs/injectables/UxAppShellService.html +175 -0
  5. package/docs/interfaces/UIState.html +135 -0
  6. package/docs/js/search/search_index.js +2 -2
  7. package/docs/miscellaneous/variables.html +6 -1
  8. package/esm2020/lib/eui-core.module.mjs +6 -6
  9. package/esm2020/lib/helpers/dom-helpers.mjs +3 -1
  10. package/esm2020/lib/helpers/format-helpers.mjs +3 -1
  11. package/esm2020/lib/interceptors/add-lang-param.interceptor.mjs +4 -5
  12. package/esm2020/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
  13. package/esm2020/lib/interceptors/cors-security.interceptor.mjs +4 -4
  14. package/esm2020/lib/interceptors/csrf-prevention.interceptor.mjs +4 -4
  15. package/esm2020/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +4 -5
  16. package/esm2020/lib/interceptors/openid/openid-connect.interceptor.mjs +4 -4
  17. package/esm2020/lib/interceptors/openid/openid-connect.service.mjs +4 -4
  18. package/esm2020/lib/interceptors/ux-request-error-model.interceptor.mjs +4 -4
  19. package/esm2020/lib/services/app/eui-pre-init-app.mjs +3 -1
  20. package/esm2020/lib/services/app/factories/log.mjs +3 -1
  21. package/esm2020/lib/services/errors/global-error-handler.mjs +4 -5
  22. package/esm2020/lib/services/errors/http-error-handler.interceptor.mjs +5 -6
  23. package/esm2020/lib/services/i18n/i18n.loader.mjs +14 -6
  24. package/esm2020/lib/services/i18n/i18n.service.mjs +10 -13
  25. package/esm2020/lib/services/i18n/i18n.service.mock.mjs +4 -4
  26. package/esm2020/lib/services/locale/locale.service.mjs +22 -15
  27. package/esm2020/lib/services/log/log.module.mjs +5 -5
  28. package/esm2020/lib/services/log/log.service.mjs +5 -5
  29. package/esm2020/lib/services/permission/permission.service.mjs +4 -6
  30. package/esm2020/lib/services/queue/api-queue.service.mjs +4 -9
  31. package/esm2020/lib/services/queue/api-queue.service.mock.mjs +1 -5
  32. package/esm2020/lib/services/storage/async-storage.service.mjs +1 -1
  33. package/esm2020/lib/services/storage/async-storage.service.mock.mjs +1 -5
  34. package/esm2020/lib/services/storage/local-forage.service.mjs +6 -5
  35. package/esm2020/lib/services/storage/local-storage.service.mjs +4 -5
  36. package/esm2020/lib/services/storage/session-storage.service.mjs +4 -5
  37. package/esm2020/lib/services/storage/storage.service.mjs +1 -1
  38. package/esm2020/lib/services/store/effects/app.effects.mjs +10 -16
  39. package/esm2020/lib/services/store/reducers/meta.reducers.mjs +9 -1
  40. package/esm2020/lib/services/store/store.service.mjs +5 -7
  41. package/esm2020/lib/services/store/store.service.mock.mjs +4 -4
  42. package/esm2020/lib/services/user/user.service.mjs +4 -5
  43. package/esm2020/lib/services/user/user.service.mock.mjs +4 -4
  44. package/esm2020/lib/services/ux-app-shell.service.mjs +36 -16
  45. package/esm2020/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +5 -5
  46. package/esm2020/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +4 -6
  47. package/esm2020/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +4 -6
  48. package/esm2020/lib/services/ux-timezone.service.mjs +4 -4
  49. package/fesm2015/eui-core.mjs +178 -136
  50. package/fesm2015/eui-core.mjs.map +1 -1
  51. package/fesm2020/eui-core.mjs +224 -178
  52. package/fesm2020/eui-core.mjs.map +1 -1
  53. package/lib/helpers/dom-helpers.d.ts.map +1 -1
  54. package/lib/helpers/format-helpers.d.ts.map +1 -1
  55. package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts.map +1 -1
  56. package/lib/services/app/eui-pre-init-app.d.ts.map +1 -1
  57. package/lib/services/app/factories/log.d.ts.map +1 -1
  58. package/lib/services/i18n/i18n.loader.d.ts +5 -0
  59. package/lib/services/i18n/i18n.loader.d.ts.map +1 -1
  60. package/lib/services/i18n/i18n.service.d.ts.map +1 -1
  61. package/lib/services/locale/locale.service.d.ts +1 -0
  62. package/lib/services/locale/locale.service.d.ts.map +1 -1
  63. package/lib/services/queue/api-queue.service.d.ts.map +1 -1
  64. package/lib/services/queue/api-queue.service.mock.d.ts.map +1 -1
  65. package/lib/services/storage/async-storage.service.d.ts.map +1 -1
  66. package/lib/services/storage/async-storage.service.mock.d.ts.map +1 -1
  67. package/lib/services/storage/local-forage.service.d.ts.map +1 -1
  68. package/lib/services/store/effects/app.effects.d.ts.map +1 -1
  69. package/lib/services/store/reducers/meta.reducers.d.ts.map +1 -1
  70. package/lib/services/ux-app-shell.service.d.ts +7 -1
  71. package/lib/services/ux-app-shell.service.d.ts.map +1 -1
  72. package/package.json +11 -1
  73. package/esm2020/lib/services/ux-root-injector.guard.mjs +0 -11
  74. package/lib/services/ux-root-injector.guard.d.ts +0 -5
  75. package/lib/services/ux-root-injector.guard.d.ts.map +0 -1
@@ -9,15 +9,15 @@ import * as extendProxy from 'extend';
9
9
  import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';
10
10
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
11
11
  import { LOCATION_INITIALIZED, DOCUMENT, isPlatformBrowser, getLocaleId, registerLocaleData } from '@angular/common';
12
- import * as i1$1 from '@ngrx/store';
13
- import { createSelector } from '@ngrx/store';
14
12
  import { throwError, forkJoin, of, BehaviorSubject, defer, merge, fromEvent, Observable, Subject, from } from 'rxjs';
15
13
  import { debounceTime, distinctUntilChanged, map, catchError, switchMap, tap, filter, take, mapTo, mergeMap, concatMap, takeUntil } from 'rxjs/operators';
16
- import { __decorate, __metadata } from 'tslib';
17
- import * as i2 from '@ngx-translate/core';
18
- import { TranslateLoader } from '@ngx-translate/core';
14
+ import * as i1$1 from '@ngrx/store';
15
+ import { createSelector } from '@ngrx/store';
16
+ import { __decorate } from 'tslib';
19
17
  import * as i1$3 from '@ngrx/effects';
20
18
  import { ofType, Effect } from '@ngrx/effects';
19
+ import * as i2 from '@ngx-translate/core';
20
+ import { TranslateLoader } from '@ngx-translate/core';
21
21
  import * as i2$1 from '@angular/router';
22
22
  import { NavigationEnd } from '@angular/router';
23
23
  import isEqual from 'lodash-es/isEqual';
@@ -185,9 +185,9 @@ class LogService extends Logger {
185
185
  return logger;
186
186
  }
187
187
  }
188
- /** @nocollapse */ /** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
189
- /** @nocollapse */ /** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogService });
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogService, decorators: [{
188
+ /** @nocollapse */ /** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
189
+ /** @nocollapse */ /** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogService });
190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogService, decorators: [{
191
191
  type: Injectable
192
192
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
193
193
  type: Inject,
@@ -201,12 +201,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ng
201
201
  }] }]; } });
202
202
 
203
203
  const LOG_INSTANCES = {};
204
+ /* tslint:disable */
204
205
  /**
205
206
  * Helper function to check if the log config is defined.
206
207
  * Does not check only for empty object, because the config can have other (non-log) parameters
207
208
  * @params config log configuration
208
209
  * @returns true/false
209
210
  */
211
+ /* tslint:enable */
210
212
  function isLogConfigDefined(config) {
211
213
  return config && ('baseLoggerName' in config || 'logLevel' in config || 'logAppenders' in config);
212
214
  }
@@ -251,45 +253,6 @@ function euiLogServiceFactory(injector, rootBaseLoggerName, rootConfig, childBas
251
253
  return logService;
252
254
  }
253
255
 
254
- class LogServiceMock extends LoggerMock {
255
- getLogger() {
256
- return new LoggerMock();
257
- }
258
- }
259
-
260
- const LOG_MODULE_CONFIG_TOKEN = new InjectionToken('LOG_CONFIG');
261
- /**
262
- * Log Module
263
- */
264
- class LogModule {
265
- /** method called in your root module to provide the LogService */
266
- static forRoot(config = DEFAULT_LOG_CONFIG) {
267
- return {
268
- ngModule: LogModule,
269
- providers: [
270
- { provide: LOG_MODULE_CONFIG_TOKEN, useValue: config },
271
- { provide: LogService, useFactory: logServiceFactory, deps: [LOG_MODULE_CONFIG_TOKEN, Injector] },
272
- ],
273
- };
274
- }
275
- /** method called in your other (non root, lazy loaded) modules to import a different instance of LogService */
276
- static forChild(config = DEFAULT_LOG_CONFIG) {
277
- return {
278
- ngModule: LogModule,
279
- providers: [
280
- { provide: LOG_MODULE_CONFIG_TOKEN, useValue: config },
281
- { provide: LogService, useFactory: logServiceFactory, deps: [LOG_MODULE_CONFIG_TOKEN, Injector] },
282
- ],
283
- };
284
- }
285
- }
286
- /** @nocollapse */ /** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
287
- /** @nocollapse */ /** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogModule });
288
- /** @nocollapse */ /** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogModule });
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LogModule, decorators: [{
290
- type: NgModule
291
- }] });
292
-
293
256
  var CoreAppActionTypes;
294
257
  (function (CoreAppActionTypes) {
295
258
  CoreAppActionTypes["INIT_STORE"] = "[App] Init store";
@@ -364,6 +327,45 @@ class EmptyApiQueueAction {
364
327
  }
365
328
  }
366
329
 
330
+ class LogServiceMock extends LoggerMock {
331
+ getLogger() {
332
+ return new LoggerMock();
333
+ }
334
+ }
335
+
336
+ const LOG_MODULE_CONFIG_TOKEN = new InjectionToken('LOG_CONFIG');
337
+ /**
338
+ * Log Module
339
+ */
340
+ class LogModule {
341
+ /** method called in your root module to provide the LogService */
342
+ static forRoot(config = DEFAULT_LOG_CONFIG) {
343
+ return {
344
+ ngModule: LogModule,
345
+ providers: [
346
+ { provide: LOG_MODULE_CONFIG_TOKEN, useValue: config },
347
+ { provide: LogService, useFactory: logServiceFactory, deps: [LOG_MODULE_CONFIG_TOKEN, Injector] },
348
+ ],
349
+ };
350
+ }
351
+ /** method called in your other (non root, lazy loaded) modules to import a different instance of LogService */
352
+ static forChild(config = DEFAULT_LOG_CONFIG) {
353
+ return {
354
+ ngModule: LogModule,
355
+ providers: [
356
+ { provide: LOG_MODULE_CONFIG_TOKEN, useValue: config },
357
+ { provide: LogService, useFactory: logServiceFactory, deps: [LOG_MODULE_CONFIG_TOKEN, Injector] },
358
+ ],
359
+ };
360
+ }
361
+ }
362
+ /** @nocollapse */ /** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
363
+ /** @nocollapse */ /** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule });
364
+ /** @nocollapse */ /** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule });
365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule, decorators: [{
366
+ type: NgModule
367
+ }] });
368
+
367
369
  var BrowserStorageType;
368
370
  (function (BrowserStorageType) {
369
371
  BrowserStorageType[BrowserStorageType["local"] = 0] = "local";
@@ -423,7 +425,7 @@ class StoreService {
423
425
  */
424
426
  select(key) {
425
427
  if (!this.store) {
426
- return throwError(new Error('NGRX Store not configured'));
428
+ return throwError(() => new Error('NGRX Store not configured'));
427
429
  }
428
430
  return this.store.select(key);
429
431
  }
@@ -452,9 +454,9 @@ class StoreService {
452
454
  }
453
455
  }
454
456
  }
455
- /** @nocollapse */ /** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: StoreService, deps: [{ token: i1$1.Store, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
456
- /** @nocollapse */ /** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: StoreService, providedIn: 'root' });
457
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: StoreService, decorators: [{
457
+ /** @nocollapse */ /** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreService, deps: [{ token: i1$1.Store, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
458
+ /** @nocollapse */ /** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreService, providedIn: 'root' });
459
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreService, decorators: [{
458
460
  type: Injectable,
459
461
  args: [{
460
462
  providedIn: 'root',
@@ -637,6 +639,7 @@ class I18nLoader {
637
639
  this.logService = logService;
638
640
  this.euiAppConfig = euiAppConfig;
639
641
  this.resources = [];
642
+ this.failedResources = [];
640
643
  // create the resources from the config object
641
644
  const i18nConfig = this.euiAppConfig.global && this.euiAppConfig.global.i18n;
642
645
  const i18nLoaderConfig = i18nConfig && i18nConfig.i18nLoader;
@@ -649,6 +652,7 @@ class I18nLoader {
649
652
  */
650
653
  getTranslation(lang) {
651
654
  return this.loadResources(this.resources, lang).pipe(map((loadedResources) => {
655
+ this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
652
656
  return loadedResources.translations;
653
657
  }));
654
658
  }
@@ -709,6 +713,12 @@ class I18nLoader {
709
713
  return of({ hasError: false, translations: {} });
710
714
  }
711
715
  }
716
+ /**
717
+ * Returns resources that failed
718
+ */
719
+ getFailedResources() {
720
+ return this.failedResources;
721
+ }
712
722
  /**
713
723
  * Create resources from a config file
714
724
  * @param config loader configuration
@@ -762,6 +772,8 @@ class I18nLoader {
762
772
  // return the translations
763
773
  return translations;
764
774
  }), catchError((err) => {
775
+ // remove failed resource from loaded resource array
776
+ this.removeResources([resource]);
765
777
  // resource not loaded properly, send a warning message
766
778
  if (this.logService) {
767
779
  this.logService.warn(`I18n resource NOT loaded from path ${path}`, err);
@@ -778,9 +790,9 @@ class I18nLoader {
778
790
  return undefined;
779
791
  }
780
792
  }
781
- /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nLoader, deps: [{ token: i1$2.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
782
- /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nLoader });
783
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nLoader, decorators: [{
793
+ /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader, deps: [{ token: i1$2.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
794
+ /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader });
795
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader, decorators: [{
784
796
  type: Injectable
785
797
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
786
798
  type: Optional
@@ -870,9 +882,6 @@ class I18nService extends EuiLazyService {
870
882
  .pipe(take(1), tap((loadedResources) => {
871
883
  // add the new set of translations to the current language
872
884
  this.translateService.setTranslation(this.translateService.currentLang, loadedResources.translations, true);
873
- if (loadedResources.hasError) {
874
- i18nLoader.removeResources(loadedResources.errors.map(err => err.resource));
875
- }
876
885
  })));
877
886
  // if the current language is different than the DEFAULT language
878
887
  if (this.translateService.currentLang !== this.translateService.defaultLang) {
@@ -880,9 +889,6 @@ class I18nService extends EuiLazyService {
880
889
  langSubscription.push(i18nLoader.loadResources(resources, this.translateService.defaultLang)
881
890
  .pipe(take(1), tap((loadedResources) => {
882
891
  this.translateService.setTranslation(this.translateService.defaultLang, loadedResources.translations, true);
883
- if (loadedResources.hasError) {
884
- i18nLoader.removeResources(loadedResources.errors.map(err => err.resource));
885
- }
886
892
  })));
887
893
  }
888
894
  return forkJoin(langSubscription).pipe(map((loadedResourcesArr) => {
@@ -937,6 +943,12 @@ class I18nService extends EuiLazyService {
937
943
  this.setDefaultLanguage(this.config.defaultLanguage);
938
944
  }
939
945
  }), map(() => {
946
+ if (this.translateService.currentLoader instanceof I18nLoader) {
947
+ const failedResources = this.translateService.currentLoader.getFailedResources();
948
+ if (failedResources.length > 0) {
949
+ return { success: false, error: failedResources };
950
+ }
951
+ }
940
952
  return { success: true };
941
953
  }), catchError((error) => {
942
954
  return of({ success: false, error: error });
@@ -984,9 +996,9 @@ class I18nService extends EuiLazyService {
984
996
  this.document.documentElement.lang = lang;
985
997
  }
986
998
  }
987
- /** @nocollapse */ /** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.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 });
988
- /** @nocollapse */ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nService, providedIn: 'root' });
989
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nService, decorators: [{
999
+ /** @nocollapse */ /** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i2.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1000
+ /** @nocollapse */ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, providedIn: 'root' });
1001
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, decorators: [{
990
1002
  type: Injectable,
991
1003
  args: [{
992
1004
  providedIn: 'root',
@@ -1029,9 +1041,9 @@ class I18nServiceMock extends I18nService {
1029
1041
  return of({ success: true });
1030
1042
  }
1031
1043
  }
1032
- /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1033
- /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nServiceMock });
1034
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: I18nServiceMock, decorators: [{
1044
+ /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1045
+ /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock });
1046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock, decorators: [{
1035
1047
  type: Injectable
1036
1048
  }], ctorParameters: function () { return []; } });
1037
1049
 
@@ -1047,13 +1059,16 @@ const initialState = {
1047
1059
  isSidebarActive: false,
1048
1060
  isSidebarInnerActive: false,
1049
1061
  isSidebarStateCloseWithIcons: false,
1062
+ isSidebarExpandOnHover: true,
1050
1063
  hasSidebar: false,
1051
1064
  hasHeader: false,
1052
1065
  hasHeaderLogo: false,
1053
1066
  hasHeaderEnvironment: false,
1067
+ hasToolbar: false,
1068
+ hasToolbarMenu: false,
1054
1069
  environmentValue: '',
1055
1070
  isSidebarHidden: false,
1056
- hasToolbar: false,
1071
+ hasTopMessage: false,
1057
1072
  windowWidth: 0,
1058
1073
  windowHeight: 0,
1059
1074
  mainContentHeight: 0,
@@ -1079,7 +1094,7 @@ const initialState = {
1079
1094
  hasModalActive: false,
1080
1095
  isDimmerActive: false,
1081
1096
  };
1082
- // export class UxAppShellService extends UxRootInjectorGuard {
1097
+ // TODO: this service needs to be transferred in the respective component
1083
1098
  class UxAppShellService {
1084
1099
  constructor(config, http, platformId, router, storeService, i18nService) {
1085
1100
  this.config = config;
@@ -1096,8 +1111,6 @@ class UxAppShellService {
1096
1111
  this.activeModals = [];
1097
1112
  this.openModalId = new BehaviorSubject('');
1098
1113
  this.cssVars = [];
1099
- // super(UxAppShellService);
1100
- console.log('UxAppShellService initialized');
1101
1114
  let stateWithConfig = initialState;
1102
1115
  const languages = config?.i18n?.i18nService?.languages || initialState.languages;
1103
1116
  const defaultLanguage = config?.i18n?.i18nService?.defaultLanguage || initialState.activeLanguage;
@@ -1155,10 +1168,12 @@ class UxAppShellService {
1155
1168
  });
1156
1169
  }
1157
1170
  set isSidebarHover(isHover) {
1158
- this.setState({
1159
- ...this.state,
1160
- isSidebarHover: isHover,
1161
- });
1171
+ if (this.state.isSidebarExpandOnHover) {
1172
+ this.setState({
1173
+ ...this.state,
1174
+ isSidebarHover: isHover,
1175
+ });
1176
+ }
1162
1177
  }
1163
1178
  get isSidebarHover() {
1164
1179
  return this.state.isSidebarHover;
@@ -1314,6 +1329,13 @@ class UxAppShellService {
1314
1329
  });
1315
1330
  this.activateHeaderCssVars();
1316
1331
  }
1332
+ activateTopMessage(height) {
1333
+ this.setState({
1334
+ ...this.state,
1335
+ hasTopMessage: true,
1336
+ });
1337
+ this.activateTopMessageCssVars(height);
1338
+ }
1317
1339
  activateToolbar() {
1318
1340
  this.setState({
1319
1341
  ...this.state,
@@ -1321,11 +1343,20 @@ class UxAppShellService {
1321
1343
  });
1322
1344
  this.activateToolbarCssVars();
1323
1345
  }
1346
+ activateToolbarMenu() {
1347
+ this.setState({
1348
+ ...this.state,
1349
+ hasToolbarMenu: true,
1350
+ });
1351
+ }
1324
1352
  fetchCssVars() {
1325
1353
  const cssVarNames = [
1326
1354
  '--eui-app-header-height-default',
1327
1355
  '--eui-app-header-height-active',
1328
1356
  '--eui-app-header-height-shrink',
1357
+ '--eui-app-top-message-height-default',
1358
+ '--eui-app-top-message-height-active',
1359
+ '--eui-app-top-message-height-shrink',
1329
1360
  '--eui-app-toolbar-height-default',
1330
1361
  '--eui-app-toolbar-height-active',
1331
1362
  '--eui-app-sidebar-width-default',
@@ -1343,6 +1374,7 @@ class UxAppShellService {
1343
1374
  }
1344
1375
  initCssVars() {
1345
1376
  this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
1377
+ this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
1346
1378
  this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
1347
1379
  this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
1348
1380
  this.setCssVar('--eui-app-sidebar-width-close-default', '--eui-app-sidebar-width-close');
@@ -1352,6 +1384,9 @@ class UxAppShellService {
1352
1384
  activateHeaderCssVars() {
1353
1385
  this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
1354
1386
  }
1387
+ activateTopMessageCssVars(height) {
1388
+ this._setCssVarValue('--eui-app-top-message-height', `${height}px`);
1389
+ }
1355
1390
  activateToolbarCssVars() {
1356
1391
  this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height');
1357
1392
  }
@@ -1634,9 +1669,9 @@ class UxAppShellService {
1634
1669
  });
1635
1670
  }
1636
1671
  }
1637
- /** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.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 */ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
1639
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxAppShellService, decorators: [{
1672
+ /** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", 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 });
1673
+ /** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
1674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxAppShellService, decorators: [{
1640
1675
  type: Injectable,
1641
1676
  args: [{
1642
1677
  providedIn: 'root',
@@ -1686,21 +1721,18 @@ class CoreAppEffects {
1686
1721
  }));
1687
1722
  }
1688
1723
  }
1689
- /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreAppEffects, deps: [{ token: i1$3.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: UxAppShellService }], target: i0.ɵɵFactoryTarget.Injectable });
1690
- /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreAppEffects });
1724
+ /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects, deps: [{ token: i1$3.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: UxAppShellService }], target: i0.ɵɵFactoryTarget.Injectable });
1725
+ /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects });
1691
1726
  __decorate([
1692
- Effect(),
1693
- __metadata("design:type", Observable)
1727
+ Effect()
1694
1728
  ], CoreAppEffects.prototype, "getAppConnectionInformation", void 0);
1695
1729
  __decorate([
1696
- Effect(),
1697
- __metadata("design:type", Observable)
1730
+ Effect()
1698
1731
  ], CoreAppEffects.prototype, "activatedRoute", void 0);
1699
1732
  __decorate([
1700
- Effect({ dispatch: false }),
1701
- __metadata("design:type", Object)
1733
+ Effect({ dispatch: false })
1702
1734
  ], CoreAppEffects.prototype, "updateAppConnection", void 0);
1703
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreAppEffects, decorators: [{
1735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects, decorators: [{
1704
1736
  type: Injectable
1705
1737
  }], ctorParameters: function () { return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
1706
1738
  type: Inject,
@@ -1859,10 +1891,12 @@ const coreReducers = Object.assign({}, {
1859
1891
  });
1860
1892
 
1861
1893
  const extend = extendProxy.default || extendProxy;
1894
+ /* tslint:disable */
1862
1895
  /**
1863
1896
  * Utility meta-reducer to load the state from the local storage
1864
1897
  * @param reducer the action reducer
1865
1898
  */
1899
+ /* tslint:enable */
1866
1900
  function localStorageSync(reducer) {
1867
1901
  return cb(reducer, localStorage);
1868
1902
  }
@@ -1875,10 +1909,12 @@ function sessionStorageSync(reducer) {
1875
1909
  }
1876
1910
  // Keys that are allowed to be synced with NgRx state from BrowserStorage
1877
1911
  const disallowedKeys = ['loadedConfigModules', 'connect', 'currentModule', 'status', 'apiQueue'];
1912
+ /* tslint:disable */
1878
1913
  /**
1879
1914
  * filters the AppState by removing those keys from the state and return a new state Object
1880
1915
  * @param app the AppState
1881
1916
  */
1917
+ /* tslint:enable */
1882
1918
  const filterAppState = (app) => {
1883
1919
  // in case app is undefined or null it should return empty object
1884
1920
  if (!app) {
@@ -1893,11 +1929,13 @@ const filterAppState = (app) => {
1893
1929
  return obj;
1894
1930
  }, {});
1895
1931
  };
1932
+ /* tslint:disable */
1896
1933
  /**
1897
1934
  *
1898
1935
  * @param storageType
1899
1936
  */
1900
1937
  const loadState = (storage = localStorage) => {
1938
+ /* tslint:enable */
1901
1939
  try {
1902
1940
  // by default falls back to localStorage
1903
1941
  const serializedState = storage.getItem('state');
@@ -1914,7 +1952,9 @@ const loadState = (storage = localStorage) => {
1914
1952
  return undefined;
1915
1953
  }
1916
1954
  };
1955
+ /* tslint:disable */
1917
1956
  const cb = (reducer, storage) => {
1957
+ /* tslint:enable */
1918
1958
  return function (state, action) {
1919
1959
  if (action.type === CoreAppActionTypes.INIT_STORE) {
1920
1960
  // This action must be dispatched from an app initializer
@@ -1963,9 +2003,9 @@ class StoreServiceMock extends StoreService {
1963
2003
  return of({});
1964
2004
  }
1965
2005
  }
1966
- /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1967
- /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: StoreServiceMock });
1968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: StoreServiceMock, decorators: [{
2006
+ /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2007
+ /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock });
2008
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock, decorators: [{
1969
2009
  type: Injectable
1970
2010
  }], ctorParameters: function () { return []; } });
1971
2011
 
@@ -2010,12 +2050,12 @@ class CoreModule {
2010
2050
  };
2011
2051
  }
2012
2052
  }
2013
- /** @nocollapse */ /** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.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 });
2014
- /** @nocollapse */ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
2015
- /** @nocollapse */ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreModule, imports: [[
2053
+ /** @nocollapse */ /** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: CoreModule, optional: true, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
2054
+ /** @nocollapse */ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
2055
+ /** @nocollapse */ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, imports: [[
2016
2056
  HttpClientModule,
2017
2057
  ]] });
2018
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreModule, decorators: [{
2058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, decorators: [{
2019
2059
  type: NgModule,
2020
2060
  args: [{
2021
2061
  imports: [
@@ -2046,12 +2086,14 @@ function euiCoreRootGuardClass() {
2046
2086
  return new EuiCoreRootGuardClass();
2047
2087
  }
2048
2088
 
2089
+ /* tslint:disable */
2049
2090
  /**
2050
2091
  * Function to be used before the AppModule is bootstrapped. It is currently used to load dynamic configurations.
2051
2092
  * It needs to be added in your application main.ts file.
2052
2093
  * @param envConfig the current environment configuration
2053
2094
  * @returns the updated environment configuration, as a promise
2054
2095
  */
2096
+ /* tslint:enable */
2055
2097
  async function preInitApp(envConfig) {
2056
2098
  const envDynamicConfig = envConfig && envConfig.envDynamicConfig;
2057
2099
  if (envDynamicConfig) {
@@ -2137,9 +2179,9 @@ class GlobalErrorHandler extends ErrorHandler {
2137
2179
  super.handleError(error);
2138
2180
  }
2139
2181
  }
2140
- /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2141
- /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
2142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: GlobalErrorHandler, decorators: [{
2182
+ /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2183
+ /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
2184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, decorators: [{
2143
2185
  type: Injectable,
2144
2186
  args: [{
2145
2187
  providedIn: 'root',
@@ -2186,9 +2228,9 @@ class HttpErrorHandlerInterceptor {
2186
2228
  return routes.length > 0 ? routes[0] : null;
2187
2229
  }
2188
2230
  }
2189
- /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i0.Injector }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2190
- /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: HttpErrorHandlerInterceptor });
2191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
2231
+ /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i0.Injector }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2232
+ /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor });
2233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
2192
2234
  type: Injectable
2193
2235
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2194
2236
  type: Inject,
@@ -2281,7 +2323,6 @@ class ApiQueueService {
2281
2323
  .pipe(take(1), switchMap((queue) => {
2282
2324
  if (!queue) {
2283
2325
  this.logService.warn(`Queue item with id "${id}" does not exist`);
2284
- // tslint:disable-next-line:deprecation
2285
2326
  return of(null);
2286
2327
  }
2287
2328
  return this.buildHttpRequest(id, queue);
@@ -2300,7 +2341,6 @@ class ApiQueueService {
2300
2341
  if (!continueOnError) {
2301
2342
  throw error;
2302
2343
  }
2303
- // tslint:disable-next-line:deprecation
2304
2344
  return of(error);
2305
2345
  })))), switchMap((obsQueue) => forkJoin(Array.from(obsQueue))));
2306
2346
  }
@@ -2337,9 +2377,9 @@ class ApiQueueService {
2337
2377
  .pipe(tap(() => this.removeQueueItem(id)));
2338
2378
  }
2339
2379
  }
2340
- /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: ApiQueueService, deps: [{ token: StoreService }, { token: i1$2.HttpClient }, { token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2341
- /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
2342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: ApiQueueService, decorators: [{
2380
+ /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, deps: [{ token: StoreService }, { token: i1$2.HttpClient }, { token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2381
+ /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
2382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, decorators: [{
2343
2383
  type: Injectable,
2344
2384
  args: [{
2345
2385
  providedIn: 'root',
@@ -2351,22 +2391,18 @@ class ApiQueueServiceMock extends ApiQueueService {
2351
2391
  super(null, null, null);
2352
2392
  }
2353
2393
  getQueue() {
2354
- // tslint:disable-next-line:deprecation
2355
2394
  return of([]);
2356
2395
  }
2357
2396
  getQueueItem(id) {
2358
- // tslint:disable-next-line:deprecation
2359
2397
  return of(null);
2360
2398
  }
2361
2399
  removeAllQueueItem() { }
2362
2400
  processAllQueueItems() {
2363
- // tslint:disable-next-line:deprecation
2364
2401
  return of({});
2365
2402
  }
2366
2403
  addQueueItem() { }
2367
2404
  removeQueueItem() { }
2368
2405
  processQueueItem() {
2369
- // tslint:disable-next-line:deprecation
2370
2406
  return of({});
2371
2407
  }
2372
2408
  }
@@ -2430,10 +2466,12 @@ const getStyle = (nativeEl, cssProp) => {
2430
2466
  const isStaticPositioned = (nativeEl) => {
2431
2467
  return (getStyle(nativeEl, 'position') || 'static') === 'static';
2432
2468
  };
2469
+ /* tslint:disable */
2433
2470
  /**
2434
2471
  * returns the closest, non-statically positioned parentOffset of a given element
2435
2472
  * @param nativeEl
2436
2473
  */
2474
+ /* tslint:enable */
2437
2475
  const parentOffsetEl = (nativeEl) => {
2438
2476
  let offsetParent = nativeEl.offsetParent || document;
2439
2477
  while (offsetParent && offsetParent !== document &&
@@ -2522,6 +2560,7 @@ const validateEmail = (c) => {
2522
2560
  const uniqueId = () => {
2523
2561
  return Math.random().toString(36).substr(2, 9);
2524
2562
  };
2563
+ /* tslint:disable */
2525
2564
  /**
2526
2565
  * Its job is to parse number and format it based on given input.
2527
2566
  * @param value can be a number or a string number
@@ -2529,6 +2568,7 @@ const uniqueId = () => {
2529
2568
  * @param inDecimalSeparator separator for decimal part of the number default is ','
2530
2569
  * @param inThousandSeparator separator for the whole part of the number default is ''
2531
2570
  */
2571
+ /* tslint:enable */
2532
2572
  const formatNumber = (value, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = '') => {
2533
2573
  if (inDecimalSeparator || inThousandSeparator) {
2534
2574
  console.warn('The inDecimalSeparator and inThousandSeparator are deprecated. They will be a ' +
@@ -2696,9 +2736,9 @@ class EuiPermissionService extends EuiService {
2696
2736
  return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
2697
2737
  }
2698
2738
  }
2699
- /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2700
- /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
2701
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: EuiPermissionService, decorators: [{
2739
+ /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2740
+ /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
2741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, decorators: [{
2702
2742
  type: Injectable,
2703
2743
  args: [{
2704
2744
  providedIn: 'root',
@@ -2759,9 +2799,9 @@ class UxDynamicMenuService {
2759
2799
  });
2760
2800
  }
2761
2801
  }
2762
- /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2763
- /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
2764
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxDynamicMenuService, decorators: [{
2802
+ /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
2803
+ /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
2804
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, decorators: [{
2765
2805
  type: Injectable,
2766
2806
  args: [{
2767
2807
  providedIn: 'root',
@@ -2829,9 +2869,9 @@ class UxErrorFeedbackService {
2829
2869
  return new UxErrorManager(this, true);
2830
2870
  }
2831
2871
  }
2832
- /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxErrorFeedbackService, deps: [{ token: UxAppShellService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2833
- /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
2834
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
2872
+ /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, deps: [{ token: UxAppShellService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2873
+ /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
2874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
2835
2875
  type: Injectable,
2836
2876
  args: [{
2837
2877
  providedIn: 'root'
@@ -2926,9 +2966,9 @@ class UxDynamicComponentService {
2926
2966
  return new PortalInjector(this.injector, injectorTokens);
2927
2967
  }
2928
2968
  }
2929
- /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
2930
- /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
2931
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxDynamicComponentService, decorators: [{
2969
+ /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
2970
+ /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
2971
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, decorators: [{
2932
2972
  type: Injectable,
2933
2973
  args: [{ providedIn: 'root' }]
2934
2974
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
@@ -3643,9 +3683,9 @@ class UxTimezoneService {
3643
3683
  });
3644
3684
  }
3645
3685
  }
3646
- /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3647
- /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxTimezoneService });
3648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxTimezoneService, decorators: [{
3686
+ /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3687
+ /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService });
3688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService, decorators: [{
3649
3689
  type: Injectable
3650
3690
  }] });
3651
3691
 
@@ -3688,22 +3728,18 @@ class AsyncStorageService extends StorageService {
3688
3728
 
3689
3729
  class AsyncStorageServiceMock extends AsyncStorageService {
3690
3730
  ready() {
3691
- // tslint:disable-next-line:deprecation
3692
3731
  return of({});
3693
3732
  }
3694
3733
  name() {
3695
3734
  return null;
3696
3735
  }
3697
3736
  get() {
3698
- // tslint:disable-next-line:deprecation
3699
3737
  return of({});
3700
3738
  }
3701
3739
  set() {
3702
- // tslint:disable-next-line:deprecation
3703
3740
  return of({});
3704
3741
  }
3705
3742
  remove() {
3706
- // tslint:disable-next-line:deprecation
3707
3743
  return of({});
3708
3744
  }
3709
3745
  setAsync() {
@@ -3775,9 +3811,9 @@ class LocalStorageService extends StorageService {
3775
3811
  }
3776
3812
  }
3777
3813
  LocalStorageService.NAME = 'LocalStorageService';
3778
- /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocalStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3779
- /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocalStorageService });
3780
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocalStorageService, decorators: [{
3814
+ /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3815
+ /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService });
3816
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService, decorators: [{
3781
3817
  type: Injectable
3782
3818
  }], ctorParameters: function () { return [{ type: LogService, decorators: [{
3783
3819
  type: Optional
@@ -3846,15 +3882,17 @@ class SessionStorageService extends StorageService {
3846
3882
  }
3847
3883
  }
3848
3884
  SessionStorageService.NAME = 'SessionStorageService';
3849
- /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: SessionStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3850
- /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: SessionStorageService });
3851
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: SessionStorageService, decorators: [{
3885
+ /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3886
+ /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService });
3887
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService, decorators: [{
3852
3888
  type: Injectable
3853
3889
  }], ctorParameters: function () { return [{ type: LogService, decorators: [{
3854
3890
  type: Optional
3855
3891
  }] }]; } });
3856
3892
 
3893
+ /* tslint:disable */
3857
3894
  /** @internal */
3895
+ /* tslint:enable */
3858
3896
  const localForage = 'defineDriver' in lf ? lf : lf['default'];
3859
3897
  const LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken('LOCAL_FORAGE_SERVICE_CONFIG');
3860
3898
  /**
@@ -3935,9 +3973,9 @@ class LocalForageService extends AsyncStorageService {
3935
3973
  }
3936
3974
  }
3937
3975
  LocalForageService.NAME = 'LocalForageService';
3938
- /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3939
- /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocalForageService });
3940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocalForageService, decorators: [{
3976
+ /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3977
+ /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService });
3978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService, decorators: [{
3941
3979
  type: Injectable
3942
3980
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
3943
3981
  type: Inject,
@@ -4025,8 +4063,11 @@ class LocaleService extends EuiService {
4025
4063
  addLocale(id) {
4026
4064
  return this.loadLocale(id);
4027
4065
  }
4066
+ get previousLocale() {
4067
+ return this.prevStateInstance?.id || this.currentLocale;
4068
+ }
4028
4069
  get currentLocale() {
4029
- return this.stateInstance.id;
4070
+ return this.stateInstance?.id;
4030
4071
  }
4031
4072
  /**
4032
4073
  * load and register locale data dynamically
@@ -4058,9 +4099,11 @@ class LocaleService extends EuiService {
4058
4099
  bindTranslateServiceLangChangeToState() {
4059
4100
  if (this.i18n) {
4060
4101
  this.i18n.onStateChange.pipe(takeUntil(this.subNotifier),
4102
+ // filter out null values
4103
+ filter(state => state.activeLang !== null),
4061
4104
  // BEWARE: filter is based on convention that locale id sliced(2) will match activeLang e.g. en-US => en
4062
4105
  // Also, if activeLang is 'en' and locale is 'en-GB' it will not trigger locale change
4063
- filter(state => state?.activeLang?.toLowerCase() !== this.stateInstance?.id.slice(0, 2).toLowerCase()),
4106
+ filter(state => state.activeLang.toLowerCase() !== this.stateInstance?.id.slice(0, 2).toLowerCase()),
4064
4107
  // to check if registration of locale otherwise register it
4065
4108
  switchMap(value => of(value).pipe(
4066
4109
  // getLocaleId may throw Error(`Missing locale data for the locale "${locale}".`);
@@ -4074,7 +4117,7 @@ class LocaleService extends EuiService {
4074
4117
  if (this.log) {
4075
4118
  this.logger.debug(error);
4076
4119
  }
4077
- return this.loadLocale(value.activeLang).pipe(filter((s) => s.success), map(() => this.localeMapper(value.activeLang)), catchError(e => {
4120
+ return this.loadLocale(value?.activeLang).pipe(filter((s) => s.success), map(() => this.localeMapper(value?.activeLang)), catchError(e => {
4078
4121
  if (this.log) {
4079
4122
  this.logger.debug('Something went terribly really wrong during locale loading', e.err.message);
4080
4123
  }
@@ -4124,8 +4167,10 @@ class LocaleService extends EuiService {
4124
4167
  importLocale(id) {
4125
4168
  // in case of an error, catch it and return null
4126
4169
  return import(
4127
- /* webpackIgnore: true */
4128
- `@angular/common/locales/${id}`)
4170
+ /* webpackExclude: /\.d\.ts$/ */
4171
+ /* webpackMode: "lazy-once" */
4172
+ /* webpackChunkName: "i18n-base" */
4173
+ `@/../node_modules/@angular/common/locales/${id}`)
4129
4174
  .then(m => m.default)
4130
4175
  .catch(error => {
4131
4176
  if (this.log) {
@@ -4142,8 +4187,10 @@ class LocaleService extends EuiService {
4142
4187
  importExtraLocale(id) {
4143
4188
  // in case of an error, catch it and return null
4144
4189
  return import(
4145
- /* webpackIgnore: true */
4146
- `@angular/common/locales/extra/${id}`)
4190
+ /* webpackExclude: /\.d\.ts$/ */
4191
+ /* webpackMode: "lazy-once" */
4192
+ /* webpackChunkName: "i18n-extra" */
4193
+ `@/../node_modules/@angular/common/locales/extra/${id}`)
4147
4194
  .then(m => m.default)
4148
4195
  .catch(error => {
4149
4196
  if (this.log) {
@@ -4158,12 +4205,12 @@ class LocaleService extends EuiService {
4158
4205
  * @private
4159
4206
  */
4160
4207
  importDataAndExtraLocale(localeId) {
4161
- return from(this.importLocale(localeId)).pipe(mergeMap(() => from(this.importExtraLocale(localeId)).pipe(map((data, extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
4208
+ return from(this.importLocale(localeId)).pipe(mergeMap((data) => from(this.importExtraLocale(localeId)).pipe(map((extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
4162
4209
  }
4163
4210
  }
4164
- /** @nocollapse */ /** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.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 });
4165
- /** @nocollapse */ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocaleService, providedIn: 'root' });
4166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: LocaleService, decorators: [{
4211
+ /** @nocollapse */ /** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", 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 });
4212
+ /** @nocollapse */ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocaleService, providedIn: 'root' });
4213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocaleService, decorators: [{
4167
4214
  type: Injectable,
4168
4215
  args: [{
4169
4216
  providedIn: 'root'
@@ -4218,9 +4265,9 @@ class UserService extends EuiService {
4218
4265
  this.store.dispatch(new UpdateUserStateAction(userState));
4219
4266
  }
4220
4267
  }
4221
- /** @nocollapse */ /** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
4222
- /** @nocollapse */ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UserService, providedIn: 'root' });
4223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UserService, decorators: [{
4268
+ /** @nocollapse */ /** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
4269
+ /** @nocollapse */ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, providedIn: 'root' });
4270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, decorators: [{
4224
4271
  type: Injectable,
4225
4272
  args: [{
4226
4273
  providedIn: 'root',
@@ -4251,9 +4298,9 @@ class UserServiceMock extends UserService {
4251
4298
  return of('anonymous');
4252
4299
  }
4253
4300
  }
4254
- /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4255
- /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UserServiceMock });
4256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UserServiceMock, decorators: [{
4301
+ /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4302
+ /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock });
4303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock, decorators: [{
4257
4304
  type: Injectable
4258
4305
  }], ctorParameters: function () { return []; } });
4259
4306
 
@@ -4283,9 +4330,9 @@ class AddLangParamInterceptor {
4283
4330
  }));
4284
4331
  }
4285
4332
  }
4286
- /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: AddLangParamInterceptor, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
4287
- /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: AddLangParamInterceptor });
4288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
4333
+ /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
4334
+ /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor });
4335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
4289
4336
  type: Injectable
4290
4337
  }], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
4291
4338
 
@@ -4302,9 +4349,9 @@ class CachePreventionInterceptor {
4302
4349
  }));
4303
4350
  }
4304
4351
  }
4305
- /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4306
- /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CachePreventionInterceptor });
4307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
4352
+ /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4353
+ /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor });
4354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
4308
4355
  type: Injectable
4309
4356
  }] });
4310
4357
 
@@ -4315,9 +4362,9 @@ class CorsSecurityInterceptor {
4315
4362
  }));
4316
4363
  }
4317
4364
  }
4318
- /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4319
- /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CorsSecurityInterceptor });
4320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
4365
+ /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4366
+ /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor });
4367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
4321
4368
  type: Injectable
4322
4369
  }] });
4323
4370
 
@@ -4328,9 +4375,9 @@ class CsrfPreventionInterceptor {
4328
4375
  }));
4329
4376
  }
4330
4377
  }
4331
- /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4332
- /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CsrfPreventionInterceptor });
4333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
4378
+ /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4379
+ /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor });
4380
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
4334
4381
  type: Injectable
4335
4382
  }] });
4336
4383
 
@@ -4381,13 +4428,12 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4381
4428
  }
4382
4429
  }
4383
4430
  reauthenticate(request, response) {
4384
- // tslint:disable-next-line:deprecation
4385
4431
  document.location.reload();
4386
4432
  }
4387
4433
  }
4388
- /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4389
- /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
4390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
4434
+ /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4435
+ /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
4436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
4391
4437
  type: Injectable
4392
4438
  }] });
4393
4439
 
@@ -4408,9 +4454,9 @@ class UxRequestErrorModelInterceptor {
4408
4454
  }));
4409
4455
  }
4410
4456
  }
4411
- /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
4412
- /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxRequestErrorModelInterceptor });
4413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
4457
+ /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
4458
+ /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor });
4459
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
4414
4460
  type: Injectable
4415
4461
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4416
4462
  type: Inject,
@@ -4552,9 +4598,9 @@ class OpenIdConnectInterceptor {
4552
4598
  }
4553
4599
  }
4554
4600
  }
4555
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4556
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: OpenIdConnectInterceptor });
4557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
4601
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4602
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor });
4603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
4558
4604
  type: Injectable
4559
4605
  }], ctorParameters: function () { return []; } });
4560
4606
 
@@ -4584,9 +4630,9 @@ class OpenIdConnectService {
4584
4630
  return this.userDetails;
4585
4631
  }
4586
4632
  }
4587
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4588
- /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
4589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: OpenIdConnectService, decorators: [{
4633
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4634
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
4635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, decorators: [{
4590
4636
  type: Injectable,
4591
4637
  args: [{
4592
4638
  providedIn: 'root'