From a1e4365ff2df1d679c9f3cab3bb9c407643b7d39 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 13 May 2024 09:12:02 -0700 Subject: [PATCH] Enhancement: global search tweaks (#6674) --- src-ui/messages.xlf | 50 ++++++------ .../global-search.component.html | 16 ++-- .../global-search.component.spec.ts | 76 ++++++++++++++----- .../global-search/global-search.component.ts | 67 ++++++++-------- src-ui/src/styles.scss | 3 +- 5 files changed, 130 insertions(+), 82 deletions(-) diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 4be198d69..f3e43d396 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -1013,7 +1013,7 @@ src/app/components/app-frame/global-search/global-search.component.ts - 92 + 93 @@ -2113,11 +2113,11 @@ src/app/components/app-frame/global-search/global-search.component.html - 51 + 55 src/app/components/app-frame/global-search/global-search.component.html - 68 + 72 src/app/components/common/input/permissions/permissions-form/permissions-form.component.html @@ -2676,7 +2676,7 @@ Advanced search src/app/components/app-frame/global-search/global-search.component.html - 19 + 23 src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -2687,25 +2687,25 @@ Open src/app/components/app-frame/global-search/global-search.component.html - 45 + 49 src/app/components/app-frame/global-search/global-search.component.html - 48 + 52 Filter documents src/app/components/app-frame/global-search/global-search.component.html - 54 + 58 Download src/app/components/app-frame/global-search/global-search.component.html - 65 + 69 src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html @@ -2732,113 +2732,113 @@ No results src/app/components/app-frame/global-search/global-search.component.html - 79 + 83 Documents src/app/components/app-frame/global-search/global-search.component.html - 82 + 86 Saved Views src/app/components/app-frame/global-search/global-search.component.html - 88 + 92 Tags src/app/components/app-frame/global-search/global-search.component.html - 95 + 99 Correspondents src/app/components/app-frame/global-search/global-search.component.html - 102 + 106 Document types src/app/components/app-frame/global-search/global-search.component.html - 109 + 113 Storage paths src/app/components/app-frame/global-search/global-search.component.html - 116 + 120 Users src/app/components/app-frame/global-search/global-search.component.html - 123 + 127 Groups src/app/components/app-frame/global-search/global-search.component.html - 130 + 134 Custom fields src/app/components/app-frame/global-search/global-search.component.html - 137 + 141 Mail accounts src/app/components/app-frame/global-search/global-search.component.html - 144 + 148 Mail rules src/app/components/app-frame/global-search/global-search.component.html - 151 + 155 Workflows src/app/components/app-frame/global-search/global-search.component.html - 158 + 162 Successfully updated object. src/app/components/app-frame/global-search/global-search.component.ts - 168 + 175 src/app/components/app-frame/global-search/global-search.component.ts - 206 + 213 Error occurred saving object. src/app/components/app-frame/global-search/global-search.component.ts - 171 + 178 src/app/components/app-frame/global-search/global-search.component.ts - 209 + 216 diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.html b/src-ui/src/app/components/app-frame/global-search/global-search.component.html index 317303de7..eeb118967 100644 --- a/src-ui/src/app/components/app-frame/global-search/global-search.component.html +++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.html @@ -6,15 +6,19 @@
+ autocomplete="off" + spellcheck="false" + [(ngModel)]="query" + (ngModelChange)="this.queryDebounce.next($event)" + (keydown)="searchInputKeyDown($event)" + ngbDropdownAnchor>
@if (loading) {
}
- @if (query && (searchResults?.documents.length === searchService.searchResultObjectLimit || searchService.searchDbOnly)) { + @if (query) { @if (type !== DataType.SavedView && type !== DataType.Workflow && type !== DataType.CustomField && type !== DataType.Group && type !== DataType.User && type !== DataType.MailAccount && type !== DataType.MailRule) {