mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
* updates regex-validator component to optionally show pattern input and adds capture groups support * adds form-field-label component * adds autocomplete-input component * updates kv-object-editor component to yield block for value and glimmerizes * updates transform template model * adds transform-advanced-templating component * updates form-field with child component changes * updates transform template serializer to handle differences in regex named capture groups * fixes regex-validator test * adds changelog entry * updates for pr review feedback * reverts kv-object-editor guidFor removal
24 lines
758 B
Handlebars
24 lines
758 B
Handlebars
<div {{did-insert this.setElement}} ...attributes>
|
|
{{#if @label}}
|
|
<FormFieldLabel @label={{@label}} @subText={{@subText}} />
|
|
{{/if}}
|
|
<div class="control">
|
|
<Input
|
|
@value={{@value}}
|
|
autocomplete="off"
|
|
spellcheck="false"
|
|
placeholder={{@placeholder}}
|
|
class="input"
|
|
{{on "input" this.onInput}}
|
|
/>
|
|
<BasicDropdown @registerAPI={{fn (mut this.dropdownAPI)}} @renderInPlace={{true}} as |D|>
|
|
<D.Content class="autocomplete-input">
|
|
{{#each @options as |option|}}
|
|
<div class="autocomplete-input-option" role="button" {{on "click" (fn this.selectOption option.value)}}>
|
|
{{option.label}}
|
|
</div>
|
|
{{/each}}
|
|
</D.Content>
|
|
</BasicDropdown>
|
|
</div>
|
|
</div> |