@eui/core 22.0.0-alpha.4 → 22.0.0-alpha.41
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 +666 -0
- package/docs/changelog.html +1021 -0
- package/docs/directives/TranslateMockDirective.html +0 -6
- package/docs/interfaces/Edit-3.html +1 -1
- package/docs/interfaces/Edit-4.html +1 -1
- package/docs/interfaces/Schema-20.html +1 -1
- package/docs/interfaces/Schema-21.html +1 -1
- package/docs/interfaces/Schema-22.html +1 -1
- package/docs/js/menu-wc.js +6 -6
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/TranslateMockDirective.md +1 -1
- package/docs/json/documentation.json +371 -367
- package/docs/llms.txt +15 -15
- package/docs/miscellaneous/functions.html +436 -436
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +9 -6
- package/fesm2022/eui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/eui-core.d.ts +2 -2
- package/types/eui-core.d.ts.map +1 -1
package/docs/properties.html
CHANGED
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConsoleAppender, LogLevel, initialAppState, initialUserState, initialNotificationsState, initialI18nState, initialLocaleState, Logger, LoggerMock, initialCoreState, xhr, mergeAll, getI18nLoaderConfig, EuiLazyService, getI18nServiceConfigFromBase, getBrowserDefaultLanguage, EuiEuLanguages, EuiService, getUserState, getLocaleServiceConfigFromBase, transformToUxHttpResponse } from '@eui/base';
|
|
2
2
|
export * from '@eui/base';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, PLATFORM_ID, Injectable, Injector, NgModule, Optional, SkipSelf, provideAppInitializer, ErrorHandler, ApplicationRef, LOCALE_ID, signal, Pipe,
|
|
4
|
+
import { InjectionToken, inject, PLATFORM_ID, Injectable, Injector, NgModule, Optional, SkipSelf, provideAppInitializer, ErrorHandler, ApplicationRef, LOCALE_ID, signal, Pipe, input, ElementRef, Directive } from '@angular/core';
|
|
5
5
|
import { deepmerge } from 'deepmerge-ts';
|
|
6
6
|
import { isPlatformBrowser, LOCATION_INITIALIZED, DOCUMENT, isPlatformServer, getLocaleId, registerLocaleData } from '@angular/common';
|
|
7
7
|
import { BehaviorSubject, of, forkJoin, from, Subject, defer, firstValueFrom } from 'rxjs';
|
|
@@ -3253,7 +3253,7 @@ class EuiAppShellService {
|
|
|
3253
3253
|
});
|
|
3254
3254
|
// update the Store Language
|
|
3255
3255
|
if (updateI18 && nextState.activeLanguage !== stateBeforeUpdate.activeLanguage) {
|
|
3256
|
-
this.i18nService
|
|
3256
|
+
this.i18nService?.updateState({ activeLang: nextState.activeLanguage });
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
3259
|
/**
|
|
@@ -3461,6 +3461,9 @@ class EuiAppShellService {
|
|
|
3461
3461
|
return Promise.reject(error.message || error);
|
|
3462
3462
|
}
|
|
3463
3463
|
bindActiveLanguageToAppShellState() {
|
|
3464
|
+
if (!this.i18nService) {
|
|
3465
|
+
return;
|
|
3466
|
+
}
|
|
3464
3467
|
this.i18nService.getState((s) => s.activeLang).subscribe((activeLang) => {
|
|
3465
3468
|
if (activeLang !== this.state.activeLanguage) {
|
|
3466
3469
|
this.setState({
|
|
@@ -5558,13 +5561,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
5558
5561
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5559
5562
|
class TranslateMockDirective {
|
|
5560
5563
|
constructor() {
|
|
5564
|
+
this.translateParams = input(/* @ts-ignore */
|
|
5565
|
+
...(ngDevMode ? [undefined, { debugName: "translateParams" }] : /* istanbul ignore next */ []));
|
|
5561
5566
|
this._element = inject(ElementRef);
|
|
5562
5567
|
}
|
|
5563
5568
|
ngAfterViewChecked() {
|
|
5564
5569
|
this._element.nativeElement.innerText += TRANSLATED_STRING;
|
|
5565
5570
|
}
|
|
5566
5571
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: TranslateMockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5567
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
5572
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: TranslateMockDirective, isStandalone: true, selector: "[translate]", inputs: { translateParams: { classPropertyName: "translateParams", publicName: "translateParams", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
5568
5573
|
}
|
|
5569
5574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: TranslateMockDirective, decorators: [{
|
|
5570
5575
|
type: Directive,
|
|
@@ -5572,9 +5577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
5572
5577
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
5573
5578
|
selector: '[translate]',
|
|
5574
5579
|
}]
|
|
5575
|
-
}], propDecorators: { translateParams: [{
|
|
5576
|
-
type: Input
|
|
5577
|
-
}] } });
|
|
5580
|
+
}], propDecorators: { translateParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateParams", required: false }] }] } });
|
|
5578
5581
|
class TranslateLoaderMock {
|
|
5579
5582
|
getTranslation() {
|
|
5580
5583
|
return of({});
|