@eui/core 21.0.0-next.42 → 21.0.0-next.44

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.
@@ -253,9 +253,6 @@
253
253
  <li>
254
254
  <a href="#euiCoreRootGuardClass" title="packages/core/src/lib/eui-core.module.ts" ><b>euiCoreRootGuardClass</b>&nbsp;&nbsp;&nbsp;(packages/.../eui-core.module.ts)</a>
255
255
  </li>
256
- <li>
257
- <a href="#euiInitApp" title="packages/core/src/lib/services/app/eui-init-app.ts" class="deprecated-name"><b>euiInitApp</b>&nbsp;&nbsp;&nbsp;(packages/.../eui-init-app.ts)</a>
258
- </li>
259
256
  <li>
260
257
  <a href="#filterAppState" title="packages/core/src/lib/services/store/reducers/meta.reducers.ts" class="deprecated-name"><b>filterAppState</b>&nbsp;&nbsp;&nbsp;(packages/.../meta.reducers.ts)</a>
261
258
  </li>
@@ -3463,124 +3460,6 @@
3463
3460
  </tr>
3464
3461
 
3465
3462
 
3466
- </tbody>
3467
- </table>
3468
- </section>
3469
- <h3>packages/core/src/lib/services/app/eui-init-app.ts</h3>
3470
- <section data-compodoc="block-properties">
3471
- <h3></h3> <table class="table table-sm table-bordered">
3472
- <tbody>
3473
- <tr>
3474
- <td class="col-md-4">
3475
- <a name="euiInitApp"></a>
3476
- <span class="name">
3477
- <span class="deprecated-name"><b>euiInitApp</b></span>
3478
- <a href="#euiInitApp"><span class="icon ion-ios-link"></span></a>
3479
- </span>
3480
- </td>
3481
- </tr>
3482
- <tr>
3483
- <td class="col-md-4 deprecated">
3484
- Use `provideEuiInitializer()` instead. Beware that this should be declared as Environment providers.
3485
- </td>
3486
- </tr>
3487
- <tr>
3488
- <td class="col-md-4">
3489
- <i>Type : </i> <code>unknown</code>
3490
-
3491
- </td>
3492
- </tr>
3493
- <tr>
3494
- <td class="col-md-4">
3495
- <i>Default value : </i><code>(injector: Injector) &#x3D;&gt; (): Promise&lt;null&gt; &#x3D;&gt;
3496
- new Promise((resolve) &#x3D;&gt; {
3497
- const locationInitialized &#x3D; injector.get(LOCATION_INITIALIZED, Promise.resolve(null));
3498
-
3499
- locationInitialized.then(() &#x3D;&gt; {
3500
- const appConfig: EuiAppConfig &#x3D; injector.get(CONFIG_TOKEN);
3501
- // necessary config parameters
3502
- let appVersion: string;
3503
- if (appConfig &amp;&amp; appConfig.versions &amp;&amp; appConfig.versions.app) {
3504
- appVersion &#x3D; appConfig.versions.app;
3505
- } else {
3506
- appVersion &#x3D; &#x27;0.0.0&#x27;;
3507
- }
3508
- let storageType: BrowserStorageType;
3509
- if (appConfig &amp;&amp; appConfig[&#x27;saveStateStorage&#x27;]) {
3510
- storageType &#x3D; appConfig[&#x27;saveStateStorage&#x27;];
3511
- } else {
3512
- storageType &#x3D; BrowserStorageType.local;
3513
- }
3514
-
3515
- const storeService &#x3D; injector.get(StoreService);
3516
- storeService.init(appVersion, storageType);
3517
- storeService.handleAutoSave();
3518
- resolve(null);
3519
- });
3520
- })</code>
3521
- </td>
3522
- </tr>
3523
-
3524
- <tr>
3525
- <td class="col-md-4">
3526
- <div class="io-description"><p>Initializes the app with the necessary configurations</p>
3527
- </div>
3528
- </td>
3529
- </tr>
3530
-
3531
- </tbody>
3532
- </table>
3533
- <table class="table table-sm table-bordered">
3534
- <tbody>
3535
- <tr>
3536
- <td class="col-md-4">
3537
- <a name="init"></a>
3538
- <span class="name">
3539
- <span ><b>init</b></span>
3540
- <a href="#init"><span class="icon ion-ios-link"></span></a>
3541
- </span>
3542
- </td>
3543
- </tr>
3544
- <tr>
3545
- <td class="col-md-4">
3546
- <i>Type : </i> <code>unknown</code>
3547
-
3548
- </td>
3549
- </tr>
3550
- <tr>
3551
- <td class="col-md-4">
3552
- <i>Default value : </i><code>(): Promise&lt;unknown&gt; &#x3D;&gt; {
3553
- const locationInitialized &#x3D; inject(LOCATION_INITIALIZED, { optional: true }) || Promise.resolve(null);
3554
- const appConfig: EuiAppConfig &#x3D; inject(CONFIG_TOKEN);
3555
- const storeService &#x3D; inject(StoreService);
3556
-
3557
- return new Promise&lt;void&gt;(resolve &#x3D;&gt; {
3558
-
3559
- locationInitialized.then(() &#x3D;&gt; {
3560
- // necessary config parameters
3561
- let appVersion: string;
3562
- if (appConfig &amp;&amp; appConfig.versions &amp;&amp; appConfig.versions.app) {
3563
- appVersion &#x3D; appConfig.versions.app;
3564
- } else {
3565
- appVersion &#x3D; &#x27;0.0.0&#x27;;
3566
- }
3567
- let storageType: BrowserStorageType;
3568
- if (appConfig &amp;&amp; appConfig[&#x27;saveStateStorage&#x27;]) {
3569
- storageType &#x3D; appConfig[&#x27;saveStateStorage&#x27;];
3570
- } else {
3571
- storageType &#x3D; BrowserStorageType.local;
3572
- }
3573
-
3574
- storeService.init(appVersion, storageType);
3575
- storeService.handleAutoSave();
3576
- resolve(null);
3577
- });
3578
- });
3579
- }</code>
3580
- </td>
3581
- </tr>
3582
-
3583
-
3584
3463
  </tbody>
