A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Allow esc key clearing, autofocus on management lists
Michael Shamoon472a3a54ab2e
diff --git a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.html b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.htmlindex c1ed6649d..f0d89b0bc 100644--- a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.html+++ b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.html@@ -6,7 +6,7 @@<div class="col-md mb-2 mb-xl-0"><div class="form-inline d-flex align-items-center"><label class="text-muted me-2 mb-0" i18n>Filter by:</label>- <input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="nameFilter" placeholder="Name" i18n-placeholder>+ <input class="form-control form-control-sm flex-fill w-auto" type="text" autofocus [(ngModel)]="nameFilter" (keyup)="onNameFilterKeyUp($event)" placeholder="Name" i18n-placeholder></div></div>diff --git a/src-ui/src/app/components/manage/document-type-list/document-type-list.component.html b/src-ui/src/app/components/manage/document-type-list/document-type-list.component.htmlindex cef938e43..77e488c55 100644--- a/src-ui/src/app/components/manage/document-type-list/document-type-list.component.html+++ b/src-ui/src/app/components/manage/document-type-list/document-type-list.component.html@@ -6,7 +6,7 @@<div class="col-md mb-2 mb-xl-0"><div class="form-inline d-flex align-items-center"><label class="text-muted me-2 mb-0" i18n>Filter by:</label>- <input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="nameFilter" placeholder="Name" i18n-placeholder>+ <input class="form-control form-control-sm flex-fill w-auto" type="text" autofocus [(ngModel)]="nameFilter" (keyup)="onNameFilterKeyUp($event)" placeholder="Name" i18n-placeholder></div></div>diff --git a/src-ui/src/app/components/manage/generic-list/generic-list.component.ts b/src-ui/src/app/components/manage/generic-list/generic-list.component.tsindex 00b2d91b1..fdfe699b4 100644--- a/src-ui/src/app/components/manage/generic-list/generic-list.component.ts+++ b/src-ui/src/app/components/manage/generic-list/generic-list.component.ts@@ -125,4 +125,8 @@ export abstract class GenericListComponent<T extends ObjectWithId> implements Onset nameFilter(nameFilter: string) {this.nameFilterDebounce.next(nameFilter)}++ onNameFilterKeyUp(event: KeyboardEvent) {+ if (event.code == 'Escape') this.nameFilterDebounce.next(null)+ }}diff --git a/src-ui/src/app/components/manage/tag-list/tag-list.component.html b/src-ui/src/app/components/manage/tag-list/tag-list.component.htmlindex e6870dffd..3ca89a37f 100644--- a/src-ui/src/app/components/manage/tag-list/tag-list.component.html+++ b/src-ui/src/app/components/manage/tag-list/tag-list.component.html@@ -6,7 +6,7 @@<div class="col-md mb-2 mb-xl-0"><div class="form-inline d-flex align-items-center"><label class="text-muted me-2 mb-0" i18n>Filter by:</label>- <input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="nameFilter" placeholder="Name" i18n-placeholder>+ <input class="form-control form-control-sm flex-fill w-auto" type="text" autofocus [(ngModel)]="nameFilter" (keyup)="onNameFilterKeyUp($event)" placeholder="Name" i18n-placeholder></div></div>