import { Directive, HostListener } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./datepicker.component";
export class DatepickerTriggerDirective {
    constructor(datepicker) {
        this.datepicker = datepicker;
    }
    onClick(event) {
        event.preventDefault();
        this.datepicker.toggle();
    }
}
DatepickerTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: DatepickerTriggerDirective, deps: [{ token: i1.DatepickerComponent }], target: i0.ɵɵFactoryTarget.Directive });
DatepickerTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.4", type: DatepickerTriggerDirective, selector: "[uiDatepickerTrigger]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: DatepickerTriggerDirective, decorators: [{
            type: Directive,
            args: [{
                    selector: '[uiDatepickerTrigger]'
                }]
        }], ctorParameters: function () { return [{ type: i1.DatepickerComponent }]; }, propDecorators: { onClick: [{
                type: HostListener,
                args: ['click', ['$event']]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci10cmlnZ2VyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3VpLWtpdC9zcmMvbGliL2Zvcm0vZGF0ZXBpY2tlci9kYXRlcGlja2VyLXRyaWdnZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7QUFNdEQsTUFBTSxPQUFPLDBCQUEwQjtJQUVyQyxZQUFtQixVQUErQjtRQUEvQixlQUFVLEdBQVYsVUFBVSxDQUFxQjtJQUNsRCxDQUFDO0lBR0QsT0FBT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