@senior-gestao-empresarial/angular-components 4.22.2-7ecfc706-3270-4664-9d10-a6918ef49acd → 4.23.1

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.
@@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
4
4
  import { BreadcrumbModule as BreadcrumbModule$1 } from 'primeng/breadcrumb';
5
5
  import { NavigationEnd, PRIMARY_OUTLET, ActivatedRoute, Router, RouterModule } from '@angular/router';
6
6
  import { Subject, throwError, interval, of, ReplaySubject } from 'rxjs';
7
- import { takeUntil, filter, catchError, map, takeWhile, switchMap, finalize, first, take } from 'rxjs/operators';
7
+ import { takeUntil, filter, catchError, map, takeWhile, switchMap, first, finalize, take } from 'rxjs/operators';
8
8
  import * as moment_ from 'moment';
9
9
  import { FormField, FieldType } from '@seniorsistemas/angular-components';
10
10
  import { HttpParams, HttpClient } from '@angular/common/http';
@@ -5629,6 +5629,75 @@ var ParametersLookup = /** @class */ (function (_super) {
5629
5629
  return ParametersLookup;
5630
5630
  }(ErpLookups));
5631
5631
 
5632
+ var BeneficioFiscalLookup = /** @class */ (function (_super) {
5633
+ __extends(BeneficioFiscalLookup, _super);
5634
+ function BeneficioFiscalLookup(lookupService, translate) {
5635
+ var _this = _super.call(this, lookupService, translate, "beneficioFiscal", [
5636
+ {
5637
+ name: "codigo",
5638
+ type: FieldType.String
5639
+ },
5640
+ {
5641
+ name: "descricao",
5642
+ type: FieldType.String
5643
+ },
5644
+ ], [
5645
+ {
5646
+ name: "codigo",
5647
+ type: FieldType.String
5648
+ },
5649
+ {
5650
+ name: "descricao",
5651
+ type: FieldType.String
5652
+ },
5653
+ {
5654
+ name: "abreviatura",
5655
+ type: FieldType.String
5656
+ },
5657
+ {
5658
+ name: "vigenciaInicial",
5659
+ type: FieldType.String
5660
+ },
5661
+ {
5662
+ name: "vigenciaFinal",
5663
+ type: FieldType.String
5664
+ },
5665
+ ], [
5666
+ {
5667
+ name: "codigo",
5668
+ type: FieldType.String
5669
+ },
5670
+ {
5671
+ name: "descricao",
5672
+ type: FieldType.String
5673
+ },
5674
+ {
5675
+ name: "abreviatura",
5676
+ type: FieldType.String
5677
+ },
5678
+ {
5679
+ name: "vigenciaInicial",
5680
+ type: FieldType.String
5681
+ },
5682
+ {
5683
+ name: "vigenciaFinal",
5684
+ type: FieldType.String
5685
+ },
5686
+ ], "erpx_cpl_imp", "impostos") || this;
5687
+ _this.lookupService = lookupService;
5688
+ _this.translate = translate;
5689
+ return _this;
5690
+ }
5691
+ BeneficioFiscalLookup.ctorParameters = function () { return [
5692
+ { type: ErpLookupsService },
5693
+ { type: TranslateService }
5694
+ ]; };
5695
+ BeneficioFiscalLookup = __decorate([
5696
+ Injectable()
5697
+ ], BeneficioFiscalLookup);
5698
+ return BeneficioFiscalLookup;
5699
+ }(ErpLookups));
5700
+
5632
5701
  var ErpLookupsModule = /** @class */ (function () {
5633
5702
  function ErpLookupsModule() {
5634
5703
  }
@@ -5733,7 +5802,8 @@ var ErpLookupsModule = /** @class */ (function () {
5733
5802
  CountryLookup,
5734
5803
  BankLookup,
5735
5804
  TypeTaxesLookup,
5736
- ParametersLookup
5805
+ ParametersLookup,
5806
+ BeneficioFiscalLookup
5737
5807
  ],
5738
5808
  declarations: [],
5739
5809
  exports: [],
@@ -6426,10 +6496,10 @@ var WebsocketService = /** @class */ (function () {
6426
6496
  var _this = this;
6427
6497
  setTimeout(function () {
6428
6498
  if (_this.isConnected()) {
6429
- _this.publishOnConnect();
6499
+ _this.connect$.next();
6430
6500
  }
6431
6501
  }, 0);
6432
- return this.connect$.asObservable();
6502
+ return this.connect$.pipe(first());
6433
6503
  };
6434
6504
  /**
6435
6505
  * Observable responsável por emitir uma notificação quando a conexão é desconectada.
@@ -6574,7 +6644,7 @@ var WebsocketService = /** @class */ (function () {
6574
6644
  }
6575
6645
  else {
6576
6646
  _this.wasConnected = true;
6577
- _this.publishOnConnect();
6647
+ _this.connect$.next();
6578
6648
  }
6579
6649
  }, function (error) {
6580
6650
  _this.setConnected(false);
@@ -6582,10 +6652,6 @@ var WebsocketService = /** @class */ (function () {
6582
6652
  _this.reconnect();
6583
6653
  });
6584
6654
  };
6585
- WebsocketService.prototype.publishOnConnect = function () {
6586
- this.connect$.next();
6587
- this.connect$.observers = [];
6588
- };
6589
6655
  WebsocketService.prototype.onFocus = function () {
6590
6656
  this.focused = true;
6591
6657
  };
@@ -6640,6 +6706,7 @@ var WebsocketService = /** @class */ (function () {
6640
6706
  this._stompClient.deactivate();
6641
6707
  this.setConnected(false);
6642
6708
  this.isConnecting = false;
6709
+ this.wasConnected = false;
6643
6710
  this.disconnect$.next();
6644
6711
  };
6645
6712
  WebsocketService.prototype.isConnected = function () {
@@ -6852,5 +6919,5 @@ var ModulesEnum;
6852
6919
  * Generated bundle index. Do not edit.
6853
6920
  */
6854
6921
 
6855
- export { BankLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E044CcuFinRatDepLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E080SerLookup, E082TprLookup, E085PesLookup, E090PesLookup, E091PlfFinRatLookup, E095PesLookup, E099UsuComGerLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E600CcoLookup, E640LotLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NcmLookup, NpsService, ParametersLookup, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, WebsocketService, naturezaReceitaPisCofins, ErpLookupsService as ɵa, StorageService as ɵb, VerifyModulePermissionService as ɵc };
6922
+ export { BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E044CcuFinRatDepLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E080SerLookup, E082TprLookup, E085PesLookup, E090PesLookup, E091PlfFinRatLookup, E095PesLookup, E099UsuComGerLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E600CcoLookup, E640LotLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NcmLookup, NpsService, ParametersLookup, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, WebsocketService, naturezaReceitaPisCofins, ErpLookupsService as ɵa, StorageService as ɵb, VerifyModulePermissionService as ɵc };
6856
6923
  //# sourceMappingURL=senior-gestao-empresarial-angular-components.js.map