import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RCalendarKitModule, RCalendarTimeModelService } from '../../extra/calendar-kit';
import { OverlayModule } from '@angular/cdk/overlay';
import { RCardModule } from '../../layout/card';
import { RTimePickerComponent } from './timepicker.component';
import { RTimePickerCellComponent } from './timepicker-cell.component';
import { RTimePickerDirective } from './timepicker.directive';
import { R_TIME_PICKER_CONFIG } from './model';
import { RListModule } from '../../layout/list';
export class RTimepickerModule {
    static forRoot(config = {}) {
        return {
            ngModule: RTimepickerModule,
            providers: [{ provide: R_TIME_PICKER_CONFIG, useValue: config }],
        };
    }
    static forChild(config = {}) {
        return {
            ngModule: RTimepickerModule,
            providers: [{ provide: R_TIME_PICKER_CONFIG, useValue: config }],
        };
    }
}
RTimepickerModule.decorators = [
    { type: NgModule, args: [{
                imports: [
                    CommonModule,
                    OverlayModule,
                    RListModule,
                    RCardModule,
                    RCalendarKitModule,
                ],
                providers: [RCalendarTimeModelService],
                exports: [RTimePickerComponent, RTimePickerCellComponent, RTimePickerDirective],
                declarations: [RTimePickerComponent, RTimePickerCellComponent, RTimePickerDirective],
            },] }
];
//# sourceMappingURL=timepicker.module.js.map