@eui/core 19.3.3-snapshot-1754667754469 → 21.0.0-alpha.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/CHANGELOG.md +86 -0
- package/docs/directives/TranslateMockDirective.html +0 -43
- package/docs/injectables/ApiQueueService.html +1 -55
- package/docs/injectables/EuiAppShellService.html +1 -103
- package/docs/injectables/EuiDynamicComponentService.html +0 -67
- package/docs/injectables/EuiDynamicMenuService.html +1 -43
- package/docs/injectables/EuiPermissionService.html +1 -43
- package/docs/injectables/EuiThemeService.html +1 -55
- package/docs/injectables/GlobalErrorHandler.html +0 -43
- package/docs/injectables/I18nLoader.html +1 -55
- package/docs/injectables/I18nService.html +1 -79
- package/docs/injectables/LocalForageService.html +1 -43
- package/docs/injectables/LocalStorageService.html +0 -54
- package/docs/injectables/LocaleService.html +1 -91
- package/docs/injectables/LocaleServiceMock.html +1 -31
- package/docs/injectables/LogService.html +1 -55
- package/docs/injectables/SessionStorageService.html +0 -43
- package/docs/injectables/StoreService.html +1 -42
- package/docs/injectables/UserService.html +1 -31
- package/docs/interceptors/AddLangParamInterceptor.html +0 -43
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +0 -67
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +0 -43
- package/docs/js/menu-wc.js +6 -6
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +224 -315
- package/fesm2022/eui-core.mjs.map +1 -1
- package/index.d.ts +2470 -5
- package/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/eui-core.d.ts.map +0 -1
- package/lib/eui-core.module.d.ts +0 -21
- package/lib/eui-core.module.d.ts.map +0 -1
- package/lib/helpers/css-utils.d.ts +0 -35
- package/lib/helpers/css-utils.d.ts.map +0 -1
- package/lib/helpers/date-helpers.d.ts +0 -3
- package/lib/helpers/date-helpers.d.ts.map +0 -1
- package/lib/helpers/dom-helpers.d.ts +0 -34
- package/lib/helpers/dom-helpers.d.ts.map +0 -1
- package/lib/helpers/event-helpers.d.ts +0 -2
- package/lib/helpers/event-helpers.d.ts.map +0 -1
- package/lib/helpers/form-helpers.d.ts +0 -11
- package/lib/helpers/form-helpers.d.ts.map +0 -1
- package/lib/helpers/format-helpers.d.ts +0 -13
- package/lib/helpers/format-helpers.d.ts.map +0 -1
- package/lib/helpers/http-helpers.d.ts +0 -8
- package/lib/helpers/http-helpers.d.ts.map +0 -1
- package/lib/helpers/index.d.ts +0 -10
- package/lib/helpers/index.d.ts.map +0 -1
- package/lib/helpers/injector.d.ts +0 -11
- package/lib/helpers/injector.d.ts.map +0 -1
- package/lib/helpers/utils.d.ts +0 -7
- package/lib/helpers/utils.d.ts.map +0 -1
- package/lib/interceptors/add-lang-param.interceptor.d.ts +0 -17
- package/lib/interceptors/add-lang-param.interceptor.d.ts.map +0 -1
- package/lib/interceptors/cache-prevention.interceptor.d.ts +0 -9
- package/lib/interceptors/cache-prevention.interceptor.d.ts.map +0 -1
- package/lib/interceptors/cors-security.interceptor.d.ts +0 -9
- package/lib/interceptors/cors-security.interceptor.d.ts.map +0 -1
- package/lib/interceptors/csrf-prevention.interceptor.d.ts +0 -9
- package/lib/interceptors/csrf-prevention.interceptor.d.ts.map +0 -1
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts +0 -20
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts.map +0 -1
- package/lib/interceptors/index.d.ts +0 -7
- package/lib/interceptors/index.d.ts.map +0 -1
- package/lib/interceptors/ux-request-error-model.interceptor.d.ts +0 -14
- package/lib/interceptors/ux-request-error-model.interceptor.d.ts.map +0 -1
- package/lib/services/app/eui-init-app.d.ts +0 -12
- package/lib/services/app/eui-init-app.d.ts.map +0 -1
- package/lib/services/app/eui-pre-init-app.d.ts +0 -17
- package/lib/services/app/eui-pre-init-app.d.ts.map +0 -1
- package/lib/services/app/eui-startup.d.ts +0 -5
- package/lib/services/app/eui-startup.d.ts.map +0 -1
- package/lib/services/app/factories/log.d.ts +0 -26
- package/lib/services/app/factories/log.d.ts.map +0 -1
- package/lib/services/app/index.d.ts +0 -3
- package/lib/services/app/index.d.ts.map +0 -1
- package/lib/services/config/defaults.d.ts +0 -12
- package/lib/services/config/defaults.d.ts.map +0 -1
- package/lib/services/config/tokens.d.ts +0 -20
- package/lib/services/config/tokens.d.ts.map +0 -1
- package/lib/services/dynamic-component/dynamic-component.service.d.ts +0 -42
- package/lib/services/dynamic-component/dynamic-component.service.d.ts.map +0 -1
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts +0 -15
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts.map +0 -1
- package/lib/services/errors/eui.error.d.ts +0 -14
- package/lib/services/errors/eui.error.d.ts.map +0 -1
- package/lib/services/errors/global-error-handler.d.ts +0 -11
- package/lib/services/errors/global-error-handler.d.ts.map +0 -1
- package/lib/services/errors/http-error-handler-callback-functions.d.ts +0 -7
- package/lib/services/errors/http-error-handler-callback-functions.d.ts.map +0 -1
- package/lib/services/errors/http-error-handler.interceptor.d.ts +0 -23
- package/lib/services/errors/http-error-handler.interceptor.d.ts.map +0 -1
- package/lib/services/errors/index.d.ts +0 -5
- package/lib/services/errors/index.d.ts.map +0 -1
- package/lib/services/eui-app-shell.service.d.ts +0 -110
- package/lib/services/eui-app-shell.service.d.ts.map +0 -1
- package/lib/services/eui-theme.service.d.ts +0 -52
- package/lib/services/eui-theme.service.d.ts.map +0 -1
- package/lib/services/eui-timezone.service.d.ts +0 -270
- package/lib/services/eui-timezone.service.d.ts.map +0 -1
- package/lib/services/growl/eui-growl.service.d.ts +0 -23
- package/lib/services/growl/eui-growl.service.d.ts.map +0 -1
- package/lib/services/growl/index.d.ts +0 -2
- package/lib/services/growl/index.d.ts.map +0 -1
- package/lib/services/i18n/i18n.loader.d.ts +0 -93
- package/lib/services/i18n/i18n.loader.d.ts.map +0 -1
- package/lib/services/i18n/i18n.resource.d.ts +0 -36
- package/lib/services/i18n/i18n.resource.d.ts.map +0 -1
- package/lib/services/i18n/i18n.service.d.ts +0 -102
- package/lib/services/i18n/i18n.service.d.ts.map +0 -1
- package/lib/services/i18n/index.d.ts +0 -4
- package/lib/services/i18n/index.d.ts.map +0 -1
- package/lib/services/index.d.ts +0 -20
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/loader/eui-loader.model.d.ts +0 -97
- package/lib/services/loader/eui-loader.model.d.ts.map +0 -1
- package/lib/services/loader/eui-loader.service.d.ts +0 -143
- package/lib/services/loader/eui-loader.service.d.ts.map +0 -1
- package/lib/services/loader/index.d.ts +0 -3
- package/lib/services/loader/index.d.ts.map +0 -1
- package/lib/services/locale/index.d.ts +0 -3
- package/lib/services/locale/index.d.ts.map +0 -1
- package/lib/services/locale/locale.service.d.ts +0 -103
- package/lib/services/locale/locale.service.d.ts.map +0 -1
- package/lib/services/locale/locale.service.mock.d.ts +0 -16
- package/lib/services/locale/locale.service.mock.d.ts.map +0 -1
- package/lib/services/log/index.d.ts +0 -4
- package/lib/services/log/index.d.ts.map +0 -1
- package/lib/services/log/log.module.d.ts +0 -16
- package/lib/services/log/log.module.d.ts.map +0 -1
- package/lib/services/log/log.service.d.ts +0 -28
- package/lib/services/log/log.service.d.ts.map +0 -1
- package/lib/services/log/log.service.mock.d.ts +0 -5
- package/lib/services/log/log.service.mock.d.ts.map +0 -1
- package/lib/services/permission/permission.service.d.ts +0 -188
- package/lib/services/permission/permission.service.d.ts.map +0 -1
- package/lib/services/queue/api-queue.service.d.ts +0 -278
- package/lib/services/queue/api-queue.service.d.ts.map +0 -1
- package/lib/services/queue/api-queue.service.mock.d.ts +0 -14
- package/lib/services/queue/api-queue.service.mock.d.ts.map +0 -1
- package/lib/services/queue/index.d.ts +0 -3
- package/lib/services/queue/index.d.ts.map +0 -1
- package/lib/services/storage/async-storage.service.d.ts +0 -45
- package/lib/services/storage/async-storage.service.d.ts.map +0 -1
- package/lib/services/storage/async-storage.service.mock.d.ts +0 -12
- package/lib/services/storage/async-storage.service.mock.d.ts.map +0 -1
- package/lib/services/storage/index.d.ts +0 -8
- package/lib/services/storage/index.d.ts.map +0 -1
- package/lib/services/storage/local-forage.service.d.ts +0 -49
- package/lib/services/storage/local-forage.service.d.ts.map +0 -1
- package/lib/services/storage/local-storage.service.d.ts +0 -36
- package/lib/services/storage/local-storage.service.d.ts.map +0 -1
- package/lib/services/storage/session-storage.service.d.ts +0 -35
- package/lib/services/storage/session-storage.service.d.ts.map +0 -1
- package/lib/services/storage/storage.service.d.ts +0 -29
- package/lib/services/storage/storage.service.d.ts.map +0 -1
- package/lib/services/storage/storage.service.mock.d.ts +0 -8
- package/lib/services/storage/storage.service.mock.d.ts.map +0 -1
- package/lib/services/store/actions/app.actions.d.ts +0 -119
- package/lib/services/store/actions/app.actions.d.ts.map +0 -1
- package/lib/services/store/actions/i18n.actions.d.ts +0 -21
- package/lib/services/store/actions/i18n.actions.d.ts.map +0 -1
- package/lib/services/store/actions/index.d.ts +0 -6
- package/lib/services/store/actions/index.d.ts.map +0 -1
- package/lib/services/store/actions/locale.actions.d.ts +0 -21
- package/lib/services/store/actions/locale.actions.d.ts.map +0 -1
- package/lib/services/store/actions/notifications.actions.d.ts +0 -20
- package/lib/services/store/actions/notifications.actions.d.ts.map +0 -1
- package/lib/services/store/actions/user.actions.d.ts +0 -57
- package/lib/services/store/actions/user.actions.d.ts.map +0 -1
- package/lib/services/store/index.d.ts +0 -5
- package/lib/services/store/index.d.ts.map +0 -1
- package/lib/services/store/ngrx_kit.d.ts +0 -54
- package/lib/services/store/ngrx_kit.d.ts.map +0 -1
- package/lib/services/store/reducers/app.reducers.d.ts +0 -7
- package/lib/services/store/reducers/app.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/core.reducers.d.ts +0 -7
- package/lib/services/store/reducers/core.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/i18n.reducers.d.ts +0 -7
- package/lib/services/store/reducers/i18n.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/index.d.ts +0 -8
- package/lib/services/store/reducers/index.d.ts.map +0 -1
- package/lib/services/store/reducers/locale.reducers.d.ts +0 -7
- package/lib/services/store/reducers/locale.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/meta.reducers.d.ts +0 -32
- package/lib/services/store/reducers/meta.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/notifications.reducers.d.ts +0 -7
- package/lib/services/store/reducers/notifications.reducers.d.ts.map +0 -1
- package/lib/services/store/reducers/user.reducers.d.ts +0 -7
- package/lib/services/store/reducers/user.reducers.d.ts.map +0 -1
- package/lib/services/store/store.service.d.ts +0 -72
- package/lib/services/store/store.service.d.ts.map +0 -1
- package/lib/services/store/store.service.mock.d.ts +0 -15
- package/lib/services/store/store.service.mock.d.ts.map +0 -1
- package/lib/services/user/index.d.ts +0 -3
- package/lib/services/user/index.d.ts.map +0 -1
- package/lib/services/user/user.service.d.ts +0 -46
- package/lib/services/user/user.service.d.ts.map +0 -1
- package/lib/services/user/user.service.mock.d.ts +0 -15
- package/lib/services/user/user.service.mock.d.ts.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ActionReducer, Action } from '../ngrx_kit';
|
|
2
|
-
import { CoreState } from '@eui/base';
|
|
3
|
-
/**
|
|
4
|
-
* Utility meta-reducer to load the state from the local storage
|
|
5
|
-
* @param platformId the platformId based on PLATFORM_ID token of Angular
|
|
6
|
-
* @deprecated it will be removed in the next major version
|
|
7
|
-
*/
|
|
8
|
-
export declare function localStorageSync<S extends CoreState>(platformId: unknown): ((reducer: ActionReducer<S>) => (state: S, action: Action) => S);
|
|
9
|
-
/**
|
|
10
|
-
* Utility meta-reducer to load the state from the local storage
|
|
11
|
-
* @param reducer the action reducer
|
|
12
|
-
*/
|
|
13
|
-
export declare function localStorageSync<S extends CoreState>(reducer: ActionReducer<S>): (state: S, action: Action) => S;
|
|
14
|
-
/**
|
|
15
|
-
* Utility meta-reducer to load the state from the session storage
|
|
16
|
-
* @param platformId the platformId based on PLATFORM_ID token of Angular
|
|
17
|
-
* @deprecated it will be removed in the next major version
|
|
18
|
-
*/
|
|
19
|
-
export declare function sessionStorageSync<S extends CoreState>(platformId: unknown): ((reducer: ActionReducer<S>) => (state: S, action: Action) => S);
|
|
20
|
-
/**
|
|
21
|
-
* Utility meta-reducer to load the state from the session storage
|
|
22
|
-
* @param reducer the action reducer
|
|
23
|
-
* @deprecated it will be removed in the next major version
|
|
24
|
-
*/
|
|
25
|
-
export declare function sessionStorageSync<S extends CoreState>(reducer: ActionReducer<S>): (state: S, action: Action) => S;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @param storage Type of storage to load the state from
|
|
29
|
-
* @deprecated it will be removed in the next major version
|
|
30
|
-
*/
|
|
31
|
-
export declare const loadState: <S extends CoreState>(storage?: Storage | null) => S;
|
|
32
|
-
//# sourceMappingURL=meta.reducers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.reducers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/store/reducers/meta.reducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAY,SAAS,EAAE,MAAM,WAAW,CAAC;AAKhD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC;AAC7I;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC;AAalH;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC;AAC/I;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC;AAuCpH;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,SAAS,YAAW,OAAO,GAAG,IAAI,KAAkB,CAuBvF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Action } from '../ngrx_kit';
|
|
2
|
-
import { NotificationsState } from '@eui/base';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated it will be removed in the next major version
|
|
5
|
-
*/
|
|
6
|
-
export declare const coreNotificationsReducers: (state: NotificationsState, action: Action) => NotificationsState;
|
|
7
|
-
//# sourceMappingURL=notifications.reducers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.reducers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/store/reducers/notifications.reducers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAA6B,MAAM,WAAW,CAAC;AAU1E;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,KAAK,kBAQtF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Action } from '../ngrx_kit';
|
|
2
|
-
import { UserState } from '@eui/base';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated it will be removed in the next major version
|
|
5
|
-
*/
|
|
6
|
-
export declare const coreUserReducers: (state: UserState, action: Action) => UserState;
|
|
7
|
-
//# sourceMappingURL=user.reducers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.reducers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/store/reducers/user.reducers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC,OAAO,EAAE,SAAS,EAAqC,MAAM,WAAW,CAAC;AA2CzE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,SAKpE,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { LogService } from '../log';
|
|
3
|
-
import { CoreState, DeepPartial } from '@eui/base';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare enum BrowserStorageType {
|
|
6
|
-
local = 0,
|
|
7
|
-
session = 1
|
|
8
|
-
}
|
|
9
|
-
export type Handler<T> = (state: T[keyof T]) => Partial<T[keyof T]>;
|
|
10
|
-
export declare class StoreService<T = any> {
|
|
11
|
-
protected logService: LogService;
|
|
12
|
-
private platformId;
|
|
13
|
-
/**
|
|
14
|
-
* autoSave handlers to call before saving in local Storage
|
|
15
|
-
*/
|
|
16
|
-
protected _autoSaveHandlers: {
|
|
17
|
-
[key: string]: Handler<T>;
|
|
18
|
-
};
|
|
19
|
-
/** storage instance e.g. localStorage, sessionStorage */
|
|
20
|
-
private _storage;
|
|
21
|
-
private state;
|
|
22
|
-
private isHandlingAutoSave;
|
|
23
|
-
constructor(logService: LogService, platformId: unknown);
|
|
24
|
-
init(version?: string, storageType?: BrowserStorageType): void;
|
|
25
|
-
/**
|
|
26
|
-
* Add an autoSave handler for a specific state slice
|
|
27
|
-
* @param stateSlice
|
|
28
|
-
* @param handler
|
|
29
|
-
* @deprecated it will be removed in the next major version
|
|
30
|
-
*/
|
|
31
|
-
addAutoSaveHandler(stateSlice: string, handler: Handler<T>): void;
|
|
32
|
-
handleAutoSave(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Proxy to NGRX store.dispatch()
|
|
35
|
-
* that allows to intercept if the store is present
|
|
36
|
-
*
|
|
37
|
-
* @deprecated it will be removed in the next version support of NGRX will cease
|
|
38
|
-
*/
|
|
39
|
-
dispatch(action: unknown): void;
|
|
40
|
-
/**
|
|
41
|
-
* This method is used to update the state of the service with a new state.
|
|
42
|
-
*
|
|
43
|
-
* @param state
|
|
44
|
-
*/
|
|
45
|
-
updateState(state: DeepPartial<T>): void;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated it will be removed in next version. Use updateState(partialState: DeepPartial<T>) instead
|
|
48
|
-
* @param slice
|
|
49
|
-
* @param reducer
|
|
50
|
-
*/
|
|
51
|
-
updateState(slice: DeepPartial<T>, reducer: (state: T, action: DeepPartial<T>) => T): void;
|
|
52
|
-
select(key?: any): Observable<T[any]>;
|
|
53
|
-
/**
|
|
54
|
-
* filters and save the state with the Browser storage
|
|
55
|
-
* @param state type of CoreState
|
|
56
|
-
*/
|
|
57
|
-
protected saveState(state: CoreState): void;
|
|
58
|
-
/**
|
|
59
|
-
* deep merge two objects
|
|
60
|
-
* @param target the object that will be merged into
|
|
61
|
-
* @param source the object that will be merged from
|
|
62
|
-
*/
|
|
63
|
-
private deepMerge;
|
|
64
|
-
/**
|
|
65
|
-
* checks if the given item is an object
|
|
66
|
-
* @param item the item that will be checked
|
|
67
|
-
*/
|
|
68
|
-
private isObject;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoreService<any>, [{ optional: true; }, null]>;
|
|
70
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StoreService<any>>;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=store.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/store.service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAmB,MAAM,MAAM,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAoB,MAAM,WAAW,CAAC;;AAIrE,oBAAY,kBAAkB;IAC1B,KAAK,IAAA;IACL,OAAO,IAAA;CACV;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAGnE,qBAKa,YAAY,CAAC,CAAC,GAAG,GAAG;IAWb,SAAS,CAAC,UAAU,EAAE,UAAU;IACvB,OAAO,CAAC,UAAU;IAX3C;;OAEG;IACH,SAAS,CAAC,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;KAAE,CAAM;IAChE,yDAAyD;IACzD,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,kBAAkB,CAAS;gBAGT,UAAU,EAAE,UAAU,EACf,UAAU,EAAE,OAAO;IAsBpD,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI;IAkB9D;;;;;OAKG;IACH,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAIjE,cAAc,IAAI,IAAI;IAItB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAI/B;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI;IACxC;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI;IAe1F,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IA8BrC;;;OAGG;IACH,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAuB3C;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAkBjB;;;OAGG;IACH,OAAO,CAAC,QAAQ;yCA1LP,YAAY;6CAAZ,YAAY;CA8LxB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { StoreService } from './store.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const PLATFORM_BROWSER_ID = "browser";
|
|
5
|
-
export declare class StoreServiceMock extends StoreService {
|
|
6
|
-
constructor();
|
|
7
|
-
init(): void;
|
|
8
|
-
addAutoSaveHandler(): void;
|
|
9
|
-
handleAutoSave(): void;
|
|
10
|
-
dispatch(): void;
|
|
11
|
-
select(): Observable<object>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoreServiceMock, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StoreServiceMock>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=store.service.mock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.service.mock.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/store.service.mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAG/C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,qBACa,gBAAiB,SAAQ,YAAY;;IAKrC,IAAI,IAAI,IAAI;IAEZ,kBAAkB,IAAI,IAAI;IAE1B,cAAc,IAAI,IAAI;IAEtB,QAAQ,IAAI,IAAI;IAEhB,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC;yCAb5B,gBAAgB;6CAAhB,gBAAgB;CAgB5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
2
|
-
import { type Observable } from 'rxjs';
|
|
3
|
-
import { DeepPartial, EuiService, EuiServiceStatus, UserState } from '@eui/base';
|
|
4
|
-
import { StoreService } from '../store';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UserService<T extends UserState = UserState> extends EuiService<T | UserState> {
|
|
7
|
-
protected store: StoreService;
|
|
8
|
-
private static readonly DEFAULT_STATE;
|
|
9
|
-
/**
|
|
10
|
-
* a single signal holding the state - initial state is null
|
|
11
|
-
*/
|
|
12
|
-
private state;
|
|
13
|
-
/**
|
|
14
|
-
* a BehaviorSubject holding the state - initial state is null
|
|
15
|
-
* This is the main source of truth for the state
|
|
16
|
-
*/
|
|
17
|
-
private stateSubject;
|
|
18
|
-
constructor(store: StoreService);
|
|
19
|
-
init(state: T): Observable<EuiServiceStatus>;
|
|
20
|
-
getState(): Observable<T>;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated this will be removed in a future version
|
|
23
|
-
* @param mapFn
|
|
24
|
-
*/
|
|
25
|
-
getState<K = T>(mapFn?: (state: T) => K): Observable<K>;
|
|
26
|
-
getState<a extends keyof DeepPartial<T>>(key?: a): Observable<DeepPartial<a>>;
|
|
27
|
-
/**
|
|
28
|
-
* This method is used to update the state of the service with a new state.
|
|
29
|
-
*
|
|
30
|
-
* @param state
|
|
31
|
-
*/
|
|
32
|
-
updateState(state: DeepPartial<T>): void;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated it will be removed in next version. Use updateState(partialState: DeepPartial<T>) instead
|
|
35
|
-
* @param slice
|
|
36
|
-
* @param reducer
|
|
37
|
-
*/
|
|
38
|
-
updateState(slice: DeepPartial<T>, reducer: (state: T, action: DeepPartial<T>) => T): void;
|
|
39
|
-
/**
|
|
40
|
-
* This method is used to get the signal of the service.
|
|
41
|
-
*/
|
|
42
|
-
getSignal(): Signal<T>;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserService<any>, never>;
|
|
44
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserService<any>>;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=user.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/user/user.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;;AAKxC,qBAGa,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAAE,SAAQ,UAAU,CAAC,CAAC,GAAG,SAAS,CAAC;IAa3E,SAAS,CAAC,KAAK,EAAE,YAAY;IAZzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAuC;IAE5E;;OAEG;IACH,OAAO,CAAC,KAAK,CAAY;IACzB;;;OAGG;IACH,OAAO,CAAC,YAAY,CAAqB;gBAEnB,KAAK,EAAE,YAAY;IAezC,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAU5C,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IACvD,QAAQ,CAAC,CAAC,SAAS,MAAM,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IA4B7E;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI;IACxC;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI;IAW1F;;OAEG;IACH,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC;yCAjGb,WAAW;6CAAX,WAAW;CAoGvB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { UserService } from './user.service';
|
|
3
|
-
import { EuiServiceStatus, UserState } from '@eui/base';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserServiceMock<T> extends UserService {
|
|
6
|
-
constructor();
|
|
7
|
-
init(userState: UserState): Observable<EuiServiceStatus>;
|
|
8
|
-
getState<K = T>(mapFn?: (state: T) => K): Observable<K>;
|
|
9
|
-
getState<a extends keyof T>(key?: a): Observable<T[a]>;
|
|
10
|
-
updateState(userState: UserState): void;
|
|
11
|
-
updateState<a extends keyof T>(slice: T[a], reducer: (state: any, action: T[a]) => any): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserServiceMock<any>, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserServiceMock<any>>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=user.service.mock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.mock.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/user/user.service.mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;;AAExD,qBACa,eAAe,CAAC,CAAC,CAAE,SAAQ,WAAW;;IAKtC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIxD,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IACvD,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAKtD,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAGvC,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,IAAI;yCAlB7F,eAAe;6CAAf,eAAe;CAsB3B"}
|