/********** Angular **********/ import { OnInit, OnDestroy } from "@angular/core"; /********** Ionic **********/ /********** Plugin **********/ import { Subject } from "rxjs"; import { DataBindingDirective, DataStateChangeEvent, PageChangeEvent } from "@progress/kendo-angular-grid"; import { SortDescriptor } from "@progress/kendo-data-query"; /********** Component & Service **********/ import { ZGridService } from "./zgrid.service"; import { ZField, ZGridPostApiParams, WebApiService, ZGroup, ToastService, SignalrService, ZGridSettings, LoggingService, StateSettingService, StorageSessionService } from "mmhglobal-zcore"; import { ZComponentService } from "../services/zcomponent.service"; import * as i0 from "@angular/core"; export declare class ZGridBindingDirective extends DataBindingDirective implements OnInit, OnDestroy { private webapiService; private toastService; private signalrService; private gridService; private loggingService; private stateSettingService; private componentService; private readonly storageService; private changeEvent; zgridbinding: { data: ZField; group: ZGroup; params: ZGridPostApiParams; gridSubject: Subject; gridSetting: ZGridSettings; }; resourceURL: any; paginationApiPostUrl: any; dataSource: any; get gridSetting(): ZGridSettings; set gridSetting(value: ZGridSettings); get field(): ZField; get grp(): ZGroup; get gridSubject(): Subject; get params(): ZGridPostApiParams; get getData(): any[] | import("@progress/kendo-angular-grid").GridDataResult; constructor(grid: any, // Injecting GridComponent provides access to the scope and context of the GridComponent. webapiService: WebApiService, toastService: ToastService, signalrService: SignalrService, gridService: ZGridService, loggingService: LoggingService, stateSettingService: StateSettingService, componentService: ZComponentService, storageService: StorageSessionService); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; private retrieveGridStateCache; setResourceUrl(resourceUrl: string): void; private setFilterParamsByParentRefId; private getFieldReferenceId; generateGridColumns(): void; setSkipLoadResourceURLData(settingValue: boolean): void; /** * Update the title of a column in the grid setting based on its value. * * @param {string} colValue - The value of the column to update. * @param {string} colName - The new title for the column. * @returns {void} */ setColumnName(colValue: string, colName: string): void; /** * Set the visibility of a column in the grid based on its value. * * @param {string} colValue - The value of the column to set visibility for. * @param {boolean} isVisible - Whether the column should be visible (true) or hidden (false). * @returns {void} */ setColumnVisible(colValue: string, isVisible: boolean): void; /** * Generate filter parameters for columns and set them in the 'params' object. * * @returns {void} */ private getFilterParamsColumns; /** * Update the 'params.filters' property based on the 'field.Filters' property. * * @returns {void} */ private getFilter; /** * Set the filter parameters in the 'params.filterParams' property based on 'field['FilterParams']'. filterParams === used for the input in the column filter at the UI. * * @returns {void} */ private getFilterParams; /** * Set the sorting order in the 'params.sortOrder' property based on 'field.SortOrder'. * * @returns {void} */ private getSorting; /** * Set the grant type in the 'params.grantType' property based on 'field.GrantType'. * * @returns {void} */ private getGrantType; /** * Set the 'hidden' property for columns in 'gridSetting' based on 'columnConfigs'. * * @param {ZGridColumnConfigs[]} columnConfigs - The column configuration settings. * @returns {void} */ private setHiddenColumn; /** * Retrieve data for data binding. * * @param {boolean} skipUseCache - Whether to skip using cache for data retrieval. * @returns {Promise} */ getDataBinding(skipUseCache?: boolean): void; /** * Retrieve grid data. * * @returns {void} */ private getGridData; private handleGetDataBindingComplete; private resetChangeEventFlag; private cacheGridData; private afterDataBinded; clearData(): void; /** * Handle column aggregation for the given data. * * @param {any[]} data - The data to aggregate. * @returns {void} */ private aggregateHandling; private handleDateTimeIgnoringTimeZone; /** * Reset aggregate values for columns with aggregate types. * * @returns {void} */ private aggregateResetValue; /** * Handle page change event. * * @param {PageChangeEvent} event - The page change event. * @returns {void} */ pageChange(event: PageChangeEvent): void; /** * Handle sort change event. * * @param {SortDescriptor[]} sort - The sort descriptor array. * @returns {void} */ sortChange(sort: SortDescriptor[]): void; /** * Handle filter change event. * * @param {any} event - The filter change event. * @returns {void} */ filterChange(event: any): void; dataStateChange(state: DataStateChangeEvent): void; /** * Map filter operator to its corresponding value. * * @param {string} operator - The filter operator. * @returns {string} - The mapped filter operator value. */ private mapFilterOperator; private getPageNo; setColumns(columns: any[]): void; private collapseAllDetailGrid; private tryGetDataFromSession; private isValidSessionKey; private getAndValidateSessionData; private isSessionDataFresh; private getTimeDifferenceInMinutes; private setDetailDataIntoSession; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }