@senior-agronegocio/angular-components 1.0.17 → 1.0.19

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.
@@ -5,7 +5,7 @@ import * as i0 from '@angular/core';
5
5
  import { NgModule, EventEmitter, Component, Input, Output, Injectable, Pipe, LOCALE_ID, Directive, ViewChild, inject, ChangeDetectorRef, ChangeDetectionStrategy, InjectionToken, Optional, Inject, ENVIRONMENT_INITIALIZER, Injector } from '@angular/core';
6
6
  import * as i11 from '@angular/forms';
7
7
  import { FormsModule, ReactiveFormsModule, Validators, FormControl, FormGroup, FormArray } from '@angular/forms';
8
- import * as i18 from '@seniorsistemas/angular-components/badge';
8
+ import * as i19 from '@seniorsistemas/angular-components/badge';
9
9
  import { BadgeModule } from '@seniorsistemas/angular-components/badge';
10
10
  import * as i3 from '@seniorsistemas/angular-components/button';
11
11
  import { ButtonModule, ButtonComponent } from '@seniorsistemas/angular-components/button';
@@ -24,7 +24,7 @@ import * as i16 from '@seniorsistemas/angular-components/sidebar';
24
24
  import { SidebarModule } from '@seniorsistemas/angular-components/sidebar';
25
25
  import * as i13$1 from '@seniorsistemas/angular-components/table';
26
26
  import { TableModule as TableModule$1 } from '@seniorsistemas/angular-components/table';
27
- import * as i17 from 'primeng/confirmdialog';
27
+ import * as i17$1 from 'primeng/confirmdialog';
28
28
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
29
29
  import * as i14$1 from 'primeng/fieldset';
30
30
  import { FieldsetModule } from 'primeng/fieldset';
@@ -42,7 +42,7 @@ import { DropdownModule } from 'primeng/dropdown';
42
42
  import * as i2$2 from 'primeng/api';
43
43
  import { SharedModule as SharedModule$1, MessageService } from 'primeng/api';
44
44
  import { HotkeyModule } from 'angular2-hotkeys';
45
- import * as i1$1 from '@seniorsistemas/platform-components';
45
+ import * as i1$2 from '@seniorsistemas/platform-components';
46
46
  import { CyclicJsonInterceptorModule, HttpInterceptorModule, PermissionsModule } from '@seniorsistemas/platform-components';
47
47
  import * as i2 from 'primeng/tooltip';
48
48
  import { TooltipModule } from 'primeng/tooltip';
@@ -52,30 +52,31 @@ import { StepState as StepState$1 } from '@seniorsistemas/angular-components/ste
52
52
  import { of, Subject, BehaviorSubject, throwError, scheduled, asyncScheduler, timer, EMPTY, takeUntil as takeUntil$1, finalize as finalize$1, filter as filter$1, firstValueFrom } from 'rxjs';
53
53
  import { filter, take, finalize, switchMap, map, catchError, takeUntil, concatMap, tap, scan, defaultIfEmpty, debounceTime, distinctUntilChanged, startWith, pairwise } from 'rxjs/operators';
54
54
  import * as i2$1 from 'primeng/dynamicdialog';
55
+ import { DialogService } from 'primeng/dynamicdialog';
55
56
  import { Client, FrameImpl } from '@stomp/stompjs';
56
57
  import SockJS from 'sockjs-client';
57
58
  import { get } from 'js-cookie';
58
59
  import * as i1 from '@angular/common/http';
59
60
  import { HttpParams, HttpClientModule, HttpClient } from '@angular/common/http';
60
61
  import { user } from '@seniorsistemas/senior-platform-data';
61
- import * as i12 from 'primeng/dialog';
62
- import { DialogModule } from 'primeng/dialog';
62
+ import * as i17 from '@seniorsistemas/angular-components/template';
63
+ import { TemplateModule } from '@seniorsistemas/angular-components/template';
64
+ import * as i1$1 from '@seniorsistemas/angular-components/dialog';
65
+ import { DialogComponent, ActiveDialog } from '@seniorsistemas/angular-components/dialog';
63
66
  import * as i3$1 from '@seniorsistemas/angular-components/locale';
64
67
  import { LocaleModule, LocalizedDatePipe } from '@seniorsistemas/angular-components/locale';
65
68
  import { FieldsetModule as FieldsetModule$1 } from '@seniorsistemas/angular-components/fieldset';
66
- import * as i1$2 from '@seniorsistemas/angular-components/dialog';
67
- import { DialogService, ActiveDialog, DialogComponent } from '@seniorsistemas/angular-components/dialog';
69
+ import * as i13$2 from '@seniorsistemas/angular-components/structure';
70
+ import { StructureModule } from '@seniorsistemas/angular-components/structure';
71
+ import * as i12 from 'primeng/dialog';
72
+ import { DialogModule } from 'primeng/dialog';
68
73
  import * as i8$1 from '@seniorsistemas/angular-components/bignumber-input';
69
74
  import { BignumberInputModule } from '@seniorsistemas/angular-components/bignumber-input';
70
- import * as i18$1 from '@seniorsistemas/angular-components/table-header';
75
+ import * as i18 from '@seniorsistemas/angular-components/table-header';
71
76
  import { TableHeaderCheckboxModule } from '@seniorsistemas/angular-components/table-header';
72
77
  import * as i15 from 'primeng/messages';
73
78
  import { MessagesModule } from 'primeng/messages';
74
- import * as i13$2 from '@seniorsistemas/angular-components/structure';
75
- import { StructureModule } from '@seniorsistemas/angular-components/structure';
76
79
  import { ObserversModule } from '@angular/cdk/observers';
77
- import * as i2$3 from '@seniorsistemas/angular-components/template';
78
- import { TemplateModule } from '@seniorsistemas/angular-components/template';
79
80
  import { PanelModule as PanelModule$1 } from '@seniorsistemas/angular-components/panel';
80
81
  import * as i4 from '@seniorsistemas/angular-components/workspace-switch';
81
82
  import { WorkspaceSwitchModule } from '@seniorsistemas/angular-components/workspace-switch';
