import * as tslib_1 from "tslib";
import { Component, Inject } from '@angular/core';
import { BaseGroupComponent } from '../../../core/base-group/base-group.component';
import { DYNAMIC_COMPONENT_CONFIG } from '@eui/core';
var FieldsetContainerComponent = /** @class */ (function (_super) {
    tslib_1.__extends(FieldsetContainerComponent, _super);
    function FieldsetContainerComponent(config) {
        var _this = _super.call(this, config) || this;
        _this.inputs = _this.context.inputs;
        return _this;
    }
    FieldsetContainerComponent.prototype.ngOnInit = function () {
    };
    FieldsetContainerComponent.decorators = [
        { type: Component, args: [{
                    selector: 'ux-dyn-fieldset-container',
                    template: "<ux-fieldset [label]=\"inputs.label\">\n    <ng-container *ngIf=\"dynFormGroup&&dynFormGroup.invalid && dynFormGroup.touched\">\n        <ux-control-feedback *ngIf=\"dynFormGroup.errors&&dynFormGroup.errors.uxValidationError\"\n                             typeClass=\"{{dynFormGroup.errors.uxValidationError.type ? dynFormGroup.errors.uxValidationError.type : 'danger' }}\"\n        >\n            {{dynFormGroup.errors.uxValidationError.message && dynFormGroup.errors.uxValidationError.message.id ?\n            (dynFormGroup.errors.uxValidationError.message.id|translate:dynFormGroup.errors.uxValidationError.message.params) :\n            dynFormGroup.errors.uxValidationError.message}}\n        </ux-control-feedback>\n    </ng-container>\n    <ux-dyn-form-child-container [config]=\"childrenConfig\" [frameId]=\"frameId\" [parent]=\"dynFormGroup\">\n    </ux-dyn-form-child-container>\n</ux-fieldset>\n",
                    styles: [""]
                }] }
    ];
    /** @nocollapse */
    FieldsetContainerComponent.ctorParameters = function () { return [
        { type: undefined, decorators: [{ type: Inject, args: [DYNAMIC_COMPONENT_CONFIG,] }] }
    ]; };
    return FieldsetContainerComponent;
}(BaseGroupComponent));
export { FieldsetContainerComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGRzZXQtY29udGFpbmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BldWkvZHluYW1pYy1mb3Jtcy8iLCJzb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