@servicemind.tis/tis-image-and-file-upload-and-view 1.2.30 → 1.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/servicemind.tis-tis-image-and-file-upload-and-view.mjs +155 -46
- package/fesm2022/servicemind.tis-tis-image-and-file-upload-and-view.mjs.map +1 -1
- package/lib/tis-image-and-file-upload-and-view.module.d.ts +16 -14
- package/lib/tis-qr-code-dialog/tis-qr-code-dialog.component.d.ts +0 -3
- package/lib/tis-view-connection-dialog/tis-view-connection-dialog.component.d.ts +48 -0
- package/package.json +1 -1
|
@@ -8,21 +8,23 @@ import * as i6 from "./tis-file-viewer/tis-video/tis-video.component";
|
|
|
8
8
|
import * as i7 from "./tis-error-dialog/tis-error-dialog.component";
|
|
9
9
|
import * as i8 from "./tis-confirmation-dialog/tis-confirmation-dialog.component";
|
|
10
10
|
import * as i9 from "./tis-qr-code-dialog/tis-qr-code-dialog.component";
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/common
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "@angular/material/
|
|
18
|
-
import * as i17 from "@angular/material/
|
|
19
|
-
import * as i18 from "@angular/material/
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
21
|
-
import * as i20 from "@angular/material/
|
|
22
|
-
import * as i21 from "@angular/material/
|
|
23
|
-
import * as i22 from "@angular/
|
|
11
|
+
import * as i10 from "./tis-view-connection-dialog/tis-view-connection-dialog.component";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "@angular/common/http";
|
|
14
|
+
import * as i13 from "ngx-extended-pdf-viewer";
|
|
15
|
+
import * as i14 from "@angular/forms";
|
|
16
|
+
import * as i15 from "angularx-qrcode";
|
|
17
|
+
import * as i16 from "@angular/material/tooltip";
|
|
18
|
+
import * as i17 from "@angular/material/icon";
|
|
19
|
+
import * as i18 from "@angular/material/snack-bar";
|
|
20
|
+
import * as i19 from "@angular/material/progress-spinner";
|
|
21
|
+
import * as i20 from "@angular/material/input";
|
|
22
|
+
import * as i21 from "@angular/material/button";
|
|
23
|
+
import * as i22 from "@angular/material/dialog";
|
|
24
|
+
import * as i23 from "@angular/material/divider";
|
|
25
|
+
import * as i24 from "@angular/cdk/drag-drop";
|
|
24
26
|
export declare class TisImageAndFileUploadAndViewModule {
|
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TisImageAndFileUploadAndViewModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TisImageAndFileUploadAndViewModule, [typeof i1.TisImageAndFileUploadAndViewComponent, typeof i2.TisPreviewImageComponent, typeof i3.TisFileViewerComponent, typeof i4.TisExcelFileViewerComponent, typeof i5.TisPdfViewerComponent, typeof i6.TisVideoComponent, typeof i7.TisErrorDialogComponent, typeof i8.TisConfirmationDialogComponent, typeof i9.TisQrCodeDialogComponent], [typeof
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TisImageAndFileUploadAndViewModule, [typeof i1.TisImageAndFileUploadAndViewComponent, typeof i2.TisPreviewImageComponent, typeof i3.TisFileViewerComponent, typeof i4.TisExcelFileViewerComponent, typeof i5.TisPdfViewerComponent, typeof i6.TisVideoComponent, typeof i7.TisErrorDialogComponent, typeof i8.TisConfirmationDialogComponent, typeof i9.TisQrCodeDialogComponent, typeof i10.TisViewConnectionDialogComponent], [typeof i11.CommonModule, typeof i12.HttpClientModule, typeof i13.NgxExtendedPdfViewerModule, typeof i14.FormsModule, typeof i14.ReactiveFormsModule, typeof i15.QRCodeComponent, typeof i16.MatTooltipModule, typeof i17.MatIconModule, typeof i18.MatSnackBarModule, typeof i19.MatProgressSpinnerModule, typeof i20.MatInputModule, typeof i21.MatButtonModule, typeof i22.MatDialogModule, typeof i23.MatDividerModule, typeof i24.DragDropModule], [typeof i1.TisImageAndFileUploadAndViewComponent, typeof i9.TisQrCodeDialogComponent]>;
|
|
27
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<TisImageAndFileUploadAndViewModule>;
|
|
28
30
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { TisRemoteUploadService, DevicesOnlineStatus } from '../services/tis-remote-upload.service';
|
|
4
|
-
import { TisRemoteUploadEvent } from '../interfaces/socket-adapter.interface';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export interface FieldInfo {
|
|
7
6
|
label?: string;
|
|
@@ -18,7 +17,6 @@ export interface TisQrCodeDialogData {
|
|
|
18
17
|
subtitle?: string;
|
|
19
18
|
qrSize?: number;
|
|
20
19
|
showCountdown?: boolean;
|
|
21
|
-
autoCloseOnUpload?: boolean;
|
|
22
20
|
fieldInfo?: FieldInfo;
|
|
23
21
|
}
|
|
24
22
|
export declare class TisQrCodeDialogComponent implements OnInit, OnDestroy {
|
|
@@ -33,7 +31,6 @@ export declare class TisQrCodeDialogComponent implements OnInit, OnDestroy {
|
|
|
33
31
|
isConnected: boolean;
|
|
34
32
|
errorMessage: string | null;
|
|
35
33
|
connectionStatus: 'disconnected' | 'pending' | 'connected';
|
|
36
|
-
uploadedFiles: TisRemoteUploadEvent[];
|
|
37
34
|
desktopDeviceId: string;
|
|
38
35
|
mobileDeviceId: string | null;
|
|
39
36
|
devicesStatus: DevicesOnlineStatus | null;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { TisRemoteUploadService, DevicesOnlineStatus } from '../services/tis-remote-upload.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface MobileConnectionInfo {
|
|
6
|
+
mobileDeviceId: string;
|
|
7
|
+
connectedAt: number;
|
|
8
|
+
lastActivity: number;
|
|
9
|
+
}
|
|
10
|
+
export interface TisViewConnectionDialogData {
|
|
11
|
+
title?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class TisViewConnectionDialogComponent implements OnInit, OnDestroy {
|
|
14
|
+
dialogRef: MatDialogRef<TisViewConnectionDialogComponent>;
|
|
15
|
+
data: TisViewConnectionDialogData;
|
|
16
|
+
private remoteUploadService;
|
|
17
|
+
private destroy$;
|
|
18
|
+
mobileConnection: MobileConnectionInfo | null;
|
|
19
|
+
devicesStatus: DevicesOnlineStatus | null;
|
|
20
|
+
isCheckingStatus: boolean;
|
|
21
|
+
disconnecting: boolean;
|
|
22
|
+
constructor(dialogRef: MatDialogRef<TisViewConnectionDialogComponent>, data: TisViewConnectionDialogData, remoteUploadService: TisRemoteUploadService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Refresh device online status
|
|
27
|
+
*/
|
|
28
|
+
refreshStatus(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Disconnect from mobile device
|
|
31
|
+
*/
|
|
32
|
+
disconnect(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Close dialog without disconnecting
|
|
35
|
+
*/
|
|
36
|
+
close(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Get formatted connection time
|
|
39
|
+
*/
|
|
40
|
+
getConnectionDuration(): string;
|
|
41
|
+
/**
|
|
42
|
+
* Get last ping time formatted
|
|
43
|
+
*/
|
|
44
|
+
getLastPing(timestamp: number | undefined): string;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TisViewConnectionDialogComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TisViewConnectionDialogComponent, "tis-view-connection-dialog", never, {}, {}, never, never, false, never>;
|
|
47
|
+
}
|
|
48
|
+
export {};
|