@senior-gestao-empresarial/erpx-components 4.6.0 → 4.6.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.
@@ -33008,12 +33008,13 @@
33008
33008
  }());
33009
33009
 
33010
33010
  var ErpRateioEditorComponent = /** @class */ (function () {
33011
- function ErpRateioEditorComponent(fb, service, translate, e091PlfLookup, e044CcuLookup) {
33011
+ function ErpRateioEditorComponent(fb, service, translate, e091PlfLookup, e044CcuLookup, messageService) {
33012
33012
  this.fb = fb;
33013
33013
  this.service = service;
33014
33014
  this.translate = translate;
33015
33015
  this.e091PlfLookup = e091PlfLookup;
33016
33016
  this.e044CcuLookup = e044CcuLookup;
33017
+ this.messageService = messageService;
33017
33018
  this.readOnly = false;
33018
33019
  this.showSugestaoButton = true;
33019
33020
  /**
@@ -33173,8 +33174,21 @@
33173
33174
  this.service.gravarRateioManual(input)
33174
33175
  .pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () { return (_this.loading = false); }))
33175
33176
  .subscribe(function () {
33177
+ _this.messageService.add({
33178
+ severity: 'success',
33179
+ summary: _this.translate.instant('erpx.rateio_editor.salvo_com_sucesso_titulo'),
33180
+ detail: _this.translate.instant('erpx.rateio_editor.salvo_com_sucesso_detalhe')
33181
+ });
33176
33182
  _this.save.emit({ idMovimento: _this.idMovimento, tipoMovimento: _this.tipoMovimento, rateios: _this.contasDataSource });
33177
- }, function (err) { var _a; return _this.error.emit({ operacao: 'save', message: ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.message) || (err === null || err === void 0 ? void 0 : err.message) || 'Erro ao salvar rateio', originalError: err }); });
33183
+ }, function (err) {
33184
+ var _a, _b;
33185
+ _this.messageService.add({
33186
+ severity: 'error',
33187
+ summary: _this.translate.instant('erpx.rateio_editor.erro_titulo') || 'Erro',
33188
+ detail: ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.message) || (err === null || err === void 0 ? void 0 : err.message) || 'Erro ao salvar rateio'
33189
+ });
33190
+ _this.error.emit({ operacao: 'save', message: ((_b = err === null || err === void 0 ? void 0 : err.error) === null || _b === void 0 ? void 0 : _b.message) || (err === null || err === void 0 ? void 0 : err.message) || 'Erro ao salvar rateio', originalError: err });
33191
+ });
33178
33192
  };
33179
33193
  ErpRateioEditorComponent.prototype.onSugerir = function () {
33180
33194
  var _this = this;
@@ -33539,7 +33553,8 @@
33539
33553
  { type: ErpRateioEditorService },
33540
33554
  { type: core$1.TranslateService },
33541
33555
  { type: angularComponents.E091PlfLookup },
33542
- { type: angularComponents.E044CcuLookup }
33556
+ { type: angularComponents.E044CcuLookup },
33557
+ { type: primeng.MessageService }
33543
33558
  ]; };
33544
33559
  __decorate([
33545
33560
  core.Input()
@@ -33613,7 +33628,7 @@
33613
33628
  angularComponents$1.DynamicFormModule,
33614
33629
  angularComponents$1.EmptyStateModule,
33615
33630
  angularComponents$1.LoadingStateModule,
33616
- angularComponents$1.LocaleModule.forChild(),
33631
+ angularComponents$1.LocaleModule,
33617
33632
  angularComponents.ErpLookupsModule,
33618
33633
  angularComponents$1.StatsCardModule,
33619
33634
  table.TableModule,