import { BadgeModule, ButtonModule, ButtonGroupModule, CardModule, DropdownModule, GridModule, ListGroupModule, SharedModule, AccordionModule } from "@coreui/angular";
import { NgModule } from "@angular/core";
import { NgxEchartsModule } from 'ngx-echarts';
import { DataFormatPipe } from './msj/data-format.pipe'; // パイプのインポート

const widgetModules = [BadgeModule,
    ButtonModule,
    ButtonGroupModule,
    CardModule,
    DropdownModule,
    GridModule,
    ListGroupModule,
    SharedModule,
    AccordionModule,
    
];

@NgModule({
    declarations: [
        DataFormatPipe
      ],
    imports: [...widgetModules,
        
        NgxEchartsModule.forRoot({ echarts: () => import('echarts') }),
    ],
    exports: [...widgetModules,
        DataFormatPipe,
        NgxEchartsModule,
    ],
})
export class WidgetModule {
}
