@seniorsistemas/yms-integration 1.31.0 → 1.31.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.
Files changed (25) hide show
  1. package/bundles/seniorsistemas-yms-integration.umd.js +126 -105
  2. package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
  5. package/esm2015/seniorsistemas-yms-integration.js +44 -43
  6. package/esm2015/src/utils/utils-message.js +35 -0
  7. package/esm2015/src/wms/components/document-grid/document-grid.component.js +35 -23
  8. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +8 -24
  9. package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +17 -23
  10. package/esm5/seniorsistemas-yms-integration.js +44 -43
  11. package/esm5/src/utils/utils-message.js +36 -0
  12. package/esm5/src/wms/components/document-grid/document-grid.component.js +35 -23
  13. package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +8 -24
  14. package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +18 -23
  15. package/fesm2015/seniorsistemas-yms-integration.js +81 -63
  16. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  17. package/fesm5/seniorsistemas-yms-integration.js +83 -63
  18. package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
  19. package/package.json +1 -1
  20. package/seniorsistemas-yms-integration.d.ts +43 -42
  21. package/seniorsistemas-yms-integration.metadata.json +1 -1
  22. package/src/utils/utils-message.d.ts +9 -0
  23. package/src/wms/components/document-grid/document-grid.component.d.ts +6 -4
  24. package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +3 -6
  25. package/src/wms/components/document-grid/register-document/register-document.component.d.ts +5 -5
@@ -3093,6 +3093,34 @@ var FormWmsComponent = /** @class */ (function (_super) {
3093
3093
  return FormWmsComponent;
3094
3094
  }(FormWmsDescritor));
3095
3095
 
