@seniorsistemas/yms-integration 1.19.1 → 1.21.0

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 (77) hide show
  1. package/bundles/seniorsistemas-yms-integration.umd.js +906 -236
  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/index.js +4 -1
  6. package/esm2015/seniorsistemas-yms-integration.js +49 -38
  7. package/esm2015/src/erp-senior/components/nota-form/nota-form.component.js +3 -3
  8. package/esm2015/src/erp-senior/components/nota-form/nota-form.module.js +4 -2
  9. package/esm2015/src/erp-senior/erp-senior.module.js +3 -1
  10. package/esm2015/src/erp-senior/recebimento/form/recebimento-form.component.js +3 -3
  11. package/esm2015/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +3 -3
  12. package/esm2015/src/utils/directives/directives.module.js +15 -0
  13. package/esm2015/src/utils/directives/trim.directive.js +27 -0
  14. package/esm2015/src/wms/components/document-grid/document-grid.component.js +166 -0
  15. package/esm2015/src/wms/components/document-grid/document-grid.module.js +35 -0
  16. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +82 -0
  17. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +26 -0
  18. package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +125 -0
  19. package/esm2015/src/wms/components/document-grid/register-document/register-document.module.js +32 -0
  20. package/esm2015/src/wms/entities/agenda/agenda.service.js +22 -0
  21. package/esm2015/src/wms/entities/document/document-dto.js +1 -0
  22. package/esm2015/src/wms/entities/document/document.js +39 -0
  23. package/esm2015/src/wms/entities/document/document.service.js +21 -0
  24. package/esm2015/src/wms/entities/document/find-documents-input.js +1 -0
  25. package/esm2015/src/wms/entities/entity-service.js +4 -0
  26. package/esm2015/src/wms/entities/wms-system/wms-system.js +9 -0
  27. package/esm2015/src/wms/form/form-wms.component.js +60 -0
  28. package/esm2015/src/wms/wms.module.js +68 -0
  29. package/esm5/index.js +4 -1
  30. package/esm5/seniorsistemas-yms-integration.js +49 -38
  31. package/esm5/src/erp-senior/components/nota-form/nota-form.component.js +3 -3
  32. package/esm5/src/erp-senior/components/nota-form/nota-form.module.js +4 -2
  33. package/esm5/src/erp-senior/erp-senior.module.js +3 -1
  34. package/esm5/src/erp-senior/recebimento/form/recebimento-form.component.js +3 -3
  35. package/esm5/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +3 -3
  36. package/esm5/src/utils/directives/directives.module.js +18 -0
  37. package/esm5/src/utils/directives/trim.directive.js +28 -0
  38. package/esm5/src/wms/components/document-grid/document-grid.component.js +171 -0
  39. package/esm5/src/wms/components/document-grid/document-grid.module.js +38 -0
  40. package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +84 -0
  41. package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +29 -0
  42. package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +127 -0
  43. package/esm5/src/wms/components/document-grid/register-document/register-document.module.js +35 -0
  44. package/esm5/src/wms/entities/agenda/agenda.service.js +25 -0
  45. package/esm5/src/wms/entities/document/document-dto.js +1 -0
  46. package/esm5/src/wms/entities/document/document.js +44 -0
  47. package/esm5/src/wms/entities/document/document.service.js +24 -0
  48. package/esm5/src/wms/entities/document/find-documents-input.js +1 -0
  49. package/esm5/src/wms/entities/entity-service.js +11 -0
  50. package/esm5/src/wms/entities/wms-system/wms-system.js +9 -0
  51. package/esm5/src/wms/form/form-wms.component.js +63 -0
  52. package/esm5/src/wms/wms.module.js +69 -0
  53. package/fesm2015/seniorsistemas-yms-integration.js +808 -192
  54. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  55. package/fesm5/seniorsistemas-yms-integration.js +845 -189
  56. package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
  57. package/index.d.ts +2 -0
  58. package/package.json +1 -1
  59. package/seniorsistemas-yms-integration.d.ts +48 -37
  60. package/seniorsistemas-yms-integration.metadata.json +1 -1
  61. package/src/utils/directives/directives.module.d.ts +2 -0
  62. package/src/utils/directives/trim.directive.d.ts +6 -0
  63. package/src/wms/components/document-grid/document-grid.component.d.ts +41 -0
  64. package/src/wms/components/document-grid/document-grid.module.d.ts +2 -0
  65. package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +22 -0
  66. package/src/wms/components/document-grid/insert-key/insert-key.module.d.ts +2 -0
  67. package/src/wms/components/document-grid/register-document/register-document.component.d.ts +31 -0
  68. package/src/wms/components/document-grid/register-document/register-document.module.d.ts +2 -0
  69. package/src/wms/entities/agenda/agenda.service.d.ts +9 -0
  70. package/src/wms/entities/document/document-dto.d.ts +16 -0
  71. package/src/wms/entities/document/document.d.ts +20 -0
  72. package/src/wms/entities/document/document.service.d.ts +11 -0
  73. package/src/wms/entities/document/find-documents-input.d.ts +7 -0
  74. package/src/wms/entities/entity-service.d.ts +3 -0
  75. package/src/wms/entities/wms-system/wms-system.d.ts +7 -0
  76. package/src/wms/form/form-wms.component.d.ts +18 -0
  77. package/src/wms/wms.module.d.ts +4 -0
@@ -2,9 +2,9 @@ import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER, of,
2
2
  import { takeUntil, catchError, finalize, map, filter, mergeMap, tap, concatMap, switchMap, debounceTime } from 'rxjs/operators';
3
3
  import { __extends, __decorate, __metadata, __assign, __spread, __values, __param } from 'tslib';
4
4
  import { CommonModule } from '@angular/common';
5
- import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter, InjectionToken, Inject, ViewChild, TemplateRef } from '@angular/core';
5
+ import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter, ViewChild, TemplateRef, InjectionToken, Inject, HostListener, Directive, ElementRef } from '@angular/core';
6
6
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
7
- import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule } from '@seniorsistemas/angular-components';
7
+ import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule, SidebarModule } from '@seniorsistemas/angular-components';
8
8
  import { MessageModule } from 'primeng/message';
9
9
  import { TableModule, Table } from 'primeng/table';
10
10
  import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
@@ -16,8 +16,8 @@ import { StompConfig, StompService } from '@stomp/ng2-stompjs';
16
16
  import * as SockJS from 'sockjs-client';
17
17
  import { CookieService } from 'ngx-cookie-service';
18
18
  import { DynamicDialogModule } from 'primeng/components/dynamicdialog/dynamicdialog';
19
- import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule } from 'primeng/primeng';
20
- import { SelectPlantService, SelectPlantModule } from '@seniorsistemas/yms-components';
19
+ import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule, InputTextareaModule } from 'primeng/primeng';
20
+ import { SelectPlantService, SelectPlantModule, ComponentsModule } from '@seniorsistemas/yms-components';
21
21
  import { Router, RouterModule, ActivatedRoute } from '@angular/router';
22
22
  import { InputSwitchModule } from 'primeng/inputswitch';
23
23
  import { InputTextModule } from 'primeng/inputtext';
@@ -2995,6 +2995,282 @@ var VisitorListModule = /** @class */ (function () {
2995
2995
  return VisitorListModule;
2996
2996
  }());
2997
2997
 
