monkey-front-core 0.0.151 → 0.0.152

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.
@@ -2129,6 +2129,7 @@ class MonkeyEcxCommonsService {
2129
2129
  this.__onSearchChanged$ = new BehaviorSubject(null);
2130
2130
  this.__onDataChanged$ = new BehaviorSubject(null);
2131
2131
  this.__onLoadingInProgress$ = new BehaviorSubject(false);
2132
+ this.__onUploadInProgress$ = new BehaviorSubject(false);
2132
2133
  this.__onDataDeleted$ = new BehaviorSubject(null);
2133
2134
  this.__onErrorChanged$ = new BehaviorSubject(null);
2134
2135
  this.__onGovernmentIdDataChanged$ = new BehaviorSubject(null);
@@ -2149,7 +2150,7 @@ class MonkeyEcxCommonsService {
2149
2150
  }
2150
2151
  if (this.otherArgs?.router) {
2151
2152
  const { clearOnChangeRoute } = this.otherArgs?.schedule?.options || {
2152
- clearOnChangeRoute: false,
2153
+ clearOnChangeRoute: false
2153
2154
  };
2154
2155
  this.otherArgs.router.events
2155
2156
  .pipe(filter((event) => {
@@ -2165,7 +2166,7 @@ class MonkeyEcxCommonsService {
2165
2166
  }
2166
2167
  navigateToPendencyPage(arg, router) {
2167
2168
  const { companyType } = this.__tokenCredentials || {
2168
- companyType: '',
2169
+ companyType: ''
2169
2170
  };
2170
2171
  let route = '/app';
2171
2172
  if (companyType) {
@@ -2181,9 +2182,9 @@ class MonkeyEcxCommonsService {
2181
2182
  else {
2182
2183
  router.navigate([`${route}/company-pendency`.toLowerCase()], {
2183
2184
  state: {
2184
- pendencyData: arg,
2185
+ pendencyData: arg
2185
2186
  },
2186
- skipLocationChange: true,
2187
+ skipLocationChange: true
2187
2188
  });
2188
2189
  }
2189
2190
  }
@@ -2199,7 +2200,7 @@ class MonkeyEcxCommonsService {
2199
2200
  allowedSecurityAccessByPendency(args) {
2200
2201
  if (!args) {
2201
2202
  return {
2202
- hasPendencies: false,
2203
+ hasPendencies: false
2203
2204
  };
2204
2205
  }
2205
2206
  const { service, type } = args;
@@ -2239,21 +2240,21 @@ class MonkeyEcxCommonsService {
2239
2240
  403: 'forbidden',
2240
2241
  404: 'not-found',
2241
2242
  500: 'service-problems',
2242
- 503: 'service-problems',
2243
+ 503: 'service-problems'
2243
2244
  };
2244
2245
  if (!router) {
2245
2246
  console.error('Router must be declared');
2246
2247
  }
2247
2248
  else {
2248
2249
  router?.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
2249
- skipLocationChange: true,
2250
+ skipLocationChange: true
2250
2251
  });
2251
2252
  }
2252
2253
  }
2253
2254
  setPage(requestPaged) {
2254
2255
  this.__requestPaged = {
2255
2256
  ...this.__requestPaged,
2256
- ...requestPaged,
2257
+ ...requestPaged
2257
2258
  };
2258
2259
  return this;
2259
2260
  }
@@ -2270,8 +2271,8 @@ class MonkeyEcxCommonsService {
2270
2271
  ...this.__requestPaged,
2271
2272
  page: {
2272
2273
  ...page,
2273
- number: number + 1,
2274
- },
2274
+ number: number + 1
2275
+ }
2275
2276
  };
2276
2277
  return true;
2277
2278
  }
@@ -2328,8 +2329,8 @@ class MonkeyEcxCommonsService {
2328
2329
  this.setPage({
2329
2330
  page: {
2330
2331
  number: 0,
2331
- size: 10,
2332
- },
2332
+ size: 10
2333
+ }
2333
2334
  });
2334
2335
  }
2335
2336
  if (otherArgs?.translateOptions) {
@@ -2372,7 +2373,7 @@ class MonkeyEcxCommonsService {
2372
2373
  getHTTPHeaderApplicationPDF() {
2373
2374
  return {
2374
2375
  observe: 'response',
2375
- responseType: 'blob',
2376
+ responseType: 'blob'
2376
2377
  };
2377
2378
  }
2378
2379
  genericMethod(link, data, callback) {
@@ -2400,8 +2401,8 @@ class MonkeyEcxCommonsService {
2400
2401
  if (!this.__onLoadingInProgress$.value) {
2401
2402
  const hasMorePages = this.setPage({
2402
2403
  page: {
2403
- ...this.__page,
2404
- },
2404
+ ...this.__page
2405
+ }
2405
2406
  }).nextPage();
2406
2407
  if (hasMorePages && this.__callbackPagination) {
2407
2408
  this.__callbackPagination();
@@ -2416,24 +2417,24 @@ class MonkeyEcxCommonsService {
2416
2417
  router.navigate([url], {
2417
2418
  queryParams: {
2418
2419
  ...search,
2419
- r: MonkeyEcxUtils.getRandomString(30),
2420
+ r: MonkeyEcxUtils.getRandomString(30)
2420
2421
  },
2421
2422
  queryParamsHandling: 'merge',
2422
- ...extras,
2423
+ ...extras
2423
2424
  });
2424
2425
  }
2425
2426
  saveState(state) {
2426
2427
  this.__savedState = {
2427
2428
  page: this.__page,
2428
- ...state,
2429
+ ...state
2429
2430
  };
2430
2431
  }
2431
2432
  }
2432
2433
  __decorate([
2433
2434
  MonkeyEcxCoreService({
2434
2435
  requestInProgress: {
2435
- showProgress: true,
2436
- },
2436
+ showProgress: true
2437
+ }
2437
2438
  })
2438
2439
  ], MonkeyEcxCommonsService.prototype, "genericMethod", null);
2439
2440