import { Type, OnInit, ViewContainerRef } from '@angular/core'; import { RecursivePartial } from '@jscrpt/common'; import { Observable, BehaviorSubject } from 'rxjs'; import { ContentRenderer, DataLoader, Grid, GridInitializer, GridOptions, GridPlugin, MetadataGatherer, MetadataSelector, NoDataRenderer, Ordering, Paging, RowSelector, GridPluginInstances } from '../../interfaces'; import { GridAction, GridFunction } from '../../misc/types'; import { GridPluginType } from '../../misc/enums'; import * as i0 from "@angular/core"; /** * Grid component used for rendering grid */ export declare class GridComponent implements OnInit, Grid { /** * Object storing current used plugin type */ protected pluginTypes: Record | undefined | null>; /** * Grid plugin instances available for grid */ protected pluginInstances: GridPluginInstances; /** * Metadata gatherer instance */ protected get metadataGatherer(): MetadataGatherer | undefined | null; /** * Grid options */ protected ɵgridOptions: GridOptions; /** * Instance that allows changing state of initialized plugins */ protected pluginsOptionsInitialization: { contentRenderer: BehaviorSubject; dataLoader: BehaviorSubject; gridInitializer: BehaviorSubject; metadataSelector: BehaviorSubject; noDataRenderer: BehaviorSubject; ordering: BehaviorSubject; paging: BehaviorSubject; rowSelector: BehaviorSubject; }; /** * Subject used for indication that grid was initialized */ protected initializedSubject: BehaviorSubject; /** * @inheritdoc */ get gridOptions(): GridOptions; set gridOptions(options: RecursivePartial); /** * @inheritdoc */ get initialized(): Observable; /** * @inheritdoc */ pluginsOptionsInitialized: Observable; /** * Container used for rendering metadata selector plugin */ protected metadataSelectorContainer: ViewContainerRef; /** * Container used for rendering data loader plugin */ protected dataLoaderContainer: ViewContainerRef; /** * Container used for rendering row selector plugin */ protected rowSelectorContainer: ViewContainerRef; /** * Container used for rendering grid initializer plugin */ protected gridInitializerContainer: ViewContainerRef; /** * Container used for rendering ordering plugin */ protected orderingContainer: ViewContainerRef; /** * Container used for rendering content renderer plugin */ protected contentRendererContainer: ViewContainerRef; /** * Container used for rendering no data renderer plugin */ protected noDataRendererContainer: ViewContainerRef; /** * Container used for rendering paging plugin */ protected pagingContainer: ViewContainerRef; /** * Metadata gatherer instance */ protected metadataGathererChild: MetadataGatherer | undefined | null; constructor(options?: RecursivePartial, pagingType?: Type, orderingType?: Type, gridInitializerType?: Type, dataLoaderType?: Type, contentRendererType?: Type, metadataSelectorType?: Type, noDataRendererType?: Type, rowSelectorType?: Type); /** * Initialize component */ ngOnInit(): void; /** * @inheritdoc */ initialize(force: boolean): Promise; /** * @inheritdoc */ initOptions(): Promise; /** * @inheritdoc */ getPlugin(pluginId: GridPluginType): PluginInstance; /** * @inheritdoc */ setGridPluginInstances(plugin: GridPlugin): void; /** * @inheritdoc */ execute(...actions: GridAction[]): Promise; /** * @inheritdoc */ executeAndReturn(func: GridFunction): TResult; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=grid.component.d.ts.map