@@ -3820,6 +3821,8 @@ const ptBR = {
3820
3821
  "agro.angular_components.lookup_family_search_title": "Selecione a família",
3821
3822
  "agro.angular_components.lookup_driver": "Motorista",
3822
3823
  "agro.angular_components.lookup_driver_search_title": "Selecione o motorista",
3824
+ "agro.angular_components.lookup_carrier": "Transportadora",
3825
+ "agro.angular_components.lookup_carrier_search_title": "Selecione a transportadora",
3823
3826
  "agro.angular_components.lookup_deposit": "Depósito",
3824
3827
  "agro.angular_components.lookup_deposit_search_title": "Selecione o depósito",
3825
3828
  "agro.angular_components.lookup_e095_pes": "Produtor (E095)",
@@ -4198,6 +4201,8 @@ const enUS = {
4198
4201
  "agro.angular_components.lookup_family_search_title": "Select family",
4199
4202
  "agro.angular_components.lookup_driver": "Driver",
4200
4203
  "agro.angular_components.lookup_driver_search_title": "Select driver",
4204
+ "agro.angular_components.lookup_carrier": "Carrier",
4205
+ "agro.angular_components.lookup_carrier_search_title": "Select carrier",
4201
4206
  "agro.angular_components.lookup_deposit": "Deposit",
4202
4207
  "agro.angular_components.lookup_deposit_search_title": "Select deposit",
4203
4208
  "agro.angular_components.lookup_e095_pes": "Producer (E095)",
@@ -5754,8 +5759,8 @@ class EventControlBoardComponent {
5754
5759
  sidebarLoading;
5755
5760
  filterFormGroup;
5756
5761
  filterFields;
5757
- gridData;
5758
- gridDataResolved;
5762
+ gridData = [];
5763
+ gridDataResolved = [];
5759
5764
  gridColumns;
5760
5765
  gridTotalRecords = AGRO_NUMBERS.ZERO;
5761
5766
  gridLoading = false;
@@ -6265,11 +6270,11 @@ class EventControlBoardComponent {
6265
6270
  this.showSidebar = false;
6266
6271
  }
6267
6272
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlBoardComponent, deps: [{ token: LibTranslationService }, { token: i11.FormBuilder }, { token: WebsocketService }, { token: EventControlService }, { token: PaginatorStorageService }, { token: EventControlItemService }, { token: ProducerInvoiceService }, { token: i2$2.MessageService }, { token: i2$1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
6268
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EventControlBoardComponent, selector: "s-event-control-board", inputs: { company: "company", branch: "branch", controlCode: "controlCode", eventOrigin: "eventOrigin", eventStatus: "eventStatus", externalId: "externalId", createdDate: "createdDate", standalone: "standalone", showCancelButton: "showCancelButton", cancelEventDialogConfig: "cancelEventDialogConfig" }, outputs: { processedEvent: "processedEvent" }, providers: [{ provide: LOCALE_ID, useValue: "pt-BR" }], usesOnChanges: true, ngImport: i0, template: "<ng-container *sLoadingState=\"gridLoading\">\r\n <p-panel>\r\n <p-header>\r\n {{ \"agro.angular_components.event_control_header\" | libTranslate }}\r\n </p-header>\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-12\">\r\n <s-button\r\n id=\"refresh-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.refresh' | libTranslate\"\r\n (click)=\"onSearch()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"standalone && showCancelButton\"\r\n id=\"cancel-button-agro-events-lib\"\r\n iconClass=\"fa fa-times\"\r\n [label]=\"'agro.angular_components.cancel' | libTranslate\"\r\n (click)=\"openCancelModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-12 ui-md-12\" *ngIf=\"!gridData || gridData?.length === 0\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.nothing_found' | libTranslate }}\"\r\n [showPrimaryAction]=\"false\"\r\n description=\"{{ 'agro.angular_components.table_empty_description' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </div>\r\n <ng-container *ngIf=\"gridData.length > 0\">\r\n <p-table\r\n stylelass=\"custom-table\"\r\n #eventControlTable\r\n [value]=\"gridDataResolved\"\r\n [columns]=\"gridColumns\"\r\n dataKey=\"id\"\r\n [lazy]=\"true\"\r\n [scrollable]=\"true\"\r\n [resizableColumns]=\"true\"\r\n [paginator]=\"!standalone\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [rows]=\"10\"\r\n [responsive]=\"true\"\r\n (onLazyLoad)=\"onGridChange($event)\"\r\n [sortOrder]=\"getSortOrder()\"\r\n [first]=\"getRowIndex()\"\r\n [lazyLoadOnInit]=\"false\"\r\n sortMode=\"multiple\"\r\n [rows]=\"getPageSize()\"\r\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <th *ngFor=\"let col of columns\" class=\"ui-lg-1 ui-md-1\" [pSortableColumn]=\"col.field\" scope=\"col\">\r\n <div class=\"senior-header\">\r\n <span class=\"senior-header-title\">{{ col.header }}</span>\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <th class=\"ui-lg-8 ui-md-7\" scope=\"col\">\r\n {{ \"agro.angular_components.panel_title_events_events\" | libTranslate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <td class=\"ui-lg-1 ui-md-1\">\r\n {{ rowData.e070emp?.nomEmp }}\r\n </td>\r\n <td class=\"ui-lg-1 ui-md-1\">\r\n {{ rowData.e070fil?.nomFil }}\r\n </td>\r\n <td class=\"ui-lg-1 ui-md-1\">\r\n <ng-container [ngSwitch]=\"rowData.eventOrigin\">\r\n <span *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n </ng-container>\r\n </td>\r\n <td class=\"ui-lg-1 ui ui-md-1\">\r\n {{ rowData.controlCode || \"\" }}\r\n </td>\r\n </ng-container>\r\n <td class=\"ui-lg-8 ui-md-7\">\r\n <ng-container *ngFor=\"let group of rowData.groups\">\r\n <s-event-steps\r\n [steps]=\"group.steps || []\"\r\n [activeIndex]=\"group.activeIndex\"\r\n (stepSelected)=\"stepSelected($event)\"\r\n >\r\n </s-event-steps>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template *ngIf=\"!standalone\" pTemplate=\"paginatorright\" class=\"custom-table\">\r\n <span>\r\n {{ \"agro.angular_components.registers_found\" | libTranslate: { total: gridTotalRecords } }}\r\n </span>\r\n </ng-template>\r\n </p-table>\r\n </ng-container>\r\n </div>\r\n </p-panel>\r\n</ng-container>\r\n<s-sidebar\r\n [visible]=\"showSidebar\"\r\n (visibleChange)=\"closeSidebar()\"\r\n header=\"{{ 'agro.angular_components.event_details_header' | libTranslate }}\"\r\n>\r\n <div class=\"ui-fluid\">\r\n <p-fieldset [legend]=\"sidebarTitle\" [toggleable]=\"false\">\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-4\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_origin_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.eventType\">\r\n <p *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.supplier\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes }}</p>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.ruralEstate.name\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.rural_estate\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.ruralEstate.name }}</p>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"selectedStep?.controlCode\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.control_code\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.controlCode }}</p>\r\n </div>\r\n <div class=\"ui-g-4\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.status_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.item.status\">\r\n <p *ngSwitchCase=\"'SUCCESS'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Green\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_completed_successfully' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PROCESSING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Orange\"\r\n text=\"{{ 'agro.angular_components.processing' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'FAILED'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Red\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_ended_with_error' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PENDING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Gray\"\r\n text=\"{{ 'agro.angular_components.pending' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"ui-g-4\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.last_update_date\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.lastModifiedDate | date: \"dd/MM/yyyy HH:mm:ss\" }}</p>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"selectedStep?.item.status === 'FAILED'\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_error_message\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.message || \"-\" }}</p>\r\n </div>\r\n </div>\r\n </p-fieldset>\r\n </div>\r\n <div class=\"s-footer\">\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-12 width-fit\">\r\n <s-button\r\n id=\"sidebar-close-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n [label]=\"'agro.angular_components.events_close' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"closeSidebar()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"showReprocessButton\"\r\n id=\"sidebar-reprocess-button\"\r\n [priority]=\"ButtonPriority.Secondary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.reprocess_event' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"openModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n </div>\r\n</s-sidebar>\r\n\r\n<p-dialog [header]=\"'agro.angular_components.event_modal_title' | libTranslate\" [(visible)]=\"displayModal\" [modal]=\"true\" class=\"dialog\">\r\n <div class=\"event-modal-text\">{{ \"agro.angular_components.event_modal\" | libTranslate }}</div>\r\n <p-footer>\r\n <div class=\"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix\">\r\n <button\r\n id=\"modal-yes\"\r\n type=\"button\"\r\n pButton\r\n icon=\"fa fa-check\"\r\n (click)=\"confirmModal()\"\r\n class=\"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only\"\r\n >\r\n {{ 'agro.angular_components.yes' | libTranslate }}\r\n </button>\r\n <button\r\n id=\"modal-no\"\r\n type=\"button\"\r\n pButton\r\n icon=\"fa fa-close\"\r\n (click)=\"cancelModal()\"\r\n class=\"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only\"\r\n >\r\n {{ 'agro.angular_components.no' | libTranslate }}\r\n </button>\r\n </div>\r\n </p-footer>\r\n</p-dialog>\r\n", styles: [".frozen{border-left:2px solid #dddddd}.dialog{width:\"600px\";height:\"300px\";z-index:100000}:host ::ng-deep #cancel-button-agro-events-lib{background-color:#9c3a3a!important;border-color:#9c3a3a!important}:host ::ng-deep #cancel-button-agro-events-lib:hover{background-color:#642525!important}\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: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { 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: "component", type: i7.EmptyStateComponent, selector: "s-empty-state", inputs: ["id", "title", "iconClass", "description", "showPrimaryAction", "showSecondaryAction", "primaryActionLabel", "secondaryActionLabel", "primaryModel"], outputs: ["primaryAction", "secondaryAction"] }, { kind: "component", type: i13.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "style", "styleClass", "iconPos", "expandIcon", "collapseIcon", "showHeader", "toggler", "transitionOptions", "toggleButtonProps"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "component", type: i2$2.Header, selector: "p-header" }, { kind: "component", type: i2$2.Footer, selector: "p-footer" }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i14$1.Fieldset, selector: "p-fieldset", inputs: ["legend", "toggleable", "collapsed", "style", "styleClass", "transitionOptions"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { 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: "component", type: i8.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i16.SidebarComponent, selector: "s-sidebar", inputs: ["visible", "closable", "dismissible", "closeOnEscape", "header", "largeSized", "cache", "registerConfirmClose"], outputs: ["visibleChange"] }, { kind: "directive", type: i14.LoadingStateDirective, selector: "[sLoadingState]", inputs: ["sLoadingState"] }, { kind: "component", type: i18.BadgeComponent, selector: "s-badge", inputs: ["type", "color", "title", "text", "selectable", "iconClass", "iconPosition", "infoSign", "enableTruncateText"], outputs: ["selected"] }, { kind: "component", type: EventStepsComponent, selector: "s-event-steps", inputs: ["id", "steps", "activeIndex"], outputs: ["stepSelected"] }, { 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: i6.DatePipe, name: "date" }, { kind: "pipe", type: LibTranslatePipe, name: "libTranslate" }] });
6273
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EventControlBoardComponent, selector: "s-event-control-board", inputs: { company: "company", branch: "branch", controlCode: "controlCode", eventOrigin: "eventOrigin", eventStatus: "eventStatus", externalId: "externalId", createdDate: "createdDate", standalone: "standalone", showCancelButton: "showCancelButton", cancelEventDialogConfig: "cancelEventDialogConfig" }, outputs: { processedEvent: "processedEvent" }, providers: [{ provide: LOCALE_ID, useValue: "pt-BR" }], usesOnChanges: true, ngImport: i0, template: "<ng-container *sLoadingState=\"gridLoading\">\r\n <p-panel>\r\n <p-header>\r\n {{ \"agro.angular_components.event_control_header\" | libTranslate }}\r\n </p-header>\r\n <div class=\"flex flex-col gap-3\">\r\n <div class=\"col-span-1\">\r\n <s-button\r\n id=\"refresh-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.refresh' | libTranslate\"\r\n (click)=\"onSearch()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"standalone && showCancelButton\"\r\n id=\"cancel-button-agro-events-lib\"\r\n iconClass=\"fa fa-times\"\r\n [label]=\"'agro.angular_components.cancel' | libTranslate\"\r\n (click)=\"openCancelModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col gap-3\">\r\n <div class=\"col-span-1\" *ngIf=\"gridData.length === 0\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.nothing_found' | libTranslate }}\"\r\n [showPrimaryAction]=\"false\"\r\n description=\"{{ 'agro.angular_components.table_empty_description' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </div>\r\n <ng-container *ngIf=\"gridData.length > 0\">\r\n <p-table\r\n styleClass=\"custom-table\"\r\n #eventControlTable\r\n [value]=\"gridDataResolved\"\r\n [columns]=\"gridColumns\"\r\n dataKey=\"id\"\r\n [lazy]=\"true\"\r\n [scrollable]=\"true\"\r\n [resizableColumns]=\"true\"\r\n [paginator]=\"!standalone\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [rows]=\"10\"\r\n [responsive]=\"true\"\r\n (onLazyLoad)=\"onGridChange($event)\"\r\n [sortOrder]=\"getSortOrder()\"\r\n [first]=\"getRowIndex()\"\r\n [lazyLoadOnInit]=\"false\"\r\n sortMode=\"multiple\"\r\n [rows]=\"getPageSize()\"\r\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <th *ngFor=\"let col of columns\" class=\"w-32\" [pSortableColumn]=\"col.field\" scope=\"col\">\r\n <div class=\"senior-header\">\r\n <span class=\"senior-header-title\">{{ col.header }}</span>\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <th class=\"w-full min-w-0\" scope=\"col\">\r\n {{ \"agro.angular_components.panel_title_events_events\" | libTranslate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <td class=\"w-32 align-top\">\r\n {{ rowData.e070emp?.nomEmp }}\r\n </td>\r\n <td class=\"w-32 align-top\">\r\n {{ rowData.e070fil?.nomFil }}\r\n </td>\r\n <td class=\"w-32 align-top\">\r\n <ng-container [ngSwitch]=\"rowData.eventOrigin\">\r\n <span *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n </ng-container>\r\n </td>\r\n <td class=\"w-32 align-top\">\r\n {{ rowData.controlCode || \"\" }}\r\n </td>\r\n </ng-container>\r\n <td class=\"w-full min-w-0 align-top\">\r\n <ng-container *ngFor=\"let group of rowData.groups\">\r\n <div class=\"max-w-full overflow-x-auto\">\r\n <s-event-steps\r\n [steps]=\"group.steps || []\"\r\n [activeIndex]=\"group.activeIndex\"\r\n (stepSelected)=\"stepSelected($event)\"\r\n >\r\n </s-event-steps>\r\n </div>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template *ngIf=\"!standalone\" pTemplate=\"paginatorright\" class=\"custom-table\">\r\n <span>\r\n {{ \"agro.angular_components.registers_found\" | libTranslate: { total: gridTotalRecords } }}\r\n </span>\r\n </ng-template>\r\n </p-table>\r\n </ng-container>\r\n </div>\r\n </p-panel>\r\n</ng-container>\r\n<s-sidebar\r\n [visible]=\"showSidebar\"\r\n (visibleChange)=\"closeSidebar()\"\r\n header=\"{{ 'agro.angular_components.event_details_header' | libTranslate }}\"\r\n>\r\n <div class=\"w-full\">\r\n <p-fieldset [legend]=\"sidebarTitle\" [toggleable]=\"false\">\r\n <div class=\"flex flex-col gap-4 md:flex-row md:flex-wrap\">\r\n <div class=\"md:w-1/3\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_origin_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.eventType\">\r\n <p *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.supplier\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.ruralEstate.name\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.rural_estate\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.ruralEstate.name }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"selectedStep?.controlCode\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.control_code\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.controlCode }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.status_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.item.status\">\r\n <p *ngSwitchCase=\"'SUCCESS'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Green\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_completed_successfully' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PROCESSING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Orange\"\r\n text=\"{{ 'agro.angular_components.processing' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'FAILED'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Red\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_ended_with_error' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PENDING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Gray\"\r\n text=\"{{ 'agro.angular_components.pending' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"md:w-1/3\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.last_update_date\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.lastModifiedDate | date: \"dd/MM/yyyy HH:mm:ss\" }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"selectedStep?.item.status === 'FAILED'\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_error_message\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.message || \"-\" }}</p>\r\n </div>\r\n </div>\r\n </p-fieldset>\r\n </div>\r\n <div class=\"s-footer\">\r\n <div class=\"flex flex-wrap justify-end gap-2\">\r\n <div class=\"flex flex-wrap justify-end gap-2\">\r\n <s-button\r\n id=\"sidebar-close-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n [label]=\"'agro.angular_components.events_close' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"closeSidebar()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"showReprocessButton\"\r\n id=\"sidebar-reprocess-button\"\r\n [priority]=\"ButtonPriority.Secondary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.reprocess_event' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"openModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n </div>\r\n</s-sidebar>\r\n\r\n<s-dialog\r\n [header]=\"'agro.angular_components.event_modal_title' | libTranslate\"\r\n [(visible)]=\"displayModal\"\r\n size=\"md\"\r\n>\r\n\r\n <div class=\"event-modal-text\">{{ \"agro.angular_components.event_modal\" | libTranslate }}</div>\r\n\r\n <ng-template sTemplate=\"footer\">\r\n <div class=\"flex justify-end gap-2\">\r\n <s-button\r\n id=\"modal-yes\"\r\n [label]=\"'agro.angular_components.yes' | libTranslate\"\r\n iconClass=\"fa fa-check\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n [auxiliary]=\"false\"\r\n (clicked)=\"confirmModal()\"\r\n >\r\n </s-button>\r\n <s-button\r\n id=\"modal-no\"\r\n [label]=\"'agro.angular_components.no' | libTranslate\"\r\n iconClass=\"fa fa-close\"\r\n [priority]=\"ButtonPriority.Secondary\"\r\n [auxiliary]=\"false\"\r\n (clicked)=\"cancelModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </ng-template>\r\n</s-dialog>\r\n", styles: [".frozen{border-left:2px solid #dddddd}:host ::ng-deep #cancel-button-agro-events-lib{background-color:#9c3a3a!important;border-color:#9c3a3a!important}:host ::ng-deep #cancel-button-agro-events-lib:hover{background-color:#642525!important}\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: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { 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: "component", type: i7.EmptyStateComponent, selector: "s-empty-state", inputs: ["id", "title", "iconClass", "description", "showPrimaryAction", "showSecondaryAction", "primaryActionLabel", "secondaryActionLabel", "primaryModel"], outputs: ["primaryAction", "secondaryAction"] }, { kind: "component", type: i13.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "style", "styleClass", "iconPos", "expandIcon", "collapseIcon", "showHeader", "toggler", "transitionOptions", "toggleButtonProps"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "component", type: i2$2.Header, selector: "p-header" }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i14$1.Fieldset, selector: "p-fieldset", inputs: ["legend", "toggleable", "collapsed", "style", "styleClass", "transitionOptions"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { 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: "component", type: i8.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i16.SidebarComponent, selector: "s-sidebar", inputs: ["visible", "closable", "dismissible", "closeOnEscape", "header", "largeSized", "cache", "registerConfirmClose"], outputs: ["visibleChange"] }, { kind: "directive", type: i17.TemplateDirective, selector: "[sTemplate]", inputs: ["sTemplate"] }, { kind: "directive", type: i14.LoadingStateDirective, selector: "[sLoadingState]", inputs: ["sLoadingState"] }, { kind: "component", type: i19.BadgeComponent, selector: "s-badge", inputs: ["type", "color", "title", "text", "selectable", "iconClass", "iconPosition", "infoSign", "enableTruncateText"], outputs: ["selected"] }, { kind: "component", type: i1$1.DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside"], outputs: ["visibleChange"] }, { kind: "component", type: EventStepsComponent, selector: "s-event-steps", inputs: ["id", "steps", "activeIndex"], outputs: ["stepSelected"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }, { kind: "pipe", type: LibTranslatePipe, name: "libTranslate" }] });
6269
6274
  }
