monkey-front-core 0.0.40 → 0.0.44

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.
@@ -1769,7 +1769,7 @@ class MonkeyEcxCommonsService {
1769
1769
  }
1770
1770
  if (this.otherArgs?.router) {
1771
1771
  const { clearOnChangeRoute } = this.otherArgs?.schedule?.options || {
1772
- clearOnChangeRoute: false
1772
+ clearOnChangeRoute: false,
1773
1773
  };
1774
1774
  this.otherArgs.router.events
1775
1775
  .pipe(filter((event) => {
@@ -1821,21 +1821,21 @@ class MonkeyEcxCommonsService {
1821
1821
  403: 'forbidden',
1822
1822
  404: 'not-found',
1823
1823
  500: 'service-problems',
1824
- 503: 'service-problems'
1824
+ 503: 'service-problems',
1825
1825
  };
1826
1826
  if (!router) {
1827
1827
  console.error('Router must be declared');
1828
1828
  }
1829
1829
  else {
1830
1830
  router?.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
1831
- skipLocationChange: true
1831
+ skipLocationChange: true,
1832
1832
  });
1833
1833
  }
1834
1834
  }
1835
1835
  setPage(requestPaged) {
1836
1836
  this.__requestPaged = {
1837
1837
  ...this.__requestPaged,
1838
- ...requestPaged
1838
+ ...requestPaged,
1839
1839
  };
1840
1840
  return this;
1841
1841
  }
@@ -1849,8 +1849,8 @@ class MonkeyEcxCommonsService {
1849
1849
  ...this.__requestPaged,
1850
1850
  page: {
1851
1851
  ...page,
1852
- number: number + 1
1853
- }
1852
+ number: number + 1,
1853
+ },
1854
1854
  };
1855
1855
  return true;
1856
1856
  }
@@ -1884,9 +1884,9 @@ class MonkeyEcxCommonsService {
1884
1884
  this.flagValidator = false;
1885
1885
  }
