{"version":3,"file":"siemens-element-ng-form.mjs","sources":["../../../../projects/element-ng/form/si-form-container/si-form-container.component.ts","../../../../projects/element-ng/form/si-form-container/si-form-container.component.html","../../../../projects/element-ng/form/form-fieldset/si-form-fieldset.component.ts","../../../../projects/element-ng/form/form-fieldset/si-form-fieldset.component.html","../../../../projects/element-ng/form/si-form-item.control.ts","../../../../projects/element-ng/form/si-form-validation-error.service.ts","../../../../projects/element-ng/form/si-form-field/si-form-field.component.ts","../../../../projects/element-ng/form/si-form-field/si-form-field.component.html","../../../../projects/element-ng/form/si-form-field/si-form-field.provider.ts","../../../../projects/element-ng/form/si-form-item/si-form-field-native.control.ts","../../../../projects/element-ng/form/si-form-item/si-form-item.component.ts","../../../../projects/element-ng/form/si-form-item/si-form-item.component.html","../../../../projects/element-ng/form/si-form-validation-tooltip/si-form-validation-tooltip.component.ts","../../../../projects/element-ng/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.ts","../../../../projects/element-ng/form/si-form-validation-error.provider.ts","../../../../projects/element-ng/form/si-form.module.ts","../../../../projects/element-ng/form/index.ts","../../../../projects/element-ng/form/siemens-element-ng-form.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n  booleanAttribute,\n  ChangeDetectionStrategy,\n  Component,\n  computed,\n  inject,\n  input\n} from '@angular/core';\nimport { AbstractControl, FormGroup } from '@angular/forms';\nimport { Breakpoints, SiResponsiveContainerDirective } from '@siemens/element-ng/resize-observer';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\n\nexport interface SiFormValidationError {\n  controlName?: string;\n  controlNameTranslationKey?: string;\n  errorCode: TranslatableString;\n  errorCodeTranslationKey?: string;\n  errorParams?: any;\n}\n\n/**\n * @deprecated This component should no longer be used.\n *\n * When providing a form wide error mapper, use the {@link provideFormValidationErrorMapper}.\n * ```ts\n * import { provideFormValidationErrorMapper } form '@siemens/element-ng/forms'\n *\n * @Component({\n *   template: `<form>...</form>`\n *   providers: [provideFormValidationErrorMapper({\n *     'name.required': 'CUSTOM_REQUIRED_ERROR'\n *   })]\n * })\n * class MyFormComponent {}\n * ```\n *\n * When using the column layout, use the `form-col-layout` classes.\n *\n * ```html\n * <!-- Responsive column layout -->\n * <form class=\"responsive-form-col-layout\">...</form>\n * <!-- Always column layout -->\n * <form class=\"form-col-layout\">...</form>\n * ```\n *\n * For a custom breakpoint use the SCSS mixin:\n *\n * ```scss\n * @use '@siemens/element-theme/src/styles/bootstrap/mixins/form-layout';\n *\n * // Custom responsive breakpoint\n * .custom-form-col-layout {\n *   // Above 400px the column layout is used\n *   @include form-layout.responsive-form-col-layout(400px);\n * }\n * ```\n */\n@Component({\n  selector: 'si-form-container',\n  imports: [NgTemplateOutlet, SiResponsiveContainerDirective],\n  templateUrl: './si-form-container.component.html',\n  styleUrl: './si-form-container.component.scss',\n  changeDetection: ChangeDetectionStrategy.Eager,\n  host: {\n    '[style.--si-form-label-width]': 'labelWidth()'\n  }\n})\nexport class SiFormContainerComponent<TControl extends { [K in keyof TControl]: AbstractControl }> {\n  /**\n   * Set the form entity to the container to enable the overall form validation on in\n   * the form container edit panel.\n   */\n  readonly form = input<FormGroup<TControl>>();\n\n  /**\n   * A form container in readonly mode is only displaying the form content without ability\n   * to change it. The edit panel with typically save and cancel buttons is hidden. Set\n   * to true to display the edit panel.\n   *\n   * @defaultValue false\n   */\n  readonly readonly = input(false, { transform: booleanAttribute });\n\n  /**\n   * The container hosts the form within a siResizeContainer to configure the breakpoint for\n   * different screen sizes. Optionally, change the container breakpoints with the contentContainerBreakpoints\n   * input.\n   */\n  readonly contentContainerBreakpoints = input<Breakpoints>();\n\n  /**\n   * In some scenarios, one may not want the form container to be responsible for the layout relevant\n   * `si-container-[xs|...]` classes, but let this be done by a different, nested component, e.g. by a\n   * group box. In these cases, the property should be set to true.\n   *\n   * @defaultValue false\n   */\n  readonly disableContainerBreakpoints = input(false, { transform: booleanAttribute });\n\n  /**\n   * Every validation error has an errorCode. This map holds translate keys for error codes. The keys can\n   * be used to display a translated message for each validation error. The defaults old english readable\n   * key defaults for the Angular standard validators of the `Validators` class like `min`, `max` or `required`.\n   *\n   * Use the input to set your own translate keys for the form validators you need.\n   */\n  readonly errorCodeTranslateKeyMap = input<\n    Map<string, string> | SiFormValidationErrorMapper | undefined\n  >();\n\n  /**\n   * A map the maps from control names of the form to their translate keys.\n   * The initial map is empty and the user is responsible to add the required\n   * translate keys.\n   *\n   * @defaultValue\n   * ```\n   * new Map<string, string>()\n   * ```\n   */\n  readonly controlNameTranslateKeyMap = input(new Map<string, string>());\n\n  /**\n   * Disables the automatic error printing in all nested {@link SiFormItemComponent}. Error printing will be enabled by default in v46.\n   *\n   * @defaultValue false\n   */\n  readonly disableErrorPrinting = input(false, { transform: booleanAttribute });\n\n  /**\n   * A custom width value to be applied to all labels.\n   *\n   * @example labelWidth=\"100px\".\n   */\n  readonly labelWidth = input<string>();\n\n  protected hasParentContainer = !!inject(SiFormContainerComponent, {\n    optional: true,\n    skipSelf: true\n  });\n\n  /** @internal */\n  readonly formErrorMapper = computed(() => {\n    const map = this.errorCodeTranslateKeyMap();\n\n    let customMapper: SiFormValidationErrorMapper | undefined;\n    if (map instanceof Map) {\n      customMapper = Object.fromEntries(map.entries());\n    } else if (map) {\n      customMapper = map;\n    }\n\n    return {\n      ...customMapper\n    };\n  });\n\n  /**\n   * Indicates whether the user interacted with the form.\n   * @returns `true`, if the user selected at least one form element and\n   * [blurred]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event} by losing focus again\n   * (e.g. by setting focus on another element), or by editing the content of a form element.\n   * Otherwise `false`.\n   */\n  get userInteractedWithForm(): boolean {\n    const form = this.form();\n    return !!form && (form.dirty || form.touched);\n  }\n\n  /**\n   * Indicates whether content editor message shall be styled as success.\n   * @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and\n   * the form is valid.\n   */\n  get validFormContainerMessage(): boolean {\n    return this.userInteractedWithForm && this.form()!.status === 'VALID';\n  }\n\n  /**\n   * Indicates whether the content editor message shall be styled as warning.\n   * @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and\n   * the form is invalid.\n   */\n  get invalidFormContainerMessage(): boolean {\n    return this.userInteractedWithForm && this.form()!.status === 'INVALID';\n  }\n\n  protected getControlNameTranslateKey(controlName: string): string | undefined {\n    const controlNameTranslateKeyMap = this.controlNameTranslateKeyMap();\n    if (!controlNameTranslateKeyMap) {\n      return undefined;\n    }\n    return controlNameTranslateKeyMap.get(controlName) ?? controlName;\n  }\n}\n","<div class=\"d-flex flex-column align-content-stretch flex-grow-1 flex-shrink-1\">\n  @if (disableContainerBreakpoints() || hasParentContainer) {\n    <div class=\"flex-grow-1 flex-shrink-1\">\n      <ng-container *ngTemplateOutlet=\"contentTemplate\" />\n    </div>\n  } @else {\n    <div\n      class=\"flex-grow-1 flex-shrink-1\"\n      siResponsiveContainer\n      [breakpoints]=\"contentContainerBreakpoints()\"\n    >\n      <ng-container *ngTemplateOutlet=\"contentTemplate\" />\n    </div>\n  }\n\n  @if (!readonly()) {\n    <div class=\"d-flex flex-row flex-nowrap flex-grow-0 flex-shrink-0 py-4\">\n      <div\n        class=\"d-flex flex-grow-1 flex-shrink-1 justify-content-end text-end overflow-hidden mx-6 my-auto\"\n        [class.text-success]=\"validFormContainerMessage\"\n        [class.text-danger]=\"invalidFormContainerMessage\"\n      >\n        <ng-content select=\"[si-form-container-message]\" />\n      </div>\n\n      <div class=\"m-auto flex-grow-0 flex-shrink-0\">\n        <ng-content select=\"[si-form-container-buttons]\" />\n      </div>\n    </div>\n  }\n</div>\n\n<ng-template #contentTemplate>\n  <ng-content select=\"[si-form-container-content]\" />\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, computed, input, signal } from '@angular/core';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormFieldsetControl } from './si-form-fieldset.control';\n\n@Component({\n  selector: 'si-form-fieldset',\n  imports: [SiTranslatePipe],\n  templateUrl: './si-form-fieldset.component.html',\n  styleUrl: '../si-form.shared.scss',\n  host: {\n    role: 'group',\n    class: 'si-form-fieldset',\n    '[style.--si-form-label-width]': 'labelWidth()',\n    '[attr.aria-labelledby]': 'labelId'\n  }\n})\nexport class SiFormFieldsetComponent {\n  private static labelIdCounter = 0;\n\n  /** The label for the entire fieldset. */\n  readonly label = input.required<TranslatableString>();\n\n  /** Overrides the parent label width. */\n  readonly labelWidth = input<string>();\n\n  /**\n   * Adds a required marker to the label\n   *\n   * @defaultValue false\n   */\n  readonly required = input(false, { transform: booleanAttribute });\n\n  /**\n   * Switches all child inputs to inline mode\n   *\n   * @defaultValue false\n   */\n  readonly inline = input(false, { transform: booleanAttribute });\n\n  private readonly formItems = signal<SiFormFieldsetControl[]>([]);\n\n  /** @internal */\n  readonly hasOnlyRadios = computed(() => {\n    // Check if the fieldset only contains radio buttons.\n    // Reactive and signal form radios share a control, while template-driven radios share a name.\n    const items = this.formItems();\n    if (items.length > 1) {\n      const first = items[0].control();\n      const firstRadioGroupName = items[0].radioGroupName?.();\n      return (\n        (first != null && items.every(item => item.control() === first)) ||\n        (firstRadioGroupName != null &&\n          items.every(item => item.radioGroupName?.() === firstRadioGroupName))\n      );\n    }\n\n    return false;\n  });\n\n  protected readonly errors = computed(() => this.formItems()[0].errors());\n  protected readonly showErrors = computed(\n    () => this.formItems().some(item => item.touched()) && this.errors().length > 0\n  );\n  protected readonly isRequired = computed(\n    () =>\n      this.required() || (this.hasOnlyRadios() && this.formItems().every(item => item.required()))\n  );\n\n  protected readonly labelId = `__si-form-fieldset-label-${SiFormFieldsetComponent.labelIdCounter++}`;\n\n  /** @internal */\n  registerControl(item: SiFormFieldsetControl): void {\n    this.formItems.update(items => [...items, item]);\n  }\n\n  /** @internal */\n  unregisterControl(item: SiFormFieldsetControl): void {\n    this.formItems.update(items => items.filter(i => i !== item));\n  }\n}\n","<div class=\"form-label d-flex gap-2\">\n  <span [class.required]=\"isRequired()\" [id]=\"labelId\">{{ label() | translate }}</span>\n  <ng-content select=\"[si-help-button]\" />\n</div>\n<div>\n  <div [class]=\"inline() ? '' : 'd-flex flex-column gap-2 mb-2'\">\n    <ng-content />\n  </div>\n  @if (hasOnlyRadios()) {\n    <div class=\"invalid-feedback\" [class.d-block]=\"showErrors()\">\n      @for (error of errors(); track error) {\n        <div>\n          {{ error.message | translate: error.params }}\n        </div>\n      }\n    </div>\n  }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Signal } from '@angular/core';\n\nexport const SI_FORM_ITEM_CONTROL = new InjectionToken<SiFormItemControl>('si.form-item.control');\n\n/**\n * Common interface for form item controls.\n * Controls that should be connected to {@link SiFormItemComponent} must implement this interface\n * and must be provided using the {@link SI_FORM_ITEM_CONTROL} token.\n */\nexport interface SiFormItemControl {\n  /** The actual id of the control that should be used in the `for` attribute of a label. */\n  readonly id?: string | Signal<string | undefined>;\n\n  /**\n   * ID that should be assigned to the label element inside the {@link SiFormItemComponent}.\n   *\n   * If the target control is not of type <i>input</i>, <i>select</i> or <i>button</i>, it cannot be referenced by a label.\n   * Instead, aria-labelledby must be used to create a reference to a label.\n   * In such a case, an implementation of {@link SiFormItemControl} must provide the id of the label in {@link labelledby}.\n   * {@link SiFormItemComponent} will apply the id to the label\n   * so that it can be used inside the control to reference it in the aria-labelledby attribute.\n   */\n  readonly labelledby?: string | Signal<string | undefined> | null;\n\n  /**\n   * Generated ID that the {@link SiFormItemComponent} will assign to the element containing the error messages.\n   * Implementations of {@link SiFormItemControl} must generate this ID\n   * and assign it to the `aria-describedby` attribute of their focusable elements.\n   */\n  readonly errormessageId: string | Signal<string>;\n\n  /** If the control is meant to be used a checkbox. This affects the label positioning. */\n  readonly isFormCheck?: boolean;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\nimport type { FieldState } from '@angular/forms/signals';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormError } from './si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\n\n/**\n * Creates the map of default error resolver.\n * This is a function as $localize requires an injection context.\n *\n * @internal\n */\nexport const buildDefaults = (): SiFormValidationErrorMapper => ({\n  // Phone number specific\n  notSupportedPhoneNumberCountry: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.PHONE_COUNTRY:Unsupported country/region code`\n  ),\n  invalidPhoneNumberFormat: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.INVALID_PHONE:Invalid phone number`\n  ),\n  // IP address specific\n  ipv4Address: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.IPV4:Invalid IPv4 address`),\n  ipv6Address: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.IPV6:Invalid IPv6 address`),\n  // Min / max\n  max: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX:Max. {{max}}`),\n  min: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN:Min. {{min}}`),\n  maxlength: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_LENGTH:Max. {{requiredLength}} characters`\n  ),\n  minlength: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_LENGTH:Min. {{requiredLength}} characters`\n  ),\n  // Date specific\n  dateFormat: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT:Invalid date`),\n  endBeforeStart: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.END_BEFORE_START:End date before start date`\n  ),\n  invalidEndDateFormat: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT_END:Invalid end date`\n  ),\n  invalidStartDateFormat: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT_START:Invalid start date`\n  ),\n  maxDate: t(\n    () =>\n      $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_DATE:Date up to and including {{maxString}} required`\n  ),\n  minDate: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_DATE:Date from {{minString}} required`),\n  maxTime: t(\n    () =>\n      $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_TIME:Time up to and including {{maxString}} required`\n  ),\n  minTime: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_TIME:Time from {{minString}} required`),\n  rangeAfterMaxDate: t(\n    () =>\n      $localize`:@@SI_FORM_CONTAINER.ERROR.RANGE_AFTER_MAX_DATE:Period up to and including {{maxString}} required`\n  ),\n  rangeBeforeMinDate: t(\n    () =>\n      $localize`:@@SI_FORM_CONTAINER.ERROR.RANGE_BEFORE_MIN_DATE:Period from {{minString}} required`\n  ),\n  // Time units\n  hours: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.HOURS:Integer between 0 and {{max}} required`\n  ),\n  minutes: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MINUTES:Integer between 0 and 59 required`),\n  seconds: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.SECONDS:Integer between 0 and 59 required`),\n  milliseconds: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.MILLISECONDS:Integer between 0 and 999 required`\n  ),\n  // Various\n  email: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.EMAIL:Invalid email address`),\n  numberFormat: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.NUMBER_FORMAT:Number required`),\n  pattern: t(\n    () => $localize`:@@SI_FORM_CONTAINER.ERROR.PATTERN:Required value format not fulfilled`\n  ),\n  required: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.REQUIRED:Required`),\n  requiredTrue: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.REQUIRED_TRUE:Required`)\n});\n\n/**\n * A service to resolve the validation error of an Angular control to a message or translation key.\n *\n * It can be provided using {@link provideFormValidationErrorMapper}.\n * If not provided, there will be a default instance in the root injector using only the default keys.\n *\n * There can be multiple instances to support providing in a lazy loaded module.\n * If the service cannot find a message, it will try to resolve it using a parent service if available.\n *\n * @internal\n */\n@Injectable({\n  providedIn: 'root',\n  useFactory: () => new SiFormValidationErrorService(buildDefaults())\n})\nexport class SiFormValidationErrorService {\n  private readonly parent = inject(SiFormValidationErrorService, {\n    optional: true,\n    skipSelf: true\n  });\n\n  // eslint-disable-next-line @angular-eslint/prefer-inject\n  constructor(private errorMapper: SiFormValidationErrorMapper) {}\n\n  /**\n   * Resolves validation errors for Angular signal forms.\n   *\n   * If the validation error has no message associated, the resolution flow of {@link resolveErrors} is followed.\n   *\n   * @param state - the fieldState of the formfield.\n   */\n  resolveFormFieldErrors(state: FieldState<any>): SiFormError[] {\n    return state.errors().map(error => {\n      const { message, kind, fieldTree, formField, ...rawErrorParams } = error;\n      const errorParams = this.getErrorParams(rawErrorParams);\n      if (!message) {\n        return this.resolveError(kind, state.name(), errorParams);\n      } else {\n        return { message, key: kind, params: errorParams };\n      }\n    });\n  }\n\n  /** Returns legacy reactive-form parameters stored in `context`, or the signal-form error. */\n  private getErrorParams(error: object): unknown {\n    const { context } = error as { context?: unknown };\n    return context ?? error;\n  }\n\n  /**\n   * Resolves the provided form errors to a list of {@link SiFormError}.\n   * To resolution order is:\n   * 1. componentMapper\n   * 2. containerMapper using the controlName\n   * 3. containerMapper without controlName\n   * 4. errorMapper of the service using the controlName\n   * 5. errorMapper of the service\n   * 6: parent service\n   */\n  resolveErrors(\n    controlName: string | number | null | undefined,\n    errors: ValidationErrors | null,\n    componentMapper?: SiFormValidationErrorMapper,\n    containerMapper?: SiFormValidationErrorMapper\n  ): SiFormError[] {\n    if (!errors) {\n      return [];\n    }\n    /*\n     * Converts the angular error object (like: {required: true, minLength: {actualLength: 1, requiredLength: 3}})\n     * to SiFormError[].\n     * Therefore, the error key is look up in the error mappers.\n     * If it can be resolved, the error will be printed using the resolved text.\n     */\n    return Object.entries(errors).map(([key, params]) =>\n      this.resolveError(key, controlName, params, componentMapper, containerMapper)\n    );\n  }\n\n  private resolveError(\n    key: string,\n    controlName: string | number | null | undefined,\n    params: any,\n    componentMapper?: SiFormValidationErrorMapper,\n    containerMapper?: SiFormValidationErrorMapper\n  ): SiFormError {\n    return (\n      this.resolveMessage(key, controlName, params, componentMapper) ??\n      this.resolveMessage(key, controlName, params, containerMapper) ??\n      this.resolveMessage(key, controlName, params, this.errorMapper) ??\n      this.parent?.resolveError(key, controlName, params) ?? { key, params }\n    );\n  }\n\n  private resolveMessage(\n    key: string,\n    controlName: string | number | null | undefined,\n    params: any,\n    mapper?: SiFormValidationErrorMapper\n  ): SiFormError | undefined {\n    if (!mapper) {\n      return undefined;\n    }\n\n    const resolver = mapper[`${controlName}.${key}`] ?? mapper[key];\n\n    if (resolver) {\n      const message = typeof resolver === 'function' ? resolver(params) : resolver;\n      return message ? { key, message, params } : undefined;\n    }\n    return undefined;\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n  Component,\n  computed,\n  contentChild,\n  DestroyRef,\n  effect,\n  inject,\n  input,\n  isSignal\n} from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormFieldsetComponent } from '../form-fieldset/si-form-fieldset.component';\nimport { SiFormFieldsetControl } from '../form-fieldset/si-form-fieldset.control';\nimport { SI_FORM_ITEM_CONTROL } from '../si-form-item.control';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\n\n/**\n * Constructs a full form field including error messages, labels and aria-* attributes.\n * It must be used with Angular's signal forms.\n *\n * @example\n * ```html\n * <si-form-field label=\"Name\">\n *   <input class=\"form-control\" [formField]=\"form.name\" />\n *\n *   <!-- Optional help button -->\n *   <button\n *     si-help-button\n *     type=\"button\"\n *     siHelpTitle=\"Help for name\"\n *     siHelpContent=\"The context help description\"\n *   >More information about the name</button>\n * </si-form-field>\n * ```\n */\n@Component({\n  selector: 'si-form-field',\n  imports: [SiTranslatePipe, NgTemplateOutlet],\n  templateUrl: './si-form-field.component.html',\n  styleUrl: './si-form-field.component.scss',\n  host: {\n    '[class.required]': 'showRequired()',\n    '[class.form-check]': 'isFormCheck()',\n    '[class.form-check-inline]': 'fieldset?.inline()',\n    '[class.si-form-input]': '!fieldset'\n  }\n})\nexport class SiFormFieldComponent implements SiFormFieldsetControl {\n  private static idCounter = 0;\n\n  /**\n   * The label to be displayed in the form field.\n   * It will be translated if a translation key is available.\n   */\n  readonly label = input.required<TranslatableString>();\n\n  private readonly formField = contentChild.required(FormField);\n  private readonly fieldControl = contentChild(SI_FORM_ITEM_CONTROL, { descendants: true });\n\n  protected readonly fieldset = inject(SiFormFieldsetComponent, { optional: true });\n\n  private readonly validationErrorService = inject(SiFormValidationErrorService);\n\n  private readonly generatedId = `__si-form-field-${SiFormFieldComponent.idCounter++}`;\n\n  /** The id of the connected control, used for the label's `for` attribute. */\n  protected readonly controlId = computed(() => {\n    const id = this.fieldControl()?.id;\n    return (isSignal(id) ? id() : id) ?? (this.formField().element.id || this.generatedId);\n  });\n\n  protected readonly errormessageId = computed(() => {\n    const id = this.fieldControl()?.errormessageId;\n    return (isSignal(id) ? id() : id) ?? `${this.controlId()}-errormessage`;\n  });\n\n  protected readonly labelledby = computed(() => {\n    const labelledby = this.fieldControl()?.labelledby;\n    return isSignal(labelledby) ? labelledby() : labelledby;\n  });\n\n  /** Whether the connected control is a form-check (checkbox, radio or switch). */\n  protected readonly isFormCheck = computed(\n    () =>\n      this.fieldControl()?.isFormCheck ??\n      this.formField().element.classList.contains('form-check-input')\n  );\n\n  private readonly fieldState = computed(() => this.formField().state());\n\n  /** @internal */\n  readonly control = computed(() => this.fieldState().fieldTree);\n\n  /** @internal */\n  readonly required = computed(() => this.fieldState().required());\n\n  /** @internal  */\n  readonly showRequired = computed(() => this.required() && !this.isPartOfRadioGroup());\n\n  private readonly invalid = computed(() => {\n    const state = this.fieldState();\n    return state.touched() && state.invalid();\n  });\n\n  /** @internal */\n  readonly touched = computed(() => this.fieldState().touched());\n\n  protected readonly isPartOfRadioGroup = computed(() => this.fieldset?.hasOnlyRadios() ?? false);\n\n  /** @internal */\n  readonly errors = computed(() => {\n    const state = this.fieldState();\n    if (!state.touched()) {\n      return [];\n    }\n\n    return this.validationErrorService.resolveFormFieldErrors(state);\n  });\n\n  constructor() {\n    if (this.fieldset) {\n      this.fieldset.registerControl(this);\n      inject(DestroyRef).onDestroy(() => this.fieldset!.unregisterControl(this));\n    }\n\n    effect(() => this.syncControlId());\n    effect(() => this.syncErrorDescription());\n    effect(() => this.syncInvalidState());\n  }\n\n  private syncControlId(): void {\n    const element = this.formField().element;\n    if (!element.id) {\n      element.id = this.generatedId;\n    }\n  }\n\n  /** Associates the error messages with the projected control for assistive technologies. */\n  private syncErrorDescription(): void {\n    this.formField().element.setAttribute('aria-describedby', this.errormessageId());\n  }\n\n  /**\n   * Reflects the validation state onto the projected control via `aria-invalid`. This is needed\n   * because signal forms does not set `aria-invalid`, and the native `:user-invalid` pseudo-class\n   * ignores `markAsTouched()`. The matching `.ng-invalid`/`.ng-touched` classes that drive the\n   * styling are added by signal forms itself, see `provideSiFormFieldConfig()`.\n   */\n  private syncInvalidState(): void {\n    const element = this.formField().element;\n    if (this.invalid()) {\n      element.setAttribute('aria-invalid', 'true');\n    } else {\n      element.removeAttribute('aria-invalid');\n    }\n  }\n}\n","@if (!isFormCheck()) {\n  <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n} @else if (!fieldset) {\n  <!-- Empty spacer so the control aligns with the label column in form-col-layout. -->\n  <div class=\"form-label\"></div>\n}\n<div class=\"form-item-content\">\n  <ng-content />\n  @if (isFormCheck()) {\n    <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n  }\n  @if (!isPartOfRadioGroup()) {\n    <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n  }\n</div>\n\n<ng-template #labelTemplate>\n  <div\n    class=\"d-flex gap-2\"\n    [class.form-label]=\"!isFormCheck()\"\n    [class.form-check-label]=\"isFormCheck()\"\n  >\n    @if (labelledby()) {\n      <span [id]=\"labelledby()\" [class.required]=\"showRequired()\">{{ label() | translate }}</span>\n    } @else {\n      <label [for]=\"controlId()\" [class.required]=\"showRequired()\">{{ label() | translate }}</label>\n    }\n    <ng-content select=\"[si-help-button]\" />\n  </div>\n</ng-template>\n\n<ng-template #feedbackTemplate>\n  <div class=\"invalid-feedback\" [class.d-block]=\"errors().length\" [attr.id]=\"errormessageId()\">\n    @for (error of errors(); track $index) {\n      <div>\n        {{ error.message ?? error.key | translate: error.params }}\n      </div>\n    }\n  </div>\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Provider } from '@angular/core';\nimport { provideSignalFormsConfig, SignalFormsConfig } from '@angular/forms/signals';\nimport { NG_STATUS_CLASSES } from '@angular/forms/signals/compat';\n\n/**\n * Provides the signal forms configuration required by {@link SiFormFieldComponent}.\n *\n * It restores the `ng-*` classes applied by the directives of {@link @angular/forms#FormsModule | FormsModule} / {@link @angular/forms#ReactiveFormsModule | ReactiveFormsModule}.\n *\n * @example\n * ```ts\n * bootstrapApplication(AppComponent, {\n *   providers: [provideSiFormFieldConfig()]\n * });\n * ```\n */\nexport const provideSiFormFieldConfig = (config: SignalFormsConfig = {}): Provider[] =>\n  provideSignalFormsConfig({\n    ...config,\n    classes: {\n      ...NG_STATUS_CLASSES,\n      ...config.classes\n    }\n  });\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ElementRef } from '@angular/core';\n\nimport { SiFormItemControl } from '../si-form-item.control';\n\n/**\n * This will be used by the `si-form-item` to create a form item control if none is provided.\n * This is typically the case for native form controls like `input`, `textarea` and `select`.\n * It allows accessing the control's id and type.\n */\nexport class SiFormFieldNativeControl implements SiFormItemControl {\n  private static idCounter = 0;\n  private static readonly supportedTypes = ['INPUT', 'TEXTAREA', 'SELECT', 'METER', 'PROGRESS'];\n\n  static createForElementRef(\n    element: ElementRef<HTMLElement> | undefined\n  ): SiFormFieldNativeControl | undefined {\n    if (!element) {\n      return undefined;\n    }\n\n    if (!SiFormFieldNativeControl.supportedTypes.includes(element.nativeElement.tagName)) {\n      return undefined;\n    }\n\n    return new SiFormFieldNativeControl(element.nativeElement);\n  }\n\n  private constructor(private readonly element: HTMLElement) {\n    if (!element.id) {\n      element.id = `__si-form-field-native-control-${SiFormFieldNativeControl.idCounter++}`;\n    }\n\n    this.errormessageId = `${this.id}-errormessage`;\n    if (element instanceof HTMLInputElement) {\n      this.isFormCheck = element.type === 'checkbox' || element.type === 'radio';\n    } else {\n      this.isFormCheck = false;\n    }\n\n    element.setAttribute('aria-describedby', this.errormessageId);\n  }\n\n  isFormCheck: boolean;\n\n  get id(): string {\n    return this.element?.id;\n  }\n\n  set id(value: string) {\n    this.element.id = value;\n  }\n\n  readonly errormessageId: string;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n  AfterContentChecked,\n  AfterContentInit,\n  booleanAttribute,\n  Component,\n  computed,\n  contentChild,\n  ElementRef,\n  inject,\n  input,\n  isSignal,\n  OnChanges,\n  OnDestroy,\n  OnInit,\n  signal,\n  SimpleChanges\n} from '@angular/core';\nimport {\n  FormControl,\n  NgControl,\n  RequiredValidator,\n  ValidationErrors,\n  ValidatorFn\n} from '@angular/forms';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormFieldsetComponent } from '../form-fieldset/si-form-fieldset.component';\nimport { SiFormFieldsetControl } from '../form-fieldset/si-form-fieldset.control';\nimport { SiFormContainerComponent } from '../si-form-container/si-form-container.component';\nimport { SI_FORM_ITEM_CONTROL, SiFormItemControl } from '../si-form-item.control';\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\nimport { SiFormFieldNativeControl } from './si-form-field-native.control';\n\n/** @internal */\nexport interface SiFormError {\n  key: string;\n  message?: TranslatableString;\n  params: any;\n}\n\n@Component({\n  selector: 'si-form-item',\n  imports: [SiTranslatePipe, NgTemplateOutlet],\n  templateUrl: './si-form-item.component.html',\n  styleUrl: '../si-form.shared.scss',\n  host: {\n    '[class.required]': 'required()',\n    '[style.--si-form-label-width]': 'labelWidthCssVar()',\n    '[class.form-check]': 'fieldControl()?.isFormCheck',\n    '[class.form-check-inline]': 'fieldset?.inline()',\n    '[class.si-form-input]': '!fieldset'\n  }\n})\nexport class SiFormItemComponent\n  implements\n    AfterContentInit,\n    AfterContentChecked,\n    OnChanges,\n    OnInit,\n    OnDestroy,\n    SiFormFieldsetControl\n{\n  /**\n   * The label to be displayed in the form item.\n   * It will be translated if a translation key is available.\n   */\n  readonly label = input.required<TranslatableString>();\n\n  /**\n   * A custom width value to be applied to the label.\n   * A value of 0 is allowed as well to visually hide away the label area.\n   *\n   * Numbers will be converted to pixels.\n   * Using numbers is discouraged and might be dropped.\n   *\n   * @example labelWidth=\"100px\"\n   */\n  readonly labelWidth = input<string | number>();\n\n  /**\n   * Disables the automatic error printing. Error printing will be enabled by default in v46.\n   *\n   * @defaultValue false\n   */\n  readonly disableErrorPrinting = input(false, { transform: booleanAttribute });\n\n  /** Maps validation errors of the contained control to custom messages. */\n  readonly formErrorMapper = input<SiFormValidationErrorMapper>();\n\n  /**\n   * Defines that this form item is required for the overall form to be valid.\n   *\n   * @defaultValue false\n   */\n  // eslint-disable-next-line @angular-eslint/no-input-rename\n  readonly requiredInput = input(false, { transform: booleanAttribute, alias: 'required' });\n\n  protected readonly fieldControlQuery = contentChild(SI_FORM_ITEM_CONTROL, { descendants: true });\n  /** @internal */\n  readonly ngControl = contentChild(NgControl, { descendants: true });\n  protected readonly controlElementRef = contentChild<NgControl, ElementRef<HTMLElement>>(\n    NgControl,\n    {\n      read: ElementRef,\n      descendants: true\n    }\n  );\n  protected readonly requiredValidator = contentChild(RequiredValidator, { descendants: true });\n\n  /** @internal */\n  readonly errors = signal<SiFormError[]>([]);\n\n  /** @internal */\n  readonly touched = signal(false);\n\n  protected fieldset = inject(SiFormFieldsetComponent, { optional: true });\n  protected container = inject(SiFormContainerComponent, { optional: true });\n\n  protected get formItemId(): string | null {\n    const fieldControl = this.fieldControl();\n    return isSignal(fieldControl?.id) ? (fieldControl.id() ?? null) : (fieldControl?.id ?? null);\n  }\n\n  protected get formItemLabelledBy(): string | null {\n    const fieldControl = this.fieldControl();\n    return isSignal(fieldControl?.labelledby)\n      ? (fieldControl.labelledby() ?? null)\n      : (fieldControl?.labelledby ?? null);\n  }\n\n  protected get formItemErrormessageId(): string | null {\n    const fieldControl = this.fieldControl();\n    return isSignal(fieldControl?.errormessageId)\n      ? (fieldControl?.errormessageId() ?? null)\n      : (fieldControl?.errormessageId ?? null);\n  }\n\n  protected readonly fieldControl = computed(\n    () => this.fieldControlQuery() ?? this.fieldControlNative()\n  );\n\n  private validationErrorService = inject(SiFormValidationErrorService);\n  private requiredTestControl = new FormControl('');\n  private validator?: ValidatorFn | null;\n  private previousErrors?: ValidationErrors | null;\n  private readonly hasRequiredValidator = signal(false);\n  private readonly fieldControlNative = signal<SiFormItemControl | undefined>(undefined);\n\n  protected readonly labelWidthCssVar = computed(() => {\n    const labelWidth = this.labelWidth();\n    if (typeof labelWidth === 'number') {\n      return `${labelWidth}px`;\n    }\n\n    return labelWidth;\n  });\n\n  protected readonly printErrors = computed(() => {\n    return !this.disableErrorPrinting() && !(this.container?.disableErrorPrinting() ?? false);\n  });\n\n  /** @internal */\n  readonly required = computed(() => this.requiredInput() || this.hasRequiredValidator());\n\n  /** @internal */\n  readonly control = computed(() => this.ngControl()?.control);\n\n  /** @internal */\n  readonly radioGroupName = computed(() => {\n    const element = this.controlElementRef()?.nativeElement;\n    if (element?.tagName === 'INPUT') {\n      const inputElement = element as HTMLInputElement;\n      return inputElement.type === 'radio' ? inputElement.name || undefined : undefined;\n    }\n\n    return undefined;\n  });\n\n  ngOnChanges(changes: SimpleChanges<this>): void {\n    if (changes.formErrorMapper) {\n      this.updateValidationMessages();\n    }\n  }\n\n  ngOnInit(): void {\n    this.fieldset?.registerControl(this);\n  }\n\n  ngAfterContentInit(): void {\n    if (!this.fieldControlQuery()) {\n      this.fieldControlNative.set(\n        SiFormFieldNativeControl.createForElementRef(this.controlElementRef())\n      );\n    }\n  }\n\n  ngAfterContentChecked(): void {\n    this.updateRequiredState();\n    this.updateValidationMessages();\n    this.touched.set(!!this.ngControl()?.touched);\n  }\n\n  ngOnDestroy(): void {\n    this.fieldset?.unregisterControl(this);\n  }\n\n  private updateRequiredState(): void {\n    const requiredValidator = this.requiredValidator();\n    if (requiredValidator) {\n      // the easy case: required validator is applied in the template: <input required>\n      this.hasRequiredValidator.set(booleanAttribute(requiredValidator.required));\n    } else {\n      // No required validator is applied via template, it could still be applied in the code.\n      // If validators are applied via code, the validator object will change of controls.\n      // So we only need to check for required if the validator object was changed.\n      const validator = this.ngControl()?.control?.validator;\n\n      if (this.validator !== validator) {\n        this.validator = validator;\n        this.requiredTestControl.setValidators(this.validator ?? null);\n        this.requiredTestControl.updateValueAndValidity();\n        this.hasRequiredValidator.set(this.requiredTestControl.errors?.required ?? false);\n      }\n    }\n  }\n\n  private updateValidationMessages(): void {\n    const control = this.ngControl();\n    const currentErrors = control?.errors;\n    if (this.previousErrors !== currentErrors) {\n      if (control && this.printErrors()) {\n        this.errors.set(\n          this.validationErrorService\n            .resolveErrors(\n              control.name,\n              control.errors,\n              this.formErrorMapper(),\n              this.container?.formErrorMapper()\n            )\n            .filter(error => error.message)\n        );\n        this.previousErrors = currentErrors;\n      } else if (this.errors().length) {\n        this.errors.set([]);\n      }\n    }\n  }\n}\n","<!--Block the space if no form-field is provided. Otherwise it looks weird in the formly field inline representation.-->\n@if (fieldControl()?.isFormCheck && !fieldset) {\n  <div class=\"form-label\"></div>\n}\n@if (fieldControl()?.isFormCheck) {\n  <div class=\"form-item-content\">\n    <ng-container [ngTemplateOutlet]=\"content\" />\n    <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n    <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n  </div>\n} @else {\n  <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n  <div class=\"form-item-content\">\n    <ng-container [ngTemplateOutlet]=\"content\" />\n    <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n  </div>\n}\n\n<ng-template #labelTemplate>\n  @if (label()) {\n    <div\n      class=\"d-flex gap-2 align-items-start\"\n      [class.form-label]=\"!fieldControl()?.isFormCheck\"\n      [class.form-check-label]=\"fieldControl()?.isFormCheck\"\n    >\n      @let labeledBy = formItemLabelledBy;\n      @let required = this.required() && !this.fieldset?.hasOnlyRadios();\n      @if (labeledBy) {\n        <span [id]=\"labeledBy\" [class.required]=\"required\">{{ label()! | translate }}</span>\n      } @else {\n        <label [for]=\"formItemId\" [class.required]=\"required\">{{ label()! | translate }}</label>\n      }\n      <ng-content select=\"[si-help-button]\" />\n    </div>\n  }\n</ng-template>\n<ng-template #feedbackTemplate>\n  @if (printErrors() && !fieldset?.hasOnlyRadios()) {\n    <div class=\"invalid-feedback\" [attr.id]=\"formItemErrormessageId\">\n      @for (error of errors(); track error.key) {\n        <div>\n          {{ error.message | translate: error.params }}\n        </div>\n      }\n    </div>\n  }\n  <ng-content select=\".warning-feedback, .info-feedback, .invalid-feedback\" />\n</ng-template>\n<ng-template #content>\n  <ng-content />\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, inject, InjectionToken, Signal } from '@angular/core';\nimport { SiTranslatePipe } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormError } from '../si-form-item/si-form-item.component';\n\nexport const SI_FORM_VALIDATION_TOOLTIP_DATA = new InjectionToken<Signal<SiFormError[]>>(\n  'SiFormValidationTooltipData'\n);\n\n@Component({\n  selector: 'si-form-validation-tooltip',\n  imports: [SiTranslatePipe],\n  template: `\n    @for (error of errors(); track error.key) {\n      <div>{{ error.message | translate: error.params }}</div>\n    }\n  `,\n  changeDetection: ChangeDetectionStrategy.Eager,\n  host: {\n    'class': 'd-flex flex-column gap-2 text-start'\n  }\n})\nexport class SiFormValidationTooltipComponent {\n  protected errors = inject(SI_FORM_VALIDATION_TOOLTIP_DATA);\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n  computed,\n  Directive,\n  DoCheck,\n  ElementRef,\n  inject,\n  Injector,\n  input,\n  signal\n} from '@angular/core';\nimport { NgControl, ValidationErrors } from '@angular/forms';\nimport { SiTooltipService } from '@siemens/element-ng/tooltip';\n\nimport { SiFormContainerComponent } from '../si-form-container/si-form-container.component';\nimport { SiFormError } from '../si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\nimport {\n  SI_FORM_VALIDATION_TOOLTIP_DATA,\n  SiFormValidationTooltipComponent\n} from './si-form-validation-tooltip.component';\n\n/**\n * Directive to show a tooltip with validation errors of a form control.\n *\n * In general, `si-form-item` should be used.\n * This directive is intended only for cases where the tooltip cannot be shown inline.\n * This is typically the case for tables and lists where the validation message would break the layout.\n *\n * @example\n * ```html\n * <input siFormValidationTooltip [formControl]=\"control\" />\n * ```\n */\n@Directive({\n  selector: '[siFormValidationTooltip]',\n  providers: [SiTooltipService],\n  host: {\n    '[attr.aria-describedby]': 'describedBy'\n  }\n})\nexport class SiFormValidationTooltipDirective implements DoCheck {\n  private static idCounter = 0;\n\n  private tooltipService = inject(SiTooltipService);\n  private formValidationService = inject(SiFormValidationErrorService);\n  private formContainer = inject(SiFormContainerComponent, { optional: true });\n  /** Maps validation errors of the associated form control to custom tooltip messages. */\n  readonly formErrorMapper = input<SiFormValidationErrorMapper>();\n  private ngControl = inject(NgControl);\n  private elementRef = inject(ElementRef);\n\n  protected readonly describedBy = `__si-form-validation-tooltip-${SiFormValidationTooltipDirective.idCounter++}`;\n  private readonly errors = signal<SiFormError[]>([]);\n  private readonly touched = signal(false);\n  private readonly canShowTooltip = computed(() => this.errors().length > 0 && this.touched());\n  private currentErrors: ValidationErrors | null = null;\n\n  constructor() {\n    this.tooltipService.createTooltip({\n      placement: () => 'auto',\n      element: this.elementRef,\n      describedBy: this.describedBy,\n      injector: Injector.create({\n        providers: [{ provide: SI_FORM_VALIDATION_TOOLTIP_DATA, useValue: this.errors }]\n      }),\n      canShow: this.canShowTooltip,\n      tooltip: () => SiFormValidationTooltipComponent,\n      // Not actually used, but errors in the context triggers a resize if the errors changes.\n      tooltipContext: this.errors\n    });\n  }\n\n  ngDoCheck(): void {\n    const nextErrors = this.ngControl.errors;\n    this.touched.set(!!this.ngControl.touched);\n\n    if (this.currentErrors !== nextErrors) {\n      this.currentErrors = nextErrors;\n      this.updateErrors();\n    }\n  }\n\n  private updateErrors(): void {\n    const errors = this.formValidationService\n      .resolveErrors(\n        this.ngControl.name,\n        this.currentErrors,\n        this.formErrorMapper(),\n        this.formContainer?.formErrorMapper()\n      )\n      .filter(error => !!error.message);\n\n    this.errors.set(errors);\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Provider } from '@angular/core';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\nimport { buildDefaults, SiFormValidationErrorService } from './si-form-validation-error.service';\n\n/**\n * The error mapper is used to resolve an angular validation error to a {@link TranslatableString}.\n * It will be merged with already existing error mappers.\n */\nexport const provideFormValidationErrorMapper = (\n  mapper: SiFormValidationErrorMapper\n): Provider => ({\n  provide: SiFormValidationErrorService,\n  // defaults must always be provided in case this is called in app.config\n  useFactory: () => new SiFormValidationErrorService({ ...buildDefaults(), ...mapper })\n});\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport { SiFormFieldsetComponent } from './form-fieldset/si-form-fieldset.component';\nimport { SiFormContainerComponent } from './si-form-container/si-form-container.component';\nimport { SiFormItemComponent } from './si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\nimport { provideFormValidationErrorMapper } from './si-form-validation-error.provider';\n\n@NgModule({\n  imports: [SiFormContainerComponent, SiFormFieldsetComponent, SiFormItemComponent],\n  exports: [SiFormContainerComponent, SiFormFieldsetComponent, SiFormItemComponent]\n})\nexport class SiFormModule {\n  /**\n   * Overrides the default configuration of the form module.\n   *\n   * @param errorMapper - The error mappers is used to resolve angular validation errors.\n   * It will be merged with already existing error mappers.\n   */\n  // We have the errorMapper wrapped in an object, to allow the addition of more configuration fields without breaking the API.\n  static withConfiguration({\n    validationErrorMapper\n  }: {\n    validationErrorMapper: SiFormValidationErrorMapper;\n  }): ModuleWithProviders<SiFormModule> {\n    return {\n      ngModule: SiFormModule,\n      providers: [provideFormValidationErrorMapper(validationErrorMapper)]\n    };\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-form-container/si-form-container.component';\nexport * from './si-form-field/si-form-field.component';\nexport * from './si-form-field/si-form-field.provider';\nexport * from './si-form-item/si-form-item.component';\nexport * from './si-form-validation-tooltip/si-form-validation-tooltip.directive';\nexport * from './form-fieldset/si-form-fieldset.component';\nexport * from './si-form.module';\nexport * from './si-form-item.control';\nexport * from './si-form-validation-error.provider';\nexport * from './si-form-validation-error.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAwBH;;;;;;;;;;;;;;;;;;;;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