/*
 * @license
 * Copyright Endlessjs. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var ElDatepickerModule_1;
import { NgModule } from '@angular/core';
import { DatePipe } from '@angular/common';
import { EL_DATE_ADAPTER, ElDatepickerDirective } from './datepicker.directive';
import { ElOverlayModule } from '../cdk/overlay/overlay.module';
import { ElCalendarModule } from '../calendar/calendar.module';
import { ElCalendarComponent } from '../calendar/calendar.component';
import { ElDatepickerContainerComponent } from './datepicker-container.component';
import { ElDatepickerComponent, ElRangepickerComponent } from './datepicker.component';
import { ElCalendarRangeComponent } from '../calendar/calendar-range.component';
import { ElCalendarRangeModule } from '../calendar/calendar-range.module';
import { ElDateAdapterService, ElRangeAdapterService } from './datepicker-adapter';
let ElDatepickerModule = ElDatepickerModule_1 = class ElDatepickerModule {
    static forRoot() {
        return {
            ngModule: ElDatepickerModule_1,
            providers: [
                DatePipe,
                {
                    provide: EL_DATE_ADAPTER,
                    multi: true,
                    useClass: ElDateAdapterService,
                },
                {
                    provide: EL_DATE_ADAPTER,
                    multi: true,
                    useClass: ElRangeAdapterService,
                },
            ],
        };
    }
};
ElDatepickerModule = ElDatepickerModule_1 = __decorate([
    NgModule({
        imports: [ElOverlayModule, ElCalendarModule, ElCalendarRangeModule],
        exports: [ElDatepickerDirective, ElDatepickerComponent, ElRangepickerComponent],
        declarations: [ElDatepickerDirective, ElDatepickerContainerComponent, ElDatepickerComponent, ElRangepickerComponent],
        entryComponents: [ElCalendarComponent, ElCalendarRangeComponent, ElDatepickerContainerComponent],
    })
], ElDatepickerModule);
export { ElDatepickerModule };
//# sourceMappingURL=datepicker.module.js.map