import { Component, input } from '@angular/core';
import { DynamicFormDirective } from '../../../dynamic-form.directive';
import { FieldsetModule } from '@seniorsistemas/angular-components/fieldset';
import * as i0 from "@angular/core";
import * as i1 from "@seniorsistemas/angular-components/fieldset";
export class FieldsetComponent {
    id = input();
    config = input.required();
    group = input.required();
    errorMessages = input();
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldsetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FieldsetComponent, isStandalone: true, selector: "ng-component", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null }, errorMessages: { classPropertyName: "errorMessages", publicName: "errorMessages", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let _config = config();\n<s-fieldset\n    [toggleable]=\"true\"\n    (onBeforeToggle)=\"_config.beforeToggle ? _config.beforeToggle($event) : null\"\n    (onAfterToggle)=\"_config.afterToggle ? _config.afterToggle($event) : null\"\n    [legend]=\"_config.header ? _config.header : ''\"\n>\n    @for (conf of _config.configs; let i = $index; track i) {\n        <ng-container\n            *sDynamicForm=\"{ id: id(), config: conf, group: group(), errorMessages: errorMessages() }\"\n        ></ng-container>\n    }\n</s-fieldset>\n\n", dependencies: [{ kind: "directive", type: DynamicFormDirective, selector: "[sDynamicForm]", inputs: ["sDynamicForm"] }, { kind: "ngmodule", type: FieldsetModule }, { kind: "component", type: i1.FieldsetComponent, selector: "s-fieldset", inputs: ["legend", "toggleable", "icon", "destroyOnHide"], outputs: ["beforeToggle", "afterToggle"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldsetComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [DynamicFormDirective, FieldsetModule], template: "@let _config = config();\n<s-fieldset\n    [toggleable]=\"true\"\n    (onBeforeToggle)=\"_config.beforeToggle ? _config.beforeToggle($event) : null\"\n    (onAfterToggle)=\"_config.afterToggle ? _config.afterToggle($event) : null\"\n    [legend]=\"_config.header ? _config.header : ''\"\n>\n    @for (conf of _config.configs; let i = $index; track i) {\n        <ng-container\n            *sDynamicForm=\"{ id: id(), config: conf, group: group(), errorMessages: errorMessages() }\"\n        ></ng-container>\n    }\n</s-fieldset>\n\n" }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGRzZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9zcmMvbGliL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL3N0cnVjdHVyZS9maWVsZHNldC9maWVsZHNldC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvZHluYW1pYy1mb3JtL3NyYy9saWIvZHluYW1pYy1mb3JtL2NvbXBvbmVudHMvc3RydWN0dXJlL2ZpZWxkc2V0L2ZpZWxkc2V0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBS2pELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQzs7O0FBTTdFLE1BQU0sT0FBTyxpQkFBaUI7SUFDMUIsRUFBRSxHQUF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