monkey-front-core 0.0.40 → 0.0.41

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