@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
|
@@ -750,6 +750,7 @@
|
|
|
750
750
|
return WebsocketModule;
|
|
751
751
|
}());
|
|
752
752
|
|
|
753
|
+
var INVOICE_CLOSING = "Fechamento de NF";
|
|
753
754
|
var ptBR = {
|
|
754
755
|
"agro.angular_components.table_empty_description": "Altere os filtros acima para gerar outros resultados de busca",
|
|
755
756
|
"agro.angular_components.nothing_found": "Nenhum registro encontrado",
|
|
@@ -773,6 +774,7 @@
|
|
|
773
774
|
"agro.angular_components.change_request_event_summary": "Alteração de \nPesagem",
|
|
774
775
|
"agro.angular_components.ticket_maintenance_header": "Manutenção de ticket",
|
|
775
776
|
"agro.angular_components.invoice_creating_event": "Emissão de NF",
|
|
777
|
+
"agro.angular_components.invoice_close_event": INVOICE_CLOSING,
|
|
776
778
|
"agro.angular_components.balance_entry_control_event": "Entrada/saída balança",
|
|
777
779
|
"agro.angular_components.event_origin_label": "Origem do evento",
|
|
778
780
|
"agro.angular_components.event_details_header": "Detalhes do Evento",
|
|
@@ -990,11 +992,11 @@
|
|
|
990
992
|
"agro.angular_components.ORIGINATION_CREATE_INVOICE": "Emissão de NF",
|
|
991
993
|
"agro.angular_components.ORIGINATION_CREATE_EFFECTIVE_BALANCE": "Emissão de saldo efetivo",
|
|
992
994
|
"agro.angular_components.PRODUCER_NET_VALUE_EFFECTIVE_BALANCE_CONFIRMATION": "Confirmação de saldo efetivo",
|
|
993
|
-
"agro.angular_components.CLOSE_INVOICE_FIXATION":
|
|
994
|
-
"agro.angular_components.INVOICE_CLOSE_INVOICE":
|
|
995
|
+
"agro.angular_components.CLOSE_INVOICE_FIXATION": INVOICE_CLOSING,
|
|
996
|
+
"agro.angular_components.INVOICE_CLOSE_INVOICE": INVOICE_CLOSING,
|
|
995
997
|
"agro.angular_components.ORIGINATION_CREATE_EFFECTIVE_CONFIRMATION": "Confirmação efetiva",
|
|
996
998
|
"agro.angular_components.ORIGINATION_CREATE_PROVISIONAL_BALANCE": "Saldo provisório",
|
|
997
|
-
"agro.angular_components.CLOSE_INVOICE_TRANSFER":
|
|
999
|
+
"agro.angular_components.CLOSE_INVOICE_TRANSFER": INVOICE_CLOSING,
|
|
998
1000
|
"agro.angular_components.REOPEN_INVOICE_TRANSFER": "Reabertura da NF",
|
|
999
1001
|
"agro.angular_components.TRANSFER_CREATE_FINANCIAL_TITLE": "Criação de título financeiro",
|
|
1000
1002
|
"agro.angular_components.TRANSFER_CANCEL_FINANCIAL_TITLE": "Cancelamento de título financeiro",
|
|
@@ -1094,6 +1096,7 @@
|
|
|
1094
1096
|
"agro.angular_components.change_request_event_summary": "Weight Change",
|
|
1095
1097
|
"agro.angular_components.ticket_maintenance_header": "Ticket Maintenance",
|
|
1096
1098
|
"agro.angular_components.invoice_creating_event": "Invoice Issuance",
|
|
1099
|
+
"agro.angular_components.invoice_close_event": "Invoice Closing",
|
|
1097
1100
|
"agro.angular_components.balance_entry_control_event": "Balance Entry/Exit",
|
|
1098
1101
|
"agro.angular_components.event_origin_label": "Event origin",
|
|
1099
1102
|
"agro.angular_components.event_details_header": "Event Details",
|
|
@@ -1415,6 +1418,7 @@
|
|
|
1415
1418
|
"agro.angular_components.change_request_event_summary": "Cambio de \nPesaje",
|
|
1416
1419
|
"agro.angular_components.ticket_maintenance_header": "Mantenimiento de ticket",
|
|
1417
1420
|
"agro.angular_components.invoice_creating_event": "Emisión de Factura",
|
|
1421
|
+
"agro.angular_components.invoice_close_event": "Cierre de Factura",
|
|
1418
1422
|
"agro.angular_components.balance_entry_control_event": "Entrada/salida balanza",
|
|
1419
1423
|
"agro.angular_components.event_origin_label": "Origen del evento",
|
|
1420
1424
|
"agro.angular_components.event_details_header": "Detalles del Evento",
|
|
@@ -5965,13 +5969,6 @@
|
|
|
5965
5969
|
EventOperation["ORIGINATION_CREATE_STOCK_MOVEMENT"] = "ORIGINATION_CREATE_STOCK_MOVEMENT";
|
|
5966
5970
|
})(EventOperation || (EventOperation = {}));
|
|
5967
5971
|
|
|
5968
|
-
var InputFields;
|
|
5969
|
-
(function (InputFields) {
|
|
5970
|
-
InputFields["AGRO_INVOICE_TYPE"] = "agroInvoiceType";
|
|
5971
|
-
InputFields["INVOICE_TYPE"] = "invoiceType";
|
|
5972
|
-
InputFields["INVOICE_NUMBER"] = "number";
|
|
5973
|
-
})(InputFields || (InputFields = {}));
|
|
5974
|
-
|
|
5975
5972
|
var eventItem = [
|
|
5976
5973
|
{ label: "agro.angular_components.ticket_event", value: EventOperation.TICKET },
|
|
5977
5974
|
{ label: "agro.angular_components.provisional_event", value: EventOperation.PROVISIONAL },
|
|
@@ -5993,11 +5990,6 @@
|
|
|
5993
5990
|
label: "agro.angular_components." + EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5994
5991
|
value: EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5995
5992
|
},
|
|
5996
|
-
{
|
|
5997
|
-
label: "agro.angular_components." + EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5998
|
-
value: EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5999
|
-
subLabelField: InputFields.AGRO_INVOICE_TYPE,
|
|
6000
|
-
},
|
|
6001
5993
|
{ label: "agro.angular_components." + EventOperation.REPROCESS_INVOICE, value: EventOperation.REPROCESS_INVOICE },
|
|
6002
5994
|
{ label: "agro.angular_components." + EventOperation.EFFECTIVE_CONFIRMATION, value: EventOperation.EFFECTIVE_CONFIRMATION },
|
|
6003
5995
|
{ label: "agro.angular_components." + EventOperation.CHANGE_REQUEST, value: EventOperation.CHANGE_REQUEST },
|
|
@@ -6610,7 +6602,7 @@
|
|
|
6610
6602
|
if (prescriptionOperations.includes(eventOperation)) {
|
|
6611
6603
|
formattedSubtitle = this.translate.instant('agro.angular_components.new_prescription_page', { count: subTitle });
|
|
6612
6604
|
}
|
|
6613
|
-
return formattedSubtitle;
|
|
6605
|
+
return formattedSubtitle !== null && formattedSubtitle !== void 0 ? formattedSubtitle : null;
|
|
6614
6606
|
};
|
|
6615
6607
|
EventControlBoardComponent.prototype.onGridChange = function (event) {
|
|
6616
6608
|
var size = event === null || event === void 0 ? void 0 : event.rows;
|
|
@@ -6673,57 +6665,60 @@
|
|
|
6673
6665
|
return producerBalanceEntryControlId ? producerBalanceEntryControlId : null;
|
|
6674
6666
|
};
|
|
6675
6667
|
EventControlBoardComponent.prototype.stepSelected = function (event) {
|
|
6676
|
-
var _this = this;
|
|
6677
6668
|
this.selectedStep = event.step;
|
|
6678
6669
|
this.applySidebarTitle("");
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
case EventOrigin.TICKET:
|
|
6682
|
-
case EventOrigin.INVOICE:
|
|
6683
|
-
case EventOrigin.CREATE_INVOICE:
|
|
6684
|
-
this.sidebarLoading = true;
|
|
6685
|
-
{
|
|
6686
|
-
var param = JSON.parse(this.selectedStep.item.input);
|
|
6687
|
-
var producerInvoiceId = this.getProducerInvoiceIdFromParams(param);
|
|
6688
|
-
var filterQuery = "";
|
|
6689
|
-
if (!producerInvoiceId) {
|
|
6690
|
-
var producerBalanceEntryControlId = this.getProducerBalanceEntryControlIdFromParams(param);
|
|
6691
|
-
if (!producerBalanceEntryControlId) {
|
|
6692
|
-
this.sidebarLoading = false;
|
|
6693
|
-
return;
|
|
6694
|
-
}
|
|
6695
|
-
filterQuery = "producerBalanceEntryControl.id eq '" + producerBalanceEntryControlId + "'";
|
|
6696
|
-
}
|
|
6697
|
-
else {
|
|
6698
|
-
filterQuery = "id eq '" + producerInvoiceId + "'";
|
|
6699
|
-
}
|
|
6700
|
-
this.producerInvoiceService
|
|
6701
|
-
.list({
|
|
6702
|
-
displayFields: ["*", "producerBalanceEntryControl.*", "producerBalanceEntryControl.producer.*"],
|
|
6703
|
-
filterQuery: filterQuery,
|
|
6704
|
-
page: 0,
|
|
6705
|
-
size: 1,
|
|
6706
|
-
})
|
|
6707
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
6708
|
-
.subscribe(function (result) {
|
|
6709
|
-
_this.producerInvoice = result === null || result === void 0 ? void 0 : result.contents[0];
|
|
6710
|
-
_this.producerInvoice;
|
|
6711
|
-
_this.sidebarLoading = false;
|
|
6712
|
-
_this.applySidebarTitle(_this.getProducerInvoiceNumberAndSerie());
|
|
6713
|
-
}, function () {
|
|
6714
|
-
_this.sidebarLoading = false;
|
|
6715
|
-
});
|
|
6716
|
-
}
|
|
6717
|
-
break;
|
|
6718
|
-
case EventOrigin.FIXATION:
|
|
6719
|
-
case EventOrigin.CANCEL_FIXATION:
|
|
6720
|
-
case EventOrigin.CHANGE_REQUEST:
|
|
6721
|
-
case EventOrigin.TRANSFER:
|
|
6722
|
-
break;
|
|
6670
|
+
if (this.shouldLoadProducerInvoice(this.selectedStep.eventType)) {
|
|
6671
|
+
this.loadSelectedStepProducerInvoice();
|
|
6723
6672
|
}
|
|
6724
6673
|
this.showReprocessButton = event.step.state === angularComponents.StepState.Warning;
|
|
6725
6674
|
this.showSidebar = true;
|
|
6726
6675
|
};
|
|
6676
|
+
EventControlBoardComponent.prototype.shouldLoadProducerInvoice = function (eventType) {
|
|
6677
|
+
return [
|
|
6678
|
+
EventOrigin.BALANCE_ENTRY_CONTROL,
|
|
6679
|
+
EventOrigin.TICKET,
|
|
6680
|
+
EventOrigin.INVOICE,
|
|
6681
|
+
EventOrigin.CREATE_INVOICE,
|
|
6682
|
+
EventOrigin.CLOSE_INVOICE,
|
|
6683
|
+
].includes(eventType);
|
|
6684
|
+
};
|
|
6685
|
+
EventControlBoardComponent.prototype.loadSelectedStepProducerInvoice = function () {
|
|
6686
|
+
var _this = this;
|
|
6687
|
+
this.sidebarLoading = true;
|
|
6688
|
+
var param = JSON.parse(this.selectedStep.item.input);
|
|
6689
|
+
var filterQuery = this.getProducerInvoiceFilterQuery(param);
|
|
6690
|
+
if (!filterQuery) {
|
|
6691
|
+
this.sidebarLoading = false;
|
|
6692
|
+
return;
|
|
6693
|
+
}
|
|
6694
|
+
this.producerInvoiceService
|
|
6695
|
+
.list({
|
|
6696
|
+
displayFields: ["*", "producerBalanceEntryControl.*", "producerBalanceEntryControl.producer.*"],
|
|
6697
|
+
filterQuery: filterQuery,
|
|
6698
|
+
page: 0,
|
|
6699
|
+
size: 1,
|
|
6700
|
+
})
|
|
6701
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
6702
|
+
.subscribe(function (result) {
|
|
6703
|
+
_this.producerInvoice = result === null || result === void 0 ? void 0 : result.contents[0];
|
|
6704
|
+
_this.producerInvoice;
|
|
6705
|
+
_this.sidebarLoading = false;
|
|
6706
|
+
_this.applySidebarTitle(_this.getProducerInvoiceNumberAndSerie());
|
|
6707
|
+
}, function () {
|
|
6708
|
+
_this.sidebarLoading = false;
|
|
6709
|
+
});
|
|
6710
|
+
};
|
|
6711
|
+
EventControlBoardComponent.prototype.getProducerInvoiceFilterQuery = function (param) {
|
|
6712
|
+
var producerInvoiceId = this.getProducerInvoiceIdFromParams(param);
|
|
6713
|
+
if (producerInvoiceId) {
|
|
6714
|
+
return "id eq '" + producerInvoiceId + "'";
|
|
6715
|
+
}
|
|
6716
|
+
var producerBalanceEntryControlId = this.getProducerBalanceEntryControlIdFromParams(param);
|
|
6717
|
+
if (!producerBalanceEntryControlId) {
|
|
6718
|
+
return null;
|
|
6719
|
+
}
|
|
6720
|
+
return "producerBalanceEntryControl.id eq '" + producerBalanceEntryControlId + "'";
|
|
6721
|
+
};
|
|
6727
6722
|
EventControlBoardComponent.prototype.applySidebarTitle = function (title) {
|
|
6728
6723
|
this.sidebarTitle = this.translate.instant("agro.angular_components.event_sidebar_title", { eventNumber: title });
|
|
6729
6724
|
};
|
|
@@ -7782,7 +7777,7 @@
|
|
|
7782
7777
|
}))
|
|
7783
7778
|
.subscribe(function (result) {
|
|
7784
7779
|
var _a;
|
|
7785
|
-
_this.gridData = ((_a = result === null || result === void 0 ? void 0 : result.result) === null || _a === void 0 ? void 0 : _a.invoices) || [];
|
|
7780
|
+
_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 })); });
|
|
7786
7781
|
if (_this.gridData.length === 0 && !searchValue) {
|
|
7787
7782
|
_this.dontHaveAnyInvoice = true;
|
|
7788
7783
|
}
|
|
@@ -7922,7 +7917,7 @@
|
|
|
7922
7917
|
ModalInvoicePjForOriginationComponent = __decorate([
|
|
7923
7918
|
core.Component({
|
|
7924
7919
|
selector: 's-modal-invoice-pj-for-origination',
|
|
7925
|
-
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=\"
|
|
7920
|
+
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",
|
|
7926
7921
|
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}"]
|
|
7927
7922
|
})
|
|
7928
7923
|
], ModalInvoicePjForOriginationComponent);
|
|
@@ -7989,7 +7984,7 @@
|
|
|
7989
7984
|
ModalInvoicePjForTransferComponent = __decorate([
|
|
7990
7985
|
core.Component({
|
|
7991
7986
|
selector: 's-modal-invoice-pj-for-transfer',
|
|
7992
|
-
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=\"
|
|
7987
|
+
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",
|
|
7993
7988
|
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}"]
|
|
7994
7989
|
})
|
|
7995
7990
|
], ModalInvoicePjForTransferComponent);
|
|
@@ -8296,7 +8291,7 @@
|
|
|
8296
8291
|
ModalInvoicePjForFixationComponent = __decorate([
|
|
8297
8292
|
core.Component({
|
|
8298
8293
|
selector: 's-modal-invoice-pj-for-fixation',
|
|
8299
|
-
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=\"
|
|
8294
|
+
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",
|
|
8300
8295
|
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}"]
|
|
8301
8296
|
})
|
|
8302
8297
|
], ModalInvoicePjForFixationComponent);
|