info-library 2.10.44 → 2.10.47

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.
@@ -2605,13 +2605,29 @@
2605
2605
  this.loading = !this.getdataonchange;
2606
2606
  this.data = [];
2607
2607
  /** @type {?} */
2608
- var parameters = this.params;
2608
+ var parameters = this.params || '';
2609
2609
  if (this.getdataonchange) {
2610
2610
  if (value == null || value == '')
2611
2611
  return new rxjs.Observable();
2612
2612
  if (parameters != null && parameters != '')
2613
2613
  parameters += '&';
2614
2614
  parameters += "nome=" + (value.Nome == null ? value.toString().toLowerCase() : value.Nome) + "&take=" + this.maxlist;
2615
+ /** @type {?} */
2616
+ var model = parameters.split("&").map(( /**
2617
+ * @param {?} c
2618
+ * @return {?}
2619
+ */function (/**
2620
+ * @param {?} c
2621
+ * @return {?}
2622
+ */ c) {
2623
+ var _a;
2624
+ return (_a = {}, _a[c.split("=")[0].charAt(0).toUpperCase() + c.split("=")[0].substring(1)] = c.split("=")[1], _a);
2625
+ })).reduce(( /**
2626
+ * @param {?} a
2627
+ * @param {?} b
2628
+ * @return {?}
2629
+ */function (a, b) { return (Object.assign(Object.assign({}, a), b)); }));
2630
+ return this._dataAcess.post(this.api, model, this.method);
2615
2631
  }
2616
2632
  return this._dataAcess.get(this.api, this.method, parameters);
2617
2633
  };
@@ -4652,6 +4668,7 @@
4652
4668
  var _this = this;
4653
4669
  if (this.apidownload == null)
4654
4670
  alert('API Download está null');
4671
+ this.loading = true;
4655
4672
  this._dataAccessService.get(this.apidownload, (this.methoddownload != null ? this.methoddownload : 'Get'), "id=" + arquivoId).subscribe(( /**
4656
4673
  * @param {?} r
4657
4674
  * @return {?}