@eui/core 21.0.0-next.42 → 21.0.0-next.43
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/CHANGELOG.md +14 -0
- package/docs/changelog.html +10 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +56 -121
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +2 -32
- package/fesm2022/eui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/eui-core.d.ts +6 -8
- package/types/eui-core.d.ts.map +1 -1
|
@@ -253,9 +253,6 @@
|
|
|
253
253
|
<li>
|
|
254
254
|
<a href="#euiCoreRootGuardClass" title="packages/core/src/lib/eui-core.module.ts" ><b>euiCoreRootGuardClass</b> (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> (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> (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) => (): Promise<null> =>
|
|
3496
|
-
new Promise((resolve) => {
|
|
3497
|
-
const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve(null));
|
|
3498
|
-
|
|
3499
|
-
locationInitialized.then(() => {
|
|
3500
|
-
const appConfig: EuiAppConfig = injector.get(CONFIG_TOKEN);
|
|
3501
|
-
// necessary config parameters
|
|
3502
|
-
let appVersion: string;
|
|
3503
|
-
if (appConfig && appConfig.versions && appConfig.versions.app) {
|
|
3504
|
-
appVersion = appConfig.versions.app;
|
|
3505
|
-
} else {
|
|
3506
|
-
appVersion = '0.0.0';
|
|
3507
|
-
}
|
|
3508
|
-
let storageType: BrowserStorageType;
|
|
3509
|
-
if (appConfig && appConfig['saveStateStorage']) {
|
|
3510
|
-
storageType = appConfig['saveStateStorage'];
|
|
3511
|
-
} else {
|
|
3512
|
-
storageType = BrowserStorageType.local;
|
|
3513
|
-
}
|
|
3514
|
-
|
|
3515
|
-
const storeService = 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<unknown> => {
|
|
3553
|
-
const locationInitialized = inject(LOCATION_INITIALIZED, { optional: true }) || Promise.resolve(null);
|
|
3554
|
-
const appConfig: EuiAppConfig = inject(CONFIG_TOKEN);
|
|
3555
|
-
const storeService = inject(StoreService);
|
|
3556
|
-
|
|
3557
|
-
return new Promise<void>(resolve => {
|
|
3558
|
-
|
|
3559
|
-
locationInitialized.then(() => {
|
|
3560
|
-
// necessary config parameters
|
|
3561
|
-
let appVersion: string;
|
|
3562
|
-
if (appConfig && appConfig.versions && appConfig.versions.app) {
|
|
3563
|
-
appVersion = appConfig.versions.app;
|
|
3564
|
-
} else {
|
|
3565
|
-
appVersion = '0.0.0';
|
|
3566
|
-
}
|
|
3567
|
-
let storageType: BrowserStorageType;
|
|
3568
|
-
if (appConfig && appConfig['saveStateStorage']) {
|
|
3569
|
-
storageType = appConfig['saveStateStorage'];
|
|
3570
|
-
} else {
|
|
3571
|
-
storageType = 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<unknown> => {
|
|
3720
|
+
const locationInitialized = inject(LOCATION_INITIALIZED, { optional: true }) || Promise.resolve(null);
|
|
3721
|
+
const appConfig: EuiAppConfig = inject(CONFIG_TOKEN);
|
|
3722
|
+
const storeService = inject(StoreService);
|
|
3723
|
+
|
|
3724
|
+
return new Promise<void>(resolve => {
|
|
3725
|
+
|
|
3726
|
+
locationInitialized.then(() => {
|
|
3727
|
+
// necessary config parameters
|
|
3728
|
+
let appVersion: string;
|
|
3729
|
+
if (appConfig && appConfig.versions && appConfig.versions.app) {
|
|
3730
|
+
appVersion = appConfig.versions.app;
|
|
3731
|
+
} else {
|
|
3732
|
+
appVersion = '0.0.0';
|
|
3733
|
+
}
|
|
3734
|
+
let storageType: BrowserStorageType;
|
|
3735
|
+
if (appConfig && appConfig['saveStateStorage']) {
|
|
3736
|
+
storageType = appConfig['saveStateStorage'];
|
|
3737
|
+
} else {
|
|
3738
|
+
storageType = 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>
|
package/docs/properties.html
CHANGED
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1136,36 +1136,6 @@ const init = () => {
|
|
|
1136
1136
|
function provideEuiInitializer() {
|
|
1137
1137
|
return provideAppInitializer(init);
|
|
1138
1138
|
}
|
|
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
1139
|
|
|
1170
1140
|
const errorCodes = {
|
|
1171
1141
|
ERR_GENERIC: 'ERR_GENERIC',
|
|
@@ -4826,7 +4796,7 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4826
4796
|
registerLocaleData(localeFr, 'fr');
|
|
4827
4797
|
}
|
|
4828
4798
|
else if (state.id === 'el') {
|
|
4829
|
-
registerLocaleData(localeEl, '
|
|
4799
|
+
registerLocaleData(localeEl, 'el');
|
|
4830
4800
|
}
|
|
4831
4801
|
this.stateSub.next(state);
|
|
4832
4802
|
}
|
|
@@ -5404,5 +5374,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImpor
|
|
|
5404
5374
|
* Generated bundle index. Do not edit.
|
|
5405
5375
|
*/
|
|
5406
5376
|
|
|
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,
|
|
5377
|
+
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
5378
|
//# sourceMappingURL=eui-core.mjs.map
|