6270
6275
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlBoardComponent, decorators: [{
6271
6276
  type: Component,
6272
- args: [{ selector: "s-event-control-board", providers: [{ provide: LOCALE_ID, useValue: "pt-BR" }], template: "<ng-container *sLoadingState=\"gridLoading\">\r\n <p-panel>\r\n <p-header>\r\n {{ \"agro.angular_components.event_control_header\" | libTranslate }}\r\n </p-header>\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-12\">\r\n <s-button\r\n id=\"refresh-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.refresh' | libTranslate\"\r\n (click)=\"onSearch()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"standalone && showCancelButton\"\r\n id=\"cancel-button-agro-events-lib\"\r\n iconClass=\"fa fa-times\"\r\n [label]=\"'agro.angular_components.cancel' | libTranslate\"\r\n (click)=\"openCancelModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-12 ui-md-12\" *ngIf=\"!gridData || gridData?.length === 0\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.nothing_found' | libTranslate }}\"\r\n [showPrimaryAction]=\"false\"\r\n description=\"{{ 'agro.angular_components.table_empty_description' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </div>\r\n <ng-container *ngIf=\"gridData.length > 0\">\r\n <p-table\r\n stylelass=\"custom-table\"\r\n #eventControlTable\r\n [value]=\"gridDataResolved\"\r\n [columns]=\"gridColumns\"\r\n dataKey=\"id\"\r\n [lazy]=\"true\"\r\n [scrollable]=\"true\"\r\n [resizableColumns]=\"true\"\r\n [paginator]=\"!standalone\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [rows]=\"10\"\r\n [responsive]=\"true\"\r\n (onLazyLoad)=\"onGridChange($event)\"\r\n [sortOrder]=\"getSortOrder()\"\r\n [first]=\"getRowIndex()\"\r\n [lazyLoadOnInit]=\"false\"\r\n sortMode=\"multiple\"\r\n [rows]=\"getPageSize()\"\r\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <th *ngFor=\"let col of columns\" class=\"ui-lg-1 ui-md-1\" [pSortableColumn]=\"col.field\" scope=\"col\">\r\n <div class=\"senior-header\">\r\n <span class=\"senior-header-title\">{{ col.header }}</span>\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <th class=\"ui-lg-8 ui-md-7\" scope=\"col\">\r\n {{ \"agro.angular_components.panel_title_events_events\" | libTranslate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <td class=\"ui-lg-1 ui-md-1\">\r\n {{ rowData.e070emp?.nomEmp }}\r\n </td>\r\n <td class=\"ui-lg-1 ui-md-1\">\r\n {{ rowData.e070fil?.nomFil }}\r\n </td>\r\n <td class=\"ui-lg-1 ui-md-1\">\r\n <ng-container [ngSwitch]=\"rowData.eventOrigin\">\r\n <span *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n </ng-container>\r\n </td>\r\n <td class=\"ui-lg-1 ui ui-md-1\">\r\n {{ rowData.controlCode || \"\" }}\r\n </td>\r\n </ng-container>\r\n <td class=\"ui-lg-8 ui-md-7\">\r\n <ng-container *ngFor=\"let group of rowData.groups\">\r\n <s-event-steps\r\n [steps]=\"group.steps || []\"\r\n [activeIndex]=\"group.activeIndex\"\r\n (stepSelected)=\"stepSelected($event)\"\r\n >\r\n </s-event-steps>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template *ngIf=\"!standalone\" pTemplate=\"paginatorright\" class=\"custom-table\">\r\n <span>\r\n {{ \"agro.angular_components.registers_found\" | libTranslate: { total: gridTotalRecords } }}\r\n </span>\r\n </ng-template>\r\n </p-table>\r\n </ng-container>\r\n </div>\r\n </p-panel>\r\n</ng-container>\r\n<s-sidebar\r\n [visible]=\"showSidebar\"\r\n (visibleChange)=\"closeSidebar()\"\r\n header=\"{{ 'agro.angular_components.event_details_header' | libTranslate }}\"\r\n>\r\n <div class=\"ui-fluid\">\r\n <p-fieldset [legend]=\"sidebarTitle\" [toggleable]=\"false\">\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-4\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_origin_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.eventType\">\r\n <p *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.supplier\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes }}</p>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.ruralEstate.name\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.rural_estate\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.ruralEstate.name }}</p>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"selectedStep?.controlCode\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.control_code\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.controlCode }}</p>\r\n </div>\r\n <div class=\"ui-g-4\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.status_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.item.status\">\r\n <p *ngSwitchCase=\"'SUCCESS'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Green\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_completed_successfully' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PROCESSING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Orange\"\r\n text=\"{{ 'agro.angular_components.processing' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'FAILED'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Red\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_ended_with_error' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PENDING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Gray\"\r\n text=\"{{ 'agro.angular_components.pending' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"ui-g-4\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.last_update_date\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.lastModifiedDate | date: \"dd/MM/yyyy HH:mm:ss\" }}</p>\r\n </div>\r\n <div class=\"ui-g-4\" *ngIf=\"selectedStep?.item.status === 'FAILED'\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_error_message\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.message || \"-\" }}</p>\r\n </div>\r\n </div>\r\n </p-fieldset>\r\n </div>\r\n <div class=\"s-footer\">\r\n <div class=\"ui-g\">\r\n <div class=\"ui-g-12 width-fit\">\r\n <s-button\r\n id=\"sidebar-close-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n [label]=\"'agro.angular_components.events_close' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"closeSidebar()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"showReprocessButton\"\r\n id=\"sidebar-reprocess-button\"\r\n [priority]=\"ButtonPriority.Secondary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.reprocess_event' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"openModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n </div>\r\n</s-sidebar>\r\n\r\n<p-dialog [header]=\"'agro.angular_components.event_modal_title' | libTranslate\" [(visible)]=\"displayModal\" [modal]=\"true\" class=\"dialog\">\r\n <div class=\"event-modal-text\">{{ \"agro.angular_components.event_modal\" | libTranslate }}</div>\r\n <p-footer>\r\n <div class=\"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix\">\r\n <button\r\n id=\"modal-yes\"\r\n type=\"button\"\r\n pButton\r\n icon=\"fa fa-check\"\r\n (click)=\"confirmModal()\"\r\n class=\"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only\"\r\n >\r\n {{ 'agro.angular_components.yes' | libTranslate }}\r\n </button>\r\n <button\r\n id=\"modal-no\"\r\n type=\"button\"\r\n pButton\r\n icon=\"fa fa-close\"\r\n (click)=\"cancelModal()\"\r\n class=\"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only\"\r\n >\r\n {{ 'agro.angular_components.no' | libTranslate }}\r\n </button>\r\n </div>\r\n </p-footer>\r\n</p-dialog>\r\n", styles: [".frozen{border-left:2px solid #dddddd}.dialog{width:\"600px\";height:\"300px\";z-index:100000}:host ::ng-deep #cancel-button-agro-events-lib{background-color:#9c3a3a!important;border-color:#9c3a3a!important}:host ::ng-deep #cancel-button-agro-events-lib:hover{background-color:#642525!important}\n"] }]
6277
+ args: [{ selector: "s-event-control-board", providers: [{ provide: LOCALE_ID, useValue: "pt-BR" }], template: "<ng-container *sLoadingState=\"gridLoading\">\r\n <p-panel>\r\n <p-header>\r\n {{ \"agro.angular_components.event_control_header\" | libTranslate }}\r\n </p-header>\r\n <div class=\"flex flex-col gap-3\">\r\n <div class=\"col-span-1\">\r\n <s-button\r\n id=\"refresh-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.refresh' | libTranslate\"\r\n (click)=\"onSearch()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"standalone && showCancelButton\"\r\n id=\"cancel-button-agro-events-lib\"\r\n iconClass=\"fa fa-times\"\r\n [label]=\"'agro.angular_components.cancel' | libTranslate\"\r\n (click)=\"openCancelModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col gap-3\">\r\n <div class=\"col-span-1\" *ngIf=\"gridData.length === 0\">\r\n <s-empty-state\r\n iconClass=\"fa fa-exclamation-triangle\"\r\n title=\"{{ 'agro.angular_components.nothing_found' | libTranslate }}\"\r\n [showPrimaryAction]=\"false\"\r\n description=\"{{ 'agro.angular_components.table_empty_description' | libTranslate }}\"\r\n >\r\n </s-empty-state>\r\n </div>\r\n <ng-container *ngIf=\"gridData.length > 0\">\r\n <p-table\r\n styleClass=\"custom-table\"\r\n #eventControlTable\r\n [value]=\"gridDataResolved\"\r\n [columns]=\"gridColumns\"\r\n dataKey=\"id\"\r\n [lazy]=\"true\"\r\n [scrollable]=\"true\"\r\n [resizableColumns]=\"true\"\r\n [paginator]=\"!standalone\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [rows]=\"10\"\r\n [responsive]=\"true\"\r\n (onLazyLoad)=\"onGridChange($event)\"\r\n [sortOrder]=\"getSortOrder()\"\r\n [first]=\"getRowIndex()\"\r\n [lazyLoadOnInit]=\"false\"\r\n sortMode=\"multiple\"\r\n [rows]=\"getPageSize()\"\r\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <th *ngFor=\"let col of columns\" class=\"w-32\" [pSortableColumn]=\"col.field\" scope=\"col\">\r\n <div class=\"senior-header\">\r\n <span class=\"senior-header-title\">{{ col.header }}</span>\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </div>\r\n </th>\r\n </ng-container>\r\n <th class=\"w-full min-w-0\" scope=\"col\">\r\n {{ \"agro.angular_components.panel_title_events_events\" | libTranslate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData>\r\n <tr>\r\n <ng-container *ngIf=\"!standalone\">\r\n <td class=\"w-32 align-top\">\r\n {{ rowData.e070emp?.nomEmp }}\r\n </td>\r\n <td class=\"w-32 align-top\">\r\n {{ rowData.e070fil?.nomFil }}\r\n </td>\r\n <td class=\"w-32 align-top\">\r\n <ng-container [ngSwitch]=\"rowData.eventOrigin\">\r\n <span *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n <span *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </span>\r\n </ng-container>\r\n </td>\r\n <td class=\"w-32 align-top\">\r\n {{ rowData.controlCode || \"\" }}\r\n </td>\r\n </ng-container>\r\n <td class=\"w-full min-w-0 align-top\">\r\n <ng-container *ngFor=\"let group of rowData.groups\">\r\n <div class=\"max-w-full overflow-x-auto\">\r\n <s-event-steps\r\n [steps]=\"group.steps || []\"\r\n [activeIndex]=\"group.activeIndex\"\r\n (stepSelected)=\"stepSelected($event)\"\r\n >\r\n </s-event-steps>\r\n </div>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template *ngIf=\"!standalone\" pTemplate=\"paginatorright\" class=\"custom-table\">\r\n <span>\r\n {{ \"agro.angular_components.registers_found\" | libTranslate: { total: gridTotalRecords } }}\r\n </span>\r\n </ng-template>\r\n </p-table>\r\n </ng-container>\r\n </div>\r\n </p-panel>\r\n</ng-container>\r\n<s-sidebar\r\n [visible]=\"showSidebar\"\r\n (visibleChange)=\"closeSidebar()\"\r\n header=\"{{ 'agro.angular_components.event_details_header' | libTranslate }}\"\r\n>\r\n <div class=\"w-full\">\r\n <p-fieldset [legend]=\"sidebarTitle\" [toggleable]=\"false\">\r\n <div class=\"flex flex-col gap-4 md:flex-row md:flex-wrap\">\r\n <div class=\"md:w-1/3\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_origin_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.eventType\">\r\n <p *ngSwitchCase=\"'BALANCE_ENTRY_CONTROL'\">\r\n {{ \"agro.angular_components.balance_entry_control_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TICKET'\">\r\n {{ \"agro.angular_components.ticket_maintenance_header\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER'\">\r\n {{ \"agro.angular_components.transfer_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'INVOICE'\">\r\n {{ \"agro.angular_components.CREATE_INVOICE_FIXATION\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CHANGE_REQUEST'\">\r\n {{ \"agro.angular_components.change_request_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'FIXATION'\">\r\n {{ \"agro.angular_components.fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'CANCEL_FIXATION'\">\r\n {{ \"agro.angular_components.cancel_fixation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'TRANSFER_CANCELLATION'\">\r\n {{ \"agro.angular_components.transfer_cancellation_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'AGRONOMIC_PRESCRIPTION'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n <p *ngSwitchCase=\"'PRESCRIPTION_INTEGRATION_HUB'\">\r\n {{ \"agro.angular_components.agronomic_prescription_origin_event\" | libTranslate }}\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.supplier\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.producer.e001pes.nomPes }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"producerInvoice?.producerBalanceEntryControl.ruralEstate.name\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.rural_estate\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ producerInvoice?.producerBalanceEntryControl.ruralEstate.name }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"selectedStep?.controlCode\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.control_code\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.controlCode }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.status_label\" | libTranslate }}</strong></span\r\n >\r\n <ng-container [ngSwitch]=\"selectedStep?.item.status\">\r\n <p *ngSwitchCase=\"'SUCCESS'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Green\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_completed_successfully' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PROCESSING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Orange\"\r\n text=\"{{ 'agro.angular_components.processing' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'FAILED'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Red\"\r\n text=\"{{ 'agro.angular_components.panel_title_events_ended_with_error' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n <p *ngSwitchCase=\"'PENDING'\">\r\n <s-badge\r\n [color]=\"BadgeColors.Gray\"\r\n text=\"{{ 'agro.angular_components.pending' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n >\r\n </s-badge>\r\n </p>\r\n </ng-container>\r\n </div>\r\n <div class=\"md:w-1/3\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.last_update_date\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.lastModifiedDate | date: \"dd/MM/yyyy HH:mm:ss\" }}</p>\r\n </div>\r\n <div class=\"md:w-1/3\" *ngIf=\"selectedStep?.item.status === 'FAILED'\">\r\n <span\r\n ><strong>{{ \"agro.angular_components.event_error_message\" | libTranslate }}</strong></span\r\n >\r\n <p>{{ selectedStep?.item.message || \"-\" }}</p>\r\n </div>\r\n </div>\r\n </p-fieldset>\r\n </div>\r\n <div class=\"s-footer\">\r\n <div class=\"flex flex-wrap justify-end gap-2\">\r\n <div class=\"flex flex-wrap justify-end gap-2\">\r\n <s-button\r\n id=\"sidebar-close-button\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n [label]=\"'agro.angular_components.events_close' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"closeSidebar()\"\r\n >\r\n </s-button>\r\n <s-button\r\n *ngIf=\"showReprocessButton\"\r\n id=\"sidebar-reprocess-button\"\r\n [priority]=\"ButtonPriority.Secondary\"\r\n iconClass=\"fa fa-refresh\"\r\n [label]=\"'agro.angular_components.reprocess_event' | libTranslate\"\r\n [auxiliary]=\"false\"\r\n (click)=\"openModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </div>\r\n </div>\r\n</s-sidebar>\r\n\r\n<s-dialog\r\n [header]=\"'agro.angular_components.event_modal_title' | libTranslate\"\r\n [(visible)]=\"displayModal\"\r\n size=\"md\"\r\n>\r\n\r\n <div class=\"event-modal-text\">{{ \"agro.angular_components.event_modal\" | libTranslate }}</div>\r\n\r\n <ng-template sTemplate=\"footer\">\r\n <div class=\"flex justify-end gap-2\">\r\n <s-button\r\n id=\"modal-yes\"\r\n [label]=\"'agro.angular_components.yes' | libTranslate\"\r\n iconClass=\"fa fa-check\"\r\n [priority]=\"ButtonPriority.Primary\"\r\n [auxiliary]=\"false\"\r\n (clicked)=\"confirmModal()\"\r\n >\r\n </s-button>\r\n <s-button\r\n id=\"modal-no\"\r\n [label]=\"'agro.angular_components.no' | libTranslate\"\r\n iconClass=\"fa fa-close\"\r\n [priority]=\"ButtonPriority.Secondary\"\r\n [auxiliary]=\"false\"\r\n (clicked)=\"cancelModal()\"\r\n >\r\n </s-button>\r\n </div>\r\n </ng-template>\r\n</s-dialog>\r\n", styles: [".frozen{border-left:2px solid #dddddd}:host ::ng-deep #cancel-button-agro-events-lib{background-color:#9c3a3a!important;border-color:#9c3a3a!important}:host ::ng-deep #cancel-button-agro-events-lib:hover{background-color:#642525!important}\n"] }]
6273
6278
  }], ctorParameters: () => [{ type: LibTranslationService }, { type: i11.FormBuilder }, { type: WebsocketService }, { type: EventControlService }, { type: PaginatorStorageService }, { type: EventControlItemService }, { type: ProducerInvoiceService }, { type: i2$2.MessageService }, { type: i2$1.DialogService }], propDecorators: { company: [{
6274
6279
  type: Input
6275
6280
  }], branch: [{
@@ -6323,7 +6328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6323
6328
 
6324
6329
  class E001pesModule {
6325
6330
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E001pesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6326
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E001pesModule, imports: [i1$1.PermissionsModule] });
6331
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E001pesModule, imports: [i1$2.PermissionsModule] });
6327
6332
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E001pesModule, providers: [E001pesService], imports: [PermissionsModule.forChild([
6328
6333
  {
6329
6334
  name: "e001pes",
@@ -6369,7 +6374,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6369
6374
 
6370
6375
  class E001TnsModule {
6371
6376
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E001TnsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6372
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E001TnsModule, imports: [i1$1.PermissionsModule] });
6377
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E001TnsModule, imports: [i1$2.PermissionsModule] });
6373
6378
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E001TnsModule, providers: [
6374
6379
  E001TnsService,
6375
6380
  ], imports: [PermissionsModule.forChild([
@@ -6443,7 +6448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6443
6448
 
6444
6449
  let E070EmpModule$1 = class E070EmpModule {
6445
6450
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6446
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, imports: [i1$1.PermissionsModule] });
6451
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, imports: [i1$2.PermissionsModule] });
6447
6452
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, providers: [E070EmpService$1], imports: [PermissionsModule.forChild([
6448
6453
  {
6449
6454
  name: "e070emp",
@@ -6496,7 +6501,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6496
6501
 
6497
6502
  let E070FilModule$1 = class E070FilModule {
6498
6503
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6499
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, imports: [i1$1.PermissionsModule] });
6504
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, imports: [i1$2.PermissionsModule] });
6500
6505
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, providers: [E070FilService$1], imports: [PermissionsModule.forChild([
6501
6506
  {
6502
6507
  name: "e070fil",
@@ -6547,7 +6552,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6547
6552
 
6548
6553
  class E075DerModule {
6549
6554
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E075DerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6550
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E075DerModule, imports: [i1$1.PermissionsModule] });
6555
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E075DerModule, imports: [i1$2.PermissionsModule] });
6551
6556
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E075DerModule, providers: [E075DerService], imports: [PermissionsModule.forChild([
6552
6557
  {
6553
6558
  name: "e075der",
@@ -6598,7 +6603,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6598
6603
 
6599
6604
  class EventControlModule {
6600
6605
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6601
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: EventControlModule, imports: [i1$1.PermissionsModule] });
6606
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: EventControlModule, imports: [i1$2.PermissionsModule] });
6602
6607
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlModule, providers: [EventControlService], imports: [PermissionsModule.forChild([
6603
6608
  {
6604
6609
  name: "eventControl",
@@ -6627,7 +6632,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6627
6632
 
6628
6633
  class EventControlItemModule {
6629
6634
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6630
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: EventControlItemModule, imports: [i1$1.PermissionsModule] });
6635
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: EventControlItemModule, imports: [i1$2.PermissionsModule] });
6631
6636
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlItemModule, providers: [EventControlItemService], imports: [PermissionsModule.forChild([
6632
6637
  {
6633
6638
  name: "eventControlItem",
@@ -6673,7 +6678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6673
6678
 
6674
6679
  class ExternalInvoiceModule {
6675
6680
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExternalInvoiceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6676
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ExternalInvoiceModule, imports: [i1$1.PermissionsModule] });
6681
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ExternalInvoiceModule, imports: [i1$2.PermissionsModule] });
6677
6682
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExternalInvoiceModule, providers: [ExternalInvoiceService], imports: [PermissionsModule.forChild([
6678
6683
  {
6679
6684
  name: "externalInvoice",
@@ -6719,7 +6724,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6719
6724
 
6720
6725
  class InvoiceModule {
6721
6726
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InvoiceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6722
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: InvoiceModule, imports: [i1$1.PermissionsModule] });
6727
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: InvoiceModule, imports: [i1$2.PermissionsModule] });
6723
6728
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InvoiceModule, providers: [
6724
6729
  InvoiceService,
6725
6730
  ], imports: [PermissionsModule.forChild([
@@ -6769,7 +6774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6769
6774
 
6770
6775
  class OriginationModule {
6771
6776
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OriginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6772
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: OriginationModule, imports: [i1$1.PermissionsModule] });
6777
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: OriginationModule, imports: [i1$2.PermissionsModule] });
6773
6778
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OriginationModule, providers: [OriginationService], imports: [PermissionsModule.forChild([
6774
6779
  {
6775
6780
  name: "balanceEntryControl",
@@ -6815,7 +6820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6815
6820
 
6816
6821
  class RuralEstateModule {
6817
6822
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RuralEstateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6818
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: RuralEstateModule, imports: [i1$1.PermissionsModule] });
6823
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: RuralEstateModule, imports: [i1$2.PermissionsModule] });
6819
6824
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RuralEstateModule, providers: [RuralEstateService], imports: [PermissionsModule.forChild([
6820
6825
  {
6821
6826
  name: "ruralEstate",
@@ -6896,7 +6901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6896
6901
 
6897
6902
  class TicketModule {
6898
6903
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TicketModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6899
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TicketModule, imports: [i1$1.PermissionsModule] });
6904
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TicketModule, imports: [i1$2.PermissionsModule] });
6900
6905
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TicketModule, providers: [
6901
6906
  TicketService,
6902
6907
  ], imports: [PermissionsModule.forChild([
@@ -6977,7 +6982,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
6977
6982
 
6978
6983
  class TransferModule {
6979
6984
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6980
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TransferModule, imports: [i1$1.PermissionsModule] });
6985
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TransferModule, imports: [i1$2.PermissionsModule] });
6981
6986
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TransferModule, providers: [
6982
6987
  TransferService,
6983
6988
  ], imports: [PermissionsModule.forChild([
@@ -7032,7 +7037,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7032
7037
 
7033
7038
  class FixationModule {
7034
7039
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FixationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7035
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: FixationModule, imports: [i1$1.PermissionsModule] });
7040
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: FixationModule, imports: [i1$2.PermissionsModule] });
7036
7041
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FixationModule, providers: [FixationService], imports: [PermissionsModule.forChild([
7037
7042
  {
7038
7043
  name: "fixation",
@@ -7077,8 +7082,8 @@ class EventControlBoardModule {
7077
7082
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlBoardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7078
7083
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: EventControlBoardModule, declarations: [EventControlBoardComponent], imports: [i3$1.LocaleModule, SharedModule,
7079
7084
  ButtonModule,
7085
+ DialogComponent,
7080
7086
  EventStepsModule,
7081
- DialogModule,
7082
7087
  FieldsetModule$1,
7083
7088
  BadgeModule,
7084
7089
  E001pesModule,
@@ -7097,13 +7102,14 @@ class EventControlBoardModule {
7097
7102
  WebsocketModule,
7098
7103
  LibTranslationModule,
7099
7104
  FixationModule,
7100
- CancelEventDialogModule], exports: [EventControlBoardComponent] });
7105
+ CancelEventDialogModule,
7106
+ StructureModule], exports: [EventControlBoardComponent] });
7101
7107
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlBoardModule, providers: [E012famService, E205depService, PaginatorStorageService,
7102
7108
  EventControlService, DialogService], imports: [LocaleModule.forChild(),
7103
7109
  SharedModule,
7104
7110
  ButtonModule,
7111
+ DialogComponent,
7105
7112
  EventStepsModule,
7106
- DialogModule,
7107
7113
  FieldsetModule$1,
7108
7114
  BadgeModule,
7109
7115
  E001pesModule,
@@ -7122,7 +7128,8 @@ class EventControlBoardModule {
7122
7128
  WebsocketModule,
7123
7129
  LibTranslationModule,
7124
7130
  FixationModule,
7125
- CancelEventDialogModule] });
7131
+ CancelEventDialogModule,
7132
+ StructureModule] });
7126
7133
  }
7127
7134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventControlBoardModule, decorators: [{
7128
7135
  type: NgModule,
@@ -7131,8 +7138,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7131
7138
  LocaleModule.forChild(),
7132
7139
  SharedModule,
7133
7140
  ButtonModule,
7141
+ DialogComponent,
7134
7142
  EventStepsModule,
7135
- DialogModule,
7136
7143
  FieldsetModule$1,
7137
7144
  BadgeModule,
7138
7145
  E001pesModule,
@@ -7152,6 +7159,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7152
7159
  LibTranslationModule,
7153
7160
  FixationModule,
7154
7161
  CancelEventDialogModule,
7162
+ StructureModule
7155
7163
  ],
7156
7164
  declarations: [EventControlBoardComponent],
7157
7165
  exports: [EventControlBoardComponent],
@@ -7575,7 +7583,7 @@ const providers = [DecimalPipe, DatePipe, KilogramPipe, LocalizedDatePipe, Curre
7575
7583
 
7576
7584
  class ModalInvoicePjForOriginationModule {
7577
7585
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForOriginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7578
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForOriginationModule, declarations: [ModalInvoicePjForOriginationComponent], 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: [ModalInvoicePjForOriginationComponent] });
7586
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForOriginationModule, declarations: [ModalInvoicePjForOriginationComponent], 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$1.ConfirmDialogModule, i18.TableHeaderCheckboxModule, i3$1.LocaleModule], exports: [ModalInvoicePjForOriginationComponent] });
7579
7587
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForOriginationModule, providers: [...providers], imports: [imports] });
7580
7588
  }
