@eui/core 23.0.0-alpha.2 → 23.0.0-alpha.4

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.
Files changed (156) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/docs/architecture.html +223 -0
  3. package/docs/changelog.html +126 -2
  4. package/docs/classes/ActivatedRouteAction.html +70 -20
  5. package/docs/classes/AddApiQueueItemAction.html +70 -20
  6. package/docs/classes/AddAppLoadedConfigModulesAction.html +70 -20
  7. package/docs/classes/ApiQueueServiceMock.html +77 -20
  8. package/docs/classes/AsyncStorageService.html +86 -20
  9. package/docs/classes/AsyncStorageServiceMock.html +73 -17
  10. package/docs/classes/CssUtils.html +74 -20
  11. package/docs/classes/EmptyApiQueueAction.html +67 -17
  12. package/docs/classes/ErrorSubClass.html +68 -16
  13. package/docs/classes/EuiAppShellServiceMock.html +58 -20
  14. package/docs/classes/EuiCoreRootGuardClass.html +39 -8
  15. package/docs/classes/EuiError.html +69 -17
  16. package/docs/classes/I18nResourceImpl.html +50 -17
  17. package/docs/classes/InitStoreAction.html +70 -20
  18. package/docs/classes/LogServiceMock.html +67 -17
  19. package/docs/classes/RemoveApiQueueItemAction.html +67 -17
  20. package/docs/classes/StorageService.html +83 -19
  21. package/docs/classes/StorageServiceMock.html +70 -17
  22. package/docs/classes/TranslateServiceMock.html +90 -35
  23. package/docs/classes/UpdateAppConnectionAction.html +67 -17
  24. package/docs/classes/UpdateAppStatusAction.html +67 -17
  25. package/docs/classes/UpdateAppVersionAction.html +67 -17
  26. package/docs/classes/UpdateCurrentModuleAction.html +67 -17
  27. package/docs/classes/UpdateI18nStateAction.html +67 -17
  28. package/docs/classes/UpdateLocaleStateAction.html +67 -17
  29. package/docs/classes/UpdateNotificationsListAction.html +67 -17
  30. package/docs/classes/UpdateUserDashboardAction.html +67 -17
  31. package/docs/classes/UpdateUserDetailsAction.html +67 -17
  32. package/docs/classes/UpdateUserPreferencesAction.html +67 -17
  33. package/docs/classes/UpdateUserRightsAction.html +67 -17
  34. package/docs/classes/UpdateUserStateAction.html +67 -17
  35. package/docs/dependencies.html +38 -4
  36. package/docs/directives/TranslateMockDirective.html +72 -19
  37. package/docs/index.html +26 -2
  38. package/docs/injectables/ApiQueueService.html +97 -20
  39. package/docs/injectables/EuiAppShellService.html +147 -68
  40. package/docs/injectables/EuiDynamicComponentService.html +51 -18
  41. package/docs/injectables/EuiDynamicMenuService.html +67 -20
  42. package/docs/injectables/EuiGrowlService.html +85 -21
  43. package/docs/injectables/EuiLoaderService.html +65 -17
  44. package/docs/injectables/EuiPermissionService.html +95 -20
  45. package/docs/injectables/EuiThemeService.html +89 -34
  46. package/docs/injectables/EuiTimezoneService.html +51 -16
  47. package/docs/injectables/GlobalErrorHandler.html +79 -17
  48. package/docs/injectables/I18nLoader.html +53 -17
  49. package/docs/injectables/I18nService.html +101 -23
  50. package/docs/injectables/I18nServiceMock.html +96 -34
  51. package/docs/injectables/LocalForageService.html +81 -21
  52. package/docs/injectables/LocalStorageService.html +78 -21
  53. package/docs/injectables/LocaleService.html +124 -41
  54. package/docs/injectables/LocaleServiceMock.html +72 -18
  55. package/docs/injectables/LogService.html +68 -17
  56. package/docs/injectables/SessionStorageService.html +78 -21
  57. package/docs/injectables/StoreService.html +91 -22
  58. package/docs/injectables/StoreServiceMock.html +72 -17
  59. package/docs/injectables/UserService.html +97 -23
  60. package/docs/injectables/UserServiceMock.html +81 -23
  61. package/docs/interceptors/AddLangParamInterceptor.html +49 -18
  62. package/docs/interceptors/CachePreventionInterceptor.html +48 -17
  63. package/docs/interceptors/CorsSecurityInterceptor.html +48 -17
  64. package/docs/interceptors/CsrfPreventionInterceptor.html +48 -17
  65. package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +48 -17
  66. package/docs/interceptors/HttpErrorHandlerInterceptor.html +48 -17
  67. package/docs/interceptors/UxRequestErrorModelInterceptor.html +48 -17
  68. package/docs/interfaces/Action.html +158 -60
  69. package/docs/interfaces/ActionReducer.html +84 -55
  70. package/docs/interfaces/ComponentInfo.html +151 -123
  71. package/docs/interfaces/Dependency.html +278 -250
  72. package/docs/interfaces/Edit-1.html +151 -123
  73. package/docs/interfaces/Edit-2.html +151 -123
  74. package/docs/interfaces/Edit.html +151 -123
  75. package/docs/interfaces/EuiComponentEntry.html +230 -202
  76. package/docs/interfaces/EuiTimeZone.html +121 -93
  77. package/docs/interfaces/IEuiTheme.html +181 -153
  78. package/docs/interfaces/ImportToAdd.html +164 -136
  79. package/docs/interfaces/ImportsArrayInfo.html +121 -93
  80. package/docs/interfaces/Library.html +169 -137
  81. package/docs/interfaces/LoadedResources.html +164 -136
  82. package/docs/interfaces/LoadedResourcesError.html +121 -93
  83. package/docs/interfaces/MemoizedSelector.html +187 -138
  84. package/docs/interfaces/MemoizedSelectorWithProps.html +188 -139
  85. package/docs/interfaces/MigrateAllSchema.html +228 -200
  86. package/docs/interfaces/MigrationResult.html +151 -123
  87. package/docs/interfaces/ModuleLoadEvent.html +164 -136
  88. package/docs/interfaces/ModuleMapping.html +121 -93
  89. package/docs/interfaces/NgModuleInfo.html +151 -123
  90. package/docs/interfaces/Policy.html +164 -136
  91. package/docs/interfaces/ResourceError.html +170 -142
  92. package/docs/interfaces/Schema-1.html +140 -112
  93. package/docs/interfaces/Schema-10.html +140 -112
  94. package/docs/interfaces/Schema-11.html +140 -112
  95. package/docs/interfaces/Schema-12.html +140 -112
  96. package/docs/interfaces/Schema-13.html +140 -112
  97. package/docs/interfaces/Schema-14.html +140 -112
  98. package/docs/interfaces/Schema-15.html +140 -112
  99. package/docs/interfaces/Schema-16.html +140 -112
  100. package/docs/interfaces/Schema-17.html +140 -112
  101. package/docs/interfaces/Schema-18.html +140 -112
  102. package/docs/interfaces/Schema-19.html +140 -112
  103. package/docs/interfaces/Schema-2.html +141 -113
  104. package/docs/interfaces/Schema-20.html +140 -112
  105. package/docs/interfaces/Schema-3.html +180 -152
  106. package/docs/interfaces/Schema-4.html +140 -112
  107. package/docs/interfaces/Schema-5.html +140 -112
  108. package/docs/interfaces/Schema-6.html +140 -112
  109. package/docs/interfaces/Schema-7.html +140 -112
  110. package/docs/interfaces/Schema-8.html +140 -112
  111. package/docs/interfaces/Schema-9.html +140 -112
  112. package/docs/interfaces/Schema.html +184 -156
  113. package/docs/interfaces/SelectorEntry.html +230 -202
  114. package/docs/interfaces/TextChange.html +151 -123
  115. package/docs/interfaces/ThemeState.html +121 -93
  116. package/docs/interfaces/TranslationKeys.html +41 -11
  117. package/docs/interfaces/UIState.html +1669 -1641
  118. package/docs/interfaces/body.html +181 -153
  119. package/docs/js/architecture-graph.js +288 -0
  120. package/docs/js/libs/bootstrap-native.js +4 -2
  121. package/docs/js/libs/tablesort.min.js +3 -3
  122. package/docs/js/libs/tablesort.number.min.js +2 -2
  123. package/docs/js/libs/vis-network.min.js +7 -7
  124. package/docs/js/menu-wc.js +47 -14
  125. package/docs/js/routes.js +138 -37
  126. package/docs/js/search/search.js +62 -0
  127. package/docs/js/search/search_index.js +2 -2
  128. package/docs/js/tabs.js +98 -15
  129. package/docs/js/tree.js +44 -7
  130. package/docs/json/EuiPermissionService.md +1 -0
  131. package/docs/json/LocaleService.md +1 -0
  132. package/docs/json/documentation.json +6691 -1067
  133. package/docs/license.html +26 -2
  134. package/docs/llms.txt +2282 -0
  135. package/docs/miscellaneous/enumerations.html +34 -10
  136. package/docs/miscellaneous/functions.html +550 -394
  137. package/docs/miscellaneous/typealiases.html +59 -27
  138. package/docs/miscellaneous/variables.html +196 -175
  139. package/docs/modules/CoreModule.html +34 -9
  140. package/docs/modules/I18nModule.html +34 -9
  141. package/docs/modules/LogModule.html +34 -9
  142. package/docs/modules/TranslateMockModule.html +60 -13
  143. package/docs/modules.html +26 -2
  144. package/docs/overview.html +27 -3
  145. package/docs/pipes/TranslateMockPipe.html +87 -9
  146. package/docs/properties.html +27 -3
  147. package/docs/routes.html +26 -2
  148. package/docs/styles/compodoc.css +365 -44
  149. package/docs/styles/dark.css +16 -0
  150. package/docs/template-playground/hbs-render.service.ts +6 -1
  151. package/fesm2022/eui-core.mjs +26 -27
  152. package/fesm2022/eui-core.mjs.map +1 -1
  153. package/package.json +2 -2
  154. package/types/eui-core.d.ts +9 -11
  155. package/types/eui-core.d.ts.map +1 -1
  156. package/docs/js/menu-wc_es5.js +0 -40
