@eui/core 19.0.0-next.12 → 19.0.0-next.13
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/dependencies.html +2 -2
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +0 -3
- package/fesm2022/eui-core.mjs +2 -10
- package/fesm2022/eui-core.mjs.map +1 -1
- package/lib/services/config/defaults.d.ts.map +1 -1
- package/lib/services/locale/locale.service.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -2217,10 +2217,7 @@
|
|
|
2217
2217
|
<tr>
|
|
2218
2218
|
<td class="col-md-4">
|
|
2219
2219
|
<i>Default value : </i><code>{
|
|
2220
|
-
available: ['en'],
|
|
2221
|
-
registered: ['en'],
|
|
2222
2220
|
bindWithTranslate: false,
|
|
2223
|
-
affectGlobalLocale: false,
|
|
2224
2221
|
}</code>
|
|
2225
2222
|
</td>
|
|
2226
2223
|
</tr>
|
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -43,10 +43,7 @@ const DEFAULT_I18N_SERVICE_CONFIG = {
|
|
|
43
43
|
};
|
|
44
44
|
const DEFAULT_I18N_LOADER_CONFIG = {};
|
|
45
45
|
const DEFAULT_LOCALE_SERVICE_CONFIG = {
|
|
46
|
-
available: ['en'],
|
|
47
|
-
registered: ['en'],
|
|
48
46
|
bindWithTranslate: false,
|
|
49
|
-
affectGlobalLocale: false,
|
|
50
47
|
};
|
|
51
48
|
const DEFAULT_HTTP_ERROR_HANDLER_CONFIG = {
|
|
52
49
|
routes: [],
|
|
@@ -4523,8 +4520,7 @@ class LocaleService extends EuiService {
|
|
|
4523
4520
|
this.bindTranslateServiceLangChangeToState();
|
|
4524
4521
|
}
|
|
4525
4522
|
// dynamically load locale based on provided configuration
|
|
4526
|
-
|
|
4527
|
-
return this.loadLocale(availableLocales).pipe(takeUntil(this.subNotifier), tap(() => this.updateState(state || { id: this.currentLocale })));
|
|
4523
|
+
return this.loadLocale([]).pipe(takeUntil(this.subNotifier), tap(() => this.updateState(state || { id: this.currentLocale })));
|
|
4528
4524
|
}
|
|
4529
4525
|
/**
|
|
4530
4526
|
* Updates the locale state within the application. If the new state is not available,
|
|
@@ -4537,10 +4533,6 @@ class LocaleService extends EuiService {
|
|
|
4537
4533
|
try {
|
|
4538
4534
|
const id = this.localeMapper(state.id);
|
|
4539
4535
|
this.store.dispatch(new UpdateLocaleStateAction({ ...state, id }));
|
|
4540
|
-
// update global TOKEN ID based on configuration
|
|
4541
|
-
if (this.config.affectGlobalLocale) {
|
|
4542
|
-
this.locale_id = id;
|
|
4543
|
-
}
|
|
4544
4536
|
}
|
|
4545
4537
|
catch (e) {
|
|
4546
4538
|
const message = `Locale for '${state.id}' is not available.
|
|
@@ -4672,7 +4664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
4672
4664
|
|
|
4673
4665
|
class LocaleServiceMock extends LocaleService {
|
|
4674
4666
|
constructor(locale_id) {
|
|
4675
|
-
super(null, { locale: {
|
|
4667
|
+
super(null, { locale: {} }, locale_id, null, null, null);
|
|
4676
4668
|
this.locale_id = locale_id;
|
|
4677
4669
|
this.DEFAULT_LOCALE = 'en';
|
|
4678
4670
|
this.stateSubject = new BehaviorSubject({ id: this.DEFAULT_LOCALE });
|