@senior-gestao-empresarial/erpx-components 1.18.4 → 1.18.6

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.
@@ -665,7 +665,7 @@
665
665
  })(exports.EnumRegimeTributarioPisCofins || (exports.EnumRegimeTributarioPisCofins = {}));
666
666
 
667
667
  var ErpTributosComponent = /** @class */ (function () {
668
- function ErpTributosComponent(formBuilder, changeDetector, translate, e027StrLookup, e027eqiLookup, naturezaReceitaLookup, lookupUtils, messageService, erpTributosService, gTag) {
668
+ function ErpTributosComponent(formBuilder, changeDetector, translate, e027StrLookup, e027eqiLookup, naturezaReceitaLookup, lookupUtils, messageService, erpTributosService, googleAnalytics) {
669
669
  this.formBuilder = formBuilder;
670
670
  this.changeDetector = changeDetector;
671
671
  this.translate = translate;
@@ -675,7 +675,7 @@
675
675
  this.lookupUtils = lookupUtils;
676
676
  this.messageService = messageService;
677
677
  this.erpTributosService = erpTributosService;
678
- this.gTag = gTag;
678
+ this.googleAnalytics = googleAnalytics;
679
679
  this.grupos = [];
680
680
  this.tributosValue = [];
681
681
  this.reload = true;
@@ -798,11 +798,11 @@
798
798
  var tributo = this.idsTaxesMemoriaCalculo.find(function (element) { return element.tipoTributo == imposto.name; });
799
799
  this.abrirWindowUrlMemoriaCalculo(tributo);
800
800
  };
801
- ErpTributosComponent.prototype.makeUrlWindow = function (params) {
801
+ ErpTributosComponent.prototype.makeUrlWindow = function (params, tributo) {
802
802
  this.erpTributosService.getFrontend(params).subscribe(function (response) {
803
803
  window.open("" + response.frontends[0].embeddedURL, '_blank');
804
804
  });
805
- this.gTag.sendEvent('ButtonViewCalculationMemory', '');
805
+ this.googleAnalytics.sendInfo(this.translate.instant('erpx.erp_components.google_analytics_message') + tributo.fromScreen + ' - ' + tributo.tipoTributo);
806
806
  };
807
807
  ErpTributosComponent.prototype.disabledButton = function (imposto) {
808
808
  return this.idsTaxesMemoriaCalculo == undefined || !this.idsTaxesMemoriaCalculo.find(function (element) {
@@ -835,7 +835,7 @@
835
835
  "route": "" + this.validaTela(tributo)
836
836
  }]
837
837
  };
838
- this.makeUrlWindow(params);
838
+ this.makeUrlWindow(params, tributo);
839
839
  };
840
840
  ErpTributosComponent.prototype.validaTela = function (taxes) {
841
841
  if (this.isStTaxes(taxes.tipoTributo)) {
@@ -3568,7 +3568,7 @@
3568
3568
  { type: angularComponents$1.LookupValidationUtils },
3569
3569
  { type: api.MessageService },
3570
3570
  { type: ErpTributosService },
3571
- { type: platformUtils.GTagService }
3571
+ { type: platformUtils.GoogleAnalyticsService }
3572
3572
  ]; };
3573
3573
  __decorate([
3574
3574
  core.Input()