@@ -82,6 +82,7 @@ export class HbsRenderService {
82
82
  // Simple translation mapping for preview
83
83
  const translations: { [key: string]: string } = {
84
84
  'info': 'Information',
85
+ 'api': 'API',
85
86
  'source': 'Source',
86
87
  'example': 'Example',
87
88
  'template': 'Template',
@@ -97,7 +98,10 @@ export class HbsRenderService {
97
98
  'properties': 'Properties',
98
99
  'methods': 'Methods',
99
100
  'inputs': 'Inputs',
100
- 'outputs': 'Outputs'
101
+ 'outputs': 'Outputs',
102
+ 'relationships': 'Relationships',
103
+ 'relationships-used-by': 'Used by',
104
+ 'relationships-depends-on': 'Depends on'
101
105
  };
102
106
  return translations[key] || key;
103
107
  });
@@ -204,6 +208,7 @@ export class HbsRenderService {
204
208
  ],
205
209
  navTabs: [
206
210
  { id: 'info', label: 'Info', href: '#info' },
211
+ { id: 'api', label: 'API', href: '#api' },
207
212
  { id: 'source', label: 'Source', href: '#source' },
208
213
  { id: 'example', label: 'Example', href: '#example' }
209
214
  ]
@@ -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, 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, ElementRef, Input, 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';
@@ -12,7 +12,7 @@ import { MomentDateAdapter } from '@angular/material-moment-adapter';
12
12
  import { HttpErrorResponse, HttpClient, HttpResponse } from '@angular/common/http';
