A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Merge remote-tracking branch 'upstream/dev' into feature/popover-previews
Michael Shamoonab0e97c1a014
diff --cc src-ui/src/app/components/document-list/document-card-large/document-card-large.component.tsindex 10457054f,ae68f5b60..db905d8d1--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts@@@ -85,32 -79,7 +84,32 @@@ export class DocumentCardLargeComponenreturn this.documentService.getDownloadUrl(this.document.id)}- get previewUrl() {+ getPreviewUrl() {return this.documentService.getPreviewUrl(this.document.id)}++ mouseEnterPreview() {+ this.mouseOnPreview = true+ if (!this.popover.isOpen()) {+ // we're going to open but hide to pre-load content during hover delay+ this.popover.open()+ this.popoverHidden = true+ setTimeout(() => {+ if (this.mouseOnPreview) {+ // show popover+ this.popoverHidden = false+ } else {+ this.popover.close()+ }+ }, 600);+ }+ }++ mouseLeavePreview() {+ this.mouseOnPreview = false+ }++ mouseLeaveCard() {+ this.popover.close()+ }}diff --cc src-ui/src/app/components/document-list/document-card-small/document-card-small.component.tsindex e025e4e25,95c01dcec..f34d232e7--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts@@@ -1,9 -1,8 +1,10 @@@-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';+import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';import { map } from 'rxjs/operators';import { PaperlessDocument } from 'src/app/data/paperless-document';++import { PaperlessDocumentMetadata } from 'src/app/data/paperless-document-metadata';import { DocumentService } from 'src/app/services/rest/document.service';import { SettingsService, SETTINGS_KEYS } from 'src/app/services/settings.service';+import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';@Component({selector: 'app-document-card-small',@@@ -31,12 -30,7 +32,17 @@@ export class DocumentCardSmallComponenmoreTags: number = null+ @ViewChild('popover') popover: NgbPopover++ mouseOnPreview = false+ popoverHidden = true+++ metadata: PaperlessDocumentMetadata++ngOnInit(): void {++ this.documentService.getMetadata(this.document?.id).subscribe(result => {++ this.metadata = result++ })}getIsThumbInverted() {