import { Directive, HostBinding, HostListener, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./stepper.component";
export class NbStepperNextDirective {
    constructor(stepper) {
        this.stepper = stepper;
        this.type = 'submit';
    }
    onClick() {
        this.stepper.next();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NbStepperNextDirective, deps: [{ token: i1.NbStepperComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
    static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.3", type: NbStepperNextDirective, selector: "button[nbStepperNext]", inputs: { type: "type" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type" } }, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NbStepperNextDirective, decorators: [{
            type: Directive,
            args: [{
                    selector: 'button[nbStepperNext]',
                }]
        }], ctorParameters: () => [{ type: i1.NbStepperComponent }], propDecorators: { type: [{
                type: Input
            }, {
                type: HostBinding,
                args: ['attr.type']
            }], onClick: [{
                type: HostListener,
                args: ['click']
            }] } });
export class NbStepperPreviousDirective {
    constructor(stepper) {
        this.stepper = stepper;
        this.type = 'button';
    }
    onClick() {
        this.stepper.previous();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NbStepperPreviousDirective, deps: [{ token: i1.NbStepperComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
    static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.3", type: NbStepperPreviousDirective, selector: "button[nbStepperPrevious]", inputs: { type: "type" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type" } }, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NbStepperPreviousDirective, decorators: [{
            type: Directive,
            args: [{
                    selector: 'button[nbStepperPrevious]',
                }]
        }], ctorParameters: () => [{ type: i1.NbStepperComponent }], propDecorators: { type: [{
                type: Input
            }, {
                type: HostBinding,
                args: ['attr.type']
            }], onClick: [{
                type: HostListener,
                args: ['click']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci1idXR0b24uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ZyYW1ld29yay90aGVtZS9jb21wb25lbnRzL3N0ZXBwZXIvc3RlcHBlci1idXR0b24uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUs1RSxNQUFNLE9BQU8sc0JBQXNCO0lBSWpDLFlBQXNCLE9BQTJCO1FBQTNCLFlBQU8sR0FBUCxPQUFPLENBQW9CO1FBRmQsU0FBSSxHQUFXLFFBQVEsQ0FBQztJQUczRCxDQUFDO0lBR0QsT0FBTztRQUNMLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDdEIsQ0FBQzs4R0FWVSxzQkFBc0I7a0dBQXRCLHNCQUFzQjs7MkZBQXRCLHNCQUFzQjtrQkFIbEMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsdUJBQXVCO2lCQUNsQzt1RkFHb0MsSUFBSTtzQkFBdEMsS0FBSzs7c0JBQUksV0FBVzt1QkFBQyxXQUFXO2dCQU1qQyxPQUFPO3NCQUROLFlBQVk7dUJBQUMsT0FBTzs7QUFTdkIsTUFBTSxPQUFPLDBCQUEwQjtJQUlyQyxZQUFzQixPQUEyQjtRQUEzQixZQUFPLEdBQVAsT0FBTyxDQUFvQjtRQUZkLFNBQUksR0F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