monkey-front-core 0.0.166 → 0.0.169
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.service.mjs +4 -9
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +10 -5
- package/fesm2015/monkey-front-core.mjs +9 -10
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +12 -12
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +2 -0
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +3 -3
- package/monkey-front-core-0.0.169.tgz +0 -0
- package/package.json +3 -3
- package/monkey-front-core-0.0.166.tgz +0 -0
|
@@ -2258,10 +2258,10 @@ class MonkeyEcxCommonsService {
|
|
|
2258
2258
|
handlePaginationOptions() {
|
|
2259
2259
|
const { __paginationOptions } = this;
|
|
2260
2260
|
if (__paginationOptions) {
|
|
2261
|
-
const { service, callback } = __paginationOptions;
|
|
2261
|
+
const { service, callback, name } = __paginationOptions;
|
|
2262
2262
|
service?.setCallback((type) => {
|
|
2263
2263
|
this.doPaginationv2(type, callback);
|
|
2264
|
-
});
|
|
2264
|
+
}, name || 'main');
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
2267
|
setPage(requestPaged) {
|
|
@@ -2428,12 +2428,7 @@ class MonkeyEcxCommonsService {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
doPaginationv2(type, callback) {
|
|
2430
2430
|
if (!this.__onLoadingInProgress$.value) {
|
|
2431
|
-
|
|
2432
|
-
page: {
|
|
2433
|
-
...this.__page
|
|
2434
|
-
}
|
|
2435
|
-
}).nextPage();
|
|
2436
|
-
if (hasMorePages && callback) {
|
|
2431
|
+
if (callback) {
|
|
2437
2432
|
callback();
|
|
2438
2433
|
}
|
|
2439
2434
|
}
|
|
@@ -4301,13 +4296,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4301
4296
|
|
|
4302
4297
|
class MonkeyEcxPaginationService {
|
|
4303
4298
|
constructor() {
|
|
4299
|
+
this.callbacks = {};
|
|
4304
4300
|
// not to do
|
|
4305
4301
|
}
|
|
4306
|
-
setCallback(callback) {
|
|
4307
|
-
this.
|
|
4302
|
+
setCallback(callback, name = 'main') {
|
|
4303
|
+
this.callbacks = {
|
|
4304
|
+
...this.callbacks,
|
|
4305
|
+
[name]: callback
|
|
4306
|
+
};
|
|
4308
4307
|
}
|
|
4309
|
-
execute(type) {
|
|
4310
|
-
const {
|
|
4308
|
+
execute(type, name = 'main') {
|
|
4309
|
+
const { callbacks } = this;
|
|
4310
|
+
const callback = callbacks?.[name];
|
|
4311
4311
|
if (callback)
|
|
4312
4312
|
callback(type);
|
|
4313
4313
|
}
|