@eui/core 18.0.0-next.6 → 18.0.0-next.60
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/classes/CssUtils.html +677 -0
- package/docs/dependencies.html +36 -26
- package/docs/index.html +2 -2
- package/docs/injectables/CoreAppEffects.html +448 -0
- package/docs/injectables/EuiAppShellService.html +150 -1241
- 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 +9 -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/helpers/css-utils.mjs +88 -0
- package/esm2022/lib/helpers/index.mjs +2 -1
- package/esm2022/lib/interceptors/add-lang-param.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cache-prevention.interceptor.mjs +4 -4
- package/esm2022/lib/interceptors/cors-security.interceptor.mjs +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 +21 -256
- 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 +578 -865
- package/fesm2022/eui-core.mjs.map +4 -4
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/lib/helpers/css-utils.d.ts +27 -0
- package/lib/helpers/css-utils.d.ts.map +1 -0
- package/lib/helpers/form-helpers.d.ts +2 -2
- package/lib/helpers/form-helpers.d.ts.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.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 +4 -62
- package/lib/services/eui-app-shell.service.d.ts.map +1 -1
- 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 -11
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1,287 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from3, except, desc) => {
|
|
10
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from3))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc(from3, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
-
|
|
19
|
-
// eui-core.mjs
|
|
20
|
-
var eui_core_exports = {};
|
|
21
|
-
__export(eui_core_exports, {
|
|
22
|
-
ActivatedRouteAction: () => ActivatedRouteAction,
|
|
23
|
-
AddApiQueueItemAction: () => AddApiQueueItemAction,
|
|
24
|
-
AddAppLoadedConfigModulesAction: () => AddAppLoadedConfigModulesAction,
|
|
25
|
-
AddLangParamInterceptor: () => AddLangParamInterceptor,
|
|
26
|
-
AlertHttpErrorCallbackFn: () => AlertHttpErrorCallbackFn,
|
|
27
|
-
ApiQueueService: () => ApiQueueService,
|
|
28
|
-
ApiQueueServiceMock: () => ApiQueueServiceMock,
|
|
29
|
-
AsyncStorageService: () => AsyncStorageService,
|
|
30
|
-
AsyncStorageServiceMock: () => AsyncStorageServiceMock,
|
|
31
|
-
BASE_LOGGER_NAME_TOKEN: () => BASE_LOGGER_NAME_TOKEN,
|
|
32
|
-
BASE_NAME_TOKEN: () => BASE_NAME_TOKEN,
|
|
33
|
-
BrowserStorageType: () => BrowserStorageType,
|
|
34
|
-
CONFIG_TOKEN: () => CONFIG_TOKEN,
|
|
35
|
-
CORE_ROOT_GUARD: () => CORE_ROOT_GUARD,
|
|
36
|
-
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
37
|
-
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
38
|
-
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
39
|
-
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
40
|
-
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
41
|
-
CoreModule: () => CoreModule,
|
|
42
|
-
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
43
|
-
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
44
|
-
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
45
|
-
CsrfPreventionInterceptor: () => CsrfPreventionInterceptor,
|
|
46
|
-
DYNAMIC_COMPONENT_CONFIG: () => DYNAMIC_COMPONENT_CONFIG,
|
|
47
|
-
EUI_CONFIG_TOKEN: () => EUI_CONFIG_TOKEN,
|
|
48
|
-
EUI_COUNTRIES: () => EUI_COUNTRIES,
|
|
49
|
-
EUI_TIMEZONES: () => EUI_TIMEZONES,
|
|
50
|
-
EmptyApiQueueAction: () => EmptyApiQueueAction,
|
|
51
|
-
ErrorSubClass: () => ErrorSubClass,
|
|
52
|
-
EuLoginSessionTimeoutHandlingInterceptor: () => EuLoginSessionTimeoutHandlingInterceptor,
|
|
53
|
-
EuiAppShellService: () => EuiAppShellService,
|
|
54
|
-
EuiCoreRootGuardClass: () => EuiCoreRootGuardClass,
|
|
55
|
-
EuiDynamicComponentService: () => EuiDynamicComponentService,
|
|
56
|
-
EuiDynamicMenuService: () => EuiDynamicMenuService,
|
|
57
|
-
EuiError: () => EuiError,
|
|
58
|
-
EuiGrowlService: () => EuiGrowlService,
|
|
59
|
-
EuiLoaderService: () => EuiLoaderService,
|
|
60
|
-
EuiPermissionService: () => EuiPermissionService,
|
|
61
|
-
EuiTimezoneService: () => EuiTimezoneService,
|
|
62
|
-
GLOBAL_CONFIG_TOKEN: () => GLOBAL_CONFIG_TOKEN,
|
|
63
|
-
GlobalErrorHandler: () => GlobalErrorHandler,
|
|
64
|
-
GrowlHttpErrorCallbackFn: () => GrowlHttpErrorCallbackFn,
|
|
65
|
-
HTTP_ERROR_HANDLER_CONFIG_TOKEN: () => HTTP_ERROR_HANDLER_CONFIG_TOKEN,
|
|
66
|
-
HttpErrorHandlerInterceptor: () => HttpErrorHandlerInterceptor,
|
|
67
|
-
I18nLoader: () => I18nLoader,
|
|
68
|
-
I18nResourceImpl: () => I18nResourceImpl,
|
|
69
|
-
I18nService: () => I18nService,
|
|
70
|
-
InitStoreAction: () => InitStoreAction,
|
|
71
|
-
LANG_PARAM_KEY: () => LANG_PARAM_KEY,
|
|
72
|
-
LOCALE_ID_MAPPER: () => LOCALE_ID_MAPPER,
|
|
73
|
-
LOCAL_FORAGE_SERVICE_CONFIG_TOKEN: () => LOCAL_FORAGE_SERVICE_CONFIG_TOKEN,
|
|
74
|
-
LOG_APPENDERS_TOKEN: () => LOG_APPENDERS_TOKEN,
|
|
75
|
-
LOG_LEVEL_TOKEN: () => LOG_LEVEL_TOKEN,
|
|
76
|
-
LocalForageService: () => LocalForageService,
|
|
77
|
-
LocalStorageService: () => LocalStorageService,
|
|
78
|
-
LocaleService: () => LocaleService,
|
|
79
|
-
LocaleServiceMock: () => LocaleServiceMock,
|
|
80
|
-
LogHttpErrorCallbackFn: () => LogHttpErrorCallbackFn,
|
|
81
|
-
LogModule: () => LogModule,
|
|
82
|
-
LogService: () => LogService,
|
|
83
|
-
LogServiceMock: () => LogServiceMock,
|
|
84
|
-
MODULE_CONFIG_TOKEN: () => MODULE_CONFIG_TOKEN,
|
|
85
|
-
MODULE_NAME_TOKEN: () => MODULE_NAME_TOKEN,
|
|
86
|
-
ROOT_LOG_CONFIG_TOKEN: () => ROOT_LOG_CONFIG_TOKEN,
|
|
87
|
-
RemoveApiQueueItemAction: () => RemoveApiQueueItemAction,
|
|
88
|
-
SHOW_CONNECTION_STATUS_TOKEN: () => SHOW_CONNECTION_STATUS_TOKEN,
|
|
89
|
-
SessionStorageService: () => SessionStorageService,
|
|
90
|
-
Status: () => Status,
|
|
91
|
-
StorageService: () => StorageService,
|
|
92
|
-
StorageServiceMock: () => StorageServiceMock,
|
|
93
|
-
StoreService: () => StoreService,
|
|
94
|
-
StoreServiceMock: () => StoreServiceMock,
|
|
95
|
-
UX_ERROR_MAPPING_HANDLER_TOKEN: () => UX_ERROR_MAPPING_HANDLER_TOKEN,
|
|
96
|
-
UpdateAppConnectionAction: () => UpdateAppConnectionAction,
|
|
97
|
-
UpdateAppStatusAction: () => UpdateAppStatusAction,
|
|
98
|
-
UpdateAppVersionAction: () => UpdateAppVersionAction,
|
|
99
|
-
UpdateCurrentModuleAction: () => UpdateCurrentModuleAction,
|
|
100
|
-
UpdateI18nStateAction: () => UpdateI18nStateAction,
|
|
101
|
-
UpdateLocaleStateAction: () => UpdateLocaleStateAction,
|
|
102
|
-
UpdateNotificationsListAction: () => UpdateNotificationsListAction,
|
|
103
|
-
UpdateUserDashboardAction: () => UpdateUserDashboardAction,
|
|
104
|
-
UpdateUserDetailsAction: () => UpdateUserDetailsAction,
|
|
105
|
-
UpdateUserPreferencesAction: () => UpdateUserPreferencesAction,
|
|
106
|
-
UpdateUserRightsAction: () => UpdateUserRightsAction,
|
|
107
|
-
UpdateUserStateAction: () => UpdateUserStateAction,
|
|
108
|
-
UserService: () => UserService,
|
|
109
|
-
UserServiceMock: () => UserServiceMock,
|
|
110
|
-
UxRequestErrorModelInterceptor: () => UxRequestErrorModelInterceptor,
|
|
111
|
-
closestMatchingParent: () => closestMatchingParent,
|
|
112
|
-
consumeEvent: () => consumeEvent,
|
|
113
|
-
corI18nReducers: () => corI18nReducers,
|
|
114
|
-
coreAppReducers: () => coreAppReducers,
|
|
115
|
-
coreLocaleReducers: () => coreLocaleReducers,
|
|
116
|
-
coreNotificationsReducers: () => coreNotificationsReducers,
|
|
117
|
-
coreUserReducers: () => coreUserReducers,
|
|
118
|
-
createEuiCoreRootGuard: () => createEuiCoreRootGuard,
|
|
119
|
-
diffDays: () => diffDays,
|
|
120
|
-
diffDaysFromToday: () => diffDaysFromToday,
|
|
121
|
-
errorCodes: () => errorCodes,
|
|
122
|
-
euiCoreRootGuardClass: () => euiCoreRootGuardClass,
|
|
123
|
-
formatNumber: () => formatNumber,
|
|
124
|
-
getGlobalConfig: () => getGlobalConfig,
|
|
125
|
-
getHttpErrorHandlingConfig: () => getHttpErrorHandlingConfig,
|
|
126
|
-
getModuleConfig: () => getModuleConfig,
|
|
127
|
-
getRootLogConfig: () => getRootLogConfig,
|
|
128
|
-
getShowConnectionStatus: () => getShowConnectionStatus,
|
|
129
|
-
getViewElement: () => getViewElement,
|
|
130
|
-
handleError: () => handleError,
|
|
131
|
-
isDefined: () => isDefined,
|
|
132
|
-
loadEuiDynamicEnvironmentConfig: () => loadEuiDynamicEnvironmentConfig,
|
|
133
|
-
loadState: () => loadState,
|
|
134
|
-
localForage: () => localForage,
|
|
135
|
-
localStorageSync: () => localStorageSync,
|
|
136
|
-
markControlsTouched: () => markControlsTouched,
|
|
137
|
-
markFormGroupTouched: () => markFormGroupTouched,
|
|
138
|
-
mergeAppHandlerConfigToAppConfig: () => mergeAppHandlerConfigToAppConfig,
|
|
139
|
-
mergeAppJsonConfigToAppConfig: () => mergeAppJsonConfigToAppConfig,
|
|
140
|
-
offset: () => offset,
|
|
141
|
-
parentOffsetEl: () => parentOffsetEl,
|
|
142
|
-
position: () => position,
|
|
143
|
-
preInitApp: () => preInitApp,
|
|
144
|
-
prepareEuiAppConfigToken: () => prepareEuiAppConfigToken,
|
|
145
|
-
reducers: () => coreReducers,
|
|
146
|
-
sessionStorageSync: () => sessionStorageSync,
|
|
147
|
-
translateConfig: () => translateConfig,
|
|
148
|
-
uniqueId: () => uniqueId,
|
|
149
|
-
validateEmail: () => validateEmail
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
// index.mjs
|
|
153
|
-
var esm2022_exports = {};
|
|
154
|
-
__export(esm2022_exports, {
|
|
155
|
-
ActivatedRouteAction: () => ActivatedRouteAction,
|
|
156
|
-
AddApiQueueItemAction: () => AddApiQueueItemAction,
|
|
157
|
-
AddAppLoadedConfigModulesAction: () => AddAppLoadedConfigModulesAction,
|
|
158
|
-
AddLangParamInterceptor: () => AddLangParamInterceptor,
|
|
159
|
-
AlertHttpErrorCallbackFn: () => AlertHttpErrorCallbackFn,
|
|
160
|
-
ApiQueueService: () => ApiQueueService,
|
|
161
|
-
ApiQueueServiceMock: () => ApiQueueServiceMock,
|
|
162
|
-
AsyncStorageService: () => AsyncStorageService,
|
|
163
|
-
AsyncStorageServiceMock: () => AsyncStorageServiceMock,
|
|
164
|
-
BASE_LOGGER_NAME_TOKEN: () => BASE_LOGGER_NAME_TOKEN,
|
|
165
|
-
BASE_NAME_TOKEN: () => BASE_NAME_TOKEN,
|
|
166
|
-
BrowserStorageType: () => BrowserStorageType,
|
|
167
|
-
CONFIG_TOKEN: () => CONFIG_TOKEN,
|
|
168
|
-
CORE_ROOT_GUARD: () => CORE_ROOT_GUARD,
|
|
169
|
-
CachePreventionInterceptor: () => CachePreventionInterceptor,
|
|
170
|
-
ConsoleHttpErrorCallbackFn: () => ConsoleHttpErrorCallbackFn,
|
|
171
|
-
CoreAppActionTypes: () => CoreAppActionTypes,
|
|
172
|
-
CoreI18nActionTypes: () => CoreI18nActionTypes,
|
|
173
|
-
CoreLocaleActionTypes: () => CoreLocaleActionTypes,
|
|
174
|
-
CoreModule: () => CoreModule,
|
|
175
|
-
CoreNotificationsActionTypes: () => CoreNotificationsActionTypes,
|
|
176
|
-
CoreUserActionTypes: () => CoreUserActionTypes,
|
|
177
|
-
CorsSecurityInterceptor: () => CorsSecurityInterceptor,
|
|
178
|
-
CsrfPreventionInterceptor: () => CsrfPreventionInterceptor,
|
|
179
|
-
DYNAMIC_COMPONENT_CONFIG: () => DYNAMIC_COMPONENT_CONFIG,
|
|
180
|
-
EUI_CONFIG_TOKEN: () => EUI_CONFIG_TOKEN,
|
|
181
|
-
EUI_COUNTRIES: () => EUI_COUNTRIES,
|
|
182
|
-
EUI_TIMEZONES: () => EUI_TIMEZONES,
|
|
183
|
-
EmptyApiQueueAction: () => EmptyApiQueueAction,
|
|
184
|
-
ErrorSubClass: () => ErrorSubClass,
|
|
185
|
-
EuLoginSessionTimeoutHandlingInterceptor: () => EuLoginSessionTimeoutHandlingInterceptor,
|
|
186
|
-
EuiAppShellService: () => EuiAppShellService,
|
|
187
|
-
EuiCoreRootGuardClass: () => EuiCoreRootGuardClass,
|
|
188
|
-
EuiDynamicComponentService: () => EuiDynamicComponentService,
|
|
189
|
-
EuiDynamicMenuService: () => EuiDynamicMenuService,
|
|
190
|
-
EuiError: () => EuiError,
|
|
191
|
-
EuiGrowlService: () => EuiGrowlService,
|
|
192
|
-
EuiLoaderService: () => EuiLoaderService,
|
|
193
|
-
EuiPermissionService: () => EuiPermissionService,
|
|
194
|
-
EuiTimezoneService: () => EuiTimezoneService,
|
|
195
|
-
GLOBAL_CONFIG_TOKEN: () => GLOBAL_CONFIG_TOKEN,
|
|
196
|
-
GlobalErrorHandler: () => GlobalErrorHandler,
|
|
197
|
-
GrowlHttpErrorCallbackFn: () => GrowlHttpErrorCallbackFn,
|
|
198
|
-
HTTP_ERROR_HANDLER_CONFIG_TOKEN: () => HTTP_ERROR_HANDLER_CONFIG_TOKEN,
|
|
199
|
-
HttpErrorHandlerInterceptor: () => HttpErrorHandlerInterceptor,
|
|
200
|
-
I18nLoader: () => I18nLoader,
|
|
201
|
-
I18nResourceImpl: () => I18nResourceImpl,
|
|
202
|
-
I18nService: () => I18nService,
|
|
203
|
-
InitStoreAction: () => InitStoreAction,
|
|
204
|
-
LANG_PARAM_KEY: () => LANG_PARAM_KEY,
|
|
205
|
-
LOCALE_ID_MAPPER: () => LOCALE_ID_MAPPER,
|
|
206
|
-
LOCAL_FORAGE_SERVICE_CONFIG_TOKEN: () => LOCAL_FORAGE_SERVICE_CONFIG_TOKEN,
|
|
207
|
-
LOG_APPENDERS_TOKEN: () => LOG_APPENDERS_TOKEN,
|
|
208
|
-
LOG_LEVEL_TOKEN: () => LOG_LEVEL_TOKEN,
|
|
209
|
-
LocalForageService: () => LocalForageService,
|
|
210
|
-
LocalStorageService: () => LocalStorageService,
|
|
211
|
-
LocaleService: () => LocaleService,
|
|
212
|
-
LocaleServiceMock: () => LocaleServiceMock,
|
|
213
|
-
LogHttpErrorCallbackFn: () => LogHttpErrorCallbackFn,
|
|
214
|
-
LogModule: () => LogModule,
|
|
215
|
-
LogService: () => LogService,
|
|
216
|
-
LogServiceMock: () => LogServiceMock,
|
|
217
|
-
MODULE_CONFIG_TOKEN: () => MODULE_CONFIG_TOKEN,
|
|
218
|
-
MODULE_NAME_TOKEN: () => MODULE_NAME_TOKEN,
|
|
219
|
-
ROOT_LOG_CONFIG_TOKEN: () => ROOT_LOG_CONFIG_TOKEN,
|
|
220
|
-
RemoveApiQueueItemAction: () => RemoveApiQueueItemAction,
|
|
221
|
-
SHOW_CONNECTION_STATUS_TOKEN: () => SHOW_CONNECTION_STATUS_TOKEN,
|
|
222
|
-
SessionStorageService: () => SessionStorageService,
|
|
223
|
-
Status: () => Status,
|
|
224
|
-
StorageService: () => StorageService,
|
|
225
|
-
StorageServiceMock: () => StorageServiceMock,
|
|
226
|
-
StoreService: () => StoreService,
|
|
227
|
-
StoreServiceMock: () => StoreServiceMock,
|
|
228
|
-
UX_ERROR_MAPPING_HANDLER_TOKEN: () => UX_ERROR_MAPPING_HANDLER_TOKEN,
|
|
229
|
-
UpdateAppConnectionAction: () => UpdateAppConnectionAction,
|
|
230
|
-
UpdateAppStatusAction: () => UpdateAppStatusAction,
|
|
231
|
-
UpdateAppVersionAction: () => UpdateAppVersionAction,
|
|
232
|
-
UpdateCurrentModuleAction: () => UpdateCurrentModuleAction,
|
|
233
|
-
UpdateI18nStateAction: () => UpdateI18nStateAction,
|
|
234
|
-
UpdateLocaleStateAction: () => UpdateLocaleStateAction,
|
|
235
|
-
UpdateNotificationsListAction: () => UpdateNotificationsListAction,
|
|
236
|
-
UpdateUserDashboardAction: () => UpdateUserDashboardAction,
|
|
237
|
-
UpdateUserDetailsAction: () => UpdateUserDetailsAction,
|
|
238
|
-
UpdateUserPreferencesAction: () => UpdateUserPreferencesAction,
|
|
239
|
-
UpdateUserRightsAction: () => UpdateUserRightsAction,
|
|
240
|
-
UpdateUserStateAction: () => UpdateUserStateAction,
|
|
241
|
-
UserService: () => UserService,
|
|
242
|
-
UserServiceMock: () => UserServiceMock,
|
|
243
|
-
UxRequestErrorModelInterceptor: () => UxRequestErrorModelInterceptor,
|
|
244
|
-
closestMatchingParent: () => closestMatchingParent,
|
|
245
|
-
consumeEvent: () => consumeEvent,
|
|
246
|
-
corI18nReducers: () => corI18nReducers,
|
|
247
|
-
coreAppReducers: () => coreAppReducers,
|
|
248
|
-
coreLocaleReducers: () => coreLocaleReducers,
|
|
249
|
-
coreNotificationsReducers: () => coreNotificationsReducers,
|
|
250
|
-
coreUserReducers: () => coreUserReducers,
|
|
251
|
-
createEuiCoreRootGuard: () => createEuiCoreRootGuard,
|
|
252
|
-
diffDays: () => diffDays,
|
|
253
|
-
diffDaysFromToday: () => diffDaysFromToday,
|
|
254
|
-
errorCodes: () => errorCodes,
|
|
255
|
-
euiCoreRootGuardClass: () => euiCoreRootGuardClass,
|
|
256
|
-
formatNumber: () => formatNumber,
|
|
257
|
-
getGlobalConfig: () => getGlobalConfig,
|
|
258
|
-
getHttpErrorHandlingConfig: () => getHttpErrorHandlingConfig,
|
|
259
|
-
getModuleConfig: () => getModuleConfig,
|
|
260
|
-
getRootLogConfig: () => getRootLogConfig,
|
|
261
|
-
getShowConnectionStatus: () => getShowConnectionStatus,
|
|
262
|
-
getViewElement: () => getViewElement,
|
|
263
|
-
handleError: () => handleError,
|
|
264
|
-
isDefined: () => isDefined,
|
|
265
|
-
loadEuiDynamicEnvironmentConfig: () => loadEuiDynamicEnvironmentConfig,
|
|
266
|
-
loadState: () => loadState,
|
|
267
|
-
localForage: () => localForage,
|
|
268
|
-
localStorageSync: () => localStorageSync,
|
|
269
|
-
markControlsTouched: () => markControlsTouched,
|
|
270
|
-
markFormGroupTouched: () => markFormGroupTouched,
|
|
271
|
-
mergeAppHandlerConfigToAppConfig: () => mergeAppHandlerConfigToAppConfig,
|
|
272
|
-
mergeAppJsonConfigToAppConfig: () => mergeAppJsonConfigToAppConfig,
|
|
273
|
-
offset: () => offset,
|
|
274
|
-
parentOffsetEl: () => parentOffsetEl,
|
|
275
|
-
position: () => position,
|
|
276
|
-
preInitApp: () => preInitApp,
|
|
277
|
-
prepareEuiAppConfigToken: () => prepareEuiAppConfigToken,
|
|
278
|
-
reducers: () => coreReducers,
|
|
279
|
-
sessionStorageSync: () => sessionStorageSync,
|
|
280
|
-
translateConfig: () => translateConfig,
|
|
281
|
-
uniqueId: () => uniqueId,
|
|
282
|
-
validateEmail: () => validateEmail
|
|
283
|
-
});
|
|
284
|
-
|
|
285
1
|
// lib/services/config/defaults.mjs
|
|
286
2
|
import { LogLevel, ConsoleAppender } from "@eui/base";
|
|
287
3
|
var DEFAULT_LOG_CONFIG = {
|
|
@@ -383,22 +99,22 @@ function getRootLogConfig(appConfig) {
|
|
|
383
99
|
}
|
|
384
100
|
function prepareEuiAppConfigToken(euiConfig) {
|
|
385
101
|
const environment = euiConfig && euiConfig.environment;
|
|
386
|
-
const
|
|
102
|
+
const merge2 = environment.envDynamicConfig && environment.envDynamicConfig.merge && Array.isArray(environment.envDynamicConfig.merge) ? environment.envDynamicConfig.merge : [];
|
|
387
103
|
const isDeepMerge = environment.envDynamicConfig && environment.envDynamicConfig.deepMerge ? environment.envDynamicConfig.deepMerge : false;
|
|
388
104
|
const envAppJsonConfig = environment && environment.loadedEnvDynamicConfig;
|
|
389
105
|
const initialAppConfig = euiConfig && euiConfig.appConfig;
|
|
390
106
|
const envAppHandlersConfig = environment && environment.envAppHandlersConfig;
|
|
391
107
|
const envHandlersMergedAppConfig = mergeAppHandlerConfigToAppConfig(initialAppConfig, envAppHandlersConfig);
|
|
392
|
-
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig,
|
|
108
|
+
const finalConfig = mergeAppJsonConfigToAppConfig(envHandlersMergedAppConfig, envAppJsonConfig, merge2, isDeepMerge);
|
|
393
109
|
return finalConfig;
|
|
394
110
|
}
|
|
395
111
|
function mergeAppHandlerConfigToAppConfig(euiAppConfig, envAppHandler) {
|
|
396
112
|
return Object.assign({}, euiAppConfig, envAppHandler);
|
|
397
113
|
}
|
|
398
|
-
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig,
|
|
114
|
+
function mergeAppJsonConfigToAppConfig(euiAppConfig, envAppJsonConfig, merge2, isDeepMerge) {
|
|
399
115
|
const deepMerged = {};
|
|
400
|
-
if (
|
|
401
|
-
|
|
116
|
+
if (merge2 && merge2.length > 0) {
|
|
117
|
+
merge2.forEach((key) => {
|
|
402
118
|
if (envAppJsonConfig != null && envAppJsonConfig[key] && typeof envAppJsonConfig[key] === "object" && euiAppConfig != null && euiAppConfig[key] && typeof euiAppConfig[key] === "object") {
|
|
403
119
|
if (isDeepMerge) {
|
|
404
120
|
deepMerged[key] = {};
|
|
@@ -572,6 +288,134 @@ var UpdateLocaleStateAction = class {
|
|
|
572
288
|
}
|
|
573
289
|
};
|
|
574
290
|
|
|
291
|
+
// lib/services/growl/eui-growl.service.mjs
|
|
292
|
+
import { Injectable } from "@angular/core";
|
|
293
|
+
import * as i0 from "@angular/core";
|
|
294
|
+
var EuiGrowlService = class _EuiGrowlService {
|
|
295
|
+
constructor() {
|
|
296
|
+
this.growlMessages = [];
|
|
297
|
+
this.isGrowlSticky = false;
|
|
298
|
+
this.isCloseAllSticky = false;
|
|
299
|
+
this.growlLife = 3e3;
|
|
300
|
+
this.growlPosition = "bottom-right";
|
|
301
|
+
this.growlCallback = null;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* displays a growl UxMessage item, isSticky
|
|
305
|
+
*/
|
|
306
|
+
growl(msg, isSticky, isMultiple, life, position2, callback) {
|
|
307
|
+
if (msg.severity !== "info" && msg.severity !== "warning" && msg.severity !== "success" && msg.severity !== "danger") {
|
|
308
|
+
throw new Error("EuiGrowlService.growl() ERROR : message severity must be either : success, warning, info, danger");
|
|
309
|
+
} else {
|
|
310
|
+
if (isMultiple === void 0 || !isMultiple) {
|
|
311
|
+
this.growlMessages = [];
|
|
312
|
+
}
|
|
313
|
+
this.growlMessages = this.growlMessages.concat(msg);
|
|
314
|
+
msg.life = life || msg.life;
|
|
315
|
+
msg.sticky = isSticky || msg.sticky;
|
|
316
|
+
if (life === void 0 || isNaN(life)) {
|
|
317
|
+
if (msg.severity === "danger") {
|
|
318
|
+
isSticky = true;
|
|
319
|
+
} else {
|
|
320
|
+
this.growlLife = 3e3;
|
|
321
|
+
}
|
|
322
|
+
} else {
|
|
323
|
+
this.growlLife = life;
|
|
324
|
+
}
|
|
325
|
+
if (isSticky) {
|
|
326
|
+
this.isGrowlSticky = isSticky;
|
|
327
|
+
} else {
|
|
328
|
+
this.isGrowlSticky = false;
|
|
329
|
+
}
|
|
330
|
+
if (position2) {
|
|
331
|
+
this.growlPosition = position2;
|
|
332
|
+
}
|
|
333
|
+
if (callback) {
|
|
334
|
+
this.growlCallback = callback;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
clearGrowl() {
|
|
339
|
+
this.growlMessages = [];
|
|
340
|
+
}
|
|
341
|
+
growlSuccess(msg, position2) {
|
|
342
|
+
this.growl({ severity: "success", summary: "SUCCESS", detail: msg }, false, false, void 0, position2);
|
|
343
|
+
}
|
|
344
|
+
growlError(msg, position2) {
|
|
345
|
+
this.growl({ severity: "danger", summary: "ERROR", detail: msg }, false, false, void 0, position2);
|
|
346
|
+
}
|
|
347
|
+
growlWarning(msg, position2) {
|
|
348
|
+
this.growl({ severity: "warning", summary: "WARNING", detail: msg }, false, false, void 0, position2);
|
|
349
|
+
}
|
|
350
|
+
growlInfo(msg, position2) {
|
|
351
|
+
this.growl({ severity: "info", summary: "INFO", detail: msg }, false, false, void 0, position2);
|
|
352
|
+
}
|
|
353
|
+
static {
|
|
354
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", ngImport: i0, type: _EuiGrowlService, providedIn: "root" });
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i02, type: _CoreAppEffects });
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i03, type: _LogService });
|
|
806
650
|
}
|
|
807
651
|
};
|
|
808
|
-
|
|
809
|
-
type:
|
|
652
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", 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-rc.0", ngImport: i04, type: _LogModule });
|
|
892
736
|
}
|
|
893
737
|
};
|
|
894
|
-
|
|
738
|
+
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i05, type: _StoreService, providedIn: "root" });
|
|
999
843
|
}
|
|
1000
844
|
};
|
|
1001
|
-
|
|
1002
|
-
type:
|
|
845
|
+
i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i06, type: _StoreServiceMock });
|
|
1036
880
|
}
|
|
1037
881
|
};
|
|
1038
|
-
|
|
1039
|
-
type:
|
|
882
|
+
i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", 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-rc.0", ngImport: i07, type: _CoreModule });
|
|
1152
996
|
}
|
|
1153
997
|
};
|
|
1154
|
-
|
|
998
|
+
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i08, type: _GlobalErrorHandler, providedIn: "root" });
|
|
1267
1111
|
}
|
|
1268
1112
|
};
|
|
1269
|
-
|
|
1270
|
-
type:
|
|
1113
|
+
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i09, type: _HttpErrorHandlerInterceptor });
|
|
1327
1171
|
}
|
|
1328
1172
|
};
|
|
1329
|
-
|
|
1330
|
-
type:
|
|
1173
|
+
i09.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", ngImport: i010, type: _ApiQueueService, providedIn: "root" });
|
|
1719
1487
|
}
|
|
1720
1488
|
};
|
|
1721
|
-
|
|
1722
|
-
type:
|
|
1489
|
+
i010.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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-rc.0", 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-rc.0", 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-rc.0", 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-rc.0", 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-rc.0", ngImport: i012, type: _I18nService, providedIn: "root" });
|
|
2167
1935
|
}
|
|
2168
1936
|
};
|
|
2169
|
-
|
|
2170
|
-
type:
|
|
1937
|
+
i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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
|
|
|
@@ -2361,11 +2129,128 @@ var handleError = (error) => {
|
|
|
2361
2129
|
// lib/helpers/utils.mjs
|
|
2362
2130
|
var isDefined = (value) => value !== void 0 && value !== null;
|
|
2363
2131
|
|
|
2132
|
+
// lib/helpers/css-utils.mjs
|
|
2133
|
+
var CssUtils = class {
|
|
2134
|
+
static {
|
|
2135
|
+
this.getCssVarValue = (inputProperty) => {
|
|
2136
|
+
return getComputedStyle(document.documentElement).getPropertyValue(inputProperty);
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
static {
|
|
2140
|
+
this.setCssVarValue = (propertyName, propertyValue) => {
|
|
2141
|
+
document.documentElement.style.setProperty(propertyName, propertyValue);
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
static {
|
|
2145
|
+
this.setCssVar = (inputProperty, outputProperty) => {
|
|
2146
|
+
const cssVarValue = this.getCssVarValue(inputProperty);
|
|
2147
|
+
this.setCssVarValue(outputProperty, cssVarValue);
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
static {
|
|
2151
|
+
this.initCssVars = () => {
|
|
2152
|
+
this.setCssVar("--eui-app-header-height-default", "--eui-app-header-height");
|
|
2153
|
+
this.setCssVar("--eui-app-breadcrumb-height-default", "--eui-app-breadcrumb-height");
|
|
2154
|
+
this.setCssVar("--eui-app-top-message-height-default", "--eui-app-top-message-height");
|
|
2155
|
+
this.setCssVar("--eui-app-toolbar-height-default", "--eui-app-toolbar-height");
|
|
2156
|
+
this.setCssVar("--eui-app-sidebar-width-default", "--eui-app-sidebar-width");
|
|
2157
|
+
this.setCssVar("--eui-app-sidebar-width-close-default", "--eui-app-sidebar-width-close");
|
|
2158
|
+
this.setCssVar("--eui-app-sidebar-header-height-default", "--eui-app-sidebar-header-height");
|
|
2159
|
+
this.setCssVar("--eui-app-sidebar-footer-height-default", "--eui-app-sidebar-footer-height");
|
|
2160
|
+
};
|
|
2161
|
+
}
|
|
2162
|
+
static {
|
|
2163
|
+
this.activateEditModeCssVars = (isActive) => {
|
|
2164
|
+
if (isActive) {
|
|
2165
|
+
this.setCssVarValue("--eui-docpage-navigation-z-index", "inherit");
|
|
2166
|
+
this.setCssVarValue("--eui-z-index-sidebar", "inherit");
|
|
2167
|
+
this.setCssVarValue("--eui-z-index-root", "inherit");
|
|
2168
|
+
} else {
|
|
2169
|
+
this.setCssVarValue("--eui-docpage-navigation-z-index", "2");
|
|
2170
|
+
this.setCssVarValue("--eui-z-index-sidebar", "1044");
|
|
2171
|
+
this.setCssVarValue("--eui-z-index-root", "1");
|
|
2172
|
+
}
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
static {
|
|
2176
|
+
this.activateHeaderCssVars = () => {
|
|
2177
|
+
this.setCssVar("--eui-app-header-height-active", "--eui-app-header-height");
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
static {
|
|
2181
|
+
this.activateBreadcrumbCssVars = () => {
|
|
2182
|
+
this.setCssVar("--eui-app-breadcrumb-height-active", "--eui-app-breadcrumb-height");
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
static {
|
|
2186
|
+
this.activateTopMessageCssVars = (height) => {
|
|
2187
|
+
this.setCssVarValue("--eui-app-top-message-height", `${height}px`);
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
static {
|
|
2191
|
+
this.activateToolbarCssVars = () => {
|
|
2192
|
+
this.setCssVar("--eui-app-toolbar-height-active", "--eui-app-toolbar-height");
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
static {
|
|
2196
|
+
this.activateFooterCssVars = () => {
|
|
2197
|
+
this.setCssVar("--eui-app-footer-height-active", "--eui-app-footer-height");
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
static {
|
|
2201
|
+
this.setHeaderShrinkCssVar = (active) => {
|
|
2202
|
+
if (active) {
|
|
2203
|
+
this.setCssVar("--eui-app-header-height-shrink", "--eui-app-header-height");
|
|
2204
|
+
} else {
|
|
2205
|
+
this.setCssVar("--eui-app-header-height-active", "--eui-app-header-height");
|
|
2206
|
+
}
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
static {
|
|
2210
|
+
this.activateSidebarCssVars = () => {
|
|
2211
|
+
this.setCssVar("--eui-app-sidebar-width-active", "--eui-app-sidebar-width");
|
|
2212
|
+
this.setCssVar("--eui-app-sidebar-width-close-active", "--eui-app-sidebar-width-close");
|
|
2213
|
+
};
|
|
2214
|
+
}
|
|
2215
|
+
static {
|
|
2216
|
+
this.removeSidebarCssVars = () => {
|
|
2217
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-header-height");
|
|
2218
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-footer-height");
|
|
2219
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-width");
|
|
2220
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-width-close");
|
|
2221
|
+
};
|
|
2222
|
+
}
|
|
2223
|
+
static {
|
|
2224
|
+
this.activateSidebarHeaderCssVars = () => {
|
|
2225
|
+
this.setCssVar("--eui-app-sidebar-header-height-active", "--eui-app-sidebar-header-height");
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
static {
|
|
2229
|
+
this.activateSidebarFooterCssVars = () => {
|
|
2230
|
+
this.setCssVar("--eui-app-sidebar-footer-height-active", "--eui-app-sidebar-footer-height");
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
/**
|
|
2234
|
+
* Gets the viewport height and width and multiple it by 1% to get a value for a vh/vw unit
|
|
2235
|
+
* Sets the value in the --eui-app-vh custom property to the root of the document
|
|
2236
|
+
* Sets the value in the --eui-app-vw custom property to the root of the document
|
|
2237
|
+
* Example for 100% height: calc(var(--eui-app-vh, 1vh) * 100);
|
|
2238
|
+
* Example for 50% height: calc(var(--eui-app-vh, 1vh) * 50);
|
|
2239
|
+
* Example for 50% width: calc(var(--eui-app-vw, 1vw) * 50);
|
|
2240
|
+
*/
|
|
2241
|
+
static setAppViewportCssVars() {
|
|
2242
|
+
const vh = window.innerHeight * 0.01;
|
|
2243
|
+
const vw = window.innerWidth * 0.01;
|
|
2244
|
+
this.setCssVarValue("--eui-app-vh", `${vh}px`);
|
|
2245
|
+
this.setCssVarValue("--eui-app-vw", `${vw}px`);
|
|
2246
|
+
}
|
|
2247
|
+
};
|
|
2248
|
+
|
|
2364
2249
|
// lib/services/permission/permission.service.mjs
|
|
2365
|
-
import { Injectable as
|
|
2250
|
+
import { Injectable as Injectable11, Optional as Optional6 } from "@angular/core";
|
|
2366
2251
|
import { EuiService, getUserRights } from "@eui/base";
|
|
2367
2252
|
import { of as of6 } from "rxjs";
|
|
2368
|
-
import * as
|
|
2253
|
+
import * as i013 from "@angular/core";
|
|
2369
2254
|
var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
2370
2255
|
constructor(log, store) {
|
|
2371
2256
|
super([]);
|
|
@@ -2571,14 +2456,14 @@ var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
|
2571
2456
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2572
2457
|
}
|
|
2573
2458
|
static {
|
|
2574
|
-
this.ɵfac =
|
|
2459
|
+
this.ɵfac = i013.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i013, type: _EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i013.ɵɵFactoryTarget.Injectable });
|
|
2575
2460
|
}
|
|
2576
2461
|
static {
|
|
2577
|
-
this.ɵprov =
|
|
2462
|
+
this.ɵprov = i013.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i013, type: _EuiPermissionService, providedIn: "root" });
|
|
2578
2463
|
}
|
|
2579
2464
|
};
|
|
2580
|
-
|
|
2581
|
-
type:
|
|
2465
|
+
i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i013, type: EuiPermissionService, decorators: [{
|
|
2466
|
+
type: Injectable11,
|
|
2582
2467
|
args: [{
|
|
2583
2468
|
providedIn: "root"
|
|
2584
2469
|
}]
|
|
@@ -2587,9 +2472,9 @@ i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
2587
2472
|
}] }, { type: StoreService }] });
|
|
2588
2473
|
|
|
2589
2474
|
// lib/services/dynamic-menu/dynamic-menu.service.mjs
|
|
2590
|
-
import { Injectable as
|
|
2475
|
+
import { Injectable as Injectable12 } from "@angular/core";
|
|
2591
2476
|
import { getUserState } from "@eui/base";
|
|
2592
|
-
import * as
|
|
2477
|
+
import * as i014 from "@angular/core";
|
|
2593
2478
|
var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
2594
2479
|
// TODO: it should be moved euiservice, or it should be static
|
|
2595
2480
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
@@ -2638,23 +2523,23 @@ var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
|
2638
2523
|
});
|
|
2639
2524
|
}
|
|
2640
2525
|
static {
|
|
2641
|
-
this.ɵfac =
|
|
2526
|
+
this.ɵfac = i014.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i014, type: _EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i014.ɵɵFactoryTarget.Injectable });
|
|
2642
2527
|
}
|
|
2643
2528
|
static {
|
|
2644
|
-
this.ɵprov =
|
|
2529
|
+
this.ɵprov = i014.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i014, type: _EuiDynamicMenuService, providedIn: "root" });
|
|
2645
2530
|
}
|
|
2646
2531
|
};
|
|
2647
|
-
|
|
2648
|
-
type:
|
|
2532
|
+
i014.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i014, type: EuiDynamicMenuService, decorators: [{
|
|
2533
|
+
type: Injectable12,
|
|
2649
2534
|
args: [{
|
|
2650
2535
|
providedIn: "root"
|
|
2651
2536
|
}]
|
|
2652
2537
|
}], ctorParameters: () => [{ type: EuiPermissionService }, { type: StoreService }] });
|
|
2653
2538
|
|
|
2654
2539
|
// lib/services/dynamic-component/dynamic-component.service.mjs
|
|
2655
|
-
import { Injectable as
|
|
2540
|
+
import { Injectable as Injectable13, InjectionToken as InjectionToken5 } from "@angular/core";
|
|
2656
2541
|
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
|
|
2657
|
-
import * as
|
|
2542
|
+
import * as i015 from "@angular/core";
|
|
2658
2543
|
var DYNAMIC_COMPONENT_CONFIG = new InjectionToken5("DYNAMIC_COMPONENT_CONFIG");
|
|
2659
2544
|
var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
2660
2545
|
constructor(componentFactoryResolver, injector, appRef) {
|
|
@@ -2709,28 +2594,28 @@ var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
|
2709
2594
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2710
2595
|
}
|
|
2711
2596
|
static {
|
|
2712
|
-
this.ɵfac =
|
|
2597
|
+
this.ɵfac = i015.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i015, type: _EuiDynamicComponentService, deps: [{ token: i015.ComponentFactoryResolver }, { token: i015.Injector }, { token: i015.ApplicationRef }], target: i015.ɵɵFactoryTarget.Injectable });
|
|
2713
2598
|
}
|
|
2714
2599
|
static {
|
|
2715
|
-
this.ɵprov =
|
|
2600
|
+
this.ɵprov = i015.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i015, type: _EuiDynamicComponentService });
|
|
2716
2601
|
}
|
|
2717
2602
|
};
|
|
2718
|
-
|
|
2719
|
-
type:
|
|
2720
|
-
}], ctorParameters: () => [{ type:
|
|
2603
|
+
i015.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i015, type: EuiDynamicComponentService, decorators: [{
|
|
2604
|
+
type: Injectable13
|
|
2605
|
+
}], ctorParameters: () => [{ type: i015.ComponentFactoryResolver }, { type: i015.Injector }, { type: i015.ApplicationRef }] });
|
|
2721
2606
|
|
|
2722
2607
|
// lib/services/eui-app-shell.service.mjs
|
|
2723
|
-
import { Inject as
|
|
2608
|
+
import { Inject as Inject7, Injectable as Injectable14, Optional as Optional7, PLATFORM_ID } from "@angular/core";
|
|
2724
2609
|
import { isPlatformBrowser } from "@angular/common";
|
|
2725
2610
|
import { BehaviorSubject as BehaviorSubject2, defer, firstValueFrom } from "rxjs";
|
|
2726
2611
|
import { EuiEuLanguages as EuiEuLanguages2, getActiveLang as getActiveLang2 } from "@eui/base";
|
|
2727
2612
|
import { NavigationEnd } from "@angular/router";
|
|
2728
|
-
import { distinctUntilChanged as distinctUntilChanged2, map as
|
|
2613
|
+
import { distinctUntilChanged as distinctUntilChanged2, map as map5 } from "rxjs/operators";
|
|
2729
2614
|
import isEqual from "lodash-es/isEqual";
|
|
2730
2615
|
import get from "lodash-es/get";
|
|
2731
|
-
import * as
|
|
2732
|
-
import * as
|
|
2733
|
-
import * as
|
|
2616
|
+
import * as i016 from "@angular/core";
|
|
2617
|
+
import * as i17 from "@angular/common/http";
|
|
2618
|
+
import * as i23 from "@angular/router";
|
|
2734
2619
|
var initialState = {
|
|
2735
2620
|
appName: "",
|
|
2736
2621
|
appShortName: "",
|
|
@@ -2791,7 +2676,6 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2791
2676
|
get breakpoint$() {
|
|
2792
2677
|
return this._breakpoint$.asObservable();
|
|
2793
2678
|
}
|
|
2794
|
-
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
2795
2679
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2796
2680
|
get breakpoints$() {
|
|
2797
2681
|
return this._breakpoints$.asObservable();
|
|
@@ -2875,9 +2759,6 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2875
2759
|
this.router = router;
|
|
2876
2760
|
this.storeService = storeService;
|
|
2877
2761
|
this.i18nService = i18nService;
|
|
2878
|
-
this.openModalId = new BehaviorSubject2("");
|
|
2879
|
-
this.activeModals = [];
|
|
2880
|
-
this.cssVars = [];
|
|
2881
2762
|
let stateWithConfig = initialState;
|
|
2882
2763
|
const languages = config?.i18n?.i18nService?.languages || initialState.languages;
|
|
2883
2764
|
const defaultLanguage = config?.i18n?.i18nService?.defaultLanguage || initialState.activeLanguage;
|
|
@@ -2936,13 +2817,12 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2936
2817
|
*
|
|
2937
2818
|
* @param key can be 'key' or 'key.sub.sub'
|
|
2938
2819
|
*/
|
|
2939
|
-
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
2940
2820
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2941
2821
|
getState(key) {
|
|
2942
2822
|
return defer(() => (
|
|
2943
2823
|
// check if key exists
|
|
2944
2824
|
key ? this.state$.pipe(
|
|
2945
|
-
|
|
2825
|
+
map5((state) => get(state, key)),
|
|
2946
2826
|
// filter((state) => state),
|
|
2947
2827
|
distinctUntilChanged2((x, y) => isEqual(x, y))
|
|
2948
2828
|
) : this.state$
|
|
@@ -2958,25 +2838,14 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2958
2838
|
...this.state,
|
|
2959
2839
|
isDimmerActive: !isActive
|
|
2960
2840
|
});
|
|
2961
|
-
|
|
2841
|
+
CssUtils.activateEditModeCssVars(!isActive);
|
|
2962
2842
|
}
|
|
2963
2843
|
setDimmerActiveState(activeState) {
|
|
2964
2844
|
this.setState({
|
|
2965
2845
|
...this.state,
|
|
2966
2846
|
isDimmerActive: activeState
|
|
2967
2847
|
});
|
|
2968
|
-
|
|
2969
|
-
}
|
|
2970
|
-
activateEditModeCssVars(isActive) {
|
|
2971
|
-
if (isActive) {
|
|
2972
|
-
this._setCssVarValue("--eui-docpage-navigation-z-index", "inherit");
|
|
2973
|
-
this._setCssVarValue("--eui-z-index-sidebar", "inherit");
|
|
2974
|
-
this._setCssVarValue("--eui-z-index-root", "inherit");
|
|
2975
|
-
} else {
|
|
2976
|
-
this._setCssVarValue("--eui-docpage-navigation-z-index", "2");
|
|
2977
|
-
this._setCssVarValue("--eui-z-index-sidebar", "1044");
|
|
2978
|
-
this._setCssVarValue("--eui-z-index-root", "1");
|
|
2979
|
-
}
|
|
2848
|
+
CssUtils.activateEditModeCssVars(activeState);
|
|
2980
2849
|
}
|
|
2981
2850
|
// --------------
|
|
2982
2851
|
// public methods
|
|
@@ -2995,42 +2864,42 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2995
2864
|
hasSidebar: true
|
|
2996
2865
|
});
|
|
2997
2866
|
if (!this.state.isSidebarHidden) {
|
|
2998
|
-
|
|
2867
|
+
CssUtils.activateSidebarCssVars();
|
|
2999
2868
|
}
|
|
3000
2869
|
}
|
|
3001
2870
|
activateSidebarHeader() {
|
|
3002
|
-
|
|
2871
|
+
CssUtils.activateSidebarHeaderCssVars();
|
|
3003
2872
|
}
|
|
3004
2873
|
activateSidebarFooter() {
|
|
3005
|
-
|
|
2874
|
+
CssUtils.activateSidebarFooterCssVars();
|
|
3006
2875
|
}
|
|
3007
2876
|
activateHeader() {
|
|
3008
2877
|
this.setState({
|
|
3009
2878
|
...this.state,
|
|
3010
2879
|
hasHeader: true
|
|
3011
2880
|
});
|
|
3012
|
-
|
|
2881
|
+
CssUtils.activateHeaderCssVars();
|
|
3013
2882
|
}
|
|
3014
2883
|
activateBreadcrumb() {
|
|
3015
2884
|
this.setState({
|
|
3016
2885
|
...this.state,
|
|
3017
2886
|
hasBreadcrumb: true
|
|
3018
2887
|
});
|
|
3019
|
-
|
|
2888
|
+
CssUtils.activateBreadcrumbCssVars();
|
|
3020
2889
|
}
|
|
3021
2890
|
activateTopMessage(height) {
|
|
3022
2891
|
this.setState({
|
|
3023
2892
|
...this.state,
|
|
3024
2893
|
hasTopMessage: true
|
|
3025
2894
|
});
|
|
3026
|
-
|
|
2895
|
+
CssUtils.activateTopMessageCssVars(height);
|
|
3027
2896
|
}
|
|
3028
2897
|
activateToolbar() {
|
|
3029
2898
|
this.setState({
|
|
3030
2899
|
...this.state,
|
|
3031
2900
|
hasToolbar: true
|
|
3032
2901
|
});
|
|
3033
|
-
|
|
2902
|
+
CssUtils.activateToolbarCssVars();
|
|
3034
2903
|
}
|
|
3035
2904
|
activateToolbarMenu() {
|
|
3036
2905
|
this.setState({
|
|
@@ -3038,231 +2907,29 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3038
2907
|
hasToolbarMenu: true
|
|
3039
2908
|
});
|
|
3040
2909
|
}
|
|
3041
|
-
fetchCssVars() {
|
|
3042
|
-
const cssVarNames = [
|
|
3043
|
-
"--eui-app-header-height-default",
|
|
3044
|
-
"--eui-app-header-height-active",
|
|
3045
|
-
"--eui-app-header-height-shrink",
|
|
3046
|
-
"--eui-app-breadcrumb-height-default",
|
|
3047
|
-
"--eui-app-breadcrumb-height-active",
|
|
3048
|
-
"--eui-app-top-message-height-default",
|
|
3049
|
-
"--eui-app-top-message-height-active",
|
|
3050
|
-
"--eui-app-top-message-height-shrink",
|
|
3051
|
-
"--eui-app-toolbar-height-default",
|
|
3052
|
-
"--eui-app-toolbar-height-active",
|
|
3053
|
-
"--eui-app-sidebar-width-default",
|
|
3054
|
-
"--eui-app-sidebar-width-active",
|
|
3055
|
-
"--eui-app-sidebar-width-close-default",
|
|
3056
|
-
"--eui-app-sidebar-width-close-active",
|
|
3057
|
-
"--eui-app-sidebar-header-height-default",
|
|
3058
|
-
"--eui-app-sidebar-header-height-active",
|
|
3059
|
-
"--eui-app-sidebar-footer-height-default",
|
|
3060
|
-
"--eui-app-sidebar-footer-height-active"
|
|
3061
|
-
];
|
|
3062
|
-
this.cssVars = cssVarNames.map((v) => ({ key: v, value: this.getCssVarValue(v) }));
|
|
3063
|
-
}
|
|
3064
|
-
initCssVars() {
|
|
3065
|
-
this.setCssVar("--eui-app-header-height-default", "--eui-app-header-height");
|
|
3066
|
-
this.setCssVar("--eui-app-breadcrumb-height-default", "--eui-app-breadcrumb-height");
|
|
3067
|
-
this.setCssVar("--eui-app-top-message-height-default", "--eui-app-top-message-height");
|
|
3068
|
-
this.setCssVar("--eui-app-toolbar-height-default", "--eui-app-toolbar-height");
|
|
3069
|
-
this.setCssVar("--eui-app-sidebar-width-default", "--eui-app-sidebar-width");
|
|
3070
|
-
this.setCssVar("--eui-app-sidebar-width-close-default", "--eui-app-sidebar-width-close");
|
|
3071
|
-
this.setCssVar("--eui-app-sidebar-header-height-default", "--eui-app-sidebar-header-height");
|
|
3072
|
-
this.setCssVar("--eui-app-sidebar-footer-height-default", "--eui-app-sidebar-footer-height");
|
|
3073
|
-
}
|
|
3074
|
-
activateHeaderCssVars() {
|
|
3075
|
-
this.setCssVar("--eui-app-header-height-active", "--eui-app-header-height");
|
|
3076
|
-
}
|
|
3077
|
-
activateBreadcrumbCssVars() {
|
|
3078
|
-
this.setCssVar("--eui-app-breadcrumb-height-active", "--eui-app-breadcrumb-height");
|
|
3079
|
-
}
|
|
3080
|
-
activateTopMessageCssVars(height) {
|
|
3081
|
-
this._setCssVarValue("--eui-app-top-message-height", `${height}px`);
|
|
3082
|
-
}
|
|
3083
|
-
activateToolbarCssVars() {
|
|
3084
|
-
this.setCssVar("--eui-app-toolbar-height-active", "--eui-app-toolbar-height");
|
|
3085
|
-
}
|
|
3086
|
-
activateFooterCssVars() {
|
|
3087
|
-
this.setCssVar("--eui-app-footer-height-active", "--eui-app-footer-height");
|
|
3088
|
-
}
|
|
3089
|
-
setHeaderShrinkCssVar(active) {
|
|
3090
|
-
if (active) {
|
|
3091
|
-
this.setCssVar("--eui-app-header-height-shrink", "--eui-app-header-height");
|
|
3092
|
-
} else {
|
|
3093
|
-
this.setCssVar("--eui-app-header-height-active", "--eui-app-header-height");
|
|
3094
|
-
}
|
|
3095
|
-
}
|
|
3096
|
-
activateSidebarCssVars() {
|
|
3097
|
-
this.setCssVar("--eui-app-sidebar-width-active", "--eui-app-sidebar-width");
|
|
3098
|
-
this.setCssVar("--eui-app-sidebar-width-close-active", "--eui-app-sidebar-width-close");
|
|
3099
|
-
}
|
|
3100
|
-
removeSidebarCssVars() {
|
|
3101
|
-
document.documentElement.style.removeProperty("--eui-app-sidebar-header-height");
|
|
3102
|
-
document.documentElement.style.removeProperty("--eui-app-sidebar-footer-height");
|
|
3103
|
-
document.documentElement.style.removeProperty("--eui-app-sidebar-width");
|
|
3104
|
-
document.documentElement.style.removeProperty("--eui-app-sidebar-width-close");
|
|
3105
|
-
}
|
|
3106
|
-
activateSidebarHeaderCssVars() {
|
|
3107
|
-
this.setCssVar("--eui-app-sidebar-header-height-active", "--eui-app-sidebar-header-height");
|
|
3108
|
-
}
|
|
3109
|
-
activateSidebarFooterCssVars() {
|
|
3110
|
-
this.setCssVar("--eui-app-sidebar-footer-height-active", "--eui-app-sidebar-footer-height");
|
|
3111
|
-
}
|
|
3112
2910
|
/**
|
|
3113
|
-
*
|
|
3114
|
-
* Sets the value in the --eui-app-vh custom property to the root of the document
|
|
3115
|
-
* Sets the value in the --eui-app-vw custom property to the root of the document
|
|
3116
|
-
* Example for 100% height: calc(var(--eui-app-vh, 1vh) * 100);
|
|
3117
|
-
* Example for 50% height: calc(var(--eui-app-vh, 1vh) * 50);
|
|
3118
|
-
* Example for 50% width: calc(var(--eui-app-vw, 1vw) * 50);
|
|
3119
|
-
*/
|
|
3120
|
-
setAppViewportCssVars() {
|
|
3121
|
-
const vh = window.innerHeight * 0.01;
|
|
3122
|
-
const vw = window.innerWidth * 0.01;
|
|
3123
|
-
this._setCssVarValue("--eui-app-vh", `${vh}px`);
|
|
3124
|
-
this._setCssVarValue("--eui-app-vw", `${vw}px`);
|
|
3125
|
-
}
|
|
3126
|
-
/**
|
|
3127
|
-
* Returns the current value of --eui-base-font-size CSS variable
|
|
2911
|
+
* Returns the current value of --eui-f-size-base CSS variable
|
|
3128
2912
|
*/
|
|
3129
2913
|
getBaseFontSize() {
|
|
3130
|
-
return this.state.appBaseFontSize ||
|
|
2914
|
+
return this.state.appBaseFontSize || CssUtils.getCssVarValue("--eui-f-size-base");
|
|
3131
2915
|
}
|
|
3132
2916
|
/**
|
|
3133
|
-
* Updates the current value of --eui-
|
|
2917
|
+
* Updates the current value of --eui-f-size-base CSS variable and the UIState appBaseFontSize
|
|
3134
2918
|
*/
|
|
3135
2919
|
setBaseFontSize(newsize) {
|
|
3136
2920
|
this.setState({
|
|
3137
2921
|
...this.state,
|
|
3138
2922
|
appBaseFontSize: newsize
|
|
3139
2923
|
}, false);
|
|
3140
|
-
|
|
3141
|
-
}
|
|
3142
|
-
/**
|
|
3143
|
-
* @deprecated don't remove as it's used for external legacy project under v17 (csdr-eui-legacy) to support MWP transition
|
|
3144
|
-
*/
|
|
3145
|
-
openModal(modalId) {
|
|
3146
|
-
document.body.classList.add("modal-open");
|
|
3147
|
-
if (!modalId) {
|
|
3148
|
-
modalId = "single_modal";
|
|
3149
|
-
}
|
|
3150
|
-
this.activeModals.push({
|
|
3151
|
-
id: modalId,
|
|
3152
|
-
isOpen: true
|
|
3153
|
-
});
|
|
3154
|
-
setTimeout(() => {
|
|
3155
|
-
const el = document.getElementById(modalId + "-close-button");
|
|
3156
|
-
if (el) {
|
|
3157
|
-
el.focus();
|
|
3158
|
-
}
|
|
3159
|
-
}, 100);
|
|
3160
|
-
}
|
|
3161
|
-
/**
|
|
3162
|
-
* @deprecated don't remove as it's used for external legacy project under v17 (csdr-eui-legacy) to support MWP transition
|
|
3163
|
-
*/
|
|
3164
|
-
openMessageBox(messageBoxId) {
|
|
3165
|
-
if (!messageBoxId) {
|
|
3166
|
-
messageBoxId = "messagebox_modal";
|
|
3167
|
-
}
|
|
3168
|
-
this.openModal(messageBoxId);
|
|
3169
|
-
}
|
|
3170
|
-
/**
|
|
3171
|
-
* @deprecated don't remove as it's used for external legacy project under v17 (csdr-eui-legacy) to support MWP transition
|
|
3172
|
-
*/
|
|
3173
|
-
closeMessageBox(messageBoxId) {
|
|
3174
|
-
if (!messageBoxId) {
|
|
3175
|
-
messageBoxId = "messagebox_modal";
|
|
3176
|
-
}
|
|
3177
|
-
this.closeModal(messageBoxId);
|
|
3178
|
-
}
|
|
3179
|
-
/**
|
|
3180
|
-
* @deprecated don't remove as it's used for external legacy project under v17 (csdr-eui-legacy) to support MWP transition
|
|
3181
|
-
*/
|
|
3182
|
-
isModalOpen(modalId) {
|
|
3183
|
-
if (!modalId) {
|
|
3184
|
-
modalId = "single_modal";
|
|
3185
|
-
}
|
|
3186
|
-
if (this.activeModals.length) {
|
|
3187
|
-
const modalIndex = this.findModalIndex(modalId);
|
|
3188
|
-
if (modalIndex !== -1) {
|
|
3189
|
-
return this.activeModals[modalIndex].isOpen;
|
|
3190
|
-
}
|
|
3191
|
-
}
|
|
3192
|
-
return false;
|
|
3193
|
-
}
|
|
3194
|
-
/**
|
|
3195
|
-
* @deprecated don't remove as it's used for external legacy project under v17 (csdr-eui-legacy) to support MWP transition
|
|
3196
|
-
*/
|
|
3197
|
-
closeModal(modalId) {
|
|
3198
|
-
if (!modalId) {
|
|
3199
|
-
modalId = "single_modal";
|
|
3200
|
-
}
|
|
3201
|
-
const index = this.findModalIndex(modalId);
|
|
3202
|
-
if (index >= 0) {
|
|
3203
|
-
this.activeModals.splice(index, 1);
|
|
3204
|
-
}
|
|
3205
|
-
if (this.activeModals && this.activeModals.length <= 0) {
|
|
3206
|
-
document.body.classList.remove("modal-open");
|
|
3207
|
-
} else {
|
|
3208
|
-
const lastModalId = this.activeModals[this.activeModals.length - 1].id;
|
|
3209
|
-
if (lastModalId) {
|
|
3210
|
-
setTimeout(() => {
|
|
3211
|
-
const el = document.getElementById(lastModalId + "-close-button");
|
|
3212
|
-
if (el) {
|
|
3213
|
-
el.focus();
|
|
3214
|
-
}
|
|
3215
|
-
}, 100);
|
|
3216
|
-
}
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
/**
|
|
3220
|
-
* @deprecated don't remove as it's used for external legacy project under v17 (csdr-eui-legacy) to support MWP transition
|
|
3221
|
-
*/
|
|
3222
|
-
findModalIndex(modalId) {
|
|
3223
|
-
let index = -1;
|
|
3224
|
-
if (this.activeModals.length) {
|
|
3225
|
-
for (let i = 0; i < this.activeModals.length; i++) {
|
|
3226
|
-
if (this.activeModals[i].id === modalId) {
|
|
3227
|
-
index = i;
|
|
3228
|
-
break;
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
}
|
|
3232
|
-
return index;
|
|
2924
|
+
CssUtils.setCssVarValue("--eui-f-size-base", newsize);
|
|
3233
2925
|
}
|
|
3234
2926
|
// ---------------
|
|
3235
2927
|
// private getters
|
|
3236
2928
|
// ---------------
|
|
3237
|
-
getCssVarValue(inputProperty) {
|
|
3238
|
-
return getComputedStyle(document.documentElement).getPropertyValue(inputProperty);
|
|
3239
|
-
}
|
|
3240
|
-
setCssVar(inputProperty, outputProperty) {
|
|
3241
|
-
const cssVarValue = this.cssVars.filter((v) => v.key === inputProperty)[0].value;
|
|
3242
|
-
this._setCssVarValue(outputProperty, cssVarValue);
|
|
3243
|
-
}
|
|
3244
|
-
_setCssVarValue(varName, varValue) {
|
|
3245
|
-
document.documentElement.style.setProperty(varName, varValue);
|
|
3246
|
-
}
|
|
3247
2929
|
getWrapperClasses(state, breakpoint) {
|
|
3248
2930
|
const classes = [];
|
|
3249
2931
|
classes.push(breakpoint);
|
|
3250
2932
|
if (state.hasSidebar) {
|
|
3251
|
-
if (state.isSidebarOpen && (state.isSidebarActive || state.isSidebarInnerActive)) {
|
|
3252
|
-
classes.push("sidebar-state-open");
|
|
3253
|
-
}
|
|
3254
|
-
if (!state.isSidebarOpen && (state.isSidebarActive || state.isSidebarInnerActive)) {
|
|
3255
|
-
classes.push("sidebar-state-close");
|
|
3256
|
-
}
|
|
3257
|
-
if (state.isSidebarActive) {
|
|
3258
|
-
classes.push("sidebar-active");
|
|
3259
|
-
}
|
|
3260
|
-
if (state.isSidebarInnerActive) {
|
|
3261
|
-
classes.push("sidebar-inner-active");
|
|
3262
|
-
}
|
|
3263
|
-
if (state.isSidebarStateCloseWithIcons) {
|
|
3264
|
-
classes.push("sidebar-state-close-with-icons");
|
|
3265
|
-
}
|
|
3266
2933
|
if (state.isSidebarHidden) {
|
|
3267
2934
|
classes.push("sidebar--hidden");
|
|
3268
2935
|
}
|
|
@@ -3275,16 +2942,13 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3275
2942
|
classes.push("sidebar--hover");
|
|
3276
2943
|
}
|
|
3277
2944
|
}
|
|
3278
|
-
if (state.deviceInfo
|
|
2945
|
+
if (state.deviceInfo?.isFF) {
|
|
3279
2946
|
classes.push("ff");
|
|
3280
2947
|
}
|
|
3281
|
-
if (state.deviceInfo
|
|
2948
|
+
if (state.deviceInfo?.isIE) {
|
|
3282
2949
|
classes.push("ie");
|
|
3283
2950
|
}
|
|
3284
|
-
if (state.deviceInfo
|
|
3285
|
-
classes.push("ie11");
|
|
3286
|
-
}
|
|
3287
|
-
if (state.deviceInfo && state.deviceInfo.isChrome) {
|
|
2951
|
+
if (state.deviceInfo?.isChrome) {
|
|
3288
2952
|
classes.push("chrome");
|
|
3289
2953
|
}
|
|
3290
2954
|
return classes.join(" ");
|
|
@@ -3360,32 +3024,32 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3360
3024
|
});
|
|
3361
3025
|
}
|
|
3362
3026
|
static {
|
|
3363
|
-
this.ɵfac =
|
|
3027
|
+
this.ɵfac = i016.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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
3028
|
}
|
|
3365
3029
|
static {
|
|
3366
|
-
this.ɵprov =
|
|
3030
|
+
this.ɵprov = i016.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i016, type: _EuiAppShellService, providedIn: "root" });
|
|
3367
3031
|
}
|
|
3368
3032
|
};
|
|
3369
|
-
|
|
3370
|
-
type:
|
|
3033
|
+
i016.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i016, type: EuiAppShellService, decorators: [{
|
|
3034
|
+
type: Injectable14,
|
|
3371
3035
|
args: [{
|
|
3372
3036
|
providedIn: "root"
|
|
3373
3037
|
}]
|
|
3374
3038
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3375
3039
|
type: Optional7
|
|
3376
3040
|
}, {
|
|
3377
|
-
type:
|
|
3041
|
+
type: Inject7,
|
|
3378
3042
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
3379
|
-
}] }, { type:
|
|
3380
|
-
type:
|
|
3043
|
+
}] }, { type: i17.HttpClient }, { type: void 0, decorators: [{
|
|
3044
|
+
type: Inject7,
|
|
3381
3045
|
args: [PLATFORM_ID]
|
|
3382
|
-
}] }, { type:
|
|
3046
|
+
}] }, { type: i23.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3383
3047
|
type: Optional7
|
|
3384
3048
|
}] }] });
|
|
3385
3049
|
|
|
3386
3050
|
// lib/services/eui-timezone.service.mjs
|
|
3387
|
-
import { Injectable as
|
|
3388
|
-
import * as
|
|
3051
|
+
import { Injectable as Injectable15 } from "@angular/core";
|
|
3052
|
+
import * as i017 from "@angular/core";
|
|
3389
3053
|
var EUI_COUNTRIES = {
|
|
3390
3054
|
AF: "Afghanistan",
|
|
3391
3055
|
AX: "Aland Islands",
|
|
@@ -4093,16 +3757,67 @@ var EuiTimezoneService = class _EuiTimezoneService {
|
|
|
4093
3757
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4094
3758
|
}
|
|
4095
3759
|
static {
|
|
4096
|
-
this.ɵfac =
|
|
3760
|
+
this.ɵfac = i017.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i017, type: _EuiTimezoneService, deps: [], target: i017.ɵɵFactoryTarget.Injectable });
|
|
4097
3761
|
}
|
|
4098
3762
|
static {
|
|
4099
|
-
this.ɵprov =
|
|
3763
|
+
this.ɵprov = i017.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i017, type: _EuiTimezoneService });
|
|
4100
3764
|
}
|
|
4101
3765
|
};
|
|
4102
|
-
|
|
4103
|
-
type:
|
|
3766
|
+
i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i017, type: EuiTimezoneService, decorators: [{
|
|
3767
|
+
type: Injectable15
|
|
4104
3768
|
}] });
|
|
4105
3769
|
|
|
3770
|
+
// lib/services/eui-theme.service.mjs
|
|
3771
|
+
import { Inject as Inject8, Injectable as Injectable16, Optional as Optional8 } from "@angular/core";
|
|
3772
|
+
import { map as map6, ReplaySubject } from "rxjs";
|
|
3773
|
+
import * as i018 from "@angular/core";
|
|
3774
|
+
var EuiTheme;
|
|
3775
|
+
(function(EuiTheme2) {
|
|
3776
|
+
EuiTheme2["EC"] = "ec";
|
|
3777
|
+
EuiTheme2["EU"] = "eu";
|
|
3778
|
+
EuiTheme2["EUI"] = "eui";
|
|
3779
|
+
})(EuiTheme || (EuiTheme = {}));
|
|
3780
|
+
var EuiThemeService = class _EuiThemeService {
|
|
3781
|
+
constructor(config) {
|
|
3782
|
+
this.config = config;
|
|
3783
|
+
this.theme = EuiTheme.EC;
|
|
3784
|
+
this.themeSubject = new ReplaySubject();
|
|
3785
|
+
this.theme$ = this.themeSubject.asObservable();
|
|
3786
|
+
this.isEU$ = this.theme$.pipe(map6((theme2) => EuiTheme.EU === theme2));
|
|
3787
|
+
this.isEC$ = this.theme$.pipe(map6((theme2) => EuiTheme.EC === theme2));
|
|
3788
|
+
const theme = this.config?.eui?.theme || EuiTheme.EC;
|
|
3789
|
+
this.setTheme(theme);
|
|
3790
|
+
}
|
|
3791
|
+
isECTheme() {
|
|
3792
|
+
return EuiTheme.EC === this.theme;
|
|
3793
|
+
}
|
|
3794
|
+
isEUTheme() {
|
|
3795
|
+
return EuiTheme.EU === this.theme;
|
|
3796
|
+
}
|
|
3797
|
+
getTheme() {
|
|
3798
|
+
return this.theme;
|
|
3799
|
+
}
|
|
3800
|
+
setTheme(theme) {
|
|
3801
|
+
this.theme = theme;
|
|
3802
|
+
this.themeSubject.next(theme);
|
|
3803
|
+
}
|
|
3804
|
+
static {
|
|
3805
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i018, type: _EuiThemeService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
3806
|
+
}
|
|
3807
|
+
static {
|
|
3808
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i018, type: _EuiThemeService, providedIn: "root" });
|
|
3809
|
+
}
|
|
3810
|
+
};
|
|
3811
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i018, type: EuiThemeService, decorators: [{
|
|
3812
|
+
type: Injectable16,
|
|
3813
|
+
args: [{ providedIn: "root" }]
|
|
3814
|
+
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3815
|
+
type: Optional8
|
|
3816
|
+
}, {
|
|
3817
|
+
type: Inject8,
|
|
3818
|
+
args: [GLOBAL_CONFIG_TOKEN]
|
|
3819
|
+
}] }] });
|
|
3820
|
+
|
|
4106
3821
|
// lib/services/storage/storage.service.mjs
|
|
4107
3822
|
var StorageService = class {
|
|
4108
3823
|
};
|
|
@@ -4170,8 +3885,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
4170
3885
|
};
|
|
4171
3886
|
|
|
4172
3887
|
// lib/services/storage/local-storage.service.mjs
|
|
4173
|
-
import { Injectable as
|
|
4174
|
-
import * as
|
|
3888
|
+
import { Injectable as Injectable17, Optional as Optional9 } from "@angular/core";
|
|
3889
|
+
import * as i019 from "@angular/core";
|
|
4175
3890
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
4176
3891
|
static {
|
|
4177
3892
|
this.NAME = "LocalStorageService";
|
|
@@ -4235,21 +3950,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
4235
3950
|
}
|
|
4236
3951
|
}
|
|
4237
3952
|
static {
|
|
4238
|
-
this.ɵfac =
|
|
3953
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i019, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4239
3954
|
}
|
|
4240
3955
|
static {
|
|
4241
|
-
this.ɵprov =
|
|
3956
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i019, type: _LocalStorageService });
|
|
4242
3957
|
}
|
|
4243
3958
|
};
|
|
4244
|
-
|
|
4245
|
-
type:
|
|
3959
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i019, type: LocalStorageService, decorators: [{
|
|
3960
|
+
type: Injectable17
|
|
4246
3961
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4247
|
-
type:
|
|
3962
|
+
type: Optional9
|
|
4248
3963
|
}] }] });
|
|
4249
3964
|
|
|
4250
3965
|
// lib/services/storage/session-storage.service.mjs
|
|
4251
|
-
import { Injectable as
|
|
4252
|
-
import * as
|
|
3966
|
+
import { Injectable as Injectable18, Optional as Optional10 } from "@angular/core";
|
|
3967
|
+
import * as i020 from "@angular/core";
|
|
4253
3968
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
4254
3969
|
static {
|
|
4255
3970
|
this.NAME = "SessionStorageService";
|
|
@@ -4313,24 +4028,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4313
4028
|
}
|
|
4314
4029
|
}
|
|
4315
4030
|
static {
|
|
4316
|
-
this.ɵfac =
|
|
4031
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i020, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i020.ɵɵFactoryTarget.Injectable });
|
|
4317
4032
|
}
|
|
4318
4033
|
static {
|
|
4319
|
-
this.ɵprov =
|
|
4034
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i020, type: _SessionStorageService });
|
|
4320
4035
|
}
|
|
4321
4036
|
};
|
|
4322
|
-
|
|
4323
|
-
type:
|
|
4037
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i020, type: SessionStorageService, decorators: [{
|
|
4038
|
+
type: Injectable18
|
|
4324
4039
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4325
|
-
type:
|
|
4040
|
+
type: Optional10
|
|
4326
4041
|
}] }] });
|
|
4327
4042
|
|
|
4328
4043
|
// lib/services/storage/local-forage.service.mjs
|
|
4329
|
-
import { Inject as
|
|
4044
|
+
import { Inject as Inject9, Injectable as Injectable19, InjectionToken as InjectionToken6, Optional as Optional11 } from "@angular/core";
|
|
4330
4045
|
import { from as from2 } from "rxjs";
|
|
4331
|
-
import { take as take3, tap as
|
|
4046
|
+
import { take as take3, tap as tap5 } from "rxjs/operators";
|
|
4332
4047
|
import * as lf from "localforage";
|
|
4333
|
-
import * as
|
|
4048
|
+
import * as i021 from "@angular/core";
|
|
4334
4049
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4335
4050
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4336
4051
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4358,7 +4073,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4358
4073
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4359
4074
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4360
4075
|
ready() {
|
|
4361
|
-
return from2(localForage.ready()).pipe(take3(1),
|
|
4076
|
+
return from2(localForage.ready()).pipe(take3(1), tap5({
|
|
4362
4077
|
next: () => {
|
|
4363
4078
|
},
|
|
4364
4079
|
error: (err) => {
|
|
@@ -4376,7 +4091,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4376
4091
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4377
4092
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4378
4093
|
get(key) {
|
|
4379
|
-
return from2(localForage.getItem(key)).pipe(take3(1),
|
|
4094
|
+
return from2(localForage.getItem(key)).pipe(take3(1), tap5(() => {
|
|
4380
4095
|
}, (err) => {
|
|
4381
4096
|
if (this.log) {
|
|
4382
4097
|
this.log.error(this.name(), "get", err);
|
|
@@ -4392,7 +4107,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4392
4107
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4393
4108
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4394
4109
|
set(key, value) {
|
|
4395
|
-
return from2(localForage.setItem(key, value)).pipe(take3(1),
|
|
4110
|
+
return from2(localForage.setItem(key, value)).pipe(take3(1), tap5({
|
|
4396
4111
|
next: () => {
|
|
4397
4112
|
},
|
|
4398
4113
|
error: (err) => {
|
|
@@ -4410,7 +4125,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4410
4125
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4411
4126
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4412
4127
|
remove(key) {
|
|
4413
|
-
return from2(localForage.removeItem(key)).pipe(take3(1),
|
|
4128
|
+
return from2(localForage.removeItem(key)).pipe(take3(1), tap5({
|
|
4414
4129
|
next: () => {
|
|
4415
4130
|
},
|
|
4416
4131
|
error: (err) => {
|
|
@@ -4421,31 +4136,31 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4421
4136
|
}));
|
|
4422
4137
|
}
|
|
4423
4138
|
static {
|
|
4424
|
-
this.ɵfac =
|
|
4139
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i021, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4425
4140
|
}
|
|
4426
4141
|
static {
|
|
4427
|
-
this.ɵprov =
|
|
4142
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i021, type: _LocalForageService });
|
|
4428
4143
|
}
|
|
4429
4144
|
};
|
|
4430
|
-
|
|
4431
|
-
type:
|
|
4145
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i021, type: LocalForageService, decorators: [{
|
|
4146
|
+
type: Injectable19
|
|
4432
4147
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4433
|
-
type:
|
|
4148
|
+
type: Inject9,
|
|
4434
4149
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4435
4150
|
}, {
|
|
4436
|
-
type:
|
|
4151
|
+
type: Optional11
|
|
4437
4152
|
}] }, { type: LogService, decorators: [{
|
|
4438
|
-
type:
|
|
4153
|
+
type: Optional11
|
|
4439
4154
|
}] }] });
|
|
4440
4155
|
|
|
4441
4156
|
// lib/services/locale/locale.service.mjs
|
|
4442
|
-
import { Inject as
|
|
4157
|
+
import { Inject as Inject10, Injectable as Injectable20, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional12 } from "@angular/core";
|
|
4443
4158
|
import { getLocaleId } from "@angular/common";
|
|
4444
4159
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4445
4160
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4446
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4161
|
+
import { catchError as catchError4, filter as filter2, map as map7, switchMap as switchMap3, take as take4, takeUntil, tap as tap6 } from "rxjs/operators";
|
|
4447
4162
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4448
|
-
import * as
|
|
4163
|
+
import * as i022 from "@angular/core";
|
|
4449
4164
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4450
4165
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4451
4166
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4493,7 +4208,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4493
4208
|
return this.store.select(selector).pipe(
|
|
4494
4209
|
takeUntil(this.subNotifier),
|
|
4495
4210
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4496
|
-
|
|
4211
|
+
map7((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4497
4212
|
);
|
|
4498
4213
|
}
|
|
4499
4214
|
/**
|
|
@@ -4509,7 +4224,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4509
4224
|
this.bindTranslateServiceLangChangeToState();
|
|
4510
4225
|
}
|
|
4511
4226
|
const availableLocales = state?.available || this.config?.available || this.getBrowserLocales() || [this.currentLocale];
|
|
4512
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier),
|
|
4227
|
+
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap6(() => this.updateState(state || { id: this.currentLocale })));
|
|
4513
4228
|
}
|
|
4514
4229
|
/**
|
|
4515
4230
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4598,7 +4313,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4598
4313
|
if (this.log) {
|
|
4599
4314
|
this.logger.debug(error);
|
|
4600
4315
|
}
|
|
4601
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4316
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map7(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4602
4317
|
if (this.log) {
|
|
4603
4318
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4604
4319
|
}
|
|
@@ -4607,8 +4322,8 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4607
4322
|
})
|
|
4608
4323
|
)),
|
|
4609
4324
|
// update the "available" array attribute with newly registered
|
|
4610
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4611
|
-
const available = state
|
|
4325
|
+
switchMap3((id) => this.getState().pipe(take4(1), map7((state) => {
|
|
4326
|
+
const available = state["available"] ? state["available"] : [];
|
|
4612
4327
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4613
4328
|
})))
|
|
4614
4329
|
).subscribe((state) => {
|
|
@@ -4630,41 +4345,41 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4630
4345
|
return browserLocales.map((locale) => locale.trim());
|
|
4631
4346
|
}
|
|
4632
4347
|
static {
|
|
4633
|
-
this.ɵfac =
|
|
4348
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", 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
4349
|
}
|
|
4635
4350
|
static {
|
|
4636
|
-
this.ɵprov =
|
|
4351
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i022, type: _LocaleService, providedIn: "root" });
|
|
4637
4352
|
}
|
|
4638
4353
|
};
|
|
4639
|
-
|
|
4640
|
-
type:
|
|
4354
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i022, type: LocaleService, decorators: [{
|
|
4355
|
+
type: Injectable20,
|
|
4641
4356
|
args: [{
|
|
4642
4357
|
providedIn: "root"
|
|
4643
4358
|
}]
|
|
4644
4359
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4645
|
-
type:
|
|
4360
|
+
type: Inject10,
|
|
4646
4361
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4647
4362
|
}] }, { type: void 0, decorators: [{
|
|
4648
|
-
type:
|
|
4363
|
+
type: Inject10,
|
|
4649
4364
|
args: [LOCALE_ID]
|
|
4650
4365
|
}] }, { type: void 0, decorators: [{
|
|
4651
|
-
type:
|
|
4366
|
+
type: Optional12
|
|
4652
4367
|
}, {
|
|
4653
|
-
type:
|
|
4368
|
+
type: Inject10,
|
|
4654
4369
|
args: [LOCALE_ID_MAPPER]
|
|
4655
4370
|
}] }, { type: I18nService, decorators: [{
|
|
4656
|
-
type:
|
|
4371
|
+
type: Optional12
|
|
4657
4372
|
}] }, { type: LogService, decorators: [{
|
|
4658
|
-
type:
|
|
4373
|
+
type: Optional12
|
|
4659
4374
|
}] }] });
|
|
4660
4375
|
|
|
4661
4376
|
// lib/services/locale/locale.service.mock.mjs
|
|
4662
|
-
import { Optional as
|
|
4377
|
+
import { Optional as Optional13, Inject as Inject11, Injectable as Injectable21, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4663
4378
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4664
4379
|
import localeFr from "@angular/common/locales/fr";
|
|
4665
4380
|
import localeEl from "@angular/common/locales/el";
|
|
4666
4381
|
import { registerLocaleData } from "@angular/common";
|
|
4667
|
-
import * as
|
|
4382
|
+
import * as i023 from "@angular/core";
|
|
4668
4383
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4669
4384
|
constructor(locale_id) {
|
|
4670
4385
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4689,18 +4404,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4689
4404
|
return of9({ success: true });
|
|
4690
4405
|
}
|
|
4691
4406
|
static {
|
|
4692
|
-
this.ɵfac =
|
|
4407
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i023, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i023.ɵɵFactoryTarget.Injectable });
|
|
4693
4408
|
}
|
|
4694
4409
|
static {
|
|
4695
|
-
this.ɵprov =
|
|
4410
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i023, type: _LocaleServiceMock });
|
|
4696
4411
|
}
|
|
4697
4412
|
};
|
|
4698
|
-
|
|
4699
|
-
type:
|
|
4413
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i023, type: LocaleServiceMock, decorators: [{
|
|
4414
|
+
type: Injectable21
|
|
4700
4415
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4701
|
-
type:
|
|
4416
|
+
type: Optional13
|
|
4702
4417
|
}, {
|
|
4703
|
-
type:
|
|
4418
|
+
type: Inject11,
|
|
4704
4419
|
args: [LOCALE_ID2]
|
|
4705
4420
|
}] }] });
|
|
4706
4421
|
|
|
@@ -4713,10 +4428,10 @@ var Status;
|
|
|
4713
4428
|
})(Status || (Status = {}));
|
|
4714
4429
|
|
|
4715
4430
|
// lib/services/loader/eui-loader.service.mjs
|
|
4716
|
-
import { Injectable as
|
|
4431
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
4717
4432
|
import { Subject as Subject2 } from "rxjs";
|
|
4718
|
-
import { filter as filter3, map as
|
|
4719
|
-
import * as
|
|
4433
|
+
import { filter as filter3, map as map8 } from "rxjs/operators";
|
|
4434
|
+
import * as i024 from "@angular/core";
|
|
4720
4435
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4721
4436
|
constructor() {
|
|
4722
4437
|
this.dependencies = [];
|
|
@@ -4810,7 +4525,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4810
4525
|
* @param name The name of the dependency
|
|
4811
4526
|
*/
|
|
4812
4527
|
statusChanges(name) {
|
|
4813
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4528
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map8(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4814
4529
|
}
|
|
4815
4530
|
/**
|
|
4816
4531
|
* Load a dependency and its prerequisites
|
|
@@ -4931,25 +4646,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4931
4646
|
}
|
|
4932
4647
|
}
|
|
4933
4648
|
static {
|
|
4934
|
-
this.ɵfac =
|
|
4649
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i024, type: _EuiLoaderService, deps: [], target: i024.ɵɵFactoryTarget.Injectable });
|
|
4935
4650
|
}
|
|
4936
4651
|
static {
|
|
4937
|
-
this.ɵprov =
|
|
4652
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i024, type: _EuiLoaderService, providedIn: "root" });
|
|
4938
4653
|
}
|
|
4939
4654
|
};
|
|
4940
|
-
|
|
4941
|
-
type:
|
|
4655
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i024, type: EuiLoaderService, decorators: [{
|
|
4656
|
+
type: Injectable22,
|
|
4942
4657
|
args: [{
|
|
4943
4658
|
providedIn: "root"
|
|
4944
4659
|
}]
|
|
4945
4660
|
}] });
|
|
4946
4661
|
|
|
4947
4662
|
// lib/services/user/user.service.mjs
|
|
4948
|
-
import { Injectable as
|
|
4663
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
4949
4664
|
import { of as of10 } from "rxjs";
|
|
4950
4665
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
4951
4666
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
4952
|
-
import * as
|
|
4667
|
+
import * as i025 from "@angular/core";
|
|
4953
4668
|
var UserService = class _UserService extends EuiService3 {
|
|
4954
4669
|
constructor(store) {
|
|
4955
4670
|
super({ userId: "annonymous" });
|
|
@@ -4988,14 +4703,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
4988
4703
|
}
|
|
4989
4704
|
}
|
|
4990
4705
|
static {
|
|
4991
|
-
this.ɵfac =
|
|
4706
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i025, type: _UserService, deps: [{ token: StoreService }], target: i025.ɵɵFactoryTarget.Injectable });
|
|
4992
4707
|
}
|
|
4993
4708
|
static {
|
|
4994
|
-
this.ɵprov =
|
|
4709
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i025, type: _UserService, providedIn: "root" });
|
|
4995
4710
|
}
|
|
4996
4711
|
};
|
|
4997
|
-
|
|
4998
|
-
type:
|
|
4712
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i025, type: UserService, decorators: [{
|
|
4713
|
+
type: Injectable23,
|
|
4999
4714
|
args: [{
|
|
5000
4715
|
providedIn: "root"
|
|
5001
4716
|
}]
|
|
@@ -5003,8 +4718,8 @@ i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
5003
4718
|
|
|
5004
4719
|
// lib/services/user/user.service.mock.mjs
|
|
5005
4720
|
import { of as of11 } from "rxjs";
|
|
5006
|
-
import { Injectable as
|
|
5007
|
-
import * as
|
|
4721
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
4722
|
+
import * as i026 from "@angular/core";
|
|
5008
4723
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
5009
4724
|
constructor() {
|
|
5010
4725
|
super(null);
|
|
@@ -5020,20 +4735,20 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
5020
4735
|
updateState(userState, reducer) {
|
|
5021
4736
|
}
|
|
5022
4737
|
static {
|
|
5023
|
-
this.ɵfac =
|
|
4738
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i026, type: _UserServiceMock, deps: [], target: i026.ɵɵFactoryTarget.Injectable });
|
|
5024
4739
|
}
|
|
5025
4740
|
static {
|
|
5026
|
-
this.ɵprov =
|
|
4741
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i026, type: _UserServiceMock });
|
|
5027
4742
|
}
|
|
5028
4743
|
};
|
|
5029
|
-
|
|
5030
|
-
type:
|
|
4744
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i026, type: UserServiceMock, decorators: [{
|
|
4745
|
+
type: Injectable24
|
|
5031
4746
|
}], ctorParameters: () => [] });
|
|
5032
4747
|
|
|
5033
4748
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
5034
|
-
import { Injectable as
|
|
5035
|
-
import * as
|
|
5036
|
-
import * as
|
|
4749
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
4750
|
+
import * as i027 from "@angular/core";
|
|
4751
|
+
import * as i18 from "@ngx-translate/core";
|
|
5037
4752
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
5038
4753
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
5039
4754
|
constructor(translateService) {
|
|
@@ -5053,19 +4768,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
5053
4768
|
}));
|
|
5054
4769
|
}
|
|
5055
4770
|
static {
|
|
5056
|
-
this.ɵfac =
|
|
4771
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i027, type: _AddLangParamInterceptor, deps: [{ token: i18.TranslateService }], target: i027.ɵɵFactoryTarget.Injectable });
|
|
5057
4772
|
}
|
|
5058
4773
|
static {
|
|
5059
|
-
this.ɵprov =
|
|
4774
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i027, type: _AddLangParamInterceptor });
|
|
5060
4775
|
}
|
|
5061
4776
|
};
|
|
5062
|
-
|
|
5063
|
-
type:
|
|
5064
|
-
}], ctorParameters: () => [{ type:
|
|
4777
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i027, type: AddLangParamInterceptor, decorators: [{
|
|
4778
|
+
type: Injectable25
|
|
4779
|
+
}], ctorParameters: () => [{ type: i18.TranslateService }] });
|
|
5065
4780
|
|
|
5066
4781
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
5067
|
-
import { Injectable as
|
|
5068
|
-
import * as
|
|
4782
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
4783
|
+
import * as i028 from "@angular/core";
|
|
5069
4784
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
5070
4785
|
intercept(req, next) {
|
|
5071
4786
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -5077,19 +4792,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
5077
4792
|
}));
|
|
5078
4793
|
}
|
|
5079
4794
|
static {
|
|
5080
|
-
this.ɵfac =
|
|
4795
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i028, type: _CachePreventionInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
5081
4796
|
}
|
|
5082
4797
|
static {
|
|
5083
|
-
this.ɵprov =
|
|
4798
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i028, type: _CachePreventionInterceptor });
|
|
5084
4799
|
}
|
|
5085
4800
|
};
|
|
5086
|
-
|
|
5087
|
-
type:
|
|
4801
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i028, type: CachePreventionInterceptor, decorators: [{
|
|
4802
|
+
type: Injectable26
|
|
5088
4803
|
}] });
|
|
5089
4804
|
|
|
5090
4805
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
5091
|
-
import { Injectable as
|
|
5092
|
-
import * as
|
|
4806
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
4807
|
+
import * as i029 from "@angular/core";
|
|
5093
4808
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
5094
4809
|
intercept(request, next) {
|
|
5095
4810
|
return next.handle(request.clone({
|
|
@@ -5097,19 +4812,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
5097
4812
|
}));
|
|
5098
4813
|
}
|
|
5099
4814
|
static {
|
|
5100
|
-
this.ɵfac =
|
|
4815
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i029, type: _CorsSecurityInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
5101
4816
|
}
|
|
5102
4817
|
static {
|
|
5103
|
-
this.ɵprov =
|
|
4818
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i029, type: _CorsSecurityInterceptor });
|
|
5104
4819
|
}
|
|
5105
4820
|
};
|
|
5106
|
-
|
|
5107
|
-
type:
|
|
4821
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i029, type: CorsSecurityInterceptor, decorators: [{
|
|
4822
|
+
type: Injectable27
|
|
5108
4823
|
}] });
|
|
5109
4824
|
|
|
5110
4825
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
5111
|
-
import { Injectable as
|
|
5112
|
-
import * as
|
|
4826
|
+
import { Injectable as Injectable28 } from "@angular/core";
|
|
4827
|
+
import * as i030 from "@angular/core";
|
|
5113
4828
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
5114
4829
|
intercept(request, next) {
|
|
5115
4830
|
return next.handle(request.clone({
|
|
@@ -5117,24 +4832,24 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
5117
4832
|
}));
|
|
5118
4833
|
}
|
|
5119
4834
|
static {
|
|
5120
|
-
this.ɵfac =
|
|
4835
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i030, type: _CsrfPreventionInterceptor, deps: [], target: i030.ɵɵFactoryTarget.Injectable });
|
|
5121
4836
|
}
|
|
5122
4837
|
static {
|
|
5123
|
-
this.ɵprov =
|
|
4838
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i030, type: _CsrfPreventionInterceptor });
|
|
5124
4839
|
}
|
|
5125
4840
|
};
|
|
5126
|
-
|
|
5127
|
-
type:
|
|
4841
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i030, type: CsrfPreventionInterceptor, decorators: [{
|
|
4842
|
+
type: Injectable28
|
|
5128
4843
|
}] });
|
|
5129
4844
|
|
|
5130
4845
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
5131
|
-
import { Injectable as
|
|
4846
|
+
import { Injectable as Injectable29 } from "@angular/core";
|
|
5132
4847
|
import { HttpResponse } from "@angular/common/http";
|
|
5133
|
-
import { tap as
|
|
5134
|
-
import * as
|
|
4848
|
+
import { tap as tap7 } from "rxjs/operators";
|
|
4849
|
+
import * as i031 from "@angular/core";
|
|
5135
4850
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
5136
4851
|
intercept(request, next) {
|
|
5137
|
-
return next.handle(request).pipe(
|
|
4852
|
+
return next.handle(request).pipe(tap7((event) => {
|
|
5138
4853
|
this.checkRequestSuccessForEULoginSessionTimeout(request, event);
|
|
5139
4854
|
return event;
|
|
5140
4855
|
}, (error) => {
|
|
@@ -5182,23 +4897,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
5182
4897
|
document.location.reload();
|
|
5183
4898
|
}
|
|
5184
4899
|
static {
|
|
5185
|
-
this.ɵfac =
|
|
4900
|
+
this.ɵfac = i031.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i031, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i031.ɵɵFactoryTarget.Injectable });
|
|
5186
4901
|
}
|
|
5187
4902
|
static {
|
|
5188
|
-
this.ɵprov =
|
|
4903
|
+
this.ɵprov = i031.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i031, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
5189
4904
|
}
|
|
5190
4905
|
};
|
|
5191
|
-
|
|
5192
|
-
type:
|
|
4906
|
+
i031.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i031, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4907
|
+
type: Injectable29
|
|
5193
4908
|
}] });
|
|
5194
4909
|
|
|
5195
4910
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
5196
|
-
import { Inject as
|
|
4911
|
+
import { Inject as Inject12, Injectable as Injectable30, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
5197
4912
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
5198
4913
|
import { of as of12 } from "rxjs";
|
|
5199
4914
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
5200
4915
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
5201
|
-
import * as
|
|
4916
|
+
import * as i032 from "@angular/core";
|
|
5202
4917
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
5203
4918
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
5204
4919
|
constructor(errorMappingHandler) {
|
|
@@ -5221,25 +4936,18 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
5221
4936
|
);
|
|
5222
4937
|
}
|
|
5223
4938
|
static {
|
|
5224
|
-
this.ɵfac =
|
|
4939
|
+
this.ɵfac = i032.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i032, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i032.ɵɵFactoryTarget.Injectable });
|
|
5225
4940
|
}
|
|
5226
4941
|
static {
|
|
5227
|
-
this.ɵprov =
|
|
4942
|
+
this.ɵprov = i032.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i032, type: _UxRequestErrorModelInterceptor });
|
|
5228
4943
|
}
|
|
5229
4944
|
};
|
|
5230
|
-
|
|
5231
|
-
type:
|
|
4945
|
+
i032.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.0", ngImport: i032, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4946
|
+
type: Injectable30
|
|
5232
4947
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
5233
|
-
type:
|
|
4948
|
+
type: Inject12,
|
|
5234
4949
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5235
4950
|
}] }] });
|
|
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
4951
|
export {
|
|
5244
4952
|
ActivatedRouteAction,
|
|
5245
4953
|
AddApiQueueItemAction,
|
|
@@ -5258,13 +4966,16 @@ export {
|
|
|
5258
4966
|
CachePreventionInterceptor,
|
|
5259
4967
|
ConsoleHttpErrorCallbackFn,
|
|
5260
4968
|
CoreAppActionTypes,
|
|
4969
|
+
CoreAppEffects,
|
|
5261
4970
|
CoreI18nActionTypes,
|
|
5262
4971
|
CoreLocaleActionTypes,
|
|
5263
4972
|
CoreModule,
|
|
4973
|
+
CoreModuleEffects,
|
|
5264
4974
|
CoreNotificationsActionTypes,
|
|
5265
4975
|
CoreUserActionTypes,
|
|
5266
4976
|
CorsSecurityInterceptor,
|
|
5267
4977
|
CsrfPreventionInterceptor,
|
|
4978
|
+
CssUtils,
|
|
5268
4979
|
DYNAMIC_COMPONENT_CONFIG,
|
|
5269
4980
|
EUI_CONFIG_TOKEN,
|
|
5270
4981
|
EUI_COUNTRIES,
|
|
@@ -5280,6 +4991,8 @@ export {
|
|
|
5280
4991
|
EuiGrowlService,
|
|
5281
4992
|
EuiLoaderService,
|
|
5282
4993
|
EuiPermissionService,
|
|
4994
|
+
EuiTheme,
|
|
4995
|
+
EuiThemeService,
|
|
5283
4996
|
EuiTimezoneService,
|
|
5284
4997
|
GLOBAL_CONFIG_TOKEN,
|
|
5285
4998
|
GlobalErrorHandler,
|