@eui/core 15.4.1 → 15.4.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/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 +7 -95
- package/docs/index.html +59 -36
- package/docs/injectables/CoreAppEffects.html +51 -51
- package/docs/js/menu-wc.js +7 -12
- 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/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
- package/docs/overview.html +0 -171
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '@eui/base';
|
|
2
|
-
export * from './lib/eui-core.module';
|
|
3
|
-
export * from './lib/services/index';
|
|
4
|
-
export * from './lib/interceptors/index';
|
|
5
|
-
export * from './lib/helpers/index';
|
|
1
|
+
export * from '@eui/base';
|
|
2
|
+
export * from './lib/eui-core.module';
|
|
3
|
+
export * from './lib/services/index';
|
|
4
|
+
export * from './lib/interceptors/index';
|
|
5
|
+
export * from './lib/helpers/index';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/eui-core.module.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Injector, ModuleWithProviders, InjectionToken } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare const CORE_ROOT_GUARD: InjectionToken<void>;
|
|
4
|
-
export declare class CoreModule {
|
|
5
|
-
/**
|
|
6
|
-
* No more providing config from forRoot, you have to use EUI_CONFIG_TOKEN to pass config via providers.
|
|
7
|
-
*/
|
|
8
|
-
static forRoot(): ModuleWithProviders<CoreModule>;
|
|
9
|
-
static forChild(moduleName: string): ModuleWithProviders<CoreModule>;
|
|
10
|
-
constructor(guard: any, parentModule: CoreModule, injector: Injector);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, [{ optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, never, never>;
|
|
13
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
|
14
|
-
}
|
|
15
|
-
declare const createEuiCoreRootGuard: (core: any) => string;
|
|
16
|
-
export declare class EuiCoreRootGuardClass {
|
|
17
|
-
constructor();
|
|
18
|
-
}
|
|
19
|
-
declare const euiCoreRootGuardClass: () => EuiCoreRootGuardClass;
|
|
20
|
-
export { createEuiCoreRootGuard, euiCoreRootGuardClass };
|
|
1
|
+
import { Injector, ModuleWithProviders, InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const CORE_ROOT_GUARD: InjectionToken<void>;
|
|
4
|
+
export declare class CoreModule {
|
|
5
|
+
/**
|
|
6
|
+
* No more providing config from forRoot, you have to use EUI_CONFIG_TOKEN to pass config via providers.
|
|
7
|
+
*/
|
|
8
|
+
static forRoot(): ModuleWithProviders<CoreModule>;
|
|
9
|
+
static forChild(moduleName: string): ModuleWithProviders<CoreModule>;
|
|
10
|
+
constructor(guard: any, parentModule: CoreModule, injector: Injector);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, [{ optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, never, never>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
|
14
|
+
}
|
|
15
|
+
declare const createEuiCoreRootGuard: (core: any) => string;
|
|
16
|
+
export declare class EuiCoreRootGuardClass {
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
19
|
+
declare const euiCoreRootGuardClass: () => EuiCoreRootGuardClass;
|
|
20
|
+
export { createEuiCoreRootGuard, euiCoreRootGuardClass };
|
|
21
21
|
//# sourceMappingURL=eui-core.module.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const diffDays: (dateStart: Date, dateEnd: Date) => number;
|
|
2
|
-
export declare const diffDaysFromToday: (date: Date) => number;
|
|
1
|
+
export declare const diffDays: (dateStart: Date, dateEnd: Date) => number;
|
|
2
|
+
export declare const diffDaysFromToday: (date: Date) => number;
|
|
3
3
|
//# sourceMappingURL=date-helpers.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides read-only equivalent of jQuery's position function:
|
|
3
|
-
* http://api.jquery.com/position/
|
|
4
|
-
*/
|
|
5
|
-
export declare const position: (nativeEl: any) => {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
top: number;
|
|
9
|
-
left: number;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Provides read-only equivalent of jQuery's offset function:
|
|
13
|
-
* http://api.jquery.com/offset/
|
|
14
|
-
*/
|
|
15
|
-
export declare const offset: (nativeEl: any) => {
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
top: number;
|
|
19
|
-
left: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const getViewElement: (fixture: any, componentClass: any, klass?: any) => {
|
|
22
|
-
de: any;
|
|
23
|
-
el: any;
|
|
24
|
-
domElement: any;
|
|
25
|
-
};
|
|
26
|
-
export declare const closestMatchingParent: (target: HTMLElement, className: string) => HTMLElement;
|
|
1
|
+
/**
|
|
2
|
+
* Provides read-only equivalent of jQuery's position function:
|
|
3
|
+
* http://api.jquery.com/position/
|
|
4
|
+
*/
|
|
5
|
+
export declare const position: (nativeEl: any) => {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
top: number;
|
|
9
|
+
left: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Provides read-only equivalent of jQuery's offset function:
|
|
13
|
+
* http://api.jquery.com/offset/
|
|
14
|
+
*/
|
|
15
|
+
export declare const offset: (nativeEl: any) => {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
top: number;
|
|
19
|
+
left: number;
|
|
20
|
+
};
|
|
21
|
+
export declare const getViewElement: (fixture: any, componentClass: any, klass?: any) => {
|
|
22
|
+
de: any;
|
|
23
|
+
el: any;
|
|
24
|
+
domElement: any;
|
|
25
|
+
};
|
|
26
|
+
export declare const closestMatchingParent: (target: HTMLElement, className: string) => HTMLElement;
|
|
27
27
|
//# sourceMappingURL=dom-helpers.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const consumeEvent: (event: Event) => boolean;
|
|
1
|
+
export declare const consumeEvent: (event: Event) => boolean;
|
|
2
2
|
//# sourceMappingURL=event-helpers.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
export declare const markFormGroupTouched: (FormControls: AbstractControl<any, any>[] | {
|
|
3
|
-
[key: string]: AbstractControl<any, any>;
|
|
4
|
-
}) => void;
|
|
5
|
-
export declare const markControlsTouched: (group: FormGroup | FormArray) => void;
|
|
6
|
-
export declare const validateEmail: (c: FormControl) => {
|
|
7
|
-
validateEmail: {
|
|
8
|
-
valid: boolean;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
export declare const markFormGroupTouched: (FormControls: AbstractControl<any, any>[] | {
|
|
3
|
+
[key: string]: AbstractControl<any, any>;
|
|
4
|
+
}) => void;
|
|
5
|
+
export declare const markControlsTouched: (group: FormGroup | FormArray) => void;
|
|
6
|
+
export declare const validateEmail: (c: FormControl) => {
|
|
7
|
+
validateEmail: {
|
|
8
|
+
valid: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=form-helpers.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* returns a random string with radix=36
|
|
3
|
-
*/
|
|
4
|
-
export declare const uniqueId: () => string;
|
|
5
|
-
/**
|
|
6
|
-
* Its job is to parse number and format it based on given input.
|
|
7
|
-
* @param value can be a number or a string number
|
|
8
|
-
* @param fractionSize size of fraction of a number e.g. 1000.88 fraction is 2 (88) default is 2
|
|
9
|
-
* @param inDecimalSeparator separator for decimal part of the number default is ','
|
|
10
|
-
* @param inThousandSeparator separator for the whole part of the number default is ''
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatNumber: (value: number | string, fractionSize?: number, inDecimalSeparator?: string, inThousandSeparator?: string) => string;
|
|
1
|
+
/**
|
|
2
|
+
* returns a random string with radix=36
|
|
3
|
+
*/
|
|
4
|
+
export declare const uniqueId: () => string;
|
|
5
|
+
/**
|
|
6
|
+
* Its job is to parse number and format it based on given input.
|
|
7
|
+
* @param value can be a number or a string number
|
|
8
|
+
* @param fractionSize size of fraction of a number e.g. 1000.88 fraction is 2 (88) default is 2
|
|
9
|
+
* @param inDecimalSeparator separator for decimal part of the number default is ','
|
|
10
|
+
* @param inThousandSeparator separator for the whole part of the number default is ''
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatNumber: (value: number | string, fractionSize?: number, inDecimalSeparator?: string, inThousandSeparator?: string) => string;
|
|
13
13
|
//# sourceMappingURL=format-helpers.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare const handleError: (error: any) => Observable<never>;
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const handleError: (error: any) => Observable<never>;
|
|
3
3
|
//# sourceMappingURL=http-helpers.d.ts.map
|
package/lib/helpers/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './date-helpers';
|
|
2
|
-
export * from './dom-helpers';
|
|
3
|
-
export * from './event-helpers';
|
|
4
|
-
export * from './form-helpers';
|
|
5
|
-
export * from './format-helpers';
|
|
6
|
-
export * from './http-helpers';
|
|
7
|
-
export * from './utils';
|
|
1
|
+
export * from './date-helpers';
|
|
2
|
+
export * from './dom-helpers';
|
|
3
|
+
export * from './event-helpers';
|
|
4
|
+
export * from './form-helpers';
|
|
5
|
+
export * from './format-helpers';
|
|
6
|
+
export * from './http-helpers';
|
|
7
|
+
export * from './utils';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/helpers/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* check if a value is null or undefined. If it's not both returns true otherwise false
|
|
3
|
-
*
|
|
4
|
-
* @param value
|
|
5
|
-
*/
|
|
6
|
-
export declare const isDefined: <T>(value: T) => value is T;
|
|
1
|
+
/**
|
|
2
|
+
* check if a value is null or undefined. If it's not both returns true otherwise false
|
|
3
|
+
*
|
|
4
|
+
* @param value
|
|
5
|
+
*/
|
|
6
|
+
export declare const isDefined: <T>(value: T) => value is T;
|
|
7
7
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare const LANG_PARAM_KEY = "X-Lang-Param";
|
|
6
|
-
/**
|
|
7
|
-
* Interceptor for adding the current language as parameter
|
|
8
|
-
* Add the header (LANG_PARAM_KEY, <language parameter>) to your request http headers
|
|
9
|
-
*/
|
|
10
|
-
export declare class AddLangParamInterceptor implements HttpInterceptor {
|
|
11
|
-
protected translateService: TranslateService;
|
|
12
|
-
constructor(translateService: TranslateService);
|
|
13
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddLangParamInterceptor, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AddLangParamInterceptor>;
|
|
16
|
-
}
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const LANG_PARAM_KEY = "X-Lang-Param";
|
|
6
|
+
/**
|
|
7
|
+
* Interceptor for adding the current language as parameter
|
|
8
|
+
* Add the header (LANG_PARAM_KEY, <language parameter>) to your request http headers
|
|
9
|
+
*/
|
|
10
|
+
export declare class AddLangParamInterceptor implements HttpInterceptor {
|
|
11
|
+
protected translateService: TranslateService;
|
|
12
|
+
constructor(translateService: TranslateService);
|
|
13
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddLangParamInterceptor, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddLangParamInterceptor>;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=add-lang-param.interceptor.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CachePreventionInterceptor implements HttpInterceptor {
|
|
5
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CachePreventionInterceptor, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CachePreventionInterceptor>;
|
|
8
|
-
}
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CachePreventionInterceptor implements HttpInterceptor {
|
|
5
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CachePreventionInterceptor, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CachePreventionInterceptor>;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=cache-prevention.interceptor.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CorsSecurityInterceptor implements HttpInterceptor {
|
|
5
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CorsSecurityInterceptor, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CorsSecurityInterceptor>;
|
|
8
|
-
}
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CorsSecurityInterceptor implements HttpInterceptor {
|
|
5
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CorsSecurityInterceptor, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CorsSecurityInterceptor>;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=cors-security.interceptor.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CsrfPreventionInterceptor implements HttpInterceptor {
|
|
5
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CsrfPreventionInterceptor, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CsrfPreventionInterceptor>;
|
|
8
|
-
}
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CsrfPreventionInterceptor implements HttpInterceptor {
|
|
5
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CsrfPreventionInterceptor, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CsrfPreventionInterceptor>;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=csrf-prevention.interceptor.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponseBase } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EuLoginSessionTimeoutHandlingInterceptor implements HttpInterceptor {
|
|
5
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
-
protected checkRequestSuccessForEULoginSessionTimeout(request: HttpRequest<any>, event: HttpEvent<any>): void;
|
|
7
|
-
protected checkRequestErrorForEULoginSessionTimeout(request: HttpRequest<any>, response: HttpResponseBase): void;
|
|
8
|
-
protected isSsoResponse(body: any): boolean;
|
|
9
|
-
protected reauthenticate(request: HttpRequest<any>, response: HttpResponseBase): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EuLoginSessionTimeoutHandlingInterceptor, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EuLoginSessionTimeoutHandlingInterceptor>;
|
|
12
|
-
}
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponseBase } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EuLoginSessionTimeoutHandlingInterceptor implements HttpInterceptor {
|
|
5
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
+
protected checkRequestSuccessForEULoginSessionTimeout(request: HttpRequest<any>, event: HttpEvent<any>): void;
|
|
7
|
+
protected checkRequestErrorForEULoginSessionTimeout(request: HttpRequest<any>, response: HttpResponseBase): void;
|
|
8
|
+
protected isSsoResponse(body: any): boolean;
|
|
9
|
+
protected reauthenticate(request: HttpRequest<any>, response: HttpResponseBase): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EuLoginSessionTimeoutHandlingInterceptor, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EuLoginSessionTimeoutHandlingInterceptor>;
|
|
12
|
+
}
|
|
13
13
|
//# sourceMappingURL=eu-login-session-timeout-handling.interceptor.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './add-lang-param.interceptor';
|
|
2
|
-
export * from './cache-prevention.interceptor';
|
|
3
|
-
export * from './cors-security.interceptor';
|
|
4
|
-
export * from './csrf-prevention.interceptor';
|
|
5
|
-
export * from './eu-login-session-timeout-handling.interceptor';
|
|
6
|
-
export * from './ux-request-error-model.interceptor';
|
|
7
|
-
export * from './openid/index';
|
|
1
|
+
export * from './add-lang-param.interceptor';
|
|
2
|
+
export * from './cache-prevention.interceptor';
|
|
3
|
+
export * from './cors-security.interceptor';
|
|
4
|
+
export * from './csrf-prevention.interceptor';
|
|
5
|
+
export * from './eu-login-session-timeout-handling.interceptor';
|
|
6
|
+
export * from './ux-request-error-model.interceptor';
|
|
7
|
+
export * from './openid/index';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './openid-connect.interceptor';
|
|
2
|
-
export * from './openid-connect.service';
|
|
3
|
-
export * from './openid-connect.service.mock';
|
|
1
|
+
export * from './openid-connect.interceptor';
|
|
2
|
+
export * from './openid-connect.service';
|
|
3
|
+
export * from './openid-connect.service.mock';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable, Subject, Subscription } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OpenIdConnectInterceptor implements HttpInterceptor {
|
|
5
|
-
defaultMaximumRequestRetries: number;
|
|
6
|
-
constructor();
|
|
7
|
-
intercept(request: HttpRequest<any>, next: HttpHandler, retryCount?: number, retryCallback?: Subject<HttpEvent<any>>): Observable<HttpEvent<any>>;
|
|
8
|
-
protected handleErrorResponse(response: HttpErrorResponse, originalRequest: HttpRequest<any>, next: HttpHandler, retryCount: number, retryCallback: Subject<HttpEvent<any>>, subscription: Subscription): Observable<HttpEvent<any>>;
|
|
9
|
-
protected retryRequest(originalRequest: HttpRequest<any>, response: HttpErrorResponse, next: HttpHandler, retryCount: number, retryCallback: Subject<HttpEvent<any>>, subscription: Subscription): Observable<HttpEvent<any>>;
|
|
10
|
-
protected apiGatewayTokenExpired(response: HttpErrorResponse): boolean;
|
|
11
|
-
protected maximumRequestRetries(): number;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OpenIdConnectInterceptor, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OpenIdConnectInterceptor>;
|
|
14
|
-
}
|
|
1
|
+
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable, Subject, Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OpenIdConnectInterceptor implements HttpInterceptor {
|
|
5
|
+
defaultMaximumRequestRetries: number;
|
|
6
|
+
constructor();
|
|
7
|
+
intercept(request: HttpRequest<any>, next: HttpHandler, retryCount?: number, retryCallback?: Subject<HttpEvent<any>>): Observable<HttpEvent<any>>;
|
|
8
|
+
protected handleErrorResponse(response: HttpErrorResponse, originalRequest: HttpRequest<any>, next: HttpHandler, retryCount: number, retryCallback: Subject<HttpEvent<any>>, subscription: Subscription): Observable<HttpEvent<any>>;
|
|
9
|
+
protected retryRequest(originalRequest: HttpRequest<any>, response: HttpErrorResponse, next: HttpHandler, retryCount: number, retryCallback: Subject<HttpEvent<any>>, subscription: Subscription): Observable<HttpEvent<any>>;
|
|
10
|
+
protected apiGatewayTokenExpired(response: HttpErrorResponse): boolean;
|
|
11
|
+
protected maximumRequestRetries(): number;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenIdConnectInterceptor, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OpenIdConnectInterceptor>;
|
|
14
|
+
}
|
|
15
15
|
//# sourceMappingURL=openid-connect.interceptor.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface OpenIdConnectUserDetails {
|
|
4
|
-
domain?: string;
|
|
5
|
-
domainUsername?: string;
|
|
6
|
-
firstName?: string;
|
|
7
|
-
lastName?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
departmentNumber?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class OpenIdConnectService {
|
|
12
|
-
private userDetails;
|
|
13
|
-
constructor();
|
|
14
|
-
getUserDetails(): Observable<OpenIdConnectUserDetails>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OpenIdConnectService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OpenIdConnectService>;
|
|
17
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface OpenIdConnectUserDetails {
|
|
4
|
+
domain?: string;
|
|
5
|
+
domainUsername?: string;
|
|
6
|
+
firstName?: string;
|
|
7
|
+
lastName?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
departmentNumber?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class OpenIdConnectService {
|
|
12
|
+
private userDetails;
|
|
13
|
+
constructor();
|
|
14
|
+
getUserDetails(): Observable<OpenIdConnectUserDetails>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenIdConnectService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OpenIdConnectService>;
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=openid-connect.service.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { OpenIdConnectService, OpenIdConnectUserDetails } from './openid-connect.service';
|
|
3
|
-
export declare class OpenIdConnectServiceMock extends OpenIdConnectService {
|
|
4
|
-
getUserDetails(): Observable<OpenIdConnectUserDetails>;
|
|
5
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { OpenIdConnectService, OpenIdConnectUserDetails } from './openid-connect.service';
|
|
3
|
+
export declare class OpenIdConnectServiceMock extends OpenIdConnectService {
|
|
4
|
+
getUserDetails(): Observable<OpenIdConnectUserDetails>;
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=openid-connect.service.mock.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ErrorMappingHandler } from '@eui/base';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare const UX_ERROR_MAPPING_HANDLER_TOKEN: InjectionToken<ErrorMappingHandler>;
|
|
7
|
-
export declare class UxRequestErrorModelInterceptor implements HttpInterceptor {
|
|
8
|
-
private errorMappingHandler;
|
|
9
|
-
constructor(errorMappingHandler: ErrorMappingHandler);
|
|
10
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UxRequestErrorModelInterceptor, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UxRequestErrorModelInterceptor>;
|
|
13
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ErrorMappingHandler } from '@eui/base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const UX_ERROR_MAPPING_HANDLER_TOKEN: InjectionToken<ErrorMappingHandler>;
|
|
7
|
+
export declare class UxRequestErrorModelInterceptor implements HttpInterceptor {
|
|
8
|
+
private errorMappingHandler;
|
|
9
|
+
constructor(errorMappingHandler: ErrorMappingHandler);
|
|
10
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UxRequestErrorModelInterceptor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UxRequestErrorModelInterceptor>;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=ux-request-error-model.interceptor.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
export declare const euiInitApp: (injector: Injector) => () => Promise<unknown>;
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
export declare const euiInitApp: (injector: Injector) => () => Promise<unknown>;
|
|
3
3
|
//# sourceMappingURL=eui-init-app.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { EuiAppJsonConfig, EuiEnvConfig } from '@eui/base';
|
|
2
|
-
/**
|
|
3
|
-
* Function to be used before the AppModule is bootstrapped. It is currently used to load dynamic configurations.
|
|
4
|
-
* It needs to be added in your application main.ts file.
|
|
5
|
-
* @param envConfig the current environment configuration
|
|
6
|
-
* @returns the updated environment configuration, as a promise
|
|
7
|
-
*/
|
|
8
|
-
export declare function preInitApp(envConfig: EuiEnvConfig): Promise<EuiEnvConfig>;
|
|
9
|
-
/**
|
|
10
|
-
* Function to load asynchronously a dynamic configuration (from a local path or a web service)
|
|
11
|
-
*
|
|
12
|
-
* @param url the path to the configuration
|
|
13
|
-
* @param timeout possible timeout
|
|
14
|
-
* @returns EuiAppJsonConfig promise
|
|
15
|
-
*/
|
|
16
|
-
export declare function loadEuiDynamicEnvironmentConfig(url: string, timeout?: number): Promise<EuiAppJsonConfig>;
|
|
1
|
+
import { EuiAppJsonConfig, EuiEnvConfig } from '@eui/base';
|
|
2
|
+
/**
|
|
3
|
+
* Function to be used before the AppModule is bootstrapped. It is currently used to load dynamic configurations.
|
|
4
|
+
* It needs to be added in your application main.ts file.
|
|
5
|
+
* @param envConfig the current environment configuration
|
|
6
|
+
* @returns the updated environment configuration, as a promise
|
|
7
|
+
*/
|
|
8
|
+
export declare function preInitApp(envConfig: EuiEnvConfig): Promise<EuiEnvConfig>;
|
|
9
|
+
/**
|
|
10
|
+
* Function to load asynchronously a dynamic configuration (from a local path or a web service)
|
|
11
|
+
*
|
|
12
|
+
* @param url the path to the configuration
|
|
13
|
+
* @param timeout possible timeout
|
|
14
|
+
* @returns EuiAppJsonConfig promise
|
|
15
|
+
*/
|
|
16
|
+
export declare function loadEuiDynamicEnvironmentConfig(url: string, timeout?: number): Promise<EuiAppJsonConfig>;
|
|
17
17
|
//# sourceMappingURL=eui-pre-init-app.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
export declare function getCoreProviders(): Provider[];
|
|
3
|
-
export declare function getDependencyProviders(): Provider[];
|
|
4
|
-
export declare function getCoreChildProviders(moduleName: string): Provider[];
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
export declare function getCoreProviders(): Provider[];
|
|
3
|
+
export declare function getDependencyProviders(): Provider[];
|
|
4
|
+
export declare function getCoreChildProviders(moduleName: string): Provider[];
|
|
5
5
|
//# sourceMappingURL=eui-startup.d.ts.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { LogAppender, LogConfig } from '@eui/base';
|
|
3
|
-
import { LogService } from '../../log/log.service';
|
|
4
|
-
/**
|
|
5
|
-
* Helper function to check if the log config is defined.
|
|
6
|
-
* Does not check only for empty object, because the config can have other (non-log) parameters
|
|
7
|
-
* @params config log configuration
|
|
8
|
-
* @returns true/false
|
|
9
|
-
*/
|
|
10
|
-
export declare function isLogConfigDefined(config: LogConfig): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Helper function to provide a list of log appenders from a log configuration
|
|
13
|
-
*
|
|
14
|
-
* @params config log configuration
|
|
15
|
-
* @returns an array of log appenders
|
|
16
|
-
*/
|
|
17
|
-
export declare function getLogAppendersConfig(config?: LogConfig, injector?: Injector): LogAppender[];
|
|
18
|
-
/**
|
|
19
|
-
* Helper function to provide an instance of LogService from a configuration
|
|
20
|
-
*
|
|
21
|
-
* @params config log configuration
|
|
22
|
-
* @returns an instance of log service
|
|
23
|
-
*/
|
|
24
|
-
export declare function logServiceFactory(config?: LogConfig, injector?: Injector): LogService;
|
|
25
|
-
export declare function euiLogServiceFactory(injector: Injector, rootBaseLoggerName: string, rootConfig: LogConfig, childBaseLoggerName?: string, childConfig?: LogConfig): LogService;
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { LogAppender, LogConfig } from '@eui/base';
|
|
3
|
+
import { LogService } from '../../log/log.service';
|
|
4
|
+
/**
|
|
5
|
+
* Helper function to check if the log config is defined.
|
|
6
|
+
* Does not check only for empty object, because the config can have other (non-log) parameters
|
|
7
|
+
* @params config log configuration
|
|
8
|
+
* @returns true/false
|
|
9
|
+
*/
|
|
10
|
+
export declare function isLogConfigDefined(config: LogConfig): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Helper function to provide a list of log appenders from a log configuration
|
|
13
|
+
*
|
|
14
|
+
* @params config log configuration
|
|
15
|
+
* @returns an array of log appenders
|
|
16
|
+
*/
|
|
17
|
+
export declare function getLogAppendersConfig(config?: LogConfig, injector?: Injector): LogAppender[];
|
|
18
|
+
/**
|
|
19
|
+
* Helper function to provide an instance of LogService from a configuration
|
|
20
|
+
*
|
|
21
|
+
* @params config log configuration
|
|
22
|
+
* @returns an instance of log service
|
|
23
|
+
*/
|
|
24
|
+
export declare function logServiceFactory(config?: LogConfig, injector?: Injector): LogService;
|
|
25
|
+
export declare function euiLogServiceFactory(injector: Injector, rootBaseLoggerName: string, rootConfig: LogConfig, childBaseLoggerName?: string, childConfig?: LogConfig): LogService;
|
|
26
26
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './eui-pre-init-app';
|
|
1
|
+
export * from './eui-pre-init-app';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EuiConfig, EuiAppConfig, EuiEnvConfig, GlobalConfig, LogConfig, HttpErrorHandlerConfig, I18nLoaderConfig, I18nServiceConfig, LocaleServiceConfig } from '@eui/base';
|
|
2
|
-
/** default log configuration */
|
|
3
|
-
export declare const DEFAULT_LOG_CONFIG: LogConfig;
|
|
4
|
-
export declare const DEFAULT_I18N_SERVICE_CONFIG: I18nServiceConfig;
|
|
5
|
-
export declare const DEFAULT_I18N_LOADER_CONFIG: I18nLoaderConfig;
|
|
6
|
-
export declare const DEFAULT_LOCALE_SERVICE_CONFIG: LocaleServiceConfig;
|
|
7
|
-
export declare const DEFAULT_HTTP_ERROR_HANDLER_CONFIG: HttpErrorHandlerConfig;
|
|
8
|
-
export declare const DEFAULT_GLOBAL_CONFIG: GlobalConfig;
|
|
9
|
-
export declare const DEFAULT_EUI_APP_CONFIG: EuiAppConfig;
|
|
10
|
-
export declare const DEFAULT_EUI_ENV_CONFIG: EuiEnvConfig;
|
|
11
|
-
export declare const DEFAULT_EUI_CONFIG: EuiConfig;
|
|
1
|
+
import { EuiConfig, EuiAppConfig, EuiEnvConfig, GlobalConfig, LogConfig, HttpErrorHandlerConfig, I18nLoaderConfig, I18nServiceConfig, LocaleServiceConfig } from '@eui/base';
|
|
2
|
+
/** default log configuration */
|
|
3
|
+
export declare const DEFAULT_LOG_CONFIG: LogConfig;
|
|
4
|
+
export declare const DEFAULT_I18N_SERVICE_CONFIG: I18nServiceConfig;
|
|
5
|
+
export declare const DEFAULT_I18N_LOADER_CONFIG: I18nLoaderConfig;
|
|
6
|
+
export declare const DEFAULT_LOCALE_SERVICE_CONFIG: LocaleServiceConfig;
|
|
7
|
+
export declare const DEFAULT_HTTP_ERROR_HANDLER_CONFIG: HttpErrorHandlerConfig;
|
|
8
|
+
export declare const DEFAULT_GLOBAL_CONFIG: GlobalConfig;
|
|
9
|
+
export declare const DEFAULT_EUI_APP_CONFIG: EuiAppConfig;
|
|
10
|
+
export declare const DEFAULT_EUI_ENV_CONFIG: EuiEnvConfig;
|
|
11
|
+
export declare const DEFAULT_EUI_CONFIG: EuiConfig;
|
|
12
12
|
//# sourceMappingURL=defaults.d.ts.map
|