@eui/core 23.0.0-alpha.1 → 23.0.0-alpha.2
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 +424 -0
- package/assets/i18n-eui/bg.json +7 -0
- package/assets/i18n-eui/cs.json +7 -0
- package/assets/i18n-eui/da.json +7 -0
- package/assets/i18n-eui/de.json +7 -0
- package/assets/i18n-eui/el.json +7 -0
- package/assets/i18n-eui/en.json +8 -1
- package/assets/i18n-eui/es.json +7 -0
- package/assets/i18n-eui/et.json +7 -0
- package/assets/i18n-eui/fi.json +7 -0
- package/assets/i18n-eui/fr.json +8 -1
- package/assets/i18n-eui/ga.json +7 -0
- package/assets/i18n-eui/hr.json +7 -0
- package/assets/i18n-eui/hu.json +7 -0
- package/assets/i18n-eui/it.json +7 -0
- package/assets/i18n-eui/lt.json +7 -0
- package/assets/i18n-eui/lv.json +7 -0
- package/assets/i18n-eui/mt.json +7 -0
- package/assets/i18n-eui/nl.json +7 -0
- package/assets/i18n-eui/pl.json +7 -0
- package/assets/i18n-eui/pt.json +7 -0
- package/assets/i18n-eui/ro.json +7 -0
- package/assets/i18n-eui/sk.json +7 -0
- package/assets/i18n-eui/sl.json +7 -0
- package/assets/i18n-eui/sv.json +7 -0
- package/docs/changelog.html +686 -0
- package/docs/classes/EuiAppShellServiceMock.html +467 -0
- package/docs/injectables/EuiThemeService.html +5 -73
- package/docs/interfaces/ActionReducer.html +2 -2
- package/docs/interfaces/ComponentInfo.html +367 -0
- package/docs/interfaces/Edit-1.html +367 -0
- package/docs/interfaces/Edit-2.html +367 -0
- package/docs/interfaces/Edit.html +367 -0
- package/docs/interfaces/EuiComponentEntry.html +457 -0
- package/docs/interfaces/ImportToAdd.html +385 -0
- package/docs/interfaces/ImportsArrayInfo.html +328 -0
- package/docs/interfaces/MigrateAllSchema.html +430 -0
- package/docs/interfaces/MigrationResult.html +367 -0
- package/docs/interfaces/ModuleMapping.html +328 -0
- package/docs/interfaces/NgModuleInfo.html +367 -0
- package/docs/interfaces/Schema-1.html +340 -0
- package/docs/interfaces/Schema-10.html +340 -0
- package/docs/interfaces/Schema-11.html +340 -0
- package/docs/interfaces/Schema-12.html +340 -0
- package/docs/interfaces/Schema-13.html +340 -0
- package/docs/interfaces/Schema-14.html +340 -0
- package/docs/interfaces/Schema-15.html +340 -0
- package/docs/interfaces/Schema-16.html +340 -0
- package/docs/interfaces/Schema-17.html +340 -0
- package/docs/interfaces/Schema-18.html +340 -0
- package/docs/interfaces/Schema-19.html +340 -0
- package/docs/interfaces/Schema-2.html +352 -0
- package/docs/interfaces/Schema-20.html +340 -0
- package/docs/interfaces/Schema-3.html +403 -0
- package/docs/interfaces/Schema-4.html +340 -0
- package/docs/interfaces/Schema-5.html +340 -0
- package/docs/interfaces/Schema-6.html +340 -0
- package/docs/interfaces/Schema-7.html +340 -0
- package/docs/interfaces/Schema-8.html +340 -0
- package/docs/interfaces/Schema-9.html +340 -0
- package/docs/interfaces/Schema.html +385 -0
- package/docs/interfaces/SelectorEntry.html +483 -0
- package/docs/interfaces/TextChange.html +367 -0
- package/docs/js/menu-wc.js +105 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +37733 -14671
- package/docs/miscellaneous/enumerations.html +4 -24
- package/docs/miscellaneous/functions.html +19091 -722
- package/docs/miscellaneous/variables.html +4097 -1176
- package/docs/overview.html +2 -2
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +305 -130
- package/fesm2022/eui-core.mjs.map +1 -1
- package/package.json +16 -11
- package/schematics/add-eui-imports/index.d.ts +8 -0
- package/schematics/add-eui-imports/index.js +525 -0
- package/schematics/add-eui-imports/index.js.map +1 -0
- package/schematics/add-eui-imports/schema.json +24 -0
- package/schematics/add-eui-imports/selector-map.d.ts +35 -0
- package/schematics/add-eui-imports/selector-map.js +246 -0
- package/schematics/add-eui-imports/selector-map.js.map +1 -0
- package/schematics/collection.json +118 -0
- package/schematics/fix-no-multiple-empty-lines/index.d.ts +7 -0
- package/schematics/fix-no-multiple-empty-lines/index.js +90 -0
- package/schematics/fix-no-multiple-empty-lines/index.js.map +1 -0
- package/schematics/fix-no-multiple-empty-lines/schema.json +19 -0
- package/schematics/icon-migrate/index.d.ts +3 -0
- package/schematics/icon-migrate/index.js +228 -0
- package/schematics/icon-migrate/index.js.map +1 -0
- package/schematics/icon-migrate/schema.d.ts +6 -0
- package/schematics/icon-migrate/schema.js +3 -0
- package/schematics/icon-migrate/schema.js.map +1 -0
- package/schematics/icon-migrate/schema.json +20 -0
- package/schematics/migrate/index.d.ts +3 -0
- package/schematics/migrate/index.js +98 -0
- package/schematics/migrate/index.js.map +1 -0
- package/schematics/migrate/replacements/breaking-changes.d.ts +6 -0
- package/schematics/migrate/replacements/breaking-changes.js +173 -0
- package/schematics/migrate/replacements/breaking-changes.js.map +1 -0
- package/schematics/migrate/replacements/eui-modules.d.ts +29 -0
- package/schematics/migrate/replacements/eui-modules.js +231 -0
- package/schematics/migrate/replacements/eui-modules.js.map +1 -0
- package/schematics/migrate/replacements/icons.d.ts +14 -0
- package/schematics/migrate/replacements/icons.js +235 -0
- package/schematics/migrate/replacements/icons.js.map +1 -0
- package/schematics/migrate/replacements/mwp.d.ts +6 -0
- package/schematics/migrate/replacements/mwp.js +148 -0
- package/schematics/migrate/replacements/mwp.js.map +1 -0
- package/schematics/migrate/schema.d.ts +8 -0
- package/schematics/migrate/schema.js +3 -0
- package/schematics/migrate/schema.js.map +1 -0
- package/schematics/migrate/schema.json +25 -0
- package/schematics/migrate/utils.d.ts +21 -0
- package/schematics/migrate/utils.js +106 -0
- package/schematics/migrate/utils.js.map +1 -0
- package/schematics/migrate-all/index.d.ts +8 -0
- package/schematics/migrate-all/index.js +30 -0
- package/schematics/migrate-all/index.js.map +1 -0
- package/schematics/migrate-all/schema.json +30 -0
- package/schematics/migrate-eui-accent/index.d.ts +7 -0
- package/schematics/migrate-eui-accent/index.js +193 -0
- package/schematics/migrate-eui-accent/index.js.map +1 -0
- package/schematics/migrate-eui-accent/schema.json +19 -0
- package/schematics/migrate-eui-alert/index.d.ts +7 -0
- package/schematics/migrate-eui-alert/index.js +152 -0
- package/schematics/migrate-eui-alert/index.js.map +1 -0
- package/schematics/migrate-eui-alert/schema.json +19 -0
- package/schematics/migrate-eui-avatar/index.d.ts +7 -0
- package/schematics/migrate-eui-avatar/index.js +155 -0
- package/schematics/migrate-eui-avatar/index.js.map +1 -0
- package/schematics/migrate-eui-avatar/schema.json +19 -0
- package/schematics/migrate-eui-button/index.d.ts +7 -0
- package/schematics/migrate-eui-button/index.js +191 -0
- package/schematics/migrate-eui-button/index.js.map +1 -0
- package/schematics/migrate-eui-button/schema.json +19 -0
- package/schematics/migrate-eui-chip/index.d.ts +7 -0
- package/schematics/migrate-eui-chip/index.js +153 -0
- package/schematics/migrate-eui-chip/index.js.map +1 -0
- package/schematics/migrate-eui-chip/schema.json +19 -0
- package/schematics/migrate-eui-chip-list/index.d.ts +7 -0
- package/schematics/migrate-eui-chip-list/index.js +472 -0
- package/schematics/migrate-eui-chip-list/index.js.map +1 -0
- package/schematics/migrate-eui-chip-list/schema.json +19 -0
- package/schematics/migrate-eui-discussion-thread/index.d.ts +7 -0
- package/schematics/migrate-eui-discussion-thread/index.js +143 -0
- package/schematics/migrate-eui-discussion-thread/index.js.map +1 -0
- package/schematics/migrate-eui-discussion-thread/schema.json +19 -0
- package/schematics/migrate-eui-editor/index.d.ts +7 -0
- package/schematics/migrate-eui-editor/index.js +198 -0
- package/schematics/migrate-eui-editor/index.js.map +1 -0
- package/schematics/migrate-eui-editor/schema.json +19 -0
- package/schematics/migrate-eui-fieldset/index.d.ts +7 -0
- package/schematics/migrate-eui-fieldset/index.js +186 -0
- package/schematics/migrate-eui-fieldset/index.js.map +1 -0
- package/schematics/migrate-eui-fieldset/schema.json +19 -0
- package/schematics/migrate-eui-icon-svg/index.d.ts +7 -0
- package/schematics/migrate-eui-icon-svg/index.js +197 -0
- package/schematics/migrate-eui-icon-svg/index.js.map +1 -0
- package/schematics/migrate-eui-icon-svg/schema.json +19 -0
- package/schematics/migrate-eui-icon-toggle/index.d.ts +7 -0
- package/schematics/migrate-eui-icon-toggle/index.js +194 -0
- package/schematics/migrate-eui-icon-toggle/index.js.map +1 -0
- package/schematics/migrate-eui-icon-toggle/schema.json +19 -0
- package/schematics/migrate-eui-popover/index.d.ts +7 -0
- package/schematics/migrate-eui-popover/index.js +152 -0
- package/schematics/migrate-eui-popover/index.js.map +1 -0
- package/schematics/migrate-eui-popover/schema.json +19 -0
- package/schematics/migrate-eui-progress-circle/index.d.ts +7 -0
- package/schematics/migrate-eui-progress-circle/index.js +192 -0
- package/schematics/migrate-eui-progress-circle/index.js.map +1 -0
- package/schematics/migrate-eui-progress-circle/schema.json +19 -0
- package/schematics/migrate-eui-table/index.d.ts +7 -0
- package/schematics/migrate-eui-table/index.js +544 -0
- package/schematics/migrate-eui-table/index.js.map +1 -0
- package/schematics/migrate-eui-table/schema.json +19 -0
- package/schematics/migrate-eui-tabs/index.d.ts +7 -0
- package/schematics/migrate-eui-tabs/index.js +296 -0
- package/schematics/migrate-eui-tabs/index.js.map +1 -0
- package/schematics/migrate-eui-tabs/schema.json +19 -0
- package/schematics/migrate-eui-toolbar-menu/index.d.ts +7 -0
- package/schematics/migrate-eui-toolbar-menu/index.js +358 -0
- package/schematics/migrate-eui-toolbar-menu/index.js.map +1 -0
- package/schematics/migrate-eui-toolbar-menu/schema.json +19 -0
- package/schematics/migrate-to-standalone/index.d.ts +7 -0
- package/schematics/migrate-to-standalone/index.js +723 -0
- package/schematics/migrate-to-standalone/index.js.map +1 -0
- package/schematics/migrate-to-standalone/schema.json +19 -0
- package/schematics/package.json +1 -0
- package/schematics/utils/dry-run.d.ts +3 -0
- package/schematics/utils/dry-run.js +14 -0
- package/schematics/utils/dry-run.js.map +1 -0
- package/types/eui-core.d.ts +72 -13
- package/types/eui-core.d.ts.map +1 -1
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 } 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';
|
|
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';
|
|
@@ -536,24 +536,60 @@ const coreReducers = Object.assign({}, {
|
|
|
536
536
|
function localStorageSync(reducer, platformId) {
|
|
537
537
|
if (platformId) {
|
|
538
538
|
return (reducer) => {
|
|
539
|
-
|
|
539
|
+
let storage = null;
|
|
540
|
+
if (isPlatformBrowser(platformId)) {
|
|
541
|
+
try {
|
|
542
|
+
storage = localStorage;
|
|
543
|
+
}
|
|
544
|
+
catch (e) {
|
|
545
|
+
/* blocked */
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return cb(reducer, storage);
|
|
540
549
|
};
|
|
541
550
|
}
|
|
542
551
|
else {
|
|
543
552
|
const platformId = inject(PLATFORM_ID, { optional: true });
|
|
544
|
-
|
|
553
|
+
let storage = null;
|
|
554
|
+
if (isPlatformBrowser(platformId)) {
|
|
555
|
+
try {
|
|
556
|
+
storage = localStorage;
|
|
557
|
+
}
|
|
558
|
+
catch (e) {
|
|
559
|
+
/* blocked */
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return cb(reducer, storage);
|
|
545
563
|
}
|
|
546
564
|
}
|
|
547
565
|
// eslint-disable-next-line
|
|
548
566
|
function sessionStorageSync(reducer, platformId) {
|
|
549
567
|
if (platformId) {
|
|
550
568
|
return (reducer) => {
|
|
551
|
-
|
|
569
|
+
let storage = null;
|
|
570
|
+
if (isPlatformBrowser(platformId)) {
|
|
571
|
+
try {
|
|
572
|
+
storage = sessionStorage;
|
|
573
|
+
}
|
|
574
|
+
catch (e) {
|
|
575
|
+
/* blocked */
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return cb(reducer, storage);
|
|
552
579
|
};
|
|
553
580
|
}
|
|
554
581
|
else {
|
|
555
582
|
const platformId = inject(PLATFORM_ID, { optional: true });
|
|
556
|
-
|
|
583
|
+
let storage = null;
|
|
584
|
+
if (isPlatformBrowser(platformId)) {
|
|
585
|
+
try {
|
|
586
|
+
storage = sessionStorage;
|
|
587
|
+
}
|
|
588
|
+
catch (e) {
|
|
589
|
+
/* blocked */
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
return cb(reducer, storage);
|
|
557
593
|
}
|
|
558
594
|
}
|
|
559
595
|
// Keys that are allowed to be synced with NgRx state from BrowserStorage
|
|
@@ -582,7 +618,7 @@ const filterAppState = (app) => {
|
|
|
582
618
|
* @param storage Type of storage to load the state from
|
|
583
619
|
* @deprecated it will be removed in the next major version
|
|
584
620
|
*/
|
|
585
|
-
const loadState = (storage =
|
|
621
|
+
const loadState = (storage = null) => {
|
|
586
622
|
if (!storage) {
|
|
587
623
|
return undefined;
|
|
588
624
|
}
|
|
@@ -669,10 +705,10 @@ class LogService extends Logger {
|
|
|
669
705
|
}
|
|
670
706
|
return logger;
|
|
671
707
|
}
|
|
672
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
673
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
708
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
709
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LogService }); }
|
|
674
710
|
}
|
|
675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LogService, decorators: [{
|
|
676
712
|
type: Injectable
|
|
677
713
|
}], ctorParameters: () => [] });
|
|
678
714
|
|
|
@@ -770,11 +806,11 @@ class LogModule {
|
|
|
770
806
|
],
|
|
771
807
|
};
|
|
772
808
|
}
|
|
773
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
774
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
775
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
809
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
810
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: LogModule }); }
|
|
811
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LogModule }); }
|
|
776
812
|
}
|
|
777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LogModule, decorators: [{
|
|
778
814
|
type: NgModule
|
|
779
815
|
}] });
|
|
780
816
|
|
|
@@ -796,7 +832,13 @@ class StoreService {
|
|
|
796
832
|
this._autoSaveHandlers = {};
|
|
797
833
|
this.isHandlingAutoSave = false;
|
|
798
834
|
if (isPlatformBrowser(this.platformId)) {
|
|
799
|
-
|
|
835
|
+
try {
|
|
836
|
+
this._storage = localStorage;
|
|
837
|
+
}
|
|
838
|
+
catch (e) {
|
|
839
|
+
// Storage access blocked (e.g. Firefox Enhanced Tracking Protection)
|
|
840
|
+
this._storage = null;
|
|
841
|
+
}
|
|
800
842
|
}
|
|
801
843
|
const initialState = {};
|
|
802
844
|
this.state = new BehaviorSubject(initialState);
|
|
@@ -813,7 +855,13 @@ class StoreService {
|
|
|
813
855
|
// We load the state from a storage and compare the version and userId with the provided ones.
|
|
814
856
|
// If they are the same, we merge the local state into the initial state.
|
|
815
857
|
// If there is a mismatch, we don't merge the local state, but update only the initial state.
|
|
816
|
-
|
|
858
|
+
try {
|
|
859
|
+
this._storage = storageType === BrowserStorageType.session ? sessionStorage : localStorage;
|
|
860
|
+
}
|
|
861
|
+
catch (e) {
|
|
862
|
+
// Storage access blocked (e.g. Firefox Enhanced Tracking Protection)
|
|
863
|
+
this._storage = null;
|
|
864
|
+
}
|
|
817
865
|
// load the state from the localStorage
|
|
818
866
|
let localState = loadState(this._storage);
|
|
819
867
|
localState = { ...localState, app: { ...localState?.app, version } };
|
|
@@ -917,10 +965,10 @@ class StoreService {
|
|
|
917
965
|
isObject(item) {
|
|
918
966
|
return item && typeof item === 'object' && !Array.isArray(item);
|
|
919
967
|
}
|
|
920
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
921
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
969
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreService, providedIn: 'root' }); }
|
|
922
970
|
}
|
|
923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreService, decorators: [{
|
|
924
972
|
type: Injectable,
|
|
925
973
|
args: [{
|
|
926
974
|
providedIn: 'root',
|
|
@@ -938,10 +986,10 @@ class StoreServiceMock extends StoreService {
|
|
|
938
986
|
select() {
|
|
939
987
|
return of({});
|
|
940
988
|
}
|
|
941
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
942
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
989
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
990
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreServiceMock }); }
|
|
943
991
|
}
|
|
944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreServiceMock, decorators: [{
|
|
945
993
|
type: Injectable
|
|
946
994
|
}], ctorParameters: () => [] });
|
|
947
995
|
|
|
@@ -1034,11 +1082,11 @@ class CoreModule {
|
|
|
1034
1082
|
storeService.updateState({ moduleName, moduleConfig }, AddAppLoadedConfigModules);
|
|
1035
1083
|
}
|
|
1036
1084
|
}
|
|
1037
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1038
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1039
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1085
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1086
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: CoreModule }); }
|
|
1087
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CoreModule }); }
|
|
1040
1088
|
}
|
|
1041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CoreModule, decorators: [{
|
|
1042
1090
|
type: NgModule
|
|
1043
1091
|
}], ctorParameters: () => [] });
|
|
1044
1092
|
const createEuiCoreRootGuard = (core) => {
|
|
@@ -1184,10 +1232,10 @@ class GlobalErrorHandler extends ErrorHandler {
|
|
|
1184
1232
|
// throw error;
|
|
1185
1233
|
super.handleError(error);
|
|
1186
1234
|
}
|
|
1187
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1188
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1235
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GlobalErrorHandler, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1236
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GlobalErrorHandler, providedIn: 'root' }); }
|
|
1189
1237
|
}
|
|
1190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
1191
1239
|
type: Injectable,
|
|
1192
1240
|
args: [{
|
|
1193
1241
|
providedIn: 'root',
|
|
@@ -1239,10 +1287,10 @@ class HttpErrorHandlerInterceptor {
|
|
|
1239
1287
|
// return the first matching route, if any
|
|
1240
1288
|
return routes.length > 0 ? routes[0] : null;
|
|
1241
1289
|
}
|
|
1242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1243
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: HttpErrorHandlerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1291
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: HttpErrorHandlerInterceptor }); }
|
|
1244
1292
|
}
|
|
1245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: HttpErrorHandlerInterceptor, decorators: [{
|
|
1246
1294
|
type: Injectable
|
|
1247
1295
|
}] });
|
|
1248
1296
|
|
|
@@ -1365,10 +1413,10 @@ class EuiGrowlService {
|
|
|
1365
1413
|
growlInfo(msg, position) {
|
|
1366
1414
|
this.growl({ severity: 'info', summary: 'INFO', detail: msg }, false, false, undefined, position);
|
|
1367
1415
|
}
|
|
1368
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1369
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiGrowlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1417
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiGrowlService, providedIn: 'root' }); }
|
|
1370
1418
|
}
|
|
1371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiGrowlService, decorators: [{
|
|
1372
1420
|
type: Injectable,
|
|
1373
1421
|
args: [{
|
|
1374
1422
|
providedIn: 'root',
|
|
@@ -1728,10 +1776,10 @@ class ApiQueueService {
|
|
|
1728
1776
|
buildHttpRequest(id, item) {
|
|
1729
1777
|
return this.http[item.method.toLowerCase()](item.uri, item.payload).pipe(tap(() => this.removeQueueItem(id)));
|
|
1730
1778
|
}
|
|
1731
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1732
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApiQueueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1780
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApiQueueService, providedIn: 'root' }); }
|
|
1733
1781
|
}
|
|
1734
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApiQueueService, decorators: [{
|
|
1735
1783
|
type: Injectable,
|
|
1736
1784
|
args: [{
|
|
1737
1785
|
providedIn: 'root',
|
|
@@ -1759,6 +1807,36 @@ class ApiQueueServiceMock extends ApiQueueService {
|
|
|
1759
1807
|
}
|
|
1760
1808
|
}
|
|
1761
1809
|
|
|
1810
|
+
/**
|
|
1811
|
+
* Converts legacy ngx-translate interpolations ({{var}}) to ICU-compatible format ({var}).
|
|
1812
|
+
* Double braces are never valid ICU syntax, so any {{word}} is guaranteed to be legacy.
|
|
1813
|
+
*/
|
|
1814
|
+
function convertLegacyInterpolations(value) {
|
|
1815
|
+
return value.replace(/\{\{(\w+)\}\}/g, '{$1}');
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Recursively walks a translation object and converts all legacy {{var}} interpolations
|
|
1819
|
+
* to ICU-compatible {var} format in string leaf values.
|
|
1820
|
+
*/
|
|
1821
|
+
function transformTranslations(translations) {
|
|
1822
|
+
if (translations == null || typeof translations !== 'object') {
|
|
1823
|
+
return translations;
|
|
1824
|
+
}
|
|
1825
|
+
const result = {};
|
|
1826
|
+
for (const [key, value] of Object.entries(translations)) {
|
|
1827
|
+
if (typeof value === 'string') {
|
|
1828
|
+
result[key] = convertLegacyInterpolations(value);
|
|
1829
|
+
}
|
|
1830
|
+
else if (value != null && typeof value === 'object' && !Array.isArray(value)) {
|
|
1831
|
+
result[key] = transformTranslations(value);
|
|
1832
|
+
}
|
|
1833
|
+
else {
|
|
1834
|
+
result[key] = value;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
return result;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1762
1840
|
class I18nResourceImpl {
|
|
1763
1841
|
/**
|
|
1764
1842
|
* Resource constructor
|
|
@@ -1817,6 +1895,8 @@ class I18nLoader {
|
|
|
1817
1895
|
const i18nConfig = this.euiAppConfig.global && this.euiAppConfig.global.i18n;
|
|
1818
1896
|
const i18nLoaderConfig = i18nConfig && i18nConfig.i18nLoader;
|
|
1819
1897
|
this.resources.push(...this.createResources(i18nLoaderConfig));
|
|
1898
|
+
// Auto-detect ICU mode from config
|
|
1899
|
+
this.icuEnabled = !!(i18nConfig && i18nConfig.icuEnabled);
|
|
1820
1900
|
}
|
|
1821
1901
|
/**
|
|
1822
1902
|
* Gets the translations from the server
|
|
@@ -1827,7 +1907,8 @@ class I18nLoader {
|
|
|
1827
1907
|
getTranslation(lang) {
|
|
1828
1908
|
return this.loadResources(this.resources, lang).pipe(map((loadedResources) => {
|
|
1829
1909
|
this.failedResources = loadedResources.hasError ? loadedResources.errors : [];
|
|
1830
|
-
|
|
1910
|
+
const translations = loadedResources.translations;
|
|
1911
|
+
return this.icuEnabled ? transformTranslations(translations) : translations;
|
|
1831
1912
|
}));
|
|
1832
1913
|
}
|
|
1833
1914
|
/**
|
|
@@ -1971,10 +2052,10 @@ class I18nLoader {
|
|
|
1971
2052
|
}
|
|
1972
2053
|
return undefined;
|
|
1973
2054
|
}
|
|
1974
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1975
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: I18nLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2056
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: I18nLoader }); }
|
|
1976
2057
|
}
|
|
1977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: I18nLoader, decorators: [{
|
|
1978
2059
|
type: Injectable
|
|
1979
2060
|
}], ctorParameters: () => [] });
|
|
1980
2061
|
const translateConfig = {
|
|
@@ -2213,10 +2294,10 @@ class I18nService extends EuiLazyService {
|
|
|
2213
2294
|
updateHTMLDOMLang(lang) {
|
|
2214
2295
|
this.document.documentElement.lang = lang;
|
|
2215
2296
|
}
|
|
2216
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2217
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2298
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
2218
2299
|
}
|
|
2219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: I18nService, decorators: [{
|
|
2220
2301
|
type: Injectable,
|
|
2221
2302
|
args: [{
|
|
2222
2303
|
providedIn: 'root',
|
|
@@ -2734,7 +2815,7 @@ class EuiPermissionService extends EuiService {
|
|
|
2734
2815
|
*/
|
|
2735
2816
|
getState() {
|
|
2736
2817
|
const getUserState = (state) => state.user;
|
|
2737
|
-
const getUserRights = createSelector(getUserState, (state) => state
|
|
2818
|
+
const getUserRights = createSelector(getUserState, (state) => state?.rights ?? []);
|
|
2738
2819
|
return this.store.select(getUserRights);
|
|
2739
2820
|
}
|
|
2740
2821
|
/**
|
|
@@ -2849,10 +2930,10 @@ class EuiPermissionService extends EuiService {
|
|
|
2849
2930
|
}
|
|
2850
2931
|
return rights.every((right) => this.userRights.find((uRight) => uRight.id === right.id));
|
|
2851
2932
|
}
|
|
2852
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2853
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2933
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiPermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2934
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiPermissionService, providedIn: 'root' }); }
|
|
2854
2935
|
}
|
|
2855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiPermissionService, decorators: [{
|
|
2856
2937
|
type: Injectable,
|
|
2857
2938
|
args: [{
|
|
2858
2939
|
providedIn: 'root',
|
|
@@ -2910,10 +2991,10 @@ class EuiDynamicMenuService {
|
|
|
2910
2991
|
return true;
|
|
2911
2992
|
});
|
|
2912
2993
|
}
|
|
2913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2914
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2994
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiDynamicMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2995
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiDynamicMenuService, providedIn: 'root' }); }
|
|
2915
2996
|
}
|
|
2916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiDynamicMenuService, decorators: [{
|
|
2917
2998
|
type: Injectable,
|
|
2918
2999
|
args: [{
|
|
2919
3000
|
providedIn: 'root',
|
|
@@ -2978,10 +3059,10 @@ class EuiDynamicComponentService {
|
|
|
2978
3059
|
parent: this.injector,
|
|
2979
3060
|
});
|
|
2980
3061
|
}
|
|
2981
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2982
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3062
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiDynamicComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3063
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiDynamicComponentService }); }
|
|
2983
3064
|
}
|
|
2984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiDynamicComponentService, decorators: [{
|
|
2985
3066
|
type: Injectable
|
|
2986
3067
|
}] });
|
|
2987
3068
|
|
|
@@ -3389,10 +3470,10 @@ class EuiAppShellService {
|
|
|
3389
3470
|
}
|
|
3390
3471
|
});
|
|
3391
3472
|
}
|
|
3392
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3393
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3473
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiAppShellService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3474
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiAppShellService, providedIn: 'root' }); }
|
|
3394
3475
|
}
|
|
3395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiAppShellService, decorators: [{
|
|
3396
3477
|
type: Injectable,
|
|
3397
3478
|
args: [{
|
|
3398
3479
|
providedIn: 'root',
|
|
@@ -4106,10 +4187,10 @@ class EuiTimezoneService {
|
|
|
4106
4187
|
getTimezone(tz) {
|
|
4107
4188
|
return EUI_TIMEZONES.find((item) => item.name === tz);
|
|
4108
4189
|
}
|
|
4109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4110
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiTimezoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4191
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiTimezoneService }); }
|
|
4111
4192
|
}
|
|
4112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiTimezoneService, decorators: [{
|
|
4113
4194
|
type: Injectable
|
|
4114
4195
|
}] });
|
|
4115
4196
|
|
|
@@ -4120,11 +4201,9 @@ var EuiTheme;
|
|
|
4120
4201
|
EuiTheme["ECL_EC_RTL"] = "ecl-ec-rtl";
|
|
4121
4202
|
EuiTheme["ECL_EU"] = "ecl-eu";
|
|
4122
4203
|
EuiTheme["ECL_EU_RTL"] = "ecl-eu-rtl";
|
|
4123
|
-
EuiTheme["EUI_LEGACY"] = "eui-legacy";
|
|
4124
|
-
EuiTheme["EUI_LEGACY_HC"] = "eui-legacy-high-contrast";
|
|
4125
4204
|
EuiTheme["DARK"] = "dark";
|
|
4205
|
+
EuiTheme["HIGH_CONTRAST"] = "high-contrast";
|
|
4126
4206
|
EuiTheme["COMPACT"] = "compact";
|
|
4127
|
-
EuiTheme["DS2025"] = "ds2025";
|
|
4128
4207
|
})(EuiTheme || (EuiTheme = {}));
|
|
4129
4208
|
;
|
|
4130
4209
|
;
|
|
@@ -4136,6 +4215,7 @@ const initialState = {
|
|
|
4136
4215
|
{ name: EuiTheme.ECL_EU, isActive: false, styleSheet: 'eui-ecl-eu.css', cssClass: null },
|
|
4137
4216
|
{ name: EuiTheme.ECL_EU_RTL, isActive: false, styleSheet: 'eui-ecl-eu.css', cssClass: null },
|
|
4138
4217
|
{ name: EuiTheme.DARK, isActive: false, styleSheet: null, cssClass: 'eui-t-dark' },
|
|
4218
|
+
{ name: EuiTheme.HIGH_CONTRAST, isActive: false, styleSheet: null, cssClass: 'eui-t-high-contrast' },
|
|
4139
4219
|
{ name: EuiTheme.COMPACT, isActive: false, styleSheet: null, cssClass: 'eui-t-compact' },
|
|
4140
4220
|
],
|
|
4141
4221
|
theme: {
|
|
@@ -4145,6 +4225,7 @@ const initialState = {
|
|
|
4145
4225
|
isEclEu: false,
|
|
4146
4226
|
isEclEuRtl: false,
|
|
4147
4227
|
isDark: false,
|
|
4228
|
+
isHighContrast: false,
|
|
4148
4229
|
isCompact: false,
|
|
4149
4230
|
},
|
|
4150
4231
|
};
|
|
@@ -4178,21 +4259,15 @@ class EuiThemeService {
|
|
|
4178
4259
|
isEclEuRtl() {
|
|
4179
4260
|
return this.state.theme.isEclEuRtl;
|
|
4180
4261
|
}
|
|
4181
|
-
isEuiLegacy() {
|
|
4182
|
-
return this.state.theme.isEuiLegacy;
|
|
4183
|
-
}
|
|
4184
|
-
isEuiLegacyHc() {
|
|
4185
|
-
return this.state.theme.isEuiLegacyHc;
|
|
4186
|
-
}
|
|
4187
4262
|
isDark() {
|
|
4188
4263
|
return this.state.theme.isDark;
|
|
4189
4264
|
}
|
|
4265
|
+
isHighContrast() {
|
|
4266
|
+
return this.state.theme.isHighContrast;
|
|
4267
|
+
}
|
|
4190
4268
|
isCompact() {
|
|
4191
4269
|
return this.state.theme.isCompact;
|
|
4192
4270
|
}
|
|
4193
|
-
isDs2025() {
|
|
4194
|
-
return this.state.theme.isDs2025;
|
|
4195
|
-
}
|
|
4196
4271
|
setActiveTheme(theme, isActive) {
|
|
4197
4272
|
const themes = this.state.themes;
|
|
4198
4273
|
const themeIdx = themes.findIndex(t => t.name === theme);
|
|
@@ -4228,20 +4303,12 @@ class EuiThemeService {
|
|
|
4228
4303
|
status.isDark = isActive;
|
|
4229
4304
|
break;
|
|
4230
4305
|
}
|
|
4231
|
-
case EuiTheme.
|
|
4232
|
-
status.
|
|
4233
|
-
break;
|
|
4234
|
-
}
|
|
4235
|
-
case EuiTheme.EUI_LEGACY: {
|
|
4236
|
-
status.isEuiLegacy = isActive;
|
|
4237
|
-
break;
|
|
4238
|
-
}
|
|
4239
|
-
case EuiTheme.EUI_LEGACY_HC: {
|
|
4240
|
-
status.isEuiLegacyHc = isActive;
|
|
4306
|
+
case EuiTheme.HIGH_CONTRAST: {
|
|
4307
|
+
status.isHighContrast = isActive;
|
|
4241
4308
|
break;
|
|
4242
4309
|
}
|
|
4243
|
-
case EuiTheme.
|
|
4244
|
-
status.
|
|
4310
|
+
case EuiTheme.COMPACT: {
|
|
4311
|
+
status.isCompact = isActive;
|
|
4245
4312
|
break;
|
|
4246
4313
|
}
|
|
4247
4314
|
}
|
|
@@ -4304,10 +4371,10 @@ class EuiThemeService {
|
|
|
4304
4371
|
}
|
|
4305
4372
|
}
|
|
4306
4373
|
}
|
|
4307
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4308
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4375
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiThemeService, providedIn: 'root' }); }
|
|
4309
4376
|
}
|
|
4310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiThemeService, decorators: [{
|
|
4311
4378
|
type: Injectable,
|
|
4312
4379
|
args: [{
|
|
4313
4380
|
providedIn: 'root',
|
|
@@ -4448,10 +4515,10 @@ class LocalStorageService extends StorageService {
|
|
|
4448
4515
|
}
|
|
4449
4516
|
}
|
|
4450
4517
|
}
|
|
4451
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4452
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocalStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4519
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocalStorageService }); }
|
|
4453
4520
|
}
|
|
4454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
4455
4522
|
type: Injectable
|
|
4456
4523
|
}] });
|
|
4457
4524
|
|
|
@@ -4521,10 +4588,10 @@ class SessionStorageService extends StorageService {
|
|
|
4521
4588
|
}
|
|
4522
4589
|
}
|
|
4523
4590
|
}
|
|
4524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4525
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SessionStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4592
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SessionStorageService }); }
|
|
4526
4593
|
}
|
|
4527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
4528
4595
|
type: Injectable
|
|
4529
4596
|
}] });
|
|
4530
4597
|
|
|
@@ -4627,10 +4694,10 @@ class LocalForageService extends AsyncStorageService {
|
|
|
4627
4694
|
},
|
|
4628
4695
|
}));
|
|
4629
4696
|
}
|
|
4630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4631
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocalForageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4698
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocalForageService }); }
|
|
4632
4699
|
}
|
|
4633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocalForageService, decorators: [{
|
|
4634
4701
|
type: Injectable
|
|
4635
4702
|
}], ctorParameters: () => [] });
|
|
4636
4703
|
|
|
@@ -4835,10 +4902,10 @@ class LocaleService extends EuiService {
|
|
|
4835
4902
|
return false;
|
|
4836
4903
|
}
|
|
4837
4904
|
}
|
|
4838
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4839
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4905
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4906
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocaleService, providedIn: 'root' }); }
|
|
4840
4907
|
}
|
|
4841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocaleService, decorators: [{
|
|
4842
4909
|
type: Injectable,
|
|
4843
4910
|
args: [{
|
|
4844
4911
|
providedIn: 'root',
|
|
@@ -4869,10 +4936,10 @@ class LocaleServiceMock extends LocaleService {
|
|
|
4869
4936
|
this.DEFAULT_LOCALE = state.id || 'en';
|
|
4870
4937
|
return of({ success: true });
|
|
4871
4938
|
}
|
|
4872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4873
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4939
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocaleServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4940
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocaleServiceMock }); }
|
|
4874
4941
|
}
|
|
4875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LocaleServiceMock, decorators: [{
|
|
4876
4943
|
type: Injectable
|
|
4877
4944
|
}], ctorParameters: () => [] });
|
|
4878
4945
|
|
|
@@ -5163,10 +5230,10 @@ class EuiLoaderService {
|
|
|
5163
5230
|
this.loadStyle(dependency);
|
|
5164
5231
|
}
|
|
5165
5232
|
}
|
|
5166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5167
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5234
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiLoaderService, providedIn: 'root' }); }
|
|
5168
5235
|
}
|
|
5169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuiLoaderService, decorators: [{
|
|
5170
5237
|
type: Injectable,
|
|
5171
5238
|
args: [{
|
|
5172
5239
|
providedIn: 'root',
|
|
@@ -5228,10 +5295,10 @@ class UserService extends EuiService {
|
|
|
5228
5295
|
getSignal() {
|
|
5229
5296
|
return this.state;
|
|
5230
5297
|
}
|
|
5231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5232
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5299
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
5233
5300
|
}
|
|
5234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UserService, decorators: [{
|
|
5235
5302
|
type: Injectable,
|
|
5236
5303
|
args: [{
|
|
5237
5304
|
providedIn: 'root',
|
|
@@ -5251,10 +5318,10 @@ class UserServiceMock extends UserService {
|
|
|
5251
5318
|
updateState(userState, reducer) {
|
|
5252
5319
|
/* empty */
|
|
5253
5320
|
}
|
|
5254
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5255
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UserServiceMock, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5322
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UserServiceMock }); }
|
|
5256
5323
|
}
|
|
5257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UserServiceMock, decorators: [{
|
|
5258
5325
|
type: Injectable
|
|
5259
5326
|
}], ctorParameters: () => [] });
|
|
5260
5327
|
|
|
@@ -5283,10 +5350,10 @@ class AddLangParamInterceptor {
|
|
|
5283
5350
|
params: req.params.set(langParam, langValue),
|
|
5284
5351
|
}));
|
|
5285
5352
|
}
|
|
5286
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5287
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5353
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AddLangParamInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5354
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AddLangParamInterceptor }); }
|
|
5288
5355
|
}
|
|
5289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AddLangParamInterceptor, decorators: [{
|
|
5290
5357
|
type: Injectable
|
|
5291
5358
|
}] });
|
|
5292
5359
|
|
|
@@ -5302,10 +5369,10 @@ class CachePreventionInterceptor {
|
|
|
5302
5369
|
headers: req.headers.set('Cache-Control', 'No-Cache'),
|
|
5303
5370
|
}));
|
|
5304
5371
|
}
|
|
5305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5306
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CachePreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5373
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CachePreventionInterceptor }); }
|
|
5307
5374
|
}
|
|
5308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CachePreventionInterceptor, decorators: [{
|
|
5309
5376
|
type: Injectable
|
|
5310
5377
|
}] });
|
|
5311
5378
|
|
|
@@ -5315,10 +5382,10 @@ class CorsSecurityInterceptor {
|
|
|
5315
5382
|
withCredentials: true,
|
|
5316
5383
|
}));
|
|
5317
5384
|
}
|
|
5318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5319
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5385
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CorsSecurityInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5386
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CorsSecurityInterceptor }); }
|
|
5320
5387
|
}
|
|
5321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CorsSecurityInterceptor, decorators: [{
|
|
5322
5389
|
type: Injectable
|
|
5323
5390
|
}] });
|
|
5324
5391
|
|
|
@@ -5328,10 +5395,10 @@ class CsrfPreventionInterceptor {
|
|
|
5328
5395
|
headers: request.headers.set('X-Requested-With', 'XMLHttpRequest'),
|
|
5329
5396
|
}));
|
|
5330
5397
|
}
|
|
5331
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5332
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CsrfPreventionInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5399
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CsrfPreventionInterceptor }); }
|
|
5333
5400
|
}
|
|
5334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CsrfPreventionInterceptor, decorators: [{
|
|
5335
5402
|
type: Injectable
|
|
5336
5403
|
}] });
|
|
5337
5404
|
|
|
@@ -5398,10 +5465,10 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
5398
5465
|
reauthenticate() {
|
|
5399
5466
|
document.location.reload();
|
|
5400
5467
|
}
|
|
5401
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5402
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5468
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5469
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor }); }
|
|
5403
5470
|
}
|
|
5404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
5405
5472
|
type: Injectable
|
|
5406
5473
|
}] });
|
|
5407
5474
|
|
|
@@ -5425,18 +5492,126 @@ class UxRequestErrorModelInterceptor {
|
|
|
5425
5492
|
return of(err);
|
|
5426
5493
|
}));
|
|
5427
5494
|
}
|
|
5428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5429
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UxRequestErrorModelInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5496
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UxRequestErrorModelInterceptor }); }
|
|
5430
5497
|
}
|
|
5431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
5432
5499
|
type: Injectable
|
|
5433
5500
|
}] });
|
|
5434
5501
|
|
|
5502
|
+
/* istanbul ignore file */
|
|
5503
|
+
const TRANSLATED_STRING = 'i18n';
|
|
5504
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
5505
|
+
class TranslateServiceMock {
|
|
5506
|
+
constructor() {
|
|
5507
|
+
this.onLangChangeSubject = new Subject();
|
|
5508
|
+
this.onTranslationChangeSubject = new Subject();
|
|
5509
|
+
this.onDefaultLangChangeSubject = new Subject();
|
|
5510
|
+
this.isLoadedSubject = new BehaviorSubject(true);
|
|
5511
|
+
this.onLangChange = this.onLangChangeSubject.asObservable();
|
|
5512
|
+
this.onTranslationChange = this.onTranslationChangeSubject.asObservable();
|
|
5513
|
+
this.onDefaultLangChange = this.onDefaultLangChangeSubject.asObservable();
|
|
5514
|
+
this.isLoaded = this.isLoadedSubject.asObservable();
|
|
5515
|
+
this.languages = [DEFAULT_LANGUAGE];
|
|
5516
|
+
}
|
|
5517
|
+
get(content) {
|
|
5518
|
+
return of(TRANSLATED_STRING + content);
|
|
5519
|
+
}
|
|
5520
|
+
use(lang) {
|
|
5521
|
+
this.currentLang = lang;
|
|
5522
|
+
this.onLangChangeSubject.next({ lang });
|
|
5523
|
+
}
|
|
5524
|
+
addLangs(langs) {
|
|
5525
|
+
this.languages = [...this.languages, ...langs];
|
|
5526
|
+
}
|
|
5527
|
+
getBrowserLang() {
|
|
5528
|
+
return DEFAULT_LANGUAGE;
|
|
5529
|
+
}
|
|
5530
|
+
getLangs() {
|
|
5531
|
+
return this.languages;
|
|
5532
|
+
}
|
|
5533
|
+
// TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html
|
|
5534
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5535
|
+
getTranslation() {
|
|
5536
|
+
return of({});
|
|
5537
|
+
}
|
|
5538
|
+
instant(key) {
|
|
5539
|
+
return TRANSLATED_STRING + key.toString();
|
|
5540
|
+
}
|
|
5541
|
+
setDefaultLang(lang) {
|
|
5542
|
+
this.onDefaultLangChangeSubject.next(lang);
|
|
5543
|
+
}
|
|
5544
|
+
}
|
|
5545
|
+
class TranslateMockPipe {
|
|
5546
|
+
transform(text) {
|
|
5547
|
+
return !text ? TRANSLATED_STRING : `${text}-${TRANSLATED_STRING}`;
|
|
5548
|
+
}
|
|
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" }); }
|
|
5551
|
+
}
|
|
5552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockPipe, decorators: [{
|
|
5553
|
+
type: Pipe,
|
|
5554
|
+
args: [{ name: 'translate', standalone: false }]
|
|
5555
|
+
}] });
|
|
5556
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5557
|
+
class TranslateMockDirective {
|
|
5558
|
+
constructor() {
|
|
5559
|
+
this._element = inject(ElementRef);
|
|
5560
|
+
}
|
|
5561
|
+
ngAfterViewChecked() {
|
|
5562
|
+
this._element.nativeElement.innerText += TRANSLATED_STRING;
|
|
5563
|
+
}
|
|
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 }); }
|
|
5566
|
+
}
|
|
5567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockDirective, decorators: [{
|
|
5568
|
+
type: Directive,
|
|
5569
|
+
args: [{
|
|
5570
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
5571
|
+
selector: '[translate]',
|
|
5572
|
+
standalone: false,
|
|
5573
|
+
}]
|
|
5574
|
+
}], propDecorators: { translateParams: [{
|
|
5575
|
+
type: Input
|
|
5576
|
+
}] } });
|
|
5577
|
+
class TranslateMockModule {
|
|
5578
|
+
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] }); }
|
|
5580
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, providers: [{ provide: TranslateService, useClass: TranslateServiceMock }] }); }
|
|
5581
|
+
}
|
|
5582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateMockModule, decorators: [{
|
|
5583
|
+
type: NgModule,
|
|
5584
|
+
args: [{
|
|
5585
|
+
declarations: [TranslateMockPipe, TranslateMockDirective],
|
|
5586
|
+
exports: [TranslateMockPipe, TranslateMockDirective],
|
|
5587
|
+
providers: [{ provide: TranslateService, useClass: TranslateServiceMock }],
|
|
5588
|
+
}]
|
|
5589
|
+
}] });
|
|
5590
|
+
|
|
5591
|
+
class EuiAppShellServiceMock {
|
|
5592
|
+
constructor() {
|
|
5593
|
+
this.breakpointSubject = new BehaviorSubject('');
|
|
5594
|
+
this.breakpoints$ = this.breakpointSubject.asObservable();
|
|
5595
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5596
|
+
this.state$ = of({});
|
|
5597
|
+
this.appRouter = {
|
|
5598
|
+
navigate: (url) => url,
|
|
5599
|
+
};
|
|
5600
|
+
}
|
|
5601
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5602
|
+
getState() {
|
|
5603
|
+
return of({});
|
|
5604
|
+
}
|
|
5605
|
+
consumeEvent() {
|
|
5606
|
+
/* empty */
|
|
5607
|
+
}
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5435
5610
|
/* BASE PACKAGE */
|
|
5436
5611
|
|
|
5437
5612
|
/**
|
|
5438
5613
|
* Generated bundle index. Do not edit.
|
|
5439
5614
|
*/
|
|
5440
5615
|
|
|
5441
|
-
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 };
|
|
5616
|
+
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, DEFAULT_LANGUAGE, DYNAMIC_COMPONENT_CONFIG, EUI_CONFIG_TOKEN, EUI_COUNTRIES, EUI_TIMEZONES, EmptyApiQueueAction, ErrorSubClass, EuLoginSessionTimeoutHandlingInterceptor, EuiAppShellService, EuiAppShellServiceMock, 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, TRANSLATED_STRING, TranslateMockDirective, TranslateMockModule, TranslateMockPipe, TranslateServiceMock, UX_ERROR_MAPPING_HANDLER_TOKEN, UpdateAppConnectionAction, UpdateAppStatusAction, UpdateAppVersionAction, UpdateCurrentModuleAction, UpdateI18nStateAction, UpdateLocaleStateAction, UpdateNotificationsListAction, UpdateUserDashboardAction, UpdateUserDetailsAction, UpdateUserPreferencesAction, UpdateUserRightsAction, UpdateUserStateAction, UserService, UserServiceMock, UxRequestErrorModelInterceptor, closestMatchingParent, consumeEvent, convertLegacyInterpolations, 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, transformTranslations, translateConfig, uniqueId, validateEmail };
|
|
5442
5617
|
//# sourceMappingURL=eui-core.mjs.map
|