monkey-front-core 0.0.168 → 0.0.171

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.
@@ -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) {
@@ -4296,13 +4296,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4296
4296
 
4297
4297
  class MonkeyEcxPaginationService {
4298
4298
  constructor() {
4299
+ this.callbacks = {};
4299
4300
  // not to do
4300
4301
  }
4301
- setCallback(callback) {
4302
- this.callback = callback;
4302
+ setCallback(callback, name = 'main') {
4303
+ this.callbacks = {
4304
+ ...this.callbacks,
4305
+ [name]: callback
4306
+ };
4303
4307
  }
4304
- execute(type) {
4305
- const { callback } = this;
4308
+ execute(type, name = 'main') {
4309
+ const { callbacks } = this;
4310
+ const callback = callbacks?.[name];
4306
4311
  if (callback)
4307
4312
  callback(type);
4308
4313
  }