@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.
- package/docs/dependencies.html +50 -50
- package/docs/injectables/I18nLoader.html +39 -0
- package/docs/injectables/LocaleService.html +20 -0
- package/docs/injectables/UxAppShellService.html +175 -0
- package/docs/interfaces/UIState.html +135 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +6 -1
- package/esm2020/lib/eui-core.module.mjs +6 -6
- package/esm2020/lib/helpers/dom-helpers.mjs +3 -1
- package/esm2020/lib/helpers/format-helpers.mjs +3 -1
- package/esm2020/lib/interceptors/add-lang-param.interceptor.mjs +4 -5
- package/esm2020/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
- package/esm2020/lib/interceptors/cors-security.interceptor.mjs +4 -4
- package/esm2020/lib/interceptors/csrf-prevention.interceptor.mjs +4 -4
- package/esm2020/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +4 -5
- package/esm2020/lib/interceptors/openid/openid-connect.interceptor.mjs +4 -4
- package/esm2020/lib/interceptors/openid/openid-connect.service.mjs +4 -4
- package/esm2020/lib/interceptors/ux-request-error-model.interceptor.mjs +4 -4
- package/esm2020/lib/services/app/eui-pre-init-app.mjs +3 -1
- package/esm2020/lib/services/app/factories/log.mjs +3 -1
- package/esm2020/lib/services/errors/global-error-handler.mjs +4 -5
- package/esm2020/lib/services/errors/http-error-handler.interceptor.mjs +5 -6
- package/esm2020/lib/services/i18n/i18n.loader.mjs +12 -6
- package/esm2020/lib/services/i18n/i18n.service.mjs +10 -7
- package/esm2020/lib/services/i18n/i18n.service.mock.mjs +4 -4
- package/esm2020/lib/services/locale/locale.service.mjs +22 -15
- package/esm2020/lib/services/log/log.module.mjs +5 -5
- package/esm2020/lib/services/log/log.service.mjs +5 -5
- package/esm2020/lib/services/permission/permission.service.mjs +4 -6
- package/esm2020/lib/services/queue/api-queue.service.mjs +4 -9
- package/esm2020/lib/services/queue/api-queue.service.mock.mjs +1 -5
- package/esm2020/lib/services/storage/async-storage.service.mjs +1 -1
- package/esm2020/lib/services/storage/async-storage.service.mock.mjs +1 -5
- package/esm2020/lib/services/storage/local-forage.service.mjs +6 -5
- package/esm2020/lib/services/storage/local-storage.service.mjs +4 -5
- package/esm2020/lib/services/storage/session-storage.service.mjs +4 -5
- package/esm2020/lib/services/storage/storage.service.mjs +1 -1
- package/esm2020/lib/services/store/effects/app.effects.mjs +10 -16
- package/esm2020/lib/services/store/reducers/meta.reducers.mjs +9 -1
- package/esm2020/lib/services/store/store.service.mjs +5 -7
- package/esm2020/lib/services/store/store.service.mock.mjs +4 -4
- package/esm2020/lib/services/user/user.service.mjs +4 -5
- package/esm2020/lib/services/user/user.service.mock.mjs +4 -4
- package/esm2020/lib/services/ux-app-shell.service.mjs +36 -16
- package/esm2020/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +5 -5
- package/esm2020/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +4 -6
- package/esm2020/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +4 -6
- package/esm2020/lib/services/ux-timezone.service.mjs +4 -4
- package/fesm2015/eui-core.mjs +176 -130
- package/fesm2015/eui-core.mjs.map +1 -1
- package/fesm2020/eui-core.mjs +222 -172
- package/fesm2020/eui-core.mjs.map +1 -1
- package/lib/helpers/dom-helpers.d.ts.map +1 -1
- package/lib/helpers/format-helpers.d.ts.map +1 -1
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts.map +1 -1
- package/lib/services/app/eui-pre-init-app.d.ts.map +1 -1
- package/lib/services/app/factories/log.d.ts.map +1 -1
- package/lib/services/i18n/i18n.loader.d.ts +5 -0
- package/lib/services/i18n/i18n.loader.d.ts.map +1 -1
- package/lib/services/i18n/i18n.service.d.ts.map +1 -1
- package/lib/services/locale/locale.service.d.ts +1 -0
- package/lib/services/locale/locale.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.mock.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.mock.d.ts.map +1 -1
- package/lib/services/storage/local-forage.service.d.ts.map +1 -1
- package/lib/services/store/effects/app.effects.d.ts.map +1 -1
- package/lib/services/store/reducers/meta.reducers.d.ts.map +1 -1
- package/lib/services/ux-app-shell.service.d.ts +7 -1
- package/lib/services/ux-app-shell.service.d.ts.map +1 -1
- package/package.json +11 -1
- package/esm2020/lib/services/ux-root-injector.guard.mjs +0 -11
- package/lib/services/ux-root-injector.guard.d.ts +0 -5
- package/lib/services/ux-root-injector.guard.d.ts.map +0 -1
package/fesm2015/eui-core.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { throwError, forkJoin, of, BehaviorSubject, defer, merge, fromEvent, Obs
|
|
|
13
13
|
import { debounceTime, distinctUntilChanged, map, catchError, switchMap, tap, filter, take, mapTo, mergeMap, concatMap, takeUntil } from 'rxjs/operators';
|
|
14
14
|
import * as i1$1 from '@ngrx/store';
|
|
15
15
|
import { createSelector } from '@ngrx/store';
|
|
16
|
-
import { __decorate,
|
|
16
|
+
import { __decorate, __awaiter } from 'tslib';
|
|
17
17
|
import * as i1$3 from '@ngrx/effects';
|
|
18
18
|
import { ofType, Effect } from '@ngrx/effects';
|
|
19
19
|
import * as i2 from '@ngx-translate/core';
|
|
@@ -168,9 +168,9 @@ class LogService extends Logger {
|
|
|
168
168
|
return logger;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
/** @nocollapse */ /** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
172
|
-
/** @nocollapse */ /** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
171
|
+
/** @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 });
|
|
172
|
+
/** @nocollapse */ /** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogService });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogService, decorators: [{
|
|
174
174
|
type: Injectable
|
|
175
175
|
}], ctorParameters: function () {
|
|
176
176
|
return [{ type: undefined, decorators: [{
|
|
@@ -186,12 +186,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ng
|
|
|
186
186
|
} });
|
|
187
187
|
|
|
188
188
|
const LOG_INSTANCES = {};
|
|
189
|
+
/* tslint:disable */
|
|
189
190
|
/**
|
|
190
191
|
* Helper function to check if the log config is defined.
|
|
191
192
|
* Does not check only for empty object, because the config can have other (non-log) parameters
|
|
192
193
|
* @params config log configuration
|
|
193
194
|
* @returns true/false
|
|
194
195
|
*/
|
|
196
|
+
/* tslint:enable */
|
|
195
197
|
function isLogConfigDefined(config) {
|
|
196
198
|
return config && ('baseLoggerName' in config || 'logLevel' in config || 'logAppenders' in config);
|
|
197
199
|
}
|
|
@@ -342,10 +344,10 @@ class LogModule {
|
|
|
342
344
|
};
|
|
343
345
|
}
|
|
344
346
|
}
|
|
345
|
-
/** @nocollapse */ /** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
346
|
-
/** @nocollapse */ /** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.
|
|
347
|
-
/** @nocollapse */ /** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.
|
|
348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
347
|
+
/** @nocollapse */ /** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
348
|
+
/** @nocollapse */ /** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule });
|
|
349
|
+
/** @nocollapse */ /** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule });
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LogModule, decorators: [{
|
|
349
351
|
type: NgModule
|
|
350
352
|
}] });
|
|
351
353
|
|
|
@@ -408,7 +410,7 @@ class StoreService {
|
|
|
408
410
|
*/
|
|
409
411
|
select(key) {
|
|
410
412
|
if (!this.store) {
|
|
411
|
-
return throwError(new Error('NGRX Store not configured'));
|
|
413
|
+
return throwError(() => new Error('NGRX Store not configured'));
|
|
412
414
|
}
|
|
413
415
|
return this.store.select(key);
|
|
414
416
|
}
|
|
@@ -437,9 +439,9 @@ class StoreService {
|
|
|
437
439
|
}
|
|
438
440
|
}
|
|
439
441
|
}
|
|
440
|
-
/** @nocollapse */ /** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
441
|
-
/** @nocollapse */ /** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
442
|
+
/** @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 });
|
|
443
|
+
/** @nocollapse */ /** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreService, providedIn: 'root' });
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreService, decorators: [{
|
|
443
445
|
type: Injectable,
|
|
444
446
|
args: [{
|
|
445
447
|
providedIn: 'root',
|
|
@@ -624,6 +626,7 @@ class I18nLoader {
|
|
|
624
626
|
this.logService = logService;
|
|
625
627
|
this.euiAppConfig = euiAppConfig;
|
|
626
628
|
this.resources = [];
|
|
629
|
+
this.failedResources = [];
|
|
627
630
|
// create the resources from the config object
|
|
628
631
|
const i18nConfig = this.euiAppConfig.global && this.euiAppConfig.global.i18n;
|
|
629
632
|
const i18nLoaderConfig = i18nConfig && i18nConfig.i18nLoader;
|
|
@@ -636,6 +639,7 @@ class I18nLoader {
|
|
|
636
639
|
*/
|
|
637
640
|
getTranslation(lang) {
|
|
638
641
|
return this.loadResources(this.resources, lang).pipe(map((loadedResources) => {
|
|
642
|
+
this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
|
|
639
643
|
return loadedResources.translations;
|
|
640
644
|
}));
|
|
641
645
|
}
|
|
@@ -696,6 +700,12 @@ class I18nLoader {
|
|
|
696
700
|
return of({ hasError: false, translations: {} });
|
|
697
701
|
}
|
|
698
702
|
}
|
|
703
|
+
/**
|
|
704
|
+
* Returns resources that failed
|
|
705
|
+
*/
|
|
706
|
+
getFailedResources() {
|
|
707
|
+
return this.failedResources;
|
|
708
|
+
}
|
|
699
709
|
/**
|
|
700
710
|
* Create resources from a config file
|
|
701
711
|
* @param config loader configuration
|
|
@@ -765,9 +775,9 @@ class I18nLoader {
|
|
|
765
775
|
return undefined;
|
|
766
776
|
}
|
|
767
777
|
}
|
|
768
|
-
/** @nocollapse */ /** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
769
|
-
/** @nocollapse */ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
778
|
+
/** @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 });
|
|
779
|
+
/** @nocollapse */ /** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader });
|
|
780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nLoader, decorators: [{
|
|
771
781
|
type: Injectable
|
|
772
782
|
}], ctorParameters: function () {
|
|
773
783
|
return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
|
|
@@ -923,6 +933,12 @@ class I18nService extends EuiLazyService {
|
|
|
923
933
|
this.setDefaultLanguage(this.config.defaultLanguage);
|
|
924
934
|
}
|
|
925
935
|
}), map(() => {
|
|
936
|
+
if (this.translateService.currentLoader instanceof I18nLoader) {
|
|
937
|
+
const failedResources = this.translateService.currentLoader.getFailedResources();
|
|
938
|
+
if (failedResources.length > 0) {
|
|
939
|
+
return { success: false, error: failedResources };
|
|
940
|
+
}
|
|
941
|
+
}
|
|
926
942
|
return { success: true };
|
|
927
943
|
}), catchError((error) => {
|
|
928
944
|
return of({ success: false, error: error });
|
|
@@ -970,9 +986,9 @@ class I18nService extends EuiLazyService {
|
|
|
970
986
|
this.document.documentElement.lang = lang;
|
|
971
987
|
}
|
|
972
988
|
}
|
|
973
|
-
/** @nocollapse */ /** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
974
|
-
/** @nocollapse */ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
989
|
+
/** @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 });
|
|
990
|
+
/** @nocollapse */ /** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, providedIn: 'root' });
|
|
991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nService, decorators: [{
|
|
976
992
|
type: Injectable,
|
|
977
993
|
args: [{
|
|
978
994
|
providedIn: 'root',
|
|
@@ -1017,9 +1033,9 @@ class I18nServiceMock extends I18nService {
|
|
|
1017
1033
|
return of({ success: true });
|
|
1018
1034
|
}
|
|
1019
1035
|
}
|
|
1020
|
-
/** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
1021
|
-
/** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
1022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
1036
|
+
/** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1037
|
+
/** @nocollapse */ /** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock });
|
|
1038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: I18nServiceMock, decorators: [{
|
|
1023
1039
|
type: Injectable
|
|
1024
1040
|
}], ctorParameters: function () { return []; } });
|
|
1025
1041
|
|
|
@@ -1035,13 +1051,16 @@ const initialState = {
|
|
|
1035
1051
|
isSidebarActive: false,
|
|
1036
1052
|
isSidebarInnerActive: false,
|
|
1037
1053
|
isSidebarStateCloseWithIcons: false,
|
|
1054
|
+
isSidebarExpandOnHover: true,
|
|
1038
1055
|
hasSidebar: false,
|
|
1039
1056
|
hasHeader: false,
|
|
1040
1057
|
hasHeaderLogo: false,
|
|
1041
1058
|
hasHeaderEnvironment: false,
|
|
1059
|
+
hasToolbar: false,
|
|
1060
|
+
hasToolbarMenu: false,
|
|
1042
1061
|
environmentValue: '',
|
|
1043
1062
|
isSidebarHidden: false,
|
|
1044
|
-
|
|
1063
|
+
hasTopMessage: false,
|
|
1045
1064
|
windowWidth: 0,
|
|
1046
1065
|
windowHeight: 0,
|
|
1047
1066
|
mainContentHeight: 0,
|
|
@@ -1067,7 +1086,7 @@ const initialState = {
|
|
|
1067
1086
|
hasModalActive: false,
|
|
1068
1087
|
isDimmerActive: false,
|
|
1069
1088
|
};
|
|
1070
|
-
//
|
|
1089
|
+
// TODO: this service needs to be transferred in the respective component
|
|
1071
1090
|
class UxAppShellService {
|
|
1072
1091
|
constructor(config, http, platformId, router, storeService, i18nService) {
|
|
1073
1092
|
var _a, _b, _c, _d;
|
|
@@ -1085,8 +1104,6 @@ class UxAppShellService {
|
|
|
1085
1104
|
this.activeModals = [];
|
|
1086
1105
|
this.openModalId = new BehaviorSubject('');
|
|
1087
1106
|
this.cssVars = [];
|
|
1088
|
-
// super(UxAppShellService);
|
|
1089
|
-
console.log('UxAppShellService initialized');
|
|
1090
1107
|
let stateWithConfig = initialState;
|
|
1091
1108
|
const languages = ((_b = (_a = config === null || config === void 0 ? void 0 : config.i18n) === null || _a === void 0 ? void 0 : _a.i18nService) === null || _b === void 0 ? void 0 : _b.languages) || initialState.languages;
|
|
1092
1109
|
const defaultLanguage = ((_d = (_c = config === null || config === void 0 ? void 0 : config.i18n) === null || _c === void 0 ? void 0 : _c.i18nService) === null || _d === void 0 ? void 0 : _d.defaultLanguage) || initialState.activeLanguage;
|
|
@@ -1139,7 +1156,9 @@ class UxAppShellService {
|
|
|
1139
1156
|
this.setState(Object.assign(Object.assign({}, this.state), { isSidebarOpen: isOpen }));
|
|
1140
1157
|
}
|
|
1141
1158
|
set isSidebarHover(isHover) {
|
|
1142
|
-
|
|
1159
|
+
if (this.state.isSidebarExpandOnHover) {
|
|
1160
|
+
this.setState(Object.assign(Object.assign({}, this.state), { isSidebarHover: isHover }));
|
|
1161
|
+
}
|
|
1143
1162
|
}
|
|
1144
1163
|
get isSidebarHover() {
|
|
1145
1164
|
return this.state.isSidebarHover;
|
|
@@ -1259,15 +1278,25 @@ class UxAppShellService {
|
|
|
1259
1278
|
this.setState(Object.assign(Object.assign({}, this.state), { hasHeader: true }));
|
|
1260
1279
|
this.activateHeaderCssVars();
|
|
1261
1280
|
}
|
|
1281
|
+
activateTopMessage(height) {
|
|
1282
|
+
this.setState(Object.assign(Object.assign({}, this.state), { hasTopMessage: true }));
|
|
1283
|
+
this.activateTopMessageCssVars(height);
|
|
1284
|
+
}
|
|
1262
1285
|
activateToolbar() {
|
|
1263
1286
|
this.setState(Object.assign(Object.assign({}, this.state), { hasToolbar: true }));
|
|
1264
1287
|
this.activateToolbarCssVars();
|
|
1265
1288
|
}
|
|
1289
|
+
activateToolbarMenu() {
|
|
1290
|
+
this.setState(Object.assign(Object.assign({}, this.state), { hasToolbarMenu: true }));
|
|
1291
|
+
}
|
|
1266
1292
|
fetchCssVars() {
|
|
1267
1293
|
const cssVarNames = [
|
|
1268
1294
|
'--eui-app-header-height-default',
|
|
1269
1295
|
'--eui-app-header-height-active',
|
|
1270
1296
|
'--eui-app-header-height-shrink',
|
|
1297
|
+
'--eui-app-top-message-height-default',
|
|
1298
|
+
'--eui-app-top-message-height-active',
|
|
1299
|
+
'--eui-app-top-message-height-shrink',
|
|
1271
1300
|
'--eui-app-toolbar-height-default',
|
|
1272
1301
|
'--eui-app-toolbar-height-active',
|
|
1273
1302
|
'--eui-app-sidebar-width-default',
|
|
@@ -1285,6 +1314,7 @@ class UxAppShellService {
|
|
|
1285
1314
|
}
|
|
1286
1315
|
initCssVars() {
|
|
1287
1316
|
this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
|
|
1317
|
+
this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
|
|
1288
1318
|
this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
|
|
1289
1319
|
this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
|
|
1290
1320
|
this.setCssVar('--eui-app-sidebar-width-close-default', '--eui-app-sidebar-width-close');
|
|
@@ -1294,6 +1324,9 @@ class UxAppShellService {
|
|
|
1294
1324
|
activateHeaderCssVars() {
|
|
1295
1325
|
this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
|
|
1296
1326
|
}
|
|
1327
|
+
activateTopMessageCssVars(height) {
|
|
1328
|
+
this._setCssVarValue('--eui-app-top-message-height', `${height}px`);
|
|
1329
|
+
}
|
|
1297
1330
|
activateToolbarCssVars() {
|
|
1298
1331
|
this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height');
|
|
1299
1332
|
}
|
|
@@ -1573,9 +1606,9 @@ class UxAppShellService {
|
|
|
1573
1606
|
});
|
|
1574
1607
|
}
|
|
1575
1608
|
}
|
|
1576
|
-
/** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
1577
|
-
/** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
1578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
1609
|
+
/** @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 });
|
|
1610
|
+
/** @nocollapse */ /** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
|
|
1611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxAppShellService, decorators: [{
|
|
1579
1612
|
type: Injectable,
|
|
1580
1613
|
args: [{
|
|
1581
1614
|
providedIn: 'root',
|
|
@@ -1627,21 +1660,18 @@ class CoreAppEffects {
|
|
|
1627
1660
|
}));
|
|
1628
1661
|
}
|
|
1629
1662
|
}
|
|
1630
|
-
/** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
1631
|
-
/** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
1663
|
+
/** @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 });
|
|
1664
|
+
/** @nocollapse */ /** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects });
|
|
1632
1665
|
__decorate([
|
|
1633
|
-
Effect()
|
|
1634
|
-
__metadata("design:type", Observable)
|
|
1666
|
+
Effect()
|
|
1635
1667
|
], CoreAppEffects.prototype, "getAppConnectionInformation", void 0);
|
|
1636
1668
|
__decorate([
|
|
1637
|
-
Effect()
|
|
1638
|
-
__metadata("design:type", Observable)
|
|
1669
|
+
Effect()
|
|
1639
1670
|
], CoreAppEffects.prototype, "activatedRoute", void 0);
|
|
1640
1671
|
__decorate([
|
|
1641
|
-
Effect({ dispatch: false })
|
|
1642
|
-
__metadata("design:type", Object)
|
|
1672
|
+
Effect({ dispatch: false })
|
|
1643
1673
|
], CoreAppEffects.prototype, "updateAppConnection", void 0);
|
|
1644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
1674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreAppEffects, decorators: [{
|
|
1645
1675
|
type: Injectable
|
|
1646
1676
|
}], ctorParameters: function () {
|
|
1647
1677
|
return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
|
|
@@ -1788,10 +1818,12 @@ const coreReducers = Object.assign({}, {
|
|
|
1788
1818
|
});
|
|
1789
1819
|
|
|
1790
1820
|
const extend = extendProxy.default || extendProxy;
|
|
1821
|
+
/* tslint:disable */
|
|
1791
1822
|
/**
|
|
1792
1823
|
* Utility meta-reducer to load the state from the local storage
|
|
1793
1824
|
* @param reducer the action reducer
|
|
1794
1825
|
*/
|
|
1826
|
+
/* tslint:enable */
|
|
1795
1827
|
function localStorageSync(reducer) {
|
|
1796
1828
|
return cb(reducer, localStorage);
|
|
1797
1829
|
}
|
|
@@ -1804,10 +1836,12 @@ function sessionStorageSync(reducer) {
|
|
|
1804
1836
|
}
|
|
1805
1837
|
// Keys that are allowed to be synced with NgRx state from BrowserStorage
|
|
1806
1838
|
const disallowedKeys = ['loadedConfigModules', 'connect', 'currentModule', 'status', 'apiQueue'];
|
|
1839
|
+
/* tslint:disable */
|
|
1807
1840
|
/**
|
|
1808
1841
|
* filters the AppState by removing those keys from the state and return a new state Object
|
|
1809
1842
|
* @param app the AppState
|
|
1810
1843
|
*/
|
|
1844
|
+
/* tslint:enable */
|
|
1811
1845
|
const filterAppState = (app) => {
|
|
1812
1846
|
// in case app is undefined or null it should return empty object
|
|
1813
1847
|
if (!app) {
|
|
@@ -1822,11 +1856,13 @@ const filterAppState = (app) => {
|
|
|
1822
1856
|
return obj;
|
|
1823
1857
|
}, {});
|
|
1824
1858
|
};
|
|
1859
|
+
/* tslint:disable */
|
|
1825
1860
|
/**
|
|
1826
1861
|
*
|
|
1827
1862
|
* @param storageType
|
|
1828
1863
|
*/
|
|
1829
1864
|
const loadState = (storage = localStorage) => {
|
|
1865
|
+
/* tslint:enable */
|
|
1830
1866
|
try {
|
|
1831
1867
|
// by default falls back to localStorage
|
|
1832
1868
|
const serializedState = storage.getItem('state');
|
|
@@ -1843,7 +1879,9 @@ const loadState = (storage = localStorage) => {
|
|
|
1843
1879
|
return undefined;
|
|
1844
1880
|
}
|
|
1845
1881
|
};
|
|
1882
|
+
/* tslint:disable */
|
|
1846
1883
|
const cb = (reducer, storage) => {
|
|
1884
|
+
/* tslint:enable */
|
|
1847
1885
|
return function (state, action) {
|
|
1848
1886
|
var _a;
|
|
1849
1887
|
if (action.type === CoreAppActionTypes.INIT_STORE) {
|
|
@@ -1893,9 +1931,9 @@ class StoreServiceMock extends StoreService {
|
|
|
1893
1931
|
return of({});
|
|
1894
1932
|
}
|
|
1895
1933
|
}
|
|
1896
|
-
/** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
1897
|
-
/** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
1898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
1934
|
+
/** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1935
|
+
/** @nocollapse */ /** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock });
|
|
1936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
1899
1937
|
type: Injectable
|
|
1900
1938
|
}], ctorParameters: function () { return []; } });
|
|
1901
1939
|
|
|
@@ -1940,12 +1978,12 @@ class CoreModule {
|
|
|
1940
1978
|
};
|
|
1941
1979
|
}
|
|
1942
1980
|
}
|
|
1943
|
-
/** @nocollapse */ /** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
1944
|
-
/** @nocollapse */ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.
|
|
1945
|
-
/** @nocollapse */ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.
|
|
1981
|
+
/** @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 });
|
|
1982
|
+
/** @nocollapse */ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
|
|
1983
|
+
/** @nocollapse */ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, imports: [[
|
|
1946
1984
|
HttpClientModule,
|
|
1947
1985
|
]] });
|
|
1948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
1986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CoreModule, decorators: [{
|
|
1949
1987
|
type: NgModule,
|
|
1950
1988
|
args: [{
|
|
1951
1989
|
imports: [
|
|
@@ -1978,12 +2016,14 @@ function euiCoreRootGuardClass() {
|
|
|
1978
2016
|
return new EuiCoreRootGuardClass();
|
|
1979
2017
|
}
|
|
1980
2018
|
|
|
2019
|
+
/* tslint:disable */
|
|
1981
2020
|
/**
|
|
1982
2021
|
* Function to be used before the AppModule is bootstrapped. It is currently used to load dynamic configurations.
|
|
1983
2022
|
* It needs to be added in your application main.ts file.
|
|
1984
2023
|
* @param envConfig the current environment configuration
|
|
1985
2024
|
* @returns the updated environment configuration, as a promise
|
|
1986
2025
|
*/
|
|
2026
|
+
/* tslint:enable */
|
|
1987
2027
|
function preInitApp(envConfig) {
|
|
1988
2028
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1989
2029
|
const envDynamicConfig = envConfig && envConfig.envDynamicConfig;
|
|
@@ -2073,9 +2113,9 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
2073
2113
|
super.handleError(error);
|
|
2074
2114
|
}
|
|
2075
2115
|
}
|
|
2076
|
-
/** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2077
|
-
/** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2116
|
+
/** @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 });
|
|
2117
|
+
/** @nocollapse */ /** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
|
|
2118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
2079
2119
|
type: Injectable,
|
|
2080
2120
|
args: [{
|
|
2081
2121
|
providedIn: 'root',
|
|
@@ -2122,9 +2162,9 @@ class HttpErrorHandlerInterceptor {
|
|
|
2122
2162
|
return routes.length > 0 ? routes[0] : null;
|
|
2123
2163
|
}
|
|
2124
2164
|
}
|
|
2125
|
-
/** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2126
|
-
/** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2165
|
+
/** @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 });
|
|
2166
|
+
/** @nocollapse */ /** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor });
|
|
2167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
2128
2168
|
type: Injectable
|
|
2129
2169
|
}], ctorParameters: function () {
|
|
2130
2170
|
return [{ type: undefined, decorators: [{
|
|
@@ -2219,7 +2259,6 @@ class ApiQueueService {
|
|
|
2219
2259
|
.pipe(take(1), switchMap((queue) => {
|
|
2220
2260
|
if (!queue) {
|
|
2221
2261
|
this.logService.warn(`Queue item with id "${id}" does not exist`);
|
|
2222
|
-
// tslint:disable-next-line:deprecation
|
|
2223
2262
|
return of(null);
|
|
2224
2263
|
}
|
|
2225
2264
|
return this.buildHttpRequest(id, queue);
|
|
@@ -2238,7 +2277,6 @@ class ApiQueueService {
|
|
|
2238
2277
|
if (!continueOnError) {
|
|
2239
2278
|
throw error;
|
|
2240
2279
|
}
|
|
2241
|
-
// tslint:disable-next-line:deprecation
|
|
2242
2280
|
return of(error);
|
|
2243
2281
|
})))), switchMap((obsQueue) => forkJoin(Array.from(obsQueue))));
|
|
2244
2282
|
}
|
|
@@ -2275,9 +2313,9 @@ class ApiQueueService {
|
|
|
2275
2313
|
.pipe(tap(() => this.removeQueueItem(id)));
|
|
2276
2314
|
}
|
|
2277
2315
|
}
|
|
2278
|
-
/** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2279
|
-
/** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2316
|
+
/** @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 });
|
|
2317
|
+
/** @nocollapse */ /** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
|
|
2318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
2281
2319
|
type: Injectable,
|
|
2282
2320
|
args: [{
|
|
2283
2321
|
providedIn: 'root',
|
|
@@ -2289,22 +2327,18 @@ class ApiQueueServiceMock extends ApiQueueService {
|
|
|
2289
2327
|
super(null, null, null);
|
|
2290
2328
|
}
|
|
2291
2329
|
getQueue() {
|
|
2292
|
-
// tslint:disable-next-line:deprecation
|
|
2293
2330
|
return of([]);
|
|
2294
2331
|
}
|
|
2295
2332
|
getQueueItem(id) {
|
|
2296
|
-
// tslint:disable-next-line:deprecation
|
|
2297
2333
|
return of(null);
|
|
2298
2334
|
}
|
|
2299
2335
|
removeAllQueueItem() { }
|
|
2300
2336
|
processAllQueueItems() {
|
|
2301
|
-
// tslint:disable-next-line:deprecation
|
|
2302
2337
|
return of({});
|
|
2303
2338
|
}
|
|
2304
2339
|
addQueueItem() { }
|
|
2305
2340
|
removeQueueItem() { }
|
|
2306
2341
|
processQueueItem() {
|
|
2307
|
-
// tslint:disable-next-line:deprecation
|
|
2308
2342
|
return of({});
|
|
2309
2343
|
}
|
|
2310
2344
|
}
|
|
@@ -2368,10 +2402,12 @@ const getStyle = (nativeEl, cssProp) => {
|
|
|
2368
2402
|
const isStaticPositioned = (nativeEl) => {
|
|
2369
2403
|
return (getStyle(nativeEl, 'position') || 'static') === 'static';
|
|
2370
2404
|
};
|
|
2405
|
+
/* tslint:disable */
|
|
2371
2406
|
/**
|
|
2372
2407
|
* returns the closest, non-statically positioned parentOffset of a given element
|
|
2373
2408
|
* @param nativeEl
|
|
2374
2409
|
*/
|
|
2410
|
+
/* tslint:enable */
|
|
2375
2411
|
const parentOffsetEl = (nativeEl) => {
|
|
2376
2412
|
let offsetParent = nativeEl.offsetParent || document;
|
|
2377
2413
|
while (offsetParent && offsetParent !== document &&
|
|
@@ -2460,6 +2496,7 @@ const validateEmail = (c) => {
|
|
|
2460
2496
|
const uniqueId = () => {
|
|
2461
2497
|
return Math.random().toString(36).substr(2, 9);
|
|
2462
2498
|
};
|
|
2499
|
+
/* tslint:disable */
|
|
2463
2500
|
/**
|
|
2464
2501
|
* Its job is to parse number and format it based on given input.
|
|
2465
2502
|
* @param value can be a number or a string number
|
|
@@ -2467,6 +2504,7 @@ const uniqueId = () => {
|
|
|
2467
2504
|
* @param inDecimalSeparator separator for decimal part of the number default is ','
|
|
2468
2505
|
* @param inThousandSeparator separator for the whole part of the number default is ''
|
|
2469
2506
|
*/
|
|
2507
|
+
/* tslint:enable */
|
|
2470
2508
|
const formatNumber = (value, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = '') => {
|
|
2471
2509
|
if (inDecimalSeparator || inThousandSeparator) {
|
|
2472
2510
|
console.warn('The inDecimalSeparator and inThousandSeparator are deprecated. They will be a ' +
|
|
@@ -2634,9 +2672,9 @@ class EuiPermissionService extends EuiService {
|
|
|
2634
2672
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2635
2673
|
}
|
|
2636
2674
|
}
|
|
2637
|
-
/** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2638
|
-
/** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2675
|
+
/** @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 });
|
|
2676
|
+
/** @nocollapse */ /** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
|
|
2677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2640
2678
|
type: Injectable,
|
|
2641
2679
|
args: [{
|
|
2642
2680
|
providedIn: 'root',
|
|
@@ -2699,9 +2737,9 @@ class UxDynamicMenuService {
|
|
|
2699
2737
|
});
|
|
2700
2738
|
}
|
|
2701
2739
|
}
|
|
2702
|
-
/** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2703
|
-
/** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2740
|
+
/** @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 });
|
|
2741
|
+
/** @nocollapse */ /** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
|
|
2742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicMenuService, decorators: [{
|
|
2705
2743
|
type: Injectable,
|
|
2706
2744
|
args: [{
|
|
2707
2745
|
providedIn: 'root',
|
|
@@ -2769,9 +2807,9 @@ class UxErrorFeedbackService {
|
|
|
2769
2807
|
return new UxErrorManager(this, true);
|
|
2770
2808
|
}
|
|
2771
2809
|
}
|
|
2772
|
-
/** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2773
|
-
/** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2774
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2810
|
+
/** @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 });
|
|
2811
|
+
/** @nocollapse */ /** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
|
|
2812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
|
|
2775
2813
|
type: Injectable,
|
|
2776
2814
|
args: [{
|
|
2777
2815
|
providedIn: 'root'
|
|
@@ -2866,9 +2904,9 @@ class UxDynamicComponentService {
|
|
|
2866
2904
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2867
2905
|
}
|
|
2868
2906
|
}
|
|
2869
|
-
/** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
2870
|
-
/** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
2871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
2907
|
+
/** @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 });
|
|
2908
|
+
/** @nocollapse */ /** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
|
|
2909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxDynamicComponentService, decorators: [{
|
|
2872
2910
|
type: Injectable,
|
|
2873
2911
|
args: [{ providedIn: 'root' }]
|
|
2874
2912
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
|
|
@@ -3583,9 +3621,9 @@ class UxTimezoneService {
|
|
|
3583
3621
|
});
|
|
3584
3622
|
}
|
|
3585
3623
|
}
|
|
3586
|
-
/** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
3587
|
-
/** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
3588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
3624
|
+
/** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3625
|
+
/** @nocollapse */ /** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService });
|
|
3626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxTimezoneService, decorators: [{
|
|
3589
3627
|
type: Injectable
|
|
3590
3628
|
}] });
|
|
3591
3629
|
|
|
@@ -3628,22 +3666,18 @@ class AsyncStorageService extends StorageService {
|
|
|
3628
3666
|
|
|
3629
3667
|
class AsyncStorageServiceMock extends AsyncStorageService {
|
|
3630
3668
|
ready() {
|
|
3631
|
-
// tslint:disable-next-line:deprecation
|
|
3632
3669
|
return of({});
|
|
3633
3670
|
}
|
|
3634
3671
|
name() {
|
|
3635
3672
|
return null;
|
|
3636
3673
|
}
|
|
3637
3674
|
get() {
|
|
3638
|
-
// tslint:disable-next-line:deprecation
|
|
3639
3675
|
return of({});
|
|
3640
3676
|
}
|
|
3641
3677
|
set() {
|
|
3642
|
-
// tslint:disable-next-line:deprecation
|
|
3643
3678
|
return of({});
|
|
3644
3679
|
}
|
|
3645
3680
|
remove() {
|
|
3646
|
-
// tslint:disable-next-line:deprecation
|
|
3647
3681
|
return of({});
|
|
3648
3682
|
}
|
|
3649
3683
|
setAsync() {
|
|
@@ -3715,9 +3749,9 @@ class LocalStorageService extends StorageService {
|
|
|
3715
3749
|
}
|
|
3716
3750
|
}
|
|
3717
3751
|
LocalStorageService.NAME = 'LocalStorageService';
|
|
3718
|
-
/** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
3719
|
-
/** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
3720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
3752
|
+
/** @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 });
|
|
3753
|
+
/** @nocollapse */ /** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService });
|
|
3754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
3721
3755
|
type: Injectable
|
|
3722
3756
|
}], ctorParameters: function () {
|
|
3723
3757
|
return [{ type: LogService, decorators: [{
|
|
@@ -3788,9 +3822,9 @@ class SessionStorageService extends StorageService {
|
|
|
3788
3822
|
}
|
|
3789
3823
|
}
|
|
3790
3824
|
SessionStorageService.NAME = 'SessionStorageService';
|
|
3791
|
-
/** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
3792
|
-
/** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
3793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
3825
|
+
/** @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 });
|
|
3826
|
+
/** @nocollapse */ /** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService });
|
|
3827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
3794
3828
|
type: Injectable
|
|
3795
3829
|
}], ctorParameters: function () {
|
|
3796
3830
|
return [{ type: LogService, decorators: [{
|
|
@@ -3798,7 +3832,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ng
|
|
|
3798
3832
|
}] }];
|
|
3799
3833
|
} });
|
|
3800
3834
|
|
|
3835
|
+
/* tslint:disable */
|
|
3801
3836
|
/** @internal */
|
|
3837
|
+
/* tslint:enable */
|
|
3802
3838
|
const localForage = 'defineDriver' in lf ? lf : lf['default'];
|
|
3803
3839
|
const LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken('LOCAL_FORAGE_SERVICE_CONFIG');
|
|
3804
3840
|
/**
|
|
@@ -3879,9 +3915,9 @@ class LocalForageService extends AsyncStorageService {
|
|
|
3879
3915
|
}
|
|
3880
3916
|
}
|
|
3881
3917
|
LocalForageService.NAME = 'LocalForageService';
|
|
3882
|
-
/** @nocollapse */ /** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
3883
|
-
/** @nocollapse */ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
3884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
3918
|
+
/** @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 });
|
|
3919
|
+
/** @nocollapse */ /** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService });
|
|
3920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocalForageService, decorators: [{
|
|
3885
3921
|
type: Injectable
|
|
3886
3922
|
}], ctorParameters: function () {
|
|
3887
3923
|
return [{ type: undefined, decorators: [{
|
|
@@ -3972,8 +4008,13 @@ class LocaleService extends EuiService {
|
|
|
3972
4008
|
addLocale(id) {
|
|
3973
4009
|
return this.loadLocale(id);
|
|
3974
4010
|
}
|
|
4011
|
+
get previousLocale() {
|
|
4012
|
+
var _a;
|
|
4013
|
+
return ((_a = this.prevStateInstance) === null || _a === void 0 ? void 0 : _a.id) || this.currentLocale;
|
|
4014
|
+
}
|
|
3975
4015
|
get currentLocale() {
|
|
3976
|
-
|
|
4016
|
+
var _a;
|
|
4017
|
+
return (_a = this.stateInstance) === null || _a === void 0 ? void 0 : _a.id;
|
|
3977
4018
|
}
|
|
3978
4019
|
/**
|
|
3979
4020
|
* load and register locale data dynamically
|
|
@@ -4005,9 +4046,11 @@ class LocaleService extends EuiService {
|
|
|
4005
4046
|
bindTranslateServiceLangChangeToState() {
|
|
4006
4047
|
if (this.i18n) {
|
|
4007
4048
|
this.i18n.onStateChange.pipe(takeUntil(this.subNotifier),
|
|
4049
|
+
// filter out null values
|
|
4050
|
+
filter(state => state.activeLang !== null),
|
|
4008
4051
|
// BEWARE: filter is based on convention that locale id sliced(2) will match activeLang e.g. en-US => en
|
|
4009
4052
|
// Also, if activeLang is 'en' and locale is 'en-GB' it will not trigger locale change
|
|
4010
|
-
filter(state => { var _a
|
|
4053
|
+
filter(state => { var _a; return state.activeLang.toLowerCase() !== ((_a = this.stateInstance) === null || _a === void 0 ? void 0 : _a.id.slice(0, 2).toLowerCase()); }),
|
|
4011
4054
|
// to check if registration of locale otherwise register it
|
|
4012
4055
|
switchMap(value => of(value).pipe(
|
|
4013
4056
|
// getLocaleId may throw Error(`Missing locale data for the locale "${locale}".`);
|
|
@@ -4021,7 +4064,7 @@ class LocaleService extends EuiService {
|
|
|
4021
4064
|
if (this.log) {
|
|
4022
4065
|
this.logger.debug(error);
|
|
4023
4066
|
}
|
|
4024
|
-
return this.loadLocale(value.activeLang).pipe(filter((s) => s.success), map(() => this.localeMapper(value.activeLang)), catchError(e => {
|
|
4067
|
+
return this.loadLocale(value === null || value === void 0 ? void 0 : value.activeLang).pipe(filter((s) => s.success), map(() => this.localeMapper(value === null || value === void 0 ? void 0 : value.activeLang)), catchError(e => {
|
|
4025
4068
|
if (this.log) {
|
|
4026
4069
|
this.logger.debug('Something went terribly really wrong during locale loading', e.err.message);
|
|
4027
4070
|
}
|
|
@@ -4071,8 +4114,10 @@ class LocaleService extends EuiService {
|
|
|
4071
4114
|
importLocale(id) {
|
|
4072
4115
|
// in case of an error, catch it and return null
|
|
4073
4116
|
return import(
|
|
4074
|
-
/*
|
|
4075
|
-
|
|
4117
|
+
/* webpackExclude: /\.d\.ts$/ */
|
|
4118
|
+
/* webpackMode: "lazy-once" */
|
|
4119
|
+
/* webpackChunkName: "i18n-base" */
|
|
4120
|
+
`@/../node_modules/@angular/common/locales/${id}`)
|
|
4076
4121
|
.then(m => m.default)
|
|
4077
4122
|
.catch(error => {
|
|
4078
4123
|
if (this.log) {
|
|
@@ -4089,8 +4134,10 @@ class LocaleService extends EuiService {
|
|
|
4089
4134
|
importExtraLocale(id) {
|
|
4090
4135
|
// in case of an error, catch it and return null
|
|
4091
4136
|
return import(
|
|
4092
|
-
/*
|
|
4093
|
-
|
|
4137
|
+
/* webpackExclude: /\.d\.ts$/ */
|
|
4138
|
+
/* webpackMode: "lazy-once" */
|
|
4139
|
+
/* webpackChunkName: "i18n-extra" */
|
|
4140
|
+
`@/../node_modules/@angular/common/locales/extra/${id}`)
|
|
4094
4141
|
.then(m => m.default)
|
|
4095
4142
|
.catch(error => {
|
|
4096
4143
|
if (this.log) {
|
|
@@ -4105,12 +4152,12 @@ class LocaleService extends EuiService {
|
|
|
4105
4152
|
* @private
|
|
4106
4153
|
*/
|
|
4107
4154
|
importDataAndExtraLocale(localeId) {
|
|
4108
|
-
return from(this.importLocale(localeId)).pipe(mergeMap(() => from(this.importExtraLocale(localeId)).pipe(map((
|
|
4155
|
+
return from(this.importLocale(localeId)).pipe(mergeMap((data) => from(this.importExtraLocale(localeId)).pipe(map((extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
|
|
4109
4156
|
}
|
|
4110
4157
|
}
|
|
4111
|
-
/** @nocollapse */ /** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4112
|
-
/** @nocollapse */ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4158
|
+
/** @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 });
|
|
4159
|
+
/** @nocollapse */ /** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocaleService, providedIn: 'root' });
|
|
4160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LocaleService, decorators: [{
|
|
4114
4161
|
type: Injectable,
|
|
4115
4162
|
args: [{
|
|
4116
4163
|
providedIn: 'root'
|
|
@@ -4167,9 +4214,9 @@ class UserService extends EuiService {
|
|
|
4167
4214
|
this.store.dispatch(new UpdateUserStateAction(userState));
|
|
4168
4215
|
}
|
|
4169
4216
|
}
|
|
4170
|
-
/** @nocollapse */ /** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4171
|
-
/** @nocollapse */ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4217
|
+
/** @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 });
|
|
4218
|
+
/** @nocollapse */ /** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
4219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserService, decorators: [{
|
|
4173
4220
|
type: Injectable,
|
|
4174
4221
|
args: [{
|
|
4175
4222
|
providedIn: 'root',
|
|
@@ -4200,9 +4247,9 @@ class UserServiceMock extends UserService {
|
|
|
4200
4247
|
return of('anonymous');
|
|
4201
4248
|
}
|
|
4202
4249
|
}
|
|
4203
|
-
/** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4204
|
-
/** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4250
|
+
/** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4251
|
+
/** @nocollapse */ /** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock });
|
|
4252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
4206
4253
|
type: Injectable
|
|
4207
4254
|
}], ctorParameters: function () { return []; } });
|
|
4208
4255
|
|
|
@@ -4232,9 +4279,9 @@ class AddLangParamInterceptor {
|
|
|
4232
4279
|
}));
|
|
4233
4280
|
}
|
|
4234
4281
|
}
|
|
4235
|
-
/** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4236
|
-
/** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4282
|
+
/** @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 });
|
|
4283
|
+
/** @nocollapse */ /** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor });
|
|
4284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
4238
4285
|
type: Injectable
|
|
4239
4286
|
}], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
|
|
4240
4287
|
|
|
@@ -4251,9 +4298,9 @@ class CachePreventionInterceptor {
|
|
|
4251
4298
|
}));
|
|
4252
4299
|
}
|
|
4253
4300
|
}
|
|
4254
|
-
/** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4255
|
-
/** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4301
|
+
/** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4302
|
+
/** @nocollapse */ /** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor });
|
|
4303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
4257
4304
|
type: Injectable
|
|
4258
4305
|
}] });
|
|
4259
4306
|
|
|
@@ -4264,9 +4311,9 @@ class CorsSecurityInterceptor {
|
|
|
4264
4311
|
}));
|
|
4265
4312
|
}
|
|
4266
4313
|
}
|
|
4267
|
-
/** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4268
|
-
/** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4314
|
+
/** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4315
|
+
/** @nocollapse */ /** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor });
|
|
4316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
4270
4317
|
type: Injectable
|
|
4271
4318
|
}] });
|
|
4272
4319
|
|
|
@@ -4277,9 +4324,9 @@ class CsrfPreventionInterceptor {
|
|
|
4277
4324
|
}));
|
|
4278
4325
|
}
|
|
4279
4326
|
}
|
|
4280
|
-
/** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4281
|
-
/** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4327
|
+
/** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4328
|
+
/** @nocollapse */ /** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor });
|
|
4329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
4283
4330
|
type: Injectable
|
|
4284
4331
|
}] });
|
|
4285
4332
|
|
|
@@ -4330,13 +4377,12 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
4330
4377
|
}
|
|
4331
4378
|
}
|
|
4332
4379
|
reauthenticate(request, response) {
|
|
4333
|
-
// tslint:disable-next-line:deprecation
|
|
4334
4380
|
document.location.reload();
|
|
4335
4381
|
}
|
|
4336
4382
|
}
|
|
4337
|
-
/** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4338
|
-
/** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4383
|
+
/** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4384
|
+
/** @nocollapse */ /** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
|
|
4385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4340
4386
|
type: Injectable
|
|
4341
4387
|
}] });
|
|
4342
4388
|
|
|
@@ -4357,9 +4403,9 @@ class UxRequestErrorModelInterceptor {
|
|
|
4357
4403
|
}));
|
|
4358
4404
|
}
|
|
4359
4405
|
}
|
|
4360
|
-
/** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4361
|
-
/** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4406
|
+
/** @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 });
|
|
4407
|
+
/** @nocollapse */ /** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor });
|
|
4408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4363
4409
|
type: Injectable
|
|
4364
4410
|
}], ctorParameters: function () {
|
|
4365
4411
|
return [{ type: undefined, decorators: [{
|
|
@@ -4503,9 +4549,9 @@ class OpenIdConnectInterceptor {
|
|
|
4503
4549
|
}
|
|
4504
4550
|
}
|
|
4505
4551
|
}
|
|
4506
|
-
/** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4507
|
-
/** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4552
|
+
/** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4553
|
+
/** @nocollapse */ /** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor });
|
|
4554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
|
|
4509
4555
|
type: Injectable
|
|
4510
4556
|
}], ctorParameters: function () { return []; } });
|
|
4511
4557
|
|
|
@@ -4535,9 +4581,9 @@ class OpenIdConnectService {
|
|
|
4535
4581
|
return this.userDetails;
|
|
4536
4582
|
}
|
|
4537
4583
|
}
|
|
4538
|
-
/** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
4539
|
-
/** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.
|
|
4540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
4584
|
+
/** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4585
|
+
/** @nocollapse */ /** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
|
|
4586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: OpenIdConnectService, decorators: [{
|
|
4541
4587
|
type: Injectable,
|
|
4542
4588
|
args: [{
|
|
4543
4589
|
providedIn: 'root'
|