@eui/core 13.0.0-rc.4 → 13.0.0-rc.43

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 +12 -6
  24. package/esm2020/lib/services/i18n/i18n.service.mjs +10 -7
  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 +176 -130
  50. package/fesm2015/eui-core.mjs.map +1 -1
  51. package/fesm2020/eui-core.mjs +222 -172
  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
@@ -778,9 +788,9 @@ class I18nLoader {
778
788
  return undefined;
779
789
  }
780
790
  }
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: [{
791
+ /** @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 });
792
+ /** @nocollapse */ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader });
793
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader, decorators: [{
784
794
  type: Injectable
785
795
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
786
796
  type: Optional
@@ -937,6 +947,12 @@ class I18nService extends EuiLazyService {
937
947
  this.setDefaultLanguage(this.config.defaultLanguage);
938
948
  }
939
949
  }), map(() => {
950
+ if (this.translateService.currentLoader instanceof I18nLoader) {
951
+ const failedResources = this.translateService.currentLoader.getFailedResources();
952
+ if (failedResources.length > 0) {
953
+ return { success: false, error: failedResources };
954
+ }
955
+ }
940
956
  return { success: true };
941
957
  }), catchError((error) => {
942
958
  return of({ success: false, error: error });
@@ -984,9 +1000,9 @@ class I18nService extends EuiLazyService {
984
1000
  this.document.documentElement.lang = lang;
985
1001
  }
986
1002
  }
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: [{
1003
+ /** @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 });
1004
+ /** @nocollapse */ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, providedIn: 'root' });
1005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, decorators: [{
990
1006
  type: Injectable,
991
1007
  args: [{
992
1008
  providedIn: 'root',
@@ -1029,9 +1045,9 @@ class I18nServiceMock extends I18nService {
1029
1045
  return of({ success: true });
1030
1046
  }
1031
1047
  }
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: [{
1048
+ /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1049
+ /** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock });
1050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock, decorators: [{
1035
1051
  type: Injectable
1036
1052
  }], ctorParameters: function () { return []; } });
1037
1053
 
@@ -1047,13 +1063,16 @@ const initialState = {
1047
1063
  isSidebarActive: false,
1048
1064
  isSidebarInnerActive: false,
1049
1065
  isSidebarStateCloseWithIcons: false,
1066
+ isSidebarExpandOnHover: true,
1050
1067
  hasSidebar: false,
1051
1068
  hasHeader: false,
1052
1069
  hasHeaderLogo: false,
1053
1070
  hasHeaderEnvironment: false,
1071
+ hasToolbar: false,
1072
+ hasToolbarMenu: false,
1054
1073
  environmentValue: '',
1055
1074
  isSidebarHidden: false,
1056
- hasToolbar: false,
1075
+ hasTopMessage: false,
1057
1076
  windowWidth: 0,
1058
1077
  windowHeight: 0,
1059
1078
  mainContentHeight: 0,
@@ -1079,7 +1098,7 @@ const initialState = {
1079
1098
  hasModalActive: false,
1080
1099
  isDimmerActive: false,
1081
1100
  };
1082
- // export class UxAppShellService extends UxRootInjectorGuard {
1101
+ // TODO: this service needs to be transferred in the respective component
1083
1102
  class UxAppShellService {
1084
1103
  constructor(config, http, platformId, router, storeService, i18nService) {
1085
1104
  this.config = config;
@@ -1096,8 +1115,6 @@ class UxAppShellService {
1096
1115
  this.activeModals = [];
1097
1116
  this.openModalId = new BehaviorSubject('');
1098
1117
  this.cssVars = [];
1099
- // super(UxAppShellService);
1100
- console.log('UxAppShellService initialized');
1101
1118
  let stateWithConfig = initialState;
1102
1119
  const languages = config?.i18n?.i18nService?.languages || initialState.languages;
1103
1120
  const defaultLanguage = config?.i18n?.i18nService?.defaultLanguage || initialState.activeLanguage;
@@ -1155,10 +1172,12 @@ class UxAppShellService {
1155
1172
  });
1156
1173
  }
1157
1174
  set isSidebarHover(isHover) {
1158
- this.setState({
1159
- ...this.state,
1160
- isSidebarHover: isHover,
1161
- });
1175
+ if (this.state.isSidebarExpandOnHover) {
1176
+ this.setState({
1177
+ ...this.state,
1178
+ isSidebarHover: isHover,
1179
+ });
1180
+ }
1162
1181
  }
1163
1182
  get isSidebarHover() {
1164
1183
  return this.state.isSidebarHover;
@@ -1314,6 +1333,13 @@ class UxAppShellService {
1314
1333
  });
1315
1334
  this.activateHeaderCssVars();
1316
1335
  }
1336
+ activateTopMessage(height) {
1337
+ this.setState({
1338
+ ...this.state,
1339
+ hasTopMessage: true,
1340
+ });
1341
+ this.activateTopMessageCssVars(height);
1342
+ }
1317
1343
  activateToolbar() {
1318
1344
  this.setState({
1319
1345
  ...this.state,
@@ -1321,11 +1347,20 @@ class UxAppShellService {
1321
1347
  });
1322
1348
  this.activateToolbarCssVars();
1323
1349
  }
1350
+ activateToolbarMenu() {
1351
+ this.setState({
1352
+ ...this.state,
1353
+ hasToolbarMenu: true,
1354
+ });
1355
+ }
1324
1356
  fetchCssVars() {
1325
1357
  const cssVarNames = [
1326
1358
  '--eui-app-header-height-default',
1327
1359
  '--eui-app-header-height-active',
1328
1360
  '--eui-app-header-height-shrink',
1361
+ '--eui-app-top-message-height-default',
1362
+ '--eui-app-top-message-height-active',
1363
+ '--eui-app-top-message-height-shrink',
1329
1364
  '--eui-app-toolbar-height-default',
1330
1365
  '--eui-app-toolbar-height-active',
1331
1366
  '--eui-app-sidebar-width-default',
@@ -1343,6 +1378,7 @@ class UxAppShellService {
1343
1378
  }
1344
1379
  initCssVars() {
1345
1380
  this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
1381
+ this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
1346
1382
  this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
1347
1383
  this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
1348
1384
  this.setCssVar('--eui-app-sidebar-width-close-default', '--eui-app-sidebar-width-close');
@@ -1352,6 +1388,9 @@ class UxAppShellService {
1352
1388
  activateHeaderCssVars() {
1353
1389
  this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
1354
1390
  }
1391
+ activateTopMessageCssVars(height) {
1392
+ this._setCssVarValue('--eui-app-top-message-height', `${height}px`);
1393
+ }
1355
1394
  activateToolbarCssVars() {
1356
1395
  this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height');
1357
1396
  }
@@ -1634,9 +1673,9 @@ class UxAppShellService {
1634
1673
  });
1635
1674
  }
1636
1675
  }
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: [{
1676
+ /** @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 });
1677
+ /** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
1678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxAppShellService, decorators: [{
1640
1679
  type: Injectable,
1641
1680
  args: [{
1642
1681
  providedIn: 'root',
@@ -1686,21 +1725,18 @@ class CoreAppEffects {
1686
1725
  }));
1687
1726
  }
1688
1727
  }
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 });
1728
+ /** @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 });
1729
+ /** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects });
1691
1730
  __decorate([
1692
- Effect(),
1693
- __metadata("design:type", Observable)
1731
+ Effect()
1694
1732
  ], CoreAppEffects.prototype, "getAppConnectionInformation", void 0);
1695
1733
  __decorate([
1696
- Effect(),
1697
- __metadata("design:type", Observable)
1734
+ Effect()
1698
1735
  ], CoreAppEffects.prototype, "activatedRoute", void 0);
1699
1736
  __decorate([
1700
- Effect({ dispatch: false }),
1701
- __metadata("design:type", Object)
1737
+ Effect({ dispatch: false })
1702
1738
  ], CoreAppEffects.prototype, "updateAppConnection", void 0);
1703
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreAppEffects, decorators: [{
1739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects, decorators: [{
1704
1740
  type: Injectable
1705
1741
  }], ctorParameters: function () { return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
1706
1742
  type: Inject,
@@ -1859,10 +1895,12 @@ const coreReducers = Object.assign({}, {
1859
1895
  });
1860
1896
 
1861
1897
  const extend = extendProxy.default || extendProxy;
1898
+ /* tslint:disable */
1862
1899
  /**
1863
1900
  * Utility meta-reducer to load the state from the local storage
1864
1901
  * @param reducer the action reducer
1865
1902
  */
1903
+ /* tslint:enable */
1866
1904
  function localStorageSync(reducer) {
1867
1905
  return cb(reducer, localStorage);
1868
1906
  }
@@ -1875,10 +1913,12 @@ function sessionStorageSync(reducer) {
1875
1913
  }
1876
1914
  // Keys that are allowed to be synced with NgRx state from BrowserStorage
1877
1915
  const disallowedKeys = ['loadedConfigModules', 'connect', 'currentModule', 'status', 'apiQueue'];
1916
+ /* tslint:disable */
1878
1917
  /**
1879
1918
  * filters the AppState by removing those keys from the state and return a new state Object
1880
1919
  * @param app the AppState
1881
1920
  */
1921
+ /* tslint:enable */
1882
1922
  const filterAppState = (app) => {
1883
1923
  // in case app is undefined or null it should return empty object
1884
1924
  if (!app) {
@@ -1893,11 +1933,13 @@ const filterAppState = (app) => {
1893
1933
  return obj;
1894
1934
  }, {});
1895
1935
  };
1936
+ /* tslint:disable */
1896
1937
  /**
1897
1938
  *
1898
1939
  * @param storageType
1899
1940
  */
1900
1941
  const loadState = (storage = localStorage) => {
1942
+ /* tslint:enable */
1901
1943
  try {
1902
1944
  // by default falls back to localStorage
1903
1945
  const serializedState = storage.getItem('state');
@@ -1914,7 +1956,9 @@ const loadState = (storage = localStorage) => {
1914
1956
  return undefined;
1915
1957
  }
1916
1958
  };
1959
+ /* tslint:disable */
1917
1960
  const cb = (reducer, storage) => {
1961
+ /* tslint:enable */
1918
1962
  return function (state, action) {
1919
1963
  if (action.type === CoreAppActionTypes.INIT_STORE) {
1920
1964
  // This action must be dispatched from an app initializer
@@ -1963,9 +2007,9 @@ class StoreServiceMock extends StoreService {
1963
2007
  return of({});
1964
2008
  }
1965
2009
  }
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: [{
2010
+ /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2011
+ /** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock });
2012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock, decorators: [{
1969
2013
  type: Injectable
1970
2014
  }], ctorParameters: function () { return []; } });
1971
2015
 
@@ -2010,12 +2054,12 @@ class CoreModule {
2010
2054
  };
2011
2055
  }
2012
2056
  }
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: [[
2057
+ /** @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 });
2058
+ /** @nocollapse */ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
2059
+ /** @nocollapse */ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, imports: [[
2016
2060
  HttpClientModule,
2017
2061
  ]] });
2018
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: CoreModule, decorators: [{
2062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, decorators: [{
2019
2063
  type: NgModule,
2020
2064
  args: [{
2021
2065
  imports: [
@@ -2046,12 +2090,14 @@ function euiCoreRootGuardClass() {
2046
2090
  return new EuiCoreRootGuardClass();
2047
2091
  }
2048
2092
 
2093
+ /* tslint:disable */
2049
2094
  /**
2050
2095
  * Function to be used before the AppModule is bootstrapped. It is currently used to load dynamic configurations.
2051
2096
  * It needs to be added in your application main.ts file.
2052
2097
  * @param envConfig the current environment configuration
2053
2098
  * @returns the updated environment configuration, as a promise
2054
2099
  */
2100
+ /* tslint:enable */
2055
2101
  async function preInitApp(envConfig) {
2056
2102
  const envDynamicConfig = envConfig && envConfig.envDynamicConfig;
2057
2103
  if (envDynamicConfig) {
@@ -2137,9 +2183,9 @@ class GlobalErrorHandler extends ErrorHandler {
2137
2183
  super.handleError(error);
2138
2184
  }
2139
2185
  }
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: [{
2186
+ /** @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 });
2187
+ /** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
2188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, decorators: [{
2143
2189
  type: Injectable,
2144
2190
  args: [{
2145
2191
  providedIn: 'root',
@@ -2186,9 +2232,9 @@ class HttpErrorHandlerInterceptor {
2186
2232
  return routes.length > 0 ? routes[0] : null;
2187
2233
  }
2188
2234
  }
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: [{
2235
+ /** @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 });
2236
+ /** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor });
2237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
2192
2238
  type: Injectable
2193
2239
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2194
2240
  type: Inject,
@@ -2281,7 +2327,6 @@ class ApiQueueService {
2281
2327
  .pipe(take(1), switchMap((queue) => {
2282
2328
  if (!queue) {
2283
2329
  this.logService.warn(`Queue item with id "${id}" does not exist`);
2284
- // tslint:disable-next-line:deprecation
2285
2330
  return of(null);
2286
2331
  }
2287
2332
  return this.buildHttpRequest(id, queue);
@@ -2300,7 +2345,6 @@ class ApiQueueService {
2300
2345
  if (!continueOnError) {
2301
2346
  throw error;
2302
2347
  }
2303
- // tslint:disable-next-line:deprecation
2304
2348
  return of(error);
2305
2349
  })))), switchMap((obsQueue) => forkJoin(Array.from(obsQueue))));
2306
2350
  }
@@ -2337,9 +2381,9 @@ class ApiQueueService {
2337
2381
  .pipe(tap(() => this.removeQueueItem(id)));
2338
2382
  }
2339
2383
  }
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: [{
2384
+ /** @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 });
2385
+ /** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
2386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, decorators: [{
2343
2387
  type: Injectable,
2344
2388
  args: [{
2345
2389
  providedIn: 'root',
@@ -2351,22 +2395,18 @@ class ApiQueueServiceMock extends ApiQueueService {
2351
2395
  super(null, null, null);
2352
2396
  }
2353
2397
  getQueue() {
2354
- // tslint:disable-next-line:deprecation
2355
2398
  return of([]);
2356
2399
  }
2357
2400
  getQueueItem(id) {
2358
- // tslint:disable-next-line:deprecation
2359
2401
  return of(null);
2360
2402
  }
2361
2403
  removeAllQueueItem() { }
2362
2404
  processAllQueueItems() {
2363
- // tslint:disable-next-line:deprecation
2364
2405
  return of({});
2365
2406
  }
2366
2407
  addQueueItem() { }
2367
2408
  removeQueueItem() { }
2368
2409
  processQueueItem() {
2369
- // tslint:disable-next-line:deprecation
2370
2410
  return of({});
2371
2411
  }
2372
2412
  }
@@ -2430,10 +2470,12 @@ const getStyle = (nativeEl, cssProp) => {
2430
2470
  const isStaticPositioned = (nativeEl) => {
2431
2471
  return (getStyle(nativeEl, 'position') || 'static') === 'static';
2432
2472
  };
2473
+ /* tslint:disable */
2433
2474
  /**
2434
2475
  * returns the closest, non-statically positioned parentOffset of a given element
2435
2476
  * @param nativeEl
2436
2477
  */
2478
+ /* tslint:enable */
2437
2479
  const parentOffsetEl = (nativeEl) => {
2438
2480
  let offsetParent = nativeEl.offsetParent || document;
2439
2481
  while (offsetParent && offsetParent !== document &&
@@ -2522,6 +2564,7 @@ const validateEmail = (c) => {
2522
2564
  const uniqueId = () => {
2523
2565
  return Math.random().toString(36).substr(2, 9);
2524
2566
  };
2567
+ /* tslint:disable */
2525
2568
  /**
2526
2569
  * Its job is to parse number and format it based on given input.
2527
2570
  * @param value can be a number or a string number
@@ -2529,6 +2572,7 @@ const uniqueId = () => {
2529
2572
  * @param inDecimalSeparator separator for decimal part of the number default is ','
2530
2573
  * @param inThousandSeparator separator for the whole part of the number default is ''
2531
2574
  */
2575
+ /* tslint:enable */
2532
2576
  const formatNumber = (value, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = '') => {
2533
2577
  if (inDecimalSeparator || inThousandSeparator) {
2534
2578
  console.warn('The inDecimalSeparator and inThousandSeparator are deprecated. They will be a ' +
@@ -2696,9 +2740,9 @@ class EuiPermissionService extends EuiService {
2696
2740
  return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
2697
2741
  }
2698
2742
  }
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: [{
2743
+ /** @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 });
2744
+ /** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
2745
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, decorators: [{
2702
2746
  type: Injectable,
2703
2747
  args: [{
2704
2748
  providedIn: 'root',
@@ -2759,9 +2803,9 @@ class UxDynamicMenuService {
2759
2803
  });
2760
2804
  }
2761
2805
  }
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: [{
2806
+ /** @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 });
2807
+ /** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
2808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, decorators: [{
2765
2809
  type: Injectable,
2766
2810
  args: [{
2767
2811
  providedIn: 'root',
@@ -2829,9 +2873,9 @@ class UxErrorFeedbackService {
2829
2873
  return new UxErrorManager(this, true);
2830
2874
  }
2831
2875
  }
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: [{
2876
+ /** @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 });
2877
+ /** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
2878
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
2835
2879
  type: Injectable,
2836
2880
  args: [{
2837
2881
  providedIn: 'root'
@@ -2926,9 +2970,9 @@ class UxDynamicComponentService {
2926
2970
  return new PortalInjector(this.injector, injectorTokens);
2927
2971
  }
2928
2972
  }
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: [{
2973
+ /** @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 });
2974
+ /** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
2975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, decorators: [{
2932
2976
  type: Injectable,
2933
2977
  args: [{ providedIn: 'root' }]
2934
2978
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
@@ -3643,9 +3687,9 @@ class UxTimezoneService {
3643
3687
  });
3644
3688
  }
3645
3689
  }
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: [{
3690
+ /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3691
+ /** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService });
3692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService, decorators: [{
3649
3693
  type: Injectable
3650
3694
  }] });
3651
3695
 
@@ -3688,22 +3732,18 @@ class AsyncStorageService extends StorageService {
3688
3732
 
3689
3733
  class AsyncStorageServiceMock extends AsyncStorageService {
3690
3734
  ready() {
3691
- // tslint:disable-next-line:deprecation
3692
3735
  return of({});
3693
3736
  }
3694
3737
  name() {
3695
3738
  return null;
3696
3739
  }
3697
3740
  get() {
3698
- // tslint:disable-next-line:deprecation
3699
3741
  return of({});
3700
3742
  }
3701
3743
  set() {
3702
- // tslint:disable-next-line:deprecation
3703
3744
  return of({});
3704
3745
  }
3705
3746
  remove() {
3706
- // tslint:disable-next-line:deprecation
3707
3747
  return of({});
3708
3748
  }
3709
3749
  setAsync() {
@@ -3775,9 +3815,9 @@ class LocalStorageService extends StorageService {
3775
3815
  }
3776
3816
  }
3777
3817
  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: [{
3818
+ /** @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 });
3819
+ /** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService });
3820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService, decorators: [{
3781
3821
  type: Injectable
3782
3822
  }], ctorParameters: function () { return [{ type: LogService, decorators: [{
3783
3823
  type: Optional
@@ -3846,15 +3886,17 @@ class SessionStorageService extends StorageService {
3846
3886
  }
3847
3887
  }
3848
3888
  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: [{
3889
+ /** @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 });
3890
+ /** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService });
3891
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService, decorators: [{
3852
3892
  type: Injectable
3853
3893
  }], ctorParameters: function () { return [{ type: LogService, decorators: [{
3854
3894
  type: Optional
3855
3895
  }] }]; } });
3856
3896
 
3897
+ /* tslint:disable */
3857
3898
  /** @internal */
3899
+ /* tslint:enable */
3858
3900
  const localForage = 'defineDriver' in lf ? lf : lf['default'];
3859
3901
  const LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken('LOCAL_FORAGE_SERVICE_CONFIG');
3860
3902
  /**
@@ -3935,9 +3977,9 @@ class LocalForageService extends AsyncStorageService {
3935
3977
  }
3936
3978
  }
3937
3979
  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: [{
3980
+ /** @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 });
3981
+ /** @nocollapse */ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService });
3982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService, decorators: [{
3941
3983
  type: Injectable
3942
3984
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
3943
3985
  type: Inject,
@@ -4025,8 +4067,11 @@ class LocaleService extends EuiService {
4025
4067
  addLocale(id) {
4026
4068
  return this.loadLocale(id);
4027
4069
  }
4070
+ get previousLocale() {
4071
+ return this.prevStateInstance?.id || this.currentLocale;
4072
+ }
4028
4073
  get currentLocale() {
4029
- return this.stateInstance.id;
4074
+ return this.stateInstance?.id;
4030
4075
  }
4031
4076
  /**
4032
4077
  * load and register locale data dynamically
@@ -4058,9 +4103,11 @@ class LocaleService extends EuiService {
4058
4103
  bindTranslateServiceLangChangeToState() {
4059
4104
  if (this.i18n) {
4060
4105
  this.i18n.onStateChange.pipe(takeUntil(this.subNotifier),
4106
+ // filter out null values
4107
+ filter(state => state.activeLang !== null),
4061
4108
  // BEWARE: filter is based on convention that locale id sliced(2) will match activeLang e.g. en-US => en
4062
4109
  // 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()),
4110
+ filter(state => state.activeLang.toLowerCase() !== this.stateInstance?.id.slice(0, 2).toLowerCase()),
4064
4111
  // to check if registration of locale otherwise register it
4065
4112
  switchMap(value => of(value).pipe(
4066
4113
  // getLocaleId may throw Error(`Missing locale data for the locale "${locale}".`);
@@ -4074,7 +4121,7 @@ class LocaleService extends EuiService {
4074
4121
  if (this.log) {
4075
4122
  this.logger.debug(error);
4076
4123
  }
4077
- return this.loadLocale(value.activeLang).pipe(filter((s) => s.success), map(() => this.localeMapper(value.activeLang)), catchError(e => {
4124
+ return this.loadLocale(value?.activeLang).pipe(filter((s) => s.success), map(() => this.localeMapper(value?.activeLang)), catchError(e => {
4078
4125
  if (this.log) {
4079
4126
  this.logger.debug('Something went terribly really wrong during locale loading', e.err.message);
4080
4127
  }
@@ -4124,8 +4171,10 @@ class LocaleService extends EuiService {
4124
4171
  importLocale(id) {
4125
4172
  // in case of an error, catch it and return null
4126
4173
  return import(
4127
- /* webpackIgnore: true */
4128
- `@angular/common/locales/${id}`)
4174
+ /* webpackExclude: /\.d\.ts$/ */
4175
+ /* webpackMode: "lazy-once" */
4176
+ /* webpackChunkName: "i18n-base" */
4177
+ `@/../node_modules/@angular/common/locales/${id}`)
4129
4178
  .then(m => m.default)
4130
4179
  .catch(error => {
4131
4180
  if (this.log) {
@@ -4142,8 +4191,10 @@ class LocaleService extends EuiService {
4142
4191
  importExtraLocale(id) {
4143
4192
  // in case of an error, catch it and return null
4144
4193
  return import(
4145
- /* webpackIgnore: true */
4146
- `@angular/common/locales/extra/${id}`)
4194
+ /* webpackExclude: /\.d\.ts$/ */
4195
+ /* webpackMode: "lazy-once" */
4196
+ /* webpackChunkName: "i18n-extra" */
4197
+ `@/../node_modules/@angular/common/locales/extra/${id}`)
4147
4198
  .then(m => m.default)
4148
4199
  .catch(error => {
4149
4200
  if (this.log) {
@@ -4158,12 +4209,12 @@ class LocaleService extends EuiService {
4158
4209
  * @private
4159
4210
  */
4160
4211
  importDataAndExtraLocale(localeId) {
4161
- return from(this.importLocale(localeId)).pipe(mergeMap(() => from(this.importExtraLocale(localeId)).pipe(map((data, extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
4212
+ return from(this.importLocale(localeId)).pipe(mergeMap((data) => from(this.importExtraLocale(localeId)).pipe(map((extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
4162
4213
  }
4163
4214
  }
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: [{
4215
+ /** @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 });
4216
+ /** @nocollapse */ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocaleService, providedIn: 'root' });
4217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocaleService, decorators: [{
4167
4218
  type: Injectable,
4168
4219
  args: [{
4169
4220
  providedIn: 'root'
@@ -4218,9 +4269,9 @@ class UserService extends EuiService {
4218
4269
  this.store.dispatch(new UpdateUserStateAction(userState));
4219
4270
  }
4220
4271
  }
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: [{
4272
+ /** @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 });
4273
+ /** @nocollapse */ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, providedIn: 'root' });
4274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, decorators: [{
4224
4275
  type: Injectable,
4225
4276
  args: [{
4226
4277
  providedIn: 'root',
@@ -4251,9 +4302,9 @@ class UserServiceMock extends UserService {
4251
4302
  return of('anonymous');
4252
4303
  }
4253
4304
  }
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: [{
4305
+ /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4306
+ /** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock });
4307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock, decorators: [{
4257
4308
  type: Injectable
4258
4309
  }], ctorParameters: function () { return []; } });
4259
4310
 
@@ -4283,9 +4334,9 @@ class AddLangParamInterceptor {
4283
4334
  }));
4284
4335
  }
4285
4336
  }
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: [{
4337
+ /** @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 });
4338
+ /** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor });
4339
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
4289
4340
  type: Injectable
4290
4341
  }], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
4291
4342
 
@@ -4302,9 +4353,9 @@ class CachePreventionInterceptor {
4302
4353
  }));
4303
4354
  }
4304
4355
  }
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: [{
4356
+ /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4357
+ /** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor });
4358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
4308
4359
  type: Injectable
4309
4360
  }] });
4310
4361
 
@@ -4315,9 +4366,9 @@ class CorsSecurityInterceptor {
4315
4366
  }));
4316
4367
  }
4317
4368
  }
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: [{
4369
+ /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4370
+ /** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor });
4371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
4321
4372
  type: Injectable
4322
4373
  }] });
4323
4374
 
@@ -4328,9 +4379,9 @@ class CsrfPreventionInterceptor {
4328
4379
  }));
4329
4380
  }
4330
4381
  }
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: [{
4382
+ /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4383
+ /** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor });
4384
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
4334
4385
  type: Injectable
4335
4386
  }] });
4336
4387
 
@@ -4381,13 +4432,12 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4381
4432
  }
4382
4433
  }
4383
4434
  reauthenticate(request, response) {
4384
- // tslint:disable-next-line:deprecation
4385
4435
  document.location.reload();
4386
4436
  }
4387
4437
  }
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: [{
4438
+ /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4439
+ /** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
4440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
4391
4441
  type: Injectable
4392
4442
  }] });
4393
4443
 
@@ -4408,9 +4458,9 @@ class UxRequestErrorModelInterceptor {
4408
4458
  }));
4409
4459
  }
4410
4460
  }
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: [{
4461
+ /** @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 });
4462
+ /** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor });
4463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
4414
4464
  type: Injectable
4415
4465
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4416
4466
  type: Inject,
@@ -4552,9 +4602,9 @@ class OpenIdConnectInterceptor {
4552
4602
  }
4553
4603
  }
4554
4604
  }
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: [{
4605
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4606
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor });
4607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
4558
4608
  type: Injectable
4559
4609
  }], ctorParameters: function () { return []; } });
4560
4610
 
@@ -4584,9 +4634,9 @@ class OpenIdConnectService {
4584
4634
  return this.userDetails;
4585
4635
  }
4586
4636
  }
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: [{
4637
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4638
+ /** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
4639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, decorators: [{
4590
4640
  type: Injectable,
4591
4641
  args: [{
4592
4642
  providedIn: 'root'