import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { DialogService } from '../../ui-kit/dialog/dialog.service'; import { SnackBarService } from '../../ui-kit/snack-bar/snack-bar.service'; import { QuickViewService } from '../services/quick-view.service'; import { SubSink } from '../../subsink.class'; import * as i0 from "@angular/core"; export declare class QuickTreatmentPlanComponent implements OnInit, OnDestroy { private dialog; quickView: QuickViewService; private snackBarService; constructor(dialog: DialogService, quickView: QuickViewService, snackBarService: SnackBarService); treatmentPlanData$: any; riskType: Array; riskDetails$: any; riskDetails: any; treatmentData: any; getClassName: string; withEffectiveness: boolean; selectedEffectiveness: any; editTreatment: boolean; loader: boolean; featureFlag: any; deletedLinkedItems: Array; activeDueDateDetails: any; deletedLinkedList: Array; refreshTreatmentData: boolean; subscriptions: SubSink; url: string; treatmentPayload: EventEmitter; enableSaveText: EventEmitter; editTreatmentEnable: EventEmitter; disableActionButton: EventEmitter; set setRefreshCondition(refresh: boolean); ngOnInit(): void; ngOnChanges(): void; handleTreatmentPlanDataChange(): void; setRiskDetails(): void; /** * It returns a string based on the length of the array. * @returns A string. */ className(): string; /** * It opens a dialog box and when the dialog box is closed, it updates the data in the parent * component. * @param {any} [plan] - { * @param {any} [i] - index of the current row */ linkTreatmentPlan(plan?: any, i?: any): void; /** * It takes the data from the form and creates a payload to be sent to the parent component. */ generateCreateTreatmentPayload(): void; /** * "If the item_type is REPORT, push it to onVComply, otherwise push it to notOnVComply." * @param {any} [treatment_score_log] - [{ * @returns { * onVComply: [], * notOnVComply: [] * } */ divideControlsOnType(treatment_score_log?: any): { onVComply: any; notOnVComply: any; }; checkTreatmentScoreLength(treatmentPlan: any): boolean; /** * If the treatment_score_log array has a length greater than 0, then set the withEffectiveness * variable to true. */ enableEffectiveness(): void; /** * It sets the value of a property (effectiveness) on an object in an array of objects (treatmentPlanData) when we close the picker. * @param {any} planIndex - number * @param {number} controlIndex - number, action: boolean * @param {boolean} action - boolean - this is a boolean value that is passed in to determine whether * to show or hide the picker. */ effectivenessPicker(planIndex: any, controlIndex: number, action: boolean): void; /** * The function is called when the user selects an option from the dropdown. The function then sets * the selectedEffectiveness variable to the value of the option selected. * @param {any} event - any - the event that is triggered when the user selects a value from the * dropdown */ getEffectivenessValue(event: any): void; editTreatmentPlan(event: any): void; /** * It removes a linked control from the treatment plan. * @param {any} [treatmentScore] - This is the object that I want to delete. * @param {any} [rcIndex] - index of the responsibility centre. */ removeLinkControl(treatmentScore?: any, rcIndex?: any): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }