diff --git a/angular/document-reader-device/package.json b/angular/document-reader-device/package.json index f10858e..7b8a9b6 100644 --- a/angular/document-reader-device/package.json +++ b/angular/document-reader-device/package.json @@ -18,7 +18,7 @@ "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", - "@regulaforensics/vp-frontend-document-components": "2.6.1", + "@regulaforensics/vp-frontend-document-device": "*", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" diff --git a/angular/document-reader-device/src/app/app.component.ts b/angular/document-reader-device/src/app/app.component.ts index 7093cce..4ce156d 100644 --- a/angular/document-reader-device/src/app/app.component.ts +++ b/angular/document-reader-device/src/app/app.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ReaderComponent } from './components/reader.component'; -import { defineComponents, DocumentReaderDetailType } from '@regulaforensics/vp-frontend-document-components'; +import { defineComponents, DocumentReaderDeviceDetailType } from '@regulaforensics/vp-frontend-document-device'; @Component({ selector: 'app-root', @@ -16,7 +16,7 @@ export class AppComponent implements OnInit { defineComponents(); } - documentReaderHandler(data: CustomEvent) { + documentReaderHandler(data: CustomEvent) { if (data.detail.action === 'PROCESS_FINISHED') { const status = data.detail.data?.status; const isFinishStatus = status === 1; diff --git a/angular/document-reader-device/src/app/components/reader.component.ts b/angular/document-reader-device/src/app/components/reader.component.ts index 0cfa587..a2486fb 100644 --- a/angular/document-reader-device/src/app/components/reader.component.ts +++ b/angular/document-reader-device/src/app/components/reader.component.ts @@ -1,5 +1,5 @@ import { Component, AfterViewInit, ViewChild, ElementRef, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; -import { type DocumentReaderDeviceWebComponent } from '@regulaforensics/vp-frontend-document-components'; +import { type DocumentReaderDeviceWebComponent } from '@regulaforensics/vp-frontend-document-device'; @Component({ selector: 'app-reader', diff --git a/angular/document-reader-device/src/globals.d.ts b/angular/document-reader-device/src/globals.d.ts index 9c5fb75..bdfade2 100644 --- a/angular/document-reader-device/src/globals.d.ts +++ b/angular/document-reader-device/src/globals.d.ts @@ -1,7 +1,14 @@ -import { DocumentReaderDeviceWebComponent } from '@regulaforensics/vp-frontend-document-components'; +import { + DocumentReaderDeviceWebComponent, + DocumentReaderDeviceDetailType +} from '@regulaforensics/vp-frontend-document-device'; declare global { interface HTMLElementTagNameMap { 'document-reader-device': DocumentReaderDeviceWebComponent; } + + interface HTMLElementEventMap { + 'document-reader-device': CustomEvent; + } } diff --git a/cdn/document-reader-device.html b/cdn/document-reader-device.html index 71c2dfd..63f28e7 100644 --- a/cdn/document-reader-device.html +++ b/cdn/document-reader-device.html @@ -33,9 +33,8 @@
- -