mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-03 20:17:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			892 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			892 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
{{!
 | 
						|
  Copyright (c) HashiCorp, Inc.
 | 
						|
  SPDX-License-Identifier: BUSL-1.1
 | 
						|
~}}
 | 
						|
 | 
						|
<div {{did-insert this.setElement}} ...attributes>
 | 
						|
  {{#if @label}}
 | 
						|
    <FormFieldLabel @label={{@label}} @subText={{@subText}} for={{dasherize @label}} />
 | 
						|
  {{/if}}
 | 
						|
  <div class="control">
 | 
						|
    <Input
 | 
						|
      @value={{@value}}
 | 
						|
      autocomplete="off"
 | 
						|
      spellcheck="false"
 | 
						|
      placeholder={{@placeholder}}
 | 
						|
      class="input"
 | 
						|
      {{on "input" this.onInput}}
 | 
						|
      id={{dasherize @label}}
 | 
						|
    />
 | 
						|
    <BasicDropdown @registerAPI={{this.setDropdownAPI}} @renderInPlace={{true}} as |D|>
 | 
						|
      <D.Content @defaultClass="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> |