Sha256: 95ffb5be281b646dcc97899a6632533f8747d81469e573bb9376dd688bf1f150
Contents?: true
Size: 1.7 KB
Versions: 8
Compression:
Stored size: 1.7 KB
Contents
<% time_val = comp.value ? Array([comp.value]).join(', ') : nil type_class = comp.picker ? 'v-datetime' : 'v-date-text' %> <div id="<%= comp.id %>" <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %> <% if comp.dirtyable %>data-dirtyable<% end %> class="v-input <%= type_class %> mdc-text-field mdc-text-field--outlined <%= 'mdc-text-field--with-trailing-icon' if comp.clear_icon %> <%= 'mdc-text-field--disabled' if comp.disabled %>" data-config='<%= snake_to_camel(to_hash(comp.config), except: %i(time_24hr)).to_json %>' data-type='<%= comp.type %>' style="<%= 'width:100%' if comp.full_width %>"> <input id="<%= comp.id %>-input" name="<%= comp.name %>" type="text" value="<%= time_val %>" class="mdc-text-field__input" aria-controls="<%= comp.id %>-input-helper-text" data-input <%= 'required' if comp.required %> <%= "pattern='#{comp.pattern}'" if comp.pattern %> 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.clear_icon, class_name: 'mdc-text-field__icon', parent_id: "#{comp.id}-input"} if comp.picker && comp.clear_icon%> <%= partial "components/shared/input_label", :locals => {comp: comp} if comp %> <% if comp.picker %> <datalist id="<%= comp.id %>-list"> </datalist> <% end %> </div> <%= partial "components/shared/hint_error_display", :locals => {comp: comp} if comp %> <%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip%>
Version data entries
8 entries across 8 versions & 1 rubygems