{"version":3,"file":"odx-angular-components-form-field.mjs","sources":["../../../../libs/angular/components/form-field/src/lib/form-field.service.ts","../../../../libs/angular/components/form-field/src/lib/components/form-field-info/form-field-info.component.ts","../../../../libs/angular/components/form-field/src/lib/components/form-field-info/form-field-info.component.html","../../../../libs/angular/components/form-field/src/lib/form-field.config.ts","../../../../libs/angular/components/form-field/src/lib/services/form-field-error.service.ts","../../../../libs/angular/components/form-field/src/lib/components/form-group/form-group.component.ts","../../../../libs/angular/components/form-field/src/lib/components/form-group/form-group.component.html","../../../../libs/angular/components/form-field/src/lib/directives/form.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-control.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-error.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-hint.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-label.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/signal-form-field-state-sync.directive.ts","../../../../libs/angular/components/form-field/src/lib/models/form-field-variant.ts","../../../../libs/angular/components/form-field/src/lib/form-field.component.ts","../../../../libs/angular/components/form-field/src/lib/form-field.component.html","../../../../libs/angular/components/form-field/src/lib/form-field.module.ts","../../../../libs/angular/components/form-field/src/odx-angular-components-form-field.ts"],"sourcesContent":["import { ElementRef, Injectable, OnDestroy } from '@angular/core';\nimport { AbstractControl, Validators } from '@angular/forms';\nimport { Controller, DisabledController, ReadonlyController } from '@odx/angular';\nimport { getUniqueId } from '@odx/angular/utils';\nimport { BehaviorSubject, EMPTY, Observable, distinctUntilChanged, map, merge, of, shareReplay, startWith, switchMap, tap } from 'rxjs';\n\ntype CompatibleControl = Partial<AbstractControl>;\n\ninterface FieldControl {\n  control: CompatibleControl;\n  nativeElement: HTMLElement;\n}\n\n/**\n * Provides centralized form field management for Angular applications.\n * This service handles the registration and management of form controls, including their disabled and read-only states,\n * and integrates seamlessly with Angular's forms module. It manages the state of individual form fields across the application,\n * ensuring that changes to the state (such as disabled or read-only) are consistently reflected in the UI.\n *\n * Extends the `Controller` class, which provides basic functionality for managing state and interactions.\n * The service utilizes Angular's dependency injection to access and manipulate form controls and their properties,\n * making it easier to maintain and update form state across complex forms.\n *\n * @extends {Controller}\n */\n@Injectable()\nexport class FormFieldService extends Controller implements OnDestroy {\n  private readonly disabledController = DisabledController.inject();\n  private readonly readonlyController = ReadonlyController.inject();\n  private readonly control$$ = new BehaviorSubject<FieldControl | null>(null);\n\n  /**\n   * Observable that emits the currently registered control object, which includes\n   * both the control instance and the associated native HTML element.\n   *\n   * @emits {FieldControl | null}\n   */\n  public readonly control$ = this.control$$.pipe(shareReplay({ bufferSize: 1, refCount: true }));\n\n  /**\n   * Observable that emits the ID of the current control's HTML element. Generates a unique ID\n   * if not already assigned.\n   *\n   * @emits {string | null}\n   */\n  public readonly controlId$ = this.control$.pipe(\n    map((control) => (control ? control.nativeElement.id || getUniqueId('odx-form-field') : null)),\n    shareReplay({ bufferSize: 1, refCount: true }),\n  );\n\n  /**\n   * Observable that emits the hint ID associated with the control, which is typically used for accessibility\n   * purposes.\n   *\n   * @emits {string | null}\n   */\n  public readonly controlHintId$ = this.controlId$.pipe(\n    map((id) => (id ? `${id}-hint` : null)),\n    shareReplay({ bufferSize: 1, refCount: true }),\n  );\n\n  /**\n   * Observable that emits the error message ID associated with the control,\n   * used for linking form errors for accessibility.\n   *\n   * @emits {string | null}\n   */\n  public readonly controlErrorId$ = this.controlId$.pipe(\n    map((id) => (id ? `${id}-error` : null)),\n    shareReplay({ bufferSize: 1, refCount: true }),\n  );\n\n  /**\n   * Observable that emits a boolean indicating whether the control is disabled,\n   * combining both internal state and controller state.\n   *\n   * @emits {boolean}\n   */\n  public readonly isDisabled$ = this.control$.pipe(\n    switchMap((control) => (control ? merge(this.updateControlDisabledState(control), this.getControlDisabledState(control)) : of(false))),\n    distinctUntilChanged(),\n    shareReplay({ bufferSize: 1, refCount: true }),\n  );\n\n  /**\n   * Observable that emits a boolean indicating whether the control is required,\n   * based on the presence of the required attribute or validator.\n   *\n   * @emits {boolean}\n   */\n  public readonly isRequired$ = this.control$.pipe(\n    switchMap((control) => {\n      if (!control) return of(null);\n      const { control: abstractControl } = control;\n      return merge(abstractControl.statusChanges ?? EMPTY, abstractControl.valueChanges ?? EMPTY).pipe(\n        startWith(null),\n        map(() => control),\n      );\n    }),\n    map((control) => !!(control?.nativeElement.hasAttribute('required') || control?.control.hasValidator?.(Validators.required))),\n    distinctUntilChanged(),\n    shareReplay({ bufferSize: 1, refCount: true }),\n  );\n\n  /**\n   * Observable that emits a boolean indicating whether the control is readonly,\n   * based on the presence of the readonly attribute.\n   *\n   * @emits {boolean}\n   */\n  public readonly isReadonly$ = this.control$.pipe(\n    switchMap((control) => (control && this.readonlyController ? this.readonlyController.isReadonly$ : of(false))),\n  );\n\n  public override ngOnDestroy(): void {\n    this.control$$.complete();\n    super.ngOnDestroy();\n  }\n\n  /**\n   * Registers a control along with its native element to the service.\n   *\n   * @param {AbstractControl} control - The Angular form control.\n   * @param {ElementRef<HTMLElement>} nativeElement - The native element associated with the form control.\n   */\n  public registerControl(control: CompatibleControl, { nativeElement }: ElementRef<HTMLElement>): void {\n    this.control$$.next({ control, nativeElement });\n  }\n\n  /**\n   * Removes the currently registered control from the service.\n   */\n  public removeControl(): void {\n    this.control$$.next(null);\n  }\n\n  private updateControlDisabledState({ control }: FieldControl): Observable<boolean> {\n    if (this.disabledController) {\n      return this.disabledController.isDisabled$.pipe(\n        tap((state) => {\n          if (state) {\n            control.disable?.();\n          } else {\n            control.enable?.();\n          }\n        }),\n      );\n    }\n    return EMPTY;\n  }\n\n  private getControlDisabledState({ control }: FieldControl): Observable<boolean> {\n    return (control.statusChanges ?? EMPTY).pipe(\n      startWith(control.status),\n      map((status) => status === 'DISABLED'),\n      distinctUntilChanged(),\n    );\n  }\n}\n","import { Component, inject, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { FormFieldService } from '../../form-field.service';\nimport { FormFieldError } from '../../models';\n\n/**\n * A component that displays form field information such as hints or error messages, providing feedback to the user.\n * It integrates with the `FormFieldService` to reactively update and display this information based on the state of a\n * form field. The component uses dynamic content loading to facilitate the rendering of custom template-driven or\n * reactive hints and error messages, enhancing the flexibility and reusability of form validations and user prompts.\n */\n@Component({\n  standalone: true,\n  selector: 'odx-form-field-info',\n  templateUrl: './form-field-info.component.html',\n  encapsulation: ViewEncapsulation.None,\n  imports: [CoreModule, DynamicViewDirective],\n  host: {\n    '[class.odx-form-field__info]': 'true',\n  },\n})\nexport class FormFieldInfoComponent {\n  protected readonly formFieldService = inject(FormFieldService);\n\n  /**\n   * Input property that takes a `FormFieldError` object. This object contains detailed information about\n   * the form field error state including the message to be displayed, the key identifier of the error, and\n   * any contextual data that might be necessary for error resolution.\n   *\n   * @type {FormFieldError}\n   * @default null\n   */\n  @Input()\n  public error: FormFieldError | null = null;\n}\n","@if (error) {\n  <span class=\"odx-form-field-error\" [attr.id]=\"formFieldService.controlErrorId$ | async\">\n    <ng-template [odxDynamicView]=\"error.message\" [odxDynamicViewContext]=\"error.context\" />\n  </span>\n} @else {\n  <ng-content />\n}\n","import { createConfigTokens } from '@odx/angular/utils';\nimport { FormFieldErrorResolvers } from './models';\n\nexport interface FormFieldConfig {\n  /**\n   * Object of error resolvers used to resolve error messages globally\n   * @default {}\n   */\n  errors: FormFieldErrorResolvers;\n  ignoreErrors: string[];\n}\n\nexport const { FormFieldDefaultConfig, FormFieldConfig, injectFormFieldConfig, provideFormFieldConfig } = createConfigTokens(\n  'FormField',\n  '@odx/angular/components/form-field',\n  {\n    errors: {},\n    ignoreErrors: [],\n  } as FormFieldConfig,\n);\n","import { Injectable, OnDestroy, TemplateRef } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\nimport { isTemplateRef } from '@odx/angular/utils';\nimport { BehaviorSubject, combineLatest, distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { injectFormFieldConfig } from '../form-field.config';\nimport { FormFieldError } from '../models';\n\nconst DEFAULT_CUSTOM_FORM_FIELD_ERROR = '@odx/angular/form-field/default-error';\nconst DEFAULT_ERROR_RESOLVER = () => '';\n\ninterface NgFormFieldError {\n  key: string;\n  context: unknown;\n}\n\ntype CustomFormFieldErrors = Record<string, TemplateRef<unknown>>;\n\n/**\n * Manages and resolves form field errors by integrating custom error messages and templates.\n * This service provides reactive observables for error states that can be used to display custom error messages in templates.\n * It supports both string-based error messages and Angular templates for richer error displays.\n */\n@Injectable()\nexport class FormFieldErrorService implements OnDestroy {\n  private readonly config = injectFormFieldConfig();\n  private readonly fieldError$$ = new BehaviorSubject<NgFormFieldError | null>(null);\n  private readonly customErrors$$ = new BehaviorSubject<CustomFormFieldErrors>({});\n\n  /**\n   * An Observable that emits the resolved form field error based on current validations and custom errors.\n   * It outputs either a `FormFieldError` object with a message and context or `null` if no errors are found.\n   *\n   * @emits {FormFieldError | null}\n   */\n  public readonly error$ = combineLatest([this.fieldError$$, this.customErrors$$]).pipe(\n    map(([error, customErrors]) => this.resolveError(error, customErrors)),\n    distinctUntilChanged(),\n    shareReplay({ bufferSize: 1, refCount: true }),\n  );\n\n  /**\n   * An Observable that emits a boolean indicating whether there are any active errors.\n   *\n   * @emits {boolean}\n   */\n  public readonly hasError$ = this.error$.pipe(map((error) => error !== null));\n\n  /**\n   * Gets a boolean indicating whether the current field has any errors.\n   *\n   * @returns {boolean}\n   */\n  public get hasError(): boolean {\n    return this.fieldError$$.getValue() !== null;\n  }\n\n  public ngOnDestroy(): void {\n    this.fieldError$$.next(null);\n    this.customErrors$$.next({});\n    this.fieldError$$.complete();\n    this.customErrors$$.complete();\n  }\n\n  /**\n   * Sets the first relevant error from the ValidationErrors object if any error matches the non-ignored error list.\n   *\n   * @param {ValidationErrors | null} errors ValidationErrors object containing potential errors from a form control.\n   */\n  public setError(errors?: ValidationErrors | null): void {\n    this.fieldError$$.next(this.getFirstError(errors ?? {}));\n  }\n\n  /**\n   * Registers a custom error template for a specific error key.\n   *\n   * @param {string | undefined} key The error key to register the custom template under. If omitted, a default key is used.\n   * @param {TemplateRef<unknown>} template A TemplateRef instance containing the Angular template to display for this error.\n   */\n  public registerCustomError(key: string | undefined, template: TemplateRef<unknown>): void {\n    this.customErrors$$.next({ ...this.customErrors$$.getValue(), [key || DEFAULT_CUSTOM_FORM_FIELD_ERROR]: template });\n  }\n\n  private getFirstError(errors: ValidationErrors): NgFormFieldError | null {\n    const [key, context] = Object.entries(errors ?? {}).find(([errorKey]) => !this.config.ignoreErrors.includes(errorKey)) ?? [];\n\n    return key ? { key, context } : null;\n  }\n\n  private resolveError(error: NgFormFieldError | null, customErrors: CustomFormFieldErrors): FormFieldError | null {\n    if (!error) return null;\n    const { key, context } = error;\n    const message = customErrors[key] ?? customErrors[DEFAULT_CUSTOM_FORM_FIELD_ERROR];\n    if (isTemplateRef(message)) {\n      return {\n        key,\n        message,\n        context: { $implicit: context },\n      };\n    }\n\n    const getMessage = this.config.errors[key] ?? DEFAULT_ERROR_RESOLVER;\n    return { key, message: getMessage(context) };\n  }\n}\n","import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, QueryList, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { Observable, combineLatest, map, startWith, switchMap } from 'rxjs';\nimport { FormFieldService } from '../../form-field.service';\nimport { FormFieldError } from '../../models';\nimport { FormFieldErrorService } from '../../services';\nimport { FormFieldInfoComponent } from '../form-field-info/form-field-info.component';\n\n/**\n * A component that aggregates multiple form field error services to manage and display error states across\n * a group of form fields. It facilitates centralized error handling and dynamic updates to error messages,\n * making it ideal for forms with complex validation rules or multiple data entry points.\n *\n * This component dynamically listens to changes in error states from its child components and updates the\n * error information displayed to the user based on the most relevant error.\n */\n@CSSComponent('form-group')\n@Component({\n  standalone: true,\n  selector: 'odx-form-group',\n  templateUrl: './form-group.component.html',\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [CoreModule, FormFieldInfoComponent],\n  providers: [FormFieldService],\n})\nexport class FormGroupComponent implements AfterContentInit {\n  public readonly element = injectElement();\n\n  /**\n   * An observable that emits the current error state of the form group. It is calculated by combining\n   * the error states of all child form fields and selecting the most relevant error to display.\n   *\n   * @type {Observable<FormFieldError | null> | null}\n   * @default null\n   */\n  public error$: Observable<FormFieldError | null> | null = null;\n\n  /**\n   * A QueryList containing all instances of FormFieldErrorService used by child components of this form group. This list\n   * is used to subscribe to error changes in all child components and dynamically update the group's error state.\n   *\n   * @type {QueryList<FormFieldErrorService>}\n   */\n  @ContentChildren(FormFieldErrorService, { descendants: false })\n  public formFieldErrorServices!: QueryList<FormFieldErrorService>;\n\n  public ngAfterContentInit() {\n    this.error$ = this.formFieldErrorServices.changes.pipe(\n      startWith<QueryList<FormFieldErrorService>>(this.formFieldErrorServices),\n      switchMap((services) => combineLatest(services.map((service) => service.error$))),\n      map((errors) => errors.find((error) => error !== null) ?? null),\n    );\n  }\n}\n","<div class=\"odx-form-group__content\" odxLayout=\"grid\">\n  <ng-content select=\"odx-form-field\" />\n</div>\n<odx-form-field-info [error]=\"error$ | async\">\n  <ng-content select=\"odx-form-field-hint\" />\n</odx-form-field-info>\n","import { Directive } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { fromEvent, share } from 'rxjs';\n\n/**\n * Represents a directive for handling form-related functionality.\n * This directive listens for form submit and reset events, making them observable, which can be used to handle\n * form interactions more reactively within Angular applications.\n */\n@CSSComponent('form')\n@Directive({\n  standalone: true,\n  selector: 'form[odxForm]',\n  exportAs: 'odxForm',\n})\nexport class FormDirective {\n  public readonly element = injectElement<HTMLFormElement>();\n\n  /**\n   * An Observable that emits events every time the form is submitted. This stream is shared among multiple subscribers,\n   * which means the form's submit event is processed as it occurs and is multicasted to all subscribers.\n   *\n   * @emits {Event} The submit event emitted by the form element.\n   */\n  public readonly submit$ = fromEvent<Event>(this.element.nativeElement, 'submit').pipe(takeUntilDestroyed(), share());\n\n  /**\n   * An Observable that emits events every time the form is reset. Similar to `submit$`, this stream is also shared\n   * among multiple subscribers, allowing components to react to form resets reactively and concurrently.\n   *\n   * @emits {Event} The reset event emitted by the form element.\n   */\n  public readonly reset$ = fromEvent<Event>(this.element.nativeElement, 'reset').pipe(takeUntilDestroyed(), share());\n}\n","import { AfterViewInit, booleanAttribute, Directive, inject, input, OnDestroy, OnInit } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { AbstractControl, FormControl, NgControl } from '@angular/forms';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { booleanToOptionalAttributeString, injectElement, reactiveAttributeBinding } from '@odx/angular/utils';\nimport { EMPTY, fromEvent, map, merge, Observable, of, startWith, Subject, switchMap } from 'rxjs';\nimport { FormFieldService } from '../form-field.service';\nimport { FormFieldErrorService } from '../services';\nimport { FormDirective } from './form.directive';\n\n/**\n * Represents a directive that provides control functionality for a form field.\n * This directive is responsible for registering the control with the form field service,\n * handling control changes, and managing form field attributes and error states.\n */\n@CSSComponent('form-field-control')\n@Directive({\n  standalone: true,\n  selector: '[odxFormFieldControl]',\n  exportAs: 'odxFormFieldControl',\n  host: {\n    '[class.odx-form-field-control--auto-size]': 'isAutoSizeTextarea()',\n  },\n})\nexport class FormFieldControlDirective implements OnInit, AfterViewInit, OnDestroy {\n  private readonly ngControl = inject(NgControl, { optional: true, self: true });\n  private readonly form = inject(FormDirective, { optional: true, skipSelf: true });\n  private readonly forceValidation$$ = new Subject<void>();\n  private readonly onFormSubmit$ = this.form?.submit$ ?? EMPTY;\n  private readonly formFieldService = inject(FormFieldService);\n  private readonly formFieldErrorService = inject(FormFieldErrorService);\n  private readonly takeUntilDestroyed = takeUntilDestroyed();\n  private readonly autoSize$: Observable<boolean>;\n  public readonly element = injectElement();\n\n  /**\n   * Makes a `textarea` control grow to fit content\n   *\n   * @type {boolean}\n   * @default false\n   */\n  public readonly autoSize = input(false, { transform: booleanAttribute });\n\n  constructor() {\n    this.autoSize$ = toObservable(this.autoSize);\n\n    reactiveAttributeBinding(this.formFieldService.controlId$, 'id');\n    reactiveAttributeBinding(this.formFieldService.controlHintId$, 'aria-describedby');\n    reactiveAttributeBinding(this.formFieldService.isReadonly$, 'readonly');\n    reactiveAttributeBinding(this.formFieldService.isDisabled$.pipe(map(booleanToOptionalAttributeString)), 'aria-disabled');\n    reactiveAttributeBinding(this.formFieldService.isReadonly$.pipe(map(booleanToOptionalAttributeString)), 'aria-readonly');\n    reactiveAttributeBinding(this.formFieldService.isRequired$.pipe(map(booleanToOptionalAttributeString)), 'aria-required');\n    reactiveAttributeBinding(this.formFieldErrorService.hasError$.pipe(map(booleanToOptionalAttributeString)), 'aria-invalid');\n    reactiveAttributeBinding(\n      this.formFieldErrorService.hasError$.pipe(switchMap((hasError) => (hasError ? this.formFieldService.controlErrorId$ : of(null)))),\n      'aria-errormessage',\n    );\n  }\n\n  public ngOnInit() {\n    const control = this.ngControl?.control;\n    this.formFieldService.registerControl(control ?? new FormControl(), this.element);\n    if (!control) return;\n    this.patchControl(control);\n\n    const controlChanges$ = merge(this.registerOnStatusChange(control), this.registerOnBlur(control));\n    controlChanges$.pipe(this.takeUntilDestroyed).subscribe(() => {\n      this.formFieldErrorService.setError(control.touched ? control.errors : null);\n    });\n    this.onFormSubmit$.pipe(this.takeUntilDestroyed).subscribe(() => control.markAsTouched({ onlySelf: true }));\n  }\n\n  public ngAfterViewInit(): void {\n    if (!(this.element.nativeElement instanceof HTMLTextAreaElement)) return;\n\n    const valueChanges$ = this.ngControl?.control?.valueChanges ?? EMPTY;\n    this.autoSize$\n      .pipe(\n        startWith(this.autoSize()),\n        switchMap((autoSize) => {\n          if (!autoSize) {\n            this.resetHeight();\n            return EMPTY;\n          }\n          return merge(fromEvent(this.element.nativeElement, 'input'), valueChanges$).pipe(startWith(undefined));\n        }),\n        this.takeUntilDestroyed,\n      )\n      .subscribe(() => this.resizeToContent());\n  }\n\n  public ngOnDestroy(): void {\n    this.formFieldService.removeControl();\n  }\n\n  public isAutoSizeTextarea(): boolean {\n    return this.autoSize() && this.element.nativeElement instanceof HTMLTextAreaElement;\n  }\n\n  private resizeToContent(): void {\n    const textarea = this.element.nativeElement as HTMLTextAreaElement;\n    textarea.style.height = 'auto';\n    textarea.style.height = textarea.value ? `${textarea.scrollHeight}px` : '';\n  }\n\n  private resetHeight(): void {\n    (this.element.nativeElement as HTMLTextAreaElement).style.height = '';\n  }\n\n  private registerOnBlur(control: AbstractControl): Observable<unknown> {\n    return fromEvent(this.element.nativeElement, 'focusout', { once: true }).pipe(\n      switchMap(() => (control.statusChanges ?? EMPTY).pipe(startWith(control.status))),\n    );\n  }\n\n  private registerOnStatusChange(control: AbstractControl): Observable<unknown> {\n    return merge(control.statusChanges ?? EMPTY, this.forceValidation$$);\n  }\n\n  private patchControl(control: AbstractControl): void {\n    const originalMarkAsTouched = control.markAsTouched;\n    control.markAsTouched = (...args) => {\n      originalMarkAsTouched?.apply(control, args);\n      this.forceValidation$$.next();\n    };\n  }\n}\n","import { Directive, inject, Input, OnInit, TemplateRef } from '@angular/core';\nimport { FormFieldErrorService } from '../services';\n\n/**\n * Directive for displaying custom error messages in a form field.\n */\n@Directive({\n  standalone: true,\n  selector: '[odxFormFieldError]',\n})\nexport class FormFieldErrorDirective implements OnInit {\n  private readonly formFieldErrorService = inject(FormFieldErrorService, { skipSelf: true });\n  private readonly template = inject(TemplateRef, { self: true });\n\n  /**\n   * The key used to identify the custom error message.\n   *\n   * @type {string | undefined}\n   */\n  @Input('odxFormFieldError')\n  public key?: string;\n\n  public ngOnInit() {\n    this.formFieldErrorService.registerCustomError(this.key, this.template);\n  }\n}\n","import { Directive, inject } from '@angular/core';\nimport { reactiveAttributeBinding } from '@odx/angular/utils';\nimport { FormFieldService } from '../form-field.service';\n\n/**\n * Directive for displaying a hint within a form field.\n */\n@Directive({\n  standalone: true,\n  selector: 'odx-form-field-hint',\n  host: {\n    '[class.odx-form-field__hint]': 'true',\n  },\n})\nexport class FormFieldHintDirective {\n  protected readonly formFieldService = inject(FormFieldService, { skipSelf: true });\n\n  constructor() {\n    reactiveAttributeBinding(inject(FormFieldService).controlHintId$, 'id');\n  }\n}\n","import { Directive } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n/**\n * Directive for the label element within a form field.\n */\n@CSSComponent('form-field-label')\n@Directive({\n  standalone: true,\n  selector: 'odx-form-field-label',\n})\nexport class FormFieldLabelDirective {\n  public readonly element = injectElement();\n}\n","import { Directive, effect, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ValidationErrors } from '@angular/forms';\nimport { FormField as SignalFormField, ValidationError as SignalValidationError } from '@angular/forms/signals';\nimport { FormFieldErrorService } from '../services';\nimport { FormDirective } from './form.directive';\n\nfunction mapSignalErrors(errors: readonly SignalValidationError.WithFieldTree[]): ValidationErrors | null {\n  if (!errors.length) return null;\n\n  return errors.reduce<ValidationErrors>((acc, error) => {\n    acc[error.kind] = error;\n    return acc;\n  }, {});\n}\n\n@Directive({\n  standalone: true,\n  selector: '[formField][odxFormFieldControl], odx-radio-group[formField], odx-toggle-button-group[formField], odx-checkbox[formField], odx-switch[formField]',\n})\nexport class SignalFormFieldStateSyncDirective {\n  private readonly signalFormField = inject(SignalFormField, { optional: true });\n  private readonly formFieldErrorService = inject(FormFieldErrorService, { optional: true });\n  private readonly form = inject(FormDirective, { optional: true, skipSelf: true });\n\n  constructor() {\n    if (!this.signalFormField) {\n      return;\n    }\n\n    const fieldState = this.signalFormField;\n    const errorService = this.formFieldErrorService;\n\n    if (errorService) {\n      effect(() => {\n        const state = fieldState.state();\n        const shouldShowError = state.touched() && state.invalid();\n\n        errorService.setError(shouldShowError ? mapSignalErrors(fieldState.errors()) : null);\n      });\n    }\n\n    this.form?.submit$.pipe(takeUntilDestroyed()).subscribe(() => fieldState.state()?.markAsTouched?.());\n  }\n}\n","export type FormFieldVariant = (typeof FormFieldVariant)[keyof typeof FormFieldVariant];\n\nexport const FormFieldVariant = {\n  FULL: 'full',\n  SIMPLE: 'simple',\n  HORIZONTAL: 'horizontal',\n} as const;\n","import { booleanAttribute, ChangeDetectionStrategy, Component, ContentChild, ElementRef, inject, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, DisabledController, ReadonlyController } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, reactiveClassBinding } from '@odx/angular/utils';\nimport { BehaviorSubject, combineLatest, map } from 'rxjs';\nimport { FormFieldInfoComponent, FormGroupComponent } from './components';\nimport { FormFieldLabelDirective } from './directives';\nimport { FormFieldService } from './form-field.service';\nimport { FormFieldVariant } from './models';\nimport { FormFieldErrorService } from './services';\n\n/**\n * Represents a form field component.\n */\n@CSSComponent('form-field')\n@Component({\n  standalone: true,\n  selector: 'odx-form-field',\n  imports: [CoreModule, FormFieldInfoComponent, FormFieldLabelDirective],\n  templateUrl: './form-field.component.html',\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  providers: [FormFieldService, FormFieldErrorService, DisabledController.connect(), ReadonlyController.connect()],\n})\nexport class FormFieldComponent {\n  protected readonly hasWarning$$ = new BehaviorSubject(false);\n\n  protected readonly formGroup = inject(FormGroupComponent, { optional: true, host: true });\n  protected readonly formFieldService = inject(FormFieldService, { self: true });\n  protected readonly formFieldErrorService = inject(FormFieldErrorService, { self: true });\n  public readonly element = injectElement();\n\n  /**\n   * The label directive associated with the form field component.\n   *\n   * @type {FormFieldLabelDirective | undefined}\n   */\n  @ContentChild(FormFieldLabelDirective)\n  public labelDirective?: FormFieldLabelDirective;\n\n  /**\n   * The control element of the form field component.\n   *\n   * @type {ElementRef<HTMLDivElement>}\n   */\n  @ViewChild('control')\n  public controlElement!: ElementRef<HTMLDivElement>;\n\n  /**\n   * The label of the form field component.\n   *\n   * @type {string | null}\n   * @default null\n   */\n  @Input()\n  public label?: string | null = null;\n\n  /**\n   * Indicates whether the form field should have a warning.\n   *\n   * @type {boolean}\n   */\n  @Input({ transform: booleanAttribute })\n  public set hasWarning(value: boolean) {\n    this.hasWarning$$.next(value);\n  }\n  public get hasWarning(): boolean {\n    return this.hasWarning$$.getValue();\n  }\n\n  /**\n   * The variant of the form field.\n   *\n   * @type {FormFieldVariant}\n   * @default FormFieldVariant.FULL\n   */\n  @CSSModifier()\n  @Input()\n  public variant: FormFieldVariant | null = FormFieldVariant.FULL;\n\n  /**\n   * Indicates whether the form field has a label.\n   *\n   * @type {boolean}\n   */\n  public get hasLabel(): boolean {\n    return !!(this.labelDirective || this.label);\n  }\n\n  constructor() {\n    const hasWarning$ = combineLatest([this.formFieldErrorService.error$, this.hasWarning$$]).pipe(map(([hasError, hasWarning]) => hasError && hasWarning));\n    reactiveClassBinding(this.formFieldService.isRequired$, 'odx-form-field--required');\n    reactiveClassBinding(this.formFieldService.isDisabled$, 'is-disabled');\n    reactiveClassBinding(this.formFieldService.isReadonly$, 'is-readonly');\n    reactiveClassBinding(this.formFieldErrorService.hasError$, 'has-error');\n    reactiveClassBinding(hasWarning$, 'has-warning');\n  }\n}\n","@if (hasLabel) {\n  @let controlId = formFieldService.controlId$ | async;\n\n  <label class=\"odx-form-field__label\" [attr.for]=\"controlId\" [attr.aria-owns]=\"controlId\">\n    @if (label) {\n      <odx-form-field-label>{{ label }}</odx-form-field-label>\n    } @else {\n      <ng-content select=\"odx-form-field-label\" />\n    }\n    @if (formFieldService.isRequired$ | async) {\n      <span class=\"odx-form-field__label-is-required\">*</span>\n    }\n  </label>\n}\n<div class=\"odx-form-field__inner\">\n  <div class=\"odx-form-field__control\" #control>\n    <div class=\"odx-form-field__prefix\">\n      <ng-content select=\"[odxFormFieldPrefix]\" />\n    </div>\n    <ng-content />\n    <div class=\"odx-form-field__suffix\">\n      <ng-content select=\"[odxFormFieldSuffix]\" />\n    </div>\n  </div>\n  @if (!formGroup) {\n    <odx-form-field-info [error]=\"formFieldErrorService.error$ | async\">\n      <ng-content select=\"odx-form-field-hint\" />\n    </odx-form-field-info>\n  }\n</div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { FormGroupComponent } from './components';\nimport {\n  FormDirective,\n  FormFieldControlDirective,\n  FormFieldErrorDirective,\n  FormFieldHintDirective,\n  FormFieldLabelDirective,\n  SignalFormFieldStateSyncDirective,\n} from './directives';\nimport { FormFieldComponent } from './form-field.component';\n\nconst modules = [\n  FormFieldComponent,\n  FormGroupComponent,\n  FormDirective,\n  FormFieldControlDirective,\n  FormFieldErrorDirective,\n  FormFieldHintDirective,\n  FormFieldLabelDirective,\n  SignalFormFieldStateSyncDirective,\n];\n\n@NgModule({\n  imports: modules,\n  exports: [CoreModule, ...modules],\n})\nexport class FormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["SignalFormField"],"mappings":";;;;;;;;;;;;;AAaA;;;;;;;;;;;AAWG;AAEG,MAAO,gBAAiB,SAAQ,UAAU,CAAA;AADhD,IAAA,WAAA,GAAA;;AAEmB,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE;AAChD,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE;AAChD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAsB,IAAI,CAAC;AAE3E;;;;;AAKG;QACa,IAAA,CAAA,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAE9F;;;;;AAKG;QACa,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAC7C,GAAG,CAAC,CAAC,OA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