@senior-agronegocio/angular-components 0.0.9885 → 0.0.9886
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/senior-agronegocio-angular-components.umd.js +60 -65
- package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js +2 -2
- package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
- package/components/event-control-board/common/event-control-constants.d.ts +2 -8
- package/components/event-control-board/event-control-board.component.d.ts +3 -0
- package/components/event-control-board/service/rural-estate/rural-estate.d.ts +0 -2
- package/esm2015/components/event-control-board/common/event-control-constants.js +1 -7
- package/esm2015/components/event-control-board/event-control-board.component.js +49 -46
- package/esm2015/components/event-control-board/service/rural-estate/rural-estate.js +1 -10
- package/esm2015/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.component.js +2 -2
- package/esm2015/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.component.js +2 -2
- package/esm2015/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.component.js +2 -2
- package/esm2015/components/modal-invoice-pj/modal-invoice-pj-base.class.js +2 -2
- package/esm2015/services/i18n/en-US.js +2 -1
- package/esm2015/services/i18n/es-CO.js +2 -1
- package/esm2015/services/i18n/pt-BR.js +6 -4
- package/esm5/components/event-control-board/common/event-control-constants.js +1 -7
- package/esm5/components/event-control-board/event-control-board.component.js +50 -47
- package/esm5/components/event-control-board/service/rural-estate/rural-estate.js +1 -10
- package/esm5/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.component.js +2 -2
- package/esm5/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.component.js +2 -2
- package/esm5/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.component.js +2 -2
- package/esm5/components/modal-invoice-pj/modal-invoice-pj-base.class.js +2 -2
- package/esm5/services/i18n/en-US.js +2 -1
- package/esm5/services/i18n/es-CO.js +2 -1
- package/esm5/services/i18n/pt-BR.js +6 -4
- package/fesm2015/senior-agronegocio-angular-components.js +59 -64
- package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
- package/fesm5/senior-agronegocio-angular-components.js +60 -65
- package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/services/i18n/en-US.d.ts +1 -0
- package/services/i18n/es-CO.d.ts +1 -0
- package/services/i18n/pt-BR.d.ts +1 -0
- package/components/event-control-board/common/input-fields.d.ts +0 -5
- package/esm2015/components/event-control-board/common/input-fields.js +0 -7
- package/esm5/components/event-control-board/common/input-fields.js +0 -7
|
@@ -574,6 +574,7 @@ var WebsocketModule = /** @class */ (function () {
|
|
|
574
574
|
return WebsocketModule;
|
|
575
575
|
}());
|
|
576
576
|
|
|
577
|
+
var INVOICE_CLOSING = "Fechamento de NF";
|
|
577
578
|
var ptBR = {
|
|
578
579
|
"agro.angular_components.table_empty_description": "Altere os filtros acima para gerar outros resultados de busca",
|
|
579
580
|
"agro.angular_components.nothing_found": "Nenhum registro encontrado",
|
|
@@ -597,6 +598,7 @@ var ptBR = {
|
|
|
597
598
|
"agro.angular_components.change_request_event_summary": "Alteração de \nPesagem",
|
|
598
599
|
"agro.angular_components.ticket_maintenance_header": "Manutenção de ticket",
|
|
599
600
|
"agro.angular_components.invoice_creating_event": "Emissão de NF",
|
|
601
|
+
"agro.angular_components.invoice_close_event": INVOICE_CLOSING,
|
|
600
602
|
"agro.angular_components.balance_entry_control_event": "Entrada/saída balança",
|
|
601
603
|
"agro.angular_components.event_origin_label": "Origem do evento",
|
|
602
604
|
"agro.angular_components.event_details_header": "Detalhes do Evento",
|
|
@@ -814,11 +816,11 @@ var ptBR = {
|
|
|
814
816
|
"agro.angular_components.ORIGINATION_CREATE_INVOICE": "Emissão de NF",
|
|
815
817
|
"agro.angular_components.ORIGINATION_CREATE_EFFECTIVE_BALANCE": "Emissão de saldo efetivo",
|
|
816
818
|
"agro.angular_components.PRODUCER_NET_VALUE_EFFECTIVE_BALANCE_CONFIRMATION": "Confirmação de saldo efetivo",
|
|
817
|
-
"agro.angular_components.CLOSE_INVOICE_FIXATION":
|
|
818
|
-
"agro.angular_components.INVOICE_CLOSE_INVOICE":
|
|
819
|
+
"agro.angular_components.CLOSE_INVOICE_FIXATION": INVOICE_CLOSING,
|
|
820
|
+
"agro.angular_components.INVOICE_CLOSE_INVOICE": INVOICE_CLOSING,
|
|
819
821
|
"agro.angular_components.ORIGINATION_CREATE_EFFECTIVE_CONFIRMATION": "Confirmação efetiva",
|
|
820
822
|
"agro.angular_components.ORIGINATION_CREATE_PROVISIONAL_BALANCE": "Saldo provisório",
|
|
821
|
-
"agro.angular_components.CLOSE_INVOICE_TRANSFER":
|
|
823
|
+
"agro.angular_components.CLOSE_INVOICE_TRANSFER": INVOICE_CLOSING,
|
|
822
824
|
"agro.angular_components.REOPEN_INVOICE_TRANSFER": "Reabertura da NF",
|
|
823
825
|
"agro.angular_components.TRANSFER_CREATE_FINANCIAL_TITLE": "Criação de título financeiro",
|
|
824
826
|
"agro.angular_components.TRANSFER_CANCEL_FINANCIAL_TITLE": "Cancelamento de título financeiro",
|
|
@@ -918,6 +920,7 @@ var enUS = {
|
|
|
918
920
|
"agro.angular_components.change_request_event_summary": "Weight Change",
|
|
919
921
|
"agro.angular_components.ticket_maintenance_header": "Ticket Maintenance",
|
|
920
922
|
"agro.angular_components.invoice_creating_event": "Invoice Issuance",
|
|
923
|
+
"agro.angular_components.invoice_close_event": "Invoice Closing",
|
|
921
924
|
"agro.angular_components.balance_entry_control_event": "Balance Entry/Exit",
|
|
922
925
|
"agro.angular_components.event_origin_label": "Event origin",
|
|
923
926
|
"agro.angular_components.event_details_header": "Event Details",
|
|
@@ -1239,6 +1242,7 @@ var esCO = {
|
|
|
1239
1242
|
"agro.angular_components.change_request_event_summary": "Cambio de \nPesaje",
|
|
1240
1243
|
"agro.angular_components.ticket_maintenance_header": "Mantenimiento de ticket",
|
|
1241
1244
|
"agro.angular_components.invoice_creating_event": "Emisión de Factura",
|
|
1245
|
+
"agro.angular_components.invoice_close_event": "Cierre de Factura",
|
|
1242
1246
|
"agro.angular_components.balance_entry_control_event": "Entrada/salida balanza",
|
|
1243
1247
|
"agro.angular_components.event_origin_label": "Origen del evento",
|
|
1244
1248
|
"agro.angular_components.event_details_header": "Detalles del Evento",
|
|
@@ -5789,13 +5793,6 @@ var EventOperation;
|
|
|
5789
5793
|
EventOperation["ORIGINATION_CREATE_STOCK_MOVEMENT"] = "ORIGINATION_CREATE_STOCK_MOVEMENT";
|
|
5790
5794
|
})(EventOperation || (EventOperation = {}));
|
|
5791
5795
|
|
|
5792
|
-
var InputFields;
|
|
5793
|
-
(function (InputFields) {
|
|
5794
|
-
InputFields["AGRO_INVOICE_TYPE"] = "agroInvoiceType";
|
|
5795
|
-
InputFields["INVOICE_TYPE"] = "invoiceType";
|
|
5796
|
-
InputFields["INVOICE_NUMBER"] = "number";
|
|
5797
|
-
})(InputFields || (InputFields = {}));
|
|
5798
|
-
|
|
5799
5796
|
var eventItem = [
|
|
5800
5797
|
{ label: "agro.angular_components.ticket_event", value: EventOperation.TICKET },
|
|
5801
5798
|
{ label: "agro.angular_components.provisional_event", value: EventOperation.PROVISIONAL },
|
|
@@ -5817,11 +5814,6 @@ var eventItem = [
|
|
|
5817
5814
|
label: "agro.angular_components." + EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5818
5815
|
value: EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5819
5816
|
},
|
|
5820
|
-
{
|
|
5821
|
-
label: "agro.angular_components." + EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5822
|
-
value: EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5823
|
-
subLabelField: InputFields.AGRO_INVOICE_TYPE,
|
|
5824
|
-
},
|
|
5825
5817
|
{ label: "agro.angular_components." + EventOperation.REPROCESS_INVOICE, value: EventOperation.REPROCESS_INVOICE },
|
|
5826
5818
|
{ label: "agro.angular_components." + EventOperation.EFFECTIVE_CONFIRMATION, value: EventOperation.EFFECTIVE_CONFIRMATION },
|
|
5827
5819
|
{ label: "agro.angular_components." + EventOperation.CHANGE_REQUEST, value: EventOperation.CHANGE_REQUEST },
|
|
@@ -6434,7 +6426,7 @@ var EventControlBoardComponent = /** @class */ (function () {
|
|
|
6434
6426
|
if (prescriptionOperations.includes(eventOperation)) {
|
|
6435
6427
|
formattedSubtitle = this.translate.instant('agro.angular_components.new_prescription_page', { count: subTitle });
|
|
6436
6428
|
}
|
|
6437
|
-
return formattedSubtitle;
|
|
6429
|
+
return formattedSubtitle !== null && formattedSubtitle !== void 0 ? formattedSubtitle : null;
|
|
6438
6430
|
};
|
|
6439
6431
|
EventControlBoardComponent.prototype.onGridChange = function (event) {
|
|
6440
6432
|
var size = event === null || event === void 0 ? void 0 : event.rows;
|
|
@@ -6497,57 +6489,60 @@ var EventControlBoardComponent = /** @class */ (function () {
|
|
|
6497
6489
|
return producerBalanceEntryControlId ? producerBalanceEntryControlId : null;
|
|
6498
6490
|
};
|
|
6499
6491
|
EventControlBoardComponent.prototype.stepSelected = function (event) {
|
|
6500
|
-
var _this = this;
|
|
6501
6492
|
this.selectedStep = event.step;
|
|
6502
6493
|
this.applySidebarTitle("");
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
case EventOrigin.TICKET:
|
|
6506
|
-
case EventOrigin.INVOICE:
|
|
6507
|
-
case EventOrigin.CREATE_INVOICE:
|
|
6508
|
-
this.sidebarLoading = true;
|
|
6509
|
-
{
|
|
6510
|
-
var param = JSON.parse(this.selectedStep.item.input);
|
|
6511
|
-
var producerInvoiceId = this.getProducerInvoiceIdFromParams(param);
|
|
6512
|
-
var filterQuery = "";
|
|
6513
|
-
if (!producerInvoiceId) {
|
|
6514
|
-
var producerBalanceEntryControlId = this.getProducerBalanceEntryControlIdFromParams(param);
|
|
6515
|
-
if (!producerBalanceEntryControlId) {
|
|
6516
|
-
this.sidebarLoading = false;
|
|
6517
|
-
return;
|
|
6518
|
-
}
|
|
6519
|
-
filterQuery = "producerBalanceEntryControl.id eq '" + producerBalanceEntryControlId + "'";
|
|
6520
|
-
}
|
|
6521
|
-
else {
|
|
6522
|
-
filterQuery = "id eq '" + producerInvoiceId + "'";
|
|
6523
|
-
}
|
|
6524
|
-
this.producerInvoiceService
|
|
6525
|
-
.list({
|
|
6526
|
-
displayFields: ["*", "producerBalanceEntryControl.*", "producerBalanceEntryControl.producer.*"],
|
|
6527
|
-
filterQuery: filterQuery,
|
|
6528
|
-
page: 0,
|
|
6529
|
-
size: 1,
|
|
6530
|
-
})
|
|
6531
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
6532
|
-
.subscribe(function (result) {
|
|
6533
|
-
_this.producerInvoice = result === null || result === void 0 ? void 0 : result.contents[0];
|
|
6534
|
-
_this.producerInvoice;
|
|
6535
|
-
_this.sidebarLoading = false;
|
|
6536
|
-
_this.applySidebarTitle(_this.getProducerInvoiceNumberAndSerie());
|
|
6537
|
-
}, function () {
|
|
6538
|
-
_this.sidebarLoading = false;
|
|
6539
|
-
});
|
|
6540
|
-
}
|
|
6541
|
-
break;
|
|
6542
|
-
case EventOrigin.FIXATION:
|
|
6543
|
-
case EventOrigin.CANCEL_FIXATION:
|
|
6544
|
-
case EventOrigin.CHANGE_REQUEST:
|
|
6545
|
-
case EventOrigin.TRANSFER:
|
|
6546
|
-
break;
|
|
6494
|
+
if (this.shouldLoadProducerInvoice(this.selectedStep.eventType)) {
|
|
6495
|
+
this.loadSelectedStepProducerInvoice();
|
|
6547
6496
|
}
|
|
6548
6497
|
this.showReprocessButton = event.step.state === StepState$1.Warning;
|
|
6549
6498
|
this.showSidebar = true;
|
|
6550
6499
|
};
|
|
6500
|
+
EventControlBoardComponent.prototype.shouldLoadProducerInvoice = function (eventType) {
|
|
6501
|
+
return [
|
|
6502
|
+
EventOrigin.BALANCE_ENTRY_CONTROL,
|
|
6503
|
+
EventOrigin.TICKET,
|
|
6504
|
+
EventOrigin.INVOICE,
|
|
6505
|
+
EventOrigin.CREATE_INVOICE,
|
|
6506
|
+
EventOrigin.CLOSE_INVOICE,
|
|
6507
|
+
].includes(eventType);
|
|
6508
|
+
};
|
|
6509
|
+
EventControlBoardComponent.prototype.loadSelectedStepProducerInvoice = function () {
|
|
6510
|
+
var _this = this;
|
|
6511
|
+
this.sidebarLoading = true;
|
|
6512
|
+
var param = JSON.parse(this.selectedStep.item.input);
|
|
6513
|
+
var filterQuery = this.getProducerInvoiceFilterQuery(param);
|
|
6514
|
+
if (!filterQuery) {
|
|
6515
|
+
this.sidebarLoading = false;
|
|
6516
|
+
return;
|
|
6517
|
+
}
|
|
6518
|
+
this.producerInvoiceService
|
|
6519
|
+
.list({
|
|
6520
|
+
displayFields: ["*", "producerBalanceEntryControl.*", "producerBalanceEntryControl.producer.*"],
|
|
6521
|
+
filterQuery: filterQuery,
|
|
6522
|
+
page: 0,
|
|
6523
|
+
size: 1,
|
|
6524
|
+
})
|
|
6525
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
6526
|
+
.subscribe(function (result) {
|
|
6527
|
+
_this.producerInvoice = result === null || result === void 0 ? void 0 : result.contents[0];
|
|
6528
|
+
_this.producerInvoice;
|
|
6529
|
+
_this.sidebarLoading = false;
|
|
6530
|
+
_this.applySidebarTitle(_this.getProducerInvoiceNumberAndSerie());
|
|
6531
|
+
}, function () {
|
|
6532
|
+
_this.sidebarLoading = false;
|
|
6533
|
+
});
|
|
6534
|
+
};
|
|
6535
|
+
EventControlBoardComponent.prototype.getProducerInvoiceFilterQuery = function (param) {
|
|
6536
|
+
var producerInvoiceId = this.getProducerInvoiceIdFromParams(param);
|
|
6537
|
+
if (producerInvoiceId) {
|
|
6538
|
+
return "id eq '" + producerInvoiceId + "'";
|
|
6539
|
+
}
|
|
6540
|
+
var producerBalanceEntryControlId = this.getProducerBalanceEntryControlIdFromParams(param);
|
|
6541
|
+
if (!producerBalanceEntryControlId) {
|
|
6542
|
+
return null;
|
|
6543
|
+
}
|
|
6544
|
+
return "producerBalanceEntryControl.id eq '" + producerBalanceEntryControlId + "'";
|
|
6545
|
+
};
|
|
6551
6546
|
EventControlBoardComponent.prototype.applySidebarTitle = function (title) {
|
|
6552
6547
|
this.sidebarTitle = this.translate.instant("agro.angular_components.event_sidebar_title", { eventNumber: title });
|
|
6553
6548
|
};
|
|
@@ -7606,7 +7601,7 @@ var ModalInvoicePjBase = /** @class */ (function () {
|
|
|
7606
7601
|
}))
|
|
7607
7602
|
.subscribe(function (result) {
|
|
7608
7603
|
var _a;
|
|
7609
|
-
_this.gridData = ((_a = result === null || result === void 0 ? void 0 : result.result) === null || _a === void 0 ? void 0 : _a.invoices) || [];
|
|
7604
|
+
_this.gridData = (((_a = result === null || result === void 0 ? void 0 : result.result) === null || _a === void 0 ? void 0 : _a.invoices) || []).map(function (invoice) { return (__assign(__assign({}, invoice), { _uniqueId: invoice.externalInvoiceId || invoice.invoiceId })); });
|
|
7610
7605
|
if (_this.gridData.length === 0 && !searchValue) {
|
|
7611
7606
|
_this.dontHaveAnyInvoice = true;
|
|
7612
7607
|
}
|
|
@@ -7746,7 +7741,7 @@ var ModalInvoicePjForOriginationComponent = /** @class */ (function (_super) {
|
|
|
7746
7741
|
ModalInvoicePjForOriginationComponent = __decorate([
|
|
7747
7742
|
Component({
|
|
7748
7743
|
selector: 's-modal-invoice-pj-for-origination',
|
|
7749
|
-
template: "<p-dialog\r\n header=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [(visible)]=\"visible\"\r\n [modal]=\"true\"\r\n class=\"add-invoice-modal\"\r\n [closeOnEscape]=\"false\"\r\n (onHide)=\"cancelPooling()\"\r\n [dismissableMask]=\"false\"\r\n>\r\n <ng-container *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"ui-g\">\r\n <label for=\"invoiceSearchInput\">{{ 'agro.angular_components.number' | libTranslate }}</label>\r\n <input\r\n type=\"text\"\r\n id=\"invoiceSearchInput\"\r\n pInputText\r\n [formControl]=\"searchValue\"\r\n [placeholder]=\"'' | libTranslate\"\r\n [required]=\"false\"\r\n />\r\n <div class=\"ui-g-12\">\r\n <p-table\r\n [(selection)]=\"selected\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"
|
|
7744
|
+
template: "<p-dialog\r\n header=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [(visible)]=\"visible\"\r\n [modal]=\"true\"\r\n class=\"add-invoice-modal\"\r\n [closeOnEscape]=\"false\"\r\n (onHide)=\"cancelPooling()\"\r\n [dismissableMask]=\"false\"\r\n>\r\n <ng-container *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"ui-g\">\r\n <label for=\"invoiceSearchInput\">{{ 'agro.angular_components.number' | libTranslate }}</label>\r\n <input\r\n type=\"text\"\r\n id=\"invoiceSearchInput\"\r\n pInputText\r\n [formControl]=\"searchValue\"\r\n [placeholder]=\"'' | libTranslate\"\r\n [required]=\"false\"\r\n />\r\n <div class=\"ui-g-12\">\r\n <p-table\r\n [(selection)]=\"selected\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"_uniqueId\"\r\n [rows]=\"10\"\r\n [paginator]=\"true\"\r\n [lazyLoadOnInit]=\"false\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [lazy]=\"true\"\r\n (onLazyLoad)=\"updateGridData($event)\"\r\n [resizableColumns]=\"true\"\r\n *sLoadingState=\"gridLoading\"\r\n sortMode=\"multiple\"\r\n [selectionMode]=\"'multiple'\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th class=\"checkbox\" scope=\"col\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <ng-container *ngFor=\"let col of columns\">\r\n <th\r\n *ngIf=\"col.sortable === undefined || col.sortable\"\r\n [pSortableColumn]=\"col.field\"\r\n scope=\"col\"\r\n >\r\n {{ col.header }}\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </th>\r\n <th *ngIf=\"col.sortable === false || col.sortable === null\" scope=\"col\">\r\n {{ col.header }}\r\n </th>\r\n </ng-container>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\r\n <tr>\r\n <td class=\"checkbox\" tabindex=\"0\">\r\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\r\n </td>\r\n <td\r\n [pSelectableRow]=\"rowData\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n *ngFor=\"let col of columns\"\r\n class=\"column\"\r\n tabindex=\"0\"\r\n >\r\n <ng-container>\r\n {{ gridFieldValuesMap[col.field] ? gridFieldValuesMap[col.field](rowData) :\r\n rowData[col.field] }}\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"paginatorright\">\r\n <span>{{ gridTotalRecords }} registros encontrados</span>\r\n </ng-template>\r\n </p-table>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"dontHaveAnyInvoice\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.add_pj_invoice_modal_no_invoices_found' | libTranslate }}\"\r\n primaryActionLabel=\"{{ 'agro.angular_components.error_server_try_again' | libTranslate }}\"\r\n (primaryAction)=\"tryToSearchAgain()\"\r\n description=\"{{ 'agro.angular_components.no_register_found_for_external_invoices_summary' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </ng-container>\r\n\r\n <p-footer class=\"footer\" *ngIf=\"!dontHaveAnyInvoice\">\r\n <s-button\r\n [priority]=\"buttonPriority.Primary\"\r\n label=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [disabled]=\"!selected?.length\"\r\n (click)=\"add()\"\r\n (keydown.enter)=\"add()\"\r\n ></s-button>\r\n <s-button\r\n [priority]=\"buttonPriority.Link\"\r\n label=\"{{ 'agro.angular_components.cancel' | libTranslate }}\"\r\n (click)=\"cancel()\"\r\n (keydown.enter)=\"cancel()\"\r\n ></s-button>\r\n </p-footer>\r\n</p-dialog>\r\n",
|
|
7750
7745
|
styles: [".footer{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}.add-invoice-modal{width:480px;max-width:480px}.add-invoice-modal input[type=text]{width:100%}.add-invoice-modal .ui-dialog{width:480px!important}.add-invoice-modal .ui-dialog .ui-dialog-content{min-height:175px}td.checkbox,th.checkbox{width:50px}td.column,th.column{min-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]
|
|
7751
7746
|
})
|
|
7752
7747
|
], ModalInvoicePjForOriginationComponent);
|
|
@@ -7813,7 +7808,7 @@ var ModalInvoicePjForTransferComponent = /** @class */ (function (_super) {
|
|
|
7813
7808
|
ModalInvoicePjForTransferComponent = __decorate([
|
|
7814
7809
|
Component({
|
|
7815
7810
|
selector: 's-modal-invoice-pj-for-transfer',
|
|
7816
|
-
template: "<p-dialog\r\n header=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [(visible)]=\"visible\"\r\n [modal]=\"true\"\r\n class=\"add-invoice-modal\"\r\n [closeOnEscape]=\"false\"\r\n (onHide)=\"cancelPooling()\"\r\n [dismissableMask]=\"false\"\r\n>\r\n <ng-container *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"ui-g\">\r\n <label for=\"invoiceSearchInput\">{{ 'agro.angular_components.number' | libTranslate }}</label>\r\n <input\r\n type=\"text\"\r\n id=\"invoiceSearchInput\"\r\n pInputText\r\n [formControl]=\"searchValue\"\r\n [placeholder]=\"'' | libTranslate\"\r\n [required]=\"false\"\r\n />\r\n <div class=\"ui-g-12\">\r\n <p-table\r\n [(selection)]=\"selected\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"
|
|
7811
|
+
template: "<p-dialog\r\n header=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [(visible)]=\"visible\"\r\n [modal]=\"true\"\r\n class=\"add-invoice-modal\"\r\n [closeOnEscape]=\"false\"\r\n (onHide)=\"cancelPooling()\"\r\n [dismissableMask]=\"false\"\r\n>\r\n <ng-container *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"ui-g\">\r\n <label for=\"invoiceSearchInput\">{{ 'agro.angular_components.number' | libTranslate }}</label>\r\n <input\r\n type=\"text\"\r\n id=\"invoiceSearchInput\"\r\n pInputText\r\n [formControl]=\"searchValue\"\r\n [placeholder]=\"'' | libTranslate\"\r\n [required]=\"false\"\r\n />\r\n <div class=\"ui-g-12\">\r\n <p-table\r\n [(selection)]=\"selected\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"_uniqueId\"\r\n [rows]=\"10\"\r\n [paginator]=\"true\"\r\n [lazyLoadOnInit]=\"false\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [lazy]=\"true\"\r\n (onLazyLoad)=\"updateGridData($event)\"\r\n [resizableColumns]=\"true\"\r\n *sLoadingState=\"gridLoading\"\r\n sortMode=\"multiple\"\r\n [selectionMode]=\"'multiple'\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th class=\"checkbox\" scope=\"col\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <ng-container *ngFor=\"let col of columns\">\r\n <th\r\n *ngIf=\"col.sortable === undefined || col.sortable\"\r\n [pSortableColumn]=\"col.field\"\r\n scope=\"col\"\r\n >\r\n {{ col.header }}\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </th>\r\n <th *ngIf=\"col.sortable === false || col.sortable === null\" scope=\"col\">\r\n {{ col.header }}\r\n </th>\r\n </ng-container>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\r\n <tr>\r\n <td class=\"checkbox\" tabindex=\"0\">\r\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\r\n </td>\r\n <td\r\n [pSelectableRow]=\"rowData\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n *ngFor=\"let col of columns\"\r\n class=\"column\"\r\n tabindex=\"0\"\r\n >\r\n <ng-container>\r\n {{ gridFieldValuesMap[col.field] ? gridFieldValuesMap[col.field](rowData) :\r\n rowData[col.field] }}\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"paginatorright\">\r\n <span>{{ gridTotalRecords }} registros encontrados</span>\r\n </ng-template>\r\n </p-table>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"dontHaveAnyInvoice\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.add_pj_invoice_modal_no_invoices_found' | libTranslate }}\"\r\n primaryActionLabel=\"{{ 'agro.angular_components.error_server_try_again' | libTranslate }}\"\r\n (primaryAction)=\"tryToSearchAgain()\"\r\n description=\"{{ 'agro.angular_components.no_register_found_for_external_invoices_summary' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </ng-container>\r\n\r\n <p-footer class=\"footer\" *ngIf=\"!dontHaveAnyInvoice\">\r\n <s-button\r\n [priority]=\"buttonPriority.Primary\"\r\n label=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [disabled]=\"!selected?.length\"\r\n (click)=\"add()\"\r\n (keydown.enter)=\"add()\"\r\n ></s-button>\r\n <s-button\r\n [priority]=\"buttonPriority.Link\"\r\n label=\"{{ 'agro.angular_components.cancel' | libTranslate }}\"\r\n (click)=\"cancel()\"\r\n (keydown.enter)=\"cancel()\"\r\n ></s-button>\r\n </p-footer>\r\n</p-dialog>\r\n",
|
|
7817
7812
|
styles: [".footer{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}.add-invoice-modal{width:480px;max-width:480px}.add-invoice-modal input[type=text]{width:100%}.add-invoice-modal .ui-dialog{width:480px!important}.add-invoice-modal .ui-dialog .ui-dialog-content{min-height:175px}td.checkbox,th.checkbox{width:50px}td.column,th.column{min-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]
|
|
7818
7813
|
})
|
|
7819
7814
|
], ModalInvoicePjForTransferComponent);
|
|
@@ -8120,7 +8115,7 @@ var ModalInvoicePjForFixationComponent = /** @class */ (function (_super) {
|
|
|
8120
8115
|
ModalInvoicePjForFixationComponent = __decorate([
|
|
8121
8116
|
Component({
|
|
8122
8117
|
selector: 's-modal-invoice-pj-for-fixation',
|
|
8123
|
-
template: "<p-dialog\r\n header=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [(visible)]=\"visible\"\r\n [modal]=\"true\"\r\n class=\"add-invoice-modal\"\r\n [closeOnEscape]=\"false\"\r\n (onHide)=\"cancelPooling()\"\r\n [dismissableMask]=\"false\"\r\n>\r\n <ng-container *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"ui-g\">\r\n <label for=\"invoiceSearchInput\">{{ 'agro.angular_components.number' | libTranslate }}</label>\r\n <input\r\n type=\"text\"\r\n id=\"invoiceSearchInput\"\r\n pInputText\r\n [formControl]=\"searchValue\"\r\n [placeholder]=\"'' | libTranslate\"\r\n [required]=\"false\"\r\n />\r\n <div class=\"ui-g-12\">\r\n <p-table\r\n [(selection)]=\"selected\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"
|
|
8118
|
+
template: "<p-dialog\r\n header=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [(visible)]=\"visible\"\r\n [modal]=\"true\"\r\n class=\"add-invoice-modal\"\r\n [closeOnEscape]=\"false\"\r\n (onHide)=\"cancelPooling()\"\r\n [dismissableMask]=\"false\"\r\n>\r\n <ng-container *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"ui-g\">\r\n <label for=\"invoiceSearchInput\">{{ 'agro.angular_components.number' | libTranslate }}</label>\r\n <input\r\n type=\"text\"\r\n id=\"invoiceSearchInput\"\r\n pInputText\r\n [formControl]=\"searchValue\"\r\n [placeholder]=\"'' | libTranslate\"\r\n [required]=\"false\"\r\n />\r\n <div class=\"ui-g-12\">\r\n <p-table\r\n [(selection)]=\"selected\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"_uniqueId\"\r\n [rows]=\"10\"\r\n [paginator]=\"true\"\r\n [lazyLoadOnInit]=\"false\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [lazy]=\"true\"\r\n (onLazyLoad)=\"updateGridData($event)\"\r\n [resizableColumns]=\"true\"\r\n *sLoadingState=\"gridLoading\"\r\n sortMode=\"multiple\"\r\n [selectionMode]=\"'multiple'\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th class=\"checkbox\" scope=\"col\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <ng-container *ngFor=\"let col of columns\">\r\n <th\r\n *ngIf=\"col.sortable === undefined || col.sortable\"\r\n [pSortableColumn]=\"col.field\"\r\n scope=\"col\"\r\n >\r\n {{ col.header }}\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </th>\r\n <th *ngIf=\"col.sortable === false || col.sortable === null\" scope=\"col\">\r\n {{ col.header }}\r\n </th>\r\n </ng-container>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\r\n <tr>\r\n <td class=\"checkbox\" tabindex=\"0\">\r\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\r\n </td>\r\n <td\r\n [pSelectableRow]=\"rowData\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n *ngFor=\"let col of columns\"\r\n class=\"column\"\r\n tabindex=\"0\"\r\n >\r\n <ng-container>\r\n {{ gridFieldValuesMap[col.field] ? gridFieldValuesMap[col.field](rowData) :\r\n rowData[col.field] }}\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"paginatorright\">\r\n <span>{{ gridTotalRecords }} registros encontrados</span>\r\n </ng-template>\r\n </p-table>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"dontHaveAnyInvoice\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.add_pj_invoice_modal_no_invoices_found' | libTranslate }}\"\r\n primaryActionLabel=\"{{ 'agro.angular_components.error_server_try_again' | libTranslate }}\"\r\n (primaryAction)=\"tryToSearchAgain()\"\r\n description=\"{{ 'agro.angular_components.no_register_found_for_external_invoices_summary' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </ng-container>\r\n\r\n <p-footer class=\"footer\" *ngIf=\"!dontHaveAnyInvoice\">\r\n <s-button\r\n [priority]=\"buttonPriority.Primary\"\r\n label=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [disabled]=\"!selected?.length\"\r\n (click)=\"add()\"\r\n (keydown.enter)=\"add()\"\r\n ></s-button>\r\n <s-button\r\n [priority]=\"buttonPriority.Link\"\r\n label=\"{{ 'agro.angular_components.cancel' | libTranslate }}\"\r\n (click)=\"cancel()\"\r\n (keydown.enter)=\"cancel()\"\r\n ></s-button>\r\n </p-footer>\r\n</p-dialog>\r\n",
|
|
8124
8119
|
styles: [".footer{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}.add-invoice-modal{width:480px;max-width:480px}.add-invoice-modal input[type=text]{width:100%}.add-invoice-modal .ui-dialog{width:480px!important}.add-invoice-modal .ui-dialog .ui-dialog-content{min-height:175px}td.checkbox,th.checkbox{width:50px}td.column,th.column{min-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]
|
|
8125
8120
|
})
|
|
8126
8121
|
], ModalInvoicePjForFixationComponent);
|