@eui/core 18.0.0-next.2 → 18.0.0-next.21
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/dependencies.html +32 -50
- package/docs/index.html +1 -1
- package/docs/js/menu-wc.js +0 -3
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +0 -32
- package/esm2022/index.mjs +1 -3
- package/esm2022/lib/eui-core.module.mjs +5 -5
- package/esm2022/lib/helpers/dom-helpers.mjs +1 -1
- package/esm2022/lib/helpers/event-helpers.mjs +1 -1
- package/esm2022/lib/helpers/form-helpers.mjs +1 -1
- package/esm2022/lib/helpers/format-helpers.mjs +1 -1
- 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 +3 -3
- package/esm2022/lib/interceptors/csrf-prevention.interceptor.mjs +3 -3
- 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 +1 -1
- package/esm2022/lib/services/app/eui-pre-init-app.mjs +1 -1
- package/esm2022/lib/services/config/tokens.mjs +1 -1
- 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/eui.error.mjs +1 -1
- package/esm2022/lib/services/errors/global-error-handler.mjs +3 -3
- 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 +4 -4
- package/esm2022/lib/services/locale/locale.service.mock.mjs +4 -4
- package/esm2022/lib/services/log/log.module.mjs +4 -4
- 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/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/index.mjs +2 -2
- package/esm2022/lib/services/store/reducers/app.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/i18n.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/locale.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/meta.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/notifications.reducers.mjs +1 -1
- package/esm2022/lib/services/store/reducers/user.reducers.mjs +1 -1
- package/esm2022/lib/services/store/store.service.mjs +4 -4
- package/esm2022/lib/services/store/store.service.mock.mjs +3 -3
- package/esm2022/lib/services/user/user.service.mjs +4 -4
- package/esm2022/lib/services/user/user.service.mock.mjs +3 -3
- package/fesm2022/eui-core.mjs +325 -674
- package/fesm2022/eui-core.mjs.map +4 -4
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/lib/helpers/dom-helpers.d.ts.map +1 -1
- package/lib/helpers/utils.d.ts +1 -1
- package/lib/helpers/utils.d.ts.map +1 -1
- package/lib/services/store/index.d.ts +0 -1
- package/lib/services/store/index.d.ts.map +1 -1
- package/lib/services/store/reducers/meta.reducers.d.ts.map +1 -1
- package/package.json +10 -11
- package/docs/injectables/CoreAppEffects.html +0 -448
- package/esm2022/lib/services/store/effects/app.effects.mjs +0 -55
- package/esm2022/lib/services/store/effects/index.mjs +0 -4
- package/lib/services/store/effects/app.effects.d.ts +0 -20
- package/lib/services/store/effects/app.effects.d.ts.map +0 -1
- package/lib/services/store/effects/index.d.ts +0 -4
- package/lib/services/store/effects/index.d.ts.map +0 -1
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1,291 +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
|
-
CoreAppEffects: () => CoreAppEffects,
|
|
40
|
-
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
41
|
-
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
42
|
-
CoreModule: () => CoreModule,
|
|
43
|
-
CoreModuleEffects: () => CoreModuleEffects,
|
|
44
|
-
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
45
|
-
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
46
|
-
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
47
|
-
CsrfPreventionInterceptor: () => CsrfPreventionInterceptor,
|
|
48
|
-
DYNAMIC_COMPONENT_CONFIG: () => DYNAMIC_COMPONENT_CONFIG,
|
|
49
|
-
EUI_CONFIG_TOKEN: () => EUI_CONFIG_TOKEN,
|
|
50
|
-
EUI_COUNTRIES: () => EUI_COUNTRIES,
|
|
51
|
-
EUI_TIMEZONES: () => EUI_TIMEZONES,
|
|
52
|
-
EmptyApiQueueAction: () => EmptyApiQueueAction,
|
|
53
|
-
ErrorSubClass: () => ErrorSubClass,
|
|
54
|
-
EuLoginSessionTimeoutHandlingInterceptor: () => EuLoginSessionTimeoutHandlingInterceptor,
|
|
55
|
-
EuiAppShellService: () => EuiAppShellService,
|
|
56
|
-
EuiCoreRootGuardClass: () => EuiCoreRootGuardClass,
|
|
57
|
-
EuiDynamicComponentService: () => EuiDynamicComponentService,
|
|
58
|
-
EuiDynamicMenuService: () => EuiDynamicMenuService,
|
|
59
|
-
EuiError: () => EuiError,
|
|
60
|
-
EuiGrowlService: () => EuiGrowlService,
|
|
61
|
-
EuiLoaderService: () => EuiLoaderService,
|
|
62
|
-
EuiPermissionService: () => EuiPermissionService,
|
|
63
|
-
EuiTimezoneService: () => EuiTimezoneService,
|
|
64
|
-
GLOBAL_CONFIG_TOKEN: () => GLOBAL_CONFIG_TOKEN,
|
|
65
|
-
GlobalErrorHandler: () => GlobalErrorHandler,
|
|
66
|
-
GrowlHttpErrorCallbackFn: () => GrowlHttpErrorCallbackFn,
|
|
67
|
-
HTTP_ERROR_HANDLER_CONFIG_TOKEN: () => HTTP_ERROR_HANDLER_CONFIG_TOKEN,
|
|
68
|
-
HttpErrorHandlerInterceptor: () => HttpErrorHandlerInterceptor,
|
|
69
|
-
I18nLoader: () => I18nLoader,
|
|
70
|
-
I18nResourceImpl: () => I18nResourceImpl,
|
|
71
|
-
I18nService: () => I18nService,
|
|
72
|
-
InitStoreAction: () => InitStoreAction,
|
|
73
|
-
LANG_PARAM_KEY: () => LANG_PARAM_KEY,
|
|
74
|
-
LOCALE_ID_MAPPER: () => LOCALE_ID_MAPPER,
|
|
75
|
-
LOCAL_FORAGE_SERVICE_CONFIG_TOKEN: () => LOCAL_FORAGE_SERVICE_CONFIG_TOKEN,
|
|
76
|
-
LOG_APPENDERS_TOKEN: () => LOG_APPENDERS_TOKEN,
|
|
77
|
-
LOG_LEVEL_TOKEN: () => LOG_LEVEL_TOKEN,
|
|
78
|
-
LocalForageService: () => LocalForageService,
|
|
79
|
-
LocalStorageService: () => LocalStorageService,
|
|
80
|
-
LocaleService: () => LocaleService,
|
|
81
|
-
LocaleServiceMock: () => LocaleServiceMock,
|
|
82
|
-
LogHttpErrorCallbackFn: () => LogHttpErrorCallbackFn,
|
|
83
|
-
LogModule: () => LogModule,
|
|
84
|
-
LogService: () => LogService,
|
|
85
|
-
LogServiceMock: () => LogServiceMock,
|
|
86
|
-
MODULE_CONFIG_TOKEN: () => MODULE_CONFIG_TOKEN,
|
|
87
|
-
MODULE_NAME_TOKEN: () => MODULE_NAME_TOKEN,
|
|
88
|
-
ROOT_LOG_CONFIG_TOKEN: () => ROOT_LOG_CONFIG_TOKEN,
|
|
89
|
-
RemoveApiQueueItemAction: () => RemoveApiQueueItemAction,
|
|
90
|
-
SHOW_CONNECTION_STATUS_TOKEN: () => SHOW_CONNECTION_STATUS_TOKEN,
|
|
91
|
-
SessionStorageService: () => SessionStorageService,
|
|
92
|
-
Status: () => Status,
|
|
93
|
-
StorageService: () => StorageService,
|
|
94
|
-
StorageServiceMock: () => StorageServiceMock,
|
|
95
|
-
StoreService: () => StoreService,
|
|
96
|
-
StoreServiceMock: () => StoreServiceMock,
|
|
97
|
-
UX_ERROR_MAPPING_HANDLER_TOKEN: () => UX_ERROR_MAPPING_HANDLER_TOKEN,
|
|
98
|
-
UpdateAppConnectionAction: () => UpdateAppConnectionAction,
|
|
99
|
-
UpdateAppStatusAction: () => UpdateAppStatusAction,
|
|
100
|
-
UpdateAppVersionAction: () => UpdateAppVersionAction,
|
|
101
|
-
UpdateCurrentModuleAction: () => UpdateCurrentModuleAction,
|
|
102
|
-
UpdateI18nStateAction: () => UpdateI18nStateAction,
|
|
103
|
-
UpdateLocaleStateAction: () => UpdateLocaleStateAction,
|
|
104
|
-
UpdateNotificationsListAction: () => UpdateNotificationsListAction,
|
|
105
|
-
UpdateUserDashboardAction: () => UpdateUserDashboardAction,
|
|
106
|
-
UpdateUserDetailsAction: () => UpdateUserDetailsAction,
|
|
107
|
-
UpdateUserPreferencesAction: () => UpdateUserPreferencesAction,
|
|
108
|
-
UpdateUserRightsAction: () => UpdateUserRightsAction,
|
|
109
|
-
UpdateUserStateAction: () => UpdateUserStateAction,
|
|
110
|
-
UserService: () => UserService,
|
|
111
|
-
UserServiceMock: () => UserServiceMock,
|
|
112
|
-
UxRequestErrorModelInterceptor: () => UxRequestErrorModelInterceptor,
|
|
113
|
-
closestMatchingParent: () => closestMatchingParent,
|
|
114
|
-
consumeEvent: () => consumeEvent,
|
|
115
|
-
corI18nReducers: () => corI18nReducers,
|
|
116
|
-
coreAppReducers: () => coreAppReducers,
|
|
117
|
-
coreLocaleReducers: () => coreLocaleReducers,
|
|
118
|
-
coreNotificationsReducers: () => coreNotificationsReducers,
|
|
119
|
-
coreUserReducers: () => coreUserReducers,
|
|
120
|
-
createEuiCoreRootGuard: () => createEuiCoreRootGuard,
|
|
121
|
-
diffDays: () => diffDays,
|
|
122
|
-
diffDaysFromToday: () => diffDaysFromToday,
|
|
123
|
-
errorCodes: () => errorCodes,
|
|
124
|
-
euiCoreRootGuardClass: () => euiCoreRootGuardClass,
|
|
125
|
-
formatNumber: () => formatNumber,
|
|
126
|
-
getGlobalConfig: () => getGlobalConfig,
|
|
127
|
-
getHttpErrorHandlingConfig: () => getHttpErrorHandlingConfig,
|
|
128
|
-
getModuleConfig: () => getModuleConfig,
|
|
129
|
-
getRootLogConfig: () => getRootLogConfig,
|
|
130
|
-
getShowConnectionStatus: () => getShowConnectionStatus,
|
|
131
|
-
getViewElement: () => getViewElement,
|
|
132
|
-
handleError: () => handleError,
|
|
133
|
-
isDefined: () => isDefined,
|
|
134
|
-
loadEuiDynamicEnvironmentConfig: () => loadEuiDynamicEnvironmentConfig,
|
|
135
|
-
loadState: () => loadState,
|
|
136
|
-
localForage: () => localForage,
|
|
137
|
-
localStorageSync: () => localStorageSync,
|
|
138
|
-
markControlsTouched: () => markControlsTouched,
|
|
139
|
-
markFormGroupTouched: () => markFormGroupTouched,
|
|
140
|
-
mergeAppHandlerConfigToAppConfig: () => mergeAppHandlerConfigToAppConfig,
|
|
141
|
-
mergeAppJsonConfigToAppConfig: () => mergeAppJsonConfigToAppConfig,
|
|
142
|
-
offset: () => offset,
|
|
143
|
-
parentOffsetEl: () => parentOffsetEl,
|
|
144
|
-
position: () => position,
|
|
145
|
-
preInitApp: () => preInitApp,
|
|
146
|
-
prepareEuiAppConfigToken: () => prepareEuiAppConfigToken,
|
|
147
|
-
reducers: () => coreReducers,
|
|
148
|
-
sessionStorageSync: () => sessionStorageSync,
|
|
149
|
-
translateConfig: () => translateConfig,
|
|
150
|
-
uniqueId: () => uniqueId,
|
|
151
|
-
validateEmail: () => validateEmail
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
// index.mjs
|
|
155
|
-
var esm2022_exports = {};
|
|
156
|
-
__export(esm2022_exports, {
|
|
157
|
-
ActivatedRouteAction: () => ActivatedRouteAction,
|
|
158
|
-
AddApiQueueItemAction: () => AddApiQueueItemAction,
|
|
159
|
-
AddAppLoadedConfigModulesAction: () => AddAppLoadedConfigModulesAction,
|
|
160
|
-
AddLangParamInterceptor: () => AddLangParamInterceptor,
|
|
161
|
-
AlertHttpErrorCallbackFn: () => AlertHttpErrorCallbackFn,
|
|
162
|
-
ApiQueueService: () => ApiQueueService,
|
|
163
|
-
ApiQueueServiceMock: () => ApiQueueServiceMock,
|
|
164
|
-
AsyncStorageService: () => AsyncStorageService,
|
|
165
|
-
AsyncStorageServiceMock: () => AsyncStorageServiceMock,
|
|
166
|
-
BASE_LOGGER_NAME_TOKEN: () => BASE_LOGGER_NAME_TOKEN,
|
|
167
|
-
BASE_NAME_TOKEN: () => BASE_NAME_TOKEN,
|
|
168
|
-
BrowserStorageType: () => BrowserStorageType,
|
|
169
|
-
CONFIG_TOKEN: () => CONFIG_TOKEN,
|
|
170
|
-
CORE_ROOT_GUARD: () => CORE_ROOT_GUARD,
|
|
171
|
-
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
172
|
-
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
173
|
-
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
174
|
-
CoreAppEffects: () => CoreAppEffects,
|
|
175
|
-
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
176
|
-
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
177
|
-
CoreModule: () => CoreModule,
|
|
178
|
-
CoreModuleEffects: () => CoreModuleEffects,
|
|
179
|
-
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
180
|
-
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
181
|
-
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
182
|
-
CsrfPreventionInterceptor: () => CsrfPreventionInterceptor,
|
|
183
|
-
DYNAMIC_COMPONENT_CONFIG: () => DYNAMIC_COMPONENT_CONFIG,
|
|
184
|
-
EUI_CONFIG_TOKEN: () => EUI_CONFIG_TOKEN,
|
|
185
|
-
EUI_COUNTRIES: () => EUI_COUNTRIES,
|
|
186
|
-
EUI_TIMEZONES: () => EUI_TIMEZONES,
|
|
187
|
-
EmptyApiQueueAction: () => EmptyApiQueueAction,
|
|
188
|
-
ErrorSubClass: () => ErrorSubClass,
|
|
189
|
-
EuLoginSessionTimeoutHandlingInterceptor: () => EuLoginSessionTimeoutHandlingInterceptor,
|
|
190
|
-
EuiAppShellService: () => EuiAppShellService,
|
|
191
|
-
EuiCoreRootGuardClass: () => EuiCoreRootGuardClass,
|
|
192
|
-
EuiDynamicComponentService: () => EuiDynamicComponentService,
|
|
193
|
-
EuiDynamicMenuService: () => EuiDynamicMenuService,
|
|
194
|
-
EuiError: () => EuiError,
|
|
195
|
-
EuiGrowlService: () => EuiGrowlService,
|
|
196
|
-
EuiLoaderService: () => EuiLoaderService,
|
|
197
|
-
EuiPermissionService: () => EuiPermissionService,
|
|
198
|
-
EuiTimezoneService: () => EuiTimezoneService,
|
|
199
|
-
GLOBAL_CONFIG_TOKEN: () => GLOBAL_CONFIG_TOKEN,
|
|
200
|
-
GlobalErrorHandler: () => GlobalErrorHandler,
|
|
201
|
-
GrowlHttpErrorCallbackFn: () => GrowlHttpErrorCallbackFn,
|
|
202
|
-
HTTP_ERROR_HANDLER_CONFIG_TOKEN: () => HTTP_ERROR_HANDLER_CONFIG_TOKEN,
|
|
203
|
-
HttpErrorHandlerInterceptor: () => HttpErrorHandlerInterceptor,
|
|
204
|
-
I18nLoader: () => I18nLoader,
|
|
205
|
-
I18nResourceImpl: () => I18nResourceImpl,
|
|
206
|
-
I18nService: () => I18nService,
|
|
207
|
-
InitStoreAction: () => InitStoreAction,
|
|
208
|
-
LANG_PARAM_KEY: () => LANG_PARAM_KEY,
|
|
209
|
-
LOCALE_ID_MAPPER: () => LOCALE_ID_MAPPER,
|
|
210
|
-
LOCAL_FORAGE_SERVICE_CONFIG_TOKEN: () => LOCAL_FORAGE_SERVICE_CONFIG_TOKEN,
|
|
211
|
-
LOG_APPENDERS_TOKEN: () => LOG_APPENDERS_TOKEN,
|
|
212
|
-
LOG_LEVEL_TOKEN: () => LOG_LEVEL_TOKEN,
|
|
213
|
-
LocalForageService: () => LocalForageService,
|
|
214
|
-
LocalStorageService: () => LocalStorageService,
|
|
215
|
-
LocaleService: () => LocaleService,
|
|
216
|
-
LocaleServiceMock: () => LocaleServiceMock,
|
|
217
|
-
LogHttpErrorCallbackFn: () => LogHttpErrorCallbackFn,
|
|
218
|
-
LogModule: () => LogModule,
|
|
219
|
-
LogService: () => LogService,
|
|
220
|
-
LogServiceMock: () => LogServiceMock,
|
|
221
|
-
MODULE_CONFIG_TOKEN: () => MODULE_CONFIG_TOKEN,
|
|
222
|
-
MODULE_NAME_TOKEN: () => MODULE_NAME_TOKEN,
|
|
223
|
-
ROOT_LOG_CONFIG_TOKEN: () => ROOT_LOG_CONFIG_TOKEN,
|
|
224
|
-
RemoveApiQueueItemAction: () => RemoveApiQueueItemAction,
|
|
225
|
-
SHOW_CONNECTION_STATUS_TOKEN: () => SHOW_CONNECTION_STATUS_TOKEN,
|
|
226
|
-
SessionStorageService: () => SessionStorageService,
|
|
227
|
-
Status: () => Status,
|
|
228
|
-
StorageService: () => StorageService,
|
|
229
|
-
StorageServiceMock: () => StorageServiceMock,
|
|
230
|
-
StoreService: () => StoreService,
|
|
231
|
-
StoreServiceMock: () => StoreServiceMock,
|
|
232
|
-
UX_ERROR_MAPPING_HANDLER_TOKEN: () => UX_ERROR_MAPPING_HANDLER_TOKEN,
|
|
233
|
-
UpdateAppConnectionAction: () => UpdateAppConnectionAction,
|
|
234
|
-
UpdateAppStatusAction: () => UpdateAppStatusAction,
|
|
235
|
-
UpdateAppVersionAction: () => UpdateAppVersionAction,
|
|
236
|
-
UpdateCurrentModuleAction: () => UpdateCurrentModuleAction,
|
|
237
|
-
UpdateI18nStateAction: () => UpdateI18nStateAction,
|
|
238
|
-
UpdateLocaleStateAction: () => UpdateLocaleStateAction,
|
|
239
|
-
UpdateNotificationsListAction: () => UpdateNotificationsListAction,
|
|
240
|
-
UpdateUserDashboardAction: () => UpdateUserDashboardAction,
|
|
241
|
-
UpdateUserDetailsAction: () => UpdateUserDetailsAction,
|
|
242
|
-
UpdateUserPreferencesAction: () => UpdateUserPreferencesAction,
|
|
243
|
-
UpdateUserRightsAction: () => UpdateUserRightsAction,
|
|
244
|
-
UpdateUserStateAction: () => UpdateUserStateAction,
|
|
245
|
-
UserService: () => UserService,
|
|
246
|
-
UserServiceMock: () => UserServiceMock,
|
|
247
|
-
UxRequestErrorModelInterceptor: () => UxRequestErrorModelInterceptor,
|
|
248
|
-
closestMatchingParent: () => closestMatchingParent,
|
|
249
|
-
consumeEvent: () => consumeEvent,
|
|
250
|
-
corI18nReducers: () => corI18nReducers,
|
|
251
|
-
coreAppReducers: () => coreAppReducers,
|
|
252
|
-
coreLocaleReducers: () => coreLocaleReducers,
|
|
253
|
-
coreNotificationsReducers: () => coreNotificationsReducers,
|
|
254
|
-
coreUserReducers: () => coreUserReducers,
|
|
255
|
-
createEuiCoreRootGuard: () => createEuiCoreRootGuard,
|
|
256
|
-
diffDays: () => diffDays,
|
|
257
|
-
diffDaysFromToday: () => diffDaysFromToday,
|
|
258
|
-
errorCodes: () => errorCodes,
|
|
259
|
-
euiCoreRootGuardClass: () => euiCoreRootGuardClass,
|
|
260
|
-
formatNumber: () => formatNumber,
|
|
261
|
-
getGlobalConfig: () => getGlobalConfig,
|
|
262
|
-
getHttpErrorHandlingConfig: () => getHttpErrorHandlingConfig,
|
|
263
|
-
getModuleConfig: () => getModuleConfig,
|
|
264
|
-
getRootLogConfig: () => getRootLogConfig,
|
|
265
|
-
getShowConnectionStatus: () => getShowConnectionStatus,
|
|
266
|
-
getViewElement: () => getViewElement,
|
|
267
|
-
handleError: () => handleError,
|
|
268
|
-
isDefined: () => isDefined,
|
|
269
|
-
loadEuiDynamicEnvironmentConfig: () => loadEuiDynamicEnvironmentConfig,
|
|
270
|
-
loadState: () => loadState,
|
|
271
|
-
localForage: () => localForage,
|
|
272
|
-
localStorageSync: () => localStorageSync,
|
|
273
|
-
markControlsTouched: () => markControlsTouched,
|
|
274
|
-
markFormGroupTouched: () => markFormGroupTouched,
|
|
275
|
-
mergeAppHandlerConfigToAppConfig: () => mergeAppHandlerConfigToAppConfig,
|
|
276
|
-
mergeAppJsonConfigToAppConfig: () => mergeAppJsonConfigToAppConfig,
|
|
277
|
-
offset: () => offset,
|
|
278
|
-
parentOffsetEl: () => parentOffsetEl,
|
|
279
|
-
position: () => position,
|
|
280
|
-
preInitApp: () => preInitApp,
|
|
281
|
-
prepareEuiAppConfigToken: () => prepareEuiAppConfigToken,
|
|
282
|
-
reducers: () => coreReducers,
|
|
283
|
-
sessionStorageSync: () => sessionStorageSync,
|
|
284
|
-
translateConfig: () => translateConfig,
|
|
285
|
-
uniqueId: () => uniqueId,
|
|
286
|
-
validateEmail: () => validateEmail
|
|
287
|
-
});
|
|
288
|
-
|
|
289
1
|
// lib/services/config/defaults.mjs
|
|
290
2
|
import { LogLevel, ConsoleAppender } from "@eui/base";
|
|
291
3
|
var DEFAULT_LOG_CONFIG = {
|
|
@@ -387,22 +99,22 @@ function getRootLogConfig(appConfig) {
|
|
|
387
99
|
}
|
|
388
100
|
function prepareEuiAppConfigToken(euiConfig) {
|
|
389
101
|
const environment = euiConfig && euiConfig.environment;
|
|
390
|
-
const
|
|
102
|
+
const merge = environment.envDynamicConfig && environment.envDynamicConfig.merge && Array.isArray(environment.envDynamicConfig.merge) ? environment.envDynamicConfig.merge : [];
|
|
391
103
|
const isDeepMerge = environment.envDynamicConfig && environment.envDynamicConfig.deepMerge ? environment.envDynamicConfig.deepMerge : false;
|
|
392
104
|
const envAppJsonConfig = environment && environment.loadedEnvDynamicConfig;
|
|
393
105
|
const initialAppConfig = euiConfig && euiConfig.appConfig;
|
|
394
106
|
const envAppHandlersConfig = environment && environment.envAppHandlersConfig;
|
|
395
107
|
const envHandlersMergedAppConfig = mergeAppHandlerConfigToAppConfig(initialAppConfig, envAppHandlersConfig);
|
|
396
|
-
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig,
|
|
108
|
+
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig, merge, isDeepMerge);
|
|
397
109
|
return finalConfig;
|
|
398
110
|
}
|
|
399
111
|
function mergeAppHandlerConfigToAppConfig(euiAppConfig, envAppHandler) {
|
|
400
112
|
return Object.assign({}, euiAppConfig, envAppHandler);
|
|
401
113
|
}
|
|
402
|
-
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig,
|
|
114
|
+
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge, isDeepMerge) {
|
|
403
115
|
const deepMerged = {};
|
|
404
|
-
if (
|
|
405
|
-
|
|
116
|
+
if (merge && merge.length > 0) {
|
|
117
|
+
merge.forEach((key) => {
|
|
406
118
|
if (envAppJsonConfig != null && envAppJsonConfig[key] && typeof envAppJsonConfig[key] === "object" && euiAppConfig != null && euiAppConfig[key] && typeof euiAppConfig[key] === "object") {
|
|
407
119
|
if (isDeepMerge) {
|
|
408
120
|
deepMerged[key] = {};
|
|
@@ -576,134 +288,6 @@ var UpdateLocaleStateAction = class {
|
|
|
576
288
|
}
|
|
577
289
|
};
|
|
578
290
|
|
|
579
|
-
// lib/services/growl/eui-growl.service.mjs
|
|
580
|
-
import { Injectable } from "@angular/core";
|
|
581
|
-
import * as i0 from "@angular/core";
|
|
582
|
-
var EuiGrowlService = class _EuiGrowlService {
|
|
583
|
-
constructor() {
|
|
584
|
-
this.growlMessages = [];
|
|
585
|
-
this.isGrowlSticky = false;
|
|
586
|
-
this.isCloseAllSticky = false;
|
|
587
|
-
this.growlLife = 3e3;
|
|
588
|
-
this.growlPosition = "bottom-right";
|
|
589
|
-
this.growlCallback = null;
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* displays a growl UxMessage item, isSticky
|
|
593
|
-
*/
|
|
594
|
-
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
595
|
-
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
596
|
-
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
597
|
-
} else {
|
|
598
|
-
if (isMultiple === void 0 || !isMultiple) {
|
|
599
|
-
this.growlMessages = [];
|
|
600
|
-
}
|
|
601
|
-
this.growlMessages = this.growlMessages.concat(msg);
|
|
602
|
-
msg.life = life || msg.life;
|
|
603
|
-
msg.sticky = isSticky || msg.sticky;
|
|
604
|
-
if (life === void 0 || isNaN(life)) {
|
|
605
|
-
if (msg.severity === "danger") {
|
|
606
|
-
isSticky = true;
|
|
607
|
-
} else {
|
|
608
|
-
this.growlLife = 3e3;
|
|
609
|
-
}
|
|
610
|
-
} else {
|
|
611
|
-
this.growlLife = life;
|
|
612
|
-
}
|
|
613
|
-
if (isSticky) {
|
|
614
|
-
this.isGrowlSticky = isSticky;
|
|
615
|
-
} else {
|
|
616
|
-
this.isGrowlSticky = false;
|
|
617
|
-
}
|
|
618
|
-
if (position2) {
|
|
619
|
-
this.growlPosition = position2;
|
|
620
|
-
}
|
|
621
|
-
if (callback) {
|
|
622
|
-
this.growlCallback = callback;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
clearGrowl() {
|
|
627
|
-
this.growlMessages = [];
|
|
628
|
-
}
|
|
629
|
-
growlSuccess(msg, position2) {
|
|
630
|
-
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
631
|
-
}
|
|
632
|
-
growlError(msg, position2) {
|
|
633
|
-
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
634
|
-
}
|
|
635
|
-
growlWarning(msg, position2) {
|
|
636
|
-
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
637
|
-
}
|
|
638
|
-
growlInfo(msg, position2) {
|
|
639
|
-
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
640
|
-
}
|
|
641
|
-
static {
|
|
642
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: _EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
643
|
-
}
|
|
644
|
-
static {
|
|
645
|
-
this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: _EuiGrowlService, providedIn: "root" });
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
649
|
-
type: Injectable,
|
|
650
|
-
args: [{
|
|
651
|
-
providedIn: "root"
|
|
652
|
-
}]
|
|
653
|
-
}] });
|
|
654
|
-
|
|
655
|
-
// lib/services/store/effects/app.effects.mjs
|
|
656
|
-
import { Injectable as Injectable2, Inject } from "@angular/core";
|
|
657
|
-
import { ofType, createEffect } from "@ngrx/effects";
|
|
658
|
-
import { fromEvent, merge } from "rxjs";
|
|
659
|
-
import { map, mapTo, mergeMap, tap } from "rxjs/operators";
|
|
660
|
-
import * as i02 from "@angular/core";
|
|
661
|
-
import * as i1 from "@ngrx/effects";
|
|
662
|
-
import * as i2 from "@ngx-translate/core";
|
|
663
|
-
var CoreAppEffects = class _CoreAppEffects {
|
|
664
|
-
constructor(actions, showConnectionStatus, translateService, asService) {
|
|
665
|
-
this.actions = actions;
|
|
666
|
-
this.showConnectionStatus = showConnectionStatus;
|
|
667
|
-
this.translateService = translateService;
|
|
668
|
-
this.asService = asService;
|
|
669
|
-
this.getAppConnectionInformation = createEffect(() => merge(fromEvent(window, "online").pipe(mapTo(true)), fromEvent(window, "offline").pipe(mapTo(false))).pipe(map((connected) => new UpdateAppConnectionAction(connected))));
|
|
670
|
-
this.activatedRoute = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.ACTIVATED_ROUTE), map((action) => action.payload), mergeMap((route) => {
|
|
671
|
-
const module = route.snapshot.data["module"] || "undefined";
|
|
672
|
-
return [new UpdateCurrentModuleAction(module)];
|
|
673
|
-
})));
|
|
674
|
-
this.updateAppConnection = createEffect(() => this.actions.pipe(ofType(CoreAppActionTypes.UPDATE_APP_CONNECTION), map((action) => action.payload), tap((connected) => {
|
|
675
|
-
const isFeatureEnabled = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.enabled : this.showConnectionStatus;
|
|
676
|
-
const lifespan = typeof this.showConnectionStatus !== "boolean" ? this.showConnectionStatus?.messageBox?.lifespan || 0 : 0;
|
|
677
|
-
if (isFeatureEnabled) {
|
|
678
|
-
if (connected) {
|
|
679
|
-
this.translateService.get("eui.CONNECTED").subscribe((translation) => {
|
|
680
|
-
this.asService.growl({ severity: "success", summary: "MESSAGE", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
681
|
-
});
|
|
682
|
-
} else {
|
|
683
|
-
this.translateService.get("eui.NOTCONNECTED").subscribe((translation) => {
|
|
684
|
-
this.asService.growl({ severity: "danger", summary: "ERROR", detail: translation, life: lifespan }, lifespan < 1, false);
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
})), { dispatch: false });
|
|
689
|
-
}
|
|
690
|
-
static {
|
|
691
|
-
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i02, type: _CoreAppEffects, deps: [{ token: i1.Actions }, { token: SHOW_CONNECTION_STATUS_TOKEN }, { token: i2.TranslateService }, { token: EuiGrowlService }], target: i02.ɵɵFactoryTarget.Injectable });
|
|
692
|
-
}
|
|
693
|
-
static {
|
|
694
|
-
this.ɵprov = i02.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i02, type: _CoreAppEffects });
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i02, type: CoreAppEffects, decorators: [{
|
|
698
|
-
type: Injectable2
|
|
699
|
-
}], ctorParameters: () => [{ type: i1.Actions }, { type: void 0, decorators: [{
|
|
700
|
-
type: Inject,
|
|
701
|
-
args: [SHOW_CONNECTION_STATUS_TOKEN]
|
|
702
|
-
}] }, { type: i2.TranslateService }, { type: EuiGrowlService }] });
|
|
703
|
-
|
|
704
|
-
// lib/services/store/effects/index.mjs
|
|
705
|
-
var CoreModuleEffects = [CoreAppEffects];
|
|
706
|
-
|
|
707
291
|
// lib/services/store/reducers/app.reducers.mjs
|
|
708
292
|
import { initialAppState } from "@eui/base";
|
|
709
293
|
var updateAppVersion = (state, action) => ({ ...state, version: action.payload });
|
|
@@ -901,10 +485,10 @@ var cb = (reducer, storage) => (state, action) => {
|
|
|
901
485
|
};
|
|
902
486
|
|
|
903
487
|
// lib/services/log/log.service.mjs
|
|
904
|
-
import { Inject
|
|
488
|
+
import { Inject, Injectable, InjectionToken as InjectionToken2 } from "@angular/core";
|
|
905
489
|
import { Logger } from "@eui/base";
|
|
906
|
-
import * as
|
|
907
|
-
import * as
|
|
490
|
+
import * as i0 from "@angular/core";
|
|
491
|
+
import * as i1 from "@eui/base";
|
|
908
492
|
var BASE_LOGGER_NAME_TOKEN = new InjectionToken2("BASE_LOGGER_NAME");
|
|
909
493
|
var LOG_LEVEL_TOKEN = new InjectionToken2("LOG_LEVEL");
|
|
910
494
|
var LOG_APPENDERS_TOKEN = new InjectionToken2("LOG_APPENDERS");
|
|
@@ -931,22 +515,22 @@ var LogService = class _LogService extends Logger {
|
|
|
931
515
|
return logger;
|
|
932
516
|
}
|
|
933
517
|
static {
|
|
934
|
-
this.ɵfac =
|
|
518
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: _LogService, deps: [{ token: BASE_LOGGER_NAME_TOKEN }, { token: LOG_LEVEL_TOKEN }, { token: LOG_APPENDERS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
935
519
|
}
|
|
936
520
|
static {
|
|
937
|
-
this.ɵprov =
|
|
521
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: _LogService });
|
|
938
522
|
}
|
|
939
523
|
};
|
|
940
|
-
|
|
941
|
-
type:
|
|
524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: LogService, decorators: [{
|
|
525
|
+
type: Injectable
|
|
942
526
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
943
|
-
type:
|
|
527
|
+
type: Inject,
|
|
944
528
|
args: [BASE_LOGGER_NAME_TOKEN]
|
|
945
|
-
}] }, { type:
|
|
946
|
-
type:
|
|
529
|
+
}] }, { type: i1.LogLevel, decorators: [{
|
|
530
|
+
type: Inject,
|
|
947
531
|
args: [LOG_LEVEL_TOKEN]
|
|
948
532
|
}] }, { type: void 0, decorators: [{
|
|
949
|
-
type:
|
|
533
|
+
type: Inject,
|
|
950
534
|
args: [LOG_APPENDERS_TOKEN]
|
|
951
535
|
}] }] });
|
|
952
536
|
|
|
@@ -990,7 +574,7 @@ function euiLogServiceFactory(injector, rootBaseLoggerName, rootConfig, childBas
|
|
|
990
574
|
|
|
991
575
|
// lib/services/log/log.module.mjs
|
|
992
576
|
import { InjectionToken as InjectionToken3, Injector, NgModule } from "@angular/core";
|
|
993
|
-
import * as
|
|
577
|
+
import * as i02 from "@angular/core";
|
|
994
578
|
var LOG_MODULE_CONFIG_TOKEN = new InjectionToken3("LOG_CONFIG");
|
|
995
579
|
var LogModule = class _LogModule {
|
|
996
580
|
/** method called in your root module to provide the LogService */
|
|
@@ -1014,25 +598,25 @@ var LogModule = class _LogModule {
|
|
|
1014
598
|
};
|
|
1015
599
|
}
|
|
1016
600
|
static {
|
|
1017
|
-
this.ɵfac =
|
|
601
|
+
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: _LogModule, deps: [], target: i02.ɵɵFactoryTarget.NgModule });
|
|
1018
602
|
}
|
|
1019
603
|
static {
|
|
1020
|
-
this.ɵmod =
|
|
604
|
+
this.ɵmod = i02.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i02, type: _LogModule });
|
|
1021
605
|
}
|
|
1022
606
|
static {
|
|
1023
|
-
this.ɵinj =
|
|
607
|
+
this.ɵinj = i02.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: _LogModule });
|
|
1024
608
|
}
|
|
1025
609
|
};
|
|
1026
|
-
|
|
610
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: LogModule, decorators: [{
|
|
1027
611
|
type: NgModule
|
|
1028
612
|
}] });
|
|
1029
613
|
|
|
1030
614
|
// lib/services/store/store.service.mjs
|
|
1031
|
-
import { Injectable as
|
|
615
|
+
import { Injectable as Injectable2, Optional } from "@angular/core";
|
|
1032
616
|
import { throwError } from "rxjs";
|
|
1033
617
|
import { debounceTime, distinctUntilChanged } from "rxjs/operators";
|
|
1034
|
-
import * as
|
|
1035
|
-
import * as
|
|
618
|
+
import * as i03 from "@angular/core";
|
|
619
|
+
import * as i12 from "@ngrx/store";
|
|
1036
620
|
var BrowserStorageType;
|
|
1037
621
|
(function(BrowserStorageType2) {
|
|
1038
622
|
BrowserStorageType2[BrowserStorageType2["local"] = 0] = "local";
|
|
@@ -1124,18 +708,18 @@ var StoreService = class _StoreService {
|
|
|
1124
708
|
}
|
|
1125
709
|
}
|
|
1126
710
|
static {
|
|
1127
|
-
this.ɵfac =
|
|
711
|
+
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: _StoreService, deps: [{ token: i12.Store, optional: true }, { token: LogService, optional: true }], target: i03.ɵɵFactoryTarget.Injectable });
|
|
1128
712
|
}
|
|
1129
713
|
static {
|
|
1130
|
-
this.ɵprov =
|
|
714
|
+
this.ɵprov = i03.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: _StoreService, providedIn: "root" });
|
|
1131
715
|
}
|
|
1132
716
|
};
|
|
1133
|
-
|
|
1134
|
-
type:
|
|
717
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: StoreService, decorators: [{
|
|
718
|
+
type: Injectable2,
|
|
1135
719
|
args: [{
|
|
1136
720
|
providedIn: "root"
|
|
1137
721
|
}]
|
|
1138
|
-
}], ctorParameters: () => [{ type:
|
|
722
|
+
}], ctorParameters: () => [{ type: i12.Store, decorators: [{
|
|
1139
723
|
type: Optional
|
|
1140
724
|
}] }, { type: LogService, decorators: [{
|
|
1141
725
|
type: Optional
|
|
@@ -1143,8 +727,8 @@ i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1",
|
|
|
1143
727
|
|
|
1144
728
|
// lib/services/store/store.service.mock.mjs
|
|
1145
729
|
import { of } from "rxjs";
|
|
1146
|
-
import { Injectable as
|
|
1147
|
-
import * as
|
|
730
|
+
import { Injectable as Injectable3 } from "@angular/core";
|
|
731
|
+
import * as i04 from "@angular/core";
|
|
1148
732
|
var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
1149
733
|
constructor() {
|
|
1150
734
|
super(null, null);
|
|
@@ -1161,14 +745,14 @@ var StoreServiceMock = class _StoreServiceMock extends StoreService {
|
|
|
1161
745
|
return of({});
|
|
1162
746
|
}
|
|
1163
747
|
static {
|
|
1164
|
-
this.ɵfac =
|
|
748
|
+
this.ɵfac = i04.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i04, type: _StoreServiceMock, deps: [], target: i04.ɵɵFactoryTarget.Injectable });
|
|
1165
749
|
}
|
|
1166
750
|
static {
|
|
1167
|
-
this.ɵprov =
|
|
751
|
+
this.ɵprov = i04.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i04, type: _StoreServiceMock });
|
|
1168
752
|
}
|
|
1169
753
|
};
|
|
1170
|
-
|
|
1171
|
-
type:
|
|
754
|
+
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i04, type: StoreServiceMock, decorators: [{
|
|
755
|
+
type: Injectable3
|
|
1172
756
|
}], ctorParameters: () => [] });
|
|
1173
757
|
|
|
1174
758
|
// lib/services/app/eui-init-app.mjs
|
|
@@ -1234,8 +818,8 @@ function getCoreChildProviders(moduleName) {
|
|
|
1234
818
|
}
|
|
1235
819
|
|
|
1236
820
|
// lib/eui-core.module.mjs
|
|
1237
|
-
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as
|
|
1238
|
-
import * as
|
|
821
|
+
import { NgModule as NgModule2, Optional as Optional2, SkipSelf, InjectionToken as InjectionToken4, Inject as Inject2 } from "@angular/core";
|
|
822
|
+
import * as i05 from "@angular/core";
|
|
1239
823
|
var CORE_ROOT_GUARD = new InjectionToken4("Internal Theme ForRoot Guard");
|
|
1240
824
|
var CoreModule = class _CoreModule {
|
|
1241
825
|
/**
|
|
@@ -1274,16 +858,16 @@ var CoreModule = class _CoreModule {
|
|
|
1274
858
|
}
|
|
1275
859
|
}
|
|
1276
860
|
static {
|
|
1277
|
-
this.ɵfac =
|
|
861
|
+
this.ɵfac = i05.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i05, type: _CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: _CoreModule, optional: true, skipSelf: true }, { token: i05.Injector }], target: i05.ɵɵFactoryTarget.NgModule });
|
|
1278
862
|
}
|
|
1279
863
|
static {
|
|
1280
|
-
this.ɵmod =
|
|
864
|
+
this.ɵmod = i05.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i05, type: _CoreModule });
|
|
1281
865
|
}
|
|
1282
866
|
static {
|
|
1283
|
-
this.ɵinj =
|
|
867
|
+
this.ɵinj = i05.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i05, type: _CoreModule });
|
|
1284
868
|
}
|
|
1285
869
|
};
|
|
1286
|
-
|
|
870
|
+
i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i05, type: CoreModule, decorators: [{
|
|
1287
871
|
type: NgModule2,
|
|
1288
872
|
args: [{
|
|
1289
873
|
imports: [
|
|
@@ -1293,13 +877,13 @@ i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1",
|
|
|
1293
877
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1294
878
|
type: Optional2
|
|
1295
879
|
}, {
|
|
1296
|
-
type:
|
|
880
|
+
type: Inject2,
|
|
1297
881
|
args: [CORE_ROOT_GUARD]
|
|
1298
882
|
}] }, { type: CoreModule, decorators: [{
|
|
1299
883
|
type: Optional2
|
|
1300
884
|
}, {
|
|
1301
885
|
type: SkipSelf
|
|
1302
|
-
}] }, { type:
|
|
886
|
+
}] }, { type: i05.Injector }] });
|
|
1303
887
|
var createEuiCoreRootGuard = (core) => {
|
|
1304
888
|
if (core) {
|
|
1305
889
|
throw new TypeError("CoreModule.forRoot() called twice. Feature modules should use ThemeModule.forChild() instead.");
|
|
@@ -1378,8 +962,8 @@ var EuiError = class extends ErrorSubClass {
|
|
|
1378
962
|
};
|
|
1379
963
|
|
|
1380
964
|
// lib/services/errors/global-error-handler.mjs
|
|
1381
|
-
import { ErrorHandler, Injectable as
|
|
1382
|
-
import * as
|
|
965
|
+
import { ErrorHandler, Injectable as Injectable4 } from "@angular/core";
|
|
966
|
+
import * as i06 from "@angular/core";
|
|
1383
967
|
var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
1384
968
|
constructor(logService) {
|
|
1385
969
|
super();
|
|
@@ -1392,25 +976,25 @@ var GlobalErrorHandler = class _GlobalErrorHandler extends ErrorHandler {
|
|
|
1392
976
|
super.handleError(error);
|
|
1393
977
|
}
|
|
1394
978
|
static {
|
|
1395
|
-
this.ɵfac =
|
|
979
|
+
this.ɵfac = i06.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i06, type: _GlobalErrorHandler, deps: [{ token: LogService }], target: i06.ɵɵFactoryTarget.Injectable });
|
|
1396
980
|
}
|
|
1397
981
|
static {
|
|
1398
|
-
this.ɵprov =
|
|
982
|
+
this.ɵprov = i06.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i06, type: _GlobalErrorHandler, providedIn: "root" });
|
|
1399
983
|
}
|
|
1400
984
|
};
|
|
1401
|
-
|
|
1402
|
-
type:
|
|
985
|
+
i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i06, type: GlobalErrorHandler, decorators: [{
|
|
986
|
+
type: Injectable4,
|
|
1403
987
|
args: [{
|
|
1404
988
|
providedIn: "root"
|
|
1405
989
|
}]
|
|
1406
990
|
}], ctorParameters: () => [{ type: LogService }] });
|
|
1407
991
|
|
|
1408
992
|
// lib/services/errors/http-error-handler.interceptor.mjs
|
|
1409
|
-
import { Inject as
|
|
993
|
+
import { Inject as Inject3, Injectable as Injectable5 } from "@angular/core";
|
|
1410
994
|
import { HttpErrorResponse } from "@angular/common/http";
|
|
1411
|
-
import { tap
|
|
1412
|
-
import * as
|
|
1413
|
-
import * as
|
|
995
|
+
import { tap } from "rxjs/operators";
|
|
996
|
+
import * as i07 from "@angular/core";
|
|
997
|
+
import * as i13 from "@angular/router";
|
|
1414
998
|
var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
1415
999
|
constructor(config = DEFAULT_HTTP_ERROR_HANDLER_CONFIG, injector, router) {
|
|
1416
1000
|
this.config = config;
|
|
@@ -1420,7 +1004,7 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1420
1004
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1421
1005
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1422
1006
|
intercept(req, next) {
|
|
1423
|
-
return next.handle(req).pipe(
|
|
1007
|
+
return next.handle(req).pipe(tap({
|
|
1424
1008
|
next: () => {
|
|
1425
1009
|
},
|
|
1426
1010
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
@@ -1452,18 +1036,94 @@ var HttpErrorHandlerInterceptor = class _HttpErrorHandlerInterceptor {
|
|
|
1452
1036
|
return routes.length > 0 ? routes[0] : null;
|
|
1453
1037
|
}
|
|
1454
1038
|
static {
|
|
1455
|
-
this.ɵfac =
|
|
1039
|
+
this.ɵfac = i07.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i07, type: _HttpErrorHandlerInterceptor, deps: [{ token: HTTP_ERROR_HANDLER_CONFIG_TOKEN }, { token: i07.Injector }, { token: i13.Router }], target: i07.ɵɵFactoryTarget.Injectable });
|
|
1456
1040
|
}
|
|
1457
1041
|
static {
|
|
1458
|
-
this.ɵprov =
|
|
1042
|
+
this.ɵprov = i07.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i07, type: _HttpErrorHandlerInterceptor });
|
|
1459
1043
|
}
|
|
1460
1044
|
};
|
|
1461
|
-
|
|
1462
|
-
type:
|
|
1045
|
+
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i07, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1046
|
+
type: Injectable5
|
|
1463
1047
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
1464
|
-
type:
|
|
1048
|
+
type: Inject3,
|
|
1465
1049
|
args: [HTTP_ERROR_HANDLER_CONFIG_TOKEN]
|
|
1466
|
-
}] }, { type:
|
|
1050
|
+
}] }, { type: i07.Injector }, { type: i13.Router }] });
|
|
1051
|
+
|
|
1052
|
+
// lib/services/growl/eui-growl.service.mjs
|
|
1053
|
+
import { Injectable as Injectable6 } from "@angular/core";
|
|
1054
|
+
import * as i08 from "@angular/core";
|
|
1055
|
+
var EuiGrowlService = class _EuiGrowlService {
|
|
1056
|
+
constructor() {
|
|
1057
|
+
this.growlMessages = [];
|
|
1058
|
+
this.isGrowlSticky = false;
|
|
1059
|
+
this.isCloseAllSticky = false;
|
|
1060
|
+
this.growlLife = 3e3;
|
|
1061
|
+
this.growlPosition = "bottom-right";
|
|
1062
|
+
this.growlCallback = null;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* displays a growl UxMessage item, isSticky
|
|
1066
|
+
*/
|
|
1067
|
+
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
1068
|
+
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
1069
|
+
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
1070
|
+
} else {
|
|
1071
|
+
if (isMultiple === void 0 || !isMultiple) {
|
|
1072
|
+
this.growlMessages = [];
|
|
1073
|
+
}
|
|
1074
|
+
this.growlMessages = this.growlMessages.concat(msg);
|
|
1075
|
+
msg.life = life || msg.life;
|
|
1076
|
+
msg.sticky = isSticky || msg.sticky;
|
|
1077
|
+
if (life === void 0 || isNaN(life)) {
|
|
1078
|
+
if (msg.severity === "danger") {
|
|
1079
|
+
isSticky = true;
|
|
1080
|
+
} else {
|
|
1081
|
+
this.growlLife = 3e3;
|
|
1082
|
+
}
|
|
1083
|
+
} else {
|
|
1084
|
+
this.growlLife = life;
|
|
1085
|
+
}
|
|
1086
|
+
if (isSticky) {
|
|
1087
|
+
this.isGrowlSticky = isSticky;
|
|
1088
|
+
} else {
|
|
1089
|
+
this.isGrowlSticky = false;
|
|
1090
|
+
}
|
|
1091
|
+
if (position2) {
|
|
1092
|
+
this.growlPosition = position2;
|
|
1093
|
+
}
|
|
1094
|
+
if (callback) {
|
|
1095
|
+
this.growlCallback = callback;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
clearGrowl() {
|
|
1100
|
+
this.growlMessages = [];
|
|
1101
|
+
}
|
|
1102
|
+
growlSuccess(msg, position2) {
|
|
1103
|
+
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
1104
|
+
}
|
|
1105
|
+
growlError(msg, position2) {
|
|
1106
|
+
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
1107
|
+
}
|
|
1108
|
+
growlWarning(msg, position2) {
|
|
1109
|
+
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
1110
|
+
}
|
|
1111
|
+
growlInfo(msg, position2) {
|
|
1112
|
+
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
1113
|
+
}
|
|
1114
|
+
static {
|
|
1115
|
+
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: _EuiGrowlService, deps: [], target: i08.ɵɵFactoryTarget.Injectable });
|
|
1116
|
+
}
|
|
1117
|
+
static {
|
|
1118
|
+
this.ɵprov = i08.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: _EuiGrowlService, providedIn: "root" });
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i08, type: EuiGrowlService, decorators: [{
|
|
1122
|
+
type: Injectable6,
|
|
1123
|
+
args: [{
|
|
1124
|
+
providedIn: "root"
|
|
1125
|
+
}]
|
|
1126
|
+
}] });
|
|
1467
1127
|
|
|
1468
1128
|
// lib/services/errors/http-error-handler-callback-functions.mjs
|
|
1469
1129
|
function AlertHttpErrorCallbackFn(error) {
|
|
@@ -1482,12 +1142,12 @@ function GrowlHttpErrorCallbackFn(error, injector) {
|
|
|
1482
1142
|
}
|
|
1483
1143
|
|
|
1484
1144
|
// lib/services/queue/api-queue.service.mjs
|
|
1485
|
-
import { Injectable as
|
|
1145
|
+
import { Injectable as Injectable7, Optional as Optional3 } from "@angular/core";
|
|
1486
1146
|
import { of as of2, forkJoin, from } from "rxjs";
|
|
1487
|
-
import { tap as
|
|
1147
|
+
import { tap as tap2, switchMap, take, map, catchError, concatMap } from "rxjs/operators";
|
|
1488
1148
|
import { getApiQueue, getApiQueueItem } from "@eui/base";
|
|
1489
|
-
import * as
|
|
1490
|
-
import * as
|
|
1149
|
+
import * as i09 from "@angular/core";
|
|
1150
|
+
import * as i2 from "@angular/common/http";
|
|
1491
1151
|
var ApiQueueService = class _ApiQueueService {
|
|
1492
1152
|
constructor(store, http, logService) {
|
|
1493
1153
|
this.store = store;
|
|
@@ -1548,7 +1208,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1548
1208
|
* });
|
|
1549
1209
|
*/
|
|
1550
1210
|
getQueue() {
|
|
1551
|
-
return this.store.select(getApiQueue).pipe(take(1),
|
|
1211
|
+
return this.store.select(getApiQueue).pipe(take(1), map((queue) => {
|
|
1552
1212
|
const queueArray = queue && Object.values(queue);
|
|
1553
1213
|
if (!queueArray || queueArray.length < 1) {
|
|
1554
1214
|
this.logger?.warn("No items in the queue exist.");
|
|
@@ -1582,7 +1242,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1582
1242
|
* });
|
|
1583
1243
|
*/
|
|
1584
1244
|
getQueueItem(id) {
|
|
1585
|
-
return this.store.select(getApiQueueItem(id)).pipe(take(1),
|
|
1245
|
+
return this.store.select(getApiQueueItem(id)).pipe(take(1), map((queue) => {
|
|
1586
1246
|
if (!queue) {
|
|
1587
1247
|
this.logger?.warn(`Queue item with id "${id}" does not exist`);
|
|
1588
1248
|
return null;
|
|
@@ -1683,7 +1343,7 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1683
1343
|
// TODO: Refine the return type to be more specific or implement generics, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1684
1344
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1685
1345
|
processAllQueueItems(continueOnError = true) {
|
|
1686
|
-
return this.store.select(getApiQueue).pipe(
|
|
1346
|
+
return this.store.select(getApiQueue).pipe(map((queue) => Object.entries(queue).map(([key, value]) => this.buildHttpRequest(key, value).pipe(catchError((error) => {
|
|
1687
1347
|
this.logger?.error(`Queue Item with id ${key} failed.`, error.message, error.stack);
|
|
1688
1348
|
if (!continueOnError) {
|
|
1689
1349
|
throw error;
|
|
@@ -1765,21 +1425,21 @@ var ApiQueueService = class _ApiQueueService {
|
|
|
1765
1425
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1766
1426
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1767
1427
|
buildHttpRequest(id, item) {
|
|
1768
|
-
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(
|
|
1428
|
+
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap2(() => this.removeQueueItem(id)));
|
|
1769
1429
|
}
|
|
1770
1430
|
static {
|
|
1771
|
-
this.ɵfac =
|
|
1431
|
+
this.ɵfac = i09.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i09, type: _ApiQueueService, deps: [{ token: StoreService }, { token: i2.HttpClient }, { token: LogService, optional: true }], target: i09.ɵɵFactoryTarget.Injectable });
|
|
1772
1432
|
}
|
|
1773
1433
|
static {
|
|
1774
|
-
this.ɵprov =
|
|
1434
|
+
this.ɵprov = i09.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i09, type: _ApiQueueService, providedIn: "root" });
|
|
1775
1435
|
}
|
|
1776
1436
|
};
|
|
1777
|
-
|
|
1778
|
-
type:
|
|
1437
|
+
i09.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i09, type: ApiQueueService, decorators: [{
|
|
1438
|
+
type: Injectable7,
|
|
1779
1439
|
args: [{
|
|
1780
1440
|
providedIn: "root"
|
|
1781
1441
|
}]
|
|
1782
|
-
}], ctorParameters: () => [{ type: StoreService }, { type:
|
|
1442
|
+
}], ctorParameters: () => [{ type: StoreService }, { type: i2.HttpClient }, { type: LogService, decorators: [{
|
|
1783
1443
|
type: Optional3
|
|
1784
1444
|
}] }] });
|
|
1785
1445
|
|
|
@@ -1860,13 +1520,13 @@ var I18nResourceImpl = class {
|
|
|
1860
1520
|
};
|
|
1861
1521
|
|
|
1862
1522
|
// lib/services/i18n/i18n.loader.mjs
|
|
1863
|
-
import { Inject as
|
|
1523
|
+
import { Inject as Inject4, Injectable as Injectable8, Optional as Optional4 } from "@angular/core";
|
|
1864
1524
|
import { TranslateLoader } from "@ngx-translate/core";
|
|
1865
1525
|
import { forkJoin as forkJoin2, of as of4 } from "rxjs";
|
|
1866
|
-
import { catchError as catchError2, map as
|
|
1526
|
+
import { catchError as catchError2, map as map2 } from "rxjs/operators";
|
|
1867
1527
|
import { getI18nLoaderConfig, mergeAll } from "@eui/base";
|
|
1868
|
-
import * as
|
|
1869
|
-
import * as
|
|
1528
|
+
import * as i010 from "@angular/core";
|
|
1529
|
+
import * as i14 from "@angular/common/http";
|
|
1870
1530
|
var I18nLoader = class _I18nLoader {
|
|
1871
1531
|
constructor(http, logService, euiAppConfig) {
|
|
1872
1532
|
this.http = http;
|
|
@@ -1890,7 +1550,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1890
1550
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1891
1551
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1892
1552
|
getTranslation(lang) {
|
|
1893
|
-
return this.loadResources(this.resources, lang).pipe(
|
|
1553
|
+
return this.loadResources(this.resources, lang).pipe(map2((loadedResources) => {
|
|
1894
1554
|
this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
|
|
1895
1555
|
return loadedResources.translations;
|
|
1896
1556
|
}));
|
|
@@ -1925,7 +1585,7 @@ var I18nLoader = class _I18nLoader {
|
|
|
1925
1585
|
loadResources(resources, lang) {
|
|
1926
1586
|
if (Array.isArray(resources) && resources.length > 0) {
|
|
1927
1587
|
const requests = resources.map((resource) => this.loadResource(resource, lang));
|
|
1928
|
-
return forkJoin2(requests).pipe(
|
|
1588
|
+
return forkJoin2(requests).pipe(map2((response) => {
|
|
1929
1589
|
const successResp = [];
|
|
1930
1590
|
const errResp = [];
|
|
1931
1591
|
response.forEach((item) => {
|
|
@@ -1989,10 +1649,10 @@ var I18nLoader = class _I18nLoader {
|
|
|
1989
1649
|
// preprocess the translations using the resource compiler
|
|
1990
1650
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1991
1651
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1992
|
-
|
|
1652
|
+
map2((translations) => resource.compileTranslations(translations, lang)),
|
|
1993
1653
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
1994
1654
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1995
|
-
|
|
1655
|
+
map2((translations) => {
|
|
1996
1656
|
this.logger?.info(`I18n resource loaded from path ${path}`);
|
|
1997
1657
|
return translations;
|
|
1998
1658
|
}),
|
|
@@ -2011,18 +1671,18 @@ var I18nLoader = class _I18nLoader {
|
|
|
2011
1671
|
return void 0;
|
|
2012
1672
|
}
|
|
2013
1673
|
static {
|
|
2014
|
-
this.ɵfac =
|
|
1674
|
+
this.ɵfac = i010.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i010, type: _I18nLoader, deps: [{ token: i14.HttpClient }, { token: LogService, optional: true }, { token: CONFIG_TOKEN }], target: i010.ɵɵFactoryTarget.Injectable });
|
|
2015
1675
|
}
|
|
2016
1676
|
static {
|
|
2017
|
-
this.ɵprov =
|
|
1677
|
+
this.ɵprov = i010.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i010, type: _I18nLoader });
|
|
2018
1678
|
}
|
|
2019
1679
|
};
|
|
2020
|
-
|
|
2021
|
-
type:
|
|
2022
|
-
}], ctorParameters: () => [{ type:
|
|
1680
|
+
i010.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i010, type: I18nLoader, decorators: [{
|
|
1681
|
+
type: Injectable8
|
|
1682
|
+
}], ctorParameters: () => [{ type: i14.HttpClient }, { type: LogService, decorators: [{
|
|
2023
1683
|
type: Optional4
|
|
2024
1684
|
}] }, { type: void 0, decorators: [{
|
|
2025
|
-
type:
|
|
1685
|
+
type: Inject4,
|
|
2026
1686
|
args: [CONFIG_TOKEN]
|
|
2027
1687
|
}] }] });
|
|
2028
1688
|
var translateConfig = {
|
|
@@ -2034,13 +1694,13 @@ var translateConfig = {
|
|
|
2034
1694
|
|
|
2035
1695
|
// lib/services/i18n/i18n.service.mjs
|
|
2036
1696
|
import { DOCUMENT } from "@angular/common";
|
|
2037
|
-
import { Inject as
|
|
1697
|
+
import { Inject as Inject5, Injectable as Injectable9, Optional as Optional5 } from "@angular/core";
|
|
2038
1698
|
import { BehaviorSubject, forkJoin as forkJoin3, of as of5 } from "rxjs";
|
|
2039
|
-
import { catchError as catchError3, filter, map as
|
|
1699
|
+
import { catchError as catchError3, filter, map as map3, take as take2, tap as tap3, switchMap as switchMap2 } from "rxjs/operators";
|
|
2040
1700
|
import { EuiLazyService, getI18nServiceConfigFromBase, getI18nState, getActiveLang, getLastAddedModule, getBrowserDefaultLanguage, EuiEuLanguages } from "@eui/base";
|
|
2041
1701
|
import { createSelector } from "@ngrx/store";
|
|
2042
|
-
import * as
|
|
2043
|
-
import * as
|
|
1702
|
+
import * as i011 from "@angular/core";
|
|
1703
|
+
import * as i15 from "@ngx-translate/core";
|
|
2044
1704
|
var I18nService = class _I18nService extends EuiLazyService {
|
|
2045
1705
|
constructor(baseGlobalConfig, translateService, logService, store, document2) {
|
|
2046
1706
|
super({ activeLang: "en" });
|
|
@@ -2086,7 +1746,7 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2086
1746
|
}
|
|
2087
1747
|
onReady(moduleName) {
|
|
2088
1748
|
return this.onModuleLoad.pipe(
|
|
2089
|
-
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(
|
|
1749
|
+
switchMap2((evt) => moduleName ? of5(evt) : this.store.select(getLastAddedModule).pipe(tap3((m) => moduleName = m), map3(() => evt))),
|
|
2090
1750
|
// emit only if event emitted matches the module name and is ready
|
|
2091
1751
|
filter((evt) => evt.ready === true && evt.name === moduleName),
|
|
2092
1752
|
// make sure that observable completes
|
|
@@ -2115,16 +1775,16 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2115
1775
|
const langSubscription = [];
|
|
2116
1776
|
const i18nLoader = loader;
|
|
2117
1777
|
const resources = i18nLoader.addResources(config);
|
|
2118
|
-
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1),
|
|
1778
|
+
langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take2(1), tap3((loadedResources) => {
|
|
2119
1779
|
this.translateService.setTranslation(this.translateService.currentLang, loadedResources.translations, true);
|
|
2120
1780
|
})));
|
|
2121
1781
|
const defaultLang = this.config.defaultLanguage || this.translateService.defaultLang;
|
|
2122
1782
|
if (this.translateService.currentLang !== defaultLang) {
|
|
2123
|
-
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1),
|
|
1783
|
+
langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take2(1), tap3((loadedResources) => {
|
|
2124
1784
|
this.translateService.setTranslation(defaultLang, loadedResources.translations, true);
|
|
2125
1785
|
})));
|
|
2126
1786
|
}
|
|
2127
|
-
return forkJoin3(langSubscription).pipe(
|
|
1787
|
+
return forkJoin3(langSubscription).pipe(map3((loadedResourcesArr) => !loadedResourcesArr[0].hasError ? { success: true } : { success: false, error: loadedResourcesArr[0].errors }), tap3(() => {
|
|
2128
1788
|
this.onModuleLoad.next({ ready: true, name: moduleName });
|
|
2129
1789
|
}), catchError3((error) => {
|
|
2130
1790
|
this.onModuleLoad.next({ ready: true, name: moduleName, error });
|
|
@@ -2156,13 +1816,13 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2156
1816
|
this.logService.info(`I18n accepted languages set to ${EuiEuLanguages.getLanguageCodes(this.config.languages)}`);
|
|
2157
1817
|
}
|
|
2158
1818
|
}
|
|
2159
|
-
return this.translateService.use(initLanguage).pipe(
|
|
1819
|
+
return this.translateService.use(initLanguage).pipe(tap3(() => {
|
|
2160
1820
|
this.bindActiveLangStateToTranslateService();
|
|
2161
1821
|
this.bindTranslateServiceLangChangeToState();
|
|
2162
1822
|
if (this.config.defaultLanguage) {
|
|
2163
1823
|
this.setDefaultLanguage(this.config.defaultLanguage);
|
|
2164
1824
|
}
|
|
2165
|
-
}),
|
|
1825
|
+
}), map3(() => {
|
|
2166
1826
|
if (this.translateService.currentLoader instanceof I18nLoader) {
|
|
2167
1827
|
const failedResources = this.translateService.currentLoader.getFailedResources();
|
|
2168
1828
|
if (failedResources.length > 0) {
|
|
@@ -2216,24 +1876,24 @@ var I18nService = class _I18nService extends EuiLazyService {
|
|
|
2216
1876
|
this.document.documentElement.lang = lang;
|
|
2217
1877
|
}
|
|
2218
1878
|
static {
|
|
2219
|
-
this.ɵfac =
|
|
1879
|
+
this.ɵfac = i011.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i011, type: _I18nService, deps: [{ token: GLOBAL_CONFIG_TOKEN }, { token: i15.TranslateService }, { token: LogService, optional: true }, { token: StoreService }, { token: DOCUMENT }], target: i011.ɵɵFactoryTarget.Injectable });
|
|
2220
1880
|
}
|
|
2221
1881
|
static {
|
|
2222
|
-
this.ɵprov =
|
|
1882
|
+
this.ɵprov = i011.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i011, type: _I18nService, providedIn: "root" });
|
|
2223
1883
|
}
|
|
2224
1884
|
};
|
|
2225
|
-
|
|
2226
|
-
type:
|
|
1885
|
+
i011.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i011, type: I18nService, decorators: [{
|
|
1886
|
+
type: Injectable9,
|
|
2227
1887
|
args: [{
|
|
2228
1888
|
providedIn: "root"
|
|
2229
1889
|
}]
|
|
2230
1890
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
2231
|
-
type:
|
|
1891
|
+
type: Inject5,
|
|
2232
1892
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
2233
|
-
}] }, { type:
|
|
1893
|
+
}] }, { type: i15.TranslateService }, { type: LogService, decorators: [{
|
|
2234
1894
|
type: Optional5
|
|
2235
1895
|
}] }, { type: StoreService }, { type: Document, decorators: [{
|
|
2236
|
-
type:
|
|
1896
|
+
type: Inject5,
|
|
2237
1897
|
args: [DOCUMENT]
|
|
2238
1898
|
}] }] });
|
|
2239
1899
|
|
|
@@ -2418,10 +2078,10 @@ var handleError = (error) => {
|
|
|
2418
2078
|
var isDefined = (value) => value !== void 0 && value !== null;
|
|
2419
2079
|
|
|
2420
2080
|
// lib/services/permission/permission.service.mjs
|
|
2421
|
-
import { Injectable as
|
|
2081
|
+
import { Injectable as Injectable10, Optional as Optional6 } from "@angular/core";
|
|
2422
2082
|
import { EuiService, getUserRights } from "@eui/base";
|
|
2423
2083
|
import { of as of6 } from "rxjs";
|
|
2424
|
-
import * as
|
|
2084
|
+
import * as i012 from "@angular/core";
|
|
2425
2085
|
var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
2426
2086
|
constructor(log, store) {
|
|
2427
2087
|
super([]);
|
|
@@ -2627,14 +2287,14 @@ var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
|
2627
2287
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2628
2288
|
}
|
|
2629
2289
|
static {
|
|
2630
|
-
this.ɵfac =
|
|
2290
|
+
this.ɵfac = i012.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i012, type: _EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i012.ɵɵFactoryTarget.Injectable });
|
|
2631
2291
|
}
|
|
2632
2292
|
static {
|
|
2633
|
-
this.ɵprov =
|
|
2293
|
+
this.ɵprov = i012.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i012, type: _EuiPermissionService, providedIn: "root" });
|
|
2634
2294
|
}
|
|
2635
2295
|
};
|
|
2636
|
-
|
|
2637
|
-
type:
|
|
2296
|
+
i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i012, type: EuiPermissionService, decorators: [{
|
|
2297
|
+
type: Injectable10,
|
|
2638
2298
|
args: [{
|
|
2639
2299
|
providedIn: "root"
|
|
2640
2300
|
}]
|
|
@@ -2643,9 +2303,9 @@ i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
2643
2303
|
}] }, { type: StoreService }] });
|
|
2644
2304
|
|
|
2645
2305
|
// lib/services/dynamic-menu/dynamic-menu.service.mjs
|
|
2646
|
-
import { Injectable as
|
|
2306
|
+
import { Injectable as Injectable11 } from "@angular/core";
|
|
2647
2307
|
import { getUserState } from "@eui/base";
|
|
2648
|
-
import * as
|
|
2308
|
+
import * as i013 from "@angular/core";
|
|
2649
2309
|
var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
2650
2310
|
// TODO: it should be moved euiservice, or it should be static
|
|
2651
2311
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
@@ -2694,23 +2354,23 @@ var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
|
2694
2354
|
});
|
|
2695
2355
|
}
|
|
2696
2356
|
static {
|
|
2697
|
-
this.ɵfac =
|
|
2357
|
+
this.ɵfac = i013.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i013, type: _EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i013.ɵɵFactoryTarget.Injectable });
|
|
2698
2358
|
}
|
|
2699
2359
|
static {
|
|
2700
|
-
this.ɵprov =
|
|
2360
|
+
this.ɵprov = i013.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i013, type: _EuiDynamicMenuService, providedIn: "root" });
|
|
2701
2361
|
}
|
|
2702
2362
|
};
|
|
2703
|
-
|
|
2704
|
-
type:
|
|
2363
|
+
i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i013, type: EuiDynamicMenuService, decorators: [{
|
|
2364
|
+
type: Injectable11,
|
|
2705
2365
|
args: [{
|
|
2706
2366
|
providedIn: "root"
|
|
2707
2367
|
}]
|
|
2708
2368
|
}], ctorParameters: () => [{ type: EuiPermissionService }, { type: StoreService }] });
|
|
2709
2369
|
|
|
2710
2370
|
// lib/services/dynamic-component/dynamic-component.service.mjs
|
|
2711
|
-
import { Injectable as
|
|
2371
|
+
import { Injectable as Injectable12, InjectionToken as InjectionToken5 } from "@angular/core";
|
|
2712
2372
|
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
|
|
2713
|
-
import * as
|
|
2373
|
+
import * as i014 from "@angular/core";
|
|
2714
2374
|
var DYNAMIC_COMPONENT_CONFIG = new InjectionToken5("DYNAMIC_COMPONENT_CONFIG");
|
|
2715
2375
|
var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
2716
2376
|
constructor(componentFactoryResolver, injector, appRef) {
|
|
@@ -2765,28 +2425,28 @@ var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
|
2765
2425
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2766
2426
|
}
|
|
2767
2427
|
static {
|
|
2768
|
-
this.ɵfac =
|
|
2428
|
+
this.ɵfac = i014.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i014, type: _EuiDynamicComponentService, deps: [{ token: i014.ComponentFactoryResolver }, { token: i014.Injector }, { token: i014.ApplicationRef }], target: i014.ɵɵFactoryTarget.Injectable });
|
|
2769
2429
|
}
|
|
2770
2430
|
static {
|
|
2771
|
-
this.ɵprov =
|
|
2431
|
+
this.ɵprov = i014.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i014, type: _EuiDynamicComponentService });
|
|
2772
2432
|
}
|
|
2773
2433
|
};
|
|
2774
|
-
|
|
2775
|
-
type:
|
|
2776
|
-
}], ctorParameters: () => [{ type:
|
|
2434
|
+
i014.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i014, type: EuiDynamicComponentService, decorators: [{
|
|
2435
|
+
type: Injectable12
|
|
2436
|
+
}], ctorParameters: () => [{ type: i014.ComponentFactoryResolver }, { type: i014.Injector }, { type: i014.ApplicationRef }] });
|
|
2777
2437
|
|
|
2778
2438
|
// lib/services/eui-app-shell.service.mjs
|
|
2779
|
-
import { Inject as
|
|
2439
|
+
import { Inject as Inject6, Injectable as Injectable13, Optional as Optional7, PLATFORM_ID } from "@angular/core";
|
|
2780
2440
|
import { isPlatformBrowser } from "@angular/common";
|
|
2781
2441
|
import { BehaviorSubject as BehaviorSubject2, defer, firstValueFrom } from "rxjs";
|
|
2782
2442
|
import { EuiEuLanguages as EuiEuLanguages2, getActiveLang as getActiveLang2 } from "@eui/base";
|
|
2783
2443
|
import { NavigationEnd } from "@angular/router";
|
|
2784
|
-
import { distinctUntilChanged as distinctUntilChanged2, map as
|
|
2444
|
+
import { distinctUntilChanged as distinctUntilChanged2, map as map4 } from "rxjs/operators";
|
|
2785
2445
|
import isEqual from "lodash-es/isEqual";
|
|
2786
2446
|
import get from "lodash-es/get";
|
|
2787
|
-
import * as
|
|
2788
|
-
import * as
|
|
2789
|
-
import * as
|
|
2447
|
+
import * as i015 from "@angular/core";
|
|
2448
|
+
import * as i16 from "@angular/common/http";
|
|
2449
|
+
import * as i22 from "@angular/router";
|
|
2790
2450
|
var initialState = {
|
|
2791
2451
|
appName: "",
|
|
2792
2452
|
appShortName: "",
|
|
@@ -2998,7 +2658,7 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2998
2658
|
return defer(() => (
|
|
2999
2659
|
// check if key exists
|
|
3000
2660
|
key ? this.state$.pipe(
|
|
3001
|
-
|
|
2661
|
+
map4((state) => get(state, key)),
|
|
3002
2662
|
// filter((state) => state),
|
|
3003
2663
|
distinctUntilChanged2((x, y) => isEqual(x, y))
|
|
3004
2664
|
) : this.state$
|
|
@@ -3416,32 +3076,32 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3416
3076
|
});
|
|
3417
3077
|
}
|
|
3418
3078
|
static {
|
|
3419
|
-
this.ɵfac =
|
|
3079
|
+
this.ɵfac = i015.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i015, type: _EuiAppShellService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i16.HttpClient }, { token: PLATFORM_ID }, { token: i22.Router }, { token: StoreService }, { token: I18nService, optional: true }], target: i015.ɵɵFactoryTarget.Injectable });
|
|
3420
3080
|
}
|
|
3421
3081
|
static {
|
|
3422
|
-
this.ɵprov =
|
|
3082
|
+
this.ɵprov = i015.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i015, type: _EuiAppShellService, providedIn: "root" });
|
|
3423
3083
|
}
|
|
3424
3084
|
};
|
|
3425
|
-
|
|
3426
|
-
type:
|
|
3085
|
+
i015.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i015, type: EuiAppShellService, decorators: [{
|
|
3086
|
+
type: Injectable13,
|
|
3427
3087
|
args: [{
|
|
3428
3088
|
providedIn: "root"
|
|
3429
3089
|
}]
|
|
3430
3090
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3431
3091
|
type: Optional7
|
|
3432
3092
|
}, {
|
|
3433
|
-
type:
|
|
3093
|
+
type: Inject6,
|
|
3434
3094
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
3435
|
-
}] }, { type:
|
|
3436
|
-
type:
|
|
3095
|
+
}] }, { type: i16.HttpClient }, { type: void 0, decorators: [{
|
|
3096
|
+
type: Inject6,
|
|
3437
3097
|
args: [PLATFORM_ID]
|
|
3438
|
-
}] }, { type:
|
|
3098
|
+
}] }, { type: i22.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3439
3099
|
type: Optional7
|
|
3440
3100
|
}] }] });
|
|
3441
3101
|
|
|
3442
3102
|
// lib/services/eui-timezone.service.mjs
|
|
3443
|
-
import { Injectable as
|
|
3444
|
-
import * as
|
|
3103
|
+
import { Injectable as Injectable14 } from "@angular/core";
|
|
3104
|
+
import * as i016 from "@angular/core";
|
|
3445
3105
|
var EUI_COUNTRIES = {
|
|
3446
3106
|
AF: "Afghanistan",
|
|
3447
3107
|
AX: "Aland Islands",
|
|
@@ -4149,14 +3809,14 @@ var EuiTimezoneService = class _EuiTimezoneService {
|
|
|
4149
3809
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4150
3810
|
}
|
|
4151
3811
|
static {
|
|
4152
|
-
this.ɵfac =
|
|
3812
|
+
this.ɵfac = i016.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i016, type: _EuiTimezoneService, deps: [], target: i016.ɵɵFactoryTarget.Injectable });
|
|
4153
3813
|
}
|
|
4154
3814
|
static {
|
|
4155
|
-
this.ɵprov =
|
|
3815
|
+
this.ɵprov = i016.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i016, type: _EuiTimezoneService });
|
|
4156
3816
|
}
|
|
4157
3817
|
};
|
|
4158
|
-
|
|
4159
|
-
type:
|
|
3818
|
+
i016.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i016, type: EuiTimezoneService, decorators: [{
|
|
3819
|
+
type: Injectable14
|
|
4160
3820
|
}] });
|
|
4161
3821
|
|
|
4162
3822
|
// lib/services/storage/storage.service.mjs
|
|
@@ -4226,8 +3886,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
4226
3886
|
};
|
|
4227
3887
|
|
|
4228
3888
|
// lib/services/storage/local-storage.service.mjs
|
|
4229
|
-
import { Injectable as
|
|
4230
|
-
import * as
|
|
3889
|
+
import { Injectable as Injectable15, Optional as Optional8 } from "@angular/core";
|
|
3890
|
+
import * as i017 from "@angular/core";
|
|
4231
3891
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
4232
3892
|
static {
|
|
4233
3893
|
this.NAME = "LocalStorageService";
|
|
@@ -4291,21 +3951,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
4291
3951
|
}
|
|
4292
3952
|
}
|
|
4293
3953
|
static {
|
|
4294
|
-
this.ɵfac =
|
|
3954
|
+
this.ɵfac = i017.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i017, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i017.ɵɵFactoryTarget.Injectable });
|
|
4295
3955
|
}
|
|
4296
3956
|
static {
|
|
4297
|
-
this.ɵprov =
|
|
3957
|
+
this.ɵprov = i017.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i017, type: _LocalStorageService });
|
|
4298
3958
|
}
|
|
4299
3959
|
};
|
|
4300
|
-
|
|
4301
|
-
type:
|
|
3960
|
+
i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i017, type: LocalStorageService, decorators: [{
|
|
3961
|
+
type: Injectable15
|
|
4302
3962
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4303
3963
|
type: Optional8
|
|
4304
3964
|
}] }] });
|
|
4305
3965
|
|
|
4306
3966
|
// lib/services/storage/session-storage.service.mjs
|
|
4307
|
-
import { Injectable as
|
|
4308
|
-
import * as
|
|
3967
|
+
import { Injectable as Injectable16, Optional as Optional9 } from "@angular/core";
|
|
3968
|
+
import * as i018 from "@angular/core";
|
|
4309
3969
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
4310
3970
|
static {
|
|
4311
3971
|
this.NAME = "SessionStorageService";
|
|
@@ -4369,24 +4029,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4369
4029
|
}
|
|
4370
4030
|
}
|
|
4371
4031
|
static {
|
|
4372
|
-
this.ɵfac =
|
|
4032
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i018, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
4373
4033
|
}
|
|
4374
4034
|
static {
|
|
4375
|
-
this.ɵprov =
|
|
4035
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i018, type: _SessionStorageService });
|
|
4376
4036
|
}
|
|
4377
4037
|
};
|
|
4378
|
-
|
|
4379
|
-
type:
|
|
4038
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i018, type: SessionStorageService, decorators: [{
|
|
4039
|
+
type: Injectable16
|
|
4380
4040
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4381
4041
|
type: Optional9
|
|
4382
4042
|
}] }] });
|
|
4383
4043
|
|
|
4384
4044
|
// lib/services/storage/local-forage.service.mjs
|
|
4385
|
-
import { Inject as
|
|
4045
|
+
import { Inject as Inject7, Injectable as Injectable17, InjectionToken as InjectionToken6, Optional as Optional10 } from "@angular/core";
|
|
4386
4046
|
import { from as from2 } from "rxjs";
|
|
4387
|
-
import { take as take3, tap as
|
|
4047
|
+
import { take as take3, tap as tap4 } from "rxjs/operators";
|
|
4388
4048
|
import * as lf from "localforage";
|
|
4389
|
-
import * as
|
|
4049
|
+
import * as i019 from "@angular/core";
|
|
4390
4050
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4391
4051
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4392
4052
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4414,7 +4074,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4414
4074
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4415
4075
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4416
4076
|
ready() {
|
|
4417
|
-
return from2(localForage.ready()).pipe(take3(1),
|
|
4077
|
+
return from2(localForage.ready()).pipe(take3(1), tap4({
|
|
4418
4078
|
next: () => {
|
|
4419
4079
|
},
|
|
4420
4080
|
error: (err) => {
|
|
@@ -4432,7 +4092,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4432
4092
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4433
4093
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4434
4094
|
get(key) {
|
|
4435
|
-
return from2(localForage.getItem(key)).pipe(take3(1),
|
|
4095
|
+
return from2(localForage.getItem(key)).pipe(take3(1), tap4(() => {
|
|
4436
4096
|
}, (err) => {
|
|
4437
4097
|
if (this.log) {
|
|
4438
4098
|
this.log.error(this.name(), "get", err);
|
|
@@ -4448,7 +4108,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4448
4108
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4449
4109
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4450
4110
|
set(key, value) {
|
|
4451
|
-
return from2(localForage.setItem(key, value)).pipe(take3(1),
|
|
4111
|
+
return from2(localForage.setItem(key, value)).pipe(take3(1), tap4({
|
|
4452
4112
|
next: () => {
|
|
4453
4113
|
},
|
|
4454
4114
|
error: (err) => {
|
|
@@ -4466,7 +4126,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4466
4126
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4467
4127
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4468
4128
|
remove(key) {
|
|
4469
|
-
return from2(localForage.removeItem(key)).pipe(take3(1),
|
|
4129
|
+
return from2(localForage.removeItem(key)).pipe(take3(1), tap4({
|
|
4470
4130
|
next: () => {
|
|
4471
4131
|
},
|
|
4472
4132
|
error: (err) => {
|
|
@@ -4477,16 +4137,16 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4477
4137
|
}));
|
|
4478
4138
|
}
|
|
4479
4139
|
static {
|
|
4480
|
-
this.ɵfac =
|
|
4140
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i019, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4481
4141
|
}
|
|
4482
4142
|
static {
|
|
4483
|
-
this.ɵprov =
|
|
4143
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i019, type: _LocalForageService });
|
|
4484
4144
|
}
|
|
4485
4145
|
};
|
|
4486
|
-
|
|
4487
|
-
type:
|
|
4146
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i019, type: LocalForageService, decorators: [{
|
|
4147
|
+
type: Injectable17
|
|
4488
4148
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4489
|
-
type:
|
|
4149
|
+
type: Inject7,
|
|
4490
4150
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4491
4151
|
}, {
|
|
4492
4152
|
type: Optional10
|
|
@@ -4495,13 +4155,13 @@ i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
4495
4155
|
}] }] });
|
|
4496
4156
|
|
|
4497
4157
|
// lib/services/locale/locale.service.mjs
|
|
4498
|
-
import { Inject as
|
|
4158
|
+
import { Inject as Inject8, Injectable as Injectable18, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional11 } from "@angular/core";
|
|
4499
4159
|
import { getLocaleId } from "@angular/common";
|
|
4500
4160
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4501
4161
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4502
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4162
|
+
import { catchError as catchError4, filter as filter2, map as map5, switchMap as switchMap3, take as take4, takeUntil, tap as tap5 } from "rxjs/operators";
|
|
4503
4163
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4504
|
-
import * as
|
|
4164
|
+
import * as i020 from "@angular/core";
|
|
4505
4165
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4506
4166
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4507
4167
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4549,7 +4209,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4549
4209
|
return this.store.select(selector).pipe(
|
|
4550
4210
|
takeUntil(this.subNotifier),
|
|
4551
4211
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4552
|
-
|
|
4212
|
+
map5((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4553
4213
|
);
|
|
4554
4214
|
}
|
|
4555
4215
|
/**
|
|
@@ -4565,7 +4225,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4565
4225
|
this.bindTranslateServiceLangChangeToState();
|
|
4566
4226
|
}
|
|
4567
4227
|
const availableLocales = state?.available || this.config?.available || this.getBrowserLocales() || [this.currentLocale];
|
|
4568
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier),
|
|
4228
|
+
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap5(() => this.updateState(state || { id: this.currentLocale })));
|
|
4569
4229
|
}
|
|
4570
4230
|
/**
|
|
4571
4231
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4654,7 +4314,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4654
4314
|
if (this.log) {
|
|
4655
4315
|
this.logger.debug(error);
|
|
4656
4316
|
}
|
|
4657
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4317
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map5(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4658
4318
|
if (this.log) {
|
|
4659
4319
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4660
4320
|
}
|
|
@@ -4663,7 +4323,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4663
4323
|
})
|
|
4664
4324
|
)),
|
|
4665
4325
|
// update the "available" array attribute with newly registered
|
|
4666
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4326
|
+
switchMap3((id) => this.getState().pipe(take4(1), map5((state) => {
|
|
4667
4327
|
const available = state?.available ? state.available : [];
|
|
4668
4328
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4669
4329
|
})))
|
|
@@ -4686,27 +4346,27 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4686
4346
|
return browserLocales.map((locale) => locale.trim());
|
|
4687
4347
|
}
|
|
4688
4348
|
static {
|
|
4689
|
-
this.ɵfac =
|
|
4349
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i020, 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: i020.ɵɵFactoryTarget.Injectable });
|
|
4690
4350
|
}
|
|
4691
4351
|
static {
|
|
4692
|
-
this.ɵprov =
|
|
4352
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i020, type: _LocaleService, providedIn: "root" });
|
|
4693
4353
|
}
|
|
4694
4354
|
};
|
|
4695
|
-
|
|
4696
|
-
type:
|
|
4355
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i020, type: LocaleService, decorators: [{
|
|
4356
|
+
type: Injectable18,
|
|
4697
4357
|
args: [{
|
|
4698
4358
|
providedIn: "root"
|
|
4699
4359
|
}]
|
|
4700
4360
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4701
|
-
type:
|
|
4361
|
+
type: Inject8,
|
|
4702
4362
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4703
4363
|
}] }, { type: void 0, decorators: [{
|
|
4704
|
-
type:
|
|
4364
|
+
type: Inject8,
|
|
4705
4365
|
args: [LOCALE_ID]
|
|
4706
4366
|
}] }, { type: void 0, decorators: [{
|
|
4707
4367
|
type: Optional11
|
|
4708
4368
|
}, {
|
|
4709
|
-
type:
|
|
4369
|
+
type: Inject8,
|
|
4710
4370
|
args: [LOCALE_ID_MAPPER]
|
|
4711
4371
|
}] }, { type: I18nService, decorators: [{
|
|
4712
4372
|
type: Optional11
|
|
@@ -4715,12 +4375,12 @@ i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
4715
4375
|
}] }] });
|
|
4716
4376
|
|
|
4717
4377
|
// lib/services/locale/locale.service.mock.mjs
|
|
4718
|
-
import { Optional as Optional12, Inject as
|
|
4378
|
+
import { Optional as Optional12, Inject as Inject9, Injectable as Injectable19, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4719
4379
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4720
4380
|
import localeFr from "@angular/common/locales/fr";
|
|
4721
4381
|
import localeEl from "@angular/common/locales/el";
|
|
4722
4382
|
import { registerLocaleData } from "@angular/common";
|
|
4723
|
-
import * as
|
|
4383
|
+
import * as i021 from "@angular/core";
|
|
4724
4384
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4725
4385
|
constructor(locale_id) {
|
|
4726
4386
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4745,18 +4405,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4745
4405
|
return of9({ success: true });
|
|
4746
4406
|
}
|
|
4747
4407
|
static {
|
|
4748
|
-
this.ɵfac =
|
|
4408
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i021, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4749
4409
|
}
|
|
4750
4410
|
static {
|
|
4751
|
-
this.ɵprov =
|
|
4411
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i021, type: _LocaleServiceMock });
|
|
4752
4412
|
}
|
|
4753
4413
|
};
|
|
4754
|
-
|
|
4755
|
-
type:
|
|
4414
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i021, type: LocaleServiceMock, decorators: [{
|
|
4415
|
+
type: Injectable19
|
|
4756
4416
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4757
4417
|
type: Optional12
|
|
4758
4418
|
}, {
|
|
4759
|
-
type:
|
|
4419
|
+
type: Inject9,
|
|
4760
4420
|
args: [LOCALE_ID2]
|
|
4761
4421
|
}] }] });
|
|
4762
4422
|
|
|
@@ -4769,10 +4429,10 @@ var Status;
|
|
|
4769
4429
|
})(Status || (Status = {}));
|
|
4770
4430
|
|
|
4771
4431
|
// lib/services/loader/eui-loader.service.mjs
|
|
4772
|
-
import { Injectable as
|
|
4432
|
+
import { Injectable as Injectable20 } from "@angular/core";
|
|
4773
4433
|
import { Subject as Subject2 } from "rxjs";
|
|
4774
|
-
import { filter as filter3, map as
|
|
4775
|
-
import * as
|
|
4434
|
+
import { filter as filter3, map as map6 } from "rxjs/operators";
|
|
4435
|
+
import * as i022 from "@angular/core";
|
|
4776
4436
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4777
4437
|
constructor() {
|
|
4778
4438
|
this.dependencies = [];
|
|
@@ -4866,7 +4526,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4866
4526
|
* @param name The name of the dependency
|
|
4867
4527
|
*/
|
|
4868
4528
|
statusChanges(name) {
|
|
4869
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4529
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map6(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4870
4530
|
}
|
|
4871
4531
|
/**
|
|
4872
4532
|
* Load a dependency and its prerequisites
|
|
@@ -4987,25 +4647,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4987
4647
|
}
|
|
4988
4648
|
}
|
|
4989
4649
|
static {
|
|
4990
|
-
this.ɵfac =
|
|
4650
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i022, type: _EuiLoaderService, deps: [], target: i022.ɵɵFactoryTarget.Injectable });
|
|
4991
4651
|
}
|
|
4992
4652
|
static {
|
|
4993
|
-
this.ɵprov =
|
|
4653
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i022, type: _EuiLoaderService, providedIn: "root" });
|
|
4994
4654
|
}
|
|
4995
4655
|
};
|
|
4996
|
-
|
|
4997
|
-
type:
|
|
4656
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i022, type: EuiLoaderService, decorators: [{
|
|
4657
|
+
type: Injectable20,
|
|
4998
4658
|
args: [{
|
|
4999
4659
|
providedIn: "root"
|
|
5000
4660
|
}]
|
|
5001
4661
|
}] });
|
|
5002
4662
|
|
|
5003
4663
|
// lib/services/user/user.service.mjs
|
|
5004
|
-
import { Injectable as
|
|
4664
|
+
import { Injectable as Injectable21 } from "@angular/core";
|
|
5005
4665
|
import { of as of10 } from "rxjs";
|
|
5006
4666
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
5007
4667
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
5008
|
-
import * as
|
|
4668
|
+
import * as i023 from "@angular/core";
|
|
5009
4669
|
var UserService = class _UserService extends EuiService3 {
|
|
5010
4670
|
constructor(store) {
|
|
5011
4671
|
super({ userId: "annonymous" });
|
|
@@ -5044,14 +4704,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
5044
4704
|
}
|
|
5045
4705
|
}
|
|
5046
4706
|
static {
|
|
5047
|
-
this.ɵfac =
|
|
4707
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i023, type: _UserService, deps: [{ token: StoreService }], target: i023.ɵɵFactoryTarget.Injectable });
|
|
5048
4708
|
}
|
|
5049
4709
|
static {
|
|
5050
|
-
this.ɵprov =
|
|
4710
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i023, type: _UserService, providedIn: "root" });
|
|
5051
4711
|
}
|
|
5052
4712
|
};
|
|
5053
|
-
|
|
5054
|
-
type:
|
|
4713
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i023, type: UserService, decorators: [{
|
|
4714
|
+
type: Injectable21,
|
|
5055
4715
|
args: [{
|
|
5056
4716
|
providedIn: "root"
|
|
5057
4717
|
}]
|
|
@@ -5059,8 +4719,8 @@ i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1"
|
|
|
5059
4719
|
|
|
5060
4720
|
// lib/services/user/user.service.mock.mjs
|
|
5061
4721
|
import { of as of11 } from "rxjs";
|
|
5062
|
-
import { Injectable as
|
|
5063
|
-
import * as
|
|
4722
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
4723
|
+
import * as i024 from "@angular/core";
|
|
5064
4724
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
5065
4725
|
constructor() {
|
|
5066
4726
|
super(null);
|
|
@@ -5076,20 +4736,20 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
5076
4736
|
updateState(userState, reducer) {
|
|
5077
4737
|
}
|
|
5078
4738
|
static {
|
|
5079
|
-
this.ɵfac =
|
|
4739
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i024, type: _UserServiceMock, deps: [], target: i024.ɵɵFactoryTarget.Injectable });
|
|
5080
4740
|
}
|
|
5081
4741
|
static {
|
|
5082
|
-
this.ɵprov =
|
|
4742
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i024, type: _UserServiceMock });
|
|
5083
4743
|
}
|
|
5084
4744
|
};
|
|
5085
|
-
|
|
5086
|
-
type:
|
|
4745
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i024, type: UserServiceMock, decorators: [{
|
|
4746
|
+
type: Injectable22
|
|
5087
4747
|
}], ctorParameters: () => [] });
|
|
5088
4748
|
|
|
5089
4749
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
5090
|
-
import { Injectable as
|
|
5091
|
-
import * as
|
|
5092
|
-
import * as
|
|
4750
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
4751
|
+
import * as i025 from "@angular/core";
|
|
4752
|
+
import * as i17 from "@ngx-translate/core";
|
|
5093
4753
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
5094
4754
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
5095
4755
|
constructor(translateService) {
|
|
@@ -5109,19 +4769,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
5109
4769
|
}));
|
|
5110
4770
|
}
|
|
5111
4771
|
static {
|
|
5112
|
-
this.ɵfac =
|
|
4772
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i025, type: _AddLangParamInterceptor, deps: [{ token: i17.TranslateService }], target: i025.ɵɵFactoryTarget.Injectable });
|
|
5113
4773
|
}
|
|
5114
4774
|
static {
|
|
5115
|
-
this.ɵprov =
|
|
4775
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i025, type: _AddLangParamInterceptor });
|
|
5116
4776
|
}
|
|
5117
4777
|
};
|
|
5118
|
-
|
|
5119
|
-
type:
|
|
5120
|
-
}], ctorParameters: () => [{ type:
|
|
4778
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i025, type: AddLangParamInterceptor, decorators: [{
|
|
4779
|
+
type: Injectable23
|
|
4780
|
+
}], ctorParameters: () => [{ type: i17.TranslateService }] });
|
|
5121
4781
|
|
|
5122
4782
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
5123
|
-
import { Injectable as
|
|
5124
|
-
import * as
|
|
4783
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
4784
|
+
import * as i026 from "@angular/core";
|
|
5125
4785
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
5126
4786
|
intercept(req, next) {
|
|
5127
4787
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -5133,19 +4793,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
5133
4793
|
}));
|
|
5134
4794
|
}
|
|
5135
4795
|
static {
|
|
5136
|
-
this.ɵfac =
|
|
4796
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i026, type: _CachePreventionInterceptor, deps: [], target: i026.ɵɵFactoryTarget.Injectable });
|
|
5137
4797
|
}
|
|
5138
4798
|
static {
|
|
5139
|
-
this.ɵprov =
|
|
4799
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i026, type: _CachePreventionInterceptor });
|
|
5140
4800
|
}
|
|
5141
4801
|
};
|
|
5142
|
-
|
|
5143
|
-
type:
|
|
4802
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i026, type: CachePreventionInterceptor, decorators: [{
|
|
4803
|
+
type: Injectable24
|
|
5144
4804
|
}] });
|
|
5145
4805
|
|
|
5146
4806
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
5147
|
-
import { Injectable as
|
|
5148
|
-
import * as
|
|
4807
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
4808
|
+
import * as i027 from "@angular/core";
|
|
5149
4809
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
5150
4810
|
intercept(request, next) {
|
|
5151
4811
|
return next.handle(request.clone({
|
|
@@ -5153,19 +4813,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
5153
4813
|
}));
|
|
5154
4814
|
}
|
|
5155
4815
|
static {
|
|
5156
|
-
this.ɵfac =
|
|
4816
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i027, type: _CorsSecurityInterceptor, deps: [], target: i027.ɵɵFactoryTarget.Injectable });
|
|
5157
4817
|
}
|
|
5158
4818
|
static {
|
|
5159
|
-
this.ɵprov =
|
|
4819
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i027, type: _CorsSecurityInterceptor });
|
|
5160
4820
|
}
|
|
5161
4821
|
};
|
|
5162
|
-
|
|
5163
|
-
type:
|
|
4822
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i027, type: CorsSecurityInterceptor, decorators: [{
|
|
4823
|
+
type: Injectable25
|
|
5164
4824
|
}] });
|
|
5165
4825
|
|
|
5166
4826
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
5167
|
-
import { Injectable as
|
|
5168
|
-
import * as
|
|
4827
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
4828
|
+
import * as i028 from "@angular/core";
|
|
5169
4829
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
5170
4830
|
intercept(request, next) {
|
|
5171
4831
|
return next.handle(request.clone({
|
|
@@ -5173,24 +4833,24 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
5173
4833
|
}));
|
|
5174
4834
|
}
|
|
5175
4835
|
static {
|
|
5176
|
-
this.ɵfac =
|
|
4836
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i028, type: _CsrfPreventionInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
5177
4837
|
}
|
|
5178
4838
|
static {
|
|
5179
|
-
this.ɵprov =
|
|
4839
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i028, type: _CsrfPreventionInterceptor });
|
|
5180
4840
|
}
|
|
5181
4841
|
};
|
|
5182
|
-
|
|
5183
|
-
type:
|
|
4842
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i028, type: CsrfPreventionInterceptor, decorators: [{
|
|
4843
|
+
type: Injectable26
|
|
5184
4844
|
}] });
|
|
5185
4845
|
|
|
5186
4846
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
5187
|
-
import { Injectable as
|
|
4847
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
5188
4848
|
import { HttpResponse } from "@angular/common/http";
|
|
5189
|
-
import { tap as
|
|
5190
|
-
import * as
|
|
4849
|
+
import { tap as tap6 } from "rxjs/operators";
|
|
4850
|
+
import * as i029 from "@angular/core";
|
|
5191
4851
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
5192
4852
|
intercept(request, next) {
|
|
5193
|
-
return next.handle(request).pipe(
|
|
4853
|
+
return next.handle(request).pipe(tap6((event) => {
|
|
5194
4854
|
this.checkRequestSuccessForEULoginSessionTimeout(request, event);
|
|
5195
4855
|
return event;
|
|
5196
4856
|
}, (error) => {
|
|
@@ -5238,23 +4898,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
5238
4898
|
document.location.reload();
|
|
5239
4899
|
}
|
|
5240
4900
|
static {
|
|
5241
|
-
this.ɵfac =
|
|
4901
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i029, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
5242
4902
|
}
|
|
5243
4903
|
static {
|
|
5244
|
-
this.ɵprov =
|
|
4904
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i029, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
5245
4905
|
}
|
|
5246
4906
|
};
|
|
5247
|
-
|
|
5248
|
-
type:
|
|
4907
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i029, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4908
|
+
type: Injectable27
|
|
5249
4909
|
}] });
|
|
5250
4910
|
|
|
5251
4911
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
5252
|
-
import { Inject as
|
|
4912
|
+
import { Inject as Inject10, Injectable as Injectable28, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
5253
4913
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
5254
4914
|
import { of as of12 } from "rxjs";
|
|
5255
4915
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
5256
4916
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
5257
|
-
import * as
|
|
4917
|
+
import * as i030 from "@angular/core";
|
|
5258
4918
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
5259
4919
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
5260
4920
|
constructor(errorMappingHandler) {
|
|
@@ -5277,25 +4937,18 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
5277
4937
|
);
|
|
5278
4938
|
}
|
|
5279
4939
|
static {
|
|
5280
|
-
this.ɵfac =
|
|
4940
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i030, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i030.ɵɵFactoryTarget.Injectable });
|
|
5281
4941
|
}
|
|
5282
4942
|
static {
|
|
5283
|
-
this.ɵprov =
|
|
4943
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i030, type: _UxRequestErrorModelInterceptor });
|
|
5284
4944
|
}
|
|
5285
4945
|
};
|
|
5286
|
-
|
|
5287
|
-
type:
|
|
4946
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i030, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4947
|
+
type: Injectable28
|
|
5288
4948
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
5289
|
-
type:
|
|
4949
|
+
type: Inject10,
|
|
5290
4950
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5291
4951
|
}] }] });
|
|
5292
|
-
|
|
5293
|
-
// index.mjs
|
|
5294
|
-
__reExport(esm2022_exports, base_star);
|
|
5295
|
-
import * as base_star from "@eui/base";
|
|
5296
|
-
|
|
5297
|
-
// eui-core.mjs
|
|
5298
|
-
__reExport(eui_core_exports, esm2022_exports);
|
|
5299
4952
|
export {
|
|
5300
4953
|
ActivatedRouteAction,
|
|
5301
4954
|
AddApiQueueItemAction,
|
|
@@ -5314,11 +4967,9 @@ export {
|
|
|
5314
4967
|
CachePreventionInterceptor,
|
|
5315
4968
|
ConsoleHttpErrorCallbackFn,
|
|
5316
4969
|
CoreAppActionTypes,
|
|
5317
|
-
CoreAppEffects,
|
|
5318
4970
|
CoreI18nActionTypes,
|
|
5319
4971
|
CoreLocaleActionTypes,
|
|
5320
4972
|
CoreModule,
|
|
5321
|
-
CoreModuleEffects,
|
|
5322
4973
|
CoreNotificationsActionTypes,
|
|
5323
4974
|
CoreUserActionTypes,
|
|
5324
4975
|
CorsSecurityInterceptor,
|