nuxeo-development-framework 5.8.0 → 5.8.2
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/bundles/nuxeo-development-framework.umd.js +1794 -156
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/documents/components/document-scan/document-scan.component.js +1 -1
- package/esm2015/lib/components/ndf-scanner/index.js +3 -0
- package/esm2015/lib/components/ndf-scanner/ndf-scanner.component.js +966 -0
- package/esm2015/lib/components/ndf-scanner/ndf-scanner.module.js +23 -0
- package/esm2015/lib/components/ndf-uploader/components/bottom-sheet/ndf-uploader-bottom-sheet.component.js +124 -0
- package/esm2015/lib/components/ndf-uploader/components/index.js +2 -0
- package/esm2015/lib/components/ndf-uploader/config/index.js +2 -0
- package/esm2015/lib/components/ndf-uploader/config/uploader.config.js +10 -0
- package/esm2015/lib/components/ndf-uploader/constant/file-content.js +6 -0
- package/esm2015/lib/components/ndf-uploader/constant/index.js +2 -0
- package/esm2015/lib/components/ndf-uploader/helpers/index.js +2 -0
- package/esm2015/lib/components/ndf-uploader/helpers/uploader.helper.js +100 -0
- package/esm2015/lib/components/ndf-uploader/index.js +6 -0
- package/esm2015/lib/components/ndf-uploader/models/batch.model.js +2 -0
- package/esm2015/lib/components/ndf-uploader/models/index.js +4 -0
- package/esm2015/lib/components/ndf-uploader/models/ndf-file.model.js +20 -0
- package/esm2015/lib/components/ndf-uploader/models/provider.model.js +2 -0
- package/esm2015/lib/components/ndf-uploader/ndf-uploader-bottom-sheet.service.js +72 -0
- package/esm2015/lib/components/ndf-uploader/ndf-uploader.module.js +53 -0
- package/esm2015/lib/components/ndf-uploader/ndf-uploader.service.js +241 -0
- package/esm2015/lib/components/ndf-uploader/providers/index.js +3 -0
- package/esm2015/lib/components/ndf-uploader/providers/nuxeo-provider.service.js +32 -0
- package/esm2015/lib/components/ndf-uploader/providers/s3-provider.service.js +26 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/nuxeo-development-framework.js +1633 -51
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-scanner/index.d.ts +2 -0
- package/lib/components/ndf-scanner/ndf-scanner.component.d.ts +104 -0
- package/lib/components/ndf-scanner/ndf-scanner.module.d.ts +13 -0
- package/lib/components/ndf-uploader/components/bottom-sheet/ndf-uploader-bottom-sheet.component.d.ts +27 -0
- package/lib/components/ndf-uploader/components/index.d.ts +1 -0
- package/lib/components/ndf-uploader/config/index.d.ts +1 -0
- package/lib/components/ndf-uploader/config/uploader.config.d.ts +9 -0
- package/lib/components/ndf-uploader/constant/file-content.d.ts +5 -0
- package/lib/components/ndf-uploader/constant/index.d.ts +1 -0
- package/lib/components/ndf-uploader/helpers/index.d.ts +1 -0
- package/lib/components/ndf-uploader/helpers/uploader.helper.d.ts +10 -0
- package/lib/components/ndf-uploader/index.d.ts +5 -0
- package/lib/components/ndf-uploader/models/batch.model.d.ts +28 -0
- package/lib/components/ndf-uploader/models/index.d.ts +3 -0
- package/lib/components/ndf-uploader/models/ndf-file.model.d.ts +46 -0
- package/lib/components/ndf-uploader/models/provider.model.d.ts +7 -0
- package/lib/components/ndf-uploader/ndf-uploader-bottom-sheet.service.d.ts +30 -0
- package/lib/components/ndf-uploader/ndf-uploader.module.d.ts +16 -0
- package/lib/components/ndf-uploader/ndf-uploader.service.d.ts +25 -0
- package/lib/components/ndf-uploader/providers/index.d.ts +2 -0
- package/lib/components/ndf-uploader/providers/nuxeo-provider.service.d.ts +13 -0
- package/lib/components/ndf-uploader/providers/s3-provider.service.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { DatePipe } from '@angular/common';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { DocumentsService } from '../documents/services/documents.service';
|
|
6
|
+
import { NdfUploaderService } from '../ndf-uploader';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class NdfScannerComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
9
|
+
translate: TranslateService;
|
|
10
|
+
documentsService: DocumentsService;
|
|
11
|
+
private readonly uploaderService;
|
|
12
|
+
datePipe: DatePipe;
|
|
13
|
+
private baseHref;
|
|
14
|
+
uploadedFile: any;
|
|
15
|
+
onMinimizingSubscription: Subscription;
|
|
16
|
+
useStoredFile: boolean;
|
|
17
|
+
hideUploadButton: boolean;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
/** Event emitted when a batch is uploaded */
|
|
20
|
+
file: EventEmitter<any>;
|
|
21
|
+
private destroy$;
|
|
22
|
+
DWObject: any;
|
|
23
|
+
selectSources: HTMLSelectElement;
|
|
24
|
+
DWTSourceCount: number;
|
|
25
|
+
filename: string;
|
|
26
|
+
containerId: string;
|
|
27
|
+
bWASM: boolean;
|
|
28
|
+
_iLeft: any;
|
|
29
|
+
_iTop: any;
|
|
30
|
+
_iRight: any;
|
|
31
|
+
_iBottom: any;
|
|
32
|
+
_strTempStr: string;
|
|
33
|
+
re: RegExp;
|
|
34
|
+
strre: RegExp;
|
|
35
|
+
refloat: RegExp;
|
|
36
|
+
innerHTML: string;
|
|
37
|
+
constructor(translate: TranslateService, documentsService: DocumentsService, uploaderService: NdfUploaderService, datePipe: DatePipe, baseHref: string);
|
|
38
|
+
ngOnChanges(): void;
|
|
39
|
+
showLoader(): void;
|
|
40
|
+
hideLoader(): void;
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
ngAfterViewInit(): void;
|
|
43
|
+
setStoredFileToScanner(result: any): void;
|
|
44
|
+
pageonload(): void;
|
|
45
|
+
HideLoadImageForLinux(): void;
|
|
46
|
+
initiateInputs(): void;
|
|
47
|
+
isWin64(): boolean;
|
|
48
|
+
initDllForChangeImageSize(): void;
|
|
49
|
+
setDefaultValue(): void;
|
|
50
|
+
Dynamsoft_OnReady(): void;
|
|
51
|
+
showtblLoadImage_onclick(): boolean;
|
|
52
|
+
closetblLoadImage_onclick(): boolean;
|
|
53
|
+
updatePageInfo(): void;
|
|
54
|
+
appendMessage(strMessage: any): void;
|
|
55
|
+
checkIfImagesInBuffer(): boolean;
|
|
56
|
+
checkErrorString(): boolean;
|
|
57
|
+
checkErrorStringWithErrorCode(errorCode: any, errorString: any, responseString?: any): boolean;
|
|
58
|
+
ds_getleft(el: any): any;
|
|
59
|
+
ds_gettop(el: any): any;
|
|
60
|
+
Over_Out_DemoImage(obj: any, url: any): void;
|
|
61
|
+
source_onchange(): void;
|
|
62
|
+
mediaType_onchange(): void;
|
|
63
|
+
acquireImage(): void;
|
|
64
|
+
btnLoadImagesOrPDFs_onclick(): void;
|
|
65
|
+
btnShowImageEditor_onclick(): void;
|
|
66
|
+
btnRotateRight_onclick(): void;
|
|
67
|
+
btnRotateLeft_onclick(): void;
|
|
68
|
+
btnRotate180_onclick(): void;
|
|
69
|
+
btnMirror_onclick(): void;
|
|
70
|
+
btnFlip_onclick(): void;
|
|
71
|
+
btnCrop_onclick(): void;
|
|
72
|
+
btnChangeImageSize_onclick(): void;
|
|
73
|
+
btnCancelChange_onclick(): void;
|
|
74
|
+
btnChangeImageSizeOK_onclick(): void;
|
|
75
|
+
btnSave_onclick(): void;
|
|
76
|
+
makeid(length: any): string;
|
|
77
|
+
convertToBlob(): void;
|
|
78
|
+
convertToBlobForSaving(): void;
|
|
79
|
+
btnFirstImage_onclick(): void;
|
|
80
|
+
btnPreImage_wheel(): void;
|
|
81
|
+
btnNextImage_wheel(): void;
|
|
82
|
+
btnPreImage_onclick(): void;
|
|
83
|
+
btnNextImage_onclick(): void;
|
|
84
|
+
btnLastImage_onclick(): void;
|
|
85
|
+
btnRemoveCurrentImage_onclick(): void;
|
|
86
|
+
btnRemoveAllImages_onclick(): void;
|
|
87
|
+
setlPreviewMode(): void;
|
|
88
|
+
rdTIFF_onclick(): void;
|
|
89
|
+
rdPDF_onclick(): void;
|
|
90
|
+
rd_onclick(): void;
|
|
91
|
+
Dynamsoft_OnPostTransfer: () => void;
|
|
92
|
+
Dynamsoft_OnPostLoadfunction: (path: any, name: any, type: any) => void;
|
|
93
|
+
Dynamsoft_OnPostAllTransfers: () => void;
|
|
94
|
+
Dynamsoft_OnMouseClick: (index: any) => void;
|
|
95
|
+
Dynamsoft_OnMouseRightClick: (index: any) => void;
|
|
96
|
+
Dynamsoft_OnImageAreaSelected: (index: any, left: any, top: any, right: any, bottom: any) => void;
|
|
97
|
+
Dynamsoft_OnImageAreaDeselected: (index: any) => void;
|
|
98
|
+
Dynamsoft_OnMouseDoubleClick(): void;
|
|
99
|
+
Dynamsoft_OnTopImageInTheViewChanged: (index: any) => void;
|
|
100
|
+
Dynamsoft_OnGetFilePath: (bSave: any, count: any, index: any, path: any, name: any) => void;
|
|
101
|
+
ngOnDestroy(): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfScannerComponent, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NdfScannerComponent, "ndf-scanner", never, { "useStoredFile": "useStoredFile"; "hideUploadButton": "hideUploadButton"; "loading": "loading"; }, { "file": "file"; }, never, never>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ndf-scanner.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i4 from "@angular/material/icon";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@angular/material/tooltip";
|
|
8
|
+
import * as i7 from "@angular/material/progress-spinner";
|
|
9
|
+
export declare class NdfScannerModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfScannerModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfScannerModule, [typeof i1.NdfScannerComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatTooltipModule, typeof i7.MatProgressSpinnerModule], [typeof i1.NdfScannerComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NdfScannerModule>;
|
|
13
|
+
}
|
package/lib/components/ndf-uploader/components/bottom-sheet/ndf-uploader-bottom-sheet.component.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { BaseComponent } from '../../../../shared/components/base';
|
|
4
|
+
import { FileInfo, FileStatus } from '../../models';
|
|
5
|
+
import { NuxeoDialogService } from '../../../../shared/components/nuxeo-dialog/services/nuxeo-dialog.service';
|
|
6
|
+
import { NdfUploaderService } from '../../ndf-uploader.service';
|
|
7
|
+
import { NdfUploaderBottomSheetService } from '../../ndf-uploader-bottom-sheet.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NdfUploaderBottomSheetComponent extends BaseComponent implements OnInit {
|
|
10
|
+
private nuxeoDialogService;
|
|
11
|
+
private readonly uploaderService;
|
|
12
|
+
readonly uploaderBottomSheetService: NdfUploaderBottomSheetService;
|
|
13
|
+
private readonly files;
|
|
14
|
+
expanded: boolean;
|
|
15
|
+
completed$: Subject<number>;
|
|
16
|
+
fileStatus: typeof FileStatus;
|
|
17
|
+
constructor(injector: Injector, nuxeoDialogService: NuxeoDialogService, uploaderService: NdfUploaderService, uploaderBottomSheetService: NdfUploaderBottomSheetService, files: Array<File>);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
open(fileInfo?: FileInfo): void;
|
|
20
|
+
add(event: Event): void;
|
|
21
|
+
dismiss(): void;
|
|
22
|
+
retry(fileInfo: FileInfo): void;
|
|
23
|
+
cancel(fileInfo: FileInfo): void;
|
|
24
|
+
trackFile(index: number, item: FileInfo): string;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfUploaderBottomSheetComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NdfUploaderBottomSheetComponent, "ndf-uploader-bottom-sheet", never, {}, {}, never, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './bottom-sheet/ndf-uploader-bottom-sheet.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './uploader.config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file-content';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './uploader.helper';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BatchFile, Chunk, FileHeaders, FileOption } from '../models';
|
|
2
|
+
import { MonoTypeOperatorFunction, OperatorFunction } from 'rxjs';
|
|
3
|
+
export declare class UploaderHelper {
|
|
4
|
+
#private;
|
|
5
|
+
static catchError<T>(): OperatorFunction<T, any>;
|
|
6
|
+
static retryWhen<T>(): MonoTypeOperatorFunction<T>;
|
|
7
|
+
static createFileHeader(file: BatchFile, chunk: Chunk): FileHeaders;
|
|
8
|
+
static prepareConfig(): void;
|
|
9
|
+
static prepareFiles(options: FileOption, startFromIndex?: number): BatchFile[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UploadProvider } from './ndf-file.model';
|
|
2
|
+
export interface Batch {
|
|
3
|
+
batchId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface FileOption {
|
|
6
|
+
files: File[];
|
|
7
|
+
provider?: UploadProvider;
|
|
8
|
+
metadata?: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface UploadeResponse {
|
|
11
|
+
batchId: string;
|
|
12
|
+
fileIdx: string;
|
|
13
|
+
uploadType: string;
|
|
14
|
+
uploadedSize: number;
|
|
15
|
+
uploadedChunkIds: number[];
|
|
16
|
+
chunkCount: number;
|
|
17
|
+
}
|
|
18
|
+
export declare type FileHeaders = {
|
|
19
|
+
'Cache-Control': 'no-cache';
|
|
20
|
+
'X-File-Name': string;
|
|
21
|
+
'X-File-Type': string;
|
|
22
|
+
'Content-Type': string;
|
|
23
|
+
'Content-Length': number;
|
|
24
|
+
'X-Upload-Type'?: 'chunked';
|
|
25
|
+
'X-Upload-Chunk-Index'?: string;
|
|
26
|
+
'X-Upload-Chunk-Count'?: string;
|
|
27
|
+
'X-File-Size'?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare enum FileStatus {
|
|
2
|
+
Pending = 0,
|
|
3
|
+
InProgress = 1,
|
|
4
|
+
Canceled = 2,
|
|
5
|
+
Error = 3,
|
|
6
|
+
Completed = 4
|
|
7
|
+
}
|
|
8
|
+
export declare enum UploadProvider {
|
|
9
|
+
Nuxeo = "nuxeo",
|
|
10
|
+
S3 = "s3"
|
|
11
|
+
}
|
|
12
|
+
export interface BaseFileInfo {
|
|
13
|
+
batchId?: string;
|
|
14
|
+
id: string;
|
|
15
|
+
index: number;
|
|
16
|
+
data: File;
|
|
17
|
+
status: FileStatus;
|
|
18
|
+
progress: number;
|
|
19
|
+
provider: UploadProvider;
|
|
20
|
+
metadata?: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
export interface FileInfo extends BaseFileInfo {
|
|
23
|
+
icon: string;
|
|
24
|
+
documentId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface BatchFile extends BaseFileInfo {
|
|
27
|
+
chunks: Array<Chunk>;
|
|
28
|
+
}
|
|
29
|
+
export interface Chunk {
|
|
30
|
+
batchId?: string;
|
|
31
|
+
fileId: string;
|
|
32
|
+
index: number;
|
|
33
|
+
start: number;
|
|
34
|
+
end: number;
|
|
35
|
+
blob?: Blob;
|
|
36
|
+
status: FileStatus;
|
|
37
|
+
}
|
|
38
|
+
export interface FileEvent {
|
|
39
|
+
type: FileEventType;
|
|
40
|
+
data: FileInfo[];
|
|
41
|
+
}
|
|
42
|
+
export declare enum FileEventType {
|
|
43
|
+
Changes = 0,
|
|
44
|
+
Complete = 1,
|
|
45
|
+
Reset = 2
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { BatchFile, Chunk } from './ndf-file.model';
|
|
3
|
+
import { UploadeResponse } from './batch.model';
|
|
4
|
+
export interface Provider {
|
|
5
|
+
upload(file: BatchFile, chunk: Chunk): Observable<UploadeResponse>;
|
|
6
|
+
complete(file: BatchFile): Observable<Record<string, any>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { NdfUploaderService } from './ndf-uploader.service';
|
|
5
|
+
import { FileInfo } from './models';
|
|
6
|
+
import { OperationOptions } from '../../shared';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare enum NdfUploaderSheetEventType {
|
|
9
|
+
Open = "Open",
|
|
10
|
+
Submit = "Submit"
|
|
11
|
+
}
|
|
12
|
+
export interface NdfUploaderSheetEvent {
|
|
13
|
+
type: NdfUploaderSheetEventType;
|
|
14
|
+
data?: FileInfo | Array<string>;
|
|
15
|
+
}
|
|
16
|
+
export declare class NdfUploaderBottomSheetService {
|
|
17
|
+
#private;
|
|
18
|
+
private readonly bottomSheetService;
|
|
19
|
+
private readonly uploaderService;
|
|
20
|
+
private readonly translateService;
|
|
21
|
+
filesInfo$: BehaviorSubject<FileInfo[]>;
|
|
22
|
+
events$: Observable<NdfUploaderSheetEvent>;
|
|
23
|
+
constructor(bottomSheetService: MatBottomSheet, uploaderService: NdfUploaderService, translateService: TranslateService);
|
|
24
|
+
open(files: Array<File>): Observable<NdfUploaderSheetEvent>;
|
|
25
|
+
close(): void;
|
|
26
|
+
notify(event: NdfUploaderSheetEvent): void;
|
|
27
|
+
submit(batchId: string, options: OperationOptions): Observable<import("../../shared").NuxeoResponse>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfUploaderBottomSheetService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NdfUploaderBottomSheetService>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/bottom-sheet/ndf-uploader-bottom-sheet.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i4 from "@angular/material/dialog";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
import * as i6 from "@angular/material/button";
|
|
8
|
+
import * as i7 from "@angular/material/bottom-sheet";
|
|
9
|
+
import * as i8 from "@angular/material/expansion";
|
|
10
|
+
import * as i9 from "@angular/material/tooltip";
|
|
11
|
+
import * as i10 from "@angular/material/progress-spinner";
|
|
12
|
+
export declare class NdfUploaderModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfUploaderModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfUploaderModule, [typeof i1.NdfUploaderBottomSheetComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.MatDialogModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.MatBottomSheetModule, typeof i8.MatExpansionModule, typeof i9.MatTooltipModule, typeof i10.MatProgressSpinnerModule], never>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NdfUploaderModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { NuxeoProvider, S3Provider } from './providers';
|
|
3
|
+
import { FileEvent, FileOption } from './models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { BaseService, NuxeoResponse, OperationOptions } from '../../shared';
|
|
6
|
+
import { IconService } from '../display-suitable-icon/display-suitable-icon/icon.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare function nuxeoBaseUrl(): string;
|
|
9
|
+
export declare class NdfUploaderService extends BaseService {
|
|
10
|
+
#private;
|
|
11
|
+
private readonly nuxeoProvider;
|
|
12
|
+
private readonly s3Provider;
|
|
13
|
+
private readonly iconService;
|
|
14
|
+
readonly events$: Observable<FileEvent>;
|
|
15
|
+
constructor(injector: Injector, nuxeoProvider: NuxeoProvider, s3Provider: S3Provider, iconService: IconService);
|
|
16
|
+
upload(filesOrOptions: File[] | FileOption): Observable<FileEvent>;
|
|
17
|
+
submit(options: OperationOptions): Observable<NuxeoResponse>;
|
|
18
|
+
cancel(batchId: string): Observable<any>;
|
|
19
|
+
reset(): void;
|
|
20
|
+
stop(fileId: string): void;
|
|
21
|
+
remove(fileId: string): Observable<any>;
|
|
22
|
+
resume(fileId: string): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfUploaderService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NdfUploaderService>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { Provider, UploadeResponse } from '../models';
|
|
3
|
+
import { BatchFile, Chunk } from '../models/ndf-file.model';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { BaseService } from '../../../shared';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NuxeoProvider extends BaseService implements Provider {
|
|
8
|
+
constructor(injector: Injector);
|
|
9
|
+
upload(file: BatchFile, chunk: Chunk): Observable<UploadeResponse>;
|
|
10
|
+
complete(file: BatchFile): Observable<Record<string, any>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoProvider, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NuxeoProvider>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { Provider, UploadeResponse } from '../models';
|
|
3
|
+
import { BatchFile, Chunk } from '../models/ndf-file.model';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { BaseService } from '../../../shared';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class S3Provider extends BaseService implements Provider {
|
|
8
|
+
constructor(injector: Injector);
|
|
9
|
+
upload(file: BatchFile, chunk: Chunk): Observable<UploadeResponse>;
|
|
10
|
+
complete(file: BatchFile): Observable<Record<string, any>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<S3Provider, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<S3Provider>;
|
|
13
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -242,5 +242,7 @@ export * from './lib/components/skeleton';
|
|
|
242
242
|
export * from './lib/components/tables';
|
|
243
243
|
export * from './lib/components/ndf-config-editor';
|
|
244
244
|
export * from './lib/components/ndf-filters';
|
|
245
|
+
export * from './lib/components/ndf-uploader';
|
|
246
|
+
export * from './lib/components/ndf-scanner';
|
|
245
247
|
export * from './lib/shared/evaluator';
|
|
246
248
|
export * from './lib/shared/constants';
|