@eui/core 18.0.0-next.36 → 18.0.0-next.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/dependencies.html +1 -1
- package/docs/index.html +1 -1
- package/docs/injectables/EuiThemeService.html +540 -0
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/enumerations.html +46 -0
- package/esm2022/lib/services/eui-theme.service.mjs +47 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/fesm2022/eui-core.mjs +157 -104
- package/fesm2022/eui-core.mjs.map +4 -4
- package/lib/services/eui-theme.service.d.ts +24 -0
- package/lib/services/eui-theme.service.d.ts.map +1 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/package.json +2 -2
package/fesm2022/eui-core.mjs
CHANGED
|
@@ -3871,6 +3871,57 @@ i017.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4"
|
|
|
3871
3871
|
type: Injectable15
|
|
3872
3872
|
}] });
|
|
3873
3873
|
|
|
3874
|
+
// lib/services/eui-theme.service.mjs
|
|
3875
|
+
import { Inject as Inject8, Injectable as Injectable16, Optional as Optional8 } from "@angular/core";
|
|
3876
|
+
import { map as map6, ReplaySubject } from "rxjs";
|
|
3877
|
+
import * as i018 from "@angular/core";
|
|
3878
|
+
var EuiTheme;
|
|
3879
|
+
(function(EuiTheme2) {
|
|
3880
|
+
EuiTheme2["EC"] = "ec";
|
|
3881
|
+
EuiTheme2["EU"] = "eu";
|
|
3882
|
+
EuiTheme2["EUI"] = "eui";
|
|
3883
|
+
})(EuiTheme || (EuiTheme = {}));
|
|
3884
|
+
var EuiThemeService = class _EuiThemeService {
|
|
3885
|
+
constructor(config) {
|
|
3886
|
+
this.config = config;
|
|
3887
|
+
this.theme = EuiTheme.EC;
|
|
3888
|
+
this.themeSubject = new ReplaySubject();
|
|
3889
|
+
this.theme$ = this.themeSubject.asObservable();
|
|
3890
|
+
this.isEU$ = this.theme$.pipe(map6((theme2) => EuiTheme.EU === theme2));
|
|
3891
|
+
this.isEC$ = this.theme$.pipe(map6((theme2) => EuiTheme.EC === theme2));
|
|
3892
|
+
const theme = this.config?.eui?.theme || EuiTheme.EC;
|
|
3893
|
+
this.setTheme(theme);
|
|
3894
|
+
}
|
|
3895
|
+
isECTheme() {
|
|
3896
|
+
return EuiTheme.EC === this.theme;
|
|
3897
|
+
}
|
|
3898
|
+
isEUTheme() {
|
|
3899
|
+
return EuiTheme.EU === this.theme;
|
|
3900
|
+
}
|
|
3901
|
+
getTheme() {
|
|
3902
|
+
return this.theme;
|
|
3903
|
+
}
|
|
3904
|
+
setTheme(theme) {
|
|
3905
|
+
this.theme = theme;
|
|
3906
|
+
this.themeSubject.next(theme);
|
|
3907
|
+
}
|
|
3908
|
+
static {
|
|
3909
|
+
this.ɵfac = i018.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i018, type: _EuiThemeService, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }], target: i018.ɵɵFactoryTarget.Injectable });
|
|
3910
|
+
}
|
|
3911
|
+
static {
|
|
3912
|
+
this.ɵprov = i018.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i018, type: _EuiThemeService, providedIn: "root" });
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
i018.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i018, type: EuiThemeService, decorators: [{
|
|
3916
|
+
type: Injectable16,
|
|
3917
|
+
args: [{ providedIn: "root" }]
|
|
3918
|
+
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
3919
|
+
type: Optional8
|
|
3920
|
+
}, {
|
|
3921
|
+
type: Inject8,
|
|
3922
|
+
args: [GLOBAL_CONFIG_TOKEN]
|
|
3923
|
+
}] }] });
|
|
3924
|
+
|
|
3874
3925
|
// lib/services/storage/storage.service.mjs
|
|
3875
3926
|
var StorageService = class {
|
|
3876
3927
|
};
|
|
@@ -3938,8 +3989,8 @@ var AsyncStorageServiceMock = class extends AsyncStorageService {
|
|
|
3938
3989
|
};
|
|
3939
3990
|
|
|
3940
3991
|
// lib/services/storage/local-storage.service.mjs
|
|
3941
|
-
import { Injectable as
|
|
3942
|
-
import * as
|
|
3992
|
+
import { Injectable as Injectable17, Optional as Optional9 } from "@angular/core";
|
|
3993
|
+
import * as i019 from "@angular/core";
|
|
3943
3994
|
var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
3944
3995
|
static {
|
|
3945
3996
|
this.NAME = "LocalStorageService";
|
|
@@ -4003,21 +4054,21 @@ var LocalStorageService = class _LocalStorageService extends StorageService {
|
|
|
4003
4054
|
}
|
|
4004
4055
|
}
|
|
4005
4056
|
static {
|
|
4006
|
-
this.ɵfac =
|
|
4057
|
+
this.ɵfac = i019.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i019, type: _LocalStorageService, deps: [{ token: LogService, optional: true }], target: i019.ɵɵFactoryTarget.Injectable });
|
|
4007
4058
|
}
|
|
4008
4059
|
static {
|
|
4009
|
-
this.ɵprov =
|
|
4060
|
+
this.ɵprov = i019.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i019, type: _LocalStorageService });
|
|
4010
4061
|
}
|
|
4011
4062
|
};
|
|
4012
|
-
|
|
4013
|
-
type:
|
|
4063
|
+
i019.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i019, type: LocalStorageService, decorators: [{
|
|
4064
|
+
type: Injectable17
|
|
4014
4065
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4015
|
-
type:
|
|
4066
|
+
type: Optional9
|
|
4016
4067
|
}] }] });
|
|
4017
4068
|
|
|
4018
4069
|
// lib/services/storage/session-storage.service.mjs
|
|
4019
|
-
import { Injectable as
|
|
4020
|
-
import * as
|
|
4070
|
+
import { Injectable as Injectable18, Optional as Optional10 } from "@angular/core";
|
|
4071
|
+
import * as i020 from "@angular/core";
|
|
4021
4072
|
var SessionStorageService = class _SessionStorageService extends StorageService {
|
|
4022
4073
|
static {
|
|
4023
4074
|
this.NAME = "SessionStorageService";
|
|
@@ -4081,24 +4132,24 @@ var SessionStorageService = class _SessionStorageService extends StorageService
|
|
|
4081
4132
|
}
|
|
4082
4133
|
}
|
|
4083
4134
|
static {
|
|
4084
|
-
this.ɵfac =
|
|
4135
|
+
this.ɵfac = i020.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i020, type: _SessionStorageService, deps: [{ token: LogService, optional: true }], target: i020.ɵɵFactoryTarget.Injectable });
|
|
4085
4136
|
}
|
|
4086
4137
|
static {
|
|
4087
|
-
this.ɵprov =
|
|
4138
|
+
this.ɵprov = i020.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i020, type: _SessionStorageService });
|
|
4088
4139
|
}
|
|
4089
4140
|
};
|
|
4090
|
-
|
|
4091
|
-
type:
|
|
4141
|
+
i020.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i020, type: SessionStorageService, decorators: [{
|
|
4142
|
+
type: Injectable18
|
|
4092
4143
|
}], ctorParameters: () => [{ type: LogService, decorators: [{
|
|
4093
|
-
type:
|
|
4144
|
+
type: Optional10
|
|
4094
4145
|
}] }] });
|
|
4095
4146
|
|
|
4096
4147
|
// lib/services/storage/local-forage.service.mjs
|
|
4097
|
-
import { Inject as
|
|
4148
|
+
import { Inject as Inject9, Injectable as Injectable19, InjectionToken as InjectionToken6, Optional as Optional11 } from "@angular/core";
|
|
4098
4149
|
import { from as from2 } from "rxjs";
|
|
4099
4150
|
import { take as take3, tap as tap5 } from "rxjs/operators";
|
|
4100
4151
|
import * as lf from "localforage";
|
|
4101
|
-
import * as
|
|
4152
|
+
import * as i021 from "@angular/core";
|
|
4102
4153
|
var localForage = "defineDriver" in lf ? lf : lf["default"];
|
|
4103
4154
|
var LOCAL_FORAGE_SERVICE_CONFIG_TOKEN = new InjectionToken6("LOCAL_FORAGE_SERVICE_CONFIG");
|
|
4104
4155
|
var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
@@ -4189,31 +4240,31 @@ var LocalForageService = class _LocalForageService extends AsyncStorageService {
|
|
|
4189
4240
|
}));
|
|
4190
4241
|
}
|
|
4191
4242
|
static {
|
|
4192
|
-
this.ɵfac =
|
|
4243
|
+
this.ɵfac = i021.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i021, type: _LocalForageService, deps: [{ token: LOCAL_FORAGE_SERVICE_CONFIG_TOKEN, optional: true }, { token: LogService, optional: true }], target: i021.ɵɵFactoryTarget.Injectable });
|
|
4193
4244
|
}
|
|
4194
4245
|
static {
|
|
4195
|
-
this.ɵprov =
|
|
4246
|
+
this.ɵprov = i021.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i021, type: _LocalForageService });
|
|
4196
4247
|
}
|
|
4197
4248
|
};
|
|
4198
|
-
|
|
4199
|
-
type:
|
|
4249
|
+
i021.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i021, type: LocalForageService, decorators: [{
|
|
4250
|
+
type: Injectable19
|
|
4200
4251
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4201
|
-
type:
|
|
4252
|
+
type: Inject9,
|
|
4202
4253
|
args: [LOCAL_FORAGE_SERVICE_CONFIG_TOKEN]
|
|
4203
4254
|
}, {
|
|
4204
|
-
type:
|
|
4255
|
+
type: Optional11
|
|
4205
4256
|
}] }, { type: LogService, decorators: [{
|
|
4206
|
-
type:
|
|
4257
|
+
type: Optional11
|
|
4207
4258
|
}] }] });
|
|
4208
4259
|
|
|
4209
4260
|
// lib/services/locale/locale.service.mjs
|
|
4210
|
-
import { Inject as
|
|
4261
|
+
import { Inject as Inject10, Injectable as Injectable20, InjectionToken as InjectionToken7, LOCALE_ID, Optional as Optional12 } from "@angular/core";
|
|
4211
4262
|
import { getLocaleId } from "@angular/common";
|
|
4212
4263
|
import { EuiService as EuiService2, getLocaleState, getLocaleServiceConfigFromBase } from "@eui/base";
|
|
4213
4264
|
import { of as of8, Subject, throwError as throwError2 } from "rxjs";
|
|
4214
|
-
import { catchError as catchError4, filter as filter2, map as
|
|
4265
|
+
import { catchError as catchError4, filter as filter2, map as map7, switchMap as switchMap3, take as take4, takeUntil, tap as tap6 } from "rxjs/operators";
|
|
4215
4266
|
import { createSelector as createSelector2 } from "@ngrx/store";
|
|
4216
|
-
import * as
|
|
4267
|
+
import * as i022 from "@angular/core";
|
|
4217
4268
|
var LOCALE_ID_MAPPER = new InjectionToken7("localeIdMapper");
|
|
4218
4269
|
var LocaleService = class _LocaleService extends EuiService2 {
|
|
4219
4270
|
constructor(store, baseGlobalConfig, locale_id, localeMapper, i18n, log) {
|
|
@@ -4261,7 +4312,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4261
4312
|
return this.store.select(selector).pipe(
|
|
4262
4313
|
takeUntil(this.subNotifier),
|
|
4263
4314
|
// in case service didn't init fallback to LOCALE_ID token value
|
|
4264
|
-
|
|
4315
|
+
map7((state) => state ? state : this.stateInstance ? this.stateInstance : this.locale_id)
|
|
4265
4316
|
);
|
|
4266
4317
|
}
|
|
4267
4318
|
/**
|
|
@@ -4366,7 +4417,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4366
4417
|
if (this.log) {
|
|
4367
4418
|
this.logger.debug(error);
|
|
4368
4419
|
}
|
|
4369
|
-
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success),
|
|
4420
|
+
return this.loadLocale(value?.activeLang).pipe(filter2((s) => s.success), map7(() => this.localeMapper(value?.activeLang)), catchError4((e) => {
|
|
4370
4421
|
if (this.log) {
|
|
4371
4422
|
this.logger.debug("Something went terribly really wrong during locale loading", e.err.message);
|
|
4372
4423
|
}
|
|
@@ -4375,7 +4426,7 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4375
4426
|
})
|
|
4376
4427
|
)),
|
|
4377
4428
|
// update the "available" array attribute with newly registered
|
|
4378
|
-
switchMap3((id) => this.getState().pipe(take4(1),
|
|
4429
|
+
switchMap3((id) => this.getState().pipe(take4(1), map7((state) => {
|
|
4379
4430
|
const available = state["available"] ? state["available"] : [];
|
|
4380
4431
|
return { ...state, id, available: Array.from(/* @__PURE__ */ new Set([...available, id])) };
|
|
4381
4432
|
})))
|
|
@@ -4398,41 +4449,41 @@ var LocaleService = class _LocaleService extends EuiService2 {
|
|
|
4398
4449
|
return browserLocales.map((locale) => locale.trim());
|
|
4399
4450
|
}
|
|
4400
4451
|
static {
|
|
4401
|
-
this.ɵfac =
|
|
4452
|
+
this.ɵfac = i022.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i022, type: _LocaleService, deps: [{ token: StoreService }, { token: GLOBAL_CONFIG_TOKEN }, { token: LOCALE_ID }, { token: LOCALE_ID_MAPPER, optional: true }, { token: I18nService, optional: true }, { token: LogService, optional: true }], target: i022.ɵɵFactoryTarget.Injectable });
|
|
4402
4453
|
}
|
|
4403
4454
|
static {
|
|
4404
|
-
this.ɵprov =
|
|
4455
|
+
this.ɵprov = i022.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i022, type: _LocaleService, providedIn: "root" });
|
|
4405
4456
|
}
|
|
4406
4457
|
};
|
|
4407
|
-
|
|
4408
|
-
type:
|
|
4458
|
+
i022.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i022, type: LocaleService, decorators: [{
|
|
4459
|
+
type: Injectable20,
|
|
4409
4460
|
args: [{
|
|
4410
4461
|
providedIn: "root"
|
|
4411
4462
|
}]
|
|
4412
4463
|
}], ctorParameters: () => [{ type: StoreService }, { type: void 0, decorators: [{
|
|
4413
|
-
type:
|
|
4464
|
+
type: Inject10,
|
|
4414
4465
|
args: [GLOBAL_CONFIG_TOKEN]
|
|
4415
4466
|
}] }, { type: void 0, decorators: [{
|
|
4416
|
-
type:
|
|
4467
|
+
type: Inject10,
|
|
4417
4468
|
args: [LOCALE_ID]
|
|
4418
4469
|
}] }, { type: void 0, decorators: [{
|
|
4419
|
-
type:
|
|
4470
|
+
type: Optional12
|
|
4420
4471
|
}, {
|
|
4421
|
-
type:
|
|
4472
|
+
type: Inject10,
|
|
4422
4473
|
args: [LOCALE_ID_MAPPER]
|
|
4423
4474
|
}] }, { type: I18nService, decorators: [{
|
|
4424
|
-
type:
|
|
4475
|
+
type: Optional12
|
|
4425
4476
|
}] }, { type: LogService, decorators: [{
|
|
4426
|
-
type:
|
|
4477
|
+
type: Optional12
|
|
4427
4478
|
}] }] });
|
|
4428
4479
|
|
|
4429
4480
|
// lib/services/locale/locale.service.mock.mjs
|
|
4430
|
-
import { Optional as
|
|
4481
|
+
import { Optional as Optional13, Inject as Inject11, Injectable as Injectable21, LOCALE_ID as LOCALE_ID2 } from "@angular/core";
|
|
4431
4482
|
import { BehaviorSubject as BehaviorSubject3, of as of9 } from "rxjs";
|
|
4432
4483
|
import localeFr from "@angular/common/locales/fr";
|
|
4433
4484
|
import localeEl from "@angular/common/locales/el";
|
|
4434
4485
|
import { registerLocaleData } from "@angular/common";
|
|
4435
|
-
import * as
|
|
4486
|
+
import * as i023 from "@angular/core";
|
|
4436
4487
|
var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
4437
4488
|
constructor(locale_id) {
|
|
4438
4489
|
super(null, { locale: { id: "en", available: [] } }, locale_id, null, null, null);
|
|
@@ -4457,18 +4508,18 @@ var LocaleServiceMock = class _LocaleServiceMock extends LocaleService {
|
|
|
4457
4508
|
return of9({ success: true });
|
|
4458
4509
|
}
|
|
4459
4510
|
static {
|
|
4460
|
-
this.ɵfac =
|
|
4511
|
+
this.ɵfac = i023.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i023, type: _LocaleServiceMock, deps: [{ token: LOCALE_ID2, optional: true }], target: i023.ɵɵFactoryTarget.Injectable });
|
|
4461
4512
|
}
|
|
4462
4513
|
static {
|
|
4463
|
-
this.ɵprov =
|
|
4514
|
+
this.ɵprov = i023.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i023, type: _LocaleServiceMock });
|
|
4464
4515
|
}
|
|
4465
4516
|
};
|
|
4466
|
-
|
|
4467
|
-
type:
|
|
4517
|
+
i023.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i023, type: LocaleServiceMock, decorators: [{
|
|
4518
|
+
type: Injectable21
|
|
4468
4519
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
4469
|
-
type:
|
|
4520
|
+
type: Optional13
|
|
4470
4521
|
}, {
|
|
4471
|
-
type:
|
|
4522
|
+
type: Inject11,
|
|
4472
4523
|
args: [LOCALE_ID2]
|
|
4473
4524
|
}] }] });
|
|
4474
4525
|
|
|
@@ -4481,10 +4532,10 @@ var Status;
|
|
|
4481
4532
|
})(Status || (Status = {}));
|
|
4482
4533
|
|
|
4483
4534
|
// lib/services/loader/eui-loader.service.mjs
|
|
4484
|
-
import { Injectable as
|
|
4535
|
+
import { Injectable as Injectable22 } from "@angular/core";
|
|
4485
4536
|
import { Subject as Subject2 } from "rxjs";
|
|
4486
|
-
import { filter as filter3, map as
|
|
4487
|
-
import * as
|
|
4537
|
+
import { filter as filter3, map as map8 } from "rxjs/operators";
|
|
4538
|
+
import * as i024 from "@angular/core";
|
|
4488
4539
|
var EuiLoaderService = class _EuiLoaderService {
|
|
4489
4540
|
constructor() {
|
|
4490
4541
|
this.dependencies = [];
|
|
@@ -4578,7 +4629,7 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4578
4629
|
* @param name The name of the dependency
|
|
4579
4630
|
*/
|
|
4580
4631
|
statusChanges(name) {
|
|
4581
|
-
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name),
|
|
4632
|
+
return this.onStatusChange.asObservable().pipe(filter3((loadedName) => loadedName === name), map8(() => this.dependencies.find((d) => d.name === name)?.status));
|
|
4582
4633
|
}
|
|
4583
4634
|
/**
|
|
4584
4635
|
* Load a dependency and its prerequisites
|
|
@@ -4699,25 +4750,25 @@ var EuiLoaderService = class _EuiLoaderService {
|
|
|
4699
4750
|
}
|
|
4700
4751
|
}
|
|
4701
4752
|
static {
|
|
4702
|
-
this.ɵfac =
|
|
4753
|
+
this.ɵfac = i024.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i024, type: _EuiLoaderService, deps: [], target: i024.ɵɵFactoryTarget.Injectable });
|
|
4703
4754
|
}
|
|
4704
4755
|
static {
|
|
4705
|
-
this.ɵprov =
|
|
4756
|
+
this.ɵprov = i024.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i024, type: _EuiLoaderService, providedIn: "root" });
|
|
4706
4757
|
}
|
|
4707
4758
|
};
|
|
4708
|
-
|
|
4709
|
-
type:
|
|
4759
|
+
i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i024, type: EuiLoaderService, decorators: [{
|
|
4760
|
+
type: Injectable22,
|
|
4710
4761
|
args: [{
|
|
4711
4762
|
providedIn: "root"
|
|
4712
4763
|
}]
|
|
4713
4764
|
}] });
|
|
4714
4765
|
|
|
4715
4766
|
// lib/services/user/user.service.mjs
|
|
4716
|
-
import { Injectable as
|
|
4767
|
+
import { Injectable as Injectable23 } from "@angular/core";
|
|
4717
4768
|
import { of as of10 } from "rxjs";
|
|
4718
4769
|
import { EuiService as EuiService3, getUserState as getUserState2 } from "@eui/base";
|
|
4719
4770
|
import { createSelector as createSelector3 } from "@ngrx/store";
|
|
4720
|
-
import * as
|
|
4771
|
+
import * as i025 from "@angular/core";
|
|
4721
4772
|
var UserService = class _UserService extends EuiService3 {
|
|
4722
4773
|
constructor(store) {
|
|
4723
4774
|
super({ userId: "annonymous" });
|
|
@@ -4756,14 +4807,14 @@ var UserService = class _UserService extends EuiService3 {
|
|
|
4756
4807
|
}
|
|
4757
4808
|
}
|
|
4758
4809
|
static {
|
|
4759
|
-
this.ɵfac =
|
|
4810
|
+
this.ɵfac = i025.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i025, type: _UserService, deps: [{ token: StoreService }], target: i025.ɵɵFactoryTarget.Injectable });
|
|
4760
4811
|
}
|
|
4761
4812
|
static {
|
|
4762
|
-
this.ɵprov =
|
|
4813
|
+
this.ɵprov = i025.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i025, type: _UserService, providedIn: "root" });
|
|
4763
4814
|
}
|
|
4764
4815
|
};
|
|
4765
|
-
|
|
4766
|
-
type:
|
|
4816
|
+
i025.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i025, type: UserService, decorators: [{
|
|
4817
|
+
type: Injectable23,
|
|
4767
4818
|
args: [{
|
|
4768
4819
|
providedIn: "root"
|
|
4769
4820
|
}]
|
|
@@ -4771,8 +4822,8 @@ i024.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4"
|
|
|
4771
4822
|
|
|
4772
4823
|
// lib/services/user/user.service.mock.mjs
|
|
4773
4824
|
import { of as of11 } from "rxjs";
|
|
4774
|
-
import { Injectable as
|
|
4775
|
-
import * as
|
|
4825
|
+
import { Injectable as Injectable24 } from "@angular/core";
|
|
4826
|
+
import * as i026 from "@angular/core";
|
|
4776
4827
|
var UserServiceMock = class _UserServiceMock extends UserService {
|
|
4777
4828
|
constructor() {
|
|
4778
4829
|
super(null);
|
|
@@ -4788,19 +4839,19 @@ var UserServiceMock = class _UserServiceMock extends UserService {
|
|
|
4788
4839
|
updateState(userState, reducer) {
|
|
4789
4840
|
}
|
|
4790
4841
|
static {
|
|
4791
|
-
this.ɵfac =
|
|
4842
|
+
this.ɵfac = i026.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i026, type: _UserServiceMock, deps: [], target: i026.ɵɵFactoryTarget.Injectable });
|
|
4792
4843
|
}
|
|
4793
4844
|
static {
|
|
4794
|
-
this.ɵprov =
|
|
4845
|
+
this.ɵprov = i026.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i026, type: _UserServiceMock });
|
|
4795
4846
|
}
|
|
4796
4847
|
};
|
|
4797
|
-
|
|
4798
|
-
type:
|
|
4848
|
+
i026.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i026, type: UserServiceMock, decorators: [{
|
|
4849
|
+
type: Injectable24
|
|
4799
4850
|
}], ctorParameters: () => [] });
|
|
4800
4851
|
|
|
4801
4852
|
// lib/interceptors/add-lang-param.interceptor.mjs
|
|
4802
|
-
import { Injectable as
|
|
4803
|
-
import * as
|
|
4853
|
+
import { Injectable as Injectable25 } from "@angular/core";
|
|
4854
|
+
import * as i027 from "@angular/core";
|
|
4804
4855
|
import * as i18 from "@ngx-translate/core";
|
|
4805
4856
|
var LANG_PARAM_KEY = "X-Lang-Param";
|
|
4806
4857
|
var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
@@ -4821,19 +4872,19 @@ var AddLangParamInterceptor = class _AddLangParamInterceptor {
|
|
|
4821
4872
|
}));
|
|
4822
4873
|
}
|
|
4823
4874
|
static {
|
|
4824
|
-
this.ɵfac =
|
|
4875
|
+
this.ɵfac = i027.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i027, type: _AddLangParamInterceptor, deps: [{ token: i18.TranslateService }], target: i027.ɵɵFactoryTarget.Injectable });
|
|
4825
4876
|
}
|
|
4826
4877
|
static {
|
|
4827
|
-
this.ɵprov =
|
|
4878
|
+
this.ɵprov = i027.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i027, type: _AddLangParamInterceptor });
|
|
4828
4879
|
}
|
|
4829
4880
|
};
|
|
4830
|
-
|
|
4831
|
-
type:
|
|
4881
|
+
i027.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i027, type: AddLangParamInterceptor, decorators: [{
|
|
4882
|
+
type: Injectable25
|
|
4832
4883
|
}], ctorParameters: () => [{ type: i18.TranslateService }] });
|
|
4833
4884
|
|
|
4834
4885
|
// lib/interceptors/cache-prevention.interceptor.mjs
|
|
4835
|
-
import { Injectable as
|
|
4836
|
-
import * as
|
|
4886
|
+
import { Injectable as Injectable26 } from "@angular/core";
|
|
4887
|
+
import * as i028 from "@angular/core";
|
|
4837
4888
|
var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
4838
4889
|
intercept(req, next) {
|
|
4839
4890
|
if (req.headers.get("Cache-Control")) {
|
|
@@ -4845,19 +4896,19 @@ var CachePreventionInterceptor = class _CachePreventionInterceptor {
|
|
|
4845
4896
|
}));
|
|
4846
4897
|
}
|
|
4847
4898
|
static {
|
|
4848
|
-
this.ɵfac =
|
|
4899
|
+
this.ɵfac = i028.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i028, type: _CachePreventionInterceptor, deps: [], target: i028.ɵɵFactoryTarget.Injectable });
|
|
4849
4900
|
}
|
|
4850
4901
|
static {
|
|
4851
|
-
this.ɵprov =
|
|
4902
|
+
this.ɵprov = i028.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i028, type: _CachePreventionInterceptor });
|
|
4852
4903
|
}
|
|
4853
4904
|
};
|
|
4854
|
-
|
|
4855
|
-
type:
|
|
4905
|
+
i028.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i028, type: CachePreventionInterceptor, decorators: [{
|
|
4906
|
+
type: Injectable26
|
|
4856
4907
|
}] });
|
|
4857
4908
|
|
|
4858
4909
|
// lib/interceptors/cors-security.interceptor.mjs
|
|
4859
|
-
import { Injectable as
|
|
4860
|
-
import * as
|
|
4910
|
+
import { Injectable as Injectable27 } from "@angular/core";
|
|
4911
|
+
import * as i029 from "@angular/core";
|
|
4861
4912
|
var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
4862
4913
|
intercept(request, next) {
|
|
4863
4914
|
return next.handle(request.clone({
|
|
@@ -4865,19 +4916,19 @@ var CorsSecurityInterceptor = class _CorsSecurityInterceptor {
|
|
|
4865
4916
|
}));
|
|
4866
4917
|
}
|
|
4867
4918
|
static {
|
|
4868
|
-
this.ɵfac =
|
|
4919
|
+
this.ɵfac = i029.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i029, type: _CorsSecurityInterceptor, deps: [], target: i029.ɵɵFactoryTarget.Injectable });
|
|
4869
4920
|
}
|
|
4870
4921
|
static {
|
|
4871
|
-
this.ɵprov =
|
|
4922
|
+
this.ɵprov = i029.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i029, type: _CorsSecurityInterceptor });
|
|
4872
4923
|
}
|
|
4873
4924
|
};
|
|
4874
|
-
|
|
4875
|
-
type:
|
|
4925
|
+
i029.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i029, type: CorsSecurityInterceptor, decorators: [{
|
|
4926
|
+
type: Injectable27
|
|
4876
4927
|
}] });
|
|
4877
4928
|
|
|
4878
4929
|
// lib/interceptors/csrf-prevention.interceptor.mjs
|
|
4879
|
-
import { Injectable as
|
|
4880
|
-
import * as
|
|
4930
|
+
import { Injectable as Injectable28 } from "@angular/core";
|
|
4931
|
+
import * as i030 from "@angular/core";
|
|
4881
4932
|
var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
4882
4933
|
intercept(request, next) {
|
|
4883
4934
|
return next.handle(request.clone({
|
|
@@ -4885,21 +4936,21 @@ var CsrfPreventionInterceptor = class _CsrfPreventionInterceptor {
|
|
|
4885
4936
|
}));
|
|
4886
4937
|
}
|
|
4887
4938
|
static {
|
|
4888
|
-
this.ɵfac =
|
|
4939
|
+
this.ɵfac = i030.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i030, type: _CsrfPreventionInterceptor, deps: [], target: i030.ɵɵFactoryTarget.Injectable });
|
|
4889
4940
|
}
|
|
4890
4941
|
static {
|
|
4891
|
-
this.ɵprov =
|
|
4942
|
+
this.ɵprov = i030.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i030, type: _CsrfPreventionInterceptor });
|
|
4892
4943
|
}
|
|
4893
4944
|
};
|
|
4894
|
-
|
|
4895
|
-
type:
|
|
4945
|
+
i030.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i030, type: CsrfPreventionInterceptor, decorators: [{
|
|
4946
|
+
type: Injectable28
|
|
4896
4947
|
}] });
|
|
4897
4948
|
|
|
4898
4949
|
// lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs
|
|
4899
|
-
import { Injectable as
|
|
4950
|
+
import { Injectable as Injectable29 } from "@angular/core";
|
|
4900
4951
|
import { HttpResponse } from "@angular/common/http";
|
|
4901
4952
|
import { tap as tap7 } from "rxjs/operators";
|
|
4902
|
-
import * as
|
|
4953
|
+
import * as i031 from "@angular/core";
|
|
4903
4954
|
var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandlingInterceptor {
|
|
4904
4955
|
intercept(request, next) {
|
|
4905
4956
|
return next.handle(request).pipe(tap7((event) => {
|
|
@@ -4950,23 +5001,23 @@ var EuLoginSessionTimeoutHandlingInterceptor = class _EuLoginSessionTimeoutHandl
|
|
|
4950
5001
|
document.location.reload();
|
|
4951
5002
|
}
|
|
4952
5003
|
static {
|
|
4953
|
-
this.ɵfac =
|
|
5004
|
+
this.ɵfac = i031.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i031, type: _EuLoginSessionTimeoutHandlingInterceptor, deps: [], target: i031.ɵɵFactoryTarget.Injectable });
|
|
4954
5005
|
}
|
|
4955
5006
|
static {
|
|
4956
|
-
this.ɵprov =
|
|
5007
|
+
this.ɵprov = i031.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i031, type: _EuLoginSessionTimeoutHandlingInterceptor });
|
|
4957
5008
|
}
|
|
4958
5009
|
};
|
|
4959
|
-
|
|
4960
|
-
type:
|
|
5010
|
+
i031.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i031, type: EuLoginSessionTimeoutHandlingInterceptor, decorators: [{
|
|
5011
|
+
type: Injectable29
|
|
4961
5012
|
}] });
|
|
4962
5013
|
|
|
4963
5014
|
// lib/interceptors/ux-request-error-model.interceptor.mjs
|
|
4964
|
-
import { Inject as
|
|
5015
|
+
import { Inject as Inject12, Injectable as Injectable30, InjectionToken as InjectionToken8 } from "@angular/core";
|
|
4965
5016
|
import { HttpErrorResponse as HttpErrorResponse2 } from "@angular/common/http";
|
|
4966
5017
|
import { of as of12 } from "rxjs";
|
|
4967
5018
|
import { catchError as catchError5 } from "rxjs/operators";
|
|
4968
5019
|
import { transformToUxHttpResponse } from "@eui/base";
|
|
4969
|
-
import * as
|
|
5020
|
+
import * as i032 from "@angular/core";
|
|
4970
5021
|
var UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken8("UX_ERROR_MAPPING_HANDLER");
|
|
4971
5022
|
var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
4972
5023
|
constructor(errorMappingHandler) {
|
|
@@ -4989,16 +5040,16 @@ var UxRequestErrorModelInterceptor = class _UxRequestErrorModelInterceptor {
|
|
|
4989
5040
|
);
|
|
4990
5041
|
}
|
|
4991
5042
|
static {
|
|
4992
|
-
this.ɵfac =
|
|
5043
|
+
this.ɵfac = i032.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i032, type: _UxRequestErrorModelInterceptor, deps: [{ token: UX_ERROR_MAPPING_HANDLER_TOKEN }], target: i032.ɵɵFactoryTarget.Injectable });
|
|
4993
5044
|
}
|
|
4994
5045
|
static {
|
|
4995
|
-
this.ɵprov =
|
|
5046
|
+
this.ɵprov = i032.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i032, type: _UxRequestErrorModelInterceptor });
|
|
4996
5047
|
}
|
|
4997
5048
|
};
|
|
4998
|
-
|
|
4999
|
-
type:
|
|
5049
|
+
i032.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i032, type: UxRequestErrorModelInterceptor, decorators: [{
|
|
5050
|
+
type: Injectable30
|
|
5000
5051
|
}], ctorParameters: () => [{ type: void 0, decorators: [{
|
|
5001
|
-
type:
|
|
5052
|
+
type: Inject12,
|
|
5002
5053
|
args: [UX_ERROR_MAPPING_HANDLER_TOKEN]
|
|
5003
5054
|
}] }] });
|
|
5004
5055
|
export {
|
|
@@ -5043,6 +5094,8 @@ export {
|
|
|
5043
5094
|
EuiGrowlService,
|
|
5044
5095
|
EuiLoaderService,
|
|
5045
5096
|
EuiPermissionService,
|
|
5097
|
+
EuiTheme,
|
|
5098
|
+
EuiThemeService,
|
|
5046
5099
|
EuiTimezoneService,
|
|
5047
5100
|
GLOBAL_CONFIG_TOKEN,
|
|
5048
5101
|
GlobalErrorHandler,
|