7581
7589
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForOriginationModule, decorators: [{
@@ -7614,7 +7622,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7614
7622
 
7615
7623
  class ModalInvoicePjForTransferModule {
7616
7624
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7617
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForTransferModule, declarations: [ModalInvoicePjForTransferComponent], 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: [ModalInvoicePjForTransferComponent] });
7625
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForTransferModule, declarations: [ModalInvoicePjForTransferComponent], 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$1.ConfirmDialogModule, i18.TableHeaderCheckboxModule, i3$1.LocaleModule], exports: [ModalInvoicePjForTransferComponent] });
7618
7626
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForTransferModule, providers: [...providers], imports: [imports] });
7619
7627
  }
7620
7628
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForTransferModule, decorators: [{
@@ -7799,7 +7807,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7799
7807
 
7800
7808
  class ModalInvoicePjForFixationModule {
7801
7809
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForFixationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7802
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForFixationModule, declarations: [ModalInvoicePjForFixationComponent], 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: [ModalInvoicePjForFixationComponent] });
7810
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForFixationModule, declarations: [ModalInvoicePjForFixationComponent], 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$1.ConfirmDialogModule, i18.TableHeaderCheckboxModule, i3$1.LocaleModule], exports: [ModalInvoicePjForFixationComponent] });
7803
7811
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForFixationModule, providers: [...providers], imports: [imports] });
7804
7812
  }