3585
3464
  </table>
3586
3465
  </section>
@@ -3813,6 +3692,62 @@
3813
3692
  </tr>
3814
3693
 
3815
3694
 
3695
+ </tbody>
3696
+ </table>
3697
+ </section>
3698
+ <h3>packages/core/src/lib/services/app/eui-init-app.ts</h3>
3699
+ <section data-compodoc="block-properties">
3700
+ <h3></h3> <table class="table table-sm table-bordered">
3701
+ <tbody>
3702
+ <tr>
3703
+ <td class="col-md-4">
3704
+ <a name="init"></a>
3705
+ <span class="name">
3706
+ <span ><b>init</b></span>
3707
+ <a href="#init"><span class="icon ion-ios-link"></span></a>
3708
+ </span>
3709
+ </td>
3710
+ </tr>
3711
+ <tr>
3712
+ <td class="col-md-4">
3713
+ <i>Type : </i> <code>unknown</code>
3714
+
3715
+ </td>
3716
+ </tr>
3717
+ <tr>
3718
+ <td class="col-md-4">
3719
+ <i>Default value : </i><code>(): Promise&lt;unknown&gt; &#x3D;&gt; {
3720
+ const locationInitialized &#x3D; inject(LOCATION_INITIALIZED, { optional: true }) || Promise.resolve(null);
3721
+ const appConfig: EuiAppConfig &#x3D; inject(CONFIG_TOKEN);
3722
+ const storeService &#x3D; inject(StoreService);
3723
+
3724
+ return new Promise&lt;void&gt;(resolve &#x3D;&gt; {
3725
+
3726
+ locationInitialized.then(() &#x3D;&gt; {
3727
+ // necessary config parameters
3728
+ let appVersion: string;
3729
+ if (appConfig &amp;&amp; appConfig.versions &amp;&amp; appConfig.versions.app) {
3730
+ appVersion &#x3D; appConfig.versions.app;
3731
+ } else {
3732
+ appVersion &#x3D; &#x27;0.0.0&#x27;;
3733
+ }
3734
+ let storageType: BrowserStorageType;
3735
+ if (appConfig &amp;&amp; appConfig[&#x27;saveStateStorage&#x27;]) {
3736
+ storageType &#x3D; appConfig[&#x27;saveStateStorage&#x27;];
3737
+ } else {
3738
+ storageType &#x3D; BrowserStorageType.local;
3739
+ }
3740
+
3741
+ storeService.init(appVersion, storageType);
3742
+ storeService.handleAutoSave();
3743
+ resolve(null);
3744
+ });
3745
+ });
3746
+ }</code>
3747
+ </td>
3748
+ </tr>
3749
+
3750
+
3816
3751
  </tbody>
3817
3752
  </table>
3818
3753
  </section>
@@ -121,7 +121,7 @@
121
121
  </ol>
122
122
  <ul class="properties-list">
123
123
  <li>
124
- <b>Version</b> : 21.0.0-next.42</li>
124
+ <b>Version</b> : 21.0.0-next.44</li>
125
125
  </ul>
126
126
 
127
127
 
