@senior-agronegocio/angular-components 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/components/modal-invoice-pj/for-load-order/modal-invoice-pj-for-load-order.component.d.ts +35 -0
  2. package/components/modal-invoice-pj/for-load-order/modal-invoice-pj-for-load-order.module.d.ts +26 -0
  3. package/components/modal-invoice-pj/for-load-order/modal-load-order-options.interface.d.ts +13 -0
  4. package/components/modal-invoice-pj/index.d.ts +3 -0
  5. package/components/modal-invoice-pj/modal-invoice-pj-options.interface.d.ts +2 -2
  6. package/components/modal-invoice-pj/modal-shared-imports.d.ts +1 -1
  7. package/esm2022/agro-angular-components.module.mjs +1 -1
  8. package/esm2022/components/modal-invoice-pj/for-load-order/modal-invoice-pj-for-load-order.component.mjs +87 -0
  9. package/esm2022/components/modal-invoice-pj/for-load-order/modal-invoice-pj-for-load-order.module.mjs +38 -0
  10. package/esm2022/components/modal-invoice-pj/for-load-order/modal-load-order-options.interface.mjs +2 -0
  11. package/esm2022/components/modal-invoice-pj/index.mjs +3 -1
  12. package/esm2022/components/modal-invoice-pj/modal-invoice-pj-options.interface.mjs +1 -1
  13. package/esm2022/fields/lookups/core/agro-company-lookup.mjs +1 -2
  14. package/esm2022/fields/lookups/core/agro-lookup-base.mjs +1 -1
  15. package/esm2022/fields/lookups/core/index.mjs +1 -1
  16. package/esm2022/fields/lookups/core/lookup-field.types.mjs +1 -1
  17. package/esm2022/fields/lookups/index.mjs +1 -1
  18. package/esm2022/fields/lookups/services/agro-lookup-entity.service.mjs +1 -1
  19. package/fesm2022/senior-agronegocio-angular-components.mjs +87 -2
  20. package/fesm2022/senior-agronegocio-angular-components.mjs.map +1 -1
  21. package/package.json +5 -1
@@ -7869,6 +7869,92 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7869
7869
  }]
7870
7870
  }] });
7871
7871
 
