import { NgModule , ValueProvider } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { StackedColumnDirective , StackedColumnsDirective } from './stacked-column.directive' ; import { ColumnDirective , ColumnsDirective } from './columns.directive' ; import { AggregateColumnDirective , AggregateColumnsDirective } from './aggregate-columns.directive' ; import { AggregateDirective , AggregatesDirective } from './aggregates.directive' ; import { GridComponent } from './grid.component' ; import { GridModule } from './grid.module' ; import { Filter , Page , Selection , Sort , Group , Reorder , RowDD , DetailRow , Toolbar , Aggregate , Search , VirtualScroll , Edit , Resize , ExcelExport , PdfExport , CommandColumn , ContextMenu , Freeze , ColumnMenu , ColumnChooser , ForeignKey , InfiniteScroll , LazyLoadGroup } from '@syncfusion/ej2-grids' ; export const FilterService = { provide : 'GridsFilter' , useValue : Filter } ; export const PageService = { provide : 'GridsPage' , useValue : Page } ; export const SelectionService = { provide : 'GridsSelection' , useValue : Selection } ; export const SortService = { provide : 'GridsSort' , useValue : Sort } ; export const GroupService = { provide : 'GridsGroup' , useValue : Group } ; export const ReorderService = { provide : 'GridsReorder' , useValue : Reorder } ; export const RowDDService = { provide : 'GridsRowDD' , useValue : RowDD } ; export const DetailRowService = { provide : 'GridsDetailRow' , useValue : DetailRow } ; export const ToolbarService = { provide : 'GridsToolbar' , useValue : Toolbar } ; export const AggregateService = { provide : 'GridsAggregate' , useValue : Aggregate } ; export const SearchService = { provide : 'GridsSearch' , useValue : Search } ; export const VirtualScrollService = { provide : 'GridsVirtualScroll' , useValue : VirtualScroll } ; export const EditService = { provide : 'GridsEdit' , useValue : Edit } ; export const ResizeService = { provide : 'GridsResize' , useValue : Resize } ; export const ExcelExportService = { provide : 'GridsExcelExport' , useValue : ExcelExport } ; export const PdfExportService = { provide : 'GridsPdfExport' , useValue : PdfExport } ; export const CommandColumnService = { provide : 'GridsCommandColumn' , useValue : CommandColumn } ; export const ContextMenuService = { provide : 'GridsContextMenu' , useValue : ContextMenu } ; export const FreezeService = { provide : 'GridsFreeze' , useValue : Freeze } ; export const ColumnMenuService = { provide : 'GridsColumnMenu' , useValue : ColumnMenu } ; export const ColumnChooserService = { provide : 'GridsColumnChooser' , useValue : ColumnChooser } ; export const ForeignKeyService = { provide : 'GridsForeignKey' , useValue : ForeignKey } ; export const InfiniteScrollService = { provide : 'GridsInfiniteScroll' , useValue : InfiniteScroll } ; export const LazyLoadGroupService = { provide : 'GridsLazyLoadGroup' , useValue : LazyLoadGroup } ; /**
 * NgModule definition for the Grid component with providers.
 */ @ NgModule ( { imports : [ CommonModule , GridModule ] , exports : [ GridModule ] , providers : [ FilterService , PageService , SelectionService , SortService , GroupService , ReorderService , RowDDService , DetailRowService , ToolbarService , AggregateService , SearchService , VirtualScrollService , EditService , ResizeService , ExcelExportService , PdfExportService , CommandColumnService , ContextMenuService , FreezeService , ColumnMenuService , ColumnChooserService , ForeignKeyService , InfiniteScrollService , LazyLoadGroupService ] } ) export class GridAllModule { }