import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { Configurations } from '../configurations'; import { AuthorizerService } from '../shared/service/authorizer.service'; import { WebApiService } from '../shared/service/web-api.service'; import { DialogService } from '../shared/ui-elements'; import { SnackBarService } from '../shared/ui-elements/snack-bar/snack-bar.service'; import * as i0 from "@angular/core"; export declare class QuickViewComponent implements OnInit, OnDestroy { private cdr; private apiService; private dialog; private authorizer; private snackBarService; _id: string; closeQuickView: EventEmitter; workflowAction: EventEmitter; refresh: EventEmitter; isLoader: boolean; private unsubscribe; quickViewData: any; collaboratorList: Array; environment: any; hideObjective: boolean; hideNotes: boolean; statusClass: string; getRiskDetails: any; basUrl: string; status: string; categoryType: Array; categoryClass: Array; workflowAuthorization: any; feature: any; overseerArr: Array; availableActionList: Array; showFormPopUp: boolean; isTextEditor: boolean; isList: boolean; isUpload: boolean; data: any; showSkeltonLoader: boolean; vLoader: boolean; constructor(cdr: ChangeDetectorRef, apiService: WebApiService, dialog: DialogService, authorizer: AuthorizerService, snackBarService: SnackBarService, config?: Configurations); ngOnInit(): void; onKeydownHandler(event: KeyboardEvent): void; close(): void; ngOnDestroy(): void; /** * This function is used to fetch the data from the API and display it on the quick view */ fetchApi(): void; showObjective(): void; showNotes(): void; getClass(type: string): void; changeKeyResponsibility(): void; getRiskValue(riskClass: number): void; getOverseer(ccMail: Array, ccFailure: Array): void; getResponsibilityStatus(): void; availableActions(): void; confirm(type: 'DELETE' | 'ACTIVATE' | 'DEACTIVATE' | 'DUPLICATE' | 'REMOVE_KEY_RESPONSIBILITY' | 'MAKE_KEY_RESPONSIBILITY', dueDateId?: string): void; delete(): void; activate(): void; deactivate(): void; duplicate(): void; makeKeyResponsibility(): void; removeKeyResponsibility(): void; showErrorSnackbar(): void; redirectToSingleAction(type: 'ACCEPT' | 'DECLINE' | 'REQUEST_DETAILS' | 'DONE' | 'NEED_MORE_TIME' | 'CANNOT_COMPLETE' | 'REDO' | 'REJECT' | 'CONDONE' | 'INSIST' | 'NEED_MORE_TIME_ACCEPT' | 'NEED_MORE_TIME_DECLINE' | 'CANNOT_COMPLY_ACCEPT' | 'CANNOT_COMPLY_DECLINE' | 'CANNOT_COMPLY_NEW_DATE', dueDateId: string): void; workflowEngineAction(type: 'EDIT_RESPONSIBILITY' | 'LOG_AN_ISSUE' | 'ENTRUST', reportId: string): void; externalRedirect(type: 'RESPONSIBILITY_WORKROOM', reportId: string): void; /** * It sets the value of the showFormPopUp variable to true, and sets the values of the other variables * to false. */ addNewDueDates(): void; openDialogPastEvent(): void; revokeDelegation(reportDetail: any): void; pauseDueDates(): void; editDueDates(): void; handoverRevoke(): void; applyAction(event: any): void; /** * Add new due date * @param {any} event - { */ addNewDueDate(event: any): void; /** * It takes in a data object, and then makes a post request to the API with the data object. * * The data object is a form that the user fills out. * * The form has a date field, a compliance field, a reason field, and an attachment field. * * The date field is a date picker. * * The compliance field is a dropdown. * * The reason field is a textarea. * * The attachment field is a file upload. * * The user can fill out the form and submit it. * * The form is submitted by calling the addPastEventNow function. * * The addPastEventNow function takes in the data object and makes a post request to the API with the * data object. * * The API then takes the data object and adds it to the database. * * The user can * @param {any} data - any = { */ addPastEventNow(data: any): void; /** * The function takes in a result object, which has a fromDate and toDate property. The function then * makes a post request to the server with the fromDate and toDate properties. If the response is * 404, it shows a snackbar with a message. If the response is anything else, it shows a different * snackbar with a different message. * @param {any} result - any = { */ pauseDueDatesNow(result: any): void; handoverTransfer(message: string, type: 'TRANSFER' | 'HANDOVER' | 'DELEGATE', icon: '' | '' | ''): void; getToday(timestamp: any): number; onEditDueDate(result: any): void; terminateDelegation(event: any): void; terminateHandover(event: any): void; /** * It takes a user object, creates a payload object, creates a url string, creates a msg string, and * then calls the apiCallPost function with the url, msg, payload, and 'info' as parameters. * @param {any} user - any -> this is the user object that is passed from the child component */ onTransfer(user: any): void; /** * It takes a user object, creates a payload object, makes an API call, and then displays a message. * @param {any} user - any -> this is the user object that is selected from the dropdown */ onHandover(user: any): void; /** * It takes a url, a message, a payload, and a message class, and then it calls the apiService.post * method, and then it shows a snackbar with the message and message class. * @param {string} url - string - the url to call * @param {string} msg - string - The message to display in the snackbar * @param {any} payload - any = {} * @param {'success' | 'info'} [msgClass=success] - 'success' | 'info' = 'success' */ apiCallPost(url: string, msg: string, payload?: any, msgClass?: 'success' | 'info'): void; onDelegate(res: any): void; sendReminderEmail(): void; openDependentResponsibility(responsibility: any): void; eventHandler(evt: any): void; shortName(str1: string): string | undefined; convertDateIntoTimeZone(): void; changeTimeZone(date: any): Date | ""; strip(html: any): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }