|
1 | | -<div class="host input-group" |
2 | | - tabindex="-1" |
3 | | - data-ng-blur="$ctrl.triggerBlur($event)" |
4 | | - data-ng-focus="$ctrl.triggerFocus($event)"> |
5 | | - <div class="input-group-addon" |
6 | | - data-ng-repeat="tag in $ctrl.tags track by $ctrl.track(tag)"> |
7 | | - <span class="tag-text" data-ng-bind="::$ctrl.getTagText(tag)"></span> |
8 | | - <span style="cursor: pointer" ng-click="$ctrl.removeTag(tag)"> |
9 | | - ❌ |
| 1 | +<label class="ait-label"> |
| 2 | + <ul class="ait-dropdown" |
| 3 | + ng-if="$ctrl.maxLength > $ctrl.tags.length" |
| 4 | + ng-show="$ctrl.autocompleteVisible"> |
| 5 | + <li class="ait-dropdown--title" |
| 6 | + ng-if="$ctrl.path.length > 0" |
| 7 | + ng-click="$ctrl.previous()" |
| 8 | + ng-bind="$ctrl.currentItem[$ctrl.displayProperty] + '< '"> |
| 9 | + </li> |
| 10 | + <li class="ait-dropdown--title" |
| 11 | + ng-if="$ctrl.path.length === 0" |
| 12 | + ng-bind="$ctrl.currentItem[$ctrl.displayProperty]"> |
| 13 | + </li> |
| 14 | + <li class="ait-dropdown--item" |
| 15 | + ng-repeat="item in $ctrl.currentItem.data track by item.code" |
| 16 | + ng-click="item.data && item.data.length > 0 ? $ctrl.next(item) : $ctrl.addTag(item)" |
| 17 | + ng-bind="item[$ctrl.displayProperty] + (item.data && item.data.length > 0 && ' >')"> |
| 18 | + </li> |
| 19 | + </ul> |
| 20 | + |
| 21 | + <div class="ait-tag" |
| 22 | + ng-repeat="tag in $ctrl.tags track by $ctrl.track(tag)"> |
| 23 | + <span class="ait-tag--text" |
| 24 | + ng-bind="::$ctrl.getTagText(tag)"></span> |
| 25 | + <span class="ait-tag--close" |
| 26 | + style="cursor: pointer" |
| 27 | + ng-click="$ctrl.removeTag(tag)"> |
10 | 28 | </span> |
11 | 29 | </div> |
12 | 30 |
|
13 | | - <input-tags-auto-complete source="$ctrl.suggestions" |
14 | | - ng-if="$ctrl.maxLength > $ctrl.tags.length" |
15 | | - display-property="$ctrl.displayProperty" |
16 | | - on-tag-add="$ctrl.addTag(tag)" |
17 | | - visible="$ctrl.autocompleteVisible"></input-tags-auto-complete> |
18 | | - |
19 | | - <input class="form-control" |
| 31 | + <input class="ait-input" |
| 32 | + type="text" |
20 | 33 | autocomplete="off" |
21 | | - data-ng-trim="false" |
| 34 | + ng-trim="false" |
22 | 35 | tabindex="{{$ctrl.tabindex}}" |
23 | 36 | placeholder="{{$ctrl.placeholder}}" |
24 | 37 | spellcheck="{{$ctrl.spellcheck}}" |
25 | | - data-ng-if="$ctrl.maxLength > $ctrl.tags.length" |
26 | | - data-ng-model="$ctrl.inputSearch" |
| 38 | + tabindex="-1" |
| 39 | + ng-focus="$ctrl.triggerFocus($event)" |
| 40 | + ng-blur="$ctrl.triggerBlur($event)" |
| 41 | + ng-if="$ctrl.maxLength > $ctrl.tags.length" |
| 42 | + ng-model="$ctrl.inputSearch" |
27 | 43 | ng-model-options="{ debounce: $ctrl.inputDebounce }" |
28 | | - data-ng-change="$ctrl.inputChange()" |
29 | | - data-ng-disabled="$ctrl.disabled" |
30 | | - data-ng-focus="$ctrl.triggerFocus($event)" |
31 | | - data-ng-blur="$ctrl.triggerBlur($event)"> |
32 | | -</div> |
| 44 | + ng-change="$ctrl.inputChange()" |
| 45 | + ng-disabled="$ctrl.disabled" /> |
| 46 | +</label> |
0 commit comments