diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index 6c6f310d9..1dca9d4c9 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -225,7 +225,7 @@ } } -
+
@if (previewStatus === 'error') { @if (previewDocId && previewStatus !== 'error') { -
-
- - of {{ previewPageCount ?? '?' }} -
-
- - - +
+
+ + + +
+ + of {{ previewPageCount ?? '?' }} +
+
+ + + +
} diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss index 51bc226de..0cd025772 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss @@ -14,6 +14,10 @@ min-width: 4rem; } +.cdk-drag-handle { + cursor: move; +} + // The typeahead popup is appended to body. ::ng-deep .ocr-template-document-results { max-height: min(24rem, 60vh); diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts index ba70a0e50..27a3df2bf 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts @@ -1,3 +1,4 @@ +import { DragDropModule } from '@angular/cdk/drag-drop' import { CommonModule } from '@angular/common' import { ChangeDetectorRef, @@ -126,6 +127,7 @@ const RESIZE_CURSOR: Record = { selector: 'pngx-ocr-template-editor', standalone: true, imports: [ + DragDropModule, PageHeaderComponent, NumberComponent, TextComponent,