import { PliCnfEvaluationTaskService } from './../../services/pli-cnf-evaluation-task.service'; import { OnInit, ChangeDetectorRef, EventEmitter } from '@angular/core'; import { CommonListsComponent } from '../common.lists.component'; import { UntypedFormGroup, UntypedFormControl } from '@angular/forms'; import { Token, PliCnfSnapshotToken, PliCnfGuaranteeToken } from 'ng-pli-util'; import { ToastrService } from 'ngx-toastr'; import { CommonService } from '../../services/common.service'; import { PppService } from '../../services/ppp.service'; import { Router } from '@angular/router'; import { BudgetService } from '../../services/budget.service'; import { TokenService } from '../../services/token.service'; import { PliCnfSnapshotTokenServices } from '../../services/pli-cnf-snapshot-token.service'; import { ConfigurationDocumentService } from '../../services/configuration-document.service'; import { PliCnfGuaranteeTokenService } from '../../services/pli-cnf-guarantee-token.service'; import { ConfigurationTokenSubjectService } from './configuration-token-subject.service'; import * as i0 from "@angular/core"; export declare class ConfigurationTokenComponent extends CommonListsComponent implements OnInit { private toastrService; protected cdRef: ChangeDetectorRef; protected commonService: CommonService; private pppService; private router; private budgetService; private tokenService; private snapshotTokenService; private configurationDocumentService; private pliCnfTaskService; private pliCnfGuaranteeTokenService; private configurationTokenSubjectService; /** it contains the prom codigo */ promCodigo: number; /** It contains if visible frm tokens */ showFrm: boolean; /** It contains if visible frm tokens */ showFrmMultiple: boolean; /** It contains if visible static tokens */ showStatic: boolean; /** It contains if visible budget tokens */ showBudget: boolean; /** It contains if visible calculated tokens */ showCalculated: boolean; /** It contains if visible calculated form */ showCalculatedForm: boolean; /** It contains if visible calculated tokens */ showSnapshot: boolean; /** It contains if visible calculated form */ showSnapshotForm: boolean; /** It contains if visible budget tokens */ showDocument: boolean; /** It contains if visible budget tokens */ showTask: boolean; showGuatantee: boolean; showDocumentAutoAnalysis: boolean; showGuatanteeForm: boolean; /** It returns the list token */ onStaticToken: EventEmitter; /** it contains the pat codigo */ patCodigo: number; /** it contains the snapShot tokens */ snapShotTokens: PliCnfSnapshotToken[]; lGuaranteeTokens: PliCnfGuaranteeToken[]; showAsTitle: boolean; /** Valida si finalizo */ ready: boolean; /** List of tokens static and dynamic form */ lStaticToken: any; /** List of calculated tokens */ lCalculatedToken: any; /** It contains the form group of Token */ frmToken: UntypedFormGroup; controlName: UntypedFormControl; controlFormula: UntypedFormControl; /** Object Token new or selected to edit */ tokenSelected: Token; /** */ callBudgetService: boolean; /** */ private currencyPipe; locale: string; readyAccordeon: boolean; constructor(toastrService: ToastrService, cdRef: ChangeDetectorRef, commonService: CommonService, pppService: PppService, router: Router, budgetService: BudgetService, tokenService: TokenService, snapshotTokenService: PliCnfSnapshotTokenServices, configurationDocumentService: ConfigurationDocumentService, pliCnfTaskService: PliCnfEvaluationTaskService, pliCnfGuaranteeTokenService: PliCnfGuaranteeTokenService, configurationTokenSubjectService: ConfigurationTokenSubjectService); ngOnInit(): void; /** * Get the info of tokens from dynamic form, static tokens and calculated. */ initListTokens(): void; initListTokenForm(): void; initListTokenDocuments(): void; initListDocumentAnalysis(): void; initListTokenPresupuesto(): void; initListTokenTasks(): void; adjustStaticTokensInfo(): void; getTokenCalculated(): void; getTokenSnapshot(): void; getTokenGuarantee(): void; eliminarDiacriticos(texto: any): any; camelize(str: any): any; /** It deletes a sponsor */ delete(token: Token): void; /** Tet the label to calculated tokens */ labelCalculated(token: Token): string; /** Tet the label to calculated tokens */ labelSnapshot(token: PliCnfSnapshotToken): string; labelGuarantee(token: PliCnfGuaranteeToken): string; initForm(tokenSelected: Token): void; resolveKeyCalculatedToken(): string; save(): void; cancel(): void; /** It validates if type is frm */ isGroupFrm(type: string): boolean; /** It validates if type is static */ isGroupStatic(type: string): boolean; /** It validates if type is budget */ isGroupBudget(type: string): boolean; /** It validates if type is document */ isGroupDocument(type: string): boolean; isGroupDocumentAnalysis(type: string): boolean; /** It validates if type is task */ isGroupTask(type: string): boolean; /** It validates visibility to all tokens mixed */ validateVisibility(type: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }