<% if comp leading_icon = comp.icon && comp.icon.position.select {|p| eq(p, :left)}.any? trailing_icon = comp.icon && comp.icon.position.select {|p| eq(p, :right)}.any? auto_complete = comp.auto_complete&.to_sym == :off ? 'extra-off' : comp.auto_complete behavior = comp.behavior || 'text' %>
data-input-tag="<%= comp.tag %>"<% end %> <% if comp.dirtyable %>data-dirtyable<% end %> class="v-input v-text-field v-focusable mdc-text-field mdc-text-field--outlined <%= 'mdc-text-field--with-leading-icon' if leading_icon %> <%= 'mdc-text-field--with-trailing-icon' if trailing_icon %> <%= 'mdc-text-field--disabled' if comp.disabled %>" data-case_type="<%= comp.case_type %>" style="<%= 'width:100%' if comp.full_width %>"> value="<%= comp.value %>" class="mdc-text-field__input" aria-controls="<%= comp.id %>-input-helper-text" <% if comp.disabled %>disabled<% end %> <%= 'required' if comp.required %> <%= "pattern='#{comp.pattern}'" if comp.pattern %> autocomplete="<%= auto_complete %>" list="<%= comp.id %>-list" <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: "#{comp.id}-input"} if comp.events&.any? %>> <%= partial "components/icon", :locals => {comp: comp.icon, class_name: 'mdc-text-field__icon', parent_id: "#{comp.id}-input"} if comp.icon %> <%= partial "components/shared/input_label", :locals => {comp: comp} %>
<%= partial "components/shared/hint_error_display", :locals => {comp: comp} %> <%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip %> <% end %>