monkey-front-core 0.0.436 → 0.0.438
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 +3 -3
- package/fesm2015/monkey-front-core.mjs +12 -9
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +11 -8
- 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.438.tgz +0 -0
- package/package.json +3 -3
- package/monkey-front-core-0.0.436.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;
|
|
@@ -3707,8 +3710,8 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3707
3710
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3708
3711
|
monkeyecxService
|
|
3709
3712
|
?.get(`${url}/white-label.json`)
|
|
3710
|
-
?.subscribe((config) => {
|
|
3711
|
-
monkeyecxi18nConfigService.apply(config, environment);
|
|
3713
|
+
?.subscribe(async (config) => {
|
|
3714
|
+
await monkeyecxi18nConfigService.apply(config, environment);
|
|
3712
3715
|
monkeyecxLogsConfigService.apply(config, configBootstrap, environment, identifyCode);
|
|
3713
3716
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3714
3717
|
monkeyGTMConfigService.apply(environment);
|