@@ -833,15 +833,6 @@ class StoreService {
833
833
  handleAutoSave() {
834
834
  this.isHandlingAutoSave = true;
835
835
  }
836
- /**
837
- * Proxy to NGRX store.dispatch()
838
- * that allows to intercept if the store is present
839
- *
840
- * @deprecated it will be removed in the next version support of NGRX will cease
841
- */
842
- dispatch(action) {
843
- console.warn('eUI does not PROXY to NGRX store.dispatch() anymore');
844
- }
845
836
  updateState(state, reducer) {
846
837
  const currentState = this.state.getValue();
847
838
  let newState;
@@ -944,7 +935,6 @@ class StoreServiceMock extends StoreService {
944
935
  init() { }
945
936
  addAutoSaveHandler() { }
946
937
  handleAutoSave() { }
947
- dispatch() { }
948
938
  select() {
949
939
  return of({});
950
940
  }
@@ -1136,36 +1126,6 @@ const init = () => {
1136
1126
  function provideEuiInitializer() {
1137
1127
  return provideAppInitializer(init);
1138
1128
  }
1139
- /**
1140
- * Initializes the app with the necessary configurations
1141
- * @param injector
1142
- * @deprecated Use `provideEuiInitializer()` instead. Beware that this should be declared as Environment providers.
1143
- */
1144
- const euiInitApp = (injector) => () => new Promise((resolve) => {
1145
- const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve(null));
1146
- locationInitialized.then(() => {
1147
- const appConfig = injector.get(CONFIG_TOKEN);
1148
- // necessary config parameters
1149
- let appVersion;
1150
- if (appConfig && appConfig.versions && appConfig.versions.app) {
1151
- appVersion = appConfig.versions.app;
1152
- }
1153
- else {
1154
- appVersion = '0.0.0';
1155
- }
1156
- let storageType;
1157
- if (appConfig && appConfig['saveStateStorage']) {
1158
- storageType = appConfig['saveStateStorage'];
1159
- }
1160
- else {
1161
- storageType = BrowserStorageType.local;
1162
- }
1163
- const storeService = injector.get(StoreService);
1164
- storeService.init(appVersion, storageType);
1165
- storeService.handleAutoSave();
1166
- resolve(null);
1167
- });
1168
- });
1169
1129
 
1170
1130
  const errorCodes = {
1171
1131
  ERR_GENERIC: 'ERR_GENERIC',
@@ -4826,7 +4786,7 @@ class LocaleServiceMock extends LocaleService {
4826
4786
  registerLocaleData(localeFr, 'fr');
4827
4787
  }
4828
4788
  else if (state.id === 'el') {
4829
- registerLocaleData(localeEl, 'fr');
4789
+ registerLocaleData(localeEl, 'el');
4830
4790
  }
4831
4791
  this.stateSub.next(state);
4832
4792
  }
@@ -5404,5 +5364,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImpor
5404
5364
  * Generated bundle index. Do not edit.
5405
5365
  */
5406
5366
 
5407
- 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, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, CssUtils, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EUI_COUNTRIES, EUI_TIMEZONES, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiAppShellService, EuiCoreRootGuardClass, EuiDynamicComponentService, EuiDynamicMenuService, EuiError, EuiGrowlService, EuiLoaderService, EuiPermissionService, EuiTheme, EuiThemeService, EuiTimezoneService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, 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, PLATFORM_BROWSER_ID, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, Status, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_ERROR_MAPPING_HANDLER_TOKEN, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxRequestErrorModelInterceptor, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, euiInitApp, formatNumber, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, injectOptional, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, parentOffsetEl, position, preInitApp, prepareEuiAppConfigToken, provideEuiInitializer, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail };
5367
+ 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, CoreI18nActionTypes, CoreLocaleActionTypes, CoreModule, CoreNotificationsActionTypes, CoreUserActionTypes, CorsSecurityInterceptor, CsrfPreventionInterceptor, CssUtils, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EUI_COUNTRIES, EUI_TIMEZONES, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiAppShellService, EuiCoreRootGuardClass, EuiDynamicComponentService, EuiDynamicMenuService, EuiError, EuiGrowlService, EuiLoaderService, EuiPermissionService, EuiTheme, EuiThemeService, EuiTimezoneService, GLOBAL_CONFIG_TOKEN, GlobalErrorHandler, GrowlHttpErrorCallbackFn, HTTP_ERROR_HANDLER_CONFIG_TOKEN, HttpErrorHandlerInterceptor, I18nLoader, I18nResourceImpl, I18nService, 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, PLATFORM_BROWSER_ID, ROOT_LOG_CONFIG_TOKEN, RemoveApiQueueItemAction, SHOW_CONNECTION_STATUS_TOKEN, SessionStorageService, Status, StorageService, StorageServiceMock, StoreService, StoreServiceMock, UX_ERROR_MAPPING_HANDLER_TOKEN, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxRequestErrorModelInterceptor, closestMatchingParent, consumeEvent, corI18nReducers, coreAppReducers, coreLocaleReducers, coreNotificationsReducers, coreUserReducers, createEuiCoreRootGuard, diffDays, diffDaysFromToday, errorCodes, euiCoreRootGuardClass, formatNumber, getCoreChildProviders, getCoreProviders, getDependencyProviders, getGlobalConfig, getHttpErrorHandlingConfig, getModuleConfig, getRootLogConfig, getShowConnectionStatus, getViewElement, handleError, injectOptional, isDefined, loadEuiDynamicEnvironmentConfig, loadState, localForage, localStorageSync, markControlsTouched, markFormGroupTouched, mergeAppHandlerConfigToAppConfig, mergeAppJsonConfigToAppConfig, offset, parentOffsetEl, position, preInitApp, prepareEuiAppConfigToken, provideEuiInitializer, coreReducers as reducers, sessionStorageSync, translateConfig, uniqueId, validateEmail };
5408
5368
  //# sourceMappingURL=eui-core.mjs.map