"use strict";
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 __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var StopEventPropagationDirective = (function () {
    function StopEventPropagationDirective(element) {
        this.element = element;
    }
    StopEventPropagationDirective.prototype.ngAfterContentInit = function () {
        this.element.nativeElement.on(this.event, function (event) {
            event.preventDefault();
            event.stopPropagation();
        });
    };
    return StopEventPropagationDirective;
}());
__decorate([
    core_1.Input('rl-stop-event-propagation'),
    __metadata("design:type", String)
], StopEventPropagationDirective.prototype, "event", void 0);
StopEventPropagationDirective = __decorate([
    core_1.Directive({
        selector: '[rl-stop-event-propagation]'
    }),
    __metadata("design:paramtypes", [core_1.ElementRef])
], StopEventPropagationDirective);
exports.StopEventPropagationDirective = StopEventPropagationDirective;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcEV2ZW50UHJvcGFnYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzdG9wRXZlbnRQcm9wYWdhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsc0NBQStFO0FBSy9FLElBQWEsNkJBQTZCO0lBTXpDLHVDQUFZLE9BQW1CO1FBQzlCLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0lBQ3hCLENBQUM7SUFFRCwwREFBa0IsR0FBbEI7UUFDQyxJQUFJLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxVQUFDLEtBQVU7WUFDcEQsS0FBSyxDQUFDLGNBQWMsRUFBRSxDQUFDO1lBQ3ZCLEtBQUssQ0FBQyxlQUFlLEVBQUUsQ0FBQztRQUN6QixDQUFDLENBQUMsQ0FBQztJQUNKLENBQUM7SUFDRixvQ0FBQztBQUFELENBQUMsQUFoQkQsSUFnQkM7QUFaQTtJQURDLFlBQUssQ0FBQywyQkFBMkIsQ0FBQzs7NERBQ2I7QUFKViw2QkFBNkI7SUFIekMsZ0JBQVMsQ0FBQztRQUNWLFFBQVEsRUFBRSw2QkFBNkI7S0FDdkMsQ0FBQztxQ0FPb0IsaUJBQVU7R0FObkIsNkJBQTZCLENBZ0J6QztBQWhCWSxzRUFBNkIifQ==