/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
import { PrivateConstants } from '../../constants';
import { PrivateDynamicFromService } from '../../services';
export class ImageControllComponent {
    /**
     * @param {?} _privateDynamicFromService
     */
    constructor(_privateDynamicFromService) {
        this._privateDynamicFromService = _privateDynamicFromService;
        this.privateConstants = PrivateConstants;
    }
    /**
     * @return {?}
     */
    ngOnInit() { }
    /**
     * @param {?} errorListObj
     * @param {?} fieldObj
     * @return {?}
     */
    errorList(errorListObj, fieldObj) {
        return this._privateDynamicFromService.errorList(errorListObj, fieldObj);
    }
    /**
     * @param {?} validations
     * @return {?}
     */
    showRequired(validations) {
        return this._privateDynamicFromService.showRequired(validations);
    }
}
ImageControllComponent.decorators = [
    { type: Component, args: [{
                selector: 'image-controll',
                template: "<div class=\"form-group {{(field.class) ? field.class : ''}}\" [formGroup]=\"parentFormGroup\">\n    <show-label [class]=\"'col-form-label w-100'\" [labelName]=\"field.label\" [labelId]=\"field.name + '-' + (i + '' + j)\"\n        [isrequired]=\"showRequired(field.validations)\">\n    </show-label>\n\n    <img [src]=\"field.value ? field.value : privateConstants.defaultImg\" class=\"img-responsive {{(field.attr && field.attr.class) ? field.attr.class : ''}}\" />\n\n    <show-error [errorList]=\"errorList(parentFormGroup.controls[field.name], field)\"></show-error>\n</div>",
                styles: [""]
            }] }
];
/** @nocollapse */
ImageControllComponent.ctorParameters = () => [
    { type: PrivateDynamicFromService }
];
ImageControllComponent.propDecorators = {
    rowField: [{ type: Input }],
    field: [{ type: Input }],
    parentFormGroup: [{ type: Input }],
    i: [{ type: Input }],
    j: [{ type: Input }]
};
if (false) {
    /** @type {?} */
    ImageControllComponent.prototype.rowField;
    /** @type {?} */
    ImageControllComponent.prototype.field;
    /** @type {?} */
    ImageControllComponent.prototype.parentFormGroup;
    /** @type {?} */
    ImageControllComponent.prototype.i;
    /** @type {?} */
    ImageControllComponent.prototype.j;
    /** @type {?} */
    ImageControllComponent.prototype.privateConstants;
    /**
     * @type {?}
     * @private
     */
    ImageControllComponent.prototype._privateDynamicFromService;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UtY29udHJvbGwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhci1yZWFjdGl2ZS1keW5hbWljLWZvcm1zLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvaW1hZ2UtY29udHJvbGwvaW1hZ2UtY29udHJvbGwuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQU8zRCxNQUFNLE9BQU8sc0JBQXNCOzs7O0lBVS9CLFlBQ1ksMEJBQXFEO1FBQXJELCtCQUEwQixHQUExQiwwQkFBMEIsQ0FBMkI7UUFIakUscUJBQWdCLEdBQVEsZ0JBQWdCLENBQUM7SUFJckMsQ0FBQzs7OztJQUVMLFFBQVEsS0FBSyxDQUFDOzs7Ozs7SUFFZCxTQUFTLENBQUMsWUFBWSxFQUFFLFFBQVE7UUFDNUIsT0FBTyxJQUFJLENBQUMsMEJBQTBCLENBQUMsU0FBUyxDQUFDLFlBQVksRUFBRSxRQUFRLENBQUMsQ0FBQztJQUM3RSxDQUFDOzs7OztJQUVELFlBQVksQ0FBQyxXQUFXO1FBQ3BCLE9BQU8sSUFBSSxDQUFDLDBCQUEwQixDQUFDLFlBQVksQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUNyRSxDQUFDOzs7WUEzQkosU0FBUyxTQUFDO2d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