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