@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Adapter that converts all input text to uppercase.

    Useful for fields that require uppercase values (e.g. VIN numbers, licence plates, IATA codes).

    readonly adapter = new UppercaseTextAdapter();
    // "abc123" → value "ABC123"

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Transform the raw text into the adapted value.

      Called on every input event. The result is stored in the value model and written back to the native input element, so the user sees the adapted text. The original keystrokes are preserved in the text model.

      Parameters

      • text: string

        Raw text from the input element.

      Returns string

      Adapted value string (displayed in the field and emitted via value).

    • Validate the raw text and return a result indicating whether the current input is valid.

      When present, UIInput exposes a valid signal and applies the invalid host class when validation fails.

      Parameters

      • _text: string

      Returns TextAdapterValidationResult

      Validation result with valid flag and error messages.