import { NgModule } from '@angular/core';
import { CommonModule, DatePipe } from '@angular/common';
import { RTimepickerModule } from '../timepicker';
import { OverlayModule } from '@angular/cdk/overlay';
import { RCardModule } from '../../layout/card';
import { RCalendarKitModule } from '../../extra/calendar-kit';
import { RDateTimePickerComponent } from './date-timepicker.component';
import { RDatepickerDirective, R_DATE_ADAPTER } from './datepicker.directive';
import { RDatepickerContainerComponent } from './datepicker-container.component';
import { RCalendarWithTimeComponent } from './calendar-with-time.component';
import { RBasePickerComponent, RDatepickerComponent, RRangepickerComponent } from './datepicker.component';
import { RBaseCalendarModule, RCalendarComponent, RCalendarModule, RCalendarRangeComponent, RCalendarRangeModule } from '../../extra/calendar';
import { RDateAdapterService, RDateTimeAdapterService, RRangeAdapterService } from './datepicker-adapter';
import { RButtonModule } from '../../layout/button';
export class RDatepickerModule {
    static forRoot() {
        return {
            ngModule: RDatepickerModule,
            providers: [
                DatePipe,
                {
                    provide: R_DATE_ADAPTER,
                    multi: true,
                    useClass: RDateAdapterService,
                },
                {
                    provide: R_DATE_ADAPTER,
                    multi: true,
                    useClass: RRangeAdapterService,
                },
                {
                    provide: R_DATE_ADAPTER,
                    multi: true,
                    useClass: RDateTimeAdapterService,
                },
            ],
        };
    }
}
RDatepickerModule.decorators = [
    { type: NgModule, args: [{
                declarations: [
                    RDatepickerDirective,
                    RDatepickerContainerComponent,
                    RCalendarWithTimeComponent,
                    RDatepickerComponent,
                    RRangepickerComponent,
                    RBasePickerComponent,
                    RDateTimePickerComponent
                ],
                imports: [
                    CommonModule,
                    OverlayModule,
                    RCalendarModule,
                    RCalendarRangeModule,
                    RCardModule,
                    RBaseCalendarModule,
                    RTimepickerModule,
                    RCalendarKitModule,
                    RButtonModule,
                ],
                exports: [
                    RDatepickerDirective,
                    RDatepickerComponent,
                    RRangepickerComponent,
                    RDateTimePickerComponent,
                    RCalendarWithTimeComponent,
                ],
                entryComponents: [
                    RCalendarComponent,
                    RCalendarRangeComponent,
                    RDatepickerContainerComponent,
                    RCalendarWithTimeComponent,
                ],
            },] }
];
//# sourceMappingURL=datepicker.module.js.map