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

    Adapter for cron expression strings.

    Supports standard 5-field cron expressions (minute hour day-of-month month day-of-week) and optionally a 6th field for seconds. Validates field count and allowed characters.

    Shows a timer prefix icon.

    readonly adapter = new CronTextAdapter();
    // "0 * * * *" → value "0 * * * *" (every hour)

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    prefixIcon: "<line x1=\"10\" x2=\"14\" y1=\"2\" y2=\"2\" /><line x1=\"12\" x2=\"15\" y1=\"14\" y2=\"11\" /><circle cx=\"12\" cy=\"14\" r=\"8\" />" = UIIcons.Lucide.Time.Timer

    Optional SVG icon content to display before the input.

    Should be a Lucide SVG inner-content string (e.g. UIIcons.Lucide.Text.AtSign).

    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

        Raw text from the input element.

      Returns TextAdapterValidationResult

      Validation result with valid flag and error messages.