/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { PrivateConstants } from '../../constants';
import { PrivateDynamicFromService } from '../../services';
export class ButtonControllComponent {
    /**
     * @param {?} _privateDynamicFromService
     */
    constructor(_privateDynamicFromService) {
        this._privateDynamicFromService = _privateDynamicFromService;
        this.clickEvent = new EventEmitter();
        this.privateConstants = PrivateConstants;
    }
    /**
     * @return {?}
     */
    ngOnInit() { }
    /**
     * @param {?} event
     * @return {?}
     */
    clickButton(event) {
        this.clickEvent.emit(event);
    }
}
ButtonControllComponent.decorators = [
    { type: Component, args: [{
                selector: 'button-controll',
                template: "<div class=\"form-group {{field.class}}\">\n    <button\n        class=\"m-1 btn {{(field.attr && field.attr.class && field.attr.class !== '') ? field.attr.class : 'btn-primary'}}\"\n        id=\"{{field.name + '-' + (i + '' + j)}}\" title=\"{{(field.attr && field.attr.title) ? field.attr.title : ''}}\"\n        (click)=\"clickButton(field)\" name=\"{{field.name}}\">{{field.label}}</button>\n</div>",
                styles: [""]
            }] }
];
/** @nocollapse */
ButtonControllComponent.ctorParameters = () => [
    { type: PrivateDynamicFromService }
];
ButtonControllComponent.propDecorators = {
    rowField: [{ type: Input }],
    field: [{ type: Input }],
    i: [{ type: Input }],
    j: [{ type: Input }],
    clickEvent: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    ButtonControllComponent.prototype.rowField;
    /** @type {?} */
    ButtonControllComponent.prototype.field;
    /** @type {?} */
    ButtonControllComponent.prototype.i;
    /** @type {?} */
    ButtonControllComponent.prototype.j;
    /** @type {?} */
    ButtonControllComponent.prototype.clickEvent;
    /** @type {?} */
    ButtonControllComponent.prototype.privateConstants;
    /**
     * @type {?}
     * @private
     */
    ButtonControllComponent.prototype._privateDynamicFromService;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9u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