import { Directive, HostBinding } from '@angular/core';
var NzFormItemDirective = (function () {
    function NzFormItemDirective() {
        this._withHelp = 0;
        this._nzFormItem = true;
    }
    NzFormItemDirective.prototype.enableHelp = function () {
        this._withHelp++;
    };
    ;
    NzFormItemDirective.prototype.disableHelp = function () {
        this._withHelp--;
    };
    ;
    Object.defineProperty(NzFormItemDirective.prototype, "withHelp", {
        get: function () {
            return this._withHelp > 0;
        },
        enumerable: true,
        configurable: true
    });
    ;
    return NzFormItemDirective;
}());
export { NzFormItemDirective };
NzFormItemDirective.decorators = [
    { type: Directive, args: [{
                selector: '[nz-form-item]'
            },] },
];
/** @nocollapse */
NzFormItemDirective.ctorParameters = function () { return []; };
NzFormItemDirective.propDecorators = {
    '_nzFormItem': [{ type: HostBinding, args: ["class.ant-form-item",] },],
    'withHelp': [{ type: HostBinding, args: ["class.ant-form-item-with-help",] },],
};
