@eui/core 15.0.0-next.9 → 15.0.0-rc.10
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 +41 -37
- package/docs/injectables/UxAppShellService.html +94 -0
- package/docs/interfaces/UIState.html +45 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +1 -0
- package/docs/properties.html +1 -1
- package/esm2020/lib/eui-core.module.mjs +5 -5
- package/esm2020/lib/interceptors/add-lang-param.interceptor.mjs +4 -4
- 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 -4
- 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/errors/global-error-handler.mjs +4 -4
- package/esm2020/lib/services/errors/http-error-handler.interceptor.mjs +4 -4
- package/esm2020/lib/services/i18n/i18n.loader.mjs +4 -4
- package/esm2020/lib/services/i18n/i18n.service.mjs +4 -4
- package/esm2020/lib/services/i18n/i18n.service.mock.mjs +4 -4
- package/esm2020/lib/services/locale/locale.service.mjs +32 -75
- package/esm2020/lib/services/locale/locale.service.mock.mjs +17 -6
- package/esm2020/lib/services/log/log.module.mjs +5 -5
- package/esm2020/lib/services/log/log.service.mjs +4 -4
- package/esm2020/lib/services/permission/permission.service.mjs +4 -4
- package/esm2020/lib/services/queue/api-queue.service.mjs +4 -4
- package/esm2020/lib/services/storage/local-forage.service.mjs +4 -4
- package/esm2020/lib/services/storage/local-storage.service.mjs +4 -4
- package/esm2020/lib/services/storage/session-storage.service.mjs +4 -4
- package/esm2020/lib/services/store/effects/app.effects.mjs +4 -4
- package/esm2020/lib/services/store/store.service.mjs +4 -4
- package/esm2020/lib/services/store/store.service.mock.mjs +4 -4
- package/esm2020/lib/services/user/user.service.mjs +4 -4
- package/esm2020/lib/services/user/user.service.mock.mjs +4 -4
- package/esm2020/lib/services/ux-app-shell.service.mjs +21 -4
- package/esm2020/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +4 -4
- package/esm2020/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +4 -4
- package/esm2020/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +4 -4
- package/esm2020/lib/services/ux-timezone.service.mjs +4 -4
- package/fesm2015/eui-core.mjs +151 -170
- package/fesm2015/eui-core.mjs.map +1 -1
- package/fesm2020/eui-core.mjs +154 -170
- package/fesm2020/eui-core.mjs.map +1 -1
- package/lib/services/locale/locale.service.d.ts +0 -21
- package/lib/services/locale/locale.service.d.ts.map +1 -1
- package/lib/services/locale/locale.service.mock.d.ts +1 -0
- package/lib/services/locale/locale.service.mock.d.ts.map +1 -1
- package/lib/services/ux-app-shell.service.d.ts +4 -0
- package/lib/services/ux-app-shell.service.d.ts.map +1 -1
- package/package.json +1 -1
package/fesm2020/eui-core.mjs
CHANGED
|
@@ -25,6 +25,8 @@ import { By } from '@angular/platform-browser';
|
|
|
25
25
|
import { FormGroup, FormArray } from '@angular/forms';
|
|
26
26
|
import { DomPortalOutlet, ComponentPortal, PortalInjector } from '@angular/cdk/portal';
|
|
27
27
|
import * as lf from 'localforage';
|
|
28
|
+
import localeFr from '@angular/common/locales/fr';
|
|
29
|
+
import localeEl from '@angular/common/locales/el';
|
|
28
30
|
|
|
29
31
|
/** default log configuration */
|
|
30
32
|
const DEFAULT_LOG_CONFIG = {
|
|
@@ -194,9 +196,9 @@ class LogService extends Logger {
|
|
|
194
196
|
return logger;
|
|
195
197
|
}
|
|
196
198
|
}
|
|
197
|
-
/** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
198
|
-
/** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
199
|
+
/** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
200
|
+
/** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogService });
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogService, decorators: [{
|
|
200
202
|
type: Injectable
|
|
201
203
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
202
204
|
type: Inject,
|
|
@@ -368,10 +370,10 @@ class LogModule {
|
|
|
368
370
|
};
|
|
369
371
|
}
|
|
370
372
|
}
|
|
371
|
-
/** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
372
|
-
/** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0
|
|
373
|
-
/** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0
|
|
374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
373
|
+
/** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
374
|
+
/** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: LogModule });
|
|
375
|
+
/** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogModule });
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogModule, decorators: [{
|
|
375
377
|
type: NgModule
|
|
376
378
|
}] });
|
|
377
379
|
|
|
@@ -463,9 +465,9 @@ class StoreService {
|
|
|
463
465
|
}
|
|
464
466
|
}
|
|
465
467
|
}
|
|
466
|
-
/** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
467
|
-
/** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
468
|
+
/** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreService, deps: [{ token: i1$1.Store, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
469
|
+
/** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreService, providedIn: 'root' });
|
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreService, decorators: [{
|
|
469
471
|
type: Injectable,
|
|
470
472
|
args: [{
|
|
471
473
|
providedIn: 'root',
|
|
@@ -818,9 +820,9 @@ class I18nLoader {
|
|
|
818
820
|
return undefined;
|
|
819
821
|
}
|
|
820
822
|
}
|
|
821
|
-
/** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
822
|
-
/** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
823
|
+
/** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nLoader, deps: [{ token: i1$2.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
824
|
+
/** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nLoader });
|
|
825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nLoader, decorators: [{
|
|
824
826
|
type: Injectable
|
|
825
827
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
|
|
826
828
|
type: Optional
|
|
@@ -1035,9 +1037,9 @@ class I18nService extends EuiLazyService {
|
|
|
1035
1037
|
this.document.documentElement.lang = lang;
|
|
1036
1038
|
}
|
|
1037
1039
|
}
|
|
1038
|
-
/** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1039
|
-
/** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1040
|
+
/** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i2.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1041
|
+
/** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nService, providedIn: 'root' });
|
|
1042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nService, decorators: [{
|
|
1041
1043
|
type: Injectable,
|
|
1042
1044
|
args: [{
|
|
1043
1045
|
providedIn: 'root',
|
|
@@ -1080,9 +1082,9 @@ class I18nServiceMock extends I18nService {
|
|
|
1080
1082
|
return of({ success: true });
|
|
1081
1083
|
}
|
|
1082
1084
|
}
|
|
1083
|
-
/** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1084
|
-
/** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1085
|
+
/** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1086
|
+
/** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nServiceMock });
|
|
1087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nServiceMock, decorators: [{
|
|
1086
1088
|
type: Injectable
|
|
1087
1089
|
}], ctorParameters: function () { return []; } });
|
|
1088
1090
|
|
|
@@ -1101,6 +1103,7 @@ const initialState = {
|
|
|
1101
1103
|
isSidebarExpandOnHover: true,
|
|
1102
1104
|
hasSidebar: false,
|
|
1103
1105
|
hasHeader: false,
|
|
1106
|
+
hasBreadcrumb: false,
|
|
1104
1107
|
hasHeaderLogo: false,
|
|
1105
1108
|
hasHeaderEnvironment: false,
|
|
1106
1109
|
hasToolbar: false,
|
|
@@ -1243,6 +1246,9 @@ class UxAppShellService {
|
|
|
1243
1246
|
isBlockDocumentActive: isActive,
|
|
1244
1247
|
});
|
|
1245
1248
|
}
|
|
1249
|
+
get hasHeader() {
|
|
1250
|
+
return this.state.hasHeader;
|
|
1251
|
+
}
|
|
1246
1252
|
// Edit mode
|
|
1247
1253
|
get isDimmerActive() {
|
|
1248
1254
|
return this.state.isDimmerActive;
|
|
@@ -1370,6 +1376,13 @@ class UxAppShellService {
|
|
|
1370
1376
|
});
|
|
1371
1377
|
this.activateHeaderCssVars();
|
|
1372
1378
|
}
|
|
1379
|
+
activateBreadcrumb() {
|
|
1380
|
+
this.setState({
|
|
1381
|
+
...this.state,
|
|
1382
|
+
hasBreadcrumb: true,
|
|
1383
|
+
});
|
|
1384
|
+
this.activateBreadcrumbCssVars();
|
|
1385
|
+
}
|
|
1373
1386
|
activateTopMessage(height) {
|
|
1374
1387
|
this.setState({
|
|
1375
1388
|
...this.state,
|
|
@@ -1395,6 +1408,8 @@ class UxAppShellService {
|
|
|
1395
1408
|
'--eui-app-header-height-default',
|
|
1396
1409
|
'--eui-app-header-height-active',
|
|
1397
1410
|
'--eui-app-header-height-shrink',
|
|
1411
|
+
'--eui-app-breadcrumb-height-default',
|
|
1412
|
+
'--eui-app-breadcrumb-height-active',
|
|
1398
1413
|
'--eui-app-top-message-height-default',
|
|
1399
1414
|
'--eui-app-top-message-height-active',
|
|
1400
1415
|
'--eui-app-top-message-height-shrink',
|
|
@@ -1415,6 +1430,7 @@ class UxAppShellService {
|
|
|
1415
1430
|
}
|
|
1416
1431
|
initCssVars() {
|
|
1417
1432
|
this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
|
|
1433
|
+
this.setCssVar('--eui-app-breadcrumb-height-default', '--eui-app-breadcrumb-height');
|
|
1418
1434
|
this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
|
|
1419
1435
|
this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
|
|
1420
1436
|
this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
|
|
@@ -1425,6 +1441,9 @@ class UxAppShellService {
|
|
|
1425
1441
|
activateHeaderCssVars() {
|
|
1426
1442
|
this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
|
|
1427
1443
|
}
|
|
1444
|
+
activateBreadcrumbCssVars() {
|
|
1445
|
+
this.setCssVar('--eui-app-breadcrumb-height-active', '--eui-app-breadcrumb-height');
|
|
1446
|
+
}
|
|
1428
1447
|
activateTopMessageCssVars(height) {
|
|
1429
1448
|
this._setCssVarValue('--eui-app-top-message-height', `${height}px`);
|
|
1430
1449
|
}
|
|
@@ -1718,9 +1737,9 @@ class UxAppShellService {
|
|
|
1718
1737
|
});
|
|
1719
1738
|
}
|
|
1720
1739
|
}
|
|
1721
|
-
/** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1722
|
-
/** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1740
|
+
/** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i1$2.HttpClient }, { token: PLATFORM_ID }, { token: i2$1.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1741
|
+
/** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
|
|
1742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxAppShellService, decorators: [{
|
|
1724
1743
|
type: Injectable,
|
|
1725
1744
|
args: [{
|
|
1726
1745
|
providedIn: 'root',
|
|
@@ -1777,9 +1796,9 @@ class CoreAppEffects {
|
|
|
1777
1796
|
})), { dispatch: false });
|
|
1778
1797
|
}
|
|
1779
1798
|
}
|
|
1780
|
-
/** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1781
|
-
/** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1799
|
+
/** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreAppEffects, deps: [{ token: i1$3.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: UxAppShellService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1800
|
+
/** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreAppEffects });
|
|
1801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreAppEffects, decorators: [{
|
|
1783
1802
|
type: Injectable
|
|
1784
1803
|
}], ctorParameters: function () { return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
|
|
1785
1804
|
type: Inject,
|
|
@@ -2042,9 +2061,9 @@ class StoreServiceMock extends StoreService {
|
|
|
2042
2061
|
return of({});
|
|
2043
2062
|
}
|
|
2044
2063
|
}
|
|
2045
|
-
/** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2046
|
-
/** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2064
|
+
/** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2065
|
+
/** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreServiceMock });
|
|
2066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
2048
2067
|
type: Injectable
|
|
2049
2068
|
}], ctorParameters: function () { return []; } });
|
|
2050
2069
|
|
|
@@ -2089,10 +2108,10 @@ class CoreModule {
|
|
|
2089
2108
|
};
|
|
2090
2109
|
}
|
|
2091
2110
|
}
|
|
2092
|
-
/** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2093
|
-
/** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0
|
|
2094
|
-
/** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0
|
|
2095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2111
|
+
/** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: CoreModule, optional: true, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2112
|
+
/** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: CoreModule });
|
|
2113
|
+
/** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreModule });
|
|
2114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreModule, decorators: [{
|
|
2096
2115
|
type: NgModule,
|
|
2097
2116
|
args: [{
|
|
2098
2117
|
imports: [
|
|
@@ -2215,9 +2234,9 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
2215
2234
|
super.handleError(error);
|
|
2216
2235
|
}
|
|
2217
2236
|
}
|
|
2218
|
-
/** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2219
|
-
/** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2237
|
+
/** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2238
|
+
/** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
|
|
2239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
2221
2240
|
type: Injectable,
|
|
2222
2241
|
args: [{
|
|
2223
2242
|
providedIn: 'root',
|
|
@@ -2265,9 +2284,9 @@ class HttpErrorHandlerInterceptor {
|
|
|
2265
2284
|
return routes.length > 0 ? routes[0] : null;
|
|
2266
2285
|
}
|
|
2267
2286
|
}
|
|
2268
|
-
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2269
|
-
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2287
|
+
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i0.Injector }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2288
|
+
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor });
|
|
2289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
2271
2290
|
type: Injectable
|
|
2272
2291
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2273
2292
|
type: Inject,
|
|
@@ -2414,9 +2433,9 @@ class ApiQueueService {
|
|
|
2414
2433
|
.pipe(tap(() => this.removeQueueItem(id)));
|
|
2415
2434
|
}
|
|
2416
2435
|
}
|
|
2417
|
-
/** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2418
|
-
/** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2436
|
+
/** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ApiQueueService, deps: [{ token: StoreService }, { token: i1$2.HttpClient }, { token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2437
|
+
/** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
|
|
2438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
2420
2439
|
type: Injectable,
|
|
2421
2440
|
args: [{
|
|
2422
2441
|
providedIn: 'root',
|
|
@@ -2769,9 +2788,9 @@ class EuiPermissionService extends EuiService {
|
|
|
2769
2788
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2770
2789
|
}
|
|
2771
2790
|
}
|
|
2772
|
-
/** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2773
|
-
/** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2774
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2791
|
+
/** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2792
|
+
/** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
|
|
2793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2775
2794
|
type: Injectable,
|
|
2776
2795
|
args: [{
|
|
2777
2796
|
providedIn: 'root',
|
|
@@ -2832,9 +2851,9 @@ class UxDynamicMenuService {
|
|
|
2832
2851
|
});
|
|
2833
2852
|
}
|
|
2834
2853
|
}
|
|
2835
|
-
/** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2836
|
-
/** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2854
|
+
/** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2855
|
+
/** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
|
|
2856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicMenuService, decorators: [{
|
|
2838
2857
|
type: Injectable,
|
|
2839
2858
|
args: [{
|
|
2840
2859
|
providedIn: 'root',
|
|
@@ -2902,9 +2921,9 @@ class UxErrorFeedbackService {
|
|
|
2902
2921
|
return new UxErrorManager(this, true);
|
|
2903
2922
|
}
|
|
2904
2923
|
}
|
|
2905
|
-
/** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2906
|
-
/** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2924
|
+
/** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxErrorFeedbackService, deps: [{ token: UxAppShellService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2925
|
+
/** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
|
|
2926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
|
|
2908
2927
|
type: Injectable,
|
|
2909
2928
|
args: [{
|
|
2910
2929
|
providedIn: 'root'
|
|
@@ -3000,9 +3019,9 @@ class UxDynamicComponentService {
|
|
|
3000
3019
|
return new PortalInjector(this.injector, injectorTokens);
|
|
3001
3020
|
}
|
|
3002
3021
|
}
|
|
3003
|
-
/** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3004
|
-
/** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3022
|
+
/** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3023
|
+
/** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
|
|
3024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicComponentService, decorators: [{
|
|
3006
3025
|
type: Injectable,
|
|
3007
3026
|
args: [{ providedIn: 'root' }]
|
|
3008
3027
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
|
|
@@ -3717,9 +3736,9 @@ class UxTimezoneService {
|
|
|
3717
3736
|
});
|
|
3718
3737
|
}
|
|
3719
3738
|
}
|
|
3720
|
-
/** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3721
|
-
/** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3739
|
+
/** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3740
|
+
/** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxTimezoneService });
|
|
3741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxTimezoneService, decorators: [{
|
|
3723
3742
|
type: Injectable
|
|
3724
3743
|
}] });
|
|
3725
3744
|
|
|
@@ -3845,9 +3864,9 @@ class LocalStorageService extends StorageService {
|
|
|
3845
3864
|
}
|
|
3846
3865
|
}
|
|
3847
3866
|
LocalStorageService.NAME = 'LocalStorageService';
|
|
3848
|
-
/** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3849
|
-
/** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3867
|
+
/** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3868
|
+
/** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalStorageService });
|
|
3869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
3851
3870
|
type: Injectable
|
|
3852
3871
|
}], ctorParameters: function () { return [{ type: LogService, decorators: [{
|
|
3853
3872
|
type: Optional
|
|
@@ -3916,9 +3935,9 @@ class SessionStorageService extends StorageService {
|
|
|
3916
3935
|
}
|
|
3917
3936
|
}
|
|
3918
3937
|
SessionStorageService.NAME = 'SessionStorageService';
|
|
3919
|
-
/** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3920
|
-
/** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3938
|
+
/** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: SessionStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3939
|
+
/** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: SessionStorageService });
|
|
3940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
3922
3941
|
type: Injectable
|
|
3923
3942
|
}], ctorParameters: function () { return [{ type: LogService, decorators: [{
|
|
3924
3943
|
type: Optional
|
|
@@ -4005,9 +4024,9 @@ class LocalForageService extends AsyncStorageService {
|
|
|
4005
4024
|
}
|
|
4006
4025
|
}
|
|
4007
4026
|
LocalForageService.NAME = 'LocalForageService';
|
|
4008
|
-
/** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4009
|
-
/** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4010
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4027
|
+
/** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4028
|
+
/** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalForageService });
|
|
4029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalForageService, decorators: [{
|
|
4011
4030
|
type: Injectable
|
|
4012
4031
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4013
4032
|
type: Inject,
|
|
@@ -4107,23 +4126,31 @@ class LocaleService extends EuiService {
|
|
|
4107
4126
|
* @param locale array of locale to load
|
|
4108
4127
|
*/
|
|
4109
4128
|
loadLocale(locale) {
|
|
4110
|
-
locale = Array.isArray(locale) ? locale : [locale];
|
|
4111
|
-
const localeImports
|
|
4112
|
-
//
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
return
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
})
|
|
4129
|
+
// locale = Array.isArray(locale) ? locale : [locale];
|
|
4130
|
+
// const localeImports: Observable<{ data: any, localeId: string, extraData: any }>[]
|
|
4131
|
+
// = this.filterRegisteredLocales(locale).map(this.importDataAndExtraLocale.bind(this));
|
|
4132
|
+
//
|
|
4133
|
+
// // in case localeImports array is empty because locale exists, Observable still needs to complete
|
|
4134
|
+
// if (localeImports.length < 1) {
|
|
4135
|
+
// return of({ success: true });
|
|
4136
|
+
// }
|
|
4137
|
+
//
|
|
4138
|
+
// return forkJoin(...localeImports).pipe(
|
|
4139
|
+
// takeUntil(this.subNotifier),
|
|
4140
|
+
// map(localeData => {
|
|
4141
|
+
// // filter out null results and registerLocaleData including extra
|
|
4142
|
+
// localeData.filter(({ data }) => data)
|
|
4143
|
+
// .forEach(({ data, localeId, extraData }) => registerLocaleData(data, localeId, extraData));
|
|
4144
|
+
// return { success: true };
|
|
4145
|
+
// }),
|
|
4146
|
+
// catchError(error => {
|
|
4147
|
+
// if (this.log) {
|
|
4148
|
+
// this.logger.debug(`Locale load error: ${error.message}`, error);
|
|
4149
|
+
// }
|
|
4150
|
+
// return of({ success: false, error: error });
|
|
4151
|
+
// })
|
|
4152
|
+
// );
|
|
4153
|
+
return of({ success: true });
|
|
4127
4154
|
}
|
|
4128
4155
|
/**
|
|
4129
4156
|
* listen for language changes and dynamically set locale accordingly. In case of non registered locale register it
|
|
@@ -4194,61 +4221,10 @@ class LocaleService extends EuiService {
|
|
|
4194
4221
|
}
|
|
4195
4222
|
});
|
|
4196
4223
|
}
|
|
4197
|
-
/**
|
|
4198
|
-
* returns an Observable which loads the locale based on provided ID
|
|
4199
|
-
*
|
|
4200
|
-
* @param id the locale id e.g. en, el-CY
|
|
4201
|
-
* @private
|
|
4202
|
-
*/
|
|
4203
|
-
importLocale(id) {
|
|
4204
|
-
// in case of an error, catch it and return null
|
|
4205
|
-
return import(
|
|
4206
|
-
/* webpackExclude: /\.d\.ts$/ */
|
|
4207
|
-
/* webpackMode: "lazy-once" */
|
|
4208
|
-
/* webpackChunkName: "i18n-base" */
|
|
4209
|
-
`@/../node_modules/@angular/common/locales/${id}`)
|
|
4210
|
-
.then(m => m.default)
|
|
4211
|
-
.catch(error => {
|
|
4212
|
-
if (this.log) {
|
|
4213
|
-
this.logger.debug(`Locale with ID: "${id}" failed to load. Error: ${error.message}`, error);
|
|
4214
|
-
}
|
|
4215
|
-
return null;
|
|
4216
|
-
});
|
|
4217
|
-
}
|
|
4218
|
-
/**
|
|
4219
|
-
* returns a Promise which loads the locale based on provided ID
|
|
4220
|
-
*
|
|
4221
|
-
* @param id the locale id e.g. en, el-CY
|
|
4222
|
-
* @private
|
|
4223
|
-
*/
|
|
4224
|
-
importExtraLocale(id) {
|
|
4225
|
-
// in case of an error, catch it and return null
|
|
4226
|
-
return import(
|
|
4227
|
-
/* webpackExclude: /\.d\.ts$/ */
|
|
4228
|
-
/* webpackMode: "lazy-once" */
|
|
4229
|
-
/* webpackChunkName: "i18n-extra" */
|
|
4230
|
-
`@/../node_modules/@angular/common/locales/extra/${id}`)
|
|
4231
|
-
.then(m => m.default)
|
|
4232
|
-
.catch(error => {
|
|
4233
|
-
if (this.log) {
|
|
4234
|
-
this.logger.debug(`Extra Locale with ID: "${id}" failed to load. Error: ${error.message}`, error);
|
|
4235
|
-
}
|
|
4236
|
-
return null;
|
|
4237
|
-
});
|
|
4238
|
-
}
|
|
4239
|
-
/**
|
|
4240
|
-
* Imports Locale and then Extra. It returns the Object which registerLocale(...) function needs.
|
|
4241
|
-
*
|
|
4242
|
-
* @param localeId The id of the locale
|
|
4243
|
-
* @private
|
|
4244
|
-
*/
|
|
4245
|
-
importDataAndExtraLocale(localeId) {
|
|
4246
|
-
return from(this.importLocale(localeId)).pipe(mergeMap((data) => from(this.importExtraLocale(localeId)).pipe(map((extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
|
|
4247
|
-
}
|
|
4248
4224
|
}
|
|
4249
|
-
/** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4250
|
-
/** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4225
|
+
/** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleService, deps: [{ token: StoreService }, { token: GLOBAL_CONFIG_TOKEN }, { token: LOCALE_ID }, { token: LOCALE_ID_MAPPER, optional: true }, { token: I18nService, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4226
|
+
/** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleService, providedIn: 'root' });
|
|
4227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleService, decorators: [{
|
|
4252
4228
|
type: Injectable,
|
|
4253
4229
|
args: [{
|
|
4254
4230
|
providedIn: 'root'
|
|
@@ -4275,21 +4251,29 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4275
4251
|
super(null, { locale: { id: 'en', available: [] } }, locale_id, null, null, null);
|
|
4276
4252
|
this.locale_id = locale_id;
|
|
4277
4253
|
this.DEFAULT_LOCALE = 'en';
|
|
4254
|
+
this.stateSubject = new BehaviorSubject({ id: this.DEFAULT_LOCALE });
|
|
4278
4255
|
}
|
|
4279
4256
|
getState() {
|
|
4280
|
-
return
|
|
4257
|
+
return this.stateSubject.asObservable();
|
|
4281
4258
|
}
|
|
4282
4259
|
updateState(state) {
|
|
4283
4260
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4261
|
+
if (state.id === 'fr') {
|
|
4262
|
+
registerLocaleData(localeFr, 'fr');
|
|
4263
|
+
}
|
|
4264
|
+
else if (state.id === 'el') {
|
|
4265
|
+
registerLocaleData(localeEl, 'fr');
|
|
4266
|
+
}
|
|
4267
|
+
this.stateSubject.next(state);
|
|
4284
4268
|
}
|
|
4285
4269
|
init(state) {
|
|
4286
4270
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4287
4271
|
return of({ success: true });
|
|
4288
4272
|
}
|
|
4289
4273
|
}
|
|
4290
|
-
/** @nocollapse */ LocaleServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4291
|
-
/** @nocollapse */ LocaleServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4274
|
+
/** @nocollapse */ LocaleServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleServiceMock, deps: [{ token: LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4275
|
+
/** @nocollapse */ LocaleServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleServiceMock });
|
|
4276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleServiceMock, decorators: [{
|
|
4293
4277
|
type: Injectable
|
|
4294
4278
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4295
4279
|
type: Optional
|
|
@@ -4331,9 +4315,9 @@ class UserService extends EuiService {
|
|
|
4331
4315
|
this.store.dispatch(new UpdateUserStateAction(userState));
|
|
4332
4316
|
}
|
|
4333
4317
|
}
|
|
4334
|
-
/** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4335
|
-
/** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4318
|
+
/** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4319
|
+
/** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
4320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserService, decorators: [{
|
|
4337
4321
|
type: Injectable,
|
|
4338
4322
|
args: [{
|
|
4339
4323
|
providedIn: 'root',
|
|
@@ -4364,9 +4348,9 @@ class UserServiceMock extends UserService {
|
|
|
4364
4348
|
return of('anonymous');
|
|
4365
4349
|
}
|
|
4366
4350
|
}
|
|
4367
|
-
/** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4368
|
-
/** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4351
|
+
/** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4352
|
+
/** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserServiceMock });
|
|
4353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
4370
4354
|
type: Injectable
|
|
4371
4355
|
}], ctorParameters: function () { return []; } });
|
|
4372
4356
|
|
|
@@ -4396,9 +4380,9 @@ class AddLangParamInterceptor {
|
|
|
4396
4380
|
}));
|
|
4397
4381
|
}
|
|
4398
4382
|
}
|
|
4399
|
-
/** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4400
|
-
/** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4383
|
+
/** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AddLangParamInterceptor, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4384
|
+
/** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AddLangParamInterceptor });
|
|
4385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
4402
4386
|
type: Injectable
|
|
4403
4387
|
}], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
|
|
4404
4388
|
|
|
@@ -4415,9 +4399,9 @@ class CachePreventionInterceptor {
|
|
|
4415
4399
|
}));
|
|
4416
4400
|
}
|
|
4417
4401
|
}
|
|
4418
|
-
/** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4419
|
-
/** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4402
|
+
/** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4403
|
+
/** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CachePreventionInterceptor });
|
|
4404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
4421
4405
|
type: Injectable
|
|
4422
4406
|
}] });
|
|
4423
4407
|
|
|
@@ -4428,9 +4412,9 @@ class CorsSecurityInterceptor {
|
|
|
4428
4412
|
}));
|
|
4429
4413
|
}
|
|
4430
4414
|
}
|
|
4431
|
-
/** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4432
|
-
/** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4415
|
+
/** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4416
|
+
/** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorsSecurityInterceptor });
|
|
4417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
4434
4418
|
type: Injectable
|
|
4435
4419
|
}] });
|
|
4436
4420
|
|
|
@@ -4441,9 +4425,9 @@ class CsrfPreventionInterceptor {
|
|
|
4441
4425
|
}));
|
|
4442
4426
|
}
|
|
4443
4427
|
}
|
|
4444
|
-
/** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4445
|
-
/** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4428
|
+
/** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4429
|
+
/** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CsrfPreventionInterceptor });
|
|
4430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
4447
4431
|
type: Injectable
|
|
4448
4432
|
}] });
|
|
4449
4433
|
|
|
@@ -4503,9 +4487,9 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
4503
4487
|
document.location.reload();
|
|
4504
4488
|
}
|
|
4505
4489
|
}
|
|
4506
|
-
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4507
|
-
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4490
|
+
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4491
|
+
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
|
|
4492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4509
4493
|
type: Injectable
|
|
4510
4494
|
}] });
|
|
4511
4495
|
|
|
@@ -4526,9 +4510,9 @@ class UxRequestErrorModelInterceptor {
|
|
|
4526
4510
|
}));
|
|
4527
4511
|
}
|
|
4528
4512
|
}
|
|
4529
|
-
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4530
|
-
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4513
|
+
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4514
|
+
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor });
|
|
4515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4532
4516
|
type: Injectable
|
|
4533
4517
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4534
4518
|
type: Inject,
|
|
@@ -4673,9 +4657,9 @@ class OpenIdConnectInterceptor {
|
|
|
4673
4657
|
}
|
|
4674
4658
|
}
|
|
4675
4659
|
}
|
|
4676
|
-
/** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4677
|
-
/** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4660
|
+
/** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4661
|
+
/** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectInterceptor });
|
|
4662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
|
|
4679
4663
|
type: Injectable
|
|
4680
4664
|
}], ctorParameters: function () { return []; } });
|
|
4681
4665
|
|
|
@@ -4718,9 +4702,9 @@ class OpenIdConnectService {
|
|
|
4718
4702
|
return this.userDetails;
|
|
4719
4703
|
}
|
|
4720
4704
|
}
|
|
4721
|
-
/** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4722
|
-
/** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4705
|
+
/** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4706
|
+
/** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
|
|
4707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectService, decorators: [{
|
|
4724
4708
|
type: Injectable,
|
|
4725
4709
|
args: [{
|
|
4726
4710
|
providedIn: 'root'
|