@seniorsistemas/yms-integration 1.21.0 → 1.23.0-c9dd79ae-4dab-4952-982d-6f13fd198efb

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 (26) hide show
  1. package/bundles/seniorsistemas-yms-integration.umd.js +65 -29
  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/src/wms/components/document-grid/document-grid.component.js +49 -22
  6. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +3 -3
  7. package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +14 -9
  8. package/esm2015/src/wms/entities/document/document-dto.js +1 -1
  9. package/esm2015/src/wms/entities/document/document.js +2 -2
  10. package/esm2015/src/wms/form/form-wms.component.js +6 -2
  11. package/esm5/src/wms/components/document-grid/document-grid.component.js +50 -22
  12. package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +3 -3
  13. package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +14 -9
  14. package/esm5/src/wms/entities/document/document-dto.js +1 -1
  15. package/esm5/src/wms/entities/document/document.js +2 -2
  16. package/esm5/src/wms/form/form-wms.component.js +6 -2
  17. package/fesm2015/seniorsistemas-yms-integration.js +66 -31
  18. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  19. package/fesm5/seniorsistemas-yms-integration.js +67 -31
  20. package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
  21. package/package.json +1 -1
  22. package/seniorsistemas-yms-integration.metadata.json +1 -1
  23. package/src/wms/components/document-grid/document-grid.component.d.ts +7 -5
  24. package/src/wms/components/document-grid/register-document/register-document.component.d.ts +1 -1
  25. package/src/wms/entities/document/document-dto.d.ts +3 -1
  26. package/src/wms/entities/document/document.d.ts +3 -1
@@ -3059,6 +3059,10 @@
3059
3059
  function FormWmsDescritor() {
3060
3060
  }
