{"version":3,"file":"ngx-formly-nativescript-form-field.mjs","names":[],"sources":["../../../../src/ui/nativescript/form-field/src/form-field.wrapper.ts","../../../../src/ui/nativescript/form-field/src/form-field.config.ts","../../../../src/ui/nativescript/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  hideLabel?: boolean;\n}\n\n@Component({\n  selector: 'formly-wrapper-ns-form-field',\n  template: `\n    <StackLayout class=\"form\">\n      <StackLayout class=\"input-field\">\n        @if (props.label && props.hideLabel !== true) {\n          <Label class=\"label\" [text]=\"props.label\"></Label>\n        }\n        <ng-container #fieldComponent></ng-container>\n        <StackLayout class=\"hr-light\"></StackLayout>\n        @if (showError) {\n          <!-- NativeScript labels handle line breaks; its CSS parser does not support pre-line. -->\n          <formly-validation-message\n            #validationMessage\n            [field]=\"field\"\n            style=\"white-space: normal\"\n          ></formly-validation-message>\n          @if (field.validation?.showAllErrors) {\n            <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage$ | async\" [textWrap]=\"true\"></Label>\n          } @else {\n            <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n          }\n        }\n      </StackLayout>\n    </StackLayout>\n  `,\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, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n  declarations: [FormlyWrapperFormField],\n  imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, FormlyModule.forChild(withFormlyFormField())],\n  schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsFormFieldModule {}\n"],"mappings":";;;;;;;;AAmCA,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,UA1BvB;;;;;;;;;;;;;;;;;;;;;;;;GAuBT,UAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,UAAA;GAAA,GAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,MAAA;GAAA,CAAA;EAAA,CAAA;CAAA;;AAGU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAAA,CAAA;EA5BlC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;GAwBV,YAAY;EACb,CAAA;;;AC/BD,SAAgB,sBAAmB;CACjC,OAAO,EACL,UAAU,CACR;EACE,MAAM;EACN,WAAW;CACZ,CACF,EACF;AACH;ACCA,IAAa,0BAAb,MAAa,wBAAuB;CAAvB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAuB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAvB;EA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