@eui/core 15.4.0 → 15.4.1
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/LICENSE +296 -296
- package/README.md +26 -26
- package/assets/i18n-eui/bg.json +114 -114
- package/assets/i18n-eui/cs.json +114 -114
- package/assets/i18n-eui/da.json +114 -114
- package/assets/i18n-eui/de.json +114 -114
- package/assets/i18n-eui/el.json +114 -114
- package/assets/i18n-eui/en.json +113 -113
- package/assets/i18n-eui/es.json +114 -114
- package/assets/i18n-eui/et.json +114 -114
- package/assets/i18n-eui/fi.json +114 -114
- package/assets/i18n-eui/fr.json +114 -114
- package/assets/i18n-eui/ga.json +114 -114
- package/assets/i18n-eui/hr.json +114 -114
- package/assets/i18n-eui/hu.json +114 -114
- package/assets/i18n-eui/it.json +114 -114
- package/assets/i18n-eui/lt.json +114 -114
- package/assets/i18n-eui/lv.json +114 -114
- package/assets/i18n-eui/mt.json +114 -114
- package/assets/i18n-eui/nl.json +114 -114
- package/assets/i18n-eui/pl.json +114 -114
- package/assets/i18n-eui/pt.json +114 -114
- package/assets/i18n-eui/ro.json +114 -114
- package/assets/i18n-eui/sk.json +114 -114
- package/assets/i18n-eui/sl.json +114 -114
- package/assets/i18n-eui/sv.json +114 -114
- package/docs/classes/RouterMock.html +5 -5
- package/docs/dependencies.html +95 -7
- package/docs/index.html +36 -59
- package/docs/injectables/CoreAppEffects.html +51 -51
- package/docs/js/menu-wc.js +12 -7
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +1211 -1211
- package/docs/overview.html +171 -0
- package/esm2020/eui-core.mjs +4 -4
- package/esm2020/index.mjs +13 -13
- package/esm2020/lib/eui-core.module.mjs +78 -78
- package/esm2020/lib/helpers/date-helpers.mjs +3 -3
- package/esm2020/lib/helpers/dom-helpers.mjs +87 -87
- package/esm2020/lib/helpers/event-helpers.mjs +9 -9
- package/esm2020/lib/helpers/form-helpers.mjs +42 -42
- package/esm2020/lib/helpers/format-helpers.mjs +66 -66
- package/esm2020/lib/helpers/http-helpers.mjs +7 -7
- package/esm2020/lib/helpers/index.mjs +8 -8
- package/esm2020/lib/helpers/utils.mjs +7 -7
- package/esm2020/lib/interceptors/add-lang-param.interceptor.mjs +35 -35
- package/esm2020/lib/interceptors/cache-prevention.interceptor.mjs +21 -21
- package/esm2020/lib/interceptors/cors-security.interceptor.mjs +15 -15
- package/esm2020/lib/interceptors/csrf-prevention.interceptor.mjs +15 -15
- package/esm2020/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +72 -72
- package/esm2020/lib/interceptors/index.mjs +8 -8
- package/esm2020/lib/interceptors/openid/index.mjs +4 -4
- package/esm2020/lib/interceptors/openid/openid-connect.interceptor.mjs +149 -149
- package/esm2020/lib/interceptors/openid/openid-connect.service.mjs +56 -56
- package/esm2020/lib/interceptors/openid/openid-connect.service.mock.mjs +8 -8
- package/esm2020/lib/interceptors/ux-request-error-model.interceptor.mjs +31 -31
- package/esm2020/lib/services/app/eui-init-app.mjs +29 -29
- package/esm2020/lib/services/app/eui-pre-init-app.mjs +43 -43
- package/esm2020/lib/services/app/eui-startup.mjs +40 -40
- package/esm2020/lib/services/app/factories/log.mjs +55 -55
- package/esm2020/lib/services/app/index.mjs +2 -2
- package/esm2020/lib/services/config/defaults.mjs +68 -68
- package/esm2020/lib/services/config/tokens.mjs +74 -74
- package/esm2020/lib/services/errors/eui.error.mjs +38 -38
- package/esm2020/lib/services/errors/global-error-handler.mjs +24 -24
- package/esm2020/lib/services/errors/http-error-handler-callback-functions.mjs +17 -17
- package/esm2020/lib/services/errors/http-error-handler.interceptor.mjs +55 -55
- package/esm2020/lib/services/errors/index.mjs +5 -5
- package/esm2020/lib/services/i18n/i18n.loader.mjs +198 -198
- package/esm2020/lib/services/i18n/i18n.resource.mjs +43 -43
- package/esm2020/lib/services/i18n/i18n.service.mjs +228 -228
- package/esm2020/lib/services/i18n/i18n.service.mock.mjs +38 -38
- package/esm2020/lib/services/i18n/index.mjs +6 -6
- package/esm2020/lib/services/index.mjs +19 -19
- package/esm2020/lib/services/locale/index.mjs +3 -3
- package/esm2020/lib/services/locale/locale.service.mjs +232 -232
- package/esm2020/lib/services/locale/locale.service.mock.mjs +43 -43
- package/esm2020/lib/services/log/index.mjs +4 -4
- package/esm2020/lib/services/log/log.module.mjs +38 -38
- package/esm2020/lib/services/log/log.service.mjs +51 -51
- package/esm2020/lib/services/log/log.service.mock.mjs +7 -7
- package/esm2020/lib/services/permission/permission.service.mjs +110 -110
- package/esm2020/lib/services/queue/api-queue.service.mjs +137 -137
- package/esm2020/lib/services/queue/api-queue.service.mock.mjs +23 -23
- package/esm2020/lib/services/queue/index.mjs +3 -3
- package/esm2020/lib/services/storage/async-storage.service.mjs +17 -17
- package/esm2020/lib/services/storage/async-storage.service.mock.mjs +22 -22
- package/esm2020/lib/services/storage/index.mjs +8 -8
- package/esm2020/lib/services/storage/local-forage.service.mjs +93 -93
- package/esm2020/lib/services/storage/local-storage.service.mjs +75 -75
- package/esm2020/lib/services/storage/session-storage.service.mjs +75 -75
- package/esm2020/lib/services/storage/storage.service.mjs +6 -6
- package/esm2020/lib/services/storage/storage.service.mock.mjs +12 -12
- package/esm2020/lib/services/store/actions/app.actions.mjs +74 -74
- package/esm2020/lib/services/store/actions/i18n.actions.mjs +11 -11
- package/esm2020/lib/services/store/actions/index.mjs +6 -6
- package/esm2020/lib/services/store/actions/locale.actions.mjs +11 -11
- package/esm2020/lib/services/store/actions/notifications.actions.mjs +11 -11
- package/esm2020/lib/services/store/actions/user.actions.mjs +39 -39
- package/esm2020/lib/services/store/effects/app.effects.mjs +55 -55
- package/esm2020/lib/services/store/effects/index.mjs +4 -4
- package/esm2020/lib/services/store/index.mjs +6 -6
- package/esm2020/lib/services/store/reducers/app.reducers.mjs +56 -56
- package/esm2020/lib/services/store/reducers/core.reducers.mjs +13 -13
- package/esm2020/lib/services/store/reducers/i18n.reducers.mjs +16 -16
- package/esm2020/lib/services/store/reducers/index.mjs +8 -8
- package/esm2020/lib/services/store/reducers/locale.reducers.mjs +16 -16
- package/esm2020/lib/services/store/reducers/meta.reducers.mjs +89 -89
- package/esm2020/lib/services/store/reducers/notifications.reducers.mjs +13 -13
- package/esm2020/lib/services/store/reducers/user.reducers.mjs +43 -43
- package/esm2020/lib/services/store/store.service.mjs +112 -112
- package/esm2020/lib/services/store/store.service.mock.mjs +22 -22
- package/esm2020/lib/services/user/index.mjs +3 -3
- package/esm2020/lib/services/user/user.service.mjs +64 -64
- package/esm2020/lib/services/user/user.service.mock.mjs +32 -32
- package/esm2020/lib/services/ux-app-shell.service.mjs +690 -690
- package/esm2020/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +63 -63
- package/esm2020/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +66 -66
- package/esm2020/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +99 -99
- package/esm2020/lib/services/ux-error-feedback/ux-error-handler.operator.mjs +16 -16
- package/esm2020/lib/services/ux-timezone.service.mjs +716 -716
- package/fesm2015/eui-core.mjs +4484 -4484
- package/fesm2015/eui-core.mjs.map +1 -1
- package/fesm2020/eui-core.mjs +4538 -4538
- package/fesm2020/eui-core.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/eui-core.module.d.ts +20 -20
- package/lib/helpers/date-helpers.d.ts +2 -2
- package/lib/helpers/dom-helpers.d.ts +26 -26
- package/lib/helpers/event-helpers.d.ts +1 -1
- package/lib/helpers/form-helpers.d.ts +10 -10
- package/lib/helpers/format-helpers.d.ts +12 -12
- package/lib/helpers/http-helpers.d.ts +2 -2
- package/lib/helpers/index.d.ts +7 -7
- package/lib/helpers/utils.d.ts +6 -6
- package/lib/interceptors/add-lang-param.interceptor.d.ts +16 -16
- package/lib/interceptors/cache-prevention.interceptor.d.ts +8 -8
- package/lib/interceptors/cors-security.interceptor.d.ts +8 -8
- package/lib/interceptors/csrf-prevention.interceptor.d.ts +8 -8
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts +12 -12
- package/lib/interceptors/index.d.ts +7 -7
- package/lib/interceptors/openid/index.d.ts +3 -3
- package/lib/interceptors/openid/openid-connect.interceptor.d.ts +14 -14
- package/lib/interceptors/openid/openid-connect.service.d.ts +17 -17
- package/lib/interceptors/openid/openid-connect.service.mock.d.ts +5 -5
- package/lib/interceptors/ux-request-error-model.interceptor.d.ts +13 -13
- package/lib/services/app/eui-init-app.d.ts +2 -2
- package/lib/services/app/eui-pre-init-app.d.ts +16 -16
- package/lib/services/app/eui-startup.d.ts +4 -4
- package/lib/services/app/factories/log.d.ts +25 -25
- package/lib/services/app/index.d.ts +1 -1
- package/lib/services/config/defaults.d.ts +11 -11
- package/lib/services/config/tokens.d.ts +19 -19
- package/lib/services/errors/eui.error.d.ts +15 -15
- package/lib/services/errors/global-error-handler.d.ts +10 -10
- package/lib/services/errors/http-error-handler-callback-functions.d.ts +6 -6
- package/lib/services/errors/http-error-handler.interceptor.d.ts +22 -22
- package/lib/services/errors/index.d.ts +4 -4
- package/lib/services/i18n/i18n.loader.d.ts +79 -79
- package/lib/services/i18n/i18n.resource.d.ts +35 -35
- package/lib/services/i18n/i18n.service.d.ts +73 -73
- package/lib/services/i18n/i18n.service.mock.d.ts +19 -19
- package/lib/services/i18n/index.d.ts +4 -4
- package/lib/services/index.d.ts +18 -18
- package/lib/services/locale/index.d.ts +2 -2
- package/lib/services/locale/locale.service.d.ts +68 -68
- package/lib/services/locale/locale.service.mock.d.ts +15 -15
- package/lib/services/log/index.d.ts +3 -3
- package/lib/services/log/log.module.d.ts +15 -15
- package/lib/services/log/log.service.d.ts +27 -27
- package/lib/services/log/log.service.mock.d.ts +4 -4
- package/lib/services/permission/permission.service.d.ts +52 -52
- package/lib/services/queue/api-queue.service.d.ts +76 -76
- package/lib/services/queue/api-queue.service.mock.d.ts +13 -13
- package/lib/services/queue/index.d.ts +2 -2
- package/lib/services/storage/async-storage.service.d.ts +44 -44
- package/lib/services/storage/async-storage.service.mock.d.ts +11 -11
- package/lib/services/storage/index.d.ts +7 -7
- package/lib/services/storage/local-forage.service.d.ts +48 -48
- package/lib/services/storage/local-storage.service.d.ts +34 -34
- package/lib/services/storage/session-storage.service.d.ts +34 -34
- package/lib/services/storage/storage.service.d.ts +28 -28
- package/lib/services/storage/storage.service.mock.d.ts +7 -7
- package/lib/services/store/actions/app.actions.d.ts +82 -82
- package/lib/services/store/actions/i18n.actions.d.ts +11 -11
- package/lib/services/store/actions/index.d.ts +5 -5
- package/lib/services/store/actions/locale.actions.d.ts +11 -11
- package/lib/services/store/actions/notifications.actions.d.ts +10 -10
- package/lib/services/store/actions/user.actions.d.ts +35 -35
- package/lib/services/store/effects/app.effects.d.ts +19 -19
- package/lib/services/store/effects/index.d.ts +3 -3
- package/lib/services/store/index.d.ts +5 -5
- package/lib/services/store/reducers/app.reducers.d.ts +3 -3
- package/lib/services/store/reducers/core.reducers.d.ts +3 -3
- package/lib/services/store/reducers/i18n.reducers.d.ts +3 -3
- package/lib/services/store/reducers/index.d.ts +7 -7
- package/lib/services/store/reducers/locale.reducers.d.ts +3 -3
- package/lib/services/store/reducers/meta.reducers.d.ts +17 -17
- package/lib/services/store/reducers/notifications.reducers.d.ts +3 -3
- package/lib/services/store/reducers/user.reducers.d.ts +3 -3
- package/lib/services/store/store.service.d.ts +43 -43
- package/lib/services/store/store.service.mock.d.ts +12 -12
- package/lib/services/user/index.d.ts +2 -2
- package/lib/services/user/user.service.d.ts +15 -15
- package/lib/services/user/user.service.mock.d.ts +16 -16
- package/lib/services/ux-app-shell.service.d.ts +155 -155
- package/lib/services/ux-dynamic-component/ux-dynamic-component.service.d.ts +36 -36
- package/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.d.ts +14 -14
- package/lib/services/ux-error-feedback/ux-error-feedback.service.d.ts +35 -35
- package/lib/services/ux-error-feedback/ux-error-handler.operator.d.ts +3 -3
- package/lib/services/ux-timezone.service.d.ts +269 -269
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { EuiAppConfig, EuiAppHandlersConfig, EuiAppJsonConfig, EuiConfig, LogConfig, ModuleConfig, GlobalConfig, HttpErrorHandlerConfig, ConnectionStatus } from '@eui/base';
|
|
2
|
-
import { InjectionToken } from '@angular/core';
|
|
3
|
-
export declare const EUI_CONFIG_TOKEN: InjectionToken<EuiConfig>;
|
|
4
|
-
export declare const MODULE_NAME_TOKEN: InjectionToken<string>;
|
|
5
|
-
export declare const MODULE_CONFIG_TOKEN: InjectionToken<ModuleConfig>;
|
|
6
|
-
export declare const CONFIG_TOKEN: InjectionToken<EuiAppConfig>;
|
|
7
|
-
export declare const GLOBAL_CONFIG_TOKEN: InjectionToken<GlobalConfig>;
|
|
8
|
-
export declare const BASE_NAME_TOKEN: InjectionToken<string>;
|
|
9
|
-
export declare const ROOT_LOG_CONFIG_TOKEN: InjectionToken<LogConfig>;
|
|
10
|
-
export declare const SHOW_CONNECTION_STATUS_TOKEN: InjectionToken<boolean>;
|
|
11
|
-
export declare const HTTP_ERROR_HANDLER_CONFIG_TOKEN: InjectionToken<HttpErrorHandlerConfig>;
|
|
12
|
-
export declare function getGlobalConfig(appConfig: EuiAppConfig): GlobalConfig;
|
|
13
|
-
export declare function getShowConnectionStatus(globalConfig: GlobalConfig): boolean | ConnectionStatus;
|
|
14
|
-
export declare function getModuleConfig(appConfig: EuiAppConfig, moduleName: string): ModuleConfig;
|
|
15
|
-
export declare function getHttpErrorHandlingConfig(appConfig: EuiAppConfig): HttpErrorHandlerConfig;
|
|
16
|
-
export declare function getRootLogConfig(appConfig: EuiAppConfig): LogConfig;
|
|
17
|
-
export declare function prepareEuiAppConfigToken(euiConfig: EuiConfig): EuiAppConfig;
|
|
18
|
-
export declare function mergeAppHandlerConfigToAppConfig(euiAppConfig: EuiAppConfig, envAppHandler: EuiAppHandlersConfig): EuiAppConfig;
|
|
19
|
-
export declare function mergeAppJsonConfigToAppConfig(euiAppConfig: EuiAppConfig, envAppJsonConfig: EuiAppJsonConfig, merge: Array<string>, isDeepMerge: boolean): EuiAppConfig;
|
|
1
|
+
import { EuiAppConfig, EuiAppHandlersConfig, EuiAppJsonConfig, EuiConfig, LogConfig, ModuleConfig, GlobalConfig, HttpErrorHandlerConfig, ConnectionStatus } from '@eui/base';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
export declare const EUI_CONFIG_TOKEN: InjectionToken<EuiConfig>;
|
|
4
|
+
export declare const MODULE_NAME_TOKEN: InjectionToken<string>;
|
|
5
|
+
export declare const MODULE_CONFIG_TOKEN: InjectionToken<ModuleConfig>;
|
|
6
|
+
export declare const CONFIG_TOKEN: InjectionToken<EuiAppConfig>;
|
|
7
|
+
export declare const GLOBAL_CONFIG_TOKEN: InjectionToken<GlobalConfig>;
|
|
8
|
+
export declare const BASE_NAME_TOKEN: InjectionToken<string>;
|
|
9
|
+
export declare const ROOT_LOG_CONFIG_TOKEN: InjectionToken<LogConfig>;
|
|
10
|
+
export declare const SHOW_CONNECTION_STATUS_TOKEN: InjectionToken<boolean>;
|
|
11
|
+
export declare const HTTP_ERROR_HANDLER_CONFIG_TOKEN: InjectionToken<HttpErrorHandlerConfig>;
|
|
12
|
+
export declare function getGlobalConfig(appConfig: EuiAppConfig): GlobalConfig;
|
|
13
|
+
export declare function getShowConnectionStatus(globalConfig: GlobalConfig): boolean | ConnectionStatus;
|
|
14
|
+
export declare function getModuleConfig(appConfig: EuiAppConfig, moduleName: string): ModuleConfig;
|
|
15
|
+
export declare function getHttpErrorHandlingConfig(appConfig: EuiAppConfig): HttpErrorHandlerConfig;
|
|
16
|
+
export declare function getRootLogConfig(appConfig: EuiAppConfig): LogConfig;
|
|
17
|
+
export declare function prepareEuiAppConfigToken(euiConfig: EuiConfig): EuiAppConfig;
|
|
18
|
+
export declare function mergeAppHandlerConfigToAppConfig(euiAppConfig: EuiAppConfig, envAppHandler: EuiAppHandlersConfig): EuiAppConfig;
|
|
19
|
+
export declare function mergeAppJsonConfigToAppConfig(euiAppConfig: EuiAppConfig, envAppJsonConfig: EuiAppJsonConfig, merge: Array<string>, isDeepMerge: boolean): EuiAppConfig;
|
|
20
20
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const errorCodes: {
|
|
2
|
-
ERR_GENERIC: string;
|
|
3
|
-
};
|
|
4
|
-
export interface ErrorSubClass extends Error {
|
|
5
|
-
}
|
|
6
|
-
export declare class ErrorSubClass {
|
|
7
|
-
code?: string;
|
|
8
|
-
message: string;
|
|
9
|
-
stack: string;
|
|
10
|
-
name: string;
|
|
11
|
-
constructor(code?: string, msg?: string, args?: any);
|
|
12
|
-
}
|
|
13
|
-
export declare class EuiError extends ErrorSubClass {
|
|
14
|
-
constructor(code?: string, msg?: string, args?: any);
|
|
15
|
-
}
|
|
1
|
+
export declare const errorCodes: {
|
|
2
|
+
ERR_GENERIC: string;
|
|
3
|
+
};
|
|
4
|
+
export interface ErrorSubClass extends Error {
|
|
5
|
+
}
|
|
6
|
+
export declare class ErrorSubClass {
|
|
7
|
+
code?: string;
|
|
8
|
+
message: string;
|
|
9
|
+
stack: string;
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(code?: string, msg?: string, args?: any);
|
|
12
|
+
}
|
|
13
|
+
export declare class EuiError extends ErrorSubClass {
|
|
14
|
+
constructor(code?: string, msg?: string, args?: any);
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=eui.error.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ErrorHandler } from '@angular/core';
|
|
2
|
-
import { LogService } from '../log/index';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GlobalErrorHandler extends ErrorHandler {
|
|
5
|
-
protected logService: LogService;
|
|
6
|
-
constructor(logService: LogService);
|
|
7
|
-
handleError(error: any): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
|
|
10
|
-
}
|
|
1
|
+
import { ErrorHandler } from '@angular/core';
|
|
2
|
+
import { LogService } from '../log/index';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GlobalErrorHandler extends ErrorHandler {
|
|
5
|
+
protected logService: LogService;
|
|
6
|
+
constructor(logService: LogService);
|
|
7
|
+
handleError(error: any): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=global-error-handler.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { Injector } from '@angular/core';
|
|
3
|
-
export declare function AlertHttpErrorCallbackFn(error: HttpErrorResponse): void;
|
|
4
|
-
export declare function ConsoleHttpErrorCallbackFn(error: HttpErrorResponse): void;
|
|
5
|
-
export declare function LogHttpErrorCallbackFn(error: HttpErrorResponse, injector: Injector): void;
|
|
6
|
-
export declare function GrowlHttpErrorCallbackFn(error: HttpErrorResponse, injector: Injector): void;
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { Injector } from '@angular/core';
|
|
3
|
+
export declare function AlertHttpErrorCallbackFn(error: HttpErrorResponse): void;
|
|
4
|
+
export declare function ConsoleHttpErrorCallbackFn(error: HttpErrorResponse): void;
|
|
5
|
+
export declare function LogHttpErrorCallbackFn(error: HttpErrorResponse, injector: Injector): void;
|
|
6
|
+
export declare function GrowlHttpErrorCallbackFn(error: HttpErrorResponse, injector: Injector): void;
|
|
7
7
|
//# sourceMappingURL=http-error-handler-callback-functions.d.ts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { HttpErrorHandlerConfig, HttpErrorRouteConfig } from '@eui/base';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class HttpErrorHandlerInterceptor implements HttpInterceptor {
|
|
8
|
-
protected config: HttpErrorHandlerConfig;
|
|
9
|
-
protected injector: Injector;
|
|
10
|
-
protected router: Router;
|
|
11
|
-
constructor(config: HttpErrorHandlerConfig, injector: Injector, router: Router);
|
|
12
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
13
|
-
/**
|
|
14
|
-
* Search in the configuration for the first matching route
|
|
15
|
-
*
|
|
16
|
-
* @param error http error response
|
|
17
|
-
* @returns HttpErrorRouteConfig or null
|
|
18
|
-
*/
|
|
19
|
-
protected getRouteConfig(error: HttpErrorResponse): HttpErrorRouteConfig | null;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorHandlerInterceptor, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorHandlerInterceptor>;
|
|
22
|
-
}
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { HttpErrorHandlerConfig, HttpErrorRouteConfig } from '@eui/base';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class HttpErrorHandlerInterceptor implements HttpInterceptor {
|
|
8
|
+
protected config: HttpErrorHandlerConfig;
|
|
9
|
+
protected injector: Injector;
|
|
10
|
+
protected router: Router;
|
|
11
|
+
constructor(config: HttpErrorHandlerConfig, injector: Injector, router: Router);
|
|
12
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
13
|
+
/**
|
|
14
|
+
* Search in the configuration for the first matching route
|
|
15
|
+
*
|
|
16
|
+
* @param error http error response
|
|
17
|
+
* @returns HttpErrorRouteConfig or null
|
|
18
|
+
*/
|
|
19
|
+
protected getRouteConfig(error: HttpErrorResponse): HttpErrorRouteConfig | null;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorHandlerInterceptor, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorHandlerInterceptor>;
|
|
22
|
+
}
|
|
23
23
|
//# sourceMappingURL=http-error-handler.interceptor.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './eui.error';
|
|
2
|
-
export * from './global-error-handler';
|
|
3
|
-
export * from './http-error-handler.interceptor';
|
|
4
|
-
export * from './http-error-handler-callback-functions';
|
|
1
|
+
export * from './eui.error';
|
|
2
|
+
export * from './global-error-handler';
|
|
3
|
+
export * from './http-error-handler.interceptor';
|
|
4
|
+
export * from './http-error-handler-callback-functions';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { type EuiAppConfig } from '@eui/base';
|
|
5
|
-
import { I18nResourceImpl } from './i18n.resource';
|
|
6
|
-
import { I18nLoaderConfig } from '@eui/base';
|
|
7
|
-
import { LogService } from '../log/log.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export interface LoadedResources {
|
|
10
|
-
translations: object;
|
|
11
|
-
hasError: boolean;
|
|
12
|
-
errors?: Array<LoadedResourcesError>;
|
|
13
|
-
}
|
|
14
|
-
export interface LoadedResourcesError {
|
|
15
|
-
resource: I18nResourceImpl;
|
|
16
|
-
error: string;
|
|
17
|
-
}
|
|
18
|
-
export declare class I18nLoader implements TranslateLoader {
|
|
19
|
-
protected http: HttpClient;
|
|
20
|
-
protected logService: LogService;
|
|
21
|
-
protected euiAppConfig: EuiAppConfig;
|
|
22
|
-
protected resources: I18nResourceImpl[];
|
|
23
|
-
protected failedResources: Array<LoadedResourcesError>;
|
|
24
|
-
constructor(http: HttpClient, logService: LogService, euiAppConfig: EuiAppConfig);
|
|
25
|
-
/**
|
|
26
|
-
* Gets the translations from the server
|
|
27
|
-
*
|
|
28
|
-
* @param lang
|
|
29
|
-
* @returns Observable<any>
|
|
30
|
-
*/
|
|
31
|
-
getTranslation(lang: string): Observable<any>;
|
|
32
|
-
/**
|
|
33
|
-
* Adds resources
|
|
34
|
-
*
|
|
35
|
-
* @param config loader configuration
|
|
36
|
-
* @returns Observable<any> | false
|
|
37
|
-
*/
|
|
38
|
-
addResources(config: I18nLoaderConfig): I18nResourceImpl[];
|
|
39
|
-
/**
|
|
40
|
-
* Removes resources from the loader instance
|
|
41
|
-
*/
|
|
42
|
-
removeResources(removedResources: I18nResourceImpl[]): void;
|
|
43
|
-
/**
|
|
44
|
-
* Loads an array of resources, by language
|
|
45
|
-
*
|
|
46
|
-
* @param resources the definition of the resources
|
|
47
|
-
* @param lang the resource language to load
|
|
48
|
-
* @returns Observable<any>
|
|
49
|
-
*/
|
|
50
|
-
loadResources(resources: I18nResourceImpl[], lang: string): Observable<any>;
|
|
51
|
-
/**
|
|
52
|
-
* Returns resources that failed
|
|
53
|
-
*/
|
|
54
|
-
getFailedResources(): Array<LoadedResourcesError>;
|
|
55
|
-
/**
|
|
56
|
-
* Create resources from a config file
|
|
57
|
-
*
|
|
58
|
-
* @param config loader configuration
|
|
59
|
-
* @returns I18nResourceImpl[] resources
|
|
60
|
-
*/
|
|
61
|
-
protected createResources(config: I18nLoaderConfig): I18nResourceImpl[];
|
|
62
|
-
/**
|
|
63
|
-
* Loads a resource, by language
|
|
64
|
-
*
|
|
65
|
-
* @param resource the definition of the resource
|
|
66
|
-
* @param lang the resource language to load
|
|
67
|
-
* @returns Observable<any>
|
|
68
|
-
*/
|
|
69
|
-
protected loadResource(resource: I18nResourceImpl, lang: string): Observable<any>;
|
|
70
|
-
private getResourceCompileFunction;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<I18nLoader, [null, { optional: true; }, null]>;
|
|
72
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<I18nLoader>;
|
|
73
|
-
}
|
|
74
|
-
export declare const translateConfig: {
|
|
75
|
-
loader: {
|
|
76
|
-
provide: typeof TranslateLoader;
|
|
77
|
-
useClass: typeof I18nLoader;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { type EuiAppConfig } from '@eui/base';
|
|
5
|
+
import { I18nResourceImpl } from './i18n.resource';
|
|
6
|
+
import { I18nLoaderConfig } from '@eui/base';
|
|
7
|
+
import { LogService } from '../log/log.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export interface LoadedResources {
|
|
10
|
+
translations: object;
|
|
11
|
+
hasError: boolean;
|
|
12
|
+
errors?: Array<LoadedResourcesError>;
|
|
13
|
+
}
|
|
14
|
+
export interface LoadedResourcesError {
|
|
15
|
+
resource: I18nResourceImpl;
|
|
16
|
+
error: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class I18nLoader implements TranslateLoader {
|
|
19
|
+
protected http: HttpClient;
|
|
20
|
+
protected logService: LogService;
|
|
21
|
+
protected euiAppConfig: EuiAppConfig;
|
|
22
|
+
protected resources: I18nResourceImpl[];
|
|
23
|
+
protected failedResources: Array<LoadedResourcesError>;
|
|
24
|
+
constructor(http: HttpClient, logService: LogService, euiAppConfig: EuiAppConfig);
|
|
25
|
+
/**
|
|
26
|
+
* Gets the translations from the server
|
|
27
|
+
*
|
|
28
|
+
* @param lang
|
|
29
|
+
* @returns Observable<any>
|
|
30
|
+
*/
|
|
31
|
+
getTranslation(lang: string): Observable<any>;
|
|
32
|
+
/**
|
|
33
|
+
* Adds resources
|
|
34
|
+
*
|
|
35
|
+
* @param config loader configuration
|
|
36
|
+
* @returns Observable<any> | false
|
|
37
|
+
*/
|
|
38
|
+
addResources(config: I18nLoaderConfig): I18nResourceImpl[];
|
|
39
|
+
/**
|
|
40
|
+
* Removes resources from the loader instance
|
|
41
|
+
*/
|
|
42
|
+
removeResources(removedResources: I18nResourceImpl[]): void;
|
|
43
|
+
/**
|
|
44
|
+
* Loads an array of resources, by language
|
|
45
|
+
*
|
|
46
|
+
* @param resources the definition of the resources
|
|
47
|
+
* @param lang the resource language to load
|
|
48
|
+
* @returns Observable<any>
|
|
49
|
+
*/
|
|
50
|
+
loadResources(resources: I18nResourceImpl[], lang: string): Observable<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns resources that failed
|
|
53
|
+
*/
|
|
54
|
+
getFailedResources(): Array<LoadedResourcesError>;
|
|
55
|
+
/**
|
|
56
|
+
* Create resources from a config file
|
|
57
|
+
*
|
|
58
|
+
* @param config loader configuration
|
|
59
|
+
* @returns I18nResourceImpl[] resources
|
|
60
|
+
*/
|
|
61
|
+
protected createResources(config: I18nLoaderConfig): I18nResourceImpl[];
|
|
62
|
+
/**
|
|
63
|
+
* Loads a resource, by language
|
|
64
|
+
*
|
|
65
|
+
* @param resource the definition of the resource
|
|
66
|
+
* @param lang the resource language to load
|
|
67
|
+
* @returns Observable<any>
|
|
68
|
+
*/
|
|
69
|
+
protected loadResource(resource: I18nResourceImpl, lang: string): Observable<any>;
|
|
70
|
+
private getResourceCompileFunction;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nLoader, [null, { optional: true; }, null]>;
|
|
72
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nLoader>;
|
|
73
|
+
}
|
|
74
|
+
export declare const translateConfig: {
|
|
75
|
+
loader: {
|
|
76
|
+
provide: typeof TranslateLoader;
|
|
77
|
+
useClass: typeof I18nLoader;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
80
|
//# sourceMappingURL=i18n.loader.d.ts.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export declare class I18nResourceImpl {
|
|
2
|
-
protected prefix: string;
|
|
3
|
-
protected suffix: string;
|
|
4
|
-
protected compileTranslationsFn: (translations: any, lang: string) => any;
|
|
5
|
-
/**
|
|
6
|
-
* Resource constructor
|
|
7
|
-
*
|
|
8
|
-
* @param prefix the prefix of the resource
|
|
9
|
-
* @param suffix the suffix of the resource, optional parameter
|
|
10
|
-
* @param compileTranslations compiler function, optional parameter
|
|
11
|
-
*/
|
|
12
|
-
constructor(prefix: string, suffix?: string, compileTranslationsFn?: (translations: any, lang: string) => any);
|
|
13
|
-
/**
|
|
14
|
-
* Translations pre-processor
|
|
15
|
-
*
|
|
16
|
-
* @param translations the object to be pre-processed
|
|
17
|
-
* @param lang the translations language
|
|
18
|
-
* @returns the pre-processed translations
|
|
19
|
-
*/
|
|
20
|
-
compileTranslations(translations: any, lang: string): any;
|
|
21
|
-
/**
|
|
22
|
-
* Indicates whether other object is equal-to this one.
|
|
23
|
-
*
|
|
24
|
-
* @param obj the reference object with which to compare
|
|
25
|
-
* @returns true if this object is the same as obj, false otherwise
|
|
26
|
-
*/
|
|
27
|
-
equals(obj: I18nResourceImpl): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The path to the resource
|
|
30
|
-
*
|
|
31
|
-
* @param lang the resource language
|
|
32
|
-
* @returns the path
|
|
33
|
-
*/
|
|
34
|
-
getPath(lang: string): string;
|
|
35
|
-
}
|
|
1
|
+
export declare class I18nResourceImpl {
|
|
2
|
+
protected prefix: string;
|
|
3
|
+
protected suffix: string;
|
|
4
|
+
protected compileTranslationsFn: (translations: any, lang: string) => any;
|
|
5
|
+
/**
|
|
6
|
+
* Resource constructor
|
|
7
|
+
*
|
|
8
|
+
* @param prefix the prefix of the resource
|
|
9
|
+
* @param suffix the suffix of the resource, optional parameter
|
|
10
|
+
* @param compileTranslations compiler function, optional parameter
|
|
11
|
+
*/
|
|
12
|
+
constructor(prefix: string, suffix?: string, compileTranslationsFn?: (translations: any, lang: string) => any);
|
|
13
|
+
/**
|
|
14
|
+
* Translations pre-processor
|
|
15
|
+
*
|
|
16
|
+
* @param translations the object to be pre-processed
|
|
17
|
+
* @param lang the translations language
|
|
18
|
+
* @returns the pre-processed translations
|
|
19
|
+
*/
|
|
20
|
+
compileTranslations(translations: any, lang: string): any;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates whether other object is equal-to this one.
|
|
23
|
+
*
|
|
24
|
+
* @param obj the reference object with which to compare
|
|
25
|
+
* @returns true if this object is the same as obj, false otherwise
|
|
26
|
+
*/
|
|
27
|
+
equals(obj: I18nResourceImpl): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The path to the resource
|
|
30
|
+
*
|
|
31
|
+
* @param lang the resource language
|
|
32
|
+
* @returns the path
|
|
33
|
+
*/
|
|
34
|
+
getPath(lang: string): string;
|
|
35
|
+
}
|
|
36
36
|
//# sourceMappingURL=i18n.resource.d.ts.map
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { GlobalConfig, EuiLazyService, EuiServiceStatus, I18nLoaderConfig, I18nServiceConfig, I18nState, ModuleConfig } from '@eui/base';
|
|
4
|
-
import { LogService } from '../log/log.service';
|
|
5
|
-
import { StoreService } from '../store/store.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
interface ModuleLoadEvent {
|
|
8
|
-
ready: boolean;
|
|
9
|
-
name: string;
|
|
10
|
-
error?: any;
|
|
11
|
-
}
|
|
12
|
-
export declare class I18nService<T extends I18nState = I18nState> extends EuiLazyService<T | I18nState> {
|
|
13
|
-
protected baseGlobalConfig: GlobalConfig;
|
|
14
|
-
protected translateService: TranslateService;
|
|
15
|
-
protected logService: LogService;
|
|
16
|
-
protected store: StoreService;
|
|
17
|
-
private document;
|
|
18
|
-
protected config: I18nServiceConfig;
|
|
19
|
-
protected onModuleLoad: BehaviorSubject<ModuleLoadEvent>;
|
|
20
|
-
constructor(baseGlobalConfig: GlobalConfig, translateService: TranslateService, logService: LogService, store: StoreService, document: Document);
|
|
21
|
-
getState<K = T>(mapFn?: (state: T) => K): Observable<K>;
|
|
22
|
-
getState<a extends keyof T>(key?: a): Observable<T[a]>;
|
|
23
|
-
updateState(langState: T | I18nState): void;
|
|
24
|
-
init(langState?: T): Observable<EuiServiceStatus>;
|
|
25
|
-
/**
|
|
26
|
-
* A pipe function that could serve as a wrapper of another observable
|
|
27
|
-
* e.g. ngx-translate i18n.onReady('my_module').pipe(switchMap(()=>translate.get('eui.KEY')));
|
|
28
|
-
* WARNING: onReady will emit only once for a loaded Module, going to another and then going back will not result
|
|
29
|
-
* into another emission.
|
|
30
|
-
*
|
|
31
|
-
* @param moduleName the name of the module that has been given through the eUI globalConfig. In case non provided
|
|
32
|
-
* fetch module name from the state.
|
|
33
|
-
*/
|
|
34
|
-
onReady(moduleName?: string): Observable<any>;
|
|
35
|
-
lazyLoad(config: I18nLoaderConfig): Observable<EuiServiceStatus>;
|
|
36
|
-
lazyLoadInit(moduleConfig: ModuleConfig, moduleName?: string): Observable<EuiServiceStatus>;
|
|
37
|
-
/**
|
|
38
|
-
* Add resources based of a config loader
|
|
39
|
-
*
|
|
40
|
-
* @param config I18nLoaderConfig
|
|
41
|
-
* @return Promise<EuiServiceStatus> an EuiServiceStatus when translation has fully loaded
|
|
42
|
-
*/
|
|
43
|
-
addResources(config: I18nLoaderConfig, moduleName?: string): Observable<EuiServiceStatus>;
|
|
44
|
-
/**
|
|
45
|
-
* Prepares the default language
|
|
46
|
-
*/
|
|
47
|
-
private preparedDefaultLanguage;
|
|
48
|
-
/**
|
|
49
|
-
* @param default_language if given default language to override default language coming from the
|
|
50
|
-
* configuration token.
|
|
51
|
-
*/
|
|
52
|
-
private setup;
|
|
53
|
-
private bindActiveLangStateToTranslateService;
|
|
54
|
-
private bindTranslateServiceLangChangeToState;
|
|
55
|
-
private setDefaultLanguage;
|
|
56
|
-
/**
|
|
57
|
-
* change the currently used language
|
|
58
|
-
*
|
|
59
|
-
* @param lang is the language code based on the convention you used e.g. (en or en-EN)
|
|
60
|
-
* @returns Observable that returns an object contain the object translation for given language after language
|
|
61
|
-
* fully loaded.
|
|
62
|
-
*/
|
|
63
|
-
private use;
|
|
64
|
-
/**
|
|
65
|
-
* updates the HTML element lang attribute
|
|
66
|
-
*
|
|
67
|
-
* @private
|
|
68
|
-
*/
|
|
69
|
-
private updateHTMLDOMLang;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService<any>, [null, null, { optional: true; }, null, null]>;
|
|
71
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService<any>>;
|
|
72
|
-
}
|
|
73
|
-
export {};
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { GlobalConfig, EuiLazyService, EuiServiceStatus, I18nLoaderConfig, I18nServiceConfig, I18nState, ModuleConfig } from '@eui/base';
|
|
4
|
+
import { LogService } from '../log/log.service';
|
|
5
|
+
import { StoreService } from '../store/store.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface ModuleLoadEvent {
|
|
8
|
+
ready: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
error?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare class I18nService<T extends I18nState = I18nState> extends EuiLazyService<T | I18nState> {
|
|
13
|
+
protected baseGlobalConfig: GlobalConfig;
|
|
14
|
+
protected translateService: TranslateService;
|
|
15
|
+
protected logService: LogService;
|
|
16
|
+
protected store: StoreService;
|
|
17
|
+
private document;
|
|
18
|
+
protected config: I18nServiceConfig;
|
|
19
|
+
protected onModuleLoad: BehaviorSubject<ModuleLoadEvent>;
|
|
20
|
+
constructor(baseGlobalConfig: GlobalConfig, translateService: TranslateService, logService: LogService, store: StoreService, document: Document);
|
|
21
|
+
getState<K = T>(mapFn?: (state: T) => K): Observable<K>;
|
|
22
|
+
getState<a extends keyof T>(key?: a): Observable<T[a]>;
|
|
23
|
+
updateState(langState: T | I18nState): void;
|
|
24
|
+
init(langState?: T): Observable<EuiServiceStatus>;
|
|
25
|
+
/**
|
|
26
|
+
* A pipe function that could serve as a wrapper of another observable
|
|
27
|
+
* e.g. ngx-translate i18n.onReady('my_module').pipe(switchMap(()=>translate.get('eui.KEY')));
|
|
28
|
+
* WARNING: onReady will emit only once for a loaded Module, going to another and then going back will not result
|
|
29
|
+
* into another emission.
|
|
30
|
+
*
|
|
31
|
+
* @param moduleName the name of the module that has been given through the eUI globalConfig. In case non provided
|
|
32
|
+
* fetch module name from the state.
|
|
33
|
+
*/
|
|
34
|
+
onReady(moduleName?: string): Observable<any>;
|
|
35
|
+
lazyLoad(config: I18nLoaderConfig): Observable<EuiServiceStatus>;
|
|
36
|
+
lazyLoadInit(moduleConfig: ModuleConfig, moduleName?: string): Observable<EuiServiceStatus>;
|
|
37
|
+
/**
|
|
38
|
+
* Add resources based of a config loader
|
|
39
|
+
*
|
|
40
|
+
* @param config I18nLoaderConfig
|
|
41
|
+
* @return Promise<EuiServiceStatus> an EuiServiceStatus when translation has fully loaded
|
|
42
|
+
*/
|
|
43
|
+
addResources(config: I18nLoaderConfig, moduleName?: string): Observable<EuiServiceStatus>;
|
|
44
|
+
/**
|
|
45
|
+
* Prepares the default language
|
|
46
|
+
*/
|
|
47
|
+
private preparedDefaultLanguage;
|
|
48
|
+
/**
|
|
49
|
+
* @param default_language if given default language to override default language coming from the
|
|
50
|
+
* configuration token.
|
|
51
|
+
*/
|
|
52
|
+
private setup;
|
|
53
|
+
private bindActiveLangStateToTranslateService;
|
|
54
|
+
private bindTranslateServiceLangChangeToState;
|
|
55
|
+
private setDefaultLanguage;
|
|
56
|
+
/**
|
|
57
|
+
* change the currently used language
|
|
58
|
+
*
|
|
59
|
+
* @param lang is the language code based on the convention you used e.g. (en or en-EN)
|
|
60
|
+
* @returns Observable that returns an object contain the object translation for given language after language
|
|
61
|
+
* fully loaded.
|
|
62
|
+
*/
|
|
63
|
+
private use;
|
|
64
|
+
/**
|
|
65
|
+
* updates the HTML element lang attribute
|
|
66
|
+
*
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
private updateHTMLDOMLang;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService<any>, [null, null, { optional: true; }, null, null]>;
|
|
71
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService<any>>;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
74
74
|
//# sourceMappingURL=i18n.service.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { LangChangeEvent } from '@ngx-translate/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { EuiServiceStatus, I18nState } from '@eui/base';
|
|
5
|
-
import { I18nService } from './i18n.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class I18nServiceMock extends I18nService {
|
|
8
|
-
private DEFAULT_LANGUAGE;
|
|
9
|
-
constructor();
|
|
10
|
-
get onLangChange(): EventEmitter<LangChangeEvent>;
|
|
11
|
-
addResources(): Observable<EuiServiceStatus>;
|
|
12
|
-
get currentLanguage(): string;
|
|
13
|
-
getState(): Observable<I18nState>;
|
|
14
|
-
updateState(i18nState: I18nState): void;
|
|
15
|
-
init(i18nState?: I18nState): Observable<EuiServiceStatus>;
|
|
16
|
-
lazyLoadInit(): Observable<EuiServiceStatus>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<I18nServiceMock, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<I18nServiceMock>;
|
|
19
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { LangChangeEvent } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { EuiServiceStatus, I18nState } from '@eui/base';
|
|
5
|
+
import { I18nService } from './i18n.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class I18nServiceMock extends I18nService {
|
|
8
|
+
private DEFAULT_LANGUAGE;
|
|
9
|
+
constructor();
|
|
10
|
+
get onLangChange(): EventEmitter<LangChangeEvent>;
|
|
11
|
+
addResources(): Observable<EuiServiceStatus>;
|
|
12
|
+
get currentLanguage(): string;
|
|
13
|
+
getState(): Observable<I18nState>;
|
|
14
|
+
updateState(i18nState: I18nState): void;
|
|
15
|
+
init(i18nState?: I18nState): Observable<EuiServiceStatus>;
|
|
16
|
+
lazyLoadInit(): Observable<EuiServiceStatus>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nServiceMock, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nServiceMock>;
|
|
19
|
+
}
|
|
20
20
|
//# sourceMappingURL=i18n.service.mock.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './i18n.resource';
|
|
2
|
-
export * from './i18n.loader';
|
|
3
|
-
export * from './i18n.service';
|
|
4
|
-
export * from './i18n.service.mock';
|
|
1
|
+
export * from './i18n.resource';
|
|
2
|
+
export * from './i18n.loader';
|
|
3
|
+
export * from './i18n.service';
|
|
4
|
+
export * from './i18n.service.mock';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export * from './app/index';
|
|
2
|
-
export * from './config/tokens';
|
|
3
|
-
export * from './errors/index';
|
|
4
|
-
export * from './store/index';
|
|
5
|
-
export * from './queue/index';
|
|
6
|
-
export * from './i18n/index';
|
|
7
|
-
export * from './permission/permission.service';
|
|
8
|
-
export * from './ux-dynamic-menu/ux-dynamic-menu.service';
|
|
9
|
-
export * from './ux-error-feedback/ux-error-feedback.service';
|
|
10
|
-
export * from './ux-error-feedback/ux-error-handler.operator';
|
|
11
|
-
export * from './ux-dynamic-component/ux-dynamic-component.service';
|
|
12
|
-
export * from './ux-app-shell.service';
|
|
13
|
-
export * from './ux-timezone.service';
|
|
14
|
-
export * from './storage/index';
|
|
15
|
-
export * from './locale/index';
|
|
16
|
-
export * from './log/index';
|
|
17
|
-
export * from './errors/index';
|
|
18
|
-
export * from './user/index';
|
|
1
|
+
export * from './app/index';
|
|
2
|
+
export * from './config/tokens';
|
|
3
|
+
export * from './errors/index';
|
|
4
|
+
export * from './store/index';
|
|
5
|
+
export * from './queue/index';
|
|
6
|
+
export * from './i18n/index';
|
|
7
|
+
export * from './permission/permission.service';
|
|
8
|
+
export * from './ux-dynamic-menu/ux-dynamic-menu.service';
|
|
9
|
+
export * from './ux-error-feedback/ux-error-feedback.service';
|
|
10
|
+
export * from './ux-error-feedback/ux-error-handler.operator';
|
|
11
|
+
export * from './ux-dynamic-component/ux-dynamic-component.service';
|
|
12
|
+
export * from './ux-app-shell.service';
|
|
13
|
+
export * from './ux-timezone.service';
|
|
14
|
+
export * from './storage/index';
|
|
15
|
+
export * from './locale/index';
|
|
16
|
+
export * from './log/index';
|
|
17
|
+
export * from './errors/index';
|
|
18
|
+
export * from './user/index';
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|