3061
3061
  FormWmsDescritor = __decorate([
3062
+ ymsRoutines.Agendamento({
3063
+ header: INFORMACAOES_ADICIONAIS_HEADER,
3064
+ name: 'yms.integracao.wms'
3065
+ }),
3062
3066
  ymsRoutines.ChegadaVeiculo({
3063
3067
  header: INFORMACAOES_ADICIONAIS_HEADER,
3064
3068
  name: 'yms.integracao.wms',
@@ -3128,13 +3132,15 @@
3128
3132
  }(EntityService));
3129
3133
 
3130
3134
  var DocumentGridComponent = /** @class */ (function () {
3131
- function DocumentGridComponent(translate, documentService, messageService) {
3135
+ function DocumentGridComponent(translate, documentService, messageService, confirmationService) {
3132
3136
  this.translate = translate;
3133
3137
  this.documentService = documentService;
3134
3138
  this.messageService = messageService;
3139
+ this.confirmationService = confirmationService;
3135
3140
  this.viewDocument = new core.EventEmitter();
3136
3141
  this.gridData = [];
3137
3142
  this.ngUnsubscribe = new rxjs.Subject();
3143
+ this.selection = [];
3138
3144
  }
3139
3145
  DocumentGridComponent.prototype.ngOnInit = function () {
3140
3146
  this.gridColumns = this.getGridColumns();
@@ -3150,6 +3156,7 @@
3150
3156
  {
3151
3157
  label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
3152
3158
  command: function () {
3159
+ _this.selection = [];
3153
3160
  _this.visibleInvoiceKey = true;
3154
3161
  },
3155
3162
  icon: "fa fa-search"
@@ -3157,6 +3164,7 @@
3157
3164
  {
3158
3165
  label: this.translate.instant("yms.int.wms_add_document_register"),
3159
3166
  command: function () {
3167
+ _this.selection = [];
3160
3168
  _this.edit = true;
3161
3169
  _this.visibleDocumentRegister = true;
3162
3170
  },
@@ -3167,8 +3175,8 @@
3167
3175
  DocumentGridComponent.prototype.getProp = function (obj, path) {
3168
3176
  return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
3169
3177
  };
3170
- DocumentGridComponent.prototype.view = function (selection) {
3171
- this.viewDocument.emit(selection);
3178
+ DocumentGridComponent.prototype.view = function () {
3179
+ this.viewDocument.emit(this.selection[0]);
3172
3180
  this.visibleDocumentRegister = true;
3173
3181
  this.edit = false;
3174
3182
  };
@@ -3188,17 +3196,38 @@
3188
3196
  });
3189
3197
  }
3190
3198
  };
3191
- DocumentGridComponent.prototype.onDelete = function (selection) {
3199
+ DocumentGridComponent.prototype.onDelete = function () {
3192
3200
  var _this = this;
3193
- if (!selection.id) {
3194
- return;
3195
- }
3196
- this.documentService.delete(selection.id)
3197
- .pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () {
3198
- _this.gridData = [];
3199
- _this.listDocuments();
3200
- })).
3201
- subscribe(function () { return _this.message("success", "deleted_message_title", "deleted_message_content"); });
3201
+ this.confirmationService.confirm({
3202
+ message: this.translate.instant("delete_confirmation_message"),
3203
+ header: this.translate.instant("delete_confirmation_title"),
3204
+ accept: function () {
3205
+ _this.removeDocumentIfIdUndfined();
3206
+ if (_this.selection.length < 1) {
3207
+ return rxjs.empty();
3208
+ }
3209
+ return rxjs.forkJoin(_this.selection.map(function (document) { return _this.documentService.delete(document.id); }))
3210
+ .pipe(operators.takeUntil(_this.ngUnsubscribe))
3211
+ .subscribe(function () {
3212
+ _this.messageService.add({
3213
+ severity: "success",
3214
+ summary: _this.translate.instant("deleted_message_title"),
3215
+ detail: _this.translate.instant("deleted_message_content"),
3216
+ });
3217
+ _this.gridData = [];
3218
+ _this.listDocuments();
3219
+ });
3220
+ }
3221
+ });
3222
+ };
3223
+ DocumentGridComponent.prototype.removeDocumentIfIdUndfined = function () {
3224
+ var _this = this;
3225
+ this.selection.forEach(function (value, index) {
3226
+ if (!value.id) {
3227
+ _this.gridData.splice(index, 1);
3228
+ _this.selection.splice(index, 1);
3229
+ }
3230
+ });
3202
3231
  };
3203
3232
  DocumentGridComponent.prototype.listDocuments = function () {
3204
3233
  var _this = this;
@@ -3206,14 +3235,15 @@
3206
3235
  filterQuery: "schedulingId eq '" + this.agenda.id + "'"
3207
3236
  })
3208
3237
  .subscribe(function (contents) {
3238
+ _this.gridData = [];
3209
3239
  if (contents.totalElements > 0) {
3210
3240
  _this.gridData = contents.contents;
3211
3241
  _this.documentTotalRecords = contents.totalElements;
3212
3242
  }
3213
3243
  else {
3214
- _this.disabled = true;
3215
3244
  _this.documentTotalRecords = _this.gridData.length;
3216
3245
  }
3246
+ _this.disabled = true;
3217
3247
  _this.loading = false;
3218
3248
  });
3219
3249
  };
@@ -3226,7 +3256,7 @@
3226
3256
  { field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
3227
3257
  { field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
3228
3258
  { field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
3229
- { field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
3259
+ { field: "code", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
3230
3260
  ];
3231
3261
  };
3232
3262
  DocumentGridComponent.prototype.message = function (severity, summary, detail) {
@@ -3279,12 +3309,13 @@
3279
3309
  DocumentGridComponent = __decorate([
3280
3310
  core.Component({
3281
3311
  selector: 'document-grid',
3282
- template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (onClick)=\"view(selection)\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (click)=\"onDelete(selection)\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"single\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceKey\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceNumber\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceSerialNumber\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"ownerName\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"ownerDocument\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"orderReceivingCode\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"!disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'yms.dock.area_dock_empty_state_title' | translate\"\n [description]=\"'yms.dock.area_dock_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
3283
- styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}"]
3312
+ template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceKey\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceNumber\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceSerialNumber\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"ownerName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"ownerDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"code\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
3313
+ styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px}"]
3284
3314
  }),
3285
3315
  __metadata("design:paramtypes", [core$1.TranslateService,
3286
3316
  DocumentService,
3287
- api.MessageService])
3317
+ api.MessageService,
3318
+ api.ConfirmationService])
3288
3319
  ], DocumentGridComponent);
3289
3320
  return DocumentGridComponent;
3290
3321
  }());
@@ -3312,7 +3343,7 @@
3312
3343
  "partnerName",
3313
3344
  "partnerDocument",
3314
3345
  "notes",
