@eui/core 14.0.0-rc.2 → 14.0.0-rc.3

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.
Files changed (40) hide show
  1. package/assets/i18n-eui/bg.json +2 -1
  2. package/assets/i18n-eui/cs.json +2 -1
  3. package/assets/i18n-eui/da.json +2 -1
  4. package/assets/i18n-eui/de.json +3 -2
  5. package/assets/i18n-eui/el.json +2 -1
  6. package/assets/i18n-eui/en.json +2 -1
  7. package/assets/i18n-eui/es.json +2 -1
  8. package/assets/i18n-eui/et.json +2 -1
  9. package/assets/i18n-eui/fi.json +2 -1
  10. package/assets/i18n-eui/fr.json +2 -1
  11. package/assets/i18n-eui/ga.json +2 -1
  12. package/assets/i18n-eui/hr.json +2 -1
  13. package/assets/i18n-eui/hu.json +3 -2
  14. package/assets/i18n-eui/it.json +2 -1
  15. package/assets/i18n-eui/lt.json +2 -1
  16. package/assets/i18n-eui/lv.json +2 -1
  17. package/assets/i18n-eui/mt.json +2 -1
  18. package/assets/i18n-eui/nl.json +2 -1
  19. package/assets/i18n-eui/pl.json +2 -1
  20. package/assets/i18n-eui/pt.json +2 -1
  21. package/assets/i18n-eui/ro.json +2 -1
  22. package/assets/i18n-eui/sk.json +2 -1
  23. package/assets/i18n-eui/sl.json +2 -1
  24. package/assets/i18n-eui/sv.json +2 -1
  25. package/docs/injectables/LocaleServiceMock.html +31 -1
  26. package/docs/js/search/search_index.js +2 -2
  27. package/esm2020/lib/eui-core.module.mjs +4 -5
  28. package/esm2020/lib/services/locale/index.mjs +2 -1
  29. package/esm2020/lib/services/locale/locale.service.mock.mjs +32 -0
  30. package/fesm2015/eui-core.mjs +36 -6
  31. package/fesm2015/eui-core.mjs.map +1 -1
  32. package/fesm2020/eui-core.mjs +34 -6
  33. package/fesm2020/eui-core.mjs.map +1 -1
  34. package/lib/eui-core.module.d.ts +1 -2
  35. package/lib/eui-core.module.d.ts.map +1 -1
  36. package/lib/services/locale/index.d.ts +1 -0
  37. package/lib/services/locale/index.d.ts.map +1 -1
  38. package/lib/services/locale/locale.service.mock.d.ts +15 -0
  39. package/lib/services/locale/locale.service.mock.d.ts.map +1 -0
  40. package/package.json +1 -1
@@ -3,8 +3,6 @@ import { LogLevel, ConsoleAppender, Logger, LoggerMock, mergeAll, getI18nLoaderC
3
3
  export * from '@eui/base';
4
4
  import * as i0 from '@angular/core';
5
5
  import { InjectionToken, Injectable, Inject, Injector, NgModule, Optional, APP_INITIALIZER, EventEmitter, PLATFORM_ID, SkipSelf, ErrorHandler, LOCALE_ID } from '@angular/core';
6
- import * as i1$2 from '@angular/common/http';
7
- import { HttpClientModule, HttpErrorResponse, HttpResponse, HttpHeaders, HttpEventType } from '@angular/common/http';
8
6
  import * as extendProxy from 'extend';
9
7
  import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';
10
8
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
@@ -21,6 +19,8 @@ import * as i2$1 from '@angular/router';
21
19
  import { NavigationEnd } from '@angular/router';
22
20
  import isEqual from 'lodash-es/isEqual';
23
21
  import get from 'lodash-es/get';
22
+ import * as i1$2 from '@angular/common/http';
23
+ import { HttpErrorResponse, HttpResponse, HttpHeaders, HttpEventType } from '@angular/common/http';
24
24
  import { By } from '@angular/platform-browser';
25
25
  import { FormGroup, FormArray } from '@angular/forms';
26
26
  import { DomPortalOutlet, ComponentPortal, PortalInjector } from '@angular/cdk/portal';
@@ -2080,13 +2080,13 @@ class CoreModule {
2080
2080
  }
2081
2081
  }
2082
2082
  /** @nocollapse */ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule, deps: [{ token: CORE_ROOT_GUARD, optional: true }, { token: CoreModule, optional: true, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
2083
- /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
2084
- /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule, imports: [HttpClientModule] });
2083
+ /** @nocollapse */ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: CoreModule });
2084
+ /** @nocollapse */ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule });
2085
2085
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CoreModule, decorators: [{
2086
2086
  type: NgModule,
2087
2087
  args: [{
2088
2088
  imports: [
2089
- HttpClientModule,
2089
+ // HttpClientModule, no more..
2090
2090
  ],
2091
2091
  }]
2092
2092
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -4260,6 +4260,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
4260
4260
  type: Optional
4261
4261
  }] }]; } });
4262
4262
 