7872
+ class ModalInvoicePjForLoadOrderComponent extends ModalInvoicePjBase {
7873
+ translate;
7874
+ invoiceService;
7875
+ localeService;
7876
+ kilogramPipe;
7877
+ messageService;
7878
+ datePipe;
7879
+ options;
7880
+ whenSelectInvoices = new EventEmitter();
7881
+ gridColumns;
7882
+ constructor(translate, invoiceService, localeService, kilogramPipe, messageService, datePipe) {
7883
+ super(translate, invoiceService, localeService, kilogramPipe, messageService, datePipe);
7884
+ this.translate = translate;
7885
+ this.invoiceService = invoiceService;
7886
+ this.localeService = localeService;
7887
+ this.kilogramPipe = kilogramPipe;
7888
+ this.messageService = messageService;
7889
+ this.datePipe = datePipe;
7890
+ }
7891
+ ngOnInit() {
7892
+ this.defineGridColumns();
7893
+ super.ngOnInit();
7894
+ }
7895
+ defineGridColumns() {
7896
+ this.gridColumns = [
7897
+ { field: 'number', header: this.translate.instant('agro.angular_components.number') },
7898
+ { field: 'series', header: this.translate.instant('agro.angular_components.series') },
7899
+ { field: 'invoiceItems', header: this.translate.instant('agro.angular_components.itens'), sortable: false },
7900
+ { field: 'quantity', header: this.translate.instant('agro.angular_components.quantity'), sortable: false },
7901
+ { field: 'issuanceDate', header: this.translate.instant('agro.angular_components.issuance_date') },
7902
+ ];
7903
+ }
7904
+ checkIfOptionsIsValid() {
7905
+ if (!this.options)
7906
+ return false;
7907
+ if (!this.options.companyId || !this.options.branchId)
7908
+ return false;
7909
+ const hasProducers = this.options.producersIds && this.options.producersIds.length > 0;
7910
+ const hasClient = !!this.options.clientId;
7911
+ if (!hasProducers && !hasClient)
7912
+ return false;
7913
+ return true;
7914
+ }
7915
+ updateGridData(event, searchValue) {
7916
+ if (this.options.clientId && (!this.options.producersIds || this.options.producersIds.length === 0)) {
7917
+ this.options = {
7918
+ ...this.options,
7919
+ producersIds: [this.options.clientId],
7920
+ ruralEstateIds: this.options.ruralEstateIds ?? [],
7921
+ };
7922
+ }
7923
+ super.updateGridData(event, searchValue);
7924
+ }
7925
+ adaptResult(result) {
7926
+ return Promise.resolve(result);
7927
+ }
7928
+ beforeAdd(selectedInvoices) {
7929
+ return Promise.resolve();
7930
+ }
7931
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderComponent, deps: [{ token: LibTranslationService }, { token: AgroInvoiceService }, { token: i3$1.LocaleService }, { token: KilogramPipe }, { token: i2$2.MessageService }, { token: i6.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
7932
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ModalInvoicePjForLoadOrderComponent, selector: "s-modal-invoice-pj-for-load-order", inputs: { options: "options" }, outputs: { whenSelectInvoices: "whenSelectInvoices" }, usesInheritance: true, ngImport: i0, 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]=\"tableDataSource\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"externalInvoiceId\"\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 sortMode=\"multiple\"\r\n [selectionMode]=\"gridLoading ? null : '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 [disabled]=\"gridLoading\"></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 [class.loading-row]=\"rowData.__isPlaceholder\">\r\n <td class=\"checkbox\" tabindex=\"0\">\r\n <ng-container *ngIf=\"!rowData.__isPlaceholder\">\r\n <p-tableCheckbox [value]=\"rowData\" [disabled]=\"gridLoading\"></p-tableCheckbox>\r\n </ng-container>\r\n <ng-container *ngIf=\"rowData.__isPlaceholder\">\r\n <div class=\"loading-cell-placeholder\"></div>\r\n </ng-container>\r\n </td>\r\n <td\r\n [pSelectableRow]=\"rowData.__isPlaceholder ? null : 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 <span *ngIf=\"!rowData.__isPlaceholder\">\r\n {{ gridFieldValuesMap[col.field] ? gridFieldValuesMap[col.field](rowData) : rowData[col.field] }}\r\n </span>\r\n <span class=\"loading-text-placeholder\" *ngIf=\"rowData.__isPlaceholder\">\r\n {{ rowData[col.field] || 'placeholder' }}\r\n </span>\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 <ng-template pTemplate=\"footer\" *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"footer\">\r\n <ng-container *ngIf=\"invertFooterActions; else defaultFooterActions\">\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 <s-button\r\n [priority]=\"ButtonPriority.Primary\"\r\n label=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [disabled]=\"gridLoading || !selected.length\"\r\n (click)=\"add()\"\r\n (keydown.enter)=\"add()\"\r\n ></s-button>\r\n </ng-container>\r\n <ng-template #defaultFooterActions>\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]=\"gridLoading || !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 </ng-template>\r\n </div>\r\n </ng-template>\r\n</p-dialog>\r\n", styles: [".footer{width:100%;display:flex;justify-content:space-between;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}th.column,td.column{min-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.loading-row{pointer-events:none}.loading-row .loading-text-placeholder{display:inline-block;filter:blur(3px);-webkit-user-select:none;user-select:none}.loading-row .loading-cell-placeholder{width:16px;height:16px;border-radius:4px;background:#d8d8d8;filter:blur(1px);margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "s-button", inputs: ["id", "label", "tooltip", "tooltipPosition", "iconClass", "rightIconClass", "caret", "styleClass", "baseZIndex", "disabled", "auxiliary", "type", "priority", "menuOptions", "size", "slide", "animation", "badge", "iconColor"], outputs: ["clicked"] }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i8.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i8.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "component", type: i8.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i8.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { kind: "component", type: i8.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i7.EmptyStateComponent, selector: "s-empty-state", inputs: ["id", "title", "iconClass", "description", "showPrimaryAction", "showSecondaryAction", "primaryActionLabel", "secondaryActionLabel", "primaryModel"], outputs: ["primaryAction", "secondaryAction"] }, { kind: "directive", type: i9.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i11.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i12.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "pipe", type: LibTranslatePipe, name: "libTranslate" }] });
7933
+ }
7934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderComponent, decorators: [{
7935
+ type: Component,
7936
+ args: [{ selector: 's-modal-invoice-pj-for-load-order', 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]=\"tableDataSource\"\r\n [columns]=\"gridColumns\"\r\n [scrollable]=\"true\"\r\n dataKey=\"externalInvoiceId\"\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 sortMode=\"multiple\"\r\n [selectionMode]=\"gridLoading ? null : '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 [disabled]=\"gridLoading\"></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 [class.loading-row]=\"rowData.__isPlaceholder\">\r\n <td class=\"checkbox\" tabindex=\"0\">\r\n <ng-container *ngIf=\"!rowData.__isPlaceholder\">\r\n <p-tableCheckbox [value]=\"rowData\" [disabled]=\"gridLoading\"></p-tableCheckbox>\r\n </ng-container>\r\n <ng-container *ngIf=\"rowData.__isPlaceholder\">\r\n <div class=\"loading-cell-placeholder\"></div>\r\n </ng-container>\r\n </td>\r\n <td\r\n [pSelectableRow]=\"rowData.__isPlaceholder ? null : 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 <span *ngIf=\"!rowData.__isPlaceholder\">\r\n {{ gridFieldValuesMap[col.field] ? gridFieldValuesMap[col.field](rowData) : rowData[col.field] }}\r\n </span>\r\n <span class=\"loading-text-placeholder\" *ngIf=\"rowData.__isPlaceholder\">\r\n {{ rowData[col.field] || 'placeholder' }}\r\n </span>\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 <ng-template pTemplate=\"footer\" *ngIf=\"!dontHaveAnyInvoice\">\r\n <div class=\"footer\">\r\n <ng-container *ngIf=\"invertFooterActions; else defaultFooterActions\">\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 <s-button\r\n [priority]=\"ButtonPriority.Primary\"\r\n label=\"{{ 'agro.angular_components.panel_title_external_invoice_add_external_invoice' | libTranslate }}\"\r\n [disabled]=\"gridLoading || !selected.length\"\r\n (click)=\"add()\"\r\n (keydown.enter)=\"add()\"\r\n ></s-button>\r\n </ng-container>\r\n <ng-template #defaultFooterActions>\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]=\"gridLoading || !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 </ng-template>\r\n </div>\r\n </ng-template>\r\n</p-dialog>\r\n", styles: [".footer{width:100%;display:flex;justify-content:space-between;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}th.column,td.column{min-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.loading-row{pointer-events:none}.loading-row .loading-text-placeholder{display:inline-block;filter:blur(3px);-webkit-user-select:none;user-select:none}.loading-row .loading-cell-placeholder{width:16px;height:16px;border-radius:4px;background:#d8d8d8;filter:blur(1px);margin:0 auto}\n"] }]
7937
+ }], ctorParameters: () => [{ type: LibTranslationService }, { type: AgroInvoiceService }, { type: i3$1.LocaleService }, { type: KilogramPipe }, { type: i2$2.MessageService }, { type: i6.DatePipe }], propDecorators: { options: [{
7938
+ type: Input
7939
+ }], whenSelectInvoices: [{
7940
+ type: Output
7941
+ }] } });
7942
+
7943
+ class ModalInvoicePjForLoadOrderModule {
7944
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7945
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, declarations: [ModalInvoicePjForLoadOrderComponent], imports: [i6.CommonModule, LibTranslationModule, i3.ButtonModule, i2$2.SharedModule, i8.TableModule, KilogramModule, i7.EmptyStateModule, i8$1.BignumberInputModule, i9.InputTextModule, i11.ReactiveFormsModule, AgroInvoiceModule, i12.DialogModule, i13$1.TableModule, i14.LoadingStateModule, i15.MessagesModule, i1.HttpClientModule, i17.ConfirmDialogModule, i18$1.TableHeaderCheckboxModule, i3$1.LocaleModule], exports: [ModalInvoicePjForLoadOrderComponent] });
7946
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, providers: [...providers], imports: [imports] });
7947
+ }
7948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, decorators: [{
7949
+ type: NgModule,
7950
+ args: [{
7951
+ declarations: [ModalInvoicePjForLoadOrderComponent],
7952
+ imports: [...imports],
7953
+ providers: [...providers],
7954
+ exports: [ModalInvoicePjForLoadOrderComponent],
7955
+ }]
7956
+ }] });
7957
+
7872
7958
  var TypeAccount;
