monkey-front-core 0.0.39 → 0.0.43
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/interfaces/index.mjs +2 -1
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +2 -0
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +19 -21
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +2 -4
- package/fesm2015/monkey-front-core.mjs +14 -18
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +18 -22
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/index.d.ts +1 -0
- package/lib/core/interfaces/monkeyecx-support-options.d.ts +4 -0
- package/monkey-front-core-0.0.43.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.39.tgz +0 -0
|
@@ -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
|
|
|
@@ -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
|
|