13
13
  import { Router } from '@angular/router';
14
14
  import { createSelector } from 'reselect';
15
- import { TranslateLoader, TranslateService } from '@ngx-translate/core';
15
+ import { provideTranslateLoader, TranslateService, TranslateLoader } from '@ngx-translate/core';
16
16
  import { toSignal } from '@angular/core/rxjs-interop';
17
17
  import { By } from '@angular/platform-browser';
18
18
  import { FormGroup, FormArray } from '@angular/forms';
@@ -2059,10 +2059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
2059
2059
  type: Injectable
2060
2060
  }], ctorParameters: () => [] });
2061
2061
  const translateConfig = {
2062
- loader: {
2063
- provide: TranslateLoader,
2064
- useClass: I18nLoader,
2065
- },
2062
+ loader: provideTranslateLoader(I18nLoader),
2066
2063
  };
2067
2064
 
2068
2065
  const getLastAddedModule = (state) => state.app.loadedConfigModules.lastAddedModule;
@@ -2073,6 +2070,7 @@ class I18nService extends EuiLazyService {
2073
2070
  this.baseGlobalConfig = inject(GLOBAL_CONFIG_TOKEN);
2074
2071
  this.translateService = inject(TranslateService);
2075
2072
  this.logService = inject(LogService, { optional: true });
2073
+ this.translateLoader = inject(TranslateLoader);
2076
2074
  this.store = inject(StoreService);
2077
2075
  this.document = inject(DOCUMENT);
2078
2076
  this.subNotifier = new Subject();
@@ -2171,7 +2169,7 @@ class I18nService extends EuiLazyService {
2171
2169
  addResources(config, moduleName) {
2172
2170
  // emit that module is loading
2173
2171
  this.onModuleLoad.next({ ready: false, name: moduleName });
2174
- const loader = this.translateService.currentLoader;
2172
+ const loader = this.translateLoader;
2175
2173
  if (loader instanceof I18nLoader) {
2176
2174
  // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
2177
2175
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -2180,13 +2178,13 @@ class I18nService extends EuiLazyService {
2180
2178
  // add the resources to the loader
2181
2179
  const resources = i18nLoader.addResources(config);
2182
2180
  // manually load the resources for the CURRENT language and add them to the translate service
2183
- langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang).pipe(take(1), tap((loadedResources) => {
2181
+ langSubscription.push(i18nLoader.loadResources(resources, this.translateService.currentLang()).pipe(take(1), tap((loadedResources) => {
2184
2182
  // add the new set of translations to the current language
2185
- this.translateService.setTranslation(this.translateService.currentLang, loadedResources.translations, true);
2183
+ this.translateService.setTranslation(this.translateService.currentLang(), loadedResources.translations, true);
2186
2184
  })));
2187
2185
  // if the current language is different from the DEFAULT language
2188
- const defaultLang = this.config.defaultLanguage || this.translateService.defaultLang;
2189
- if (this.translateService.currentLang !== defaultLang) {
2186
+ const defaultLang = this.config.defaultLanguage || this.translateService.fallbackLang();
2187
+ if (this.translateService.currentLang() !== defaultLang) {
2190
2188
  // manually load the resources for the default language and add them to the translation service
2191
2189
  langSubscription.push(i18nLoader.loadResources(resources, defaultLang).pipe(take(1), tap((loadedResources) => {
2192
2190
  this.translateService.setTranslation(defaultLang, loadedResources.translations, true);
@@ -2238,8 +2236,8 @@ class I18nService extends EuiLazyService {
2238
2236
  this.setDefaultLanguage(this.config.defaultLanguage);
2239
2237
  }
2240
2238
  }), map(() => {
2241
- if (this.translateService.currentLoader instanceof I18nLoader) {
2242
- const failedResources = this.translateService.currentLoader.getFailedResources();
2239
+ if (this.translateLoader instanceof I18nLoader) {
2240
+ const failedResources = this.translateLoader.getFailedResources();
2243
2241
  if (failedResources.length > 0) {
2244
2242
  return { success: false, error: failedResources };
2245
2243
  }
@@ -2251,7 +2249,7 @@ class I18nService extends EuiLazyService {
2251
2249
  this.getState((s) => s.activeLang)
2252
2250
  .pipe(takeUntil(this.subNotifier))
2253
2251
  .subscribe((lang) => {
2254
- if (lang !== null && this.translateService.currentLang !== lang) {
2252
+ if (lang !== null && this.translateService.currentLang() !== lang) {
2255
2253
  this.use(lang);
2256
2254
  }
2257
2255
  });
@@ -2269,7 +2267,7 @@ class I18nService extends EuiLazyService {
2269
2267
  setDefaultLanguage(defaultLanguage) {
2270
2268
  // removed, current language is already calculated in init, setup function fill use it directly, not default
2271
2269
  // this.translateService.currentLang = default_language || this.config.defaultLanguage;
2272
- this.translateService.setDefaultLang(defaultLanguage);
2270
+ this.translateService.setFallbackLang(defaultLanguage);
2273
2271
  if (this.logService) {
2274
2272
  this.logService.info(`I18n default language set to ${defaultLanguage}`);
2275
2273
  }
@@ -5342,7 +5340,7 @@ class AddLangParamInterceptor {
5342
5340
  return next.handle(req);
5343
5341
  }
5344
5342
  // take the current language from the translate service
5345
- const langValue = this.translateService.currentLang;
5343
+ const langValue = this.translateService.currentLang();
5346
5344
  return next.handle(req.clone({
5347
5345
  // remove the lang param header from headers
5348
5346
  headers: req.headers.delete(LANG_PARAM_KEY),
@@ -5506,19 +5504,21 @@ class TranslateServiceMock {
5506
5504
  constructor() {
5507
5505
  this.onLangChangeSubject = new Subject();
5508
5506
  this.onTranslationChangeSubject = new Subject();
5509
- this.onDefaultLangChangeSubject = new Subject();
5507
+ this.onFallbackLangChangeSubject = new Subject();
5510
5508
  this.isLoadedSubject = new BehaviorSubject(true);
5511
5509
  this.onLangChange = this.onLangChangeSubject.asObservable();
5512
5510
  this.onTranslationChange = this.onTranslationChangeSubject.asObservable();
5513
- this.onDefaultLangChange = this.onDefaultLangChangeSubject.asObservable();
5511
+ this.onFallbackLangChange = this.onFallbackLangChangeSubject.asObservable();
5514
5512
  this.isLoaded = this.isLoadedSubject.asObservable();
5513
+ this.currentLang = signal(null, /* @ts-ignore */
5514
+ ...(ngDevMode ? [{ debugName: "currentLang" }] : /* istanbul ignore next */ []));
5515
5515
  this.languages = [DEFAULT_LANGUAGE];
5516
5516
  }
5517
5517
  get(content) {
5518
5518
  return of(TRANSLATED_STRING + content);
5519
5519
  }
5520
5520
  use(lang) {
5521
- this.currentLang = lang;
5521
+ this.currentLang.set(lang);
5522
5522
  this.onLangChangeSubject.next({ lang });
5523
5523
  }
5524
5524
  addLangs(langs) {
@@ -5538,8 +5538,8 @@ class TranslateServiceMock {
5538
5538
  instant(key) {
5539
5539
  return TRANSLATED_STRING + key.toString();
5540
5540
  }
5541
- setDefaultLang(lang) {
5542
- this.onDefaultLangChangeSubject.next(lang);
5541
+ setFallbackLang(lang) {
5542
+ this.onFallbackLangChangeSubject.next(lang);
5543
5543
  }
5544
5544
  }
5545
5545
  class TranslateMockPipe {
@@ -5547,11 +5547,11 @@ class TranslateMockPipe {
5547
5547
  return !text ? TRANSLATED_STRING : `${text}-${TRANSLATED_STRING}`;
5548
5548
  }
5549
5549
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
5550
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockPipe, isStandalone: false, name: "translate" }); }
5550
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockPipe, isStandalone: true, name: "translate" }); }
5551
5551
  }
5552
5552
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockPipe, decorators: [{
5553
5553
  type: Pipe,
5554
- args: [{ name: 'translate', standalone: false }]
5554
+ args: [{ name: 'translate' }]
5555
5555
  }] });
5556
5556
  /* eslint-disable @typescript-eslint/no-explicit-any */
5557
5557
  class TranslateMockDirective {
@@ -5562,27 +5562,26 @@ class TranslateMockDirective {
5562
5562
  this._element.nativeElement.innerText += TRANSLATED_STRING;
5563
5563
  }
5564
5564
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5565
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: TranslateMockDirective, isStandalone: false, selector: "[translate]", inputs: { translateParams: "translateParams" }, ngImport: i0 }); }
5565
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: TranslateMockDirective, isStandalone: true, selector: "[translate]", inputs: { translateParams: "translateParams" }, ngImport: i0 }); }
5566
5566
  }
5567
5567
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockDirective, decorators: [{
5568
5568
  type: Directive,
5569
5569
  args: [{
5570
5570
  // eslint-disable-next-line @angular-eslint/directive-selector
5571
5571
  selector: '[translate]',
5572
- standalone: false,
5573
5572
  }]
5574
5573
  }], propDecorators: { translateParams: [{
5575
5574
  type: Input
5576
5575
  }] } });
5577
5576
  class TranslateMockModule {
5578
5577
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5579
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, declarations: [TranslateMockPipe, TranslateMockDirective], exports: [TranslateMockPipe, TranslateMockDirective] }); }
5578
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, imports: [TranslateMockPipe, TranslateMockDirective], exports: [TranslateMockPipe, TranslateMockDirective] }); }
5580
5579
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, providers: [{ provide: TranslateService, useClass: TranslateServiceMock }] }); }
5581
5580
  }
5582
5581
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, decorators: [{
5583
5582
  type: NgModule,
5584
5583
  args: [{
5585
- declarations: [TranslateMockPipe, TranslateMockDirective],
5584
+ imports: [TranslateMockPipe, TranslateMockDirective],
5586
5585
  exports: [TranslateMockPipe, TranslateMockDirective],
5587
5586
  providers: [{ provide: TranslateService, useClass: TranslateServiceMock }],
5588
5587
  }]