7873
7959
  (function (TypeAccount) {
7874
7960
  TypeAccount["PAYABLE"] = "PAYABLE";
@@ -10661,7 +10747,6 @@ class AgroCompanyLookup extends AgroLookupBase {
10661
10747
  searchFields: [
10662
10748
  { name: 'codEmp', label: this.translate.instant('agro.angular_components.lookup_label_code_company'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
10663
10749
  { name: 'nomEmp', label: this.translate.instant('agro.angular_components.lookup_label_name'), type: 'string', maxLength: 100 },
10664
- { name: 'sigEmp', label: this.translate.instant('agro.angular_components.lookup_e_070_emp_sig_emp'), type: 'string', maxLength: 100 },
10665
10750
  ],
10666
10751
  service: this.e070EmpService,
10667
10752
  };
@@ -11576,5 +11661,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
11576
11661
  * Generated bundle index. Do not edit.
11577
11662
  */
11578
11663
 
11579
- export { AGRO_NUMBERS, AGRO_REGEX, AgroAngularComponentsModule, AgroArrayUtils, AgroBaseLookupField, AgroBranchLookup, AgroCompanyLookup, AgroCookieUtils, AgroCurrencyLookup, AgroDateUtils, AgroDepositBalanceLookup, AgroDepositLookup, AgroDriverLookup, AgroE095PesLookup, AgroEntityStatus, AgroFamilyGroupLookup, AgroFamilyLookup, AgroFinancialService, AgroFormValidator, AgroHarvestLookup, AgroIncreaseProductLookup, AgroInvoiceModule, AgroInvoiceService, AgroLogics, AgroLookupBase, AgroLookupDriverService, AgroLookupE001PesService, AgroLookupE012FamService, AgroLookupE031MoeService, AgroLookupE070EmpService, AgroLookupE070FilService, AgroLookupE075DerService, AgroLookupE095PesService, AgroLookupE113SafService, AgroLookupE205DepService, AgroLookupE210DxpService, AgroLookupEntityService, AgroLookupFamilyGroupService, AgroLookupIncreaseProductService, AgroLookupProductVarietyService, AgroLookupRuralEstateService, AgroLookupTicketService, AgroNameUtils, AgroNumberUtils, AgroObjectUtils, AgroPlatformUtils, AgroProducerLookup, AgroProductLookup, AgroProductVarietyLookup, AgroRomaneoLookup, AgroRuralEstateLookup, AgroStringMasks, AgroStringUtils, AgroTicketLookup, AgroUnitConverter, AgroWorkspaceComponent, AgroWorkspaceModule, AgroWorkspaceSwitchService, AsyncLock, CancelEventDialogComponent, CancelEventDialogModule, CnpjCpfPipe, CnpjCpfPipeModule, Colors, DateComparisonType, E001TnsModule, E001pesModule, E070EmpModule$1 as E070EmpModule, E070FilModule$1 as E070FilModule, E075DerModule, E205depService, EDLQueryBuilder, EventControlBoardComponent, EventControlBoardModule, EventControlItemModule, EventControlModule, EventStepsComponent, EventStepsModule, ExternalInvoiceModule, FinancialTitleTableComponent, FinancialTitleTableModule, FixationModule, HttpCodes, InvoiceModule, KilogramModule, KilogramPipe, LIB_CONFIG, LibTranslatePipe, LibTranslationModule, LibTranslationService, ModalBeautyEventsComponent, ModalBeautyEventsService, ModalInvoicePjForContractsComponent, ModalInvoicePjForContractsModule, ModalInvoicePjForFixationComponent, ModalInvoicePjForFixationModule, ModalInvoicePjForOriginationComponent, ModalInvoicePjForOriginationModule, ModalInvoicePjForTransferComponent, ModalInvoicePjForTransferModule, NumberComparisonType, OriginationModule, PaginatorStorageService, PrimitiveManager, ProducerListModalComponent, ProducerListModalModule, ProducerListModalService, RuralEstateModule, SharedModule, StatusType, StringifierPipe, StringifierPipeModule, TelephonePipe, TelephonePipeModule, TicketModule, TransferModule, TypeAccount, UnitOfMeasurement, UserInformationService, WebsocketModule, WebsocketService, adjustValuesIfNecessary, applyRelationTransforms, calculateAdjustedPercentages, calculateAdjustedPercentagesAndWeights, calculateAdjustedWeights, convertValueByType, createFilterString, createFilterTokens, createGenericOnBlur, createGenericOnLookupRequest, createGenericOnSearchRequest, formatBrlCurrency, formatCPFCNPJWithMask, formatFilters, formatFiltersAdvanced, formatFiltersWithoutStatus, getEnumQuery, getLabelValueRequest, getProp, getSuggestionValue, getTypeInformation, isValidFilter, mergeUnique, resolveLookupHostProjectConfig, resolveRefs, roundToThree };
11664
+ export { AGRO_NUMBERS, AGRO_REGEX, AgroAngularComponentsModule, AgroArrayUtils, AgroBaseLookupField, AgroBranchLookup, AgroCompanyLookup, AgroCookieUtils, AgroCurrencyLookup, AgroDateUtils, AgroDepositBalanceLookup, AgroDepositLookup, AgroDriverLookup, AgroE095PesLookup, AgroEntityStatus, AgroFamilyGroupLookup, AgroFamilyLookup, AgroFinancialService, AgroFormValidator, AgroHarvestLookup, AgroIncreaseProductLookup, AgroInvoiceModule, AgroInvoiceService, AgroLogics, AgroLookupBase, AgroLookupDriverService, AgroLookupE001PesService, AgroLookupE012FamService, AgroLookupE031MoeService, AgroLookupE070EmpService, AgroLookupE070FilService, AgroLookupE075DerService, AgroLookupE095PesService, AgroLookupE113SafService, AgroLookupE205DepService, AgroLookupE210DxpService, AgroLookupEntityService, AgroLookupFamilyGroupService, AgroLookupIncreaseProductService, AgroLookupProductVarietyService, AgroLookupRuralEstateService, AgroLookupTicketService, AgroNameUtils, AgroNumberUtils, AgroObjectUtils, AgroPlatformUtils, AgroProducerLookup, AgroProductLookup, AgroProductVarietyLookup, AgroRomaneoLookup, AgroRuralEstateLookup, AgroStringMasks, AgroStringUtils, AgroTicketLookup, AgroUnitConverter, AgroWorkspaceComponent, AgroWorkspaceModule, AgroWorkspaceSwitchService, AsyncLock, CancelEventDialogComponent, CancelEventDialogModule, CnpjCpfPipe, CnpjCpfPipeModule, Colors, DateComparisonType, E001TnsModule, E001pesModule, E070EmpModule$1 as E070EmpModule, E070FilModule$1 as E070FilModule, E075DerModule, E205depService, EDLQueryBuilder, EventControlBoardComponent, EventControlBoardModule, EventControlItemModule, EventControlModule, EventStepsComponent, EventStepsModule, ExternalInvoiceModule, FinancialTitleTableComponent, FinancialTitleTableModule, FixationModule, HttpCodes, InvoiceModule, KilogramModule, KilogramPipe, LIB_CONFIG, LibTranslatePipe, LibTranslationModule, LibTranslationService, ModalBeautyEventsComponent, ModalBeautyEventsService, ModalInvoicePjForContractsComponent, ModalInvoicePjForContractsModule, ModalInvoicePjForFixationComponent, ModalInvoicePjForFixationModule, ModalInvoicePjForLoadOrderComponent, ModalInvoicePjForLoadOrderModule, ModalInvoicePjForOriginationComponent, ModalInvoicePjForOriginationModule, ModalInvoicePjForTransferComponent, ModalInvoicePjForTransferModule, NumberComparisonType, OriginationModule, PaginatorStorageService, PrimitiveManager, ProducerListModalComponent, ProducerListModalModule, ProducerListModalService, RuralEstateModule, SharedModule, StatusType, StringifierPipe, StringifierPipeModule, TelephonePipe, TelephonePipeModule, TicketModule, TransferModule, TypeAccount, UnitOfMeasurement, UserInformationService, WebsocketModule, WebsocketService, adjustValuesIfNecessary, applyRelationTransforms, calculateAdjustedPercentages, calculateAdjustedPercentagesAndWeights, calculateAdjustedWeights, convertValueByType, createFilterString, createFilterTokens, createGenericOnBlur, createGenericOnLookupRequest, createGenericOnSearchRequest, formatBrlCurrency, formatCPFCNPJWithMask, formatFilters, formatFiltersAdvanced, formatFiltersWithoutStatus, getEnumQuery, getLabelValueRequest, getProp, getSuggestionValue, getTypeInformation, isValidFilter, mergeUnique, resolveLookupHostProjectConfig, resolveRefs, roundToThree };
11580
11665
  //# sourceMappingURL=senior-agronegocio-angular-components.mjs.map