@eui/core 18.0.0-next.3 → 18.0.0-next.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/classes/ApiQueueServiceMock.html +28 -7
- package/docs/classes/AsyncStorageService.html +10 -0
- package/docs/classes/AsyncStorageServiceMock.html +8 -2
- package/docs/dependencies.html +38 -28
- package/docs/index.html +1 -1
- package/docs/injectables/CoreAppEffects.html +448 -0
- package/docs/injectables/GlobalErrorHandler.html +4 -1
- package/docs/injectables/LocaleServiceMock.html +12 -3
- package/docs/injectables/StoreServiceMock.html +20 -5
- package/docs/injectables/UserServiceMock.html +28 -7
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +35 -3
- package/esm2022/index.mjs +1 -3
- package/esm2022/lib/eui-core.module.mjs +5 -5
- package/esm2022/lib/interceptors/add-lang-param.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cors-security.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/csrf-prevention.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/ux-request-error-model.interceptor.mjs +4 -4
- package/esm2022/lib/services/app/eui-init-app.mjs +3 -3
- package/esm2022/lib/services/dynamic-component/dynamic-component.service.mjs +4 -4
- package/esm2022/lib/services/dynamic-menu/dynamic-menu.service.mjs +4 -4
- package/esm2022/lib/services/errors/global-error-handler.mjs +4 -4
- package/esm2022/lib/services/errors/http-error-handler.interceptor.mjs +4 -4
- package/esm2022/lib/services/eui-app-shell.service.mjs +4 -4
- package/esm2022/lib/services/eui-timezone.service.mjs +4 -4
- package/esm2022/lib/services/growl/eui-growl.service.mjs +4 -4
- package/esm2022/lib/services/i18n/i18n.loader.mjs +4 -4
- package/esm2022/lib/services/i18n/i18n.service.mjs +4 -4
- package/esm2022/lib/services/loader/eui-loader.service.mjs +4 -4
- package/esm2022/lib/services/locale/locale.service.mjs +5 -5
- package/esm2022/lib/services/locale/locale.service.mock.mjs +4 -4
- package/esm2022/lib/services/log/log.module.mjs +5 -5
- package/esm2022/lib/services/log/log.service.mjs +4 -4
- package/esm2022/lib/services/permission/permission.service.mjs +4 -4
- package/esm2022/lib/services/queue/api-queue.service.mjs +4 -4
- package/esm2022/lib/services/queue/api-queue.service.mock.mjs +1 -1
- package/esm2022/lib/services/storage/async-storage.service.mjs +1 -1
- package/esm2022/lib/services/storage/async-storage.service.mock.mjs +1 -1
- package/esm2022/lib/services/storage/local-forage.service.mjs +4 -4
- package/esm2022/lib/services/storage/local-storage.service.mjs +4 -4
- package/esm2022/lib/services/storage/session-storage.service.mjs +4 -4
- package/esm2022/lib/services/store/effects/app.effects.mjs +55 -0
- package/esm2022/lib/services/store/effects/index.mjs +4 -0
- package/esm2022/lib/services/store/index.mjs +2 -2
- package/esm2022/lib/services/store/reducers/user.reducers.mjs +2 -2
- package/esm2022/lib/services/store/store.service.mjs +4 -4
- package/esm2022/lib/services/store/store.service.mock.mjs +4 -4
- package/esm2022/lib/services/user/user.service.mjs +4 -4
- package/esm2022/lib/services/user/user.service.mock.mjs +4 -4
- package/fesm2022/eui-core.mjs +383 -620
- package/fesm2022/eui-core.mjs.map +4 -4
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/lib/helpers/form-helpers.d.ts +2 -2
- package/lib/helpers/form-helpers.d.ts.map +1 -1
- package/lib/services/errors/global-error-handler.d.ts.map +1 -1
- package/lib/services/locale/locale.service.mock.d.ts.map +1 -1
- package/lib/services/log/log.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.mock.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.mock.d.ts.map +1 -1
- package/lib/services/store/effects/app.effects.d.ts +20 -0
- package/lib/services/store/effects/app.effects.d.ts.map +1 -0
- package/lib/services/store/effects/index.d.ts +4 -0
- package/lib/services/store/effects/index.d.ts.map +1 -0
- package/lib/services/store/index.d.ts +1 -0
- package/lib/services/store/index.d.ts.map +1 -1
- package/lib/services/store/store.service.mock.d.ts.map +1 -1
- package/lib/services/user/user.service.mock.d.ts.map +1 -1
- package/package.json +10 -11
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1,287 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from3, except, desc) => {
|
|
10
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from3))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc(from3, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
-
|
|
19
|
-
// eui-core.mjs
|
|
20
|
-
var eui_core_exports = {};
|
|
21
|
-
__export(eui_core_exports, {
|
|
22
|
-
ActivatedRouteAction: () => ActivatedRouteAction,
|
|
23
|
-
AddApiQueueItemAction: () => AddApiQueueItemAction,
|
|
24
|
-
AddAppLoadedConfigModulesAction: () => AddAppLoadedConfigModulesAction,
|
|
25
|
-
AddLangParamInterceptor: () => AddLangParamInterceptor,
|
|
26
|
-
AlertHttpErrorCallbackFn: () => AlertHttpErrorCallbackFn,
|
|
27
|
-
ApiQueueService: () => ApiQueueService,
|
|
28
|
-
ApiQueueServiceMock: () => ApiQueueServiceMock,
|
|
29
|
-
AsyncStorageService: () => AsyncStorageService,
|
|
30
|
-
AsyncStorageServiceMock: () => AsyncStorageServiceMock,
|
|
31
|
-
BASE_LOGGER_NAME_TOKEN: () => BASE_LOGGER_NAME_TOKEN,
|
|
32
|
-
BASE_NAME_TOKEN: () => BASE_NAME_TOKEN,
|
|
33
|
-
BrowserStorageType: () => BrowserStorageType,
|
|
34
|
-
CONFIG_TOKEN: () => CONFIG_TOKEN,
|
|
35
|
-
CORE_ROOT_GUARD: () => CORE_ROOT_GUARD,
|
|
36
|
-
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
37
|
-
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
38
|
-
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
39
|
-
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
40
|
-
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
41
|
-
CoreModule: () => CoreModule,
|
|
42
|
-
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
43
|
-
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
44
|
-
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
45
|
-
CsrfPreventionInterceptor: () => CsrfPreventionInterceptor,
|
|
46
|
-
DYNAMIC_COMPONENT_CONFIG: () => DYNAMIC_COMPONENT_CONFIG,
|
|
47
|
-
EUI_CONFIG_TOKEN: () => EUI_CONFIG_TOKEN,
|
|
48
|
-
EUI_COUNTRIES: () => EUI_COUNTRIES,
|
|
49
|
-
EUI_TIMEZONES: () => EUI_TIMEZONES,
|
|
50
|
-
EmptyApiQueueAction: () => EmptyApiQueueAction,
|
|
51
|
-
ErrorSubClass: () => ErrorSubClass,
|
|
52
|
-
EuLoginSessionTimeoutHandlingInterceptor: () => EuLoginSessionTimeoutHandlingInterceptor,
|
|
53
|
-
EuiAppShellService: () => EuiAppShellService,
|
|
54
|
-
EuiCoreRootGuardClass: () => EuiCoreRootGuardClass,
|
|
55
|
-
EuiDynamicComponentService: () => EuiDynamicComponentService,
|
|
56
|
-
EuiDynamicMenuService: () => EuiDynamicMenuService,
|
|
57
|
-
EuiError: () => EuiError,
|
|
58
|
-
EuiGrowlService: () => EuiGrowlService,
|
|
59
|
-
EuiLoaderService: () => EuiLoaderService,
|
|
60
|
-
EuiPermissionService: () => EuiPermissionService,
|
|
61
|
-
EuiTimezoneService: () => EuiTimezoneService,
|
|
62
|
-
GLOBAL_CONFIG_TOKEN: () => GLOBAL_CONFIG_TOKEN,
|
|
63
|
-
GlobalErrorHandler: () => GlobalErrorHandler,
|
|
64
|
-
GrowlHttpErrorCallbackFn: () => GrowlHttpErrorCallbackFn,
|
|
65
|
-
HTTP_ERROR_HANDLER_CONFIG_TOKEN: () => HTTP_ERROR_HANDLER_CONFIG_TOKEN,
|
|
66
|
-
HttpErrorHandlerInterceptor: () => HttpErrorHandlerInterceptor,
|
|
67
|
-
I18nLoader: () => I18nLoader,
|
|
68
|
-
I18nResourceImpl: () => I18nResourceImpl,
|
|
69
|
-
I18nService: () => I18nService,
|
|
70
|
-
InitStoreAction: () => InitStoreAction,
|
|
71
|
-
LANG_PARAM_KEY: () => LANG_PARAM_KEY,
|
|
72
|
-
LOCALE_ID_MAPPER: () => LOCALE_ID_MAPPER,
|
|
73
|
-
LOCAL_FORAGE_SERVICE_CONFIG_TOKEN: () => LOCAL_FORAGE_SERVICE_CONFIG_TOKEN,
|
|
74
|
-
LOG_APPENDERS_TOKEN: () => LOG_APPENDERS_TOKEN,
|
|
75
|
-
LOG_LEVEL_TOKEN: () => LOG_LEVEL_TOKEN,
|
|
76
|
-
LocalForageService: () => LocalForageService,
|
|
77
|
-
LocalStorageService: () => LocalStorageService,
|
|
78
|
-
LocaleService: () => LocaleService,
|
|
79
|
-
LocaleServiceMock: () => LocaleServiceMock,
|
|
80
|
-
LogHttpErrorCallbackFn: () => LogHttpErrorCallbackFn,
|
|
81
|
-
LogModule: () => LogModule,
|
|
82
|
-
LogService: () => LogService,
|
|
83
|
-
LogServiceMock: () => LogServiceMock,
|
|
84
|
-
MODULE_CONFIG_TOKEN: () => MODULE_CONFIG_TOKEN,
|
|
85
|
-
MODULE_NAME_TOKEN: () => MODULE_NAME_TOKEN,
|
|
86
|
-
ROOT_LOG_CONFIG_TOKEN: () => ROOT_LOG_CONFIG_TOKEN,
|
|
87
|
-
RemoveApiQueueItemAction: () => RemoveApiQueueItemAction,
|
|
88
|
-
SHOW_CONNECTION_STATUS_TOKEN: () => SHOW_CONNECTION_STATUS_TOKEN,
|
|
89
|
-
SessionStorageService: () => SessionStorageService,
|
|
90
|
-
Status: () => Status,
|
|
91
|
-
StorageService: () => StorageService,
|
|
92
|
-
StorageServiceMock: () => StorageServiceMock,
|
|
93
|
-
StoreService: () => StoreService,
|
|
94
|
-
StoreServiceMock: () => StoreServiceMock,
|
|
95
|
-
UX_ERROR_MAPPING_HANDLER_TOKEN: () => UX_ERROR_MAPPING_HANDLER_TOKEN,
|
|
96
|
-
UpdateAppConnectionAction: () => UpdateAppConnectionAction,
|
|
97
|
-
UpdateAppStatusAction: () => UpdateAppStatusAction,
|
|
98
|
-
UpdateAppVersionAction: () => UpdateAppVersionAction,
|
|
99
|
-
UpdateCurrentModuleAction: () => UpdateCurrentModuleAction,
|
|
100
|
-
UpdateI18nStateAction: () => UpdateI18nStateAction,
|
|
101
|
-
UpdateLocaleStateAction: () => UpdateLocaleStateAction,
|
|
102
|
-
UpdateNotificationsListAction: () => UpdateNotificationsListAction,
|
|
103
|
-
UpdateUserDashboardAction: () => UpdateUserDashboardAction,
|
|
104
|
-
UpdateUserDetailsAction: () => UpdateUserDetailsAction,
|
|
105
|
-
UpdateUserPreferencesAction: () => UpdateUserPreferencesAction,
|
|
106
|
-
UpdateUserRightsAction: () => UpdateUserRightsAction,
|
|
107
|
-
UpdateUserStateAction: () => UpdateUserStateAction,
|
|
108
|
-
UserService: () => UserService,
|
|
109
|
-
UserServiceMock: () => UserServiceMock,
|
|
110
|
-
UxRequestErrorModelInterceptor: () => UxRequestErrorModelInterceptor,
|
|
111
|
-
closestMatchingParent: () => closestMatchingParent,
|
|
112
|
-
consumeEvent: () => consumeEvent,
|
|
113
|
-
corI18nReducers: () => corI18nReducers,
|
|
114
|
-
coreAppReducers: () => coreAppReducers,
|
|
115
|
-
coreLocaleReducers: () => coreLocaleReducers,
|
|
116
|
-
coreNotificationsReducers: () => coreNotificationsReducers,
|
|
117
|
-
coreUserReducers: () => coreUserReducers,
|
|
118
|
-
createEuiCoreRootGuard: () => createEuiCoreRootGuard,
|
|
119
|
-
diffDays: () => diffDays,
|
|
120
|
-
diffDaysFromToday: () => diffDaysFromToday,
|
|
121
|
-
errorCodes: () => errorCodes,
|
|
122
|
-
euiCoreRootGuardClass: () => euiCoreRootGuardClass,
|
|
123
|
-
formatNumber: () => formatNumber,
|
|
124
|
-
getGlobalConfig: () => getGlobalConfig,
|
|
125
|
-
getHttpErrorHandlingConfig: () => getHttpErrorHandlingConfig,
|
|
126
|
-
getModuleConfig: () => getModuleConfig,
|
|
127
|
-
getRootLogConfig: () => getRootLogConfig,
|
|
128
|
-
getShowConnectionStatus: () => getShowConnectionStatus,
|
|
129
|
-
getViewElement: () => getViewElement,
|
|
130
|
-
handleError: () => handleError,
|
|
131
|
-
isDefined: () => isDefined,
|
|
132
|
-
loadEuiDynamicEnvironmentConfig: () => loadEuiDynamicEnvironmentConfig,
|
|
133
|
-
loadState: () => loadState,
|
|
134
|
-
localForage: () => localForage,
|
|
135
|
-
localStorageSync: () => localStorageSync,
|
|
136
|
-
markControlsTouched: () => markControlsTouched,
|
|
137
|
-
markFormGroupTouched: () => markFormGroupTouched,
|
|
138
|
-
mergeAppHandlerConfigToAppConfig: () => mergeAppHandlerConfigToAppConfig,
|
|
139
|
-
mergeAppJsonConfigToAppConfig: () => mergeAppJsonConfigToAppConfig,
|
|
140
|
-
offset: () => offset,
|
|
141
|
-
parentOffsetEl: () => parentOffsetEl,
|
|
142
|
-
position: () => position,
|
|
143
|
-
preInitApp: () => preInitApp,
|
|
144
|
-
prepareEuiAppConfigToken: () => prepareEuiAppConfigToken,
|
|
145
|
-
reducers: () => coreReducers,
|
|
146
|
-
sessionStorageSync: () => sessionStorageSync,
|
|
147
|
-
translateConfig: () => translateConfig,
|
|
148
|
-
uniqueId: () => uniqueId,
|
|
149
|
-
validateEmail: () => validateEmail
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
// index.mjs
|
|
153
|
-
var esm2022_exports = {};
|
|
154
|
-
__export(esm2022_exports, {
|
|
155
|
-
ActivatedRouteAction: () => ActivatedRouteAction,
|
|
156
|
-
AddApiQueueItemAction: () => AddApiQueueItemAction,
|
|
157
|
-
AddAppLoadedConfigModulesAction: () => AddAppLoadedConfigModulesAction,
|
|
158
|
-
AddLangParamInterceptor: () => AddLangParamInterceptor,
|
|
159
|
-
AlertHttpErrorCallbackFn: () => AlertHttpErrorCallbackFn,
|
|
160
|
-
ApiQueueService: () => ApiQueueService,
|
|
161
|
-
ApiQueueServiceMock: () => ApiQueueServiceMock,
|
|
162
|
-
AsyncStorageService: () => AsyncStorageService,
|
|
163
|
-
AsyncStorageServiceMock: () => AsyncStorageServiceMock,
|
|
164
|
-
BASE_LOGGER_NAME_TOKEN: () => BASE_LOGGER_NAME_TOKEN,
|
|
165
|
-
BASE_NAME_TOKEN: () => BASE_NAME_TOKEN,
|
|
166
|
-
BrowserStorageType: () => BrowserStorageType,
|
|
167
|
-
CONFIG_TOKEN: () => CONFIG_TOKEN,
|
|
168
|
-
CORE_ROOT_GUARD: () => CORE_ROOT_GUARD,
|
|
169
|
-
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
170
|
-
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
171
|
-
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
172
|
-
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
173
|
-
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
174
|
-
CoreModule: () => CoreModule,
|
|
175
|
-
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
176
|
-
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
177
|
-
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
178
|
-
CsrfPreventionInterceptor: () => CsrfPreventionInterceptor,
|
|
179
|
-
DYNAMIC_COMPONENT_CONFIG: () => DYNAMIC_COMPONENT_CONFIG,
|
|
180
|
-
EUI_CONFIG_TOKEN: () => EUI_CONFIG_TOKEN,
|
|
181
|
-
EUI_COUNTRIES: () => EUI_COUNTRIES,
|
|
182
|
-
EUI_TIMEZONES: () => EUI_TIMEZONES,
|
|
183
|
-
EmptyApiQueueAction: () => EmptyApiQueueAction,
|
|
184
|
-
ErrorSubClass: () => ErrorSubClass,
|
|
185
|
-
EuLoginSessionTimeoutHandlingInterceptor: () => EuLoginSessionTimeoutHandlingInterceptor,
|
|
186
|
-
EuiAppShellService: () => EuiAppShellService,
|
|
187
|
-
EuiCoreRootGuardClass: () => EuiCoreRootGuardClass,
|
|
188
|
-
EuiDynamicComponentService: () => EuiDynamicComponentService,
|
|
189
|
-
EuiDynamicMenuService: () => EuiDynamicMenuService,
|
|
190
|
-
EuiError: () => EuiError,
|
|
191
|
-
EuiGrowlService: () => EuiGrowlService,
|
|
192
|
-
EuiLoaderService: () => EuiLoaderService,
|
|
193
|
-
EuiPermissionService: () => EuiPermissionService,
|
|
194
|
-
EuiTimezoneService: () => EuiTimezoneService,
|
|
195
|
-
GLOBAL_CONFIG_TOKEN: () => GLOBAL_CONFIG_TOKEN,
|
|
196
|
-
GlobalErrorHandler: () => GlobalErrorHandler,
|
|
197
|
-
GrowlHttpErrorCallbackFn: () => GrowlHttpErrorCallbackFn,
|
|
198
|
-
HTTP_ERROR_HANDLER_CONFIG_TOKEN: () => HTTP_ERROR_HANDLER_CONFIG_TOKEN,
|
|
199
|
-
HttpErrorHandlerInterceptor: () => HttpErrorHandlerInterceptor,
|
|
200
|
-
I18nLoader: () => I18nLoader,
|
|
201
|
-
I18nResourceImpl: () => I18nResourceImpl,
|
|
202
|
-
I18nService: () => I18nService,
|
|
203
|
-
InitStoreAction: () => InitStoreAction,
|
|
204
|
-
LANG_PARAM_KEY: () => LANG_PARAM_KEY,
|
|
205
|
-
LOCALE_ID_MAPPER: () => LOCALE_ID_MAPPER,
|
|
206
|
-
LOCAL_FORAGE_SERVICE_CONFIG_TOKEN: () => LOCAL_FORAGE_SERVICE_CONFIG_TOKEN,
|
|
207
|
-
LOG_APPENDERS_TOKEN: () => LOG_APPENDERS_TOKEN,
|
|
208
|
-
LOG_LEVEL_TOKEN: () => LOG_LEVEL_TOKEN,
|
|
209
|
-
LocalForageService: () => LocalForageService,
|
|
210
|
-
LocalStorageService: () => LocalStorageService,
|
|
211
|
-
LocaleService: () => LocaleService,
|
|
212
|
-
LocaleServiceMock: () => LocaleServiceMock,
|
|
213
|
-
LogHttpErrorCallbackFn: () => LogHttpErrorCallbackFn,
|
|
214
|
-
LogModule: () => LogModule,
|
|
215
|
-
LogService: () => LogService,
|
|
216
|
-
LogServiceMock: () => LogServiceMock,
|
|
217
|
-
MODULE_CONFIG_TOKEN: () => MODULE_CONFIG_TOKEN,
|
|
218
|
-
MODULE_NAME_TOKEN: () => MODULE_NAME_TOKEN,
|
|
219
|
-
ROOT_LOG_CONFIG_TOKEN: () => ROOT_LOG_CONFIG_TOKEN,
|
|
220
|
-
RemoveApiQueueItemAction: () => RemoveApiQueueItemAction,
|
|
221
|
-
SHOW_CONNECTION_STATUS_TOKEN: () => SHOW_CONNECTION_STATUS_TOKEN,
|
|
222
|
-
SessionStorageService: () => SessionStorageService,
|
|
223
|
-
Status: () => Status,
|
|
224
|
-
StorageService: () => StorageService,
|
|
225
|
-
StorageServiceMock: () => StorageServiceMock,
|
|
226
|
-
StoreService: () => StoreService,
|
|
227
|
-
StoreServiceMock: () => StoreServiceMock,
|
|
228
|
-
UX_ERROR_MAPPING_HANDLER_TOKEN: () => UX_ERROR_MAPPING_HANDLER_TOKEN,
|
|
229
|
-
UpdateAppConnectionAction: () => UpdateAppConnectionAction,
|
|
230
|
-
UpdateAppStatusAction: () => UpdateAppStatusAction,
|
|
231
|
-
UpdateAppVersionAction: () => UpdateAppVersionAction,
|
|
232
|
-
UpdateCurrentModuleAction: () => UpdateCurrentModuleAction,
|
|
233
|
-
UpdateI18nStateAction: () => UpdateI18nStateAction,
|
|
234
|
-
UpdateLocaleStateAction: () => UpdateLocaleStateAction,
|
|
235
|
-
UpdateNotificationsListAction: () => UpdateNotificationsListAction,
|
|
236
|
-
UpdateUserDashboardAction: () => UpdateUserDashboardAction,
|
|
237
|
-
UpdateUserDetailsAction: () => UpdateUserDetailsAction,
|
|
238
|
-
UpdateUserPreferencesAction: () => UpdateUserPreferencesAction,
|
|
239
|
-
UpdateUserRightsAction: () => UpdateUserRightsAction,
|
|
240
|
-
UpdateUserStateAction: () => UpdateUserStateAction,
|
|
241
|
-
UserService: () => UserService,
|
|
242
|
-
UserServiceMock: () => UserServiceMock,
|
|
243
|
-
UxRequestErrorModelInterceptor: () => UxRequestErrorModelInterceptor,
|
|
244
|
-
closestMatchingParent: () => closestMatchingParent,
|
|
245
|
-
consumeEvent: () => consumeEvent,
|
|
246
|
-
corI18nReducers: () => corI18nReducers,
|
|
247
|
-
coreAppReducers: () => coreAppReducers,
|
|
248
|
-
coreLocaleReducers: () => coreLocaleReducers,
|
|
249
|
-
coreNotificationsReducers: () => coreNotificationsReducers,
|
|
250
|
-
coreUserReducers: () => coreUserReducers,
|
|
251
|
-
createEuiCoreRootGuard: () => createEuiCoreRootGuard,
|
|
252
|
-
diffDays: () => diffDays,
|
|
253
|
-
diffDaysFromToday: () => diffDaysFromToday,
|
|
254
|
-
errorCodes: () => errorCodes,
|
|
255
|
-
euiCoreRootGuardClass: () => euiCoreRootGuardClass,
|
|
256
|
-
formatNumber: () => formatNumber,
|
|
257
|
-
getGlobalConfig: () => getGlobalConfig,
|
|
258
|
-
getHttpErrorHandlingConfig: () => getHttpErrorHandlingConfig,
|
|
259
|
-
getModuleConfig: () => getModuleConfig,
|
|
260
|
-
getRootLogConfig: () => getRootLogConfig,
|
|
261
|
-
getShowConnectionStatus: () => getShowConnectionStatus,
|
|
262
|
-
getViewElement: () => getViewElement,
|
|
263
|
-
handleError: () => handleError,
|
|
264
|
-
isDefined: () => isDefined,
|
|
265
|
-
loadEuiDynamicEnvironmentConfig: () => loadEuiDynamicEnvironmentConfig,
|
|
266
|
-
loadState: () => loadState,
|
|
267
|
-
localForage: () => localForage,
|
|
268
|
-
localStorageSync: () => localStorageSync,
|
|
269
|
-
markControlsTouched: () => markControlsTouched,
|
|
270
|
-
markFormGroupTouched: () => markFormGroupTouched,
|
|
271
|
-
mergeAppHandlerConfigToAppConfig: () => mergeAppHandlerConfigToAppConfig,
|
|
272
|
-
mergeAppJsonConfigToAppConfig: () => mergeAppJsonConfigToAppConfig,
|
|
273
|
-
offset: () => offset,
|
|
274
|
-
parentOffsetEl: () => parentOffsetEl,
|
|
275
|
-
position: () => position,
|
|
276
|
-
preInitApp: () => preInitApp,
|
|
277
|
-
prepareEuiAppConfigToken: () => prepareEuiAppConfigToken,
|
|
278
|
-
reducers: () => coreReducers,
|
|
279
|
-
sessionStorageSync: () => sessionStorageSync,
|
|
280
|
-
translateConfig: () => translateConfig,
|
|
281
|
-
uniqueId: () => uniqueId,
|
|
282
|
-
validateEmail: () => validateEmail
|
|
283
|
-
});
|
|
284
|
-
|
|
285
1
|
// lib/services/config/defaults.mjs
|
|
286
2
|
import { LogLevel, ConsoleAppender } from "@eui/base";
|
|
287
3
|
var DEFAULT_LOG_CONFIG = {
|
|
@@ -383,22 +99,22 @@ function getRootLogConfig(appConfig) {
|
|
|
383
99
|
}
|
|
384
100
|
function prepareEuiAppConfigToken(euiConfig) {
|
|
385
101
|
const environment = euiConfig && euiConfig.environment;
|
|
386
|
-
const
|
|
102
|
+
const merge2 = environment.envDynamicConfig && environment.envDynamicConfig.merge && Array.isArray(environment.envDynamicConfig.merge) ? environment.envDynamicConfig.merge : [];
|
|
387
103
|
const isDeepMerge = environment.envDynamicConfig && environment.envDynamicConfig.deepMerge ? environment.envDynamicConfig.deepMerge : false;
|
|
388
104
|
const envAppJsonConfig = environment && environment.loadedEnvDynamicConfig;
|
|
389
105
|
const initialAppConfig = euiConfig && euiConfig.appConfig;
|
|
390
106
|
const envAppHandlersConfig = environment && environment.envAppHandlersConfig;
|
|
391
107
|
const envHandlersMergedAppConfig = mergeAppHandlerConfigToAppConfig(initialAppConfig, envAppHandlersConfig);
|
|
392
|
-
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig,
|
|
108
|
+
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig, merge2, isDeepMerge);
|
|
393
109
|
return finalConfig;
|
|
394
110
|
}
|
|
395
111
|
function mergeAppHandlerConfigToAppConfig(euiAppConfig, envAppHandler) {
|
|
396
112
|
return Object.assign({}, euiAppConfig, envAppHandler);
|
|
397
113
|
}
|
|
398
|
-
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig,
|
|
114
|
+
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge2, isDeepMerge) {
|
|
399
115
|
const deepMerged = {};
|
|
400
|
-
if (
|
|
401
|
-
|
|
116
|
+
if (merge2 && merge2.length > 0) {
|
|
117
|
+
merge2.forEach((key) => {
|
|
402
118
|
if (envAppJsonConfig != null && envAppJsonConfig[key] && typeof envAppJsonConfig[key] === "object" && euiAppConfig != null && euiAppConfig[key] && typeof euiAppConfig[key] === "object") {
|
|
403
119
|
if (isDeepMerge) {
|
|
404
120
|
deepMerged[key] = {};
|
|
@@ -572,6 +288,134 @@ var UpdateLocaleStateAction = class {
|
|
|
572
288
|
}
|
|
573
289
|
};
|
|
574
290
|
|
|
291
|
+
// lib/services/growl/eui-growl.service.mjs
|
|
292
|
+
import { Injectable } from "@angular/core";
|
|
293
|
+
import * as i0 from "@angular/core";
|
|
294
|
+
var EuiGrowlService = class _EuiGrowlService {
|
|
295
|
+
constructor() {
|
|
296
|
+
this.growlMessages = [];
|
|
297
|
+
this.isGrowlSticky = false;
|
|
298
|
+
this.isCloseAllSticky = false;
|
|
299
|
+
this.growlLife = 3e3;
|
|
300
|
+
this.growlPosition = "bottom-right";
|
|
301
|
+
this.growlCallback = null;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* displays a growl UxMessage item, isSticky
|
|
305
|
+
*/
|
|
306
|
+
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
307
|
+
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
308
|
+
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
309
|
+
} else {
|
|
310
|
+
if (isMultiple === void 0 || !isMultiple) {
|
|
311
|
+
this.growlMessages = [];
|
|
312
|
+
}
|
|
313
|
+
this.growlMessages = this.growlMessages.concat(msg);
|
|
314
|
+
msg.life = life || msg.life;
|
|
315
|
+
msg.sticky = isSticky || msg.sticky;
|
|
316
|
+
if (life === void 0 || isNaN(life)) {
|
|
317
|
+
if (msg.severity === "danger") {
|
|
318
|
+
isSticky = true;
|
|
319
|
+
} else {
|
|
320
|
+
this.growlLife = 3e3;
|
|
321
|
+
}
|
|
322
|
+
} else {
|
|
323
|
+
this.growlLife = life;
|
|
324
|
+
}
|
|
325
|
+
if (isSticky) {
|
|
326
|
+
this.isGrowlSticky = isSticky;
|
|
327
|
+
} else {
|
|
328
|
+
this.isGrowlSticky = false;
|
|
329
|
+
}
|
|
330
|
+
if (position2) {
|
|
331
|
+
this.growlPosition = position2;
|
|
332
|
+
}
|
|
333
|
+
if (callback) {
|
|
334
|
+
this.growlCallback = callback;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
clearGrowl() {
|
|
339
|
+
this.growlMessages = [];
|
|
340
|
+
}
|
|
341
|
+
growlSuccess(msg, position2) {
|
|
342
|
+
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
343
|
+
}
|
|
344
|
+
growlError(msg, position2) {
|
|
345
|
+
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
346
|
+
}
|
|
347
|
+
growlWarning(msg, position2) {
|
|
348
|
+
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
349
|
+
}
|
|
350
|
+
growlInfo(msg, position2) {
|
|
351
|
+
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
352
|
+
}
|
|
353
|
+
static {
|
|
354
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: _EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
355
|
+
}
|
|
356
|
+
static {
|
|
357
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: _EuiGrowlService, providedIn: "root" });
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
361
|
+
type: Injectable,
|
|
362
|
+
args: [{
|
|
363
|
+
providedIn: "root"
|
|
364
|
+
}]
|
|
365
|
+
}] });
|
|
366
|
+
|
|
367
|
+
// lib/services/store/effects/app.effects.mjs
|
|
368
|
+
import { Injectable as Injectable2, Inject } from "@angular/core";
|
|
369
|
+
import { ofType, createEffect } from "@ngrx/effects";
|
|
370
|
+
import { fromEvent, merge } from "rxjs";
|
|
371
|
+
import { map, mapTo, mergeMap, tap } from "rxjs/operators";
|
|
372
|
+
import * as i02 from "@angular/core";
|
|
373
|
+
import * as i1 from "@ngrx/effects";
|
|
374
|
+
import * as i2 from "@ngx-translate/core";
|
|
375
|
+
var CoreAppEffects = class _CoreAppEffects {
|
|
376
|
+
constructor(actions, showConnectionStatus, translateService, asService) {
|
|
377
|
+
this.actions = actions;
|
|
378
|
+
this.showConnectionStatus = showConnectionStatus;
|
|
379
|
+
this.translateService = translateService;
|
|
380
|
+
this.asService = asService;
|
|
381
|
+
this.getAppConnectionInformation = createEffect(() => merge(fromEvent(window, "online").pipe(mapTo(true)), fromEvent(window, "offline").pipe(mapTo(false))).pipe(map((connected) => new UpdateAppConnectionAction(connected))));
|
|
382
|
+
this.activatedRoute = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.ACTIVATED_ROUTE), map((action) => action.payload), mergeMap((route) => {
|
|
383
|
+
const module = route.snapshot.data["module"] || "undefined";
|
|
384
|
+
return [new UpdateCurrentModuleAction(module)];
|
|
385
|
+
})));
|
|
386
|
+
this.updateAppConnection = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.UPDATE_APP_CONNECTION), map((action) => action.payload), tap((connected) => {
|
|
387
|
+
const isFeatureEnabled = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.enabled : this.showConnectionStatus;
|
|
388
|
+
const lifespan = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.messageBox?.lifespan || 0 : 0;
|
|
389
|
+
if (isFeatureEnabled) {
|
|
390
|
+
if (connected) {
|
|
391
|
+
this.translateService.get("eui.CONNECTED").subscribe((translation) => {
|
|
392
|
+
this.asService.growl({ severity: "success", summary: "MESSAGE", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
393
|
+
});
|
|
394
|
+
} else {
|
|
395
|
+
this.translateService.get("eui.NOTCONNECTED").subscribe((translation) => {
|
|
396
|
+
this.asService.growl({ severity: "danger", summary: "ERROR", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
})), { dispatch: false });
|
|
401
|
+
}
|
|
402
|
+
static {
|
|
403
|
+
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i02, type: _CoreAppEffects, deps: [{ token: i1.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: EuiGrowlService }], target: i02.ɵɵFactoryTarget.Injectable });
|
|
404
|
+
}
|
|
405
|
+
static {
|
|
406
|
+
this.ɵprov = i02.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i02, type: _CoreAppEffects });
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i02, type: CoreAppEffects, decorators: [{
|
|
410
|
+
type: Injectable2
|
|
411
|
+
}], ctorParameters: () => [{ type: i1.Actions }, { type: void 0, decorators: [{
|
|
412
|
+
type: Inject,
|
|
413
|
+
args: [SHOW_CONNECTION_STATUS_TOKEN]
|
|
414
|
+
}] }, { type: i2.TranslateService }, { type: EuiGrowlService }] });
|
|
415
|
+
|
|
416
|
+
// lib/services/store/effects/index.mjs
|
|
417
|
+
var CoreModuleEffects = [CoreAppEffects];
|
|
418
|
+
|
|
575
419
|
// lib/services/store/reducers/app.reducers.mjs
|
|
576
420
|
import { initialAppState } from "@eui/base";
|
|
577
421
|
var updateAppVersion = (state, action) => ({ ...state, version: action.payload });
|
|
@@ -637,7 +481,7 @@ var updateUserDetails = (state, action) => {
|
|
|
637
481
|
if (!fullName) {
|
|
638
482
|
fullName = `${action.payload.firstName || ""} ${action.payload.lastName || ""}`.trim();
|
|
639
483
|
}
|
|
640
|
-
const details = Object.assign({}, state
|
|
484
|
+
const details = Object.assign({}, state["details"], action.payload, { fullName });
|
|
641
485
|
return Object.assign({}, state, details);
|
|
642
486
|
};
|
|
643
487
|
var updateUserPreferences = (state, action) => {
|
|
@@ -769,10 +613,10 @@ var cb = (reducer, storage) => (state, action) => {
|
|
|
769
613
|
};
|
|
770
614
|
|
|
771
615
|
// lib/services/log/log.service.mjs
|
|
772
|
-
import { Inject, Injectable, InjectionToken as InjectionToken2 } from "@angular/core";
|
|
616
|
+
import { Inject as Inject2, Injectable as Injectable3, InjectionToken as InjectionToken2 } from "@angular/core";
|
|
773
617
|
import { Logger } from "@eui/base";
|
|
774
|
-
import * as
|
|
775
|
-
import * as
|
|
618
|
+
import * as i03 from "@angular/core";
|
|
619
|
+
import * as i12 from "@eui/base";
|
|
776
620
|
var BASE_LOGGER_NAME_TOKEN = new InjectionToken2("BASE_LOGGER_NAME");
|
|
777
621
|
var LOG_LEVEL_TOKEN = new InjectionToken2("LOG_LEVEL");
|
|
778
622
|
var LOG_APPENDERS_TOKEN = new InjectionToken2("LOG_APPENDERS");
|
|
@@ -799,22 +643,22 @@ var LogService = class _LogService extends Logger {
|
|
|
799
643
|
return logger;
|
|
800
644
|
}
|
|
801
645
|
static {
|
|
802
|
-
this.ɵfac =
|
|
646
|
+
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i03, type: _LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i03.ɵɵFactoryTarget.Injectable });
|
|
803
647
|
}
|
|
804
648
|
static {
|
|
805
|
-
this.ɵprov =
|
|
649
|
+
this.ɵprov = i03.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i03, type: _LogService });
|
|
806
650
|
}
|
|
807
651
|
};
|
|
808
|
-
|
|
809
|
-
type:
|
|
652
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i03, type: LogService, decorators: [{
|
|
653
|
+
type: Injectable3
|
|
810
654
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
811
|
-
type:
|
|
655
|
+
type: Inject2,
|
|
812
656
|
args: [BASE_LOGGER_NAME_TOKEN]
|
|
813
|
-
}] }, { type:
|
|
814
|
-
type:
|
|
657
|
+
}] }, { type: i12.LogLevel, decorators: [{
|
|
658
|
+
type: Inject2,
|
|
815
659
|
args: [LOG_LEVEL_TOKEN]
|
|
816
660
|
}] }, { type: void 0, decorators: [{
|
|
817
|
-
type:
|
|
661
|
+
type: Inject2,
|
|
818
662
|
args: [LOG_APPENDERS_TOKEN]
|
|
819
663
|
}] }] });
|
|
820
664
|
|
|
@@ -858,7 +702,7 @@ function euiLogServiceFactory(injector, rootBaseLoggerName, rootConfig, childBas
|
|
|
858
702
|
|
|
859
703
|
// lib/services/log/log.module.mjs
|
|
860
704
|
import { InjectionToken as InjectionToken3, Injector, NgModule } from "@angular/core";
|
|
861
|
-
import * as
|
|
705
|
+
import * as i04 from "@angular/core";
|
|
862
706
|
var LOG_MODULE_CONFIG_TOKEN = new InjectionToken3("LOG_CONFIG");
|
|
863
707
|
var LogModule = class _LogModule {
|
|
864
708
|
/** method called in your root module to provide the LogService */
|
|
@@ -882,25 +726,25 @@ var LogModule = class _LogModule {
|
|
|
882
726
|
};
|
|
883
727
|
}
|
|
884
728
|
static {
|
|
885
|
-
this.ɵfac =
|
|
729
|
+
this.ɵfac = i04.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i04, type: _LogModule, deps: [], target: i04.ɵɵFactoryTarget.NgModule });
|
|
886
730
|
}
|
|
887
731
|
static {
|
|
888
|
-
this.ɵmod =
|
|
732
|
+
this.ɵmod = i04.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.4", ngImport: i04, type: _LogModule });
|
|
889
733
|
}
|
|
890
734
|
static {
|
|
891
|
-
this.ɵinj =
|
|
735
|
+
this.ɵinj = i04.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i04, type: _LogModule });
|
|
892
736
|
}
|
|
893
737
|
};
|
|
894
|
-
|
|
738
|
+
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i04, type: LogModule, decorators: [{
|
|
895
739
|
type: NgModule
|
|
896
740
|
}] });
|
|
897
741
|
|
|
898
742
|
// lib/services/store/store.service.mjs
|
|
899
|
-
import { Injectable as
|
|
743
|
+
import { Injectable as Injectable4, Optional } from "@angular/core";
|
|
900
744
|
import { throwError } from "rxjs";
|
|
901
745
|
import { debounceTime, distinctUntilChanged } from "rxjs/operators";
|
|
902
|
-
import * as
|
|
903
|
-
import * as
|
|
746
|
+
import * as i05 from "@angular/core";
|
|
747
|
+
import * as i13 from "@ngrx/store";
|
|
904
748
|
var BrowserStorageType;
|
|
905
749
|
(function(BrowserStorageType2) {
|
|
906
750
|
BrowserStorageType2[BrowserStorageType2["local"] = 0] = "local";
|
|
@@ -992,18 +836,18 @@ var StoreService = class _StoreService {
|
|
|
992
836
|
}
|
|
993
837
|
}
|
|
994
838
|
static {
|
|
995
|
-
this.ɵfac =
|
|
839
|
+
this.ɵfac = i05.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i05, type: _StoreService, deps: [{ token: i13.Store, optional: true }, { token: LogService, optional: true }], target: i05.ɵɵFactoryTarget.Injectable });
|
|
996
840
|
}
|
|
997
841
|
static {
|
|
998
|
-
this.ɵprov =
|
|
842
|
+
this.ɵprov = i05.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i05, type: _StoreService, providedIn: "root" });
|
|
999
843
|
}
|
|
1000
844
|
};
|
|
1001
|
-
|
|
1002
|
-
type:
|
|
845
|
+
i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i05, type: StoreService, decorators: [{
|
|
846
|
+
type: Injectable4,
|
|
1003
847
|
args: [{
|
|
1004
848
|
providedIn: "root"
|
|
1005
849
|
}]
|
|
1006
|
-
}], ctorParameters: () => [{ type:
|
|
850
|
+
}], ctorParameters: () => [{ type: i13.Store, decorators: [{
|
|
1007
851
|
type: Optional
|
|
1008
852
|
}] }, { type: LogService, decorators: [{
|
|
1009
853
|
type: Optional
|
|
@@ -1011,8 +855,8 @@ i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2",
|
|
|
1011
855
|
|
|
1012
856
|
// lib/services/store/store.service.mock.mjs
|
|
1013
857
|
import { of } from "rxjs";
|
|
1014
|
-
import { Injectable as
|
|
1015
|
-
import * as
|
|
858
|
+
import { Injectable as Injectable5 } from "@angular/core";
|
|
859
|
+
import * as i06 from "@angular/core";
|
|
1016
860
|
var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
1017
861
|
constructor() {
|
|
1018
862
|
super(null, null);
|
|
@@ -1029,14 +873,14 @@ var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
|
1029
873
|
return of({});
|
|
1030
874
|
}
|
|
1031
875
|
static {
|
|
1032
|
-
this.ɵfac =
|
|
876
|
+
this.ɵfac = i06.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i06, type: _StoreServiceMock, deps: [], target: i06.ɵɵFactoryTarget.Injectable });
|
|
1033
877
|
}
|
|
1034
878
|
static {
|
|
1035
|
-
this.ɵprov =
|
|
879
|
+
this.ɵprov = i06.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i06, type: _StoreServiceMock });
|
|
1036
880
|
}
|
|
1037
881
|
};
|
|
1038
|
-
|
|
1039
|
-
type:
|
|
882
|
+
i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i06, type: StoreServiceMock, decorators: [{
|
|
883
|
+
type: Injectable5
|
|
1040
884
|
}], ctorParameters: () => [] });
|
|
1041
885
|
|
|
1042
886
|
// lib/services/app/eui-init-app.mjs
|
|
@@ -1052,8 +896,8 @@ var euiInitApp = (injector) => () => new Promise((resolve) => {
|
|
|
1052
896
|
appVersion = "0.0.0";
|
|
1053
897
|
}
|
|
1054
898
|
let storageType;
|
|
1055
|
-
if (appConfig && appConfig
|
|
1056
|
-
storageType = appConfig
|
|
899
|
+
if (appConfig && appConfig["saveStateStorage"]) {
|
|
900
|
+
storageType = appConfig["saveStateStorage"];
|
|
1057
901
|
} else {
|
|
1058
902
|
storageType = BrowserStorageType.local;
|
|
1059
903
|
}
|
|
@@ -1102,8 +946,8 @@ function getCoreChildProviders(moduleName) {
|
|
|
1102
946
|
}
|
|
1103
947
|
|
|
1104
948
|
// lib/eui-core.module.mjs
|
|
1105
|
-
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as
|
|
1106
|
-
import * as
|
|
949
|
+
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as Inject3 } from "@angular/core";
|
|
950
|
+
import * as i07 from "@angular/core";
|
|
1107
951
|
var CORE_ROOT_GUARD = new InjectionToken4("Internal Theme ForRoot Guard");
|
|
1108
952
|
var CoreModule = class _CoreModule {
|
|
1109
953
|
/**
|
|
@@ -1142,16 +986,16 @@ var CoreModule = class _CoreModule {
|
|
|
1142
986
|
}
|
|
1143
987
|
}
|
|
1144
988
|
static {
|
|
1145
|
-
this.ɵfac =
|
|
989
|
+
this.ɵfac = i07.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i07, type: _CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: _CoreModule, optional: true, skipSelf: true }, { token: i07.Injector }], target: i07.ɵɵFactoryTarget.NgModule });
|
|
1146
990
|
}
|
|
1147
991
|
static {
|
|
1148
|
-
this.ɵmod =
|
|
992
|
+
this.ɵmod = i07.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.4", ngImport: i07, type: _CoreModule });
|
|
1149
993
|
}
|
|
1150
994
|
static {
|
|
1151
|
-
this.ɵinj =
|
|
995
|
+
this.ɵinj = i07.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i07, type: _CoreModule });
|
|
1152
996
|
}
|
|
1153
997
|
};
|
|
1154
|
-
|
|
998
|
+
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i07, type: CoreModule, decorators: [{
|
|
1155
999
|
type: NgModule2,
|
|
1156
1000
|
args: [{
|
|
1157
1001
|
imports: [
|
|
@@ -1161,13 +1005,13 @@ i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2",
|
|
|
1161
1005
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1162
1006
|
type: Optional2
|
|
1163
1007
|
}, {
|
|
1164
|
-
type:
|
|
1008
|
+
type: Inject3,
|
|
1165
1009
|
args: [CORE_ROOT_GUARD]
|
|
1166
1010
|
}] }, { type: CoreModule, decorators: [{
|
|
1167
1011
|
type: Optional2
|
|
1168
1012
|
}, {
|
|
1169
1013
|
type: SkipSelf
|
|
1170
|
-
}] }, { type:
|
|
1014
|
+
}] }, { type: i07.Injector }] });
|
|
1171
1015
|
var createEuiCoreRootGuard = (core) => {
|
|
1172
1016
|
if (core) {
|
|
1173
1017
|
throw new TypeError("CoreModule.forRoot() called twice. Feature modules should use ThemeModule.forChild() instead.");
|
|
@@ -1246,8 +1090,8 @@ var EuiError = class extends ErrorSubClass {
|
|
|
1246
1090
|
};
|
|
1247
1091
|
|
|
1248
1092
|
// lib/services/errors/global-error-handler.mjs
|
|
1249
|
-
import { ErrorHandler, Injectable as
|
|
1250
|
-
import * as
|
|
1093
|
+
import { ErrorHandler, Injectable as Injectable6 } from "@angular/core";
|
|
1094
|
+
import * as i08 from "@angular/core";
|
|
1251
1095
|
var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
1252
1096
|
constructor(logService) {
|
|
1253
1097
|
super();
|
|
@@ -1260,25 +1104,25 @@ var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
|
1260
1104
|
super.handleError(error);
|
|
1261
1105
|
}
|
|
1262
1106
|
static {
|
|
1263
|
-
this.ɵfac =
|
|
1107
|
+
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i08, type: _GlobalErrorHandler, deps: [{ token: LogService }], target: i08.ɵɵFactoryTarget.Injectable });
|
|
1264
1108
|
}
|
|
1265
1109
|
static {
|
|
1266
|
-
this.ɵprov =
|
|
1110
|
+
this.ɵprov = i08.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i08, type: _GlobalErrorHandler, providedIn: "root" });
|
|
1267
1111
|
}
|
|
1268
1112
|
};
|
|
1269
|
-
|
|
1270
|
-
type:
|
|
1113
|
+
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i08, type: GlobalErrorHandler, decorators: [{
|
|
1114
|
+
type: Injectable6,
|
|
1271
1115
|
args: [{
|
|
1272
1116
|
providedIn: "root"
|
|
1273
1117
|
}]
|
|
1274
1118
|
}], ctorParameters: () => [{ type: LogService }] });
|
|
1275
1119
|
|
|
1276
1120
|
// lib/services/errors/http-error-handler.interceptor.mjs
|
|
1277
|
-
import { Inject as
|
|
1121
|
+
import { Inject as Inject4, Injectable as Injectable7 } from "@angular/core";
|
|
1278
1122
|
import { HttpErrorResponse } from "@angular/common/http";
|
|
1279
|
-
import { tap } from "rxjs/operators";
|
|
1280
|
-
import * as
|
|
1281
|
-
import * as
|
|
1123
|
+
import { tap as tap2 } from "rxjs/operators";
|
|
1124
|
+
import * as i09 from "@angular/core";
|
|
1125
|
+
import * as i14 from "@angular/router";
|
|
1282
1126
|
var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
1283
1127
|
constructor(config = DEFAULT_HTTP_ERROR_HANDLER_CONFIG, injector, router) {
|
|
1284
1128
|
this.config = config;
|
|
@@ -1288,7 +1132,7 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1288
1132
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1289
1133
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1290
1134
|
intercept(req, next) {
|
|
1291
|
-
return next.handle(req).pipe(
|
|
1135
|
+
return next.handle(req).pipe(tap2({
|
|
1292
1136
|
next: () => {
|
|
1293
1137
|
},
|
|
1294
1138
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
@@ -1320,94 +1164,18 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1320
1164
|
return routes.length > 0 ? routes[0] : null;
|
|
1321
1165
|
}
|
|
1322
1166
|
static {
|
|
1323
|
-
this.ɵfac =
|
|
1167
|
+
this.ɵfac = i09.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i09, type: _HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i09.Injector }, { token: i14.Router }], target: i09.ɵɵFactoryTarget.Injectable });
|
|
1324
1168
|
}
|
|
1325
1169
|
static {
|
|
1326
|
-
this.ɵprov =
|
|
1170
|
+
this.ɵprov = i09.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i09, type: _HttpErrorHandlerInterceptor });
|
|
1327
1171
|
}
|
|
1328
1172
|
};
|
|
1329
|
-
|
|
1330
|
-
type:
|
|
1173
|
+
i09.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i09, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1174
|
+
type: Injectable7
|
|
1331
1175
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1332
|
-
type:
|
|
1176
|
+
type: Inject4,
|
|
1333
1177
|
args: [HTTP_ERROR_HANDLER_CONFIG_TOKEN]
|
|
1334
|
-
}] }, { type:
|
|
1335
|
-
|
|
1336
|
-
// lib/services/growl/eui-growl.service.mjs
|
|
1337
|
-
import { Injectable as Injectable6 } from "@angular/core";
|
|
1338
|
-
import * as i08 from "@angular/core";
|
|
1339
|
-
var EuiGrowlService = class _EuiGrowlService {
|
|
1340
|
-
constructor() {
|
|
1341
|
-
this.growlMessages = [];
|
|
1342
|
-
this.isGrowlSticky = false;
|
|
1343
|
-
this.isCloseAllSticky = false;
|
|
1344
|
-
this.growlLife = 3e3;
|
|
1345
|
-
this.growlPosition = "bottom-right";
|
|
1346
|
-
this.growlCallback = null;
|
|
1347
|
-
}
|
|
1348
|
-
/**
|
|
1349
|
-
* displays a growl UxMessage item, isSticky
|
|
1350
|
-
*/
|
|
1351
|
-
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
1352
|
-
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
1353
|
-
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
1354
|
-
} else {
|
|
1355
|
-
if (isMultiple === void 0 || !isMultiple) {
|
|
1356
|
-
this.growlMessages = [];
|
|
1357
|
-
}
|
|
1358
|
-
this.growlMessages = this.growlMessages.concat(msg);
|
|
1359
|
-
msg.life = life || msg.life;
|
|
1360
|
-
msg.sticky = isSticky || msg.sticky;
|
|
1361
|
-
if (life === void 0 || isNaN(life)) {
|
|
1362
|
-
if (msg.severity === "danger") {
|
|
1363
|
-
isSticky = true;
|
|
1364
|
-
} else {
|
|
1365
|
-
this.growlLife = 3e3;
|
|
1366
|
-
}
|
|
1367
|
-
} else {
|
|
1368
|
-
this.growlLife = life;
|
|
1369
|
-
}
|
|
1370
|
-
if (isSticky) {
|
|
1371
|
-
this.isGrowlSticky = isSticky;
|
|
1372
|
-
} else {
|
|
1373
|
-
this.isGrowlSticky = false;
|
|
1374
|
-
}
|
|
1375
|
-
if (position2) {
|
|
1376
|
-
this.growlPosition = position2;
|
|
1377
|
-
}
|
|
1378
|
-
if (callback) {
|
|
1379
|
-
this.growlCallback = callback;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
clearGrowl() {
|
|
1384
|
-
this.growlMessages = [];
|
|
1385
|
-
}
|
|
1386
|
-
growlSuccess(msg, position2) {
|
|
1387
|
-
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
1388
|
-
}
|
|
1389
|
-
growlError(msg, position2) {
|
|
1390
|
-
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
1391
|
-
}
|
|
1392
|
-
growlWarning(msg, position2) {
|
|
1393
|
-
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
1394
|
-
}
|
|
1395
|
-
growlInfo(msg, position2) {
|
|
1396
|
-
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
1397
|
-
}
|
|
1398
|
-
static {
|
|
1399
|
-
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i08, type: _EuiGrowlService, deps: [], target: i08.ɵɵFactoryTarget.Injectable });
|
|
1400
|
-
}
|
|
1401
|
-
static {
|
|
1402
|
-
this.ɵprov = i08.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i08, type: _EuiGrowlService, providedIn: "root" });
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2", ngImport: i08, type: EuiGrowlService, decorators: [{
|
|
1406
|
-
type: Injectable6,
|
|
1407
|
-
args: [{
|
|
1408
|
-
providedIn: "root"
|
|
1409
|
-
}]
|
|
1410
|
-
}] });
|
|
1178
|
+
}] }, { type: i09.Injector }, { type: i14.Router }] });
|
|
1411
1179
|
|
|
1412
1180
|
// lib/services/errors/http-error-handler-callback-functions.mjs
|
|
1413
1181
|
function AlertHttpErrorCallbackFn(error) {
|
|
@@ -1426,12 +1194,12 @@ function GrowlHttpErrorCallbackFn(error, injector) {
|
|
|
1426
1194
|
}
|
|
1427
1195
|
|
|
1428
1196
|
// lib/services/queue/api-queue.service.mjs
|
|
1429
|
-
import { Injectable as
|
|
1197
|
+
import { Injectable as Injectable8, Optional as Optional3 } from "@angular/core";
|
|
1430
1198
|
import { of as of2, forkJoin, from } from "rxjs";
|
|
1431
|
-
import { tap as
|
|
1199
|
+
import { tap as tap3, switchMap, take, map as map2, catchError, concatMap } from "rxjs/operators";
|
|
1432
1200
|
import { getApiQueue, getApiQueueItem } from "@eui/base";
|
|
1433
|
-
import * as
|
|
1434
|
-
import * as
|
|
1201
|
+
import * as i010 from "@angular/core";
|
|
1202
|
+
import * as i22 from "@angular/common/http";
|
|
1435
1203
|
var ApiQueueService = class _ApiQueueService {
|
|
1436
1204
|
constructor(store, http, logService) {
|
|
1437
1205
|
this.store = store;
|
|
@@ -1492,7 +1260,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1492
1260
|
* });
|
|
1493
1261
|
*/
|
|
1494
1262
|
getQueue() {
|
|
1495
|
-
return this.store.select(getApiQueue).pipe(take(1),
|
|
1263
|
+
return this.store.select(getApiQueue).pipe(take(1), map2((queue) => {
|
|
1496
1264
|
const queueArray = queue && Object.values(queue);
|
|
1497
1265
|
if (!queueArray || queueArray.length < 1) {
|
|
1498
1266
|
this.logger?.warn("No items in the queue exist.");
|
|
@@ -1526,7 +1294,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1526
1294
|
* });
|
|
1527
1295
|
*/
|
|
1528
1296
|
getQueueItem(id) {
|
|
1529
|
-
return this.store.select(getApiQueueItem(id)).pipe(take(1),
|
|
1297
|
+
return this.store.select(getApiQueueItem(id)).pipe(take(1), map2((queue) => {
|
|
1530
1298
|
if (!queue) {
|
|
1531
1299
|
this.logger?.warn(`Queue item with id "${id}" does not exist`);
|
|
1532
1300
|
return null;
|
|
@@ -1627,7 +1395,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1627
1395
|
// TODO: Refine the return type to be more specific or implement generics, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1628
1396
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1629
1397
|
processAllQueueItems(continueOnError = true) {
|
|
1630
|
-
return this.store.select(getApiQueue).pipe(
|
|
1398
|
+
return this.store.select(getApiQueue).pipe(map2((queue) => Object.entries(queue).map(([key, value]) => this.buildHttpRequest(key, value).pipe(catchError((error) => {
|
|
1631
1399
|
this.logger?.error(`Queue Item with id ${key} failed.`, error.message, error.stack);
|
|
1632
1400
|
if (!continueOnError) {
|
|
1633
1401
|
throw error;
|
|
@@ -1709,21 +1477,21 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1709
1477
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1710
1478
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1711
1479
|
buildHttpRequest(id, item) {
|
|
1712
|
-
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(
|
|
1480
|
+
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap3(() => this.removeQueueItem(id)));
|
|
1713
1481
|
}
|
|
1714
1482
|
static {
|
|
1715
|
-
this.ɵfac =
|
|
1483
|
+
this.ɵfac = i010.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i010, type: _ApiQueueService, deps: [{ token: StoreService }, { token: i22.HttpClient }, { token: LogService, optional: true }], target: i010.ɵɵFactoryTarget.Injectable });
|
|
1716
1484
|
}
|
|
1717
1485
|
static {
|
|
1718
|
-
this.ɵprov =
|
|
1486
|
+
this.ɵprov = i010.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i010, type: _ApiQueueService, providedIn: "root" });
|
|
1719
1487
|
}
|
|
1720
1488
|
};
|
|
1721
|
-
|
|
1722
|
-
type:
|
|
1489
|
+
i010.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i010, type: ApiQueueService, decorators: [{
|
|
1490
|
+
type: Injectable8,
|
|
1723
1491
|
args: [{
|
|
1724
1492
|
providedIn: "root"
|
|
1725
1493
|
}]
|
|
1726
|
-
}], ctorParameters: () => [{ type: StoreService }, { type:
|
|
1494
|
+
}], ctorParameters: () => [{ type: StoreService }, { type: i22.HttpClient }, { type: LogService, decorators: [{
|
|
1727
1495
|
type: Optional3
|
|
1728
1496
|
}] }] });
|
|
1729
1497
|
|
|
@@ -1804,13 +1572,13 @@ var I18nResourceImpl = class {
|
|
|
1804
1572
|
};
|
|
1805
1573
|
|
|
1806
1574
|
// lib/services/i18n/i18n.loader.mjs
|
|
1807
|
-
import { Inject as
|
|
1575
|
+
import { Inject as Inject5, Injectable as Injectable9, Optional as Optional4 } from "@angular/core";
|
|
1808
1576
|
import { TranslateLoader } from "@ngx-translate/core";
|
|
1809
1577
|
import { forkJoin as forkJoin2, of as of4 } from "rxjs";
|
|
1810
|
-
import { catchError as catchError2, map as
|
|
1578
|
+
import { catchError as catchError2, map as map3 } from "rxjs/operators";
|
|
1811
1579
|
import { getI18nLoaderConfig, mergeAll } from "@eui/base";
|
|
1812
|
-
import * as
|
|
1813
|
-
import * as
|
|
1580
|
+
import * as i011 from "@angular/core";
|
|
1581
|
+
import * as i15 from "@angular/common/http";
|
|
1814
1582
|
var I18nLoader = class _I18nLoader {
|
|
1815
1583
|
constructor(http, logService, euiAppConfig) {
|
|
1816
1584
|
this.http = http;
|
|
@@ -1834,7 +1602,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1834
1602
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1835
1603
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1836
1604
|
getTranslation(lang) {
|
|
1837
|
-
return this.loadResources(this.resources, lang).pipe(
|
|
1605
|
+
return this.loadResources(this.resources, lang).pipe(map3((loadedResources) => {
|
|
1838
1606
|
this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
|
|
1839
1607
|
return loadedResources.translations;
|
|
1840
1608
|
}));
|
|
@@ -1869,7 +1637,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1869
1637
|
loadResources(resources, lang) {
|
|
1870
1638
|
if (Array.isArray(resources) && resources.length > 0) {
|
|
1871
1639
|
const requests = resources.map((resource) => this.loadResource(resource, lang));
|
|
1872
|
-
return forkJoin2(requests).pipe(
|
|
1640
|
+
return forkJoin2(requests).pipe(map3((response) => {
|
|
1873
1641
|
const successResp = [];
|
|
1874
1642
|
const errResp = [];
|
|
1875
1643
|
response.forEach((item) => {
|
|
@@ -1933,10 +1701,10 @@ var I18nLoader = class _I18nLoader {
|
|
|
1933
1701
|
// preprocess the translations using the resource compiler
|
|
1934
1702
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1935
1703
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1936
|
-
|
|
1704
|
+
map3((translations) => resource.compileTranslations(translations, lang)),
|
|
1937
1705
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1938
1706
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1939
|
-
|
|
1707
|
+
map3((translations) => {
|
|
1940
1708
|
this.logger?.info(`I18n resource loaded from path ${path}`);
|
|
1941
1709
|
return translations;
|
|
1942
1710
|
}),
|
|
@@ -1955,18 +1723,18 @@ var I18nLoader = class _I18nLoader {
|
|
|
1955
1723
|
return void 0;
|
|
1956
1724
|
}
|
|
1957
1725
|
static {
|
|
1958
|
-
this.ɵfac =
|
|
1726
|
+
this.ɵfac = i011.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i011, type: _I18nLoader, deps: [{ token: i15.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i011.ɵɵFactoryTarget.Injectable });
|
|
1959
1727
|
}
|
|
1960
1728
|
static {
|
|
1961
|
-
this.ɵprov =
|
|
1729
|
+
this.ɵprov = i011.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i011, type: _I18nLoader });
|
|
1962
1730
|
}
|
|
1963
1731
|
};
|
|
1964
|
-
|
|
1965
|
-
type:
|
|
1966
|
-
}], ctorParameters: () => [{ type:
|
|
1732
|
+
i011.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i011, type: I18nLoader, decorators: [{
|
|
1733
|
+
type: Injectable9
|
|
1734
|
+
}], ctorParameters: () => [{ type: i15.HttpClient }, { type: LogService, decorators: [{
|
|
1967
1735
|
type: Optional4
|
|
1968
1736
|
}] }, { type: void 0, decorators: [{
|
|
1969
|
-
type:
|
|
1737
|
+
type: Inject5,
|
|
1970
1738
|
args: [CONFIG_TOKEN]
|
|
1971
1739
|
}] }] });
|
|
1972
1740
|
var translateConfig = {
|
|
@@ -1978,13 +1746,13 @@ var translateConfig = {
|
|
|
1978
1746
|
|
|
1979
1747
|
// lib/services/i18n/i18n.service.mjs
|
|
1980
1748
|
import { DOCUMENT } from "@angular/common";
|
|
1981
|
-
import { Inject as
|
|
1749
|
+
import { Inject as Inject6, Injectable as Injectable10, Optional as Optional5 } from "@angular/core";
|
|
1982
1750
|
import { BehaviorSubject, forkJoin as forkJoin3, of as of5 } from "rxjs";
|
|
1983
|
-
import { catchError as catchError3, filter, map as
|
|
1751
|
+
import { catchError as catchError3, filter, map as map4, take as take2, tap as tap4, switchMap as switchMap2 } from "rxjs/operators";
|
|
1984
1752
|
import { EuiLazyService, getI18nServiceConfigFromBase, getI18nState, getActiveLang, getLastAddedModule, getBrowserDefaultLanguage, EuiEuLanguages } from "@eui/base";
|
|
1985
1753
|
import { createSelector } from "@ngrx/store";
|
|
1986
|
-
import * as
|
|
1987
|
-
import * as
|
|
1754
|
+
import * as i012 from "@angular/core";
|
|
1755
|
+
import * as i16 from "@ngx-translate/core";
|
|
1988
1756
|
var I18nService = class _I18nService extends EuiLazyService {
|
|
1989
1757
|
constructor(baseGlobalConfig, translateService, logService, store, document2) {
|
|
1990
1758
|
super({ activeLang: "en" });
|
|
@@ -2030,7 +1798,7 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2030
1798
|
}
|
|
2031
1799
|
onReady(moduleName) {
|
|
2032
1800
|
return this.onModuleLoad.pipe(
|
|
2033
|
-
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(
|
|
1801
|
+
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(tap4((m) => moduleName = m), map4(() => evt))),
|
|
2034
1802
|
// emit only if event emitted matches the module name and is ready
|
|
2035
1803
|
filter((evt) => evt.ready === true && evt.name === moduleName),
|
|
2036
1804
|
// make sure that observable completes
|
|
@@ -2059,16 +1827,16 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2059
1827
|
const langSubscription = [];
|
|
2060
1828
|
const i18nLoader = loader;
|
|
2061
1829
|
const resources = i18nLoader.addResources(config);
|
|
2062
|
-
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1),
|
|
1830
|
+
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1), tap4((loadedResources) => {
|
|
2063
1831
|
this.translateService.setTranslation(this.translateService.currentLang, loadedResources.translations, true);
|
|
2064
1832
|
})));
|
|
2065
1833
|
const defaultLang = this.config.defaultLanguage || this.translateService.defaultLang;
|
|
2066
1834
|
if (this.translateService.currentLang !== defaultLang) {
|
|
2067
|
-
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1),
|
|
1835
|
+
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1), tap4((loadedResources) => {
|
|
2068
1836
|
this.translateService.setTranslation(defaultLang, loadedResources.translations, true);
|
|
2069
1837
|
})));
|
|
2070
1838
|
}
|
|
2071
|
-
return forkJoin3(langSubscription).pipe(
|
|
1839
|
+
return forkJoin3(langSubscription).pipe(map4((loadedResourcesArr) => !loadedResourcesArr[0].hasError ? { success: true } : { success: false, error: loadedResourcesArr[0].errors }), tap4(() => {
|
|
2072
1840
|
this.onModuleLoad.next({ ready: true, name: moduleName });
|
|
2073
1841
|
}), catchError3((error) => {
|
|
2074
1842
|
this.onModuleLoad.next({ ready: true, name: moduleName, error });
|
|
@@ -2100,13 +1868,13 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2100
1868
|
this.logService.info(`I18n accepted languages set to ${EuiEuLanguages.getLanguageCodes(this.config.languages)}`);
|
|
2101
1869
|
}
|
|
2102
1870
|
}
|
|
2103
|
-
return this.translateService.use(initLanguage).pipe(
|
|
1871
|
+
return this.translateService.use(initLanguage).pipe(tap4(() => {
|
|
2104
1872
|
this.bindActiveLangStateToTranslateService();
|
|
2105
1873
|
this.bindTranslateServiceLangChangeToState();
|
|
2106
1874
|
if (this.config.defaultLanguage) {
|
|
2107
1875
|
this.setDefaultLanguage(this.config.defaultLanguage);
|
|
2108
1876
|
}
|
|
2109
|
-
}),
|
|
1877
|
+
}), map4(() => {
|
|
2110
1878
|
if (this.translateService.currentLoader instanceof I18nLoader) {
|
|
2111
1879
|
const failedResources = this.translateService.currentLoader.getFailedResources();
|
|
2112
1880
|
if (failedResources.length > 0) {
|
|
@@ -2160,24 +1928,24 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2160
1928
|
this.document.documentElement.lang = lang;
|
|
2161
1929
|
}
|
|
2162
1930
|
static {
|
|
2163
|
-
this.ɵfac =
|
|
1931
|
+
this.ɵfac = i012.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i012, type: _I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i16.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i012.ɵɵFactoryTarget.Injectable });
|
|
2164
1932
|
}
|
|
2165
1933
|
static {
|
|
2166
|
-
this.ɵprov =
|
|
1934
|
+
this.ɵprov = i012.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i012, type: _I18nService, providedIn: "root" });
|
|
2167
1935
|
}
|
|
2168
1936
|
};
|
|
2169
|
-
|
|
2170
|
-
type:
|
|
1937
|
+
i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i012, type: I18nService, decorators: [{
|
|
1938
|
+
type: Injectable10,
|
|
2171
1939
|
args: [{
|
|
2172
1940
|
providedIn: "root"
|
|
2173
1941
|
}]
|
|
2174
1942
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
2175
|
-
type:
|
|
1943
|
+
type: Inject6,
|
|
2176
1944
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
2177
|
-
}] }, { type:
|
|
1945
|
+
}] }, { type: i16.TranslateService }, { type: LogService, decorators: [{
|
|
2178
1946
|
type: Optional5
|
|
2179
1947
|
}] }, { type: StoreService }, { type: Document, decorators: [{
|
|
2180
|
-
type:
|
|
1948
|
+
type: Inject6,
|
|
2181
1949
|
args: [DOCUMENT]
|
|
2182
1950
|
}] }] });
|
|
2183
1951
|
|
|
@@ -2362,10 +2130,10 @@ var handleError = (error) => {
|
|
|
2362
2130
|
var isDefined = (value) => value !== void 0 && value !== null;
|
|
2363
2131
|
|
|
2364
2132
|
// lib/services/permission/permission.service.mjs
|
|
2365
|
-
import { Injectable as
|
|
2133
|
+
import { Injectable as Injectable11, Optional as Optional6 } from "@angular/core";
|
|
2366
2134
|
import { EuiService, getUserRights } from "@eui/base";
|
|
2367
2135
|
import { of as of6 } from "rxjs";
|
|
2368
|
-
import * as
|
|
2136
|
+
import * as i013 from "@angular/core";
|
|
2369
2137
|
var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
2370
2138
|
constructor(log, store) {
|
|
2371
2139
|
super([]);
|
|
@@ -2571,14 +2339,14 @@ var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
|
2571
2339
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2572
2340
|
}
|
|
2573
2341
|
static {
|
|
2574
|
-
this.ɵfac =
|
|
2342
|
+
this.ɵfac = i013.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i013, type: _EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i013.ɵɵFactoryTarget.Injectable });
|
|
2575
2343
|
}
|
|
2576
2344
|
static {
|
|
2577
|
-
this.ɵprov =
|
|
2345
|
+
this.ɵprov = i013.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i013, type: _EuiPermissionService, providedIn: "root" });
|
|
2578
2346
|
}
|
|
2579
2347
|
};
|
|
2580
|
-
|
|
2581
|
-
type:
|
|
2348
|
+
i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i013, type: EuiPermissionService, decorators: [{
|
|
2349
|
+
type: Injectable11,
|
|
2582
2350
|
args: [{
|
|
2583
2351
|
providedIn: "root"
|
|
2584
2352
|
}]
|
|
@@ -2587,9 +2355,9 @@ i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
2587
2355
|
}] }, { type: StoreService }] });
|
|
2588
2356
|
|
|
2589
2357
|
// lib/services/dynamic-menu/dynamic-menu.service.mjs
|
|
2590
|
-
import { Injectable as
|
|
2358
|
+
import { Injectable as Injectable12 } from "@angular/core";
|
|
2591
2359
|
import { getUserState } from "@eui/base";
|
|
2592
|
-
import * as
|
|
2360
|
+
import * as i014 from "@angular/core";
|
|
2593
2361
|
var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
2594
2362
|
// TODO: it should be moved euiservice, or it should be static
|
|
2595
2363
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
@@ -2638,23 +2406,23 @@ var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
|
2638
2406
|
});
|
|
2639
2407
|
}
|
|
2640
2408
|
static {
|
|
2641
|
-
this.ɵfac =
|
|
2409
|
+
this.ɵfac = i014.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i014, type: _EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i014.ɵɵFactoryTarget.Injectable });
|
|
2642
2410
|
}
|
|
2643
2411
|
static {
|
|
2644
|
-
this.ɵprov =
|
|
2412
|
+
this.ɵprov = i014.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i014, type: _EuiDynamicMenuService, providedIn: "root" });
|
|
2645
2413
|
}
|
|
2646
2414
|
};
|
|
2647
|
-
|
|
2648
|
-
type:
|
|
2415
|
+
i014.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i014, type: EuiDynamicMenuService, decorators: [{
|
|
2416
|
+
type: Injectable12,
|
|
2649
2417
|
args: [{
|
|
2650
2418
|
providedIn: "root"
|
|
2651
2419
|
}]
|
|
2652
2420
|
}], ctorParameters: () => [{ type: EuiPermissionService }, { type: StoreService }] });
|
|
2653
2421
|
|
|
2654
2422
|
// lib/services/dynamic-component/dynamic-component.service.mjs
|
|
2655
|
-
import { Injectable as
|
|
2423
|
+
import { Injectable as Injectable13, InjectionToken as InjectionToken5 } from "@angular/core";
|
|
2656
2424
|
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
|
|
2657
|
-
import * as
|
|
2425
|
+
import * as i015 from "@angular/core";
|
|
2658
2426
|
var DYNAMIC_COMPONENT_CONFIG = new InjectionToken5("DYNAMIC_COMPONENT_CONFIG");
|
|
2659
2427
|
var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
2660
2428
|
constructor(componentFactoryResolver, injector, appRef) {
|
|
@@ -2709,28 +2477,28 @@ var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
|
2709
2477
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2710
2478
|
}
|
|
2711
2479
|
static {
|
|
2712
|
-
this.ɵfac =
|
|
2480
|
+
this.ɵfac = i015.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i015, type: _EuiDynamicComponentService, deps: [{ token: i015.ComponentFactoryResolver }, { token: i015.Injector }, { token: i015.ApplicationRef }], target: i015.ɵɵFactoryTarget.Injectable });
|
|
2713
2481
|
}
|
|
2714
2482
|
static {
|
|
2715
|
-
this.ɵprov =
|
|
2483
|
+
this.ɵprov = i015.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i015, type: _EuiDynamicComponentService });
|
|
2716
2484
|
}
|
|
2717
2485
|
};
|
|
2718
|
-
|
|
2719
|
-
type:
|
|
2720
|
-
}], ctorParameters: () => [{ type:
|
|
2486
|
+
i015.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i015, type: EuiDynamicComponentService, decorators: [{
|
|
2487
|
+
type: Injectable13
|
|
2488
|
+
}], ctorParameters: () => [{ type: i015.ComponentFactoryResolver }, { type: i015.Injector }, { type: i015.ApplicationRef }] });
|
|
2721
2489
|
|
|
2722
2490
|
// lib/services/eui-app-shell.service.mjs
|
|
2723
|
-
import { Inject as
|
|
2491
|
+
import { Inject as Inject7, Injectable as Injectable14, Optional as Optional7, PLATFORM_ID } from "@angular/core";
|
|
2724
2492
|
import { isPlatformBrowser } from "@angular/common";
|
|
2725
2493
|
import { BehaviorSubject as BehaviorSubject2, defer, firstValueFrom } from "rxjs";
|
|
2726
2494
|
import { EuiEuLanguages as EuiEuLanguages2, getActiveLang as getActiveLang2 } from "@eui/base";
|
|
2727
2495
|
import { NavigationEnd } from "@angular/router";
|
|
2728
|
-
import { distinctUntilChanged as distinctUntilChanged2, map as
|
|
2496
|
+
import { distinctUntilChanged as distinctUntilChanged2, map as map5 } from "rxjs/operators";
|
|
2729
2497
|
import isEqual from "lodash-es/isEqual";
|
|
2730
2498
|
import get from "lodash-es/get";
|
|
2731
|
-
import * as
|
|
2732
|
-
import * as
|
|
2733
|
-
import * as
|
|
2499
|
+
import * as i016 from "@angular/core";
|
|
2500
|
+
import * as i17 from "@angular/common/http";
|
|
2501
|
+
import * as i23 from "@angular/router";
|
|
2734
2502
|
var initialState = {
|
|
2735
2503
|
appName: "",
|
|
2736
2504
|
appShortName: "",
|
|
@@ -2942,7 +2710,7 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2942
2710
|
return defer(() => (
|
|
2943
2711
|
// check if key exists
|
|
2944
2712
|
key ? this.state$.pipe(
|
|
2945
|
-
|
|
2713
|
+
map5((state) => get(state, key)),
|
|
2946
2714
|
// filter((state) => state),
|
|
2947
2715
|
distinctUntilChanged2((x, y) => isEqual(x, y))
|
|
2948
2716
|
) : this.state$
|
|
@@ -3360,32 +3128,32 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3360
3128
|
});
|
|
3361
3129
|
}
|
|
3362
3130
|
static {
|
|
3363
|
-
this.ɵfac =
|
|
3131
|
+
this.ɵfac = i016.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i016, type: _EuiAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i17.HttpClient }, { token: PLATFORM_ID }, { token: i23.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i016.ɵɵFactoryTarget.Injectable });
|
|
3364
3132
|
}
|
|
3365
3133
|
static {
|
|
3366
|
-
this.ɵprov =
|
|
3134
|
+
this.ɵprov = i016.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i016, type: _EuiAppShellService, providedIn: "root" });
|
|
3367
3135
|
}
|
|
3368
3136
|
};
|
|
3369
|
-
|
|
3370
|
-
type:
|
|
3137
|
+
i016.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i016, type: EuiAppShellService, decorators: [{
|
|
3138
|
+
type: Injectable14,
|
|
3371
3139
|
args: [{
|
|
3372
3140
|
providedIn: "root"
|
|
3373
3141
|
}]
|
|
3374
3142
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3375
3143
|
type: Optional7
|
|
3376
3144
|
}, {
|
|
3377
|
-
type:
|
|
3145
|
+
type: Inject7,
|
|
3378
3146
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
3379
|
-
}] }, { type:
|
|
3380
|
-
type:
|
|
3147
|
+
}] }, { type: i17.HttpClient }, { type: void 0, decorators: [{
|
|
3148
|
+
type: Inject7,
|
|
3381
3149
|
args: [PLATFORM_ID]
|
|
3382
|
-
}] }, { type:
|
|
3150
|
+
}] }, { type: i23.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3383
3151
|
type: Optional7
|
|
3384
3152
|
}] }] });
|
|
3385
3153
|
|
|
3386
3154
|
// lib/services/eui-timezone.service.mjs
|
|
3387
|
-
import { Injectable as
|
|
3388
|
-
import * as
|
|
3155
|
+
import { Injectable as Injectable15 } from "@angular/core";
|
|
3156
|
+
import * as i017 from "@angular/core";
|
|
3389
3157
|
var EUI_COUNTRIES = {
|
|
3390
3158
|
AF: "Afghanistan",
|
|
3391
3159
|
AX: "Aland Islands",
|
|
@@ -4093,14 +3861,14 @@ var EuiTimezoneService = class _EuiTimezoneService {
|
|
|
4093
3861
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4094
3862
|
}
|
|
4095
3863
|
static {
|
|
4096
|
-
this.ɵfac =
|
|
3864
|
+
this.ɵfac = i017.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i017, type: _EuiTimezoneService, deps: [], target: i017.ɵɵFactoryTarget.Injectable });
|
|
4097
3865
|
}
|
|
4098
3866
|
static {
|
|
4099
|
-
this.ɵprov =
|
|
3867
|
+
this.ɵprov = i017.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i017, type: _EuiTimezoneService });
|
|
4100
3868
|
}
|
|
4101
3869
|
};
|
|
4102
|
-
|
|
4103
|
-
type:
|
|
3870
|
+
i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i017, type: EuiTimezoneService, decorators: [{
|
|
3871
|
+
type: Injectable15
|
|
4104
3872
|
}] });
|
|
4105
3873
|
|
|
4106
3874
|
// lib/services/storage/storage.service.mjs
|
|
@@ -4170,8 +3938,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
4170
3938
|
};
|
|
4171
3939
|
|
|
4172
3940
|
// lib/services/storage/local-storage.service.mjs
|
|
4173
|
-
import { Injectable as
|
|
4174
|
-
import * as
|
|
3941
|
+
import { Injectable as Injectable16, Optional as Optional8 } from "@angular/core";
|
|
3942
|
+
import * as i018 from "@angular/core";
|
|
4175
3943
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
4176
3944
|
static {
|
|
4177
3945
|
this.NAME = "LocalStorageService";
|
|
@@ -4235,21 +4003,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
4235
4003
|
}
|
|
4236
4004
|
}
|
|
4237
4005
|
static {
|
|
4238
|
-
this.ɵfac =
|
|
4006
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i018, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
4239
4007
|
}
|
|
4240
4008
|
static {
|
|
4241
|
-
this.ɵprov =
|
|
4009
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i018, type: _LocalStorageService });
|
|
4242
4010
|
}
|
|
4243
4011
|
};
|
|
4244
|
-
|
|
4245
|
-
type:
|
|
4012
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i018, type: LocalStorageService, decorators: [{
|
|
4013
|
+
type: Injectable16
|
|
4246
4014
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4247
4015
|
type: Optional8
|
|
4248
4016
|
}] }] });
|
|
4249
4017
|
|
|
4250
4018
|
// lib/services/storage/session-storage.service.mjs
|
|
4251
|
-
import { Injectable as
|
|
4252
|
-
import * as
|
|
4019
|
+
import { Injectable as Injectable17, Optional as Optional9 } from "@angular/core";
|
|
4020
|
+
import * as i019 from "@angular/core";
|
|
4253
4021
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
4254
4022
|
static {
|
|
4255
4023
|
this.NAME = "SessionStorageService";
|
|
@@ -4313,24 +4081,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4313
4081
|
}
|
|
4314
4082
|
}
|
|
4315
4083
|
static {
|
|
4316
|
-
this.ɵfac =
|
|
4084
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i019, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4317
4085
|
}
|
|
4318
4086
|
static {
|
|
4319
|
-
this.ɵprov =
|
|
4087
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i019, type: _SessionStorageService });
|
|
4320
4088
|
}
|
|
4321
4089
|
};
|
|
4322
|
-
|
|
4323
|
-
type:
|
|
4090
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i019, type: SessionStorageService, decorators: [{
|
|
4091
|
+
type: Injectable17
|
|
4324
4092
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4325
4093
|
type: Optional9
|
|
4326
4094
|
}] }] });
|
|
4327
4095
|
|
|
4328
4096
|
// lib/services/storage/local-forage.service.mjs
|
|
4329
|
-
import { Inject as
|
|
4097
|
+
import { Inject as Inject8, Injectable as Injectable18, InjectionToken as InjectionToken6, Optional as Optional10 } from "@angular/core";
|
|
4330
4098
|
import { from as from2 } from "rxjs";
|
|
4331
|
-
import { take as take3, tap as
|
|
4099
|
+
import { take as take3, tap as tap5 } from "rxjs/operators";
|
|
4332
4100
|
import * as lf from "localforage";
|
|
4333
|
-
import * as
|
|
4101
|
+
import * as i020 from "@angular/core";
|
|
4334
4102
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4335
4103
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4336
4104
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4358,7 +4126,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4358
4126
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4359
4127
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4360
4128
|
ready() {
|
|
4361
|
-
return from2(localForage.ready()).pipe(take3(1),
|
|
4129
|
+
return from2(localForage.ready()).pipe(take3(1), tap5({
|
|
4362
4130
|
next: () => {
|
|
4363
4131
|
},
|
|
4364
4132
|
error: (err) => {
|
|
@@ -4376,7 +4144,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4376
4144
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4377
4145
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4378
4146
|
get(key) {
|
|
4379
|
-
return from2(localForage.getItem(key)).pipe(take3(1),
|
|
4147
|
+
return from2(localForage.getItem(key)).pipe(take3(1), tap5(() => {
|
|
4380
4148
|
}, (err) => {
|
|
4381
4149
|
if (this.log) {
|
|
4382
4150
|
this.log.error(this.name(), "get", err);
|
|
@@ -4392,7 +4160,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4392
4160
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4393
4161
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4394
4162
|
set(key, value) {
|
|
4395
|
-
return from2(localForage.setItem(key, value)).pipe(take3(1),
|
|
4163
|
+
return from2(localForage.setItem(key, value)).pipe(take3(1), tap5({
|
|
4396
4164
|
next: () => {
|
|
4397
4165
|
},
|
|
4398
4166
|
error: (err) => {
|
|
@@ -4410,7 +4178,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4410
4178
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4411
4179
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4412
4180
|
remove(key) {
|
|
4413
|
-
return from2(localForage.removeItem(key)).pipe(take3(1),
|
|
4181
|
+
return from2(localForage.removeItem(key)).pipe(take3(1), tap5({
|
|
4414
4182
|
next: () => {
|
|
4415
4183
|
},
|
|
4416
4184
|
error: (err) => {
|
|
@@ -4421,16 +4189,16 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4421
4189
|
}));
|
|
4422
4190
|
}
|
|
4423
4191
|
static {
|
|
4424
|
-
this.ɵfac =
|
|
4192
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i020, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i020.ɵɵFactoryTarget.Injectable });
|
|
4425
4193
|
}
|
|
4426
4194
|
static {
|
|
4427
|
-
this.ɵprov =
|
|
4195
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i020, type: _LocalForageService });
|
|
4428
4196
|
}
|
|
4429
4197
|
};
|
|
4430
|
-
|
|
4431
|
-
type:
|
|
4198
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i020, type: LocalForageService, decorators: [{
|
|
4199
|
+
type: Injectable18
|
|
4432
4200
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4433
|
-
type:
|
|
4201
|
+
type: Inject8,
|
|
4434
4202
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4435
4203
|
}, {
|
|
4436
4204
|
type: Optional10
|
|
@@ -4439,13 +4207,13 @@ i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
4439
4207
|
}] }] });
|
|
4440
4208
|
|
|
4441
4209
|
// lib/services/locale/locale.service.mjs
|
|
4442
|
-
import { Inject as
|
|
4210
|
+
import { Inject as Inject9, Injectable as Injectable19, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional11 } from "@angular/core";
|
|
4443
4211
|
import { getLocaleId } from "@angular/common";
|
|
4444
4212
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4445
4213
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4446
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4214
|
+
import { catchError as catchError4, filter as filter2, map as map6, switchMap as switchMap3, take as take4, takeUntil, tap as tap6 } from "rxjs/operators";
|
|
4447
4215
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4448
|
-
import * as
|
|
4216
|
+
import * as i021 from "@angular/core";
|
|
4449
4217
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4450
4218
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4451
4219
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4493,7 +4261,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4493
4261
|
return this.store.select(selector).pipe(
|
|
4494
4262
|
takeUntil(this.subNotifier),
|
|
4495
4263
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4496
|
-
|
|
4264
|
+
map6((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4497
4265
|
);
|
|
4498
4266
|
}
|
|
4499
4267
|
/**
|
|
@@ -4509,7 +4277,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4509
4277
|
this.bindTranslateServiceLangChangeToState();
|
|
4510
4278
|
}
|
|
4511
4279
|
const availableLocales = state?.available || this.config?.available || this.getBrowserLocales() || [this.currentLocale];
|
|
4512
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier),
|
|
4280
|
+
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap6(() => this.updateState(state || { id: this.currentLocale })));
|
|
4513
4281
|
}
|
|
4514
4282
|
/**
|
|
4515
4283
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4598,7 +4366,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4598
4366
|
if (this.log) {
|
|
4599
4367
|
this.logger.debug(error);
|
|
4600
4368
|
}
|
|
4601
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4369
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map6(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4602
4370
|
if (this.log) {
|
|
4603
4371
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4604
4372
|
}
|
|
@@ -4607,8 +4375,8 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4607
4375
|
})
|
|
4608
4376
|
)),
|
|
4609
4377
|
// update the "available" array attribute with newly registered
|
|
4610
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4611
|
-
const available = state
|
|
4378
|
+
switchMap3((id) => this.getState().pipe(take4(1), map6((state) => {
|
|
4379
|
+
const available = state["available"] ? state["available"] : [];
|
|
4612
4380
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4613
4381
|
})))
|
|
4614
4382
|
).subscribe((state) => {
|
|
@@ -4630,27 +4398,27 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4630
4398
|
return browserLocales.map((locale) => locale.trim());
|
|
4631
4399
|
}
|
|
4632
4400
|
static {
|
|
4633
|
-
this.ɵfac =
|
|
4401
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i021, type: _LocaleService, deps: [{ token: StoreService }, { token: GLOBAL_CONFIG_TOKEN }, { token: LOCALE_ID }, { token: LOCALE_ID_MAPPER, optional: true }, { token: I18nService, optional: true }, { token: LogService, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4634
4402
|
}
|
|
4635
4403
|
static {
|
|
4636
|
-
this.ɵprov =
|
|
4404
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i021, type: _LocaleService, providedIn: "root" });
|
|
4637
4405
|
}
|
|
4638
4406
|
};
|
|
4639
|
-
|
|
4640
|
-
type:
|
|
4407
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i021, type: LocaleService, decorators: [{
|
|
4408
|
+
type: Injectable19,
|
|
4641
4409
|
args: [{
|
|
4642
4410
|
providedIn: "root"
|
|
4643
4411
|
}]
|
|
4644
4412
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4645
|
-
type:
|
|
4413
|
+
type: Inject9,
|
|
4646
4414
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4647
4415
|
}] }, { type: void 0, decorators: [{
|
|
4648
|
-
type:
|
|
4416
|
+
type: Inject9,
|
|
4649
4417
|
args: [LOCALE_ID]
|
|
4650
4418
|
}] }, { type: void 0, decorators: [{
|
|
4651
4419
|
type: Optional11
|
|
4652
4420
|
}, {
|
|
4653
|
-
type:
|
|
4421
|
+
type: Inject9,
|
|
4654
4422
|
args: [LOCALE_ID_MAPPER]
|
|
4655
4423
|
}] }, { type: I18nService, decorators: [{
|
|
4656
4424
|
type: Optional11
|
|
@@ -4659,12 +4427,12 @@ i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
4659
4427
|
}] }] });
|
|
4660
4428
|
|
|
4661
4429
|
// lib/services/locale/locale.service.mock.mjs
|
|
4662
|
-
import { Optional as Optional12, Inject as
|
|
4430
|
+
import { Optional as Optional12, Inject as Inject10, Injectable as Injectable20, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4663
4431
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4664
4432
|
import localeFr from "@angular/common/locales/fr";
|
|
4665
4433
|
import localeEl from "@angular/common/locales/el";
|
|
4666
4434
|
import { registerLocaleData } from "@angular/common";
|
|
4667
|
-
import * as
|
|
4435
|
+
import * as i022 from "@angular/core";
|
|
4668
4436
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4669
4437
|
constructor(locale_id) {
|
|
4670
4438
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4689,18 +4457,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4689
4457
|
return of9({ success: true });
|
|
4690
4458
|
}
|
|
4691
4459
|
static {
|
|
4692
|
-
this.ɵfac =
|
|
4460
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i022, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i022.ɵɵFactoryTarget.Injectable });
|
|
4693
4461
|
}
|
|
4694
4462
|
static {
|
|
4695
|
-
this.ɵprov =
|
|
4463
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i022, type: _LocaleServiceMock });
|
|
4696
4464
|
}
|
|
4697
4465
|
};
|
|
4698
|
-
|
|
4699
|
-
type:
|
|
4466
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i022, type: LocaleServiceMock, decorators: [{
|
|
4467
|
+
type: Injectable20
|
|
4700
4468
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4701
4469
|
type: Optional12
|
|
4702
4470
|
}, {
|
|
4703
|
-
type:
|
|
4471
|
+
type: Inject10,
|
|
4704
4472
|
args: [LOCALE_ID2]
|
|
4705
4473
|
}] }] });
|
|
4706
4474
|
|
|
@@ -4713,10 +4481,10 @@ var Status;
|
|
|
4713
4481
|
})(Status || (Status = {}));
|
|
4714
4482
|
|
|
4715
4483
|
// lib/services/loader/eui-loader.service.mjs
|
|
4716
|
-
import { Injectable as
|
|
4484
|
+
import { Injectable as Injectable21 } from "@angular/core";
|
|
4717
4485
|
import { Subject as Subject2 } from "rxjs";
|
|
4718
|
-
import { filter as filter3, map as
|
|
4719
|
-
import * as
|
|
4486
|
+
import { filter as filter3, map as map7 } from "rxjs/operators";
|
|
4487
|
+
import * as i023 from "@angular/core";
|
|
4720
4488
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4721
4489
|
constructor() {
|
|
4722
4490
|
this.dependencies = [];
|
|
@@ -4810,7 +4578,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4810
4578
|
* @param name The name of the dependency
|
|
4811
4579
|
*/
|
|
4812
4580
|
statusChanges(name) {
|
|
4813
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4581
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map7(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4814
4582
|
}
|
|
4815
4583
|
/**
|
|
4816
4584
|
* Load a dependency and its prerequisites
|
|
@@ -4931,25 +4699,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4931
4699
|
}
|
|
4932
4700
|
}
|
|
4933
4701
|
static {
|
|
4934
|
-
this.ɵfac =
|
|
4702
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i023, type: _EuiLoaderService, deps: [], target: i023.ɵɵFactoryTarget.Injectable });
|
|
4935
4703
|
}
|
|
4936
4704
|
static {
|
|
4937
|
-
this.ɵprov =
|
|
4705
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i023, type: _EuiLoaderService, providedIn: "root" });
|
|
4938
4706
|
}
|
|
4939
4707
|
};
|
|
4940
|
-
|
|
4941
|
-
type:
|
|
4708
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i023, type: EuiLoaderService, decorators: [{
|
|
4709
|
+
type: Injectable21,
|
|
4942
4710
|
args: [{
|
|
4943
4711
|
providedIn: "root"
|
|
4944
4712
|
}]
|
|
4945
4713
|
}] });
|
|
4946
4714
|
|
|
4947
4715
|
// lib/services/user/user.service.mjs
|
|
4948
|
-
import { Injectable as
|
|
4716
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
4949
4717
|
import { of as of10 } from "rxjs";
|
|
4950
4718
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
4951
4719
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
4952
|
-
import * as
|
|
4720
|
+
import * as i024 from "@angular/core";
|
|
4953
4721
|
var UserService = class _UserService extends EuiService3 {
|
|
4954
4722
|
constructor(store) {
|
|
4955
4723
|
super({ userId: "annonymous" });
|
|
@@ -4988,14 +4756,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
4988
4756
|
}
|
|
4989
4757
|
}
|
|
4990
4758
|
static {
|
|
4991
|
-
this.ɵfac =
|
|
4759
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i024, type: _UserService, deps: [{ token: StoreService }], target: i024.ɵɵFactoryTarget.Injectable });
|
|
4992
4760
|
}
|
|
4993
4761
|
static {
|
|
4994
|
-
this.ɵprov =
|
|
4762
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i024, type: _UserService, providedIn: "root" });
|
|
4995
4763
|
}
|
|
4996
4764
|
};
|
|
4997
|
-
|
|
4998
|
-
type:
|
|
4765
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i024, type: UserService, decorators: [{
|
|
4766
|
+
type: Injectable22,
|
|
4999
4767
|
args: [{
|
|
5000
4768
|
providedIn: "root"
|
|
5001
4769
|
}]
|
|
@@ -5003,8 +4771,8 @@ i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
5003
4771
|
|
|
5004
4772
|
// lib/services/user/user.service.mock.mjs
|
|
5005
4773
|
import { of as of11 } from "rxjs";
|
|
5006
|
-
import { Injectable as
|
|
5007
|
-
import * as
|
|
4774
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
4775
|
+
import * as i025 from "@angular/core";
|
|
5008
4776
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
5009
4777
|
constructor() {
|
|
5010
4778
|
super(null);
|
|
@@ -5020,20 +4788,20 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
5020
4788
|
updateState(userState, reducer) {
|
|
5021
4789
|
}
|
|
5022
4790
|
static {
|
|
5023
|
-
this.ɵfac =
|
|
4791
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i025, type: _UserServiceMock, deps: [], target: i025.ɵɵFactoryTarget.Injectable });
|
|
5024
4792
|
}
|
|
5025
4793
|
static {
|
|
5026
|
-
this.ɵprov =
|
|
4794
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i025, type: _UserServiceMock });
|
|
5027
4795
|
}
|
|
5028
4796
|
};
|
|
5029
|
-
|
|
5030
|
-
type:
|
|
4797
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i025, type: UserServiceMock, decorators: [{
|
|
4798
|
+
type: Injectable23
|
|
5031
4799
|
}], ctorParameters: () => [] });
|
|
5032
4800
|
|
|
5033
4801
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
5034
|
-
import { Injectable as
|
|
5035
|
-
import * as
|
|
5036
|
-
import * as
|
|
4802
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
4803
|
+
import * as i026 from "@angular/core";
|
|
4804
|
+
import * as i18 from "@ngx-translate/core";
|
|
5037
4805
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
5038
4806
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
5039
4807
|
constructor(translateService) {
|
|
@@ -5053,19 +4821,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
5053
4821
|
}));
|
|
5054
4822
|
}
|
|
5055
4823
|
static {
|
|
5056
|
-
this.ɵfac =
|
|
4824
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i026, type: _AddLangParamInterceptor, deps: [{ token: i18.TranslateService }], target: i026.ɵɵFactoryTarget.Injectable });
|
|
5057
4825
|
}
|
|
5058
4826
|
static {
|
|
5059
|
-
this.ɵprov =
|
|
4827
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i026, type: _AddLangParamInterceptor });
|
|
5060
4828
|
}
|
|
5061
4829
|
};
|
|
5062
|
-
|
|
5063
|
-
type:
|
|
5064
|
-
}], ctorParameters: () => [{ type:
|
|
4830
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i026, type: AddLangParamInterceptor, decorators: [{
|
|
4831
|
+
type: Injectable24
|
|
4832
|
+
}], ctorParameters: () => [{ type: i18.TranslateService }] });
|
|
5065
4833
|
|
|
5066
4834
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
5067
|
-
import { Injectable as
|
|
5068
|
-
import * as
|
|
4835
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
4836
|
+
import * as i027 from "@angular/core";
|
|
5069
4837
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
5070
4838
|
intercept(req, next) {
|
|
5071
4839
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -5077,19 +4845,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
5077
4845
|
}));
|
|
5078
4846
|
}
|
|
5079
4847
|
static {
|
|
5080
|
-
this.ɵfac =
|
|
4848
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i027, type: _CachePreventionInterceptor, deps: [], target: i027.ɵɵFactoryTarget.Injectable });
|
|
5081
4849
|
}
|
|
5082
4850
|
static {
|
|
5083
|
-
this.ɵprov =
|
|
4851
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i027, type: _CachePreventionInterceptor });
|
|
5084
4852
|
}
|
|
5085
4853
|
};
|
|
5086
|
-
|
|
5087
|
-
type:
|
|
4854
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i027, type: CachePreventionInterceptor, decorators: [{
|
|
4855
|
+
type: Injectable25
|
|
5088
4856
|
}] });
|
|
5089
4857
|
|
|
5090
4858
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
5091
|
-
import { Injectable as
|
|
5092
|
-
import * as
|
|
4859
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
4860
|
+
import * as i028 from "@angular/core";
|
|
5093
4861
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
5094
4862
|
intercept(request, next) {
|
|
5095
4863
|
return next.handle(request.clone({
|
|
@@ -5097,19 +4865,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
5097
4865
|
}));
|
|
5098
4866
|
}
|
|
5099
4867
|
static {
|
|
5100
|
-
this.ɵfac =
|
|
4868
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i028, type: _CorsSecurityInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
5101
4869
|
}
|
|
5102
4870
|
static {
|
|
5103
|
-
this.ɵprov =
|
|
4871
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i028, type: _CorsSecurityInterceptor });
|
|
5104
4872
|
}
|
|
5105
4873
|
};
|
|
5106
|
-
|
|
5107
|
-
type:
|
|
4874
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i028, type: CorsSecurityInterceptor, decorators: [{
|
|
4875
|
+
type: Injectable26
|
|
5108
4876
|
}] });
|
|
5109
4877
|
|
|
5110
4878
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
5111
|
-
import { Injectable as
|
|
5112
|
-
import * as
|
|
4879
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
4880
|
+
import * as i029 from "@angular/core";
|
|
5113
4881
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
5114
4882
|
intercept(request, next) {
|
|
5115
4883
|
return next.handle(request.clone({
|
|
@@ -5117,24 +4885,24 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
5117
4885
|
}));
|
|
5118
4886
|
}
|
|
5119
4887
|
static {
|
|
5120
|
-
this.ɵfac =
|
|
4888
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i029, type: _CsrfPreventionInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
5121
4889
|
}
|
|
5122
4890
|
static {
|
|
5123
|
-
this.ɵprov =
|
|
4891
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i029, type: _CsrfPreventionInterceptor });
|
|
5124
4892
|
}
|
|
5125
4893
|
};
|
|
5126
|
-
|
|
5127
|
-
type:
|
|
4894
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i029, type: CsrfPreventionInterceptor, decorators: [{
|
|
4895
|
+
type: Injectable27
|
|
5128
4896
|
}] });
|
|
5129
4897
|
|
|
5130
4898
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
5131
|
-
import { Injectable as
|
|
4899
|
+
import { Injectable as Injectable28 } from "@angular/core";
|
|
5132
4900
|
import { HttpResponse } from "@angular/common/http";
|
|
5133
|
-
import { tap as
|
|
5134
|
-
import * as
|
|
4901
|
+
import { tap as tap7 } from "rxjs/operators";
|
|
4902
|
+
import * as i030 from "@angular/core";
|
|
5135
4903
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
5136
4904
|
intercept(request, next) {
|
|
5137
|
-
return next.handle(request).pipe(
|
|
4905
|
+
return next.handle(request).pipe(tap7((event) => {
|
|
5138
4906
|
this.checkRequestSuccessForEULoginSessionTimeout(request, event);
|
|
5139
4907
|
return event;
|
|
5140
4908
|
}, (error) => {
|
|
@@ -5182,23 +4950,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
5182
4950
|
document.location.reload();
|
|
5183
4951
|
}
|
|
5184
4952
|
static {
|
|
5185
|
-
this.ɵfac =
|
|
4953
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i030, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i030.ɵɵFactoryTarget.Injectable });
|
|
5186
4954
|
}
|
|
5187
4955
|
static {
|
|
5188
|
-
this.ɵprov =
|
|
4956
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i030, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
5189
4957
|
}
|
|
5190
4958
|
};
|
|
5191
|
-
|
|
5192
|
-
type:
|
|
4959
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i030, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4960
|
+
type: Injectable28
|
|
5193
4961
|
}] });
|
|
5194
4962
|
|
|
5195
4963
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
5196
|
-
import { Inject as
|
|
4964
|
+
import { Inject as Inject11, Injectable as Injectable29, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
5197
4965
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
5198
4966
|
import { of as of12 } from "rxjs";
|
|
5199
4967
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
5200
4968
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
5201
|
-
import * as
|
|
4969
|
+
import * as i031 from "@angular/core";
|
|
5202
4970
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
5203
4971
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
5204
4972
|
constructor(errorMappingHandler) {
|
|
@@ -5221,25 +4989,18 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
5221
4989
|
);
|
|
5222
4990
|
}
|
|
5223
4991
|
static {
|
|
5224
|
-
this.ɵfac =
|
|
4992
|
+
this.ɵfac = i031.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i031, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i031.ɵɵFactoryTarget.Injectable });
|
|
5225
4993
|
}
|
|
5226
4994
|
static {
|
|
5227
|
-
this.ɵprov =
|
|
4995
|
+
this.ɵprov = i031.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i031, type: _UxRequestErrorModelInterceptor });
|
|
5228
4996
|
}
|
|
5229
4997
|
};
|
|
5230
|
-
|
|
5231
|
-
type:
|
|
4998
|
+
i031.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i031, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4999
|
+
type: Injectable29
|
|
5232
5000
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
5233
|
-
type:
|
|
5001
|
+
type: Inject11,
|
|
5234
5002
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5235
5003
|
}] }] });
|
|
5236
|
-
|
|
5237
|
-
// index.mjs
|
|
5238
|
-
__reExport(esm2022_exports, base_star);
|
|
5239
|
-
import * as base_star from "@eui/base";
|
|
5240
|
-
|
|
5241
|
-
// eui-core.mjs
|
|
5242
|
-
__reExport(eui_core_exports, esm2022_exports);
|
|
5243
5004
|
export {
|
|
5244
5005
|
ActivatedRouteAction,
|
|
5245
5006
|
AddApiQueueItemAction,
|
|
@@ -5258,9 +5019,11 @@ export {
|
|
|
5258
5019
|
CachePreventionInterceptor,
|
|
5259
5020
|
ConsoleHttpErrorCallbackFn,
|
|
5260
5021
|
CoreAppActionTypes,
|
|
5022
|
+
CoreAppEffects,
|
|
5261
5023
|
CoreI18nActionTypes,
|
|
5262
5024
|
CoreLocaleActionTypes,
|
|
5263
5025
|
CoreModule,
|
|
5026
|
+
CoreModuleEffects,
|
|
5264
5027
|
CoreNotificationsActionTypes,
|
|
5265
5028
|
CoreUserActionTypes,
|
|
5266
5029
|
CorsSecurityInterceptor,
|