11import { DragDropModule } from '@angular/cdk/drag-drop' ;
22import { CdkVirtualScrollViewport , ScrollingModule } from '@angular/cdk/scrolling' ;
33import { CommonModule } from '@angular/common' ;
4- import { inject , NgModule } from '@angular/core' ;
5- import { setDefaultOptions } from 'date-fns' ;
4+ import { NgModule } from '@angular/core' ;
65import { NgxGanttBarComponent } from './components/bar/bar.component' ;
76import { NgxGanttBaselineComponent } from './components/baseline/baseline.component' ;
87import { GanttCalendarGridComponent } from './components/calendar/grid/calendar-grid.component' ;
@@ -17,7 +16,7 @@ import { GanttTableBodyComponent } from './components/table/body/gantt-table-bod
1716import { GanttTableHeaderComponent } from './components/table/header/gantt-table-header.component' ;
1817import { NgxGanttToolbarComponent } from './components/toolbar/toolbar.component' ;
1918import { NgxGanttComponent } from './gantt.component' ;
20- import { GANTT_GLOBAL_CONFIG , GanttConfigService , GanttGlobalConfig , defaultConfig } from './gantt.config' ;
19+ import { GANTT_GLOBAL_CONFIG , defaultConfig } from './gantt.config' ;
2120import { IsGanttBarItemPipe , IsGanttCustomItemPipe , IsGanttGroupPipe , IsGanttRangeItemPipe } from './gantt.pipe' ;
2221import { NgxGanttRootComponent } from './root.component' ;
2322import { NgxGanttTableColumnComponent } from './table/gantt-column.component' ;
@@ -77,12 +76,5 @@ import { i18nLocaleProvides } from './i18n';
7776 ]
7877} )
7978export class NgxGanttModule {
80- constructor ( ) {
81- const configService = inject ( GanttConfigService ) ;
82-
83- setDefaultOptions ( {
84- locale : configService . getDateLocale ( ) ,
85- weekStartsOn : configService . config ?. dateOptions ?. weekStartsOn
86- } ) ;
87- }
79+ constructor ( ) { }
8880}
0 commit comments