1886
1886
  resolve(route, state, otherArgs) {
1887
- this.__data = null;
1888
- this.__page = null;
1889
- this.__requestPaged = null;
1887
+ //this.__data = null;
1888
+ //this.__page = null;
1889
+ //this.__requestPaged = null;
1890
1890
  this.flagValidator = true;
1891
1891
  if (this.tokenStorage) {
1892
1892
  this.__tokenCredentials = this.tokenStorage.getToken();
@@ -1906,8 +1906,8 @@ class MonkeyEcxCommonsService {
1906
1906
  this.setPage({
1907
1907
  page: {
1908
1908
  number: 0,
1909
- size: 10
1910
- }
1909
+ size: 10,
1910
+ },
1911
1911
  });
1912
1912
  }
1913
1913
  if (otherArgs?.callbackPagination) {
@@ -1915,8 +1915,8 @@ class MonkeyEcxCommonsService {
1915
1915
  if (!this.__onLoadingInProgress$.value) {
1916
1916
  const hasMorePages = this.setPage({
1917
1917
  page: {
1918
- ...this.__page
1919
- }
1918
+ ...this.__page,
1919
+ },
1920
1920
  }).nextPage();
1921
1921
  if (hasMorePages && otherArgs?.callbackPagination) {
1922
1922
  otherArgs.callbackPagination();
@@ -1958,7 +1958,7 @@ class MonkeyEcxCommonsService {
1958
1958
  getHTTPHeaderApplicationPDF() {
1959
1959
  return {
1960
1960
  observe: 'response',
1961
- responseType: 'blob'
1961
+ responseType: 'blob',
1962
1962
  };
1963
1963
  }
1964
1964
  genericMethod(link, data, callback) {
@@ -1985,9 +1985,7 @@ class MonkeyEcxCommonsService {
1985
1985
  });
1986
1986
  }
1987
1987
  geti18n(translateService, keys) {
1988
- translateService
1989
- .getStreamOnTranslationChange(keys)
1990
- .subscribe((translations) => {
1988
+ translateService.getStreamOnTranslationChange(keys).subscribe((translations) => {
1991
1989
  this.__i18n = translations;
1992
1990
  this.__oni18nDataChanged$.next(null);
1993
1991
  });
@@ -1996,8 +1994,8 @@ class MonkeyEcxCommonsService {
1996
1994
  __decorate([
1997
1995
  MonkeyEcxCoreService({
1998
1996
  requestInProgress: {
1999
- showProgress: true
2000
- }
1997
+ showProgress: true,
1998
+ },
2001
1999
  })
2002
2000
  ], MonkeyEcxCommonsService.prototype, "genericMethod", null);
2003
2001
 
@@ -2506,18 +2504,16 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2506
2504
  this.configBoostrapSubject$ = new BehaviorSubject({});
2507
2505
  }
2508
2506
  internalValidations(...args) {
2509
- const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
2507
+ const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, } = this;
2510
2508
  const configBoostrap = args[0];
2511
2509
  const callback = args[1];
2512
2510
  monkeyecxSecurityConsoleConfigService.apply();
2513
2511
  monkeyecxServiceWorkerConfigService.apply(configBoostrap);
2514
2512
  monkeyecxMaintenanceConfigService.apply(configBoostrap);
2515
- console.log('configBoostrap');
2516
- console.log(configBoostrap);
2517
2513
  callback(configBoostrap);
2518
2514
  }
2519
2515
  getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
2520
- const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
2516
+ const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations, } = this;
2521
2517
  const url = `${environment.urlAssets}`;
2522
2518
  monkeyecxService?.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`)?.subscribe((config) => {
2523
2519
  monkeyecxi18nConfigService.apply(config, environment);
@@ -2533,9 +2529,11 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2533
2529
  }
2534
2530
  init(callback, environment, identifyCode, monkeyecxCode) {
2535
2531
  const { monkeyecxService, configBoostrapSubject$, monkeyecxErrorConfigService } = this;
2536
- monkeyecxService?.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2537
- observe: 'response'
2538
- })?.subscribe((resp) => {
2532
+ monkeyecxService
2533
+ ?.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2534
+ observe: 'response',
2535
+ })
2536
+ ?.subscribe((resp) => {
2539
2537
  const { headers, body } = resp;
2540
2538
  const monkeyCode = headers.get('monkey-code') || monkeyecxCode;
2541
2539
  if (monkeyCode) {
@@ -2564,17 +2562,17 @@ MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0
2564
2562
  __decorate([
2565
2563
  MonkeyEcxCoreService({
2566
2564
  httpResponse: {
2567
- httpCodeIgnore: [404]
2565
+ httpCodeIgnore: [404],
2568
2566
  },
2569
2567
  requestInProgress: {
2570
- showProgress: false
2571
- }
2568
+ showProgress: false,
2569
+ },
2572
2570
  })
2573
2571
  ], MonkeyEcxConfigService.prototype, "init", null);
2574
2572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
2575
2573
  type: Injectable,
2576
2574
  args: [{
2577
- providedIn: 'root'
2575
+ providedIn: 'root',
2578
2576
  }]
2579
2577
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { init: [] } });
2580
2578
 
@@ -3256,8 +3254,6 @@ class MonkeyEcxErrorHandlingService {
3256
3254
  console.log(error);
3257
3255
  if (error instanceof HttpErrorResponse) {
3258
3256
  const sCredentials = handlingService?.getMonkeyEcxServiceCredentials() || {};
3259
- console.log('sCredentials');
3260
- console.log(sCredentials);
3261
3257
  if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
3262
3258
  httpErrorHandlingService.handleErrorRefreshToken(error, sCredentials);
3263
3259
  }
@@ -3274,7 +3270,7 @@ MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion:
3274
3270
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
3275
3271
  type: Injectable,
3276
3272
  args: [{
3277
- providedIn: 'root'
3273
+ providedIn: 'root',
3278
3274
  }]
3279
3275
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
3280
3276