2018-06-28 13:54:54 +00:00
|
|
|
<div class="container"
|
|
|
|
ng-class="{selected: $ctrl.hasFocus}"
|
2017-09-27 10:27:18 +00:00
|
|
|
ng-mouseenter="$ctrl.hasMouseIn = true"
|
2018-06-28 13:54:54 +00:00
|
|
|
ng-mouseleave="$ctrl.hasMouseIn = false"
|
|
|
|
style="display: inline-flex"
|
|
|
|
>
|
|
|
|
<div class="textField">
|
|
|
|
<div class="leftIcons">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="infix">
|
|
|
|
<input
|
|
|
|
type="{{$ctrl.type}}"
|
|
|
|
name="{{$ctrl.name}}"
|
|
|
|
ng-model="$ctrl.value"
|
|
|
|
vn-validation="{{$ctrl.rule}}"
|
|
|
|
ng-disabled="$ctrl.disabled"
|
|
|
|
ng-readonly="$ctrl.readonly"
|
|
|
|
ng-focus="$ctrl.hasFocus = true"
|
|
|
|
ng-blur="$ctrl.hasFocus = false"
|
|
|
|
tabindex="{{$ctrl.input.tabindex}}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<label class="label" translate>{{::$ctrl.label}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="underline"></div>
|
|
|
|
<div class="selected underline"></div>
|
|
|
|
<div class="suffix">
|
|
|
|
<i class="material-icons pointer"
|
|
|
|
ng-class="{visible:
|
|
|
|
!$ctrl.disabled
|
|
|
|
&& $ctrl.hasValue
|
|
|
|
&& ($ctrl.hasFocus || $ctrl.hasMouseIn)
|
|
|
|
&& !$ctrl.unclearable}"
|
|
|
|
ng-click="$ctrl.clear()">
|
|
|
|
clear
|
|
|
|
</i>
|
|
|
|
<i class="material-icons"
|
|
|
|
ng-if="$ctrl.hasInfo"
|
|
|
|
vn-tooltip="{{$ctrl.info}}">
|
|
|
|
info_outline
|
|
|
|
</i>
|
|
|
|
</div>
|
|
|
|
<div class="rightIcons"></div>
|
2017-09-13 08:59:34 +00:00
|
|
|
</div>
|
2017-09-12 09:44:56 +00:00
|
|
|
</div>
|