@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/fesm2015/eui-core.mjs
CHANGED
|
@@ -26,6 +26,8 @@ import { By } from '@angular/platform-browser';
|
|
|
26
26
|
import { FormGroup, FormArray } from '@angular/forms';
|
|
27
27
|
import { DomPortalOutlet, ComponentPortal, PortalInjector } from '@angular/cdk/portal';
|
|
28
28
|
import * as lf from 'localforage';
|
|
29
|
+
import localeFr from '@angular/common/locales/fr';
|
|
30
|
+
import localeEl from '@angular/common/locales/el';
|
|
29
31
|
|
|
30
32
|
/** default log configuration */
|
|
31
33
|
const DEFAULT_LOG_CONFIG = {
|
|
@@ -178,9 +180,9 @@ class LogService extends Logger {
|
|
|
178
180
|
return logger;
|
|
179
181
|
}
|
|
180
182
|
}
|
|
181
|
-
/** @nocollapse */ LogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
182
|
-
/** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
183
|
+
/** @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 });
|
|
184
|
+
/** @nocollapse */ LogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogService });
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogService, decorators: [{
|
|
184
186
|
type: Injectable
|
|
185
187
|
}], ctorParameters: function () {
|
|
186
188
|
return [{ type: undefined, decorators: [{
|
|
@@ -354,10 +356,10 @@ class LogModule {
|
|
|
354
356
|
};
|
|
355
357
|
}
|
|
356
358
|
}
|
|
357
|
-
/** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
358
|
-
/** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0
|
|
359
|
-
/** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
359
|
+
/** @nocollapse */ LogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
360
|
+
/** @nocollapse */ LogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: LogModule });
|
|
361
|
+
/** @nocollapse */ LogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogModule });
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LogModule, decorators: [{
|
|
361
363
|
type: NgModule
|
|
362
364
|
}] });
|
|
363
365
|
|
|
@@ -449,9 +451,9 @@ class StoreService {
|
|
|
449
451
|
}
|
|
450
452
|
}
|
|
451
453
|
}
|
|
452
|
-
/** @nocollapse */ StoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
453
|
-
/** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
454
|
+
/** @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 });
|
|
455
|
+
/** @nocollapse */ StoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreService, providedIn: 'root' });
|
|
456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreService, decorators: [{
|
|
455
457
|
type: Injectable,
|
|
456
458
|
args: [{
|
|
457
459
|
providedIn: 'root',
|
|
@@ -806,9 +808,9 @@ class I18nLoader {
|
|
|
806
808
|
return undefined;
|
|
807
809
|
}
|
|
808
810
|
}
|
|
809
|
-
/** @nocollapse */ I18nLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
810
|
-
/** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
811
|
+
/** @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 });
|
|
812
|
+
/** @nocollapse */ I18nLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nLoader });
|
|
813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nLoader, decorators: [{
|
|
812
814
|
type: Injectable
|
|
813
815
|
}], ctorParameters: function () {
|
|
814
816
|
return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
|
|
@@ -1022,9 +1024,9 @@ class I18nService extends EuiLazyService {
|
|
|
1022
1024
|
this.document.documentElement.lang = lang;
|
|
1023
1025
|
}
|
|
1024
1026
|
}
|
|
1025
|
-
/** @nocollapse */ I18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1026
|
-
/** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1027
|
+
/** @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 });
|
|
1028
|
+
/** @nocollapse */ I18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nService, providedIn: 'root' });
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nService, decorators: [{
|
|
1028
1030
|
type: Injectable,
|
|
1029
1031
|
args: [{
|
|
1030
1032
|
providedIn: 'root',
|
|
@@ -1069,9 +1071,9 @@ class I18nServiceMock extends I18nService {
|
|
|
1069
1071
|
return of({ success: true });
|
|
1070
1072
|
}
|
|
1071
1073
|
}
|
|
1072
|
-
/** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1073
|
-
/** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1074
|
+
/** @nocollapse */ I18nServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1075
|
+
/** @nocollapse */ I18nServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nServiceMock });
|
|
1076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: I18nServiceMock, decorators: [{
|
|
1075
1077
|
type: Injectable
|
|
1076
1078
|
}], ctorParameters: function () { return []; } });
|
|
1077
1079
|
|
|
@@ -1090,6 +1092,7 @@ const initialState = {
|
|
|
1090
1092
|
isSidebarExpandOnHover: true,
|
|
1091
1093
|
hasSidebar: false,
|
|
1092
1094
|
hasHeader: false,
|
|
1095
|
+
hasBreadcrumb: false,
|
|
1093
1096
|
hasHeaderLogo: false,
|
|
1094
1097
|
hasHeaderEnvironment: false,
|
|
1095
1098
|
hasToolbar: false,
|
|
@@ -1210,6 +1213,9 @@ class UxAppShellService {
|
|
|
1210
1213
|
set isBlockDocumentActive(isActive) {
|
|
1211
1214
|
this.setState(Object.assign(Object.assign({}, this.state), { isBlockDocumentActive: isActive }));
|
|
1212
1215
|
}
|
|
1216
|
+
get hasHeader() {
|
|
1217
|
+
return this.state.hasHeader;
|
|
1218
|
+
}
|
|
1213
1219
|
// Edit mode
|
|
1214
1220
|
get isDimmerActive() {
|
|
1215
1221
|
return this.state.isDimmerActive;
|
|
@@ -1316,6 +1322,10 @@ class UxAppShellService {
|
|
|
1316
1322
|
this.setState(Object.assign(Object.assign({}, this.state), { hasHeader: true }));
|
|
1317
1323
|
this.activateHeaderCssVars();
|
|
1318
1324
|
}
|
|
1325
|
+
activateBreadcrumb() {
|
|
1326
|
+
this.setState(Object.assign(Object.assign({}, this.state), { hasBreadcrumb: true }));
|
|
1327
|
+
this.activateBreadcrumbCssVars();
|
|
1328
|
+
}
|
|
1319
1329
|
activateTopMessage(height) {
|
|
1320
1330
|
this.setState(Object.assign(Object.assign({}, this.state), { hasTopMessage: true }));
|
|
1321
1331
|
this.activateTopMessageCssVars(height);
|
|
@@ -1332,6 +1342,8 @@ class UxAppShellService {
|
|
|
1332
1342
|
'--eui-app-header-height-default',
|
|
1333
1343
|
'--eui-app-header-height-active',
|
|
1334
1344
|
'--eui-app-header-height-shrink',
|
|
1345
|
+
'--eui-app-breadcrumb-height-default',
|
|
1346
|
+
'--eui-app-breadcrumb-height-active',
|
|
1335
1347
|
'--eui-app-top-message-height-default',
|
|
1336
1348
|
'--eui-app-top-message-height-active',
|
|
1337
1349
|
'--eui-app-top-message-height-shrink',
|
|
@@ -1352,6 +1364,7 @@ class UxAppShellService {
|
|
|
1352
1364
|
}
|
|
1353
1365
|
initCssVars() {
|
|
1354
1366
|
this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
|
|
1367
|
+
this.setCssVar('--eui-app-breadcrumb-height-default', '--eui-app-breadcrumb-height');
|
|
1355
1368
|
this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
|
|
1356
1369
|
this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
|
|
1357
1370
|
this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
|
|
@@ -1362,6 +1375,9 @@ class UxAppShellService {
|
|
|
1362
1375
|
activateHeaderCssVars() {
|
|
1363
1376
|
this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
|
|
1364
1377
|
}
|
|
1378
|
+
activateBreadcrumbCssVars() {
|
|
1379
|
+
this.setCssVar('--eui-app-breadcrumb-height-active', '--eui-app-breadcrumb-height');
|
|
1380
|
+
}
|
|
1365
1381
|
activateTopMessageCssVars(height) {
|
|
1366
1382
|
this._setCssVarValue('--eui-app-top-message-height', `${height}px`);
|
|
1367
1383
|
}
|
|
@@ -1652,9 +1668,9 @@ class UxAppShellService {
|
|
|
1652
1668
|
});
|
|
1653
1669
|
}
|
|
1654
1670
|
}
|
|
1655
|
-
/** @nocollapse */ UxAppShellService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1656
|
-
/** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1671
|
+
/** @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 });
|
|
1672
|
+
/** @nocollapse */ UxAppShellService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxAppShellService, providedIn: 'root' });
|
|
1673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxAppShellService, decorators: [{
|
|
1658
1674
|
type: Injectable,
|
|
1659
1675
|
args: [{
|
|
1660
1676
|
providedIn: 'root',
|
|
@@ -1714,9 +1730,9 @@ class CoreAppEffects {
|
|
|
1714
1730
|
})), { dispatch: false });
|
|
1715
1731
|
}
|
|
1716
1732
|
}
|
|
1717
|
-
/** @nocollapse */ CoreAppEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1718
|
-
/** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1733
|
+
/** @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 });
|
|
1734
|
+
/** @nocollapse */ CoreAppEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreAppEffects });
|
|
1735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreAppEffects, decorators: [{
|
|
1720
1736
|
type: Injectable
|
|
1721
1737
|
}], ctorParameters: function () {
|
|
1722
1738
|
return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
|
|
@@ -1968,9 +1984,9 @@ class StoreServiceMock extends StoreService {
|
|
|
1968
1984
|
return of({});
|
|
1969
1985
|
}
|
|
1970
1986
|
}
|
|
1971
|
-
/** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
1972
|
-
/** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
1973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
1987
|
+
/** @nocollapse */ StoreServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1988
|
+
/** @nocollapse */ StoreServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreServiceMock });
|
|
1989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
1974
1990
|
type: Injectable
|
|
1975
1991
|
}], ctorParameters: function () { return []; } });
|
|
1976
1992
|
|
|
@@ -2015,10 +2031,10 @@ class CoreModule {
|
|
|
2015
2031
|
};
|
|
2016
2032
|
}
|
|
2017
2033
|
}
|
|
2018
|
-
/** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2019
|
-
/** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0
|
|
2020
|
-
/** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0
|
|
2021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2034
|
+
/** @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 });
|
|
2035
|
+
/** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: CoreModule });
|
|
2036
|
+
/** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreModule });
|
|
2037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CoreModule, decorators: [{
|
|
2022
2038
|
type: NgModule,
|
|
2023
2039
|
args: [{
|
|
2024
2040
|
imports: [
|
|
@@ -2147,9 +2163,9 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
2147
2163
|
super.handleError(error);
|
|
2148
2164
|
}
|
|
2149
2165
|
}
|
|
2150
|
-
/** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2151
|
-
/** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2166
|
+
/** @nocollapse */ GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2167
|
+
/** @nocollapse */ GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' });
|
|
2168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
2153
2169
|
type: Injectable,
|
|
2154
2170
|
args: [{
|
|
2155
2171
|
providedIn: 'root',
|
|
@@ -2197,9 +2213,9 @@ class HttpErrorHandlerInterceptor {
|
|
|
2197
2213
|
return routes.length > 0 ? routes[0] : null;
|
|
2198
2214
|
}
|
|
2199
2215
|
}
|
|
2200
|
-
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2201
|
-
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2216
|
+
/** @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 });
|
|
2217
|
+
/** @nocollapse */ HttpErrorHandlerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor });
|
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
2203
2219
|
type: Injectable
|
|
2204
2220
|
}], ctorParameters: function () {
|
|
2205
2221
|
return [{ type: undefined, decorators: [{
|
|
@@ -2348,9 +2364,9 @@ class ApiQueueService {
|
|
|
2348
2364
|
.pipe(tap(() => this.removeQueueItem(id)));
|
|
2349
2365
|
}
|
|
2350
2366
|
}
|
|
2351
|
-
/** @nocollapse */ ApiQueueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2352
|
-
/** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2367
|
+
/** @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 });
|
|
2368
|
+
/** @nocollapse */ ApiQueueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ApiQueueService, providedIn: 'root' });
|
|
2369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
2354
2370
|
type: Injectable,
|
|
2355
2371
|
args: [{
|
|
2356
2372
|
providedIn: 'root',
|
|
@@ -2703,9 +2719,9 @@ class EuiPermissionService extends EuiService {
|
|
|
2703
2719
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2704
2720
|
}
|
|
2705
2721
|
}
|
|
2706
|
-
/** @nocollapse */ EuiPermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2707
|
-
/** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2722
|
+
/** @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 });
|
|
2723
|
+
/** @nocollapse */ EuiPermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuiPermissionService, providedIn: 'root' });
|
|
2724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2709
2725
|
type: Injectable,
|
|
2710
2726
|
args: [{
|
|
2711
2727
|
providedIn: 'root',
|
|
@@ -2768,9 +2784,9 @@ class UxDynamicMenuService {
|
|
|
2768
2784
|
});
|
|
2769
2785
|
}
|
|
2770
2786
|
}
|
|
2771
|
-
/** @nocollapse */ UxDynamicMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2772
|
-
/** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2773
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2787
|
+
/** @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 });
|
|
2788
|
+
/** @nocollapse */ UxDynamicMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicMenuService, providedIn: 'root' });
|
|
2789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicMenuService, decorators: [{
|
|
2774
2790
|
type: Injectable,
|
|
2775
2791
|
args: [{
|
|
2776
2792
|
providedIn: 'root',
|
|
@@ -2838,9 +2854,9 @@ class UxErrorFeedbackService {
|
|
|
2838
2854
|
return new UxErrorManager(this, true);
|
|
2839
2855
|
}
|
|
2840
2856
|
}
|
|
2841
|
-
/** @nocollapse */ UxErrorFeedbackService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2842
|
-
/** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2857
|
+
/** @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 });
|
|
2858
|
+
/** @nocollapse */ UxErrorFeedbackService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' });
|
|
2859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
|
|
2844
2860
|
type: Injectable,
|
|
2845
2861
|
args: [{
|
|
2846
2862
|
providedIn: 'root'
|
|
@@ -2936,9 +2952,9 @@ class UxDynamicComponentService {
|
|
|
2936
2952
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2937
2953
|
}
|
|
2938
2954
|
}
|
|
2939
|
-
/** @nocollapse */ UxDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
2940
|
-
/** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
2941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
2955
|
+
/** @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 });
|
|
2956
|
+
/** @nocollapse */ UxDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicComponentService, providedIn: 'root' });
|
|
2957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicComponentService, decorators: [{
|
|
2942
2958
|
type: Injectable,
|
|
2943
2959
|
args: [{ providedIn: 'root' }]
|
|
2944
2960
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
|
|
@@ -3653,9 +3669,9 @@ class UxTimezoneService {
|
|
|
3653
3669
|
});
|
|
3654
3670
|
}
|
|
3655
3671
|
}
|
|
3656
|
-
/** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3657
|
-
/** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3672
|
+
/** @nocollapse */ UxTimezoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3673
|
+
/** @nocollapse */ UxTimezoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxTimezoneService });
|
|
3674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxTimezoneService, decorators: [{
|
|
3659
3675
|
type: Injectable
|
|
3660
3676
|
}] });
|
|
3661
3677
|
|
|
@@ -3781,9 +3797,9 @@ class LocalStorageService extends StorageService {
|
|
|
3781
3797
|
}
|
|
3782
3798
|
}
|
|
3783
3799
|
LocalStorageService.NAME = 'LocalStorageService';
|
|
3784
|
-
/** @nocollapse */ LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3785
|
-
/** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3800
|
+
/** @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 });
|
|
3801
|
+
/** @nocollapse */ LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalStorageService });
|
|
3802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
3787
3803
|
type: Injectable
|
|
3788
3804
|
}], ctorParameters: function () {
|
|
3789
3805
|
return [{ type: LogService, decorators: [{
|
|
@@ -3854,9 +3870,9 @@ class SessionStorageService extends StorageService {
|
|
|
3854
3870
|
}
|
|
3855
3871
|
}
|
|
3856
3872
|
SessionStorageService.NAME = 'SessionStorageService';
|
|
3857
|
-
/** @nocollapse */ SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3858
|
-
/** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3873
|
+
/** @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 });
|
|
3874
|
+
/** @nocollapse */ SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: SessionStorageService });
|
|
3875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
3860
3876
|
type: Injectable
|
|
3861
3877
|
}], ctorParameters: function () {
|
|
3862
3878
|
return [{ type: LogService, decorators: [{
|
|
@@ -3945,9 +3961,9 @@ class LocalForageService extends AsyncStorageService {
|
|
|
3945
3961
|
}
|
|
3946
3962
|
}
|
|
3947
3963
|
LocalForageService.NAME = 'LocalForageService';
|
|
3948
|
-
/** @nocollapse */ LocalForageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
3949
|
-
/** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
3950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
3964
|
+
/** @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 });
|
|
3965
|
+
/** @nocollapse */ LocalForageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalForageService });
|
|
3966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocalForageService, decorators: [{
|
|
3951
3967
|
type: Injectable
|
|
3952
3968
|
}], ctorParameters: function () {
|
|
3953
3969
|
return [{ type: undefined, decorators: [{
|
|
@@ -4052,23 +4068,31 @@ class LocaleService extends EuiService {
|
|
|
4052
4068
|
* @param locale array of locale to load
|
|
4053
4069
|
*/
|
|
4054
4070
|
loadLocale(locale) {
|
|
4055
|
-
locale = Array.isArray(locale) ? locale : [locale];
|
|
4056
|
-
const localeImports
|
|
4057
|
-
//
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
return
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
})
|
|
4071
|
+
// locale = Array.isArray(locale) ? locale : [locale];
|
|
4072
|
+
// const localeImports: Observable<{ data: any, localeId: string, extraData: any }>[]
|
|
4073
|
+
// = this.filterRegisteredLocales(locale).map(this.importDataAndExtraLocale.bind(this));
|
|
4074
|
+
//
|
|
4075
|
+
// // in case localeImports array is empty because locale exists, Observable still needs to complete
|
|
4076
|
+
// if (localeImports.length < 1) {
|
|
4077
|
+
// return of({ success: true });
|
|
4078
|
+
// }
|
|
4079
|
+
//
|
|
4080
|
+
// return forkJoin(...localeImports).pipe(
|
|
4081
|
+
// takeUntil(this.subNotifier),
|
|
4082
|
+
// map(localeData => {
|
|
4083
|
+
// // filter out null results and registerLocaleData including extra
|
|
4084
|
+
// localeData.filter(({ data }) => data)
|
|
4085
|
+
// .forEach(({ data, localeId, extraData }) => registerLocaleData(data, localeId, extraData));
|
|
4086
|
+
// return { success: true };
|
|
4087
|
+
// }),
|
|
4088
|
+
// catchError(error => {
|
|
4089
|
+
// if (this.log) {
|
|
4090
|
+
// this.logger.debug(`Locale load error: ${error.message}`, error);
|
|
4091
|
+
// }
|
|
4092
|
+
// return of({ success: false, error: error });
|
|
4093
|
+
// })
|
|
4094
|
+
// );
|
|
4095
|
+
return of({ success: true });
|
|
4072
4096
|
}
|
|
4073
4097
|
/**
|
|
4074
4098
|
* listen for language changes and dynamically set locale accordingly. In case of non registered locale register it
|
|
@@ -4139,61 +4163,10 @@ class LocaleService extends EuiService {
|
|
|
4139
4163
|
}
|
|
4140
4164
|
});
|
|
4141
4165
|
}
|
|
4142
|
-
/**
|
|
4143
|
-
* returns an Observable which loads the locale based on provided ID
|
|
4144
|
-
*
|
|
4145
|
-
* @param id the locale id e.g. en, el-CY
|
|
4146
|
-
* @private
|
|
4147
|
-
*/
|
|
4148
|
-
importLocale(id) {
|
|
4149
|
-
// in case of an error, catch it and return null
|
|
4150
|
-
return import(
|
|
4151
|
-
/* webpackExclude: /\.d\.ts$/ */
|
|
4152
|
-
/* webpackMode: "lazy-once" */
|
|
4153
|
-
/* webpackChunkName: "i18n-base" */
|
|
4154
|
-
`@/../node_modules/@angular/common/locales/${id}`)
|
|
4155
|
-
.then(m => m.default)
|
|
4156
|
-
.catch(error => {
|
|
4157
|
-
if (this.log) {
|
|
4158
|
-
this.logger.debug(`Locale with ID: "${id}" failed to load. Error: ${error.message}`, error);
|
|
4159
|
-
}
|
|
4160
|
-
return null;
|
|
4161
|
-
});
|
|
4162
|
-
}
|
|
4163
|
-
/**
|
|
4164
|
-
* returns a Promise which loads the locale based on provided ID
|
|
4165
|
-
*
|
|
4166
|
-
* @param id the locale id e.g. en, el-CY
|
|
4167
|
-
* @private
|
|
4168
|
-
*/
|
|
4169
|
-
importExtraLocale(id) {
|
|
4170
|
-
// in case of an error, catch it and return null
|
|
4171
|
-
return import(
|
|
4172
|
-
/* webpackExclude: /\.d\.ts$/ */
|
|
4173
|
-
/* webpackMode: "lazy-once" */
|
|
4174
|
-
/* webpackChunkName: "i18n-extra" */
|
|
4175
|
-
`@/../node_modules/@angular/common/locales/extra/${id}`)
|
|
4176
|
-
.then(m => m.default)
|
|
4177
|
-
.catch(error => {
|
|
4178
|
-
if (this.log) {
|
|
4179
|
-
this.logger.debug(`Extra Locale with ID: "${id}" failed to load. Error: ${error.message}`, error);
|
|
4180
|
-
}
|
|
4181
|
-
return null;
|
|
4182
|
-
});
|
|
4183
|
-
}
|
|
4184
|
-
/**
|
|
4185
|
-
* Imports Locale and then Extra. It returns the Object which registerLocale(...) function needs.
|
|
4186
|
-
*
|
|
4187
|
-
* @param localeId The id of the locale
|
|
4188
|
-
* @private
|
|
4189
|
-
*/
|
|
4190
|
-
importDataAndExtraLocale(localeId) {
|
|
4191
|
-
return from(this.importLocale(localeId)).pipe(mergeMap((data) => from(this.importExtraLocale(localeId)).pipe(map((extraData) => Object.assign({}, { data, localeId, extraData }))), 1));
|
|
4192
|
-
}
|
|
4193
4166
|
}
|
|
4194
|
-
/** @nocollapse */ LocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4195
|
-
/** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4167
|
+
/** @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 });
|
|
4168
|
+
/** @nocollapse */ LocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleService, providedIn: 'root' });
|
|
4169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleService, decorators: [{
|
|
4197
4170
|
type: Injectable,
|
|
4198
4171
|
args: [{
|
|
4199
4172
|
providedIn: 'root'
|
|
@@ -4222,21 +4195,29 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4222
4195
|
super(null, { locale: { id: 'en', available: [] } }, locale_id, null, null, null);
|
|
4223
4196
|
this.locale_id = locale_id;
|
|
4224
4197
|
this.DEFAULT_LOCALE = 'en';
|
|
4198
|
+
this.stateSubject = new BehaviorSubject({ id: this.DEFAULT_LOCALE });
|
|
4225
4199
|
}
|
|
4226
4200
|
getState() {
|
|
4227
|
-
return
|
|
4201
|
+
return this.stateSubject.asObservable();
|
|
4228
4202
|
}
|
|
4229
4203
|
updateState(state) {
|
|
4230
4204
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4205
|
+
if (state.id === 'fr') {
|
|
4206
|
+
registerLocaleData(localeFr, 'fr');
|
|
4207
|
+
}
|
|
4208
|
+
else if (state.id === 'el') {
|
|
4209
|
+
registerLocaleData(localeEl, 'fr');
|
|
4210
|
+
}
|
|
4211
|
+
this.stateSubject.next(state);
|
|
4231
4212
|
}
|
|
4232
4213
|
init(state) {
|
|
4233
4214
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4234
4215
|
return of({ success: true });
|
|
4235
4216
|
}
|
|
4236
4217
|
}
|
|
4237
|
-
/** @nocollapse */ LocaleServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4238
|
-
/** @nocollapse */ LocaleServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4218
|
+
/** @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 });
|
|
4219
|
+
/** @nocollapse */ LocaleServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleServiceMock });
|
|
4220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LocaleServiceMock, decorators: [{
|
|
4240
4221
|
type: Injectable
|
|
4241
4222
|
}], ctorParameters: function () {
|
|
4242
4223
|
return [{ type: undefined, decorators: [{
|
|
@@ -4280,9 +4261,9 @@ class UserService extends EuiService {
|
|
|
4280
4261
|
this.store.dispatch(new UpdateUserStateAction(userState));
|
|
4281
4262
|
}
|
|
4282
4263
|
}
|
|
4283
|
-
/** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4284
|
-
/** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4264
|
+
/** @nocollapse */ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4265
|
+
/** @nocollapse */ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
4266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserService, decorators: [{
|
|
4286
4267
|
type: Injectable,
|
|
4287
4268
|
args: [{
|
|
4288
4269
|
providedIn: 'root',
|
|
@@ -4313,9 +4294,9 @@ class UserServiceMock extends UserService {
|
|
|
4313
4294
|
return of('anonymous');
|
|
4314
4295
|
}
|
|
4315
4296
|
}
|
|
4316
|
-
/** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4317
|
-
/** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4297
|
+
/** @nocollapse */ UserServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4298
|
+
/** @nocollapse */ UserServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserServiceMock });
|
|
4299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
4319
4300
|
type: Injectable
|
|
4320
4301
|
}], ctorParameters: function () { return []; } });
|
|
4321
4302
|
|
|
@@ -4345,9 +4326,9 @@ class AddLangParamInterceptor {
|
|
|
4345
4326
|
}));
|
|
4346
4327
|
}
|
|
4347
4328
|
}
|
|
4348
|
-
/** @nocollapse */ AddLangParamInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4349
|
-
/** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4329
|
+
/** @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 });
|
|
4330
|
+
/** @nocollapse */ AddLangParamInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AddLangParamInterceptor });
|
|
4331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
4351
4332
|
type: Injectable
|
|
4352
4333
|
}], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
|
|
4353
4334
|
|
|
@@ -4364,9 +4345,9 @@ class CachePreventionInterceptor {
|
|
|
4364
4345
|
}));
|
|
4365
4346
|
}
|
|
4366
4347
|
}
|
|
4367
|
-
/** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4368
|
-
/** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4348
|
+
/** @nocollapse */ CachePreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4349
|
+
/** @nocollapse */ CachePreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CachePreventionInterceptor });
|
|
4350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
4370
4351
|
type: Injectable
|
|
4371
4352
|
}] });
|
|
4372
4353
|
|
|
@@ -4377,9 +4358,9 @@ class CorsSecurityInterceptor {
|
|
|
4377
4358
|
}));
|
|
4378
4359
|
}
|
|
4379
4360
|
}
|
|
4380
|
-
/** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4381
|
-
/** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4361
|
+
/** @nocollapse */ CorsSecurityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4362
|
+
/** @nocollapse */ CorsSecurityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorsSecurityInterceptor });
|
|
4363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
4383
4364
|
type: Injectable
|
|
4384
4365
|
}] });
|
|
4385
4366
|
|
|
@@ -4390,9 +4371,9 @@ class CsrfPreventionInterceptor {
|
|
|
4390
4371
|
}));
|
|
4391
4372
|
}
|
|
4392
4373
|
}
|
|
4393
|
-
/** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4394
|
-
/** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4374
|
+
/** @nocollapse */ CsrfPreventionInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4375
|
+
/** @nocollapse */ CsrfPreventionInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CsrfPreventionInterceptor });
|
|
4376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
4396
4377
|
type: Injectable
|
|
4397
4378
|
}] });
|
|
4398
4379
|
|
|
@@ -4452,9 +4433,9 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
4452
4433
|
document.location.reload();
|
|
4453
4434
|
}
|
|
4454
4435
|
}
|
|
4455
|
-
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4456
|
-
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4436
|
+
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4437
|
+
/** @nocollapse */ EuLoginSessionTimeoutHandlingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor });
|
|
4438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4458
4439
|
type: Injectable
|
|
4459
4440
|
}] });
|
|
4460
4441
|
|
|
@@ -4475,9 +4456,9 @@ class UxRequestErrorModelInterceptor {
|
|
|
4475
4456
|
}));
|
|
4476
4457
|
}
|
|
4477
4458
|
}
|
|
4478
|
-
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4479
|
-
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4459
|
+
/** @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 });
|
|
4460
|
+
/** @nocollapse */ UxRequestErrorModelInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor });
|
|
4461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4481
4462
|
type: Injectable
|
|
4482
4463
|
}], ctorParameters: function () {
|
|
4483
4464
|
return [{ type: undefined, decorators: [{
|
|
@@ -4624,9 +4605,9 @@ class OpenIdConnectInterceptor {
|
|
|
4624
4605
|
}
|
|
4625
4606
|
}
|
|
4626
4607
|
}
|
|
4627
|
-
/** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4628
|
-
/** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4608
|
+
/** @nocollapse */ OpenIdConnectInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4609
|
+
/** @nocollapse */ OpenIdConnectInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectInterceptor });
|
|
4610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
|
|
4630
4611
|
type: Injectable
|
|
4631
4612
|
}], ctorParameters: function () { return []; } });
|
|
4632
4613
|
|
|
@@ -4669,9 +4650,9 @@ class OpenIdConnectService {
|
|
|
4669
4650
|
return this.userDetails;
|
|
4670
4651
|
}
|
|
4671
4652
|
}
|
|
4672
|
-
/** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0
|
|
4673
|
-
/** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0
|
|
4674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0
|
|
4653
|
+
/** @nocollapse */ OpenIdConnectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4654
|
+
/** @nocollapse */ OpenIdConnectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' });
|
|
4655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: OpenIdConnectService, decorators: [{
|
|
4675
4656
|
type: Injectable,
|
|
4676
4657
|
args: [{
|
|
4677
4658
|
providedIn: 'root'
|