2998
+ var INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
2999
+ var FormWmsDescritor = /** @class */ (function () {
3000
+ function FormWmsDescritor() {
3001
+ }
3002
+ FormWmsDescritor = __decorate([
3003
+ ChegadaVeiculo({
3004
+ header: INFORMACAOES_ADICIONAIS_HEADER,
3005
+ name: 'yms.integracao.wms',
3006
+ icon: 'fa fa-plus'
3007
+ })
3008
+ ], FormWmsDescritor);
3009
+ return FormWmsDescritor;
3010
+ }());
3011
+ var FormWmsComponent = /** @class */ (function (_super) {
3012
+ __extends(FormWmsComponent, _super);
3013
+ function FormWmsComponent(integrationCallback) {
3014
+ var _this = _super.call(this) || this;
3015
+ _this.integrationCallback = integrationCallback;
3016
+ _this.save = [];
3017
+ _this.header = INFORMACAOES_ADICIONAIS_HEADER;
3018
+ _this.loading = false;
3019
+ _this.unsubscribe$ = new Subject();
3020
+ _this._integrationCallback = integrationCallback;
3021
+ return _this;
3022
+ }
3023
+ FormWmsComponent.prototype.ngOnInit = function () {
3024
+ var _this = this;
3025
+ this._integrationCallback.onAgendamentoSaved()
3026
+ .pipe(takeUntil(this.unsubscribe$), mergeMap(function (agenda) {
3027
+ _this.agenda = agenda;
3028
+ return empty();
3029
+ }))
3030
+ .subscribe();
3031
+ };
3032
+ FormWmsComponent.prototype.ngOnDestroy = function () {
3033
+ this.unsubscribe$.next();
3034
+ this.unsubscribe$.complete();
3035
+ };
3036
+ __decorate([
3037
+ Output(),
3038
+ __metadata("design:type", Agenda)
3039
+ ], FormWmsComponent.prototype, "agenda", void 0);
3040
+ __decorate([
3041
+ Input(),
3042
+ __metadata("design:type", Array)
3043
+ ], FormWmsComponent.prototype, "save", void 0);
3044
+ FormWmsComponent = __decorate([
3045
+ Component({
3046
+ template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\"></document-grid>\n </div>\n "
3047
+ }),
3048
+ __metadata("design:paramtypes", [IntegrationEventsCallback])
3049
+ ], FormWmsComponent);
3050
+ return FormWmsComponent;
3051
+ }(FormWmsDescritor));
3052
+
3053
+ var DocumentService = /** @class */ (function (_super) {
3054
+ __extends(DocumentService, _super);
3055
+ function DocumentService(http, messageService) {
3056
+ var _this = _super.call(this, http, messageService, 'yms_int/wms/entities/document', '') || this;
3057
+ _this.http = http;
3058
+ _this.messageService = messageService;
3059
+ return _this;
3060
+ }
3061
+ DocumentService.prototype.findDocuments = function (input) {
3062
+ return this.http.post('yms_int/wms/queries/findDocuments', input);
3063
+ };
3064
+ DocumentService = __decorate([
3065
+ Injectable(),
3066
+ __metadata("design:paramtypes", [HttpClient, MessageService])
3067
+ ], DocumentService);
3068
+ return DocumentService;
3069
+ }(EntityService));
3070
+
3071
+ var DocumentGridComponent = /** @class */ (function () {
3072
+ function DocumentGridComponent(translate, documentService, messageService) {
3073
+ this.translate = translate;
3074
+ this.documentService = documentService;
3075
+ this.messageService = messageService;
3076
+ this.viewDocument = new EventEmitter();
3077
+ this.gridData = [];
3078
+ this.ngUnsubscribe = new Subject();
3079
+ }
3080
+ DocumentGridComponent.prototype.ngOnInit = function () {
3081
+ this.gridColumns = this.getGridColumns();
3082
+ this.listDocuments();
3083
+ };
3084
+ DocumentGridComponent.prototype.onChangeDocument = function (document) {
3085
+ this.gridData.push(document);
3086
+ this.disabled = false;
3087
+ };
3088
+ DocumentGridComponent.prototype.getActions = function () {
3089
+ var _this = this;
3090
+ return [
3091
+ {
3092
+ label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
3093
+ command: function () {
3094
+ _this.visibleInvoiceKey = true;
3095
+ },
3096
+ icon: "fa fa-search"
3097
+ },
3098
+ {
3099
+ label: this.translate.instant("yms.int.wms_add_document_register"),
3100
+ command: function () {
3101
+ _this.edit = true;
3102
+ _this.visibleDocumentRegister = true;
3103
+ },
3104
+ icon: "fas fa-pen-square"
3105
+ }
3106
+ ];
3107
+ };
3108
+ DocumentGridComponent.prototype.getProp = function (obj, path) {
3109
+ return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
3110
+ };
3111
+ DocumentGridComponent.prototype.view = function (selection) {
3112
+ this.viewDocument.emit(selection);
3113
+ this.visibleDocumentRegister = true;
3114
+ this.edit = false;
3115
+ };
3116
+ DocumentGridComponent.prototype.save = function () {
3117
+ var _this = this;
3118
+ if (this.gridData.length > 0) {
3119
+ this.gridData.forEach(function (data) {
3120
+ if (!data.id) {
3121
+ if (!data.schedulingId) {
3122
+ data.schedulingId = _this.agenda.id;
3123
+ }
3124
+ _this.documentService.insert(data).subscribe(function () {
3125
+ _this.message("success", "saved_message_title", "saved_message_content");
3126
+ });
3127
+ _this.disabled = true;
3128
+ }
3129
+ });
3130
+ }
3131
+ };
3132
+ DocumentGridComponent.prototype.onDelete = function (selection) {
3133
+ var _this = this;
3134
+ if (!selection.id) {
3135
+ return;
3136
+ }
3137
+ this.documentService.delete(selection.id)
3138
+ .pipe(takeUntil(this.ngUnsubscribe), finalize(function () {
3139
+ _this.gridData = [];
3140
+ _this.listDocuments();
3141
+ })).
3142
+ subscribe(function () { return _this.message("success", "deleted_message_title", "deleted_message_content"); });
3143
+ };
3144
+ DocumentGridComponent.prototype.listDocuments = function () {
3145
+ var _this = this;
3146
+ this.documentService.list({
3147
+ filterQuery: "schedulingId eq '" + this.agenda.id + "'"
3148
+ })
3149
+ .subscribe(function (contents) {
3150
+ if (contents.totalElements > 0) {
3151
+ _this.gridData = contents.contents;
3152
+ _this.documentTotalRecords = contents.totalElements;
3153
+ }
3154
+ else {
3155
+ _this.disabled = true;
3156
+ _this.documentTotalRecords = _this.gridData.length;
3157
+ }
3158
+ _this.loading = false;
3159
+ });
3160
+ };
3161
+ DocumentGridComponent.prototype.getGridColumns = function () {
3162
+ return [
3163
+ { field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
3164
+ { field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
3165
+ { field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
3166
+ { field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
3167
+ { field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
3168
+ { field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
3169
+ { field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
3170
+ { field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
3171
+ ];
3172
+ };
3173
+ DocumentGridComponent.prototype.message = function (severity, summary, detail) {
3174
+ this.messageService.add({
3175
+ severity: severity,
3176
+ summary: this.translate.instant(summary),
3177
+ detail: this.translate.instant(detail),
3178
+ });
3179
+ };
3180
+ __decorate([
3181
+ Input(),
3182
+ __metadata("design:type", Object)
3183
+ ], DocumentGridComponent.prototype, "agenda", void 0);
3184
+ __decorate([
3185
+ Output(),
3186
+ __metadata("design:type", Boolean)
3187
+ ], DocumentGridComponent.prototype, "visibleInvoiceKey", void 0);
3188
+ __decorate([
3189
+ Output(),
3190
+ __metadata("design:type", Boolean)
3191
+ ], DocumentGridComponent.prototype, "visibleDocumentRegister", void 0);
3192
+ __decorate([
3193
+ Output(),
3194
+ __metadata("design:type", EventEmitter)
3195
+ ], DocumentGridComponent.prototype, "viewDocument", void 0);
3196
+ __decorate([
3197
+ ViewChild("documentTable"),
3198
+ __metadata("design:type", Table)
3199
+ ], DocumentGridComponent.prototype, "table", void 0);
3200
+ __decorate([
3201
+ ViewChild("customTemplate"),
3202
+ __metadata("design:type", TemplateRef)
3203
+ ], DocumentGridComponent.prototype, "customTemplate", void 0);
3204
+ __decorate([
3205
+ ViewChild("customFilterFields"),
3206
+ __metadata("design:type", TemplateRef)
3207
+ ], DocumentGridComponent.prototype, "customFilterFields", void 0);
3208
+ __decorate([
3209
+ ViewChild("customGridColgroup"),
3210
+ __metadata("design:type", TemplateRef)
3211
+ ], DocumentGridComponent.prototype, "customGridColgroup", void 0);
3212
+ __decorate([
3213
+ ViewChild("customGridHeader"),
3214
+ __metadata("design:type", TemplateRef)
3215
+ ], DocumentGridComponent.prototype, "customGridHeader", void 0);
3216
+ __decorate([
3217
+ ViewChild("customGridBody"),
3218
+ __metadata("design:type", TemplateRef)
3219
+ ], DocumentGridComponent.prototype, "customGridBody", void 0);
3220
+ DocumentGridComponent = __decorate([
3221
+ Component({
3222
+ selector: 'document-grid',
3223
+ 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",
3224
+ 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}"]
3225
+ }),
3226
+ __metadata("design:paramtypes", [TranslateService,
3227
+ DocumentService,
3228
+ MessageService])
3229
+ ], DocumentGridComponent);
3230
+ return DocumentGridComponent;
3231
+ }());
3232
+
3233
+ var moment$4 = _moment;
3234
+ var Document = /** @class */ (function () {
3235
+ function Document() {
3236
+ }
3237
+ Document.fromDto = function (documentDto, originEntity) {
3238
+ var model = __assign({}, documentDto);
3239
+ model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
3240
+ model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
3241
+ var lookupSeparator = " - ";
3242
+ var displayFields = [
3243
+ "id",
3244
+ "schedulingId",
3245
+ "invoiceKey",
3246
+ "invoiceNumber",
3247
+ "invoiceSerialNumber",
3248
+ "systemIntegration",
3249
+ "logistcUnitName",
3250
+ "logistcUnitDocument",
3251
+ "ownerName",
3252
+ "ownerDocument",
3253
+ "partnerName",
3254
+ "partnerDocument",
3255
+ "notes",
3256
+ "orderReceivingCode",
3257
+ "createdBy",
3258
+ "createdDate",
3259
+ "lastModifiedBy",
3260
+ "lastModifiedDate",
3261
+ ];
3262
+ model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
3263
+ return model;
3264
+ };
3265
+ Document.toDto = function (document, originEntity) {
3266
+ var dto = __assign({}, document);
3267
+ dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
3268
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
3269
+ return dto;
3270
+ };
3271
+ return Document;
3272
+ }());
3273
+
2998
3274
  var EntityService$1 = /** @class */ (function () {
2999
3275
  function EntityService(http, messageService, entityUrl, actionsUrl) {
3000
3276
  this.http = http;
@@ -3089,9 +3365,349 @@ var EntityService$1 = /** @class */ (function () {
3089
3365
  return EntityService;
3090
3366
  }());
3091
3367
 
3368
+ var EntityService$2 = /** @class */ (function (_super) {
3369
+ __extends(EntityService, _super);
3370
+ function EntityService() {
3371
+ return _super !== null && _super.apply(this, arguments) || this;
3372
+ }
3373
+ return EntityService;
3374
+ }(EntityService$1));
3375
+
3376
+ var AgendaService = /** @class */ (function (_super) {
3377
+ __extends(AgendaService, _super);
3378
+ function AgendaService(http, messageService) {
3379
+ var _this = _super.call(this, http, messageService, 'yms/agenda/entities/agenda', '') || this;
3380
+ _this.http = http;
3381
+ _this.messageService = messageService;
3382
+ return _this;
3383
+ }
3384
+ AgendaService.ngInjectableDef = defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(inject(HttpClient), inject(MessageService$1)); }, token: AgendaService, providedIn: "root" });
3385
+ AgendaService = __decorate([
3386
+ Injectable({ providedIn: 'root' }),
3387
+ __metadata("design:paramtypes", [HttpClient, MessageService$1])
3388
+ ], AgendaService);
3389
+ return AgendaService;
3390
+ }(EntityService$2));
3391
+
3392
+ var RegisterDocumentComponent = /** @class */ (function () {
3393
+ function RegisterDocumentComponent(fb, messageService, translateService, agendaService) {
3394
+ this.fb = fb;
3395
+ this.messageService = messageService;
3396
+ this.translateService = translateService;
3397
+ this.agendaService = agendaService;
3398
+ this.document = new EventEmitter();
3399
+ this.visible = new EventEmitter();
3400
+ this.visibleChange = new EventEmitter();
3401
+ }
3402
+ RegisterDocumentComponent.prototype.ngOnInit = function () {
3403
+ this.getFormGroup();
3404
+ };
3405
+ RegisterDocumentComponent.prototype.ngOnChanges = function () {
3406
+ this.visibilityConfig();
3407
+ };
3408
+ RegisterDocumentComponent.prototype.visibilityConfig = function () {
3409
+ if (!this.edit && this.visible) {
3410
+ this.formGroup.disable();
3411
+ this.setValuesFormGroup(this.viewDocument);
3412
+ this.setValueForPartner();
3413
+ this.hideSaveButton = true;
3414
+ return this.visible;
3415
+ }
3416
+ return this.visible;
3417
+ };
3418
+ RegisterDocumentComponent.prototype.close = function () {
3419
+ this.visibleChange.emit(false);
3420
+ };
3421
+ RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
3422
+ this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
3423
+ this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
3424
+ this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
3425
+ this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
3426
+ this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
3427
+ this.formGroup.get('notes').setValue(document.notes);
3428
+ this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
3429
+ this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
3430
+ this.formGroup.get('ownerName').setValue(document.ownerName);
3431
+ };
3432
+ RegisterDocumentComponent.prototype.setValueForPartner = function () {
3433
+ var _this = this;
3434
+ this.agendaService.get(this.agenda.id).subscribe(function (agenda) {
3435
+ _this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
3436
+ _this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
3437
+ });
3438
+ };
3439
+ RegisterDocumentComponent.prototype.getFormGroup = function () {
3440
+ this.formGroup = this.fb.group({
3441
+ invoiceKey: [undefined, Validators.required],
3442
+ schedulingId: [undefined],
3443
+ invoiceNumber: [undefined],
3444
+ invoiceSerialNumber: [undefined],
3445
+ logistcUnitName: [undefined],
3446
+ logistcUnitDocument: [undefined],
3447
+ ownerName: [undefined],
3448
+ ownerDocument: [undefined],
3449
+ partnerName: [undefined],
3450
+ partnerDocument: [undefined],
3451
+ notes: [undefined],
3452
+ orderReceivingCode: [undefined],
3453
+ });
3454
+ };
3455
+ RegisterDocumentComponent.prototype.save = function () {
3456
+ var value = this.formGroup.getRawValue();
3457
+ if (value.id === undefined) {
3458
+ if (this.agenda.id !== undefined) {
3459
+ value.schedulingId = this.agenda.id;
3460
+ }
3461
+ this.document.emit(Document.fromDto(value));
3462
+ this.successMessage();
3463
+ this.visibleChange.emit(false);
3464
+ }
3465
+ };
3466
+ RegisterDocumentComponent.prototype.successMessage = function () {
3467
+ this.messageService.add({
3468
+ severity: "success",
3469
+ summary: this.translateService.instant("saved_message_title"),
3470
+ detail: this.translateService.instant("saved_message_content"),
3471
+ });
3472
+ };
3473
+ __decorate([
3474
+ Input(),
3475
+ __metadata("design:type", Document)
3476
+ ], RegisterDocumentComponent.prototype, "viewDocument", void 0);
3477
+ __decorate([
3478
+ Input(),
3479
+ __metadata("design:type", Boolean)
3480
+ ], RegisterDocumentComponent.prototype, "edit", void 0);
3481
+ __decorate([
3482
+ Input(),
3483
+ __metadata("design:type", Agenda)
3484
+ ], RegisterDocumentComponent.prototype, "agenda", void 0);
3485
+ __decorate([
3486
+ Output(),
3487
+ __metadata("design:type", EventEmitter)
3488
+ ], RegisterDocumentComponent.prototype, "document", void 0);
3489
+ __decorate([
3490
+ Input(),
3491
+ __metadata("design:type", EventEmitter)
3492
+ ], RegisterDocumentComponent.prototype, "visible", void 0);
3493
+ __decorate([
3494
+ Output(),
3495
+ __metadata("design:type", Object)
3496
+ ], RegisterDocumentComponent.prototype, "visibleChange", void 0);
3497
+ RegisterDocumentComponent = __decorate([
3498
+ Component({
3499
+ selector: "register-document",
3500
+ 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>"
3501
+ }),
3502
+ __metadata("design:paramtypes", [FormBuilder,
3503
+ MessageService,
3504
+ TranslateService,
3505
+ AgendaService])
3506
+ ], RegisterDocumentComponent);
3507
+ return RegisterDocumentComponent;
3508
+ }());
3509
+
3510
+ var RegisterDocumentModule = /** @class */ (function () {
3511
+ function RegisterDocumentModule() {
3512
+ }
3513
+ RegisterDocumentModule = __decorate([
3514
+ NgModule({
3515
+ imports: [
3516
+ CommonModule,
3517
+ SidebarModule,
3518
+ ButtonModule,
3519
+ PanelModule,
3520
+ ConfirmDialogModule,
3521
+ TranslateModule,
3522
+ InputTextModule$1,
3523
+ ControlErrorsModule,
3524
+ InputTextareaModule,
3525
+ ReactiveFormsModule
3526
+ ],
3527
+ exports: [RegisterDocumentComponent],
3528
+ declarations: [RegisterDocumentComponent],
3529
+ providers: [DocumentService]
3530
+ })
3531
+ ], RegisterDocumentModule);
3532
+ return RegisterDocumentModule;
3533
+ }());
3534
+
3535
+ var InsertKeyComponent = /** @class */ (function () {
3536
+ function InsertKeyComponent(formBuilder, documentService, messageService, translate) {
3537
+ this.formBuilder = formBuilder;
3538
+ this.documentService = documentService;
3539
+ this.messageService = messageService;
3540
+ this.translate = translate;
3541
+ this.document = new EventEmitter();
3542
+ this.visible = new EventEmitter();
3543
+ this.visibleChange = new EventEmitter();
3544
+ }
3545
+ InsertKeyComponent.prototype.ngOnInit = function () {
3546
+ this.formGroup = this.formBuilder.group({
3547
+ key: [undefined]
3548
+ });
3549
+ };
3550
+ InsertKeyComponent.prototype.add = function () {
3551
+ this.visibleChange.emit(false);
3552
+ if (!this.formGroup.get('key').value) {
3553
+ return;
3554
+ }
3555
+ this.searchKey();
3556
+ };
3557
+ InsertKeyComponent.prototype.searchKey = function () {
3558
+ var _this = this;
3559
+ var key = {
3560
+ documentKeys: [this.formGroup.get('key').value],
3561
+ invoices: undefined,
3562
+ logistcUnitName: undefined,
3563
+ size: 0,
3564
+ offset: 0
3565
+ };
3566
+ this.documentService.findDocuments(key).subscribe(function (content) {
3567
+ if (content.totalElements < 1) {
3568
+ _this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
3569
+ return;
3570
+ }
3571
+ _this.document.emit(content.contents[0]);
3572
+ _this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
3573
+ _this.formGroup.reset();
3574
+ });
3575
+ };
3576
+ InsertKeyComponent.prototype.message = function (success, header, description) {
3577
+ this.messageService.add({
3578
+ severity: success,
3579
+ summary: this.translate.instant(header),
3580
+ detail: this.translate.instant(description),
3581
+ });
3582
+ };
3583
+ InsertKeyComponent.prototype.cancel = function () {
3584
+ this.visibleChange.emit(false);
3585
+ };
3586
+ __decorate([
3587
+ Output(),
3588
+ __metadata("design:type", EventEmitter)
3589
+ ], InsertKeyComponent.prototype, "document", void 0);
3590
+ __decorate([
3591
+ Input(),
3592
+ __metadata("design:type", EventEmitter)
3593
+ ], InsertKeyComponent.prototype, "visible", void 0);
3594
+ __decorate([
3595
+ Output(),
3596
+ __metadata("design:type", Object)
3597
+ ], InsertKeyComponent.prototype, "visibleChange", void 0);
3598
+ InsertKeyComponent = __decorate([
3599
+ Component({
3600
+ selector: "insert-key",
3601
+ 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>",
3602
+ 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}"]
3603
+ }),
3604
+ __metadata("design:paramtypes", [FormBuilder,
3605
+ DocumentService,
3606
+ MessageService,
3607
+ TranslateService])
3608
+ ], InsertKeyComponent);
3609
+ return InsertKeyComponent;
3610
+ }());
3611
+
3612
+ var InsertKeyModule = /** @class */ (function () {
3613
+ function InsertKeyModule() {
3614
+ }
3615
+ InsertKeyModule = __decorate([
3616
+ NgModule({
3617
+ imports: [
3618
+ CommonModule,
3619
+ ReactiveFormsModule,
3620
+ ButtonModule,
3621
+ TranslateModule,
3622
+ DialogModule,
3623
+ InputTextModule$1
3624
+ ],
3625
+ exports: [InsertKeyComponent],
3626
+ declarations: [InsertKeyComponent]
3627
+ })
3628
+ ], InsertKeyModule);
3629
+ return InsertKeyModule;
3630
+ }());
3631
+
3632
+ var DocumentGridModule = /** @class */ (function () {
3633
+ function DocumentGridModule() {
3634
+ }
3635
+ DocumentGridModule = __decorate([
3636
+ NgModule({
3637
+ declarations: [DocumentGridComponent],
3638
+ entryComponents: [DocumentGridComponent],
3639
+ exports: [DocumentGridComponent],
3640
+ imports: [
3641
+ CommonModule,
3642
+ TranslateModule,
3643
+ ButtonModule,
3644
+ PanelModule,
3645
+ TableModule,
3646
+ RegisterDocumentModule,
3647
+ InsertKeyModule,
3648
+ ButtonModule$1,
3649
+ ComponentsModule,
3650
+ EmptyStateModule
3651
+ ],
3652
+ })
3653
+ ], DocumentGridModule);
3654
+ return DocumentGridModule;
3655
+ }());
3656
+
3657
+ var WmsModule = /** @class */ (function () {
3658
+ function WmsModule(dispatcher) {
3659
+ dispatcher.dispatch(FormWmsComponent);
3660
+ }
3661
+ WmsModule = __decorate([
3662
+ NgModule({
3663
+ declarations: [FormWmsComponent],
3664
+ entryComponents: [FormWmsComponent],
3665
+ exports: [FormWmsComponent],
3666
+ imports: [
3667
+ IntegrationModule,
3668
+ DocumentGridModule,
3669
+ CommonModule,
3670
+ TranslateModule,
3671
+ FormsModule,
3672
+ ButtonModule,
3673
+ SharedModule,
3674
+ CardModule,
3675
+ ButtonModule$1,
3676
+ ReactiveFormsModule,
3677
+ SharedModule$1,
3678
+ CustomFieldsModule,
3679
+ ControlErrorsModule,
3680
+ DialogModule,
3681
+ EmptyStateModule,
3682
+ DynamicFormModule,
3683
+ TokenListModule,
3684
+ PanelModule,
3685
+ InputTextModule$1,
3686
+ DropdownModule,
3687
+ ButtonModule,
3688
+ LoadingStateModule,
3689
+ NumberInputModule,
3690
+ ConfirmDialogModule,
3691
+ LocaleModule,
3692
+ PermissionsModule,
3693
+ DynamicDialogModule,
3694
+ TableModule,
3695
+ TabViewModule,
3696
+ CalendarModule,
3697
+ ],
3698
+ providers: [
3699
+ FieldCustomizationService,
3700
+ FocusService
3701
+ ]
3702
+ }),
3703
+ __metadata("design:paramtypes", [IntegrationDispatcher])
3704
+ ], WmsModule);
3705
+ return WmsModule;
3706
+ }());
3707
+
3092
3708
  var ERP_ENVIRONMENT = new InjectionToken('integration_environment');
3093
3709
 
3094
- var AgendaService = /** @class */ (function (_super) {
3710
+ var AgendaService$1 = /** @class */ (function (_super) {
3095
3711
  __extends(AgendaService, _super);
3096
3712
  function AgendaService(http, messageService, environment) {
3097
3713
  var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/agenda", environment.project.domain + "/" + environment.project.service + "/actions") || this;
@@ -3192,7 +3808,7 @@ var RecebimentoChegadaVeiculoOverride = /** @class */ (function () {
3192
3808
  RecebimentoChegadaVeiculoOverride = __decorate([
3193
3809
  Injectable(),
3194
3810
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
3195
- AgendaService,
3811
+ AgendaService$1,
3196
3812
  RecebimentoContratoService])
3197
3813
  ], RecebimentoChegadaVeiculoOverride);
3198
3814
  return RecebimentoChegadaVeiculoOverride;
@@ -3256,7 +3872,7 @@ var ExpedicaoChegadaVeiculoOverride = /** @class */ (function () {
3256
3872
  ExpedicaoChegadaVeiculoOverride = __decorate([
3257
3873
  Injectable(),
3258
3874
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
3259
- AgendaService,
3875
+ AgendaService$1,
3260
3876
  ExpedicaoService])
3261
3877
  ], ExpedicaoChegadaVeiculoOverride);
3262
3878
  return ExpedicaoChegadaVeiculoOverride;
@@ -3473,7 +4089,7 @@ var OrdemCompraService = /** @class */ (function (_super) {
3473
4089
  return OrdemCompraService;
3474
4090
  }(EntityService$1));
3475
4091
 
3476
- var moment$4 = _moment;
4092
+ var moment$5 = _moment;
3477
4093
  /*{CA:PROJECT_IMPORTS:END}*/
3478
4094
  var Empresa = /** @class */ (function () {
3479
4095
  function Empresa() {
@@ -3482,8 +4098,8 @@ var Empresa = /** @class */ (function () {
3482
4098
  /*{CA:CLASS_ATTRIBUTES:END}*/
3483
4099
  Empresa.fromDto = function (empresaDto, originEntity) {
3484
4100
  var model = __assign({}, empresaDto);
3485
- model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
3486
- model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
4101
+ model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
4102
+ model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
3487
4103
  var lookupSeparator = " - ";
3488
4104
  var displayFields = [
3489
4105
  "codigo",
@@ -3495,8 +4111,8 @@ var Empresa = /** @class */ (function () {
3495
4111
  };
3496
4112
  Empresa.toDto = function (empresa, originEntity) {
3497
4113
  var dto = __assign({}, empresa);
3498
- dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
3499
- dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
4114
+ dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
4115
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
3500
4116
  delete dto.label;
3501
4117
  return dto;
3502
4118
  };
@@ -3505,7 +4121,7 @@ var Empresa = /** @class */ (function () {
3505
4121
  /*{CA:FILE_CONTENTS:START}*/
3506
4122
  /*{CA:FILE_CONTENTS:END}*/
3507
4123
 
3508
- var moment$5 = _moment;
4124
+ var moment$6 = _moment;
3509
4125
  /*{CA:PROJECT_IMPORTS:START}*/
3510
4126
  /*{CA:PROJECT_IMPORTS:END}*/
3511
4127
  var Pessoa = /** @class */ (function () {
@@ -3515,8 +4131,8 @@ var Pessoa = /** @class */ (function () {
3515
4131
  /*{CA:CLASS_ATTRIBUTES:END}*/
3516
4132
  Pessoa.fromDto = function (pessoaDto, originEntity) {
3517
4133
  var model = __assign({}, pessoaDto);
3518
- model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
3519
- model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
4134
+ model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
4135
+ model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
3520
4136
  var lookupSeparator = " - ";
3521
4137
  var displayFields = [
3522
4138
  "codigo",
@@ -3528,8 +4144,8 @@ var Pessoa = /** @class */ (function () {
3528
4144
  };
3529
4145
  Pessoa.toDto = function (pessoa, originEntity) {
3530
4146
  var dto = __assign({}, pessoa);
3531
- dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
3532
- dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
4147
+ dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
4148
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
3533
4149
  delete dto.label;
3534
4150
  return dto;
3535
4151
  };
@@ -3538,7 +4154,7 @@ var Pessoa = /** @class */ (function () {
3538
4154
  /*{CA:FILE_CONTENTS:START}*/
3539
4155
  /*{CA:FILE_CONTENTS:END}*/
3540
4156
 
3541
- var moment$6 = _moment;
4157
+ var moment$7 = _moment;
3542
4158
  /*{CA:PROJECT_IMPORTS:START}*/
3543
4159
  /*{CA:PROJECT_IMPORTS:END}*/
3544
4160
  var PessoaJuridica = /** @class */ (function () {
@@ -3548,8 +4164,8 @@ var PessoaJuridica = /** @class */ (function () {
3548
4164
  /*{CA:CLASS_ATTRIBUTES:END}*/
3549
4165
  PessoaJuridica.fromDto = function (pessoaJuridicaDto, originEntity) {
3550
4166
  var model = __assign({}, pessoaJuridicaDto);
3551
- model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
3552
- model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
4167
+ model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
4168
+ model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
3553
4169
  var lookupSeparator = " - ";
3554
4170
  var displayFields = [
3555
4171
  "id",
@@ -3576,8 +4192,8 @@ var PessoaJuridica = /** @class */ (function () {
3576
4192
  };
3577
4193
  PessoaJuridica.toDto = function (pessoaJuridica, originEntity) {
3578
4194
  var dto = __assign({}, pessoaJuridica);
3579
- dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
3580
- dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
4195
+ dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
4196
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
3581
4197
  delete dto.label;
3582
4198
  if (originEntity !== "Pessoa" && dto.pessoa)
3583
4199
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
@@ -3588,7 +4204,7 @@ var PessoaJuridica = /** @class */ (function () {
3588
4204
  /*{CA:FILE_CONTENTS:START}*/
3589
4205
  /*{CA:FILE_CONTENTS:END}*/
3590
4206
 
3591
- var moment$7 = _moment;
4207
+ var moment$8 = _moment;
3592
4208
  /*{CA:PROJECT_IMPORTS:START}*/
3593
4209
  /*{CA:PROJECT_IMPORTS:END}*/
3594
4210
  var Pais = /** @class */ (function () {
@@ -3598,8 +4214,8 @@ var Pais = /** @class */ (function () {
3598
4214
  /*{CA:CLASS_ATTRIBUTES:END}*/
3599
4215
  Pais.fromDto = function (paisDto, originEntity) {
3600
4216
  var model = __assign({}, paisDto);
3601
- model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
3602
- model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
4217
+ model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
4218
+ model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
3603
4219
  var lookupSeparator = " - ";
3604
4220
  var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
3605
4221
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -3607,8 +4223,8 @@ var Pais = /** @class */ (function () {
3607
4223
  };
3608
4224
  Pais.toDto = function (pais, originEntity) {
3609
4225
  var dto = __assign({}, pais);
3610
- dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
3611
- dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
4226
+ dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
4227
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
3612
4228
  delete dto.label;
3613
4229
  return dto;
3614
4230
  };
@@ -3617,7 +4233,7 @@ var Pais = /** @class */ (function () {
3617
4233
  /*{CA:FILE_CONTENTS:START}*/
3618
4234
  /*{CA:FILE_CONTENTS:END}*/
3619
4235
 
3620
- var moment$8 = _moment;
4236
+ var moment$9 = _moment;
3621
4237
  /*{CA:PROJECT_IMPORTS:START}*/
3622
4238
  /*{CA:PROJECT_IMPORTS:END}*/
3623
4239
  var Estado = /** @class */ (function () {
@@ -3627,8 +4243,8 @@ var Estado = /** @class */ (function () {
3627
4243
  /*{CA:CLASS_ATTRIBUTES:END}*/
3628
4244
  Estado.fromDto = function (estadoDto, originEntity) {
3629
4245
  var model = __assign({}, estadoDto);
3630
- model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
3631
- model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
4246
+ model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
4247
+ model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
3632
4248
  var lookupSeparator = " - ";
3633
4249
  var displayFields = [
3634
4250
  "id",
@@ -3650,8 +4266,8 @@ var Estado = /** @class */ (function () {
3650
4266
  };
3651
4267
  Estado.toDto = function (estado, originEntity) {
3652
4268
  var dto = __assign({}, estado);
3653
- dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
3654
- dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
4269
+ dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
4270
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
3655
4271
  delete dto.label;
3656
4272
  if (originEntity !== "Pais" && dto.pais)
3657
4273
  dto.pais = Pais.toDto(dto.pais, "Estado");
@@ -3662,7 +4278,7 @@ var Estado = /** @class */ (function () {
3662
4278
  /*{CA:FILE_CONTENTS:START}*/
3663
4279
  /*{CA:FILE_CONTENTS:END}*/
3664
4280
 
3665
- var moment$9 = _moment;
4281
+ var moment$a = _moment;
3666
4282
  /*{CA:PROJECT_IMPORTS:START}*/
3667
4283
  /*{CA:PROJECT_IMPORTS:END}*/
3668
4284
  var Cidade = /** @class */ (function () {
@@ -3672,8 +4288,8 @@ var Cidade = /** @class */ (function () {
3672
4288
  /*{CA:CLASS_ATTRIBUTES:END}*/
3673
4289
  Cidade.fromDto = function (cidadeDto, originEntity) {
3674
4290
  var model = __assign({}, cidadeDto);
3675
- model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
3676
- model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
4291
+ model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
4292
+ model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
3677
4293
  var lookupSeparator = " - ";
3678
4294
  var displayFields = [
3679
4295
  "id",
@@ -3694,8 +4310,8 @@ var Cidade = /** @class */ (function () {
3694
4310
  };
3695
4311
  Cidade.toDto = function (cidade, originEntity) {
3696
4312
  var dto = __assign({}, cidade);
3697
- dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
3698
- dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
4313
+ dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
4314
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
3699
4315
  delete dto.label;
3700
4316
  if (originEntity !== "Estado" && dto.estado)
3701
4317
  dto.estado = Estado.toDto(dto.estado, "Cidade");
@@ -3706,14 +4322,14 @@ var Cidade = /** @class */ (function () {
3706
4322
  /*{CA:FILE_CONTENTS:START}*/
3707
4323
  /*{CA:FILE_CONTENTS:END}*/
3708
4324
 
3709
- var moment$a = _moment;
4325
+ var moment$b = _moment;
3710
4326
  var PessoaEndereco = /** @class */ (function () {
3711
4327
  function PessoaEndereco() {
3712
4328
  }
3713
4329
  PessoaEndereco.fromDto = function (pessoaEnderecoDto, originEntity) {
3714
4330
  var model = __assign({}, pessoaEnderecoDto);
3715
- model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
3716
- model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
4331
+ model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
4332
+ model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
3717
4333
  var lookupSeparator = " - ";
3718
4334
  var displayFields = [
3719
4335
  "codigo",
@@ -3729,8 +4345,8 @@ var PessoaEndereco = /** @class */ (function () {
3729
4345
  };
3730
4346
  PessoaEndereco.toDto = function (pessoaEndereco, originEntity) {
3731
4347
  var dto = __assign({}, pessoaEndereco);
3732
- dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
3733
- dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
4348
+ dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
4349
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
3734
4350
  delete dto.label;
3735
4351
  if (originEntity !== "Pessoa" && dto.pessoa)
3736
4352
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
@@ -3741,7 +4357,7 @@ var PessoaEndereco = /** @class */ (function () {
3741
4357
  return PessoaEndereco;
3742
4358
  }());
3743
4359
 
3744
- var moment$b = _moment;
4360
+ var moment$c = _moment;
3745
4361
  /*{CA:PROJECT_IMPORTS:START}*/
3746
4362
  /*{CA:PROJECT_IMPORTS:END}*/
3747
4363
  var Filial = /** @class */ (function () {
@@ -3751,8 +4367,8 @@ var Filial = /** @class */ (function () {
3751
4367
  /*{CA:CLASS_ATTRIBUTES:END}*/
3752
4368
  Filial.fromDto = function (filialDto, originEntity) {
3753
4369
  var model = __assign({}, filialDto);
3754
- model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
3755
- model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
4370
+ model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
4371
+ model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
3756
4372
  var lookupSeparator = " - ";
3757
4373
  var displayFields = [
3758
4374
  "codigo",
@@ -3770,8 +4386,8 @@ var Filial = /** @class */ (function () {
3770
4386
  };
3771
4387
  Filial.toDto = function (filial, originEntity) {
3772
4388
  var dto = __assign({}, filial);
3773
- dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
3774
- dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
4389
+ dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
4390
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
3775
4391
  delete dto.label;
3776
4392
  if (originEntity !== "Empresa" && dto.empresa)
3777
4393
  dto.empresa = Empresa.toDto(dto.empresa, "Filial");
@@ -3786,14 +4402,14 @@ var Filial = /** @class */ (function () {
3786
4402
  /*{CA:FILE_CONTENTS:START}*/
3787
4403
  /*{CA:FILE_CONTENTS:END}*/
3788
4404
 
3789
- var moment$c = _moment;
4405
+ var moment$d = _moment;
3790
4406
  var OrdemCompra = /** @class */ (function () {
3791
4407
  function OrdemCompra() {
3792
4408
  }
3793
4409
  OrdemCompra.fromDto = function (ordemCompraDto, originEntity) {
3794
4410
  var model = __assign({}, ordemCompraDto);
3795
- model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
3796
- model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
4411
+ model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
4412
+ model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
3797
4413
  var lookupSeparator = " - ";
3798
4414
  var displayFields = [
3799
4415
  "codigo",
@@ -3809,8 +4425,8 @@ var OrdemCompra = /** @class */ (function () {
3809
4425
  };
3810
4426
  OrdemCompra.toDto = function (ordemCompra, originEntity) {
3811
4427
  var dto = __assign({}, ordemCompra);
3812
- dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
3813
- dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
4428
+ dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
4429
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
3814
4430
  delete dto.label;
3815
4431
  if (originEntity !== "Empresa" && dto.empresa)
3816
4432
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -3821,7 +4437,7 @@ var OrdemCompra = /** @class */ (function () {
3821
4437
  return OrdemCompra;
3822
4438
  }());
3823
4439
 
3824
- var moment$d = _moment;
4440
+ var moment$e = _moment;
3825
4441
  var OrdemCompraFormComponent = /** @class */ (function () {
3826
4442
  function OrdemCompraFormComponent(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
3827
4443
  this.dialogRef = dialogRef;
@@ -3900,7 +4516,7 @@ var OrdemCompraFormComponent = /** @class */ (function () {
3900
4516
  if (filial && filial.empresa && filial.empresa.id) {
3901
4517
  filter.empresaId = filial.empresa.id;
3902
4518
  }
3903
- filter.dataEmissao = filter.dataEmissao && moment$d(filter.dataEmissao).format("YYYY-MM-DD");
4519
+ filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
3904
4520
  var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
3905
4521
  this.ordemCompraService
3906
4522
  .listOrdensCompra(__assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, ordensCompraSelecionados: this.ordensCompra, pagina: {
@@ -4147,7 +4763,7 @@ var NotaFormComponent = /** @class */ (function () {
4147
4763
  this.removeErrorChaveNota();
4148
4764
  this.loading = true;
4149
4765
  this.notaValidatorService.pesquisarDocumentoValidaNotaEmUso({
4150
- chaveDocumento: (chaveNotaFiscal || "").trim(),
4766
+ chaveDocumento: (chaveNotaFiscal || "").replace(/\s/g, ""),
4151
4767
  filialId: this.filialId
4152
4768
  })
4153
4769
  .pipe(takeUntil(this.unsubscribe$), finalize(function () { return _this.loading = false; }))
@@ -4209,7 +4825,7 @@ var NotaFormComponent = /** @class */ (function () {
4209
4825
  };
4210
4826
  NotaFormComponent = __decorate([
4211
4827
  Component({
4212
- template: "<form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\" *sLoadingState=\"loading\">\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"chaveNotaFiscal\" (blur)=\"onBlurNotaFiscal()\">\n <s-control-errors [control]=\"formGroup.controls.chaveNotaFiscal\" [errorMessages]=\"{ errorChaveNota: 'yms.erp.produto_nota_error_detail' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <label for=\"serieNotaFiscal\">{{'yms.erp.recebimento_serie_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"serieNotaFiscal\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"serieLegalNotaFiscal\">{{'yms.erp.recebimento_serie_legal_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"serieLegalNotaFiscal\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"numeroNotaFiscal\">{{'yms.erp.recebimento_numero_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"numeroNotaFiscal\">\n </div>\n </div>\n\n <s-control-errors [control]=\"formGroup\" [errorMessages]=\"{ erroMultiplosCampos: 'yms.erp.nota_fiscal_no_value' | translate }\"></s-control-errors>\n\n <s-button label=\"Cancelar\" (onClick)=\"close()\" priority=\"link\"></s-button>\n <s-button label=\"Salvar\" [disabled]=\"botaoDesabilitado\" (onClick)=\"save()\"></s-button>\n</form>\n\n<p-confirmDialog appendTo=\"body\"></p-confirmDialog>",
4828
+ template: "<form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\" *sLoadingState=\"loading\">\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input\n id=\"chaveNotaFiscal\"\n trim\n pInputText\n type=\"text\"\n formControlName=\"chaveNotaFiscal\"\n (blur)=\"onBlurNotaFiscal()\"\n >\n <s-control-errors [control]=\"formGroup.controls.chaveNotaFiscal\" [errorMessages]=\"{ errorChaveNota: 'yms.erp.produto_nota_error_detail' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <label for=\"serieNotaFiscal\">{{'yms.erp.recebimento_serie_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"serieNotaFiscal\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"serieLegalNotaFiscal\">{{'yms.erp.recebimento_serie_legal_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"serieLegalNotaFiscal\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"numeroNotaFiscal\">{{'yms.erp.recebimento_numero_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"numeroNotaFiscal\">\n </div>\n </div>\n\n <s-control-errors [control]=\"formGroup\" [errorMessages]=\"{ erroMultiplosCampos: 'yms.erp.nota_fiscal_no_value' | translate }\"></s-control-errors>\n\n <s-button label=\"Cancelar\" (onClick)=\"close()\" priority=\"link\"></s-button>\n <s-button label=\"Salvar\" [disabled]=\"botaoDesabilitado\" (onClick)=\"save()\"></s-button>\n</form>\n\n<p-confirmDialog appendTo=\"body\"></p-confirmDialog>",
4213
4829
  providers: [ConfirmationService]
4214
4830
  }),
4215
4831
  __metadata("design:paramtypes", [FormBuilder,
@@ -4224,6 +4840,44 @@ var NotaFormComponent = /** @class */ (function () {
4224
4840
  return NotaFormComponent;
4225
4841
  }());
4226
4842
 
4843
+ var TrimDirective = /** @class */ (function () {
4844
+ function TrimDirective(elementRef) {
4845
+ this.elementRef = elementRef;
4846
+ }
4847
+ TrimDirective.prototype.onBlur = function () {
4848
+ var value = this.elementRef.nativeElement.value;
4849
+ if (value) {
4850
+ this.elementRef.nativeElement.value = value.replace(/\s/g, "");
4851
+ }
4852
+ };
4853
+ __decorate([
4854
+ HostListener('blur'),
4855
+ __metadata("design:type", Function),
4856
+ __metadata("design:paramtypes", []),
4857
+ __metadata("design:returntype", void 0)
4858
+ ], TrimDirective.prototype, "onBlur", null);
4859
+ TrimDirective = __decorate([
4860
+ Directive({
4861
+ selector: '[trim]',
4862
+ }),
4863
+ __metadata("design:paramtypes", [ElementRef])
4864
+ ], TrimDirective);
4865
+ return TrimDirective;
4866
+ }());
4867
+
4868
+ var DirectivesModule = /** @class */ (function () {
4869
+ function DirectivesModule() {
4870
+ }
4871
+ DirectivesModule = __decorate([
4872
+ NgModule({
4873
+ imports: [CommonModule],
4874
+ declarations: [TrimDirective],
4875
+ exports: [TrimDirective]
4876
+ })
4877
+ ], DirectivesModule);
4878
+ return DirectivesModule;
4879
+ }());
4880
+
4227
4881
  var NotaFormModule = /** @class */ (function () {
4228
4882
  function NotaFormModule() {
4229
4883
  }
@@ -4238,7 +4892,8 @@ var NotaFormModule = /** @class */ (function () {
4238
4892
  ControlErrorsModule,
4239
4893
  TranslateModule,
4240
4894
  LoadingStateModule,
4241
- ConfirmDialogModule$1
4895
+ ConfirmDialogModule$1,
4896
+ DirectivesModule
4242
4897
  ],
4243
4898
  declarations: [NotaFormComponent],
4244
4899
  entryComponents: [NotaFormComponent]
@@ -4264,7 +4919,7 @@ var AgendaModule = /** @class */ (function () {
4264
4919
  ]),
4265
4920
  ],
4266
4921
  providers: [
4267
- AgendaService,
4922
+ AgendaService$1,
4268
4923
  ],
4269
4924
  declarations: [
4270
4925
  /*{CA:MODULE_DECLARATIONS:START}*/
@@ -6131,13 +6786,13 @@ var DevolucaoChegadaVeiculoOverride = /** @class */ (function () {
6131
6786
  DevolucaoChegadaVeiculoOverride = __decorate([
6132
6787
  Injectable(),
6133
6788
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
6134
- AgendaService,
6789
+ AgendaService$1,
6135
6790
  DevolucaoService])
6136
6791
  ], DevolucaoChegadaVeiculoOverride);
6137
6792
  return DevolucaoChegadaVeiculoOverride;
6138
6793
  }());
6139
6794
 
6140
- var moment$e = _moment;
6795
+ var moment$f = _moment;
6141
6796
  /*{CA:PROJECT_IMPORTS:START}*/
6142
6797
  /*{CA:PROJECT_IMPORTS:END}*/
6143
6798
  var UnidadeMedida = /** @class */ (function () {
@@ -6147,8 +6802,8 @@ var UnidadeMedida = /** @class */ (function () {
6147
6802
  /*{CA:CLASS_ATTRIBUTES:END}*/
6148
6803
  UnidadeMedida.fromDto = function (unidadeMedidaDto, originEntity) {
6149
6804
  var model = __assign({}, unidadeMedidaDto);
6150
- model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
6151
- model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
6805
+ model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
6806
+ model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
6152
6807
  var lookupSeparator = " - ";
6153
6808
  var displayFields = [
6154
6809
  "id",
@@ -6165,8 +6820,8 @@ var UnidadeMedida = /** @class */ (function () {
6165
6820
  };
6166
6821
  UnidadeMedida.toDto = function (unidadeMedida, originEntity) {
6167
6822
  var dto = __assign({}, unidadeMedida);
6168
- dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
6169
- dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
6823
+ dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
6824
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
6170
6825
  delete dto.label;
6171
6826
  return dto;
6172
6827
  };
@@ -6175,7 +6830,7 @@ var UnidadeMedida = /** @class */ (function () {
6175
6830
  /*{CA:FILE_CONTENTS:START}*/
6176
6831
  /*{CA:FILE_CONTENTS:END}*/
6177
6832
 
6178
- var moment$f = _moment;
6833
+ var moment$g = _moment;
6179
6834
  /*{CA:PROJECT_IMPORTS:START}*/
6180
6835
  /*{CA:PROJECT_IMPORTS:END}*/
6181
6836
  var Royalty = /** @class */ (function () {
@@ -6185,8 +6840,8 @@ var Royalty = /** @class */ (function () {
6185
6840
  /*{CA:CLASS_ATTRIBUTES:END}*/
6186
6841
  Royalty.fromDto = function (royaltyDto, originEntity) {
6187
6842
  var model = __assign({}, royaltyDto);
6188
- model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
6189
- model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
6843
+ model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
6844
+ model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
6190
6845
  var lookupSeparator = " - ";
6191
6846
  var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
6192
6847
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -6196,8 +6851,8 @@ var Royalty = /** @class */ (function () {
6196
6851
  };
6197
6852
  Royalty.toDto = function (royalty, originEntity) {
6198
6853
  var dto = __assign({}, royalty);
6199
- dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
6200
- dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
6854
+ dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
6855
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
6201
6856
  delete dto.label;
6202
6857
  if (originEntity !== "Empresa" && dto.empresa)
6203
6858
  dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
@@ -6208,7 +6863,7 @@ var Royalty = /** @class */ (function () {
6208
6863
  /*{CA:FILE_CONTENTS:START}*/
6209
6864
  /*{CA:FILE_CONTENTS:END}*/
6210
6865
 
6211
- var moment$g = _moment;
6866
+ var moment$h = _moment;
6212
6867
  var FamiliaProduto = /** @class */ (function () {
6213
6868
  function FamiliaProduto() {
6214
6869
  }
@@ -6217,9 +6872,9 @@ var FamiliaProduto = /** @class */ (function () {
6217
6872
  return familiaProdutoDto;
6218
6873
  }
6219
6874
  var model = __assign({}, familiaProdutoDto);
6220
- model.createdDate = model.codigo && moment$g(model.createdDate).toDate();
6221
- model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
6222
- model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
6875
+ model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
6876
+ model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
6877
+ model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
6223
6878
  var lookupSeparator = " - ";
6224
6879
  var displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
6225
6880
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -6229,8 +6884,8 @@ var FamiliaProduto = /** @class */ (function () {
6229
6884
  };
6230
6885
  FamiliaProduto.toDto = function (familiaProduto, originEntity) {
6231
6886
  var dto = __assign({}, familiaProduto);
6232
- dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
6233
- dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
6887
+ dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
6888
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
6234
6889
  delete dto.label;
6235
6890
  if (originEntity !== "Empresa" && dto.empresa)
6236
6891
  dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
@@ -6239,7 +6894,7 @@ var FamiliaProduto = /** @class */ (function () {
6239
6894
  return FamiliaProduto;
6240
6895
  }());
6241
6896
 
6242
- var moment$h = _moment;
6897
+ var moment$i = _moment;
6243
6898
  var Produto = /** @class */ (function () {
6244
6899
  function Produto() {
6245
6900
  this.produtoMisto = false;
@@ -6247,8 +6902,8 @@ var Produto = /** @class */ (function () {
6247
6902
  }
6248
6903
  Produto.fromDto = function (produtoDto, originEntity) {
6249
6904
  var model = __assign({}, produtoDto);
6250
- model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
6251
- model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
6905
+ model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
6906
+ model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
6252
6907
  var lookupSeparator = " - ";
6253
6908
  var displayFields = [
6254
6909
  "codigo",
@@ -6269,8 +6924,8 @@ var Produto = /** @class */ (function () {
6269
6924
  };
6270
6925
  Produto.toDto = function (produto, originEntity) {
6271
6926
  var dto = __assign({}, produto);
6272
- dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
6273
- dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
6927
+ dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
6928
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
6274
6929
  delete dto.label;
6275
6930
  if (originEntity !== "Empresa" && dto.empresa)
6276
6931
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -6287,7 +6942,7 @@ var Produto = /** @class */ (function () {
6287
6942
  return Produto;
6288
6943
  }());
6289
6944
 
6290
- var moment$i = _moment;
6945
+ var moment$j = _moment;
6291
6946
  /*{CA:PROJECT_IMPORTS:START}*/
6292
6947
  /*{CA:PROJECT_IMPORTS:END}*/
6293
6948
  var Derivacao = /** @class */ (function () {
@@ -6297,8 +6952,8 @@ var Derivacao = /** @class */ (function () {
6297
6952
  /*{CA:CLASS_ATTRIBUTES:END}*/
6298
6953
  Derivacao.fromDto = function (derivacaoDto, originEntity) {
6299
6954
  var model = __assign({}, derivacaoDto);
6300
- model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
6301
- model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
6955
+ model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
6956
+ model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
6302
6957
  var lookupSeparator = " - ";
6303
6958
  var displayFields = ["codigo", "descricao"];
6304
6959
  model.label = getLookupLabel(model, displayFields, lookupSeparator);
@@ -6310,8 +6965,8 @@ var Derivacao = /** @class */ (function () {
6310
6965
  };
6311
6966
  Derivacao.toDto = function (derivacao, originEntity) {
6312
6967
  var dto = __assign({}, derivacao);
6313
- dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
6314
- dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
6968
+ dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
6969
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
6315
6970
  delete dto.label;
6316
6971
  if (originEntity !== "Empresa" && dto.empresa)
6317
6972
  dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
@@ -6324,7 +6979,7 @@ var Derivacao = /** @class */ (function () {
6324
6979
  /*{CA:FILE_CONTENTS:START}*/
6325
6980
  /*{CA:FILE_CONTENTS:END}*/
6326
6981
 
6327
- var moment$j = _moment;
6982
+ var moment$k = _moment;
6328
6983
  /*{CA:PROJECT_IMPORTS:START}*/
6329
6984
  /*{CA:PROJECT_IMPORTS:END}*/
6330
6985
  var Transportadora = /** @class */ (function () {
@@ -6334,8 +6989,8 @@ var Transportadora = /** @class */ (function () {
6334
6989
  /*{CA:CLASS_ATTRIBUTES:END}*/
6335
6990
  Transportadora.fromDto = function (transportadoraDto, originEntity) {
6336
6991
  var model = __assign({}, transportadoraDto);
6337
- model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
6338
- model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
6992
+ model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
6993
+ model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
6339
6994
  var lookupSeparator = " - ";
6340
6995
  var displayFields = [
6341
6996
  "codigo", "pessoa.nome", "pessoa.cpfCnpj"
@@ -6349,8 +7004,8 @@ var Transportadora = /** @class */ (function () {
6349
7004
  };
6350
7005
  Transportadora.toDto = function (transportadora, originEntity) {
6351
7006
  var dto = __assign({}, transportadora);
6352
- dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
6353
- dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
7007
+ dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
7008
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
6354
7009
  delete dto.label;
6355
7010
  if (originEntity !== "Pessoa" && dto.pessoa)
6356
7011
  dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
@@ -6363,7 +7018,7 @@ var Transportadora = /** @class */ (function () {
6363
7018
  /*{CA:FILE_CONTENTS:START}*/
6364
7019
  /*{CA:FILE_CONTENTS:END}*/
6365
7020
 
6366
- var moment$k = _moment;
7021
+ var moment$l = _moment;
6367
7022
  /*{CA:PROJECT_IMPORTS:START}*/
6368
7023
  /*{CA:PROJECT_IMPORTS:END}*/
6369
7024
  var Devolucao = /** @class */ (function () {
@@ -6373,8 +7028,8 @@ var Devolucao = /** @class */ (function () {
6373
7028
  /*{CA:CLASS_ATTRIBUTES:END}*/
6374
7029
  Devolucao.fromDto = function (devolucaoDto, originEntity) {
6375
7030
  var model = __assign({}, devolucaoDto);
6376
- model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
6377
- model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
7031
+ model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
7032
+ model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
6378
7033
  var lookupSeparator = " - ";
6379
7034
  var displayFields = [
6380
7035
  ''
@@ -6398,8 +7053,8 @@ var Devolucao = /** @class */ (function () {
6398
7053
  };
6399
7054
  Devolucao.toDto = function (devolucao, originEntity) {
6400
7055
  var dto = __assign({}, devolucao);
6401
- dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
6402
- dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
7056
+ dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
7057
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
6403
7058
  delete dto.label;
6404
7059
  if (originEntity !== "Pessoa" && dto.fornecedor)
6405
7060
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
@@ -7096,7 +7751,7 @@ var DevolucaoFormComponent = /** @class */ (function () {
7096
7751
  ActivatedRoute,
7097
7752
  DevolucaoChegadaVeiculoOverride,
7098
7753
  ConfirmationService,
7099
- AgendaService,
7754
+ AgendaService$1,
7100
7755
  ErpProcessService,
7101
7756
  ErpFormConfigService,
7102
7757
  HasChangeService])
@@ -7142,7 +7797,7 @@ var DevolucaoInfoComponent = /** @class */ (function () {
7142
7797
 
7143
7798
  /*{CA:PACKAGE_IMPORTS:START}*/
7144
7799
  /*{CA:PACKAGE_IMPORTS:END}*/
7145
- var moment$l = _moment;
7800
+ var moment$m = _moment;
7146
7801
  /*{CA:PROJECT_IMPORTS:START}*/
7147
7802
  /*{CA:PROJECT_IMPORTS:END}*/
7148
7803
  var Expedicao = /** @class */ (function () {
@@ -7152,8 +7807,8 @@ var Expedicao = /** @class */ (function () {
7152
7807
  /*{CA:CLASS_ATTRIBUTES:END}*/
7153
7808
  Expedicao.fromDto = function (expedicaoDto, originEntity) {
7154
7809
  var model = __assign({}, expedicaoDto);
7155
- model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
7156
- model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
7810
+ model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
7811
+ model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
7157
7812
  var lookupSeparator = " - ";
7158
7813
  var displayFields = [
7159
7814
  "id",
@@ -7192,8 +7847,8 @@ var Expedicao = /** @class */ (function () {
7192
7847
  };
7193
7848
  Expedicao.toDto = function (expedicao, originEntity) {
7194
7849
  var dto = __assign({}, expedicao);
7195
- dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
7196
- dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
7850
+ dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
7851
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
7197
7852
  delete dto.label;
7198
7853
  if (originEntity !== "Pessoa" && dto.clienteFaturamento)
7199
7854
  dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
@@ -7210,7 +7865,7 @@ var Expedicao = /** @class */ (function () {
7210
7865
  return Expedicao;
7211
7866
  }());
7212
7867
 
7213
- var moment$m = _moment;
7868
+ var moment$n = _moment;
7214
7869
  var ExpedicaoFormComponent = /** @class */ (function () {
7215
7870
  function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
7216
7871
  this.expedicaoService = expedicaoService;
@@ -7760,11 +8415,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
7760
8415
  if (typeof value == "number")
7761
8416
  return name + " eq " + value;
7762
8417
  else if (type == FieldType.Date)
7763
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8418
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
7764
8419
  else if (type == FieldType.Time)
7765
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8420
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
7766
8421
  else if (type == FieldType.DateTime)
7767
- return name + " eq '" + moment$m(value).format() + "'";
8422
+ return name + " eq '" + moment$n(value).format() + "'";
7768
8423
  else if (type == FieldType.Enum)
7769
8424
  return name + " eq '" + value + "'";
7770
8425
  else if (type == FieldType.String)
@@ -7816,11 +8471,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
7816
8471
  if (typeof value == "number")
7817
8472
  return name + " eq " + value;
7818
8473
  else if (type == FieldType.Date)
7819
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8474
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
7820
8475
  else if (type == FieldType.Time)
7821
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8476
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
7822
8477
  else if (type == FieldType.DateTime)
7823
- return name + " eq '" + moment$m(value).format() + "'";
8478
+ return name + " eq '" + moment$n(value).format() + "'";
7824
8479
  else if (type == FieldType.Enum)
7825
8480
  return name + " eq '" + value + "'";
7826
8481
  else if (type == FieldType.String)
@@ -7947,11 +8602,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
7947
8602
  if (typeof value == "number")
7948
8603
  return name + " eq " + value;
7949
8604
  else if (type == FieldType.Date)
7950
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8605
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
7951
8606
  else if (type == FieldType.Time)
7952
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8607
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
7953
8608
  else if (type == FieldType.DateTime)
7954
- return name + " eq '" + moment$m(value).format() + "'";
8609
+ return name + " eq '" + moment$n(value).format() + "'";
7955
8610
  else if (type == FieldType.String)
7956
8611
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
7957
8612
  else
@@ -8140,11 +8795,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
8140
8795
  if (typeof value == "number")
8141
8796
  return name + " eq " + value;
8142
8797
  else if (type == FieldType.Date)
8143
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8798
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
8144
8799
  else if (type == FieldType.Time)
8145
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8800
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
8146
8801
  else if (type == FieldType.DateTime)
8147
- return name + " eq '" + moment$m(value).format() + "'";
8802
+ return name + " eq '" + moment$n(value).format() + "'";
8148
8803
  else if (type == FieldType.String)
8149
8804
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
8150
8805
  else
@@ -8186,11 +8841,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
8186
8841
  if (typeof value == "number")
8187
8842
  return name + " eq " + value;
8188
8843
  else if (type == FieldType.Date)
8189
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8844
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
8190
8845
  else if (type == FieldType.Time)
8191
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8846
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
8192
8847
  else if (type == FieldType.DateTime)
8193
- return name + " eq '" + moment$m(value).format() + "'";
8848
+ return name + " eq '" + moment$n(value).format() + "'";
8194
8849
  else if (type == FieldType.Enum)
8195
8850
  return name + " eq '" + value + "'";
8196
8851
  else if (type == FieldType.String)
@@ -8677,7 +9332,7 @@ var ExpedicaoFormComponent = /** @class */ (function () {
8677
9332
  TransportadoraService,
8678
9333
  PedidoVendaService,
8679
9334
  PedidoVendaItemService,
8680
- AgendaService,
9335
+ AgendaService$1,
8681
9336
  ExpedicaoChegadaVeiculoOverride,
8682
9337
  ConfirmationService,
8683
9338
  ErpProcessService,
@@ -8958,7 +9613,7 @@ var ProcessoAvulsoChegadaVeiculoOverride = /** @class */ (function () {
8958
9613
  ProcessoAvulsoChegadaVeiculoOverride = __decorate([
8959
9614
  Injectable(),
8960
9615
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
8961
- AgendaService,
9616
+ AgendaService$1,
8962
9617
  ProcessoAvulsoService])
8963
9618
  ], ProcessoAvulsoChegadaVeiculoOverride);
8964
9619
  return ProcessoAvulsoChegadaVeiculoOverride;
@@ -9264,7 +9919,7 @@ var ProcessoAvulsoFormComponent = /** @class */ (function () {
9264
9919
  ProcessoAvulsoChegadaVeiculoOverride,
9265
9920
  TranslateService,
9266
9921
  ConfirmationService,
9267
- AgendaService,
9922
+ AgendaService$1,
9268
9923
  ErpProcessService,
9269
9924
  ErpFormConfigService,
9270
9925
  HasChangeService])
@@ -9307,7 +9962,7 @@ var ProcessoAvulsoInfoComponent = /** @class */ (function () {
9307
9962
  return ProcessoAvulsoInfoComponent;
9308
9963
  }());
9309
9964
 
9310
- var moment$n = _moment;
9965
+ var moment$o = _moment;
9311
9966
  /*{CA:PROJECT_IMPORTS:START}*/
9312
9967
  /*{CA:PROJECT_IMPORTS:END}*/
9313
9968
  var Safra = /** @class */ (function () {
@@ -9317,10 +9972,10 @@ var Safra = /** @class */ (function () {
9317
9972
  /*{CA:CLASS_ATTRIBUTES:END}*/
9318
9973
  Safra.fromDto = function (safraDto, originEntity) {
9319
9974
  var model = __assign({}, safraDto);
9320
- model.competenciaInicial = model.competenciaInicial && moment$n(model.competenciaInicial).toDate();
9321
- model.competenciaFinal = model.competenciaFinal && moment$n(model.competenciaFinal).toDate();
9322
- model.createdDate = model.createdDate && moment$n(model.createdDate).toDate();
9323
- model.lastModifiedDate = model.lastModifiedDate && moment$n(model.lastModifiedDate).toDate();
9975
+ model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
9976
+ model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
9977
+ model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
9978
+ model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
9324
9979
  var lookupSeparator = " - ";
9325
9980
  var displayFields = [
9326
9981
  "codigo",
@@ -9333,10 +9988,10 @@ var Safra = /** @class */ (function () {
9333
9988
  };
9334
9989
  Safra.toDto = function (safra, originEntity) {
9335
9990
  var dto = __assign({}, safra);
9336
- dto.competenciaInicial = dto.competenciaInicial && moment$n(dto.competenciaInicial).format("YYYY-MM-DD");
9337
- dto.competenciaFinal = dto.competenciaFinal && moment$n(dto.competenciaFinal).format("YYYY-MM-DD");
9338
- dto.createdDate = dto.createdDate && moment$n(dto.createdDate).format();
9339
- dto.lastModifiedDate = dto.lastModifiedDate && moment$n(dto.lastModifiedDate).format();
9991
+ dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
9992
+ dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
9993
+ dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
9994
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
9340
9995
  delete dto.label;
9341
9996
  if (originEntity !== "Empresa" && dto.empresa)
9342
9997
  dto.empresa = Empresa.toDto(dto.empresa, "Safra");
@@ -9349,7 +10004,7 @@ var Safra = /** @class */ (function () {
9349
10004
 
9350
10005
  /*{CA:PACKAGE_IMPORTS:START}*/
9351
10006
  /*{CA:PACKAGE_IMPORTS:END}*/
9352
- var moment$o = _moment;
10007
+ var moment$p = _moment;
9353
10008
  /*{CA:PROJECT_IMPORTS:START}*/
9354
10009
  /*{CA:PROJECT_IMPORTS:END}*/
9355
10010
  var RecebimentoOrdemCompra = /** @class */ (function () {
@@ -9359,8 +10014,8 @@ var RecebimentoOrdemCompra = /** @class */ (function () {
9359
10014
  /*{CA:CLASS_ATTRIBUTES:END}*/
9360
10015
  RecebimentoOrdemCompra.fromDto = function (recebimentoOrdemCompraDto, originEntity) {
9361
10016
  var model = __assign({}, recebimentoOrdemCompraDto);
9362
- model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
9363
- model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
10017
+ model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
10018
+ model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
9364
10019
  var lookupSeparator = " - ";
9365
10020
  var displayFields = [
9366
10021
  ''
@@ -9389,8 +10044,8 @@ var RecebimentoOrdemCompra = /** @class */ (function () {
9389
10044
  };
9390
10045
  RecebimentoOrdemCompra.toDto = function (recebimentoOrdemCompra, originEntity) {
9391
10046
  var dto = __assign({}, recebimentoOrdemCompra);
9392
- dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
9393
- dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
10047
+ dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
10048
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
9394
10049
  delete dto.label;
9395
10050
  if (originEntity !== "Agenda" && dto.agenda)
9396
10051
  dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
@@ -9453,7 +10108,7 @@ var RecebimentoOrdemCompraChegadaVeiculoOverride = /** @class */ (function () {
9453
10108
  RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
9454
10109
  Injectable(),
9455
10110
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
9456
- AgendaService,
10111
+ AgendaService$1,
9457
10112
  RecebimentoOrdemCompraService])
9458
10113
  ], RecebimentoOrdemCompraChegadaVeiculoOverride);
9459
10114
  return RecebimentoOrdemCompraChegadaVeiculoOverride;
@@ -9712,7 +10367,7 @@ var RecebimentoOrdemCompraFormComponent = /** @class */ (function () {
9712
10367
  this.mensagemBuscandoNota();
9713
10368
  this.notaValidatorService.pesquisarDocumentoValidaNotaEmUso({
9714
10369
  filialId: (this.formGroup.get("filial").value && this.formGroup.get("filial").value.id) || null,
9715
- chaveDocumento: value.trim() || ""
10370
+ chaveDocumento: value.replace(/\s/g, "") || ""
9716
10371
  }).pipe(takeUntil(this.ngUnsubscribe), finalize(function () { return _this.loading = false; })).subscribe(function (response) {
9717
10372
  _this.addNovaNota(response);
9718
10373
  });
@@ -10612,7 +11267,7 @@ var RecebimentoOrdemCompraFormComponent = /** @class */ (function () {
10612
11267
  RecebimentoOrdemCompraFormComponent = __decorate([
10613
11268
  Component({
10614
11269
  selector: 'recebimento-ordem-compra-form',
10615
- template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\">\n</p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-fluid ui-g\">\n\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{standalone: true}\" (blur)=\"onBlurChaveNotaFiscal()\">\n <!-- <input [class.ng-invalid]=\"erroChaveNota\" pInputText type=\"text\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{standalone: true}\" (blur)=\"onBlurChaveNotaFiscal()\"> -->\n <!-- <span class=\"input-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span> -->\n </div>\n\n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"filial\">{{'yms.erp.recebimento_ordem_compra_filial' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"transportadora\">{{'yms.erp.recebimento_ordem_compra_transportadora' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">\n {{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} /\n </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">\n {{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}\n </label>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\" styleClass=\"btn-erp-forms\" \n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" \n (onClick)=\"addFornecedor()\" [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\">\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\">\n </s-button>\n </p-header>\n \n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"fornecedor\">{{'yms.erp.recebimento_ordem_compra_fornecedor' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"fornecedorSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: fornecedorSearchTotalRecords }\">\n </s-lookup>\n <s-control-errors\n [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\">\n </s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"origem_mercadoria\">{{'yms.erp.recebimento_ordem_compra_mercadoria' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origem_mercadoria\" name=\"origem_mercadoria\" formControlName=\"origemMercadoria\" \n [searchFields]=\"origemMercadoriaSearchFields\" [searchGridFields]=\"origemMercadoriaSearchFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\" lookupDisplayField=\"label\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest(fornecedorForm, $event)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest(fornecedorForm, $event)\" \n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.origem_mercadoria_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: origemMercadoriaSearchTotalRecords }\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmOrdemCompra(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDaOrdemCompra($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar ordem de compra\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addOrdemCompra(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Ordens de Compra</h4>\n <p-table [value]=\"getOrdensCompra(fornecedorForm).controls\" [(selection)]=\"ordemCompraSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('ordemCompra').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Ordem {{rowData.get('ordemCompra').value.codigo}}, Filial {{rowData.get('ordemCompra').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerOrdemCompra(fornecedorForm, rowData)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n\n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </p-panel>\n </form>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"loading || disableButtonSave\">\n </s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"loading || disableButtonSave\">\n </s-button>\n </div>\n</div>",
11270
+ template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\">\n</p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-fluid ui-g\">\n\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input\n id=\"chaveNotaFiscal\"\n trim\n pInputText\n type=\"text\"\n [(ngModel)]=\"chaveNotaFiscal\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"onBlurChaveNotaFiscal()\"\n >\n <!-- <input [class.ng-invalid]=\"erroChaveNota\" pInputText type=\"text\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{standalone: true}\" (blur)=\"onBlurChaveNotaFiscal()\"> -->\n <!-- <span class=\"input-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span> -->\n </div>\n\n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"filial\">{{'yms.erp.recebimento_ordem_compra_filial' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"transportadora\">{{'yms.erp.recebimento_ordem_compra_transportadora' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">\n {{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} /\n </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">\n {{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}\n </label>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\" styleClass=\"btn-erp-forms\" \n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" \n (onClick)=\"addFornecedor()\" [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\">\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\">\n </s-button>\n </p-header>\n \n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"fornecedor\">{{'yms.erp.recebimento_ordem_compra_fornecedor' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"fornecedorSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: fornecedorSearchTotalRecords }\">\n </s-lookup>\n <s-control-errors\n [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\">\n </s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"origem_mercadoria\">{{'yms.erp.recebimento_ordem_compra_mercadoria' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origem_mercadoria\" name=\"origem_mercadoria\" formControlName=\"origemMercadoria\" \n [searchFields]=\"origemMercadoriaSearchFields\" [searchGridFields]=\"origemMercadoriaSearchFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\" lookupDisplayField=\"label\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest(fornecedorForm, $event)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest(fornecedorForm, $event)\" \n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.origem_mercadoria_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: origemMercadoriaSearchTotalRecords }\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmOrdemCompra(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDaOrdemCompra($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar ordem de compra\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addOrdemCompra(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Ordens de Compra</h4>\n <p-table [value]=\"getOrdensCompra(fornecedorForm).controls\" [(selection)]=\"ordemCompraSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('ordemCompra').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Ordem {{rowData.get('ordemCompra').value.codigo}}, Filial {{rowData.get('ordemCompra').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerOrdemCompra(fornecedorForm, rowData)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n\n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </p-panel>\n </form>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"loading || disableButtonSave\">\n </s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"loading || disableButtonSave\">\n </s-button>\n </div>\n</div>",
10616
11271
  providers: [ConfirmationService],
10617
11272
  styles: [".required-h3{font-size:1.17rem;font-weight:700}.required-h3::after{content:'*';color:#c13018;font-weight:400;margin-left:5px;font-size:14px}.error-required-message{color:#c13018;margin-top:5px;font-size:12px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.input-error{color:#c13018}.detail-pane{display:flex;flex-wrap:wrap;justify-content:flex-start}.detail-pane .detail-span{width:50%;padding:10px 0;display:flex;flex-direction:column}.detail-pane .detail-span .title{font-size:14px;opacity:.7;margin-bottom:4px}.detail-pane .detail-span .data{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nota-error{color:#c13018}"]
10618
11273
  }),
@@ -10634,7 +11289,7 @@ var RecebimentoOrdemCompraFormComponent = /** @class */ (function () {
10634
11289
  NotaValidatorService,
10635
11290
  ConfirmationService,
10636
11291
  DialogService,
10637
- AgendaService,
11292
+ AgendaService$1,
10638
11293
  ErpProcessService,
10639
11294
  ErpFormConfigService,
10640
11295
  VerificaNotafiscal,
@@ -10681,7 +11336,7 @@ var RecebimentoOrdemCompraInfoComponent = /** @class */ (function () {
10681
11336
  return RecebimentoOrdemCompraInfoComponent;
10682
11337
  }());
10683
11338
 
10684
- var moment$p = _moment;
11339
+ var moment$q = _moment;
10685
11340
  /*{CA:PROJECT_IMPORTS:START}*/
10686
11341
  /*{CA:PROJECT_IMPORTS:END}*/
10687
11342
  var ContratoCompra = /** @class */ (function () {
@@ -10691,11 +11346,11 @@ var ContratoCompra = /** @class */ (function () {
10691
11346
  /*{CA:CLASS_ATTRIBUTES:END}*/
10692
11347
  ContratoCompra.fromDto = function (contratoCompraDto, originEntity) {
10693
11348
  var model = __assign({}, contratoCompraDto);
10694
- model.dataEmissao = model.dataEmissao && moment$p(model.dataEmissao).toDate();
10695
- model.dataInicioVigencia = model.dataInicioVigencia && moment$p(model.dataInicioVigencia).toDate();
10696
- model.dataFimVigencia = model.dataFimVigencia && moment$p(model.dataFimVigencia).toDate();
10697
- model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
10698
- model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
11349
+ model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
11350
+ model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
11351
+ model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
11352
+ model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
11353
+ model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
10699
11354
  model.label = "N\u00FAmero: " + model.numero + ", Filial: " + model.filial.codigo;
10700
11355
  if (originEntity !== "Empresa" && model.empresa)
10701
11356
  model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
@@ -10711,11 +11366,11 @@ var ContratoCompra = /** @class */ (function () {
10711
11366
  };
10712
11367
  ContratoCompra.toDto = function (contratoCompra, originEntity) {
10713
11368
  var dto = __assign({}, contratoCompra);
10714
- dto.dataEmissao = dto.dataEmissao && moment$p(dto.dataEmissao).format("YYYY-MM-DD");
10715
- dto.dataInicioVigencia = dto.dataInicioVigencia && moment$p(dto.dataInicioVigencia).format("YYYY-MM-DD");
10716
- dto.dataFimVigencia = dto.dataFimVigencia && moment$p(dto.dataFimVigencia).format("YYYY-MM-DD");
10717
- dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
10718
- dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
11369
+ dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
11370
+ dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
11371
+ dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
11372
+ dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
11373
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
10719
11374
  delete dto.label;
10720
11375
  if (originEntity !== "Empresa" && dto.empresa)
10721
11376
  dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
@@ -10736,7 +11391,7 @@ var ContratoCompra = /** @class */ (function () {
10736
11391
  /*{CA:FILE_CONTENTS:START}*/
10737
11392
  /*{CA:FILE_CONTENTS:END}*/
10738
11393
 
10739
- var moment$q = _moment;
11394
+ var moment$r = _moment;
10740
11395
  /*{CA:PROJECT_IMPORTS:START}*/
10741
11396
  /*{CA:PROJECT_IMPORTS:END}*/
10742
11397
  var ContratoCompraItem = /** @class */ (function () {
@@ -10747,9 +11402,9 @@ var ContratoCompraItem = /** @class */ (function () {
10747
11402
  ContratoCompraItem.fromDto = function (contratoCompraItemDto, originEntity) {
10748
11403
  var model = __assign({}, contratoCompraItemDto);
10749
11404
  model.sku = model.sku || {};
10750
- model.dataCompetencia = model.dataCompetencia && moment$q(model.dataCompetencia).toDate();
10751
- model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
10752
- model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
11405
+ model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
11406
+ model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
11407
+ model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
10753
11408
  model.label = model.sequencia + " - " + model.sku.descricao + " - " + model.sku.codigo;
10754
11409
  if (originEntity !== "ContratoCompra" && model.contrato)
10755
11410
  model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
@@ -10759,9 +11414,9 @@ var ContratoCompraItem = /** @class */ (function () {
10759
11414
  };
10760
11415
  ContratoCompraItem.toDto = function (contratoCompraItem, originEntity) {
10761
11416
  var dto = __assign({}, contratoCompraItem);
10762
- dto.dataCompetencia = dto.dataCompetencia && moment$q(dto.dataCompetencia).format("YYYY-MM-DD");
10763
- dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
10764
- dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
11417
+ dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
11418
+ dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
11419
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
10765
11420
  delete dto.label;
10766
11421
  if (originEntity !== "ContratoCompra" && dto.contrato)
10767
11422
  dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
@@ -10774,7 +11429,7 @@ var ContratoCompraItem = /** @class */ (function () {
10774
11429
  /*{CA:FILE_CONTENTS:START}*/
10775
11430
  /*{CA:FILE_CONTENTS:END}*/
10776
11431
 
10777
- var moment$r = _moment;
11432
+ var moment$s = _moment;
10778
11433
  var ContratoFormComponent = /** @class */ (function () {
10779
11434
  function ContratoFormComponent(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
10780
11435
  this.dialogRef = dialogRef;
@@ -10868,7 +11523,7 @@ var ContratoFormComponent = /** @class */ (function () {
10868
11523
  if (filial && filial.empresa && filial.empresa.id) {
10869
11524
  filter.empresaId = filial.empresa.id;
10870
11525
  }
10871
- filter.dataEmissao = filter.dataEmissao && moment$r(filter.dataEmissao).format("YYYY-MM-DD");
11526
+ filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
10872
11527
  var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
10873
11528
  this.contratoCompraService
10874
11529
  .listContratosCompra(__assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, produtoId: (this.produto || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, contratosSelecionados: this.contratos, pagina: {
@@ -11097,14 +11752,14 @@ var Transgenia = /** @class */ (function () {
11097
11752
  return Transgenia;
11098
11753
  }());
11099
11754
 
11100
- var moment$s = _moment;
11755
+ var moment$t = _moment;
11101
11756
  var RecebimentoContrato = /** @class */ (function () {
11102
11757
  function RecebimentoContrato() {
11103
11758
  }
11104
11759
  RecebimentoContrato.fromDto = function (recebimentoDto, originEntity) {
11105
11760
  var model = __assign({}, recebimentoDto);
11106
- model.createdDate = model.createdDate && moment$s(model.createdDate).toDate();
11107
- model.lastModifiedDate = model.lastModifiedDate && moment$s(model.lastModifiedDate).toDate();
11761
+ model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
11762
+ model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
11108
11763
  var lookupSeparator = " - ";
11109
11764
  var displayFields = [
11110
11765
  "id",
@@ -11153,8 +11808,8 @@ var RecebimentoContrato = /** @class */ (function () {
11153
11808
  };
11154
11809
  RecebimentoContrato.toDto = function (recebimento, originEntity) {
11155
11810
  var dto = __assign({}, recebimento);
11156
- dto.createdDate = dto.createdDate && moment$s(dto.createdDate).format();
11157
- dto.lastModifiedDate = dto.lastModifiedDate && moment$s(dto.lastModifiedDate).format();
11811
+ dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
11812
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
11158
11813
  delete dto.label;
11159
11814
  if (originEntity !== "Pessoa" && dto.fornecedor)
11160
11815
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
@@ -11188,7 +11843,7 @@ var Situacao;
11188
11843
  Situacao["ATIVO"] = "ATIVO";
11189
11844
  })(Situacao || (Situacao = {}));
11190
11845
 
11191
- var moment$t = _moment;
11846
+ var moment$u = _moment;
11192
11847
  var RecebimentoFormComponent = /** @class */ (function () {
11193
11848
  function RecebimentoFormComponent(recebimentoService, router, route, messageService, confirmationService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, filialService, transportadoraService, pessoaEnderecoService, contratoCompraService, pessoaService, produtoService, derivacaoService, recebimentoChegadaOverride, notaValidatorService, transgeniaService, dialogService, agendaService, erpProcessService, erpFormConfigService, verificaNotaFiscal, hasChangeService, buildFormField) {
11194
11849
  var _this = this;
@@ -11529,7 +12184,7 @@ var RecebimentoFormComponent = /** @class */ (function () {
11529
12184
  this.mensagemBuscandoNota();
11530
12185
  this.notaValidatorService.pesquisarDocumentoValidaNotaEmUso({
11531
12186
  filialId: (this.formGroup.get("filial").value && this.formGroup.get("filial").value.id) || null,
11532
- chaveDocumento: value.trim()
12187
+ chaveDocumento: value.replace(/\s/g, "")
11533
12188
  }).pipe(takeUntil(this.ngUnsubscribe), finalize(function () { return _this.loading = false; })).subscribe(function (response) { return _this.addNovaNota(response); });
11534
12189
  }
11535
12190
  };
@@ -11870,11 +12525,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
11870
12525
  if (typeof value == "number")
11871
12526
  return name + " eq " + value;
11872
12527
  else if (type == FieldType.Date)
11873
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12528
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
11874
12529
  else if (type == FieldType.Time)
11875
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12530
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
11876
12531
  else if (type == FieldType.DateTime)
11877
- return name + " eq '" + moment$t(value).format() + "'";
12532
+ return name + " eq '" + moment$u(value).format() + "'";
11878
12533
  else if (type == FieldType.String)
11879
12534
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
11880
12535
  else
@@ -11913,11 +12568,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
11913
12568
  if (typeof value == "number")
11914
12569
  return name + " eq " + value;
11915
12570
  else if (type == FieldType.Date)
11916
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12571
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
11917
12572
  else if (type == FieldType.Time)
11918
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12573
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
11919
12574
  else if (type == FieldType.DateTime)
11920
- return name + " eq '" + moment$t(value).format() + "'";
12575
+ return name + " eq '" + moment$u(value).format() + "'";
11921
12576
  else if (type == FieldType.Enum)
11922
12577
  return name + " eq '" + value + "'";
11923
12578
  else if (type == FieldType.String)
@@ -11959,11 +12614,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
11959
12614
  if (typeof value == "number")
11960
12615
  return name + " eq " + value;
11961
12616
  else if (type == FieldType.Date)
11962
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12617
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
11963
12618
  else if (type == FieldType.Time)
11964
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12619
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
11965
12620
  else if (type == FieldType.DateTime)
11966
- return name + " eq '" + moment$t(value).format() + "'";
12621
+ return name + " eq '" + moment$u(value).format() + "'";
11967
12622
  else if (type == FieldType.String)
11968
12623
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
11969
12624
  else
@@ -12003,11 +12658,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
12003
12658
  if (typeof value == "number")
12004
12659
  return name + " eq " + value;
12005
12660
  else if (type == FieldType.Date)
12006
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12661
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12007
12662
  else if (type == FieldType.Time)
12008
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12663
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12009
12664
  else if (type == FieldType.DateTime)
12010
- return name + " eq '" + moment$t(value).format() + "'";
12665
+ return name + " eq '" + moment$u(value).format() + "'";
12011
12666
  else if (type == FieldType.Enum)
12012
12667
  return name + " eq '" + value + "'";
12013
12668
  else if (type == FieldType.String)
@@ -12104,11 +12759,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
12104
12759
  if (typeof value == "number")
12105
12760
  return name + " eq " + value;
12106
12761
  else if (type == FieldType.Date)
12107
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12762
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12108
12763
  else if (type == FieldType.Time)
12109
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12764
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12110
12765
  else if (type == FieldType.DateTime)
12111
- return name + " eq '" + moment$t(value).format() + "'";
12766
+ return name + " eq '" + moment$u(value).format() + "'";
12112
12767
  else if (type == FieldType.String)
12113
12768
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
12114
12769
  else
@@ -12146,11 +12801,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
12146
12801
  if (typeof value == "number")
12147
12802
  return name + " eq " + value;
12148
12803
  else if (type == FieldType.Date)
12149
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12804
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12150
12805
  else if (type == FieldType.Time)
12151
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12806
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12152
12807
  else if (type == FieldType.DateTime)
12153
- return name + " eq '" + moment$t(value).format() + "'";
12808
+ return name + " eq '" + moment$u(value).format() + "'";
12154
12809
  else if (type == FieldType.Enum)
12155
12810
  return name + " eq '" + value + "'";
12156
12811
  else if (type == FieldType.String)
@@ -12199,11 +12854,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
12199
12854
  if (typeof value == "number")
12200
12855
  return name + " eq " + value;
12201
12856
  else if (type == FieldType.Date)
12202
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12857
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12203
12858
  else if (type == FieldType.Time)
12204
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12859
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12205
12860
  else if (type == FieldType.DateTime)
12206
- return name + " eq '" + moment$t(value).format() + "'";
12861
+ return name + " eq '" + moment$u(value).format() + "'";
12207
12862
  else if (type == FieldType.Enum)
12208
12863
  return name + " eq '" + value + "'";
12209
12864
  else if (type == FieldType.String)
@@ -12954,7 +13609,7 @@ var RecebimentoFormComponent = /** @class */ (function () {
12954
13609
  RecebimentoFormComponent = __decorate([
12955
13610
  Component({
12956
13611
  selector: 'recebimento-form',
12957
- template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\"></p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"chaveNotaFiscal\">{{\"yms.erp.recebimento_chave_nota_fiscal\" | translate}}</label>\n <input [class.ng-invalid]=\"erroChaveNota\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{ standalone: true }\" type=\"text\" id=\"chaveNotaFiscal\" name=\"chaveNotaFiscal\" pInputText autocomplete=\"off\" (blur)=\"onBlurChaveNotaFiscal()\"/>\n <span class=\"nota-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span>\n </div>\n </div>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div [attr.data-hidden]=\"true\" class=\"ui-g-12 ui-md-6\">\n <label for=\"id\">{{\"yms.erp.recebimento_id\" | translate}}</label>\n <input #idFormInput type=\"text\" id=\"id\" name=\"id\" pInputText formControlName=\"id\" autocomplete=\"off\" />\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"filial\">{{\"yms.erp.filial\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\"\n (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"produto\">{{\"yms.erp.recebimento_produto\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"produto\" name=\"produto\" formControlName=\"produto\"\n [searchFields]=\"produtoSearchFields\" [searchGridFields]=\"produtoSearchGridFields\"\n [searchGridData]=\"produtoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"produtoLookupSuggestions\"\n (onLookupRequest)=\"onProdutoLookupRequest($event)\"\n (onSearchRequest)=\"onProdutoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=produtoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_produto_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: produtoSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['produto']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"derivacao\">{{\"yms.erp.recebimento_derivacao\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"derivacao\" name=\"derivacao\" formControlName=\"derivacao\"\n [searchFields]=\"derivacaoSearchFields\" [searchGridFields]=\"derivacaoSearchGridFields\"\n [searchGridData]=\"derivacaoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"derivacaoLookupSuggestions\"\n (onLookupRequest)=\"onDerivacaoLookupRequest($event)\"\n (onSearchRequest)=\"onDerivacaoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=derivacaoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_derivacao_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: derivacaoSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transportadora\">{{\"yms.erp.recebimento_transportadora\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchGridFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transgenia\">{{\"yms.erp.recebimento_transgenia\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transgenia\" name=\"transgenia\"\n formControlName=\"transgenia\" [searchFields]=\"transgeniaSearchFields\"\n [searchGridFields]=\"transgeniaSearchGridFields\"\n [searchGridData]=\"transgeniaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transgeniaLookupSuggestions\"\n (onLookupRequest)=\"onTransgeniaLookupRequest($event)\"\n (onSearchRequest)=\"onTransgeniaSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transgeniaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_transgenia_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transgeniaSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button styleClass=\"btn-erp-forms\" *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\"\n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" (onClick)=\"addFornecedor()\"\n [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedoresNotaDuplicada\">{{ erroFornecedoresNotaDuplicada }}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\" >\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\"\n >\n </s-button>\n </p-header>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"fornecedor\">{{\"yms.erp.recebimento_fornecedor\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchGridFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" \n lookupDisplayField=\"label\"\n [searchTotalRecords]=fornecedorSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: fornecedorSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"origemMercadoria\">{{\"yms.erp.recebimento_origem_mercadoria\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origemMercadoria\" name=\"origemMercadoria\"\n formControlName=\"origemMercadoria\" [searchFields]=\"origemMercadoriaSearchFields\"\n [searchGridFields]=\"origemMercadoriaSearchGridFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest($event, fornecedorForm)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest($event, fornecedorForm)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_pessoa_endereco_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: origemMercadoriaSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('origemMercadoria')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmContrato(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDoContrato($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar contrato\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addContrato(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"tipoNotaFiscal\">{{\"yms.erp.recebimento_tipo_nota_fiscal\" | translate}}</label>\n <p-dropdown inputId=\"tipoNotaFiscal\" name=\"tipoNotaFiscal\" [options]=\"tiposNota\" formControlName=\"tipoNotaFiscal\">\n </p-dropdown>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Contratos</h4>\n <p-table [value]=\"getContratos(fornecedorForm).controls\" [(selection)]=\"contratoSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('contrato').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Contrato {{rowData.get('contrato').value.numero}}, Filial {{rowData.get('contrato').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerContrato(fornecedorForm, rowData)\"></span>\n </p-header>\n \n <div class=\"detail-pane\" *ngFor=\"let item of getItensContrato(rowData).controls\">\n <div class=\"detail-span\">\n <span class=\"title\">Sequ\u00EAncia</span>\n <span class=\"data\">{{item.value?.item.sequencia}}</span>\n </div>\n </div>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n \n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n </p-panel>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">{{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} / </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">{{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}</label>\n </div>\n </form>\n\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n </div>\n</div>",
13612
+ template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\"></p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"chaveNotaFiscal\">{{\"yms.erp.recebimento_chave_nota_fiscal\" | translate}}</label>\n <input\n id=\"chaveNotaFiscal\"\n trim\n [class.ng-invalid]=\"erroChaveNota\"\n [(ngModel)]=\"chaveNotaFiscal\"\n [ngModelOptions]=\"{ standalone: true }\"\n type=\"text\"\n name=\"chaveNotaFiscal\"\n pInputText\n autocomplete=\"off\"\n (blur)=\"onBlurChaveNotaFiscal()\"\n />\n <span class=\"nota-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span>\n </div>\n </div>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div [attr.data-hidden]=\"true\" class=\"ui-g-12 ui-md-6\">\n <label for=\"id\">{{\"yms.erp.recebimento_id\" | translate}}</label>\n <input #idFormInput type=\"text\" id=\"id\" name=\"id\" pInputText formControlName=\"id\" autocomplete=\"off\" />\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"filial\">{{\"yms.erp.filial\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\"\n (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"produto\">{{\"yms.erp.recebimento_produto\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"produto\" name=\"produto\" formControlName=\"produto\"\n [searchFields]=\"produtoSearchFields\" [searchGridFields]=\"produtoSearchGridFields\"\n [searchGridData]=\"produtoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"produtoLookupSuggestions\"\n (onLookupRequest)=\"onProdutoLookupRequest($event)\"\n (onSearchRequest)=\"onProdutoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=produtoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_produto_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: produtoSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['produto']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"derivacao\">{{\"yms.erp.recebimento_derivacao\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"derivacao\" name=\"derivacao\" formControlName=\"derivacao\"\n [searchFields]=\"derivacaoSearchFields\" [searchGridFields]=\"derivacaoSearchGridFields\"\n [searchGridData]=\"derivacaoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"derivacaoLookupSuggestions\"\n (onLookupRequest)=\"onDerivacaoLookupRequest($event)\"\n (onSearchRequest)=\"onDerivacaoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=derivacaoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_derivacao_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: derivacaoSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transportadora\">{{\"yms.erp.recebimento_transportadora\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchGridFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transgenia\">{{\"yms.erp.recebimento_transgenia\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transgenia\" name=\"transgenia\"\n formControlName=\"transgenia\" [searchFields]=\"transgeniaSearchFields\"\n [searchGridFields]=\"transgeniaSearchGridFields\"\n [searchGridData]=\"transgeniaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transgeniaLookupSuggestions\"\n (onLookupRequest)=\"onTransgeniaLookupRequest($event)\"\n (onSearchRequest)=\"onTransgeniaSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transgeniaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_transgenia_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transgeniaSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button styleClass=\"btn-erp-forms\" *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\"\n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" (onClick)=\"addFornecedor()\"\n [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedoresNotaDuplicada\">{{ erroFornecedoresNotaDuplicada }}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\" >\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\"\n >\n </s-button>\n </p-header>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"fornecedor\">{{\"yms.erp.recebimento_fornecedor\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchGridFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" \n lookupDisplayField=\"label\"\n [searchTotalRecords]=fornecedorSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: fornecedorSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"origemMercadoria\">{{\"yms.erp.recebimento_origem_mercadoria\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origemMercadoria\" name=\"origemMercadoria\"\n formControlName=\"origemMercadoria\" [searchFields]=\"origemMercadoriaSearchFields\"\n [searchGridFields]=\"origemMercadoriaSearchGridFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest($event, fornecedorForm)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest($event, fornecedorForm)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_pessoa_endereco_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: origemMercadoriaSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('origemMercadoria')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmContrato(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDoContrato($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar contrato\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addContrato(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"tipoNotaFiscal\">{{\"yms.erp.recebimento_tipo_nota_fiscal\" | translate}}</label>\n <p-dropdown inputId=\"tipoNotaFiscal\" name=\"tipoNotaFiscal\" [options]=\"tiposNota\" formControlName=\"tipoNotaFiscal\">\n </p-dropdown>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Contratos</h4>\n <p-table [value]=\"getContratos(fornecedorForm).controls\" [(selection)]=\"contratoSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('contrato').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Contrato {{rowData.get('contrato').value.numero}}, Filial {{rowData.get('contrato').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerContrato(fornecedorForm, rowData)\"></span>\n </p-header>\n \n <div class=\"detail-pane\" *ngFor=\"let item of getItensContrato(rowData).controls\">\n <div class=\"detail-span\">\n <span class=\"title\">Sequ\u00EAncia</span>\n <span class=\"data\">{{item.value?.item.sequencia}}</span>\n </div>\n </div>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n \n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n </p-panel>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">{{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} / </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">{{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}</label>\n </div>\n </form>\n\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n </div>\n</div>",
12958
13613
  providers: [
12959
13614
  ConfirmationService,
12960
13615
  ],
@@ -12981,7 +13636,7 @@ var RecebimentoFormComponent = /** @class */ (function () {
12981
13636
  NotaValidatorService,
12982
13637
  TransgeniaService,
12983
13638
  DialogService,
12984
- AgendaService,
13639
+ AgendaService$1,
12985
13640
  ErpProcessService,
12986
13641
  ErpFormConfigService,
12987
13642
  VerificaNotafiscal,
@@ -13098,6 +13753,7 @@ var ErpSeniorModule = /** @class */ (function () {
13098
13753
  languages: highlightLanguages
13099
13754
  }),
13100
13755
  HotkeyModule.forRoot(),
13756
+ DirectivesModule
13101
13757
  ],
13102
13758
  providers: [
13103
13759
  FieldCustomizationService,
@@ -13145,5 +13801,5 @@ var DockModule = /** @class */ (function () {
13145
13801
  return DockModule;
13146
13802
  }());
13147
13803
 
13148
- export { AgendaModule, AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, 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, HasChangeService, 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, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, VerificaNotafiscal as ɵba, BuildFormField as ɵbb, ExpedicaoFormComponent as ɵbc, ExpedicaoInfoComponent as ɵbd, RecebimentoInfoComponent as ɵbe, DevolucaoFormComponent as ɵbf, DevolucaoService as ɵbg, DevolucaoChegadaVeiculoOverride as ɵbh, RecebimentoOrdemCompraFormComponent as ɵbi, OrdemCompraService as ɵbj, RecebimentoOrdemCompraService as ɵbk, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbl, RecebimentoOrdemCompraInfoComponent as ɵbm, DevolucaoInfoComponent as ɵbn, ContratoFormComponent as ɵbo, OrdemCompraFormComponent as ɵbp, ProcessoAvulsoFormComponent as ɵbq, ProcessoAvulsoService as ɵbr, ProcessoAvulsoChegadaVeiculoOverride as ɵbs, ProcessoAvulsoInfoComponent as ɵbt, LogIntegracaoDescritor as ɵbu, LogIntegracaoComponent as ɵbv, LogIntegracaoService as ɵbw, DerivacaoModule as ɵbx, DevolucaoModule as ɵby, OrdemCompraModule as ɵbz, ViewImageComponent as ɵc, RecebimentoOrdemCompraModule as ɵca, TransgeniaModule as ɵcb, ProcessoAvulsoModule as ɵcc, LogIntegracaoModule as ɵcd, NotaFormModule as ɵce, NotaFormComponent as ɵcf, 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, EntityService$1 as ɵu, IntegrationService as ɵv, RecebimentoFormComponent as ɵw, DerivacaoService as ɵx, NotaValidatorService as ɵy, TransgeniaService as ɵz };
13804
+ export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, 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, InsertKeyModule as ɵbc, InsertKeyComponent as ɵbd, IntegrationService as ɵbe, RecebimentoFormComponent as ɵbf, DerivacaoService as ɵbg, NotaValidatorService as ɵbh, TransgeniaService as ɵbi, VerificaNotafiscal as ɵbj, BuildFormField as ɵbk, ExpedicaoFormComponent as ɵbl, ExpedicaoInfoComponent as ɵbm, RecebimentoInfoComponent as ɵbn, DevolucaoFormComponent as ɵbo, DevolucaoService as ɵbp, DevolucaoChegadaVeiculoOverride as ɵbq, RecebimentoOrdemCompraFormComponent as ɵbr, OrdemCompraService as ɵbs, RecebimentoOrdemCompraService as ɵbt, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraInfoComponent as ɵbv, DevolucaoInfoComponent as ɵbw, ContratoFormComponent as ɵbx, OrdemCompraFormComponent as ɵby, ProcessoAvulsoFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoService as ɵca, ProcessoAvulsoChegadaVeiculoOverride as ɵcb, ProcessoAvulsoInfoComponent as ɵcc, LogIntegracaoDescritor as ɵcd, LogIntegracaoComponent as ɵce, LogIntegracaoService as ɵcf, DerivacaoModule as ɵcg, DevolucaoModule as ɵch, OrdemCompraModule as ɵci, RecebimentoOrdemCompraModule as ɵcj, TransgeniaModule as ɵck, ProcessoAvulsoModule as ɵcl, LogIntegracaoModule as ɵcm, NotaFormModule as ɵcn, DirectivesModule as ɵco, TrimDirective as ɵcp, NotaFormComponent as ɵcq, 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, DocumentGridModule as ɵu, DocumentGridComponent as ɵv, DocumentService as ɵw, RegisterDocumentModule as ɵx, RegisterDocumentComponent as ɵy, AgendaService as ɵz };
13149
13805
  //# sourceMappingURL=seniorsistemas-yms-integration.js.map