@eui/core 18.0.0-next.7 → 18.0.0-next.70
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 +734 -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 +108 -1318
- 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/interfaces/UIState.html +45 -180
- 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 +36 -7
- package/esm2022/index.mjs +1 -3
- package/esm2022/lib/eui-core.module.mjs +5 -5
- package/esm2022/lib/helpers/css-utils.mjs +111 -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 +37 -309
- 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 +617 -918
- 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 +28 -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 +6 -70
- 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.1", 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.1", ngImport: i0, type: _EuiGrowlService, providedIn: "root" });
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", ngImport: i02, type: _CoreAppEffects });
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", ngImport: i03, type: _LogService });
|
|
806
650
|
}
|
|
807
651
|
};
|
|
808
|
-
|
|
809
|
-
type:
|
|
652
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", 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.1", ngImport: i04, type: _LogModule });
|
|
892
736
|
}
|
|
893
737
|
};
|
|
894
|
-
|
|
738
|
+
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", 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.1", 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.1", 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.1", ngImport: i06, type: _StoreServiceMock });
|
|
1036
880
|
}
|
|
1037
881
|
};
|
|
1038
|
-
|
|
1039
|
-
type:
|
|
882
|
+
i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", 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.1", ngImport: i07, type: _CoreModule });
|
|
1152
996
|
}
|
|
1153
997
|
};
|
|
1154
|
-
|
|
998
|
+
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", 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.1", 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.1", 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.1", ngImport: i09, type: _HttpErrorHandlerInterceptor });
|
|
1327
1171
|
}
|
|
1328
1172
|
};
|
|
1329
|
-
|
|
1330
|
-
type:
|
|
1173
|
+
i09.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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,152 @@ 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.getBreakpointValues = () => {
|
|
2164
|
+
const breakpoints = [];
|
|
2165
|
+
const xs = this.getCssVarValue("--eui-bp-xs");
|
|
2166
|
+
breakpoints.push({ bkp: "xs", pxValue: xs, value: xs.replace("px", "") });
|
|
2167
|
+
const sm = this.getCssVarValue("--eui-bp-sm");
|
|
2168
|
+
breakpoints.push({ bkp: "sm", pxValue: sm, value: sm.replace("px", "") });
|
|
2169
|
+
const md = this.getCssVarValue("--eui-bp-md");
|
|
2170
|
+
breakpoints.push({ bkp: "md", pxValue: md, value: md.replace("px", "") });
|
|
2171
|
+
const lg = this.getCssVarValue("--eui-bp-lg");
|
|
2172
|
+
breakpoints.push({ bkp: "lg", pxValue: lg, value: lg.replace("px", "") });
|
|
2173
|
+
const xl = this.getCssVarValue("--eui-bp-xl");
|
|
2174
|
+
breakpoints.push({ bkp: "xl", pxValue: xl, value: xl.replace("px", "") });
|
|
2175
|
+
const xxl = this.getCssVarValue("--eui-bp-xxl");
|
|
2176
|
+
breakpoints.push({ bkp: "xxl", pxValue: xxl, value: xxl.replace("px", "") });
|
|
2177
|
+
const fhd = this.getCssVarValue("--eui-bp-fhd");
|
|
2178
|
+
breakpoints.push({ bkp: "fhd", pxValue: fhd, value: fhd.replace("px", "") });
|
|
2179
|
+
const twok = this.getCssVarValue("--eui-bp-2k");
|
|
2180
|
+
breakpoints.push({ bkp: "2k", pxValue: twok, value: twok.replace("px", "") });
|
|
2181
|
+
const fourk = this.getCssVarValue("--eui-bp-4k");
|
|
2182
|
+
breakpoints.push({ bkp: "4k", pxValue: fourk, value: fourk.replace("px", "") });
|
|
2183
|
+
return breakpoints;
|
|
2184
|
+
};
|
|
2185
|
+
}
|
|
2186
|
+
static {
|
|
2187
|
+
this.activateEditModeCssVars = (isActive) => {
|
|
2188
|
+
if (isActive) {
|
|
2189
|
+
this.setCssVarValue("--eui-docpage-navigation-z-index", "inherit");
|
|
2190
|
+
this.setCssVarValue("--eui-z-index-sidebar", "inherit");
|
|
2191
|
+
this.setCssVarValue("--eui-z-index-root", "inherit");
|
|
2192
|
+
} else {
|
|
2193
|
+
this.setCssVarValue("--eui-docpage-navigation-z-index", "2");
|
|
2194
|
+
this.setCssVarValue("--eui-z-index-sidebar", "1044");
|
|
2195
|
+
this.setCssVarValue("--eui-z-index-root", "1");
|
|
2196
|
+
}
|
|
2197
|
+
};
|
|
2198
|
+
}
|
|
2199
|
+
static {
|
|
2200
|
+
this.activateHeaderCssVars = () => {
|
|
2201
|
+
this.setCssVar("--eui-app-header-height-active", "--eui-app-header-height");
|
|
2202
|
+
};
|
|
2203
|
+
}
|
|
2204
|
+
static {
|
|
2205
|
+
this.activateBreadcrumbCssVars = () => {
|
|
2206
|
+
this.setCssVar("--eui-app-breadcrumb-height-active", "--eui-app-breadcrumb-height");
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
static {
|
|
2210
|
+
this.activateTopMessageCssVars = (height) => {
|
|
2211
|
+
this.setCssVarValue("--eui-app-top-message-height", `${height}px`);
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
static {
|
|
2215
|
+
this.activateToolbarCssVars = () => {
|
|
2216
|
+
this.setCssVar("--eui-app-toolbar-height-active", "--eui-app-toolbar-height");
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
static {
|
|
2220
|
+
this.activateFooterCssVars = () => {
|
|
2221
|
+
this.setCssVar("--eui-app-footer-height-active", "--eui-app-footer-height");
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
static {
|
|
2225
|
+
this.setHeaderShrinkCssVar = (active) => {
|
|
2226
|
+
if (active) {
|
|
2227
|
+
this.setCssVar("--eui-app-header-height-shrink", "--eui-app-header-height");
|
|
2228
|
+
} else {
|
|
2229
|
+
this.setCssVar("--eui-app-header-height-active", "--eui-app-header-height");
|
|
2230
|
+
}
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
static {
|
|
2234
|
+
this.activateSidebarCssVars = () => {
|
|
2235
|
+
this.setCssVar("--eui-app-sidebar-width-active", "--eui-app-sidebar-width");
|
|
2236
|
+
this.setCssVar("--eui-app-sidebar-width-close-active", "--eui-app-sidebar-width-close");
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
static {
|
|
2240
|
+
this.removeSidebarCssVars = () => {
|
|
2241
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-header-height");
|
|
2242
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-footer-height");
|
|
2243
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-width");
|
|
2244
|
+
document.documentElement.style.removeProperty("--eui-app-sidebar-width-close");
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
static {
|
|
2248
|
+
this.activateSidebarHeaderCssVars = () => {
|
|
2249
|
+
this.setCssVar("--eui-app-sidebar-header-height-active", "--eui-app-sidebar-header-height");
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2252
|
+
static {
|
|
2253
|
+
this.activateSidebarFooterCssVars = () => {
|
|
2254
|
+
this.setCssVar("--eui-app-sidebar-footer-height-active", "--eui-app-sidebar-footer-height");
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* Gets the viewport height and width and multiple it by 1% to get a value for a vh/vw unit
|
|
2259
|
+
* Sets the value in the --eui-app-vh custom property to the root of the document
|
|
2260
|
+
* Sets the value in the --eui-app-vw custom property to the root of the document
|
|
2261
|
+
* Example for 100% height: calc(var(--eui-app-vh, 1vh) * 100);
|
|
2262
|
+
* Example for 50% height: calc(var(--eui-app-vh, 1vh) * 50);
|
|
2263
|
+
* Example for 50% width: calc(var(--eui-app-vw, 1vw) * 50);
|
|
2264
|
+
*/
|
|
2265
|
+
static setAppViewportCssVars() {
|
|
2266
|
+
const vh = window.innerHeight * 0.01;
|
|
2267
|
+
const vw = window.innerWidth * 0.01;
|
|
2268
|
+
this.setCssVarValue("--eui-app-vh", `${vh}px`);
|
|
2269
|
+
this.setCssVarValue("--eui-app-vw", `${vw}px`);
|
|
2270
|
+
}
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2364
2273
|
// lib/services/permission/permission.service.mjs
|
|
2365
|
-
import { Injectable as
|
|
2274
|
+
import { Injectable as Injectable11, Optional as Optional6 } from "@angular/core";
|
|
2366
2275
|
import { EuiService, getUserRights } from "@eui/base";
|
|
2367
2276
|
import { of as of6 } from "rxjs";
|
|
2368
|
-
import * as
|
|
2277
|
+
import * as i013 from "@angular/core";
|
|
2369
2278
|
var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
2370
2279
|
constructor(log, store) {
|
|
2371
2280
|
super([]);
|
|
@@ -2571,14 +2480,14 @@ var EuiPermissionService = class _EuiPermissionService extends EuiService {
|
|
|
2571
2480
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2572
2481
|
}
|
|
2573
2482
|
static {
|
|
2574
|
-
this.ɵfac =
|
|
2483
|
+
this.ɵfac = i013.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i013, type: _EuiPermissionService, deps: [{ token: LogService, optional: true }, { token: StoreService }], target: i013.ɵɵFactoryTarget.Injectable });
|
|
2575
2484
|
}
|
|
2576
2485
|
static {
|
|
2577
|
-
this.ɵprov =
|
|
2486
|
+
this.ɵprov = i013.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i013, type: _EuiPermissionService, providedIn: "root" });
|
|
2578
2487
|
}
|
|
2579
2488
|
};
|
|
2580
|
-
|
|
2581
|
-
type:
|
|
2489
|
+
i013.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i013, type: EuiPermissionService, decorators: [{
|
|
2490
|
+
type: Injectable11,
|
|
2582
2491
|
args: [{
|
|
2583
2492
|
providedIn: "root"
|
|
2584
2493
|
}]
|
|
@@ -2587,9 +2496,9 @@ i012.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
2587
2496
|
}] }, { type: StoreService }] });
|
|
2588
2497
|
|
|
2589
2498
|
// lib/services/dynamic-menu/dynamic-menu.service.mjs
|
|
2590
|
-
import { Injectable as
|
|
2499
|
+
import { Injectable as Injectable12 } from "@angular/core";
|
|
2591
2500
|
import { getUserState } from "@eui/base";
|
|
2592
|
-
import * as
|
|
2501
|
+
import * as i014 from "@angular/core";
|
|
2593
2502
|
var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
2594
2503
|
// TODO: it should be moved euiservice, or it should be static
|
|
2595
2504
|
// TODO: can we moved that service inside the module of the component that's using it?
|
|
@@ -2638,23 +2547,23 @@ var EuiDynamicMenuService = class _EuiDynamicMenuService {
|
|
|
2638
2547
|
});
|
|
2639
2548
|
}
|
|
2640
2549
|
static {
|
|
2641
|
-
this.ɵfac =
|
|
2550
|
+
this.ɵfac = i014.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i014, type: _EuiDynamicMenuService, deps: [{ token: EuiPermissionService }, { token: StoreService }], target: i014.ɵɵFactoryTarget.Injectable });
|
|
2642
2551
|
}
|
|
2643
2552
|
static {
|
|
2644
|
-
this.ɵprov =
|
|
2553
|
+
this.ɵprov = i014.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i014, type: _EuiDynamicMenuService, providedIn: "root" });
|
|
2645
2554
|
}
|
|
2646
2555
|
};
|
|
2647
|
-
|
|
2648
|
-
type:
|
|
2556
|
+
i014.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i014, type: EuiDynamicMenuService, decorators: [{
|
|
2557
|
+
type: Injectable12,
|
|
2649
2558
|
args: [{
|
|
2650
2559
|
providedIn: "root"
|
|
2651
2560
|
}]
|
|
2652
2561
|
}], ctorParameters: () => [{ type: EuiPermissionService }, { type: StoreService }] });
|
|
2653
2562
|
|
|
2654
2563
|
// lib/services/dynamic-component/dynamic-component.service.mjs
|
|
2655
|
-
import { Injectable as
|
|
2564
|
+
import { Injectable as Injectable13, InjectionToken as InjectionToken5 } from "@angular/core";
|
|
2656
2565
|
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
|
|
2657
|
-
import * as
|
|
2566
|
+
import * as i015 from "@angular/core";
|
|
2658
2567
|
var DYNAMIC_COMPONENT_CONFIG = new InjectionToken5("DYNAMIC_COMPONENT_CONFIG");
|
|
2659
2568
|
var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
2660
2569
|
constructor(componentFactoryResolver, injector, appRef) {
|
|
@@ -2709,39 +2618,35 @@ var EuiDynamicComponentService = class _EuiDynamicComponentService {
|
|
|
2709
2618
|
return new PortalInjector(this.injector, injectorTokens);
|
|
2710
2619
|
}
|
|
2711
2620
|
static {
|
|
2712
|
-
this.ɵfac =
|
|
2621
|
+
this.ɵfac = i015.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i015, type: _EuiDynamicComponentService, deps: [{ token: i015.ComponentFactoryResolver }, { token: i015.Injector }, { token: i015.ApplicationRef }], target: i015.ɵɵFactoryTarget.Injectable });
|
|
2713
2622
|
}
|
|
2714
2623
|
static {
|
|
2715
|
-
this.ɵprov =
|
|
2624
|
+
this.ɵprov = i015.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i015, type: _EuiDynamicComponentService });
|
|
2716
2625
|
}
|
|
2717
2626
|
};
|
|
2718
|
-
|
|
2719
|
-
type:
|
|
2720
|
-
}], ctorParameters: () => [{ type:
|
|
2627
|
+
i015.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i015, type: EuiDynamicComponentService, decorators: [{
|
|
2628
|
+
type: Injectable13
|
|
2629
|
+
}], ctorParameters: () => [{ type: i015.ComponentFactoryResolver }, { type: i015.Injector }, { type: i015.ApplicationRef }] });
|
|
2721
2630
|
|
|
2722
2631
|
// lib/services/eui-app-shell.service.mjs
|
|
2723
|
-
import { Inject as
|
|
2632
|
+
import { Inject as Inject7, Injectable as Injectable14, Optional as Optional7, PLATFORM_ID } from "@angular/core";
|
|
2724
2633
|
import { isPlatformBrowser } from "@angular/common";
|
|
2725
2634
|
import { BehaviorSubject as BehaviorSubject2, defer, firstValueFrom } from "rxjs";
|
|
2726
2635
|
import { EuiEuLanguages as EuiEuLanguages2, getActiveLang as getActiveLang2 } from "@eui/base";
|
|
2727
2636
|
import { NavigationEnd } from "@angular/router";
|
|
2728
|
-
import { distinctUntilChanged as distinctUntilChanged2, map as
|
|
2637
|
+
import { distinctUntilChanged as distinctUntilChanged2, map as map5 } from "rxjs/operators";
|
|
2729
2638
|
import isEqual from "lodash-es/isEqual";
|
|
2730
2639
|
import get from "lodash-es/get";
|
|
2731
|
-
import * as
|
|
2732
|
-
import * as
|
|
2733
|
-
import * as
|
|
2640
|
+
import * as i016 from "@angular/core";
|
|
2641
|
+
import * as i17 from "@angular/common/http";
|
|
2642
|
+
import * as i23 from "@angular/router";
|
|
2734
2643
|
var initialState = {
|
|
2735
2644
|
appName: "",
|
|
2736
2645
|
appShortName: "",
|
|
2737
2646
|
appSubTitle: "",
|
|
2738
2647
|
appBaseFontSize: "",
|
|
2739
2648
|
isSidebarOpen: true,
|
|
2740
|
-
isSidebarHover: false,
|
|
2741
2649
|
isSidebarActive: false,
|
|
2742
|
-
isSidebarInnerActive: false,
|
|
2743
|
-
isSidebarStateCloseWithIcons: false,
|
|
2744
|
-
isSidebarExpandOnHover: true,
|
|
2745
2650
|
hasSidebar: false,
|
|
2746
2651
|
hasHeader: false,
|
|
2747
2652
|
hasBreadcrumb: false,
|
|
@@ -2770,6 +2675,7 @@ var initialState = {
|
|
|
2770
2675
|
is2K: false,
|
|
2771
2676
|
is4K: false
|
|
2772
2677
|
},
|
|
2678
|
+
breakpointValues: [],
|
|
2773
2679
|
menuLinks: [],
|
|
2774
2680
|
sidebarLinks: [],
|
|
2775
2681
|
combinedLinks: [],
|
|
@@ -2791,7 +2697,6 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2791
2697
|
get breakpoint$() {
|
|
2792
2698
|
return this._breakpoint$.asObservable();
|
|
2793
2699
|
}
|
|
2794
|
-
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
2795
2700
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2796
2701
|
get breakpoints$() {
|
|
2797
2702
|
return this._breakpoints$.asObservable();
|
|
@@ -2814,29 +2719,12 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2814
2719
|
get isSidebarOpen() {
|
|
2815
2720
|
return this.state.isSidebarOpen;
|
|
2816
2721
|
}
|
|
2817
|
-
set isSidebarHover(isHover) {
|
|
2818
|
-
if (this.state.isSidebarExpandOnHover) {
|
|
2819
|
-
this.setState({
|
|
2820
|
-
...this.state,
|
|
2821
|
-
isSidebarHover: isHover
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
}
|
|
2825
|
-
get isSidebarHover() {
|
|
2826
|
-
return this.state.isSidebarHover;
|
|
2827
|
-
}
|
|
2828
2722
|
set isSidebarActive(isActive) {
|
|
2829
2723
|
this.setState({
|
|
2830
2724
|
...this.state,
|
|
2831
2725
|
isSidebarActive: isActive
|
|
2832
2726
|
});
|
|
2833
2727
|
}
|
|
2834
|
-
set isSidebarInnerActive(isOpen) {
|
|
2835
|
-
this.setState({
|
|
2836
|
-
...this.state,
|
|
2837
|
-
isSidebarInnerActive: isOpen
|
|
2838
|
-
});
|
|
2839
|
-
}
|
|
2840
2728
|
set sidebarLinks(links) {
|
|
2841
2729
|
this.setState({
|
|
2842
2730
|
...this.state,
|
|
@@ -2875,9 +2763,6 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2875
2763
|
this.router = router;
|
|
2876
2764
|
this.storeService = storeService;
|
|
2877
2765
|
this.i18nService = i18nService;
|
|
2878
|
-
this.openModalId = new BehaviorSubject2("");
|
|
2879
|
-
this.activeModals = [];
|
|
2880
|
-
this.cssVars = [];
|
|
2881
2766
|
let stateWithConfig = initialState;
|
|
2882
2767
|
const languages = config?.i18n?.i18nService?.languages || initialState.languages;
|
|
2883
2768
|
const defaultLanguage = config?.i18n?.i18nService?.defaultLanguage || initialState.activeLanguage;
|
|
@@ -2936,13 +2821,12 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2936
2821
|
*
|
|
2937
2822
|
* @param key can be 'key' or 'key.sub.sub'
|
|
2938
2823
|
*/
|
|
2939
|
-
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
2940
2824
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2941
2825
|
getState(key) {
|
|
2942
2826
|
return defer(() => (
|
|
2943
2827
|
// check if key exists
|
|
2944
2828
|
key ? this.state$.pipe(
|
|
2945
|
-
|
|
2829
|
+
map5((state) => get(state, key)),
|
|
2946
2830
|
// filter((state) => state),
|
|
2947
2831
|
distinctUntilChanged2((x, y) => isEqual(x, y))
|
|
2948
2832
|
) : this.state$
|
|
@@ -2958,25 +2842,14 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2958
2842
|
...this.state,
|
|
2959
2843
|
isDimmerActive: !isActive
|
|
2960
2844
|
});
|
|
2961
|
-
|
|
2845
|
+
CssUtils.activateEditModeCssVars(!isActive);
|
|
2962
2846
|
}
|
|
2963
2847
|
setDimmerActiveState(activeState) {
|
|
2964
2848
|
this.setState({
|
|
2965
2849
|
...this.state,
|
|
2966
2850
|
isDimmerActive: activeState
|
|
2967
2851
|
});
|
|
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
|
-
}
|
|
2852
|
+
CssUtils.activateEditModeCssVars(activeState);
|
|
2980
2853
|
}
|
|
2981
2854
|
// --------------
|
|
2982
2855
|
// public methods
|
|
@@ -2995,42 +2868,42 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
2995
2868
|
hasSidebar: true
|
|
2996
2869
|
});
|
|
2997
2870
|
if (!this.state.isSidebarHidden) {
|
|
2998
|
-
|
|
2871
|
+
CssUtils.activateSidebarCssVars();
|
|
2999
2872
|
}
|
|
3000
2873
|
}
|
|
3001
2874
|
activateSidebarHeader() {
|
|
3002
|
-
|
|
2875
|
+
CssUtils.activateSidebarHeaderCssVars();
|
|
3003
2876
|
}
|
|
3004
2877
|
activateSidebarFooter() {
|
|
3005
|
-
|
|
2878
|
+
CssUtils.activateSidebarFooterCssVars();
|
|
3006
2879
|
}
|
|
3007
2880
|
activateHeader() {
|
|
3008
2881
|
this.setState({
|
|
3009
2882
|
...this.state,
|
|
3010
2883
|
hasHeader: true
|
|
3011
2884
|
});
|
|
3012
|
-
|
|
2885
|
+
CssUtils.activateHeaderCssVars();
|
|
3013
2886
|
}
|
|
3014
2887
|
activateBreadcrumb() {
|
|
3015
2888
|
this.setState({
|
|
3016
2889
|
...this.state,
|
|
3017
2890
|
hasBreadcrumb: true
|
|
3018
2891
|
});
|
|
3019
|
-
|
|
2892
|
+
CssUtils.activateBreadcrumbCssVars();
|
|
3020
2893
|
}
|
|
3021
2894
|
activateTopMessage(height) {
|
|
3022
2895
|
this.setState({
|
|
3023
2896
|
...this.state,
|
|
3024
2897
|
hasTopMessage: true
|
|
3025
2898
|
});
|
|
3026
|
-
|
|
2899
|
+
CssUtils.activateTopMessageCssVars(height);
|
|
3027
2900
|
}
|
|
3028
2901
|
activateToolbar() {
|
|
3029
2902
|
this.setState({
|
|
3030
2903
|
...this.state,
|
|
3031
2904
|
hasToolbar: true
|
|
3032
2905
|
});
|
|
3033
|
-
|
|
2906
|
+
CssUtils.activateToolbarCssVars();
|
|
3034
2907
|
}
|
|
3035
2908
|
activateToolbarMenu() {
|
|
3036
2909
|
this.setState({
|
|
@@ -3038,231 +2911,29 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3038
2911
|
hasToolbarMenu: true
|
|
3039
2912
|
});
|
|
3040
2913
|
}
|
|
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
|
-
/**
|
|
3113
|
-
* Gets the viewport height and width and multiple it by 1% to get a value for a vh/vw unit
|
|
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
2914
|
/**
|
|
3127
|
-
* Returns the current value of --eui-
|
|
2915
|
+
* Returns the current value of --eui-f-size-base CSS variable
|
|
3128
2916
|
*/
|
|
3129
2917
|
getBaseFontSize() {
|
|
3130
|
-
return this.state.appBaseFontSize ||
|
|
2918
|
+
return this.state.appBaseFontSize || CssUtils.getCssVarValue("--eui-f-size-base");
|
|
3131
2919
|
}
|
|
3132
2920
|
/**
|
|
3133
|
-
* Updates the current value of --eui-
|
|
2921
|
+
* Updates the current value of --eui-f-size-base CSS variable and the UIState appBaseFontSize
|
|
3134
2922
|
*/
|
|
3135
2923
|
setBaseFontSize(newsize) {
|
|
3136
2924
|
this.setState({
|
|
3137
2925
|
...this.state,
|
|
3138
2926
|
appBaseFontSize: newsize
|
|
3139
2927
|
}, 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;
|
|
2928
|
+
CssUtils.setCssVarValue("--eui-f-size-base", newsize);
|
|
3233
2929
|
}
|
|
3234
2930
|
// ---------------
|
|
3235
2931
|
// private getters
|
|
3236
2932
|
// ---------------
|
|
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
2933
|
getWrapperClasses(state, breakpoint) {
|
|
3248
2934
|
const classes = [];
|
|
3249
2935
|
classes.push(breakpoint);
|
|
3250
2936
|
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
2937
|
if (state.isSidebarHidden) {
|
|
3267
2938
|
classes.push("sidebar--hidden");
|
|
3268
2939
|
}
|
|
@@ -3271,55 +2942,35 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3271
2942
|
} else {
|
|
3272
2943
|
classes.push("sidebar--close");
|
|
3273
2944
|
}
|
|
3274
|
-
if (state.isSidebarHover) {
|
|
3275
|
-
classes.push("sidebar--hover");
|
|
3276
|
-
}
|
|
3277
2945
|
}
|
|
3278
|
-
if (state.deviceInfo
|
|
2946
|
+
if (state.deviceInfo?.isFF) {
|
|
3279
2947
|
classes.push("ff");
|
|
3280
2948
|
}
|
|
3281
|
-
if (state.deviceInfo
|
|
2949
|
+
if (state.deviceInfo?.isIE) {
|
|
3282
2950
|
classes.push("ie");
|
|
3283
2951
|
}
|
|
3284
|
-
if (state.deviceInfo
|
|
3285
|
-
classes.push("ie11");
|
|
3286
|
-
}
|
|
3287
|
-
if (state.deviceInfo && state.deviceInfo.isChrome) {
|
|
2952
|
+
if (state.deviceInfo?.isChrome) {
|
|
3288
2953
|
classes.push("chrome");
|
|
3289
2954
|
}
|
|
3290
2955
|
return classes.join(" ");
|
|
3291
2956
|
}
|
|
3292
2957
|
getBreakpoint(windowWidth) {
|
|
3293
2958
|
let bkp = "";
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
bkp = "sm";
|
|
3300
|
-
break;
|
|
3301
|
-
case (windowWidth >= 768 && windowWidth < 996):
|
|
3302
|
-
bkp = "md";
|
|
3303
|
-
break;
|
|
3304
|
-
case (windowWidth >= 996 && windowWidth < 1140):
|
|
3305
|
-
bkp = "lg";
|
|
3306
|
-
break;
|
|
3307
|
-
case (windowWidth >= 1140 && windowWidth < 1400):
|
|
3308
|
-
bkp = "xl";
|
|
3309
|
-
break;
|
|
3310
|
-
case (windowWidth >= 1400 && windowWidth < 1920):
|
|
3311
|
-
bkp = "xxl";
|
|
3312
|
-
break;
|
|
3313
|
-
case (windowWidth >= 1920 && windowWidth < 2560):
|
|
3314
|
-
bkp = "fhd";
|
|
3315
|
-
break;
|
|
3316
|
-
case (windowWidth >= 2560 && windowWidth < 3840):
|
|
3317
|
-
bkp = "2k";
|
|
3318
|
-
break;
|
|
3319
|
-
case windowWidth >= 3840:
|
|
3320
|
-
bkp = "4k";
|
|
3321
|
-
break;
|
|
2959
|
+
if (this.state.breakpointValues.length === 0) {
|
|
2960
|
+
this.setState({
|
|
2961
|
+
...this.state,
|
|
2962
|
+
breakpointValues: CssUtils.getBreakpointValues()
|
|
2963
|
+
});
|
|
3322
2964
|
}
|
|
2965
|
+
this.state.breakpointValues.forEach((b, i) => {
|
|
2966
|
+
if (i < this.state.breakpointValues.length) {
|
|
2967
|
+
if (windowWidth >= b.value && windowWidth < this.state.breakpointValues[i + 1].value) {
|
|
2968
|
+
bkp = b.bkp;
|
|
2969
|
+
}
|
|
2970
|
+
} else if (windowWidth >= b.value) {
|
|
2971
|
+
bkp = b.bkp;
|
|
2972
|
+
}
|
|
2973
|
+
});
|
|
3323
2974
|
return bkp;
|
|
3324
2975
|
}
|
|
3325
2976
|
getBreakpoints(bkp) {
|
|
@@ -3343,7 +2994,6 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3343
2994
|
const body = res;
|
|
3344
2995
|
return body || {};
|
|
3345
2996
|
}
|
|
3346
|
-
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
3347
2997
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3348
2998
|
handleError(error) {
|
|
3349
2999
|
console.error("An error occurred", error);
|
|
@@ -3360,32 +3010,32 @@ var EuiAppShellService = class _EuiAppShellService {
|
|
|
3360
3010
|
});
|
|
3361
3011
|
}
|
|
3362
3012
|
static {
|
|
3363
|
-
this.ɵfac =
|
|
3013
|
+
this.ɵfac = i016.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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
3014
|
}
|
|
3365
3015
|
static {
|
|
3366
|
-
this.ɵprov =
|
|
3016
|
+
this.ɵprov = i016.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i016, type: _EuiAppShellService, providedIn: "root" });
|
|
3367
3017
|
}
|
|
3368
3018
|
};
|
|
3369
|
-
|
|
3370
|
-
type:
|
|
3019
|
+
i016.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i016, type: EuiAppShellService, decorators: [{
|
|
3020
|
+
type: Injectable14,
|
|
3371
3021
|
args: [{
|
|
3372
3022
|
providedIn: "root"
|
|
3373
3023
|
}]
|
|
3374
3024
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3375
3025
|
type: Optional7
|
|
3376
3026
|
}, {
|
|
3377
|
-
type:
|
|
3027
|
+
type: Inject7,
|
|
3378
3028
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
3379
|
-
}] }, { type:
|
|
3380
|
-
type:
|
|
3029
|
+
}] }, { type: i17.HttpClient }, { type: void 0, decorators: [{
|
|
3030
|
+
type: Inject7,
|
|
3381
3031
|
args: [PLATFORM_ID]
|
|
3382
|
-
}] }, { type:
|
|
3032
|
+
}] }, { type: i23.Router }, { type: StoreService }, { type: I18nService, decorators: [{
|
|
3383
3033
|
type: Optional7
|
|
3384
3034
|
}] }] });
|
|
3385
3035
|
|
|
3386
3036
|
// lib/services/eui-timezone.service.mjs
|
|
3387
|
-
import { Injectable as
|
|
3388
|
-
import * as
|
|
3037
|
+
import { Injectable as Injectable15 } from "@angular/core";
|
|
3038
|
+
import * as i017 from "@angular/core";
|
|
3389
3039
|
var EUI_COUNTRIES = {
|
|
3390
3040
|
AF: "Afghanistan",
|
|
3391
3041
|
AX: "Aland Islands",
|
|
@@ -4093,16 +3743,67 @@ var EuiTimezoneService = class _EuiTimezoneService {
|
|
|
4093
3743
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4094
3744
|
}
|
|
4095
3745
|
static {
|
|
4096
|
-
this.ɵfac =
|
|
3746
|
+
this.ɵfac = i017.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i017, type: _EuiTimezoneService, deps: [], target: i017.ɵɵFactoryTarget.Injectable });
|
|
4097
3747
|
}
|
|
4098
3748
|
static {
|
|
4099
|
-
this.ɵprov =
|
|
3749
|
+
this.ɵprov = i017.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i017, type: _EuiTimezoneService });
|
|
4100
3750
|
}
|
|
4101
3751
|
};
|
|
4102
|
-
|
|
4103
|
-
type:
|
|
3752
|
+
i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i017, type: EuiTimezoneService, decorators: [{
|
|
3753
|
+
type: Injectable15
|
|
4104
3754
|
}] });
|
|
4105
3755
|
|
|
3756
|
+
// lib/services/eui-theme.service.mjs
|
|
3757
|
+
import { Inject as Inject8, Injectable as Injectable16, Optional as Optional8 } from "@angular/core";
|
|
3758
|
+
import { map as map6, ReplaySubject } from "rxjs";
|
|
3759
|
+
import * as i018 from "@angular/core";
|
|
3760
|
+
var EuiTheme;
|
|
3761
|
+
(function(EuiTheme2) {
|
|
3762
|
+
EuiTheme2["EC"] = "ec";
|
|
3763
|
+
EuiTheme2["EU"] = "eu";
|
|
3764
|
+
EuiTheme2["EUI"] = "eui";
|
|
3765
|
+
})(EuiTheme || (EuiTheme = {}));
|
|
3766
|
+
var EuiThemeService = class _EuiThemeService {
|
|
3767
|
+
constructor(config) {
|
|
3768
|
+
this.config = config;
|
|
3769
|
+
this.theme = EuiTheme.EC;
|
|
3770
|
+
this.themeSubject = new ReplaySubject();
|
|
3771
|
+
this.theme$ = this.themeSubject.asObservable();
|
|
3772
|
+
this.isEU$ = this.theme$.pipe(map6((theme2) => EuiTheme.EU === theme2));
|
|
3773
|
+
this.isEC$ = this.theme$.pipe(map6((theme2) => EuiTheme.EC === theme2));
|
|
3774
|
+
const theme = this.config?.eui?.theme || EuiTheme.EC;
|
|
3775
|
+
this.setTheme(theme);
|
|
3776
|
+
}
|
|
3777
|
+
isECTheme() {
|
|
3778
|
+
return EuiTheme.EC === this.theme;
|
|
3779
|
+
}
|
|
3780
|
+
isEUTheme() {
|
|
3781
|
+
return EuiTheme.EU === this.theme;
|
|
3782
|
+
}
|
|
3783
|
+
getTheme() {
|
|
3784
|
+
return this.theme;
|
|
3785
|
+
}
|
|
3786
|
+
setTheme(theme) {
|
|
3787
|
+
this.theme = theme;
|
|
3788
|
+
this.themeSubject.next(theme);
|
|
3789
|
+
}
|
|
3790
|
+
static {
|
|
3791
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i018, type: _EuiThemeService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
3792
|
+
}
|
|
3793
|
+
static {
|
|
3794
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i018, type: _EuiThemeService, providedIn: "root" });
|
|
3795
|
+
}
|
|
3796
|
+
};
|
|
3797
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i018, type: EuiThemeService, decorators: [{
|
|
3798
|
+
type: Injectable16,
|
|
3799
|
+
args: [{ providedIn: "root" }]
|
|
3800
|
+
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3801
|
+
type: Optional8
|
|
3802
|
+
}, {
|
|
3803
|
+
type: Inject8,
|
|
3804
|
+
args: [GLOBAL_CONFIG_TOKEN]
|
|
3805
|
+
}] }] });
|
|
3806
|
+
|
|
4106
3807
|
// lib/services/storage/storage.service.mjs
|
|
4107
3808
|
var StorageService = class {
|
|
4108
3809
|
};
|
|
@@ -4170,8 +3871,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
4170
3871
|
};
|
|
4171
3872
|
|
|
4172
3873
|
// lib/services/storage/local-storage.service.mjs
|
|
4173
|
-
import { Injectable as
|
|
4174
|
-
import * as
|
|
3874
|
+
import { Injectable as Injectable17, Optional as Optional9 } from "@angular/core";
|
|
3875
|
+
import * as i019 from "@angular/core";
|
|
4175
3876
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
4176
3877
|
static {
|
|
4177
3878
|
this.NAME = "LocalStorageService";
|
|
@@ -4235,21 +3936,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
4235
3936
|
}
|
|
4236
3937
|
}
|
|
4237
3938
|
static {
|
|
4238
|
-
this.ɵfac =
|
|
3939
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i019, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4239
3940
|
}
|
|
4240
3941
|
static {
|
|
4241
|
-
this.ɵprov =
|
|
3942
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i019, type: _LocalStorageService });
|
|
4242
3943
|
}
|
|
4243
3944
|
};
|
|
4244
|
-
|
|
4245
|
-
type:
|
|
3945
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i019, type: LocalStorageService, decorators: [{
|
|
3946
|
+
type: Injectable17
|
|
4246
3947
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4247
|
-
type:
|
|
3948
|
+
type: Optional9
|
|
4248
3949
|
}] }] });
|
|
4249
3950
|
|
|
4250
3951
|
// lib/services/storage/session-storage.service.mjs
|
|
4251
|
-
import { Injectable as
|
|
4252
|
-
import * as
|
|
3952
|
+
import { Injectable as Injectable18, Optional as Optional10 } from "@angular/core";
|
|
3953
|
+
import * as i020 from "@angular/core";
|
|
4253
3954
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
4254
3955
|
static {
|
|
4255
3956
|
this.NAME = "SessionStorageService";
|
|
@@ -4313,24 +4014,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4313
4014
|
}
|
|
4314
4015
|
}
|
|
4315
4016
|
static {
|
|
4316
|
-
this.ɵfac =
|
|
4017
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i020, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i020.ɵɵFactoryTarget.Injectable });
|
|
4317
4018
|
}
|
|
4318
4019
|
static {
|
|
4319
|
-
this.ɵprov =
|
|
4020
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i020, type: _SessionStorageService });
|
|
4320
4021
|
}
|
|
4321
4022
|
};
|
|
4322
|
-
|
|
4323
|
-
type:
|
|
4023
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i020, type: SessionStorageService, decorators: [{
|
|
4024
|
+
type: Injectable18
|
|
4324
4025
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4325
|
-
type:
|
|
4026
|
+
type: Optional10
|
|
4326
4027
|
}] }] });
|
|
4327
4028
|
|
|
4328
4029
|
// lib/services/storage/local-forage.service.mjs
|
|
4329
|
-
import { Inject as
|
|
4030
|
+
import { Inject as Inject9, Injectable as Injectable19, InjectionToken as InjectionToken6, Optional as Optional11 } from "@angular/core";
|
|
4330
4031
|
import { from as from2 } from "rxjs";
|
|
4331
|
-
import { take as take3, tap as
|
|
4032
|
+
import { take as take3, tap as tap5 } from "rxjs/operators";
|
|
4332
4033
|
import * as lf from "localforage";
|
|
4333
|
-
import * as
|
|
4034
|
+
import * as i021 from "@angular/core";
|
|
4334
4035
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4335
4036
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4336
4037
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4358,7 +4059,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4358
4059
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4359
4060
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4360
4061
|
ready() {
|
|
4361
|
-
return from2(localForage.ready()).pipe(take3(1),
|
|
4062
|
+
return from2(localForage.ready()).pipe(take3(1), tap5({
|
|
4362
4063
|
next: () => {
|
|
4363
4064
|
},
|
|
4364
4065
|
error: (err) => {
|
|
@@ -4376,7 +4077,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4376
4077
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4377
4078
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4378
4079
|
get(key) {
|
|
4379
|
-
return from2(localForage.getItem(key)).pipe(take3(1),
|
|
4080
|
+
return from2(localForage.getItem(key)).pipe(take3(1), tap5(() => {
|
|
4380
4081
|
}, (err) => {
|
|
4381
4082
|
if (this.log) {
|
|
4382
4083
|
this.log.error(this.name(), "get", err);
|
|
@@ -4392,7 +4093,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4392
4093
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4393
4094
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4394
4095
|
set(key, value) {
|
|
4395
|
-
return from2(localForage.setItem(key, value)).pipe(take3(1),
|
|
4096
|
+
return from2(localForage.setItem(key, value)).pipe(take3(1), tap5({
|
|
4396
4097
|
next: () => {
|
|
4397
4098
|
},
|
|
4398
4099
|
error: (err) => {
|
|
@@ -4410,7 +4111,7 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4410
4111
|
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
4411
4112
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4412
4113
|
remove(key) {
|
|
4413
|
-
return from2(localForage.removeItem(key)).pipe(take3(1),
|
|
4114
|
+
return from2(localForage.removeItem(key)).pipe(take3(1), tap5({
|
|
4414
4115
|
next: () => {
|
|
4415
4116
|
},
|
|
4416
4117
|
error: (err) => {
|
|
@@ -4421,31 +4122,31 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4421
4122
|
}));
|
|
4422
4123
|
}
|
|
4423
4124
|
static {
|
|
4424
|
-
this.ɵfac =
|
|
4125
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i021, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4425
4126
|
}
|
|
4426
4127
|
static {
|
|
4427
|
-
this.ɵprov =
|
|
4128
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i021, type: _LocalForageService });
|
|
4428
4129
|
}
|
|
4429
4130
|
};
|
|
4430
|
-
|
|
4431
|
-
type:
|
|
4131
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i021, type: LocalForageService, decorators: [{
|
|
4132
|
+
type: Injectable19
|
|
4432
4133
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4433
|
-
type:
|
|
4134
|
+
type: Inject9,
|
|
4434
4135
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4435
4136
|
}, {
|
|
4436
|
-
type:
|
|
4137
|
+
type: Optional11
|
|
4437
4138
|
}] }, { type: LogService, decorators: [{
|
|
4438
|
-
type:
|
|
4139
|
+
type: Optional11
|
|
4439
4140
|
}] }] });
|
|
4440
4141
|
|
|
4441
4142
|
// lib/services/locale/locale.service.mjs
|
|
4442
|
-
import { Inject as
|
|
4143
|
+
import { Inject as Inject10, Injectable as Injectable20, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional12 } from "@angular/core";
|
|
4443
4144
|
import { getLocaleId } from "@angular/common";
|
|
4444
4145
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4445
4146
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4446
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4147
|
+
import { catchError as catchError4, filter as filter2, map as map7, switchMap as switchMap3, take as take4, takeUntil, tap as tap6 } from "rxjs/operators";
|
|
4447
4148
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4448
|
-
import * as
|
|
4149
|
+
import * as i022 from "@angular/core";
|
|
4449
4150
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4450
4151
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4451
4152
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4493,7 +4194,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4493
4194
|
return this.store.select(selector).pipe(
|
|
4494
4195
|
takeUntil(this.subNotifier),
|
|
4495
4196
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4496
|
-
|
|
4197
|
+
map7((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4497
4198
|
);
|
|
4498
4199
|
}
|
|
4499
4200
|
/**
|
|
@@ -4509,7 +4210,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4509
4210
|
this.bindTranslateServiceLangChangeToState();
|
|
4510
4211
|
}
|
|
4511
4212
|
const availableLocales = state?.available || this.config?.available || this.getBrowserLocales() || [this.currentLocale];
|
|
4512
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier),
|
|
4213
|
+
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap6(() => this.updateState(state || { id: this.currentLocale })));
|
|
4513
4214
|
}
|
|
4514
4215
|
/**
|
|
4515
4216
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4598,7 +4299,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4598
4299
|
if (this.log) {
|
|
4599
4300
|
this.logger.debug(error);
|
|
4600
4301
|
}
|
|
4601
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4302
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map7(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4602
4303
|
if (this.log) {
|
|
4603
4304
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4604
4305
|
}
|
|
@@ -4607,8 +4308,8 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4607
4308
|
})
|
|
4608
4309
|
)),
|
|
4609
4310
|
// update the "available" array attribute with newly registered
|
|
4610
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4611
|
-
const available = state
|
|
4311
|
+
switchMap3((id) => this.getState().pipe(take4(1), map7((state) => {
|
|
4312
|
+
const available = state["available"] ? state["available"] : [];
|
|
4612
4313
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4613
4314
|
})))
|
|
4614
4315
|
).subscribe((state) => {
|
|
@@ -4630,41 +4331,41 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4630
4331
|
return browserLocales.map((locale) => locale.trim());
|
|
4631
4332
|
}
|
|
4632
4333
|
static {
|
|
4633
|
-
this.ɵfac =
|
|
4334
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", 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
4335
|
}
|
|
4635
4336
|
static {
|
|
4636
|
-
this.ɵprov =
|
|
4337
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i022, type: _LocaleService, providedIn: "root" });
|
|
4637
4338
|
}
|
|
4638
4339
|
};
|
|
4639
|
-
|
|
4640
|
-
type:
|
|
4340
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i022, type: LocaleService, decorators: [{
|
|
4341
|
+
type: Injectable20,
|
|
4641
4342
|
args: [{
|
|
4642
4343
|
providedIn: "root"
|
|
4643
4344
|
}]
|
|
4644
4345
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4645
|
-
type:
|
|
4346
|
+
type: Inject10,
|
|
4646
4347
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4647
4348
|
}] }, { type: void 0, decorators: [{
|
|
4648
|
-
type:
|
|
4349
|
+
type: Inject10,
|
|
4649
4350
|
args: [LOCALE_ID]
|
|
4650
4351
|
}] }, { type: void 0, decorators: [{
|
|
4651
|
-
type:
|
|
4352
|
+
type: Optional12
|
|
4652
4353
|
}, {
|
|
4653
|
-
type:
|
|
4354
|
+
type: Inject10,
|
|
4654
4355
|
args: [LOCALE_ID_MAPPER]
|
|
4655
4356
|
}] }, { type: I18nService, decorators: [{
|
|
4656
|
-
type:
|
|
4357
|
+
type: Optional12
|
|
4657
4358
|
}] }, { type: LogService, decorators: [{
|
|
4658
|
-
type:
|
|
4359
|
+
type: Optional12
|
|
4659
4360
|
}] }] });
|
|
4660
4361
|
|
|
4661
4362
|
// lib/services/locale/locale.service.mock.mjs
|
|
4662
|
-
import { Optional as
|
|
4363
|
+
import { Optional as Optional13, Inject as Inject11, Injectable as Injectable21, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4663
4364
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4664
4365
|
import localeFr from "@angular/common/locales/fr";
|
|
4665
4366
|
import localeEl from "@angular/common/locales/el";
|
|
4666
4367
|
import { registerLocaleData } from "@angular/common";
|
|
4667
|
-
import * as
|
|
4368
|
+
import * as i023 from "@angular/core";
|
|
4668
4369
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4669
4370
|
constructor(locale_id) {
|
|
4670
4371
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4689,18 +4390,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4689
4390
|
return of9({ success: true });
|
|
4690
4391
|
}
|
|
4691
4392
|
static {
|
|
4692
|
-
this.ɵfac =
|
|
4393
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i023, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i023.ɵɵFactoryTarget.Injectable });
|
|
4693
4394
|
}
|
|
4694
4395
|
static {
|
|
4695
|
-
this.ɵprov =
|
|
4396
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i023, type: _LocaleServiceMock });
|
|
4696
4397
|
}
|
|
4697
4398
|
};
|
|
4698
|
-
|
|
4699
|
-
type:
|
|
4399
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i023, type: LocaleServiceMock, decorators: [{
|
|
4400
|
+
type: Injectable21
|
|
4700
4401
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4701
|
-
type:
|
|
4402
|
+
type: Optional13
|
|
4702
4403
|
}, {
|
|
4703
|
-
type:
|
|
4404
|
+
type: Inject11,
|
|
4704
4405
|
args: [LOCALE_ID2]
|
|
4705
4406
|
}] }] });
|
|
4706
4407
|
|
|
@@ -4713,10 +4414,10 @@ var Status;
|
|
|
4713
4414
|
})(Status || (Status = {}));
|
|
4714
4415
|
|
|
4715
4416
|
// lib/services/loader/eui-loader.service.mjs
|
|
4716
|
-
import { Injectable as
|
|
4417
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
4717
4418
|
import { Subject as Subject2 } from "rxjs";
|
|
4718
|
-
import { filter as filter3, map as
|
|
4719
|
-
import * as
|
|
4419
|
+
import { filter as filter3, map as map8 } from "rxjs/operators";
|
|
4420
|
+
import * as i024 from "@angular/core";
|
|
4720
4421
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4721
4422
|
constructor() {
|
|
4722
4423
|
this.dependencies = [];
|
|
@@ -4810,7 +4511,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4810
4511
|
* @param name The name of the dependency
|
|
4811
4512
|
*/
|
|
4812
4513
|
statusChanges(name) {
|
|
4813
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4514
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map8(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4814
4515
|
}
|
|
4815
4516
|
/**
|
|
4816
4517
|
* Load a dependency and its prerequisites
|
|
@@ -4931,25 +4632,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4931
4632
|
}
|
|
4932
4633
|
}
|
|
4933
4634
|
static {
|
|
4934
|
-
this.ɵfac =
|
|
4635
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i024, type: _EuiLoaderService, deps: [], target: i024.ɵɵFactoryTarget.Injectable });
|
|
4935
4636
|
}
|
|
4936
4637
|
static {
|
|
4937
|
-
this.ɵprov =
|
|
4638
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i024, type: _EuiLoaderService, providedIn: "root" });
|
|
4938
4639
|
}
|
|
4939
4640
|
};
|
|
4940
|
-
|
|
4941
|
-
type:
|
|
4641
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i024, type: EuiLoaderService, decorators: [{
|
|
4642
|
+
type: Injectable22,
|
|
4942
4643
|
args: [{
|
|
4943
4644
|
providedIn: "root"
|
|
4944
4645
|
}]
|
|
4945
4646
|
}] });
|
|
4946
4647
|
|
|
4947
4648
|
// lib/services/user/user.service.mjs
|
|
4948
|
-
import { Injectable as
|
|
4649
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
4949
4650
|
import { of as of10 } from "rxjs";
|
|
4950
4651
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
4951
4652
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
4952
|
-
import * as
|
|
4653
|
+
import * as i025 from "@angular/core";
|
|
4953
4654
|
var UserService = class _UserService extends EuiService3 {
|
|
4954
4655
|
constructor(store) {
|
|
4955
4656
|
super({ userId: "annonymous" });
|
|
@@ -4988,14 +4689,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
4988
4689
|
}
|
|
4989
4690
|
}
|
|
4990
4691
|
static {
|
|
4991
|
-
this.ɵfac =
|
|
4692
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i025, type: _UserService, deps: [{ token: StoreService }], target: i025.ɵɵFactoryTarget.Injectable });
|
|
4992
4693
|
}
|
|
4993
4694
|
static {
|
|
4994
|
-
this.ɵprov =
|
|
4695
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i025, type: _UserService, providedIn: "root" });
|
|
4995
4696
|
}
|
|
4996
4697
|
};
|
|
4997
|
-
|
|
4998
|
-
type:
|
|
4698
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i025, type: UserService, decorators: [{
|
|
4699
|
+
type: Injectable23,
|
|
4999
4700
|
args: [{
|
|
5000
4701
|
providedIn: "root"
|
|
5001
4702
|
}]
|
|
@@ -5003,8 +4704,8 @@ i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.2"
|
|
|
5003
4704
|
|
|
5004
4705
|
// lib/services/user/user.service.mock.mjs
|
|
5005
4706
|
import { of as of11 } from "rxjs";
|
|
5006
|
-
import { Injectable as
|
|
5007
|
-
import * as
|
|
4707
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
4708
|
+
import * as i026 from "@angular/core";
|
|
5008
4709
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
5009
4710
|
constructor() {
|
|
5010
4711
|
super(null);
|
|
@@ -5020,20 +4721,20 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
5020
4721
|
updateState(userState, reducer) {
|
|
5021
4722
|
}
|
|
5022
4723
|
static {
|
|
5023
|
-
this.ɵfac =
|
|
4724
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i026, type: _UserServiceMock, deps: [], target: i026.ɵɵFactoryTarget.Injectable });
|
|
5024
4725
|
}
|
|
5025
4726
|
static {
|
|
5026
|
-
this.ɵprov =
|
|
4727
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i026, type: _UserServiceMock });
|
|
5027
4728
|
}
|
|
5028
4729
|
};
|
|
5029
|
-
|
|
5030
|
-
type:
|
|
4730
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i026, type: UserServiceMock, decorators: [{
|
|
4731
|
+
type: Injectable24
|
|
5031
4732
|
}], ctorParameters: () => [] });
|
|
5032
4733
|
|
|
5033
4734
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
5034
|
-
import { Injectable as
|
|
5035
|
-
import * as
|
|
5036
|
-
import * as
|
|
4735
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
4736
|
+
import * as i027 from "@angular/core";
|
|
4737
|
+
import * as i18 from "@ngx-translate/core";
|
|
5037
4738
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
5038
4739
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
5039
4740
|
constructor(translateService) {
|
|
@@ -5053,19 +4754,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
5053
4754
|
}));
|
|
5054
4755
|
}
|
|
5055
4756
|
static {
|
|
5056
|
-
this.ɵfac =
|
|
4757
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i027, type: _AddLangParamInterceptor, deps: [{ token: i18.TranslateService }], target: i027.ɵɵFactoryTarget.Injectable });
|
|
5057
4758
|
}
|
|
5058
4759
|
static {
|
|
5059
|
-
this.ɵprov =
|
|
4760
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i027, type: _AddLangParamInterceptor });
|
|
5060
4761
|
}
|
|
5061
4762
|
};
|
|
5062
|
-
|
|
5063
|
-
type:
|
|
5064
|
-
}], ctorParameters: () => [{ type:
|
|
4763
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i027, type: AddLangParamInterceptor, decorators: [{
|
|
4764
|
+
type: Injectable25
|
|
4765
|
+
}], ctorParameters: () => [{ type: i18.TranslateService }] });
|
|
5065
4766
|
|
|
5066
4767
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
5067
|
-
import { Injectable as
|
|
5068
|
-
import * as
|
|
4768
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
4769
|
+
import * as i028 from "@angular/core";
|
|
5069
4770
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
5070
4771
|
intercept(req, next) {
|
|
5071
4772
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -5077,19 +4778,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
5077
4778
|
}));
|
|
5078
4779
|
}
|
|
5079
4780
|
static {
|
|
5080
|
-
this.ɵfac =
|
|
4781
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i028, type: _CachePreventionInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
5081
4782
|
}
|
|
5082
4783
|
static {
|
|
5083
|
-
this.ɵprov =
|
|
4784
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i028, type: _CachePreventionInterceptor });
|
|
5084
4785
|
}
|
|
5085
4786
|
};
|
|
5086
|
-
|
|
5087
|
-
type:
|
|
4787
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i028, type: CachePreventionInterceptor, decorators: [{
|
|
4788
|
+
type: Injectable26
|
|
5088
4789
|
}] });
|
|
5089
4790
|
|
|
5090
4791
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
5091
|
-
import { Injectable as
|
|
5092
|
-
import * as
|
|
4792
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
4793
|
+
import * as i029 from "@angular/core";
|
|
5093
4794
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
5094
4795
|
intercept(request, next) {
|
|
5095
4796
|
return next.handle(request.clone({
|
|
@@ -5097,19 +4798,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
5097
4798
|
}));
|
|
5098
4799
|
}
|
|
5099
4800
|
static {
|
|
5100
|
-
this.ɵfac =
|
|
4801
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i029, type: _CorsSecurityInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
5101
4802
|
}
|
|
5102
4803
|
static {
|
|
5103
|
-
this.ɵprov =
|
|
4804
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i029, type: _CorsSecurityInterceptor });
|
|
5104
4805
|
}
|
|
5105
4806
|
};
|
|
5106
|
-
|
|
5107
|
-
type:
|
|
4807
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i029, type: CorsSecurityInterceptor, decorators: [{
|
|
4808
|
+
type: Injectable27
|
|
5108
4809
|
}] });
|
|
5109
4810
|
|
|
5110
4811
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
5111
|
-
import { Injectable as
|
|
5112
|
-
import * as
|
|
4812
|
+
import { Injectable as Injectable28 } from "@angular/core";
|
|
4813
|
+
import * as i030 from "@angular/core";
|
|
5113
4814
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
5114
4815
|
intercept(request, next) {
|
|
5115
4816
|
return next.handle(request.clone({
|
|
@@ -5117,24 +4818,24 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
5117
4818
|
}));
|
|
5118
4819
|
}
|
|
5119
4820
|
static {
|
|
5120
|
-
this.ɵfac =
|
|
4821
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i030, type: _CsrfPreventionInterceptor, deps: [], target: i030.ɵɵFactoryTarget.Injectable });
|
|
5121
4822
|
}
|
|
5122
4823
|
static {
|
|
5123
|
-
this.ɵprov =
|
|
4824
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i030, type: _CsrfPreventionInterceptor });
|
|
5124
4825
|
}
|
|
5125
4826
|
};
|
|
5126
|
-
|
|
5127
|
-
type:
|
|
4827
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i030, type: CsrfPreventionInterceptor, decorators: [{
|
|
4828
|
+
type: Injectable28
|
|
5128
4829
|
}] });
|
|
5129
4830
|
|
|
5130
4831
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
5131
|
-
import { Injectable as
|
|
4832
|
+
import { Injectable as Injectable29 } from "@angular/core";
|
|
5132
4833
|
import { HttpResponse } from "@angular/common/http";
|
|
5133
|
-
import { tap as
|
|
5134
|
-
import * as
|
|
4834
|
+
import { tap as tap7 } from "rxjs/operators";
|
|
4835
|
+
import * as i031 from "@angular/core";
|
|
5135
4836
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
5136
4837
|
intercept(request, next) {
|
|
5137
|
-
return next.handle(request).pipe(
|
|
4838
|
+
return next.handle(request).pipe(tap7((event) => {
|
|
5138
4839
|
this.checkRequestSuccessForEULoginSessionTimeout(request, event);
|
|
5139
4840
|
return event;
|
|
5140
4841
|
}, (error) => {
|
|
@@ -5182,23 +4883,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
5182
4883
|
document.location.reload();
|
|
5183
4884
|
}
|
|
5184
4885
|
static {
|
|
5185
|
-
this.ɵfac =
|
|
4886
|
+
this.ɵfac = i031.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i031, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i031.ɵɵFactoryTarget.Injectable });
|
|
5186
4887
|
}
|
|
5187
4888
|
static {
|
|
5188
|
-
this.ɵprov =
|
|
4889
|
+
this.ɵprov = i031.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i031, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
5189
4890
|
}
|
|
5190
4891
|
};
|
|
5191
|
-
|
|
5192
|
-
type:
|
|
4892
|
+
i031.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i031, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
4893
|
+
type: Injectable29
|
|
5193
4894
|
}] });
|
|
5194
4895
|
|
|
5195
4896
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
5196
|
-
import { Inject as
|
|
4897
|
+
import { Inject as Inject12, Injectable as Injectable30, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
5197
4898
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
5198
4899
|
import { of as of12 } from "rxjs";
|
|
5199
4900
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
5200
4901
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
5201
|
-
import * as
|
|
4902
|
+
import * as i032 from "@angular/core";
|
|
5202
4903
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
5203
4904
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
5204
4905
|
constructor(errorMappingHandler) {
|
|
@@ -5221,25 +4922,18 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
5221
4922
|
);
|
|
5222
4923
|
}
|
|
5223
4924
|
static {
|
|
5224
|
-
this.ɵfac =
|
|
4925
|
+
this.ɵfac = i032.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i032, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i032.ɵɵFactoryTarget.Injectable });
|
|
5225
4926
|
}
|
|
5226
4927
|
static {
|
|
5227
|
-
this.ɵprov =
|
|
4928
|
+
this.ɵprov = i032.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i032, type: _UxRequestErrorModelInterceptor });
|
|
5228
4929
|
}
|
|
5229
4930
|
};
|
|
5230
|
-
|
|
5231
|
-
type:
|
|
4931
|
+
i032.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.1", ngImport: i032, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
4932
|
+
type: Injectable30
|
|
5232
4933
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
5233
|
-
type:
|
|
4934
|
+
type: Inject12,
|
|
5234
4935
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5235
4936
|
}] }] });
|
|
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
4937
|
export {
|
|
5244
4938
|
ActivatedRouteAction,
|
|
5245
4939
|
AddApiQueueItemAction,
|
|
@@ -5258,13 +4952,16 @@ export {
|
|
|
5258
4952
|
CachePreventionInterceptor,
|
|
5259
4953
|
ConsoleHttpErrorCallbackFn,
|
|
5260
4954
|
CoreAppActionTypes,
|
|
4955
|
+
CoreAppEffects,
|
|
5261
4956
|
CoreI18nActionTypes,
|
|
5262
4957
|
CoreLocaleActionTypes,
|
|
5263
4958
|
CoreModule,
|
|
4959
|
+
CoreModuleEffects,
|
|
5264
4960
|
CoreNotificationsActionTypes,
|
|
5265
4961
|
CoreUserActionTypes,
|
|
5266
4962
|
CorsSecurityInterceptor,
|
|
5267
4963
|
CsrfPreventionInterceptor,
|
|
4964
|
+
CssUtils,
|
|
5268
4965
|
DYNAMIC_COMPONENT_CONFIG,
|
|
5269
4966
|
EUI_CONFIG_TOKEN,
|
|
5270
4967
|
EUI_COUNTRIES,
|
|
@@ -5280,6 +4977,8 @@ export {
|
|
|
5280
4977
|
EuiGrowlService,
|
|
5281
4978
|
EuiLoaderService,
|
|
5282
4979
|
EuiPermissionService,
|
|
4980
|
+
EuiTheme,
|
|
4981
|
+
EuiThemeService,
|
|
5283
4982
|
EuiTimezoneService,
|
|
5284
4983
|
GLOBAL_CONFIG_TOKEN,
|
|
5285
4984
|
GlobalErrorHandler,
|