@eui/core 16.2.1 → 17.0.0-next.2
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/esm2022/lib/eui-core.module.mjs +5 -5
- package/esm2022/lib/interceptors/add-lang-param.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cors-security.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/csrf-prevention.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/openid/openid-connect.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/openid/openid-connect.service.mjs +4 -4
- package/esm2022/lib/interceptors/ux-request-error-model.interceptor.mjs +4 -4
- package/esm2022/lib/services/dynamic-menu/dynamic-menu.service.mjs +66 -0
- package/esm2022/lib/services/errors/global-error-handler.mjs +4 -4
- package/esm2022/lib/services/errors/http-error-handler-callback-functions.mjs +5 -4
- package/esm2022/lib/services/errors/http-error-handler.interceptor.mjs +4 -4
- package/esm2022/lib/services/eui-timezone.service.mjs +716 -0
- package/esm2022/lib/services/i18n/i18n.loader.mjs +4 -4
- package/esm2022/lib/services/i18n/i18n.service.mjs +8 -8
- package/esm2022/lib/services/i18n/i18n.service.mock.mjs +4 -4
- package/esm2022/lib/services/index.mjs +3 -3
- package/esm2022/lib/services/locale/locale.service.mjs +4 -4
- package/esm2022/lib/services/locale/locale.service.mock.mjs +4 -4
- package/esm2022/lib/services/log/log.module.mjs +5 -5
- package/esm2022/lib/services/log/log.service.mjs +4 -4
- package/esm2022/lib/services/permission/permission.service.mjs +5 -5
- package/esm2022/lib/services/queue/api-queue.service.mjs +4 -4
- package/esm2022/lib/services/storage/local-forage.service.mjs +4 -4
- package/esm2022/lib/services/storage/local-storage.service.mjs +4 -4
- package/esm2022/lib/services/storage/session-storage.service.mjs +4 -4
- package/esm2022/lib/services/store/actions/user.actions.mjs +1 -1
- package/esm2022/lib/services/store/effects/app.effects.mjs +16 -6
- package/esm2022/lib/services/store/store.service.mjs +4 -4
- package/esm2022/lib/services/store/store.service.mock.mjs +4 -4
- package/esm2022/lib/services/user/user.service.mjs +4 -4
- package/esm2022/lib/services/user/user.service.mock.mjs +4 -4
- package/esm2022/lib/services/ux-app-shell.service.mjs +6 -152
- package/esm2022/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +4 -4
- package/esm2022/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +29 -20
- package/fesm2022/eui-core.mjs +158 -284
- package/fesm2022/eui-core.mjs.map +1 -1
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts +15 -0
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts.map +1 -0
- package/lib/services/errors/http-error-handler-callback-functions.d.ts.map +1 -1
- package/lib/services/{ux-timezone.service.d.ts → eui-timezone.service.d.ts} +9 -9
- package/lib/services/eui-timezone.service.d.ts.map +1 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/permission/permission.service.d.ts +7 -7
- package/lib/services/permission/permission.service.d.ts.map +1 -1
- package/lib/services/store/actions/user.actions.d.ts +3 -3
- package/lib/services/store/actions/user.actions.d.ts.map +1 -1
- package/lib/services/store/effects/app.effects.d.ts.map +1 -1
- package/lib/services/ux-app-shell.service.d.ts +8 -31
- package/lib/services/ux-app-shell.service.d.ts.map +1 -1
- package/lib/services/ux-error-feedback/ux-error-feedback.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/docs/classes/ActivatedRouteAction.html +0 -282
- package/docs/classes/AddApiQueueItemAction.html +0 -282
- package/docs/classes/AddAppLoadedConfigModulesAction.html +0 -282
- package/docs/classes/ApiQueueServiceMock.html +0 -553
- package/docs/classes/AsyncStorageService.html +0 -941
- package/docs/classes/AsyncStorageServiceMock.html +0 -427
- package/docs/classes/EmptyApiQueueAction.html +0 -282
- package/docs/classes/EuiCoreRootGuardClass.html +0 -167
- package/docs/classes/EuiError.html +0 -227
- package/docs/classes/I18nResourceImpl.html +0 -510
- package/docs/classes/InitStoreAction.html +0 -282
- package/docs/classes/LogServiceMock.html +0 -223
- package/docs/classes/OpenIdConnectServiceMock.html +0 -223
- package/docs/classes/RemoveApiQueueItemAction.html +0 -282
- package/docs/classes/RouterMock.html +0 -499
- package/docs/classes/StorageService.html +0 -640
- package/docs/classes/StorageServiceMock.html +0 -325
- package/docs/classes/StoreMock.html +0 -406
- package/docs/classes/TranslateServiceMock.html +0 -917
- package/docs/classes/UpdateAppConnectionAction.html +0 -282
- package/docs/classes/UpdateAppStatusAction.html +0 -282
- package/docs/classes/UpdateAppVersionAction.html +0 -282
- package/docs/classes/UpdateCurrentModuleAction.html +0 -282
- package/docs/classes/UpdateI18nStateAction.html +0 -282
- package/docs/classes/UpdateLocaleStateAction.html +0 -282
- package/docs/classes/UpdateNotificationsListAction.html +0 -282
- package/docs/classes/UpdateUserDashboardAction.html +0 -282
- package/docs/classes/UpdateUserDetailsAction.html +0 -282
- package/docs/classes/UpdateUserPreferencesAction.html +0 -282
- package/docs/classes/UpdateUserRightsAction.html +0 -282
- package/docs/classes/UpdateUserStateAction.html +0 -282
- package/docs/classes/UxErrorManager.html +0 -536
- package/docs/classes/UxRootInjectorGuard.html +0 -197
- package/docs/dependencies.html +0 -319
- package/docs/directives/TranslateMockDirective.html +0 -266
- package/docs/fonts/ionicons.eot +0 -0
- package/docs/fonts/ionicons.svg +0 -2090
- package/docs/fonts/ionicons.ttf +0 -0
- package/docs/fonts/ionicons.woff +0 -0
- package/docs/fonts/ionicons.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-300.eot +0 -0
- package/docs/fonts/roboto-v15-latin-300.svg +0 -314
- package/docs/fonts/roboto-v15-latin-300.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-300.woff +0 -0
- package/docs/fonts/roboto-v15-latin-300.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-700.eot +0 -0
- package/docs/fonts/roboto-v15-latin-700.svg +0 -310
- package/docs/fonts/roboto-v15-latin-700.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-700.woff +0 -0
- package/docs/fonts/roboto-v15-latin-700.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-italic.eot +0 -0
- package/docs/fonts/roboto-v15-latin-italic.svg +0 -323
- package/docs/fonts/roboto-v15-latin-italic.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-italic.woff +0 -0
- package/docs/fonts/roboto-v15-latin-italic.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-regular.eot +0 -0
- package/docs/fonts/roboto-v15-latin-regular.svg +0 -308
- package/docs/fonts/roboto-v15-latin-regular.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-regular.woff +0 -0
- package/docs/fonts/roboto-v15-latin-regular.woff2 +0 -0
- package/docs/images/compodoc-vectorise-inverted.png +0 -0
- package/docs/images/compodoc-vectorise-inverted.svg +0 -201
- package/docs/images/compodoc-vectorise.png +0 -0
- package/docs/images/compodoc-vectorise.svg +0 -201
- package/docs/images/favicon.ico +0 -0
- package/docs/index.html +0 -171
- package/docs/injectables/ApiQueueService.html +0 -806
- package/docs/injectables/CoreAppEffects.html +0 -390
- package/docs/injectables/EuiPermissionService.html +0 -652
- package/docs/injectables/GlobalErrorHandler.html +0 -293
- package/docs/injectables/I18nLoader.html +0 -597
- package/docs/injectables/I18nService.html +0 -945
- package/docs/injectables/I18nServiceMock.html +0 -634
- package/docs/injectables/LocalForageService.html +0 -773
- package/docs/injectables/LocalStorageService.html +0 -554
- package/docs/injectables/LocaleService.html +0 -799
- package/docs/injectables/LocaleServiceMock.html +0 -493
- package/docs/injectables/LogService.html +0 -354
- package/docs/injectables/OpenIdConnectService.html +0 -225
- package/docs/injectables/SessionStorageService.html +0 -554
- package/docs/injectables/StoreService.html +0 -651
- package/docs/injectables/StoreServiceMock.html +0 -457
- package/docs/injectables/UserService.html +0 -752
- package/docs/injectables/UserServiceMock.html +0 -641
- package/docs/injectables/UxAppShellService.html +0 -3338
- package/docs/injectables/UxDynamicComponentService.html +0 -437
- package/docs/injectables/UxDynamicMenuService.html +0 -379
- package/docs/injectables/UxErrorFeedbackService.html +0 -591
- package/docs/injectables/UxTimezoneService.html +0 -382
- package/docs/interceptors/AddLangParamInterceptor.html +0 -305
- package/docs/interceptors/CachePreventionInterceptor.html +0 -254
- package/docs/interceptors/CorsSecurityInterceptor.html +0 -254
- package/docs/interceptors/CsrfPreventionInterceptor.html +0 -254
- package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +0 -254
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +0 -321
- package/docs/interceptors/OpenIdConnectInterceptor.html +0 -347
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +0 -297
- package/docs/interfaces/LoadedResources.html +0 -292
- package/docs/interfaces/LoadedResourcesError.html +0 -247
- package/docs/interfaces/ModuleLoadEvent.html +0 -292
- package/docs/interfaces/OpenIdConnectUserDetails.html +0 -439
- package/docs/interfaces/ResourceError.html +0 -298
- package/docs/interfaces/TimeZone.html +0 -247
- package/docs/interfaces/UIState.html +0 -1900
- package/docs/js/compodoc.js +0 -14
- package/docs/js/lazy-load-graphs.js +0 -44
- package/docs/js/libs/EventDispatcher.js +0 -5
- package/docs/js/libs/bootstrap-native.js +0 -1
- package/docs/js/libs/clipboard.min.js +0 -7
- package/docs/js/libs/custom-elements-es5-adapter.js +0 -15
- package/docs/js/libs/custom-elements.min.js +0 -38
- package/docs/js/libs/d3.v3.min.js +0 -2
- package/docs/js/libs/deep-iterator.js +0 -2
- package/docs/js/libs/es6-shim.min.js +0 -11
- package/docs/js/libs/htmlparser.js +0 -23
- package/docs/js/libs/innersvg.js +0 -9
- package/docs/js/libs/lit-html.js +0 -1
- package/docs/js/libs/prism.js +0 -46
- package/docs/js/libs/promise.min.js +0 -6
- package/docs/js/libs/svg-pan-zoom.min.js +0 -3
- package/docs/js/libs/tablesort.min.js +0 -6
- package/docs/js/libs/tablesort.number.min.js +0 -6
- package/docs/js/libs/vis.min.js +0 -47
- package/docs/js/libs/zepto.min.js +0 -2
- package/docs/js/menu-wc.js +0 -380
- package/docs/js/menu.js +0 -325
- package/docs/js/routes.js +0 -301
- package/docs/js/search/lunr.min.js +0 -6
- package/docs/js/search/search-lunr.js +0 -67
- package/docs/js/search/search.js +0 -268
- package/docs/js/search/search_index.js +0 -4
- package/docs/js/sourceCode.js +0 -58
- package/docs/js/svg-pan-zoom.controls.js +0 -53
- package/docs/js/tabs.js +0 -21
- package/docs/js/tree.js +0 -147
- package/docs/license.html +0 -379
- package/docs/miscellaneous/enumerations.html +0 -418
- package/docs/miscellaneous/functions.html +0 -1864
- package/docs/miscellaneous/typealiases.html +0 -258
- package/docs/miscellaneous/variables.html +0 -3965
- package/docs/modules/CoreModule.html +0 -256
- package/docs/modules/I18nModule.html +0 -198
- package/docs/modules/LogModule.html +0 -305
- package/docs/modules/TranslateMockModule.html +0 -176
- package/docs/modules.html +0 -168
- package/docs/pipes/TranslateMockPipe.html +0 -227
- package/docs/properties.html +0 -124
- package/docs/styles/bootstrap-card.css +0 -219
- package/docs/styles/bootstrap.min.css +0 -6
- package/docs/styles/compodoc.css +0 -1121
- package/docs/styles/dark.css +0 -121
- package/docs/styles/ionicons.min.css +0 -11
- package/docs/styles/laravel.css +0 -113
- package/docs/styles/material.css +0 -131
- package/docs/styles/original.css +0 -51
- package/docs/styles/postmark.css +0 -238
- package/docs/styles/prism.css +0 -301
- package/docs/styles/readthedocs.css +0 -117
- package/docs/styles/reset.css +0 -129
- package/docs/styles/stripe.css +0 -106
- package/docs/styles/style.css +0 -7
- package/docs/styles/tablesort.css +0 -33
- package/docs/styles/vagrant.css +0 -130
- package/esm2022/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +0 -66
- package/esm2022/lib/services/ux-timezone.service.mjs +0 -717
- package/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.d.ts +0 -15
- package/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.d.ts.map +0 -1
- package/lib/services/ux-timezone.service.d.ts.map +0 -1
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i1 from '@eui/base';
|
|
2
|
-
import { LogLevel, ConsoleAppender, Logger, LoggerMock, mergeAll, getI18nLoaderConfig, EuiLazyService, getI18nServiceConfigFromBase, getI18nState, getLastAddedModule, getBrowserDefaultLanguage,
|
|
2
|
+
import { LogLevel, ConsoleAppender, Logger, LoggerMock, mergeAll, getI18nLoaderConfig, EuiLazyService, getI18nServiceConfigFromBase, getI18nState, getLastAddedModule, getBrowserDefaultLanguage, EuiEuLanguages, getActiveLang, initialAppState, initialUserState, initialNotificationsState, initialI18nState, initialLocaleState, xhr, getApiQueue, getApiQueueItem, EuiService, getUserRights, getUserState, UxPublishErrorFeedbackEvent, UxClearErrorFeedbackEvent, getLocaleServiceConfigFromBase, getLocaleState, transformToUxHttpResponse } from '@eui/base';
|
|
3
3
|
export * from '@eui/base';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { InjectionToken, Injectable, Inject, Injector, NgModule, Optional, APP_INITIALIZER, EventEmitter, PLATFORM_ID, SkipSelf, ErrorHandler, LOCALE_ID } from '@angular/core';
|
|
@@ -197,10 +197,10 @@ class LogService extends Logger {
|
|
|
197
197
|
}
|
|
198
198
|
return logger;
|
|
199
199
|
}
|
|
200
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
201
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
200
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
201
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogService }); }
|
|
202
202
|
}
|
|
203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogService, decorators: [{
|
|
204
204
|
type: Injectable
|
|
205
205
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
206
206
|
type: Inject,
|
|
@@ -371,11 +371,11 @@ class LogModule {
|
|
|
371
371
|
],
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
375
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
376
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
374
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
375
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogModule }); }
|
|
376
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogModule }); }
|
|
377
377
|
}
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LogModule, decorators: [{
|
|
379
379
|
type: NgModule
|
|
380
380
|
}] });
|
|
381
381
|
|
|
@@ -470,10 +470,10 @@ class StoreService {
|
|
|
470
470
|
// Ignore write errors.
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
474
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
473
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: StoreService, deps: [{ token: i1$1.Store, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
474
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: StoreService, providedIn: 'root' }); }
|
|
475
475
|
}
|
|
476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: StoreService, decorators: [{
|
|
477
477
|
type: Injectable,
|
|
478
478
|
args: [{
|
|
479
479
|
providedIn: 'root',
|
|
@@ -827,10 +827,10 @@ class I18nLoader {
|
|
|
827
827
|
}
|
|
828
828
|
return undefined;
|
|
829
829
|
}
|
|
830
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
831
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
830
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nLoader, deps: [{ token: i1$2.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
831
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nLoader }); }
|
|
832
832
|
}
|
|
833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nLoader, decorators: [{
|
|
834
834
|
type: Injectable
|
|
835
835
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: LogService, decorators: [{
|
|
836
836
|
type: Optional
|
|
@@ -962,7 +962,7 @@ class I18nService extends EuiLazyService {
|
|
|
962
962
|
preparedDefaultLanguage() {
|
|
963
963
|
const browserPref = getBrowserDefaultLanguage();
|
|
964
964
|
// If user has browser preferred lang, and that language is part of the languages array
|
|
965
|
-
if (browserPref && this.config.languages &&
|
|
965
|
+
if (browserPref && this.config.languages && EuiEuLanguages.getLanguageCodes(this.config.languages).includes(browserPref)) {
|
|
966
966
|
return browserPref;
|
|
967
967
|
}
|
|
968
968
|
return this.config.defaultLanguage;
|
|
@@ -976,9 +976,9 @@ class I18nService extends EuiLazyService {
|
|
|
976
976
|
this.config = Object.assign({}, DEFAULT_I18N_SERVICE_CONFIG, this.config);
|
|
977
977
|
// configure the translate config service
|
|
978
978
|
if (this.config.languages) {
|
|
979
|
-
this.translateService.addLangs(
|
|
979
|
+
this.translateService.addLangs(EuiEuLanguages.getLanguageCodes(this.config.languages));
|
|
980
980
|
if (this.logService) {
|
|
981
|
-
this.logService.info(`I18n accepted languages set to ${
|
|
981
|
+
this.logService.info(`I18n accepted languages set to ${EuiEuLanguages.getLanguageCodes(this.config.languages)}`);
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
// set the current language, causing to load translations
|
|
@@ -1041,10 +1041,10 @@ class I18nService extends EuiLazyService {
|
|
|
1041
1041
|
updateHTMLDOMLang(lang) {
|
|
1042
1042
|
this.document.documentElement.lang = lang;
|
|
1043
1043
|
}
|
|
1044
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1045
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1044
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i2.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1045
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
1046
1046
|
}
|
|
1047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nService, decorators: [{
|
|
1048
1048
|
type: Injectable,
|
|
1049
1049
|
args: [{
|
|
1050
1050
|
providedIn: 'root',
|
|
@@ -1086,10 +1086,10 @@ class I18nServiceMock extends I18nService {
|
|
|
1086
1086
|
lazyLoadInit() {
|
|
1087
1087
|
return of({ success: true });
|
|
1088
1088
|
}
|
|
1089
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1090
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1089
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1090
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nServiceMock }); }
|
|
1091
1091
|
}
|
|
1092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: I18nServiceMock, decorators: [{
|
|
1093
1093
|
type: Injectable
|
|
1094
1094
|
}], ctorParameters: function () { return []; } });
|
|
1095
1095
|
|
|
@@ -1136,7 +1136,7 @@ const initialState = {
|
|
|
1136
1136
|
isBlockDocumentActive: false,
|
|
1137
1137
|
deviceInfo: null,
|
|
1138
1138
|
activeLanguage: 'en',
|
|
1139
|
-
languages:
|
|
1139
|
+
languages: EuiEuLanguages.getLanguages(),
|
|
1140
1140
|
appMetadata: null,
|
|
1141
1141
|
hasModalActive: false,
|
|
1142
1142
|
isDimmerActive: false,
|
|
@@ -1234,14 +1234,6 @@ class UxAppShellService {
|
|
|
1234
1234
|
this.router = router;
|
|
1235
1235
|
this.storeService = storeService;
|
|
1236
1236
|
this.i18nService = i18nService;
|
|
1237
|
-
this.growlMessages = [];
|
|
1238
|
-
this.isGrowlSticky = false;
|
|
1239
|
-
this.isCloseAllSticky = false;
|
|
1240
|
-
this.growlLife = 3000;
|
|
1241
|
-
this.growlPosition = 'bottom-right';
|
|
1242
|
-
this.growlCallback = null;
|
|
1243
|
-
this.activeModals = [];
|
|
1244
|
-
this.openModalId = new BehaviorSubject('');
|
|
1245
1237
|
this.cssVars = [];
|
|
1246
1238
|
let stateWithConfig = initialState;
|
|
1247
1239
|
const languages = config?.i18n?.i18nService?.languages || initialState.languages;
|
|
@@ -1495,144 +1487,6 @@ class UxAppShellService {
|
|
|
1495
1487
|
this._setCssVarValue('--eui-app-vh', `${vh}px`);
|
|
1496
1488
|
this._setCssVarValue('--eui-app-vw', `${vw}px`);
|
|
1497
1489
|
}
|
|
1498
|
-
/**
|
|
1499
|
-
* displays a growl UxMessage item, isSticky
|
|
1500
|
-
*/
|
|
1501
|
-
growl(msg, isSticky, isMultiple, life, position, callback) {
|
|
1502
|
-
if (msg.severity !== 'info' && msg.severity !== 'warning' && msg.severity !== 'success' && msg.severity !== 'danger') {
|
|
1503
|
-
throw new Error('UxAppShellService.growl() ERROR : message severity must be either : success, warning, info, danger');
|
|
1504
|
-
}
|
|
1505
|
-
else {
|
|
1506
|
-
if (isMultiple === undefined || !isMultiple) {
|
|
1507
|
-
this.growlMessages = [];
|
|
1508
|
-
}
|
|
1509
|
-
this.growlMessages = this.growlMessages.concat(msg);
|
|
1510
|
-
msg.life = life || msg.life;
|
|
1511
|
-
msg.sticky = isSticky || msg.sticky;
|
|
1512
|
-
if (life === undefined || isNaN(life)) {
|
|
1513
|
-
if (msg.severity === 'danger') {
|
|
1514
|
-
isSticky = true;
|
|
1515
|
-
}
|
|
1516
|
-
else {
|
|
1517
|
-
this.growlLife = 3000;
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
else {
|
|
1521
|
-
this.growlLife = life;
|
|
1522
|
-
}
|
|
1523
|
-
if (isSticky) {
|
|
1524
|
-
this.isGrowlSticky = isSticky;
|
|
1525
|
-
}
|
|
1526
|
-
else {
|
|
1527
|
-
this.isGrowlSticky = false;
|
|
1528
|
-
}
|
|
1529
|
-
if (position) {
|
|
1530
|
-
this.growlPosition = position;
|
|
1531
|
-
}
|
|
1532
|
-
if (callback) {
|
|
1533
|
-
this.growlCallback = callback;
|
|
1534
|
-
}
|
|
1535
|
-
else {
|
|
1536
|
-
this.growlCallback = () => { };
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
clearGrowl() {
|
|
1541
|
-
this.growlMessages = [];
|
|
1542
|
-
}
|
|
1543
|
-
growlSuccess(msg, position) {
|
|
1544
|
-
this.growl({ severity: 'success', summary: 'SUCCESS', detail: msg }, false, false, undefined, position);
|
|
1545
|
-
}
|
|
1546
|
-
growlError(msg, position) {
|
|
1547
|
-
this.growl({ severity: 'danger', summary: 'ERROR', detail: msg }, false, false, undefined, position);
|
|
1548
|
-
}
|
|
1549
|
-
// date helpers
|
|
1550
|
-
growlWarning(msg, position) {
|
|
1551
|
-
this.growl({ severity: 'warning', summary: 'WARNING', detail: msg }, false, false, undefined, position);
|
|
1552
|
-
}
|
|
1553
|
-
growlInfo(msg, position) {
|
|
1554
|
-
this.growl({ severity: 'info', summary: 'INFO', detail: msg }, false, false, undefined, position);
|
|
1555
|
-
}
|
|
1556
|
-
openModal(modalId) {
|
|
1557
|
-
document.body.classList.add('modal-open');
|
|
1558
|
-
if (!modalId) {
|
|
1559
|
-
modalId = 'single_modal';
|
|
1560
|
-
}
|
|
1561
|
-
this.activeModals.push({
|
|
1562
|
-
id: modalId,
|
|
1563
|
-
isOpen: true,
|
|
1564
|
-
});
|
|
1565
|
-
setTimeout(() => {
|
|
1566
|
-
const el = document.getElementById(modalId + '-close-button');
|
|
1567
|
-
if (el) {
|
|
1568
|
-
el.focus();
|
|
1569
|
-
}
|
|
1570
|
-
}, 100);
|
|
1571
|
-
}
|
|
1572
|
-
openMessageBox(messageBoxId) {
|
|
1573
|
-
if (!messageBoxId) {
|
|
1574
|
-
messageBoxId = 'messagebox_modal';
|
|
1575
|
-
}
|
|
1576
|
-
this.openModal(messageBoxId);
|
|
1577
|
-
}
|
|
1578
|
-
closeMessageBox(messageBoxId) {
|
|
1579
|
-
if (!messageBoxId) {
|
|
1580
|
-
messageBoxId = 'messagebox_modal';
|
|
1581
|
-
}
|
|
1582
|
-
this.closeModal(messageBoxId);
|
|
1583
|
-
}
|
|
1584
|
-
isModalOpen(modalId) {
|
|
1585
|
-
if (!modalId) {
|
|
1586
|
-
modalId = 'single_modal';
|
|
1587
|
-
}
|
|
1588
|
-
if (this.activeModals.length) {
|
|
1589
|
-
let modalIndex = this.findModalIndex(modalId);
|
|
1590
|
-
if (modalIndex !== -1) {
|
|
1591
|
-
return this.activeModals[modalIndex].isOpen;
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
return false;
|
|
1595
|
-
}
|
|
1596
|
-
// Positions helpers
|
|
1597
|
-
closeModal(modalId) {
|
|
1598
|
-
if (!modalId) {
|
|
1599
|
-
modalId = 'single_modal';
|
|
1600
|
-
}
|
|
1601
|
-
/**
|
|
1602
|
-
* Make sure we find the modal before splicing the activeModals array
|
|
1603
|
-
*/
|
|
1604
|
-
const index = this.findModalIndex(modalId);
|
|
1605
|
-
if (index >= 0) {
|
|
1606
|
-
this.activeModals.splice(index, 1);
|
|
1607
|
-
}
|
|
1608
|
-
if (this.activeModals && this.activeModals.length <= 0) {
|
|
1609
|
-
document.body.classList.remove('modal-open');
|
|
1610
|
-
}
|
|
1611
|
-
else {
|
|
1612
|
-
// If there is still another (parent) modal dialog open, ensure it is focused upon to be able to close is with the ESC key:
|
|
1613
|
-
const lastModalId = this.activeModals[this.activeModals.length - 1].id;
|
|
1614
|
-
if (lastModalId) {
|
|
1615
|
-
setTimeout(() => {
|
|
1616
|
-
const el = document.getElementById(lastModalId + '-close-button');
|
|
1617
|
-
if (el) {
|
|
1618
|
-
el.focus();
|
|
1619
|
-
}
|
|
1620
|
-
}, 100);
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
findModalIndex(modalId) {
|
|
1625
|
-
let index = -1;
|
|
1626
|
-
if (this.activeModals.length) {
|
|
1627
|
-
for (let i = 0; i < this.activeModals.length; i++) {
|
|
1628
|
-
if (this.activeModals[i].id === modalId) {
|
|
1629
|
-
index = i;
|
|
1630
|
-
break;
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
return index;
|
|
1635
|
-
}
|
|
1636
1490
|
// ---------------
|
|
1637
1491
|
// private getters
|
|
1638
1492
|
// ---------------
|
|
@@ -1761,10 +1615,10 @@ class UxAppShellService {
|
|
|
1761
1615
|
}
|
|
1762
1616
|
});
|
|
1763
1617
|
}
|
|
1764
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1765
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1618
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", 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 }); }
|
|
1619
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxAppShellService, providedIn: 'root' }); }
|
|
1766
1620
|
}
|
|
1767
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxAppShellService, decorators: [{
|
|
1768
1622
|
type: Injectable,
|
|
1769
1623
|
args: [{
|
|
1770
1624
|
providedIn: 'root',
|
|
@@ -1805,21 +1659,31 @@ class CoreAppEffects {
|
|
|
1805
1659
|
if (isFeatureEnabled) {
|
|
1806
1660
|
if (connected) {
|
|
1807
1661
|
this.translateService.get('eui.CONNECTED').subscribe((translation) => {
|
|
1808
|
-
|
|
1662
|
+
// TODO v17 - should be subscribed from the eui-app to display growl
|
|
1663
|
+
// this.asService.growl(
|
|
1664
|
+
// { severity: 'success', summary: 'MESSAGE', detail: translation, life: lifespan },
|
|
1665
|
+
// lifespan < 1,
|
|
1666
|
+
// false
|
|
1667
|
+
// );
|
|
1809
1668
|
});
|
|
1810
1669
|
}
|
|
1811
1670
|
else {
|
|
1812
1671
|
this.translateService.get('eui.NOTCONNECTED').subscribe((translation) => {
|
|
1813
|
-
|
|
1672
|
+
// TODO v17 - should be subscribed from the eui-app to display growl
|
|
1673
|
+
// this.asService.growl(
|
|
1674
|
+
// { severity: 'danger', summary: 'ERROR', detail: translation, life: lifespan },
|
|
1675
|
+
// lifespan < 1,
|
|
1676
|
+
// false
|
|
1677
|
+
// );
|
|
1814
1678
|
});
|
|
1815
1679
|
}
|
|
1816
1680
|
}
|
|
1817
1681
|
})), { dispatch: false });
|
|
1818
1682
|
}
|
|
1819
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1820
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1683
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreAppEffects, deps: [{ token: i1$3.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: UxAppShellService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1684
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreAppEffects }); }
|
|
1821
1685
|
}
|
|
1822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreAppEffects, decorators: [{
|
|
1823
1687
|
type: Injectable
|
|
1824
1688
|
}], ctorParameters: function () { return [{ type: i1$3.Actions }, { type: undefined, decorators: [{
|
|
1825
1689
|
type: Inject,
|
|
@@ -2069,10 +1933,10 @@ class StoreServiceMock extends StoreService {
|
|
|
2069
1933
|
select() {
|
|
2070
1934
|
return of({});
|
|
2071
1935
|
}
|
|
2072
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2073
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1936
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1937
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: StoreServiceMock }); }
|
|
2074
1938
|
}
|
|
2075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
2076
1940
|
type: Injectable
|
|
2077
1941
|
}], ctorParameters: function () { return []; } });
|
|
2078
1942
|
|
|
@@ -2116,11 +1980,11 @@ class CoreModule {
|
|
|
2116
1980
|
storeService.dispatch(new AddAppLoadedConfigModulesAction({ moduleName, moduleConfig }));
|
|
2117
1981
|
}
|
|
2118
1982
|
}
|
|
2119
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2120
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2121
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1983
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: CoreModule, optional: true, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1984
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreModule }); }
|
|
1985
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreModule }); }
|
|
2122
1986
|
}
|
|
2123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CoreModule, decorators: [{
|
|
2124
1988
|
type: NgModule,
|
|
2125
1989
|
args: [{
|
|
2126
1990
|
imports: [
|
|
@@ -2239,10 +2103,10 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
2239
2103
|
// throw error;
|
|
2240
2104
|
super.handleError(error);
|
|
2241
2105
|
}
|
|
2242
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2243
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2106
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: LogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2107
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' }); }
|
|
2244
2108
|
}
|
|
2245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
2246
2110
|
type: Injectable,
|
|
2247
2111
|
args: [{
|
|
2248
2112
|
providedIn: 'root',
|
|
@@ -2287,16 +2151,17 @@ class HttpErrorHandlerInterceptor {
|
|
|
2287
2151
|
// return the first matching route, if any
|
|
2288
2152
|
return routes.length > 0 ? routes[0] : null;
|
|
2289
2153
|
}
|
|
2290
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2291
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2154
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i0.Injector }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2155
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: HttpErrorHandlerInterceptor }); }
|
|
2292
2156
|
}
|
|
2293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
2294
2158
|
type: Injectable
|
|
2295
2159
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2296
2160
|
type: Inject,
|
|
2297
2161
|
args: [HTTP_ERROR_HANDLER_CONFIG_TOKEN]
|
|
2298
2162
|
}] }, { type: i0.Injector }, { type: i2$1.Router }]; } });
|
|
2299
2163
|
|
|
2164
|
+
// import { UxAppShellService } from '../ux-app-shell.service';
|
|
2300
2165
|
function AlertHttpErrorCallbackFn(error) {
|
|
2301
2166
|
alert(error.statusText);
|
|
2302
2167
|
}
|
|
@@ -2308,8 +2173,9 @@ function LogHttpErrorCallbackFn(error, injector) {
|
|
|
2308
2173
|
logService.error('HttpError', error);
|
|
2309
2174
|
}
|
|
2310
2175
|
function GrowlHttpErrorCallbackFn(error, injector) {
|
|
2311
|
-
|
|
2312
|
-
asService.
|
|
2176
|
+
// TODO v17 should not display growl from here but from where it's called
|
|
2177
|
+
// const asService = injector.get(UxAppShellService);
|
|
2178
|
+
// asService.growlError(error.statusText);
|
|
2313
2179
|
}
|
|
2314
2180
|
|
|
2315
2181
|
class ApiQueueService {
|
|
@@ -2430,10 +2296,10 @@ class ApiQueueService {
|
|
|
2430
2296
|
buildHttpRequest(id, item) {
|
|
2431
2297
|
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap(() => this.removeQueueItem(id)));
|
|
2432
2298
|
}
|
|
2433
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2434
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2299
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: ApiQueueService, deps: [{ token: StoreService }, { token: i1$2.HttpClient }, { token: LogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2300
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: ApiQueueService, providedIn: 'root' }); }
|
|
2435
2301
|
}
|
|
2436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
2437
2303
|
type: Injectable,
|
|
2438
2304
|
args: [{
|
|
2439
2305
|
providedIn: 'root',
|
|
@@ -2761,7 +2627,7 @@ class EuiPermissionService extends EuiService {
|
|
|
2761
2627
|
}
|
|
2762
2628
|
/**
|
|
2763
2629
|
* checks whether a user have all rights passed as an argument
|
|
2764
|
-
* @param rights an array of
|
|
2630
|
+
* @param rights an array of EuiUserRight
|
|
2765
2631
|
*/
|
|
2766
2632
|
haveAllRights(rights) {
|
|
2767
2633
|
if (!isDefined(rights)) {
|
|
@@ -2769,10 +2635,10 @@ class EuiPermissionService extends EuiService {
|
|
|
2769
2635
|
}
|
|
2770
2636
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2771
2637
|
}
|
|
2772
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2773
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2638
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2639
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiPermissionService, providedIn: 'root' }); }
|
|
2774
2640
|
}
|
|
2775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2776
2642
|
type: Injectable,
|
|
2777
2643
|
args: [{
|
|
2778
2644
|
providedIn: 'root',
|
|
@@ -2781,7 +2647,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImpor
|
|
|
2781
2647
|
type: Optional
|
|
2782
2648
|
}] }, { type: StoreService }]; } });
|
|
2783
2649
|
|
|
2784
|
-
class
|
|
2650
|
+
class EuiDynamicMenuService {
|
|
2785
2651
|
// TODO: it should be moved euiservice, or it should be static
|
|
2786
2652
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
2787
2653
|
constructor(uxPermission, store) {
|
|
@@ -2797,10 +2663,10 @@ class UxDynamicMenuService {
|
|
|
2797
2663
|
getMenuLinks() {
|
|
2798
2664
|
return this.menuLinks;
|
|
2799
2665
|
}
|
|
2800
|
-
|
|
2666
|
+
filterEuiMenuItemsWithRights(links) {
|
|
2801
2667
|
return links.filter((link) => {
|
|
2802
2668
|
if (link.hasChildren) {
|
|
2803
|
-
link.children = this.
|
|
2669
|
+
link.children = this.filterEuiMenuItemsWithRights(link.children);
|
|
2804
2670
|
}
|
|
2805
2671
|
// First check if the user is denied access:
|
|
2806
2672
|
if (link.deniedRightId) {
|
|
@@ -2832,10 +2698,10 @@ class UxDynamicMenuService {
|
|
|
2832
2698
|
return true;
|
|
2833
2699
|
});
|
|
2834
2700
|
}
|
|
2835
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2836
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2701
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2702
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiDynamicMenuService, providedIn: 'root' }); }
|
|
2837
2703
|
}
|
|
2838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiDynamicMenuService, decorators: [{
|
|
2839
2705
|
type: Injectable,
|
|
2840
2706
|
args: [{
|
|
2841
2707
|
providedIn: 'root',
|
|
@@ -2878,21 +2744,30 @@ class UxErrorFeedbackService {
|
|
|
2878
2744
|
* Growl errors
|
|
2879
2745
|
*/
|
|
2880
2746
|
growlError(err) {
|
|
2881
|
-
|
|
2882
|
-
const
|
|
2883
|
-
const
|
|
2884
|
-
const
|
|
2885
|
-
const
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2747
|
+
// TODO v17 - should not display growl from here, but where it's called
|
|
2748
|
+
// const feedBacks = err.uxHttpErrorOutput.getFeedBacks();
|
|
2749
|
+
// const isGrowlSticky = false;
|
|
2750
|
+
// const isGrowlMultiple = true;
|
|
2751
|
+
// const growlLife = 10000;
|
|
2752
|
+
// const position = 'bottom-right';
|
|
2753
|
+
// feedBacks.forEach((feedback: UxErrorFeedback) =>
|
|
2754
|
+
// this.translateService
|
|
2755
|
+
// .get(feedback.msgId)
|
|
2756
|
+
// .pipe(take(1))
|
|
2757
|
+
// .subscribe((translate) => {
|
|
2758
|
+
// this.asService.growl(
|
|
2759
|
+
// {
|
|
2760
|
+
// severity: feedback.severity || 'danger',
|
|
2761
|
+
// summary: 'ERROR',
|
|
2762
|
+
// detail: translate,
|
|
2763
|
+
// },
|
|
2764
|
+
// isGrowlSticky,
|
|
2765
|
+
// isGrowlMultiple,
|
|
2766
|
+
// growlLife,
|
|
2767
|
+
// position
|
|
2768
|
+
// );
|
|
2769
|
+
// })
|
|
2770
|
+
// );
|
|
2896
2771
|
}
|
|
2897
2772
|
clearError(id, groupId) {
|
|
2898
2773
|
this.errors.next(new UxClearErrorFeedbackEvent(id, groupId));
|
|
@@ -2903,10 +2778,10 @@ class UxErrorFeedbackService {
|
|
|
2903
2778
|
createGlobalErrorManager() {
|
|
2904
2779
|
return new UxErrorManager(this, true);
|
|
2905
2780
|
}
|
|
2906
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2907
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2781
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxErrorFeedbackService, deps: [{ token: UxAppShellService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2782
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxErrorFeedbackService, providedIn: 'root' }); }
|
|
2908
2783
|
}
|
|
2909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxErrorFeedbackService, decorators: [{
|
|
2910
2785
|
type: Injectable,
|
|
2911
2786
|
args: [{
|
|
2912
2787
|
providedIn: 'root',
|
|
@@ -3001,15 +2876,15 @@ class UxDynamicComponentService {
|
|
|
3001
2876
|
injectorTokens.set(DYNAMIC_COMPONENT_CONFIG, data);
|
|
3002
2877
|
return new PortalInjector(this.injector, injectorTokens);
|
|
3003
2878
|
}
|
|
3004
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3005
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2879
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2880
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxDynamicComponentService }); }
|
|
3006
2881
|
}
|
|
3007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxDynamicComponentService, decorators: [{
|
|
3008
2883
|
type: Injectable
|
|
3009
2884
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
|
|
3010
2885
|
|
|
3011
2886
|
/* eslint-disable */
|
|
3012
|
-
const
|
|
2887
|
+
const EUI_COUNTRIES = {
|
|
3013
2888
|
AF: 'Afghanistan',
|
|
3014
2889
|
AX: 'Aland Islands',
|
|
3015
2890
|
AL: 'Albania',
|
|
@@ -3258,7 +3133,7 @@ const UX_COUNTRIES = {
|
|
|
3258
3133
|
ZM: 'Zambia',
|
|
3259
3134
|
ZW: 'Zimbabwe',
|
|
3260
3135
|
};
|
|
3261
|
-
const
|
|
3136
|
+
const EUI_TIMEZONES = [
|
|
3262
3137
|
{ name: 'Europe/Andorra', desc: 'Andorra - Andorra (GMT+02:00)' },
|
|
3263
3138
|
{ name: 'Asia/Dubai', desc: 'United Arab Emirates - Dubai (GMT+04:00)' },
|
|
3264
3139
|
{ name: 'Asia/Kabul', desc: 'Afghanistan - Kabul (GMT+04:30)' },
|
|
@@ -3692,34 +3567,33 @@ const UX_TIMEZONES = [
|
|
|
3692
3567
|
{ name: 'Africa/Lusaka', desc: 'Zambia - Lusaka (GMT+02:00)' },
|
|
3693
3568
|
{ name: 'Africa/Harare', desc: 'Zimbabwe - Harare (GMT+02:00)' },
|
|
3694
3569
|
];
|
|
3695
|
-
|
|
3696
|
-
class UxTimezoneService {
|
|
3570
|
+
class EuiTimezoneService {
|
|
3697
3571
|
/**
|
|
3698
3572
|
* Convert country ISO code to country name (in english)
|
|
3699
3573
|
*/
|
|
3700
3574
|
iso2country(iso) {
|
|
3701
|
-
return
|
|
3575
|
+
return EUI_COUNTRIES[iso] ? EUI_COUNTRIES[iso] : iso;
|
|
3702
3576
|
}
|
|
3703
3577
|
/**
|
|
3704
3578
|
* Gets the list of ISO-codes for all countries
|
|
3705
3579
|
*/
|
|
3706
3580
|
getCountries() {
|
|
3707
3581
|
const res = [];
|
|
3708
|
-
for (const prop of Object.keys(
|
|
3582
|
+
for (const prop of Object.keys(EUI_COUNTRIES)) {
|
|
3709
3583
|
res.push(prop);
|
|
3710
3584
|
}
|
|
3711
3585
|
return res;
|
|
3712
3586
|
}
|
|
3713
3587
|
getTimezones() {
|
|
3714
|
-
return
|
|
3588
|
+
return EUI_TIMEZONES;
|
|
3715
3589
|
}
|
|
3716
3590
|
getTimezone(tz) {
|
|
3717
|
-
return
|
|
3591
|
+
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
3718
3592
|
}
|
|
3719
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3720
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3593
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3594
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiTimezoneService }); }
|
|
3721
3595
|
}
|
|
3722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuiTimezoneService, decorators: [{
|
|
3723
3597
|
type: Injectable
|
|
3724
3598
|
}] });
|
|
3725
3599
|
|
|
@@ -3838,10 +3712,10 @@ class LocalStorageService extends StorageService {
|
|
|
3838
3712
|
}
|
|
3839
3713
|
}
|
|
3840
3714
|
}
|
|
3841
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3842
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3715
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocalStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3716
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocalStorageService }); }
|
|
3843
3717
|
}
|
|
3844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
3845
3719
|
type: Injectable
|
|
3846
3720
|
}], ctorParameters: function () { return [{ type: LogService, decorators: [{
|
|
3847
3721
|
type: Optional
|
|
@@ -3909,10 +3783,10 @@ class SessionStorageService extends StorageService {
|
|
|
3909
3783
|
}
|
|
3910
3784
|
}
|
|
3911
3785
|
}
|
|
3912
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3913
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3786
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: SessionStorageService, deps: [{ token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3787
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: SessionStorageService }); }
|
|
3914
3788
|
}
|
|
3915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
3916
3790
|
type: Injectable
|
|
3917
3791
|
}], ctorParameters: function () { return [{ type: LogService, decorators: [{
|
|
3918
3792
|
type: Optional
|
|
@@ -3990,10 +3864,10 @@ class LocalForageService extends AsyncStorageService {
|
|
|
3990
3864
|
}
|
|
3991
3865
|
}));
|
|
3992
3866
|
}
|
|
3993
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3994
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3867
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3868
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocalForageService }); }
|
|
3995
3869
|
}
|
|
3996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocalForageService, decorators: [{
|
|
3997
3871
|
type: Injectable
|
|
3998
3872
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
3999
3873
|
type: Inject,
|
|
@@ -4200,10 +4074,10 @@ class LocaleService extends EuiService {
|
|
|
4200
4074
|
}
|
|
4201
4075
|
});
|
|
4202
4076
|
}
|
|
4203
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4204
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4077
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", 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 }); }
|
|
4078
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocaleService, providedIn: 'root' }); }
|
|
4205
4079
|
}
|
|
4206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocaleService, decorators: [{
|
|
4207
4081
|
type: Injectable,
|
|
4208
4082
|
args: [{
|
|
4209
4083
|
providedIn: 'root',
|
|
@@ -4249,10 +4123,10 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4249
4123
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4250
4124
|
return of({ success: true });
|
|
4251
4125
|
}
|
|
4252
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4253
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4126
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocaleServiceMock, deps: [{ token: LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4127
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocaleServiceMock }); }
|
|
4254
4128
|
}
|
|
4255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: LocaleServiceMock, decorators: [{
|
|
4256
4130
|
type: Injectable
|
|
4257
4131
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4258
4132
|
type: Optional
|
|
@@ -4308,10 +4182,10 @@ class UserService extends EuiService {
|
|
|
4308
4182
|
this.store.dispatch(new UpdateUserStateAction(userState));
|
|
4309
4183
|
}
|
|
4310
4184
|
}
|
|
4311
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4312
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4185
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UserService, deps: [{ token: StoreService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4186
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
4313
4187
|
}
|
|
4314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UserService, decorators: [{
|
|
4315
4189
|
type: Injectable,
|
|
4316
4190
|
args: [{
|
|
4317
4191
|
providedIn: 'root',
|
|
@@ -4339,10 +4213,10 @@ class UserServiceMock extends UserService {
|
|
|
4339
4213
|
getUserId() {
|
|
4340
4214
|
return of('anonymous');
|
|
4341
4215
|
}
|
|
4342
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4343
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4216
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4217
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UserServiceMock }); }
|
|
4344
4218
|
}
|
|
4345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
4346
4220
|
type: Injectable
|
|
4347
4221
|
}], ctorParameters: function () { return []; } });
|
|
4348
4222
|
|
|
@@ -4371,10 +4245,10 @@ class AddLangParamInterceptor {
|
|
|
4371
4245
|
params: req.params.set(langParam, langValue),
|
|
4372
4246
|
}));
|
|
4373
4247
|
}
|
|
4374
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4375
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4248
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: AddLangParamInterceptor, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4249
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: AddLangParamInterceptor }); }
|
|
4376
4250
|
}
|
|
4377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
4378
4252
|
type: Injectable
|
|
4379
4253
|
}], ctorParameters: function () { return [{ type: i2.TranslateService }]; } });
|
|
4380
4254
|
|
|
@@ -4390,10 +4264,10 @@ class CachePreventionInterceptor {
|
|
|
4390
4264
|
headers: req.headers.set('Cache-Control', 'No-Cache'),
|
|
4391
4265
|
}));
|
|
4392
4266
|
}
|
|
4393
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4394
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4267
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4268
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CachePreventionInterceptor }); }
|
|
4395
4269
|
}
|
|
4396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
4397
4271
|
type: Injectable
|
|
4398
4272
|
}] });
|
|
4399
4273
|
|
|
@@ -4403,10 +4277,10 @@ class CorsSecurityInterceptor {
|
|
|
4403
4277
|
withCredentials: true,
|
|
4404
4278
|
}));
|
|
4405
4279
|
}
|
|
4406
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4407
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4280
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4281
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CorsSecurityInterceptor }); }
|
|
4408
4282
|
}
|
|
4409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
4410
4284
|
type: Injectable
|
|
4411
4285
|
}] });
|
|
4412
4286
|
|
|
@@ -4416,10 +4290,10 @@ class CsrfPreventionInterceptor {
|
|
|
4416
4290
|
headers: request.headers.set('X-Requested-With', 'XMLHttpRequest'),
|
|
4417
4291
|
}));
|
|
4418
4292
|
}
|
|
4419
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4420
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4293
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4294
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CsrfPreventionInterceptor }); }
|
|
4421
4295
|
}
|
|
4422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
4423
4297
|
type: Injectable
|
|
4424
4298
|
}] });
|
|
4425
4299
|
|
|
@@ -4484,10 +4358,10 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
4484
4358
|
reauthenticate() {
|
|
4485
4359
|
document.location.reload();
|
|
4486
4360
|
}
|
|
4487
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4488
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4361
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4362
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor }); }
|
|
4489
4363
|
}
|
|
4490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4491
4365
|
type: Injectable
|
|
4492
4366
|
}] });
|
|
4493
4367
|
|
|
@@ -4506,10 +4380,10 @@ class UxRequestErrorModelInterceptor {
|
|
|
4506
4380
|
return of(err);
|
|
4507
4381
|
}));
|
|
4508
4382
|
}
|
|
4509
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4510
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4383
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4384
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxRequestErrorModelInterceptor }); }
|
|
4511
4385
|
}
|
|
4512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4513
4387
|
type: Injectable
|
|
4514
4388
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4515
4389
|
type: Inject,
|
|
@@ -4658,10 +4532,10 @@ class OpenIdConnectInterceptor {
|
|
|
4658
4532
|
return this.defaultMaximumRequestRetries;
|
|
4659
4533
|
}
|
|
4660
4534
|
}
|
|
4661
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4662
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4535
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: OpenIdConnectInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4536
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: OpenIdConnectInterceptor }); }
|
|
4663
4537
|
}
|
|
4664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: OpenIdConnectInterceptor, decorators: [{
|
|
4665
4539
|
type: Injectable
|
|
4666
4540
|
}], ctorParameters: function () { return []; } });
|
|
4667
4541
|
|
|
@@ -4708,10 +4582,10 @@ class OpenIdConnectService {
|
|
|
4708
4582
|
getUserDetails() {
|
|
4709
4583
|
return this.userDetails;
|
|
4710
4584
|
}
|
|
4711
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4712
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4585
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: OpenIdConnectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4586
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: OpenIdConnectService, providedIn: 'root' }); }
|
|
4713
4587
|
}
|
|
4714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: OpenIdConnectService, decorators: [{
|
|
4715
4589
|
type: Injectable,
|
|
4716
4590
|
args: [{
|
|
4717
4591
|
providedIn: 'root',
|
|
@@ -4730,5 +4604,5 @@ class OpenIdConnectServiceMock extends OpenIdConnectService {
|
|
|
4730
4604
|
* Generated bundle index. Do not edit.
|
|
4731
4605
|
*/
|
|
4732
4606
|
|
|
4733
|
-
export { ActivatedRouteAction, AddApiQueueItemAction, AddAppLoadedConfigModulesAction, AddLangParamInterceptor, AlertHttpErrorCallbackFn, ApiQueueService, ApiQueueServiceMock, AsyncStorageService, AsyncStorageServiceMock, BASE_LOGGER_NAME_TOKEN, BASE_NAME_TOKEN, BrowserStorageType, CONFIG_TOKEN, CORE_ROOT_GUARD, CachePreventionInterceptor, ConsoleHttpErrorCallbackFn, CoreAppActionTypes, CoreAppEffects, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreModuleEffects, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiCoreRootGuardClass, EuiError, EuiPermissionService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, I18nServiceMock, InitStoreAction, LANG_PARAM_KEY, LOCALE_ID_MAPPER, LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, LOG_APPENDERS_TOKEN, LOG_LEVEL_TOKEN, LocalForageService, LocalStorageService, LocaleService, LocaleServiceMock, LogHttpErrorCallbackFn, LogModule, LogService, LogServiceMock, MODULE_CONFIG_TOKEN, MODULE_NAME_TOKEN, OpenIdConnectInterceptor, OpenIdConnectService, OpenIdConnectServiceMock, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, StorageService, StorageServiceMock, StoreService, StoreServiceMock,
|
|
4607
|
+
export { ActivatedRouteAction, AddApiQueueItemAction, AddAppLoadedConfigModulesAction, AddLangParamInterceptor, AlertHttpErrorCallbackFn, ApiQueueService, ApiQueueServiceMock, AsyncStorageService, AsyncStorageServiceMock, BASE_LOGGER_NAME_TOKEN, BASE_NAME_TOKEN, BrowserStorageType, CONFIG_TOKEN, CORE_ROOT_GUARD, CachePreventionInterceptor, ConsoleHttpErrorCallbackFn, CoreAppActionTypes, CoreAppEffects, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreModuleEffects, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EUI_COUNTRIES, EUI_TIMEZONES, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiCoreRootGuardClass, EuiDynamicMenuService, EuiError, EuiPermissionService, EuiTimezoneService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, I18nServiceMock, InitStoreAction, LANG_PARAM_KEY, LOCALE_ID_MAPPER, LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, LOG_APPENDERS_TOKEN, LOG_LEVEL_TOKEN, LocalForageService, LocalStorageService, LocaleService, LocaleServiceMock, LogHttpErrorCallbackFn, LogModule, LogService, LogServiceMock, MODULE_CONFIG_TOKEN, MODULE_NAME_TOKEN, OpenIdConnectInterceptor, OpenIdConnectService, OpenIdConnectServiceMock, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_ERROR_MAPPING_HANDLER_TOKEN, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxAppShellService, UxDynamicComponentService, UxErrorFeedbackService, UxErrorManager, UxRequestErrorModelInterceptor, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, formatNumber, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, position, preInitApp, prepareEuiAppConfigToken, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail, withUxErrorManager };
|
|
4734
4608
|
//# sourceMappingURL=eui-core.mjs.map
|