monkey-front-core 0.0.437 → 0.0.439
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/esm2020/lib/core/services/commons/monkeyecx-commons-resolve.service.mjs +12 -4
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +9 -7
- package/fesm2015/monkey-front-core.mjs +25 -18
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +17 -12
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +8 -4
- package/monkey-front-core-0.0.439.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.437.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, InjectionToken, Inject, Optional, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, InjectionToken, Inject, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
4
|
import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
@@ -14,13 +14,13 @@ import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } fr
|
|
|
14
14
|
import * as i2$1 from '@angular/platform-browser';
|
|
15
15
|
import * as i1$3 from 'ngx-cookie-service';
|
|
16
16
|
import * as i2$2 from '@angular/router';
|
|
17
|
-
import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
|
|
17
|
+
import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel, Router } from '@angular/router';
|
|
18
18
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
19
19
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
20
20
|
import * as i1$4 from '@angular/cdk/overlay';
|
|
21
21
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
22
22
|
import * as i2$3 from '@ngrx/store';
|
|
23
|
-
import { createAction, props, INIT, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
|
|
23
|
+
import { createAction, props, INIT, createReducer, on, createFeatureSelector, createSelector, Store, StoreModule } from '@ngrx/store';
|
|
24
24
|
import { createEntityAdapter } from '@ngrx/entity';
|
|
25
25
|
import { __decorate } from 'tslib';
|
|
26
26
|
import { datadogRum } from '@datadog/browser-rum';
|
|
@@ -3100,12 +3100,15 @@ __decorate([
|
|
|
3100
3100
|
], MonkeyEcxCommonsService.prototype, "getGenericData", null);
|
|
3101
3101
|
|
|
3102
3102
|
class MonkeyEcxCommonsResolveService extends MonkeyEcxCommonsService {
|
|
3103
|
-
constructor(monkeyecxService, tokenStorage,
|
|
3103
|
+
constructor(monkeyecxService, tokenStorage, config) {
|
|
3104
3104
|
super(monkeyecxService, tokenStorage);
|
|
3105
|
-
this.router = router;
|
|
3106
|
-
this.store = store;
|
|
3107
3105
|
this.route = null;
|
|
3108
3106
|
this.currentRoute = null;
|
|
3107
|
+
this.paginationService = inject(MonkeyEcxPaginationService);
|
|
3108
|
+
this.translateService = inject(TranslateService);
|
|
3109
|
+
this.router = inject(Router);
|
|
3110
|
+
this.store = inject(Store);
|
|
3111
|
+
this.monkeyDiscovery = inject(MonkeyEcxDiscoveryParamsService);
|
|
3109
3112
|
const { actions, actionsPagination, selectors } = config;
|
|
3110
3113
|
this.action = actions;
|
|
3111
3114
|
this.actionPagination = actionsPagination;
|
|
@@ -3693,27 +3696,29 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3693
3696
|
this.configSubject$ = new BehaviorSubject({});
|
|
3694
3697
|
this.configBootstrapSubject$ = new BehaviorSubject({});
|
|
3695
3698
|
}
|
|
3696
|
-
internalValidations(...args) {
|
|
3697
|
-
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
|
|
3699
|
+
async internalValidations(...args) {
|
|
3700
|
+
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxi18nConfigService } = this;
|
|
3698
3701
|
const configBootstrap = args[0];
|
|
3699
3702
|
const callback = args[1];
|
|
3703
|
+
const environment = args[2];
|
|
3704
|
+
const config = args[3];
|
|
3705
|
+
await monkeyecxi18nConfigService.apply(config, environment);
|
|
3700
3706
|
monkeyecxSecurityConsoleConfigService.apply();
|
|
3701
3707
|
monkeyecxServiceWorkerConfigService.apply(configBootstrap);
|
|
3702
3708
|
monkeyecxMaintenanceConfigService.apply(configBootstrap);
|
|
3703
3709
|
callback(configBootstrap);
|
|
3704
3710
|
}
|
|
3705
3711
|
getWhiteLabelSettings(monkeyecxCode, configBootstrap, callback, environment, identifyCode) {
|
|
3706
|
-
const { monkeyecxService,
|
|
3712
|
+
const { monkeyecxService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGTMConfigService, monkeyEcxAlertsConfigService, internalValidations } = this;
|
|
3707
3713
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3708
3714
|
monkeyecxService
|
|
3709
3715
|
?.get(`${url}/white-label.json`)
|
|
3710
|
-
?.subscribe((config) => {
|
|
3711
|
-
monkeyecxi18nConfigService.apply(config, environment);
|
|
3716
|
+
?.subscribe(async (config) => {
|
|
3712
3717
|
monkeyecxLogsConfigService.apply(config, configBootstrap, environment, identifyCode);
|
|
3713
3718
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3714
3719
|
monkeyGTMConfigService.apply(environment);
|
|
3715
3720
|
monkeyEcxAlertsConfigService.apply(config);
|
|
3716
|
-
monkeyStyleGuideSettingsService.bootstrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBootstrap, callback, environment));
|
|
3721
|
+
monkeyStyleGuideSettingsService.bootstrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBootstrap, callback, environment, config));
|
|
3717
3722
|
configSubject$.next(config);
|
|
3718
3723
|
}, (err) => {
|
|
3719
3724
|
monkeyecxErrorConfigService.apply('theme');
|