3096
+ var UtilsMessageService = /** @class */ (function () {
3097
+ function UtilsMessageService(messageService, translate) {
3098
+ this.messageService = messageService;
3099
+ this.translate = translate;
3100
+ }
3101
+ UtilsMessageService.prototype.message = function (severity, summary, detail) {
3102
+ summary = this.translate.instant(summary);
3103
+ detail = this.translate.instant(detail);
3104
+ this.translateMessage(severity, summary, detail);
3105
+ };
3106
+ UtilsMessageService.prototype.translateMessage = function (severity, summary, detail) {
3107
+ this.messageService.add({
3108
+ severity: severity,
3109
+ summary: summary,
3110
+ detail: detail
3111
+ });
3112
+ };
3113
+ UtilsMessageService.ngInjectableDef = defineInjectable({ factory: function UtilsMessageService_Factory() { return new UtilsMessageService(inject(MessageService$1), inject(TranslateService)); }, token: UtilsMessageService, providedIn: "root" });
3114
+ UtilsMessageService = __decorate([
3115
+ Injectable({
3116
+ providedIn: 'root'
3117
+ }),
3118
+ __metadata("design:paramtypes", [MessageService,
3119
+ TranslateService])
3120
+ ], UtilsMessageService);
3121
+ return UtilsMessageService;
3122
+ }());
3123
+
3096
3124
  var EntityService$1 = /** @class */ (function () {
3097
3125
  function EntityService(http, messageService, entityUrl, actionsUrl) {
3098
3126
  this.http = http;
@@ -3261,13 +3289,13 @@ var ProcessType;
3261
3289
  })(ProcessType || (ProcessType = {}));
3262
3290
 
3263
3291
  var DocumentGridComponent = /** @class */ (function () {
3264
- function DocumentGridComponent(translate, documentService, messageService, confirmationService, integrationService, agendaService) {
3292
+ function DocumentGridComponent(translate, documentService, confirmationService, integrationService, agendaService, utils) {
3265
3293
  this.translate = translate;
3266
3294
  this.documentService = documentService;
3267
- this.messageService = messageService;
3268
3295
  this.confirmationService = confirmationService;
3269
3296
  this.integrationService = integrationService;
3270
3297
  this.agendaService = agendaService;
3298
+ this.utils = utils;
3271
3299
  this.viewDocument = new EventEmitter();
3272
3300
  this.gridData = [];
3273
3301
  this.enableButtonIsClienteExterno = true;
@@ -3296,17 +3324,38 @@ var DocumentGridComponent = /** @class */ (function () {
3296
3324
  .subscribe(function (result) { return _this.processType = result.processType; });
3297
3325
  };
3298
3326
  DocumentGridComponent.prototype.onChangeDocument = function (document) {
3327
+ if (!this.hasFilledValues(document)) {
3328
+ this.utils.message("error", "yms.int.wms_save_error_register_document_message_title", "yms.int.wms_save_error_register_document_message_description");
3329
+ return;
3330
+ }
3331
+ this.assignKeys(document);
3299
3332
  var duplicateDocument = this.gridData.find(function (gridData) { return gridData.key === document.key; });
3300
3333
  if (duplicateDocument) {
3301
- this.message("error", "yms.int.wms_error_register_document_message_title", "yms.int.wms_error_register_document_message_description");
3302
- this.selection[0] = document;
3303
- this.visibleDocumentRegister = true;
3334
+ this.utils.message("error", "yms.int.wms_error_register_document_message_title", "yms.int.wms_error_register_document_message_description");
3304
3335
  return;
3305
3336
  }
3306
3337
  this.gridData.push(document);
3307
3338
  this.disabled = false;
3308
- this.message("success", "yms.int.wms_saved_document_message_title", "yms.int.wms_success_message_description");
3339
+ this.utils.message("success", "yms.int.wms_saved_document_message_title", "yms.int.wms_success_message_description");
3309
3340
  this.visibleDocumentRegister = false;
3341
+ this.visibleInvoiceKey = false;
3342
+ };
3343
+ DocumentGridComponent.prototype.assignKeys = function (document) {
3344
+ if (document.id === undefined) {
3345
+ if (this.agenda.id !== undefined) {
3346
+ document.schedulingId = this.agenda.id;
3347
+ }
3348
+ if (document.key === undefined || document.key === null) {
3349
+ document.key = document.invoiceKey;
3350
+ if (this.isWmsWIS()) {
3351
+ document.key = document.invoiceNumber + ":" + document.invoiceSerialNumber + ":" + document.partnerDocument;
3352
+ }
3353
+ }
3354
+ }
3355
+ };
3356
+ DocumentGridComponent.prototype.hasFilledValues = function (document) {
3357
+ var formValues = Object.values(document);
3358
+ return formValues.some(function (value) { return value !== null && value !== ''; });
3310
3359
  };
3311
3360
  DocumentGridComponent.prototype.cantEditStatus = function () {
3312
3361
  var cantEditStatus = [
@@ -3367,7 +3416,7 @@ var DocumentGridComponent = /** @class */ (function () {
3367
3416
  }
3368
3417
  data.key = _this.updateKeyByWms(data);
3369
3418
  _this.documentService.insert(data).subscribe(function () {
3370
- _this.message("success", "yms.int.wms_saved_document_message_title", "saved_message_content");
3419
+ _this.utils.message("success", "yms.int.wms_saved_document_message_title", "saved_message_content");
3371
3420
  });
3372
3421
  _this.disabled = true;
3373
3422
  _this.listDocuments(false);
@@ -3397,11 +3446,7 @@ var DocumentGridComponent = /** @class */ (function () {
3397
3446
  return forkJoin(_this.selection.map(function (document) { return _this.documentService.delete(document.id); }))
3398
3447
  .pipe(takeUntil(_this.ngUnsubscribe))
3399
3448
  .subscribe(function () {
3400
- _this.messageService.add({
3401
- severity: "success",
3402
- summary: _this.translate.instant("deleted_message_title"),
3403
- detail: _this.translate.instant("deleted_message_content"),
3404
- });
3449
+ _this.utils.message("success", "deleted_message_title", "deleted_message_content");
3405
3450
  _this.listDocuments(true);
3406
3451
  });
3407
3452
  }
@@ -3435,6 +3480,7 @@ var DocumentGridComponent = /** @class */ (function () {
3435
3480
  var hasElementWithoutId = _this.gridData.some(function (item) { return !item.id; });
3436
3481
  _this.disabled = !hasElementWithoutId;
3437
3482
  _this.loading = false;
3483
+ _this.selection = [];
3438
3484
  });
3439
3485
  };
3440
3486
  DocumentGridComponent.prototype.getGridColumns = function () {
@@ -3474,13 +3520,6 @@ var DocumentGridComponent = /** @class */ (function () {
3474
3520
  DocumentGridComponent.prototype.isWmsWIS = function () {
3475
3521
  return this.wmsSystem === WmsSystem.WIS;
3476
3522
  };
3477
- DocumentGridComponent.prototype.message = function (severity, summary, detail) {
3478
- this.messageService.add({
3479
- severity: severity,
3480
- summary: this.translate.instant(summary),
3481
- detail: this.translate.instant(detail),
3482
- });
3483
- };
3484
3523
  __decorate([
3485
3524
  Input(),
3486
3525
  __metadata("design:type", Object)
@@ -3533,10 +3572,10 @@ var DocumentGridComponent = /** @class */ (function () {
3533
3572
  }),
3534
3573
  __metadata("design:paramtypes", [TranslateService,
3535
3574
  DocumentService,
3536
- MessageService,
3537
3575
  ConfirmationService,
3538
3576
  IntegrationService,
3539
- AgendaService])
3577
+ AgendaService,
3578
+ UtilsMessageService])
3540
3579
  ], DocumentGridComponent);
3541
3580
  return DocumentGridComponent;
3542
3581
  }());
@@ -3583,16 +3622,17 @@ var Document = /** @class */ (function () {
3583
3622
  }());
3584
3623
 
3585
3624
  var RegisterDocumentComponent = /** @class */ (function () {
3586
- function RegisterDocumentComponent(fb, messageService, translateService) {
3625
+ function RegisterDocumentComponent(fb, utils) {
3587
3626
  this.fb = fb;
3588
- this.messageService = messageService;
3589
- this.translateService = translateService;
3627
+ this.utils = utils;
3590
3628
  this.document = new EventEmitter();
3591
3629
  this.visible = new EventEmitter();
3592
3630
  this.visibleChange = new EventEmitter();
3631
+ this.isSaveFormValid = false;
3593
3632
  }
3594
3633
  RegisterDocumentComponent.prototype.ngOnInit = function () {
3595
3634
  this.getFormGroup();
3635
+ this.watchFormChanges();
3596
3636
  };
3597
3637
  RegisterDocumentComponent.prototype.ngOnChanges = function () {
3598
3638
  this.visibilityConfig();
@@ -3610,6 +3650,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
3610
3650
  }
3611
3651
  };
3612
3652
  RegisterDocumentComponent.prototype.close = function () {
3653
+ this.formGroup.reset();
3613
3654
  this.visibleChange.emit(false);
3614
3655
  };
3615
3656
  RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
@@ -3644,20 +3685,8 @@ var RegisterDocumentComponent = /** @class */ (function () {
3644
3685
  });
3645
3686
  };
3646
3687
  RegisterDocumentComponent.prototype.save = function () {
3647
- var value = this.formGroup.getRawValue();
3648
- if (value.id === undefined) {
3649
- if (this.agenda.id !== undefined) {
3650
- value.schedulingId = this.agenda.id;
3651
- }
3652
- if (value.key === undefined || value.key === null) {
3653
- value.key = value.invoiceKey;
3654
- if (this.isWmsWis()) {
3655
- value.key = value.invoiceNumber + ":" + value.invoiceSerialNumber + ":" + value.partnerDocument;
3656
- }
3657
- }
3658
- this.formGroup.reset();
3659
- this.document.emit(Document.fromDto(value));
3660
- }
3688
+ this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
3689
+ this.formGroup.reset();
3661
3690
  };
3662
3691
  RegisterDocumentComponent.prototype.isWmsWis = function () {
3663
3692
  return this.wmsSystem === WmsSystem.WIS;
@@ -3665,6 +3694,13 @@ var RegisterDocumentComponent = /** @class */ (function () {
3665
3694
  RegisterDocumentComponent.prototype.isWmsSeniorConnect = function () {
3666
3695
  return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
3667
3696
  };
3697
+ RegisterDocumentComponent.prototype.watchFormChanges = function () {
3698
+ var _this = this;
3699
+ this.formGroup.valueChanges.subscribe(function () {
3700
+ var formValues = Object.values(_this.formGroup.value);
3701
+ _this.isSaveFormValid = formValues.some(function (value) { return value !== null && value !== ''; });
3702
+ });
3703
+ };
3668
3704
  __decorate([
3669
3705
  Input(),
3670
3706
  __metadata("design:type", Array)
@@ -3696,11 +3732,10 @@ var RegisterDocumentComponent = /** @class */ (function () {
3696
3732
  RegisterDocumentComponent = __decorate([
3697
3733
  Component({
3698
3734
  selector: "register-document",
3699
- template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }} {{ wmsSystem }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"key\">{{'yms.int.wms_purchaseOrder' | translate}}</label>\n <input id=\"key\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-8\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-4\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-8\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-4\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-8\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-4\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"4\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-4\">\n <label for=\"code\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"code\" pInputText type=\"text\" formControlName=\"code\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\" (click)=\"save()\" [attr.data-hidden]=\"hideSaveButton\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
3735
+ template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }} {{ wmsSystem }}\"\n (visibleChange)=\"close()\"\n (onclose)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"key\">{{'yms.int.wms_purchaseOrder' | translate}}</label>\n <input id=\"key\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-8\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-4\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-8\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-4\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-8\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-4\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"4\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-4\">\n <label for=\"code\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"code\" pInputText type=\"text\" formControlName=\"code\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\"\n (click)=\"save()\"\n [attr.data-hidden]=\"hideSaveButton\"\n [disabled]=\"!isSaveFormValid\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
3700
3736
  }),
3701
3737
  __metadata("design:paramtypes", [FormBuilder,
3702
- MessageService,
3703
- TranslateService])
3738
+ UtilsMessageService])
3704
3739
  ], RegisterDocumentComponent);
3705
3740
  return RegisterDocumentComponent;
3706
3741
  }());
@@ -3731,11 +3766,10 @@ var RegisterDocumentModule = /** @class */ (function () {
3731
3766
  }());
3732
3767
 
3733
3768
  var InsertKeyComponent = /** @class */ (function () {
3734
- function InsertKeyComponent(formBuilder, documentService, messageService, translate) {
3769
+ function InsertKeyComponent(formBuilder, documentService, utils) {
3735
3770
  this.formBuilder = formBuilder;
3736
3771
  this.documentService = documentService;
3737
- this.messageService = messageService;
3738
- this.translate = translate;
3772
+ this.utils = utils;
3739
3773
  this.document = new EventEmitter();
3740
3774
  this.visible = new EventEmitter();
3741
3775
  this.visibleChange = new EventEmitter();
@@ -3776,37 +3810,24 @@ var InsertKeyComponent = /** @class */ (function () {
3776
3810
  this.documentService.findDocuments(key)
3777
3811
  .pipe(catchError(function (err) {
3778
3812
  if (err.error && err.error.message.includes("404")) {
3779
- _this.message("error", "yms.int.wms_error_search_document_message_header", "yms.int.wms_error_search_document_not_found_message_content");
3813
+ _this.utils.message("error", "yms.int.wms_error_search_document_message_header", "yms.int.wms_error_search_document_not_found_message_content");
3780
3814
  }
3781
3815
  else {
3782
- _this.messageService.add({
3783
- severity: "error",
3784
- summary: _this.translate.instant("yms.int.wms_error_search_document_message_header"),
3785
- detail: _this.translate.instant("yms.int.wms_error_unknown_search_document_message_content") + err.error.message,
3786
- });
3816
+ _this.utils.translateMessage("error", "yms.int.wms_error_search_document_message_header", "yms.int.wms_error_unknown_search_document_message_content" + err.error.message);
3787
3817
  }
3788
3818
  return throwError(err);
3789
3819
  }), finalize(function () {
3790
3820
  _this.isLoading = false;
3791
3821
  }))
3792
3822
  .subscribe(function (content) {
3793
- _this.visibleChange.emit(false);
3794
3823
  if (!content || content.totalElements < 1) {
3795
- _this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
3824
+ _this.utils.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
3796
3825
  return;
3797
3826
  }
3798
3827
  _this.document.emit(content.contents[0]);
3799
- _this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_success_message_description");
3800
3828
  _this.formGroup.reset();
3801
3829
  });
3802
3830
  };
3803
- InsertKeyComponent.prototype.message = function (success, header, description) {
3804
- this.messageService.add({
3805
- severity: success,
3806
- summary: this.translate.instant(header),
3807
- detail: this.translate.instant(description),
3808
- });
3809
- };
3810
3831
  InsertKeyComponent.prototype.cancel = function () {
3811
3832
  this.visibleChange.emit(false);
3812
3833
  };
@@ -3837,8 +3858,7 @@ var InsertKeyComponent = /** @class */ (function () {
3837
3858
  }),
3838
3859
  __metadata("design:paramtypes", [FormBuilder,
3839
3860
  DocumentService,
3840
- MessageService,
3841
- TranslateService])
3861
+ UtilsMessageService])
3842
3862
  ], InsertKeyComponent);
3843
3863
  return InsertKeyComponent;
3844
3864
  }());
@@ -14152,5 +14172,5 @@ var DockModule = /** @class */ (function () {
14152
14172
  return DockModule;
14153
14173
  }());
14154
14174
 
14155
- export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, RegisterDocumentModule as ɵbc, RegisterDocumentComponent as ɵbd, InsertKeyModule as ɵbe, InsertKeyComponent as ɵbf, IntegrationService$1 as ɵbg, RecebimentoFormComponent as ɵbh, DerivacaoService as ɵbi, NotaValidatorService as ɵbj, TransgeniaService as ɵbk, VerificaNotafiscal as ɵbl, BuildFormField as ɵbm, ExpedicaoFormComponent as ɵbn, ExpedicaoInfoComponent as ɵbo, RecebimentoInfoComponent as ɵbp, DevolucaoFormComponent as ɵbq, DevolucaoService as ɵbr, DevolucaoChegadaVeiculoOverride as ɵbs, RecebimentoOrdemCompraFormComponent as ɵbt, OrdemCompraService as ɵbu, RecebimentoOrdemCompraService as ɵbv, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbw, RecebimentoOrdemCompraInfoComponent as ɵbx, DevolucaoInfoComponent as ɵby, ContratoFormComponent as ɵbz, ViewImageComponent as ɵc, OrdemCompraFormComponent as ɵca, ProcessoAvulsoFormComponent as ɵcb, ProcessoAvulsoService as ɵcc, ProcessoAvulsoChegadaVeiculoOverride as ɵcd, ProcessoAvulsoInfoComponent as ɵce, LogIntegracaoDescritor as ɵcf, LogIntegracaoComponent as ɵcg, LogIntegracaoService as ɵch, DerivacaoModule as ɵci, DevolucaoModule as ɵcj, OrdemCompraModule as ɵck, RecebimentoOrdemCompraModule as ɵcl, TransgeniaModule as ɵcm, ProcessoAvulsoModule as ɵcn, LogIntegracaoModule as ɵco, NotaFormModule as ɵcp, DirectivesModule as ɵcq, TrimDirective as ɵcr, NotaFormComponent as ɵcs, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, AgendaService as ɵz };
14175
+ export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, UtilsMessageService as ɵbc, RegisterDocumentModule as ɵbd, RegisterDocumentComponent as ɵbe, InsertKeyModule as ɵbf, InsertKeyComponent as ɵbg, IntegrationService$1 as ɵbh, RecebimentoFormComponent as ɵbi, DerivacaoService as ɵbj, NotaValidatorService as ɵbk, TransgeniaService as ɵbl, VerificaNotafiscal as ɵbm, BuildFormField as ɵbn, ExpedicaoFormComponent as ɵbo, ExpedicaoInfoComponent as ɵbp, RecebimentoInfoComponent as ɵbq, DevolucaoFormComponent as ɵbr, DevolucaoService as ɵbs, DevolucaoChegadaVeiculoOverride as ɵbt, RecebimentoOrdemCompraFormComponent as ɵbu, OrdemCompraService as ɵbv, RecebimentoOrdemCompraService as ɵbw, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbx, RecebimentoOrdemCompraInfoComponent as ɵby, DevolucaoInfoComponent as ɵbz, ViewImageComponent as ɵc, ContratoFormComponent as ɵca, OrdemCompraFormComponent as ɵcb, ProcessoAvulsoFormComponent as ɵcc, ProcessoAvulsoService as ɵcd, ProcessoAvulsoChegadaVeiculoOverride as ɵce, ProcessoAvulsoInfoComponent as ɵcf, LogIntegracaoDescritor as ɵcg, LogIntegracaoComponent as ɵch, LogIntegracaoService as ɵci, DerivacaoModule as ɵcj, DevolucaoModule as ɵck, OrdemCompraModule as ɵcl, RecebimentoOrdemCompraModule as ɵcm, TransgeniaModule as ɵcn, ProcessoAvulsoModule as ɵco, LogIntegracaoModule as ɵcp, NotaFormModule as ɵcq, DirectivesModule as ɵcr, TrimDirective as ɵcs, NotaFormComponent as ɵct, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, AgendaService as ɵz };
14156
14176
  //# sourceMappingURL=seniorsistemas-yms-integration.js.map