From cbb84649c79cb64180d038e7202279e562d8361e Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 27 Jun 2026 22:45:13 -0700 Subject: [PATCH] Pull out the zone list into a sub-component --- ...r-template-editor-zone-list.component.html | 34 +++++++++ ...emplate-editor-zone-list.component.spec.ts | 72 +++++++++++++++++++ ...ocr-template-editor-zone-list.component.ts | 41 +++++++++++ .../ocr-template-editor.component.html | 37 +++------- .../ocr-template-editor.component.ts | 2 + 5 files changed, 158 insertions(+), 28 deletions(-) create mode 100644 src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html create mode 100644 src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts create mode 100644 src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.ts diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html new file mode 100644 index 000000000..67f2f6eb8 --- /dev/null +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html @@ -0,0 +1,34 @@ +@if (zones.length === 0) { +
+ No zones defined. Load a document preview and draw rectangles to add zones. +
+} + +- No zones defined. Load a document preview and draw rectangles to add zones. -
- } -