@seniorsistemas/yms-integration 1.46.1 → 1.47.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.
- package/bundles/seniorsistemas-yms-integration.umd.js +292 -120
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/index.js +3 -1
- package/esm2015/seniorsistemas-yms-integration.js +69 -68
- package/esm2015/src/app/core/entities/entity-service.js +112 -0
- package/esm2015/src/app/core/entities/log-circuit/log-circuit-dto.js +5 -0
- package/esm2015/src/app/core/entities/log-circuit/log-circuit.module.js +32 -0
- package/esm2015/src/app/core/entities/log-circuit/log-circuit.service.js +30 -0
- package/esm2015/src/erp-senior/log-integracao/log-integracao.component.js +2 -2
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +5 -2
- package/esm2015/src/wms/shared/cpf-cnpj-format.pipe.js +10 -12
- package/esm5/index.js +3 -1
- package/esm5/seniorsistemas-yms-integration.js +69 -68
- package/esm5/src/app/core/entities/entity-service.js +115 -0
- package/esm5/src/app/core/entities/log-circuit/log-circuit-dto.js +5 -0
- package/esm5/src/app/core/entities/log-circuit/log-circuit.module.js +35 -0
- package/esm5/src/app/core/entities/log-circuit/log-circuit.service.js +33 -0
- package/esm5/src/erp-senior/log-integracao/log-integracao.component.js +2 -2
- package/esm5/src/wms/components/document-grid/document-grid.component.js +5 -2
- package/esm5/src/wms/shared/cpf-cnpj-format.pipe.js +10 -12
- package/fesm2015/seniorsistemas-yms-integration.js +212 -51
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +221 -52
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +68 -67
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/app/core/entities/entity-service.d.ts +35 -0
- package/src/app/core/entities/log-circuit/log-circuit-dto.d.ts +11 -0
- package/src/app/core/entities/log-circuit/log-circuit.module.d.ts +2 -0
- package/src/app/core/entities/log-circuit/log-circuit.service.d.ts +11 -0
- package/src/wms/components/document-grid/document-grid.component.d.ts +1 -0
- package/src/wms/shared/cpf-cnpj-format.pipe.d.ts +1 -1
|
@@ -1231,6 +1231,174 @@
|
|
|
1231
1231
|
return PortariasModule;
|
|
1232
1232
|
}());
|
|
1233
1233
|
|
|
1234
|
+
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
1235
|
+
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
1236
|
+
/*{CA:PROJECT_IMPORTS:START}*/
|
|
1237
|
+
/*{CA:PROJECT_IMPORTS:END}*/
|
|
1238
|
+
var EntityService = /** @class */ (function () {
|
|
1239
|
+
/*{CA:CLASS_ATTRIBUTES:START}*/
|
|
1240
|
+
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
1241
|
+
function EntityService(http, messageService, entityUrl, actionsUrl, translate) {
|
|
1242
|
+
this.http = http;
|
|
1243
|
+
this.messageService = messageService;
|
|
1244
|
+
this.entityUrl = entityUrl;
|
|
1245
|
+
this.actionsUrl = actionsUrl;
|
|
1246
|
+
this.translate = translate;
|
|
1247
|
+
this.http = http;
|
|
1248
|
+
this.messageService = messageService;
|
|
1249
|
+
this.entityUrl = entityUrl;
|
|
1250
|
+
this.actionsUrl = actionsUrl;
|
|
1251
|
+
this.translate = translate;
|
|
1252
|
+
this.defaultCatch = this.defaultCatch.bind(this);
|
|
1253
|
+
/*{CA:CONSTRUCTOR_END:START}*/
|
|
1254
|
+
/*{CA:CONSTRUCTOR_END:END}*/
|
|
1255
|
+
}
|
|
1256
|
+
EntityService.prototype.getListQueryParams = function (listParams) {
|
|
1257
|
+
var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? '' : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
|
|
1258
|
+
var params = new http.HttpParams();
|
|
1259
|
+
params = params.append('size', String(size));
|
|
1260
|
+
params = params.append('offset', String(page));
|
|
1261
|
+
if (sort && sort.length) {
|
|
1262
|
+
params = params.append('orderby', sort
|
|
1263
|
+
.map(function (s) {
|
|
1264
|
+
var order = '';
|
|
1265
|
+
if (s.order === 1)
|
|
1266
|
+
order = ' asc';
|
|
1267
|
+
else if (s.order === -1)
|
|
1268
|
+
order = ' desc';
|
|
1269
|
+
return "" + s.field + order;
|
|
1270
|
+
})
|
|
1271
|
+
.join(', '));
|
|
1272
|
+
}
|
|
1273
|
+
if (filterQuery)
|
|
1274
|
+
params = params.append('filter', filterQuery);
|
|
1275
|
+
if (displayFields && displayFields.length)
|
|
1276
|
+
params = params.append('displayfields', displayFields.join());
|
|
1277
|
+
return params;
|
|
1278
|
+
};
|
|
1279
|
+
EntityService.prototype.getBodyParams = function (listParams) {
|
|
1280
|
+
var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? '' : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
|
|
1281
|
+
var bodyParams = {};
|
|
1282
|
+
bodyParams.size = size;
|
|
1283
|
+
bodyParams.offset = page;
|
|
1284
|
+
if (sort && sort.length) {
|
|
1285
|
+
bodyParams.orderBy = sort
|
|
1286
|
+
.map(function (s) {
|
|
1287
|
+
var order = '';
|
|
1288
|
+
if (s.order === 1)
|
|
1289
|
+
order = ' asc';
|
|
1290
|
+
else if (s.order === -1)
|
|
1291
|
+
order = ' desc';
|
|
1292
|
+
return "" + s.field + order;
|
|
1293
|
+
})
|
|
1294
|
+
.join(', ');
|
|
1295
|
+
}
|
|
1296
|
+
if (filterQuery)
|
|
1297
|
+
bodyParams.filter = filterQuery;
|
|
1298
|
+
if (displayFields && displayFields.length)
|
|
1299
|
+
bodyParams.displayfields = displayFields.join();
|
|
1300
|
+
return bodyParams;
|
|
1301
|
+
};
|
|
1302
|
+
EntityService.prototype.defaultCatch = function () {
|
|
1303
|
+
var _this = this;
|
|
1304
|
+
return operators.catchError(function (err) {
|
|
1305
|
+
if (err) {
|
|
1306
|
+
var summary = err.status ? String(err.status) : 'Error';
|
|
1307
|
+
var detail = (err.error && err.error.message) || err.statusText || err.message || 'Error';
|
|
1308
|
+
if (err.status === 401) {
|
|
1309
|
+
summary = _this.translate.instant('yms.integration.error_unauthorized_title');
|
|
1310
|
+
detail = _this.translate.instant('yms.integration.error_unauthorized_description');
|
|
1311
|
+
}
|
|
1312
|
+
_this.messageService.add({
|
|
1313
|
+
severity: 'error',
|
|
1314
|
+
summary: summary,
|
|
1315
|
+
detail: detail,
|
|
1316
|
+
sticky: true,
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
return rxjs.throwError(err);
|
|
1320
|
+
});
|
|
1321
|
+
};
|
|
1322
|
+
EntityService.prototype.list = function (listParams) {
|
|
1323
|
+
return this.http.get(this.entityUrl, { params: this.getListQueryParams(listParams) }).pipe(this.defaultCatch());
|
|
1324
|
+
};
|
|
1325
|
+
EntityService.prototype.get = function (id) {
|
|
1326
|
+
return this.http.get(this.entityUrl + "/" + id).pipe(this.defaultCatch());
|
|
1327
|
+
};
|
|
1328
|
+
EntityService.prototype.insert = function (entity) {
|
|
1329
|
+
return this.http.post("" + this.entityUrl, entity).pipe(this.defaultCatch());
|
|
1330
|
+
};
|
|
1331
|
+
EntityService.prototype.update = function (id, entity) {
|
|
1332
|
+
return this.http.put(this.entityUrl + "/" + id, entity).pipe(this.defaultCatch());
|
|
1333
|
+
};
|
|
1334
|
+
EntityService.prototype.delete = function (id) {
|
|
1335
|
+
return this.http.delete(this.entityUrl + "/" + id).pipe(this.defaultCatch());
|
|
1336
|
+
};
|
|
1337
|
+
EntityService.prototype.listCustomFilter = function (listParams, action) {
|
|
1338
|
+
return this.http.post(this.actionsUrl + "/" + action, this.getBodyParams(listParams)).pipe(this.defaultCatch());
|
|
1339
|
+
};
|
|
1340
|
+
return EntityService;
|
|
1341
|
+
}());
|
|
1342
|
+
/*{CA:FILE_CONTENTS:START}*/
|
|
1343
|
+
/*{CA:FILE_CONTENTS:END}*/
|
|
1344
|
+
|
|
1345
|
+
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
1346
|
+
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
1347
|
+
/*{CA:PROJECT_IMPORTS:START}*/
|
|
1348
|
+
/*{CA:PROJECT_IMPORTS:END}*/
|
|
1349
|
+
var LogCircuitService = /** @class */ (function (_super) {
|
|
1350
|
+
__extends(LogCircuitService, _super);
|
|
1351
|
+
/*{CA:CLASS_ATTRIBUTES:START}*/
|
|
1352
|
+
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
1353
|
+
function LogCircuitService(http, messageService, translate) {
|
|
1354
|
+
var _this = _super.call(this, http, messageService, "yms/integration/entities/logCircuit", "yms/integration/actions", translate) || this;
|
|
1355
|
+
_this.http = http;
|
|
1356
|
+
_this.messageService = messageService;
|
|
1357
|
+
_this.translate = translate;
|
|
1358
|
+
return _this;
|
|
1359
|
+
/*{CA:CONSTRUCTOR_END:START}*/
|
|
1360
|
+
/*{CA:CONSTRUCTOR_END:END}*/
|
|
1361
|
+
}
|
|
1362
|
+
LogCircuitService = __decorate([
|
|
1363
|
+
core.Injectable(),
|
|
1364
|
+
__metadata("design:paramtypes", [http.HttpClient, api.MessageService, core$1.TranslateService])
|
|
1365
|
+
], LogCircuitService);
|
|
1366
|
+
return LogCircuitService;
|
|
1367
|
+
}(EntityService));
|
|
1368
|
+
/*{CA:FILE_CONTENTS:START}*/
|
|
1369
|
+
/*{CA:FILE_CONTENTS:END}*/
|
|
1370
|
+
|
|
1371
|
+
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
1372
|
+
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
1373
|
+
/*{CA:PROJECT_IMPORTS:START}*/
|
|
1374
|
+
/*{CA:PROJECT_IMPORTS:END}*/
|
|
1375
|
+
var LogCircuitModule = /** @class */ (function () {
|
|
1376
|
+
function LogCircuitModule() {
|
|
1377
|
+
}
|
|
1378
|
+
LogCircuitModule = __decorate([
|
|
1379
|
+
core.NgModule({
|
|
1380
|
+
imports: [
|
|
1381
|
+
/*{CA:MODULE_IMPORTS:START}*/
|
|
1382
|
+
/*{CA:MODULE_IMPORTS:END}*/
|
|
1383
|
+
],
|
|
1384
|
+
providers: [
|
|
1385
|
+
LogCircuitService,
|
|
1386
|
+
],
|
|
1387
|
+
declarations: [
|
|
1388
|
+
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
1389
|
+
/*{CA:MODULE_DECLARATIONS:END}*/
|
|
1390
|
+
],
|
|
1391
|
+
exports: [
|
|
1392
|
+
/*{CA:MODULE_EXPORTS:START}*/
|
|
1393
|
+
/*{CA:MODULE_EXPORTS:END}*/
|
|
1394
|
+
],
|
|
1395
|
+
})
|
|
1396
|
+
], LogCircuitModule);
|
|
1397
|
+
return LogCircuitModule;
|
|
1398
|
+
}());
|
|
1399
|
+
/*{CA:FILE_CONTENTS:START}*/
|
|
1400
|
+
/*{CA:FILE_CONTENTS:END}*/
|
|
1401
|
+
|
|
1234
1402
|
var numberTypes = [angularComponents.FieldType.Integer, angularComponents.FieldType.Double];
|
|
1235
1403
|
var numberPattern = /^\d+\b$/;
|
|
1236
1404
|
var mergeUnique = function (array, otherArray) {
|
|
@@ -2296,7 +2464,7 @@
|
|
|
2296
2464
|
return VisitanteComponent;
|
|
2297
2465
|
}());
|
|
2298
2466
|
|
|
2299
|
-
var EntityService = /** @class */ (function () {
|
|
2467
|
+
var EntityService$1 = /** @class */ (function () {
|
|
2300
2468
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
2301
2469
|
this.http = http;
|
|
2302
2470
|
this.messageService = messageService;
|
|
@@ -2446,7 +2614,7 @@
|
|
|
2446
2614
|
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService])
|
|
2447
2615
|
], SchedulingService);
|
|
2448
2616
|
return SchedulingService;
|
|
2449
|
-
}(EntityService));
|
|
2617
|
+
}(EntityService$1));
|
|
2450
2618
|
|
|
2451
2619
|
var mergeUnique$1 = function (array, otherArray) {
|
|
2452
2620
|
return array.concat(otherArray.filter(function (item) { return !array.includes(item); }));
|
|
@@ -2695,7 +2863,7 @@
|
|
|
2695
2863
|
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService])
|
|
2696
2864
|
], LobbyService);
|
|
2697
2865
|
return LobbyService;
|
|
2698
|
-
}(EntityService));
|
|
2866
|
+
}(EntityService$1));
|
|
2699
2867
|
|
|
2700
2868
|
var SchedulingVisitors = /** @class */ (function () {
|
|
2701
2869
|
function SchedulingVisitors() {
|
|
@@ -3197,7 +3365,7 @@
|
|
|
3197
3365
|
return UtilsMessageService;
|
|
3198
3366
|
}());
|
|
3199
3367
|
|
|
3200
|
-
var EntityService$
|
|
3368
|
+
var EntityService$2 = /** @class */ (function () {
|
|
3201
3369
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3202
3370
|
this.http = http;
|
|
3203
3371
|
this.messageService = messageService;
|
|
@@ -3291,13 +3459,13 @@
|
|
|
3291
3459
|
return EntityService;
|
|
3292
3460
|
}());
|
|
3293
3461
|
|
|
3294
|
-
var EntityService$
|
|
3462
|
+
var EntityService$3 = /** @class */ (function (_super) {
|
|
3295
3463
|
__extends(EntityService, _super);
|
|
3296
3464
|
function EntityService() {
|
|
3297
3465
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3298
3466
|
}
|
|
3299
3467
|
return EntityService;
|
|
3300
|
-
}(EntityService$
|
|
3468
|
+
}(EntityService$2));
|
|
3301
3469
|
|
|
3302
3470
|
var AgendaService = /** @class */ (function (_super) {
|
|
3303
3471
|
__extends(AgendaService, _super);
|
|
@@ -3317,7 +3485,7 @@
|
|
|
3317
3485
|
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService])
|
|
3318
3486
|
], AgendaService);
|
|
3319
3487
|
return AgendaService;
|
|
3320
|
-
}(EntityService$
|
|
3488
|
+
}(EntityService$3));
|
|
3321
3489
|
|
|
3322
3490
|
var DocumentService = /** @class */ (function (_super) {
|
|
3323
3491
|
__extends(DocumentService, _super);
|
|
@@ -3342,7 +3510,7 @@
|
|
|
3342
3510
|
api.MessageService])
|
|
3343
3511
|
], DocumentService);
|
|
3344
3512
|
return DocumentService;
|
|
3345
|
-
}(EntityService));
|
|
3513
|
+
}(EntityService$1));
|
|
3346
3514
|
|
|
3347
3515
|
var IntegrationService = /** @class */ (function () {
|
|
3348
3516
|
function IntegrationService(httpClient) {
|
|
@@ -3939,7 +4107,7 @@
|
|
|
3939
4107
|
api.MessageService])
|
|
3940
4108
|
], DadosColetaService);
|
|
3941
4109
|
return DadosColetaService;
|
|
3942
|
-
}(EntityService$
|
|
4110
|
+
}(EntityService$3));
|
|
3943
4111
|
|
|
3944
4112
|
var DocumentGridFacade = /** @class */ (function () {
|
|
3945
4113
|
function DocumentGridFacade(translate, documentService, integrationService, agendaService, utils, wmsService, strategyFactory, dadosColetaService) {
|
|
@@ -4403,6 +4571,9 @@
|
|
|
4403
4571
|
DocumentGridComponent.prototype.onSave = function () {
|
|
4404
4572
|
this.facade.save();
|
|
4405
4573
|
};
|
|
4574
|
+
DocumentGridComponent.prototype.onDocumentChange = function (document) {
|
|
4575
|
+
this.facade.onChangeDocument(document);
|
|
4576
|
+
};
|
|
4406
4577
|
DocumentGridComponent.prototype.onDelete = function () {
|
|
4407
4578
|
var _this = this;
|
|
4408
4579
|
this.confirmationService.confirm({
|
|
@@ -4492,7 +4663,7 @@
|
|
|
4492
4663
|
DocumentGridComponent = __decorate([
|
|
4493
4664
|
core.Component({
|
|
4494
4665
|
selector: "document-grid",
|
|
4495
|
-
template: "<ng-container *ngIf=\"state$ | async as state\">\n <div\n *ngIf=\"state.processType === 'RECEBIMENTO_WMS' || state.processType === 'EXPEDICAO_WMS'; else processNotConfigured\"\n >\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n *ngIf=\"!isExpedicaoWms(state.processType)\"\n label=\"{{ 'yms.int.wms_add_document' | translate }}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!state.enableButtonIsClienteExterno\"\n >\n </s-button>\n <s-button\n *ngIf=\"isExpedicaoWms(state.processType)\"\n label=\"{{ 'yms.int.wms_search' | translate }}\"\n priority=\"primary\"\n iconClass=\"fa fa-search\"\n [auxiliary]=\"false\"\n [disabled]=\"!state.enableButtonIsClienteExterno\"\n (onClick)=\"onSearch()\"\n >\n </s-button>\n <s-button\n label=\"{{ 'yms.wms_view_button' | translate }}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!state.selection || state.selection.length !== 1\"\n (onClick)=\"onView()\"\n >\n </s-button>\n <s-button\n *ngIf=\"!isExpedicaoWms(state.processType)\"\n label=\"{{ 'yms.wms_delete_button' | translate }}\"\n priority=\"secondary\"\n [disabled]=\"\n !state.selection ||\n !state.selection.length ||\n !state.enableButtonIsClienteExterno\n \"\n (onClick)=\"onDelete()\"\n >\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"onRefresh()\"\n [disabled]=\"notSavedDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div\n class=\"ui-g-12\"\n *ngIf=\"state.gridData && state.gridData.length; else emptyList\"\n >\n <p-table\n #documentTable\n [value]=\"state.gridData\"\n [columns]=\"state.gridColumns\"\n dataKey=\"key\"\n [scrollable]=\"true\"\n [resizableColumns]=\"true\"\n [autoLayout]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"state.documentTotalRecords\"\n rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n [(selection)]=\"state.selection\"\n [loading]=\"state.loading\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-rowData\n let-columns\n let-expanded=\"expanded\"\n >\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td\n *ngFor=\"let col of state.gridColumns\"\n (click)=\"onRowSelect(rowData)\"\n (keypress)=\"onRowSelect(rowData)\"\n [title]=\"rowData[col.field]\"\n >\n <span *ngIf=\"!col.type || col.type === 'text'\">\n {{ rowData[col.field] }}\n </span>\n\n <span\n *ngIf=\"\n col.type === 'formatted' && col.pipe === 'cpfCnpjFormat'\n \"\n >\n {{ rowData[col.field] | cpfCnpjFormat }}\n </span>\n\n <p-dropdown\n *ngIf=\"\n col.type === 'dropdown' &&\n col.field === 'invoiceCondition' &&\n !isExpedicaoWms(state.processType)\n \"\n inputId=\"invoiceCondition\"\n name=\"invoiceCondition\"\n [autoWidth]=\"false\"\n [options]=\"\n getFilteredInvoiceConditions(rowData?.invoiceCondition)\n \"\n appendTo=\"body\"\n [(ngModel)]=\"rowData.invoiceCondition\"\n (onChange)=\"onInvoiceConditionChange()\"\n >\n </p-dropdown>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span\n [translate]=\"'yms.main.total_records'\"\n [translateParams]=\"{ value: state.documentTotalRecords }\"\n >\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n <register-document\n [wmsSystem]=\"state.wmsSystem\"\n [processType]=\"state.processType\"\n [edit]=\"state.edit\"\n [viewDocument]=\"state.selection\"\n [(visible)]=\"state.showAddInvoiceModal\"\n [agenda]=\"agenda\"\n [isClienteExterno]=\"state.isClienteExterno\"\n >\n </register-document>\n <insert-key\n [wmsSystem]=\"state.wmsSystem\"\n [agenda]=\"agenda\"\n [(visible)]=\"state.showInvoiceSearchModal\"\n >\n </insert-key>\n </p-panel>\n </div>\n <div class=\"button-save\">\n <s-button\n priority=\"primary\"\n [label]=\"'save' | translate\"\n [disabled]=\"\n state.disabled || !state.gridData || !state.enableButtonIsClienteExterno\n \"\n (onClick)=\"onSave()\"\n >\n </s-button>\n </div>\n</ng-container>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\"\n >\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"\n 'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling'\n | translate\n \"\n >\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
4666
|
+
template: "<ng-container *ngIf=\"state$ | async as state\">\n <div\n *ngIf=\"state.processType === 'RECEBIMENTO_WMS' || state.processType === 'EXPEDICAO_WMS'; else processNotConfigured\"\n >\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n *ngIf=\"!isExpedicaoWms(state.processType)\"\n label=\"{{ 'yms.int.wms_add_document' | translate }}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!state.enableButtonIsClienteExterno\"\n >\n </s-button>\n <s-button\n *ngIf=\"isExpedicaoWms(state.processType)\"\n label=\"{{ 'yms.int.wms_search' | translate }}\"\n priority=\"primary\"\n iconClass=\"fa fa-search\"\n [auxiliary]=\"false\"\n [disabled]=\"!state.enableButtonIsClienteExterno\"\n (onClick)=\"onSearch()\"\n >\n </s-button>\n <s-button\n label=\"{{ 'yms.wms_view_button' | translate }}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!state.selection || state.selection.length !== 1\"\n (onClick)=\"onView()\"\n >\n </s-button>\n <s-button\n *ngIf=\"!isExpedicaoWms(state.processType)\"\n label=\"{{ 'yms.wms_delete_button' | translate }}\"\n priority=\"secondary\"\n [disabled]=\"\n !state.selection ||\n !state.selection.length ||\n !state.enableButtonIsClienteExterno\n \"\n (onClick)=\"onDelete()\"\n >\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"onRefresh()\"\n [disabled]=\"notSavedDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div\n class=\"ui-g-12\"\n *ngIf=\"state.gridData && state.gridData.length; else emptyList\"\n >\n <p-table\n #documentTable\n [value]=\"state.gridData\"\n [columns]=\"state.gridColumns\"\n dataKey=\"key\"\n [scrollable]=\"true\"\n [resizableColumns]=\"true\"\n [autoLayout]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"state.documentTotalRecords\"\n rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n [(selection)]=\"state.selection\"\n [loading]=\"state.loading\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-rowData\n let-columns\n let-expanded=\"expanded\"\n >\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td\n *ngFor=\"let col of state.gridColumns\"\n (click)=\"onRowSelect(rowData)\"\n (keypress)=\"onRowSelect(rowData)\"\n [title]=\"rowData[col.field]\"\n >\n <span *ngIf=\"!col.type || col.type === 'text'\">\n {{ rowData[col.field] }}\n </span>\n\n <span\n *ngIf=\"\n col.type === 'formatted' && col.pipe === 'cpfCnpjFormat'\n \"\n >\n {{ rowData[col.field] | cpfCnpjFormat }}\n </span>\n\n <p-dropdown\n *ngIf=\"\n col.type === 'dropdown' &&\n col.field === 'invoiceCondition' &&\n !isExpedicaoWms(state.processType)\n \"\n inputId=\"invoiceCondition\"\n name=\"invoiceCondition\"\n [autoWidth]=\"false\"\n [options]=\"\n getFilteredInvoiceConditions(rowData?.invoiceCondition)\n \"\n appendTo=\"body\"\n [(ngModel)]=\"rowData.invoiceCondition\"\n (onChange)=\"onInvoiceConditionChange()\"\n >\n </p-dropdown>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span\n [translate]=\"'yms.main.total_records'\"\n [translateParams]=\"{ value: state.documentTotalRecords }\"\n >\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n <register-document\n [wmsSystem]=\"state.wmsSystem\"\n [processType]=\"state.processType\"\n [edit]=\"state.edit\"\n [viewDocument]=\"state.selection\"\n [(visible)]=\"state.showAddInvoiceModal\"\n [agenda]=\"agenda\"\n [isClienteExterno]=\"state.isClienteExterno\"\n (document)=\"onDocumentChange($event)\"\n >\n </register-document>\n <insert-key\n [wmsSystem]=\"state.wmsSystem\"\n [agenda]=\"agenda\"\n [(visible)]=\"state.showInvoiceSearchModal\"\n >\n </insert-key>\n </p-panel>\n </div>\n <div class=\"button-save\">\n <s-button\n priority=\"primary\"\n [label]=\"'save' | translate\"\n [disabled]=\"\n state.disabled || !state.gridData || !state.enableButtonIsClienteExterno\n \"\n (onClick)=\"onSave()\"\n >\n </s-button>\n </div>\n</ng-container>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\"\n >\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"\n 'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling'\n | translate\n \"\n >\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
4496
4667
|
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px;min-width:50px;max-width:50px}.invoice-condition .p-dropdown{position:relative;z-index:1000}::ng-deep p-table .ui-table{table-layout:auto!important}::ng-deep p-table td:nth-child(1),::ng-deep p-table th:nth-child(1){min-width:50px;max-width:50px;width:50px}::ng-deep p-table td:nth-child(3),::ng-deep p-table td:nth-child(4),::ng-deep p-table td:nth-child(5),::ng-deep p-table th:nth-child(3),::ng-deep p-table th:nth-child(4),::ng-deep p-table th:nth-child(5){min-width:100px}::ng-deep p-table td:nth-child(7),::ng-deep p-table td:nth-child(9),::ng-deep p-table th:nth-child(7),::ng-deep p-table th:nth-child(9){min-width:140px}::ng-deep p-table td:nth-child(10),::ng-deep p-table td:nth-child(2),::ng-deep p-table td:nth-child(6),::ng-deep p-table td:nth-child(8),::ng-deep p-table th:nth-child(10),::ng-deep p-table th:nth-child(2),::ng-deep p-table th:nth-child(6),::ng-deep p-table th:nth-child(8){min-width:180px}::ng-deep p-table td span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::ng-deep p-table .ui-resizable-column{border-right:1px solid #c8c8c8}::ng-deep p-table .ui-column-resizer{display:block;position:absolute;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}::ng-deep p-table .ui-column-resizer:hover{border-color:#007ad9}"]
|
|
4497
4668
|
}),
|
|
4498
4669
|
__metadata("design:paramtypes", [DocumentGridFacade,
|
|
@@ -4556,24 +4727,22 @@
|
|
|
4556
4727
|
}
|
|
4557
4728
|
CpfCnpjFormatPipe.prototype.transform = function (value) {
|
|
4558
4729
|
if (!value) {
|
|
4559
|
-
return
|
|
4730
|
+
return "";
|
|
4560
4731
|
}
|
|
4561
|
-
var
|
|
4732
|
+
var clean = value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
|
|
4562
4733
|
var cpfLength = 11;
|
|
4563
4734
|
var cnpjLength = 14;
|
|
4564
|
-
if (
|
|
4565
|
-
return
|
|
4566
|
-
}
|
|
4567
|
-
else if (numeros.length === cnpjLength) {
|
|
4568
|
-
return numeros.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, "$1.$2.$3/$4-$5");
|
|
4735
|
+
if (clean.length === cpfLength && /^\d+$/.test(clean)) {
|
|
4736
|
+
return clean.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, "$1.$2.$3-$4");
|
|
4569
4737
|
}
|
|
4570
|
-
|
|
4571
|
-
return
|
|
4738
|
+
if (clean.length === cnpjLength) {
|
|
4739
|
+
return clean.replace(/(.{2})(.{3})(.{3})(.{4})(.{2})/, "$1.$2.$3/$4-$5");
|
|
4572
4740
|
}
|
|
4741
|
+
return value;
|
|
4573
4742
|
};
|
|
4574
4743
|
CpfCnpjFormatPipe = __decorate([
|
|
4575
4744
|
core.Pipe({
|
|
4576
|
-
name:
|
|
4745
|
+
name: "cpfCnpjFormat",
|
|
4577
4746
|
})
|
|
4578
4747
|
], CpfCnpjFormatPipe);
|
|
4579
4748
|
return CpfCnpjFormatPipe;
|
|
@@ -4833,7 +5002,7 @@
|
|
|
4833
5002
|
__metadata("design:paramtypes", [http.HttpClient, api.MessageService])
|
|
4834
5003
|
], ExternalTenantService);
|
|
4835
5004
|
return ExternalTenantService;
|
|
4836
|
-
}(EntityService));
|
|
5005
|
+
}(EntityService$1));
|
|
4837
5006
|
|
|
4838
5007
|
var InsertKeyComponent = /** @class */ (function () {
|
|
4839
5008
|
function InsertKeyComponent(formBuilder, documentService, utils, confirmationService, translate, externalTenantService, facade) {
|
|
@@ -5374,7 +5543,7 @@
|
|
|
5374
5543
|
messageservice.MessageService, Object])
|
|
5375
5544
|
], AgendaService);
|
|
5376
5545
|
return AgendaService;
|
|
5377
|
-
}(EntityService$
|
|
5546
|
+
}(EntityService$2));
|
|
5378
5547
|
|
|
5379
5548
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5380
5549
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -5403,7 +5572,7 @@
|
|
|
5403
5572
|
messageservice.MessageService, Object])
|
|
5404
5573
|
], RecebimentoContratoService);
|
|
5405
5574
|
return RecebimentoContratoService;
|
|
5406
|
-
}(EntityService$
|
|
5575
|
+
}(EntityService$2));
|
|
5407
5576
|
|
|
5408
5577
|
var RecebimentoChegadaVeiculoOverride = /** @class */ (function () {
|
|
5409
5578
|
function RecebimentoChegadaVeiculoOverride(override, agendaService, recebimentoService) {
|
|
@@ -5467,7 +5636,7 @@
|
|
|
5467
5636
|
__metadata("design:paramtypes", [http.HttpClient, api.MessageService, Object])
|
|
5468
5637
|
], ExpedicaoService);
|
|
5469
5638
|
return ExpedicaoService;
|
|
5470
|
-
}(EntityService$
|
|
5639
|
+
}(EntityService$2));
|
|
5471
5640
|
|
|
5472
5641
|
var ExpedicaoChegadaVeiculoOverride = /** @class */ (function () {
|
|
5473
5642
|
function ExpedicaoChegadaVeiculoOverride(override, agendaService, expedicaoService) {
|
|
@@ -5722,7 +5891,7 @@
|
|
|
5722
5891
|
messageservice.MessageService, Object])
|
|
5723
5892
|
], OrdemCompraService);
|
|
5724
5893
|
return OrdemCompraService;
|
|
5725
|
-
}(EntityService$
|
|
5894
|
+
}(EntityService$2));
|
|
5726
5895
|
|
|
5727
5896
|
var moment$5 = _moment;
|
|
5728
5897
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -6603,7 +6772,7 @@
|
|
|
6603
6772
|
messageservice.MessageService, Object])
|
|
6604
6773
|
], CidadeService);
|
|
6605
6774
|
return CidadeService;
|
|
6606
|
-
}(EntityService$
|
|
6775
|
+
}(EntityService$2));
|
|
6607
6776
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6608
6777
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6609
6778
|
|
|
@@ -6664,7 +6833,7 @@
|
|
|
6664
6833
|
messageservice.MessageService, Object])
|
|
6665
6834
|
], ContratoCompraItemService);
|
|
6666
6835
|
return ContratoCompraItemService;
|
|
6667
|
-
}(EntityService$
|
|
6836
|
+
}(EntityService$2));
|
|
6668
6837
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6669
6838
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6670
6839
|
|
|
@@ -6742,7 +6911,7 @@
|
|
|
6742
6911
|
messageservice.MessageService, Object])
|
|
6743
6912
|
], ContratoCompraService);
|
|
6744
6913
|
return ContratoCompraService;
|
|
6745
|
-
}(EntityService$
|
|
6914
|
+
}(EntityService$2));
|
|
6746
6915
|
|
|
6747
6916
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6748
6917
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -6798,7 +6967,7 @@
|
|
|
6798
6967
|
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService, Object])
|
|
6799
6968
|
], DerivacaoService);
|
|
6800
6969
|
return DerivacaoService;
|
|
6801
|
-
}(EntityService$
|
|
6970
|
+
}(EntityService$2));
|
|
6802
6971
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6803
6972
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6804
6973
|
|
|
@@ -6857,7 +7026,7 @@
|
|
|
6857
7026
|
messageservice.MessageService, Object])
|
|
6858
7027
|
], EmpresaService);
|
|
6859
7028
|
return EmpresaService;
|
|
6860
|
-
}(EntityService$
|
|
7029
|
+
}(EntityService$2));
|
|
6861
7030
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6862
7031
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6863
7032
|
|
|
@@ -6916,7 +7085,7 @@
|
|
|
6916
7085
|
messageservice.MessageService, Object])
|
|
6917
7086
|
], EstadoService);
|
|
6918
7087
|
return EstadoService;
|
|
6919
|
-
}(EntityService$
|
|
7088
|
+
}(EntityService$2));
|
|
6920
7089
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6921
7090
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6922
7091
|
|
|
@@ -6975,7 +7144,7 @@
|
|
|
6975
7144
|
messageservice.MessageService, Object])
|
|
6976
7145
|
], FamiliaProdutoService);
|
|
6977
7146
|
return FamiliaProdutoService;
|
|
6978
|
-
}(EntityService$
|
|
7147
|
+
}(EntityService$2));
|
|
6979
7148
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6980
7149
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6981
7150
|
|
|
@@ -7034,7 +7203,7 @@
|
|
|
7034
7203
|
messageservice.MessageService, Object])
|
|
7035
7204
|
], FilialService);
|
|
7036
7205
|
return FilialService;
|
|
7037
|
-
}(EntityService$
|
|
7206
|
+
}(EntityService$2));
|
|
7038
7207
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7039
7208
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7040
7209
|
|
|
@@ -7093,7 +7262,7 @@
|
|
|
7093
7262
|
messageservice.MessageService, Object])
|
|
7094
7263
|
], PaisService);
|
|
7095
7264
|
return PaisService;
|
|
7096
|
-
}(EntityService$
|
|
7265
|
+
}(EntityService$2));
|
|
7097
7266
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7098
7267
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7099
7268
|
|
|
@@ -7154,7 +7323,7 @@
|
|
|
7154
7323
|
messageservice.MessageService, Object])
|
|
7155
7324
|
], PedidoVendaItemService);
|
|
7156
7325
|
return PedidoVendaItemService;
|
|
7157
|
-
}(EntityService$
|
|
7326
|
+
}(EntityService$2));
|
|
7158
7327
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7159
7328
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7160
7329
|
|
|
@@ -7234,7 +7403,7 @@
|
|
|
7234
7403
|
messageservice.MessageService, Object])
|
|
7235
7404
|
], PedidoVendaService);
|
|
7236
7405
|
return PedidoVendaService;
|
|
7237
|
-
}(EntityService$
|
|
7406
|
+
}(EntityService$2));
|
|
7238
7407
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7239
7408
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7240
7409
|
|
|
@@ -7293,7 +7462,7 @@
|
|
|
7293
7462
|
messageservice.MessageService, Object])
|
|
7294
7463
|
], PessoaEnderecoService);
|
|
7295
7464
|
return PessoaEnderecoService;
|
|
7296
|
-
}(EntityService$
|
|
7465
|
+
}(EntityService$2));
|
|
7297
7466
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7298
7467
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7299
7468
|
|
|
@@ -7352,7 +7521,7 @@
|
|
|
7352
7521
|
messageservice.MessageService, Object])
|
|
7353
7522
|
], PessoaFisicaService);
|
|
7354
7523
|
return PessoaFisicaService;
|
|
7355
|
-
}(EntityService$
|
|
7524
|
+
}(EntityService$2));
|
|
7356
7525
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7357
7526
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7358
7527
|
|
|
@@ -7411,7 +7580,7 @@
|
|
|
7411
7580
|
messageservice.MessageService, Object])
|
|
7412
7581
|
], PessoaJuridicaService);
|
|
7413
7582
|
return PessoaJuridicaService;
|
|
7414
|
-
}(EntityService$
|
|
7583
|
+
}(EntityService$2));
|
|
7415
7584
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7416
7585
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7417
7586
|
|
|
@@ -7470,7 +7639,7 @@
|
|
|
7470
7639
|
messageservice.MessageService, Object])
|
|
7471
7640
|
], PessoaService);
|
|
7472
7641
|
return PessoaService;
|
|
7473
|
-
}(EntityService$
|
|
7642
|
+
}(EntityService$2));
|
|
7474
7643
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7475
7644
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7476
7645
|
|
|
@@ -7536,7 +7705,7 @@
|
|
|
7536
7705
|
messageservice.MessageService, Object])
|
|
7537
7706
|
], ProdutoService);
|
|
7538
7707
|
return ProdutoService;
|
|
7539
|
-
}(EntityService$
|
|
7708
|
+
}(EntityService$2));
|
|
7540
7709
|
|
|
7541
7710
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
7542
7711
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -7801,7 +7970,7 @@
|
|
|
7801
7970
|
messageservice.MessageService, Object])
|
|
7802
7971
|
], RoyaltyService);
|
|
7803
7972
|
return RoyaltyService;
|
|
7804
|
-
}(EntityService$
|
|
7973
|
+
}(EntityService$2));
|
|
7805
7974
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7806
7975
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7807
7976
|
|
|
@@ -7860,7 +8029,7 @@
|
|
|
7860
8029
|
messageservice.MessageService, Object])
|
|
7861
8030
|
], SafraService);
|
|
7862
8031
|
return SafraService;
|
|
7863
|
-
}(EntityService$
|
|
8032
|
+
}(EntityService$2));
|
|
7864
8033
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7865
8034
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7866
8035
|
|
|
@@ -7919,7 +8088,7 @@
|
|
|
7919
8088
|
messageservice.MessageService, Object])
|
|
7920
8089
|
], TransportadoraService);
|
|
7921
8090
|
return TransportadoraService;
|
|
7922
|
-
}(EntityService$
|
|
8091
|
+
}(EntityService$2));
|
|
7923
8092
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7924
8093
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7925
8094
|
|
|
@@ -7978,7 +8147,7 @@
|
|
|
7978
8147
|
messageservice.MessageService, Object])
|
|
7979
8148
|
], UnidadeMedidaService);
|
|
7980
8149
|
return UnidadeMedidaService;
|
|
7981
|
-
}(EntityService$
|
|
8150
|
+
}(EntityService$2));
|
|
7982
8151
|
/*{CA:FILE_CONTENTS:START}*/
|
|
7983
8152
|
/*{CA:FILE_CONTENTS:END}*/
|
|
7984
8153
|
|
|
@@ -8057,7 +8226,7 @@
|
|
|
8057
8226
|
messageservice.MessageService, Object])
|
|
8058
8227
|
], DevolucaoService);
|
|
8059
8228
|
return DevolucaoService;
|
|
8060
|
-
}(EntityService$
|
|
8229
|
+
}(EntityService$2));
|
|
8061
8230
|
|
|
8062
8231
|
var DevolucaoModule = /** @class */ (function () {
|
|
8063
8232
|
function DevolucaoModule() {
|
|
@@ -8177,7 +8346,7 @@
|
|
|
8177
8346
|
messageservice.MessageService, Object])
|
|
8178
8347
|
], RecebimentoOrdemCompraService);
|
|
8179
8348
|
return RecebimentoOrdemCompraService;
|
|
8180
|
-
}(EntityService$
|
|
8349
|
+
}(EntityService$2));
|
|
8181
8350
|
|
|
8182
8351
|
var RecebimentoOrdemCompraModule = /** @class */ (function () {
|
|
8183
8352
|
function RecebimentoOrdemCompraModule() {
|
|
@@ -8228,7 +8397,7 @@
|
|
|
8228
8397
|
api.MessageService, Object])
|
|
8229
8398
|
], TransgeniaService);
|
|
8230
8399
|
return TransgeniaService;
|
|
8231
|
-
}(EntityService$
|
|
8400
|
+
}(EntityService$2));
|
|
8232
8401
|
|
|
8233
8402
|
var TransgeniaModule = /** @class */ (function () {
|
|
8234
8403
|
function TransgeniaModule() {
|
|
@@ -8259,7 +8428,7 @@
|
|
|
8259
8428
|
api.MessageService, Object])
|
|
8260
8429
|
], ProcessoAvulsoService);
|
|
8261
8430
|
return ProcessoAvulsoService;
|
|
8262
|
-
}(EntityService$
|
|
8431
|
+
}(EntityService$2));
|
|
8263
8432
|
|
|
8264
8433
|
var ProcessoAvulsoModule = /** @class */ (function () {
|
|
8265
8434
|
function ProcessoAvulsoModule() {
|
|
@@ -8307,7 +8476,7 @@
|
|
|
8307
8476
|
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService, Object])
|
|
8308
8477
|
], LogIntegracaoService);
|
|
8309
8478
|
return LogIntegracaoService;
|
|
8310
|
-
}(EntityService$
|
|
8479
|
+
}(EntityService$2));
|
|
8311
8480
|
/*{CA:FILE_CONTENTS:START}*/
|
|
8312
8481
|
/*{CA:FILE_CONTENTS:END}*/
|
|
8313
8482
|
|
|
@@ -11190,7 +11359,7 @@
|
|
|
11190
11359
|
], LogIntegracaoComponent.prototype, "customGridBody", void 0);
|
|
11191
11360
|
LogIntegracaoComponent = __decorate([
|
|
11192
11361
|
core.Component({
|
|
11193
|
-
template: "<div *sLoadingState=\"showLoader\">\n <s-empty-state *ngIf=\"serverError\" iconClass=\"fa fa-exclamation-triangle\" title=\"{{'
|
|
11362
|
+
template: "<div *sLoadingState=\"showLoader\">\n <s-empty-state *ngIf=\"serverError\" iconClass=\"fa fa-exclamation-triangle\" title=\"{{'detail_empty_state_title' | translate}}\"\n primaryActionLabel=\"{{'error_server_try_again' | translate}}\" (primaryAction)=\"resetGrid()\"\n description=\"{{'detail_empty_state_description' | translate}}\"></s-empty-state>\n <s-empty-state *ngIf=\"gridData && !gridData.length\" [title]=\"'yms.integration.log_integracao_empty_state_title' | translate\"\n [description]=\"'yms.integration.log_integracao_empty_state_description' | translate\"></s-empty-state>\n <div [attr.data-hidden]=\"!gridData?.length || serverError\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table #logIntegracaoTable [value]=\"gridData\" [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\"\n [resizableColumns]=\"true\" [paginator]=\"true\" [totalRecords]=\"totalRecords\"\n rows=\"10\" [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\" (onLazyLoad)=\"onGridChange($event)\" >\n <ng-template pTemplate=\"colgroup\" let-columns *ngIf=\"!customGridColgroup else customGridColgroup\">\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n <!--{CA:GRID_COLGROUP_COLUMNS:START}-->\n <!--{CA:GRID_COLGROUP_COLUMNS:END}-->\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns *ngIf=\"!customGridHeader else customGridHeader\">\n <tr>\n <th style=\"width: 50px\">\n \n </th>\n <th *ngFor=\"let col of columns; let i = index\" [ngStyle]=\"i === 0 ? {'width': '200px'} : {'width': '150px'}\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{col.header}}</span>\n </div>\n </th>\n <!--{CA:GRID_HEADER_COLUMNS:START}-->\n <!--{CA:GRID_HEADER_COLUMNS:END}-->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\" *ngIf=\"!customGridBody else customGridBody\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px;\">\n <a href=\"#\" [pRowToggler]=\"rowData\">\n <i [ngClass]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></i>\n </a>\n </td>\n <td (click)=\"selection = [rowData]\" style=\"width: 200px\">\n <span>{{getProp(rowData, 'nome') || ('yms.integration.list_grid_empty_field' | translate)}}</span>\n </td>\n <td (click)=\"selection = [rowData]\" style=\"width: 150px\">\n <span>{{getProp(rowData, 'entradaEm') | localizedDate | async}}</span>\n </td>\n <td (click)=\"selection = [rowData]\" style=\"width: 150px\">\n <span>{{getProp(rowData, 'saidaEm') | localizedDate | async}}</span>\n </td>\n <!--{CA:GRID_BODY_COLUMNS:START}-->\n <!--{CA:GRID_BODY_COLUMNS:END}-->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-rowData>\n <td colspan=\"4\">\n <p-tabView>\n <p-tabPanel header=\"Payload de entrada\">\n <pre *ngIf=\"rowData.entrada\">\n <code [highlight]=\"getPayload(rowData.entrada)\" [languages]=\"['json', 'xml']\">\n </code>\n </pre>\n <s-empty-state *ngIf=\"!rowData.entrada\" [title]=\"'N\u00E3o h\u00E1 informa\u00E7\u00E3o' | translate\"\n [description]=\"'N\u00E3o h\u00E1 informa\u00E7\u00F5es a serem exibidas' | translate\">\n </s-empty-state>\n </p-tabPanel>\n <p-tabPanel header=\"Payload de sa\u00EDda\">\n <pre *ngIf=\"rowData.saida\">\n <code [highlight]=\"getPayload(rowData.saida)\" [languages]=\"['json', 'xml']\">\n </code>\n </pre>\n <s-empty-state *ngIf=\"!rowData.saida\" [title]=\"'N\u00E3o h\u00E1 informa\u00E7\u00E3o' | translate\"\n [description]=\"'N\u00E3o h\u00E1 informa\u00E7\u00F5es a serem exibidas' | translate\">\n </s-empty-state>\n </p-tabPanel>\n <p-tabPanel header=\"Stack Trace\">\n <pre *ngIf=\"rowData.stackTrace\">\n <code [highlight]=\"getPayload(rowData.stackTrace)\" [languages]=\"['json', 'xml']\">\n </code>\n </pre>\n <s-empty-state *ngIf=\"!rowData.stackTrace\" [title]=\"'N\u00E3o h\u00E1 informa\u00E7\u00E3o' | translate\"\n [description]=\"'N\u00E3o h\u00E1 informa\u00E7\u00F5es a serem exibidas' | translate\">\n </s-empty-state>\n </p-tabPanel>\n </p-tabView>\n <div class=\"separator\"></div>\n </td>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'yms.integration.total_records'\" [translateParams]=\"{value: totalRecords}\"></span>\n </ng-template>\n <!--{CA:GRID_TEMPLATES:START}-->\n <!--{CA:GRID_TEMPLATES:END}-->\n </p-table>\n </div>\n </div>\n </div>\n</div>\n<!--{CA:FILE_CONTENTS:START}-->\n<!--{CA:FILE_CONTENTS:END}-->",
|
|
11194
11363
|
providers: [
|
|
11195
11364
|
api$1.ConfirmationService,
|
|
11196
11365
|
],
|
|
@@ -15501,6 +15670,8 @@
|
|
|
15501
15670
|
exports.InfoComponent = InfoComponent;
|
|
15502
15671
|
exports.InfoDescritor = InfoDescritor;
|
|
15503
15672
|
exports.IntegrationWebSocket = IntegrationWebSocket;
|
|
15673
|
+
exports.LogCircuitModule = LogCircuitModule;
|
|
15674
|
+
exports.LogCircuitService = LogCircuitService;
|
|
15504
15675
|
exports.LogsModule = LogsModule;
|
|
15505
15676
|
exports.LogsService = LogsService;
|
|
15506
15677
|
exports.LprModule = LprModule;
|
|
@@ -15548,82 +15719,83 @@
|
|
|
15548
15719
|
exports.highlightLanguages = highlightLanguages;
|
|
15549
15720
|
exports.ɵa = Service;
|
|
15550
15721
|
exports.ɵb = CustomStompConfig;
|
|
15551
|
-
exports.ɵba =
|
|
15552
|
-
exports.ɵbb =
|
|
15553
|
-
exports.ɵbc = EntityService$
|
|
15554
|
-
exports.ɵbd =
|
|
15555
|
-
exports.ɵbe =
|
|
15556
|
-
exports.ɵbf =
|
|
15557
|
-
exports.ɵbg =
|
|
15558
|
-
exports.ɵbh =
|
|
15559
|
-
exports.ɵbi =
|
|
15560
|
-
exports.ɵbj =
|
|
15561
|
-
exports.ɵbk =
|
|
15562
|
-
exports.ɵbl =
|
|
15563
|
-
exports.ɵbm =
|
|
15564
|
-
exports.ɵbn =
|
|
15565
|
-
exports.ɵbo =
|
|
15566
|
-
exports.ɵbp =
|
|
15567
|
-
exports.ɵbq =
|
|
15568
|
-
exports.ɵbr =
|
|
15569
|
-
exports.ɵbs =
|
|
15570
|
-
exports.ɵbt =
|
|
15571
|
-
exports.ɵbu =
|
|
15572
|
-
exports.ɵbv =
|
|
15573
|
-
exports.ɵbw =
|
|
15574
|
-
exports.ɵbx =
|
|
15575
|
-
exports.ɵby =
|
|
15576
|
-
exports.ɵbz =
|
|
15722
|
+
exports.ɵba = IntegrationService;
|
|
15723
|
+
exports.ɵbb = AgendaService;
|
|
15724
|
+
exports.ɵbc = EntityService$3;
|
|
15725
|
+
exports.ɵbd = EntityService$2;
|
|
15726
|
+
exports.ɵbe = UtilsMessageService;
|
|
15727
|
+
exports.ɵbf = WmsIntegrationStrategyFactory;
|
|
15728
|
+
exports.ɵbg = DadosColetaService;
|
|
15729
|
+
exports.ɵbh = ExternalTenantService;
|
|
15730
|
+
exports.ɵbi = RegisterDocumentModule;
|
|
15731
|
+
exports.ɵbj = CpfCnpjFormatModule;
|
|
15732
|
+
exports.ɵbk = CpfCnpjFormatPipe;
|
|
15733
|
+
exports.ɵbl = RegisterDocumentComponent;
|
|
15734
|
+
exports.ɵbm = InsertKeyModule;
|
|
15735
|
+
exports.ɵbn = InsertKeyComponent;
|
|
15736
|
+
exports.ɵbo = IntegrationService$1;
|
|
15737
|
+
exports.ɵbp = RecebimentoFormComponent;
|
|
15738
|
+
exports.ɵbq = DerivacaoService;
|
|
15739
|
+
exports.ɵbr = NotaValidatorService;
|
|
15740
|
+
exports.ɵbs = TransgeniaService;
|
|
15741
|
+
exports.ɵbt = VerificaNotafiscal;
|
|
15742
|
+
exports.ɵbu = BuildFormField;
|
|
15743
|
+
exports.ɵbv = ExpedicaoFormComponent;
|
|
15744
|
+
exports.ɵbw = ExpedicaoInfoComponent;
|
|
15745
|
+
exports.ɵbx = RecebimentoInfoComponent;
|
|
15746
|
+
exports.ɵby = DevolucaoFormComponent;
|
|
15747
|
+
exports.ɵbz = DevolucaoService;
|
|
15577
15748
|
exports.ɵc = ViewImageComponent;
|
|
15578
|
-
exports.ɵca =
|
|
15579
|
-
exports.ɵcb =
|
|
15580
|
-
exports.ɵcc =
|
|
15581
|
-
exports.ɵcd =
|
|
15582
|
-
exports.ɵce =
|
|
15583
|
-
exports.ɵcf =
|
|
15584
|
-
exports.ɵcg =
|
|
15585
|
-
exports.ɵch =
|
|
15586
|
-
exports.ɵci =
|
|
15587
|
-
exports.ɵcj =
|
|
15588
|
-
exports.ɵck =
|
|
15589
|
-
exports.ɵcl =
|
|
15590
|
-
exports.ɵcm =
|
|
15591
|
-
exports.ɵcn =
|
|
15592
|
-
exports.ɵco =
|
|
15593
|
-
exports.ɵcp =
|
|
15594
|
-
exports.ɵcq =
|
|
15595
|
-
exports.ɵcr =
|
|
15596
|
-
exports.ɵcs =
|
|
15597
|
-
exports.ɵct =
|
|
15598
|
-
exports.ɵcu =
|
|
15599
|
-
exports.ɵcv =
|
|
15600
|
-
exports.ɵcw =
|
|
15601
|
-
exports.ɵcx =
|
|
15602
|
-
exports.ɵcy =
|
|
15603
|
-
exports.ɵcz =
|
|
15749
|
+
exports.ɵca = DevolucaoChegadaVeiculoOverride;
|
|
15750
|
+
exports.ɵcb = RecebimentoOrdemCompraFormComponent;
|
|
15751
|
+
exports.ɵcc = OrdemCompraService;
|
|
15752
|
+
exports.ɵcd = RecebimentoOrdemCompraService;
|
|
15753
|
+
exports.ɵce = RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
15754
|
+
exports.ɵcf = RecebimentoOrdemCompraInfoComponent;
|
|
15755
|
+
exports.ɵcg = DevolucaoInfoComponent;
|
|
15756
|
+
exports.ɵch = ContratoFormComponent;
|
|
15757
|
+
exports.ɵci = OrdemCompraFormComponent;
|
|
15758
|
+
exports.ɵcj = ProcessoAvulsoFormComponent;
|
|
15759
|
+
exports.ɵck = ProcessoAvulsoService;
|
|
15760
|
+
exports.ɵcl = ProcessoAvulsoChegadaVeiculoOverride;
|
|
15761
|
+
exports.ɵcm = ProcessoAvulsoInfoComponent;
|
|
15762
|
+
exports.ɵcn = LogIntegracaoDescritor;
|
|
15763
|
+
exports.ɵco = LogIntegracaoComponent;
|
|
15764
|
+
exports.ɵcp = LogIntegracaoService;
|
|
15765
|
+
exports.ɵcq = DerivacaoModule;
|
|
15766
|
+
exports.ɵcr = DevolucaoModule;
|
|
15767
|
+
exports.ɵcs = OrdemCompraModule;
|
|
15768
|
+
exports.ɵct = RecebimentoOrdemCompraModule;
|
|
15769
|
+
exports.ɵcu = TransgeniaModule;
|
|
15770
|
+
exports.ɵcv = ProcessoAvulsoModule;
|
|
15771
|
+
exports.ɵcw = LogIntegracaoModule;
|
|
15772
|
+
exports.ɵcx = NotaFormModule;
|
|
15773
|
+
exports.ɵcy = DirectivesModule;
|
|
15774
|
+
exports.ɵcz = TrimDirective;
|
|
15604
15775
|
exports.ɵd = LogDescritor;
|
|
15776
|
+
exports.ɵda = NotaFormComponent;
|
|
15605
15777
|
exports.ɵe = LogsComponent;
|
|
15606
15778
|
exports.ɵf = PortariasService;
|
|
15607
15779
|
exports.ɵg = EntradaComponent;
|
|
15608
15780
|
exports.ɵh = AgendasComponent;
|
|
15609
15781
|
exports.ɵi = ConfirmacaoComponent;
|
|
15610
|
-
exports.ɵj =
|
|
15611
|
-
exports.ɵk =
|
|
15612
|
-
exports.ɵl =
|
|
15613
|
-
exports.ɵm =
|
|
15614
|
-
exports.ɵn =
|
|
15615
|
-
exports.ɵo =
|
|
15616
|
-
exports.ɵp =
|
|
15617
|
-
exports.ɵq =
|
|
15618
|
-
exports.ɵr =
|
|
15619
|
-
exports.ɵs =
|
|
15620
|
-
exports.ɵt =
|
|
15621
|
-
exports.ɵu =
|
|
15622
|
-
exports.ɵv =
|
|
15623
|
-
exports.ɵw =
|
|
15624
|
-
exports.ɵx =
|
|
15625
|
-
exports.ɵy =
|
|
15626
|
-
exports.ɵz =
|
|
15782
|
+
exports.ɵj = EntityService;
|
|
15783
|
+
exports.ɵk = VisitedInfoDescritor;
|
|
15784
|
+
exports.ɵl = VisitedInfoComponent;
|
|
15785
|
+
exports.ɵm = VisitedInfoService;
|
|
15786
|
+
exports.ɵn = SchedulingComponent;
|
|
15787
|
+
exports.ɵo = LobbyService;
|
|
15788
|
+
exports.ɵp = EntityService$1;
|
|
15789
|
+
exports.ɵq = SchedulingService;
|
|
15790
|
+
exports.ɵr = VisitanteComponent;
|
|
15791
|
+
exports.ɵs = VisitanteFormComponent;
|
|
15792
|
+
exports.ɵt = CredencialFormComponent;
|
|
15793
|
+
exports.ɵu = FocusService;
|
|
15794
|
+
exports.ɵv = FormWmsService;
|
|
15795
|
+
exports.ɵw = DocumentGridModule;
|
|
15796
|
+
exports.ɵx = DocumentGridComponent;
|
|
15797
|
+
exports.ɵy = DocumentGridFacade;
|
|
15798
|
+
exports.ɵz = DocumentService;
|
|
15627
15799
|
|
|
15628
15800
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
15629
15801
|
|