FilterOldInlineEdit

components/filter/old/InlineEdit.vue

A pill-shaped key/operator/value editor — three borderless inputs in a row (key, operator, value), each with its own suggestion dropdown; operator input locks when a key has exactly one valid operator. Tab/Enter advance key -> operator -> value; blur or Escape completes or cancels.

Focus the key input to see suggestions; focusing away with no key cancels.

Scenarios
Fresh add — empty
Editing an existing filter
Locked operator — key has exactly one valid op
Tag filter — no value required
components/filter/old/InlineEdit.vue

Usage

<FilterOldInlineEdit initialKey = "—" initialVal = "—" initialOperator = "FILTER_DEFAULT_OP" :filterKeyDefs = "[]" :availableKeyDefs = "[]" :valSuggestions = "[]" :focusKey = "true" />

Props

PropTypeDefaultDescription
initialKeyString''Starting key value (edit mode).
initialValString''Starting value (edit mode).
initialOperatorStringFILTER_DEFAULT_OPStarting operator (edit mode).
filterKeyDefsArray[]FilterKeyDefinition[] — resolves valid operators and tag-vs-attribute type for the current key.
availableKeyDefsArray[]FilterKeyDefinition[] offered in the key-suggestion dropdown.
valSuggestionsArray[]string[] offered in the value-suggestion dropdown for the current key.
focusKeyBooleantrueFocuses the key input on mount instead of the value input (false when editing an existing filter, where the key is already set).

Events

EventDescription
completeFired with { key, val, operator } when the edit is confirmed.
cancelFired when the edit is abandoned (Escape, or blur with no key).
requestKeySuggestionsFired on key-input focus.
requestValSuggestionsFired with { key } on value-input focus or key selection.

Related

Qpoint Brand Style Guide