{"version":3,"file":"ngx-formly-primeng-form-field.mjs","names":[],"sources":["../../../../src/ui/primeng/form-field/src/form-field.wrapper.ts","../../../../src/ui/primeng/form-field/src/form-field.config.ts","../../../../src/ui/primeng/form-field/src/form-field.module.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig, FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';\n\nexport interface FormlyFieldProps extends CoreFormlyFieldProps {\n  hideRequiredMarker?: boolean;\n  hideLabel?: boolean;\n}\n\n@Component({\n  selector: 'formly-wrapper-primeng-form-field',\n  template: `\n    <div class=\"p-field field\">\n      @if (props.label && props.hideLabel !== true) {\n        <label [for]=\"id\">\n          @if (props.allowHtml) {\n            <span [innerHTML]=\"props.label\"></span>\n          } @else {\n            {{ props.label }}\n          }\n          @if (props.required && props.hideRequiredMarker !== true) {\n            <span aria-hidden=\"true\">*</span>\n          }\n        </label>\n      }\n      <ng-container #fieldComponent></ng-container>\n\n      @if (props.description) {\n        <small class=\"block text-color-secondary\">\n          @if (props.allowHtml) {\n            <span [innerHTML]=\"props.description\"></span>\n          } @else {\n            <ng-container>{{ props.description }}</ng-container>\n          }\n        </small>\n      }\n\n      @if (showError) {\n        <small class=\"p-error\">\n          <formly-validation-message class=\"ui-message-text\" [field]=\"field\"></formly-validation-message>\n        </small>\n      }\n    </div>\n  `,\n  styles: ['.p-error { color: var(--p-red-500); }'],\n  standalone: false,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n  return {\n    wrappers: [\n      {\n        name: 'form-field',\n        component: FormlyWrapperFormField,\n      },\n    ],\n  };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n  declarations: [FormlyWrapperFormField],\n  imports: [CommonModule, ReactiveFormsModule, FormlyModule.forChild(withFormlyFormField())],\n})\nexport class FormlyFormFieldModule {}\n"],"mappings":";;;;;;AA8CA,IAAa,yBAAb,MAAa,+BAA+B,aAAiD;CAAhF;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAsB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAtB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAsB,cAAA;GAAA,UAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UApCvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCT,UAAA;GAAA,QAAA,CAAA,oCAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;;AAIU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAAA,CAAA;EAtClC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmC,UACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCT,YAEW;GAAK,QAAA,CAAA,oCAAA;EAAA,CAAA;;;ACzCnB,SAAgB,sBAAmB;CACjC,OAAO,EACL,UAAU,CACR;EACE,MAAM;EACN,WAAW;CACZ,CACF,EACF;AACH;ACDA,IAAa,wBAAb,MAAa,sBAAqB;CAArB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAqB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAArB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA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