monkey-front-core 0.0.443 → 0.0.445

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.
@@ -8,7 +8,7 @@ import * as i1$1 from '@ngx-translate/core';
8
8
  import { TranslateModule, TranslateService } from '@ngx-translate/core';
9
9
  import * as moment_ from 'moment';
10
10
  import { map, catchError, filter, takeWhile, take, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
11
- import { throwError, BehaviorSubject, Subscription, interval, concat, of, Subject, from } from 'rxjs';
11
+ import { throwError, BehaviorSubject, Subscription, interval, concat, Subject, of, from } from 'rxjs';
12
12
  import * as i1$2 from '@angular/common/http';
13
13
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
14
14
  import * as i2$1 from '@angular/platform-browser';
@@ -3332,8 +3332,11 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
3332
3332
  try {
3333
3333
  const pathName = ['alerts', 'auth', 'register', 'shared'];
3334
3334
  const services = pathName?.map((name) => {
3335
+ const url = MonkeyEcxUtils.replaceVariables(environment.urli18nAssets, {
3336
+ name, lang
3337
+ });
3335
3338
  return monkeyecxService
3336
- ?.get(`${environment.urlAssets}/data/i18n/${name}/${lang}.json`)
3339
+ ?.get(url)
3337
3340
  .pipe(take(1))
3338
3341
  .toPromise();
3339
3342
  });
@@ -3497,15 +3500,17 @@ class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
3497
3500
  constructor(translateService) {
3498
3501
  super();
3499
3502
  this.translateService = translateService;
3503
+ this.unsubscribeAll = new Subject();
3500
3504
  this.geti18n(this.translateService, 'SERVICES.WARNING.CONSOLE');
3501
3505
  }
3502
3506
  handleValidation() {
3503
- this.__oni18nDataChanged$.subscribe(() => {
3507
+ this.__oni18nDataChanged$
3508
+ .pipe(takeUntil(this.unsubscribeAll)).subscribe(() => {
3504
3509
  const { __i18n } = this;
3505
3510
  const title = __i18n?.TITLE;
3506
3511
  const message = __i18n?.MESSAGE;
3507
3512
  if (title) {
3508
- console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: x-large');
3513
+ console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: 18px');
3509
3514
  console.log(`%c${message}`, 'font-size: x-large');
3510
3515
  console.log('%c __ __ _ ______ \n ' +
3511
3516
  '| \\/ | ___ _ __ | | _____ _ _\\ \\ \\ \\ \n ' +