/********** Angular **********/ import { OnInit, OnDestroy, AfterViewChecked, ChangeDetectorRef } from '@angular/core'; import { FormGroup, FormBuilder } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; /********** Ionic **********/ /********** Plugin **********/ import { Observable, Subject, Subscription } from 'rxjs'; import { ExcelExportData } from '@progress/kendo-angular-excel-export'; import { DetailCollapseEvent, DetailExpandEvent, GridItem, SelectableSettings, GridDataResult, DataStateChangeEvent, PageChangeEvent, CellClickEvent, RowArgs } from '@progress/kendo-angular-grid'; import { SortDescriptor, State, GroupDescriptor } from '@progress/kendo-data-query'; /********** Component & Service **********/ import { DataListingFieldBase } from '../components/datalistingfieldbase.component'; import { ZComponentService } from '../services/zcomponent.service'; import { MainService } from '../services/main.service'; import { ElementContainerDirective } from '../directives/elementcontainer.directive'; import { ZGridBindingDirective } from './zgrid.binding.directive'; import { ZGridService } from './zgrid.service'; import { WebApiService, ToastService, ZField, ZGroup, ZComponent, ZComponentOutputEvent, ZCoreService, StorageSessionService, FontAweSomeService, ZGridPostApiParams, ZGridSettings, ZGridCustomColumn, ResourceApiService, AuthService, StateSettingService, AlertService } from 'mmhglobal-zcore'; import * as i0 from "@angular/core"; export interface ZGrid { params: ZGridPostApiParams; state: State; columns: any[]; paginationApiPostUrl: string; data: ZField; group: ZGroup; zgrid: ZGridBindingDirective; inlineEditedFormGroups: FormGroup; getGridData: () => any[]; getData: () => void; clearData: () => void; setData: (data: any) => void; setColumns: (columnFieldsName: string, columns: Array) => void; $setColumns: (columnFieldsName: string, columns: Array) => Observable; getFormControlData(): any[]; } export declare class ZgridComponent extends DataListingFieldBase implements ZComponent, OnInit, AfterViewChecked, OnDestroy { componentService: ZComponentService; fontAweSomeService: FontAweSomeService; private activatedRoute; private router; private formBuilder; private webApiService; private toastService; private zcoreService; private storageService; private mainService; private cdr; private gridService; private stateSettingService; private resourceApiService; private authService; private alertService; elementContainer: ElementContainerDirective; zgrid: any; oauthUrl: string; gridData: GridDataResult; selectableSettings: SelectableSettings; rowSelection: string[]; mySelection: Map; inlineEditedFormGroups: {}; formGroup: FormGroup; previousNext: boolean; gridBtn: any; pageable: any; filterGroup: ZGroup; advfilterGroup: ZGroup; isShowAdvFilter: boolean; gridTitle: any; isInlineEditInputFieldLoading: boolean; private tempInlineEditedFormGroups; private isColumnHeaderTranslated; showRestoreGridSettingButton: boolean; checkboxColumnPinned: boolean; groupDescriptor: GroupDescriptor[]; params: ZGridPostApiParams; gridSubject: Subject; columns: any[]; generateHiddenColumnsField: any[]; editableColumns: any[]; subscription: Subscription; pageSizes: boolean | any[]; gridStorageKey: string; gridDefaultStateExist: boolean; isNew: boolean; private editedRowIndex; gridSetting: ZGridSettings; private environment; constructor(componentService: ZComponentService, fontAweSomeService: FontAweSomeService, activatedRoute: ActivatedRoute, router: Router, formBuilder: FormBuilder, webApiService: WebApiService, toastService: ToastService, zcoreService: ZCoreService, storageService: StorageSessionService, mainService: MainService, cdr: ChangeDetectorRef, gridService: ZGridService, stateSettingService: StateSettingService, resourceApiService: ResourceApiService, authService: AuthService, alertService: AlertService); ngOnInit(): void; ngAfterViewInit(): void; ngAfterViewChecked(): void; ngOnDestroy(): void; dataStateChange(state: DataStateChangeEvent): void; filterable(value: any): boolean; sortable(value: any): boolean; locked(colSetting: any): boolean; onExcelExport(e: any): void; isSelectOption(): boolean; setColumns(columnName: string, columns: Array): void; $setColumns(columnName: string, columns: Array): Observable; private wrapColumnNamesInFieldElement; private generateGridColumns; getIconName(gridCellReplaceValue: any, value: any): string | import("@fortawesome/fontawesome-common-types").IconDefinition; cellClickHandler(event: CellClickEvent): void; editCellCloseHandler(args: any): void; onNavigateTo(event: any, clickAction: any, rowData: any, cellData: string): void; private editModel; onBtnClick(event: any, colSetting: any, rowData: any, cellData: string): void; private createFormGroup; getClass(dataItem: any, col: any): string; getFormat(col: any, defaultFormat?: any): string; allResults(): Observable; refreshGrid(event: ZComponentOutputEvent, group: ZGroup, me: any): void; refreshData(): void; clearData(): void; truncateText(text: string, limit?: number): string; rowSelectionKey: (context: RowArgs) => any; getSelectedValues(): any; clearSelection(): void; getData(): void; getGridData(): any; setData: (gData: any) => void; setHeaderText(columnName: string, newHeaderTitle: string): void; trackBy(index: number, item: GridItem): any; private isUseLocalData; private setupGridComponentAttributes; private setupSubscriptionForGridSubject; saveGridSettings(event: any): void; restoreGridSettings(event: any): void; gridCallback(group: ZGroup): void; private setupGridButtons; private setDateColForFiltering; private showHideRestoreGridSettingButton; gridCustomAddCommand(group: ZGroup): Observable; gridCustomResetCommand(group: ZGroup): Observable; gridCustomRemoveCommand(dataItem: any, rowIndex: any): Observable; private createFormControls; getInlineField(value: any): any; getInlineForm(data: any, rowIndex: number): any; getFormControlData(): any[]; private setupGridWithInlineEdit; isInlineFormGroupHasValue(): boolean; private hasInlineEditColumn; getCellStyleForInlineEdit(columnField: ZField, dataItem: any, rowIndex: number): any; adjustWidthUponResize(): void; filterChange(event: any): void; pageChange(event: PageChangeEvent): void; sortChange(sort: SortDescriptor[]): void; inCellCheckBoxOnChange(event: any, rowIndex: any, column: any): void; addHandler({ sender }: { sender: any; }): void; saveHandler({ sender, rowIndex, formGroup, isNew }: { sender: any; rowIndex: any; formGroup: any; isNew: any; }): void; cancelHandler({ sender, rowIndex }: { sender: any; rowIndex: any; }): void; editHandler({ sender, rowIndex, dataItem }: { sender: any; rowIndex: any; dataItem: any; }): void; removeHandler({ sender, dataItem }: { sender: any; dataItem: any; }): void; private closeEditor; private getItemIndex; private setupFilterFeature; search(): void; cancelEdit(): void; private clearFilterData; advancedSearch(): void; private mapFilterOperatorByFieldType; set setGridTitle(newTitle: string); set setGridState(state: State); setGridToFirstPage(): void; groupChange(groups: GroupDescriptor[]): void; detailExpand(event: DetailExpandEvent): void; private handleDetailGridSession; private generateDetailGridSessionKey; private extractGridName; private getRecordId; private executeDetailExpandCallback; detailCollapse(event: DetailCollapseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }