import dataFnsGenerateConfig from '../vc-picker/generate/dateFns';
import generatePicker from './generatePicker';

var _generatePicker = generatePicker(dataFnsGenerateConfig),
    DatePicker = _generatePicker.DatePicker,
    WeekPicker = _generatePicker.WeekPicker,
    MonthPicker = _generatePicker.MonthPicker,
    YearPicker = _generatePicker.YearPicker,
    TimePicker = _generatePicker.TimePicker,
    QuarterPicker = _generatePicker.QuarterPicker,
    RangePicker = _generatePicker.RangePicker;

DatePicker.WeekPicker = WeekPicker;
DatePicker.MonthPicker = MonthPicker;
DatePicker.YearPicker = YearPicker;
DatePicker.RangePicker = RangePicker;
DatePicker.TimePicker = TimePicker;
DatePicker.QuarterPicker = QuarterPicker;
/* istanbul ignore next */

DatePicker.install = function (app) {
  app.component(DatePicker.name, DatePicker);
  app.component(RangePicker.name, RangePicker);
  app.component(MonthPicker.name, MonthPicker);
  app.component(WeekPicker.name, WeekPicker);
  app.component(QuarterPicker.name, QuarterPicker);
  return app;
};

export { RangePicker, WeekPicker, MonthPicker, QuarterPicker };
export default DatePicker;