7805
7813
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForFixationModule, decorators: [{
@@ -7865,7 +7873,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7865
7873
 
7866
7874
  class ModalInvoicePjForContractsModule {
7867
7875
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForContractsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7868
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForContractsModule, declarations: [ModalInvoicePjForContractsComponent], 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: [ModalInvoicePjForContractsComponent] });
7876
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForContractsModule, declarations: [ModalInvoicePjForContractsComponent], 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$1.ConfirmDialogModule, i18.TableHeaderCheckboxModule, i3$1.LocaleModule], exports: [ModalInvoicePjForContractsComponent] });
7869
7877
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForContractsModule, providers: [...providers], imports: [imports] });
7870
7878
  }
7871
7879
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForContractsModule, decorators: [{
@@ -7992,7 +8000,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
7992
8000
 
7993
8001
  class ModalInvoicePjForLoadOrderModule {
7994
8002
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7995
- 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] });
8003
+ 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$1.ConfirmDialogModule, i18.TableHeaderCheckboxModule, i3$1.LocaleModule], exports: [ModalInvoicePjForLoadOrderComponent] });
7996
8004
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, providers: [...providers], imports: [imports] });
7997
8005
  }
7998
8006
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInvoicePjForLoadOrderModule, decorators: [{
@@ -8478,7 +8486,7 @@ class FinancialTitleTableComponent {
8478
8486
  };
8479
8487
  }
8480
8488
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FinancialTitleTableComponent, deps: [{ token: LibTranslationService }, { token: AgroFinancialService }, { token: i2$2.MessageService }], target: i0.ɵɵFactoryTarget.Component });
8481
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FinancialTitleTableComponent, selector: "s-financial-title-table", inputs: { options: "options", selected: "selected" }, outputs: { selectionChange: "selectionChange" }, viewQueries: [{ propertyName: "table", first: true, predicate: ["TitleTable"], descendants: true }], ngImport: i0, template: "<ng-container *sLoadingState=\"componentLoading\">\r\n <div [hidden]=\"gridData.length > 0\">\r\n <s-empty-state\r\n iconClass=\"fa fa-inbox\"\r\n title=\"{{ 'agro.angular_components.no_accounts_found_title' | libTranslate }}\"\r\n [showPrimaryAction]=\"false\"\r\n description=\"{{ 'agro.angular_components.no_accounts_found_description' | libTranslate }}\"\r\n ></s-empty-state>\r\n </div>\r\n <p-table\r\n #TitleTable\r\n [hidden]=\"gridData.length === 0\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n dataKey=\"id\"\r\n [lazy]=\"true\"\r\n [paginator]=\"true\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [sortField]=\"getSortField()\"\r\n [sortOrder]=\"getSortOrder()\"\r\n [first]=\"getRowIndex()\"\r\n [rows]=\"getPageSize()\"\r\n [lazyLoadOnInit]=\"false\"\r\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\r\n (onLazyLoad)=\"updateGrid($event)\"\r\n [(selection)]=\"selected\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n (onRowUnselect)=\"onUnselect($event)\"\r\n sortMode=\"single\"\r\n [selectionMode]=\"'multiple'\"\r\n editMode=\"row\"\r\n [scrollable]=\"true\"\r\n frozenWidth=\"160px\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th class=\"table-checkbox-header\" scope=\"col\" [ngStyle]=\"getStyleColumns('checkbox')\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <ng-container *ngFor=\"let col of columns; let i = index\">\r\n <ng-container *ngIf=\"col.orderBy; else notSortable\">\r\n <th [pSortableColumn]=\"col.field\" [scope]=\"'col'\" [ngStyle]=\"getStyleColumns(col.field)\">\r\n {{ col.header }}\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </th>\r\n </ng-container>\r\n <ng-template #notSortable>\r\n <th [scope]=\"'col'\" [ngStyle]=\"getStyleColumns(col.field)\">\r\n {{ col.header }}\r\n </th>\r\n </ng-template>\r\n </ng-container>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"frozenheader\">\r\n <tr>\r\n <th scope=\"col\" pFrozenColumn>\r\n {{ 'agro.angular_components.details' | libTranslate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template\r\n pTemplate=\"body\"\r\n let-rowData\r\n let-columns=\"columns\"\r\n let-rowIndex=\"rowIndex\"\r\n let-editing=\"editing\"\r\n let-ri=\"rowIndex\"\r\n >\r\n <tr [pEditableRow]=\"rowData\" [formGroup]=\"$any(titlesForm.at(rowIndex))\">\r\n <td class=\"table-checkbox-header\" [ngStyle]=\"getStyleColumns('checkbox')\">\r\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\r\n </td>\r\n <td *ngFor=\"let col of columns; let i = index\" [ngStyle]=\"getStyleColumns(col.field)\">\r\n <p-cellEditor>\r\n <ng-template pTemplate=\"input\">\r\n <ng-container [ngSwitch]=\"col.field\">\r\n <ng-container *ngSwitchCase=\"'valuePaid'\">\r\n <input\r\n pInputText\r\n sNumberInput\r\n class=\"w-full\"\r\n id=\"valuePaid-input-{{ rowData.id || rowIndex }}\"\r\n decimalSeparator=\",\"\r\n thousandsSeparator=\".\"\r\n formControlName=\"valuePaid\"\r\n type=\"text\"\r\n [scale]=\"2\"\r\n [allowNegative]=\"false\"\r\n [attr.aria-label]=\"'agro.angular_components.value_paid' | libTranslate\"\r\n />\r\n <br />\r\n <s-control-errors\r\n [control]=\"$any(titlesForm.at(rowIndex)).get('valuePaid')\"\r\n [errorMessages]=\"errorMessage\"\r\n >\r\n </s-control-errors>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ getProp(rowData, col) }}\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template pTemplate=\"output\">\r\n <ng-container [ngSwitch]=\"col.field\">\r\n <ng-container *ngSwitchCase=\"'valuePaid'\">\r\n {{ rowData['valuePaid'] || 0 | currency: 'BRL':'symbol':'1.2-2':'pt-BR' }}\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ getProp(rowData, col) }}\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n </p-cellEditor>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"frozenbody\" let-rowData let-columns>\r\n <tr [pEditableRow]=\"rowData\">\r\n <td pFrozenColumn>\r\n <s-button\r\n id=\"details-{{ rowData.id }}\"\r\n (click)=\"showDetails(rowData)\"\r\n (keydown.enter)=\"showDetails(rowData)\"\r\n label=\"{{ 'agro.angular_components.details' | libTranslate }}\"\r\n [priority]=\"'default'\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"true\"\r\n [size]=\"'small'\"\r\n iconClass=\"fa fa-rocket\"\r\n ></s-button>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n</ng-container>\r\n<s-sidebar\r\n [(visible)]=\"showSidebar\"\r\n position=\"right\"\r\n [header]=\"('agro.angular_components.account_details' | libTranslate) + ' ' + (selectedRow?.numberTitle || '')\"\r\n>\r\n <div class=\"ui-fluid\">\r\n <div class=\"ui-g\">\r\n <ng-container *ngFor=\"let field of sidebarFields\">\r\n <div class=\"ui-g-4\">\r\n <span>\r\n <strong>{{ field.header }}</strong>\r\n </span>\r\n <p>{{ getProp(selectedRow, field) || '-' }}</p>\r\n </div>\r\n </ng-container>\r\n <ng-template #noValue>-</ng-template>\r\n <div class=\"ui-g-4\">\r\n <span>\r\n <strong>{{ 'agro.angular_components.status_label' | libTranslate }}</strong>\r\n </span>\r\n <p>\r\n <ng-container [ngSwitch]=\"selectedRow?.status\">\r\n <span *ngSwitchCase=\"'OPEN'\">\r\n <s-badge\r\n [color]=\"'yellow'\"\r\n text=\"{{ 'agro.angular_components.status_open' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n ></s-badge>\r\n </span>\r\n <span *ngSwitchCase=\"'PAID'\">\r\n <s-badge\r\n [color]=\"'green'\"\r\n text=\"{{ 'agro.angular_components.status_paid' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n ></s-badge>\r\n </span>\r\n </ng-container>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <s-footer>\r\n <s-button label=\"{{ 'agro.angular_components.close' | libTranslate }}\" (onClick)=\"closeDetails()\"> </s-button>\r\n </s-footer>\r\n</s-sidebar>\r\n", styles: [".error-message{color:#c13018;margin-top:5px;font-size:12px}\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: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i6.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i7.EmptyStateComponent, selector: "s-empty-state", inputs: ["id", "title", "iconClass", "description", "showPrimaryAction", "showSecondaryAction", "primaryActionLabel", "secondaryActionLabel", "primaryModel"], outputs: ["primaryAction", "secondaryAction"] }, { 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: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i8.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i8.FrozenColumn, selector: "[pFrozenColumn]", inputs: ["frozen", "alignFrozen"] }, { kind: "component", type: i8.CellEditor, selector: "p-cellEditor" }, { 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: "directive", type: i8.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { kind: "component", type: i18.BadgeComponent, selector: "s-badge", inputs: ["type", "color", "title", "text", "selectable", "iconClass", "iconPosition", "infoSign", "enableTruncateText"], outputs: ["selected"] }, { 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: "component", type: i16.SidebarComponent, selector: "s-sidebar", inputs: ["visible", "closable", "dismissible", "closeOnEscape", "header", "largeSized", "cache", "registerConfirmClose"], outputs: ["visibleChange"] }, { 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i11.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i11.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i14.LoadingStateDirective, selector: "[sLoadingState]", inputs: ["sLoadingState"] }, { kind: "directive", type: i9.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i13$2.FooterComponent, selector: "s-footer" }, { kind: "directive", type: i14$2.NumberInputDirective, selector: "input[sNumberInput]", inputs: ["precision", "scale", "decimalSeparator", "thousandsSeparator", "alignTo", "allowNegative", "placeholder"], outputs: ["pasteRejected"] }, { kind: "component", type: i15$1.ControlErrorsComponent, selector: "s-control-errors", inputs: ["id", "control", "errorMessages", "form"] }, { kind: "pipe", type: i6.CurrencyPipe, name: "currency" }, { kind: "pipe", type: LibTranslatePipe, name: "libTranslate" }] });
8489
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FinancialTitleTableComponent, selector: "s-financial-title-table", inputs: { options: "options", selected: "selected" }, outputs: { selectionChange: "selectionChange" }, viewQueries: [{ propertyName: "table", first: true, predicate: ["TitleTable"], descendants: true }], ngImport: i0, template: "<ng-container *sLoadingState=\"componentLoading\">\r\n <div [hidden]=\"gridData.length > 0\">\r\n <s-empty-state\r\n iconClass=\"fa fa-inbox\"\r\n title=\"{{ 'agro.angular_components.no_accounts_found_title' | libTranslate }}\"\r\n [showPrimaryAction]=\"false\"\r\n description=\"{{ 'agro.angular_components.no_accounts_found_description' | libTranslate }}\"\r\n ></s-empty-state>\r\n </div>\r\n <p-table\r\n #TitleTable\r\n [hidden]=\"gridData.length === 0\"\r\n [value]=\"gridData\"\r\n [columns]=\"gridColumns\"\r\n dataKey=\"id\"\r\n [lazy]=\"true\"\r\n [paginator]=\"true\"\r\n [totalRecords]=\"gridTotalRecords\"\r\n [sortField]=\"getSortField()\"\r\n [sortOrder]=\"getSortOrder()\"\r\n [first]=\"getRowIndex()\"\r\n [rows]=\"getPageSize()\"\r\n [lazyLoadOnInit]=\"false\"\r\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\r\n (onLazyLoad)=\"updateGrid($event)\"\r\n [(selection)]=\"selected\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n (onRowUnselect)=\"onUnselect($event)\"\r\n sortMode=\"single\"\r\n [selectionMode]=\"'multiple'\"\r\n editMode=\"row\"\r\n [scrollable]=\"true\"\r\n frozenWidth=\"160px\"\r\n >\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th class=\"table-checkbox-header\" scope=\"col\" [ngStyle]=\"getStyleColumns('checkbox')\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <ng-container *ngFor=\"let col of columns; let i = index\">\r\n <ng-container *ngIf=\"col.orderBy; else notSortable\">\r\n <th [pSortableColumn]=\"col.field\" [scope]=\"'col'\" [ngStyle]=\"getStyleColumns(col.field)\">\r\n {{ col.header }}\r\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\r\n </th>\r\n </ng-container>\r\n <ng-template #notSortable>\r\n <th [scope]=\"'col'\" [ngStyle]=\"getStyleColumns(col.field)\">\r\n {{ col.header }}\r\n </th>\r\n </ng-template>\r\n </ng-container>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"frozenheader\">\r\n <tr>\r\n <th scope=\"col\" pFrozenColumn>\r\n {{ 'agro.angular_components.details' | libTranslate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template\r\n pTemplate=\"body\"\r\n let-rowData\r\n let-columns=\"columns\"\r\n let-rowIndex=\"rowIndex\"\r\n let-editing=\"editing\"\r\n let-ri=\"rowIndex\"\r\n >\r\n <tr [pEditableRow]=\"rowData\" [formGroup]=\"$any(titlesForm.at(rowIndex))\">\r\n <td class=\"table-checkbox-header\" [ngStyle]=\"getStyleColumns('checkbox')\">\r\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\r\n </td>\r\n <td *ngFor=\"let col of columns; let i = index\" [ngStyle]=\"getStyleColumns(col.field)\">\r\n <p-cellEditor>\r\n <ng-template pTemplate=\"input\">\r\n <ng-container [ngSwitch]=\"col.field\">\r\n <ng-container *ngSwitchCase=\"'valuePaid'\">\r\n <input\r\n pInputText\r\n sNumberInput\r\n class=\"w-full\"\r\n id=\"valuePaid-input-{{ rowData.id || rowIndex }}\"\r\n decimalSeparator=\",\"\r\n thousandsSeparator=\".\"\r\n formControlName=\"valuePaid\"\r\n type=\"text\"\r\n [scale]=\"2\"\r\n [allowNegative]=\"false\"\r\n [attr.aria-label]=\"'agro.angular_components.value_paid' | libTranslate\"\r\n />\r\n <br />\r\n <s-control-errors\r\n [control]=\"$any(titlesForm.at(rowIndex)).get('valuePaid')\"\r\n [errorMessages]=\"errorMessage\"\r\n >\r\n </s-control-errors>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ getProp(rowData, col) }}\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template pTemplate=\"output\">\r\n <ng-container [ngSwitch]=\"col.field\">\r\n <ng-container *ngSwitchCase=\"'valuePaid'\">\r\n {{ rowData['valuePaid'] || 0 | currency: 'BRL':'symbol':'1.2-2':'pt-BR' }}\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ getProp(rowData, col) }}\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n </p-cellEditor>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"frozenbody\" let-rowData let-columns>\r\n <tr [pEditableRow]=\"rowData\">\r\n <td pFrozenColumn>\r\n <s-button\r\n id=\"details-{{ rowData.id }}\"\r\n (click)=\"showDetails(rowData)\"\r\n (keydown.enter)=\"showDetails(rowData)\"\r\n label=\"{{ 'agro.angular_components.details' | libTranslate }}\"\r\n [priority]=\"'default'\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"true\"\r\n [size]=\"'small'\"\r\n iconClass=\"fa fa-rocket\"\r\n ></s-button>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n</ng-container>\r\n<s-sidebar\r\n [(visible)]=\"showSidebar\"\r\n position=\"right\"\r\n [header]=\"('agro.angular_components.account_details' | libTranslate) + ' ' + (selectedRow?.numberTitle || '')\"\r\n>\r\n <div class=\"ui-fluid\">\r\n <div class=\"ui-g\">\r\n <ng-container *ngFor=\"let field of sidebarFields\">\r\n <div class=\"ui-g-4\">\r\n <span>\r\n <strong>{{ field.header }}</strong>\r\n </span>\r\n <p>{{ getProp(selectedRow, field) || '-' }}</p>\r\n </div>\r\n </ng-container>\r\n <ng-template #noValue>-</ng-template>\r\n <div class=\"ui-g-4\">\r\n <span>\r\n <strong>{{ 'agro.angular_components.status_label' | libTranslate }}</strong>\r\n </span>\r\n <p>\r\n <ng-container [ngSwitch]=\"selectedRow?.status\">\r\n <span *ngSwitchCase=\"'OPEN'\">\r\n <s-badge\r\n [color]=\"'yellow'\"\r\n text=\"{{ 'agro.angular_components.status_open' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n ></s-badge>\r\n </span>\r\n <span *ngSwitchCase=\"'PAID'\">\r\n <s-badge\r\n [color]=\"'green'\"\r\n text=\"{{ 'agro.angular_components.status_paid' | libTranslate }}\"\r\n [selectable]=\"false\"\r\n ></s-badge>\r\n </span>\r\n </ng-container>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <s-footer>\r\n <s-button label=\"{{ 'agro.angular_components.close' | libTranslate }}\" (onClick)=\"closeDetails()\"> </s-button>\r\n </s-footer>\r\n</s-sidebar>\r\n", styles: [".error-message{color:#c13018;margin-top:5px;font-size:12px}\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: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i6.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i7.EmptyStateComponent, selector: "s-empty-state", inputs: ["id", "title", "iconClass", "description", "showPrimaryAction", "showSecondaryAction", "primaryActionLabel", "secondaryActionLabel", "primaryModel"], outputs: ["primaryAction", "secondaryAction"] }, { 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: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i8.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i8.FrozenColumn, selector: "[pFrozenColumn]", inputs: ["frozen", "alignFrozen"] }, { kind: "component", type: i8.CellEditor, selector: "p-cellEditor" }, { 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: "directive", type: i8.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { kind: "component", type: i19.BadgeComponent, selector: "s-badge", inputs: ["type", "color", "title", "text", "selectable", "iconClass", "iconPosition", "infoSign", "enableTruncateText"], outputs: ["selected"] }, { 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: "component", type: i16.SidebarComponent, selector: "s-sidebar", inputs: ["visible", "closable", "dismissible", "closeOnEscape", "header", "largeSized", "cache", "registerConfirmClose"], outputs: ["visibleChange"] }, { 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i11.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i11.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i14.LoadingStateDirective, selector: "[sLoadingState]", inputs: ["sLoadingState"] }, { kind: "directive", type: i9.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i13$2.FooterComponent, selector: "s-footer" }, { kind: "directive", type: i14$2.NumberInputDirective, selector: "input[sNumberInput]", inputs: ["precision", "scale", "decimalSeparator", "thousandsSeparator", "alignTo", "allowNegative", "placeholder"], outputs: ["pasteRejected"] }, { kind: "component", type: i15$1.ControlErrorsComponent, selector: "s-control-errors", inputs: ["id", "control", "errorMessages", "form"] }, { kind: "pipe", type: i6.CurrencyPipe, name: "currency" }, { kind: "pipe", type: LibTranslatePipe, name: "libTranslate" }] });
8482
8490
  }
8483
8491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FinancialTitleTableComponent, decorators: [{
8484
8492
  type: Component,
@@ -8674,7 +8682,7 @@ class ProducerListModalService {
8674
8682
  });
8675
8683
  dialogRef.componentInstance.data = data;
8676
8684
  }
8677
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProducerListModalService, deps: [{ token: i1$2.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
8685
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProducerListModalService, deps: [{ token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
8678
8686
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProducerListModalService, providedIn: 'root' });
8679
8687
  }
8680
8688
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProducerListModalService, decorators: [{
@@ -8682,7 +8690,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
8682
8690
  args: [{
8683
8691
  providedIn: 'root',
8684
8692
  }]
8685
- }], ctorParameters: () => [{ type: i1$2.DialogService }] });
8693
+ }], ctorParameters: () => [{ type: i1$1.DialogService }] });
8686
8694
 
