import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; import { DxDataGridComponent } from 'devextreme-angular'; import CustomStore from 'devextreme/data/custom_store'; import { ColumnCellTemplateData, ColumnEditCellTemplateData, dxDataGridColumn, EditingStartEvent, EditorPreparingEvent, FocusedRowChangedEvent, InitNewRowEvent, RowInsertedEvent, RowRemovedEvent, RowUpdatedEvent, RowValidatingEvent } from 'devextreme/ui/data_grid'; import { Subject } from 'rxjs'; import { FararuDataGridColumnInterface } from './fararu-data-grid-column.interface'; import { OdataHttpHeaders } from '../../../../models/odata-http-header.interface'; import { GeneralActionInterface } from '../../../../models/general-action.interface'; import { AppConfigService } from '../../../../services/app-config.service'; import { AuthSandbox } from '../../../../store/sandboxes/auth.sandbox'; import { ConfigSandbox } from '../../../../store/sandboxes/config.sandbox'; import { FararuToastService } from '../../../toast/fararu-toast.service'; import * as i0 from "@angular/core"; export declare class FararuDataGridComponent implements OnInit, OnChanges, OnDestroy { private _appConfig; private _authSandbox; private _configSandbox; private _toastService; dataGrid: DxDataGridComponent; moreMenuTemplate: TemplateRef; dataGridViewContainer: ViewContainerRef; identityFieldName: string; oDataServer: string; oDataEntity: string; oDataHttpHeaders: OdataHttpHeaders; columns: FararuDataGridColumnInterface; items: T[]; moreMenuItems: GeneralActionInterface[]; hasRowNumber: boolean; allowSelectAll?: boolean; selectionMode?: 'single' | 'multiple' | 'none'; selectAllMode?: 'allPages' | 'page'; selectedItems: T[]; selectedRowKeys: (number | string)[]; allowUpdating: boolean; allowDeleting: boolean; allowAdding: boolean; rtlEnabled: boolean; selectionChanged: EventEmitter; rowClick: EventEmitter; rowDoubleClick: EventEmitter; selectedRowKeysChanged: EventEmitter<(string | number)[]>; rowInserted: EventEmitter; rowRemoved: EventEmitter; rowUpdated: EventEmitter; onInitNewRow: EventEmitter; dataSource: any; dxColumns: dxDataGridColumn[]; summaryStore: CustomStore; private _odataUrl; private _accYear; private _centerId; private _rowValues; private _rowOldValues; private _dynamicValues; rowDisabledFieldsMap: Record; rowReadonlyFieldsMap: Record; rowDisabledDynamicFieldsMap: Record; rowReadonlyDynamicFieldsMap: Record; destroy$: Subject; focusedKey: any; loading: boolean; constructor(_appConfig: AppConfigService, _authSandbox: AuthSandbox, _configSandbox: ConfigSandbox, _toastService: FararuToastService); ngOnChanges(changes: SimpleChanges): void; private _selectRowsByKeys; isUsingItems(): boolean; ngOnDestroy(): void; ngOnInit(): void; onRowInserted($event: RowInsertedEvent): void; onRowRemoved($event: RowRemovedEvent): void; onRowUpdated($event: RowUpdatedEvent): void; onEditingStart($event: EditingStartEvent): void; onContentReady(e: any): void; onToolbarPreparing(e: any): void; onSelectionChanged(e: any): void; onRowClick(e: any): void; onRowDoubleClick(e: any): void; onEditorPreparing(e: EditorPreparingEvent): void; onInitNewRowCallback(e: InitNewRowEvent): void; onFocusedRowChanged(e: FocusedRowChangedEvent): void; onRowValidating($event: RowValidatingEvent): void; isFieldEditable(column: dxDataGridColumn): boolean; private _showLoading; private _hideLoading; private _processDependencies; private _handleSetupFunction; private _applyColumnConfigsForRow; private _setupColumn; private _loadConfigColumns; private _isFieldVisible; private _setupCurrentRow; private _updateRowFieldValue; addPlaceholderRow(): void; private _loadDataSource; private _createODataStore; private _getColumnnDataType; isIdentitySelectorDisabled(d: ColumnEditCellTemplateData): boolean; onIdentitySelectorChange(selectedItem: any, d: ColumnEditCellTemplateData): void; updateProps(d: ColumnEditCellTemplateData, selectedItem: any): void; getRowNumber(d: ColumnCellTemplateData): number; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "ui-fararu-data-grid", never, { "identityFieldName": { "alias": "identityFieldName"; "required": false; }; "oDataServer": { "alias": "oDataServer"; "required": false; }; "oDataEntity": { "alias": "oDataEntity"; "required": false; }; "oDataHttpHeaders": { "alias": "oDataHttpHeaders"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "items": { "alias": "items"; "required": false; }; "moreMenuItems": { "alias": "moreMenuItems"; "required": false; }; "hasRowNumber": { "alias": "hasRowNumber"; "required": false; }; "allowSelectAll": { "alias": "allowSelectAll"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectAllMode": { "alias": "selectAllMode"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "selectedRowKeys": { "alias": "selectedRowKeys"; "required": false; }; "allowUpdating": { "alias": "allowUpdating"; "required": false; }; "allowDeleting": { "alias": "allowDeleting"; "required": false; }; "allowAdding": { "alias": "allowAdding"; "required": false; }; "rtlEnabled": { "alias": "rtlEnabled"; "required": false; }; }, { "selectionChanged": "selectionChanged"; "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "selectedRowKeysChanged": "selectedRowKeysChanged"; "rowInserted": "rowInserted"; "rowRemoved": "rowRemoved"; "rowUpdated": "rowUpdated"; "onInitNewRow": "onInitNewRow"; }, never, never, false, never>; }