import { EventEmitter, OnInit } from '@angular/core'; import { McbGrid } from './type/mcb-grid-dto'; import { McbGridAction } from './type/mcb-grid-action-dto'; import { McbGridColumn } from './type/mcb-grid-column-dto'; import { McbGridOrder } from './type/mcb-grid-order-dto'; import { McbGridOrderType } from './type/enum/mcb-grid-order-type'; import { MCBGridSearchDirective } from './mcb-grid-search.directive'; import { TooltipDirective } from '@progress/kendo-angular-tooltip'; import { SortDescriptor } from '@progress/kendo-data-query'; import { PagerSettings } from '@progress/kendo-angular-grid'; import { McbConfirmationService } from '../../../portal/ui/services/mcb-confirmation.service'; import { TranslatorService } from '../../common/localization/lang/translator.service'; export declare type RowActionParamFn = (dataItem: any) => boolean; export declare type RowActionFn = () => boolean; export declare class McbGridComponent implements OnInit { private confirmationService; private translator; _showSearchPanel: boolean; mcbGridSearch: MCBGridSearchDirective; tooltipDir: TooltipDirective; data: Array; pageable: PagerSettings; pageSize: number; _pageSize: number; skip: number; loadData: boolean; sortable: boolean; defaultColumnSortName: string; defaultColumnSortDir: McbGridOrderType; columns: McbGridColumn[]; actions: McbGridAction[]; lockedActions: boolean; rowNumColumnWidth: number; multipleSort: boolean; _showActionColumn: boolean; _menuActions: McbGridAction[]; _buttonActions: McbGridAction[]; _toolbarActions: McbGridAction[]; _searchData: any[]; _mainColumns: McbGridColumn[]; _groupColumns: McbGridColumn[]; visibleNewAction: boolean; visibleRefreshAction: boolean; visibleSearchAction: boolean; visibleEditAction: RowActionParamFn | boolean; visibleShowAction: RowActionParamFn | boolean; visibleDeleteAction: RowActionParamFn | boolean; disableNewAction: RowActionFn | boolean; disableEditAction: RowActionParamFn | boolean; disableShowAction: RowActionParamFn | boolean; disableDeleteAction: RowActionParamFn | boolean; deleteActionConfirmTitle: string; deleteActionConfirmMessage: string; _actionDeleteButtonTitle: string; _actionEditButtonTitle: string; _actionShowButtonTitle: string; _actionMoreButtonTitle: string; get searchData(): any[]; set searchData(data: any[]); add: EventEmitter; edit: EventEmitter; show: EventEmitter; delete: EventEmitter; refresh: EventEmitter; gridChange: EventEmitter; _gridResult: McbGrid; sortSetting: SortDescriptor[]; pageableSetting: PagerSettings; constructor(confirmationService: McbConfirmationService, translator: TranslatorService); ngOnInit(): void; private loadDataFirstTime; private prepareActionsFunctions; private getValueForFunc; private splitMenuActions; private prepareColumn; private initializeActions; showTooltip(e: MouseEvent): void; handleSearchChange(data: any): void; handleSortChange(sort: SortDescriptor[]): void; handlePageChange(event: any): void; handleOrders(sorts: SortDescriptor[]): McbGridOrder[]; added(): void; searched(): void; refreshed(): void; }