8687
8695
  /**
8688
8696
  * Componente visual do modal de eventos de beleza.
@@ -8716,7 +8724,7 @@ class ModalBeautyEventsComponent {
8716
8724
  this.showSubElements = !this.showSubElements;
8717
8725
  }
8718
8726
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalBeautyEventsComponent, deps: [{ token: i2$1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
8719
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ModalBeautyEventsComponent, isStandalone: true, selector: "s-modal-beauty-events", ngImport: i0, template: "<s-dialog header=\"Teste Header\" >\r\n <div class=\"grid grid-cols-12\">\r\n <div class=\"col-span-12\">Componente gerado via Template.</div>\r\n </div>\r\n\r\n <ng-template\r\n sTemplate=\"footer\"\r\n let-activeDialog=\"activeDialog\"\r\n >\r\n <div class=\"grid grid-cols-12\">\r\n <div class=\"col-span-12 flex justify-around\">\r\n <s-button\r\n label=\"A\u00E7\u00E3o terci\u00E1ria\"\r\n priority=\"link\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"false\"\r\n />\r\n <s-button\r\n (clicked)=\"activeDialog.dismiss('Dismissed dialog demo footer')\"\r\n label=\"A\u00E7\u00E3o secund\u00E1ria\"\r\n priority=\"secondary\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"false\"\r\n />\r\n <s-button\r\n label=\"A\u00E7\u00E3o prim\u00E1ria\"\r\n (clicked)=\"activeDialog.close('Closed dialog demo footer')\"\r\n priority=\"primary\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"false\"\r\n />\r\n </div>\r\n </div>\r\n </ng-template>\r\n</s-dialog>", styles: [""], dependencies: [{ kind: "component", type: 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: "ngmodule", type: TemplateModule }, { kind: "directive", type: i2$3.TemplateDirective, selector: "[sTemplate]", inputs: ["sTemplate"] }, { kind: "component", type: DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: PanelModule$1 }] });
8727
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ModalBeautyEventsComponent, isStandalone: true, selector: "s-modal-beauty-events", ngImport: i0, template: "<s-dialog header=\"Teste Header\" >\r\n <div class=\"grid grid-cols-12\">\r\n <div class=\"col-span-12\">Componente gerado via Template.</div>\r\n </div>\r\n\r\n <ng-template\r\n sTemplate=\"footer\"\r\n let-activeDialog=\"activeDialog\"\r\n >\r\n <div class=\"grid grid-cols-12\">\r\n <div class=\"col-span-12 flex justify-around\">\r\n <s-button\r\n label=\"A\u00E7\u00E3o terci\u00E1ria\"\r\n priority=\"link\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"false\"\r\n />\r\n <s-button\r\n (clicked)=\"activeDialog.dismiss('Dismissed dialog demo footer')\"\r\n label=\"A\u00E7\u00E3o secund\u00E1ria\"\r\n priority=\"secondary\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"false\"\r\n />\r\n <s-button\r\n label=\"A\u00E7\u00E3o prim\u00E1ria\"\r\n (clicked)=\"activeDialog.close('Closed dialog demo footer')\"\r\n priority=\"primary\"\r\n [disabled]=\"false\"\r\n [auxiliary]=\"false\"\r\n />\r\n </div>\r\n </div>\r\n </ng-template>\r\n</s-dialog>", styles: [""], dependencies: [{ kind: "component", type: 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: "ngmodule", type: TemplateModule }, { kind: "directive", type: i17.TemplateDirective, selector: "[sTemplate]", inputs: ["sTemplate"] }, { kind: "component", type: DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: PanelModule$1 }] });
8720
8728
  }
8721
8729
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalBeautyEventsComponent, decorators: [{
8722
8730
  type: Component,
@@ -9007,7 +9015,7 @@ class AgroWorkspaceLookupComponent {
9007
9015
  return name || "-";
9008
9016
  }
9009
9017
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroWorkspaceLookupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9010
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: AgroWorkspaceLookupComponent, selector: "s-agro-workspace-lookup", inputs: { visible: "visible", loading: "loading", branches: "branches" }, outputs: { visibleChange: "visibleChange", branchSelected: "branchSelected" }, ngImport: i0, template: "<s-dialog\r\n [(visible)]=\"visible\"\r\n (visibleChange)=\"onVisibleChange(!!$event)\"\r\n [header]=\"'Selecionar workspace'\"\r\n size=\"lg\"\r\n contentClassName=\"agro-workspace-lookup-dialog\"\r\n>\r\n <div class=\"lookup-content\" *sLoadingState=\"loading\">\r\n <p-table\r\n [value]=\"branches\"\r\n dataKey=\"id\"\r\n selectionMode=\"single\"\r\n [selection]=\"selectedBranch\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n responsiveLayout=\"scroll\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th scope=\"col\">Filial</th>\r\n <th scope=\"col\">CPF/CNPJ</th>\r\n <th scope=\"col\">Empresa</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData>\r\n <tr [pSelectableRow]=\"rowData\">\r\n <td>{{ rowData?.nomFil || '-' }}</td>\r\n <td>{{ getBranchDocumentLabel(rowData) }}</td>\r\n <td>{{ getCompanyLabel(rowData) }}</td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n </div>\r\n\r\n <div class=\"lookup-actions\">\r\n <s-button\r\n type=\"button\"\r\n priority=\"link\"\r\n [label]=\"'Cancelar'\"\r\n (clicked)=\"close()\"\r\n ></s-button>\r\n <s-button\r\n type=\"button\"\r\n [label]=\"'Selecionar'\"\r\n [disabled]=\"!selectedBranch\"\r\n (clicked)=\"select()\"\r\n ></s-button>\r\n </div>\r\n</s-dialog>\r\n", styles: [".lookup-content{min-height:240px}.lookup-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}\n"], dependencies: [{ 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: "component", type: i1$2.DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside"], outputs: ["visibleChange"] }, { kind: "directive", type: i14.LoadingStateDirective, selector: "[sLoadingState]", inputs: ["sLoadingState"] }, { 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: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i8.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9018
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: AgroWorkspaceLookupComponent, selector: "s-agro-workspace-lookup", inputs: { visible: "visible", loading: "loading", branches: "branches" }, outputs: { visibleChange: "visibleChange", branchSelected: "branchSelected" }, ngImport: i0, template: "<s-dialog\r\n [(visible)]=\"visible\"\r\n (visibleChange)=\"onVisibleChange(!!$event)\"\r\n [header]=\"'Selecionar workspace'\"\r\n size=\"lg\"\r\n contentClassName=\"agro-workspace-lookup-dialog\"\r\n>\r\n <div class=\"lookup-content\" *sLoadingState=\"loading\">\r\n <p-table\r\n [value]=\"branches\"\r\n dataKey=\"id\"\r\n selectionMode=\"single\"\r\n [selection]=\"selectedBranch\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n responsiveLayout=\"scroll\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th scope=\"col\">Filial</th>\r\n <th scope=\"col\">CPF/CNPJ</th>\r\n <th scope=\"col\">Empresa</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData>\r\n <tr [pSelectableRow]=\"rowData\">\r\n <td>{{ rowData?.nomFil || '-' }}</td>\r\n <td>{{ getBranchDocumentLabel(rowData) }}</td>\r\n <td>{{ getCompanyLabel(rowData) }}</td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n </div>\r\n\r\n <div class=\"lookup-actions\">\r\n <s-button\r\n type=\"button\"\r\n priority=\"link\"\r\n [label]=\"'Cancelar'\"\r\n (clicked)=\"close()\"\r\n ></s-button>\r\n <s-button\r\n type=\"button\"\r\n [label]=\"'Selecionar'\"\r\n [disabled]=\"!selectedBranch\"\r\n (clicked)=\"select()\"\r\n ></s-button>\r\n </div>\r\n</s-dialog>\r\n", styles: [".lookup-content{min-height:240px}.lookup-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}\n"], dependencies: [{ 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: "component", type: i1$1.DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside"], outputs: ["visibleChange"] }, { kind: "directive", type: i14.LoadingStateDirective, selector: "[sLoadingState]", inputs: ["sLoadingState"] }, { 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: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i8.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9011
9019
  }
9012
9020
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroWorkspaceLookupComponent, decorators: [{
9013
9021
  type: Component,
@@ -9193,7 +9201,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
9193
9201
 
9194
9202
  class E070EmpModule {
9195
9203
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9196
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, imports: [i1$1.PermissionsModule] });
9204
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, imports: [i1$2.PermissionsModule] });
9197
9205
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070EmpModule, providers: [E070EmpService], imports: [PermissionsModule.forChild([
9198
9206
  {
9199
9207
  name: "e070emp",
@@ -9222,7 +9230,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
9222
9230
 
9223
9231
  class E070FilModule {
9224
9232
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9225
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, imports: [i1$1.PermissionsModule] });
9233
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, imports: [i1$2.PermissionsModule] });
9226
9234
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: E070FilModule, providers: [
9227
9235
  {
9228
9236
  provide: E070FilService,
@@ -9842,8 +9850,10 @@ const numberPattern = /^\d+\b$/;
9842
9850
  const YYYY_MM_DD_FORMAT = 'YYYY-MM-DD';
9843
9851
  const LOOKUP_DOCUMENT_FIELDS = [
9844
9852
  'cnpCpf',
9853
+ 'cnpjCpf',
9845
9854
  'numCgc',
9846
9855
  'e001pes.cnpCpf',
9856
+ 'e001pes.cnpjCpf',
9847
9857
  'e001pes.numCgc',
9848
9858
  'e001pes.cpfCnpj',
9849
9859
  'e001pes.cpf',
@@ -10027,8 +10037,13 @@ const getLabelValueRequest = (contents, displayFields, APPLY_CPFCNPJ_FILTER = fa
10027
10037
  }
10028
10038
  });
10029
10039
  LOOKUP_DOCUMENT_FIELDS.forEach((fieldName) => {
10030
- if (formattedItem[fieldName] !== null && formattedItem[fieldName] !== undefined && formattedItem[fieldName] !== '') {
10031
- formattedItem[fieldName] = formatCPFCNPJWithMask(String(formattedItem[fieldName]));
10040
+ console.log(`Processing field: ${fieldName} for item:`, formattedItem); // Debugging line
10041
+ const value = getValueByPath(formattedItem, fieldName);
10042
+ if (value) {
10043
+ console.log(`Checking field: ${fieldName}, value: ${value}`);
10044
+ }
10045
+ if (value !== null && value !== undefined && value !== '') {
10046
+ setValueByPath(formattedItem, fieldName, formatCPFCNPJWithMask(String(value)));
10032
10047
  }
10033
10048
  });
10034
10049
  return {
@@ -10038,6 +10053,47 @@ const getLabelValueRequest = (contents, displayFields, APPLY_CPFCNPJ_FILTER = fa
10038
10053
  });
10039
10054
  return r;
10040
10055
  };
10056
+ function getValueByPath(obj, path) {
10057
+ if (!obj || !path) {
10058
+ return undefined;
10059
+ }
10060
+ // Campo simples ou chave literal existente
10061
+ if (Object.prototype.hasOwnProperty.call(obj, path)) {
10062
+ return obj[path];
10063
+ }
10064
+ // Campo agregado: "campo1.campo2"
10065
+ return path.split('.').reduce((acc, key) => {
10066
+ if (acc === null || acc === undefined) {
10067
+ return undefined;
10068
+ }
10069
+ return acc[key];
10070
+ }, obj);
10071
+ }
10072
+ function setValueByPath(obj, path, value) {
10073
+ if (!obj || !path) {
10074
+ return;
10075
+ }
10076
+ // Campo simples ou chave literal existente
10077
+ if (Object.prototype.hasOwnProperty.call(obj, path)) {
10078
+ obj[path] = value;
10079
+ return;
10080
+ }
10081
+ // Campo agregado: "campo1.campo2"
10082
+ const keys = path.split('.');
10083
+ const lastKey = keys.pop();
10084
+ if (!lastKey) {
10085
+ return;
10086
+ }
10087
+ const target = keys.reduce((acc, key) => {
10088
+ if (acc === null || acc === undefined) {
10089
+ return undefined;
10090
+ }
10091
+ return acc[key];
10092
+ }, obj);
10093
+ if (target !== null && target !== undefined) {
10094
+ target[lastKey] = value;
10095
+ }
10096
+ }
10041
10097
  function formatFilters(filters, value, statusFilter, columnName) {
10042
10098
  return filters
10043
10099
  .filter(({ type }) => isValidFilter(type, value))
@@ -10232,8 +10288,10 @@ const createGenericOnBlur = (formGroup, fieldName, dataKey = 'id') => () => {
10232
10288
  const LOOKUP_DEBOUNCE_MS = 300;
10233
10289
  const LOOKUP_DOCUMENT_FIELDS_TO_FORMAT = [
10234
10290
  'cnpCpf',
10291
+ 'cnpjCpf',
10235
10292
  'numCgc',
10236
10293
  'e001pes.cnpCpf',
10294
+ 'e001pes.cnpjCpf',
10237
10295
  'e001pes.numCgc',
10238
10296
  'e001pes.cpfCnpj',
10239
10297
  'e001pes.cpf',
@@ -10262,25 +10320,35 @@ class AgroBaseLookupField {
10262
10320
  }
10263
10321
  return typeof value === 'object' && value.id !== undefined && value.id !== null;
10264
10322
  }
10323
+ getPathValue(entity, fieldPath) {
10324
+ return fieldPath
10325
+ .split('.')
10326
+ .reduce((currentValue, fieldName) => currentValue?.[fieldName], entity);
10327
+ }
10328
+ setPathValue(entity, fieldPath, value) {
10329
+ const pathParts = fieldPath.split('.');
10330
+ const formattedEntity = { ...entity };
10331
+ let target = formattedEntity;
10332
+ pathParts.slice(0, -1).forEach((fieldName) => {
10333
+ target[fieldName] = { ...target[fieldName] };
10334
+ target = target[fieldName];
10335
+ });
10336
+ target[pathParts[pathParts.length - 1]] = value;
10337
+ return formattedEntity;
10338
+ }
10265
10339
  formatEntityDocumentFields(entity) {
10266
10340
  if (!entity || typeof entity !== 'object' || Array.isArray(entity)) {
10267
10341
  return entity;
10268
10342
  }
10269
10343
  let formattedEntity = entity;
10270
10344
  LOOKUP_DOCUMENT_FIELDS_TO_FORMAT.forEach((fieldName) => {
10271
- if (!Object.hasOwn(entity, fieldName)) {
10272
- return;
10273
- }
10274
- const originalValue = entity[fieldName];
10275
- if (originalValue === null || originalValue === undefined || originalValue === '') {
10345
+ const originalValue = this.getPathValue(formattedEntity, fieldName);
10346
+ if (originalValue === undefined || originalValue === null || originalValue === '') {
10276
10347
  return;
10277
10348
  }
10278
- const formattedValue = formatCPFCNPJWithMask(originalValue);
10349
+ const formattedValue = formatCPFCNPJWithMask(String(originalValue));
10279
10350
  if (formattedValue !== originalValue) {
10280
- if (formattedEntity === entity) {
10281
- formattedEntity = { ...entity };
10282
- }
10283
- formattedEntity[fieldName] = formattedValue;
10351
+ formattedEntity = this.setPathValue(formattedEntity, fieldName, formattedValue);
10284
10352
  }
10285
10353
  });
10286
10354
  return formattedEntity;
@@ -10416,7 +10484,7 @@ class AgroBaseLookupField {
10416
10484
  const targetIsValid = this.isLookupValueValid(targetValue);
10417
10485
  const targetIsFilled = this.isControlFilled(targetValue);
10418
10486
  if (forceReset) {
10419
- targetControl.setValue(null, { emitEvent: false });
10487
+ targetControl.setValue(null, { emitEvent: true });
10420
10488
  targetControl.disable({ emitEvent: false });
10421
10489
  return;
10422
10490
  }
@@ -10479,6 +10547,15 @@ class AgroBaseLookupField {
10479
10547
  // Observe each dependency directly and compare previous/current values.
10480
10548
  dependsOf.forEach((fieldName) => {
10481
10549
  const control = this.config.formGroup.get(fieldName);
10550
+ control?.valueChanges.subscribe((currentValue) => {
10551
+ const normalizedCurrentValue = this.normalizeLookupValue(currentValue);
10552
+ if (normalizedCurrentValue !== currentValue) {
10553
+ control.setValue(normalizedCurrentValue, { emitEvent: false });
10554
+ }
10555
+ if (!this.isLookupValueValid(normalizedCurrentValue)) {
10556
+ this.handleDependenciesState(true);
10557
+ }
10558
+ });
10482
10559
  control?.valueChanges.pipe(startWith(control.value), debounceTime(LOOKUP_DEBOUNCE_MS), pairwise()).subscribe(([previousValue, currentValue]) => {
10483
10560
  const normalizedPreviousValue = this.normalizeLookupValue(previousValue);
10484
10561
  const normalizedCurrentValue = this.normalizeLookupValue(currentValue);
@@ -10837,8 +10914,8 @@ class AgroBranchLookup extends AgroLookupBase {
10837
10914
  return {
10838
10915
  labelKey: 'agro.angular_components.lookup_contract_branch',
10839
10916
  searchTitleKey: 'agro.angular_components.lookup_contract_branch_search_title',
10840
- lookupDisplayFields: ['codFil', 'nomFil'],
10841
- advancedDisplayFields: ['codFil', 'nomFil'],
10917
+ lookupDisplayFields: ['codFil', 'nomFil', 'numCgc', 'cidFil'],
10918
+ advancedDisplayFields: ['codFil', 'nomFil', 'numCgc', 'cidFil'],
10842
10919
  searchFields: [
10843
10920
  { name: 'codFil', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
10844
10921
  { name: 'nomFil', label: this.translate.instant('agro.angular_components.lookup_label_branch'), type: 'string' },
@@ -10851,6 +10928,28 @@ class AgroBranchLookup extends AgroLookupBase {
10851
10928
  }
10852
10929
  }
10853
10930
 
10931
+ class AgroCarrierLookup extends AgroLookupBase {
10932
+ carrierService;
10933
+ constructor(config) {
10934
+ super(config, { defaultFieldName: 'carrier', defaultFilterFieldName: 'carrier.id', defaultAutofill: false });
10935
+ this.carrierService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroCarrierLookup.name), 'entities/e073pes');
10936
+ }
10937
+ getLookupConfig() {
10938
+ return {
10939
+ labelKey: 'agro.angular_components.lookup_carrier',
10940
+ searchTitleKey: 'agro.angular_components.lookup_carrier_search_title',
10941
+ lookupDisplayFields: ['e001pes.cnpCpf', 'e001pes.nomPes'],
10942
+ advancedDisplayFields: ['e001pes.cnpCpf', 'e001pes.nomPes'],
10943
+ applyCPFCNPJFormat: true,
10944
+ searchFields: [
10945
+ { name: 'e001pes.cnpCpf', label: this.translate.instant('agro.angular_components.lookup_cnpj_cpf'), type: 'string' },
10946
+ { name: 'e001pes.nomPes', label: this.translate.instant('agro.angular_components.lookup_label_name'), type: 'string' },
10947
+ ],
10948
+ service: this.carrierService,
10949
+ };
10950
+ }
10951
+ }
10952
+
10854
10953
  class AgroDepositLookup extends AgroLookupBase {
10855
10954
  e205DepService;
10856
10955
  constructor(config) {
@@ -10895,28 +10994,6 @@ class AgroDepositBalanceLookup extends AgroLookupBase {
10895
10994
  }
10896
10995
  }
10897
10996
 
10898
- class AgroDriverLookup extends AgroLookupBase {
10899
- driverService;
10900
- constructor(config) {
10901
- super(config, { defaultFieldName: 'driver', defaultFilterFieldName: 'driver.id', defaultAutofill: false });
10902
- this.driverService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroDriverLookup.name), 'entities/driver');
10903
- }
10904
- getLookupConfig() {
10905
- return {
10906
- labelKey: 'agro.angular_components.lookup_driver',
10907
- searchTitleKey: 'agro.angular_components.lookup_driver_search_title',
10908
- lookupDisplayFields: ['cnpjCpf', 'name'],
10909
- advancedDisplayFields: ['cnpjCpf', 'name'],
10910
- searchFields: [
10911
- { name: 'cnpjCpf', label: this.translate.instant('agro.angular_components.lookup_cnpj_cpf'), type: 'string' },
10912
- { name: 'name', label: this.translate.instant('agro.angular_components.lookup_label_name'), type: 'string' },
10913
- ],
10914
- service: this.driverService,
10915
- applyCPFCNPJFormat: true,
10916
- };
10917
- }
10918
- }
10919
-
10920
10997
  class AgroE095PesLookup extends AgroLookupBase {
10921
10998
  e095PesService;
10922
10999
  constructor(config) {
@@ -11113,28 +11190,6 @@ class AgroProductVarietyLookup extends AgroLookupBase {
11113
11190
  }
11114
11191
  }
11115
11192
 
11116
- class AgroRuralEstateLookup extends AgroLookupBase {
11117
- ruralEstateService;
11118
- constructor(config) {
11119
- super(config, { defaultFieldName: 'ruralEstate', defaultFilterFieldName: 'ruralEstate.id' });
11120
- this.ruralEstateService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroRuralEstateLookup.name), 'entities/ruralEstate');
11121
- }
11122
- getLookupConfig() {
11123
- return {
11124
- labelKey: 'agro.angular_components.lookup_contract_product_producer_rural_estate',
11125
- searchTitleKey: 'agro.angular_components.lookup_contract_product_producer_rural_estate_search_title',
11126
- lookupDisplayFields: ['sequential', 'name'],
11127
- advancedDisplayFields: ['sequential', 'name', 'ie'],
11128
- searchFields: [
11129
- { name: 'sequential', label: this.translate.instant('agro.angular_components.lookup_rural_estate_sequential'), type: 'integer' },
11130
- { name: 'name', label: this.translate.instant('agro.angular_components.lookup_rural_estate_name'), type: 'string' },
11131
- ],
11132
- dependencies: [{ formControlName: 'producer', apiField: 'producers.id' }],
11133
- service: this.ruralEstateService,
11134
- };
11135
- }
11136
- }
11137
-
11138
11193
  const INCREASE_COD_FIELD = 'increase.codInc';
11139
11194
  const INCREASE_DES_FIELD = 'increase.desInc';
11140
11195
  const INCREASE_VALUE_FIELD = 'valInc';
@@ -11735,5 +11790,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
11735
11790
  * Generated bundle index. Do not edit.
11736
11791
  */
11737
11792
 
11738
- 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 };
11793
+ export { AGRO_NUMBERS, AGRO_REGEX, AgroAngularComponentsModule, AgroArrayUtils, AgroBaseLookupField, AgroBranchLookup, AgroCarrierLookup, AgroCompanyLookup, AgroCookieUtils, AgroCurrencyLookup, AgroDateUtils, AgroDepositBalanceLookup, AgroDepositLookup, 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, 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 };
11739
11794
  //# sourceMappingURL=senior-agronegocio-angular-components.mjs.map