{"version":3,"file":"daffodil-design-form-field.mjs","names":[],"sources":["../../../libs/design/form-field/src/action/action.directive.ts","../../../libs/design/form-field/src/form-field-control.ts","../../../libs/design/form-field/src/helpers/appearance.ts","../../../libs/design/form-field/src/helpers/control-types.ts","../../../libs/design/form-field/src/form-field/form-field.component.ts","../../../libs/design/form-field/src/form-field/form-field.component.html","../../../libs/design/form-field/src/form-field.module.ts","../../../libs/design/form-field/src/form-field.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * DaffFormFieldActionDirective marks an element, typically a button, as an action attached to a form control inside `DaffFormFieldComponent`.\n */\n@Directive({\n  selector: '[daffFormFieldAction]',\n  host: {\n    class: 'daff-form-field-action',\n  },\n})\nexport class DaffFormFieldActionDirective {}\n","import { NgControl } from '@angular/forms';\nimport {\n  BehaviorSubject,\n  Observable,\n} from 'rxjs';\n\nimport { DaffFormFieldState } from './form-field-state';\nimport { DaffFormFieldControlTypesEnum } from './helpers/control-types';\n\n/**\n * Form controls must extend this class to be used inside `DaffFormFieldComponent`.\n *\n * > **Note**\n * > The control is defined as an abstract class instead of an interface to support Angular's dependency injection. Interfaces are erased during TypeScript compilation and cannot be used as DI tokens.\n * >\n * > By using an abstract class, the Angular DI container can match the class token for injection.\n */\nexport abstract class DaffFormFieldControl<T> {\n  /**\n   * The type of the control. Used to apply control-specific styling or behavior.\n   */\n  abstract readonly controlType?: DaffFormFieldControlTypesEnum;\n\n  /**\n   * Whether the control supports automatic label behavior.\n   * When `true`, the form field will associate the label with the control using `for` and `id` attributes.\n   *\n   * Defaults to `true`.\n   */\n  readonly supportsAutoLabelling?: boolean = true;\n\n  /**\n   * Whether the control currently has focus.\n   */\n  abstract readonly focused: boolean;\n\n  /**\n   * Whether the control is required for form validation.\n   */\n  abstract readonly required: boolean;\n\n  /**\n   * Whether the control is disabled.\n   */\n  abstract readonly disabled: boolean;\n\n  /**\n   * The unique identifier for the control element.\n   */\n  readonly id?: string;\n\n  /**\n   * Whether the label should be in the raised position.\n   * By default, matches the focused state.\n   */\n  get raised() {\n    return this.focused;\n  };\n\n  /**\n   * Whether the control is currently open. Only relevant for controls\n   * that expand, like dropdowns.\n   *\n   * Defaults to `false`.\n   */\n  get opened(): boolean {\n    return false;\n  };\n\n  /**\n   * Sets focus on the control.\n   *\n   * @param event - Optional event that triggers the focus.\n   */\n  abstract focus(event?: Event): void;\n\n  /**\n   * The current value of the control.\n   */\n  abstract readonly value: T;\n\n  constructor(public ngControl: NgControl | null) {}\n\n  /**\n   * Computes the current state of the form field control.\n   * Combines control properties and form validation state.\n   */\n  get state(): DaffFormFieldState {\n    return {\n      focused: this.focused,\n      filled: !!this.value,\n      disabled: this.ngControl?.disabled ?? this.disabled,\n      error: this.ngControl?.invalid && (this.ngControl?.dirty || this.ngControl?.touched),\n      valid: this.ngControl?.valid && this.ngControl?.dirty,\n    };\n  }\n\n  _stateChanges = new BehaviorSubject({\n    focused: false,\n    filled: false,\n    disabled: false,\n    error: false,\n    valid: true,\n  });\n\n  /**\n   * Observable stream of state changes for the form field control.\n   */\n  stateChanges: Observable<DaffFormFieldState>;\n\n  /**\n   * Emits the current state.\n   */\n  emitState(deferred = false) {\n    if(deferred) {\n      Promise.resolve().then(() => {\n        this._stateChanges.next(this.state);\n      });\n      return;\n    }\n\n    this._stateChanges.next(this.state);\n  }\n};\n","export type DaffFormFieldAppearance = 'fluid' | 'fixed';\n\nexport enum DaffFormFieldAppearanceEnum {\n  Fluid = 'fluid',\n  Fixed = 'fixed',\n}\n","/**\n * The types of controls that can be used inside a form field.\n * - 'input': A control that the user types into, like an input or a textarea.\n * - 'dropdown': A control that opens a list of options, like a select.\n */\nexport enum DaffFormFieldControlTypesEnum {\n  Input = 'input',\n  Dropdown = 'dropdown',\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n  Component,\n  ViewEncapsulation,\n  AfterContentInit,\n  AfterContentChecked,\n  ChangeDetectorRef,\n  ChangeDetectionStrategy,\n  AfterViewInit,\n  isDevMode,\n  ElementRef,\n  input,\n  contentChild,\n  viewChild,\n  signal,\n  computed,\n} from '@angular/core';\n\nimport {\n  DaffPrefixDirective,\n  DaffSuffixDirective,\n  DaffSkeletonableDirective,\n} from '@daffodil/design';\nimport {\n  DaffErrorMessageComponent,\n  DaffHintComponent,\n  DaffFormFieldLabelDirective,\n} from '@daffodil/design/form';\n\nimport { DaffFormFieldActionDirective } from '../action/action.directive';\nimport { DaffFormFieldControl } from '../form-field-control';\nimport {\n  DaffFormFieldAppearance,\n  DaffFormFieldAppearanceEnum,\n} from '../helpers/appearance';\nimport { DaffFormFieldControlTypesEnum } from '../helpers/control-types';\n\nlet daffFormFieldId = 0;\n\nexport const DaffFormFieldMissingControlMessage = 'A DaffFormFieldComponent must contain a DaffFormFieldControl';\n\n/**\n * DaffFormFieldComponent is a wrapping component that provides consistent styling and behavior for form control elements.\n */\n@Component({\n  selector: 'daff-form-field',\n  templateUrl: './form-field.component.html',\n  styleUrl: './form-field.component.scss',\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NgTemplateOutlet,\n  ],\n  host: {\n    class: 'daff-form-field',\n    '[class.is-dropdown]': 'isDropdown()',\n    '[class.has-prefix]': '_prefix()',\n    '[class.has-suffix]': '_suffix()',\n    '[class.has-action]': '_action()',\n    '[class.daff-error]': 'isError()',\n    '[class.daff-disabled]': 'isDisabled()',\n    '[class.daff-valid]': 'isValid()',\n    '[class.daff-focused]': 'isFocused',\n    '[class.daff-raised]': 'isRaised',\n    '[class.daff-open]': 'isOpen',\n    '[class.fluid]': 'appearance() === \"fluid\"',\n    '[class.fixed]': 'appearance() === \"fixed\"',\n  },\n  hostDirectives: [\n    {\n      directive: DaffSkeletonableDirective,\n      inputs: ['skeleton'],\n    },\n  ],\n})\nexport class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked, AfterViewInit {\n  /** @docs-private */\n  isDropdown = computed(() => this._control()?.controlType === DaffFormFieldControlTypesEnum.Dropdown);\n\n  constructor(\n    private cd: ChangeDetectorRef,\n    public elementRef: ElementRef,\n  ) {}\n\n  /**\n   * @docs-private\n   *\n   * The element that wraps the form field's control. Useful as an anchor for\n   * controls that need to position content relative to the control itself,\n   * rather than the entire form field.\n   */\n  _wrapper = viewChild<ElementRef<HTMLElement>>('wrapper');\n\n  /** @docs-private */\n  _prefix = contentChild(DaffPrefixDirective);\n\n  /** @docs-private */\n  _suffix = contentChild(DaffSuffixDirective);\n\n  /**\n   * @docs-private\n   *\n   * The child form control that the form field manages.\n   */\n  _control = contentChild(DaffFormFieldControl);\n\n  /**\n   * @docs-private\n   */\n  _formFieldLabelDirective = contentChild(DaffFormFieldLabelDirective);\n\n  /**\n   * @docs-private\n   */\n  _action = contentChild(DaffFormFieldActionDirective);\n\n  /**\n   * @docs-private\n   */\n  private _hint = contentChild(DaffHintComponent);\n\n  /**\n   * @docs-private\n   */\n  private _error = contentChild(DaffErrorMessageComponent);\n\n  /**\n   * @docs-private\n   *\n   * Tracking property to keep a record of whether or not the\n   * form field should be marked as error.\n   */\n  isError = signal(false);\n\n  /**\n   * @docs-private\n   *\n   * Tracking property to keep a record of whether or not the\n   * form field contains any user input.\n   */\n  isFilled = signal(false);\n\n  /**\n   * @docs-private\n   *\n   * Tracking property to keep a record of whether or not the\n   * form field should be marked as disabled.\n   */\n  isDisabled = signal(false);\n\n  /**\n   * @docs-private\n   *\n   * Tracking property to keep a record of whether or not the\n   * form field should be marked as valid.\n   */\n  isValid = signal(false);\n\n  /**\n   * @docs-private\n   *\n   * Determines whether or not the form field should display its focused state.\n   */\n  get isFocused() {\n    return this._control()?.focused;\n  }\n\n  /**\n   * @docs-private\n   */\n  get isRaised() {\n    return this._control()?.raised || this.isFilled();\n  }\n\n  /**\n   * @docs-private\n   *\n   * Determines whether or not the form field should display its open state.\n   */\n  get isOpen() {\n    return this._control()?.opened;\n  }\n\n  /**\n   * The appearance of the form field. Defaults to `fluid`.\n   */\n  appearance = input(DaffFormFieldAppearanceEnum.Fluid, {\n    transform: (value: DaffFormFieldAppearance | '' | null | undefined) =>\n      value || DaffFormFieldAppearanceEnum.Fluid,\n  });\n\n  /**\n   * @docs-private\n   */\n  isFixed = computed(() => this.appearance() === DaffFormFieldAppearanceEnum.Fixed);\n\n  /**\n   * The unique id of the form field. Defaults to an autogenerated value. When using this,\n   * it's your responsibility to ensure that the id for each form field is unique.\n   *\n   * It gets assigned to the `for` attribute on the `<label>` inside of the form field.\n   */\n  id = input('daff-form-field-' + ++daffFormFieldId);\n\n  /**\n   * @docs-private\n   */\n  hasHint = computed(() => !!this._hint());\n\n  /**\n   * @docs-private\n   */\n  hintId = computed(() => this.id() + '-hint');\n\n  /**\n   * @docs-private\n   */\n  hasErrorMessage = computed(() => !!this._error());\n\n  /**\n   * @docs-private\n   */\n  errorMessageId = computed(() => this.id() + '-error');\n\n  /**\n   * @docs-private\n   */\n  autoLabelId = computed(() => this._control()?.supportsAutoLabelling ? this.id() : null);\n\n  /**\n   * @docs-private\n   */\n  customId = computed(() => this._control()?.supportsAutoLabelling ? null : this.id());\n\n  /**\n   * @docs-private\n   *\n   * Displays a console warning if the `DaffFormFieldLabelDirective` is not used on controls (native HTML control elements) that support auto-labelling.\n   */\n  ngAfterViewInit() {\n    if (isDevMode()) {\n      if (!this._formFieldLabelDirective() && this._control()?.supportsAutoLabelling && !(this._control()?.id)) {\n        console.warn(\n          `Accessibility Warning: The form field with id \"${this.id()}\" uses a control that supports auto-labelling, but no <daff-form-label> component was found.\\n\\n` +\n          `1. Add a <daff-form-label> component (recommended)\\n` +\n          `2. OR manually set an 'id' on your input and matching 'for' attribute on your <label>.\\n\\n` +\n          `Why this matters: Proper labelling ensures assistive technologies can identify form fields correctly.`,\n        );\n      }\n\n      if(this._suffix() && this._action() && !this.isFixed()) {\n        console.warn(\n          `UI consideration for form field with id \"${this.id()}\":\\n\\n` + `In a fluid appearance, avoid using suffix alongside an action.`,\n        );\n      };\n    }\n  }\n\n  /**\n   * Validates whether or not the form field is in a \"usable\" state.\n   */\n  private _validateFormControl() {\n    if (!this._control()) {\n      throw new Error(DaffFormFieldMissingControlMessage);\n    }\n  }\n\n  /**\n   * @docs-private\n   *\n   * Lifecycle hook to verify that the form field has an acceptable\n   * child control instance. Mostly useful for development-time\n   * validation of usage.\n   */\n  ngAfterContentInit() {\n    this._validateFormControl();\n\n    this._control()?.stateChanges?.subscribe(({ filled, disabled, error, valid }) => {\n      this.isFilled.set(filled);\n      this.isError.set(error);\n      this.isDisabled.set(disabled);\n      this.isValid.set(valid);\n\n      this.cd.markForCheck();\n    });\n  }\n\n  /**\n   * @docs-private\n   *\n   * Lifecycle hook to verify that the form field has an acceptable\n   * child control instance. Mostly useful for development-time\n   * validation of usage.\n   */\n  ngAfterContentChecked() {\n    this._validateFormControl();\n  }\n}\n","<ng-content />\n\n@if (isFixed()) {\n  <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n}\n<div class=\"daff-form-field__wrapper\" #wrapper>\n\t<div class=\"daff-form-field__control\">\n\t\t@if (_prefix()) {\n\t\t\t<ng-content select=\"[daffPrefix]\"></ng-content>\n\t\t}\n\t\t<div class=\"daff-form-field__inner\">\n\t\t\t@if (!isFixed()) {\n\t\t\t\t<ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n\t\t\t}\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (_suffix()) {\n\t\t\t<ng-content select=\"[daffSuffix]\"></ng-content>\n\t\t}\n\t\t@if (_action() && !isFixed()) {\n\t\t\t<ng-container *ngTemplateOutlet=\"actionTemplate\"></ng-container>\n\t\t}\n\t</div>\n\t@if ((_action() && isFixed())) {\n\t\t<ng-container *ngTemplateOutlet=\"actionTemplate\"></ng-container>\n\t}\n</div>\n@if (hasHint()) {\n\t<div\n\t\tclass=\"daff-form-field__hint-wrapper\"\n\t\t[id]=\"hintId()\">\n\t\t<ng-content select=\"daff-hint\"></ng-content>\n\t</div>\n}\n@if (hasErrorMessage()) {\n\t<div\n\t\tclass=\"daff-form-field__error-wrapper\"\n\t\t[id]=\"errorMessageId()\">\n\t\t<ng-content select=\"daff-error-message\"></ng-content>\n\t</div>\n}\n\n<ng-template #actionTemplate>\n\t<ng-content select=\"[daffFormFieldAction]\"></ng-content>\n</ng-template>\n\n<ng-template #labelTemplate>\n  @if (_formFieldLabelDirective()) {\n    <label class=\"daff-form-field__label\"\n      [attr.for]=\"autoLabelId()\"\n      [attr.id]=\"customId()\">\n      <ng-content select=\"daff-form-label\"></ng-content>\n\t\t\t@if (_control().required) {\n\t\t\t<span aria-hidden=\"true\">*</span>\n\t\t\t}\n    </label>\n  } @else {\n    <ng-content select=\"label\"></ng-content>\n  }\n</ng-template>","import { NgModule } from '@angular/core';\n\nimport {\n  DaffErrorMessageComponent,\n  DaffFormFieldLabelDirective,\n  DaffHintComponent,\n} from '@daffodil/design/form';\n\nimport { DaffFormFieldComponent } from './form-field/form-field.component';\n\n/**\n * @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n  imports: [\n    DaffFormFieldComponent,\n    DaffErrorMessageComponent,\n    DaffHintComponent,\n    DaffFormFieldLabelDirective,\n  ],\n  exports: [\n    DaffFormFieldComponent,\n    DaffErrorMessageComponent,\n    DaffHintComponent,\n    DaffFormFieldLabelDirective,\n  ],\n})\nexport class DaffFormFieldModule { }\n","import {\n  DaffPrefixDirective,\n  DaffSuffixDirective,\n} from '@daffodil/design';\nimport {\n  DaffErrorMessageComponent,\n  DaffFormFieldLabelDirective,\n  DaffHintComponent,\n} from '@daffodil/design/form';\n\nimport { DaffFormFieldActionDirective } from './action/action.directive';\nimport { DaffFormFieldComponent } from './form-field/form-field.component';\n\n/**\n * @docs-private\n */\nexport const DAFF_FORM_FIELD_COMPONENTS = <const> [\n  DaffFormFieldComponent,\n  DaffPrefixDirective,\n  DaffSuffixDirective,\n  DaffFormFieldActionDirective,\n  DaffHintComponent,\n  DaffFormFieldLabelDirective,\n  DaffErrorMessageComponent,\n];\n"],"m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