3315
- "orderReceivingCode",
3346
+ "code",
3316
3347
  "createdBy",
3317
3348
  "createdDate",
3318
3349
  "lastModifiedBy",
@@ -3467,15 +3498,20 @@
3467
3498
  RegisterDocumentComponent.prototype.visibilityConfig = function () {
3468
3499
  if (!this.edit && this.visible) {
3469
3500
  this.formGroup.disable();
3470
- this.setValuesFormGroup(this.viewDocument);
3501
+ this.setValuesFormGroup(this.viewDocument[0]);
3471
3502
  this.setValueForPartner();
3472
3503
  this.hideSaveButton = true;
3473
3504
  return this.visible;
3474
3505
  }
3475
- return this.visible;
3506
+ if (this.formGroup !== undefined) {
3507
+ this.formGroup.enable();
3508
+ this.setValueForPartner();
3509
+ this.hideSaveButton = false;
3510
+ }
3476
3511
  };
3477
3512
  RegisterDocumentComponent.prototype.close = function () {
3478
3513
  this.visibleChange.emit(false);
3514
+ this.formGroup.reset();
3479
3515
  };
3480
3516
  RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
3481
3517
  this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
@@ -3484,7 +3520,7 @@
3484
3520
  this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
3485
3521
  this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
3486
3522
  this.formGroup.get('notes').setValue(document.notes);
3487
- this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
3523
+ this.formGroup.get('code').setValue(document.code);
3488
3524
  this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
3489
3525
  this.formGroup.get('ownerName').setValue(document.ownerName);
3490
3526
  };
@@ -3508,7 +3544,7 @@
3508
3544
  partnerName: [undefined],
3509
3545
  partnerDocument: [undefined],
3510
3546
  notes: [undefined],
3511
- orderReceivingCode: [undefined],
3547
+ code: [undefined],
3512
3548
  });
3513
3549
  };
3514
3550
  RegisterDocumentComponent.prototype.save = function () {
@@ -3525,13 +3561,13 @@
3525
3561
  RegisterDocumentComponent.prototype.successMessage = function () {
3526
3562
  this.messageService.add({
3527
3563
  severity: "success",
3528
- summary: this.translateService.instant("saved_message_title"),
3529
- detail: this.translateService.instant("saved_message_content"),
3564
+ summary: this.translateService.instant("yms.saved_message_title"),
3565
+ detail: this.translateService.instant("yms.int.wms_success_message_description"),
3530
3566
  });
3531
3567
  };
3532
3568
  __decorate([
3533
3569
  core.Input(),
3534
- __metadata("design:type", Document)
3570
+ __metadata("design:type", Array)
3535
3571
  ], RegisterDocumentComponent.prototype, "viewDocument", void 0);
3536
3572
  __decorate([
3537
3573
  core.Input(),
@@ -3556,7 +3592,7 @@
3556
3592
  RegisterDocumentComponent = __decorate([
3557
3593
  core.Component({
3558
3594
  selector: "register-document",
3559
- template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\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\">\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\">\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-6\">\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-6\">\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-6\">\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-6\">\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-6\">\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-6\">\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=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"orderReceivingCode\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"orderReceivingCode\" pInputText type=\"text\" formControlName=\"orderReceivingCode\">\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>"
3595
+ template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\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\">\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\">\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-6\">\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-6\">\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-6\">\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-6\">\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-6\">\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-6\">\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=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\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>"
3560
3596
  }),
3561
3597
  __metadata("design:paramtypes", [forms.FormBuilder,
3562
3598
  api.MessageService,
@@ -3628,7 +3664,7 @@
3628
3664
  return;
3629
3665
  }
3630
3666
  _this.document.emit(content.contents[0]);
3631
- _this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
3667
+ _this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_success_message_description");
3632
3668
  _this.formGroup.reset();
3633
3669
  });
3634
3670
  };
@@ -3657,7 +3693,7 @@
3657
3693
  InsertKeyComponent = __decorate([
3658
3694
  core.Component({
3659
3695
  selector: "insert-key",
3660
- template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.insert_key_label'}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
3696
+ template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.wms_insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.int.wms_insert_key_label' | translate}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
3661
3697
  styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:550px}"]
3662
3698
  }),
3663
3699
  __metadata("design:paramtypes", [forms.FormBuilder,