@eui/core 22.0.0-alpha.4 → 22.0.0-alpha.40

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/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # eui documentation
2
2
 
3
- > Generated by compodoc 2.0.0 at 2026-09-09T16:19:00.683Z, llm-md export.
3
+ > Generated by compodoc 2.0.0 at 2026-10-06T17:10:12.658Z, llm-md export.
4
4
 
5
5
  ## Modules
6
6
 
@@ -45,7 +45,7 @@ File: `packages/core/src/lib/mocks/translate.module.mock.ts`
45
45
  Selector: `[translate]`
46
46
 
47
47
  Inputs:
48
- - `translateParams: any`
48
+ - `translateParams`
49
49
 
50
50
  ## Pipes
51
51
 
@@ -128,7 +128,7 @@
128
128
  </ol>
129
129
  <ul class="properties-list">
130
130
  <li>
131
- <b>Version</b> : 22.0.0-alpha.4</li>
131
+ <b>Version</b> : 22.0.0-alpha.40</li>
132
132
  </ul>
133
133
 
134
134
 
@@ -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, ElementRef, Input, Directive } from '@angular/core';
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.updateState({ activeLang: nextState.activeLanguage });
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: "14.0.0", version: "22.1.2", type: TranslateMockDirective, isStandalone: true, selector: "[translate]", inputs: { translateParams: "translateParams" }, ngImport: i0 }); }
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({});