4263
+ class LocaleServiceMock extends LocaleService {
4264
+ constructor(locale_id) {
4265
+ super(null, { locale: { id: 'en', available: [] } }, locale_id, null, null, null);
4266
+ this.locale_id = locale_id;
4267
+ this.DEFAULT_LOCALE = 'en';
4268
+ }
4269
+ getState() {
4270
+ return of({ id: this.DEFAULT_LOCALE });
4271
+ }
4272
+ updateState(state) {
4273
+ this.DEFAULT_LOCALE = state.id || 'en';
4274
+ }
4275
+ init(state) {
4276
+ this.DEFAULT_LOCALE = state.id || 'en';
4277
+ return of({ success: true });
4278
+ }
4279
+ }
4280
+ /** @nocollapse */ LocaleServiceMock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleServiceMock, deps: [{ token: LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4281
+ /** @nocollapse */ LocaleServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleServiceMock });
4282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocaleServiceMock, decorators: [{
4283
+ type: Injectable
4284
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4285
+ type: Optional
4286
+ }, {
4287
+ type: Inject,
4288
+ args: [LOCALE_ID]
4289
+ }] }]; } });
4290
+
4263
4291
  // export const USER_API_CONFIG_TOKEN = new InjectionToken<UserApiConfig>('USER_API_CONFIG');
4264
4292
  // export const DEFAULT_USER_PREFERENCES_TOKEN = new InjectionToken<BaseUserPreferences>('DEFAULT_USER_PREFERENCES');
4265
4293
  class UserService extends EuiService {
@@ -4698,5 +4726,5 @@ class OpenIdConnectServiceMock extends OpenIdConnectService {
4698
4726
  * Generated bundle index. Do not edit.
4699
4727
  */
4700
4728
 
4701
- export { ActivatedRouteAction, AddApiQueueItemAction, AddAppLoadedConfigModulesAction, AddLangParamInterceptor, AlertHttpErrorCallbackFn, ApiQueueService, ApiQueueServiceMock, AsyncStorageService, AsyncStorageServiceMock, BASE_LOGGER_NAME_TOKEN, BASE_NAME_TOKEN, BrowserStorageType, CONFIG_TOKEN, CORE_ROOT_GUARD, CachePreventionInterceptor, ConsoleHttpErrorCallbackFn, CoreAppActionTypes, CoreAppEffects, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreModuleEffects, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiCoreRootGuardClass, EuiError, EuiPermissionService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, I18nServiceMock, InitStoreAction, LANG_PARAM_KEY, LOCALE_ID_MAPPER, LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, LOG_APPENDERS_TOKEN, LOG_LEVEL_TOKEN, LocalForageService, LocalStorageService, LocaleService, LogHttpErrorCallbackFn, LogModule, LogService, LogServiceMock, MODULE_CONFIG_TOKEN, MODULE_NAME_TOKEN, OpenIdConnectInterceptor, OpenIdConnectService, OpenIdConnectServiceMock, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_COUNTRIES, UX_ERROR_MAPPING_HANDLER_TOKEN, UX_TIMEZONES, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxAppShellService, UxDynamicComponentService, UxDynamicMenuService, UxErrorFeedbackService, UxErrorManager, UxRequestErrorModelInterceptor, UxTimezoneService, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, formatNumber, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, position, preInitApp, prepareEuiAppConfigToken, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail, withUxErrorManager };
4729
+ export { ActivatedRouteAction, AddApiQueueItemAction, AddAppLoadedConfigModulesAction, AddLangParamInterceptor, AlertHttpErrorCallbackFn, ApiQueueService, ApiQueueServiceMock, AsyncStorageService, AsyncStorageServiceMock, BASE_LOGGER_NAME_TOKEN, BASE_NAME_TOKEN, BrowserStorageType, CONFIG_TOKEN, CORE_ROOT_GUARD, CachePreventionInterceptor, ConsoleHttpErrorCallbackFn, CoreAppActionTypes, CoreAppEffects, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreModuleEffects, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiCoreRootGuardClass, EuiError, EuiPermissionService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, I18nServiceMock, InitStoreAction, LANG_PARAM_KEY, LOCALE_ID_MAPPER, LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, LOG_APPENDERS_TOKEN, LOG_LEVEL_TOKEN, LocalForageService, LocalStorageService, LocaleService, LocaleServiceMock, LogHttpErrorCallbackFn, LogModule, LogService, LogServiceMock, MODULE_CONFIG_TOKEN, MODULE_NAME_TOKEN, OpenIdConnectInterceptor, OpenIdConnectService, OpenIdConnectServiceMock, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_COUNTRIES, UX_ERROR_MAPPING_HANDLER_TOKEN, UX_TIMEZONES, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxAppShellService, UxDynamicComponentService, UxDynamicMenuService, UxErrorFeedbackService, UxErrorManager, UxRequestErrorModelInterceptor, UxTimezoneService, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, formatNumber, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, position, preInitApp, prepareEuiAppConfigToken, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail, withUxErrorManager };
4702
4730
  //# sourceMappingURL=eui-core.mjs.map