-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1058 from wazuh/3.7-new-tags-filter
New tags and filters search bar
- Loading branch information
Showing
9 changed files
with
499 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div id='wz-search-filter-bar' class='kuiLocalSearchInput'> | ||
<span class='fa fa-search' aria-hidden='true'></span> | ||
<div class='wz-tags' ng-class='{focused: hasFocus}'> | ||
<ul class='tag-list'> | ||
<li ng-repeat='group in groupedTagList track by $index'> | ||
<div ng-class='{grouped: group.length > 1}'> | ||
<div ng-repeat='tag in group track by $index'> | ||
<div class='wz-tag-item'> | ||
<span class='wz-tag-remove-button fa' ng-class='(tag.type === "filter") ? "fa-filter" : "fa-search"'></span> | ||
<span class=''>{{tag.value.name}} <span ng-show='tag.type === "filter"'>: | ||
{{tag.value.value}}</span></span> | ||
<a class='wz-tag-remove-button' ng-click='removeTag(tag.id, false)'>×</a> | ||
</div> | ||
<span class='wz-tag-item-connector' ng-show='$index != group.length - 1'>OR</span> | ||
</div> | ||
<a ng-show='group.length > 1' class='wz-tag-remove-button-group' ng-click='removeTag(group[0].key, true)'>×</a> | ||
</div> | ||
<span class='wz-tag-item-connector' ng-show='$index != groupedTagList.length - 1'> AND </span> | ||
</li> | ||
</ul> | ||
<input id='wz-search-filter-bar-input' class='wz-search-filter-bar-input input' type='text' ng-model='newTag' | ||
ng-focus='showAutocomplete(true)' ng-blur='showAutocomplete(false)' | ||
placeholder='Add filter or search' ng-keyup='!autocompleteEnter && $event.keyCode == 13 ? addTag(true) : addSearchKey($event)' /> | ||
<div id='wz-search-filter-bar-autocomplete' class='wz-search-filter-bar-autocomplete' ng-show='isAutocomplete && autocompleteContent.list.length > 0'> | ||
<p><b>{{autocompleteContent.title}}</b></p> | ||
<ul id='wz-search-filter-bar-autocomplete-list'> | ||
<li ng-repeat='element in autocompleteContent.list track by $index' ng-mousedown='autocompleteContent.isKey ? addTagKey(element) : addTagValue(element)'> | ||
<span ng-if='element'>{{element}}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.